@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.
Files changed (135) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsPublicApi.d.ts +1 -0
  4. package/dist/apis/AccountsPublicApi.js +3 -0
  5. package/dist/apis/AuctionsPublicApi.d.ts +29 -0
  6. package/dist/apis/AuctionsPublicApi.js +124 -0
  7. package/dist/apis/BuyersApi.d.ts +54 -1
  8. package/dist/apis/BuyersApi.js +267 -0
  9. package/dist/apis/BuyersPublicApi.d.ts +23 -1
  10. package/dist/apis/BuyersPublicApi.js +90 -0
  11. package/dist/apis/DomainsApi.d.ts +13 -1
  12. package/dist/apis/DomainsApi.js +56 -0
  13. package/dist/apis/LeadsApi.d.ts +2 -5
  14. package/dist/apis/LeadsApi.js +4 -8
  15. package/dist/apis/index.d.ts +1 -0
  16. package/dist/apis/index.js +1 -0
  17. package/dist/models/AuctionBidDto.d.ts +51 -0
  18. package/dist/models/AuctionBidDto.js +64 -0
  19. package/dist/models/AuctionBidInput.d.ts +32 -0
  20. package/dist/models/AuctionBidInput.js +51 -0
  21. package/dist/models/AuctionBuyerDto.d.ts +74 -0
  22. package/dist/models/AuctionBuyerDto.js +79 -0
  23. package/dist/models/AuctionBuyerWithTokenDto.d.ts +39 -0
  24. package/dist/models/AuctionBuyerWithTokenDto.js +56 -0
  25. package/dist/models/AuctionDto.d.ts +82 -0
  26. package/dist/models/AuctionDto.js +85 -0
  27. package/dist/models/BuyerLeadListItemDto.d.ts +23 -0
  28. package/dist/models/BuyerLeadListItemDto.js +19 -1
  29. package/dist/models/DomainAuctionDto.d.ts +63 -0
  30. package/dist/models/DomainAuctionDto.js +72 -0
  31. package/dist/models/DomainSalesInformationDto.d.ts +12 -0
  32. package/dist/models/DomainSalesInformationDto.js +8 -0
  33. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  34. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  35. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
  36. package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
  37. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
  38. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
  39. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +7 -0
  40. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +5 -0
  41. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +36 -0
  42. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +28 -1
  43. package/dist/models/LeadDto.d.ts +43 -0
  44. package/dist/models/LeadDto.js +33 -1
  45. package/dist/models/LeadLeaseToOwnConfigurationDto.d.ts +50 -0
  46. package/dist/models/LeadLeaseToOwnConfigurationDto.js +63 -0
  47. package/dist/models/LeadMessageData.d.ts +7 -0
  48. package/dist/models/LeadMessageData.js +5 -0
  49. package/dist/models/LeadMessageDataLeaseToOwn.d.ts +38 -0
  50. package/dist/models/LeadMessageDataLeaseToOwn.js +55 -0
  51. package/dist/models/LeadMessageDto.d.ts +16 -0
  52. package/dist/models/LeadMessageDto.js +14 -1
  53. package/dist/models/LeadOfferDto.d.ts +72 -0
  54. package/dist/models/LeadOfferDto.js +84 -0
  55. package/dist/models/LeadRentConfigurationDto.d.ts +38 -0
  56. package/dist/models/LeadRentConfigurationDto.js +55 -0
  57. package/dist/models/ListLeadsResultItem.d.ts +43 -0
  58. package/dist/models/ListLeadsResultItem.js +33 -1
  59. package/dist/models/ManualLeadLeaseToOwnDto.d.ts +12 -0
  60. package/dist/models/ManualLeadLeaseToOwnDto.js +8 -0
  61. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  62. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  63. package/dist/models/PutBuyerLeadOfferInput.d.ts +22 -0
  64. package/dist/models/PutBuyerLeadOfferInput.js +14 -0
  65. package/dist/models/PutLeadOfferInput.d.ts +23 -1
  66. package/dist/models/PutLeadOfferInput.js +15 -3
  67. package/dist/models/RegisterAuctionBuyerPhoneInput.d.ts +47 -0
  68. package/dist/models/RegisterAuctionBuyerPhoneInput.js +64 -0
  69. package/dist/models/RegisterInput.d.ts +38 -0
  70. package/dist/models/RegisterInput.js +55 -0
  71. package/dist/models/RequestEmailOtpInput.d.ts +38 -0
  72. package/dist/models/RequestEmailOtpInput.js +55 -0
  73. package/dist/models/SellerLeadDetails.d.ts +43 -0
  74. package/dist/models/SellerLeadDetails.js +33 -1
  75. package/dist/models/StartAuctionInput.d.ts +51 -0
  76. package/dist/models/StartAuctionInput.js +62 -0
  77. package/dist/models/TaskListLeadDto.d.ts +43 -0
  78. package/dist/models/TaskListLeadDto.js +33 -1
  79. package/dist/models/TaskListLeadLeaseToOwnConfigurationDto.d.ts +50 -0
  80. package/dist/models/TaskListLeadLeaseToOwnConfigurationDto.js +63 -0
  81. package/dist/models/TaskListLeadOfferDto.d.ts +72 -0
  82. package/dist/models/TaskListLeadOfferDto.js +84 -0
  83. package/dist/models/TaskListLeadRentConfigurationDto.d.ts +38 -0
  84. package/dist/models/TaskListLeadRentConfigurationDto.js +55 -0
  85. package/dist/models/VerifyEmailOtpInput.d.ts +38 -0
  86. package/dist/models/VerifyEmailOtpInput.js +55 -0
  87. package/dist/models/VerifyPhoneOtpInput.d.ts +32 -0
  88. package/dist/models/VerifyPhoneOtpInput.js +51 -0
  89. package/dist/models/index.d.ts +19 -0
  90. package/dist/models/index.js +19 -0
  91. package/package.json +1 -1
  92. package/src/apis/AccountsPublicApi.ts +5 -0
  93. package/src/apis/AuctionsPublicApi.ts +67 -0
  94. package/src/apis/BuyersApi.ts +249 -0
  95. package/src/apis/BuyersPublicApi.ts +88 -0
  96. package/src/apis/DomainsApi.ts +58 -0
  97. package/src/apis/LeadsApi.ts +3 -11
  98. package/src/apis/index.ts +1 -0
  99. package/src/models/AuctionBidDto.ts +101 -0
  100. package/src/models/AuctionBidInput.ts +66 -0
  101. package/src/models/AuctionBuyerDto.ts +129 -0
  102. package/src/models/AuctionBuyerWithTokenDto.ts +83 -0
  103. package/src/models/AuctionDto.ts +153 -0
  104. package/src/models/BuyerLeadListItemDto.ts +36 -0
  105. package/src/models/DomainAuctionDto.ts +119 -0
  106. package/src/models/DomainSalesInformationDto.ts +18 -0
  107. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  108. package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
  109. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
  110. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +16 -0
  111. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +61 -0
  112. package/src/models/LeadDto.ts +77 -0
  113. package/src/models/LeadLeaseToOwnConfigurationDto.ts +93 -0
  114. package/src/models/LeadMessageData.ts +16 -0
  115. package/src/models/LeadMessageDataLeaseToOwn.ts +75 -0
  116. package/src/models/LeadMessageDto.ts +20 -0
  117. package/src/models/LeadOfferDto.ts +132 -0
  118. package/src/models/LeadRentConfigurationDto.ts +75 -0
  119. package/src/models/ListLeadsResultItem.ts +77 -0
  120. package/src/models/ManualLeadLeaseToOwnDto.ts +18 -0
  121. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  122. package/src/models/PutBuyerLeadOfferInput.ts +29 -0
  123. package/src/models/PutLeadOfferInput.ts +31 -3
  124. package/src/models/RegisterAuctionBuyerPhoneInput.ts +87 -0
  125. package/src/models/RegisterInput.ts +75 -0
  126. package/src/models/RequestEmailOtpInput.ts +75 -0
  127. package/src/models/SellerLeadDetails.ts +77 -0
  128. package/src/models/StartAuctionInput.ts +100 -0
  129. package/src/models/TaskListLeadDto.ts +77 -0
  130. package/src/models/TaskListLeadLeaseToOwnConfigurationDto.ts +93 -0
  131. package/src/models/TaskListLeadOfferDto.ts +132 -0
  132. package/src/models/TaskListLeadRentConfigurationDto.ts +75 -0
  133. package/src/models/VerifyEmailOtpInput.ts +75 -0
  134. package/src/models/VerifyPhoneOtpInput.ts +66 -0
  135. package/src/models/index.ts +19 -0
@@ -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, BulkUpdateDomainsWithFiltersInput, DeleteDomainsInput, DomainExchangeRateDto, DomainFiltersDto, 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>;
@@ -61,6 +61,10 @@ export interface DomainsApiListRequest {
61
61
  limit?: number;
62
62
  sortBy?: Array<string>;
63
63
  }
64
+ export interface DomainsApiStartAuctionRequest {
65
+ domainId: string;
66
+ startAuctionInput: StartAuctionInput;
67
+ }
64
68
  export interface DomainsApiUpdateRequest {
65
69
  domainId: string;
66
70
  updateDomainInput: UpdateDomainInput;
@@ -205,6 +209,14 @@ export declare class DomainsApi extends runtime.BaseAPI {
205
209
  *
206
210
  */
207
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>;
208
220
  /**
209
221
  *
210
222
  */
@@ -973,6 +973,62 @@ var DomainsApi = /** @class */ (function (_super) {
973
973
  });
974
974
  });
975
975
  };
976
+ /**
977
+ *
978
+ */
979
+ DomainsApi.prototype.startAuctionRaw = function (requestParameters, initOverrides) {
980
+ return __awaiter(this, void 0, void 0, function () {
981
+ var queryParameters, headerParameters, token, tokenString, response;
982
+ return __generator(this, function (_a) {
983
+ switch (_a.label) {
984
+ case 0:
985
+ if (requestParameters['domainId'] == null) {
986
+ throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling startAuction().');
987
+ }
988
+ if (requestParameters['startAuctionInput'] == null) {
989
+ throw new runtime.RequiredError('startAuctionInput', 'Required parameter "startAuctionInput" was null or undefined when calling startAuction().');
990
+ }
991
+ queryParameters = {};
992
+ headerParameters = {};
993
+ headerParameters['Content-Type'] = 'application/json';
994
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
995
+ token = this.configuration.accessToken;
996
+ return [4 /*yield*/, token("bearer", [])];
997
+ case 1:
998
+ tokenString = _a.sent();
999
+ if (tokenString) {
1000
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1001
+ }
1002
+ _a.label = 2;
1003
+ case 2: return [4 /*yield*/, this.request({
1004
+ path: "/private/domains/{domainId}/start-auction".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
1005
+ method: 'POST',
1006
+ headers: headerParameters,
1007
+ query: queryParameters,
1008
+ body: (0, index_1.StartAuctionInputToJSON)(requestParameters['startAuctionInput']),
1009
+ }, initOverrides)];
1010
+ case 3:
1011
+ response = _a.sent();
1012
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
1013
+ }
1014
+ });
1015
+ });
1016
+ };
1017
+ /**
1018
+ *
1019
+ */
1020
+ DomainsApi.prototype.startAuction = function (requestParameters, initOverrides) {
1021
+ return __awaiter(this, void 0, void 0, function () {
1022
+ return __generator(this, function (_a) {
1023
+ switch (_a.label) {
1024
+ case 0: return [4 /*yield*/, this.startAuctionRaw(requestParameters, initOverrides)];
1025
+ case 1:
1026
+ _a.sent();
1027
+ return [2 /*return*/];
1028
+ }
1029
+ });
1030
+ });
1031
+ };
976
1032
  /**
977
1033
  *
978
1034
  */
@@ -31,9 +31,6 @@ export interface LeadsApiCreateMessageRequest {
31
31
  export interface LeadsApiGetLeadRequest {
32
32
  leadId: string;
33
33
  }
34
- export interface LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest {
35
- date?: string;
36
- }
37
34
  export interface LeadsApiGetManualLeadRequest {
38
35
  leadId: string;
39
36
  }
@@ -118,11 +115,11 @@ export declare class LeadsApi extends runtime.BaseAPI {
118
115
  /**
119
116
  *
120
117
  */
121
- getLeadLeaseToOwnConfigurationPresetsRaw(requestParameters: LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadLeaseToOwnAndRentConfigurationPresetsDto>>;
118
+ getLeadLeaseToOwnConfigurationPresetsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadLeaseToOwnAndRentConfigurationPresetsDto>>;
122
119
  /**
123
120
  *
124
121
  */
125
- getLeadLeaseToOwnConfigurationPresets(requestParameters?: LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadLeaseToOwnAndRentConfigurationPresetsDto>;
122
+ getLeadLeaseToOwnConfigurationPresets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadLeaseToOwnAndRentConfigurationPresetsDto>;
126
123
  /**
127
124
  *
128
125
  */
@@ -400,16 +400,13 @@ var LeadsApi = /** @class */ (function (_super) {
400
400
  /**
401
401
  *
402
402
  */
403
- LeadsApi.prototype.getLeadLeaseToOwnConfigurationPresetsRaw = function (requestParameters, initOverrides) {
403
+ LeadsApi.prototype.getLeadLeaseToOwnConfigurationPresetsRaw = function (initOverrides) {
404
404
  return __awaiter(this, void 0, void 0, function () {
405
405
  var queryParameters, headerParameters, token, tokenString, response;
406
406
  return __generator(this, function (_a) {
407
407
  switch (_a.label) {
408
408
  case 0:
409
409
  queryParameters = {};
410
- if (requestParameters['date'] != null) {
411
- queryParameters['date'] = requestParameters['date'];
412
- }
413
410
  headerParameters = {};
414
411
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
415
412
  token = this.configuration.accessToken;
@@ -436,13 +433,12 @@ var LeadsApi = /** @class */ (function (_super) {
436
433
  /**
437
434
  *
438
435
  */
439
- LeadsApi.prototype.getLeadLeaseToOwnConfigurationPresets = function () {
440
- return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
436
+ LeadsApi.prototype.getLeadLeaseToOwnConfigurationPresets = function (initOverrides) {
437
+ return __awaiter(this, void 0, void 0, function () {
441
438
  var response;
442
- if (requestParameters === void 0) { requestParameters = {}; }
443
439
  return __generator(this, function (_a) {
444
440
  switch (_a.label) {
445
- case 0: return [4 /*yield*/, this.getLeadLeaseToOwnConfigurationPresetsRaw(requestParameters, initOverrides)];
441
+ case 0: return [4 /*yield*/, this.getLeadLeaseToOwnConfigurationPresetsRaw(initOverrides)];
446
442
  case 1:
447
443
  response = _a.sent();
448
444
  return [4 /*yield*/, response.value()];
@@ -1,6 +1,7 @@
1
1
  export * from './AccountsApi';
2
2
  export * from './AccountsPublicApi';
3
3
  export * from './AdminApi';
4
+ export * from './AuctionsPublicApi';
4
5
  export * from './BankAccountsApi';
5
6
  export * from './BuyersApi';
6
7
  export * from './BuyersPublicApi';
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./AccountsApi"), exports);
20
20
  __exportStar(require("./AccountsPublicApi"), exports);
21
21
  __exportStar(require("./AdminApi"), exports);
22
+ __exportStar(require("./AuctionsPublicApi"), exports);
22
23
  __exportStar(require("./BankAccountsApi"), exports);
23
24
  __exportStar(require("./BuyersApi"), exports);
24
25
  __exportStar(require("./BuyersPublicApi"), exports);
@@ -0,0 +1,51 @@
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 { MoneyDto } from './MoneyDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AuctionBidDto
17
+ */
18
+ export interface AuctionBidDto {
19
+ /**
20
+ * Auction Bid Id
21
+ * @type {string}
22
+ * @memberof AuctionBidDto
23
+ */
24
+ id: string;
25
+ /**
26
+ * Auction Bid amount
27
+ * @type {MoneyDto}
28
+ * @memberof AuctionBidDto
29
+ */
30
+ amount: MoneyDto;
31
+ /**
32
+ * Auction Bidder's nickname
33
+ * @type {string}
34
+ * @memberof AuctionBidDto
35
+ */
36
+ nickname: string;
37
+ /**
38
+ * Auction Bid createdAt
39
+ * @type {Date}
40
+ * @memberof AuctionBidDto
41
+ */
42
+ createdAt: Date;
43
+ }
44
+ /**
45
+ * Check if a given object implements the AuctionBidDto interface.
46
+ */
47
+ export declare function instanceOfAuctionBidDto(value: object): value is AuctionBidDto;
48
+ export declare function AuctionBidDtoFromJSON(json: any): AuctionBidDto;
49
+ export declare function AuctionBidDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionBidDto;
50
+ export declare function AuctionBidDtoToJSON(json: any): AuctionBidDto;
51
+ export declare function AuctionBidDtoToJSONTyped(value?: AuctionBidDto | null, ignoreDiscriminator?: boolean): any;