@randock/nameshift-api-client 0.0.381 → 0.0.382
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +8 -0
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +60 -1
- package/dist/apis/BuyersApi.js +277 -0
- package/dist/models/AddSubscriptionDomainRecordInput.d.ts +56 -0
- package/dist/models/AddSubscriptionDomainRecordInput.js +65 -0
- package/dist/models/BuyerDomainNameserverItemDto.d.ts +32 -0
- package/dist/models/BuyerDomainNameserverItemDto.js +51 -0
- package/dist/models/BuyerDomainRecordItemDto.d.ts +56 -0
- package/dist/models/BuyerDomainRecordItemDto.js +67 -0
- package/dist/models/BuyerDomainRecordsDto.d.ts +46 -0
- package/dist/models/BuyerDomainRecordsDto.js +61 -0
- package/dist/models/BuyerSubscriptionListItemDto.d.ts +6 -0
- package/dist/models/BuyerSubscriptionListItemDto.js +4 -0
- package/dist/models/RemoveSubscriptionDomainRecordInput.d.ts +56 -0
- package/dist/models/RemoveSubscriptionDomainRecordInput.js +65 -0
- package/dist/models/SubscriptionDomainRecordInput.d.ts +56 -0
- package/dist/models/SubscriptionDomainRecordInput.js +65 -0
- package/dist/models/UpdateSubscriptionDomainNameserversInput.d.ts +32 -0
- package/dist/models/UpdateSubscriptionDomainNameserversInput.js +51 -0
- package/dist/models/UpdateSubscriptionDomainRecordInput.d.ts +39 -0
- package/dist/models/UpdateSubscriptionDomainRecordInput.js +56 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +280 -0
- package/src/models/AddSubscriptionDomainRecordInput.ts +101 -0
- package/src/models/BuyerDomainNameserverItemDto.ts +66 -0
- package/src/models/BuyerDomainRecordItemDto.ts +102 -0
- package/src/models/BuyerDomainRecordsDto.ts +99 -0
- package/src/models/BuyerSubscriptionListItemDto.ts +9 -0
- package/src/models/RemoveSubscriptionDomainRecordInput.ts +101 -0
- package/src/models/SubscriptionDomainRecordInput.ts +101 -0
- package/src/models/UpdateSubscriptionDomainNameserversInput.ts +66 -0
- package/src/models/UpdateSubscriptionDomainRecordInput.ts +83 -0
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfBuyerDomainNameserverItemDto = instanceOfBuyerDomainNameserverItemDto;
|
|
17
|
+
exports.BuyerDomainNameserverItemDtoFromJSON = BuyerDomainNameserverItemDtoFromJSON;
|
|
18
|
+
exports.BuyerDomainNameserverItemDtoFromJSONTyped = BuyerDomainNameserverItemDtoFromJSONTyped;
|
|
19
|
+
exports.BuyerDomainNameserverItemDtoToJSON = BuyerDomainNameserverItemDtoToJSON;
|
|
20
|
+
exports.BuyerDomainNameserverItemDtoToJSONTyped = BuyerDomainNameserverItemDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BuyerDomainNameserverItemDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBuyerDomainNameserverItemDto(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function BuyerDomainNameserverItemDtoFromJSON(json) {
|
|
30
|
+
return BuyerDomainNameserverItemDtoFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function BuyerDomainNameserverItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function BuyerDomainNameserverItemDtoToJSON(json) {
|
|
41
|
+
return BuyerDomainNameserverItemDtoToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function BuyerDomainNameserverItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BuyerDomainRecordItemDto
|
|
16
|
+
*/
|
|
17
|
+
export interface BuyerDomainRecordItemDto {
|
|
18
|
+
/**
|
|
19
|
+
* Record name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BuyerDomainRecordItemDto
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Record type (e.g. A, AAAA, CNAME, TXT)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BuyerDomainRecordItemDto
|
|
28
|
+
*/
|
|
29
|
+
type: string;
|
|
30
|
+
/**
|
|
31
|
+
* Record value
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BuyerDomainRecordItemDto
|
|
34
|
+
*/
|
|
35
|
+
value: string;
|
|
36
|
+
/**
|
|
37
|
+
* TTL in seconds
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof BuyerDomainRecordItemDto
|
|
40
|
+
*/
|
|
41
|
+
ttl: number;
|
|
42
|
+
/**
|
|
43
|
+
* Priority (for MX records)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof BuyerDomainRecordItemDto
|
|
46
|
+
*/
|
|
47
|
+
priority: number | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the BuyerDomainRecordItemDto interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfBuyerDomainRecordItemDto(value: object): value is BuyerDomainRecordItemDto;
|
|
53
|
+
export declare function BuyerDomainRecordItemDtoFromJSON(json: any): BuyerDomainRecordItemDto;
|
|
54
|
+
export declare function BuyerDomainRecordItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerDomainRecordItemDto;
|
|
55
|
+
export declare function BuyerDomainRecordItemDtoToJSON(json: any): BuyerDomainRecordItemDto;
|
|
56
|
+
export declare function BuyerDomainRecordItemDtoToJSONTyped(value?: BuyerDomainRecordItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfBuyerDomainRecordItemDto = instanceOfBuyerDomainRecordItemDto;
|
|
17
|
+
exports.BuyerDomainRecordItemDtoFromJSON = BuyerDomainRecordItemDtoFromJSON;
|
|
18
|
+
exports.BuyerDomainRecordItemDtoFromJSONTyped = BuyerDomainRecordItemDtoFromJSONTyped;
|
|
19
|
+
exports.BuyerDomainRecordItemDtoToJSON = BuyerDomainRecordItemDtoToJSON;
|
|
20
|
+
exports.BuyerDomainRecordItemDtoToJSONTyped = BuyerDomainRecordItemDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BuyerDomainRecordItemDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBuyerDomainRecordItemDto(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('ttl' in value) || value['ttl'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('priority' in value) || value['priority'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function BuyerDomainRecordItemDtoFromJSON(json) {
|
|
38
|
+
return BuyerDomainRecordItemDtoFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function BuyerDomainRecordItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'name': json['name'],
|
|
46
|
+
'type': json['type'],
|
|
47
|
+
'value': json['value'],
|
|
48
|
+
'ttl': json['ttl'],
|
|
49
|
+
'priority': json['priority'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function BuyerDomainRecordItemDtoToJSON(json) {
|
|
53
|
+
return BuyerDomainRecordItemDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function BuyerDomainRecordItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'type': value['type'],
|
|
63
|
+
'value': value['value'],
|
|
64
|
+
'ttl': value['ttl'],
|
|
65
|
+
'priority': value['priority'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { BuyerDomainNameserverItemDto } from './BuyerDomainNameserverItemDto';
|
|
13
|
+
import type { BuyerDomainRecordItemDto } from './BuyerDomainRecordItemDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface BuyerDomainRecordsDto
|
|
18
|
+
*/
|
|
19
|
+
export interface BuyerDomainRecordsDto {
|
|
20
|
+
/**
|
|
21
|
+
* Domain nameservers
|
|
22
|
+
* @type {Array<BuyerDomainNameserverItemDto>}
|
|
23
|
+
* @memberof BuyerDomainRecordsDto
|
|
24
|
+
*/
|
|
25
|
+
nameservers: Array<BuyerDomainNameserverItemDto>;
|
|
26
|
+
/**
|
|
27
|
+
* DNS records (excluding NS and SOA)
|
|
28
|
+
* @type {Array<BuyerDomainRecordItemDto>}
|
|
29
|
+
* @memberof BuyerDomainRecordsDto
|
|
30
|
+
*/
|
|
31
|
+
records: Array<BuyerDomainRecordItemDto>;
|
|
32
|
+
/**
|
|
33
|
+
* Authority nameservers
|
|
34
|
+
* @type {Array<BuyerDomainNameserverItemDto>}
|
|
35
|
+
* @memberof BuyerDomainRecordsDto
|
|
36
|
+
*/
|
|
37
|
+
authorityNs: Array<BuyerDomainNameserverItemDto>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the BuyerDomainRecordsDto interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfBuyerDomainRecordsDto(value: object): value is BuyerDomainRecordsDto;
|
|
43
|
+
export declare function BuyerDomainRecordsDtoFromJSON(json: any): BuyerDomainRecordsDto;
|
|
44
|
+
export declare function BuyerDomainRecordsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerDomainRecordsDto;
|
|
45
|
+
export declare function BuyerDomainRecordsDtoToJSON(json: any): BuyerDomainRecordsDto;
|
|
46
|
+
export declare function BuyerDomainRecordsDtoToJSONTyped(value?: BuyerDomainRecordsDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfBuyerDomainRecordsDto = instanceOfBuyerDomainRecordsDto;
|
|
17
|
+
exports.BuyerDomainRecordsDtoFromJSON = BuyerDomainRecordsDtoFromJSON;
|
|
18
|
+
exports.BuyerDomainRecordsDtoFromJSONTyped = BuyerDomainRecordsDtoFromJSONTyped;
|
|
19
|
+
exports.BuyerDomainRecordsDtoToJSON = BuyerDomainRecordsDtoToJSON;
|
|
20
|
+
exports.BuyerDomainRecordsDtoToJSONTyped = BuyerDomainRecordsDtoToJSONTyped;
|
|
21
|
+
var BuyerDomainNameserverItemDto_1 = require("./BuyerDomainNameserverItemDto");
|
|
22
|
+
var BuyerDomainRecordItemDto_1 = require("./BuyerDomainRecordItemDto");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the BuyerDomainRecordsDto interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfBuyerDomainRecordsDto(value) {
|
|
27
|
+
if (!('nameservers' in value) || value['nameservers'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('records' in value) || value['records'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('authorityNs' in value) || value['authorityNs'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function BuyerDomainRecordsDtoFromJSON(json) {
|
|
36
|
+
return BuyerDomainRecordsDtoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function BuyerDomainRecordsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'nameservers': (json['nameservers'].map(BuyerDomainNameserverItemDto_1.BuyerDomainNameserverItemDtoFromJSON)),
|
|
44
|
+
'records': (json['records'].map(BuyerDomainRecordItemDto_1.BuyerDomainRecordItemDtoFromJSON)),
|
|
45
|
+
'authorityNs': (json['authorityNs'].map(BuyerDomainNameserverItemDto_1.BuyerDomainNameserverItemDtoFromJSON)),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function BuyerDomainRecordsDtoToJSON(json) {
|
|
49
|
+
return BuyerDomainRecordsDtoToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function BuyerDomainRecordsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'nameservers': (value['nameservers'].map(BuyerDomainNameserverItemDto_1.BuyerDomainNameserverItemDtoToJSON)),
|
|
58
|
+
'records': (value['records'].map(BuyerDomainRecordItemDto_1.BuyerDomainRecordItemDtoToJSON)),
|
|
59
|
+
'authorityNs': (value['authorityNs'].map(BuyerDomainNameserverItemDto_1.BuyerDomainNameserverItemDtoToJSON)),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -101,6 +101,12 @@ export interface BuyerSubscriptionListItemDto {
|
|
|
101
101
|
* @memberof BuyerSubscriptionListItemDto
|
|
102
102
|
*/
|
|
103
103
|
paymentUrl: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* Whether the user can manage domain DNSs (subscription active, owned domain has externalId and status finished)
|
|
106
|
+
* @type {boolean}
|
|
107
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
108
|
+
*/
|
|
109
|
+
canManageDomainDns: boolean;
|
|
104
110
|
}
|
|
105
111
|
/**
|
|
106
112
|
* @export
|
|
@@ -77,6 +77,8 @@ function instanceOfBuyerSubscriptionListItemDto(value) {
|
|
|
77
77
|
return false;
|
|
78
78
|
if (!('paymentUrl' in value) || value['paymentUrl'] === undefined)
|
|
79
79
|
return false;
|
|
80
|
+
if (!('canManageDomainDns' in value) || value['canManageDomainDns'] === undefined)
|
|
81
|
+
return false;
|
|
80
82
|
return true;
|
|
81
83
|
}
|
|
82
84
|
function BuyerSubscriptionListItemDtoFromJSON(json) {
|
|
@@ -101,6 +103,7 @@ function BuyerSubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
101
103
|
'paidInstallmentsNumber': json['paidInstallmentsNumber'],
|
|
102
104
|
'renewAt': (new Date(json['renewAt'])),
|
|
103
105
|
'paymentUrl': json['paymentUrl'],
|
|
106
|
+
'canManageDomainDns': json['canManageDomainDns'],
|
|
104
107
|
};
|
|
105
108
|
}
|
|
106
109
|
function BuyerSubscriptionListItemDtoToJSON(json) {
|
|
@@ -126,5 +129,6 @@ function BuyerSubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
126
129
|
'paidInstallmentsNumber': value['paidInstallmentsNumber'],
|
|
127
130
|
'renewAt': ((value['renewAt']).toISOString()),
|
|
128
131
|
'paymentUrl': value['paymentUrl'],
|
|
132
|
+
'canManageDomainDns': value['canManageDomainDns'],
|
|
129
133
|
};
|
|
130
134
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RemoveSubscriptionDomainRecordInput
|
|
16
|
+
*/
|
|
17
|
+
export interface RemoveSubscriptionDomainRecordInput {
|
|
18
|
+
/**
|
|
19
|
+
* Record name (e.g. subdomain or @ for apex)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RemoveSubscriptionDomainRecordInput
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Record type (e.g. A, AAAA, CNAME, MX, TXT)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RemoveSubscriptionDomainRecordInput
|
|
28
|
+
*/
|
|
29
|
+
type: string;
|
|
30
|
+
/**
|
|
31
|
+
* Record value
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RemoveSubscriptionDomainRecordInput
|
|
34
|
+
*/
|
|
35
|
+
value: string;
|
|
36
|
+
/**
|
|
37
|
+
* TTL in seconds
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof RemoveSubscriptionDomainRecordInput
|
|
40
|
+
*/
|
|
41
|
+
ttl: number;
|
|
42
|
+
/**
|
|
43
|
+
* Priority (for MX records)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof RemoveSubscriptionDomainRecordInput
|
|
46
|
+
*/
|
|
47
|
+
priority?: number | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the RemoveSubscriptionDomainRecordInput interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfRemoveSubscriptionDomainRecordInput(value: object): value is RemoveSubscriptionDomainRecordInput;
|
|
53
|
+
export declare function RemoveSubscriptionDomainRecordInputFromJSON(json: any): RemoveSubscriptionDomainRecordInput;
|
|
54
|
+
export declare function RemoveSubscriptionDomainRecordInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RemoveSubscriptionDomainRecordInput;
|
|
55
|
+
export declare function RemoveSubscriptionDomainRecordInputToJSON(json: any): RemoveSubscriptionDomainRecordInput;
|
|
56
|
+
export declare function RemoveSubscriptionDomainRecordInputToJSONTyped(value?: RemoveSubscriptionDomainRecordInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRemoveSubscriptionDomainRecordInput = instanceOfRemoveSubscriptionDomainRecordInput;
|
|
17
|
+
exports.RemoveSubscriptionDomainRecordInputFromJSON = RemoveSubscriptionDomainRecordInputFromJSON;
|
|
18
|
+
exports.RemoveSubscriptionDomainRecordInputFromJSONTyped = RemoveSubscriptionDomainRecordInputFromJSONTyped;
|
|
19
|
+
exports.RemoveSubscriptionDomainRecordInputToJSON = RemoveSubscriptionDomainRecordInputToJSON;
|
|
20
|
+
exports.RemoveSubscriptionDomainRecordInputToJSONTyped = RemoveSubscriptionDomainRecordInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RemoveSubscriptionDomainRecordInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRemoveSubscriptionDomainRecordInput(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('ttl' in value) || value['ttl'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function RemoveSubscriptionDomainRecordInputFromJSON(json) {
|
|
36
|
+
return RemoveSubscriptionDomainRecordInputFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function RemoveSubscriptionDomainRecordInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'type': json['type'],
|
|
45
|
+
'value': json['value'],
|
|
46
|
+
'ttl': json['ttl'],
|
|
47
|
+
'priority': json['priority'] == null ? undefined : json['priority'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function RemoveSubscriptionDomainRecordInputToJSON(json) {
|
|
51
|
+
return RemoveSubscriptionDomainRecordInputToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function RemoveSubscriptionDomainRecordInputToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'type': value['type'],
|
|
61
|
+
'value': value['value'],
|
|
62
|
+
'ttl': value['ttl'],
|
|
63
|
+
'priority': value['priority'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SubscriptionDomainRecordInput
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriptionDomainRecordInput {
|
|
18
|
+
/**
|
|
19
|
+
* Record name (e.g. subdomain or @ for apex)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SubscriptionDomainRecordInput
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Record type (e.g. A, AAAA, CNAME, MX, TXT)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SubscriptionDomainRecordInput
|
|
28
|
+
*/
|
|
29
|
+
type: string;
|
|
30
|
+
/**
|
|
31
|
+
* Record value
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SubscriptionDomainRecordInput
|
|
34
|
+
*/
|
|
35
|
+
value: string;
|
|
36
|
+
/**
|
|
37
|
+
* TTL in seconds
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SubscriptionDomainRecordInput
|
|
40
|
+
*/
|
|
41
|
+
ttl: number;
|
|
42
|
+
/**
|
|
43
|
+
* Priority (for MX records)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof SubscriptionDomainRecordInput
|
|
46
|
+
*/
|
|
47
|
+
priority?: number | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the SubscriptionDomainRecordInput interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfSubscriptionDomainRecordInput(value: object): value is SubscriptionDomainRecordInput;
|
|
53
|
+
export declare function SubscriptionDomainRecordInputFromJSON(json: any): SubscriptionDomainRecordInput;
|
|
54
|
+
export declare function SubscriptionDomainRecordInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionDomainRecordInput;
|
|
55
|
+
export declare function SubscriptionDomainRecordInputToJSON(json: any): SubscriptionDomainRecordInput;
|
|
56
|
+
export declare function SubscriptionDomainRecordInputToJSONTyped(value?: SubscriptionDomainRecordInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSubscriptionDomainRecordInput = instanceOfSubscriptionDomainRecordInput;
|
|
17
|
+
exports.SubscriptionDomainRecordInputFromJSON = SubscriptionDomainRecordInputFromJSON;
|
|
18
|
+
exports.SubscriptionDomainRecordInputFromJSONTyped = SubscriptionDomainRecordInputFromJSONTyped;
|
|
19
|
+
exports.SubscriptionDomainRecordInputToJSON = SubscriptionDomainRecordInputToJSON;
|
|
20
|
+
exports.SubscriptionDomainRecordInputToJSONTyped = SubscriptionDomainRecordInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SubscriptionDomainRecordInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSubscriptionDomainRecordInput(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('ttl' in value) || value['ttl'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function SubscriptionDomainRecordInputFromJSON(json) {
|
|
36
|
+
return SubscriptionDomainRecordInputFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function SubscriptionDomainRecordInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'type': json['type'],
|
|
45
|
+
'value': json['value'],
|
|
46
|
+
'ttl': json['ttl'],
|
|
47
|
+
'priority': json['priority'] == null ? undefined : json['priority'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function SubscriptionDomainRecordInputToJSON(json) {
|
|
51
|
+
return SubscriptionDomainRecordInputToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function SubscriptionDomainRecordInputToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'type': value['type'],
|
|
61
|
+
'value': value['value'],
|
|
62
|
+
'ttl': value['ttl'],
|
|
63
|
+
'priority': value['priority'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateSubscriptionDomainNameserversInput
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateSubscriptionDomainNameserversInput {
|
|
18
|
+
/**
|
|
19
|
+
* List of nameserver hostnames to set for the domain
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof UpdateSubscriptionDomainNameserversInput
|
|
22
|
+
*/
|
|
23
|
+
nameservers: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateSubscriptionDomainNameserversInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateSubscriptionDomainNameserversInput(value: object): value is UpdateSubscriptionDomainNameserversInput;
|
|
29
|
+
export declare function UpdateSubscriptionDomainNameserversInputFromJSON(json: any): UpdateSubscriptionDomainNameserversInput;
|
|
30
|
+
export declare function UpdateSubscriptionDomainNameserversInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubscriptionDomainNameserversInput;
|
|
31
|
+
export declare function UpdateSubscriptionDomainNameserversInputToJSON(json: any): UpdateSubscriptionDomainNameserversInput;
|
|
32
|
+
export declare function UpdateSubscriptionDomainNameserversInputToJSONTyped(value?: UpdateSubscriptionDomainNameserversInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUpdateSubscriptionDomainNameserversInput = instanceOfUpdateSubscriptionDomainNameserversInput;
|
|
17
|
+
exports.UpdateSubscriptionDomainNameserversInputFromJSON = UpdateSubscriptionDomainNameserversInputFromJSON;
|
|
18
|
+
exports.UpdateSubscriptionDomainNameserversInputFromJSONTyped = UpdateSubscriptionDomainNameserversInputFromJSONTyped;
|
|
19
|
+
exports.UpdateSubscriptionDomainNameserversInputToJSON = UpdateSubscriptionDomainNameserversInputToJSON;
|
|
20
|
+
exports.UpdateSubscriptionDomainNameserversInputToJSONTyped = UpdateSubscriptionDomainNameserversInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateSubscriptionDomainNameserversInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateSubscriptionDomainNameserversInput(value) {
|
|
25
|
+
if (!('nameservers' in value) || value['nameservers'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdateSubscriptionDomainNameserversInputFromJSON(json) {
|
|
30
|
+
return UpdateSubscriptionDomainNameserversInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdateSubscriptionDomainNameserversInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'nameservers': json['nameservers'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function UpdateSubscriptionDomainNameserversInputToJSON(json) {
|
|
41
|
+
return UpdateSubscriptionDomainNameserversInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateSubscriptionDomainNameserversInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'nameservers': value['nameservers'],
|
|
50
|
+
};
|
|
51
|
+
}
|