@randock/nameshift-api-client 0.0.381 → 0.0.382
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +8 -0
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +60 -1
- package/dist/apis/BuyersApi.js +277 -0
- package/dist/models/AddSubscriptionDomainRecordInput.d.ts +56 -0
- package/dist/models/AddSubscriptionDomainRecordInput.js +65 -0
- package/dist/models/BuyerDomainNameserverItemDto.d.ts +32 -0
- package/dist/models/BuyerDomainNameserverItemDto.js +51 -0
- package/dist/models/BuyerDomainRecordItemDto.d.ts +56 -0
- package/dist/models/BuyerDomainRecordItemDto.js +67 -0
- package/dist/models/BuyerDomainRecordsDto.d.ts +46 -0
- package/dist/models/BuyerDomainRecordsDto.js +61 -0
- package/dist/models/BuyerSubscriptionListItemDto.d.ts +6 -0
- package/dist/models/BuyerSubscriptionListItemDto.js +4 -0
- package/dist/models/RemoveSubscriptionDomainRecordInput.d.ts +56 -0
- package/dist/models/RemoveSubscriptionDomainRecordInput.js +65 -0
- package/dist/models/SubscriptionDomainRecordInput.d.ts +56 -0
- package/dist/models/SubscriptionDomainRecordInput.js +65 -0
- package/dist/models/UpdateSubscriptionDomainNameserversInput.d.ts +32 -0
- package/dist/models/UpdateSubscriptionDomainNameserversInput.js +51 -0
- package/dist/models/UpdateSubscriptionDomainRecordInput.d.ts +39 -0
- package/dist/models/UpdateSubscriptionDomainRecordInput.js +56 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +280 -0
- package/src/models/AddSubscriptionDomainRecordInput.ts +101 -0
- package/src/models/BuyerDomainNameserverItemDto.ts +66 -0
- package/src/models/BuyerDomainRecordItemDto.ts +102 -0
- package/src/models/BuyerDomainRecordsDto.ts +99 -0
- package/src/models/BuyerSubscriptionListItemDto.ts +9 -0
- package/src/models/RemoveSubscriptionDomainRecordInput.ts +101 -0
- package/src/models/SubscriptionDomainRecordInput.ts +101 -0
- package/src/models/UpdateSubscriptionDomainNameserversInput.ts +66 -0
- package/src/models/UpdateSubscriptionDomainRecordInput.ts +83 -0
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
import type { SubscriptionDomainRecordInput } from './SubscriptionDomainRecordInput';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateSubscriptionDomainRecordInput
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateSubscriptionDomainRecordInput {
|
|
19
|
+
/**
|
|
20
|
+
* The existing record to be updated (identifies the record)
|
|
21
|
+
* @type {SubscriptionDomainRecordInput}
|
|
22
|
+
* @memberof UpdateSubscriptionDomainRecordInput
|
|
23
|
+
*/
|
|
24
|
+
original: SubscriptionDomainRecordInput;
|
|
25
|
+
/**
|
|
26
|
+
* The new record values
|
|
27
|
+
* @type {SubscriptionDomainRecordInput}
|
|
28
|
+
* @memberof UpdateSubscriptionDomainRecordInput
|
|
29
|
+
*/
|
|
30
|
+
record: SubscriptionDomainRecordInput;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the UpdateSubscriptionDomainRecordInput interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfUpdateSubscriptionDomainRecordInput(value: object): value is UpdateSubscriptionDomainRecordInput;
|
|
36
|
+
export declare function UpdateSubscriptionDomainRecordInputFromJSON(json: any): UpdateSubscriptionDomainRecordInput;
|
|
37
|
+
export declare function UpdateSubscriptionDomainRecordInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubscriptionDomainRecordInput;
|
|
38
|
+
export declare function UpdateSubscriptionDomainRecordInputToJSON(json: any): UpdateSubscriptionDomainRecordInput;
|
|
39
|
+
export declare function UpdateSubscriptionDomainRecordInputToJSONTyped(value?: UpdateSubscriptionDomainRecordInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfUpdateSubscriptionDomainRecordInput = instanceOfUpdateSubscriptionDomainRecordInput;
|
|
17
|
+
exports.UpdateSubscriptionDomainRecordInputFromJSON = UpdateSubscriptionDomainRecordInputFromJSON;
|
|
18
|
+
exports.UpdateSubscriptionDomainRecordInputFromJSONTyped = UpdateSubscriptionDomainRecordInputFromJSONTyped;
|
|
19
|
+
exports.UpdateSubscriptionDomainRecordInputToJSON = UpdateSubscriptionDomainRecordInputToJSON;
|
|
20
|
+
exports.UpdateSubscriptionDomainRecordInputToJSONTyped = UpdateSubscriptionDomainRecordInputToJSONTyped;
|
|
21
|
+
var SubscriptionDomainRecordInput_1 = require("./SubscriptionDomainRecordInput");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateSubscriptionDomainRecordInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateSubscriptionDomainRecordInput(value) {
|
|
26
|
+
if (!('original' in value) || value['original'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('record' in value) || value['record'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function UpdateSubscriptionDomainRecordInputFromJSON(json) {
|
|
33
|
+
return UpdateSubscriptionDomainRecordInputFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function UpdateSubscriptionDomainRecordInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'original': (0, SubscriptionDomainRecordInput_1.SubscriptionDomainRecordInputFromJSON)(json['original']),
|
|
41
|
+
'record': (0, SubscriptionDomainRecordInput_1.SubscriptionDomainRecordInputFromJSON)(json['record']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function UpdateSubscriptionDomainRecordInputToJSON(json) {
|
|
45
|
+
return UpdateSubscriptionDomainRecordInputToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function UpdateSubscriptionDomainRecordInputToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'original': (0, SubscriptionDomainRecordInput_1.SubscriptionDomainRecordInputToJSON)(value['original']),
|
|
54
|
+
'record': (0, SubscriptionDomainRecordInput_1.SubscriptionDomainRecordInputToJSON)(value['record']),
|
|
55
|
+
};
|
|
56
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export * from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
|
30
30
|
export * from './AccountSettingsRentConfigurationDto';
|
|
31
31
|
export * from './AccountSettingsSidnDto';
|
|
32
32
|
export * from './AccountsStatsDto';
|
|
33
|
+
export * from './AddSubscriptionDomainRecordInput';
|
|
33
34
|
export * from './AddressDto';
|
|
34
35
|
export * from './AdminAccountCommissionByDateRangeInput';
|
|
35
36
|
export * from './AdminAccountLoginDto';
|
|
@@ -89,6 +90,9 @@ export * from './BuyerAuctionDetailDtoDomain';
|
|
|
89
90
|
export * from './BuyerAuctionListItemDto';
|
|
90
91
|
export * from './BuyerAuctionListItemDtoDomainInformation';
|
|
91
92
|
export * from './BuyerAuctionListItemDtoSellerAccount';
|
|
93
|
+
export * from './BuyerDomainNameserverItemDto';
|
|
94
|
+
export * from './BuyerDomainRecordItemDto';
|
|
95
|
+
export * from './BuyerDomainRecordsDto';
|
|
92
96
|
export * from './BuyerDomainTransferAuthCodeDto';
|
|
93
97
|
export * from './BuyerDomainTransferListItemDomainDto';
|
|
94
98
|
export * from './BuyerDomainTransferListItemDto';
|
|
@@ -320,6 +324,7 @@ export * from './RegisterAuctionBuyerPhoneInput';
|
|
|
320
324
|
export * from './RegisterInput';
|
|
321
325
|
export * from './RelatedDomainsDto';
|
|
322
326
|
export * from './RelatedSellerDomain';
|
|
327
|
+
export * from './RemoveSubscriptionDomainRecordInput';
|
|
323
328
|
export * from './RentConfigurationDto';
|
|
324
329
|
export * from './RentConfigurationInput';
|
|
325
330
|
export * from './RentConfigurationPresetsDto';
|
|
@@ -378,6 +383,7 @@ export * from './SubscriptionDetailsDomainSellerDto';
|
|
|
378
383
|
export * from './SubscriptionDetailsDomainSellerUserDto';
|
|
379
384
|
export * from './SubscriptionDetailsDto';
|
|
380
385
|
export * from './SubscriptionDomainDto';
|
|
386
|
+
export * from './SubscriptionDomainRecordInput';
|
|
381
387
|
export * from './SubscriptionDto';
|
|
382
388
|
export * from './SubscriptionLeaseToOwnConfigurationDto';
|
|
383
389
|
export * from './SubscriptionListItemBillingPeriodicityDto';
|
|
@@ -410,6 +416,8 @@ export * from './UpdateLeaseToOwnConfigurationDto';
|
|
|
410
416
|
export * from './UpdateOrderInput';
|
|
411
417
|
export * from './UpdateRentConfigurationDto';
|
|
412
418
|
export * from './UpdateSubscriptionBillingPeriodicityInput';
|
|
419
|
+
export * from './UpdateSubscriptionDomainNameserversInput';
|
|
420
|
+
export * from './UpdateSubscriptionDomainRecordInput';
|
|
413
421
|
export * from './UpdateSubscriptionInput';
|
|
414
422
|
export * from './UpdateTaskMuteStatusForBuyerInput';
|
|
415
423
|
export * from './UpdateTaskMuteStatusInput';
|
package/dist/models/index.js
CHANGED
|
@@ -48,6 +48,7 @@ __exportStar(require("./AccountSettingsLeaseToOwnConfigurationDto"), exports);
|
|
|
48
48
|
__exportStar(require("./AccountSettingsRentConfigurationDto"), exports);
|
|
49
49
|
__exportStar(require("./AccountSettingsSidnDto"), exports);
|
|
50
50
|
__exportStar(require("./AccountsStatsDto"), exports);
|
|
51
|
+
__exportStar(require("./AddSubscriptionDomainRecordInput"), exports);
|
|
51
52
|
__exportStar(require("./AddressDto"), exports);
|
|
52
53
|
__exportStar(require("./AdminAccountCommissionByDateRangeInput"), exports);
|
|
53
54
|
__exportStar(require("./AdminAccountLoginDto"), exports);
|
|
@@ -107,6 +108,9 @@ __exportStar(require("./BuyerAuctionDetailDtoDomain"), exports);
|
|
|
107
108
|
__exportStar(require("./BuyerAuctionListItemDto"), exports);
|
|
108
109
|
__exportStar(require("./BuyerAuctionListItemDtoDomainInformation"), exports);
|
|
109
110
|
__exportStar(require("./BuyerAuctionListItemDtoSellerAccount"), exports);
|
|
111
|
+
__exportStar(require("./BuyerDomainNameserverItemDto"), exports);
|
|
112
|
+
__exportStar(require("./BuyerDomainRecordItemDto"), exports);
|
|
113
|
+
__exportStar(require("./BuyerDomainRecordsDto"), exports);
|
|
110
114
|
__exportStar(require("./BuyerDomainTransferAuthCodeDto"), exports);
|
|
111
115
|
__exportStar(require("./BuyerDomainTransferListItemDomainDto"), exports);
|
|
112
116
|
__exportStar(require("./BuyerDomainTransferListItemDto"), exports);
|
|
@@ -338,6 +342,7 @@ __exportStar(require("./RegisterAuctionBuyerPhoneInput"), exports);
|
|
|
338
342
|
__exportStar(require("./RegisterInput"), exports);
|
|
339
343
|
__exportStar(require("./RelatedDomainsDto"), exports);
|
|
340
344
|
__exportStar(require("./RelatedSellerDomain"), exports);
|
|
345
|
+
__exportStar(require("./RemoveSubscriptionDomainRecordInput"), exports);
|
|
341
346
|
__exportStar(require("./RentConfigurationDto"), exports);
|
|
342
347
|
__exportStar(require("./RentConfigurationInput"), exports);
|
|
343
348
|
__exportStar(require("./RentConfigurationPresetsDto"), exports);
|
|
@@ -396,6 +401,7 @@ __exportStar(require("./SubscriptionDetailsDomainSellerDto"), exports);
|
|
|
396
401
|
__exportStar(require("./SubscriptionDetailsDomainSellerUserDto"), exports);
|
|
397
402
|
__exportStar(require("./SubscriptionDetailsDto"), exports);
|
|
398
403
|
__exportStar(require("./SubscriptionDomainDto"), exports);
|
|
404
|
+
__exportStar(require("./SubscriptionDomainRecordInput"), exports);
|
|
399
405
|
__exportStar(require("./SubscriptionDto"), exports);
|
|
400
406
|
__exportStar(require("./SubscriptionLeaseToOwnConfigurationDto"), exports);
|
|
401
407
|
__exportStar(require("./SubscriptionListItemBillingPeriodicityDto"), exports);
|
|
@@ -428,6 +434,8 @@ __exportStar(require("./UpdateLeaseToOwnConfigurationDto"), exports);
|
|
|
428
434
|
__exportStar(require("./UpdateOrderInput"), exports);
|
|
429
435
|
__exportStar(require("./UpdateRentConfigurationDto"), exports);
|
|
430
436
|
__exportStar(require("./UpdateSubscriptionBillingPeriodicityInput"), exports);
|
|
437
|
+
__exportStar(require("./UpdateSubscriptionDomainNameserversInput"), exports);
|
|
438
|
+
__exportStar(require("./UpdateSubscriptionDomainRecordInput"), exports);
|
|
431
439
|
__exportStar(require("./UpdateSubscriptionInput"), exports);
|
|
432
440
|
__exportStar(require("./UpdateTaskMuteStatusForBuyerInput"), exports);
|
|
433
441
|
__exportStar(require("./UpdateTaskMuteStatusInput"), exports);
|
package/package.json
CHANGED
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
|
+
|