@randock/nameshift-api-client 0.0.330 → 0.0.332
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 +24 -0
- package/README.md +3 -3
- 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 +44 -1
- package/dist/apis/DomainsApi.js +216 -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/BulkUpdateDomainsWithFiltersInput.d.ts +59 -0
- package/dist/models/BulkUpdateDomainsWithFiltersInput.js +62 -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/DomainFiltersDto.d.ts +38 -0
- package/dist/models/DomainFiltersDto.js +55 -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/UpdateLeaseToOwnConfigurationDto.d.ts +44 -0
- package/dist/models/UpdateLeaseToOwnConfigurationDto.js +53 -0
- package/dist/models/UpdateRentConfigurationDto.d.ts +39 -0
- package/dist/models/UpdateRentConfigurationDto.js +52 -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 +23 -0
- package/dist/models/index.js +23 -0
- package/package.json +1 -1
- 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 +192 -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/BulkUpdateDomainsWithFiltersInput.ts +120 -0
- package/src/models/BuyerLeadListItemDto.ts +36 -0
- package/src/models/DomainAuctionDto.ts +119 -0
- package/src/models/DomainFiltersDto.ts +75 -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/UpdateLeaseToOwnConfigurationDto.ts +81 -0
- package/src/models/UpdateRentConfigurationDto.ts +81 -0
- package/src/models/VerifyEmailOtpInput.ts +75 -0
- package/src/models/VerifyPhoneOtpInput.ts +66 -0
- package/src/models/index.ts +23 -0
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -179,6 +179,62 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
179
179
|
});
|
|
180
180
|
});
|
|
181
181
|
};
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
*/
|
|
185
|
+
BuyersApi.prototype.bidRaw = function (requestParameters, initOverrides) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
187
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
188
|
+
return __generator(this, function (_a) {
|
|
189
|
+
switch (_a.label) {
|
|
190
|
+
case 0:
|
|
191
|
+
if (requestParameters['auctionId'] == null) {
|
|
192
|
+
throw new runtime.RequiredError('auctionId', 'Required parameter "auctionId" was null or undefined when calling bid().');
|
|
193
|
+
}
|
|
194
|
+
if (requestParameters['auctionBidInput'] == null) {
|
|
195
|
+
throw new runtime.RequiredError('auctionBidInput', 'Required parameter "auctionBidInput" was null or undefined when calling bid().');
|
|
196
|
+
}
|
|
197
|
+
queryParameters = {};
|
|
198
|
+
headerParameters = {};
|
|
199
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
200
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
201
|
+
token = this.configuration.accessToken;
|
|
202
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
203
|
+
case 1:
|
|
204
|
+
tokenString = _a.sent();
|
|
205
|
+
if (tokenString) {
|
|
206
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
207
|
+
}
|
|
208
|
+
_a.label = 2;
|
|
209
|
+
case 2: return [4 /*yield*/, this.request({
|
|
210
|
+
path: "/buyers/private/auction/{auctionId}/bid".replace("{".concat("auctionId", "}"), encodeURIComponent(String(requestParameters['auctionId']))),
|
|
211
|
+
method: 'POST',
|
|
212
|
+
headers: headerParameters,
|
|
213
|
+
query: queryParameters,
|
|
214
|
+
body: (0, index_1.AuctionBidInputToJSON)(requestParameters['auctionBidInput']),
|
|
215
|
+
}, initOverrides)];
|
|
216
|
+
case 3:
|
|
217
|
+
response = _a.sent();
|
|
218
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
*/
|
|
226
|
+
BuyersApi.prototype.bid = function (requestParameters, initOverrides) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
228
|
+
return __generator(this, function (_a) {
|
|
229
|
+
switch (_a.label) {
|
|
230
|
+
case 0: return [4 /*yield*/, this.bidRaw(requestParameters, initOverrides)];
|
|
231
|
+
case 1:
|
|
232
|
+
_a.sent();
|
|
233
|
+
return [2 /*return*/];
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
};
|
|
182
238
|
/**
|
|
183
239
|
* Mark multiple notifications as read (true) or unread (false) based on the readStatus parameter
|
|
184
240
|
* Bulk mark buyer notifications as read or unread
|
|
@@ -1175,6 +1231,56 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
1175
1231
|
});
|
|
1176
1232
|
});
|
|
1177
1233
|
};
|
|
1234
|
+
/**
|
|
1235
|
+
*
|
|
1236
|
+
*/
|
|
1237
|
+
BuyersApi.prototype.getLeadLeaseToOwnConfigurationPresetsRaw = function (initOverrides) {
|
|
1238
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1239
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1240
|
+
return __generator(this, function (_a) {
|
|
1241
|
+
switch (_a.label) {
|
|
1242
|
+
case 0:
|
|
1243
|
+
queryParameters = {};
|
|
1244
|
+
headerParameters = {};
|
|
1245
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1246
|
+
token = this.configuration.accessToken;
|
|
1247
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1248
|
+
case 1:
|
|
1249
|
+
tokenString = _a.sent();
|
|
1250
|
+
if (tokenString) {
|
|
1251
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1252
|
+
}
|
|
1253
|
+
_a.label = 2;
|
|
1254
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1255
|
+
path: "/buyers/private/lease-to-own-configuration-presets",
|
|
1256
|
+
method: 'GET',
|
|
1257
|
+
headers: headerParameters,
|
|
1258
|
+
query: queryParameters,
|
|
1259
|
+
}, initOverrides)];
|
|
1260
|
+
case 3:
|
|
1261
|
+
response = _a.sent();
|
|
1262
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadLeaseToOwnAndRentConfigurationPresetsDtoFromJSON)(jsonValue); })];
|
|
1263
|
+
}
|
|
1264
|
+
});
|
|
1265
|
+
});
|
|
1266
|
+
};
|
|
1267
|
+
/**
|
|
1268
|
+
*
|
|
1269
|
+
*/
|
|
1270
|
+
BuyersApi.prototype.getLeadLeaseToOwnConfigurationPresets = function (initOverrides) {
|
|
1271
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1272
|
+
var response;
|
|
1273
|
+
return __generator(this, function (_a) {
|
|
1274
|
+
switch (_a.label) {
|
|
1275
|
+
case 0: return [4 /*yield*/, this.getLeadLeaseToOwnConfigurationPresetsRaw(initOverrides)];
|
|
1276
|
+
case 1:
|
|
1277
|
+
response = _a.sent();
|
|
1278
|
+
return [4 /*yield*/, response.value()];
|
|
1279
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1280
|
+
}
|
|
1281
|
+
});
|
|
1282
|
+
});
|
|
1283
|
+
};
|
|
1178
1284
|
/**
|
|
1179
1285
|
*
|
|
1180
1286
|
*/
|
|
@@ -1403,6 +1509,112 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
1403
1509
|
});
|
|
1404
1510
|
});
|
|
1405
1511
|
};
|
|
1512
|
+
/**
|
|
1513
|
+
*
|
|
1514
|
+
*/
|
|
1515
|
+
BuyersApi.prototype.registerRaw = function (requestParameters, initOverrides) {
|
|
1516
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1517
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1518
|
+
return __generator(this, function (_a) {
|
|
1519
|
+
switch (_a.label) {
|
|
1520
|
+
case 0:
|
|
1521
|
+
if (requestParameters['registerInput'] == null) {
|
|
1522
|
+
throw new runtime.RequiredError('registerInput', 'Required parameter "registerInput" was null or undefined when calling register().');
|
|
1523
|
+
}
|
|
1524
|
+
queryParameters = {};
|
|
1525
|
+
headerParameters = {};
|
|
1526
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1527
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1528
|
+
token = this.configuration.accessToken;
|
|
1529
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1530
|
+
case 1:
|
|
1531
|
+
tokenString = _a.sent();
|
|
1532
|
+
if (tokenString) {
|
|
1533
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1534
|
+
}
|
|
1535
|
+
_a.label = 2;
|
|
1536
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1537
|
+
path: "/buyers/private/auction/register",
|
|
1538
|
+
method: 'POST',
|
|
1539
|
+
headers: headerParameters,
|
|
1540
|
+
query: queryParameters,
|
|
1541
|
+
body: (0, index_1.RegisterInputToJSON)(requestParameters['registerInput']),
|
|
1542
|
+
}, initOverrides)];
|
|
1543
|
+
case 3:
|
|
1544
|
+
response = _a.sent();
|
|
1545
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1546
|
+
}
|
|
1547
|
+
});
|
|
1548
|
+
});
|
|
1549
|
+
};
|
|
1550
|
+
/**
|
|
1551
|
+
*
|
|
1552
|
+
*/
|
|
1553
|
+
BuyersApi.prototype.register = function (requestParameters, initOverrides) {
|
|
1554
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1555
|
+
return __generator(this, function (_a) {
|
|
1556
|
+
switch (_a.label) {
|
|
1557
|
+
case 0: return [4 /*yield*/, this.registerRaw(requestParameters, initOverrides)];
|
|
1558
|
+
case 1:
|
|
1559
|
+
_a.sent();
|
|
1560
|
+
return [2 /*return*/];
|
|
1561
|
+
}
|
|
1562
|
+
});
|
|
1563
|
+
});
|
|
1564
|
+
};
|
|
1565
|
+
/**
|
|
1566
|
+
*
|
|
1567
|
+
*/
|
|
1568
|
+
BuyersApi.prototype.registerPhoneRaw = function (requestParameters, initOverrides) {
|
|
1569
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1570
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1571
|
+
return __generator(this, function (_a) {
|
|
1572
|
+
switch (_a.label) {
|
|
1573
|
+
case 0:
|
|
1574
|
+
if (requestParameters['registerAuctionBuyerPhoneInput'] == null) {
|
|
1575
|
+
throw new runtime.RequiredError('registerAuctionBuyerPhoneInput', 'Required parameter "registerAuctionBuyerPhoneInput" was null or undefined when calling registerPhone().');
|
|
1576
|
+
}
|
|
1577
|
+
queryParameters = {};
|
|
1578
|
+
headerParameters = {};
|
|
1579
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1580
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1581
|
+
token = this.configuration.accessToken;
|
|
1582
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1583
|
+
case 1:
|
|
1584
|
+
tokenString = _a.sent();
|
|
1585
|
+
if (tokenString) {
|
|
1586
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1587
|
+
}
|
|
1588
|
+
_a.label = 2;
|
|
1589
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1590
|
+
path: "/buyers/private/auction/register-phone",
|
|
1591
|
+
method: 'POST',
|
|
1592
|
+
headers: headerParameters,
|
|
1593
|
+
query: queryParameters,
|
|
1594
|
+
body: (0, index_1.RegisterAuctionBuyerPhoneInputToJSON)(requestParameters['registerAuctionBuyerPhoneInput']),
|
|
1595
|
+
}, initOverrides)];
|
|
1596
|
+
case 3:
|
|
1597
|
+
response = _a.sent();
|
|
1598
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1599
|
+
}
|
|
1600
|
+
});
|
|
1601
|
+
});
|
|
1602
|
+
};
|
|
1603
|
+
/**
|
|
1604
|
+
*
|
|
1605
|
+
*/
|
|
1606
|
+
BuyersApi.prototype.registerPhone = function (requestParameters, initOverrides) {
|
|
1607
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1608
|
+
return __generator(this, function (_a) {
|
|
1609
|
+
switch (_a.label) {
|
|
1610
|
+
case 0: return [4 /*yield*/, this.registerPhoneRaw(requestParameters, initOverrides)];
|
|
1611
|
+
case 1:
|
|
1612
|
+
_a.sent();
|
|
1613
|
+
return [2 /*return*/];
|
|
1614
|
+
}
|
|
1615
|
+
});
|
|
1616
|
+
});
|
|
1617
|
+
};
|
|
1406
1618
|
/**
|
|
1407
1619
|
*
|
|
1408
1620
|
*/
|
|
@@ -1779,6 +1991,61 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
1779
1991
|
});
|
|
1780
1992
|
});
|
|
1781
1993
|
};
|
|
1994
|
+
/**
|
|
1995
|
+
*
|
|
1996
|
+
*/
|
|
1997
|
+
BuyersApi.prototype.verifyPhoneOtpRaw = function (requestParameters, initOverrides) {
|
|
1998
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1999
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
2000
|
+
return __generator(this, function (_a) {
|
|
2001
|
+
switch (_a.label) {
|
|
2002
|
+
case 0:
|
|
2003
|
+
if (requestParameters['verifyPhoneOtpInput'] == null) {
|
|
2004
|
+
throw new runtime.RequiredError('verifyPhoneOtpInput', 'Required parameter "verifyPhoneOtpInput" was null or undefined when calling verifyPhoneOtp().');
|
|
2005
|
+
}
|
|
2006
|
+
queryParameters = {};
|
|
2007
|
+
headerParameters = {};
|
|
2008
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2009
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2010
|
+
token = this.configuration.accessToken;
|
|
2011
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
2012
|
+
case 1:
|
|
2013
|
+
tokenString = _a.sent();
|
|
2014
|
+
if (tokenString) {
|
|
2015
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2016
|
+
}
|
|
2017
|
+
_a.label = 2;
|
|
2018
|
+
case 2: return [4 /*yield*/, this.request({
|
|
2019
|
+
path: "/buyers/private/auction/verify-phone-otp",
|
|
2020
|
+
method: 'POST',
|
|
2021
|
+
headers: headerParameters,
|
|
2022
|
+
query: queryParameters,
|
|
2023
|
+
body: (0, index_1.VerifyPhoneOtpInputToJSON)(requestParameters['verifyPhoneOtpInput']),
|
|
2024
|
+
}, initOverrides)];
|
|
2025
|
+
case 3:
|
|
2026
|
+
response = _a.sent();
|
|
2027
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AuctionBuyerDtoFromJSON)(jsonValue); })];
|
|
2028
|
+
}
|
|
2029
|
+
});
|
|
2030
|
+
});
|
|
2031
|
+
};
|
|
2032
|
+
/**
|
|
2033
|
+
*
|
|
2034
|
+
*/
|
|
2035
|
+
BuyersApi.prototype.verifyPhoneOtp = function (requestParameters, initOverrides) {
|
|
2036
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2037
|
+
var response;
|
|
2038
|
+
return __generator(this, function (_a) {
|
|
2039
|
+
switch (_a.label) {
|
|
2040
|
+
case 0: return [4 /*yield*/, this.verifyPhoneOtpRaw(requestParameters, initOverrides)];
|
|
2041
|
+
case 1:
|
|
2042
|
+
response = _a.sent();
|
|
2043
|
+
return [4 /*yield*/, response.value()];
|
|
2044
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
2045
|
+
}
|
|
2046
|
+
});
|
|
2047
|
+
});
|
|
2048
|
+
};
|
|
1782
2049
|
return BuyersApi;
|
|
1783
2050
|
}(runtime.BaseAPI));
|
|
1784
2051
|
exports.BuyersApi = BuyersApi;
|
|
@@ -10,13 +10,19 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { LoginDto, LoginInput, RequestAccessTokenInput } from '../models/index';
|
|
13
|
+
import type { AuctionBuyerWithTokenDto, LoginDto, LoginInput, RequestAccessTokenInput, RequestEmailOtpInput, VerifyEmailOtpInput } from '../models/index';
|
|
14
14
|
export interface BuyersPublicApiBuyerLoginRequest {
|
|
15
15
|
loginInput: LoginInput;
|
|
16
16
|
}
|
|
17
17
|
export interface BuyersPublicApiRequestAccessTokenRequest {
|
|
18
18
|
requestAccessTokenInput: RequestAccessTokenInput;
|
|
19
19
|
}
|
|
20
|
+
export interface BuyersPublicApiRequestEmailOtpRequest {
|
|
21
|
+
requestEmailOtpInput: RequestEmailOtpInput;
|
|
22
|
+
}
|
|
23
|
+
export interface BuyersPublicApiVerifyEmailOtpRequest {
|
|
24
|
+
verifyEmailOtpInput: VerifyEmailOtpInput;
|
|
25
|
+
}
|
|
20
26
|
/**
|
|
21
27
|
*
|
|
22
28
|
*/
|
|
@@ -37,4 +43,20 @@ export declare class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
37
43
|
*
|
|
38
44
|
*/
|
|
39
45
|
requestAccessToken(requestParameters: BuyersPublicApiRequestAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
requestEmailOtpRaw(requestParameters: BuyersPublicApiRequestEmailOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
requestEmailOtp(requestParameters: BuyersPublicApiRequestEmailOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
verifyEmailOtpRaw(requestParameters: BuyersPublicApiVerifyEmailOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuctionBuyerWithTokenDto>>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
verifyEmailOtp(requestParameters: BuyersPublicApiVerifyEmailOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuctionBuyerWithTokenDto>;
|
|
40
62
|
}
|
|
@@ -165,6 +165,96 @@ var BuyersPublicApi = /** @class */ (function (_super) {
|
|
|
165
165
|
});
|
|
166
166
|
});
|
|
167
167
|
};
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
*/
|
|
171
|
+
BuyersPublicApi.prototype.requestEmailOtpRaw = function (requestParameters, initOverrides) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
173
|
+
var queryParameters, headerParameters, response;
|
|
174
|
+
return __generator(this, function (_a) {
|
|
175
|
+
switch (_a.label) {
|
|
176
|
+
case 0:
|
|
177
|
+
if (requestParameters['requestEmailOtpInput'] == null) {
|
|
178
|
+
throw new runtime.RequiredError('requestEmailOtpInput', 'Required parameter "requestEmailOtpInput" was null or undefined when calling requestEmailOtp().');
|
|
179
|
+
}
|
|
180
|
+
queryParameters = {};
|
|
181
|
+
headerParameters = {};
|
|
182
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
183
|
+
return [4 /*yield*/, this.request({
|
|
184
|
+
path: "/buyers/auction/request-email-otp",
|
|
185
|
+
method: 'POST',
|
|
186
|
+
headers: headerParameters,
|
|
187
|
+
query: queryParameters,
|
|
188
|
+
body: (0, index_1.RequestEmailOtpInputToJSON)(requestParameters['requestEmailOtpInput']),
|
|
189
|
+
}, initOverrides)];
|
|
190
|
+
case 1:
|
|
191
|
+
response = _a.sent();
|
|
192
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
*/
|
|
200
|
+
BuyersPublicApi.prototype.requestEmailOtp = function (requestParameters, initOverrides) {
|
|
201
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
202
|
+
return __generator(this, function (_a) {
|
|
203
|
+
switch (_a.label) {
|
|
204
|
+
case 0: return [4 /*yield*/, this.requestEmailOtpRaw(requestParameters, initOverrides)];
|
|
205
|
+
case 1:
|
|
206
|
+
_a.sent();
|
|
207
|
+
return [2 /*return*/];
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
});
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
*/
|
|
215
|
+
BuyersPublicApi.prototype.verifyEmailOtpRaw = function (requestParameters, initOverrides) {
|
|
216
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
217
|
+
var queryParameters, headerParameters, response;
|
|
218
|
+
return __generator(this, function (_a) {
|
|
219
|
+
switch (_a.label) {
|
|
220
|
+
case 0:
|
|
221
|
+
if (requestParameters['verifyEmailOtpInput'] == null) {
|
|
222
|
+
throw new runtime.RequiredError('verifyEmailOtpInput', 'Required parameter "verifyEmailOtpInput" was null or undefined when calling verifyEmailOtp().');
|
|
223
|
+
}
|
|
224
|
+
queryParameters = {};
|
|
225
|
+
headerParameters = {};
|
|
226
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
227
|
+
return [4 /*yield*/, this.request({
|
|
228
|
+
path: "/buyers/auction/verify-email-otp",
|
|
229
|
+
method: 'POST',
|
|
230
|
+
headers: headerParameters,
|
|
231
|
+
query: queryParameters,
|
|
232
|
+
body: (0, index_1.VerifyEmailOtpInputToJSON)(requestParameters['verifyEmailOtpInput']),
|
|
233
|
+
}, initOverrides)];
|
|
234
|
+
case 1:
|
|
235
|
+
response = _a.sent();
|
|
236
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AuctionBuyerWithTokenDtoFromJSON)(jsonValue); })];
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
*
|
|
243
|
+
*/
|
|
244
|
+
BuyersPublicApi.prototype.verifyEmailOtp = function (requestParameters, initOverrides) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
246
|
+
var response;
|
|
247
|
+
return __generator(this, function (_a) {
|
|
248
|
+
switch (_a.label) {
|
|
249
|
+
case 0: return [4 /*yield*/, this.verifyEmailOtpRaw(requestParameters, initOverrides)];
|
|
250
|
+
case 1:
|
|
251
|
+
response = _a.sent();
|
|
252
|
+
return [4 /*yield*/, response.value()];
|
|
253
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
});
|
|
257
|
+
};
|
|
168
258
|
return BuyersPublicApi;
|
|
169
259
|
}(runtime.BaseAPI));
|
|
170
260
|
exports.BuyersPublicApi = BuyersPublicApi;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainExchangeRateDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainAffiliateCommissionDto, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
|
|
13
|
+
import type { BatchImportPreviewDto, BatchUpdateDomainsInput, BulkUpdateDomainsWithFiltersInput, DeleteDomainsInput, DomainExchangeRateDto, DomainFiltersDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainAffiliateCommissionDto, SellerDomainTransferDto, StartAuctionInput, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
|
|
14
14
|
export interface DomainsApiBatchImportRequest {
|
|
15
15
|
file?: Blob | null;
|
|
16
16
|
domains?: Array<string>;
|
|
@@ -21,6 +21,10 @@ export interface DomainsApiBatchImportPreviewRequest {
|
|
|
21
21
|
export interface DomainsApiBatchUpdateRequest {
|
|
22
22
|
batchUpdateDomainsInput: BatchUpdateDomainsInput;
|
|
23
23
|
}
|
|
24
|
+
export interface DomainsApiBulkUpdateDomainsWithFiltersRequest {
|
|
25
|
+
bulkUpdateDomainsWithFiltersInput: BulkUpdateDomainsWithFiltersInput;
|
|
26
|
+
filter?: object;
|
|
27
|
+
}
|
|
24
28
|
export interface DomainsApiCheckDnsRequest {
|
|
25
29
|
domainId: string;
|
|
26
30
|
}
|
|
@@ -42,6 +46,9 @@ export interface DomainsApiGetDomainRequest {
|
|
|
42
46
|
export interface DomainsApiGetDomainExchangeRateRequest {
|
|
43
47
|
domainId: string;
|
|
44
48
|
}
|
|
49
|
+
export interface DomainsApiGetDomainFiltersCurrenciesRequest {
|
|
50
|
+
filter?: object;
|
|
51
|
+
}
|
|
45
52
|
export interface DomainsApiGetDomainTransferRequest {
|
|
46
53
|
transferId: string;
|
|
47
54
|
}
|
|
@@ -54,6 +61,10 @@ export interface DomainsApiListRequest {
|
|
|
54
61
|
limit?: number;
|
|
55
62
|
sortBy?: Array<string>;
|
|
56
63
|
}
|
|
64
|
+
export interface DomainsApiStartAuctionRequest {
|
|
65
|
+
domainId: string;
|
|
66
|
+
startAuctionInput: StartAuctionInput;
|
|
67
|
+
}
|
|
57
68
|
export interface DomainsApiUpdateRequest {
|
|
58
69
|
domainId: string;
|
|
59
70
|
updateDomainInput: UpdateDomainInput;
|
|
@@ -94,6 +105,14 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
94
105
|
*
|
|
95
106
|
*/
|
|
96
107
|
batchUpdate(requestParameters: DomainsApiBatchUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
*/
|
|
111
|
+
bulkUpdateDomainsWithFiltersRaw(requestParameters: DomainsApiBulkUpdateDomainsWithFiltersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
bulkUpdateDomainsWithFilters(requestParameters: DomainsApiBulkUpdateDomainsWithFiltersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
97
116
|
/**
|
|
98
117
|
*
|
|
99
118
|
*/
|
|
@@ -150,6 +169,22 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
150
169
|
*
|
|
151
170
|
*/
|
|
152
171
|
getDomainExchangeRate(requestParameters: DomainsApiGetDomainExchangeRateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainExchangeRateDto>;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
*/
|
|
175
|
+
getDomainFiltersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainFiltersDto>>;
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
*/
|
|
179
|
+
getDomainFilters(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainFiltersDto>;
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
*/
|
|
183
|
+
getDomainFiltersCurrenciesRaw(requestParameters: DomainsApiGetDomainFiltersCurrenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
*/
|
|
187
|
+
getDomainFiltersCurrencies(requestParameters?: DomainsApiGetDomainFiltersCurrenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
153
188
|
/**
|
|
154
189
|
*
|
|
155
190
|
*/
|
|
@@ -174,6 +209,14 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
174
209
|
*
|
|
175
210
|
*/
|
|
176
211
|
list(requestParameters?: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response2>;
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
*/
|
|
215
|
+
startAuctionRaw(requestParameters: DomainsApiStartAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
*/
|
|
219
|
+
startAuction(requestParameters: DomainsApiStartAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
177
220
|
/**
|
|
178
221
|
*
|
|
179
222
|
*/
|