@randock/nameshift-api-client 0.0.446 → 0.0.448

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 (42) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +26 -0
  4. package/dist/apis/AdminApi.js +106 -0
  5. package/dist/apis/MarketApi.d.ts +71 -0
  6. package/dist/apis/MarketApi.js +299 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AdminDomainListItemDto.d.ts +6 -0
  10. package/dist/models/AdminDomainListItemDto.js +4 -0
  11. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +6 -0
  12. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +4 -0
  13. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
  14. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
  15. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +6 -0
  16. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +4 -0
  17. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +6 -0
  18. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +4 -0
  19. package/dist/models/LeadDto.d.ts +6 -0
  20. package/dist/models/LeadDto.js +4 -0
  21. package/dist/models/ListLeadsResultItem.d.ts +6 -0
  22. package/dist/models/ListLeadsResultItem.js +4 -0
  23. package/dist/models/PopularCategoryDto.d.ts +44 -0
  24. package/dist/models/PopularCategoryDto.js +59 -0
  25. package/dist/models/SellerLeadDetails.d.ts +6 -0
  26. package/dist/models/SellerLeadDetails.js +4 -0
  27. package/dist/models/index.d.ts +1 -0
  28. package/dist/models/index.js +1 -0
  29. package/package.json +1 -1
  30. package/src/apis/AdminApi.ts +92 -0
  31. package/src/apis/MarketApi.ts +204 -0
  32. package/src/apis/index.ts +1 -0
  33. package/src/models/AdminDomainListItemDto.ts +9 -0
  34. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +9 -0
  35. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
  36. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +9 -0
  37. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +9 -0
  38. package/src/models/LeadDto.ts +9 -0
  39. package/src/models/ListLeadsResultItem.ts +9 -0
  40. package/src/models/PopularCategoryDto.ts +84 -0
  41. package/src/models/SellerLeadDetails.ts +9 -0
  42. package/src/models/index.ts +1 -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
@@ -390,6 +391,7 @@ src/models/PartnerAuctionDto.ts
390
391
  src/models/PartnerDomainFindDto.ts
391
392
  src/models/PayAccountPaymentInput.ts
392
393
  src/models/PaymentMethodsStatsDto.ts
394
+ src/models/PopularCategoryDto.ts
393
395
  src/models/PrivateAccountGetMeResponse.ts
394
396
  src/models/PublicAccountInformationDto.ts
395
397
  src/models/PublicAuctionListItemDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.446
1
+ ## @randock/nameshift-api-client@0.0.448
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.446 --save
39
+ npm install @randock/nameshift-api-client@0.0.448 --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
- a1dcfbe4b05c5cb5a346510c36fa7ad05a2ae91367f7d167c16e664e4d2595367e8e4936ce43fbcd99bee8278ac598be
47
+ 488272701c73a444b279b58c7c8783ee5c4dcf21f2bb6eb821d4943e3b267d359abaa3ba65e920aca8d49177125d90de
@@ -264,6 +264,9 @@ export interface AdminApiRemoveDomainLockRequest {
264
264
  domainId: string;
265
265
  lockId: string;
266
266
  }
267
+ export interface AdminApiShowcaseDomainRequest {
268
+ domainId: string;
269
+ }
267
270
  export interface AdminApiSimulateCommissionRequest {
268
271
  simulateCommissionInput: SimulateCommissionInput;
269
272
  }
@@ -276,6 +279,9 @@ export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
276
279
  export interface AdminApiSyncOwnedDomainFromRegistryRequest {
277
280
  id: string;
278
281
  }
282
+ export interface AdminApiUnshowcaseDomainRequest {
283
+ domainId: string;
284
+ }
279
285
  export interface AdminApiUpdateAccountChallengeRewardBalancePointsRequest {
280
286
  accountId: string;
281
287
  updateAccountChallengeRewardBalanceInput: UpdateAccountChallengeRewardBalanceInput;
@@ -832,6 +838,16 @@ export declare class AdminApi extends runtime.BaseAPI {
832
838
  * Remove domain lock
833
839
  */
834
840
  removeDomainLock(requestParameters: AdminApiRemoveDomainLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
841
+ /**
842
+ * Picks the domain for the public showcase on the website. Idempotent: showcasing an already showcased domain keeps its original position in the showcase.
843
+ * Showcase domain
844
+ */
845
+ showcaseDomainRaw(requestParameters: AdminApiShowcaseDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
846
+ /**
847
+ * Picks the domain for the public showcase on the website. Idempotent: showcasing an already showcased domain keeps its original position in the showcase.
848
+ * Showcase domain
849
+ */
850
+ showcaseDomain(requestParameters: AdminApiShowcaseDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
835
851
  /**
836
852
  * Evaluates the commission percentage for a given scenario without persisting any changes.
837
853
  * Simulate commission percentage
@@ -872,6 +888,16 @@ export declare class AdminApi extends runtime.BaseAPI {
872
888
  * Sync owned domain from registry
873
889
  */
874
890
  syncOwnedDomainFromRegistry(requestParameters: AdminApiSyncOwnedDomainFromRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
891
+ /**
892
+ * Drops the domain from the public showcase on the website. Idempotent.
893
+ * Remove domain from the showcase
894
+ */
895
+ unshowcaseDomainRaw(requestParameters: AdminApiUnshowcaseDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
896
+ /**
897
+ * Drops the domain from the public showcase on the website. Idempotent.
898
+ * Remove domain from the showcase
899
+ */
900
+ unshowcaseDomain(requestParameters: AdminApiUnshowcaseDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
875
901
  /**
876
902
  * Sets the absolute challenge reward points balance for an account.
877
903
  * Update challenge reward balance
@@ -3214,6 +3214,59 @@ var AdminApi = /** @class */ (function (_super) {
3214
3214
  });
3215
3215
  });
3216
3216
  };
3217
+ /**
3218
+ * Picks the domain for the public showcase on the website. Idempotent: showcasing an already showcased domain keeps its original position in the showcase.
3219
+ * Showcase domain
3220
+ */
3221
+ AdminApi.prototype.showcaseDomainRaw = 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['domainId'] == null) {
3228
+ throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling showcaseDomain().');
3229
+ }
3230
+ queryParameters = {};
3231
+ headerParameters = {};
3232
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
3233
+ token = this.configuration.accessToken;
3234
+ return [4 /*yield*/, token("bearer", [])];
3235
+ case 1:
3236
+ tokenString = _a.sent();
3237
+ if (tokenString) {
3238
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
3239
+ }
3240
+ _a.label = 2;
3241
+ case 2: return [4 /*yield*/, this.request({
3242
+ path: "/admin/domains/{domainId}/showcase".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
3243
+ method: 'PUT',
3244
+ headers: headerParameters,
3245
+ query: queryParameters,
3246
+ }, initOverrides)];
3247
+ case 3:
3248
+ response = _a.sent();
3249
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
3250
+ }
3251
+ });
3252
+ });
3253
+ };
3254
+ /**
3255
+ * Picks the domain for the public showcase on the website. Idempotent: showcasing an already showcased domain keeps its original position in the showcase.
3256
+ * Showcase domain
3257
+ */
3258
+ AdminApi.prototype.showcaseDomain = function (requestParameters, initOverrides) {
3259
+ return __awaiter(this, void 0, void 0, function () {
3260
+ return __generator(this, function (_a) {
3261
+ switch (_a.label) {
3262
+ case 0: return [4 /*yield*/, this.showcaseDomainRaw(requestParameters, initOverrides)];
3263
+ case 1:
3264
+ _a.sent();
3265
+ return [2 /*return*/];
3266
+ }
3267
+ });
3268
+ });
3269
+ };
3217
3270
  /**
3218
3271
  * Evaluates the commission percentage for a given scenario without persisting any changes.
3219
3272
  * Simulate commission percentage
@@ -3430,6 +3483,59 @@ var AdminApi = /** @class */ (function (_super) {
3430
3483
  });
3431
3484
  });
3432
3485
  };
3486
+ /**
3487
+ * Drops the domain from the public showcase on the website. Idempotent.
3488
+ * Remove domain from the showcase
3489
+ */
3490
+ AdminApi.prototype.unshowcaseDomainRaw = function (requestParameters, initOverrides) {
3491
+ return __awaiter(this, void 0, void 0, function () {
3492
+ var queryParameters, headerParameters, token, tokenString, response;
3493
+ return __generator(this, function (_a) {
3494
+ switch (_a.label) {
3495
+ case 0:
3496
+ if (requestParameters['domainId'] == null) {
3497
+ throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling unshowcaseDomain().');
3498
+ }
3499
+ queryParameters = {};
3500
+ headerParameters = {};
3501
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
3502
+ token = this.configuration.accessToken;
3503
+ return [4 /*yield*/, token("bearer", [])];
3504
+ case 1:
3505
+ tokenString = _a.sent();
3506
+ if (tokenString) {
3507
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
3508
+ }
3509
+ _a.label = 2;
3510
+ case 2: return [4 /*yield*/, this.request({
3511
+ path: "/admin/domains/{domainId}/showcase".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
3512
+ method: 'DELETE',
3513
+ headers: headerParameters,
3514
+ query: queryParameters,
3515
+ }, initOverrides)];
3516
+ case 3:
3517
+ response = _a.sent();
3518
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
3519
+ }
3520
+ });
3521
+ });
3522
+ };
3523
+ /**
3524
+ * Drops the domain from the public showcase on the website. Idempotent.
3525
+ * Remove domain from the showcase
3526
+ */
3527
+ AdminApi.prototype.unshowcaseDomain = function (requestParameters, initOverrides) {
3528
+ return __awaiter(this, void 0, void 0, function () {
3529
+ return __generator(this, function (_a) {
3530
+ switch (_a.label) {
3531
+ case 0: return [4 /*yield*/, this.unshowcaseDomainRaw(requestParameters, initOverrides)];
3532
+ case 1:
3533
+ _a.sent();
3534
+ return [2 /*return*/];
3535
+ }
3536
+ });
3537
+ });
3538
+ };
3433
3539
  /**
3434
3540
  * Sets the absolute challenge reward points balance for an account.
3435
3541
  * Update challenge reward balance
@@ -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 the domains an admin picked for the showcase, most recently picked first. Sold and deleted domains are left out; an empty array means nothing is picked.
53
+ * List showcase domains
54
+ */
55
+ listShowcaseDomainsRaw(requestParameters: MarketApiListShowcaseDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicDomainDto>>>;
56
+ /**
57
+ * Returns the domains an admin picked for the showcase, most recently picked first. Sold and deleted domains are left out; an empty array means nothing is picked.
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 the domains an admin picked for the showcase, most recently picked first. Sold and deleted domains are left out; an empty array means nothing is picked.
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 the domains an admin picked for the showcase, most recently picked first. Sold and deleted domains are left out; an empty array means nothing is picked.
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);
@@ -196,6 +196,12 @@ export interface AdminDomainListItemDto {
196
196
  * @memberof AdminDomainListItemDto
197
197
  */
198
198
  lockedUntil: Date | null;
199
+ /**
200
+ * Whether an admin picked this domain for the public showcase on the website.
201
+ * @type {boolean}
202
+ * @memberof AdminDomainListItemDto
203
+ */
204
+ showcased: boolean;
199
205
  /**
200
206
  * Account that owns the domain.
201
207
  * @type {AccountDto}
@@ -99,6 +99,8 @@ function instanceOfAdminDomainListItemDto(value) {
99
99
  return false;
100
100
  if (!('lockedUntil' in value) || value['lockedUntil'] === undefined)
101
101
  return false;
102
+ if (!('showcased' in value) || value['showcased'] === undefined)
103
+ return false;
102
104
  if (!('account' in value) || value['account'] === undefined)
103
105
  return false;
104
106
  if (!('pointsToOurServerReason' in value) || value['pointsToOurServerReason'] === undefined)
@@ -142,6 +144,7 @@ function AdminDomainListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
142
144
  'isDeleteable': json['isDeleteable'],
143
145
  'isLocked': json['isLocked'],
144
146
  'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
147
+ 'showcased': json['showcased'],
145
148
  'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
146
149
  'pointsToOurServerReason': json['pointsToOurServerReason'],
147
150
  };
@@ -184,6 +187,7 @@ function AdminDomainListItemDtoToJSONTyped(value, ignoreDiscriminator) {
184
187
  'isDeleteable': value['isDeleteable'],
185
188
  'isLocked': value['isLocked'],
186
189
  'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
190
+ 'showcased': value['showcased'],
187
191
  'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
188
192
  'pointsToOurServerReason': value['pointsToOurServerReason'],
189
193
  };
@@ -196,6 +196,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
196
196
  * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
197
197
  */
198
198
  lockedUntil: Date | null;
199
+ /**
200
+ * Whether an admin picked this domain for the public showcase on the website.
201
+ * @type {boolean}
202
+ * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
203
+ */
204
+ showcased: boolean;
199
205
  /**
200
206
  * Account that owns the domain.
201
207
  * @type {AccountDto}