@randock/nameshift-api-client 0.0.514 → 0.0.516
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/AccountsPublicApi.d.ts +1 -1
- package/dist/apis/AccountsPublicApi.js +0 -3
- package/dist/apis/AdminApi.d.ts +21 -1
- package/dist/apis/AdminApi.js +71 -0
- package/dist/models/AdminBuyerListItemDto.d.ts +62 -0
- package/dist/models/AdminBuyerListItemDto.js +71 -0
- package/dist/models/ListBuyers200Response.d.ts +47 -0
- package/dist/models/ListBuyers200Response.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/AccountsPublicApi.ts +1 -8
- package/src/apis/AdminApi.ts +72 -0
- package/src/models/AdminBuyerListItemDto.ts +111 -0
- package/src/models/ListBuyers200Response.ts +106 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -99,6 +99,7 @@ src/models/AdminBankDepositAccountDto.ts
|
|
|
99
99
|
src/models/AdminBankDepositDto.ts
|
|
100
100
|
src/models/AdminBankDepositInvoiceDto.ts
|
|
101
101
|
src/models/AdminBankDepositInvoiceTransactionDto.ts
|
|
102
|
+
src/models/AdminBuyerListItemDto.ts
|
|
102
103
|
src/models/AdminBuyerLoginDto.ts
|
|
103
104
|
src/models/AdminChallengeListDto.ts
|
|
104
105
|
src/models/AdminChallengeListItemDto.ts
|
|
@@ -431,6 +432,7 @@ src/models/ListAuctions200Response.ts
|
|
|
431
432
|
src/models/ListBankAccounts200Response.ts
|
|
432
433
|
src/models/ListBankDeposits200Response.ts
|
|
433
434
|
src/models/ListBuyerNotifications200Response.ts
|
|
435
|
+
src/models/ListBuyers200Response.ts
|
|
434
436
|
src/models/ListCustomerSuccessAccountDomains200Response.ts
|
|
435
437
|
src/models/ListCustomerSuccessAccounts200Response.ts
|
|
436
438
|
src/models/ListDomains200Response.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.516
|
|
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.516 --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
|
+
e055ea62a2314dab09567fb3b78004f73909710862a171d513b37ae844dd1a377fb4bfab740f3d1f0a8a348065c94e99
|
|
@@ -15,8 +15,8 @@ export interface AccountsPublicApiGetAccountInformationRequest {
|
|
|
15
15
|
accountId: string;
|
|
16
16
|
}
|
|
17
17
|
export interface AccountsPublicApiRegisterRequest {
|
|
18
|
-
xNsClient: string;
|
|
19
18
|
registerAccountInput: RegisterAccountInput;
|
|
19
|
+
xNsClient?: string;
|
|
20
20
|
xRecaptchaToken?: string;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -131,9 +131,6 @@ var AccountsPublicApi = /** @class */ (function (_super) {
|
|
|
131
131
|
return __generator(this, function (_a) {
|
|
132
132
|
switch (_a.label) {
|
|
133
133
|
case 0:
|
|
134
|
-
if (requestParameters['xNsClient'] == null) {
|
|
135
|
-
throw new runtime.RequiredError('xNsClient', 'Required parameter "xNsClient" was null or undefined when calling register().');
|
|
136
|
-
}
|
|
137
134
|
if (requestParameters['registerAccountInput'] == null) {
|
|
138
135
|
throw new runtime.RequiredError('registerAccountInput', 'Required parameter "registerAccountInput" was null or undefined when calling register().');
|
|
139
136
|
}
|
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, AdminUserNewsletterInput, AdminUserSecurityDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateAccountNoteInput, CreateChallengeInput, CreateNewsletterInput, 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, ListUserLoginAttempts200Response, NewsStoryDto, NewsletterDto, NewsletterPreviewDto, ObjectId, PaySellerInvoicesInput, SellerLeadDetails, SellerPayoutPreviewDto, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SendNewsletterPreviewInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateNewsletterInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
|
|
13
|
+
import type { AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminLandingDesignStatsDto, AdminMarketplaceDto, AdminUserNewsletterInput, AdminUserSecurityDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateAccountNoteInput, CreateChallengeInput, CreateNewsletterInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAdminDomainAppraisalRequests200Response, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminLandingDesignAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListBuyers200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ListUserLoginAttempts200Response, NewsStoryDto, NewsletterDto, NewsletterPreviewDto, ObjectId, PaySellerInvoicesInput, SellerLeadDetails, SellerPayoutPreviewDto, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SendNewsletterPreviewInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateNewsletterInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminDeleteAuctionRequest {
|
|
15
15
|
auctionId: string;
|
|
16
16
|
}
|
|
@@ -275,6 +275,15 @@ export interface AdminApiListBankDepositsRequest {
|
|
|
275
275
|
sortBy?: Array<string>;
|
|
276
276
|
filterSearchTerm?: string;
|
|
277
277
|
}
|
|
278
|
+
export interface AdminApiListBuyersRequest {
|
|
279
|
+
filter?: {
|
|
280
|
+
[key: string]: string;
|
|
281
|
+
};
|
|
282
|
+
page?: number;
|
|
283
|
+
limit?: number;
|
|
284
|
+
sortBy?: Array<string>;
|
|
285
|
+
filterSearchTerm?: string;
|
|
286
|
+
}
|
|
278
287
|
export interface AdminApiListDomainLocksRequest {
|
|
279
288
|
domainId: string;
|
|
280
289
|
}
|
|
@@ -299,6 +308,7 @@ export interface AdminApiListLeadsRequest {
|
|
|
299
308
|
limit?: number;
|
|
300
309
|
sortBy?: Array<string>;
|
|
301
310
|
filterSearchTerm?: string;
|
|
311
|
+
filterAccountIdentifier?: string;
|
|
302
312
|
}
|
|
303
313
|
export interface AdminApiListLedgerMutationsRequest {
|
|
304
314
|
ledgerId: string;
|
|
@@ -993,6 +1003,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
993
1003
|
* List all bank deposits
|
|
994
1004
|
*/
|
|
995
1005
|
listBankDeposits(requestParameters?: AdminApiListBankDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListBankDeposits200Response>;
|
|
1006
|
+
/**
|
|
1007
|
+
* Lists buyers across the marketplace, to pick the one to log in as. Requires ROLE_SUPER_ADMIN.
|
|
1008
|
+
* List buyers
|
|
1009
|
+
*/
|
|
1010
|
+
listBuyersRaw(requestParameters: AdminApiListBuyersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListBuyers200Response>>;
|
|
1011
|
+
/**
|
|
1012
|
+
* Lists buyers across the marketplace, to pick the one to log in as. Requires ROLE_SUPER_ADMIN.
|
|
1013
|
+
* List buyers
|
|
1014
|
+
*/
|
|
1015
|
+
listBuyers(requestParameters?: AdminApiListBuyersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListBuyers200Response>;
|
|
996
1016
|
/**
|
|
997
1017
|
* Returns all active locks for the specified domain.
|
|
998
1018
|
* List domain locks
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -3387,6 +3387,74 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3387
3387
|
});
|
|
3388
3388
|
});
|
|
3389
3389
|
};
|
|
3390
|
+
/**
|
|
3391
|
+
* Lists buyers across the marketplace, to pick the one to log in as. Requires ROLE_SUPER_ADMIN.
|
|
3392
|
+
* List buyers
|
|
3393
|
+
*/
|
|
3394
|
+
AdminApi.prototype.listBuyersRaw = function (requestParameters, initOverrides) {
|
|
3395
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3396
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
3397
|
+
return __generator(this, function (_a) {
|
|
3398
|
+
switch (_a.label) {
|
|
3399
|
+
case 0:
|
|
3400
|
+
queryParameters = {};
|
|
3401
|
+
if (requestParameters['filter'] != null) {
|
|
3402
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
3403
|
+
}
|
|
3404
|
+
if (requestParameters['page'] != null) {
|
|
3405
|
+
queryParameters['page'] = requestParameters['page'];
|
|
3406
|
+
}
|
|
3407
|
+
if (requestParameters['limit'] != null) {
|
|
3408
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
3409
|
+
}
|
|
3410
|
+
if (requestParameters['sortBy'] != null) {
|
|
3411
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
3412
|
+
}
|
|
3413
|
+
if (requestParameters['filterSearchTerm'] != null) {
|
|
3414
|
+
queryParameters['filter[search_term]'] = requestParameters['filterSearchTerm'];
|
|
3415
|
+
}
|
|
3416
|
+
headerParameters = {};
|
|
3417
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
3418
|
+
token = this.configuration.accessToken;
|
|
3419
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
3420
|
+
case 1:
|
|
3421
|
+
tokenString = _a.sent();
|
|
3422
|
+
if (tokenString) {
|
|
3423
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
3424
|
+
}
|
|
3425
|
+
_a.label = 2;
|
|
3426
|
+
case 2: return [4 /*yield*/, this.request({
|
|
3427
|
+
path: "/admin/buyers",
|
|
3428
|
+
method: 'GET',
|
|
3429
|
+
headers: headerParameters,
|
|
3430
|
+
query: queryParameters,
|
|
3431
|
+
}, initOverrides)];
|
|
3432
|
+
case 3:
|
|
3433
|
+
response = _a.sent();
|
|
3434
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListBuyers200ResponseFromJSON)(jsonValue); })];
|
|
3435
|
+
}
|
|
3436
|
+
});
|
|
3437
|
+
});
|
|
3438
|
+
};
|
|
3439
|
+
/**
|
|
3440
|
+
* Lists buyers across the marketplace, to pick the one to log in as. Requires ROLE_SUPER_ADMIN.
|
|
3441
|
+
* List buyers
|
|
3442
|
+
*/
|
|
3443
|
+
AdminApi.prototype.listBuyers = function () {
|
|
3444
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
3445
|
+
var response;
|
|
3446
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
3447
|
+
return __generator(this, function (_a) {
|
|
3448
|
+
switch (_a.label) {
|
|
3449
|
+
case 0: return [4 /*yield*/, this.listBuyersRaw(requestParameters, initOverrides)];
|
|
3450
|
+
case 1:
|
|
3451
|
+
response = _a.sent();
|
|
3452
|
+
return [4 /*yield*/, response.value()];
|
|
3453
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
3454
|
+
}
|
|
3455
|
+
});
|
|
3456
|
+
});
|
|
3457
|
+
};
|
|
3390
3458
|
/**
|
|
3391
3459
|
* Returns all active locks for the specified domain.
|
|
3392
3460
|
* List domain locks
|
|
@@ -3600,6 +3668,9 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3600
3668
|
if (requestParameters['filterSearchTerm'] != null) {
|
|
3601
3669
|
queryParameters['filter[search_term]'] = requestParameters['filterSearchTerm'];
|
|
3602
3670
|
}
|
|
3671
|
+
if (requestParameters['filterAccountIdentifier'] != null) {
|
|
3672
|
+
queryParameters['filter[account.identifier]'] = requestParameters['filterAccountIdentifier'];
|
|
3673
|
+
}
|
|
3603
3674
|
headerParameters = {};
|
|
3604
3675
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
3605
3676
|
token = this.configuration.accessToken;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 AdminBuyerListItemDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminBuyerListItemDto {
|
|
18
|
+
/**
|
|
19
|
+
* Buyer ID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminBuyerListItemDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Buyer email address.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminBuyerListItemDto
|
|
28
|
+
*/
|
|
29
|
+
email: string;
|
|
30
|
+
/**
|
|
31
|
+
* Buyer name, as given on their latest lead.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminBuyerListItemDto
|
|
34
|
+
*/
|
|
35
|
+
name: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Buyer company name, as given on their latest lead.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AdminBuyerListItemDto
|
|
40
|
+
*/
|
|
41
|
+
companyName: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Buyer IP country code (ISO 3166-1 alpha-2).
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AdminBuyerListItemDto
|
|
46
|
+
*/
|
|
47
|
+
ipCountryCode: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Buyer creation date.
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof AdminBuyerListItemDto
|
|
52
|
+
*/
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the AdminBuyerListItemDto interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfAdminBuyerListItemDto(value: object): value is AdminBuyerListItemDto;
|
|
59
|
+
export declare function AdminBuyerListItemDtoFromJSON(json: any): AdminBuyerListItemDto;
|
|
60
|
+
export declare function AdminBuyerListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBuyerListItemDto;
|
|
61
|
+
export declare function AdminBuyerListItemDtoToJSON(json: any): AdminBuyerListItemDto;
|
|
62
|
+
export declare function AdminBuyerListItemDtoToJSONTyped(value?: AdminBuyerListItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfAdminBuyerListItemDto = instanceOfAdminBuyerListItemDto;
|
|
17
|
+
exports.AdminBuyerListItemDtoFromJSON = AdminBuyerListItemDtoFromJSON;
|
|
18
|
+
exports.AdminBuyerListItemDtoFromJSONTyped = AdminBuyerListItemDtoFromJSONTyped;
|
|
19
|
+
exports.AdminBuyerListItemDtoToJSON = AdminBuyerListItemDtoToJSON;
|
|
20
|
+
exports.AdminBuyerListItemDtoToJSONTyped = AdminBuyerListItemDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminBuyerListItemDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminBuyerListItemDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('companyName' in value) || value['companyName'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('ipCountryCode' in value) || value['ipCountryCode'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function AdminBuyerListItemDtoFromJSON(json) {
|
|
40
|
+
return AdminBuyerListItemDtoFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AdminBuyerListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'email': json['email'],
|
|
49
|
+
'name': json['name'],
|
|
50
|
+
'companyName': json['companyName'],
|
|
51
|
+
'ipCountryCode': json['ipCountryCode'],
|
|
52
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function AdminBuyerListItemDtoToJSON(json) {
|
|
56
|
+
return AdminBuyerListItemDtoToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function AdminBuyerListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'email': value['email'],
|
|
66
|
+
'name': value['name'],
|
|
67
|
+
'companyName': value['companyName'],
|
|
68
|
+
'ipCountryCode': value['ipCountryCode'],
|
|
69
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -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 { AdminBuyerListItemDto } from './AdminBuyerListItemDto';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ListBuyers200Response
|
|
19
|
+
*/
|
|
20
|
+
export interface ListBuyers200Response {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<AdminBuyerListItemDto>}
|
|
24
|
+
* @memberof ListBuyers200Response
|
|
25
|
+
*/
|
|
26
|
+
data: Array<AdminBuyerListItemDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof ListBuyers200Response
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof ListBuyers200Response
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ListBuyers200Response interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfListBuyers200Response(value: object): value is ListBuyers200Response;
|
|
44
|
+
export declare function ListBuyers200ResponseFromJSON(json: any): ListBuyers200Response;
|
|
45
|
+
export declare function ListBuyers200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListBuyers200Response;
|
|
46
|
+
export declare function ListBuyers200ResponseToJSON(json: any): ListBuyers200Response;
|
|
47
|
+
export declare function ListBuyers200ResponseToJSONTyped(value?: ListBuyers200Response | 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.instanceOfListBuyers200Response = instanceOfListBuyers200Response;
|
|
17
|
+
exports.ListBuyers200ResponseFromJSON = ListBuyers200ResponseFromJSON;
|
|
18
|
+
exports.ListBuyers200ResponseFromJSONTyped = ListBuyers200ResponseFromJSONTyped;
|
|
19
|
+
exports.ListBuyers200ResponseToJSON = ListBuyers200ResponseToJSON;
|
|
20
|
+
exports.ListBuyers200ResponseToJSONTyped = ListBuyers200ResponseToJSONTyped;
|
|
21
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
+
var AdminBuyerListItemDto_1 = require("./AdminBuyerListItemDto");
|
|
23
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ListBuyers200Response interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfListBuyers200Response(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 ListBuyers200ResponseFromJSON(json) {
|
|
37
|
+
return ListBuyers200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function ListBuyers200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (json['data'].map(AdminBuyerListItemDto_1.AdminBuyerListItemDtoFromJSON)),
|
|
45
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ListBuyers200ResponseToJSON(json) {
|
|
50
|
+
return ListBuyers200ResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ListBuyers200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'data': (value['data'].map(AdminBuyerListItemDto_1.AdminBuyerListItemDtoToJSON)),
|
|
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
|
@@ -56,6 +56,7 @@ export * from './AdminBankDepositAccountDto';
|
|
|
56
56
|
export * from './AdminBankDepositDto';
|
|
57
57
|
export * from './AdminBankDepositInvoiceDto';
|
|
58
58
|
export * from './AdminBankDepositInvoiceTransactionDto';
|
|
59
|
+
export * from './AdminBuyerListItemDto';
|
|
59
60
|
export * from './AdminBuyerLoginDto';
|
|
60
61
|
export * from './AdminChallengeListDto';
|
|
61
62
|
export * from './AdminChallengeListItemDto';
|
|
@@ -388,6 +389,7 @@ export * from './ListAuctions200Response';
|
|
|
388
389
|
export * from './ListBankAccounts200Response';
|
|
389
390
|
export * from './ListBankDeposits200Response';
|
|
390
391
|
export * from './ListBuyerNotifications200Response';
|
|
392
|
+
export * from './ListBuyers200Response';
|
|
391
393
|
export * from './ListCustomerSuccessAccountDomains200Response';
|
|
392
394
|
export * from './ListCustomerSuccessAccounts200Response';
|
|
393
395
|
export * from './ListDomains200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -74,6 +74,7 @@ __exportStar(require("./AdminBankDepositAccountDto"), exports);
|
|
|
74
74
|
__exportStar(require("./AdminBankDepositDto"), exports);
|
|
75
75
|
__exportStar(require("./AdminBankDepositInvoiceDto"), exports);
|
|
76
76
|
__exportStar(require("./AdminBankDepositInvoiceTransactionDto"), exports);
|
|
77
|
+
__exportStar(require("./AdminBuyerListItemDto"), exports);
|
|
77
78
|
__exportStar(require("./AdminBuyerLoginDto"), exports);
|
|
78
79
|
__exportStar(require("./AdminChallengeListDto"), exports);
|
|
79
80
|
__exportStar(require("./AdminChallengeListItemDto"), exports);
|
|
@@ -406,6 +407,7 @@ __exportStar(require("./ListAuctions200Response"), exports);
|
|
|
406
407
|
__exportStar(require("./ListBankAccounts200Response"), exports);
|
|
407
408
|
__exportStar(require("./ListBankDeposits200Response"), exports);
|
|
408
409
|
__exportStar(require("./ListBuyerNotifications200Response"), exports);
|
|
410
|
+
__exportStar(require("./ListBuyers200Response"), exports);
|
|
409
411
|
__exportStar(require("./ListCustomerSuccessAccountDomains200Response"), exports);
|
|
410
412
|
__exportStar(require("./ListCustomerSuccessAccounts200Response"), exports);
|
|
411
413
|
__exportStar(require("./ListDomains200Response"), exports);
|
package/package.json
CHANGED
|
@@ -36,8 +36,8 @@ export interface AccountsPublicApiGetAccountInformationRequest {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export interface AccountsPublicApiRegisterRequest {
|
|
39
|
-
xNsClient: string;
|
|
40
39
|
registerAccountInput: RegisterAccountInput;
|
|
40
|
+
xNsClient?: string;
|
|
41
41
|
xRecaptchaToken?: string;
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -86,13 +86,6 @@ export class AccountsPublicApi extends runtime.BaseAPI {
|
|
|
86
86
|
* Register account
|
|
87
87
|
*/
|
|
88
88
|
async registerRaw(requestParameters: AccountsPublicApiRegisterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
89
|
-
if (requestParameters['xNsClient'] == null) {
|
|
90
|
-
throw new runtime.RequiredError(
|
|
91
|
-
'xNsClient',
|
|
92
|
-
'Required parameter "xNsClient" was null or undefined when calling register().'
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
89
|
if (requestParameters['registerAccountInput'] == null) {
|
|
97
90
|
throw new runtime.RequiredError(
|
|
98
91
|
'registerAccountInput',
|
package/src/apis/AdminApi.ts
CHANGED
|
@@ -64,6 +64,7 @@ import type {
|
|
|
64
64
|
ListAdminRelatedLeads200Response,
|
|
65
65
|
ListBankAccounts200Response,
|
|
66
66
|
ListBankDeposits200Response,
|
|
67
|
+
ListBuyers200Response,
|
|
67
68
|
ListDomains200Response,
|
|
68
69
|
ListLeadMessagesDto,
|
|
69
70
|
ListLeads200Response,
|
|
@@ -192,6 +193,8 @@ import {
|
|
|
192
193
|
ListBankAccounts200ResponseToJSON,
|
|
193
194
|
ListBankDeposits200ResponseFromJSON,
|
|
194
195
|
ListBankDeposits200ResponseToJSON,
|
|
196
|
+
ListBuyers200ResponseFromJSON,
|
|
197
|
+
ListBuyers200ResponseToJSON,
|
|
195
198
|
ListDomains200ResponseFromJSON,
|
|
196
199
|
ListDomains200ResponseToJSON,
|
|
197
200
|
ListLeadMessagesDtoFromJSON,
|
|
@@ -541,6 +544,14 @@ export interface AdminApiListBankDepositsRequest {
|
|
|
541
544
|
filterSearchTerm?: string;
|
|
542
545
|
}
|
|
543
546
|
|
|
547
|
+
export interface AdminApiListBuyersRequest {
|
|
548
|
+
filter?: { [key: string]: string; };
|
|
549
|
+
page?: number;
|
|
550
|
+
limit?: number;
|
|
551
|
+
sortBy?: Array<string>;
|
|
552
|
+
filterSearchTerm?: string;
|
|
553
|
+
}
|
|
554
|
+
|
|
544
555
|
export interface AdminApiListDomainLocksRequest {
|
|
545
556
|
domainId: string;
|
|
546
557
|
}
|
|
@@ -563,6 +574,7 @@ export interface AdminApiListLeadsRequest {
|
|
|
563
574
|
limit?: number;
|
|
564
575
|
sortBy?: Array<string>;
|
|
565
576
|
filterSearchTerm?: string;
|
|
577
|
+
filterAccountIdentifier?: string;
|
|
566
578
|
}
|
|
567
579
|
|
|
568
580
|
export interface AdminApiListLedgerMutationsRequest {
|
|
@@ -3442,6 +3454,62 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
3442
3454
|
return await response.value();
|
|
3443
3455
|
}
|
|
3444
3456
|
|
|
3457
|
+
/**
|
|
3458
|
+
* Lists buyers across the marketplace, to pick the one to log in as. Requires ROLE_SUPER_ADMIN.
|
|
3459
|
+
* List buyers
|
|
3460
|
+
*/
|
|
3461
|
+
async listBuyersRaw(requestParameters: AdminApiListBuyersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListBuyers200Response>> {
|
|
3462
|
+
const queryParameters: any = {};
|
|
3463
|
+
|
|
3464
|
+
if (requestParameters['filter'] != null) {
|
|
3465
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
if (requestParameters['page'] != null) {
|
|
3469
|
+
queryParameters['page'] = requestParameters['page'];
|
|
3470
|
+
}
|
|
3471
|
+
|
|
3472
|
+
if (requestParameters['limit'] != null) {
|
|
3473
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
3474
|
+
}
|
|
3475
|
+
|
|
3476
|
+
if (requestParameters['sortBy'] != null) {
|
|
3477
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
3478
|
+
}
|
|
3479
|
+
|
|
3480
|
+
if (requestParameters['filterSearchTerm'] != null) {
|
|
3481
|
+
queryParameters['filter[search_term]'] = requestParameters['filterSearchTerm'];
|
|
3482
|
+
}
|
|
3483
|
+
|
|
3484
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3485
|
+
|
|
3486
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3487
|
+
const token = this.configuration.accessToken;
|
|
3488
|
+
const tokenString = await token("bearer", []);
|
|
3489
|
+
|
|
3490
|
+
if (tokenString) {
|
|
3491
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3492
|
+
}
|
|
3493
|
+
}
|
|
3494
|
+
const response = await this.request({
|
|
3495
|
+
path: `/admin/buyers`,
|
|
3496
|
+
method: 'GET',
|
|
3497
|
+
headers: headerParameters,
|
|
3498
|
+
query: queryParameters,
|
|
3499
|
+
}, initOverrides);
|
|
3500
|
+
|
|
3501
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListBuyers200ResponseFromJSON(jsonValue));
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
/**
|
|
3505
|
+
* Lists buyers across the marketplace, to pick the one to log in as. Requires ROLE_SUPER_ADMIN.
|
|
3506
|
+
* List buyers
|
|
3507
|
+
*/
|
|
3508
|
+
async listBuyers(requestParameters: AdminApiListBuyersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListBuyers200Response> {
|
|
3509
|
+
const response = await this.listBuyersRaw(requestParameters, initOverrides);
|
|
3510
|
+
return await response.value();
|
|
3511
|
+
}
|
|
3512
|
+
|
|
3445
3513
|
/**
|
|
3446
3514
|
* Returns all active locks for the specified domain.
|
|
3447
3515
|
* List domain locks
|
|
@@ -3620,6 +3688,10 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
3620
3688
|
queryParameters['filter[search_term]'] = requestParameters['filterSearchTerm'];
|
|
3621
3689
|
}
|
|
3622
3690
|
|
|
3691
|
+
if (requestParameters['filterAccountIdentifier'] != null) {
|
|
3692
|
+
queryParameters['filter[account.identifier]'] = requestParameters['filterAccountIdentifier'];
|
|
3693
|
+
}
|
|
3694
|
+
|
|
3623
3695
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
3624
3696
|
|
|
3625
3697
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -0,0 +1,111 @@
|
|
|
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 AdminBuyerListItemDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AdminBuyerListItemDto {
|
|
22
|
+
/**
|
|
23
|
+
* Buyer ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AdminBuyerListItemDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Buyer email address.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AdminBuyerListItemDto
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
/**
|
|
35
|
+
* Buyer name, as given on their latest lead.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AdminBuyerListItemDto
|
|
38
|
+
*/
|
|
39
|
+
name: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Buyer company name, as given on their latest lead.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AdminBuyerListItemDto
|
|
44
|
+
*/
|
|
45
|
+
companyName: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Buyer IP country code (ISO 3166-1 alpha-2).
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AdminBuyerListItemDto
|
|
50
|
+
*/
|
|
51
|
+
ipCountryCode: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Buyer creation date.
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof AdminBuyerListItemDto
|
|
56
|
+
*/
|
|
57
|
+
createdAt: Date;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the AdminBuyerListItemDto interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfAdminBuyerListItemDto(value: object): value is AdminBuyerListItemDto {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
66
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
67
|
+
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
68
|
+
if (!('ipCountryCode' in value) || value['ipCountryCode'] === undefined) return false;
|
|
69
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function AdminBuyerListItemDtoFromJSON(json: any): AdminBuyerListItemDto {
|
|
74
|
+
return AdminBuyerListItemDtoFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function AdminBuyerListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBuyerListItemDto {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': json['id'],
|
|
84
|
+
'email': json['email'],
|
|
85
|
+
'name': json['name'],
|
|
86
|
+
'companyName': json['companyName'],
|
|
87
|
+
'ipCountryCode': json['ipCountryCode'],
|
|
88
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function AdminBuyerListItemDtoToJSON(json: any): AdminBuyerListItemDto {
|
|
93
|
+
return AdminBuyerListItemDtoToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function AdminBuyerListItemDtoToJSONTyped(value?: AdminBuyerListItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'email': value['email'],
|
|
105
|
+
'name': value['name'],
|
|
106
|
+
'companyName': value['companyName'],
|
|
107
|
+
'ipCountryCode': value['ipCountryCode'],
|
|
108
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -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 { AdminBuyerListItemDto } from './AdminBuyerListItemDto';
|
|
24
|
+
import {
|
|
25
|
+
AdminBuyerListItemDtoFromJSON,
|
|
26
|
+
AdminBuyerListItemDtoFromJSONTyped,
|
|
27
|
+
AdminBuyerListItemDtoToJSON,
|
|
28
|
+
AdminBuyerListItemDtoToJSONTyped,
|
|
29
|
+
} from './AdminBuyerListItemDto';
|
|
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 ListBuyers200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface ListBuyers200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<AdminBuyerListItemDto>}
|
|
47
|
+
* @memberof ListBuyers200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<AdminBuyerListItemDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof ListBuyers200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof ListBuyers200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the ListBuyers200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfListBuyers200Response(value: object): value is ListBuyers200Response {
|
|
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 ListBuyers200ResponseFromJSON(json: any): ListBuyers200Response {
|
|
75
|
+
return ListBuyers200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ListBuyers200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListBuyers200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(AdminBuyerListItemDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ListBuyers200ResponseToJSON(json: any): ListBuyers200Response {
|
|
91
|
+
return ListBuyers200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ListBuyers200ResponseToJSONTyped(value?: ListBuyers200Response | 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(AdminBuyerListItemDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -58,6 +58,7 @@ export * from './AdminBankDepositAccountDto';
|
|
|
58
58
|
export * from './AdminBankDepositDto';
|
|
59
59
|
export * from './AdminBankDepositInvoiceDto';
|
|
60
60
|
export * from './AdminBankDepositInvoiceTransactionDto';
|
|
61
|
+
export * from './AdminBuyerListItemDto';
|
|
61
62
|
export * from './AdminBuyerLoginDto';
|
|
62
63
|
export * from './AdminChallengeListDto';
|
|
63
64
|
export * from './AdminChallengeListItemDto';
|
|
@@ -390,6 +391,7 @@ export * from './ListAuctions200Response';
|
|
|
390
391
|
export * from './ListBankAccounts200Response';
|
|
391
392
|
export * from './ListBankDeposits200Response';
|
|
392
393
|
export * from './ListBuyerNotifications200Response';
|
|
394
|
+
export * from './ListBuyers200Response';
|
|
393
395
|
export * from './ListCustomerSuccessAccountDomains200Response';
|
|
394
396
|
export * from './ListCustomerSuccessAccounts200Response';
|
|
395
397
|
export * from './ListDomains200Response';
|