cloudflare/dist/cflare.classes.cflareaccount.d.ts
2017-01-29 17:27:48 +01:00

21 lines
895 B
TypeScript

import 'typings-global';
import * as interfaces from './cflare.interfaces';
export declare class CflareAccount {
private authEmail;
private authKey;
constructor();
auth(optionsArg: {
email: string;
key: string;
}): void;
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<{}>;
private authCheck();
}