@randock/nameshift-api-client 0.0.380 → 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.
Files changed (51) 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/DomainSellerDto.d.ts +6 -0
  16. package/dist/models/DomainSellerDto.js +4 -0
  17. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  18. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  19. package/dist/models/LandingPageInput.d.ts +6 -0
  20. package/dist/models/LandingPageInput.js +2 -0
  21. package/dist/models/LandingPageSettingsDto.d.ts +6 -0
  22. package/dist/models/LandingPageSettingsDto.js +4 -0
  23. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  24. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  25. package/dist/models/RemoveSubscriptionDomainRecordInput.d.ts +56 -0
  26. package/dist/models/RemoveSubscriptionDomainRecordInput.js +65 -0
  27. package/dist/models/SubscriptionDomainRecordInput.d.ts +56 -0
  28. package/dist/models/SubscriptionDomainRecordInput.js +65 -0
  29. package/dist/models/UpdateSubscriptionDomainNameserversInput.d.ts +32 -0
  30. package/dist/models/UpdateSubscriptionDomainNameserversInput.js +51 -0
  31. package/dist/models/UpdateSubscriptionDomainRecordInput.d.ts +39 -0
  32. package/dist/models/UpdateSubscriptionDomainRecordInput.js +56 -0
  33. package/dist/models/index.d.ts +8 -0
  34. package/dist/models/index.js +8 -0
  35. package/package.json +1 -1
  36. package/src/apis/BuyersApi.ts +280 -0
  37. package/src/models/AddSubscriptionDomainRecordInput.ts +101 -0
  38. package/src/models/BuyerDomainNameserverItemDto.ts +66 -0
  39. package/src/models/BuyerDomainRecordItemDto.ts +102 -0
  40. package/src/models/BuyerDomainRecordsDto.ts +99 -0
  41. package/src/models/BuyerSubscriptionListItemDto.ts +9 -0
  42. package/src/models/DomainSellerDto.ts +9 -0
  43. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  44. package/src/models/LandingPageInput.ts +8 -0
  45. package/src/models/LandingPageSettingsDto.ts +9 -0
  46. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  47. package/src/models/RemoveSubscriptionDomainRecordInput.ts +101 -0
  48. package/src/models/SubscriptionDomainRecordInput.ts +101 -0
  49. package/src/models/UpdateSubscriptionDomainNameserversInput.ts +66 -0
  50. package/src/models/UpdateSubscriptionDomainRecordInput.ts +83 -0
  51. package/src/models/index.ts +8 -0
@@ -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
 
@@ -25,6 +25,12 @@ export interface DomainSellerDto {
25
25
  * @memberof DomainSellerDto
26
26
  */
27
27
  id: string;
28
+ /**
29
+ * The seller landing page external link
30
+ * @type {string}
31
+ * @memberof DomainSellerDto
32
+ */
33
+ externalLink: string | null;
28
34
  /**
29
35
  * The domain seller account creation date
30
36
  * @type {Date}
@@ -74,6 +80,7 @@ export interface DomainSellerDto {
74
80
  */
75
81
  export function instanceOfDomainSellerDto(value: object): value is DomainSellerDto {
76
82
  if (!('id' in value) || value['id'] === undefined) return false;
83
+ if (!('externalLink' in value) || value['externalLink'] === undefined) return false;
77
84
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
78
85
  if (!('anonymous' in value) || value['anonymous'] === undefined) return false;
79
86
  if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
@@ -95,6 +102,7 @@ export function DomainSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
95
102
  return {
96
103
 
97
104
  'id': json['id'],
105
+ 'externalLink': json['externalLink'],
98
106
  'createdAt': (new Date(json['createdAt'])),
99
107
  'anonymous': json['anonymous'],
100
108
  'lastOnline': (json['lastOnline'] == null ? null : new Date(json['lastOnline'])),
@@ -117,6 +125,7 @@ export function DomainSellerDtoToJSONTyped(value?: DomainSellerDto | null, ignor
117
125
  return {
118
126
 
119
127
  'id': value['id'],
128
+ 'externalLink': value['externalLink'],
120
129
  'createdAt': ((value['createdAt']).toISOString()),
121
130
  'anonymous': value['anonymous'],
122
131
  'lastOnline': (value['lastOnline'] == null ? null : (value['lastOnline'] as any).toISOString()),
@@ -155,7 +155,8 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
155
155
  NOTIFICATIONS_MANAGER: 'NOTIFICATIONS_MANAGER',
156
156
  DOMAIN_AUCTIONS: 'DOMAIN_AUCTIONS',
157
157
  CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
158
- QUADERNO_TAXES: 'QUADERNO_TAXES'
158
+ QUADERNO_TAXES: 'QUADERNO_TAXES',
159
+ ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK'
159
160
  } as const;
160
161
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
161
162
 
@@ -85,6 +85,12 @@ export interface LandingPageInput {
85
85
  * @memberof LandingPageInput
86
86
  */
87
87
  requestLeadBuyerPhoneNumber?: LandingPageInputRequestLeadBuyerPhoneNumberEnum | null;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof LandingPageInput
92
+ */
93
+ externalLink?: string | null;
88
94
  }
89
95
 
90
96
 
@@ -127,6 +133,7 @@ export function LandingPageInputFromJSONTyped(json: any, ignoreDiscriminator: bo
127
133
  'minDomainAuthority': json['minDomainAuthority'] == null ? undefined : json['minDomainAuthority'],
128
134
  'requestLeadBuyerCompanyName': json['requestLeadBuyerCompanyName'] == null ? undefined : json['requestLeadBuyerCompanyName'],
129
135
  'requestLeadBuyerPhoneNumber': json['requestLeadBuyerPhoneNumber'] == null ? undefined : json['requestLeadBuyerPhoneNumber'],
136
+ 'externalLink': json['externalLink'] == null ? undefined : json['externalLink'],
130
137
  };
131
138
  }
132
139
 
@@ -152,6 +159,7 @@ export function LandingPageInputToJSONTyped(value?: LandingPageInput | null, ign
152
159
  'minDomainAuthority': value['minDomainAuthority'],
153
160
  'requestLeadBuyerCompanyName': value['requestLeadBuyerCompanyName'],
154
161
  'requestLeadBuyerPhoneNumber': value['requestLeadBuyerPhoneNumber'],
162
+ 'externalLink': value['externalLink'],
155
163
  };
156
164
  }
157
165
 
@@ -85,6 +85,12 @@ export interface LandingPageSettingsDto {
85
85
  * @memberof LandingPageSettingsDto
86
86
  */
87
87
  requestLeadBuyerPhoneNumber: LandingPageSettingsDtoRequestLeadBuyerPhoneNumberEnum | null;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof LandingPageSettingsDto
92
+ */
93
+ externalLink: string | null;
88
94
  }
89
95
 
90
96
 
@@ -114,6 +120,7 @@ export function instanceOfLandingPageSettingsDto(value: object): value is Landin
114
120
  if (!('dnssec' in value) || value['dnssec'] === undefined) return false;
115
121
  if (!('requestLeadBuyerCompanyName' in value) || value['requestLeadBuyerCompanyName'] === undefined) return false;
116
122
  if (!('requestLeadBuyerPhoneNumber' in value) || value['requestLeadBuyerPhoneNumber'] === undefined) return false;
123
+ if (!('externalLink' in value) || value['externalLink'] === undefined) return false;
117
124
  return true;
118
125
  }
119
126
 
@@ -138,6 +145,7 @@ export function LandingPageSettingsDtoFromJSONTyped(json: any, ignoreDiscriminat
138
145
  'dnssec': json['dnssec'],
139
146
  'requestLeadBuyerCompanyName': json['requestLeadBuyerCompanyName'],
140
147
  'requestLeadBuyerPhoneNumber': json['requestLeadBuyerPhoneNumber'],
148
+ 'externalLink': json['externalLink'],
141
149
  };
142
150
  }
143
151
 
@@ -163,6 +171,7 @@ export function LandingPageSettingsDtoToJSONTyped(value?: LandingPageSettingsDto
163
171
  'dnssec': value['dnssec'],
164
172
  'requestLeadBuyerCompanyName': value['requestLeadBuyerCompanyName'],
165
173
  'requestLeadBuyerPhoneNumber': value['requestLeadBuyerPhoneNumber'],
174
+ 'externalLink': value['externalLink'],
166
175
  };
167
176
  }
168
177
 
@@ -161,7 +161,8 @@ export const PrivateAccountGetMeResponseEnabledFeaturesEnum = {
161
161
  NOTIFICATIONS_MANAGER: 'NOTIFICATIONS_MANAGER',
162
162
  DOMAIN_AUCTIONS: 'DOMAIN_AUCTIONS',
163
163
  CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
164
- QUADERNO_TAXES: 'QUADERNO_TAXES'
164
+ QUADERNO_TAXES: 'QUADERNO_TAXES',
165
+ ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK'
165
166
  } as const;
166
167
  export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
167
168
 
@@ -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
+
@@ -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';