@randock/nameshift-api-client 0.0.435 → 0.0.436
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 +9 -1
- package/dist/apis/AdminApi.js +50 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +37 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.436
|
|
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.436 --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
|
+
ad16732369a1b482f06b7978cfbbd9aa8a2459f183b0e7a385ad9b8ebb63fbe2d86c6252c5c15021969d3d416908fe0a
|
package/dist/apis/AdminApi.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 { 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, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
13
|
+
import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminDeleteAuctionRequest {
|
|
15
15
|
auctionId: string;
|
|
16
16
|
}
|
|
@@ -519,6 +519,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
519
519
|
*
|
|
520
520
|
*/
|
|
521
521
|
listDomainLocks(requestParameters: AdminApiListDomainLocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DomainLockDto>>;
|
|
522
|
+
/**
|
|
523
|
+
*
|
|
524
|
+
*/
|
|
525
|
+
listDomainTldsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTldsDto>>;
|
|
526
|
+
/**
|
|
527
|
+
*
|
|
528
|
+
*/
|
|
529
|
+
listDomainTlds(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTldsDto>;
|
|
522
530
|
/**
|
|
523
531
|
*
|
|
524
532
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -2077,6 +2077,56 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
2077
2077
|
});
|
|
2078
2078
|
});
|
|
2079
2079
|
};
|
|
2080
|
+
/**
|
|
2081
|
+
*
|
|
2082
|
+
*/
|
|
2083
|
+
AdminApi.prototype.listDomainTldsRaw = function (initOverrides) {
|
|
2084
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2085
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
2086
|
+
return __generator(this, function (_a) {
|
|
2087
|
+
switch (_a.label) {
|
|
2088
|
+
case 0:
|
|
2089
|
+
queryParameters = {};
|
|
2090
|
+
headerParameters = {};
|
|
2091
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2092
|
+
token = this.configuration.accessToken;
|
|
2093
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
2094
|
+
case 1:
|
|
2095
|
+
tokenString = _a.sent();
|
|
2096
|
+
if (tokenString) {
|
|
2097
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2098
|
+
}
|
|
2099
|
+
_a.label = 2;
|
|
2100
|
+
case 2: return [4 /*yield*/, this.request({
|
|
2101
|
+
path: "/admin/domains/tlds",
|
|
2102
|
+
method: 'GET',
|
|
2103
|
+
headers: headerParameters,
|
|
2104
|
+
query: queryParameters,
|
|
2105
|
+
}, initOverrides)];
|
|
2106
|
+
case 3:
|
|
2107
|
+
response = _a.sent();
|
|
2108
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainTldsDtoFromJSON)(jsonValue); })];
|
|
2109
|
+
}
|
|
2110
|
+
});
|
|
2111
|
+
});
|
|
2112
|
+
};
|
|
2113
|
+
/**
|
|
2114
|
+
*
|
|
2115
|
+
*/
|
|
2116
|
+
AdminApi.prototype.listDomainTlds = function (initOverrides) {
|
|
2117
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2118
|
+
var response;
|
|
2119
|
+
return __generator(this, function (_a) {
|
|
2120
|
+
switch (_a.label) {
|
|
2121
|
+
case 0: return [4 /*yield*/, this.listDomainTldsRaw(initOverrides)];
|
|
2122
|
+
case 1:
|
|
2123
|
+
response = _a.sent();
|
|
2124
|
+
return [4 /*yield*/, response.value()];
|
|
2125
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
2126
|
+
}
|
|
2127
|
+
});
|
|
2128
|
+
});
|
|
2129
|
+
};
|
|
2080
2130
|
/**
|
|
2081
2131
|
*
|
|
2082
2132
|
*/
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -34,6 +34,7 @@ import type {
|
|
|
34
34
|
CreateChallengeInput,
|
|
35
35
|
DomainLockDto,
|
|
36
36
|
DomainStatsDto,
|
|
37
|
+
DomainTldsDto,
|
|
37
38
|
DomainTransferDetailsDto,
|
|
38
39
|
GetAccountChallengeRewardUsagesListDto,
|
|
39
40
|
GetAllAuctions200Response,
|
|
@@ -99,6 +100,8 @@ import {
|
|
|
99
100
|
DomainLockDtoToJSON,
|
|
100
101
|
DomainStatsDtoFromJSON,
|
|
101
102
|
DomainStatsDtoToJSON,
|
|
103
|
+
DomainTldsDtoFromJSON,
|
|
104
|
+
DomainTldsDtoToJSON,
|
|
102
105
|
DomainTransferDetailsDtoFromJSON,
|
|
103
106
|
DomainTransferDetailsDtoToJSON,
|
|
104
107
|
GetAccountChallengeRewardUsagesListDtoFromJSON,
|
|
@@ -1994,6 +1997,40 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1994
1997
|
return await response.value();
|
|
1995
1998
|
}
|
|
1996
1999
|
|
|
2000
|
+
/**
|
|
2001
|
+
*
|
|
2002
|
+
*/
|
|
2003
|
+
async listDomainTldsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTldsDto>> {
|
|
2004
|
+
const queryParameters: any = {};
|
|
2005
|
+
|
|
2006
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2007
|
+
|
|
2008
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2009
|
+
const token = this.configuration.accessToken;
|
|
2010
|
+
const tokenString = await token("bearer", []);
|
|
2011
|
+
|
|
2012
|
+
if (tokenString) {
|
|
2013
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
const response = await this.request({
|
|
2017
|
+
path: `/admin/domains/tlds`,
|
|
2018
|
+
method: 'GET',
|
|
2019
|
+
headers: headerParameters,
|
|
2020
|
+
query: queryParameters,
|
|
2021
|
+
}, initOverrides);
|
|
2022
|
+
|
|
2023
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DomainTldsDtoFromJSON(jsonValue));
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
/**
|
|
2027
|
+
*
|
|
2028
|
+
*/
|
|
2029
|
+
async listDomainTlds(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTldsDto> {
|
|
2030
|
+
const response = await this.listDomainTldsRaw(initOverrides);
|
|
2031
|
+
return await response.value();
|
|
2032
|
+
}
|
|
2033
|
+
|
|
1997
2034
|
/**
|
|
1998
2035
|
*
|
|
1999
2036
|
*/
|