mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 19:12:20 +08:00
Create Gandi definitions
This commit is contained in:
8
gandi/gandi-tests.ts
Normal file
8
gandi/gandi-tests.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/// <reference path="gandi.d.ts" />
|
||||
|
||||
let zone: ZoneRecord = {
|
||||
rrset_name: "MyZone",
|
||||
rrset_type: "AAAA",
|
||||
rrset_ttl: 10800,
|
||||
rrset_values: []
|
||||
}
|
||||
42
gandi/gandi.d.ts
vendored
Normal file
42
gandi/gandi.d.ts
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
// Type definitions for Gandi LiveDNS
|
||||
// Project: http://doc.livedns.gandi.net/
|
||||
// Definitions by: Xavier Stouder <https://github.com/xstoudi/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface Zone {
|
||||
uuid: string;
|
||||
name: string;
|
||||
primary_ns: string;
|
||||
apex_alias: string;
|
||||
email: string;
|
||||
serial: number;
|
||||
refresh: number;
|
||||
retry: number;
|
||||
expire: number;
|
||||
minimum: number;
|
||||
}
|
||||
|
||||
interface ZoneRecord {
|
||||
rrset_name: string;
|
||||
/**
|
||||
* One of A, AAA, CNAME, MX, NS, TXT, WKS, SRV, LOC, SPF, SSHFP, DNAME
|
||||
*/
|
||||
rrset_type: string;
|
||||
rrset_ttl: number;
|
||||
rrset_values: string[];
|
||||
}
|
||||
|
||||
interface Domain {
|
||||
fqdn: string;
|
||||
zone_uuid: string;
|
||||
}
|
||||
|
||||
interface Snapshot {
|
||||
serial: number;
|
||||
zone_uuid: string;
|
||||
/**
|
||||
* Can be used as a date with "new Date(change_time);"
|
||||
*/
|
||||
change_time: string;
|
||||
zone_data: ZoneRecord[];
|
||||
}
|
||||
Reference in New Issue
Block a user