@randock/nameshift-api-client 0.0.406 → 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/package.json +1 -1
- package/src/apis/AdminApi.ts +44 -0
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
|
*/
|
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
|
*/
|