@randock/nameshift-api-client 0.0.445 → 0.0.447

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 (82) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +2 -2
  4. package/dist/apis/AccountsApi.js +2 -2
  5. package/dist/apis/AdminApi.d.ts +16 -3
  6. package/dist/apis/AdminApi.js +59 -2
  7. package/dist/apis/MarketApi.d.ts +71 -0
  8. package/dist/apis/MarketApi.js +299 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +6 -0
  12. package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +4 -0
  13. package/dist/models/AccountNameshiftCommissionByTypeDto.d.ts +2 -2
  14. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +12 -0
  15. package/dist/models/AccountNameshiftCommissionItemDto.js +8 -0
  16. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +21 -0
  17. package/dist/models/AccountNameshiftCommissionReasonDto.js +13 -1
  18. package/dist/models/CommissionConfigurationSimulationInput.d.ts +33 -0
  19. package/dist/models/CommissionConfigurationSimulationInput.js +52 -0
  20. package/dist/models/CommissionConfigurationSimulationInputPayload.d.ts +27 -0
  21. package/dist/models/CommissionConfigurationSimulationInputPayload.js +54 -0
  22. package/dist/models/CommissionDto.d.ts +12 -0
  23. package/dist/models/CommissionDto.js +8 -0
  24. package/dist/models/CommissionFactor.d.ts +1 -1
  25. package/dist/models/CommissionFactor.js +1 -1
  26. package/dist/models/CommissionPayloadInput.d.ts +12 -0
  27. package/dist/models/CommissionPayloadInput.js +4 -0
  28. package/dist/models/CommissionReasonDto.d.ts +33 -0
  29. package/dist/models/CommissionReasonDto.js +17 -1
  30. package/dist/models/CommissionSimulationItemInput.d.ts +123 -0
  31. package/dist/models/CommissionSimulationItemInput.js +113 -0
  32. package/dist/models/CommissionSimulationResultDto.d.ts +39 -0
  33. package/dist/models/CommissionSimulationResultDto.js +56 -0
  34. package/dist/models/FixedCommissionPayloadSimulationInput.d.ts +39 -0
  35. package/dist/models/FixedCommissionPayloadSimulationInput.js +56 -0
  36. package/dist/models/GetAccountNameshiftCommissionsResponseDto.d.ts +1 -1
  37. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +6 -0
  38. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +4 -0
  39. package/dist/models/LeadDto.d.ts +6 -0
  40. package/dist/models/LeadDto.js +4 -0
  41. package/dist/models/ListLeadsResultItem.d.ts +6 -0
  42. package/dist/models/ListLeadsResultItem.js +4 -0
  43. package/dist/models/MozMetrics.d.ts +6 -0
  44. package/dist/models/MozMetrics.js +4 -0
  45. package/dist/models/PopularCategoryDto.d.ts +44 -0
  46. package/dist/models/PopularCategoryDto.js +59 -0
  47. package/dist/models/SalesCountCommissionPayloadSimulationInput.d.ts +40 -0
  48. package/dist/models/SalesCountCommissionPayloadSimulationInput.js +57 -0
  49. package/dist/models/SellerLeadDetails.d.ts +6 -0
  50. package/dist/models/SellerLeadDetails.js +4 -0
  51. package/dist/models/SimulateCommissionInput.d.ts +67 -0
  52. package/dist/models/SimulateCommissionInput.js +78 -0
  53. package/dist/models/index.d.ts +8 -0
  54. package/dist/models/index.js +8 -0
  55. package/package.json +1 -1
  56. package/src/apis/AccountsApi.ts +2 -2
  57. package/src/apis/AdminApi.ts +58 -2
  58. package/src/apis/MarketApi.ts +204 -0
  59. package/src/apis/index.ts +1 -0
  60. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +9 -0
  61. package/src/models/AccountNameshiftCommissionByTypeDto.ts +2 -2
  62. package/src/models/AccountNameshiftCommissionItemDto.ts +18 -0
  63. package/src/models/AccountNameshiftCommissionReasonDto.ts +26 -0
  64. package/src/models/CommissionConfigurationSimulationInput.ts +74 -0
  65. package/src/models/CommissionConfigurationSimulationInputPayload.ts +73 -0
  66. package/src/models/CommissionDto.ts +18 -0
  67. package/src/models/CommissionFactor.ts +1 -1
  68. package/src/models/CommissionPayloadInput.ts +16 -0
  69. package/src/models/CommissionReasonDto.ts +42 -0
  70. package/src/models/CommissionSimulationItemInput.ts +202 -0
  71. package/src/models/CommissionSimulationResultDto.ts +83 -0
  72. package/src/models/FixedCommissionPayloadSimulationInput.ts +85 -0
  73. package/src/models/GetAccountNameshiftCommissionsResponseDto.ts +1 -1
  74. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +9 -0
  75. package/src/models/LeadDto.ts +9 -0
  76. package/src/models/ListLeadsResultItem.ts +9 -0
  77. package/src/models/MozMetrics.ts +9 -0
  78. package/src/models/PopularCategoryDto.ts +84 -0
  79. package/src/models/SalesCountCommissionPayloadSimulationInput.ts +92 -0
  80. package/src/models/SellerLeadDetails.ts +9 -0
  81. package/src/models/SimulateCommissionInput.ts +123 -0
  82. package/src/models/index.ts +8 -0
@@ -20,6 +20,7 @@ src/apis/EppApi.ts
20
20
  src/apis/InvoicesApi.ts
21
21
  src/apis/LeadsApi.ts
22
22
  src/apis/LeadsPublicApi.ts
23
+ src/apis/MarketApi.ts
23
24
  src/apis/MarketingApi.ts
24
25
  src/apis/NotificationsApi.ts
25
26
  src/apis/OrdersPublicApi.ts
@@ -174,6 +175,8 @@ src/models/CommissionAddUpdateActionInput.ts
174
175
  src/models/CommissionConfigurationDto.ts
175
176
  src/models/CommissionConfigurationDtoPayload.ts
176
177
  src/models/CommissionConfigurationInput.ts
178
+ src/models/CommissionConfigurationSimulationInput.ts
179
+ src/models/CommissionConfigurationSimulationInputPayload.ts
177
180
  src/models/CommissionDeleteActionInput.ts
178
181
  src/models/CommissionDto.ts
179
182
  src/models/CommissionFactor.ts
@@ -185,6 +188,8 @@ src/models/CommissionPercentageRangeInput.ts
185
188
  src/models/CommissionReasonConfigDto.ts
186
189
  src/models/CommissionReasonConfigDtoPayload.ts
187
190
  src/models/CommissionReasonDto.ts
191
+ src/models/CommissionSimulationItemInput.ts
192
+ src/models/CommissionSimulationResultDto.ts
188
193
  src/models/CommissionsStatsDto.ts
189
194
  src/models/CompanyInformationDto.ts
190
195
  src/models/CompanyTaxIdDto.ts
@@ -252,6 +257,7 @@ src/models/EppBatchUpdateInput.ts
252
257
  src/models/FeatureFlagListItemDto.ts
253
258
  src/models/FixedCommissionPayloadDto.ts
254
259
  src/models/FixedCommissionPayloadInput.ts
260
+ src/models/FixedCommissionPayloadSimulationInput.ts
255
261
  src/models/FixedCommissionReasonPayloadDto.ts
256
262
  src/models/ForgotPasswordRequestInput.ts
257
263
  src/models/GetAccountChallengeRewardUsagesListDto.ts
@@ -385,6 +391,7 @@ src/models/PartnerAuctionDto.ts
385
391
  src/models/PartnerDomainFindDto.ts
386
392
  src/models/PayAccountPaymentInput.ts
387
393
  src/models/PaymentMethodsStatsDto.ts
394
+ src/models/PopularCategoryDto.ts
388
395
  src/models/PrivateAccountGetMeResponse.ts
389
396
  src/models/PublicAccountInformationDto.ts
390
397
  src/models/PublicAuctionListItemDto.ts
@@ -419,6 +426,7 @@ src/models/RequestEmailOtpInput.ts
419
426
  src/models/RequestUserEmailChangeOtpInput.ts
420
427
  src/models/SalesCountCommissionPayloadDto.ts
421
428
  src/models/SalesCountCommissionPayloadInput.ts
429
+ src/models/SalesCountCommissionPayloadSimulationInput.ts
422
430
  src/models/SalesCountCommissionReasonPayloadDto.ts
423
431
  src/models/SeBankAccountDetails.ts
424
432
  src/models/SellerAccountReferralListItemDto.ts
@@ -458,6 +466,7 @@ src/models/SepaBankAccountDetails.ts
458
466
  src/models/SetDomainTransferConfirmationInput.ts
459
467
  src/models/SetNewPasswordInput.ts
460
468
  src/models/SetPayoutProviderInput.ts
469
+ src/models/SimulateCommissionInput.ts
461
470
  src/models/StartAuctionInput.ts
462
471
  src/models/StateDto.ts
463
472
  src/models/StatsFilterInputDateRange.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.445
1
+ ## @randock/nameshift-api-client@0.0.447
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.445 --save
39
+ npm install @randock/nameshift-api-client@0.0.447 --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
- b972e9daf76cceacccbb7825d774124b14483923c71389748433c63cb8a6842b4f88948562a297b3f1aff7a23bc1c021
47
+ b16518573bfed486629257b16565a7436b69e47de57a4687cf2b290774663712d2ca7860ddbea923af3e066d5a2b9b11
@@ -184,12 +184,12 @@ export declare class AccountsApi extends runtime.BaseAPI {
184
184
  */
185
185
  getAllReferrals(requestParameters: AccountsApiGetAllReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllReferrals200Response>;
186
186
  /**
187
- * Returns current commission percentages by subtype and active commission schedules.
187
+ * Returns Nameshift commission percentages and schedules for the current account.
188
188
  * Get Nameshift commissions
189
189
  */
190
190
  getNameshiftCommissionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAccountNameshiftCommissionsResponseDto>>;
191
191
  /**
192
- * Returns current commission percentages by subtype and active commission schedules.
192
+ * Returns Nameshift commission percentages and schedules for the current account.
193
193
  * Get Nameshift commissions
194
194
  */
195
195
  getNameshiftCommissions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAccountNameshiftCommissionsResponseDto>;
@@ -665,7 +665,7 @@ var AccountsApi = /** @class */ (function (_super) {
665
665
  });
666
666
  };
667
667
  /**
668
- * Returns current commission percentages by subtype and active commission schedules.
668
+ * Returns Nameshift commission percentages and schedules for the current account.
669
669
  * Get Nameshift commissions
670
670
  */
671
671
  AccountsApi.prototype.getNameshiftCommissionsRaw = function (initOverrides) {
@@ -699,7 +699,7 @@ var AccountsApi = /** @class */ (function (_super) {
699
699
  });
700
700
  };
701
701
  /**
702
- * Returns current commission percentages by subtype and active commission schedules.
702
+ * Returns Nameshift commission percentages and schedules for the current account.
703
703
  * Get Nameshift commissions
704
704
  */
705
705
  AccountsApi.prototype.getNameshiftCommissions = function (initOverrides) {
@@ -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, 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, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
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';
14
14
  export interface AdminApiAdminDeleteAuctionRequest {
15
15
  auctionId: string;
16
16
  }
@@ -264,6 +264,9 @@ export interface AdminApiRemoveDomainLockRequest {
264
264
  domainId: string;
265
265
  lockId: string;
266
266
  }
267
+ export interface AdminApiSimulateCommissionRequest {
268
+ simulateCommissionInput: SimulateCommissionInput;
269
+ }
267
270
  export interface AdminApiSyncAccountStatsRequest {
268
271
  accountId: string;
269
272
  }
@@ -450,12 +453,12 @@ export declare class AdminApi extends runtime.BaseAPI {
450
453
  */
451
454
  getAccountMe(requestParameters: AdminApiGetAccountMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto>;
452
455
  /**
453
- * Returns all commission percentages by Nameshift subtype for the account.
456
+ * Returns Nameshift commission percentages and schedules for the account.
454
457
  * Get Nameshift commissions
455
458
  */
456
459
  getAccountNameshiftCommissionsRaw(requestParameters: AdminApiGetAccountNameshiftCommissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountNameshiftCommissionByTypeDto>>;
457
460
  /**
458
- * Returns all commission percentages by Nameshift subtype for the account.
461
+ * Returns Nameshift commission percentages and schedules for the account.
459
462
  * Get Nameshift commissions
460
463
  */
461
464
  getAccountNameshiftCommissions(requestParameters: AdminApiGetAccountNameshiftCommissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountNameshiftCommissionByTypeDto>;
@@ -829,6 +832,16 @@ export declare class AdminApi extends runtime.BaseAPI {
829
832
  * Remove domain lock
830
833
  */
831
834
  removeDomainLock(requestParameters: AdminApiRemoveDomainLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
835
+ /**
836
+ * Evaluates the commission percentage for a given scenario without persisting any changes.
837
+ * Simulate commission percentage
838
+ */
839
+ simulateCommissionRaw(requestParameters: AdminApiSimulateCommissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CommissionSimulationResultDto>>;
840
+ /**
841
+ * Evaluates the commission percentage for a given scenario without persisting any changes.
842
+ * Simulate commission percentage
843
+ */
844
+ simulateCommission(requestParameters: AdminApiSimulateCommissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CommissionSimulationResultDto>;
832
845
  /**
833
846
  * Triggers a synchronization of account metrics and statistics.
834
847
  * Sync account statistics
@@ -916,7 +916,7 @@ var AdminApi = /** @class */ (function (_super) {
916
916
  });
917
917
  };
918
918
  /**
919
- * Returns all commission percentages by Nameshift subtype for the account.
919
+ * Returns Nameshift commission percentages and schedules for the account.
920
920
  * Get Nameshift commissions
921
921
  */
922
922
  AdminApi.prototype.getAccountNameshiftCommissionsRaw = function (requestParameters, initOverrides) {
@@ -953,7 +953,7 @@ var AdminApi = /** @class */ (function (_super) {
953
953
  });
954
954
  };
955
955
  /**
956
- * Returns all commission percentages by Nameshift subtype for the account.
956
+ * Returns Nameshift commission percentages and schedules for the account.
957
957
  * Get Nameshift commissions
958
958
  */
959
959
  AdminApi.prototype.getAccountNameshiftCommissions = function (requestParameters, initOverrides) {
@@ -3214,6 +3214,63 @@ var AdminApi = /** @class */ (function (_super) {
3214
3214
  });
3215
3215
  });
3216
3216
  };
3217
+ /**
3218
+ * Evaluates the commission percentage for a given scenario without persisting any changes.
3219
+ * Simulate commission percentage
3220
+ */
3221
+ AdminApi.prototype.simulateCommissionRaw = function (requestParameters, initOverrides) {
3222
+ return __awaiter(this, void 0, void 0, function () {
3223
+ var queryParameters, headerParameters, token, tokenString, response;
3224
+ return __generator(this, function (_a) {
3225
+ switch (_a.label) {
3226
+ case 0:
3227
+ if (requestParameters['simulateCommissionInput'] == null) {
3228
+ throw new runtime.RequiredError('simulateCommissionInput', 'Required parameter "simulateCommissionInput" was null or undefined when calling simulateCommission().');
3229
+ }
3230
+ queryParameters = {};
3231
+ headerParameters = {};
3232
+ headerParameters['Content-Type'] = 'application/json';
3233
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
3234
+ token = this.configuration.accessToken;
3235
+ return [4 /*yield*/, token("bearer", [])];
3236
+ case 1:
3237
+ tokenString = _a.sent();
3238
+ if (tokenString) {
3239
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
3240
+ }
3241
+ _a.label = 2;
3242
+ case 2: return [4 /*yield*/, this.request({
3243
+ path: "/admin/commissions/simulate",
3244
+ method: 'POST',
3245
+ headers: headerParameters,
3246
+ query: queryParameters,
3247
+ body: (0, index_1.SimulateCommissionInputToJSON)(requestParameters['simulateCommissionInput']),
3248
+ }, initOverrides)];
3249
+ case 3:
3250
+ response = _a.sent();
3251
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CommissionSimulationResultDtoFromJSON)(jsonValue); })];
3252
+ }
3253
+ });
3254
+ });
3255
+ };
3256
+ /**
3257
+ * Evaluates the commission percentage for a given scenario without persisting any changes.
3258
+ * Simulate commission percentage
3259
+ */
3260
+ AdminApi.prototype.simulateCommission = function (requestParameters, initOverrides) {
3261
+ return __awaiter(this, void 0, void 0, function () {
3262
+ var response;
3263
+ return __generator(this, function (_a) {
3264
+ switch (_a.label) {
3265
+ case 0: return [4 /*yield*/, this.simulateCommissionRaw(requestParameters, initOverrides)];
3266
+ case 1:
3267
+ response = _a.sent();
3268
+ return [4 /*yield*/, response.value()];
3269
+ case 2: return [2 /*return*/, _a.sent()];
3270
+ }
3271
+ });
3272
+ });
3273
+ };
3217
3274
  /**
3218
3275
  * Triggers a synchronization of account metrics and statistics.
3219
3276
  * Sync account statistics
@@ -0,0 +1,71 @@
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 { PopularCategoryDto, PublicDomainDto, PublicSaleDto } from '../models/index';
14
+ export interface MarketApiListPopularCategoriesRequest {
15
+ limit?: number;
16
+ }
17
+ export interface MarketApiListRecentSalesRequest {
18
+ limit?: number;
19
+ }
20
+ export interface MarketApiListShowcaseDomainsRequest {
21
+ limit?: number;
22
+ }
23
+ export interface MarketApiListTopSalesRequest {
24
+ limit?: number;
25
+ months?: number;
26
+ }
27
+ /**
28
+ *
29
+ */
30
+ export declare class MarketApi extends runtime.BaseAPI {
31
+ /**
32
+ * Returns the categories with the most linked domains, most popular first.
33
+ * List popular domain categories
34
+ */
35
+ listPopularCategoriesRaw(requestParameters: MarketApiListPopularCategoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PopularCategoryDto>>>;
36
+ /**
37
+ * Returns the categories with the most linked domains, most popular first.
38
+ * List popular domain categories
39
+ */
40
+ listPopularCategories(requestParameters?: MarketApiListPopularCategoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PopularCategoryDto>>;
41
+ /**
42
+ * Returns the latest sales on the platform (buy-now and subscription starts), newest first.
43
+ * List recent sales
44
+ */
45
+ listRecentSalesRaw(requestParameters: MarketApiListRecentSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicSaleDto>>>;
46
+ /**
47
+ * Returns the latest sales on the platform (buy-now and subscription starts), newest first.
48
+ * List recent sales
49
+ */
50
+ listRecentSales(requestParameters?: MarketApiListRecentSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicSaleDto>>;
51
+ /**
52
+ * Returns a showcase of listed domains: the public catalogue in its default ranking (domain authority).
53
+ * List showcase domains
54
+ */
55
+ listShowcaseDomainsRaw(requestParameters: MarketApiListShowcaseDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicDomainDto>>>;
56
+ /**
57
+ * Returns a showcase of listed domains: the public catalogue in its default ranking (domain authority).
58
+ * List showcase domains
59
+ */
60
+ listShowcaseDomains(requestParameters?: MarketApiListShowcaseDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicDomainDto>>;
61
+ /**
62
+ * Returns the platform’s own highest-priced buy-now sales within the window, ranked by the EUR-normalized ex-VAT total, highest first.
63
+ * List top sales
64
+ */
65
+ listTopSalesRaw(requestParameters: MarketApiListTopSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicSaleDto>>>;
66
+ /**
67
+ * Returns the platform’s own highest-priced buy-now sales within the window, ranked by the EUR-normalized ex-VAT total, highest first.
68
+ * List top sales
69
+ */
70
+ listTopSales(requestParameters?: MarketApiListTopSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicSaleDto>>;
71
+ }
@@ -0,0 +1,299 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.MarketApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var MarketApi = /** @class */ (function (_super) {
74
+ __extends(MarketApi, _super);
75
+ function MarketApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Returns the categories with the most linked domains, most popular first.
80
+ * List popular domain categories
81
+ */
82
+ MarketApi.prototype.listPopularCategoriesRaw = function (requestParameters, initOverrides) {
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ var queryParameters, headerParameters, _a, _b, response;
85
+ return __generator(this, function (_c) {
86
+ switch (_c.label) {
87
+ case 0:
88
+ queryParameters = {};
89
+ if (requestParameters['limit'] != null) {
90
+ queryParameters['limit'] = requestParameters['limit'];
91
+ }
92
+ headerParameters = {};
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: return [4 /*yield*/, this.request({
101
+ path: "/market/categories/popular",
102
+ method: 'GET',
103
+ headers: headerParameters,
104
+ query: queryParameters,
105
+ }, initOverrides)];
106
+ case 3:
107
+ response = _c.sent();
108
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.PopularCategoryDtoFromJSON); })];
109
+ }
110
+ });
111
+ });
112
+ };
113
+ /**
114
+ * Returns the categories with the most linked domains, most popular first.
115
+ * List popular domain categories
116
+ */
117
+ MarketApi.prototype.listPopularCategories = function () {
118
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
119
+ var response;
120
+ if (requestParameters === void 0) { requestParameters = {}; }
121
+ return __generator(this, function (_a) {
122
+ switch (_a.label) {
123
+ case 0: return [4 /*yield*/, this.listPopularCategoriesRaw(requestParameters, initOverrides)];
124
+ case 1:
125
+ response = _a.sent();
126
+ return [4 /*yield*/, response.value()];
127
+ case 2: return [2 /*return*/, _a.sent()];
128
+ }
129
+ });
130
+ });
131
+ };
132
+ /**
133
+ * Returns the latest sales on the platform (buy-now and subscription starts), newest first.
134
+ * List recent sales
135
+ */
136
+ MarketApi.prototype.listRecentSalesRaw = function (requestParameters, initOverrides) {
137
+ return __awaiter(this, void 0, void 0, function () {
138
+ var queryParameters, headerParameters, _a, _b, response;
139
+ return __generator(this, function (_c) {
140
+ switch (_c.label) {
141
+ case 0:
142
+ queryParameters = {};
143
+ if (requestParameters['limit'] != null) {
144
+ queryParameters['limit'] = requestParameters['limit'];
145
+ }
146
+ headerParameters = {};
147
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
148
+ _a = headerParameters;
149
+ _b = "apikey";
150
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
151
+ case 1:
152
+ _a[_b] = _c.sent(); // api_key authentication
153
+ _c.label = 2;
154
+ case 2: return [4 /*yield*/, this.request({
155
+ path: "/market/sales/recent",
156
+ method: 'GET',
157
+ headers: headerParameters,
158
+ query: queryParameters,
159
+ }, initOverrides)];
160
+ case 3:
161
+ response = _c.sent();
162
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.PublicSaleDtoFromJSON); })];
163
+ }
164
+ });
165
+ });
166
+ };
167
+ /**
168
+ * Returns the latest sales on the platform (buy-now and subscription starts), newest first.
169
+ * List recent sales
170
+ */
171
+ MarketApi.prototype.listRecentSales = function () {
172
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
173
+ var response;
174
+ if (requestParameters === void 0) { requestParameters = {}; }
175
+ return __generator(this, function (_a) {
176
+ switch (_a.label) {
177
+ case 0: return [4 /*yield*/, this.listRecentSalesRaw(requestParameters, initOverrides)];
178
+ case 1:
179
+ response = _a.sent();
180
+ return [4 /*yield*/, response.value()];
181
+ case 2: return [2 /*return*/, _a.sent()];
182
+ }
183
+ });
184
+ });
185
+ };
186
+ /**
187
+ * Returns a showcase of listed domains: the public catalogue in its default ranking (domain authority).
188
+ * List showcase domains
189
+ */
190
+ MarketApi.prototype.listShowcaseDomainsRaw = function (requestParameters, initOverrides) {
191
+ return __awaiter(this, void 0, void 0, function () {
192
+ var queryParameters, headerParameters, _a, _b, response;
193
+ return __generator(this, function (_c) {
194
+ switch (_c.label) {
195
+ case 0:
196
+ queryParameters = {};
197
+ if (requestParameters['limit'] != null) {
198
+ queryParameters['limit'] = requestParameters['limit'];
199
+ }
200
+ headerParameters = {};
201
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
202
+ _a = headerParameters;
203
+ _b = "apikey";
204
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
205
+ case 1:
206
+ _a[_b] = _c.sent(); // api_key authentication
207
+ _c.label = 2;
208
+ case 2: return [4 /*yield*/, this.request({
209
+ path: "/market/showcase",
210
+ method: 'GET',
211
+ headers: headerParameters,
212
+ query: queryParameters,
213
+ }, initOverrides)];
214
+ case 3:
215
+ response = _c.sent();
216
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.PublicDomainDtoFromJSON); })];
217
+ }
218
+ });
219
+ });
220
+ };
221
+ /**
222
+ * Returns a showcase of listed domains: the public catalogue in its default ranking (domain authority).
223
+ * List showcase domains
224
+ */
225
+ MarketApi.prototype.listShowcaseDomains = function () {
226
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
227
+ var response;
228
+ if (requestParameters === void 0) { requestParameters = {}; }
229
+ return __generator(this, function (_a) {
230
+ switch (_a.label) {
231
+ case 0: return [4 /*yield*/, this.listShowcaseDomainsRaw(requestParameters, initOverrides)];
232
+ case 1:
233
+ response = _a.sent();
234
+ return [4 /*yield*/, response.value()];
235
+ case 2: return [2 /*return*/, _a.sent()];
236
+ }
237
+ });
238
+ });
239
+ };
240
+ /**
241
+ * Returns the platform’s own highest-priced buy-now sales within the window, ranked by the EUR-normalized ex-VAT total, highest first.
242
+ * List top sales
243
+ */
244
+ MarketApi.prototype.listTopSalesRaw = function (requestParameters, initOverrides) {
245
+ return __awaiter(this, void 0, void 0, function () {
246
+ var queryParameters, headerParameters, _a, _b, response;
247
+ return __generator(this, function (_c) {
248
+ switch (_c.label) {
249
+ case 0:
250
+ queryParameters = {};
251
+ if (requestParameters['limit'] != null) {
252
+ queryParameters['limit'] = requestParameters['limit'];
253
+ }
254
+ if (requestParameters['months'] != null) {
255
+ queryParameters['months'] = requestParameters['months'];
256
+ }
257
+ headerParameters = {};
258
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
259
+ _a = headerParameters;
260
+ _b = "apikey";
261
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
262
+ case 1:
263
+ _a[_b] = _c.sent(); // api_key authentication
264
+ _c.label = 2;
265
+ case 2: return [4 /*yield*/, this.request({
266
+ path: "/market/sales/top",
267
+ method: 'GET',
268
+ headers: headerParameters,
269
+ query: queryParameters,
270
+ }, initOverrides)];
271
+ case 3:
272
+ response = _c.sent();
273
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.PublicSaleDtoFromJSON); })];
274
+ }
275
+ });
276
+ });
277
+ };
278
+ /**
279
+ * Returns the platform’s own highest-priced buy-now sales within the window, ranked by the EUR-normalized ex-VAT total, highest first.
280
+ * List top sales
281
+ */
282
+ MarketApi.prototype.listTopSales = function () {
283
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
284
+ var response;
285
+ if (requestParameters === void 0) { requestParameters = {}; }
286
+ return __generator(this, function (_a) {
287
+ switch (_a.label) {
288
+ case 0: return [4 /*yield*/, this.listTopSalesRaw(requestParameters, initOverrides)];
289
+ case 1:
290
+ response = _a.sent();
291
+ return [4 /*yield*/, response.value()];
292
+ case 2: return [2 /*return*/, _a.sent()];
293
+ }
294
+ });
295
+ });
296
+ };
297
+ return MarketApi;
298
+ }(runtime.BaseAPI));
299
+ exports.MarketApi = MarketApi;
@@ -15,6 +15,7 @@ export * from './EppApi';
15
15
  export * from './InvoicesApi';
16
16
  export * from './LeadsApi';
17
17
  export * from './LeadsPublicApi';
18
+ export * from './MarketApi';
18
19
  export * from './MarketingApi';
19
20
  export * from './NotificationsApi';
20
21
  export * from './OrdersPublicApi';
@@ -33,6 +33,7 @@ __exportStar(require("./EppApi"), exports);
33
33
  __exportStar(require("./InvoicesApi"), exports);
34
34
  __exportStar(require("./LeadsApi"), exports);
35
35
  __exportStar(require("./LeadsPublicApi"), exports);
36
+ __exportStar(require("./MarketApi"), exports);
36
37
  __exportStar(require("./MarketingApi"), exports);
37
38
  __exportStar(require("./NotificationsApi"), exports);
38
39
  __exportStar(require("./OrdersPublicApi"), exports);
@@ -22,6 +22,12 @@ export interface AccountNameshiftCommissionBySubtypeDto {
22
22
  * @memberof AccountNameshiftCommissionBySubtypeDto
23
23
  */
24
24
  subtype: AccountNameshiftCommissionBySubtypeDtoSubtypeEnum;
25
+ /**
26
+ * Domain extensions this current commission applies to. Null means all other extensions.
27
+ * @type {Array<string>}
28
+ * @memberof AccountNameshiftCommissionBySubtypeDto
29
+ */
30
+ tlds: Array<string> | null;
25
31
  /**
26
32
  * Effective commission percentage.
27
33
  * @type {number}