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

31 lines
1.2 KiB
TypeScript
Raw Normal View History

2017-01-29 16:27:48 +00:00
import 'typings-global';
2017-01-22 18:37:00 +00:00
import * as interfaces from './cflare.interfaces';
2017-06-11 19:07:41 +00:00
import { TDnsRecord } from 'tsclass';
2016-05-15 17:51:48 +00:00
export declare class CflareAccount {
private authEmail;
private authKey;
constructor();
auth(optionsArg: {
email: string;
key: string;
}): void;
2017-06-04 15:29:19 +00:00
getZoneId(domainName: string): Promise<string>;
2017-06-11 19:07:41 +00:00
getRecord(domainNameArg: string, typeArg: TDnsRecord): Promise<interfaces.ICflareRecord>;
createRecord(domainNameArg: string, typeArg: TDnsRecord, contentArg: string): Promise<{}>;
removeRecord(domainNameArg: string, typeArg: TDnsRecord): Promise<{}>;
2017-01-22 18:37:00 +00:00
updateRecord(domainNameArg: string, typeArg: string, valueArg: any): Promise<{}>;
2017-06-04 15:29:19 +00:00
/**
* list all records of a specified domain name
* @param domainNameArg - the domain name that you want to get the records from
*/
2017-01-22 18:37:00 +00:00
listRecords(domainNameArg: string): Promise<interfaces.ICflareRecord[]>;
2017-06-04 15:29:19 +00:00
/**
* list all zones in the associated authenticated account
* @param domainName
*/
2017-01-22 18:37:00 +00:00
listZones(domainName?: string): Promise<interfaces.ICflareZone[]>;
2017-06-05 17:14:26 +00:00
purgeZone(domainName: string): Promise<void>;
2017-01-22 18:37:00 +00:00
request(methodArg: string, routeArg: string, dataArg?: {}): Promise<{}>;
2017-01-29 16:27:48 +00:00
private authCheck();
2016-05-15 17:51:48 +00:00
}