@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,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface BuyerDomainNameserverItemDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerDomainNameserverItemDto {
|
|
22
|
+
/**
|
|
23
|
+
* Nameserver hostname
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerDomainNameserverItemDto
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the BuyerDomainNameserverItemDto interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfBuyerDomainNameserverItemDto(value: object): value is BuyerDomainNameserverItemDto {
|
|
34
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function BuyerDomainNameserverItemDtoFromJSON(json: any): BuyerDomainNameserverItemDto {
|
|
39
|
+
return BuyerDomainNameserverItemDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function BuyerDomainNameserverItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerDomainNameserverItemDto {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BuyerDomainNameserverItemDtoToJSON(json: any): BuyerDomainNameserverItemDto {
|
|
53
|
+
return BuyerDomainNameserverItemDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function BuyerDomainNameserverItemDtoToJSONTyped(value?: BuyerDomainNameserverItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'name': value['name'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface BuyerDomainRecordItemDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerDomainRecordItemDto {
|
|
22
|
+
/**
|
|
23
|
+
* Record name
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerDomainRecordItemDto
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Record type (e.g. A, AAAA, CNAME, TXT)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyerDomainRecordItemDto
|
|
32
|
+
*/
|
|
33
|
+
type: string;
|
|
34
|
+
/**
|
|
35
|
+
* Record value
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BuyerDomainRecordItemDto
|
|
38
|
+
*/
|
|
39
|
+
value: string;
|
|
40
|
+
/**
|
|
41
|
+
* TTL in seconds
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof BuyerDomainRecordItemDto
|
|
44
|
+
*/
|
|
45
|
+
ttl: number;
|
|
46
|
+
/**
|
|
47
|
+
* Priority (for MX records)
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof BuyerDomainRecordItemDto
|
|
50
|
+
*/
|
|
51
|
+
priority: number | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the BuyerDomainRecordItemDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfBuyerDomainRecordItemDto(value: object): value is BuyerDomainRecordItemDto {
|
|
58
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
59
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
60
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
61
|
+
if (!('ttl' in value) || value['ttl'] === undefined) return false;
|
|
62
|
+
if (!('priority' in value) || value['priority'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function BuyerDomainRecordItemDtoFromJSON(json: any): BuyerDomainRecordItemDto {
|
|
67
|
+
return BuyerDomainRecordItemDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function BuyerDomainRecordItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerDomainRecordItemDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'name': json['name'],
|
|
77
|
+
'type': json['type'],
|
|
78
|
+
'value': json['value'],
|
|
79
|
+
'ttl': json['ttl'],
|
|
80
|
+
'priority': json['priority'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function BuyerDomainRecordItemDtoToJSON(json: any): BuyerDomainRecordItemDto {
|
|
85
|
+
return BuyerDomainRecordItemDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function BuyerDomainRecordItemDtoToJSONTyped(value?: BuyerDomainRecordItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'name': value['name'],
|
|
96
|
+
'type': value['type'],
|
|
97
|
+
'value': value['value'],
|
|
98
|
+
'ttl': value['ttl'],
|
|
99
|
+
'priority': value['priority'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { BuyerDomainNameserverItemDto } from './BuyerDomainNameserverItemDto';
|
|
17
|
+
import {
|
|
18
|
+
BuyerDomainNameserverItemDtoFromJSON,
|
|
19
|
+
BuyerDomainNameserverItemDtoFromJSONTyped,
|
|
20
|
+
BuyerDomainNameserverItemDtoToJSON,
|
|
21
|
+
BuyerDomainNameserverItemDtoToJSONTyped,
|
|
22
|
+
} from './BuyerDomainNameserverItemDto';
|
|
23
|
+
import type { BuyerDomainRecordItemDto } from './BuyerDomainRecordItemDto';
|
|
24
|
+
import {
|
|
25
|
+
BuyerDomainRecordItemDtoFromJSON,
|
|
26
|
+
BuyerDomainRecordItemDtoFromJSONTyped,
|
|
27
|
+
BuyerDomainRecordItemDtoToJSON,
|
|
28
|
+
BuyerDomainRecordItemDtoToJSONTyped,
|
|
29
|
+
} from './BuyerDomainRecordItemDto';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface BuyerDomainRecordsDto
|
|
35
|
+
*/
|
|
36
|
+
export interface BuyerDomainRecordsDto {
|
|
37
|
+
/**
|
|
38
|
+
* Domain nameservers
|
|
39
|
+
* @type {Array<BuyerDomainNameserverItemDto>}
|
|
40
|
+
* @memberof BuyerDomainRecordsDto
|
|
41
|
+
*/
|
|
42
|
+
nameservers: Array<BuyerDomainNameserverItemDto>;
|
|
43
|
+
/**
|
|
44
|
+
* DNS records (excluding NS and SOA)
|
|
45
|
+
* @type {Array<BuyerDomainRecordItemDto>}
|
|
46
|
+
* @memberof BuyerDomainRecordsDto
|
|
47
|
+
*/
|
|
48
|
+
records: Array<BuyerDomainRecordItemDto>;
|
|
49
|
+
/**
|
|
50
|
+
* Authority nameservers
|
|
51
|
+
* @type {Array<BuyerDomainNameserverItemDto>}
|
|
52
|
+
* @memberof BuyerDomainRecordsDto
|
|
53
|
+
*/
|
|
54
|
+
authorityNs: Array<BuyerDomainNameserverItemDto>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the BuyerDomainRecordsDto interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfBuyerDomainRecordsDto(value: object): value is BuyerDomainRecordsDto {
|
|
61
|
+
if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
|
|
62
|
+
if (!('records' in value) || value['records'] === undefined) return false;
|
|
63
|
+
if (!('authorityNs' in value) || value['authorityNs'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function BuyerDomainRecordsDtoFromJSON(json: any): BuyerDomainRecordsDto {
|
|
68
|
+
return BuyerDomainRecordsDtoFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function BuyerDomainRecordsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerDomainRecordsDto {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'nameservers': ((json['nameservers'] as Array<any>).map(BuyerDomainNameserverItemDtoFromJSON)),
|
|
78
|
+
'records': ((json['records'] as Array<any>).map(BuyerDomainRecordItemDtoFromJSON)),
|
|
79
|
+
'authorityNs': ((json['authorityNs'] as Array<any>).map(BuyerDomainNameserverItemDtoFromJSON)),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function BuyerDomainRecordsDtoToJSON(json: any): BuyerDomainRecordsDto {
|
|
84
|
+
return BuyerDomainRecordsDtoToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function BuyerDomainRecordsDtoToJSONTyped(value?: BuyerDomainRecordsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'nameservers': ((value['nameservers'] as Array<any>).map(BuyerDomainNameserverItemDtoToJSON)),
|
|
95
|
+
'records': ((value['records'] as Array<any>).map(BuyerDomainRecordItemDtoToJSON)),
|
|
96
|
+
'authorityNs': ((value['authorityNs'] as Array<any>).map(BuyerDomainNameserverItemDtoToJSON)),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -118,6 +118,12 @@ export interface BuyerSubscriptionListItemDto {
|
|
|
118
118
|
* @memberof BuyerSubscriptionListItemDto
|
|
119
119
|
*/
|
|
120
120
|
paymentUrl: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* Whether the user can manage domain DNSs (subscription active, owned domain has externalId and status finished)
|
|
123
|
+
* @type {boolean}
|
|
124
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
125
|
+
*/
|
|
126
|
+
canManageDomainDns: boolean;
|
|
121
127
|
}
|
|
122
128
|
|
|
123
129
|
|
|
@@ -170,6 +176,7 @@ export function instanceOfBuyerSubscriptionListItemDto(value: object): value is
|
|
|
170
176
|
if (!('paidInstallmentsNumber' in value) || value['paidInstallmentsNumber'] === undefined) return false;
|
|
171
177
|
if (!('renewAt' in value) || value['renewAt'] === undefined) return false;
|
|
172
178
|
if (!('paymentUrl' in value) || value['paymentUrl'] === undefined) return false;
|
|
179
|
+
if (!('canManageDomainDns' in value) || value['canManageDomainDns'] === undefined) return false;
|
|
173
180
|
return true;
|
|
174
181
|
}
|
|
175
182
|
|
|
@@ -197,6 +204,7 @@ export function BuyerSubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscr
|
|
|
197
204
|
'paidInstallmentsNumber': json['paidInstallmentsNumber'],
|
|
198
205
|
'renewAt': (new Date(json['renewAt'])),
|
|
199
206
|
'paymentUrl': json['paymentUrl'],
|
|
207
|
+
'canManageDomainDns': json['canManageDomainDns'],
|
|
200
208
|
};
|
|
201
209
|
}
|
|
202
210
|
|
|
@@ -225,6 +233,7 @@ export function BuyerSubscriptionListItemDtoToJSONTyped(value?: BuyerSubscriptio
|
|
|
225
233
|
'paidInstallmentsNumber': value['paidInstallmentsNumber'],
|
|
226
234
|
'renewAt': ((value['renewAt']).toISOString()),
|
|
227
235
|
'paymentUrl': value['paymentUrl'],
|
|
236
|
+
'canManageDomainDns': value['canManageDomainDns'],
|
|
228
237
|
};
|
|
229
238
|
}
|
|
230
239
|
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RemoveSubscriptionDomainRecordInput
|
|
20
|
+
*/
|
|
21
|
+
export interface RemoveSubscriptionDomainRecordInput {
|
|
22
|
+
/**
|
|
23
|
+
* Record name (e.g. subdomain or @ for apex)
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RemoveSubscriptionDomainRecordInput
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Record type (e.g. A, AAAA, CNAME, MX, TXT)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RemoveSubscriptionDomainRecordInput
|
|
32
|
+
*/
|
|
33
|
+
type: string;
|
|
34
|
+
/**
|
|
35
|
+
* Record value
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof RemoveSubscriptionDomainRecordInput
|
|
38
|
+
*/
|
|
39
|
+
value: string;
|
|
40
|
+
/**
|
|
41
|
+
* TTL in seconds
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof RemoveSubscriptionDomainRecordInput
|
|
44
|
+
*/
|
|
45
|
+
ttl: number;
|
|
46
|
+
/**
|
|
47
|
+
* Priority (for MX records)
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof RemoveSubscriptionDomainRecordInput
|
|
50
|
+
*/
|
|
51
|
+
priority?: number | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the RemoveSubscriptionDomainRecordInput interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfRemoveSubscriptionDomainRecordInput(value: object): value is RemoveSubscriptionDomainRecordInput {
|
|
58
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
59
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
60
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
61
|
+
if (!('ttl' in value) || value['ttl'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function RemoveSubscriptionDomainRecordInputFromJSON(json: any): RemoveSubscriptionDomainRecordInput {
|
|
66
|
+
return RemoveSubscriptionDomainRecordInputFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function RemoveSubscriptionDomainRecordInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RemoveSubscriptionDomainRecordInput {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'name': json['name'],
|
|
76
|
+
'type': json['type'],
|
|
77
|
+
'value': json['value'],
|
|
78
|
+
'ttl': json['ttl'],
|
|
79
|
+
'priority': json['priority'] == null ? undefined : json['priority'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function RemoveSubscriptionDomainRecordInputToJSON(json: any): RemoveSubscriptionDomainRecordInput {
|
|
84
|
+
return RemoveSubscriptionDomainRecordInputToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function RemoveSubscriptionDomainRecordInputToJSONTyped(value?: RemoveSubscriptionDomainRecordInput | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'name': value['name'],
|
|
95
|
+
'type': value['type'],
|
|
96
|
+
'value': value['value'],
|
|
97
|
+
'ttl': value['ttl'],
|
|
98
|
+
'priority': value['priority'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SubscriptionDomainRecordInput
|
|
20
|
+
*/
|
|
21
|
+
export interface SubscriptionDomainRecordInput {
|
|
22
|
+
/**
|
|
23
|
+
* Record name (e.g. subdomain or @ for apex)
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SubscriptionDomainRecordInput
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Record type (e.g. A, AAAA, CNAME, MX, TXT)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SubscriptionDomainRecordInput
|
|
32
|
+
*/
|
|
33
|
+
type: string;
|
|
34
|
+
/**
|
|
35
|
+
* Record value
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SubscriptionDomainRecordInput
|
|
38
|
+
*/
|
|
39
|
+
value: string;
|
|
40
|
+
/**
|
|
41
|
+
* TTL in seconds
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof SubscriptionDomainRecordInput
|
|
44
|
+
*/
|
|
45
|
+
ttl: number;
|
|
46
|
+
/**
|
|
47
|
+
* Priority (for MX records)
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof SubscriptionDomainRecordInput
|
|
50
|
+
*/
|
|
51
|
+
priority?: number | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the SubscriptionDomainRecordInput interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfSubscriptionDomainRecordInput(value: object): value is SubscriptionDomainRecordInput {
|
|
58
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
59
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
60
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
61
|
+
if (!('ttl' in value) || value['ttl'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function SubscriptionDomainRecordInputFromJSON(json: any): SubscriptionDomainRecordInput {
|
|
66
|
+
return SubscriptionDomainRecordInputFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function SubscriptionDomainRecordInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionDomainRecordInput {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'name': json['name'],
|
|
76
|
+
'type': json['type'],
|
|
77
|
+
'value': json['value'],
|
|
78
|
+
'ttl': json['ttl'],
|
|
79
|
+
'priority': json['priority'] == null ? undefined : json['priority'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function SubscriptionDomainRecordInputToJSON(json: any): SubscriptionDomainRecordInput {
|
|
84
|
+
return SubscriptionDomainRecordInputToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function SubscriptionDomainRecordInputToJSONTyped(value?: SubscriptionDomainRecordInput | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'name': value['name'],
|
|
95
|
+
'type': value['type'],
|
|
96
|
+
'value': value['value'],
|
|
97
|
+
'ttl': value['ttl'],
|
|
98
|
+
'priority': value['priority'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateSubscriptionDomainNameserversInput
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateSubscriptionDomainNameserversInput {
|
|
22
|
+
/**
|
|
23
|
+
* List of nameserver hostnames to set for the domain
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof UpdateSubscriptionDomainNameserversInput
|
|
26
|
+
*/
|
|
27
|
+
nameservers: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UpdateSubscriptionDomainNameserversInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUpdateSubscriptionDomainNameserversInput(value: object): value is UpdateSubscriptionDomainNameserversInput {
|
|
34
|
+
if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function UpdateSubscriptionDomainNameserversInputFromJSON(json: any): UpdateSubscriptionDomainNameserversInput {
|
|
39
|
+
return UpdateSubscriptionDomainNameserversInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function UpdateSubscriptionDomainNameserversInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubscriptionDomainNameserversInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'nameservers': json['nameservers'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UpdateSubscriptionDomainNameserversInputToJSON(json: any): UpdateSubscriptionDomainNameserversInput {
|
|
53
|
+
return UpdateSubscriptionDomainNameserversInputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UpdateSubscriptionDomainNameserversInputToJSONTyped(value?: UpdateSubscriptionDomainNameserversInput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'nameservers': value['nameservers'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SubscriptionDomainRecordInput } from './SubscriptionDomainRecordInput';
|
|
17
|
+
import {
|
|
18
|
+
SubscriptionDomainRecordInputFromJSON,
|
|
19
|
+
SubscriptionDomainRecordInputFromJSONTyped,
|
|
20
|
+
SubscriptionDomainRecordInputToJSON,
|
|
21
|
+
SubscriptionDomainRecordInputToJSONTyped,
|
|
22
|
+
} from './SubscriptionDomainRecordInput';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdateSubscriptionDomainRecordInput
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdateSubscriptionDomainRecordInput {
|
|
30
|
+
/**
|
|
31
|
+
* The existing record to be updated (identifies the record)
|
|
32
|
+
* @type {SubscriptionDomainRecordInput}
|
|
33
|
+
* @memberof UpdateSubscriptionDomainRecordInput
|
|
34
|
+
*/
|
|
35
|
+
original: SubscriptionDomainRecordInput;
|
|
36
|
+
/**
|
|
37
|
+
* The new record values
|
|
38
|
+
* @type {SubscriptionDomainRecordInput}
|
|
39
|
+
* @memberof UpdateSubscriptionDomainRecordInput
|
|
40
|
+
*/
|
|
41
|
+
record: SubscriptionDomainRecordInput;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the UpdateSubscriptionDomainRecordInput interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfUpdateSubscriptionDomainRecordInput(value: object): value is UpdateSubscriptionDomainRecordInput {
|
|
48
|
+
if (!('original' in value) || value['original'] === undefined) return false;
|
|
49
|
+
if (!('record' in value) || value['record'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function UpdateSubscriptionDomainRecordInputFromJSON(json: any): UpdateSubscriptionDomainRecordInput {
|
|
54
|
+
return UpdateSubscriptionDomainRecordInputFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function UpdateSubscriptionDomainRecordInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubscriptionDomainRecordInput {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'original': SubscriptionDomainRecordInputFromJSON(json['original']),
|
|
64
|
+
'record': SubscriptionDomainRecordInputFromJSON(json['record']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function UpdateSubscriptionDomainRecordInputToJSON(json: any): UpdateSubscriptionDomainRecordInput {
|
|
69
|
+
return UpdateSubscriptionDomainRecordInputToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function UpdateSubscriptionDomainRecordInputToJSONTyped(value?: UpdateSubscriptionDomainRecordInput | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'original': SubscriptionDomainRecordInputToJSON(value['original']),
|
|
80
|
+
'record': SubscriptionDomainRecordInputToJSON(value['record']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -32,6 +32,7 @@ export * from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
|
32
32
|
export * from './AccountSettingsRentConfigurationDto';
|
|
33
33
|
export * from './AccountSettingsSidnDto';
|
|
34
34
|
export * from './AccountsStatsDto';
|
|
35
|
+
export * from './AddSubscriptionDomainRecordInput';
|
|
35
36
|
export * from './AddressDto';
|
|
36
37
|
export * from './AdminAccountCommissionByDateRangeInput';
|
|
37
38
|
export * from './AdminAccountLoginDto';
|
|
@@ -91,6 +92,9 @@ export * from './BuyerAuctionDetailDtoDomain';
|
|
|
91
92
|
export * from './BuyerAuctionListItemDto';
|
|
92
93
|
export * from './BuyerAuctionListItemDtoDomainInformation';
|
|
93
94
|
export * from './BuyerAuctionListItemDtoSellerAccount';
|
|
95
|
+
export * from './BuyerDomainNameserverItemDto';
|
|
96
|
+
export * from './BuyerDomainRecordItemDto';
|
|
97
|
+
export * from './BuyerDomainRecordsDto';
|
|
94
98
|
export * from './BuyerDomainTransferAuthCodeDto';
|
|
95
99
|
export * from './BuyerDomainTransferListItemDomainDto';
|
|
96
100
|
export * from './BuyerDomainTransferListItemDto';
|
|
@@ -322,6 +326,7 @@ export * from './RegisterAuctionBuyerPhoneInput';
|
|
|
322
326
|
export * from './RegisterInput';
|
|
323
327
|
export * from './RelatedDomainsDto';
|
|
324
328
|
export * from './RelatedSellerDomain';
|
|
329
|
+
export * from './RemoveSubscriptionDomainRecordInput';
|
|
325
330
|
export * from './RentConfigurationDto';
|
|
326
331
|
export * from './RentConfigurationInput';
|
|
327
332
|
export * from './RentConfigurationPresetsDto';
|
|
@@ -380,6 +385,7 @@ export * from './SubscriptionDetailsDomainSellerDto';
|
|
|
380
385
|
export * from './SubscriptionDetailsDomainSellerUserDto';
|
|
381
386
|
export * from './SubscriptionDetailsDto';
|
|
382
387
|
export * from './SubscriptionDomainDto';
|
|
388
|
+
export * from './SubscriptionDomainRecordInput';
|
|
383
389
|
export * from './SubscriptionDto';
|
|
384
390
|
export * from './SubscriptionLeaseToOwnConfigurationDto';
|
|
385
391
|
export * from './SubscriptionListItemBillingPeriodicityDto';
|
|
@@ -412,6 +418,8 @@ export * from './UpdateLeaseToOwnConfigurationDto';
|
|
|
412
418
|
export * from './UpdateOrderInput';
|
|
413
419
|
export * from './UpdateRentConfigurationDto';
|
|
414
420
|
export * from './UpdateSubscriptionBillingPeriodicityInput';
|
|
421
|
+
export * from './UpdateSubscriptionDomainNameserversInput';
|
|
422
|
+
export * from './UpdateSubscriptionDomainRecordInput';
|
|
415
423
|
export * from './UpdateSubscriptionInput';
|
|
416
424
|
export * from './UpdateTaskMuteStatusForBuyerInput';
|
|
417
425
|
export * from './UpdateTaskMuteStatusInput';
|