@randock/nameshift-api-client 0.0.336 → 0.0.338

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 (51) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AuctionsApi.d.ts +32 -0
  4. package/dist/apis/AuctionsApi.js +143 -0
  5. package/dist/apis/BuyersApi.d.ts +23 -1
  6. package/dist/apis/BuyersApi.js +117 -4
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AuctionBidDto.d.ts +6 -0
  10. package/dist/models/AuctionBidDto.js +4 -0
  11. package/dist/models/AuctionListItemDto.d.ts +8 -0
  12. package/dist/models/AuctionListItemDto.js +6 -0
  13. package/dist/models/BuyerAccessTokenDto.d.ts +32 -0
  14. package/dist/models/BuyerAccessTokenDto.js +51 -0
  15. package/dist/models/BuyerAuctionListItemDto.d.ts +125 -0
  16. package/dist/models/BuyerAuctionListItemDto.js +118 -0
  17. package/dist/models/BuyerAuctionListItemDtoDomainInformation.d.ts +44 -0
  18. package/dist/models/BuyerAuctionListItemDtoDomainInformation.js +59 -0
  19. package/dist/models/BuyerAuctionListItemDtoSellerAccount.d.ts +50 -0
  20. package/dist/models/BuyerAuctionListItemDtoSellerAccount.js +63 -0
  21. package/dist/models/BuyerSessionDto.d.ts +6 -0
  22. package/dist/models/BuyerSessionDto.js +4 -0
  23. package/dist/models/GetAllAuctions200Response1.d.ts +47 -0
  24. package/dist/models/GetAllAuctions200Response1.js +62 -0
  25. package/dist/models/GetBuyerAuctions200Response.d.ts +47 -0
  26. package/dist/models/GetBuyerAuctions200Response.js +62 -0
  27. package/dist/models/SellerAuctionListItemDto.d.ts +119 -0
  28. package/dist/models/SellerAuctionListItemDto.js +114 -0
  29. package/dist/models/SellerAuctionListItemDtoDomainInformation.d.ts +44 -0
  30. package/dist/models/SellerAuctionListItemDtoDomainInformation.js +59 -0
  31. package/dist/models/SellerAuctionListItemDtoSellerAccount.d.ts +50 -0
  32. package/dist/models/SellerAuctionListItemDtoSellerAccount.js +63 -0
  33. package/dist/models/index.d.ts +9 -0
  34. package/dist/models/index.js +9 -0
  35. package/package.json +1 -1
  36. package/src/apis/AuctionsApi.ts +90 -0
  37. package/src/apis/BuyersApi.ts +101 -4
  38. package/src/apis/index.ts +1 -0
  39. package/src/models/AuctionBidDto.ts +9 -0
  40. package/src/models/AuctionListItemDto.ts +17 -0
  41. package/src/models/BuyerAccessTokenDto.ts +66 -0
  42. package/src/models/BuyerAuctionListItemDto.ts +226 -0
  43. package/src/models/BuyerAuctionListItemDtoDomainInformation.ts +84 -0
  44. package/src/models/BuyerAuctionListItemDtoSellerAccount.ts +93 -0
  45. package/src/models/BuyerSessionDto.ts +9 -0
  46. package/src/models/GetAllAuctions200Response1.ts +106 -0
  47. package/src/models/GetBuyerAuctions200Response.ts +106 -0
  48. package/src/models/SellerAuctionListItemDto.ts +217 -0
  49. package/src/models/SellerAuctionListItemDtoDomainInformation.ts +84 -0
  50. package/src/models/SellerAuctionListItemDtoSellerAccount.ts +93 -0
  51. package/src/models/index.ts +9 -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
@@ -92,6 +93,10 @@ src/models/BillingInformationDto.ts
92
93
  src/models/BulkMarkBuyerNotificationsAsReadInputDto.ts
93
94
  src/models/BulkMarkNotificationsAsReadInputDto.ts
94
95
  src/models/BulkUpdateDomainsWithFiltersInput.ts
96
+ src/models/BuyerAccessTokenDto.ts
97
+ src/models/BuyerAuctionListItemDto.ts
98
+ src/models/BuyerAuctionListItemDtoDomainInformation.ts
99
+ src/models/BuyerAuctionListItemDtoSellerAccount.ts
95
100
  src/models/BuyerDomainTransferAuthCodeDto.ts
96
101
  src/models/BuyerDomainTransferListItemDomainDto.ts
97
102
  src/models/BuyerDomainTransferListItemDto.ts
@@ -168,6 +173,7 @@ src/models/EppBatchUpdateInput.ts
168
173
  src/models/ForgotPasswordRequestInput.ts
169
174
  src/models/GetAllAffiliateCommissions200Response.ts
170
175
  src/models/GetAllAuctions200Response.ts
176
+ src/models/GetAllAuctions200Response1.ts
171
177
  src/models/GetAllDomainTransfers200Response.ts
172
178
  src/models/GetAllInvoices200Response.ts
173
179
  src/models/GetAllOrders200Response.ts
@@ -175,6 +181,7 @@ src/models/GetAllOwnedDomains200Response.ts
175
181
  src/models/GetAllReferrals200Response.ts
176
182
  src/models/GetAllSubscriptions200Response.ts
177
183
  src/models/GetAllSubscriptions200Response1.ts
184
+ src/models/GetBuyerAuctions200Response.ts
178
185
  src/models/GetBuyerInvoices200Response.ts
179
186
  src/models/GetBuyerLeads200Response.ts
180
187
  src/models/GetBuyerSubscriptions200Response.ts
@@ -280,6 +287,9 @@ src/models/RequestAccessTokenInput.ts
280
287
  src/models/RequestEmailOtpInput.ts
281
288
  src/models/SellerAccountReferralListItemDto.ts
282
289
  src/models/SellerAffiliateCommissionDto.ts
290
+ src/models/SellerAuctionListItemDto.ts
291
+ src/models/SellerAuctionListItemDtoDomainInformation.ts
292
+ src/models/SellerAuctionListItemDtoSellerAccount.ts
283
293
  src/models/SellerDomainAffiliateCommissionDto.ts
284
294
  src/models/SellerDomainAffiliateCommissionDtoDomain.ts
285
295
  src/models/SellerDomainTransferAuthCodeDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.336
1
+ ## @randock/nameshift-api-client@0.0.338
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.336 --save
39
+ npm install @randock/nameshift-api-client@0.0.338 --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
- 5f3fa2441320299d8b72dd725d1fd5d46e2bb12b2d919a2e2e87b38c31d14256cf96f687632b8b1b4906c8f7e08e5fa3
47
+ 0c91197ff4c26c0e8020df1e51ee8d64ad8a57e0ef56041b0d10c0053f916fcafaccd10f6b4b2a72df498272a563cbfd
@@ -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, BuyerAccessTokenDto, 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,22 @@ 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
+ generateBuyerAccessTokenRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerAccessTokenDto>>;
248
+ /**
249
+ *
250
+ */
251
+ generateBuyerAccessToken(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerAccessTokenDto>;
252
+ /**
253
+ *
254
+ */
255
+ getBuyerAuctionsRaw(requestParameters: BuyersApiGetBuyerAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerAuctions200Response>>;
256
+ /**
257
+ *
258
+ */
259
+ getBuyerAuctions(requestParameters?: BuyersApiGetBuyerAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerAuctions200Response>;
238
260
  /**
239
261
  *
240
262
  */
@@ -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,119 @@ var BuyersApi = /** @class */ (function (_super) {
717
717
  });
718
718
  });
719
719
  };
720
+ /**
721
+ *
722
+ */
723
+ BuyersApi.prototype.generateBuyerAccessTokenRaw = function (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
+ headerParameters = {};
731
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
732
+ token = this.configuration.accessToken;
733
+ return [4 /*yield*/, token("bearer", [])];
734
+ case 1:
735
+ tokenString = _a.sent();
736
+ if (tokenString) {
737
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
738
+ }
739
+ _a.label = 2;
740
+ case 2: return [4 /*yield*/, this.request({
741
+ path: "/buyers/private/access-token",
742
+ method: 'GET',
743
+ headers: headerParameters,
744
+ query: queryParameters,
745
+ }, initOverrides)];
746
+ case 3:
747
+ response = _a.sent();
748
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerAccessTokenDtoFromJSON)(jsonValue); })];
749
+ }
750
+ });
751
+ });
752
+ };
753
+ /**
754
+ *
755
+ */
756
+ BuyersApi.prototype.generateBuyerAccessToken = function (initOverrides) {
757
+ return __awaiter(this, void 0, void 0, function () {
758
+ var response;
759
+ return __generator(this, function (_a) {
760
+ switch (_a.label) {
761
+ case 0: return [4 /*yield*/, this.generateBuyerAccessTokenRaw(initOverrides)];
762
+ case 1:
763
+ response = _a.sent();
764
+ return [4 /*yield*/, response.value()];
765
+ case 2: return [2 /*return*/, _a.sent()];
766
+ }
767
+ });
768
+ });
769
+ };
770
+ /**
771
+ *
772
+ */
773
+ BuyersApi.prototype.getBuyerAuctionsRaw = function (requestParameters, initOverrides) {
774
+ return __awaiter(this, void 0, void 0, function () {
775
+ var queryParameters, headerParameters, token, tokenString, response;
776
+ return __generator(this, function (_a) {
777
+ switch (_a.label) {
778
+ case 0:
779
+ queryParameters = {};
780
+ if (requestParameters['filter'] != null) {
781
+ queryParameters['filter'] = requestParameters['filter'];
782
+ }
783
+ if (requestParameters['page'] != null) {
784
+ queryParameters['page'] = requestParameters['page'];
785
+ }
786
+ if (requestParameters['limit'] != null) {
787
+ queryParameters['limit'] = requestParameters['limit'];
788
+ }
789
+ if (requestParameters['sortBy'] != null) {
790
+ queryParameters['sortBy'] = requestParameters['sortBy'];
791
+ }
792
+ headerParameters = {};
793
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
794
+ token = this.configuration.accessToken;
795
+ return [4 /*yield*/, token("bearer", [])];
796
+ case 1:
797
+ tokenString = _a.sent();
798
+ if (tokenString) {
799
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
800
+ }
801
+ _a.label = 2;
802
+ case 2: return [4 /*yield*/, this.request({
803
+ path: "/buyers/private/auctions",
804
+ method: 'GET',
805
+ headers: headerParameters,
806
+ query: queryParameters,
807
+ }, initOverrides)];
808
+ case 3:
809
+ response = _a.sent();
810
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetBuyerAuctions200ResponseFromJSON)(jsonValue); })];
811
+ }
812
+ });
813
+ });
814
+ };
815
+ /**
816
+ *
817
+ */
818
+ BuyersApi.prototype.getBuyerAuctions = function () {
819
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
820
+ var response;
821
+ if (requestParameters === void 0) { requestParameters = {}; }
822
+ return __generator(this, function (_a) {
823
+ switch (_a.label) {
824
+ case 0: return [4 /*yield*/, this.getBuyerAuctionsRaw(requestParameters, initOverrides)];
825
+ case 1:
826
+ response = _a.sent();
827
+ return [4 /*yield*/, response.value()];
828
+ case 2: return [2 /*return*/, _a.sent()];
829
+ }
830
+ });
831
+ });
832
+ };
720
833
  /**
721
834
  *
722
835
  */
@@ -1534,7 +1647,7 @@ var BuyersApi = /** @class */ (function (_super) {
1534
1647
  }
1535
1648
  _a.label = 2;
1536
1649
  case 2: return [4 /*yield*/, this.request({
1537
- path: "/buyers/private/auction/register",
1650
+ path: "/buyers/private/auctions/register",
1538
1651
  method: 'POST',
1539
1652
  headers: headerParameters,
1540
1653
  query: queryParameters,
@@ -1587,7 +1700,7 @@ var BuyersApi = /** @class */ (function (_super) {
1587
1700
  }
1588
1701
  _a.label = 2;
1589
1702
  case 2: return [4 /*yield*/, this.request({
1590
- path: "/buyers/private/auction/register-phone",
1703
+ path: "/buyers/private/auctions/register-phone",
1591
1704
  method: 'POST',
1592
1705
  headers: headerParameters,
1593
1706
  query: queryParameters,
@@ -2016,7 +2129,7 @@ var BuyersApi = /** @class */ (function (_super) {
2016
2129
  }
2017
2130
  _a.label = 2;
2018
2131
  case 2: return [4 /*yield*/, this.request({
2019
- path: "/buyers/private/auction/verify-phone-otp",
2132
+ path: "/buyers/private/auctions/verify-phone-otp",
2020
2133
  method: 'POST',
2021
2134
  headers: headerParameters,
2022
2135
  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);
@@ -65,6 +65,12 @@ export interface AuctionBidDto {
65
65
  * @memberof AuctionBidDto
66
66
  */
67
67
  metrics: AuctionBidMetricsDto;
68
+ /**
69
+ * Auction Bidder email
70
+ * @type {string}
71
+ * @memberof AuctionBidDto
72
+ */
73
+ email: string | null;
68
74
  }
69
75
  /**
70
76
  * Check if a given object implements the AuctionBidDto interface.
@@ -40,6 +40,8 @@ function instanceOfAuctionBidDto(value) {
40
40
  return false;
41
41
  if (!('metrics' in value) || value['metrics'] === undefined)
42
42
  return false;
43
+ if (!('email' in value) || value['email'] === undefined)
44
+ return false;
43
45
  return true;
44
46
  }
45
47
  function AuctionBidDtoFromJSON(json) {
@@ -58,6 +60,7 @@ function AuctionBidDtoFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'isPhoneVerified': json['isPhoneVerified'],
59
61
  'isKycCompleted': json['isKycCompleted'],
60
62
  'metrics': (0, AuctionBidMetricsDto_1.AuctionBidMetricsDtoFromJSON)(json['metrics']),
63
+ 'email': json['email'],
61
64
  };
62
65
  }
63
66
  function AuctionBidDtoToJSON(json) {
@@ -77,5 +80,6 @@ function AuctionBidDtoToJSONTyped(value, ignoreDiscriminator) {
77
80
  'isPhoneVerified': value['isPhoneVerified'],
78
81
  'isKycCompleted': value['isKycCompleted'],
79
82
  'metrics': (0, AuctionBidMetricsDto_1.AuctionBidMetricsDtoToJSON)(value['metrics']),
83
+ 'email': value['email'],
80
84
  };
81
85
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AuctionBidDto } from './AuctionBidDto';
12
13
  import type { AuctionListItemDtoDomainInformation } from './AuctionListItemDtoDomainInformation';
13
14
  import type { MoneyDto } from './MoneyDto';
14
15
  import type { AuctionListItemDtoSellerAccount } from './AuctionListItemDtoSellerAccount';
@@ -90,6 +91,12 @@ export interface AuctionListItemDto {
90
91
  * @memberof AuctionListItemDto
91
92
  */
92
93
  numberOfBids: number;
94
+ /**
95
+ * List of auction bids
96
+ * @type {Array<AuctionBidDto>}
97
+ * @memberof AuctionListItemDto
98
+ */
99
+ bids: Array<AuctionBidDto>;
93
100
  }
94
101
  /**
95
102
  * @export
@@ -98,6 +105,7 @@ export declare const AuctionListItemDtoStatusEnum: {
98
105
  readonly SCHEDULED: "scheduled";
99
106
  readonly ACTIVE: "active";
100
107
  readonly ENDED: "ended";
108
+ readonly PENDING_PAYMENT: "pending_payment";
101
109
  readonly FINISHED: "finished";
102
110
  };
103
111
  export type AuctionListItemDtoStatusEnum = typeof AuctionListItemDtoStatusEnum[keyof typeof AuctionListItemDtoStatusEnum];
@@ -19,6 +19,7 @@ exports.AuctionListItemDtoFromJSON = AuctionListItemDtoFromJSON;
19
19
  exports.AuctionListItemDtoFromJSONTyped = AuctionListItemDtoFromJSONTyped;
20
20
  exports.AuctionListItemDtoToJSON = AuctionListItemDtoToJSON;
21
21
  exports.AuctionListItemDtoToJSONTyped = AuctionListItemDtoToJSONTyped;
22
+ var AuctionBidDto_1 = require("./AuctionBidDto");
22
23
  var AuctionListItemDtoDomainInformation_1 = require("./AuctionListItemDtoDomainInformation");
23
24
  var MoneyDto_1 = require("./MoneyDto");
24
25
  var AuctionListItemDtoSellerAccount_1 = require("./AuctionListItemDtoSellerAccount");
@@ -29,6 +30,7 @@ exports.AuctionListItemDtoStatusEnum = {
29
30
  SCHEDULED: 'scheduled',
30
31
  ACTIVE: 'active',
31
32
  ENDED: 'ended',
33
+ PENDING_PAYMENT: 'pending_payment',
32
34
  FINISHED: 'finished'
33
35
  };
34
36
  /**
@@ -59,6 +61,8 @@ function instanceOfAuctionListItemDto(value) {
59
61
  return false;
60
62
  if (!('numberOfBids' in value) || value['numberOfBids'] === undefined)
61
63
  return false;
64
+ if (!('bids' in value) || value['bids'] === undefined)
65
+ return false;
62
66
  return true;
63
67
  }
64
68
  function AuctionListItemDtoFromJSON(json) {
@@ -81,6 +85,7 @@ function AuctionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
81
85
  'domain': (0, AuctionListItemDtoDomainInformation_1.AuctionListItemDtoDomainInformationFromJSON)(json['domain']),
82
86
  'sellerAccount': (0, AuctionListItemDtoSellerAccount_1.AuctionListItemDtoSellerAccountFromJSON)(json['sellerAccount']),
83
87
  'numberOfBids': json['numberOfBids'],
88
+ 'bids': (json['bids'].map(AuctionBidDto_1.AuctionBidDtoFromJSON)),
84
89
  };
85
90
  }
86
91
  function AuctionListItemDtoToJSON(json) {
@@ -104,5 +109,6 @@ function AuctionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
104
109
  'domain': (0, AuctionListItemDtoDomainInformation_1.AuctionListItemDtoDomainInformationToJSON)(value['domain']),
105
110
  'sellerAccount': (0, AuctionListItemDtoSellerAccount_1.AuctionListItemDtoSellerAccountToJSON)(value['sellerAccount']),
106
111
  'numberOfBids': value['numberOfBids'],
112
+ 'bids': (value['bids'].map(AuctionBidDto_1.AuctionBidDtoToJSON)),
107
113
  };
108
114
  }
@@ -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
+ /**
13
+ *
14
+ * @export
15
+ * @interface BuyerAccessTokenDto
16
+ */
17
+ export interface BuyerAccessTokenDto {
18
+ /**
19
+ * The generated access token ID for the buyer
20
+ * @type {string}
21
+ * @memberof BuyerAccessTokenDto
22
+ */
23
+ token: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the BuyerAccessTokenDto interface.
27
+ */
28
+ export declare function instanceOfBuyerAccessTokenDto(value: object): value is BuyerAccessTokenDto;
29
+ export declare function BuyerAccessTokenDtoFromJSON(json: any): BuyerAccessTokenDto;
30
+ export declare function BuyerAccessTokenDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAccessTokenDto;
31
+ export declare function BuyerAccessTokenDtoToJSON(json: any): BuyerAccessTokenDto;
32
+ export declare function BuyerAccessTokenDtoToJSONTyped(value?: BuyerAccessTokenDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfBuyerAccessTokenDto = instanceOfBuyerAccessTokenDto;
17
+ exports.BuyerAccessTokenDtoFromJSON = BuyerAccessTokenDtoFromJSON;
18
+ exports.BuyerAccessTokenDtoFromJSONTyped = BuyerAccessTokenDtoFromJSONTyped;
19
+ exports.BuyerAccessTokenDtoToJSON = BuyerAccessTokenDtoToJSON;
20
+ exports.BuyerAccessTokenDtoToJSONTyped = BuyerAccessTokenDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BuyerAccessTokenDto interface.
23
+ */
24
+ function instanceOfBuyerAccessTokenDto(value) {
25
+ if (!('token' in value) || value['token'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function BuyerAccessTokenDtoFromJSON(json) {
30
+ return BuyerAccessTokenDtoFromJSONTyped(json, false);
31
+ }
32
+ function BuyerAccessTokenDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'token': json['token'],
38
+ };
39
+ }
40
+ function BuyerAccessTokenDtoToJSON(json) {
41
+ return BuyerAccessTokenDtoToJSONTyped(json, false);
42
+ }
43
+ function BuyerAccessTokenDtoToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'token': value['token'],
50
+ };
51
+ }