add type TRecord, update ci

This commit is contained in:
2017-06-04 18:09:46 +02:00
parent 3503fbc7b3
commit 2f065b57fc
7 changed files with 25 additions and 13 deletions

View File

@ -9,9 +9,9 @@ export declare class CflareAccount {
key: string;
}): void;
getZoneId(domainName: string): Promise<string>;
getRecord(domainNameArg: string, typeArg: string): Promise<interfaces.ICflareRecord>;
createRecord(domainNameArg: string, typeArg: string, contentArg: string): Promise<{}>;
removeRecord(domainNameArg: string, typeArg: string): Promise<{}>;
getRecord(domainNameArg: string, typeArg: interfaces.TRecord): Promise<interfaces.ICflareRecord>;
createRecord(domainNameArg: string, typeArg: interfaces.TRecord, contentArg: string): Promise<{}>;
removeRecord(domainNameArg: string, typeArg: interfaces.TRecord): Promise<{}>;
updateRecord(domainNameArg: string, typeArg: string, valueArg: any): Promise<{}>;
/**
* list all records of a specified domain name

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
export declare type TRecord = '';
export declare type TRecord = 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'SRV' | 'LOC' | 'MX' | 'NS' | 'SPF';
export interface ICflareZone {
'id': string;
'name': string;