@randock/nameshift-api-client 0.0.405 → 0.0.407
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/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +11 -0
- package/dist/apis/AdminApi.js +51 -0
- package/dist/models/AuctionBidDto.d.ts +6 -0
- package/dist/models/AuctionBidDto.js +4 -0
- package/dist/models/AuctionDto.d.ts +9 -3
- package/dist/models/AuctionDto.js +7 -3
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +44 -0
- package/src/models/AuctionBidDto.ts +9 -0
- package/src/models/AuctionDto.ts +15 -6
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.407
|
|
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.407 --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
|
+
0304ce0f5164c45e5fe34c00938ac8903109c99ee74e17684495d0e13cc4e6caa212561b14ba14d5bfe049bc46334e70
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
14
|
+
export interface AdminApiAdminDeleteAuctionRequest {
|
|
15
|
+
auctionId: string;
|
|
16
|
+
}
|
|
14
17
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
18
|
filter?: object;
|
|
16
19
|
page?: number;
|
|
@@ -211,6 +214,14 @@ export interface AdminApiVerifyBankAccountRequest {
|
|
|
211
214
|
*
|
|
212
215
|
*/
|
|
213
216
|
export declare class AdminApi extends runtime.BaseAPI {
|
|
217
|
+
/**
|
|
218
|
+
*
|
|
219
|
+
*/
|
|
220
|
+
adminDeleteAuctionRaw(requestParameters: AdminApiAdminDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
*/
|
|
224
|
+
adminDeleteAuction(requestParameters: AdminApiAdminDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
214
225
|
/**
|
|
215
226
|
*
|
|
216
227
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -75,6 +75,57 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function AdminApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
AdminApi.prototype.adminDeleteAuctionRaw = 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
|
+
if (requestParameters['auctionId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('auctionId', 'Required parameter "auctionId" was null or undefined when calling adminDeleteAuction().');
|
|
89
|
+
}
|
|
90
|
+
queryParameters = {};
|
|
91
|
+
headerParameters = {};
|
|
92
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
93
|
+
token = this.configuration.accessToken;
|
|
94
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
95
|
+
case 1:
|
|
96
|
+
tokenString = _a.sent();
|
|
97
|
+
if (tokenString) {
|
|
98
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
99
|
+
}
|
|
100
|
+
_a.label = 2;
|
|
101
|
+
case 2: return [4 /*yield*/, this.request({
|
|
102
|
+
path: "/admin/auctions/{auctionId}".replace("{".concat("auctionId", "}"), encodeURIComponent(String(requestParameters['auctionId']))),
|
|
103
|
+
method: 'DELETE',
|
|
104
|
+
headers: headerParameters,
|
|
105
|
+
query: queryParameters,
|
|
106
|
+
}, initOverrides)];
|
|
107
|
+
case 3:
|
|
108
|
+
response = _a.sent();
|
|
109
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
AdminApi.prototype.adminDeleteAuction = function (requestParameters, initOverrides) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
119
|
+
return __generator(this, function (_a) {
|
|
120
|
+
switch (_a.label) {
|
|
121
|
+
case 0: return [4 /*yield*/, this.adminDeleteAuctionRaw(requestParameters, initOverrides)];
|
|
122
|
+
case 1:
|
|
123
|
+
_a.sent();
|
|
124
|
+
return [2 /*return*/];
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
};
|
|
78
129
|
/**
|
|
79
130
|
*
|
|
80
131
|
*/
|
|
@@ -65,6 +65,12 @@ export interface AuctionBidDto {
|
|
|
65
65
|
* @memberof AuctionBidDto
|
|
66
66
|
*/
|
|
67
67
|
isKycCompleted: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Auction Bid reached reserve price
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof AuctionBidDto
|
|
72
|
+
*/
|
|
73
|
+
hasReachedReservePrice: boolean;
|
|
68
74
|
/**
|
|
69
75
|
* Auction Bidder metrics
|
|
70
76
|
* @type {AuctionBidMetricsDto}
|
|
@@ -40,6 +40,8 @@ function instanceOfAuctionBidDto(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('isKycCompleted' in value) || value['isKycCompleted'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
+
if (!('hasReachedReservePrice' in value) || value['hasReachedReservePrice'] === undefined)
|
|
44
|
+
return false;
|
|
43
45
|
if (!('metrics' in value) || value['metrics'] === undefined)
|
|
44
46
|
return false;
|
|
45
47
|
if (!('email' in value) || value['email'] === undefined)
|
|
@@ -62,6 +64,7 @@ function AuctionBidDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
64
|
'isEmailVerified': json['isEmailVerified'],
|
|
63
65
|
'isPhoneVerified': json['isPhoneVerified'],
|
|
64
66
|
'isKycCompleted': json['isKycCompleted'],
|
|
67
|
+
'hasReachedReservePrice': json['hasReachedReservePrice'],
|
|
65
68
|
'metrics': (0, AuctionBidMetricsDto_1.AuctionBidMetricsDtoFromJSON)(json['metrics']),
|
|
66
69
|
'email': json['email'],
|
|
67
70
|
};
|
|
@@ -83,6 +86,7 @@ function AuctionBidDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
83
86
|
'isEmailVerified': value['isEmailVerified'],
|
|
84
87
|
'isPhoneVerified': value['isPhoneVerified'],
|
|
85
88
|
'isKycCompleted': value['isKycCompleted'],
|
|
89
|
+
'hasReachedReservePrice': value['hasReachedReservePrice'],
|
|
86
90
|
'metrics': (0, AuctionBidMetricsDto_1.AuctionBidMetricsDtoToJSON)(value['metrics']),
|
|
87
91
|
'email': value['email'],
|
|
88
92
|
};
|
|
@@ -30,11 +30,17 @@ export interface AuctionDto {
|
|
|
30
30
|
*/
|
|
31
31
|
minimumBid: MoneyDto;
|
|
32
32
|
/**
|
|
33
|
-
* Auction reserve price
|
|
34
|
-
* @type {
|
|
33
|
+
* Auction has reserve price
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof AuctionDto
|
|
36
|
+
*/
|
|
37
|
+
hasReservePrice: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Auction reserve price was reached
|
|
40
|
+
* @type {boolean}
|
|
35
41
|
* @memberof AuctionDto
|
|
36
42
|
*/
|
|
37
|
-
|
|
43
|
+
isReservePriceReached: boolean;
|
|
38
44
|
/**
|
|
39
45
|
* Auction highest bid
|
|
40
46
|
* @type {MoneyDto}
|
|
@@ -28,7 +28,9 @@ function instanceOfAuctionDto(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('minimumBid' in value) || value['minimumBid'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('
|
|
31
|
+
if (!('hasReservePrice' in value) || value['hasReservePrice'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('isReservePriceReached' in value) || value['isReservePriceReached'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('highestBid' in value) || value['highestBid'] === undefined)
|
|
34
36
|
return false;
|
|
@@ -58,7 +60,8 @@ function AuctionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
return {
|
|
59
61
|
'id': json['id'],
|
|
60
62
|
'minimumBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minimumBid']),
|
|
61
|
-
'
|
|
63
|
+
'hasReservePrice': json['hasReservePrice'],
|
|
64
|
+
'isReservePriceReached': json['isReservePriceReached'],
|
|
62
65
|
'highestBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['highestBid']),
|
|
63
66
|
'currencyCode': json['currencyCode'],
|
|
64
67
|
'startDate': (new Date(json['startDate'])),
|
|
@@ -80,7 +83,8 @@ function AuctionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
80
83
|
return {
|
|
81
84
|
'id': value['id'],
|
|
82
85
|
'minimumBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['minimumBid']),
|
|
83
|
-
'
|
|
86
|
+
'hasReservePrice': value['hasReservePrice'],
|
|
87
|
+
'isReservePriceReached': value['isReservePriceReached'],
|
|
84
88
|
'highestBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['highestBid']),
|
|
85
89
|
'currencyCode': value['currencyCode'],
|
|
86
90
|
'startDate': ((value['startDate']).toISOString()),
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -145,6 +145,10 @@ import {
|
|
|
145
145
|
ValidationExceptionToJSON,
|
|
146
146
|
} from '../models/index';
|
|
147
147
|
|
|
148
|
+
export interface AdminApiAdminDeleteAuctionRequest {
|
|
149
|
+
auctionId: string;
|
|
150
|
+
}
|
|
151
|
+
|
|
148
152
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
149
153
|
filter?: object;
|
|
150
154
|
page?: number;
|
|
@@ -397,6 +401,46 @@ export interface AdminApiVerifyBankAccountRequest {
|
|
|
397
401
|
*/
|
|
398
402
|
export class AdminApi extends runtime.BaseAPI {
|
|
399
403
|
|
|
404
|
+
/**
|
|
405
|
+
*
|
|
406
|
+
*/
|
|
407
|
+
async adminDeleteAuctionRaw(requestParameters: AdminApiAdminDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
408
|
+
if (requestParameters['auctionId'] == null) {
|
|
409
|
+
throw new runtime.RequiredError(
|
|
410
|
+
'auctionId',
|
|
411
|
+
'Required parameter "auctionId" was null or undefined when calling adminDeleteAuction().'
|
|
412
|
+
);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
const queryParameters: any = {};
|
|
416
|
+
|
|
417
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
418
|
+
|
|
419
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
420
|
+
const token = this.configuration.accessToken;
|
|
421
|
+
const tokenString = await token("bearer", []);
|
|
422
|
+
|
|
423
|
+
if (tokenString) {
|
|
424
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
const response = await this.request({
|
|
428
|
+
path: `/admin/auctions/{auctionId}`.replace(`{${"auctionId"}}`, encodeURIComponent(String(requestParameters['auctionId']))),
|
|
429
|
+
method: 'DELETE',
|
|
430
|
+
headers: headerParameters,
|
|
431
|
+
query: queryParameters,
|
|
432
|
+
}, initOverrides);
|
|
433
|
+
|
|
434
|
+
return new runtime.VoidApiResponse(response);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
*
|
|
439
|
+
*/
|
|
440
|
+
async adminDeleteAuction(requestParameters: AdminApiAdminDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
441
|
+
await this.adminDeleteAuctionRaw(requestParameters, initOverrides);
|
|
442
|
+
}
|
|
443
|
+
|
|
400
444
|
/**
|
|
401
445
|
*
|
|
402
446
|
*/
|
|
@@ -82,6 +82,12 @@ export interface AuctionBidDto {
|
|
|
82
82
|
* @memberof AuctionBidDto
|
|
83
83
|
*/
|
|
84
84
|
isKycCompleted: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Auction Bid reached reserve price
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof AuctionBidDto
|
|
89
|
+
*/
|
|
90
|
+
hasReachedReservePrice: boolean;
|
|
85
91
|
/**
|
|
86
92
|
* Auction Bidder metrics
|
|
87
93
|
* @type {AuctionBidMetricsDto}
|
|
@@ -108,6 +114,7 @@ export function instanceOfAuctionBidDto(value: object): value is AuctionBidDto {
|
|
|
108
114
|
if (!('isEmailVerified' in value) || value['isEmailVerified'] === undefined) return false;
|
|
109
115
|
if (!('isPhoneVerified' in value) || value['isPhoneVerified'] === undefined) return false;
|
|
110
116
|
if (!('isKycCompleted' in value) || value['isKycCompleted'] === undefined) return false;
|
|
117
|
+
if (!('hasReachedReservePrice' in value) || value['hasReachedReservePrice'] === undefined) return false;
|
|
111
118
|
if (!('metrics' in value) || value['metrics'] === undefined) return false;
|
|
112
119
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
113
120
|
return true;
|
|
@@ -131,6 +138,7 @@ export function AuctionBidDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
131
138
|
'isEmailVerified': json['isEmailVerified'],
|
|
132
139
|
'isPhoneVerified': json['isPhoneVerified'],
|
|
133
140
|
'isKycCompleted': json['isKycCompleted'],
|
|
141
|
+
'hasReachedReservePrice': json['hasReachedReservePrice'],
|
|
134
142
|
'metrics': AuctionBidMetricsDtoFromJSON(json['metrics']),
|
|
135
143
|
'email': json['email'],
|
|
136
144
|
};
|
|
@@ -155,6 +163,7 @@ export function AuctionBidDtoToJSONTyped(value?: AuctionBidDto | null, ignoreDis
|
|
|
155
163
|
'isEmailVerified': value['isEmailVerified'],
|
|
156
164
|
'isPhoneVerified': value['isPhoneVerified'],
|
|
157
165
|
'isKycCompleted': value['isKycCompleted'],
|
|
166
|
+
'hasReachedReservePrice': value['hasReachedReservePrice'],
|
|
158
167
|
'metrics': AuctionBidMetricsDtoToJSON(value['metrics']),
|
|
159
168
|
'email': value['email'],
|
|
160
169
|
};
|
package/src/models/AuctionDto.ts
CHANGED
|
@@ -47,11 +47,17 @@ export interface AuctionDto {
|
|
|
47
47
|
*/
|
|
48
48
|
minimumBid: MoneyDto;
|
|
49
49
|
/**
|
|
50
|
-
* Auction reserve price
|
|
51
|
-
* @type {
|
|
50
|
+
* Auction has reserve price
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof AuctionDto
|
|
53
|
+
*/
|
|
54
|
+
hasReservePrice: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Auction reserve price was reached
|
|
57
|
+
* @type {boolean}
|
|
52
58
|
* @memberof AuctionDto
|
|
53
59
|
*/
|
|
54
|
-
|
|
60
|
+
isReservePriceReached: boolean;
|
|
55
61
|
/**
|
|
56
62
|
* Auction highest bid
|
|
57
63
|
* @type {MoneyDto}
|
|
@@ -108,7 +114,8 @@ export interface AuctionDto {
|
|
|
108
114
|
export function instanceOfAuctionDto(value: object): value is AuctionDto {
|
|
109
115
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
110
116
|
if (!('minimumBid' in value) || value['minimumBid'] === undefined) return false;
|
|
111
|
-
if (!('
|
|
117
|
+
if (!('hasReservePrice' in value) || value['hasReservePrice'] === undefined) return false;
|
|
118
|
+
if (!('isReservePriceReached' in value) || value['isReservePriceReached'] === undefined) return false;
|
|
112
119
|
if (!('highestBid' in value) || value['highestBid'] === undefined) return false;
|
|
113
120
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
114
121
|
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
@@ -132,7 +139,8 @@ export function AuctionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
132
139
|
|
|
133
140
|
'id': json['id'],
|
|
134
141
|
'minimumBid': MoneyDtoFromJSON(json['minimumBid']),
|
|
135
|
-
'
|
|
142
|
+
'hasReservePrice': json['hasReservePrice'],
|
|
143
|
+
'isReservePriceReached': json['isReservePriceReached'],
|
|
136
144
|
'highestBid': MoneyDtoFromJSON(json['highestBid']),
|
|
137
145
|
'currencyCode': json['currencyCode'],
|
|
138
146
|
'startDate': (new Date(json['startDate'])),
|
|
@@ -157,7 +165,8 @@ export function AuctionDtoToJSONTyped(value?: AuctionDto | null, ignoreDiscrimin
|
|
|
157
165
|
|
|
158
166
|
'id': value['id'],
|
|
159
167
|
'minimumBid': MoneyDtoToJSON(value['minimumBid']),
|
|
160
|
-
'
|
|
168
|
+
'hasReservePrice': value['hasReservePrice'],
|
|
169
|
+
'isReservePriceReached': value['isReservePriceReached'],
|
|
161
170
|
'highestBid': MoneyDtoToJSON(value['highestBid']),
|
|
162
171
|
'currencyCode': value['currencyCode'],
|
|
163
172
|
'startDate': ((value['startDate']).toISOString()),
|