cloudflare/dist/cflare.classes.cflareaccount.d.ts

21 lines
895 B
TypeScript
Raw Normal View History

2016-05-24 21:36:06 +00:00
import "typings-global";
2017-01-22 18:37:00 +00:00
import * as interfaces from './cflare.interfaces';
2016-05-15 17:51:48 +00:00
export declare class CflareAccount {
private authEmail;
private authKey;
private authCheck();
constructor();
auth(optionsArg: {
email: string;
key: string;
}): void;
2017-01-22 18:37:00 +00:00
getZoneId(domainName: string): Promise<{}>;
getRecord(domainNameArg: string, typeArg: string): Promise<interfaces.ICflareRecord>;
createRecord(domainNameArg: string, typeArg: string, contentArg: string): Promise<{}>;
removeRecord(domainNameArg: string, typeArg: string): Promise<{}>;
updateRecord(domainNameArg: string, typeArg: string, valueArg: any): Promise<{}>;
listRecords(domainNameArg: string): Promise<interfaces.ICflareRecord[]>;
listZones(domainName?: string): Promise<interfaces.ICflareZone[]>;
request(methodArg: string, routeArg: string, dataArg?: {}): Promise<{}>;
2016-05-15 17:51:48 +00:00
}