@randock/nameshift-api-client 0.0.449 → 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.
Files changed (102) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +37 -1
  4. package/dist/apis/AdminApi.js +122 -1
  5. package/dist/apis/MarketplacesApi.d.ts +89 -0
  6. package/dist/apis/MarketplacesApi.js +332 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AccountMarketplaceDto.d.ts +56 -0
  10. package/dist/models/AccountMarketplaceDto.js +71 -0
  11. package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
  12. package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +1 -0
  13. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
  14. package/dist/models/AccountNameshiftCommissionItemDto.js +1 -0
  15. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
  16. package/dist/models/AccountNameshiftCommissionReasonDto.js +1 -0
  17. package/dist/models/AccountSettingsDto.d.ts +18 -0
  18. package/dist/models/AccountSettingsDto.js +16 -0
  19. package/dist/models/AccountSettingsInput.d.ts +18 -0
  20. package/dist/models/AccountSettingsInput.js +14 -0
  21. package/dist/models/AdminDomainListItemDto.d.ts +19 -0
  22. package/dist/models/AdminDomainListItemDto.js +17 -1
  23. package/dist/models/AdminMarketplaceDto.d.ts +86 -0
  24. package/dist/models/AdminMarketplaceDto.js +91 -0
  25. package/dist/models/CommissionDto.d.ts +1 -0
  26. package/dist/models/CommissionDto.js +1 -0
  27. package/dist/models/CommissionPayloadInput.d.ts +1 -0
  28. package/dist/models/CommissionPayloadInput.js +1 -0
  29. package/dist/models/CommissionReasonDto.d.ts +1 -0
  30. package/dist/models/CommissionReasonDto.js +1 -0
  31. package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
  32. package/dist/models/CommissionSimulationItemInput.js +1 -0
  33. package/dist/models/CreateOrderInput.d.ts +6 -0
  34. package/dist/models/CreateOrderInput.js +2 -0
  35. package/dist/models/CreateSubscriptionInput.d.ts +6 -0
  36. package/dist/models/CreateSubscriptionInput.js +2 -0
  37. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  38. package/dist/models/FeatureFlagListItemDto.js +2 -1
  39. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  40. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  41. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +18 -0
  42. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +16 -0
  43. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +18 -0
  44. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +16 -0
  45. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +18 -0
  46. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +16 -0
  47. package/dist/models/MarketplaceDto.d.ts +74 -0
  48. package/dist/models/MarketplaceDto.js +83 -0
  49. package/dist/models/OrderDto.d.ts +7 -1
  50. package/dist/models/OrderDto.js +4 -0
  51. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  52. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  53. package/dist/models/SetAccountMarketplaceInput.d.ts +32 -0
  54. package/dist/models/SetAccountMarketplaceInput.js +51 -0
  55. package/dist/models/SimulateCommissionInput.d.ts +1 -0
  56. package/dist/models/SimulateCommissionInput.js +1 -0
  57. package/dist/models/SubscriptionDto.d.ts +7 -1
  58. package/dist/models/SubscriptionDto.js +4 -0
  59. package/dist/models/UpdateDomainInput.d.ts +18 -0
  60. package/dist/models/UpdateDomainInput.js +14 -0
  61. package/dist/models/UpdateMarketplaceInput.d.ts +44 -0
  62. package/dist/models/UpdateMarketplaceInput.js +53 -0
  63. package/dist/models/UpdateOrderInput.d.ts +6 -0
  64. package/dist/models/UpdateOrderInput.js +2 -0
  65. package/dist/models/UpdateSubscriptionInput.d.ts +6 -0
  66. package/dist/models/UpdateSubscriptionInput.js +2 -0
  67. package/dist/models/index.d.ts +5 -0
  68. package/dist/models/index.js +5 -0
  69. package/package.json +1 -1
  70. package/src/apis/AdminApi.ts +112 -0
  71. package/src/apis/MarketplacesApi.ts +240 -0
  72. package/src/apis/index.ts +1 -0
  73. package/src/models/AccountMarketplaceDto.ts +99 -0
  74. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +1 -0
  75. package/src/models/AccountNameshiftCommissionItemDto.ts +1 -0
  76. package/src/models/AccountNameshiftCommissionReasonDto.ts +1 -0
  77. package/src/models/AccountSettingsDto.ts +24 -0
  78. package/src/models/AccountSettingsInput.ts +23 -0
  79. package/src/models/AdminDomainListItemDto.ts +23 -0
  80. package/src/models/AdminMarketplaceDto.ts +144 -0
  81. package/src/models/CommissionDto.ts +1 -0
  82. package/src/models/CommissionPayloadInput.ts +1 -0
  83. package/src/models/CommissionReasonDto.ts +1 -0
  84. package/src/models/CommissionSimulationItemInput.ts +1 -0
  85. package/src/models/CreateOrderInput.ts +8 -0
  86. package/src/models/CreateSubscriptionInput.ts +8 -0
  87. package/src/models/FeatureFlagListItemDto.ts +2 -1
  88. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  89. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +24 -0
  90. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +24 -0
  91. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +24 -0
  92. package/src/models/MarketplaceDto.ts +126 -0
  93. package/src/models/OrderDto.ts +10 -1
  94. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  95. package/src/models/SetAccountMarketplaceInput.ts +66 -0
  96. package/src/models/SimulateCommissionInput.ts +1 -0
  97. package/src/models/SubscriptionDto.ts +10 -1
  98. package/src/models/UpdateDomainInput.ts +23 -0
  99. package/src/models/UpdateMarketplaceInput.ts +81 -0
  100. package/src/models/UpdateOrderInput.ts +8 -0
  101. package/src/models/UpdateSubscriptionInput.ts +8 -0
  102. package/src/models/index.ts +5 -0
@@ -23,6 +23,7 @@ src/apis/LeadsApi.ts
23
23
  src/apis/LeadsPublicApi.ts
24
24
  src/apis/MarketApi.ts
25
25
  src/apis/MarketingApi.ts
26
+ src/apis/MarketplacesApi.ts
26
27
  src/apis/NotificationsApi.ts
27
28
  src/apis/OrdersPublicApi.ts
28
29
  src/apis/PartnerApi.ts
@@ -45,6 +46,7 @@ src/models/AccountChallengeRewardUsageListItemDtoMetadata.ts
45
46
  src/models/AccountCommissionByDateRangeDto.ts
46
47
  src/models/AccountCountryStatsDto.ts
47
48
  src/models/AccountDto.ts
49
+ src/models/AccountMarketplaceDto.ts
48
50
  src/models/AccountMetricsDto.ts
49
51
  src/models/AccountNameshiftCommissionBySubtypeDto.ts
50
52
  src/models/AccountNameshiftCommissionBySubtypePercentagesDto.ts
@@ -98,6 +100,7 @@ src/models/AdminLeadListItemBuyerDto.ts
98
100
  src/models/AdminLeadListItemDomainDto.ts
99
101
  src/models/AdminLeadListItemDto.ts
100
102
  src/models/AdminListAccountDto.ts
103
+ src/models/AdminMarketplaceDto.ts
101
104
  src/models/AdminVerificationDepositDto.ts
102
105
  src/models/AffiliatesStatsDto.ts
103
106
  src/models/AggregatedPaginationResponse.ts
@@ -370,6 +373,7 @@ src/models/ManualLeadLeaseToOwnDto.ts
370
373
  src/models/MarketingDashboardStatsDto.ts
371
374
  src/models/MarketingOrderListItemDto.ts
372
375
  src/models/MarketingSalesFiltersDto.ts
376
+ src/models/MarketplaceDto.ts
373
377
  src/models/MoneyDecimalDto.ts
374
378
  src/models/MoneyDto.ts
375
379
  src/models/MoneyInput.ts
@@ -468,6 +472,7 @@ src/models/SendAdminLeadAiPriceNegotiatorAgentChatMessageInput.ts
468
472
  src/models/SendAdminLeadAiPriceNegotiatorAgentChatMessageInputAiModel.ts
469
473
  src/models/SeoMetricsDto.ts
470
474
  src/models/SepaBankAccountDetails.ts
475
+ src/models/SetAccountMarketplaceInput.ts
471
476
  src/models/SetDomainTransferConfirmationInput.ts
472
477
  src/models/SetNewPasswordInput.ts
473
478
  src/models/SetPayoutProviderInput.ts
@@ -525,6 +530,7 @@ src/models/UpdateLeadInput.ts
525
530
  src/models/UpdateLeadMuteStatusForBuyerInput.ts
526
531
  src/models/UpdateLeadMuteStatusInput.ts
527
532
  src/models/UpdateLeaseToOwnConfigurationDto.ts
533
+ src/models/UpdateMarketplaceInput.ts
528
534
  src/models/UpdateOrderInput.ts
529
535
  src/models/UpdateRentConfigurationDto.ts
530
536
  src/models/UpdateSubscriptionBillingPeriodicityInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.449
1
+ ## @randock/nameshift-api-client@0.0.450
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.449 --save
39
+ npm install @randock/nameshift-api-client@0.0.450 --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
- ef35da7f8b5a1be28b52ab412632a00d9304060f6dfc00b9920c1e53d7de37a2123c512e852434329c6418d266a52fa8
47
+ 199487a75ac0c569cbdcb605f89e0148cb660f39e8c8b52ab27ee570aa4a3392481214ea2fb0f631350f0c19619dd22f
@@ -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];
@@ -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
+ };
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 { AccountMarketplaceDto, MarketplaceDto, SetAccountMarketplaceInput } from '../models/index';
14
+ export interface MarketplacesApiDeleteAccountMarketplaceRequest {
15
+ code: DeleteAccountMarketplaceCodeEnum;
16
+ }
17
+ export interface MarketplacesApiSetAccountMarketplaceRequest {
18
+ code: SetAccountMarketplaceCodeEnum;
19
+ setAccountMarketplaceInput: SetAccountMarketplaceInput;
20
+ }
21
+ /**
22
+ *
23
+ */
24
+ export declare class MarketplacesApi extends runtime.BaseAPI {
25
+ /**
26
+ * Removes the link and stops publishing its code. Domains routed to this marketplace keep their setting and fall back to our own landing page until the link is restored. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
27
+ * Remove the account marketplace link
28
+ */
29
+ deleteAccountMarketplaceRaw(requestParameters: MarketplacesApiDeleteAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
30
+ /**
31
+ * Removes the link and stops publishing its code. Domains routed to this marketplace keep their setting and fall back to our own landing page until the link is restored. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
32
+ * Remove the account marketplace link
33
+ */
34
+ deleteAccountMarketplace(requestParameters: MarketplacesApiDeleteAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
35
+ /**
36
+ * Returns the marketplaces this account is linked to, together with the code published for every domain of the account. **API key scope required:** `ACCOUNT_READ`. Requests authenticated with a seller session do not need any scope.
37
+ * List the account marketplace links
38
+ */
39
+ listAccountMarketplacesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountMarketplaceDto>>>;
40
+ /**
41
+ * Returns the marketplaces this account is linked to, together with the code published for every domain of the account. **API key scope required:** `ACCOUNT_READ`. Requests authenticated with a seller session do not need any scope.
42
+ * List the account marketplace links
43
+ */
44
+ listAccountMarketplaces(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountMarketplaceDto>>;
45
+ /**
46
+ * Returns the marketplaces a domain can be routed to while staying on our nameservers. Disabled marketplaces are omitted.
47
+ * List routable marketplaces
48
+ */
49
+ listMarketplacesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MarketplaceDto>>>;
50
+ /**
51
+ * Returns the marketplaces a domain can be routed to while staying on our nameservers. Disabled marketplaces are omitted.
52
+ * List routable marketplaces
53
+ */
54
+ listMarketplaces(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MarketplaceDto>>;
55
+ /**
56
+ * Creates or replaces the link between this account and a marketplace, storing the code it must publish to stay verified there. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
57
+ * Link the account to a marketplace
58
+ */
59
+ setAccountMarketplaceRaw(requestParameters: MarketplacesApiSetAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
60
+ /**
61
+ * Creates or replaces the link between this account and a marketplace, storing the code it must publish to stay verified there. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
62
+ * Link the account to a marketplace
63
+ */
64
+ setAccountMarketplace(requestParameters: MarketplacesApiSetAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
65
+ }
66
+ /**
67
+ * @export
68
+ */
69
+ export declare const DeleteAccountMarketplaceCodeEnum: {
70
+ readonly NAMESHIFT: "nameshift";
71
+ readonly SEDO: "sedo";
72
+ readonly AFTERNIC: "afternic";
73
+ readonly ATOM: "atom";
74
+ readonly SPACESHIP: "spaceship";
75
+ readonly NAMECLUB: "nameclub";
76
+ };
77
+ export type DeleteAccountMarketplaceCodeEnum = typeof DeleteAccountMarketplaceCodeEnum[keyof typeof DeleteAccountMarketplaceCodeEnum];
78
+ /**
79
+ * @export
80
+ */
81
+ export declare const SetAccountMarketplaceCodeEnum: {
82
+ readonly NAMESHIFT: "nameshift";
83
+ readonly SEDO: "sedo";
84
+ readonly AFTERNIC: "afternic";
85
+ readonly ATOM: "atom";
86
+ readonly SPACESHIP: "spaceship";
87
+ readonly NAMECLUB: "nameclub";
88
+ };
89
+ export type SetAccountMarketplaceCodeEnum = typeof SetAccountMarketplaceCodeEnum[keyof typeof SetAccountMarketplaceCodeEnum];