@randock/nameshift-api-client 0.0.335 → 0.0.337

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 (57) hide show
  1. package/.openapi-generator/FILES +13 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +15 -1
  4. package/dist/apis/AdminApi.js +63 -0
  5. package/dist/apis/AuctionsApi.d.ts +32 -0
  6. package/dist/apis/AuctionsApi.js +143 -0
  7. package/dist/apis/BuyersApi.d.ts +15 -1
  8. package/dist/apis/BuyersApi.js +67 -4
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/AuctionListItemDto.d.ts +119 -0
  12. package/dist/models/AuctionListItemDto.js +114 -0
  13. package/dist/models/AuctionListItemDtoDomainInformation.d.ts +44 -0
  14. package/dist/models/AuctionListItemDtoDomainInformation.js +59 -0
  15. package/dist/models/AuctionListItemDtoSellerAccount.d.ts +50 -0
  16. package/dist/models/AuctionListItemDtoSellerAccount.js +63 -0
  17. package/dist/models/BuyerAuctionListItemDto.d.ts +125 -0
  18. package/dist/models/BuyerAuctionListItemDto.js +118 -0
  19. package/dist/models/BuyerAuctionListItemDtoDomainInformation.d.ts +44 -0
  20. package/dist/models/BuyerAuctionListItemDtoDomainInformation.js +59 -0
  21. package/dist/models/BuyerAuctionListItemDtoSellerAccount.d.ts +50 -0
  22. package/dist/models/BuyerAuctionListItemDtoSellerAccount.js +63 -0
  23. package/dist/models/BuyerSessionDto.d.ts +6 -0
  24. package/dist/models/BuyerSessionDto.js +4 -0
  25. package/dist/models/GetAllAuctions200Response.d.ts +47 -0
  26. package/dist/models/GetAllAuctions200Response.js +62 -0
  27. package/dist/models/GetAllAuctions200Response1.d.ts +47 -0
  28. package/dist/models/GetAllAuctions200Response1.js +62 -0
  29. package/dist/models/GetBuyerAuctions200Response.d.ts +47 -0
  30. package/dist/models/GetBuyerAuctions200Response.js +62 -0
  31. package/dist/models/SellerAuctionListItemDto.d.ts +119 -0
  32. package/dist/models/SellerAuctionListItemDto.js +114 -0
  33. package/dist/models/SellerAuctionListItemDtoDomainInformation.d.ts +44 -0
  34. package/dist/models/SellerAuctionListItemDtoDomainInformation.js +59 -0
  35. package/dist/models/SellerAuctionListItemDtoSellerAccount.d.ts +50 -0
  36. package/dist/models/SellerAuctionListItemDtoSellerAccount.js +63 -0
  37. package/dist/models/index.d.ts +12 -0
  38. package/dist/models/index.js +12 -0
  39. package/package.json +1 -1
  40. package/src/apis/AdminApi.ts +60 -0
  41. package/src/apis/AuctionsApi.ts +90 -0
  42. package/src/apis/BuyersApi.ts +64 -4
  43. package/src/apis/index.ts +1 -0
  44. package/src/models/AuctionListItemDto.ts +217 -0
  45. package/src/models/AuctionListItemDtoDomainInformation.ts +84 -0
  46. package/src/models/AuctionListItemDtoSellerAccount.ts +93 -0
  47. package/src/models/BuyerAuctionListItemDto.ts +226 -0
  48. package/src/models/BuyerAuctionListItemDtoDomainInformation.ts +84 -0
  49. package/src/models/BuyerAuctionListItemDtoSellerAccount.ts +93 -0
  50. package/src/models/BuyerSessionDto.ts +9 -0
  51. package/src/models/GetAllAuctions200Response.ts +106 -0
  52. package/src/models/GetAllAuctions200Response1.ts +106 -0
  53. package/src/models/GetBuyerAuctions200Response.ts +106 -0
  54. package/src/models/SellerAuctionListItemDto.ts +217 -0
  55. package/src/models/SellerAuctionListItemDtoDomainInformation.ts +84 -0
  56. package/src/models/SellerAuctionListItemDtoSellerAccount.ts +93 -0
  57. package/src/models/index.ts +12 -0
@@ -6,6 +6,7 @@ package.json
6
6
  src/apis/AccountsApi.ts
7
7
  src/apis/AccountsPublicApi.ts
8
8
  src/apis/AdminApi.ts
9
+ src/apis/AuctionsApi.ts
9
10
  src/apis/AuctionsPublicApi.ts
10
11
  src/apis/BankAccountsApi.ts
11
12
  src/apis/BuyersApi.ts
@@ -78,6 +79,9 @@ src/models/AuctionBidMetricsDto.ts
78
79
  src/models/AuctionBuyerDto.ts
79
80
  src/models/AuctionBuyerWithTokenDto.ts
80
81
  src/models/AuctionDto.ts
82
+ src/models/AuctionListItemDto.ts
83
+ src/models/AuctionListItemDtoDomainInformation.ts
84
+ src/models/AuctionListItemDtoSellerAccount.ts
81
85
  src/models/BadRequestException.ts
82
86
  src/models/BatchDeleteBuyerLeadsInput.ts
83
87
  src/models/BatchImportPreviewDto.ts
@@ -89,6 +93,9 @@ src/models/BillingInformationDto.ts
89
93
  src/models/BulkMarkBuyerNotificationsAsReadInputDto.ts
90
94
  src/models/BulkMarkNotificationsAsReadInputDto.ts
91
95
  src/models/BulkUpdateDomainsWithFiltersInput.ts
96
+ src/models/BuyerAuctionListItemDto.ts
97
+ src/models/BuyerAuctionListItemDtoDomainInformation.ts
98
+ src/models/BuyerAuctionListItemDtoSellerAccount.ts
92
99
  src/models/BuyerDomainTransferAuthCodeDto.ts
93
100
  src/models/BuyerDomainTransferListItemDomainDto.ts
94
101
  src/models/BuyerDomainTransferListItemDto.ts
@@ -164,6 +171,8 @@ src/models/DomainUrlDto.ts
164
171
  src/models/EppBatchUpdateInput.ts
165
172
  src/models/ForgotPasswordRequestInput.ts
166
173
  src/models/GetAllAffiliateCommissions200Response.ts
174
+ src/models/GetAllAuctions200Response.ts
175
+ src/models/GetAllAuctions200Response1.ts
167
176
  src/models/GetAllDomainTransfers200Response.ts
168
177
  src/models/GetAllInvoices200Response.ts
169
178
  src/models/GetAllOrders200Response.ts
@@ -171,6 +180,7 @@ src/models/GetAllOwnedDomains200Response.ts
171
180
  src/models/GetAllReferrals200Response.ts
172
181
  src/models/GetAllSubscriptions200Response.ts
173
182
  src/models/GetAllSubscriptions200Response1.ts
183
+ src/models/GetBuyerAuctions200Response.ts
174
184
  src/models/GetBuyerInvoices200Response.ts
175
185
  src/models/GetBuyerLeads200Response.ts
176
186
  src/models/GetBuyerSubscriptions200Response.ts
@@ -276,6 +286,9 @@ src/models/RequestAccessTokenInput.ts
276
286
  src/models/RequestEmailOtpInput.ts
277
287
  src/models/SellerAccountReferralListItemDto.ts
278
288
  src/models/SellerAffiliateCommissionDto.ts
289
+ src/models/SellerAuctionListItemDto.ts
290
+ src/models/SellerAuctionListItemDtoDomainInformation.ts
291
+ src/models/SellerAuctionListItemDtoSellerAccount.ts
279
292
  src/models/SellerDomainAffiliateCommissionDto.ts
280
293
  src/models/SellerDomainAffiliateCommissionDtoDomain.ts
281
294
  src/models/SellerDomainTransferAuthCodeDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.335
1
+ ## @randock/nameshift-api-client@0.0.337
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.335 --save
39
+ npm install @randock/nameshift-api-client@0.0.337 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 3fa3cbe7495d824a05a4e6e50fa11bf71aa7061af3b37951d2a084a6c68602b86d1f78b70c1fa875122de2d7dff99d93
47
+ 6aea216a87c7c2346c842c02a0ece3d1fdccd5759936ab9e9492e573ac689d7095147214ae2aff6d93ed43ebe48d36fd
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
13
+ import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -43,6 +43,12 @@ export interface AdminApiGetAdminDomainTransferDetailsRequest {
43
43
  export interface AdminApiGetAllAccountsSalesCountRequest {
44
44
  dateRange?: any | null;
45
45
  }
46
+ export interface AdminApiGetAllAuctionsRequest {
47
+ filter?: object;
48
+ page?: number;
49
+ limit?: number;
50
+ sortBy?: Array<string>;
51
+ }
46
52
  export interface AdminApiGetAllInvoicesRequest {
47
53
  filter?: object;
48
54
  page?: number;
@@ -204,6 +210,14 @@ export declare class AdminApi extends runtime.BaseAPI {
204
210
  *
205
211
  */
206
212
  getAllAccountsSalesCount(requestParameters?: AdminApiGetAllAccountsSalesCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesCountStatsItemDto>>;
213
+ /**
214
+ *
215
+ */
216
+ getAllAuctionsRaw(requestParameters: AdminApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllAuctions200Response>>;
217
+ /**
218
+ *
219
+ */
220
+ getAllAuctions(requestParameters?: AdminApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAuctions200Response>;
207
221
  /**
208
222
  *
209
223
  */
@@ -569,6 +569,69 @@ var AdminApi = /** @class */ (function (_super) {
569
569
  });
570
570
  });
571
571
  };
572
+ /**
573
+ *
574
+ */
575
+ AdminApi.prototype.getAllAuctionsRaw = function (requestParameters, initOverrides) {
576
+ return __awaiter(this, void 0, void 0, function () {
577
+ var queryParameters, headerParameters, token, tokenString, response;
578
+ return __generator(this, function (_a) {
579
+ switch (_a.label) {
580
+ case 0:
581
+ queryParameters = {};
582
+ if (requestParameters['filter'] != null) {
583
+ queryParameters['filter'] = requestParameters['filter'];
584
+ }
585
+ if (requestParameters['page'] != null) {
586
+ queryParameters['page'] = requestParameters['page'];
587
+ }
588
+ if (requestParameters['limit'] != null) {
589
+ queryParameters['limit'] = requestParameters['limit'];
590
+ }
591
+ if (requestParameters['sortBy'] != null) {
592
+ queryParameters['sortBy'] = requestParameters['sortBy'];
593
+ }
594
+ headerParameters = {};
595
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
596
+ token = this.configuration.accessToken;
597
+ return [4 /*yield*/, token("bearer", [])];
598
+ case 1:
599
+ tokenString = _a.sent();
600
+ if (tokenString) {
601
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
602
+ }
603
+ _a.label = 2;
604
+ case 2: return [4 /*yield*/, this.request({
605
+ path: "/admin/auctions",
606
+ method: 'GET',
607
+ headers: headerParameters,
608
+ query: queryParameters,
609
+ }, initOverrides)];
610
+ case 3:
611
+ response = _a.sent();
612
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllAuctions200ResponseFromJSON)(jsonValue); })];
613
+ }
614
+ });
615
+ });
616
+ };
617
+ /**
618
+ *
619
+ */
620
+ AdminApi.prototype.getAllAuctions = function () {
621
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
622
+ var response;
623
+ if (requestParameters === void 0) { requestParameters = {}; }
624
+ return __generator(this, function (_a) {
625
+ switch (_a.label) {
626
+ case 0: return [4 /*yield*/, this.getAllAuctionsRaw(requestParameters, initOverrides)];
627
+ case 1:
628
+ response = _a.sent();
629
+ return [4 /*yield*/, response.value()];
630
+ case 2: return [2 /*return*/, _a.sent()];
631
+ }
632
+ });
633
+ });
634
+ };
572
635
  /**
573
636
  *
574
637
  */
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { GetAllAuctions200Response1 } from '../models/index';
14
+ export interface AuctionsApiGetAllAuctionsRequest {
15
+ filter?: object;
16
+ page?: number;
17
+ limit?: number;
18
+ sortBy?: Array<string>;
19
+ }
20
+ /**
21
+ *
22
+ */
23
+ export declare class AuctionsApi extends runtime.BaseAPI {
24
+ /**
25
+ *
26
+ */
27
+ getAllAuctionsRaw(requestParameters: AuctionsApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllAuctions200Response1>>;
28
+ /**
29
+ *
30
+ */
31
+ getAllAuctions(requestParameters?: AuctionsApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAuctions200Response1>;
32
+ }
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.AuctionsApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var AuctionsApi = /** @class */ (function (_super) {
74
+ __extends(AuctionsApi, _super);
75
+ function AuctionsApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ *
80
+ */
81
+ AuctionsApi.prototype.getAllAuctionsRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, token, tokenString, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ queryParameters = {};
88
+ if (requestParameters['filter'] != null) {
89
+ queryParameters['filter'] = requestParameters['filter'];
90
+ }
91
+ if (requestParameters['page'] != null) {
92
+ queryParameters['page'] = requestParameters['page'];
93
+ }
94
+ if (requestParameters['limit'] != null) {
95
+ queryParameters['limit'] = requestParameters['limit'];
96
+ }
97
+ if (requestParameters['sortBy'] != null) {
98
+ queryParameters['sortBy'] = requestParameters['sortBy'];
99
+ }
100
+ headerParameters = {};
101
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
102
+ token = this.configuration.accessToken;
103
+ return [4 /*yield*/, token("bearer", [])];
104
+ case 1:
105
+ tokenString = _a.sent();
106
+ if (tokenString) {
107
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
108
+ }
109
+ _a.label = 2;
110
+ case 2: return [4 /*yield*/, this.request({
111
+ path: "/private/auctions",
112
+ method: 'GET',
113
+ headers: headerParameters,
114
+ query: queryParameters,
115
+ }, initOverrides)];
116
+ case 3:
117
+ response = _a.sent();
118
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllAuctions200Response1FromJSON)(jsonValue); })];
119
+ }
120
+ });
121
+ });
122
+ };
123
+ /**
124
+ *
125
+ */
126
+ AuctionsApi.prototype.getAllAuctions = function () {
127
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
128
+ var response;
129
+ if (requestParameters === void 0) { requestParameters = {}; }
130
+ return __generator(this, function (_a) {
131
+ switch (_a.label) {
132
+ case 0: return [4 /*yield*/, this.getAllAuctionsRaw(requestParameters, initOverrides)];
133
+ case 1:
134
+ response = _a.sent();
135
+ return [4 /*yield*/, response.value()];
136
+ case 2: return [2 /*return*/, _a.sent()];
137
+ }
138
+ });
139
+ });
140
+ };
141
+ return AuctionsApi;
142
+ }(runtime.BaseAPI));
143
+ exports.AuctionsApi = AuctionsApi;
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AuctionBidInput, AuctionBuyerDto, BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BulkMarkBuyerNotificationsAsReadInputDto, BuyerDomainTransferAuthCodeDto, BuyerNotificationDto, BuyerNotificationSettingsDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadMessageDto, ListBuyerNotifications200Response, ObjectId, PutBuyerLeadOfferInput, RegisterAuctionBuyerPhoneInput, RegisterInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateBuyerNotificationSettingsInput, UpdateLeadMuteStatusForBuyerInput, UpdateTaskMuteStatusForBuyerInput, VerifyPhoneOtpInput } from '../models/index';
13
+ import type { AuctionBidInput, AuctionBuyerDto, BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BulkMarkBuyerNotificationsAsReadInputDto, BuyerDomainTransferAuthCodeDto, BuyerNotificationDto, BuyerNotificationSettingsDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerAuctions200Response, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadMessageDto, ListBuyerNotifications200Response, ObjectId, PutBuyerLeadOfferInput, RegisterAuctionBuyerPhoneInput, RegisterInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateBuyerNotificationSettingsInput, UpdateLeadMuteStatusForBuyerInput, UpdateTaskMuteStatusForBuyerInput, VerifyPhoneOtpInput } from '../models/index';
14
14
  export interface BuyersApiAcceptBuyerLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -45,6 +45,12 @@ export interface BuyersApiDownloadBuyerNotificationAttachmentRequest {
45
45
  notificationId: string;
46
46
  attachmentId: string;
47
47
  }
48
+ export interface BuyersApiGetBuyerAuctionsRequest {
49
+ filter?: object;
50
+ page?: number;
51
+ limit?: number;
52
+ sortBy?: Array<string>;
53
+ }
48
54
  export interface BuyersApiGetBuyerInvoicesRequest {
49
55
  filter?: object;
50
56
  page?: number;
@@ -235,6 +241,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
235
241
  * Download buyer notification attachment
236
242
  */
237
243
  downloadBuyerNotificationAttachment(requestParameters: BuyersApiDownloadBuyerNotificationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
244
+ /**
245
+ *
246
+ */
247
+ getBuyerAuctionsRaw(requestParameters: BuyersApiGetBuyerAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerAuctions200Response>>;
248
+ /**
249
+ *
250
+ */
251
+ getBuyerAuctions(requestParameters?: BuyersApiGetBuyerAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerAuctions200Response>;
238
252
  /**
239
253
  *
240
254
  */
@@ -207,7 +207,7 @@ var BuyersApi = /** @class */ (function (_super) {
207
207
  }
208
208
  _a.label = 2;
209
209
  case 2: return [4 /*yield*/, this.request({
210
- path: "/buyers/private/auction/{auctionId}/bid".replace("{".concat("auctionId", "}"), encodeURIComponent(String(requestParameters['auctionId']))),
210
+ path: "/buyers/private/auctions/{auctionId}/bid".replace("{".concat("auctionId", "}"), encodeURIComponent(String(requestParameters['auctionId']))),
211
211
  method: 'POST',
212
212
  headers: headerParameters,
213
213
  query: queryParameters,
@@ -717,6 +717,69 @@ var BuyersApi = /** @class */ (function (_super) {
717
717
  });
718
718
  });
719
719
  };
720
+ /**
721
+ *
722
+ */
723
+ BuyersApi.prototype.getBuyerAuctionsRaw = function (requestParameters, initOverrides) {
724
+ return __awaiter(this, void 0, void 0, function () {
725
+ var queryParameters, headerParameters, token, tokenString, response;
726
+ return __generator(this, function (_a) {
727
+ switch (_a.label) {
728
+ case 0:
729
+ queryParameters = {};
730
+ if (requestParameters['filter'] != null) {
731
+ queryParameters['filter'] = requestParameters['filter'];
732
+ }
733
+ if (requestParameters['page'] != null) {
734
+ queryParameters['page'] = requestParameters['page'];
735
+ }
736
+ if (requestParameters['limit'] != null) {
737
+ queryParameters['limit'] = requestParameters['limit'];
738
+ }
739
+ if (requestParameters['sortBy'] != null) {
740
+ queryParameters['sortBy'] = requestParameters['sortBy'];
741
+ }
742
+ headerParameters = {};
743
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
744
+ token = this.configuration.accessToken;
745
+ return [4 /*yield*/, token("bearer", [])];
746
+ case 1:
747
+ tokenString = _a.sent();
748
+ if (tokenString) {
749
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
750
+ }
751
+ _a.label = 2;
752
+ case 2: return [4 /*yield*/, this.request({
753
+ path: "/buyers/private/auctions",
754
+ method: 'GET',
755
+ headers: headerParameters,
756
+ query: queryParameters,
757
+ }, initOverrides)];
758
+ case 3:
759
+ response = _a.sent();
760
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetBuyerAuctions200ResponseFromJSON)(jsonValue); })];
761
+ }
762
+ });
763
+ });
764
+ };
765
+ /**
766
+ *
767
+ */
768
+ BuyersApi.prototype.getBuyerAuctions = function () {
769
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
770
+ var response;
771
+ if (requestParameters === void 0) { requestParameters = {}; }
772
+ return __generator(this, function (_a) {
773
+ switch (_a.label) {
774
+ case 0: return [4 /*yield*/, this.getBuyerAuctionsRaw(requestParameters, initOverrides)];
775
+ case 1:
776
+ response = _a.sent();
777
+ return [4 /*yield*/, response.value()];
778
+ case 2: return [2 /*return*/, _a.sent()];
779
+ }
780
+ });
781
+ });
782
+ };
720
783
  /**
721
784
  *
722
785
  */
@@ -1534,7 +1597,7 @@ var BuyersApi = /** @class */ (function (_super) {
1534
1597
  }
1535
1598
  _a.label = 2;
1536
1599
  case 2: return [4 /*yield*/, this.request({
1537
- path: "/buyers/private/auction/register",
1600
+ path: "/buyers/private/auctions/register",
1538
1601
  method: 'POST',
1539
1602
  headers: headerParameters,
1540
1603
  query: queryParameters,
@@ -1587,7 +1650,7 @@ var BuyersApi = /** @class */ (function (_super) {
1587
1650
  }
1588
1651
  _a.label = 2;
1589
1652
  case 2: return [4 /*yield*/, this.request({
1590
- path: "/buyers/private/auction/register-phone",
1653
+ path: "/buyers/private/auctions/register-phone",
1591
1654
  method: 'POST',
1592
1655
  headers: headerParameters,
1593
1656
  query: queryParameters,
@@ -2016,7 +2079,7 @@ var BuyersApi = /** @class */ (function (_super) {
2016
2079
  }
2017
2080
  _a.label = 2;
2018
2081
  case 2: return [4 /*yield*/, this.request({
2019
- path: "/buyers/private/auction/verify-phone-otp",
2082
+ path: "/buyers/private/auctions/verify-phone-otp",
2020
2083
  method: 'POST',
2021
2084
  headers: headerParameters,
2022
2085
  query: queryParameters,
@@ -1,6 +1,7 @@
1
1
  export * from './AccountsApi';
2
2
  export * from './AccountsPublicApi';
3
3
  export * from './AdminApi';
4
+ export * from './AuctionsApi';
4
5
  export * from './AuctionsPublicApi';
5
6
  export * from './BankAccountsApi';
6
7
  export * from './BuyersApi';
@@ -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("./AuctionsApi"), exports);
22
23
  __exportStar(require("./AuctionsPublicApi"), exports);
23
24
  __exportStar(require("./BankAccountsApi"), exports);
24
25
  __exportStar(require("./BuyersApi"), exports);
@@ -0,0 +1,119 @@
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 { AuctionBidDto } from './AuctionBidDto';
13
+ import type { AuctionListItemDtoDomainInformation } from './AuctionListItemDtoDomainInformation';
14
+ import type { MoneyDto } from './MoneyDto';
15
+ import type { AuctionListItemDtoSellerAccount } from './AuctionListItemDtoSellerAccount';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuctionListItemDto
20
+ */
21
+ export interface AuctionListItemDto {
22
+ /**
23
+ * Auction Id
24
+ * @type {string}
25
+ * @memberof AuctionListItemDto
26
+ */
27
+ id: string;
28
+ /**
29
+ * Auction status
30
+ * @type {string}
31
+ * @memberof AuctionListItemDto
32
+ */
33
+ status: AuctionListItemDtoStatusEnum;
34
+ /**
35
+ * Auction minimum bid
36
+ * @type {MoneyDto}
37
+ * @memberof AuctionListItemDto
38
+ */
39
+ minimumBid: MoneyDto;
40
+ /**
41
+ * Auction reserve price
42
+ * @type {MoneyDto}
43
+ * @memberof AuctionListItemDto
44
+ */
45
+ reservePrice: MoneyDto | null;
46
+ /**
47
+ * Auction highest bid
48
+ * @type {MoneyDto}
49
+ * @memberof AuctionListItemDto
50
+ */
51
+ highestBid: MoneyDto | null;
52
+ /**
53
+ * Auction start date
54
+ * @type {Date}
55
+ * @memberof AuctionListItemDto
56
+ */
57
+ startDate: Date;
58
+ /**
59
+ * Auction end date
60
+ * @type {Date}
61
+ * @memberof AuctionListItemDto
62
+ */
63
+ endDate: Date;
64
+ /**
65
+ * Auction finished at
66
+ * @type {Date}
67
+ * @memberof AuctionListItemDto
68
+ */
69
+ finishedAt: Date | null;
70
+ /**
71
+ * Auction creation date
72
+ * @type {Date}
73
+ * @memberof AuctionListItemDto
74
+ */
75
+ createdAt: Date;
76
+ /**
77
+ * Auction domain information
78
+ * @type {AuctionListItemDtoDomainInformation}
79
+ * @memberof AuctionListItemDto
80
+ */
81
+ domain: AuctionListItemDtoDomainInformation;
82
+ /**
83
+ * Auction seller account information
84
+ * @type {AuctionListItemDtoSellerAccount}
85
+ * @memberof AuctionListItemDto
86
+ */
87
+ sellerAccount: AuctionListItemDtoSellerAccount;
88
+ /**
89
+ * Auction number of bids
90
+ * @type {number}
91
+ * @memberof AuctionListItemDto
92
+ */
93
+ numberOfBids: number;
94
+ /**
95
+ * List of auction bids
96
+ * @type {Array<AuctionBidDto>}
97
+ * @memberof AuctionListItemDto
98
+ */
99
+ bids: Array<AuctionBidDto>;
100
+ }
101
+ /**
102
+ * @export
103
+ */
104
+ export declare const AuctionListItemDtoStatusEnum: {
105
+ readonly SCHEDULED: "scheduled";
106
+ readonly ACTIVE: "active";
107
+ readonly ENDED: "ended";
108
+ readonly PENDING_PAYMENT: "pending_payment";
109
+ readonly FINISHED: "finished";
110
+ };
111
+ export type AuctionListItemDtoStatusEnum = typeof AuctionListItemDtoStatusEnum[keyof typeof AuctionListItemDtoStatusEnum];
112
+ /**
113
+ * Check if a given object implements the AuctionListItemDto interface.
114
+ */
115
+ export declare function instanceOfAuctionListItemDto(value: object): value is AuctionListItemDto;
116
+ export declare function AuctionListItemDtoFromJSON(json: any): AuctionListItemDto;
117
+ export declare function AuctionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionListItemDto;
118
+ export declare function AuctionListItemDtoToJSON(json: any): AuctionListItemDto;
119
+ export declare function AuctionListItemDtoToJSONTyped(value?: AuctionListItemDto | null, ignoreDiscriminator?: boolean): any;