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

30 lines
1.2 KiB
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<string>;
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
* @param domainNameArg - the domain name that you want to get the records from
*/
listRecords(domainNameArg: string): Promise<interfaces.ICflareRecord[]>;
/**
* list all zones in the associated authenticated account
* @param domainName
*/
listZones(domainName?: string): Promise<interfaces.ICflareZone[]>;
purgeZone(domainName: string): Promise<void>;
request(methodArg: string, routeArg: string, dataArg?: {}): Promise<{}>;
private authCheck();
}