@randock/nameshift-api-client 0.0.493 → 0.0.495
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 +30 -1
- package/dist/apis/AdminApi.js +79 -1
- package/dist/apis/CustomerSuccessApi.d.ts +1 -0
- package/dist/apis/CustomerSuccessApi.js +3 -0
- 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 +84 -0
- package/src/apis/CustomerSuccessApi.ts +5 -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.495
|
|
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.495 --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
|
+
fd761ef7fed3e9b7287b396971b6d3c5eeedf8c201c77ab9c3a5c19cf8cdfdce86f7524ae8cd6e59604ea0a976237b86
|
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
|
}
|
|
@@ -216,6 +216,16 @@ export interface AdminApiListAccountsRequest {
|
|
|
216
216
|
limit?: number;
|
|
217
217
|
sortBy?: Array<string>;
|
|
218
218
|
filterSearchTerm?: string;
|
|
219
|
+
filterHasNotes?: string;
|
|
220
|
+
}
|
|
221
|
+
export interface AdminApiListAdminLandingDesignAccountsRequest {
|
|
222
|
+
design: ListAdminLandingDesignAccountsDesignEnum;
|
|
223
|
+
filter?: {
|
|
224
|
+
[key: string]: string;
|
|
225
|
+
};
|
|
226
|
+
page?: number;
|
|
227
|
+
limit?: number;
|
|
228
|
+
sortBy?: Array<string>;
|
|
219
229
|
}
|
|
220
230
|
export interface AdminApiListAdminLeadMessagesRequest {
|
|
221
231
|
leadId: string;
|
|
@@ -820,6 +830,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
820
830
|
* List accounts
|
|
821
831
|
*/
|
|
822
832
|
listAccounts(requestParameters?: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response>;
|
|
833
|
+
/**
|
|
834
|
+
* Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
|
|
835
|
+
* List the accounts using a landing design
|
|
836
|
+
*/
|
|
837
|
+
listAdminLandingDesignAccountsRaw(requestParameters: AdminApiListAdminLandingDesignAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAdminLandingDesignAccounts200Response>>;
|
|
838
|
+
/**
|
|
839
|
+
* Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
|
|
840
|
+
* List the accounts using a landing design
|
|
841
|
+
*/
|
|
842
|
+
listAdminLandingDesignAccounts(requestParameters: AdminApiListAdminLandingDesignAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAdminLandingDesignAccounts200Response>;
|
|
823
843
|
/**
|
|
824
844
|
* Lists the messages of a lead conversation, for any account. Read only: nothing is marked as read. Requires admin bearer authentication.
|
|
825
845
|
* List lead messages
|
|
@@ -1211,6 +1231,15 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
1211
1231
|
*/
|
|
1212
1232
|
verifyBankAccount(requestParameters: AdminApiVerifyBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1213
1233
|
}
|
|
1234
|
+
/**
|
|
1235
|
+
* @export
|
|
1236
|
+
*/
|
|
1237
|
+
export declare const ListAdminLandingDesignAccountsDesignEnum: {
|
|
1238
|
+
readonly ORIGINAL: "original";
|
|
1239
|
+
readonly MODERN: "modern";
|
|
1240
|
+
readonly MINIMAL: "minimal";
|
|
1241
|
+
};
|
|
1242
|
+
export type ListAdminLandingDesignAccountsDesignEnum = typeof ListAdminLandingDesignAccountsDesignEnum[keyof typeof ListAdminLandingDesignAccountsDesignEnum];
|
|
1214
1243
|
/**
|
|
1215
1244
|
* @export
|
|
1216
1245
|
*/
|
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
|
/**
|
|
@@ -2630,6 +2630,9 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
2630
2630
|
if (requestParameters['filterSearchTerm'] != null) {
|
|
2631
2631
|
queryParameters['filter[search_term]'] = requestParameters['filterSearchTerm'];
|
|
2632
2632
|
}
|
|
2633
|
+
if (requestParameters['filterHasNotes'] != null) {
|
|
2634
|
+
queryParameters['filter[has_notes]'] = requestParameters['filterHasNotes'];
|
|
2635
|
+
}
|
|
2633
2636
|
headerParameters = {};
|
|
2634
2637
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2635
2638
|
token = this.configuration.accessToken;
|
|
@@ -2672,6 +2675,73 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
2672
2675
|
});
|
|
2673
2676
|
});
|
|
2674
2677
|
};
|
|
2678
|
+
/**
|
|
2679
|
+
* Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
|
|
2680
|
+
* List the accounts using a landing design
|
|
2681
|
+
*/
|
|
2682
|
+
AdminApi.prototype.listAdminLandingDesignAccountsRaw = function (requestParameters, initOverrides) {
|
|
2683
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2684
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
2685
|
+
return __generator(this, function (_a) {
|
|
2686
|
+
switch (_a.label) {
|
|
2687
|
+
case 0:
|
|
2688
|
+
if (requestParameters['design'] == null) {
|
|
2689
|
+
throw new runtime.RequiredError('design', 'Required parameter "design" was null or undefined when calling listAdminLandingDesignAccounts().');
|
|
2690
|
+
}
|
|
2691
|
+
queryParameters = {};
|
|
2692
|
+
if (requestParameters['filter'] != null) {
|
|
2693
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
2694
|
+
}
|
|
2695
|
+
if (requestParameters['page'] != null) {
|
|
2696
|
+
queryParameters['page'] = requestParameters['page'];
|
|
2697
|
+
}
|
|
2698
|
+
if (requestParameters['limit'] != null) {
|
|
2699
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
2700
|
+
}
|
|
2701
|
+
if (requestParameters['sortBy'] != null) {
|
|
2702
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
2703
|
+
}
|
|
2704
|
+
headerParameters = {};
|
|
2705
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2706
|
+
token = this.configuration.accessToken;
|
|
2707
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
2708
|
+
case 1:
|
|
2709
|
+
tokenString = _a.sent();
|
|
2710
|
+
if (tokenString) {
|
|
2711
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2712
|
+
}
|
|
2713
|
+
_a.label = 2;
|
|
2714
|
+
case 2: return [4 /*yield*/, this.request({
|
|
2715
|
+
path: "/admin/stats/landing-designs/{design}/accounts".replace("{".concat("design", "}"), encodeURIComponent(String(requestParameters['design']))),
|
|
2716
|
+
method: 'GET',
|
|
2717
|
+
headers: headerParameters,
|
|
2718
|
+
query: queryParameters,
|
|
2719
|
+
}, initOverrides)];
|
|
2720
|
+
case 3:
|
|
2721
|
+
response = _a.sent();
|
|
2722
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListAdminLandingDesignAccounts200ResponseFromJSON)(jsonValue); })];
|
|
2723
|
+
}
|
|
2724
|
+
});
|
|
2725
|
+
});
|
|
2726
|
+
};
|
|
2727
|
+
/**
|
|
2728
|
+
* Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
|
|
2729
|
+
* List the accounts using a landing design
|
|
2730
|
+
*/
|
|
2731
|
+
AdminApi.prototype.listAdminLandingDesignAccounts = function (requestParameters, initOverrides) {
|
|
2732
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2733
|
+
var response;
|
|
2734
|
+
return __generator(this, function (_a) {
|
|
2735
|
+
switch (_a.label) {
|
|
2736
|
+
case 0: return [4 /*yield*/, this.listAdminLandingDesignAccountsRaw(requestParameters, initOverrides)];
|
|
2737
|
+
case 1:
|
|
2738
|
+
response = _a.sent();
|
|
2739
|
+
return [4 /*yield*/, response.value()];
|
|
2740
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
2741
|
+
}
|
|
2742
|
+
});
|
|
2743
|
+
});
|
|
2744
|
+
};
|
|
2675
2745
|
/**
|
|
2676
2746
|
* Lists the messages of a lead conversation, for any account. Read only: nothing is marked as read. Requires admin bearer authentication.
|
|
2677
2747
|
* List lead messages
|
|
@@ -4914,6 +4984,14 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
4914
4984
|
return AdminApi;
|
|
4915
4985
|
}(runtime.BaseAPI));
|
|
4916
4986
|
exports.AdminApi = AdminApi;
|
|
4987
|
+
/**
|
|
4988
|
+
* @export
|
|
4989
|
+
*/
|
|
4990
|
+
exports.ListAdminLandingDesignAccountsDesignEnum = {
|
|
4991
|
+
ORIGINAL: 'original',
|
|
4992
|
+
MODERN: 'modern',
|
|
4993
|
+
MINIMAL: 'minimal'
|
|
4994
|
+
};
|
|
4917
4995
|
/**
|
|
4918
4996
|
* @export
|
|
4919
4997
|
*/
|
|
@@ -43,6 +43,7 @@ export interface CustomerSuccessApiListCustomerSuccessAccountsRequest {
|
|
|
43
43
|
filterSearchTerm?: string;
|
|
44
44
|
filterOnboardingStatus?: string;
|
|
45
45
|
filterAffiliateIdentifier?: string;
|
|
46
|
+
filterHasNotes?: string;
|
|
46
47
|
}
|
|
47
48
|
export interface CustomerSuccessApiUpdateCustomerSuccessAccountNoteRequest {
|
|
48
49
|
accountId: string;
|
|
@@ -349,6 +349,9 @@ var CustomerSuccessApi = /** @class */ (function (_super) {
|
|
|
349
349
|
if (requestParameters['filterAffiliateIdentifier'] != null) {
|
|
350
350
|
queryParameters['filter[affiliate.identifier]'] = requestParameters['filterAffiliateIdentifier'];
|
|
351
351
|
}
|
|
352
|
+
if (requestParameters['filterHasNotes'] != null) {
|
|
353
|
+
queryParameters['filter[has_notes]'] = requestParameters['filterHasNotes'];
|
|
354
|
+
}
|
|
352
355
|
headerParameters = {};
|
|
353
356
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
354
357
|
token = this.configuration.accessToken;
|
|
@@ -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,
|
|
@@ -449,6 +452,15 @@ export interface AdminApiListAccountsRequest {
|
|
|
449
452
|
limit?: number;
|
|
450
453
|
sortBy?: Array<string>;
|
|
451
454
|
filterSearchTerm?: string;
|
|
455
|
+
filterHasNotes?: string;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export interface AdminApiListAdminLandingDesignAccountsRequest {
|
|
459
|
+
design: ListAdminLandingDesignAccountsDesignEnum;
|
|
460
|
+
filter?: { [key: string]: string; };
|
|
461
|
+
page?: number;
|
|
462
|
+
limit?: number;
|
|
463
|
+
sortBy?: Array<string>;
|
|
452
464
|
}
|
|
453
465
|
|
|
454
466
|
export interface AdminApiListAdminLeadMessagesRequest {
|
|
@@ -2742,6 +2754,10 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
2742
2754
|
queryParameters['filter[search_term]'] = requestParameters['filterSearchTerm'];
|
|
2743
2755
|
}
|
|
2744
2756
|
|
|
2757
|
+
if (requestParameters['filterHasNotes'] != null) {
|
|
2758
|
+
queryParameters['filter[has_notes]'] = requestParameters['filterHasNotes'];
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2745
2761
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2746
2762
|
|
|
2747
2763
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -2771,6 +2787,65 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
2771
2787
|
return await response.value();
|
|
2772
2788
|
}
|
|
2773
2789
|
|
|
2790
|
+
/**
|
|
2791
|
+
* Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
|
|
2792
|
+
* List the accounts using a landing design
|
|
2793
|
+
*/
|
|
2794
|
+
async listAdminLandingDesignAccountsRaw(requestParameters: AdminApiListAdminLandingDesignAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAdminLandingDesignAccounts200Response>> {
|
|
2795
|
+
if (requestParameters['design'] == null) {
|
|
2796
|
+
throw new runtime.RequiredError(
|
|
2797
|
+
'design',
|
|
2798
|
+
'Required parameter "design" was null or undefined when calling listAdminLandingDesignAccounts().'
|
|
2799
|
+
);
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
const queryParameters: any = {};
|
|
2803
|
+
|
|
2804
|
+
if (requestParameters['filter'] != null) {
|
|
2805
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
if (requestParameters['page'] != null) {
|
|
2809
|
+
queryParameters['page'] = requestParameters['page'];
|
|
2810
|
+
}
|
|
2811
|
+
|
|
2812
|
+
if (requestParameters['limit'] != null) {
|
|
2813
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
if (requestParameters['sortBy'] != null) {
|
|
2817
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2821
|
+
|
|
2822
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2823
|
+
const token = this.configuration.accessToken;
|
|
2824
|
+
const tokenString = await token("bearer", []);
|
|
2825
|
+
|
|
2826
|
+
if (tokenString) {
|
|
2827
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2828
|
+
}
|
|
2829
|
+
}
|
|
2830
|
+
const response = await this.request({
|
|
2831
|
+
path: `/admin/stats/landing-designs/{design}/accounts`.replace(`{${"design"}}`, encodeURIComponent(String(requestParameters['design']))),
|
|
2832
|
+
method: 'GET',
|
|
2833
|
+
headers: headerParameters,
|
|
2834
|
+
query: queryParameters,
|
|
2835
|
+
}, initOverrides);
|
|
2836
|
+
|
|
2837
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListAdminLandingDesignAccounts200ResponseFromJSON(jsonValue));
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
/**
|
|
2841
|
+
* Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
|
|
2842
|
+
* List the accounts using a landing design
|
|
2843
|
+
*/
|
|
2844
|
+
async listAdminLandingDesignAccounts(requestParameters: AdminApiListAdminLandingDesignAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAdminLandingDesignAccounts200Response> {
|
|
2845
|
+
const response = await this.listAdminLandingDesignAccountsRaw(requestParameters, initOverrides);
|
|
2846
|
+
return await response.value();
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2774
2849
|
/**
|
|
2775
2850
|
* Lists the messages of a lead conversation, for any account. Read only: nothing is marked as read. Requires admin bearer authentication.
|
|
2776
2851
|
* List lead messages
|
|
@@ -4622,6 +4697,15 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
4622
4697
|
|
|
4623
4698
|
}
|
|
4624
4699
|
|
|
4700
|
+
/**
|
|
4701
|
+
* @export
|
|
4702
|
+
*/
|
|
4703
|
+
export const ListAdminLandingDesignAccountsDesignEnum = {
|
|
4704
|
+
ORIGINAL: 'original',
|
|
4705
|
+
MODERN: 'modern',
|
|
4706
|
+
MINIMAL: 'minimal'
|
|
4707
|
+
} as const;
|
|
4708
|
+
export type ListAdminLandingDesignAccountsDesignEnum = typeof ListAdminLandingDesignAccountsDesignEnum[keyof typeof ListAdminLandingDesignAccountsDesignEnum];
|
|
4625
4709
|
/**
|
|
4626
4710
|
* @export
|
|
4627
4711
|
*/
|
|
@@ -75,6 +75,7 @@ export interface CustomerSuccessApiListCustomerSuccessAccountsRequest {
|
|
|
75
75
|
filterSearchTerm?: string;
|
|
76
76
|
filterOnboardingStatus?: string;
|
|
77
77
|
filterAffiliateIdentifier?: string;
|
|
78
|
+
filterHasNotes?: string;
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
export interface CustomerSuccessApiUpdateCustomerSuccessAccountNoteRequest {
|
|
@@ -334,6 +335,10 @@ export class CustomerSuccessApi extends runtime.BaseAPI {
|
|
|
334
335
|
queryParameters['filter[affiliate.identifier]'] = requestParameters['filterAffiliateIdentifier'];
|
|
335
336
|
}
|
|
336
337
|
|
|
338
|
+
if (requestParameters['filterHasNotes'] != null) {
|
|
339
|
+
queryParameters['filter[has_notes]'] = requestParameters['filterHasNotes'];
|
|
340
|
+
}
|
|
341
|
+
|
|
337
342
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
338
343
|
|
|
339
344
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -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';
|