@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
package/.openapi-generator/FILES
CHANGED
|
@@ -65,6 +65,7 @@ src/models/AccountSettingsLeaseToOwnConfigurationDto.ts
|
|
|
65
65
|
src/models/AccountSettingsRentConfigurationDto.ts
|
|
66
66
|
src/models/AccountSettingsSidnDto.ts
|
|
67
67
|
src/models/AccountsStatsDto.ts
|
|
68
|
+
src/models/AddSubscriptionDomainRecordInput.ts
|
|
68
69
|
src/models/AddressDto.ts
|
|
69
70
|
src/models/AdminAccountCommissionByDateRangeInput.ts
|
|
70
71
|
src/models/AdminAccountLoginDto.ts
|
|
@@ -124,6 +125,9 @@ src/models/BuyerAuctionDetailDtoDomain.ts
|
|
|
124
125
|
src/models/BuyerAuctionListItemDto.ts
|
|
125
126
|
src/models/BuyerAuctionListItemDtoDomainInformation.ts
|
|
126
127
|
src/models/BuyerAuctionListItemDtoSellerAccount.ts
|
|
128
|
+
src/models/BuyerDomainNameserverItemDto.ts
|
|
129
|
+
src/models/BuyerDomainRecordItemDto.ts
|
|
130
|
+
src/models/BuyerDomainRecordsDto.ts
|
|
127
131
|
src/models/BuyerDomainTransferAuthCodeDto.ts
|
|
128
132
|
src/models/BuyerDomainTransferListItemDomainDto.ts
|
|
129
133
|
src/models/BuyerDomainTransferListItemDto.ts
|
|
@@ -355,6 +359,7 @@ src/models/RegisterAuctionBuyerPhoneInput.ts
|
|
|
355
359
|
src/models/RegisterInput.ts
|
|
356
360
|
src/models/RelatedDomainsDto.ts
|
|
357
361
|
src/models/RelatedSellerDomain.ts
|
|
362
|
+
src/models/RemoveSubscriptionDomainRecordInput.ts
|
|
358
363
|
src/models/RentConfigurationDto.ts
|
|
359
364
|
src/models/RentConfigurationInput.ts
|
|
360
365
|
src/models/RentConfigurationPresetsDto.ts
|
|
@@ -413,6 +418,7 @@ src/models/SubscriptionDetailsDomainSellerDto.ts
|
|
|
413
418
|
src/models/SubscriptionDetailsDomainSellerUserDto.ts
|
|
414
419
|
src/models/SubscriptionDetailsDto.ts
|
|
415
420
|
src/models/SubscriptionDomainDto.ts
|
|
421
|
+
src/models/SubscriptionDomainRecordInput.ts
|
|
416
422
|
src/models/SubscriptionDto.ts
|
|
417
423
|
src/models/SubscriptionLeaseToOwnConfigurationDto.ts
|
|
418
424
|
src/models/SubscriptionListItemBillingPeriodicityDto.ts
|
|
@@ -445,6 +451,8 @@ src/models/UpdateLeaseToOwnConfigurationDto.ts
|
|
|
445
451
|
src/models/UpdateOrderInput.ts
|
|
446
452
|
src/models/UpdateRentConfigurationDto.ts
|
|
447
453
|
src/models/UpdateSubscriptionBillingPeriodicityInput.ts
|
|
454
|
+
src/models/UpdateSubscriptionDomainNameserversInput.ts
|
|
455
|
+
src/models/UpdateSubscriptionDomainRecordInput.ts
|
|
448
456
|
src/models/UpdateSubscriptionInput.ts
|
|
449
457
|
src/models/UpdateTaskMuteStatusForBuyerInput.ts
|
|
450
458
|
src/models/UpdateTaskMuteStatusInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.382
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.382 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
9aed4cbd1afbedeab8e9f9a66dd78f5cb15feb38815b68c6e017f30beab6358c11f10c5fd5497414c9588b23bc28f631
|
package/dist/apis/BuyersApi.d.ts
CHANGED
|
@@ -10,10 +10,14 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AuctionBidInput, AuctionBuyerDto, BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BulkMarkBuyerNotificationsAsReadInputDto, BuyerAccessTokenDto, BuyerAuctionDetailDto, BuyerDomainTransferAuthCodeDto, BuyerNotificationDto, BuyerNotificationSettingsDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerAuctions200Response, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadMessageDto, ListBuyerNotifications200Response, ObjectId, PutBuyerLeadOfferInput, RegisterAuctionBuyerPhoneInput, RegisterInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateAuctionMuteStatusInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateBuyerNotificationSettingsInput, UpdateLeadMuteStatusForBuyerInput, UpdateTaskMuteStatusForBuyerInput, VerifyPhoneOtpInput } from '../models/index';
|
|
13
|
+
import type { AddSubscriptionDomainRecordInput, AuctionBidInput, AuctionBuyerDto, BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BulkMarkBuyerNotificationsAsReadInputDto, BuyerAccessTokenDto, BuyerAuctionDetailDto, BuyerDomainRecordsDto, BuyerDomainTransferAuthCodeDto, BuyerNotificationDto, BuyerNotificationSettingsDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerAuctions200Response, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadMessageDto, ListBuyerNotifications200Response, ObjectId, PutBuyerLeadOfferInput, RegisterAuctionBuyerPhoneInput, RegisterInput, RemoveSubscriptionDomainRecordInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateAuctionMuteStatusInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateBuyerNotificationSettingsInput, UpdateLeadMuteStatusForBuyerInput, UpdateSubscriptionDomainNameserversInput, UpdateSubscriptionDomainRecordInput, UpdateTaskMuteStatusForBuyerInput, VerifyPhoneOtpInput } from '../models/index';
|
|
14
14
|
export interface BuyersApiAcceptBuyerLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
17
|
+
export interface BuyersApiAddSubscriptionDomainRecordRequest {
|
|
18
|
+
subscriptionId: string;
|
|
19
|
+
addSubscriptionDomainRecordInput: AddSubscriptionDomainRecordInput;
|
|
20
|
+
}
|
|
17
21
|
export interface BuyersApiBatchVerifyBuyerLeadsRequest {
|
|
18
22
|
batchVerifyBuyerLeadsInput: BatchVerifyBuyerLeadsInput;
|
|
19
23
|
}
|
|
@@ -90,6 +94,9 @@ export interface BuyersApiGetBuyerTransfersRequest {
|
|
|
90
94
|
limit?: number;
|
|
91
95
|
sortBy?: Array<string>;
|
|
92
96
|
}
|
|
97
|
+
export interface BuyersApiGetDomainRecordsBySubscriptionIdRequest {
|
|
98
|
+
subscriptionId: string;
|
|
99
|
+
}
|
|
93
100
|
export interface BuyersApiGetTransferAuthCodeRequest {
|
|
94
101
|
transferId: string;
|
|
95
102
|
}
|
|
@@ -113,6 +120,10 @@ export interface BuyersApiRegisterRequest {
|
|
|
113
120
|
export interface BuyersApiRegisterPhoneRequest {
|
|
114
121
|
registerAuctionBuyerPhoneInput: RegisterAuctionBuyerPhoneInput;
|
|
115
122
|
}
|
|
123
|
+
export interface BuyersApiRemoveSubscriptionDomainRecordRequest {
|
|
124
|
+
subscriptionId: string;
|
|
125
|
+
removeSubscriptionDomainRecordInput: RemoveSubscriptionDomainRecordInput;
|
|
126
|
+
}
|
|
116
127
|
export interface BuyersApiRevokeScheduledSubscriptionCancellationRequest {
|
|
117
128
|
subscriptionId: string;
|
|
118
129
|
}
|
|
@@ -134,6 +145,14 @@ export interface BuyersApiUpdateLeadMuteStatusForBuyerRequest {
|
|
|
134
145
|
leadId: string;
|
|
135
146
|
updateLeadMuteStatusForBuyerInput: UpdateLeadMuteStatusForBuyerInput;
|
|
136
147
|
}
|
|
148
|
+
export interface BuyersApiUpdateSubscriptionDomainNameserversRequest {
|
|
149
|
+
subscriptionId: string;
|
|
150
|
+
updateSubscriptionDomainNameserversInput: UpdateSubscriptionDomainNameserversInput;
|
|
151
|
+
}
|
|
152
|
+
export interface BuyersApiUpdateSubscriptionDomainRecordRequest {
|
|
153
|
+
subscriptionId: string;
|
|
154
|
+
updateSubscriptionDomainRecordInput: UpdateSubscriptionDomainRecordInput;
|
|
155
|
+
}
|
|
137
156
|
export interface BuyersApiUpdateTaskMuteStatusForBuyerRequest {
|
|
138
157
|
taskId: string;
|
|
139
158
|
updateTaskMuteStatusForBuyerInput: UpdateTaskMuteStatusForBuyerInput;
|
|
@@ -156,6 +175,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
156
175
|
*
|
|
157
176
|
*/
|
|
158
177
|
acceptBuyerLeadOffer(requestParameters: BuyersApiAcceptBuyerLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
*/
|
|
181
|
+
addSubscriptionDomainRecordRaw(requestParameters: BuyersApiAddSubscriptionDomainRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
*/
|
|
185
|
+
addSubscriptionDomainRecord(requestParameters: BuyersApiAddSubscriptionDomainRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
159
186
|
/**
|
|
160
187
|
*
|
|
161
188
|
*/
|
|
@@ -344,6 +371,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
344
371
|
*
|
|
345
372
|
*/
|
|
346
373
|
getBuyerTransfers(requestParameters?: BuyersApiGetBuyerTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerTransfers200Response>;
|
|
374
|
+
/**
|
|
375
|
+
*
|
|
376
|
+
*/
|
|
377
|
+
getDomainRecordsBySubscriptionIdRaw(requestParameters: BuyersApiGetDomainRecordsBySubscriptionIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerDomainRecordsDto>>;
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
*/
|
|
381
|
+
getDomainRecordsBySubscriptionId(requestParameters: BuyersApiGetDomainRecordsBySubscriptionIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerDomainRecordsDto>;
|
|
347
382
|
/**
|
|
348
383
|
*
|
|
349
384
|
*/
|
|
@@ -400,6 +435,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
400
435
|
*
|
|
401
436
|
*/
|
|
402
437
|
registerPhone(requestParameters: BuyersApiRegisterPhoneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
438
|
+
/**
|
|
439
|
+
*
|
|
440
|
+
*/
|
|
441
|
+
removeSubscriptionDomainRecordRaw(requestParameters: BuyersApiRemoveSubscriptionDomainRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
442
|
+
/**
|
|
443
|
+
*
|
|
444
|
+
*/
|
|
445
|
+
removeSubscriptionDomainRecord(requestParameters: BuyersApiRemoveSubscriptionDomainRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
403
446
|
/**
|
|
404
447
|
*
|
|
405
448
|
*/
|
|
@@ -448,6 +491,22 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
448
491
|
*
|
|
449
492
|
*/
|
|
450
493
|
updateLeadMuteStatusForBuyer(requestParameters: BuyersApiUpdateLeadMuteStatusForBuyerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
494
|
+
/**
|
|
495
|
+
*
|
|
496
|
+
*/
|
|
497
|
+
updateSubscriptionDomainNameserversRaw(requestParameters: BuyersApiUpdateSubscriptionDomainNameserversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
498
|
+
/**
|
|
499
|
+
*
|
|
500
|
+
*/
|
|
501
|
+
updateSubscriptionDomainNameservers(requestParameters: BuyersApiUpdateSubscriptionDomainNameserversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
502
|
+
/**
|
|
503
|
+
*
|
|
504
|
+
*/
|
|
505
|
+
updateSubscriptionDomainRecordRaw(requestParameters: BuyersApiUpdateSubscriptionDomainRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
*/
|
|
509
|
+
updateSubscriptionDomainRecord(requestParameters: BuyersApiUpdateSubscriptionDomainRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
451
510
|
/**
|
|
452
511
|
*
|
|
453
512
|
*/
|
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -126,6 +126,62 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
126
126
|
});
|
|
127
127
|
});
|
|
128
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
BuyersApi.prototype.addSubscriptionDomainRecordRaw = function (requestParameters, initOverrides) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
134
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
135
|
+
return __generator(this, function (_a) {
|
|
136
|
+
switch (_a.label) {
|
|
137
|
+
case 0:
|
|
138
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
139
|
+
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling addSubscriptionDomainRecord().');
|
|
140
|
+
}
|
|
141
|
+
if (requestParameters['addSubscriptionDomainRecordInput'] == null) {
|
|
142
|
+
throw new runtime.RequiredError('addSubscriptionDomainRecordInput', 'Required parameter "addSubscriptionDomainRecordInput" was null or undefined when calling addSubscriptionDomainRecord().');
|
|
143
|
+
}
|
|
144
|
+
queryParameters = {};
|
|
145
|
+
headerParameters = {};
|
|
146
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
147
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
148
|
+
token = this.configuration.accessToken;
|
|
149
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
150
|
+
case 1:
|
|
151
|
+
tokenString = _a.sent();
|
|
152
|
+
if (tokenString) {
|
|
153
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
154
|
+
}
|
|
155
|
+
_a.label = 2;
|
|
156
|
+
case 2: return [4 /*yield*/, this.request({
|
|
157
|
+
path: "/buyers/private/subscriptions/{subscriptionId}/domain-records".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
158
|
+
method: 'POST',
|
|
159
|
+
headers: headerParameters,
|
|
160
|
+
query: queryParameters,
|
|
161
|
+
body: (0, index_1.AddSubscriptionDomainRecordInputToJSON)(requestParameters['addSubscriptionDomainRecordInput']),
|
|
162
|
+
}, initOverrides)];
|
|
163
|
+
case 3:
|
|
164
|
+
response = _a.sent();
|
|
165
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
*/
|
|
173
|
+
BuyersApi.prototype.addSubscriptionDomainRecord = function (requestParameters, initOverrides) {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
175
|
+
return __generator(this, function (_a) {
|
|
176
|
+
switch (_a.label) {
|
|
177
|
+
case 0: return [4 /*yield*/, this.addSubscriptionDomainRecordRaw(requestParameters, initOverrides)];
|
|
178
|
+
case 1:
|
|
179
|
+
_a.sent();
|
|
180
|
+
return [2 /*return*/];
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
};
|
|
129
185
|
/**
|
|
130
186
|
*
|
|
131
187
|
*/
|
|
@@ -1397,6 +1453,59 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
1397
1453
|
});
|
|
1398
1454
|
});
|
|
1399
1455
|
};
|
|
1456
|
+
/**
|
|
1457
|
+
*
|
|
1458
|
+
*/
|
|
1459
|
+
BuyersApi.prototype.getDomainRecordsBySubscriptionIdRaw = function (requestParameters, initOverrides) {
|
|
1460
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1461
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1462
|
+
return __generator(this, function (_a) {
|
|
1463
|
+
switch (_a.label) {
|
|
1464
|
+
case 0:
|
|
1465
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
1466
|
+
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling getDomainRecordsBySubscriptionId().');
|
|
1467
|
+
}
|
|
1468
|
+
queryParameters = {};
|
|
1469
|
+
headerParameters = {};
|
|
1470
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1471
|
+
token = this.configuration.accessToken;
|
|
1472
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1473
|
+
case 1:
|
|
1474
|
+
tokenString = _a.sent();
|
|
1475
|
+
if (tokenString) {
|
|
1476
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1477
|
+
}
|
|
1478
|
+
_a.label = 2;
|
|
1479
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1480
|
+
path: "/buyers/private/subscriptions/{subscriptionId}/domain-records".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
1481
|
+
method: 'GET',
|
|
1482
|
+
headers: headerParameters,
|
|
1483
|
+
query: queryParameters,
|
|
1484
|
+
}, initOverrides)];
|
|
1485
|
+
case 3:
|
|
1486
|
+
response = _a.sent();
|
|
1487
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerDomainRecordsDtoFromJSON)(jsonValue); })];
|
|
1488
|
+
}
|
|
1489
|
+
});
|
|
1490
|
+
});
|
|
1491
|
+
};
|
|
1492
|
+
/**
|
|
1493
|
+
*
|
|
1494
|
+
*/
|
|
1495
|
+
BuyersApi.prototype.getDomainRecordsBySubscriptionId = function (requestParameters, initOverrides) {
|
|
1496
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1497
|
+
var response;
|
|
1498
|
+
return __generator(this, function (_a) {
|
|
1499
|
+
switch (_a.label) {
|
|
1500
|
+
case 0: return [4 /*yield*/, this.getDomainRecordsBySubscriptionIdRaw(requestParameters, initOverrides)];
|
|
1501
|
+
case 1:
|
|
1502
|
+
response = _a.sent();
|
|
1503
|
+
return [4 /*yield*/, response.value()];
|
|
1504
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1505
|
+
}
|
|
1506
|
+
});
|
|
1507
|
+
});
|
|
1508
|
+
};
|
|
1400
1509
|
/**
|
|
1401
1510
|
*
|
|
1402
1511
|
*/
|
|
@@ -1781,6 +1890,62 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
1781
1890
|
});
|
|
1782
1891
|
});
|
|
1783
1892
|
};
|
|
1893
|
+
/**
|
|
1894
|
+
*
|
|
1895
|
+
*/
|
|
1896
|
+
BuyersApi.prototype.removeSubscriptionDomainRecordRaw = function (requestParameters, initOverrides) {
|
|
1897
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1898
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1899
|
+
return __generator(this, function (_a) {
|
|
1900
|
+
switch (_a.label) {
|
|
1901
|
+
case 0:
|
|
1902
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
1903
|
+
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling removeSubscriptionDomainRecord().');
|
|
1904
|
+
}
|
|
1905
|
+
if (requestParameters['removeSubscriptionDomainRecordInput'] == null) {
|
|
1906
|
+
throw new runtime.RequiredError('removeSubscriptionDomainRecordInput', 'Required parameter "removeSubscriptionDomainRecordInput" was null or undefined when calling removeSubscriptionDomainRecord().');
|
|
1907
|
+
}
|
|
1908
|
+
queryParameters = {};
|
|
1909
|
+
headerParameters = {};
|
|
1910
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1911
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1912
|
+
token = this.configuration.accessToken;
|
|
1913
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1914
|
+
case 1:
|
|
1915
|
+
tokenString = _a.sent();
|
|
1916
|
+
if (tokenString) {
|
|
1917
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1918
|
+
}
|
|
1919
|
+
_a.label = 2;
|
|
1920
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1921
|
+
path: "/buyers/private/subscriptions/{subscriptionId}/domain-records".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
1922
|
+
method: 'DELETE',
|
|
1923
|
+
headers: headerParameters,
|
|
1924
|
+
query: queryParameters,
|
|
1925
|
+
body: (0, index_1.RemoveSubscriptionDomainRecordInputToJSON)(requestParameters['removeSubscriptionDomainRecordInput']),
|
|
1926
|
+
}, initOverrides)];
|
|
1927
|
+
case 3:
|
|
1928
|
+
response = _a.sent();
|
|
1929
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1930
|
+
}
|
|
1931
|
+
});
|
|
1932
|
+
});
|
|
1933
|
+
};
|
|
1934
|
+
/**
|
|
1935
|
+
*
|
|
1936
|
+
*/
|
|
1937
|
+
BuyersApi.prototype.removeSubscriptionDomainRecord = function (requestParameters, initOverrides) {
|
|
1938
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1939
|
+
return __generator(this, function (_a) {
|
|
1940
|
+
switch (_a.label) {
|
|
1941
|
+
case 0: return [4 /*yield*/, this.removeSubscriptionDomainRecordRaw(requestParameters, initOverrides)];
|
|
1942
|
+
case 1:
|
|
1943
|
+
_a.sent();
|
|
1944
|
+
return [2 /*return*/];
|
|
1945
|
+
}
|
|
1946
|
+
});
|
|
1947
|
+
});
|
|
1948
|
+
};
|
|
1784
1949
|
/**
|
|
1785
1950
|
*
|
|
1786
1951
|
*/
|
|
@@ -2106,6 +2271,118 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
2106
2271
|
});
|
|
2107
2272
|
});
|
|
2108
2273
|
};
|
|
2274
|
+
/**
|
|
2275
|
+
*
|
|
2276
|
+
*/
|
|
2277
|
+
BuyersApi.prototype.updateSubscriptionDomainNameserversRaw = function (requestParameters, initOverrides) {
|
|
2278
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2279
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
2280
|
+
return __generator(this, function (_a) {
|
|
2281
|
+
switch (_a.label) {
|
|
2282
|
+
case 0:
|
|
2283
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
2284
|
+
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling updateSubscriptionDomainNameservers().');
|
|
2285
|
+
}
|
|
2286
|
+
if (requestParameters['updateSubscriptionDomainNameserversInput'] == null) {
|
|
2287
|
+
throw new runtime.RequiredError('updateSubscriptionDomainNameserversInput', 'Required parameter "updateSubscriptionDomainNameserversInput" was null or undefined when calling updateSubscriptionDomainNameservers().');
|
|
2288
|
+
}
|
|
2289
|
+
queryParameters = {};
|
|
2290
|
+
headerParameters = {};
|
|
2291
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2292
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2293
|
+
token = this.configuration.accessToken;
|
|
2294
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
2295
|
+
case 1:
|
|
2296
|
+
tokenString = _a.sent();
|
|
2297
|
+
if (tokenString) {
|
|
2298
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2299
|
+
}
|
|
2300
|
+
_a.label = 2;
|
|
2301
|
+
case 2: return [4 /*yield*/, this.request({
|
|
2302
|
+
path: "/buyers/private/subscriptions/{subscriptionId}/nameservers".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
2303
|
+
method: 'PUT',
|
|
2304
|
+
headers: headerParameters,
|
|
2305
|
+
query: queryParameters,
|
|
2306
|
+
body: (0, index_1.UpdateSubscriptionDomainNameserversInputToJSON)(requestParameters['updateSubscriptionDomainNameserversInput']),
|
|
2307
|
+
}, initOverrides)];
|
|
2308
|
+
case 3:
|
|
2309
|
+
response = _a.sent();
|
|
2310
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
2311
|
+
}
|
|
2312
|
+
});
|
|
2313
|
+
});
|
|
2314
|
+
};
|
|
2315
|
+
/**
|
|
2316
|
+
*
|
|
2317
|
+
*/
|
|
2318
|
+
BuyersApi.prototype.updateSubscriptionDomainNameservers = function (requestParameters, initOverrides) {
|
|
2319
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2320
|
+
return __generator(this, function (_a) {
|
|
2321
|
+
switch (_a.label) {
|
|
2322
|
+
case 0: return [4 /*yield*/, this.updateSubscriptionDomainNameserversRaw(requestParameters, initOverrides)];
|
|
2323
|
+
case 1:
|
|
2324
|
+
_a.sent();
|
|
2325
|
+
return [2 /*return*/];
|
|
2326
|
+
}
|
|
2327
|
+
});
|
|
2328
|
+
});
|
|
2329
|
+
};
|
|
2330
|
+
/**
|
|
2331
|
+
*
|
|
2332
|
+
*/
|
|
2333
|
+
BuyersApi.prototype.updateSubscriptionDomainRecordRaw = function (requestParameters, initOverrides) {
|
|
2334
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2335
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
2336
|
+
return __generator(this, function (_a) {
|
|
2337
|
+
switch (_a.label) {
|
|
2338
|
+
case 0:
|
|
2339
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
2340
|
+
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling updateSubscriptionDomainRecord().');
|
|
2341
|
+
}
|
|
2342
|
+
if (requestParameters['updateSubscriptionDomainRecordInput'] == null) {
|
|
2343
|
+
throw new runtime.RequiredError('updateSubscriptionDomainRecordInput', 'Required parameter "updateSubscriptionDomainRecordInput" was null or undefined when calling updateSubscriptionDomainRecord().');
|
|
2344
|
+
}
|
|
2345
|
+
queryParameters = {};
|
|
2346
|
+
headerParameters = {};
|
|
2347
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2348
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2349
|
+
token = this.configuration.accessToken;
|
|
2350
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
2351
|
+
case 1:
|
|
2352
|
+
tokenString = _a.sent();
|
|
2353
|
+
if (tokenString) {
|
|
2354
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2355
|
+
}
|
|
2356
|
+
_a.label = 2;
|
|
2357
|
+
case 2: return [4 /*yield*/, this.request({
|
|
2358
|
+
path: "/buyers/private/subscriptions/{subscriptionId}/domain-records".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
2359
|
+
method: 'PATCH',
|
|
2360
|
+
headers: headerParameters,
|
|
2361
|
+
query: queryParameters,
|
|
2362
|
+
body: (0, index_1.UpdateSubscriptionDomainRecordInputToJSON)(requestParameters['updateSubscriptionDomainRecordInput']),
|
|
2363
|
+
}, initOverrides)];
|
|
2364
|
+
case 3:
|
|
2365
|
+
response = _a.sent();
|
|
2366
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
2367
|
+
}
|
|
2368
|
+
});
|
|
2369
|
+
});
|
|
2370
|
+
};
|
|
2371
|
+
/**
|
|
2372
|
+
*
|
|
2373
|
+
*/
|
|
2374
|
+
BuyersApi.prototype.updateSubscriptionDomainRecord = function (requestParameters, initOverrides) {
|
|
2375
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2376
|
+
return __generator(this, function (_a) {
|
|
2377
|
+
switch (_a.label) {
|
|
2378
|
+
case 0: return [4 /*yield*/, this.updateSubscriptionDomainRecordRaw(requestParameters, initOverrides)];
|
|
2379
|
+
case 1:
|
|
2380
|
+
_a.sent();
|
|
2381
|
+
return [2 /*return*/];
|
|
2382
|
+
}
|
|
2383
|
+
});
|
|
2384
|
+
});
|
|
2385
|
+
};
|
|
2109
2386
|
/**
|
|
2110
2387
|
*
|
|
2111
2388
|
*/
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AddSubscriptionDomainRecordInput
|
|
16
|
+
*/
|
|
17
|
+
export interface AddSubscriptionDomainRecordInput {
|
|
18
|
+
/**
|
|
19
|
+
* Record name (e.g. subdomain or @ for apex)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AddSubscriptionDomainRecordInput
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Record type (e.g. A, AAAA, CNAME, MX, TXT)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AddSubscriptionDomainRecordInput
|
|
28
|
+
*/
|
|
29
|
+
type: string;
|
|
30
|
+
/**
|
|
31
|
+
* Record value
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AddSubscriptionDomainRecordInput
|
|
34
|
+
*/
|
|
35
|
+
value: string;
|
|
36
|
+
/**
|
|
37
|
+
* TTL in seconds
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AddSubscriptionDomainRecordInput
|
|
40
|
+
*/
|
|
41
|
+
ttl: number;
|
|
42
|
+
/**
|
|
43
|
+
* Priority (for MX records)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AddSubscriptionDomainRecordInput
|
|
46
|
+
*/
|
|
47
|
+
priority?: number | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AddSubscriptionDomainRecordInput interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAddSubscriptionDomainRecordInput(value: object): value is AddSubscriptionDomainRecordInput;
|
|
53
|
+
export declare function AddSubscriptionDomainRecordInputFromJSON(json: any): AddSubscriptionDomainRecordInput;
|
|
54
|
+
export declare function AddSubscriptionDomainRecordInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddSubscriptionDomainRecordInput;
|
|
55
|
+
export declare function AddSubscriptionDomainRecordInputToJSON(json: any): AddSubscriptionDomainRecordInput;
|
|
56
|
+
export declare function AddSubscriptionDomainRecordInputToJSONTyped(value?: AddSubscriptionDomainRecordInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAddSubscriptionDomainRecordInput = instanceOfAddSubscriptionDomainRecordInput;
|
|
17
|
+
exports.AddSubscriptionDomainRecordInputFromJSON = AddSubscriptionDomainRecordInputFromJSON;
|
|
18
|
+
exports.AddSubscriptionDomainRecordInputFromJSONTyped = AddSubscriptionDomainRecordInputFromJSONTyped;
|
|
19
|
+
exports.AddSubscriptionDomainRecordInputToJSON = AddSubscriptionDomainRecordInputToJSON;
|
|
20
|
+
exports.AddSubscriptionDomainRecordInputToJSONTyped = AddSubscriptionDomainRecordInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AddSubscriptionDomainRecordInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAddSubscriptionDomainRecordInput(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('ttl' in value) || value['ttl'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function AddSubscriptionDomainRecordInputFromJSON(json) {
|
|
36
|
+
return AddSubscriptionDomainRecordInputFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AddSubscriptionDomainRecordInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'type': json['type'],
|
|
45
|
+
'value': json['value'],
|
|
46
|
+
'ttl': json['ttl'],
|
|
47
|
+
'priority': json['priority'] == null ? undefined : json['priority'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function AddSubscriptionDomainRecordInputToJSON(json) {
|
|
51
|
+
return AddSubscriptionDomainRecordInputToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function AddSubscriptionDomainRecordInputToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'type': value['type'],
|
|
61
|
+
'value': value['value'],
|
|
62
|
+
'ttl': value['ttl'],
|
|
63
|
+
'priority': value['priority'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BuyerDomainNameserverItemDto
|
|
16
|
+
*/
|
|
17
|
+
export interface BuyerDomainNameserverItemDto {
|
|
18
|
+
/**
|
|
19
|
+
* Nameserver hostname
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BuyerDomainNameserverItemDto
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the BuyerDomainNameserverItemDto interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfBuyerDomainNameserverItemDto(value: object): value is BuyerDomainNameserverItemDto;
|
|
29
|
+
export declare function BuyerDomainNameserverItemDtoFromJSON(json: any): BuyerDomainNameserverItemDto;
|
|
30
|
+
export declare function BuyerDomainNameserverItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerDomainNameserverItemDto;
|
|
31
|
+
export declare function BuyerDomainNameserverItemDtoToJSON(json: any): BuyerDomainNameserverItemDto;
|
|
32
|
+
export declare function BuyerDomainNameserverItemDtoToJSONTyped(value?: BuyerDomainNameserverItemDto | null, ignoreDiscriminator?: boolean): any;
|