@randock/nameshift-api-client 0.0.331 → 0.0.333
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 +20 -0
- package/README.md +3 -3
- package/dist/apis/AccountsPublicApi.d.ts +1 -0
- package/dist/apis/AccountsPublicApi.js +3 -0
- package/dist/apis/AuctionsPublicApi.d.ts +29 -0
- package/dist/apis/AuctionsPublicApi.js +124 -0
- package/dist/apis/BuyersApi.d.ts +54 -1
- package/dist/apis/BuyersApi.js +267 -0
- package/dist/apis/BuyersPublicApi.d.ts +23 -1
- package/dist/apis/BuyersPublicApi.js +90 -0
- package/dist/apis/DomainsApi.d.ts +13 -1
- package/dist/apis/DomainsApi.js +56 -0
- package/dist/apis/LeadsApi.d.ts +2 -5
- package/dist/apis/LeadsApi.js +4 -8
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AuctionBidDto.d.ts +51 -0
- package/dist/models/AuctionBidDto.js +64 -0
- package/dist/models/AuctionBidInput.d.ts +32 -0
- package/dist/models/AuctionBidInput.js +51 -0
- package/dist/models/AuctionBuyerDto.d.ts +74 -0
- package/dist/models/AuctionBuyerDto.js +79 -0
- package/dist/models/AuctionBuyerWithTokenDto.d.ts +39 -0
- package/dist/models/AuctionBuyerWithTokenDto.js +56 -0
- package/dist/models/AuctionDto.d.ts +82 -0
- package/dist/models/AuctionDto.js +85 -0
- package/dist/models/BuyerLeadListItemDto.d.ts +23 -0
- package/dist/models/BuyerLeadListItemDto.js +19 -1
- package/dist/models/DomainAuctionDto.d.ts +63 -0
- package/dist/models/DomainAuctionDto.js +72 -0
- package/dist/models/DomainSalesInformationDto.d.ts +12 -0
- package/dist/models/DomainSalesInformationDto.js +8 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +5 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +36 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +28 -1
- package/dist/models/LeadDto.d.ts +43 -0
- package/dist/models/LeadDto.js +33 -1
- package/dist/models/LeadLeaseToOwnConfigurationDto.d.ts +50 -0
- package/dist/models/LeadLeaseToOwnConfigurationDto.js +63 -0
- package/dist/models/LeadMessageData.d.ts +7 -0
- package/dist/models/LeadMessageData.js +5 -0
- package/dist/models/LeadMessageDataLeaseToOwn.d.ts +38 -0
- package/dist/models/LeadMessageDataLeaseToOwn.js +55 -0
- package/dist/models/LeadMessageDto.d.ts +16 -0
- package/dist/models/LeadMessageDto.js +14 -1
- package/dist/models/LeadOfferDto.d.ts +72 -0
- package/dist/models/LeadOfferDto.js +84 -0
- package/dist/models/LeadRentConfigurationDto.d.ts +38 -0
- package/dist/models/LeadRentConfigurationDto.js +55 -0
- package/dist/models/ListLeadsResultItem.d.ts +43 -0
- package/dist/models/ListLeadsResultItem.js +33 -1
- package/dist/models/ManualLeadLeaseToOwnDto.d.ts +12 -0
- package/dist/models/ManualLeadLeaseToOwnDto.js +8 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/PutBuyerLeadOfferInput.d.ts +22 -0
- package/dist/models/PutBuyerLeadOfferInput.js +14 -0
- package/dist/models/PutLeadOfferInput.d.ts +23 -1
- package/dist/models/PutLeadOfferInput.js +15 -3
- package/dist/models/RegisterAuctionBuyerPhoneInput.d.ts +47 -0
- package/dist/models/RegisterAuctionBuyerPhoneInput.js +64 -0
- package/dist/models/RegisterInput.d.ts +38 -0
- package/dist/models/RegisterInput.js +55 -0
- package/dist/models/RequestEmailOtpInput.d.ts +38 -0
- package/dist/models/RequestEmailOtpInput.js +55 -0
- package/dist/models/SellerLeadDetails.d.ts +43 -0
- package/dist/models/SellerLeadDetails.js +33 -1
- package/dist/models/StartAuctionInput.d.ts +51 -0
- package/dist/models/StartAuctionInput.js +62 -0
- package/dist/models/TaskListLeadDto.d.ts +43 -0
- package/dist/models/TaskListLeadDto.js +33 -1
- package/dist/models/TaskListLeadLeaseToOwnConfigurationDto.d.ts +50 -0
- package/dist/models/TaskListLeadLeaseToOwnConfigurationDto.js +63 -0
- package/dist/models/TaskListLeadOfferDto.d.ts +72 -0
- package/dist/models/TaskListLeadOfferDto.js +84 -0
- package/dist/models/TaskListLeadRentConfigurationDto.d.ts +38 -0
- package/dist/models/TaskListLeadRentConfigurationDto.js +55 -0
- package/dist/models/VerifyEmailOtpInput.d.ts +38 -0
- package/dist/models/VerifyEmailOtpInput.js +55 -0
- package/dist/models/VerifyPhoneOtpInput.d.ts +32 -0
- package/dist/models/VerifyPhoneOtpInput.js +51 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/package.json +1 -1
- package/src/apis/AccountsPublicApi.ts +5 -0
- package/src/apis/AuctionsPublicApi.ts +67 -0
- package/src/apis/BuyersApi.ts +249 -0
- package/src/apis/BuyersPublicApi.ts +88 -0
- package/src/apis/DomainsApi.ts +58 -0
- package/src/apis/LeadsApi.ts +3 -11
- package/src/apis/index.ts +1 -0
- package/src/models/AuctionBidDto.ts +101 -0
- package/src/models/AuctionBidInput.ts +66 -0
- package/src/models/AuctionBuyerDto.ts +129 -0
- package/src/models/AuctionBuyerWithTokenDto.ts +83 -0
- package/src/models/AuctionDto.ts +153 -0
- package/src/models/BuyerLeadListItemDto.ts +36 -0
- package/src/models/DomainAuctionDto.ts +119 -0
- package/src/models/DomainSalesInformationDto.ts +18 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +16 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +61 -0
- package/src/models/LeadDto.ts +77 -0
- package/src/models/LeadLeaseToOwnConfigurationDto.ts +93 -0
- package/src/models/LeadMessageData.ts +16 -0
- package/src/models/LeadMessageDataLeaseToOwn.ts +75 -0
- package/src/models/LeadMessageDto.ts +20 -0
- package/src/models/LeadOfferDto.ts +132 -0
- package/src/models/LeadRentConfigurationDto.ts +75 -0
- package/src/models/ListLeadsResultItem.ts +77 -0
- package/src/models/ManualLeadLeaseToOwnDto.ts +18 -0
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/PutBuyerLeadOfferInput.ts +29 -0
- package/src/models/PutLeadOfferInput.ts +31 -3
- package/src/models/RegisterAuctionBuyerPhoneInput.ts +87 -0
- package/src/models/RegisterInput.ts +75 -0
- package/src/models/RequestEmailOtpInput.ts +75 -0
- package/src/models/SellerLeadDetails.ts +77 -0
- package/src/models/StartAuctionInput.ts +100 -0
- package/src/models/TaskListLeadDto.ts +77 -0
- package/src/models/TaskListLeadLeaseToOwnConfigurationDto.ts +93 -0
- package/src/models/TaskListLeadOfferDto.ts +132 -0
- package/src/models/TaskListLeadRentConfigurationDto.ts +75 -0
- package/src/models/VerifyEmailOtpInput.ts +75 -0
- package/src/models/VerifyPhoneOtpInput.ts +66 -0
- package/src/models/index.ts +19 -0
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AuctionBidInput,
|
|
19
|
+
AuctionBuyerDto,
|
|
18
20
|
BadRequestException,
|
|
19
21
|
BatchDeleteBuyerLeadsInput,
|
|
20
22
|
BatchReadBuyerLeadMessageInput,
|
|
@@ -31,11 +33,14 @@ import type {
|
|
|
31
33
|
GetBuyerSubscriptions200Response,
|
|
32
34
|
GetBuyerTransfers200Response,
|
|
33
35
|
LeadDto,
|
|
36
|
+
LeadLeaseToOwnAndRentConfigurationPresetsDto,
|
|
34
37
|
LeadMessageDto,
|
|
35
38
|
ListBuyerNotifications200Response,
|
|
36
39
|
NotFoundException,
|
|
37
40
|
ObjectId,
|
|
38
41
|
PutBuyerLeadOfferInput,
|
|
42
|
+
RegisterAuctionBuyerPhoneInput,
|
|
43
|
+
RegisterInput,
|
|
39
44
|
SetDomainTransferConfirmationInput,
|
|
40
45
|
StoreBuyerLocaleInput,
|
|
41
46
|
UpdateBuyerDomainTransferIpsTagInputDto,
|
|
@@ -43,8 +48,13 @@ import type {
|
|
|
43
48
|
UpdateLeadMuteStatusForBuyerInput,
|
|
44
49
|
UpdateTaskMuteStatusForBuyerInput,
|
|
45
50
|
ValidationException,
|
|
51
|
+
VerifyPhoneOtpInput,
|
|
46
52
|
} from '../models/index';
|
|
47
53
|
import {
|
|
54
|
+
AuctionBidInputFromJSON,
|
|
55
|
+
AuctionBidInputToJSON,
|
|
56
|
+
AuctionBuyerDtoFromJSON,
|
|
57
|
+
AuctionBuyerDtoToJSON,
|
|
48
58
|
BadRequestExceptionFromJSON,
|
|
49
59
|
BadRequestExceptionToJSON,
|
|
50
60
|
BatchDeleteBuyerLeadsInputFromJSON,
|
|
@@ -77,6 +87,8 @@ import {
|
|
|
77
87
|
GetBuyerTransfers200ResponseToJSON,
|
|
78
88
|
LeadDtoFromJSON,
|
|
79
89
|
LeadDtoToJSON,
|
|
90
|
+
LeadLeaseToOwnAndRentConfigurationPresetsDtoFromJSON,
|
|
91
|
+
LeadLeaseToOwnAndRentConfigurationPresetsDtoToJSON,
|
|
80
92
|
LeadMessageDtoFromJSON,
|
|
81
93
|
LeadMessageDtoToJSON,
|
|
82
94
|
ListBuyerNotifications200ResponseFromJSON,
|
|
@@ -87,6 +99,10 @@ import {
|
|
|
87
99
|
ObjectIdToJSON,
|
|
88
100
|
PutBuyerLeadOfferInputFromJSON,
|
|
89
101
|
PutBuyerLeadOfferInputToJSON,
|
|
102
|
+
RegisterAuctionBuyerPhoneInputFromJSON,
|
|
103
|
+
RegisterAuctionBuyerPhoneInputToJSON,
|
|
104
|
+
RegisterInputFromJSON,
|
|
105
|
+
RegisterInputToJSON,
|
|
90
106
|
SetDomainTransferConfirmationInputFromJSON,
|
|
91
107
|
SetDomainTransferConfirmationInputToJSON,
|
|
92
108
|
StoreBuyerLocaleInputFromJSON,
|
|
@@ -101,6 +117,8 @@ import {
|
|
|
101
117
|
UpdateTaskMuteStatusForBuyerInputToJSON,
|
|
102
118
|
ValidationExceptionFromJSON,
|
|
103
119
|
ValidationExceptionToJSON,
|
|
120
|
+
VerifyPhoneOtpInputFromJSON,
|
|
121
|
+
VerifyPhoneOtpInputToJSON,
|
|
104
122
|
} from '../models/index';
|
|
105
123
|
|
|
106
124
|
export interface BuyersApiAcceptBuyerLeadOfferRequest {
|
|
@@ -111,6 +129,11 @@ export interface BuyersApiBatchVerifyBuyerLeadsRequest {
|
|
|
111
129
|
batchVerifyBuyerLeadsInput: BatchVerifyBuyerLeadsInput;
|
|
112
130
|
}
|
|
113
131
|
|
|
132
|
+
export interface BuyersApiBidRequest {
|
|
133
|
+
auctionId: string;
|
|
134
|
+
auctionBidInput: AuctionBidInput;
|
|
135
|
+
}
|
|
136
|
+
|
|
114
137
|
export interface BuyersApiBulkMarkBuyerNotificationsAsReadRequest {
|
|
115
138
|
bulkMarkBuyerNotificationsAsReadInputDto: BulkMarkBuyerNotificationsAsReadInputDto;
|
|
116
139
|
}
|
|
@@ -207,6 +230,14 @@ export interface BuyersApiPutBuyerOfferRequest {
|
|
|
207
230
|
putBuyerLeadOfferInput: PutBuyerLeadOfferInput;
|
|
208
231
|
}
|
|
209
232
|
|
|
233
|
+
export interface BuyersApiRegisterRequest {
|
|
234
|
+
registerInput: RegisterInput;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export interface BuyersApiRegisterPhoneRequest {
|
|
238
|
+
registerAuctionBuyerPhoneInput: RegisterAuctionBuyerPhoneInput;
|
|
239
|
+
}
|
|
240
|
+
|
|
210
241
|
export interface BuyersApiRevokeScheduledSubscriptionCancellationRequest {
|
|
211
242
|
subscriptionId: string;
|
|
212
243
|
}
|
|
@@ -238,6 +269,10 @@ export interface BuyersApiVerifyBuyerLeadRequest {
|
|
|
238
269
|
leadId: string;
|
|
239
270
|
}
|
|
240
271
|
|
|
272
|
+
export interface BuyersApiVerifyPhoneOtpRequest {
|
|
273
|
+
verifyPhoneOtpInput: VerifyPhoneOtpInput;
|
|
274
|
+
}
|
|
275
|
+
|
|
241
276
|
/**
|
|
242
277
|
*
|
|
243
278
|
*/
|
|
@@ -326,6 +361,56 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
326
361
|
await this.batchVerifyBuyerLeadsRaw(requestParameters, initOverrides);
|
|
327
362
|
}
|
|
328
363
|
|
|
364
|
+
/**
|
|
365
|
+
*
|
|
366
|
+
*/
|
|
367
|
+
async bidRaw(requestParameters: BuyersApiBidRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
368
|
+
if (requestParameters['auctionId'] == null) {
|
|
369
|
+
throw new runtime.RequiredError(
|
|
370
|
+
'auctionId',
|
|
371
|
+
'Required parameter "auctionId" was null or undefined when calling bid().'
|
|
372
|
+
);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
if (requestParameters['auctionBidInput'] == null) {
|
|
376
|
+
throw new runtime.RequiredError(
|
|
377
|
+
'auctionBidInput',
|
|
378
|
+
'Required parameter "auctionBidInput" was null or undefined when calling bid().'
|
|
379
|
+
);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
const queryParameters: any = {};
|
|
383
|
+
|
|
384
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
385
|
+
|
|
386
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
387
|
+
|
|
388
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
389
|
+
const token = this.configuration.accessToken;
|
|
390
|
+
const tokenString = await token("bearer", []);
|
|
391
|
+
|
|
392
|
+
if (tokenString) {
|
|
393
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
const response = await this.request({
|
|
397
|
+
path: `/buyers/private/auction/{auctionId}/bid`.replace(`{${"auctionId"}}`, encodeURIComponent(String(requestParameters['auctionId']))),
|
|
398
|
+
method: 'POST',
|
|
399
|
+
headers: headerParameters,
|
|
400
|
+
query: queryParameters,
|
|
401
|
+
body: AuctionBidInputToJSON(requestParameters['auctionBidInput']),
|
|
402
|
+
}, initOverrides);
|
|
403
|
+
|
|
404
|
+
return new runtime.VoidApiResponse(response);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
*
|
|
409
|
+
*/
|
|
410
|
+
async bid(requestParameters: BuyersApiBidRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
411
|
+
await this.bidRaw(requestParameters, initOverrides);
|
|
412
|
+
}
|
|
413
|
+
|
|
329
414
|
/**
|
|
330
415
|
* Mark multiple notifications as read (true) or unread (false) based on the readStatus parameter
|
|
331
416
|
* Bulk mark buyer notifications as read or unread
|
|
@@ -1111,6 +1196,40 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1111
1196
|
return await response.value();
|
|
1112
1197
|
}
|
|
1113
1198
|
|
|
1199
|
+
/**
|
|
1200
|
+
*
|
|
1201
|
+
*/
|
|
1202
|
+
async getLeadLeaseToOwnConfigurationPresetsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadLeaseToOwnAndRentConfigurationPresetsDto>> {
|
|
1203
|
+
const queryParameters: any = {};
|
|
1204
|
+
|
|
1205
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1206
|
+
|
|
1207
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1208
|
+
const token = this.configuration.accessToken;
|
|
1209
|
+
const tokenString = await token("bearer", []);
|
|
1210
|
+
|
|
1211
|
+
if (tokenString) {
|
|
1212
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
const response = await this.request({
|
|
1216
|
+
path: `/buyers/private/lease-to-own-configuration-presets`,
|
|
1217
|
+
method: 'GET',
|
|
1218
|
+
headers: headerParameters,
|
|
1219
|
+
query: queryParameters,
|
|
1220
|
+
}, initOverrides);
|
|
1221
|
+
|
|
1222
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LeadLeaseToOwnAndRentConfigurationPresetsDtoFromJSON(jsonValue));
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
*
|
|
1227
|
+
*/
|
|
1228
|
+
async getLeadLeaseToOwnConfigurationPresets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadLeaseToOwnAndRentConfigurationPresetsDto> {
|
|
1229
|
+
const response = await this.getLeadLeaseToOwnConfigurationPresetsRaw(initOverrides);
|
|
1230
|
+
return await response.value();
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1114
1233
|
/**
|
|
1115
1234
|
*
|
|
1116
1235
|
*/
|
|
@@ -1302,6 +1421,92 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1302
1421
|
await this.putBuyerOfferRaw(requestParameters, initOverrides);
|
|
1303
1422
|
}
|
|
1304
1423
|
|
|
1424
|
+
/**
|
|
1425
|
+
*
|
|
1426
|
+
*/
|
|
1427
|
+
async registerRaw(requestParameters: BuyersApiRegisterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1428
|
+
if (requestParameters['registerInput'] == null) {
|
|
1429
|
+
throw new runtime.RequiredError(
|
|
1430
|
+
'registerInput',
|
|
1431
|
+
'Required parameter "registerInput" was null or undefined when calling register().'
|
|
1432
|
+
);
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
const queryParameters: any = {};
|
|
1436
|
+
|
|
1437
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1438
|
+
|
|
1439
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1440
|
+
|
|
1441
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1442
|
+
const token = this.configuration.accessToken;
|
|
1443
|
+
const tokenString = await token("bearer", []);
|
|
1444
|
+
|
|
1445
|
+
if (tokenString) {
|
|
1446
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
const response = await this.request({
|
|
1450
|
+
path: `/buyers/private/auction/register`,
|
|
1451
|
+
method: 'POST',
|
|
1452
|
+
headers: headerParameters,
|
|
1453
|
+
query: queryParameters,
|
|
1454
|
+
body: RegisterInputToJSON(requestParameters['registerInput']),
|
|
1455
|
+
}, initOverrides);
|
|
1456
|
+
|
|
1457
|
+
return new runtime.VoidApiResponse(response);
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
*
|
|
1462
|
+
*/
|
|
1463
|
+
async register(requestParameters: BuyersApiRegisterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1464
|
+
await this.registerRaw(requestParameters, initOverrides);
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
*
|
|
1469
|
+
*/
|
|
1470
|
+
async registerPhoneRaw(requestParameters: BuyersApiRegisterPhoneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1471
|
+
if (requestParameters['registerAuctionBuyerPhoneInput'] == null) {
|
|
1472
|
+
throw new runtime.RequiredError(
|
|
1473
|
+
'registerAuctionBuyerPhoneInput',
|
|
1474
|
+
'Required parameter "registerAuctionBuyerPhoneInput" was null or undefined when calling registerPhone().'
|
|
1475
|
+
);
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
const queryParameters: any = {};
|
|
1479
|
+
|
|
1480
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1481
|
+
|
|
1482
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1483
|
+
|
|
1484
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1485
|
+
const token = this.configuration.accessToken;
|
|
1486
|
+
const tokenString = await token("bearer", []);
|
|
1487
|
+
|
|
1488
|
+
if (tokenString) {
|
|
1489
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
const response = await this.request({
|
|
1493
|
+
path: `/buyers/private/auction/register-phone`,
|
|
1494
|
+
method: 'POST',
|
|
1495
|
+
headers: headerParameters,
|
|
1496
|
+
query: queryParameters,
|
|
1497
|
+
body: RegisterAuctionBuyerPhoneInputToJSON(requestParameters['registerAuctionBuyerPhoneInput']),
|
|
1498
|
+
}, initOverrides);
|
|
1499
|
+
|
|
1500
|
+
return new runtime.VoidApiResponse(response);
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
*
|
|
1505
|
+
*/
|
|
1506
|
+
async registerPhone(requestParameters: BuyersApiRegisterPhoneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1507
|
+
await this.registerPhoneRaw(requestParameters, initOverrides);
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1305
1510
|
/**
|
|
1306
1511
|
*
|
|
1307
1512
|
*/
|
|
@@ -1618,4 +1823,48 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1618
1823
|
await this.verifyBuyerLeadRaw(requestParameters, initOverrides);
|
|
1619
1824
|
}
|
|
1620
1825
|
|
|
1826
|
+
/**
|
|
1827
|
+
*
|
|
1828
|
+
*/
|
|
1829
|
+
async verifyPhoneOtpRaw(requestParameters: BuyersApiVerifyPhoneOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuctionBuyerDto>> {
|
|
1830
|
+
if (requestParameters['verifyPhoneOtpInput'] == null) {
|
|
1831
|
+
throw new runtime.RequiredError(
|
|
1832
|
+
'verifyPhoneOtpInput',
|
|
1833
|
+
'Required parameter "verifyPhoneOtpInput" was null or undefined when calling verifyPhoneOtp().'
|
|
1834
|
+
);
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
const queryParameters: any = {};
|
|
1838
|
+
|
|
1839
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1840
|
+
|
|
1841
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1842
|
+
|
|
1843
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1844
|
+
const token = this.configuration.accessToken;
|
|
1845
|
+
const tokenString = await token("bearer", []);
|
|
1846
|
+
|
|
1847
|
+
if (tokenString) {
|
|
1848
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
const response = await this.request({
|
|
1852
|
+
path: `/buyers/private/auction/verify-phone-otp`,
|
|
1853
|
+
method: 'POST',
|
|
1854
|
+
headers: headerParameters,
|
|
1855
|
+
query: queryParameters,
|
|
1856
|
+
body: VerifyPhoneOtpInputToJSON(requestParameters['verifyPhoneOtpInput']),
|
|
1857
|
+
}, initOverrides);
|
|
1858
|
+
|
|
1859
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AuctionBuyerDtoFromJSON(jsonValue));
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
*
|
|
1864
|
+
*/
|
|
1865
|
+
async verifyPhoneOtp(requestParameters: BuyersApiVerifyPhoneOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuctionBuyerDto> {
|
|
1866
|
+
const response = await this.verifyPhoneOtpRaw(requestParameters, initOverrides);
|
|
1867
|
+
return await response.value();
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1621
1870
|
}
|
|
@@ -15,20 +15,29 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AuctionBuyerWithTokenDto,
|
|
18
19
|
LoginDto,
|
|
19
20
|
LoginInput,
|
|
20
21
|
RequestAccessTokenInput,
|
|
22
|
+
RequestEmailOtpInput,
|
|
21
23
|
ValidationException,
|
|
24
|
+
VerifyEmailOtpInput,
|
|
22
25
|
} from '../models/index';
|
|
23
26
|
import {
|
|
27
|
+
AuctionBuyerWithTokenDtoFromJSON,
|
|
28
|
+
AuctionBuyerWithTokenDtoToJSON,
|
|
24
29
|
LoginDtoFromJSON,
|
|
25
30
|
LoginDtoToJSON,
|
|
26
31
|
LoginInputFromJSON,
|
|
27
32
|
LoginInputToJSON,
|
|
28
33
|
RequestAccessTokenInputFromJSON,
|
|
29
34
|
RequestAccessTokenInputToJSON,
|
|
35
|
+
RequestEmailOtpInputFromJSON,
|
|
36
|
+
RequestEmailOtpInputToJSON,
|
|
30
37
|
ValidationExceptionFromJSON,
|
|
31
38
|
ValidationExceptionToJSON,
|
|
39
|
+
VerifyEmailOtpInputFromJSON,
|
|
40
|
+
VerifyEmailOtpInputToJSON,
|
|
32
41
|
} from '../models/index';
|
|
33
42
|
|
|
34
43
|
export interface BuyersPublicApiBuyerLoginRequest {
|
|
@@ -39,6 +48,14 @@ export interface BuyersPublicApiRequestAccessTokenRequest {
|
|
|
39
48
|
requestAccessTokenInput: RequestAccessTokenInput;
|
|
40
49
|
}
|
|
41
50
|
|
|
51
|
+
export interface BuyersPublicApiRequestEmailOtpRequest {
|
|
52
|
+
requestEmailOtpInput: RequestEmailOtpInput;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface BuyersPublicApiVerifyEmailOtpRequest {
|
|
56
|
+
verifyEmailOtpInput: VerifyEmailOtpInput;
|
|
57
|
+
}
|
|
58
|
+
|
|
42
59
|
/**
|
|
43
60
|
*
|
|
44
61
|
*/
|
|
@@ -115,4 +132,75 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
115
132
|
await this.requestAccessTokenRaw(requestParameters, initOverrides);
|
|
116
133
|
}
|
|
117
134
|
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
async requestEmailOtpRaw(requestParameters: BuyersPublicApiRequestEmailOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
139
|
+
if (requestParameters['requestEmailOtpInput'] == null) {
|
|
140
|
+
throw new runtime.RequiredError(
|
|
141
|
+
'requestEmailOtpInput',
|
|
142
|
+
'Required parameter "requestEmailOtpInput" was null or undefined when calling requestEmailOtp().'
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
const queryParameters: any = {};
|
|
147
|
+
|
|
148
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
149
|
+
|
|
150
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
151
|
+
|
|
152
|
+
const response = await this.request({
|
|
153
|
+
path: `/buyers/auction/request-email-otp`,
|
|
154
|
+
method: 'POST',
|
|
155
|
+
headers: headerParameters,
|
|
156
|
+
query: queryParameters,
|
|
157
|
+
body: RequestEmailOtpInputToJSON(requestParameters['requestEmailOtpInput']),
|
|
158
|
+
}, initOverrides);
|
|
159
|
+
|
|
160
|
+
return new runtime.VoidApiResponse(response);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
*/
|
|
166
|
+
async requestEmailOtp(requestParameters: BuyersPublicApiRequestEmailOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
167
|
+
await this.requestEmailOtpRaw(requestParameters, initOverrides);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
*/
|
|
173
|
+
async verifyEmailOtpRaw(requestParameters: BuyersPublicApiVerifyEmailOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuctionBuyerWithTokenDto>> {
|
|
174
|
+
if (requestParameters['verifyEmailOtpInput'] == null) {
|
|
175
|
+
throw new runtime.RequiredError(
|
|
176
|
+
'verifyEmailOtpInput',
|
|
177
|
+
'Required parameter "verifyEmailOtpInput" was null or undefined when calling verifyEmailOtp().'
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
const queryParameters: any = {};
|
|
182
|
+
|
|
183
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
184
|
+
|
|
185
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
186
|
+
|
|
187
|
+
const response = await this.request({
|
|
188
|
+
path: `/buyers/auction/verify-email-otp`,
|
|
189
|
+
method: 'POST',
|
|
190
|
+
headers: headerParameters,
|
|
191
|
+
query: queryParameters,
|
|
192
|
+
body: VerifyEmailOtpInputToJSON(requestParameters['verifyEmailOtpInput']),
|
|
193
|
+
}, initOverrides);
|
|
194
|
+
|
|
195
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AuctionBuyerWithTokenDtoFromJSON(jsonValue));
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
*/
|
|
201
|
+
async verifyEmailOtp(requestParameters: BuyersPublicApiVerifyEmailOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuctionBuyerWithTokenDto> {
|
|
202
|
+
const response = await this.verifyEmailOtpRaw(requestParameters, initOverrides);
|
|
203
|
+
return await response.value();
|
|
204
|
+
}
|
|
205
|
+
|
|
118
206
|
}
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -29,6 +29,7 @@ import type {
|
|
|
29
29
|
NotFoundException,
|
|
30
30
|
SellerDomainAffiliateCommissionDto,
|
|
31
31
|
SellerDomainTransferDto,
|
|
32
|
+
StartAuctionInput,
|
|
32
33
|
UpdateDomainInput,
|
|
33
34
|
UpdateDomainTransferAuthCodeInput,
|
|
34
35
|
UpdateDomainTransferIpsTagInput,
|
|
@@ -63,6 +64,8 @@ import {
|
|
|
63
64
|
SellerDomainAffiliateCommissionDtoToJSON,
|
|
64
65
|
SellerDomainTransferDtoFromJSON,
|
|
65
66
|
SellerDomainTransferDtoToJSON,
|
|
67
|
+
StartAuctionInputFromJSON,
|
|
68
|
+
StartAuctionInputToJSON,
|
|
66
69
|
UpdateDomainInputFromJSON,
|
|
67
70
|
UpdateDomainInputToJSON,
|
|
68
71
|
UpdateDomainTransferAuthCodeInputFromJSON,
|
|
@@ -137,6 +140,11 @@ export interface DomainsApiListRequest {
|
|
|
137
140
|
sortBy?: Array<string>;
|
|
138
141
|
}
|
|
139
142
|
|
|
143
|
+
export interface DomainsApiStartAuctionRequest {
|
|
144
|
+
domainId: string;
|
|
145
|
+
startAuctionInput: StartAuctionInput;
|
|
146
|
+
}
|
|
147
|
+
|
|
140
148
|
export interface DomainsApiUpdateRequest {
|
|
141
149
|
domainId: string;
|
|
142
150
|
updateDomainInput: UpdateDomainInput;
|
|
@@ -857,6 +865,56 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
857
865
|
return await response.value();
|
|
858
866
|
}
|
|
859
867
|
|
|
868
|
+
/**
|
|
869
|
+
*
|
|
870
|
+
*/
|
|
871
|
+
async startAuctionRaw(requestParameters: DomainsApiStartAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
872
|
+
if (requestParameters['domainId'] == null) {
|
|
873
|
+
throw new runtime.RequiredError(
|
|
874
|
+
'domainId',
|
|
875
|
+
'Required parameter "domainId" was null or undefined when calling startAuction().'
|
|
876
|
+
);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
if (requestParameters['startAuctionInput'] == null) {
|
|
880
|
+
throw new runtime.RequiredError(
|
|
881
|
+
'startAuctionInput',
|
|
882
|
+
'Required parameter "startAuctionInput" was null or undefined when calling startAuction().'
|
|
883
|
+
);
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
const queryParameters: any = {};
|
|
887
|
+
|
|
888
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
889
|
+
|
|
890
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
891
|
+
|
|
892
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
893
|
+
const token = this.configuration.accessToken;
|
|
894
|
+
const tokenString = await token("bearer", []);
|
|
895
|
+
|
|
896
|
+
if (tokenString) {
|
|
897
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
const response = await this.request({
|
|
901
|
+
path: `/private/domains/{domainId}/start-auction`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
|
|
902
|
+
method: 'POST',
|
|
903
|
+
headers: headerParameters,
|
|
904
|
+
query: queryParameters,
|
|
905
|
+
body: StartAuctionInputToJSON(requestParameters['startAuctionInput']),
|
|
906
|
+
}, initOverrides);
|
|
907
|
+
|
|
908
|
+
return new runtime.VoidApiResponse(response);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
*
|
|
913
|
+
*/
|
|
914
|
+
async startAuction(requestParameters: DomainsApiStartAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
915
|
+
await this.startAuctionRaw(requestParameters, initOverrides);
|
|
916
|
+
}
|
|
917
|
+
|
|
860
918
|
/**
|
|
861
919
|
*
|
|
862
920
|
*/
|
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -84,10 +84,6 @@ export interface LeadsApiGetLeadRequest {
|
|
|
84
84
|
leadId: string;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
export interface LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest {
|
|
88
|
-
date?: string;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
87
|
export interface LeadsApiGetManualLeadRequest {
|
|
92
88
|
leadId: string;
|
|
93
89
|
}
|
|
@@ -398,13 +394,9 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
398
394
|
/**
|
|
399
395
|
*
|
|
400
396
|
*/
|
|
401
|
-
async getLeadLeaseToOwnConfigurationPresetsRaw(
|
|
397
|
+
async getLeadLeaseToOwnConfigurationPresetsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadLeaseToOwnAndRentConfigurationPresetsDto>> {
|
|
402
398
|
const queryParameters: any = {};
|
|
403
399
|
|
|
404
|
-
if (requestParameters['date'] != null) {
|
|
405
|
-
queryParameters['date'] = requestParameters['date'];
|
|
406
|
-
}
|
|
407
|
-
|
|
408
400
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
409
401
|
|
|
410
402
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -428,8 +420,8 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
428
420
|
/**
|
|
429
421
|
*
|
|
430
422
|
*/
|
|
431
|
-
async getLeadLeaseToOwnConfigurationPresets(
|
|
432
|
-
const response = await this.getLeadLeaseToOwnConfigurationPresetsRaw(
|
|
423
|
+
async getLeadLeaseToOwnConfigurationPresets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadLeaseToOwnAndRentConfigurationPresetsDto> {
|
|
424
|
+
const response = await this.getLeadLeaseToOwnConfigurationPresetsRaw(initOverrides);
|
|
433
425
|
return await response.value();
|
|
434
426
|
}
|
|
435
427
|
|
package/src/apis/index.ts
CHANGED
|
@@ -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
|
+
import type { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
MoneyDtoToJSONTyped,
|
|
22
|
+
} from './MoneyDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AuctionBidDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AuctionBidDto {
|
|
30
|
+
/**
|
|
31
|
+
* Auction Bid Id
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AuctionBidDto
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Auction Bid amount
|
|
38
|
+
* @type {MoneyDto}
|
|
39
|
+
* @memberof AuctionBidDto
|
|
40
|
+
*/
|
|
41
|
+
amount: MoneyDto;
|
|
42
|
+
/**
|
|
43
|
+
* Auction Bidder's nickname
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AuctionBidDto
|
|
46
|
+
*/
|
|
47
|
+
nickname: string;
|
|
48
|
+
/**
|
|
49
|
+
* Auction Bid createdAt
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof AuctionBidDto
|
|
52
|
+
*/
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AuctionBidDto interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfAuctionBidDto(value: object): value is AuctionBidDto {
|
|
60
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
61
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
62
|
+
if (!('nickname' in value) || value['nickname'] === undefined) return false;
|
|
63
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function AuctionBidDtoFromJSON(json: any): AuctionBidDto {
|
|
68
|
+
return AuctionBidDtoFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function AuctionBidDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionBidDto {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'id': json['id'],
|
|
78
|
+
'amount': MoneyDtoFromJSON(json['amount']),
|
|
79
|
+
'nickname': json['nickname'],
|
|
80
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AuctionBidDtoToJSON(json: any): AuctionBidDto {
|
|
85
|
+
return AuctionBidDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function AuctionBidDtoToJSONTyped(value?: AuctionBidDto | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'amount': MoneyDtoToJSON(value['amount']),
|
|
97
|
+
'nickname': value['nickname'],
|
|
98
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|