@randock/nameshift-api-client 0.0.336 → 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.
- package/.openapi-generator/FILES +9 -0
- package/README.md +3 -3
- package/dist/apis/AuctionsApi.d.ts +32 -0
- package/dist/apis/AuctionsApi.js +143 -0
- package/dist/apis/BuyersApi.d.ts +15 -1
- package/dist/apis/BuyersApi.js +67 -4
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AuctionListItemDto.d.ts +8 -0
- package/dist/models/AuctionListItemDto.js +6 -0
- package/dist/models/BuyerAuctionListItemDto.d.ts +125 -0
- package/dist/models/BuyerAuctionListItemDto.js +118 -0
- package/dist/models/BuyerAuctionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/BuyerAuctionListItemDtoDomainInformation.js +59 -0
- package/dist/models/BuyerAuctionListItemDtoSellerAccount.d.ts +50 -0
- package/dist/models/BuyerAuctionListItemDtoSellerAccount.js +63 -0
- package/dist/models/BuyerSessionDto.d.ts +6 -0
- package/dist/models/BuyerSessionDto.js +4 -0
- package/dist/models/GetAllAuctions200Response1.d.ts +47 -0
- package/dist/models/GetAllAuctions200Response1.js +62 -0
- package/dist/models/GetBuyerAuctions200Response.d.ts +47 -0
- package/dist/models/GetBuyerAuctions200Response.js +62 -0
- package/dist/models/SellerAuctionListItemDto.d.ts +119 -0
- package/dist/models/SellerAuctionListItemDto.js +114 -0
- package/dist/models/SellerAuctionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/SellerAuctionListItemDtoDomainInformation.js +59 -0
- package/dist/models/SellerAuctionListItemDtoSellerAccount.d.ts +50 -0
- package/dist/models/SellerAuctionListItemDtoSellerAccount.js +63 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/AuctionsApi.ts +90 -0
- package/src/apis/BuyersApi.ts +64 -4
- package/src/apis/index.ts +1 -0
- package/src/models/AuctionListItemDto.ts +17 -0
- package/src/models/BuyerAuctionListItemDto.ts +226 -0
- package/src/models/BuyerAuctionListItemDtoDomainInformation.ts +84 -0
- package/src/models/BuyerAuctionListItemDtoSellerAccount.ts +93 -0
- package/src/models/BuyerSessionDto.ts +9 -0
- package/src/models/GetAllAuctions200Response1.ts +106 -0
- package/src/models/GetBuyerAuctions200Response.ts +106 -0
- package/src/models/SellerAuctionListItemDto.ts +217 -0
- package/src/models/SellerAuctionListItemDtoDomainInformation.ts +84 -0
- package/src/models/SellerAuctionListItemDtoSellerAccount.ts +93 -0
- package/src/models/index.ts +8 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -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,9 @@ 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/BuyerAuctionListItemDto.ts
|
|
97
|
+
src/models/BuyerAuctionListItemDtoDomainInformation.ts
|
|
98
|
+
src/models/BuyerAuctionListItemDtoSellerAccount.ts
|
|
95
99
|
src/models/BuyerDomainTransferAuthCodeDto.ts
|
|
96
100
|
src/models/BuyerDomainTransferListItemDomainDto.ts
|
|
97
101
|
src/models/BuyerDomainTransferListItemDto.ts
|
|
@@ -168,6 +172,7 @@ src/models/EppBatchUpdateInput.ts
|
|
|
168
172
|
src/models/ForgotPasswordRequestInput.ts
|
|
169
173
|
src/models/GetAllAffiliateCommissions200Response.ts
|
|
170
174
|
src/models/GetAllAuctions200Response.ts
|
|
175
|
+
src/models/GetAllAuctions200Response1.ts
|
|
171
176
|
src/models/GetAllDomainTransfers200Response.ts
|
|
172
177
|
src/models/GetAllInvoices200Response.ts
|
|
173
178
|
src/models/GetAllOrders200Response.ts
|
|
@@ -175,6 +180,7 @@ src/models/GetAllOwnedDomains200Response.ts
|
|
|
175
180
|
src/models/GetAllReferrals200Response.ts
|
|
176
181
|
src/models/GetAllSubscriptions200Response.ts
|
|
177
182
|
src/models/GetAllSubscriptions200Response1.ts
|
|
183
|
+
src/models/GetBuyerAuctions200Response.ts
|
|
178
184
|
src/models/GetBuyerInvoices200Response.ts
|
|
179
185
|
src/models/GetBuyerLeads200Response.ts
|
|
180
186
|
src/models/GetBuyerSubscriptions200Response.ts
|
|
@@ -280,6 +286,9 @@ src/models/RequestAccessTokenInput.ts
|
|
|
280
286
|
src/models/RequestEmailOtpInput.ts
|
|
281
287
|
src/models/SellerAccountReferralListItemDto.ts
|
|
282
288
|
src/models/SellerAffiliateCommissionDto.ts
|
|
289
|
+
src/models/SellerAuctionListItemDto.ts
|
|
290
|
+
src/models/SellerAuctionListItemDtoDomainInformation.ts
|
|
291
|
+
src/models/SellerAuctionListItemDtoSellerAccount.ts
|
|
283
292
|
src/models/SellerDomainAffiliateCommissionDto.ts
|
|
284
293
|
src/models/SellerDomainAffiliateCommissionDtoDomain.ts
|
|
285
294
|
src/models/SellerDomainTransferAuthCodeDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
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.
|
|
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
|
-
|
|
47
|
+
6aea216a87c7c2346c842c02a0ece3d1fdccd5759936ab9e9492e573ac689d7095147214ae2aff6d93ed43ebe48d36fd
|
|
@@ -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;
|
package/dist/apis/BuyersApi.d.ts
CHANGED
|
@@ -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
|
*/
|
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -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/
|
|
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/
|
|
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/
|
|
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/
|
|
2082
|
+
path: "/buyers/private/auctions/verify-phone-otp",
|
|
2020
2083
|
method: 'POST',
|
|
2021
2084
|
headers: headerParameters,
|
|
2022
2085
|
query: queryParameters,
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -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);
|
|
@@ -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,125 @@
|
|
|
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 { BuyerAuctionListItemDtoSellerAccount } from './BuyerAuctionListItemDtoSellerAccount';
|
|
14
|
+
import type { BuyerAuctionListItemDtoDomainInformation } from './BuyerAuctionListItemDtoDomainInformation';
|
|
15
|
+
import type { MoneyDto } from './MoneyDto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface BuyerAuctionListItemDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerAuctionListItemDto {
|
|
22
|
+
/**
|
|
23
|
+
* Auction Id
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerAuctionListItemDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Auction status
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyerAuctionListItemDto
|
|
32
|
+
*/
|
|
33
|
+
status: BuyerAuctionListItemDtoStatusEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Auction minimum bid
|
|
36
|
+
* @type {MoneyDto}
|
|
37
|
+
* @memberof BuyerAuctionListItemDto
|
|
38
|
+
*/
|
|
39
|
+
minimumBid: MoneyDto;
|
|
40
|
+
/**
|
|
41
|
+
* Auction reserve price
|
|
42
|
+
* @type {MoneyDto}
|
|
43
|
+
* @memberof BuyerAuctionListItemDto
|
|
44
|
+
*/
|
|
45
|
+
reservePrice: MoneyDto | null;
|
|
46
|
+
/**
|
|
47
|
+
* Auction highest bid
|
|
48
|
+
* @type {MoneyDto}
|
|
49
|
+
* @memberof BuyerAuctionListItemDto
|
|
50
|
+
*/
|
|
51
|
+
highestBid: MoneyDto | null;
|
|
52
|
+
/**
|
|
53
|
+
* Auction start date
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof BuyerAuctionListItemDto
|
|
56
|
+
*/
|
|
57
|
+
startDate: Date;
|
|
58
|
+
/**
|
|
59
|
+
* Auction end date
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof BuyerAuctionListItemDto
|
|
62
|
+
*/
|
|
63
|
+
endDate: Date;
|
|
64
|
+
/**
|
|
65
|
+
* Auction finished at
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof BuyerAuctionListItemDto
|
|
68
|
+
*/
|
|
69
|
+
finishedAt: Date | null;
|
|
70
|
+
/**
|
|
71
|
+
* Auction creation date
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof BuyerAuctionListItemDto
|
|
74
|
+
*/
|
|
75
|
+
createdAt: Date;
|
|
76
|
+
/**
|
|
77
|
+
* Auction domain information
|
|
78
|
+
* @type {BuyerAuctionListItemDtoDomainInformation}
|
|
79
|
+
* @memberof BuyerAuctionListItemDto
|
|
80
|
+
*/
|
|
81
|
+
domain: BuyerAuctionListItemDtoDomainInformation;
|
|
82
|
+
/**
|
|
83
|
+
* Auction seller account information
|
|
84
|
+
* @type {BuyerAuctionListItemDtoSellerAccount}
|
|
85
|
+
* @memberof BuyerAuctionListItemDto
|
|
86
|
+
*/
|
|
87
|
+
sellerAccount: BuyerAuctionListItemDtoSellerAccount;
|
|
88
|
+
/**
|
|
89
|
+
* Auction number of bids
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof BuyerAuctionListItemDto
|
|
92
|
+
*/
|
|
93
|
+
numberOfBids: number;
|
|
94
|
+
/**
|
|
95
|
+
* List of auction bids
|
|
96
|
+
* @type {Array<AuctionBidDto>}
|
|
97
|
+
* @memberof BuyerAuctionListItemDto
|
|
98
|
+
*/
|
|
99
|
+
bids: Array<AuctionBidDto>;
|
|
100
|
+
/**
|
|
101
|
+
* Auction order ID
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof BuyerAuctionListItemDto
|
|
104
|
+
*/
|
|
105
|
+
orderId: string | null;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* @export
|
|
109
|
+
*/
|
|
110
|
+
export declare const BuyerAuctionListItemDtoStatusEnum: {
|
|
111
|
+
readonly SCHEDULED: "scheduled";
|
|
112
|
+
readonly ACTIVE: "active";
|
|
113
|
+
readonly ENDED: "ended";
|
|
114
|
+
readonly PENDING_PAYMENT: "pending_payment";
|
|
115
|
+
readonly FINISHED: "finished";
|
|
116
|
+
};
|
|
117
|
+
export type BuyerAuctionListItemDtoStatusEnum = typeof BuyerAuctionListItemDtoStatusEnum[keyof typeof BuyerAuctionListItemDtoStatusEnum];
|
|
118
|
+
/**
|
|
119
|
+
* Check if a given object implements the BuyerAuctionListItemDto interface.
|
|
120
|
+
*/
|
|
121
|
+
export declare function instanceOfBuyerAuctionListItemDto(value: object): value is BuyerAuctionListItemDto;
|
|
122
|
+
export declare function BuyerAuctionListItemDtoFromJSON(json: any): BuyerAuctionListItemDto;
|
|
123
|
+
export declare function BuyerAuctionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAuctionListItemDto;
|
|
124
|
+
export declare function BuyerAuctionListItemDtoToJSON(json: any): BuyerAuctionListItemDto;
|
|
125
|
+
export declare function BuyerAuctionListItemDtoToJSONTyped(value?: BuyerAuctionListItemDto | null, ignoreDiscriminator?: boolean): any;
|