@randock/nameshift-api-client 0.0.448 → 0.0.450
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 +12 -0
- package/README.md +3 -3
- package/dist/apis/APIKeysApi.d.ts +78 -0
- package/dist/apis/APIKeysApi.js +354 -0
- package/dist/apis/AccountsApi.d.ts +36 -36
- package/dist/apis/AccountsApi.js +360 -216
- package/dist/apis/AdminApi.d.ts +37 -1
- package/dist/apis/AdminApi.js +122 -1
- package/dist/apis/AuctionsApi.d.ts +4 -4
- package/dist/apis/AuctionsApi.js +40 -24
- package/dist/apis/BankAccountsApi.d.ts +10 -10
- package/dist/apis/BankAccountsApi.js +100 -60
- package/dist/apis/ChallengesApi.d.ts +6 -6
- package/dist/apis/ChallengesApi.js +60 -36
- package/dist/apis/DomainTransfersApi.d.ts +2 -2
- package/dist/apis/DomainTransfersApi.js +20 -12
- package/dist/apis/DomainsApi.d.ts +44 -44
- package/dist/apis/DomainsApi.js +440 -264
- package/dist/apis/EppApi.d.ts +2 -2
- package/dist/apis/EppApi.js +20 -12
- package/dist/apis/InvoicesApi.d.ts +6 -6
- package/dist/apis/InvoicesApi.js +60 -36
- package/dist/apis/LeadsApi.d.ts +38 -38
- package/dist/apis/LeadsApi.js +380 -228
- package/dist/apis/MarketplacesApi.d.ts +89 -0
- package/dist/apis/MarketplacesApi.js +332 -0
- package/dist/apis/NotificationsApi.d.ts +8 -8
- package/dist/apis/NotificationsApi.js +80 -48
- package/dist/apis/StatsApi.d.ts +14 -14
- package/dist/apis/StatsApi.js +140 -84
- package/dist/apis/SubscriptionsApi.d.ts +2 -2
- package/dist/apis/SubscriptionsApi.js +20 -12
- package/dist/apis/TasksApi.d.ts +6 -6
- package/dist/apis/TasksApi.js +60 -36
- package/dist/apis/UsersApi.d.ts +10 -10
- package/dist/apis/UsersApi.js +100 -60
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AccountMarketplaceDto.d.ts +56 -0
- package/dist/models/AccountMarketplaceDto.js +71 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +1 -0
- package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionItemDto.js +1 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.js +1 -0
- package/dist/models/AccountSettingsDto.d.ts +18 -0
- package/dist/models/AccountSettingsDto.js +16 -0
- package/dist/models/AccountSettingsInput.d.ts +18 -0
- package/dist/models/AccountSettingsInput.js +14 -0
- package/dist/models/AdminDomainListItemDto.d.ts +19 -0
- package/dist/models/AdminDomainListItemDto.js +17 -1
- package/dist/models/AdminMarketplaceDto.d.ts +86 -0
- package/dist/models/AdminMarketplaceDto.js +91 -0
- package/dist/models/ApiKeyDto.d.ts +107 -0
- package/dist/models/ApiKeyDto.js +114 -0
- package/dist/models/ApiKeyScopeDto.d.ts +83 -0
- package/dist/models/ApiKeyScopeDto.js +98 -0
- package/dist/models/CommissionDto.d.ts +1 -0
- package/dist/models/CommissionDto.js +1 -0
- package/dist/models/CommissionPayloadInput.d.ts +1 -0
- package/dist/models/CommissionPayloadInput.js +1 -0
- package/dist/models/CommissionReasonDto.d.ts +1 -0
- package/dist/models/CommissionReasonDto.js +1 -0
- package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
- package/dist/models/CommissionSimulationItemInput.js +1 -0
- package/dist/models/CreateApiKeyInput.d.ts +83 -0
- package/dist/models/CreateApiKeyInput.js +96 -0
- package/dist/models/CreateOrderInput.d.ts +6 -0
- package/dist/models/CreateOrderInput.js +2 -0
- package/dist/models/CreateSubscriptionInput.d.ts +6 -0
- package/dist/models/CreateSubscriptionInput.js +2 -0
- package/dist/models/CreatedApiKeyDto.d.ts +113 -0
- package/dist/models/CreatedApiKeyDto.js +118 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +18 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +16 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +18 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +16 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +18 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +16 -0
- package/dist/models/MarketplaceDto.d.ts +74 -0
- package/dist/models/MarketplaceDto.js +83 -0
- package/dist/models/OrderDto.d.ts +7 -1
- package/dist/models/OrderDto.js +4 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/SetAccountMarketplaceInput.d.ts +32 -0
- package/dist/models/SetAccountMarketplaceInput.js +51 -0
- package/dist/models/SimulateCommissionInput.d.ts +1 -0
- package/dist/models/SimulateCommissionInput.js +1 -0
- package/dist/models/SubscriptionDto.d.ts +7 -1
- package/dist/models/SubscriptionDto.js +4 -0
- package/dist/models/UpdateApiKeyInput.d.ts +77 -0
- package/dist/models/UpdateApiKeyInput.js +90 -0
- package/dist/models/UpdateDomainInput.d.ts +18 -0
- package/dist/models/UpdateDomainInput.js +14 -0
- package/dist/models/UpdateMarketplaceInput.d.ts +44 -0
- package/dist/models/UpdateMarketplaceInput.js +53 -0
- package/dist/models/UpdateOrderInput.d.ts +6 -0
- package/dist/models/UpdateOrderInput.js +2 -0
- package/dist/models/UpdateSubscriptionInput.d.ts +6 -0
- package/dist/models/UpdateSubscriptionInput.js +2 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
- package/src/apis/APIKeysApi.ts +271 -0
- package/src/apis/AccountsApi.ts +108 -36
- package/src/apis/AdminApi.ts +112 -0
- package/src/apis/AuctionsApi.ts +12 -4
- package/src/apis/BankAccountsApi.ts +30 -10
- package/src/apis/ChallengesApi.ts +18 -6
- package/src/apis/DomainTransfersApi.ts +6 -2
- package/src/apis/DomainsApi.ts +132 -44
- package/src/apis/EppApi.ts +6 -2
- package/src/apis/InvoicesApi.ts +18 -6
- package/src/apis/LeadsApi.ts +114 -38
- package/src/apis/MarketplacesApi.ts +240 -0
- package/src/apis/NotificationsApi.ts +24 -8
- package/src/apis/StatsApi.ts +42 -14
- package/src/apis/SubscriptionsApi.ts +6 -2
- package/src/apis/TasksApi.ts +18 -6
- package/src/apis/UsersApi.ts +30 -10
- package/src/apis/index.ts +2 -0
- package/src/models/AccountMarketplaceDto.ts +99 -0
- package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +1 -0
- package/src/models/AccountNameshiftCommissionItemDto.ts +1 -0
- package/src/models/AccountNameshiftCommissionReasonDto.ts +1 -0
- package/src/models/AccountSettingsDto.ts +24 -0
- package/src/models/AccountSettingsInput.ts +23 -0
- package/src/models/AdminDomainListItemDto.ts +23 -0
- package/src/models/AdminMarketplaceDto.ts +144 -0
- package/src/models/ApiKeyDto.ts +162 -0
- package/src/models/ApiKeyScopeDto.ts +126 -0
- package/src/models/CommissionDto.ts +1 -0
- package/src/models/CommissionPayloadInput.ts +1 -0
- package/src/models/CommissionReasonDto.ts +1 -0
- package/src/models/CommissionSimulationItemInput.ts +1 -0
- package/src/models/CreateApiKeyInput.ts +125 -0
- package/src/models/CreateOrderInput.ts +8 -0
- package/src/models/CreateSubscriptionInput.ts +8 -0
- package/src/models/CreatedApiKeyDto.ts +171 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +24 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +24 -0
- package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +24 -0
- package/src/models/MarketplaceDto.ts +126 -0
- package/src/models/OrderDto.ts +10 -1
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/SetAccountMarketplaceInput.ts +66 -0
- package/src/models/SimulateCommissionInput.ts +1 -0
- package/src/models/SubscriptionDto.ts +10 -1
- package/src/models/UpdateApiKeyInput.ts +115 -0
- package/src/models/UpdateDomainInput.ts +23 -0
- package/src/models/UpdateMarketplaceInput.ts +81 -0
- package/src/models/UpdateOrderInput.ts +8 -0
- package/src/models/UpdateSubscriptionInput.ts +8 -0
- package/src/models/index.ts +10 -0
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, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
13
|
+
import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminDeleteAuctionRequest {
|
|
15
15
|
auctionId: string;
|
|
16
16
|
}
|
|
@@ -298,6 +298,10 @@ export interface AdminApiUpdateFeatureFlagRequest {
|
|
|
298
298
|
featureFlagId: string;
|
|
299
299
|
updateFeatureFlagInput: UpdateFeatureFlagInput;
|
|
300
300
|
}
|
|
301
|
+
export interface AdminApiUpdateMarketplaceRequest {
|
|
302
|
+
code: UpdateMarketplaceCodeEnum;
|
|
303
|
+
updateMarketplaceInput: UpdateMarketplaceInput;
|
|
304
|
+
}
|
|
301
305
|
export interface AdminApiVerifyAccountAliasRequest {
|
|
302
306
|
accountId: string;
|
|
303
307
|
}
|
|
@@ -658,6 +662,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
658
662
|
* List accounts
|
|
659
663
|
*/
|
|
660
664
|
listAccounts(requestParameters?: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response>;
|
|
665
|
+
/**
|
|
666
|
+
* Returns every marketplace including disabled ones, with the nameservers the edge resolves routed domains against.
|
|
667
|
+
* List all marketplaces
|
|
668
|
+
*/
|
|
669
|
+
listAdminMarketplacesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AdminMarketplaceDto>>>;
|
|
670
|
+
/**
|
|
671
|
+
* Returns every marketplace including disabled ones, with the nameservers the edge resolves routed domains against.
|
|
672
|
+
* List all marketplaces
|
|
673
|
+
*/
|
|
674
|
+
listAdminMarketplaces(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AdminMarketplaceDto>>;
|
|
661
675
|
/**
|
|
662
676
|
* Lists all existing non-deleted challenges.
|
|
663
677
|
* List all challenges
|
|
@@ -938,6 +952,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
938
952
|
* Update platform feature
|
|
939
953
|
*/
|
|
940
954
|
updateFeatureFlag(requestParameters: AdminApiUpdateFeatureFlagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
955
|
+
/**
|
|
956
|
+
* Changes the display name, availability, or the nameservers a routed domain is resolved against. Takes effect at the edge on the next export.
|
|
957
|
+
* Update a marketplace
|
|
958
|
+
*/
|
|
959
|
+
updateMarketplaceRaw(requestParameters: AdminApiUpdateMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
960
|
+
/**
|
|
961
|
+
* Changes the display name, availability, or the nameservers a routed domain is resolved against. Takes effect at the edge on the next export.
|
|
962
|
+
* Update a marketplace
|
|
963
|
+
*/
|
|
964
|
+
updateMarketplace(requestParameters: AdminApiUpdateMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
941
965
|
/**
|
|
942
966
|
* Marks the account alias as verified.
|
|
943
967
|
* Verify account alias
|
|
@@ -959,3 +983,15 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
959
983
|
*/
|
|
960
984
|
verifyBankAccount(requestParameters: AdminApiVerifyBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
961
985
|
}
|
|
986
|
+
/**
|
|
987
|
+
* @export
|
|
988
|
+
*/
|
|
989
|
+
export declare const UpdateMarketplaceCodeEnum: {
|
|
990
|
+
readonly NAMESHIFT: "nameshift";
|
|
991
|
+
readonly SEDO: "sedo";
|
|
992
|
+
readonly AFTERNIC: "afternic";
|
|
993
|
+
readonly ATOM: "atom";
|
|
994
|
+
readonly SPACESHIP: "spaceship";
|
|
995
|
+
readonly NAMECLUB: "nameclub";
|
|
996
|
+
};
|
|
997
|
+
export type UpdateMarketplaceCodeEnum = typeof UpdateMarketplaceCodeEnum[keyof typeof UpdateMarketplaceCodeEnum];
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.AdminApi = void 0;
|
|
67
|
+
exports.UpdateMarketplaceCodeEnum = exports.AdminApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -2148,6 +2148,58 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
2148
2148
|
});
|
|
2149
2149
|
});
|
|
2150
2150
|
};
|
|
2151
|
+
/**
|
|
2152
|
+
* Returns every marketplace including disabled ones, with the nameservers the edge resolves routed domains against.
|
|
2153
|
+
* List all marketplaces
|
|
2154
|
+
*/
|
|
2155
|
+
AdminApi.prototype.listAdminMarketplacesRaw = function (initOverrides) {
|
|
2156
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2157
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
2158
|
+
return __generator(this, function (_a) {
|
|
2159
|
+
switch (_a.label) {
|
|
2160
|
+
case 0:
|
|
2161
|
+
queryParameters = {};
|
|
2162
|
+
headerParameters = {};
|
|
2163
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2164
|
+
token = this.configuration.accessToken;
|
|
2165
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
2166
|
+
case 1:
|
|
2167
|
+
tokenString = _a.sent();
|
|
2168
|
+
if (tokenString) {
|
|
2169
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2170
|
+
}
|
|
2171
|
+
_a.label = 2;
|
|
2172
|
+
case 2: return [4 /*yield*/, this.request({
|
|
2173
|
+
path: "/admin/marketplaces",
|
|
2174
|
+
method: 'GET',
|
|
2175
|
+
headers: headerParameters,
|
|
2176
|
+
query: queryParameters,
|
|
2177
|
+
}, initOverrides)];
|
|
2178
|
+
case 3:
|
|
2179
|
+
response = _a.sent();
|
|
2180
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.AdminMarketplaceDtoFromJSON); })];
|
|
2181
|
+
}
|
|
2182
|
+
});
|
|
2183
|
+
});
|
|
2184
|
+
};
|
|
2185
|
+
/**
|
|
2186
|
+
* Returns every marketplace including disabled ones, with the nameservers the edge resolves routed domains against.
|
|
2187
|
+
* List all marketplaces
|
|
2188
|
+
*/
|
|
2189
|
+
AdminApi.prototype.listAdminMarketplaces = function (initOverrides) {
|
|
2190
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2191
|
+
var response;
|
|
2192
|
+
return __generator(this, function (_a) {
|
|
2193
|
+
switch (_a.label) {
|
|
2194
|
+
case 0: return [4 /*yield*/, this.listAdminMarketplacesRaw(initOverrides)];
|
|
2195
|
+
case 1:
|
|
2196
|
+
response = _a.sent();
|
|
2197
|
+
return [4 /*yield*/, response.value()];
|
|
2198
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
2199
|
+
}
|
|
2200
|
+
});
|
|
2201
|
+
});
|
|
2202
|
+
};
|
|
2151
2203
|
/**
|
|
2152
2204
|
* Lists all existing non-deleted challenges.
|
|
2153
2205
|
* List all challenges
|
|
@@ -3768,6 +3820,64 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3768
3820
|
});
|
|
3769
3821
|
});
|
|
3770
3822
|
};
|
|
3823
|
+
/**
|
|
3824
|
+
* Changes the display name, availability, or the nameservers a routed domain is resolved against. Takes effect at the edge on the next export.
|
|
3825
|
+
* Update a marketplace
|
|
3826
|
+
*/
|
|
3827
|
+
AdminApi.prototype.updateMarketplaceRaw = function (requestParameters, initOverrides) {
|
|
3828
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3829
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
3830
|
+
return __generator(this, function (_a) {
|
|
3831
|
+
switch (_a.label) {
|
|
3832
|
+
case 0:
|
|
3833
|
+
if (requestParameters['code'] == null) {
|
|
3834
|
+
throw new runtime.RequiredError('code', 'Required parameter "code" was null or undefined when calling updateMarketplace().');
|
|
3835
|
+
}
|
|
3836
|
+
if (requestParameters['updateMarketplaceInput'] == null) {
|
|
3837
|
+
throw new runtime.RequiredError('updateMarketplaceInput', 'Required parameter "updateMarketplaceInput" was null or undefined when calling updateMarketplace().');
|
|
3838
|
+
}
|
|
3839
|
+
queryParameters = {};
|
|
3840
|
+
headerParameters = {};
|
|
3841
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3842
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
3843
|
+
token = this.configuration.accessToken;
|
|
3844
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
3845
|
+
case 1:
|
|
3846
|
+
tokenString = _a.sent();
|
|
3847
|
+
if (tokenString) {
|
|
3848
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
3849
|
+
}
|
|
3850
|
+
_a.label = 2;
|
|
3851
|
+
case 2: return [4 /*yield*/, this.request({
|
|
3852
|
+
path: "/admin/marketplaces/{code}".replace("{".concat("code", "}"), encodeURIComponent(String(requestParameters['code']))),
|
|
3853
|
+
method: 'PATCH',
|
|
3854
|
+
headers: headerParameters,
|
|
3855
|
+
query: queryParameters,
|
|
3856
|
+
body: (0, index_1.UpdateMarketplaceInputToJSON)(requestParameters['updateMarketplaceInput']),
|
|
3857
|
+
}, initOverrides)];
|
|
3858
|
+
case 3:
|
|
3859
|
+
response = _a.sent();
|
|
3860
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
3861
|
+
}
|
|
3862
|
+
});
|
|
3863
|
+
});
|
|
3864
|
+
};
|
|
3865
|
+
/**
|
|
3866
|
+
* Changes the display name, availability, or the nameservers a routed domain is resolved against. Takes effect at the edge on the next export.
|
|
3867
|
+
* Update a marketplace
|
|
3868
|
+
*/
|
|
3869
|
+
AdminApi.prototype.updateMarketplace = function (requestParameters, initOverrides) {
|
|
3870
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3871
|
+
return __generator(this, function (_a) {
|
|
3872
|
+
switch (_a.label) {
|
|
3873
|
+
case 0: return [4 /*yield*/, this.updateMarketplaceRaw(requestParameters, initOverrides)];
|
|
3874
|
+
case 1:
|
|
3875
|
+
_a.sent();
|
|
3876
|
+
return [2 /*return*/];
|
|
3877
|
+
}
|
|
3878
|
+
});
|
|
3879
|
+
});
|
|
3880
|
+
};
|
|
3771
3881
|
/**
|
|
3772
3882
|
* Marks the account alias as verified.
|
|
3773
3883
|
* Verify account alias
|
|
@@ -3877,3 +3987,14 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3877
3987
|
return AdminApi;
|
|
3878
3988
|
}(runtime.BaseAPI));
|
|
3879
3989
|
exports.AdminApi = AdminApi;
|
|
3990
|
+
/**
|
|
3991
|
+
* @export
|
|
3992
|
+
*/
|
|
3993
|
+
exports.UpdateMarketplaceCodeEnum = {
|
|
3994
|
+
NAMESHIFT: 'nameshift',
|
|
3995
|
+
SEDO: 'sedo',
|
|
3996
|
+
AFTERNIC: 'afternic',
|
|
3997
|
+
ATOM: 'atom',
|
|
3998
|
+
SPACESHIP: 'spaceship',
|
|
3999
|
+
NAMECLUB: 'nameclub'
|
|
4000
|
+
};
|
|
@@ -29,22 +29,22 @@ export interface AuctionsApiGetAllAuctionsRequest {
|
|
|
29
29
|
*/
|
|
30
30
|
export declare class AuctionsApi extends runtime.BaseAPI {
|
|
31
31
|
/**
|
|
32
|
-
* Deletes a scheduled auction owned by the seller account.
|
|
32
|
+
* Deletes a scheduled auction owned by the seller account. **API key scope required:** `AUCTIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
33
33
|
* Delete auction
|
|
34
34
|
*/
|
|
35
35
|
deleteAuctionRaw(requestParameters: AuctionsApiDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
36
36
|
/**
|
|
37
|
-
* Deletes a scheduled auction owned by the seller account.
|
|
37
|
+
* Deletes a scheduled auction owned by the seller account. **API key scope required:** `AUCTIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
38
38
|
* Delete auction
|
|
39
39
|
*/
|
|
40
40
|
deleteAuction(requestParameters: AuctionsApiDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
41
41
|
/**
|
|
42
|
-
* Lists auctions for the seller account.
|
|
42
|
+
* Lists auctions for the seller account. **API key scope required:** `AUCTIONS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
43
43
|
* List seller auctions
|
|
44
44
|
*/
|
|
45
45
|
getAllAuctionsRaw(requestParameters: AuctionsApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllAuctions200Response1>>;
|
|
46
46
|
/**
|
|
47
|
-
* Lists auctions for the seller account.
|
|
47
|
+
* Lists auctions for the seller account. **API key scope required:** `AUCTIONS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
48
48
|
* List seller auctions
|
|
49
49
|
*/
|
|
50
50
|
getAllAuctions(requestParameters?: AuctionsApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAuctions200Response1>;
|
package/dist/apis/AuctionsApi.js
CHANGED
|
@@ -76,44 +76,52 @@ var AuctionsApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Deletes a scheduled auction owned by the seller account.
|
|
79
|
+
* Deletes a scheduled auction owned by the seller account. **API key scope required:** `AUCTIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
80
80
|
* Delete auction
|
|
81
81
|
*/
|
|
82
82
|
AuctionsApi.prototype.deleteAuctionRaw = function (requestParameters, initOverrides) {
|
|
83
83
|
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
85
|
-
return __generator(this, function (
|
|
86
|
-
switch (
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_c) {
|
|
86
|
+
switch (_c.label) {
|
|
87
87
|
case 0:
|
|
88
88
|
if (requestParameters['auctionId'] == null) {
|
|
89
89
|
throw new runtime.RequiredError('auctionId', 'Required parameter "auctionId" was null or undefined when calling deleteAuction().');
|
|
90
90
|
}
|
|
91
91
|
queryParameters = {};
|
|
92
92
|
headerParameters = {};
|
|
93
|
-
if (!(this.configuration && this.configuration.
|
|
93
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
94
|
+
_a = headerParameters;
|
|
95
|
+
_b = "apikey";
|
|
96
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
97
|
+
case 1:
|
|
98
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
99
|
+
_c.label = 2;
|
|
100
|
+
case 2:
|
|
101
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
94
102
|
token = this.configuration.accessToken;
|
|
95
103
|
return [4 /*yield*/, token("bearer", [])];
|
|
96
|
-
case
|
|
97
|
-
tokenString =
|
|
104
|
+
case 3:
|
|
105
|
+
tokenString = _c.sent();
|
|
98
106
|
if (tokenString) {
|
|
99
107
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
100
108
|
}
|
|
101
|
-
|
|
102
|
-
case
|
|
109
|
+
_c.label = 4;
|
|
110
|
+
case 4: return [4 /*yield*/, this.request({
|
|
103
111
|
path: "/private/auctions/{auctionId}".replace("{".concat("auctionId", "}"), encodeURIComponent(String(requestParameters['auctionId']))),
|
|
104
112
|
method: 'DELETE',
|
|
105
113
|
headers: headerParameters,
|
|
106
114
|
query: queryParameters,
|
|
107
115
|
}, initOverrides)];
|
|
108
|
-
case
|
|
109
|
-
response =
|
|
116
|
+
case 5:
|
|
117
|
+
response = _c.sent();
|
|
110
118
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
111
119
|
}
|
|
112
120
|
});
|
|
113
121
|
});
|
|
114
122
|
};
|
|
115
123
|
/**
|
|
116
|
-
* Deletes a scheduled auction owned by the seller account.
|
|
124
|
+
* Deletes a scheduled auction owned by the seller account. **API key scope required:** `AUCTIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
117
125
|
* Delete auction
|
|
118
126
|
*/
|
|
119
127
|
AuctionsApi.prototype.deleteAuction = function (requestParameters, initOverrides) {
|
|
@@ -129,14 +137,14 @@ var AuctionsApi = /** @class */ (function (_super) {
|
|
|
129
137
|
});
|
|
130
138
|
};
|
|
131
139
|
/**
|
|
132
|
-
* Lists auctions for the seller account.
|
|
140
|
+
* Lists auctions for the seller account. **API key scope required:** `AUCTIONS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
133
141
|
* List seller auctions
|
|
134
142
|
*/
|
|
135
143
|
AuctionsApi.prototype.getAllAuctionsRaw = function (requestParameters, initOverrides) {
|
|
136
144
|
return __awaiter(this, void 0, void 0, function () {
|
|
137
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
138
|
-
return __generator(this, function (
|
|
139
|
-
switch (
|
|
145
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
146
|
+
return __generator(this, function (_c) {
|
|
147
|
+
switch (_c.label) {
|
|
140
148
|
case 0:
|
|
141
149
|
queryParameters = {};
|
|
142
150
|
if (requestParameters['filter'] != null) {
|
|
@@ -158,30 +166,38 @@ var AuctionsApi = /** @class */ (function (_super) {
|
|
|
158
166
|
queryParameters['filter[status]'] = requestParameters['filterStatus'];
|
|
159
167
|
}
|
|
160
168
|
headerParameters = {};
|
|
161
|
-
if (!(this.configuration && this.configuration.
|
|
169
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
170
|
+
_a = headerParameters;
|
|
171
|
+
_b = "apikey";
|
|
172
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
173
|
+
case 1:
|
|
174
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
175
|
+
_c.label = 2;
|
|
176
|
+
case 2:
|
|
177
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
162
178
|
token = this.configuration.accessToken;
|
|
163
179
|
return [4 /*yield*/, token("bearer", [])];
|
|
164
|
-
case
|
|
165
|
-
tokenString =
|
|
180
|
+
case 3:
|
|
181
|
+
tokenString = _c.sent();
|
|
166
182
|
if (tokenString) {
|
|
167
183
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
168
184
|
}
|
|
169
|
-
|
|
170
|
-
case
|
|
185
|
+
_c.label = 4;
|
|
186
|
+
case 4: return [4 /*yield*/, this.request({
|
|
171
187
|
path: "/private/auctions",
|
|
172
188
|
method: 'GET',
|
|
173
189
|
headers: headerParameters,
|
|
174
190
|
query: queryParameters,
|
|
175
191
|
}, initOverrides)];
|
|
176
|
-
case
|
|
177
|
-
response =
|
|
192
|
+
case 5:
|
|
193
|
+
response = _c.sent();
|
|
178
194
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllAuctions200Response1FromJSON)(jsonValue); })];
|
|
179
195
|
}
|
|
180
196
|
});
|
|
181
197
|
});
|
|
182
198
|
};
|
|
183
199
|
/**
|
|
184
|
-
* Lists auctions for the seller account.
|
|
200
|
+
* Lists auctions for the seller account. **API key scope required:** `AUCTIONS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
185
201
|
* List seller auctions
|
|
186
202
|
*/
|
|
187
203
|
AuctionsApi.prototype.getAllAuctions = function () {
|
|
@@ -35,52 +35,52 @@ export interface BankAccountsApiMakeBankAccountPrimaryRequest {
|
|
|
35
35
|
*/
|
|
36
36
|
export declare class BankAccountsApi extends runtime.BaseAPI {
|
|
37
37
|
/**
|
|
38
|
-
* Adds a new bank account for payouts to the current seller account.
|
|
38
|
+
* Adds a new bank account for payouts to the current seller account. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
39
39
|
* Create bank account
|
|
40
40
|
*/
|
|
41
41
|
createBankAccountRaw(requestParameters: BankAccountsApiCreateBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
42
42
|
/**
|
|
43
|
-
* Adds a new bank account for payouts to the current seller account.
|
|
43
|
+
* Adds a new bank account for payouts to the current seller account. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
44
44
|
* Create bank account
|
|
45
45
|
*/
|
|
46
46
|
createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
47
47
|
/**
|
|
48
|
-
* Removes a bank account from the current seller account.
|
|
48
|
+
* Removes a bank account from the current seller account. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
49
49
|
* Delete bank account
|
|
50
50
|
*/
|
|
51
51
|
deleteBankAccountRaw(requestParameters: BankAccountsApiDeleteBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
52
52
|
/**
|
|
53
|
-
* Removes a bank account from the current seller account.
|
|
53
|
+
* Removes a bank account from the current seller account. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
54
54
|
* Delete bank account
|
|
55
55
|
*/
|
|
56
56
|
deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
57
57
|
/**
|
|
58
|
-
* Returns bank account details to use for microdeposit verification.
|
|
58
|
+
* Returns bank account details to use for microdeposit verification. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
59
59
|
* Get microdeposit bank account details
|
|
60
60
|
*/
|
|
61
61
|
getBankAccountToUseForMicrodepositRaw(requestParameters: BankAccountsApiGetBankAccountToUseForMicrodepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AirwallexBankAccountDetailsDto>>;
|
|
62
62
|
/**
|
|
63
|
-
* Returns bank account details to use for microdeposit verification.
|
|
63
|
+
* Returns bank account details to use for microdeposit verification. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
64
64
|
* Get microdeposit bank account details
|
|
65
65
|
*/
|
|
66
66
|
getBankAccountToUseForMicrodeposit(requestParameters: BankAccountsApiGetBankAccountToUseForMicrodepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AirwallexBankAccountDetailsDto>;
|
|
67
67
|
/**
|
|
68
|
-
* Returns all bank accounts configured for the current seller account.
|
|
68
|
+
* Returns all bank accounts configured for the current seller account. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
69
69
|
* List bank accounts
|
|
70
70
|
*/
|
|
71
71
|
listBankAccountsRaw(requestParameters: BankAccountsApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountBankAccountDto>>>;
|
|
72
72
|
/**
|
|
73
|
-
* Returns all bank accounts configured for the current seller account.
|
|
73
|
+
* Returns all bank accounts configured for the current seller account. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
74
74
|
* List bank accounts
|
|
75
75
|
*/
|
|
76
76
|
listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountBankAccountDto>>;
|
|
77
77
|
/**
|
|
78
|
-
* Sets the specified bank account as the primary payout destination.
|
|
78
|
+
* Sets the specified bank account as the primary payout destination. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
79
79
|
* Set primary bank account
|
|
80
80
|
*/
|
|
81
81
|
makeBankAccountPrimaryRaw(requestParameters: BankAccountsApiMakeBankAccountPrimaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
82
82
|
/**
|
|
83
|
-
* Sets the specified bank account as the primary payout destination.
|
|
83
|
+
* Sets the specified bank account as the primary payout destination. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
84
84
|
* Set primary bank account
|
|
85
85
|
*/
|
|
86
86
|
makeBankAccountPrimary(requestParameters: BankAccountsApiMakeBankAccountPrimaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|