@randock/nameshift-api-client 0.0.493 → 0.0.494
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +29 -1
- package/dist/apis/AdminApi.js +76 -1
- package/dist/models/LandingDesignAccountDto.d.ts +44 -0
- package/dist/models/LandingDesignAccountDto.js +59 -0
- package/dist/models/LandingDesignUsageDto.d.ts +6 -0
- package/dist/models/LandingDesignUsageDto.js +4 -0
- package/dist/models/ListAdminLandingDesignAccounts200Response.d.ts +47 -0
- package/dist/models/ListAdminLandingDesignAccounts200Response.js +62 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +79 -0
- package/src/models/LandingDesignAccountDto.ts +84 -0
- package/src/models/LandingDesignUsageDto.ts +9 -0
- package/src/models/ListAdminLandingDesignAccounts200Response.ts +106 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -351,6 +351,7 @@ src/models/JobDto.ts
|
|
|
351
351
|
src/models/JobFailureDto.ts
|
|
352
352
|
src/models/JobStatus.ts
|
|
353
353
|
src/models/JobType.ts
|
|
354
|
+
src/models/LandingDesignAccountDto.ts
|
|
354
355
|
src/models/LandingDesignUsageDto.ts
|
|
355
356
|
src/models/LandingPageDesignSettingsDto.ts
|
|
356
357
|
src/models/LandingPageDesignSettingsInput.ts
|
|
@@ -411,6 +412,7 @@ src/models/ListAccountMetricsDto.ts
|
|
|
411
412
|
src/models/ListAccountPortfolioSizeDto.ts
|
|
412
413
|
src/models/ListAccountUserDto.ts
|
|
413
414
|
src/models/ListAccounts200Response.ts
|
|
415
|
+
src/models/ListAdminLandingDesignAccounts200Response.ts
|
|
414
416
|
src/models/ListAdminRelatedLeads200Response.ts
|
|
415
417
|
src/models/ListAuctions200Response.ts
|
|
416
418
|
src/models/ListBankAccounts200Response.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.494
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.494 --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
|
-
|
|
47
|
+
8ee860c785950fa4dcb730787fa978e171c98493a721840fe5c00d30ab5f82aa2969873e627145c16d6ec426a3176960
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountNameshiftCommissionByTypeDto, 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';
|
|
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, ListAdminLandingDesignAccounts200Response, 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
|
}
|
|
@@ -217,6 +217,15 @@ export interface AdminApiListAccountsRequest {
|
|
|
217
217
|
sortBy?: Array<string>;
|
|
218
218
|
filterSearchTerm?: string;
|
|
219
219
|
}
|
|
220
|
+
export interface AdminApiListAdminLandingDesignAccountsRequest {
|
|
221
|
+
design: ListAdminLandingDesignAccountsDesignEnum;
|
|
222
|
+
filter?: {
|
|
223
|
+
[key: string]: string;
|
|
224
|
+
};
|
|
225
|
+
page?: number;
|
|
226
|
+
limit?: number;
|
|
227
|
+
sortBy?: Array<string>;
|
|
228
|
+
}
|
|
220
229
|
export interface AdminApiListAdminLeadMessagesRequest {
|
|
221
230
|
leadId: string;
|
|
222
231
|
}
|
|
@@ -820,6 +829,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
820
829
|
* List accounts
|
|
821
830
|
*/
|
|
822
831
|
listAccounts(requestParameters?: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response>;
|
|
832
|
+
/**
|
|
833
|
+
* Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
|
|
834
|
+
* List the accounts using a landing design
|
|
835
|
+
*/
|
|
836
|
+
listAdminLandingDesignAccountsRaw(requestParameters: AdminApiListAdminLandingDesignAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAdminLandingDesignAccounts200Response>>;
|
|
837
|
+
/**
|
|
838
|
+
* Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
|
|
839
|
+
* List the accounts using a landing design
|
|
840
|
+
*/
|
|
841
|
+
listAdminLandingDesignAccounts(requestParameters: AdminApiListAdminLandingDesignAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAdminLandingDesignAccounts200Response>;
|
|
823
842
|
/**
|
|
824
843
|
* Lists the messages of a lead conversation, for any account. Read only: nothing is marked as read. Requires admin bearer authentication.
|
|
825
844
|
* List lead messages
|
|
@@ -1211,6 +1230,15 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
1211
1230
|
*/
|
|
1212
1231
|
verifyBankAccount(requestParameters: AdminApiVerifyBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1213
1232
|
}
|
|
1233
|
+
/**
|
|
1234
|
+
* @export
|
|
1235
|
+
*/
|
|
1236
|
+
export declare const ListAdminLandingDesignAccountsDesignEnum: {
|
|
1237
|
+
readonly ORIGINAL: "original";
|
|
1238
|
+
readonly MODERN: "modern";
|
|
1239
|
+
readonly MINIMAL: "minimal";
|
|
1240
|
+
};
|
|
1241
|
+
export type ListAdminLandingDesignAccountsDesignEnum = typeof ListAdminLandingDesignAccountsDesignEnum[keyof typeof ListAdminLandingDesignAccountsDesignEnum];
|
|
1214
1242
|
/**
|
|
1215
1243
|
* @export
|
|
1216
1244
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.UpdateMarketplaceCodeEnum = exports.AdminApi = void 0;
|
|
67
|
+
exports.UpdateMarketplaceCodeEnum = exports.ListAdminLandingDesignAccountsDesignEnum = exports.AdminApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -2672,6 +2672,73 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
2672
2672
|
});
|
|
2673
2673
|
});
|
|
2674
2674
|
};
|
|
2675
|
+
/**
|
|
2676
|
+
* Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
|
|
2677
|
+
* List the accounts using a landing design
|
|
2678
|
+
*/
|
|
2679
|
+
AdminApi.prototype.listAdminLandingDesignAccountsRaw = function (requestParameters, initOverrides) {
|
|
2680
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2681
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
2682
|
+
return __generator(this, function (_a) {
|
|
2683
|
+
switch (_a.label) {
|
|
2684
|
+
case 0:
|
|
2685
|
+
if (requestParameters['design'] == null) {
|
|
2686
|
+
throw new runtime.RequiredError('design', 'Required parameter "design" was null or undefined when calling listAdminLandingDesignAccounts().');
|
|
2687
|
+
}
|
|
2688
|
+
queryParameters = {};
|
|
2689
|
+
if (requestParameters['filter'] != null) {
|
|
2690
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
2691
|
+
}
|
|
2692
|
+
if (requestParameters['page'] != null) {
|
|
2693
|
+
queryParameters['page'] = requestParameters['page'];
|
|
2694
|
+
}
|
|
2695
|
+
if (requestParameters['limit'] != null) {
|
|
2696
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
2697
|
+
}
|
|
2698
|
+
if (requestParameters['sortBy'] != null) {
|
|
2699
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
2700
|
+
}
|
|
2701
|
+
headerParameters = {};
|
|
2702
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2703
|
+
token = this.configuration.accessToken;
|
|
2704
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
2705
|
+
case 1:
|
|
2706
|
+
tokenString = _a.sent();
|
|
2707
|
+
if (tokenString) {
|
|
2708
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2709
|
+
}
|
|
2710
|
+
_a.label = 2;
|
|
2711
|
+
case 2: return [4 /*yield*/, this.request({
|
|
2712
|
+
path: "/admin/stats/landing-designs/{design}/accounts".replace("{".concat("design", "}"), encodeURIComponent(String(requestParameters['design']))),
|
|
2713
|
+
method: 'GET',
|
|
2714
|
+
headers: headerParameters,
|
|
2715
|
+
query: queryParameters,
|
|
2716
|
+
}, initOverrides)];
|
|
2717
|
+
case 3:
|
|
2718
|
+
response = _a.sent();
|
|
2719
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListAdminLandingDesignAccounts200ResponseFromJSON)(jsonValue); })];
|
|
2720
|
+
}
|
|
2721
|
+
});
|
|
2722
|
+
});
|
|
2723
|
+
};
|
|
2724
|
+
/**
|
|
2725
|
+
* Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
|
|
2726
|
+
* List the accounts using a landing design
|
|
2727
|
+
*/
|
|
2728
|
+
AdminApi.prototype.listAdminLandingDesignAccounts = function (requestParameters, initOverrides) {
|
|
2729
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2730
|
+
var response;
|
|
2731
|
+
return __generator(this, function (_a) {
|
|
2732
|
+
switch (_a.label) {
|
|
2733
|
+
case 0: return [4 /*yield*/, this.listAdminLandingDesignAccountsRaw(requestParameters, initOverrides)];
|
|
2734
|
+
case 1:
|
|
2735
|
+
response = _a.sent();
|
|
2736
|
+
return [4 /*yield*/, response.value()];
|
|
2737
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
2738
|
+
}
|
|
2739
|
+
});
|
|
2740
|
+
});
|
|
2741
|
+
};
|
|
2675
2742
|
/**
|
|
2676
2743
|
* Lists the messages of a lead conversation, for any account. Read only: nothing is marked as read. Requires admin bearer authentication.
|
|
2677
2744
|
* List lead messages
|
|
@@ -4914,6 +4981,14 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
4914
4981
|
return AdminApi;
|
|
4915
4982
|
}(runtime.BaseAPI));
|
|
4916
4983
|
exports.AdminApi = AdminApi;
|
|
4984
|
+
/**
|
|
4985
|
+
* @export
|
|
4986
|
+
*/
|
|
4987
|
+
exports.ListAdminLandingDesignAccountsDesignEnum = {
|
|
4988
|
+
ORIGINAL: 'original',
|
|
4989
|
+
MODERN: 'modern',
|
|
4990
|
+
MINIMAL: 'minimal'
|
|
4991
|
+
};
|
|
4917
4992
|
/**
|
|
4918
4993
|
* @export
|
|
4919
4994
|
*/
|
|
@@ -0,0 +1,44 @@
|
|
|
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 LandingDesignAccountDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LandingDesignAccountDto {
|
|
18
|
+
/**
|
|
19
|
+
* Account id
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LandingDesignAccountDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Account identifier
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LandingDesignAccountDto
|
|
28
|
+
*/
|
|
29
|
+
identifier: string;
|
|
30
|
+
/**
|
|
31
|
+
* Account name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LandingDesignAccountDto
|
|
34
|
+
*/
|
|
35
|
+
name: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the LandingDesignAccountDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfLandingDesignAccountDto(value: object): value is LandingDesignAccountDto;
|
|
41
|
+
export declare function LandingDesignAccountDtoFromJSON(json: any): LandingDesignAccountDto;
|
|
42
|
+
export declare function LandingDesignAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LandingDesignAccountDto;
|
|
43
|
+
export declare function LandingDesignAccountDtoToJSON(json: any): LandingDesignAccountDto;
|
|
44
|
+
export declare function LandingDesignAccountDtoToJSONTyped(value?: LandingDesignAccountDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfLandingDesignAccountDto = instanceOfLandingDesignAccountDto;
|
|
17
|
+
exports.LandingDesignAccountDtoFromJSON = LandingDesignAccountDtoFromJSON;
|
|
18
|
+
exports.LandingDesignAccountDtoFromJSONTyped = LandingDesignAccountDtoFromJSONTyped;
|
|
19
|
+
exports.LandingDesignAccountDtoToJSON = LandingDesignAccountDtoToJSON;
|
|
20
|
+
exports.LandingDesignAccountDtoToJSONTyped = LandingDesignAccountDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LandingDesignAccountDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLandingDesignAccountDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function LandingDesignAccountDtoFromJSON(json) {
|
|
34
|
+
return LandingDesignAccountDtoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function LandingDesignAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'identifier': json['identifier'],
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function LandingDesignAccountDtoToJSON(json) {
|
|
47
|
+
return LandingDesignAccountDtoToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function LandingDesignAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'identifier': value['identifier'],
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -27,6 +27,12 @@ export interface LandingDesignUsageDto {
|
|
|
27
27
|
* @memberof LandingDesignUsageDto
|
|
28
28
|
*/
|
|
29
29
|
domains: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of live accounts with at least one live domain whose effective design is this design. An account with domains in several designs counts in each of them
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof LandingDesignUsageDto
|
|
34
|
+
*/
|
|
35
|
+
accounts: number;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* @export
|
|
@@ -35,6 +35,8 @@ function instanceOfLandingDesignUsageDto(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('domains' in value) || value['domains'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('accounts' in value) || value['accounts'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
return true;
|
|
39
41
|
}
|
|
40
42
|
function LandingDesignUsageDtoFromJSON(json) {
|
|
@@ -47,6 +49,7 @@ function LandingDesignUsageDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
49
|
return {
|
|
48
50
|
'design': json['design'],
|
|
49
51
|
'domains': json['domains'],
|
|
52
|
+
'accounts': json['accounts'],
|
|
50
53
|
};
|
|
51
54
|
}
|
|
52
55
|
function LandingDesignUsageDtoToJSON(json) {
|
|
@@ -60,5 +63,6 @@ function LandingDesignUsageDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
60
63
|
return {
|
|
61
64
|
'design': value['design'],
|
|
62
65
|
'domains': value['domains'],
|
|
66
|
+
'accounts': value['accounts'],
|
|
63
67
|
};
|
|
64
68
|
}
|
|
@@ -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
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { LandingDesignAccountDto } from './LandingDesignAccountDto';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ListAdminLandingDesignAccounts200Response
|
|
19
|
+
*/
|
|
20
|
+
export interface ListAdminLandingDesignAccounts200Response {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<LandingDesignAccountDto>}
|
|
24
|
+
* @memberof ListAdminLandingDesignAccounts200Response
|
|
25
|
+
*/
|
|
26
|
+
data: Array<LandingDesignAccountDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof ListAdminLandingDesignAccounts200Response
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof ListAdminLandingDesignAccounts200Response
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ListAdminLandingDesignAccounts200Response interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfListAdminLandingDesignAccounts200Response(value: object): value is ListAdminLandingDesignAccounts200Response;
|
|
44
|
+
export declare function ListAdminLandingDesignAccounts200ResponseFromJSON(json: any): ListAdminLandingDesignAccounts200Response;
|
|
45
|
+
export declare function ListAdminLandingDesignAccounts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAdminLandingDesignAccounts200Response;
|
|
46
|
+
export declare function ListAdminLandingDesignAccounts200ResponseToJSON(json: any): ListAdminLandingDesignAccounts200Response;
|
|
47
|
+
export declare function ListAdminLandingDesignAccounts200ResponseToJSONTyped(value?: ListAdminLandingDesignAccounts200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfListAdminLandingDesignAccounts200Response = instanceOfListAdminLandingDesignAccounts200Response;
|
|
17
|
+
exports.ListAdminLandingDesignAccounts200ResponseFromJSON = ListAdminLandingDesignAccounts200ResponseFromJSON;
|
|
18
|
+
exports.ListAdminLandingDesignAccounts200ResponseFromJSONTyped = ListAdminLandingDesignAccounts200ResponseFromJSONTyped;
|
|
19
|
+
exports.ListAdminLandingDesignAccounts200ResponseToJSON = ListAdminLandingDesignAccounts200ResponseToJSON;
|
|
20
|
+
exports.ListAdminLandingDesignAccounts200ResponseToJSONTyped = ListAdminLandingDesignAccounts200ResponseToJSONTyped;
|
|
21
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
+
var LandingDesignAccountDto_1 = require("./LandingDesignAccountDto");
|
|
23
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ListAdminLandingDesignAccounts200Response interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfListAdminLandingDesignAccounts200Response(value) {
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('links' in value) || value['links'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function ListAdminLandingDesignAccounts200ResponseFromJSON(json) {
|
|
37
|
+
return ListAdminLandingDesignAccounts200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function ListAdminLandingDesignAccounts200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (json['data'].map(LandingDesignAccountDto_1.LandingDesignAccountDtoFromJSON)),
|
|
45
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ListAdminLandingDesignAccounts200ResponseToJSON(json) {
|
|
50
|
+
return ListAdminLandingDesignAccounts200ResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ListAdminLandingDesignAccounts200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'data': (value['data'].map(LandingDesignAccountDto_1.LandingDesignAccountDtoToJSON)),
|
|
59
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
|
+
};
|
|
62
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -308,6 +308,7 @@ export * from './JobDto';
|
|
|
308
308
|
export * from './JobFailureDto';
|
|
309
309
|
export * from './JobStatus';
|
|
310
310
|
export * from './JobType';
|
|
311
|
+
export * from './LandingDesignAccountDto';
|
|
311
312
|
export * from './LandingDesignUsageDto';
|
|
312
313
|
export * from './LandingPageDesignSettingsDto';
|
|
313
314
|
export * from './LandingPageDesignSettingsInput';
|
|
@@ -368,6 +369,7 @@ export * from './ListAccountMetricsDto';
|
|
|
368
369
|
export * from './ListAccountPortfolioSizeDto';
|
|
369
370
|
export * from './ListAccountUserDto';
|
|
370
371
|
export * from './ListAccounts200Response';
|
|
372
|
+
export * from './ListAdminLandingDesignAccounts200Response';
|
|
371
373
|
export * from './ListAdminRelatedLeads200Response';
|
|
372
374
|
export * from './ListAuctions200Response';
|
|
373
375
|
export * from './ListBankAccounts200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -326,6 +326,7 @@ __exportStar(require("./JobDto"), exports);
|
|
|
326
326
|
__exportStar(require("./JobFailureDto"), exports);
|
|
327
327
|
__exportStar(require("./JobStatus"), exports);
|
|
328
328
|
__exportStar(require("./JobType"), exports);
|
|
329
|
+
__exportStar(require("./LandingDesignAccountDto"), exports);
|
|
329
330
|
__exportStar(require("./LandingDesignUsageDto"), exports);
|
|
330
331
|
__exportStar(require("./LandingPageDesignSettingsDto"), exports);
|
|
331
332
|
__exportStar(require("./LandingPageDesignSettingsInput"), exports);
|
|
@@ -386,6 +387,7 @@ __exportStar(require("./ListAccountMetricsDto"), exports);
|
|
|
386
387
|
__exportStar(require("./ListAccountPortfolioSizeDto"), exports);
|
|
387
388
|
__exportStar(require("./ListAccountUserDto"), exports);
|
|
388
389
|
__exportStar(require("./ListAccounts200Response"), exports);
|
|
390
|
+
__exportStar(require("./ListAdminLandingDesignAccounts200Response"), exports);
|
|
389
391
|
__exportStar(require("./ListAdminRelatedLeads200Response"), exports);
|
|
390
392
|
__exportStar(require("./ListAuctions200Response"), exports);
|
|
391
393
|
__exportStar(require("./ListBankAccounts200Response"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -58,6 +58,7 @@ import type {
|
|
|
58
58
|
LinkBankDepositToBankAccountInput,
|
|
59
59
|
LinkBankDepositToInvoiceInput,
|
|
60
60
|
ListAccounts200Response,
|
|
61
|
+
ListAdminLandingDesignAccounts200Response,
|
|
61
62
|
ListAdminRelatedLeads200Response,
|
|
62
63
|
ListBankAccounts200Response,
|
|
63
64
|
ListBankDeposits200Response,
|
|
@@ -170,6 +171,8 @@ import {
|
|
|
170
171
|
LinkBankDepositToInvoiceInputToJSON,
|
|
171
172
|
ListAccounts200ResponseFromJSON,
|
|
172
173
|
ListAccounts200ResponseToJSON,
|
|
174
|
+
ListAdminLandingDesignAccounts200ResponseFromJSON,
|
|
175
|
+
ListAdminLandingDesignAccounts200ResponseToJSON,
|
|
173
176
|
ListAdminRelatedLeads200ResponseFromJSON,
|
|
174
177
|
ListAdminRelatedLeads200ResponseToJSON,
|
|
175
178
|
ListBankAccounts200ResponseFromJSON,
|
|
@@ -451,6 +454,14 @@ export interface AdminApiListAccountsRequest {
|
|
|
451
454
|
filterSearchTerm?: string;
|
|
452
455
|
}
|
|
453
456
|
|
|
457
|
+
export interface AdminApiListAdminLandingDesignAccountsRequest {
|
|
458
|
+
design: ListAdminLandingDesignAccountsDesignEnum;
|
|
459
|
+
filter?: { [key: string]: string; };
|
|
460
|
+
page?: number;
|
|
461
|
+
limit?: number;
|
|
462
|
+
sortBy?: Array<string>;
|
|
463
|
+
}
|
|
464
|
+
|
|
454
465
|
export interface AdminApiListAdminLeadMessagesRequest {
|
|
455
466
|
leadId: string;
|
|
456
467
|
}
|
|
@@ -2771,6 +2782,65 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
2771
2782
|
return await response.value();
|
|
2772
2783
|
}
|
|
2773
2784
|
|
|
2785
|
+
/**
|
|
2786
|
+
* Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
|
|
2787
|
+
* List the accounts using a landing design
|
|
2788
|
+
*/
|
|
2789
|
+
async listAdminLandingDesignAccountsRaw(requestParameters: AdminApiListAdminLandingDesignAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAdminLandingDesignAccounts200Response>> {
|
|
2790
|
+
if (requestParameters['design'] == null) {
|
|
2791
|
+
throw new runtime.RequiredError(
|
|
2792
|
+
'design',
|
|
2793
|
+
'Required parameter "design" was null or undefined when calling listAdminLandingDesignAccounts().'
|
|
2794
|
+
);
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
const queryParameters: any = {};
|
|
2798
|
+
|
|
2799
|
+
if (requestParameters['filter'] != null) {
|
|
2800
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
2801
|
+
}
|
|
2802
|
+
|
|
2803
|
+
if (requestParameters['page'] != null) {
|
|
2804
|
+
queryParameters['page'] = requestParameters['page'];
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2807
|
+
if (requestParameters['limit'] != null) {
|
|
2808
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
if (requestParameters['sortBy'] != null) {
|
|
2812
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2816
|
+
|
|
2817
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2818
|
+
const token = this.configuration.accessToken;
|
|
2819
|
+
const tokenString = await token("bearer", []);
|
|
2820
|
+
|
|
2821
|
+
if (tokenString) {
|
|
2822
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2823
|
+
}
|
|
2824
|
+
}
|
|
2825
|
+
const response = await this.request({
|
|
2826
|
+
path: `/admin/stats/landing-designs/{design}/accounts`.replace(`{${"design"}}`, encodeURIComponent(String(requestParameters['design']))),
|
|
2827
|
+
method: 'GET',
|
|
2828
|
+
headers: headerParameters,
|
|
2829
|
+
query: queryParameters,
|
|
2830
|
+
}, initOverrides);
|
|
2831
|
+
|
|
2832
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListAdminLandingDesignAccounts200ResponseFromJSON(jsonValue));
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2835
|
+
/**
|
|
2836
|
+
* Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
|
|
2837
|
+
* List the accounts using a landing design
|
|
2838
|
+
*/
|
|
2839
|
+
async listAdminLandingDesignAccounts(requestParameters: AdminApiListAdminLandingDesignAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAdminLandingDesignAccounts200Response> {
|
|
2840
|
+
const response = await this.listAdminLandingDesignAccountsRaw(requestParameters, initOverrides);
|
|
2841
|
+
return await response.value();
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2774
2844
|
/**
|
|
2775
2845
|
* Lists the messages of a lead conversation, for any account. Read only: nothing is marked as read. Requires admin bearer authentication.
|
|
2776
2846
|
* List lead messages
|
|
@@ -4622,6 +4692,15 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
4622
4692
|
|
|
4623
4693
|
}
|
|
4624
4694
|
|
|
4695
|
+
/**
|
|
4696
|
+
* @export
|
|
4697
|
+
*/
|
|
4698
|
+
export const ListAdminLandingDesignAccountsDesignEnum = {
|
|
4699
|
+
ORIGINAL: 'original',
|
|
4700
|
+
MODERN: 'modern',
|
|
4701
|
+
MINIMAL: 'minimal'
|
|
4702
|
+
} as const;
|
|
4703
|
+
export type ListAdminLandingDesignAccountsDesignEnum = typeof ListAdminLandingDesignAccountsDesignEnum[keyof typeof ListAdminLandingDesignAccountsDesignEnum];
|
|
4625
4704
|
/**
|
|
4626
4705
|
* @export
|
|
4627
4706
|
*/
|
|
@@ -0,0 +1,84 @@
|
|
|
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 LandingDesignAccountDto
|
|
20
|
+
*/
|
|
21
|
+
export interface LandingDesignAccountDto {
|
|
22
|
+
/**
|
|
23
|
+
* Account id
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LandingDesignAccountDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Account identifier
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LandingDesignAccountDto
|
|
32
|
+
*/
|
|
33
|
+
identifier: string;
|
|
34
|
+
/**
|
|
35
|
+
* Account name
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LandingDesignAccountDto
|
|
38
|
+
*/
|
|
39
|
+
name: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the LandingDesignAccountDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfLandingDesignAccountDto(value: object): value is LandingDesignAccountDto {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
48
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function LandingDesignAccountDtoFromJSON(json: any): LandingDesignAccountDto {
|
|
53
|
+
return LandingDesignAccountDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function LandingDesignAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LandingDesignAccountDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'identifier': json['identifier'],
|
|
64
|
+
'name': json['name'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function LandingDesignAccountDtoToJSON(json: any): LandingDesignAccountDto {
|
|
69
|
+
return LandingDesignAccountDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function LandingDesignAccountDtoToJSONTyped(value?: LandingDesignAccountDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'identifier': value['identifier'],
|
|
81
|
+
'name': value['name'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -31,6 +31,12 @@ export interface LandingDesignUsageDto {
|
|
|
31
31
|
* @memberof LandingDesignUsageDto
|
|
32
32
|
*/
|
|
33
33
|
domains: number;
|
|
34
|
+
/**
|
|
35
|
+
* Number of live accounts with at least one live domain whose effective design is this design. An account with domains in several designs counts in each of them
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof LandingDesignUsageDto
|
|
38
|
+
*/
|
|
39
|
+
accounts: number;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
|
|
@@ -51,6 +57,7 @@ export type LandingDesignUsageDtoDesignEnum = typeof LandingDesignUsageDtoDesign
|
|
|
51
57
|
export function instanceOfLandingDesignUsageDto(value: object): value is LandingDesignUsageDto {
|
|
52
58
|
if (!('design' in value) || value['design'] === undefined) return false;
|
|
53
59
|
if (!('domains' in value) || value['domains'] === undefined) return false;
|
|
60
|
+
if (!('accounts' in value) || value['accounts'] === undefined) return false;
|
|
54
61
|
return true;
|
|
55
62
|
}
|
|
56
63
|
|
|
@@ -66,6 +73,7 @@ export function LandingDesignUsageDtoFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
66
73
|
|
|
67
74
|
'design': json['design'],
|
|
68
75
|
'domains': json['domains'],
|
|
76
|
+
'accounts': json['accounts'],
|
|
69
77
|
};
|
|
70
78
|
}
|
|
71
79
|
|
|
@@ -82,6 +90,7 @@ export function LandingDesignUsageDtoToJSONTyped(value?: LandingDesignUsageDto |
|
|
|
82
90
|
|
|
83
91
|
'design': value['design'],
|
|
84
92
|
'domains': value['domains'],
|
|
93
|
+
'accounts': value['accounts'],
|
|
85
94
|
};
|
|
86
95
|
}
|
|
87
96
|
|
|
@@ -0,0 +1,106 @@
|
|
|
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 { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
PaginateResponseLinksToJSONTyped,
|
|
22
|
+
} from './PaginateResponseLinks';
|
|
23
|
+
import type { LandingDesignAccountDto } from './LandingDesignAccountDto';
|
|
24
|
+
import {
|
|
25
|
+
LandingDesignAccountDtoFromJSON,
|
|
26
|
+
LandingDesignAccountDtoFromJSONTyped,
|
|
27
|
+
LandingDesignAccountDtoToJSON,
|
|
28
|
+
LandingDesignAccountDtoToJSONTyped,
|
|
29
|
+
} from './LandingDesignAccountDto';
|
|
30
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
|
+
import {
|
|
32
|
+
PaginateResponseMetaFromJSON,
|
|
33
|
+
PaginateResponseMetaFromJSONTyped,
|
|
34
|
+
PaginateResponseMetaToJSON,
|
|
35
|
+
PaginateResponseMetaToJSONTyped,
|
|
36
|
+
} from './PaginateResponseMeta';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface ListAdminLandingDesignAccounts200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface ListAdminLandingDesignAccounts200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<LandingDesignAccountDto>}
|
|
47
|
+
* @memberof ListAdminLandingDesignAccounts200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<LandingDesignAccountDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof ListAdminLandingDesignAccounts200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof ListAdminLandingDesignAccounts200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the ListAdminLandingDesignAccounts200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfListAdminLandingDesignAccounts200Response(value: object): value is ListAdminLandingDesignAccounts200Response {
|
|
68
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
69
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
70
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ListAdminLandingDesignAccounts200ResponseFromJSON(json: any): ListAdminLandingDesignAccounts200Response {
|
|
75
|
+
return ListAdminLandingDesignAccounts200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ListAdminLandingDesignAccounts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAdminLandingDesignAccounts200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(LandingDesignAccountDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ListAdminLandingDesignAccounts200ResponseToJSON(json: any): ListAdminLandingDesignAccounts200Response {
|
|
91
|
+
return ListAdminLandingDesignAccounts200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ListAdminLandingDesignAccounts200ResponseToJSONTyped(value?: ListAdminLandingDesignAccounts200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(LandingDesignAccountDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -310,6 +310,7 @@ export * from './JobDto';
|
|
|
310
310
|
export * from './JobFailureDto';
|
|
311
311
|
export * from './JobStatus';
|
|
312
312
|
export * from './JobType';
|
|
313
|
+
export * from './LandingDesignAccountDto';
|
|
313
314
|
export * from './LandingDesignUsageDto';
|
|
314
315
|
export * from './LandingPageDesignSettingsDto';
|
|
315
316
|
export * from './LandingPageDesignSettingsInput';
|
|
@@ -370,6 +371,7 @@ export * from './ListAccountMetricsDto';
|
|
|
370
371
|
export * from './ListAccountPortfolioSizeDto';
|
|
371
372
|
export * from './ListAccountUserDto';
|
|
372
373
|
export * from './ListAccounts200Response';
|
|
374
|
+
export * from './ListAdminLandingDesignAccounts200Response';
|
|
373
375
|
export * from './ListAdminRelatedLeads200Response';
|
|
374
376
|
export * from './ListAuctions200Response';
|
|
375
377
|
export * from './ListBankAccounts200Response';
|