@randock/nameshift-api-client 0.0.490 → 0.0.492

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.
@@ -106,6 +106,7 @@ src/models/AdminDashboardStatsDto.ts
106
106
  src/models/AdminDomainAppraisalRequestListItemDto.ts
107
107
  src/models/AdminDomainListItemDto.ts
108
108
  src/models/AdminGetAllDomainTransfers200Response.ts
109
+ src/models/AdminLandingDesignStatsDto.ts
109
110
  src/models/AdminLeadListItemBuyerDto.ts
110
111
  src/models/AdminLeadListItemDomainDto.ts
111
112
  src/models/AdminLeadListItemDto.ts
@@ -345,6 +346,7 @@ src/models/JobDto.ts
345
346
  src/models/JobFailureDto.ts
346
347
  src/models/JobStatus.ts
347
348
  src/models/JobType.ts
349
+ src/models/LandingDesignUsageDto.ts
348
350
  src/models/LandingPageDesignSettingsDto.ts
349
351
  src/models/LandingPageDesignSettingsInput.ts
350
352
  src/models/LandingPageInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.490
1
+ ## @randock/nameshift-api-client@0.0.492
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.490 --save
39
+ npm install @randock/nameshift-api-client@0.0.492 --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
- 380daf7fa7dd0f79d64bd6257b2cfb85160137d343c7cd9bbfbb344522d0f87d737451e68182e97ca33c5faf7bceaf33
47
+ 5b1e45bef11b94ee4ff2796fa861bdb05f3034baa67b8397fa64a227e1d50a4261aa772677e5aae23ccb94f81331a660
@@ -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, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateAccountNoteInput, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAdminDomainAppraisalRequests200Response, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ObjectId, SellerLeadDetails, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
13
+ import type { AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminLandingDesignStatsDto, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateAccountNoteInput, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAdminDomainAppraisalRequests200Response, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ObjectId, SellerLeadDetails, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
14
14
  export interface AdminApiAdminDeleteAuctionRequest {
15
15
  auctionId: string;
16
16
  }
@@ -630,6 +630,16 @@ export declare class AdminApi extends runtime.BaseAPI {
630
630
  * Get domain transfer details
631
631
  */
632
632
  getAdminDomainTransferDetails(requestParameters: AdminApiGetAdminDomainTransferDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTransferDetailsDto>;
633
+ /**
634
+ * Returns how many domains use each landing page design right now, resolving the domain design first and the account one otherwise.
635
+ * Get admin landing design stats
636
+ */
637
+ getAdminLandingDesignStatsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminLandingDesignStatsDto>>;
638
+ /**
639
+ * Returns how many domains use each landing page design right now, resolving the domain design first and the account one otherwise.
640
+ * Get admin landing design stats
641
+ */
642
+ getAdminLandingDesignStats(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminLandingDesignStatsDto>;
633
643
  /**
634
644
  * Returns a lead as the seller sees it, for any account. Read only. Requires admin bearer authentication.
635
645
  * Get lead details
@@ -1498,6 +1498,58 @@ var AdminApi = /** @class */ (function (_super) {
1498
1498
  });
1499
1499
  });
1500
1500
  };
1501
+ /**
1502
+ * Returns how many domains use each landing page design right now, resolving the domain design first and the account one otherwise.
1503
+ * Get admin landing design stats
1504
+ */
1505
+ AdminApi.prototype.getAdminLandingDesignStatsRaw = function (initOverrides) {
1506
+ return __awaiter(this, void 0, void 0, function () {
1507
+ var queryParameters, headerParameters, token, tokenString, response;
1508
+ return __generator(this, function (_a) {
1509
+ switch (_a.label) {
1510
+ case 0:
1511
+ queryParameters = {};
1512
+ headerParameters = {};
1513
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1514
+ token = this.configuration.accessToken;
1515
+ return [4 /*yield*/, token("bearer", [])];
1516
+ case 1:
1517
+ tokenString = _a.sent();
1518
+ if (tokenString) {
1519
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1520
+ }
1521
+ _a.label = 2;
1522
+ case 2: return [4 /*yield*/, this.request({
1523
+ path: "/admin/stats/landing-designs",
1524
+ method: 'GET',
1525
+ headers: headerParameters,
1526
+ query: queryParameters,
1527
+ }, initOverrides)];
1528
+ case 3:
1529
+ response = _a.sent();
1530
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AdminLandingDesignStatsDtoFromJSON)(jsonValue); })];
1531
+ }
1532
+ });
1533
+ });
1534
+ };
1535
+ /**
1536
+ * Returns how many domains use each landing page design right now, resolving the domain design first and the account one otherwise.
1537
+ * Get admin landing design stats
1538
+ */
1539
+ AdminApi.prototype.getAdminLandingDesignStats = function (initOverrides) {
1540
+ return __awaiter(this, void 0, void 0, function () {
1541
+ var response;
1542
+ return __generator(this, function (_a) {
1543
+ switch (_a.label) {
1544
+ case 0: return [4 /*yield*/, this.getAdminLandingDesignStatsRaw(initOverrides)];
1545
+ case 1:
1546
+ response = _a.sent();
1547
+ return [4 /*yield*/, response.value()];
1548
+ case 2: return [2 /*return*/, _a.sent()];
1549
+ }
1550
+ });
1551
+ });
1552
+ };
1501
1553
  /**
1502
1554
  * Returns a lead as the seller sees it, for any account. Read only. Requires admin bearer authentication.
1503
1555
  * Get lead details
@@ -0,0 +1,39 @@
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 type { LandingDesignUsageDto } from './LandingDesignUsageDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AdminLandingDesignStatsDto
17
+ */
18
+ export interface AdminLandingDesignStatsDto {
19
+ /**
20
+ * Total number of live (not sold, not deleted) domains
21
+ * @type {number}
22
+ * @memberof AdminLandingDesignStatsDto
23
+ */
24
+ totalDomains: number;
25
+ /**
26
+ * Domains per landing page design, every design included, most used first
27
+ * @type {Array<LandingDesignUsageDto>}
28
+ * @memberof AdminLandingDesignStatsDto
29
+ */
30
+ designs: Array<LandingDesignUsageDto>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the AdminLandingDesignStatsDto interface.
34
+ */
35
+ export declare function instanceOfAdminLandingDesignStatsDto(value: object): value is AdminLandingDesignStatsDto;
36
+ export declare function AdminLandingDesignStatsDtoFromJSON(json: any): AdminLandingDesignStatsDto;
37
+ export declare function AdminLandingDesignStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminLandingDesignStatsDto;
38
+ export declare function AdminLandingDesignStatsDtoToJSON(json: any): AdminLandingDesignStatsDto;
39
+ export declare function AdminLandingDesignStatsDtoToJSONTyped(value?: AdminLandingDesignStatsDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAdminLandingDesignStatsDto = instanceOfAdminLandingDesignStatsDto;
17
+ exports.AdminLandingDesignStatsDtoFromJSON = AdminLandingDesignStatsDtoFromJSON;
18
+ exports.AdminLandingDesignStatsDtoFromJSONTyped = AdminLandingDesignStatsDtoFromJSONTyped;
19
+ exports.AdminLandingDesignStatsDtoToJSON = AdminLandingDesignStatsDtoToJSON;
20
+ exports.AdminLandingDesignStatsDtoToJSONTyped = AdminLandingDesignStatsDtoToJSONTyped;
21
+ var LandingDesignUsageDto_1 = require("./LandingDesignUsageDto");
22
+ /**
23
+ * Check if a given object implements the AdminLandingDesignStatsDto interface.
24
+ */
25
+ function instanceOfAdminLandingDesignStatsDto(value) {
26
+ if (!('totalDomains' in value) || value['totalDomains'] === undefined)
27
+ return false;
28
+ if (!('designs' in value) || value['designs'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function AdminLandingDesignStatsDtoFromJSON(json) {
33
+ return AdminLandingDesignStatsDtoFromJSONTyped(json, false);
34
+ }
35
+ function AdminLandingDesignStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'totalDomains': json['totalDomains'],
41
+ 'designs': (json['designs'].map(LandingDesignUsageDto_1.LandingDesignUsageDtoFromJSON)),
42
+ };
43
+ }
44
+ function AdminLandingDesignStatsDtoToJSON(json) {
45
+ return AdminLandingDesignStatsDtoToJSONTyped(json, false);
46
+ }
47
+ function AdminLandingDesignStatsDtoToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'totalDomains': value['totalDomains'],
54
+ 'designs': (value['designs'].map(LandingDesignUsageDto_1.LandingDesignUsageDtoToJSON)),
55
+ };
56
+ }
@@ -0,0 +1,47 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface LandingDesignUsageDto
16
+ */
17
+ export interface LandingDesignUsageDto {
18
+ /**
19
+ * Landing page design
20
+ * @type {string}
21
+ * @memberof LandingDesignUsageDto
22
+ */
23
+ design: LandingDesignUsageDtoDesignEnum;
24
+ /**
25
+ * Number of live (not sold, not deleted) domains whose effective design (own, else the account one) is this design
26
+ * @type {number}
27
+ * @memberof LandingDesignUsageDto
28
+ */
29
+ domains: number;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const LandingDesignUsageDtoDesignEnum: {
35
+ readonly ORIGINAL: "original";
36
+ readonly MODERN: "modern";
37
+ readonly MINIMAL: "minimal";
38
+ };
39
+ export type LandingDesignUsageDtoDesignEnum = typeof LandingDesignUsageDtoDesignEnum[keyof typeof LandingDesignUsageDtoDesignEnum];
40
+ /**
41
+ * Check if a given object implements the LandingDesignUsageDto interface.
42
+ */
43
+ export declare function instanceOfLandingDesignUsageDto(value: object): value is LandingDesignUsageDto;
44
+ export declare function LandingDesignUsageDtoFromJSON(json: any): LandingDesignUsageDto;
45
+ export declare function LandingDesignUsageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LandingDesignUsageDto;
46
+ export declare function LandingDesignUsageDtoToJSON(json: any): LandingDesignUsageDto;
47
+ export declare function LandingDesignUsageDtoToJSONTyped(value?: LandingDesignUsageDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.LandingDesignUsageDtoDesignEnum = void 0;
17
+ exports.instanceOfLandingDesignUsageDto = instanceOfLandingDesignUsageDto;
18
+ exports.LandingDesignUsageDtoFromJSON = LandingDesignUsageDtoFromJSON;
19
+ exports.LandingDesignUsageDtoFromJSONTyped = LandingDesignUsageDtoFromJSONTyped;
20
+ exports.LandingDesignUsageDtoToJSON = LandingDesignUsageDtoToJSON;
21
+ exports.LandingDesignUsageDtoToJSONTyped = LandingDesignUsageDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.LandingDesignUsageDtoDesignEnum = {
26
+ ORIGINAL: 'original',
27
+ MODERN: 'modern',
28
+ MINIMAL: 'minimal'
29
+ };
30
+ /**
31
+ * Check if a given object implements the LandingDesignUsageDto interface.
32
+ */
33
+ function instanceOfLandingDesignUsageDto(value) {
34
+ if (!('design' in value) || value['design'] === undefined)
35
+ return false;
36
+ if (!('domains' in value) || value['domains'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function LandingDesignUsageDtoFromJSON(json) {
41
+ return LandingDesignUsageDtoFromJSONTyped(json, false);
42
+ }
43
+ function LandingDesignUsageDtoFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'design': json['design'],
49
+ 'domains': json['domains'],
50
+ };
51
+ }
52
+ function LandingDesignUsageDtoToJSON(json) {
53
+ return LandingDesignUsageDtoToJSONTyped(json, false);
54
+ }
55
+ function LandingDesignUsageDtoToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'design': value['design'],
62
+ 'domains': value['domains'],
63
+ };
64
+ }
@@ -63,6 +63,7 @@ export * from './AdminDashboardStatsDto';
63
63
  export * from './AdminDomainAppraisalRequestListItemDto';
64
64
  export * from './AdminDomainListItemDto';
65
65
  export * from './AdminGetAllDomainTransfers200Response';
66
+ export * from './AdminLandingDesignStatsDto';
66
67
  export * from './AdminLeadListItemBuyerDto';
67
68
  export * from './AdminLeadListItemDomainDto';
68
69
  export * from './AdminLeadListItemDto';
@@ -302,6 +303,7 @@ export * from './JobDto';
302
303
  export * from './JobFailureDto';
303
304
  export * from './JobStatus';
304
305
  export * from './JobType';
306
+ export * from './LandingDesignUsageDto';
305
307
  export * from './LandingPageDesignSettingsDto';
306
308
  export * from './LandingPageDesignSettingsInput';
307
309
  export * from './LandingPageInput';
@@ -81,6 +81,7 @@ __exportStar(require("./AdminDashboardStatsDto"), exports);
81
81
  __exportStar(require("./AdminDomainAppraisalRequestListItemDto"), exports);
82
82
  __exportStar(require("./AdminDomainListItemDto"), exports);
83
83
  __exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
84
+ __exportStar(require("./AdminLandingDesignStatsDto"), exports);
84
85
  __exportStar(require("./AdminLeadListItemBuyerDto"), exports);
85
86
  __exportStar(require("./AdminLeadListItemDomainDto"), exports);
86
87
  __exportStar(require("./AdminLeadListItemDto"), exports);
@@ -320,6 +321,7 @@ __exportStar(require("./JobDto"), exports);
320
321
  __exportStar(require("./JobFailureDto"), exports);
321
322
  __exportStar(require("./JobStatus"), exports);
322
323
  __exportStar(require("./JobType"), exports);
324
+ __exportStar(require("./LandingDesignUsageDto"), exports);
323
325
  __exportStar(require("./LandingPageDesignSettingsDto"), exports);
324
326
  __exportStar(require("./LandingPageDesignSettingsInput"), exports);
325
327
  __exportStar(require("./LandingPageInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.490",
3
+ "version": "0.0.492",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -26,6 +26,7 @@ import type {
26
26
  AdminCompanyStatsDto,
27
27
  AdminDashboardStatsDto,
28
28
  AdminGetAllDomainTransfers200Response,
29
+ AdminLandingDesignStatsDto,
29
30
  AdminMarketplaceDto,
30
31
  BadRequestException,
31
32
  BulkCommissionActionsInput,
@@ -105,6 +106,8 @@ import {
105
106
  AdminDashboardStatsDtoToJSON,
106
107
  AdminGetAllDomainTransfers200ResponseFromJSON,
107
108
  AdminGetAllDomainTransfers200ResponseToJSON,
109
+ AdminLandingDesignStatsDtoFromJSON,
110
+ AdminLandingDesignStatsDtoToJSON,
108
111
  AdminMarketplaceDtoFromJSON,
109
112
  AdminMarketplaceDtoToJSON,
110
113
  BadRequestExceptionFromJSON,
@@ -1811,6 +1814,42 @@ export class AdminApi extends runtime.BaseAPI {
1811
1814
  return await response.value();
1812
1815
  }
1813
1816
 
1817
+ /**
1818
+ * Returns how many domains use each landing page design right now, resolving the domain design first and the account one otherwise.
1819
+ * Get admin landing design stats
1820
+ */
1821
+ async getAdminLandingDesignStatsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminLandingDesignStatsDto>> {
1822
+ const queryParameters: any = {};
1823
+
1824
+ const headerParameters: runtime.HTTPHeaders = {};
1825
+
1826
+ if (this.configuration && this.configuration.accessToken) {
1827
+ const token = this.configuration.accessToken;
1828
+ const tokenString = await token("bearer", []);
1829
+
1830
+ if (tokenString) {
1831
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1832
+ }
1833
+ }
1834
+ const response = await this.request({
1835
+ path: `/admin/stats/landing-designs`,
1836
+ method: 'GET',
1837
+ headers: headerParameters,
1838
+ query: queryParameters,
1839
+ }, initOverrides);
1840
+
1841
+ return new runtime.JSONApiResponse(response, (jsonValue) => AdminLandingDesignStatsDtoFromJSON(jsonValue));
1842
+ }
1843
+
1844
+ /**
1845
+ * Returns how many domains use each landing page design right now, resolving the domain design first and the account one otherwise.
1846
+ * Get admin landing design stats
1847
+ */
1848
+ async getAdminLandingDesignStats(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminLandingDesignStatsDto> {
1849
+ const response = await this.getAdminLandingDesignStatsRaw(initOverrides);
1850
+ return await response.value();
1851
+ }
1852
+
1814
1853
  /**
1815
1854
  * Returns a lead as the seller sees it, for any account. Read only. Requires admin bearer authentication.
1816
1855
  * Get lead details
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { LandingDesignUsageDto } from './LandingDesignUsageDto';
17
+ import {
18
+ LandingDesignUsageDtoFromJSON,
19
+ LandingDesignUsageDtoFromJSONTyped,
20
+ LandingDesignUsageDtoToJSON,
21
+ LandingDesignUsageDtoToJSONTyped,
22
+ } from './LandingDesignUsageDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AdminLandingDesignStatsDto
28
+ */
29
+ export interface AdminLandingDesignStatsDto {
30
+ /**
31
+ * Total number of live (not sold, not deleted) domains
32
+ * @type {number}
33
+ * @memberof AdminLandingDesignStatsDto
34
+ */
35
+ totalDomains: number;
36
+ /**
37
+ * Domains per landing page design, every design included, most used first
38
+ * @type {Array<LandingDesignUsageDto>}
39
+ * @memberof AdminLandingDesignStatsDto
40
+ */
41
+ designs: Array<LandingDesignUsageDto>;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the AdminLandingDesignStatsDto interface.
46
+ */
47
+ export function instanceOfAdminLandingDesignStatsDto(value: object): value is AdminLandingDesignStatsDto {
48
+ if (!('totalDomains' in value) || value['totalDomains'] === undefined) return false;
49
+ if (!('designs' in value) || value['designs'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function AdminLandingDesignStatsDtoFromJSON(json: any): AdminLandingDesignStatsDto {
54
+ return AdminLandingDesignStatsDtoFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function AdminLandingDesignStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminLandingDesignStatsDto {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'totalDomains': json['totalDomains'],
64
+ 'designs': ((json['designs'] as Array<any>).map(LandingDesignUsageDtoFromJSON)),
65
+ };
66
+ }
67
+
68
+ export function AdminLandingDesignStatsDtoToJSON(json: any): AdminLandingDesignStatsDto {
69
+ return AdminLandingDesignStatsDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function AdminLandingDesignStatsDtoToJSONTyped(value?: AdminLandingDesignStatsDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'totalDomains': value['totalDomains'],
80
+ 'designs': ((value['designs'] as Array<any>).map(LandingDesignUsageDtoToJSON)),
81
+ };
82
+ }
83
+
@@ -0,0 +1,87 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface LandingDesignUsageDto
20
+ */
21
+ export interface LandingDesignUsageDto {
22
+ /**
23
+ * Landing page design
24
+ * @type {string}
25
+ * @memberof LandingDesignUsageDto
26
+ */
27
+ design: LandingDesignUsageDtoDesignEnum;
28
+ /**
29
+ * Number of live (not sold, not deleted) domains whose effective design (own, else the account one) is this design
30
+ * @type {number}
31
+ * @memberof LandingDesignUsageDto
32
+ */
33
+ domains: number;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const LandingDesignUsageDtoDesignEnum = {
41
+ ORIGINAL: 'original',
42
+ MODERN: 'modern',
43
+ MINIMAL: 'minimal'
44
+ } as const;
45
+ export type LandingDesignUsageDtoDesignEnum = typeof LandingDesignUsageDtoDesignEnum[keyof typeof LandingDesignUsageDtoDesignEnum];
46
+
47
+
48
+ /**
49
+ * Check if a given object implements the LandingDesignUsageDto interface.
50
+ */
51
+ export function instanceOfLandingDesignUsageDto(value: object): value is LandingDesignUsageDto {
52
+ if (!('design' in value) || value['design'] === undefined) return false;
53
+ if (!('domains' in value) || value['domains'] === undefined) return false;
54
+ return true;
55
+ }
56
+
57
+ export function LandingDesignUsageDtoFromJSON(json: any): LandingDesignUsageDto {
58
+ return LandingDesignUsageDtoFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function LandingDesignUsageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LandingDesignUsageDto {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'design': json['design'],
68
+ 'domains': json['domains'],
69
+ };
70
+ }
71
+
72
+ export function LandingDesignUsageDtoToJSON(json: any): LandingDesignUsageDto {
73
+ return LandingDesignUsageDtoToJSONTyped(json, false);
74
+ }
75
+
76
+ export function LandingDesignUsageDtoToJSONTyped(value?: LandingDesignUsageDto | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'design': value['design'],
84
+ 'domains': value['domains'],
85
+ };
86
+ }
87
+
@@ -65,6 +65,7 @@ export * from './AdminDashboardStatsDto';
65
65
  export * from './AdminDomainAppraisalRequestListItemDto';
66
66
  export * from './AdminDomainListItemDto';
67
67
  export * from './AdminGetAllDomainTransfers200Response';
68
+ export * from './AdminLandingDesignStatsDto';
68
69
  export * from './AdminLeadListItemBuyerDto';
69
70
  export * from './AdminLeadListItemDomainDto';
70
71
  export * from './AdminLeadListItemDto';
@@ -304,6 +305,7 @@ export * from './JobDto';
304
305
  export * from './JobFailureDto';
305
306
  export * from './JobStatus';
306
307
  export * from './JobType';
308
+ export * from './LandingDesignUsageDto';
307
309
  export * from './LandingPageDesignSettingsDto';
308
310
  export * from './LandingPageDesignSettingsInput';
309
311
  export * from './LandingPageInput';