@randock/nameshift-api-client 0.0.381 → 0.0.383

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.
Files changed (42) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +3 -3
  3. package/dist/apis/BuyersApi.d.ts +60 -1
  4. package/dist/apis/BuyersApi.js +277 -0
  5. package/dist/models/AddSubscriptionDomainRecordInput.d.ts +56 -0
  6. package/dist/models/AddSubscriptionDomainRecordInput.js +65 -0
  7. package/dist/models/BuyerDomainNameserverItemDto.d.ts +32 -0
  8. package/dist/models/BuyerDomainNameserverItemDto.js +51 -0
  9. package/dist/models/BuyerDomainRecordItemDto.d.ts +56 -0
  10. package/dist/models/BuyerDomainRecordItemDto.js +67 -0
  11. package/dist/models/BuyerDomainRecordsDto.d.ts +46 -0
  12. package/dist/models/BuyerDomainRecordsDto.js +61 -0
  13. package/dist/models/BuyerSubscriptionListItemDto.d.ts +6 -0
  14. package/dist/models/BuyerSubscriptionListItemDto.js +4 -0
  15. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  16. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  17. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  18. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  19. package/dist/models/RemoveSubscriptionDomainRecordInput.d.ts +56 -0
  20. package/dist/models/RemoveSubscriptionDomainRecordInput.js +65 -0
  21. package/dist/models/SubscriptionDomainRecordInput.d.ts +56 -0
  22. package/dist/models/SubscriptionDomainRecordInput.js +65 -0
  23. package/dist/models/UpdateSubscriptionDomainNameserversInput.d.ts +32 -0
  24. package/dist/models/UpdateSubscriptionDomainNameserversInput.js +51 -0
  25. package/dist/models/UpdateSubscriptionDomainRecordInput.d.ts +39 -0
  26. package/dist/models/UpdateSubscriptionDomainRecordInput.js +56 -0
  27. package/dist/models/index.d.ts +8 -0
  28. package/dist/models/index.js +8 -0
  29. package/package.json +1 -1
  30. package/src/apis/BuyersApi.ts +280 -0
  31. package/src/models/AddSubscriptionDomainRecordInput.ts +101 -0
  32. package/src/models/BuyerDomainNameserverItemDto.ts +66 -0
  33. package/src/models/BuyerDomainRecordItemDto.ts +102 -0
  34. package/src/models/BuyerDomainRecordsDto.ts +99 -0
  35. package/src/models/BuyerSubscriptionListItemDto.ts +9 -0
  36. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  37. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  38. package/src/models/RemoveSubscriptionDomainRecordInput.ts +101 -0
  39. package/src/models/SubscriptionDomainRecordInput.ts +101 -0
  40. package/src/models/UpdateSubscriptionDomainNameserversInput.ts +66 -0
  41. package/src/models/UpdateSubscriptionDomainRecordInput.ts +83 -0
  42. package/src/models/index.ts +8 -0
@@ -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 AddSubscriptionDomainRecordInput
20
+ */
21
+ export interface AddSubscriptionDomainRecordInput {
22
+ /**
23
+ * Record name (e.g. subdomain or @ for apex)
24
+ * @type {string}
25
+ * @memberof AddSubscriptionDomainRecordInput
26
+ */
27
+ name: string;
28
+ /**
29
+ * Record type (e.g. A, AAAA, CNAME, MX, TXT)
30
+ * @type {string}
31
+ * @memberof AddSubscriptionDomainRecordInput
32
+ */
33
+ type: string;
34
+ /**
35
+ * Record value
36
+ * @type {string}
37
+ * @memberof AddSubscriptionDomainRecordInput
38
+ */
39
+ value: string;
40
+ /**
41
+ * TTL in seconds
42
+ * @type {number}
43
+ * @memberof AddSubscriptionDomainRecordInput
44
+ */
45
+ ttl: number;
46
+ /**
47
+ * Priority (for MX records)
48
+ * @type {number}
49
+ * @memberof AddSubscriptionDomainRecordInput
50
+ */
51
+ priority?: number | null;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the AddSubscriptionDomainRecordInput interface.
56
+ */
57
+ export function instanceOfAddSubscriptionDomainRecordInput(value: object): value is AddSubscriptionDomainRecordInput {
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 AddSubscriptionDomainRecordInputFromJSON(json: any): AddSubscriptionDomainRecordInput {
66
+ return AddSubscriptionDomainRecordInputFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function AddSubscriptionDomainRecordInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddSubscriptionDomainRecordInput {
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 AddSubscriptionDomainRecordInputToJSON(json: any): AddSubscriptionDomainRecordInput {
84
+ return AddSubscriptionDomainRecordInputToJSONTyped(json, false);
85
+ }
86
+
87
+ export function AddSubscriptionDomainRecordInputToJSONTyped(value?: AddSubscriptionDomainRecordInput | 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 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
 
@@ -156,7 +156,8 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
156
156
  DOMAIN_AUCTIONS: 'DOMAIN_AUCTIONS',
157
157
  CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
158
158
  QUADERNO_TAXES: 'QUADERNO_TAXES',
159
- ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK'
159
+ ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
160
+ BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL'
160
161
  } as const;
161
162
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
162
163
 
@@ -162,7 +162,8 @@ export const PrivateAccountGetMeResponseEnabledFeaturesEnum = {
162
162
  DOMAIN_AUCTIONS: 'DOMAIN_AUCTIONS',
163
163
  CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
164
164
  QUADERNO_TAXES: 'QUADERNO_TAXES',
165
- ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK'
165
+ ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
166
+ BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL'
166
167
  } as const;
167
168
  export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
168
169
 
@@ -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
+