@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.
- 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/DomainSellerDto.d.ts +6 -0
- package/dist/models/DomainSellerDto.js +4 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/LandingPageInput.d.ts +6 -0
- package/dist/models/LandingPageInput.js +2 -0
- package/dist/models/LandingPageSettingsDto.d.ts +6 -0
- package/dist/models/LandingPageSettingsDto.js +4 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- 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/DomainSellerDto.ts +9 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/LandingPageInput.ts +8 -0
- package/src/models/LandingPageSettingsDto.ts +9 -0
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- 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
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AddSubscriptionDomainRecordInput,
|
|
18
19
|
AuctionBidInput,
|
|
19
20
|
AuctionBuyerDto,
|
|
20
21
|
BadRequestException,
|
|
@@ -24,6 +25,7 @@ import type {
|
|
|
24
25
|
BulkMarkBuyerNotificationsAsReadInputDto,
|
|
25
26
|
BuyerAccessTokenDto,
|
|
26
27
|
BuyerAuctionDetailDto,
|
|
28
|
+
BuyerDomainRecordsDto,
|
|
27
29
|
BuyerDomainTransferAuthCodeDto,
|
|
28
30
|
BuyerNotificationDto,
|
|
29
31
|
BuyerNotificationSettingsDto,
|
|
@@ -44,17 +46,22 @@ import type {
|
|
|
44
46
|
PutBuyerLeadOfferInput,
|
|
45
47
|
RegisterAuctionBuyerPhoneInput,
|
|
46
48
|
RegisterInput,
|
|
49
|
+
RemoveSubscriptionDomainRecordInput,
|
|
47
50
|
SetDomainTransferConfirmationInput,
|
|
48
51
|
StoreBuyerLocaleInput,
|
|
49
52
|
UpdateAuctionMuteStatusInput,
|
|
50
53
|
UpdateBuyerDomainTransferIpsTagInputDto,
|
|
51
54
|
UpdateBuyerNotificationSettingsInput,
|
|
52
55
|
UpdateLeadMuteStatusForBuyerInput,
|
|
56
|
+
UpdateSubscriptionDomainNameserversInput,
|
|
57
|
+
UpdateSubscriptionDomainRecordInput,
|
|
53
58
|
UpdateTaskMuteStatusForBuyerInput,
|
|
54
59
|
ValidationException,
|
|
55
60
|
VerifyPhoneOtpInput,
|
|
56
61
|
} from '../models/index';
|
|
57
62
|
import {
|
|
63
|
+
AddSubscriptionDomainRecordInputFromJSON,
|
|
64
|
+
AddSubscriptionDomainRecordInputToJSON,
|
|
58
65
|
AuctionBidInputFromJSON,
|
|
59
66
|
AuctionBidInputToJSON,
|
|
60
67
|
AuctionBuyerDtoFromJSON,
|
|
@@ -73,6 +80,8 @@ import {
|
|
|
73
80
|
BuyerAccessTokenDtoToJSON,
|
|
74
81
|
BuyerAuctionDetailDtoFromJSON,
|
|
75
82
|
BuyerAuctionDetailDtoToJSON,
|
|
83
|
+
BuyerDomainRecordsDtoFromJSON,
|
|
84
|
+
BuyerDomainRecordsDtoToJSON,
|
|
76
85
|
BuyerDomainTransferAuthCodeDtoFromJSON,
|
|
77
86
|
BuyerDomainTransferAuthCodeDtoToJSON,
|
|
78
87
|
BuyerNotificationDtoFromJSON,
|
|
@@ -113,6 +122,8 @@ import {
|
|
|
113
122
|
RegisterAuctionBuyerPhoneInputToJSON,
|
|
114
123
|
RegisterInputFromJSON,
|
|
115
124
|
RegisterInputToJSON,
|
|
125
|
+
RemoveSubscriptionDomainRecordInputFromJSON,
|
|
126
|
+
RemoveSubscriptionDomainRecordInputToJSON,
|
|
116
127
|
SetDomainTransferConfirmationInputFromJSON,
|
|
117
128
|
SetDomainTransferConfirmationInputToJSON,
|
|
118
129
|
StoreBuyerLocaleInputFromJSON,
|
|
@@ -125,6 +136,10 @@ import {
|
|
|
125
136
|
UpdateBuyerNotificationSettingsInputToJSON,
|
|
126
137
|
UpdateLeadMuteStatusForBuyerInputFromJSON,
|
|
127
138
|
UpdateLeadMuteStatusForBuyerInputToJSON,
|
|
139
|
+
UpdateSubscriptionDomainNameserversInputFromJSON,
|
|
140
|
+
UpdateSubscriptionDomainNameserversInputToJSON,
|
|
141
|
+
UpdateSubscriptionDomainRecordInputFromJSON,
|
|
142
|
+
UpdateSubscriptionDomainRecordInputToJSON,
|
|
128
143
|
UpdateTaskMuteStatusForBuyerInputFromJSON,
|
|
129
144
|
UpdateTaskMuteStatusForBuyerInputToJSON,
|
|
130
145
|
ValidationExceptionFromJSON,
|
|
@@ -137,6 +152,11 @@ export interface BuyersApiAcceptBuyerLeadOfferRequest {
|
|
|
137
152
|
leadId: string;
|
|
138
153
|
}
|
|
139
154
|
|
|
155
|
+
export interface BuyersApiAddSubscriptionDomainRecordRequest {
|
|
156
|
+
subscriptionId: string;
|
|
157
|
+
addSubscriptionDomainRecordInput: AddSubscriptionDomainRecordInput;
|
|
158
|
+
}
|
|
159
|
+
|
|
140
160
|
export interface BuyersApiBatchVerifyBuyerLeadsRequest {
|
|
141
161
|
batchVerifyBuyerLeadsInput: BatchVerifyBuyerLeadsInput;
|
|
142
162
|
}
|
|
@@ -232,6 +252,10 @@ export interface BuyersApiGetBuyerTransfersRequest {
|
|
|
232
252
|
sortBy?: Array<string>;
|
|
233
253
|
}
|
|
234
254
|
|
|
255
|
+
export interface BuyersApiGetDomainRecordsBySubscriptionIdRequest {
|
|
256
|
+
subscriptionId: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
235
259
|
export interface BuyersApiGetTransferAuthCodeRequest {
|
|
236
260
|
transferId: string;
|
|
237
261
|
}
|
|
@@ -261,6 +285,11 @@ export interface BuyersApiRegisterPhoneRequest {
|
|
|
261
285
|
registerAuctionBuyerPhoneInput: RegisterAuctionBuyerPhoneInput;
|
|
262
286
|
}
|
|
263
287
|
|
|
288
|
+
export interface BuyersApiRemoveSubscriptionDomainRecordRequest {
|
|
289
|
+
subscriptionId: string;
|
|
290
|
+
removeSubscriptionDomainRecordInput: RemoveSubscriptionDomainRecordInput;
|
|
291
|
+
}
|
|
292
|
+
|
|
264
293
|
export interface BuyersApiRevokeScheduledSubscriptionCancellationRequest {
|
|
265
294
|
subscriptionId: string;
|
|
266
295
|
}
|
|
@@ -288,6 +317,16 @@ export interface BuyersApiUpdateLeadMuteStatusForBuyerRequest {
|
|
|
288
317
|
updateLeadMuteStatusForBuyerInput: UpdateLeadMuteStatusForBuyerInput;
|
|
289
318
|
}
|
|
290
319
|
|
|
320
|
+
export interface BuyersApiUpdateSubscriptionDomainNameserversRequest {
|
|
321
|
+
subscriptionId: string;
|
|
322
|
+
updateSubscriptionDomainNameserversInput: UpdateSubscriptionDomainNameserversInput;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export interface BuyersApiUpdateSubscriptionDomainRecordRequest {
|
|
326
|
+
subscriptionId: string;
|
|
327
|
+
updateSubscriptionDomainRecordInput: UpdateSubscriptionDomainRecordInput;
|
|
328
|
+
}
|
|
329
|
+
|
|
291
330
|
export interface BuyersApiUpdateTaskMuteStatusForBuyerRequest {
|
|
292
331
|
taskId: string;
|
|
293
332
|
updateTaskMuteStatusForBuyerInput: UpdateTaskMuteStatusForBuyerInput;
|
|
@@ -346,6 +385,56 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
346
385
|
await this.acceptBuyerLeadOfferRaw(requestParameters, initOverrides);
|
|
347
386
|
}
|
|
348
387
|
|
|
388
|
+
/**
|
|
389
|
+
*
|
|
390
|
+
*/
|
|
391
|
+
async addSubscriptionDomainRecordRaw(requestParameters: BuyersApiAddSubscriptionDomainRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
392
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
393
|
+
throw new runtime.RequiredError(
|
|
394
|
+
'subscriptionId',
|
|
395
|
+
'Required parameter "subscriptionId" was null or undefined when calling addSubscriptionDomainRecord().'
|
|
396
|
+
);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
if (requestParameters['addSubscriptionDomainRecordInput'] == null) {
|
|
400
|
+
throw new runtime.RequiredError(
|
|
401
|
+
'addSubscriptionDomainRecordInput',
|
|
402
|
+
'Required parameter "addSubscriptionDomainRecordInput" was null or undefined when calling addSubscriptionDomainRecord().'
|
|
403
|
+
);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
const queryParameters: any = {};
|
|
407
|
+
|
|
408
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
409
|
+
|
|
410
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
411
|
+
|
|
412
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
413
|
+
const token = this.configuration.accessToken;
|
|
414
|
+
const tokenString = await token("bearer", []);
|
|
415
|
+
|
|
416
|
+
if (tokenString) {
|
|
417
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
const response = await this.request({
|
|
421
|
+
path: `/buyers/private/subscriptions/{subscriptionId}/domain-records`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
422
|
+
method: 'POST',
|
|
423
|
+
headers: headerParameters,
|
|
424
|
+
query: queryParameters,
|
|
425
|
+
body: AddSubscriptionDomainRecordInputToJSON(requestParameters['addSubscriptionDomainRecordInput']),
|
|
426
|
+
}, initOverrides);
|
|
427
|
+
|
|
428
|
+
return new runtime.VoidApiResponse(response);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
*
|
|
433
|
+
*/
|
|
434
|
+
async addSubscriptionDomainRecord(requestParameters: BuyersApiAddSubscriptionDomainRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
435
|
+
await this.addSubscriptionDomainRecordRaw(requestParameters, initOverrides);
|
|
436
|
+
}
|
|
437
|
+
|
|
349
438
|
/**
|
|
350
439
|
*
|
|
351
440
|
*/
|
|
@@ -1349,6 +1438,47 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1349
1438
|
return await response.value();
|
|
1350
1439
|
}
|
|
1351
1440
|
|
|
1441
|
+
/**
|
|
1442
|
+
*
|
|
1443
|
+
*/
|
|
1444
|
+
async getDomainRecordsBySubscriptionIdRaw(requestParameters: BuyersApiGetDomainRecordsBySubscriptionIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerDomainRecordsDto>> {
|
|
1445
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
1446
|
+
throw new runtime.RequiredError(
|
|
1447
|
+
'subscriptionId',
|
|
1448
|
+
'Required parameter "subscriptionId" was null or undefined when calling getDomainRecordsBySubscriptionId().'
|
|
1449
|
+
);
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
const queryParameters: any = {};
|
|
1453
|
+
|
|
1454
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1455
|
+
|
|
1456
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1457
|
+
const token = this.configuration.accessToken;
|
|
1458
|
+
const tokenString = await token("bearer", []);
|
|
1459
|
+
|
|
1460
|
+
if (tokenString) {
|
|
1461
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
const response = await this.request({
|
|
1465
|
+
path: `/buyers/private/subscriptions/{subscriptionId}/domain-records`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
1466
|
+
method: 'GET',
|
|
1467
|
+
headers: headerParameters,
|
|
1468
|
+
query: queryParameters,
|
|
1469
|
+
}, initOverrides);
|
|
1470
|
+
|
|
1471
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BuyerDomainRecordsDtoFromJSON(jsonValue));
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
*
|
|
1476
|
+
*/
|
|
1477
|
+
async getDomainRecordsBySubscriptionId(requestParameters: BuyersApiGetDomainRecordsBySubscriptionIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerDomainRecordsDto> {
|
|
1478
|
+
const response = await this.getDomainRecordsBySubscriptionIdRaw(requestParameters, initOverrides);
|
|
1479
|
+
return await response.value();
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1352
1482
|
/**
|
|
1353
1483
|
*
|
|
1354
1484
|
*/
|
|
@@ -1660,6 +1790,56 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1660
1790
|
await this.registerPhoneRaw(requestParameters, initOverrides);
|
|
1661
1791
|
}
|
|
1662
1792
|
|
|
1793
|
+
/**
|
|
1794
|
+
*
|
|
1795
|
+
*/
|
|
1796
|
+
async removeSubscriptionDomainRecordRaw(requestParameters: BuyersApiRemoveSubscriptionDomainRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1797
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
1798
|
+
throw new runtime.RequiredError(
|
|
1799
|
+
'subscriptionId',
|
|
1800
|
+
'Required parameter "subscriptionId" was null or undefined when calling removeSubscriptionDomainRecord().'
|
|
1801
|
+
);
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
if (requestParameters['removeSubscriptionDomainRecordInput'] == null) {
|
|
1805
|
+
throw new runtime.RequiredError(
|
|
1806
|
+
'removeSubscriptionDomainRecordInput',
|
|
1807
|
+
'Required parameter "removeSubscriptionDomainRecordInput" was null or undefined when calling removeSubscriptionDomainRecord().'
|
|
1808
|
+
);
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1811
|
+
const queryParameters: any = {};
|
|
1812
|
+
|
|
1813
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1814
|
+
|
|
1815
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1816
|
+
|
|
1817
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1818
|
+
const token = this.configuration.accessToken;
|
|
1819
|
+
const tokenString = await token("bearer", []);
|
|
1820
|
+
|
|
1821
|
+
if (tokenString) {
|
|
1822
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
const response = await this.request({
|
|
1826
|
+
path: `/buyers/private/subscriptions/{subscriptionId}/domain-records`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
1827
|
+
method: 'DELETE',
|
|
1828
|
+
headers: headerParameters,
|
|
1829
|
+
query: queryParameters,
|
|
1830
|
+
body: RemoveSubscriptionDomainRecordInputToJSON(requestParameters['removeSubscriptionDomainRecordInput']),
|
|
1831
|
+
}, initOverrides);
|
|
1832
|
+
|
|
1833
|
+
return new runtime.VoidApiResponse(response);
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
*
|
|
1838
|
+
*/
|
|
1839
|
+
async removeSubscriptionDomainRecord(requestParameters: BuyersApiRemoveSubscriptionDomainRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1840
|
+
await this.removeSubscriptionDomainRecordRaw(requestParameters, initOverrides);
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1663
1843
|
/**
|
|
1664
1844
|
*
|
|
1665
1845
|
*/
|
|
@@ -1936,6 +2116,106 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1936
2116
|
await this.updateLeadMuteStatusForBuyerRaw(requestParameters, initOverrides);
|
|
1937
2117
|
}
|
|
1938
2118
|
|
|
2119
|
+
/**
|
|
2120
|
+
*
|
|
2121
|
+
*/
|
|
2122
|
+
async updateSubscriptionDomainNameserversRaw(requestParameters: BuyersApiUpdateSubscriptionDomainNameserversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
2123
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
2124
|
+
throw new runtime.RequiredError(
|
|
2125
|
+
'subscriptionId',
|
|
2126
|
+
'Required parameter "subscriptionId" was null or undefined when calling updateSubscriptionDomainNameservers().'
|
|
2127
|
+
);
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
if (requestParameters['updateSubscriptionDomainNameserversInput'] == null) {
|
|
2131
|
+
throw new runtime.RequiredError(
|
|
2132
|
+
'updateSubscriptionDomainNameserversInput',
|
|
2133
|
+
'Required parameter "updateSubscriptionDomainNameserversInput" was null or undefined when calling updateSubscriptionDomainNameservers().'
|
|
2134
|
+
);
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
const queryParameters: any = {};
|
|
2138
|
+
|
|
2139
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2140
|
+
|
|
2141
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2142
|
+
|
|
2143
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2144
|
+
const token = this.configuration.accessToken;
|
|
2145
|
+
const tokenString = await token("bearer", []);
|
|
2146
|
+
|
|
2147
|
+
if (tokenString) {
|
|
2148
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
const response = await this.request({
|
|
2152
|
+
path: `/buyers/private/subscriptions/{subscriptionId}/nameservers`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
2153
|
+
method: 'PUT',
|
|
2154
|
+
headers: headerParameters,
|
|
2155
|
+
query: queryParameters,
|
|
2156
|
+
body: UpdateSubscriptionDomainNameserversInputToJSON(requestParameters['updateSubscriptionDomainNameserversInput']),
|
|
2157
|
+
}, initOverrides);
|
|
2158
|
+
|
|
2159
|
+
return new runtime.VoidApiResponse(response);
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
/**
|
|
2163
|
+
*
|
|
2164
|
+
*/
|
|
2165
|
+
async updateSubscriptionDomainNameservers(requestParameters: BuyersApiUpdateSubscriptionDomainNameserversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
2166
|
+
await this.updateSubscriptionDomainNameserversRaw(requestParameters, initOverrides);
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
/**
|
|
2170
|
+
*
|
|
2171
|
+
*/
|
|
2172
|
+
async updateSubscriptionDomainRecordRaw(requestParameters: BuyersApiUpdateSubscriptionDomainRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
2173
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
2174
|
+
throw new runtime.RequiredError(
|
|
2175
|
+
'subscriptionId',
|
|
2176
|
+
'Required parameter "subscriptionId" was null or undefined when calling updateSubscriptionDomainRecord().'
|
|
2177
|
+
);
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
if (requestParameters['updateSubscriptionDomainRecordInput'] == null) {
|
|
2181
|
+
throw new runtime.RequiredError(
|
|
2182
|
+
'updateSubscriptionDomainRecordInput',
|
|
2183
|
+
'Required parameter "updateSubscriptionDomainRecordInput" was null or undefined when calling updateSubscriptionDomainRecord().'
|
|
2184
|
+
);
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
const queryParameters: any = {};
|
|
2188
|
+
|
|
2189
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2190
|
+
|
|
2191
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2192
|
+
|
|
2193
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2194
|
+
const token = this.configuration.accessToken;
|
|
2195
|
+
const tokenString = await token("bearer", []);
|
|
2196
|
+
|
|
2197
|
+
if (tokenString) {
|
|
2198
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
const response = await this.request({
|
|
2202
|
+
path: `/buyers/private/subscriptions/{subscriptionId}/domain-records`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
2203
|
+
method: 'PATCH',
|
|
2204
|
+
headers: headerParameters,
|
|
2205
|
+
query: queryParameters,
|
|
2206
|
+
body: UpdateSubscriptionDomainRecordInputToJSON(requestParameters['updateSubscriptionDomainRecordInput']),
|
|
2207
|
+
}, initOverrides);
|
|
2208
|
+
|
|
2209
|
+
return new runtime.VoidApiResponse(response);
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
/**
|
|
2213
|
+
*
|
|
2214
|
+
*/
|
|
2215
|
+
async updateSubscriptionDomainRecord(requestParameters: BuyersApiUpdateSubscriptionDomainRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
2216
|
+
await this.updateSubscriptionDomainRecordRaw(requestParameters, initOverrides);
|
|
2217
|
+
}
|
|
2218
|
+
|
|
1939
2219
|
/**
|
|
1940
2220
|
*
|
|
1941
2221
|
*/
|
|
@@ -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
|
+
|