@randock/nameshift-api-client 0.0.413 → 0.0.415
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 +4 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +26 -1
- package/dist/apis/AdminApi.js +114 -0
- package/dist/models/AdminLeadListItemBuyerDto.d.ts +68 -0
- package/dist/models/AdminLeadListItemBuyerDto.js +75 -0
- package/dist/models/AdminLeadListItemDomainDto.d.ts +44 -0
- package/dist/models/AdminLeadListItemDomainDto.js +59 -0
- package/dist/models/AdminLeadListItemDto.d.ts +181 -0
- package/dist/models/AdminLeadListItemDto.js +164 -0
- package/dist/models/ListLeads200Response.d.ts +47 -0
- package/dist/models/ListLeads200Response.js +62 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +104 -0
- package/src/models/AdminLeadListItemBuyerDto.ts +120 -0
- package/src/models/AdminLeadListItemDomainDto.ts +84 -0
- package/src/models/AdminLeadListItemDto.ts +295 -0
- package/src/models/ListLeads200Response.ts +106 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -87,6 +87,9 @@ src/models/AdminCompanyStatsDto.ts
|
|
|
87
87
|
src/models/AdminCompanyStatsLedger.ts
|
|
88
88
|
src/models/AdminDashboardStatsDto.ts
|
|
89
89
|
src/models/AdminGetAllDomainTransfers200Response.ts
|
|
90
|
+
src/models/AdminLeadListItemBuyerDto.ts
|
|
91
|
+
src/models/AdminLeadListItemDomainDto.ts
|
|
92
|
+
src/models/AdminLeadListItemDto.ts
|
|
90
93
|
src/models/AdminListAccountDto.ts
|
|
91
94
|
src/models/AdminVerificationDepositDto.ts
|
|
92
95
|
src/models/AffiliatesStatsDto.ts
|
|
@@ -317,6 +320,7 @@ src/models/ListBuyerNotifications200Response.ts
|
|
|
317
320
|
src/models/ListDomains200Response.ts
|
|
318
321
|
src/models/ListDomainsWithUpdatedPricing200Response.ts
|
|
319
322
|
src/models/ListLeadMessagesDto.ts
|
|
323
|
+
src/models/ListLeads200Response.ts
|
|
320
324
|
src/models/ListLeadsResultItem.ts
|
|
321
325
|
src/models/ListNotifications200Response.ts
|
|
322
326
|
src/models/ListRelatedLeads200Response.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.415
|
|
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.415 --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
|
+
8dc80f184da4876a67baf09c6358b2a23f6d32aa7fd2bfed29a93b06b1af6d46b6b2296bd0d1029a908f1bd1a4f88231
|
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, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
13
|
+
import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminDeleteAuctionRequest {
|
|
15
15
|
auctionId: string;
|
|
16
16
|
}
|
|
@@ -150,6 +150,12 @@ export interface AdminApiListDomainsRequest {
|
|
|
150
150
|
limit?: number;
|
|
151
151
|
sortBy?: Array<string>;
|
|
152
152
|
}
|
|
153
|
+
export interface AdminApiListLeadsRequest {
|
|
154
|
+
filter?: object;
|
|
155
|
+
page?: number;
|
|
156
|
+
limit?: number;
|
|
157
|
+
sortBy?: Array<string>;
|
|
158
|
+
}
|
|
153
159
|
export interface AdminApiListLedgerMutationsRequest {
|
|
154
160
|
ledgerId: string;
|
|
155
161
|
page: number;
|
|
@@ -180,6 +186,9 @@ export interface AdminApiPostAdminExecuteDomainTransferStepActionRequest {
|
|
|
180
186
|
export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
|
|
181
187
|
sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
|
|
182
188
|
}
|
|
189
|
+
export interface AdminApiPurgeDomainCdnCacheRequest {
|
|
190
|
+
domainId: string;
|
|
191
|
+
}
|
|
183
192
|
export interface AdminApiRemoveDomainLockRequest {
|
|
184
193
|
domainId: string;
|
|
185
194
|
lockId: string;
|
|
@@ -507,6 +516,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
507
516
|
*
|
|
508
517
|
*/
|
|
509
518
|
listDomains(requestParameters?: AdminApiListDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDomains200Response>;
|
|
519
|
+
/**
|
|
520
|
+
*
|
|
521
|
+
*/
|
|
522
|
+
listLeadsRaw(requestParameters: AdminApiListLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListLeads200Response>>;
|
|
523
|
+
/**
|
|
524
|
+
*
|
|
525
|
+
*/
|
|
526
|
+
listLeads(requestParameters?: AdminApiListLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListLeads200Response>;
|
|
510
527
|
/**
|
|
511
528
|
*
|
|
512
529
|
*/
|
|
@@ -571,6 +588,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
571
588
|
*
|
|
572
589
|
*/
|
|
573
590
|
postAiPriceNegotiatorAgentChatMessage(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LeadMessageDto>>;
|
|
591
|
+
/**
|
|
592
|
+
*
|
|
593
|
+
*/
|
|
594
|
+
purgeDomainCdnCacheRaw(requestParameters: AdminApiPurgeDomainCdnCacheRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
595
|
+
/**
|
|
596
|
+
*
|
|
597
|
+
*/
|
|
598
|
+
purgeDomainCdnCache(requestParameters: AdminApiPurgeDomainCdnCacheRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
574
599
|
/**
|
|
575
600
|
*
|
|
576
601
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -2089,6 +2089,69 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
2089
2089
|
});
|
|
2090
2090
|
});
|
|
2091
2091
|
};
|
|
2092
|
+
/**
|
|
2093
|
+
*
|
|
2094
|
+
*/
|
|
2095
|
+
AdminApi.prototype.listLeadsRaw = function (requestParameters, initOverrides) {
|
|
2096
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2097
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
2098
|
+
return __generator(this, function (_a) {
|
|
2099
|
+
switch (_a.label) {
|
|
2100
|
+
case 0:
|
|
2101
|
+
queryParameters = {};
|
|
2102
|
+
if (requestParameters['filter'] != null) {
|
|
2103
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
2104
|
+
}
|
|
2105
|
+
if (requestParameters['page'] != null) {
|
|
2106
|
+
queryParameters['page'] = requestParameters['page'];
|
|
2107
|
+
}
|
|
2108
|
+
if (requestParameters['limit'] != null) {
|
|
2109
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
2110
|
+
}
|
|
2111
|
+
if (requestParameters['sortBy'] != null) {
|
|
2112
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
2113
|
+
}
|
|
2114
|
+
headerParameters = {};
|
|
2115
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2116
|
+
token = this.configuration.accessToken;
|
|
2117
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
2118
|
+
case 1:
|
|
2119
|
+
tokenString = _a.sent();
|
|
2120
|
+
if (tokenString) {
|
|
2121
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2122
|
+
}
|
|
2123
|
+
_a.label = 2;
|
|
2124
|
+
case 2: return [4 /*yield*/, this.request({
|
|
2125
|
+
path: "/admin/leads",
|
|
2126
|
+
method: 'GET',
|
|
2127
|
+
headers: headerParameters,
|
|
2128
|
+
query: queryParameters,
|
|
2129
|
+
}, initOverrides)];
|
|
2130
|
+
case 3:
|
|
2131
|
+
response = _a.sent();
|
|
2132
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListLeads200ResponseFromJSON)(jsonValue); })];
|
|
2133
|
+
}
|
|
2134
|
+
});
|
|
2135
|
+
});
|
|
2136
|
+
};
|
|
2137
|
+
/**
|
|
2138
|
+
*
|
|
2139
|
+
*/
|
|
2140
|
+
AdminApi.prototype.listLeads = function () {
|
|
2141
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
2142
|
+
var response;
|
|
2143
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2144
|
+
return __generator(this, function (_a) {
|
|
2145
|
+
switch (_a.label) {
|
|
2146
|
+
case 0: return [4 /*yield*/, this.listLeadsRaw(requestParameters, initOverrides)];
|
|
2147
|
+
case 1:
|
|
2148
|
+
response = _a.sent();
|
|
2149
|
+
return [4 /*yield*/, response.value()];
|
|
2150
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
2151
|
+
}
|
|
2152
|
+
});
|
|
2153
|
+
});
|
|
2154
|
+
};
|
|
2092
2155
|
/**
|
|
2093
2156
|
*
|
|
2094
2157
|
*/
|
|
@@ -2534,6 +2597,57 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
2534
2597
|
});
|
|
2535
2598
|
});
|
|
2536
2599
|
};
|
|
2600
|
+
/**
|
|
2601
|
+
*
|
|
2602
|
+
*/
|
|
2603
|
+
AdminApi.prototype.purgeDomainCdnCacheRaw = function (requestParameters, initOverrides) {
|
|
2604
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2605
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
2606
|
+
return __generator(this, function (_a) {
|
|
2607
|
+
switch (_a.label) {
|
|
2608
|
+
case 0:
|
|
2609
|
+
if (requestParameters['domainId'] == null) {
|
|
2610
|
+
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling purgeDomainCdnCache().');
|
|
2611
|
+
}
|
|
2612
|
+
queryParameters = {};
|
|
2613
|
+
headerParameters = {};
|
|
2614
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2615
|
+
token = this.configuration.accessToken;
|
|
2616
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
2617
|
+
case 1:
|
|
2618
|
+
tokenString = _a.sent();
|
|
2619
|
+
if (tokenString) {
|
|
2620
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2621
|
+
}
|
|
2622
|
+
_a.label = 2;
|
|
2623
|
+
case 2: return [4 /*yield*/, this.request({
|
|
2624
|
+
path: "/admin/domains/{domainId}/purge-cdn-cache".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
2625
|
+
method: 'POST',
|
|
2626
|
+
headers: headerParameters,
|
|
2627
|
+
query: queryParameters,
|
|
2628
|
+
}, initOverrides)];
|
|
2629
|
+
case 3:
|
|
2630
|
+
response = _a.sent();
|
|
2631
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
2632
|
+
}
|
|
2633
|
+
});
|
|
2634
|
+
});
|
|
2635
|
+
};
|
|
2636
|
+
/**
|
|
2637
|
+
*
|
|
2638
|
+
*/
|
|
2639
|
+
AdminApi.prototype.purgeDomainCdnCache = function (requestParameters, initOverrides) {
|
|
2640
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2641
|
+
return __generator(this, function (_a) {
|
|
2642
|
+
switch (_a.label) {
|
|
2643
|
+
case 0: return [4 /*yield*/, this.purgeDomainCdnCacheRaw(requestParameters, initOverrides)];
|
|
2644
|
+
case 1:
|
|
2645
|
+
_a.sent();
|
|
2646
|
+
return [2 /*return*/];
|
|
2647
|
+
}
|
|
2648
|
+
});
|
|
2649
|
+
});
|
|
2650
|
+
};
|
|
2537
2651
|
/**
|
|
2538
2652
|
*
|
|
2539
2653
|
*/
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
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 AdminLeadListItemBuyerDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminLeadListItemBuyerDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminLeadListItemBuyerDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminLeadListItemBuyerDto
|
|
28
|
+
*/
|
|
29
|
+
ipCountryCode: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminLeadListItemBuyerDto
|
|
34
|
+
*/
|
|
35
|
+
companyName: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AdminLeadListItemBuyerDto
|
|
40
|
+
*/
|
|
41
|
+
phoneNumber: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AdminLeadListItemBuyerDto
|
|
46
|
+
*/
|
|
47
|
+
initials: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof AdminLeadListItemBuyerDto
|
|
52
|
+
*/
|
|
53
|
+
name: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AdminLeadListItemBuyerDto
|
|
58
|
+
*/
|
|
59
|
+
email: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the AdminLeadListItemBuyerDto interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfAdminLeadListItemBuyerDto(value: object): value is AdminLeadListItemBuyerDto;
|
|
65
|
+
export declare function AdminLeadListItemBuyerDtoFromJSON(json: any): AdminLeadListItemBuyerDto;
|
|
66
|
+
export declare function AdminLeadListItemBuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminLeadListItemBuyerDto;
|
|
67
|
+
export declare function AdminLeadListItemBuyerDtoToJSON(json: any): AdminLeadListItemBuyerDto;
|
|
68
|
+
export declare function AdminLeadListItemBuyerDtoToJSONTyped(value?: AdminLeadListItemBuyerDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
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.instanceOfAdminLeadListItemBuyerDto = instanceOfAdminLeadListItemBuyerDto;
|
|
17
|
+
exports.AdminLeadListItemBuyerDtoFromJSON = AdminLeadListItemBuyerDtoFromJSON;
|
|
18
|
+
exports.AdminLeadListItemBuyerDtoFromJSONTyped = AdminLeadListItemBuyerDtoFromJSONTyped;
|
|
19
|
+
exports.AdminLeadListItemBuyerDtoToJSON = AdminLeadListItemBuyerDtoToJSON;
|
|
20
|
+
exports.AdminLeadListItemBuyerDtoToJSONTyped = AdminLeadListItemBuyerDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminLeadListItemBuyerDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminLeadListItemBuyerDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('ipCountryCode' in value) || value['ipCountryCode'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('companyName' in value) || value['companyName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('initials' in value) || value['initials'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function AdminLeadListItemBuyerDtoFromJSON(json) {
|
|
42
|
+
return AdminLeadListItemBuyerDtoFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AdminLeadListItemBuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'ipCountryCode': json['ipCountryCode'],
|
|
51
|
+
'companyName': json['companyName'],
|
|
52
|
+
'phoneNumber': json['phoneNumber'],
|
|
53
|
+
'initials': json['initials'],
|
|
54
|
+
'name': json['name'],
|
|
55
|
+
'email': json['email'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function AdminLeadListItemBuyerDtoToJSON(json) {
|
|
59
|
+
return AdminLeadListItemBuyerDtoToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function AdminLeadListItemBuyerDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
62
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'id': value['id'],
|
|
68
|
+
'ipCountryCode': value['ipCountryCode'],
|
|
69
|
+
'companyName': value['companyName'],
|
|
70
|
+
'phoneNumber': value['phoneNumber'],
|
|
71
|
+
'initials': value['initials'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
'email': value['email'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
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 AdminLeadListItemDomainDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminLeadListItemDomainDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminLeadListItemDomainDto
|
|
22
|
+
*/
|
|
23
|
+
tld: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminLeadListItemDomainDto
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminLeadListItemDomainDto
|
|
34
|
+
*/
|
|
35
|
+
displayName: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AdminLeadListItemDomainDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAdminLeadListItemDomainDto(value: object): value is AdminLeadListItemDomainDto;
|
|
41
|
+
export declare function AdminLeadListItemDomainDtoFromJSON(json: any): AdminLeadListItemDomainDto;
|
|
42
|
+
export declare function AdminLeadListItemDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminLeadListItemDomainDto;
|
|
43
|
+
export declare function AdminLeadListItemDomainDtoToJSON(json: any): AdminLeadListItemDomainDto;
|
|
44
|
+
export declare function AdminLeadListItemDomainDtoToJSONTyped(value?: AdminLeadListItemDomainDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
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.instanceOfAdminLeadListItemDomainDto = instanceOfAdminLeadListItemDomainDto;
|
|
17
|
+
exports.AdminLeadListItemDomainDtoFromJSON = AdminLeadListItemDomainDtoFromJSON;
|
|
18
|
+
exports.AdminLeadListItemDomainDtoFromJSONTyped = AdminLeadListItemDomainDtoFromJSONTyped;
|
|
19
|
+
exports.AdminLeadListItemDomainDtoToJSON = AdminLeadListItemDomainDtoToJSON;
|
|
20
|
+
exports.AdminLeadListItemDomainDtoToJSONTyped = AdminLeadListItemDomainDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminLeadListItemDomainDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminLeadListItemDomainDto(value) {
|
|
25
|
+
if (!('tld' in value) || value['tld'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AdminLeadListItemDomainDtoFromJSON(json) {
|
|
34
|
+
return AdminLeadListItemDomainDtoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AdminLeadListItemDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'tld': json['tld'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'displayName': json['displayName'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function AdminLeadListItemDomainDtoToJSON(json) {
|
|
47
|
+
return AdminLeadListItemDomainDtoToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AdminLeadListItemDomainDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'tld': value['tld'],
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'displayName': value['displayName'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
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 { MoneyDto } from './MoneyDto';
|
|
13
|
+
import type { AdminLeadListItemBuyerDto } from './AdminLeadListItemBuyerDto';
|
|
14
|
+
import type { AdminLeadListItemDomainDto } from './AdminLeadListItemDomainDto';
|
|
15
|
+
import type { AccountDto } from './AccountDto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AdminLeadListItemDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AdminLeadListItemDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AdminLeadListItemDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AdminLeadListItemDto
|
|
32
|
+
*/
|
|
33
|
+
status: AdminLeadListItemDtoStatusEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AdminLeadListItemDto
|
|
38
|
+
*/
|
|
39
|
+
source: AdminLeadListItemDtoSourceEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AdminLeadListItemDto
|
|
44
|
+
*/
|
|
45
|
+
manualType: AdminLeadListItemDtoManualTypeEnum | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {MoneyDto}
|
|
49
|
+
* @memberof AdminLeadListItemDto
|
|
50
|
+
*/
|
|
51
|
+
lastOffer: MoneyDto | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof AdminLeadListItemDto
|
|
56
|
+
*/
|
|
57
|
+
lastOfferBy: AdminLeadListItemDtoLastOfferByEnum | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof AdminLeadListItemDto
|
|
62
|
+
*/
|
|
63
|
+
lastOfferType: AdminLeadListItemDtoLastOfferTypeEnum | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {AccountDto}
|
|
67
|
+
* @memberof AdminLeadListItemDto
|
|
68
|
+
*/
|
|
69
|
+
account: AccountDto;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof AdminLeadListItemDto
|
|
74
|
+
*/
|
|
75
|
+
createdAt: Date;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Date}
|
|
79
|
+
* @memberof AdminLeadListItemDto
|
|
80
|
+
*/
|
|
81
|
+
updatedAt: Date;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof AdminLeadListItemDto
|
|
86
|
+
*/
|
|
87
|
+
archivedForSeller: boolean;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof AdminLeadListItemDto
|
|
92
|
+
*/
|
|
93
|
+
unreadBuyerMessagesNumber: number;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof AdminLeadListItemDto
|
|
98
|
+
*/
|
|
99
|
+
unreadSellerMessagesNumber: number;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {Date}
|
|
103
|
+
* @memberof AdminLeadListItemDto
|
|
104
|
+
*/
|
|
105
|
+
acceptedAt: Date | null;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {Date}
|
|
109
|
+
* @memberof AdminLeadListItemDto
|
|
110
|
+
*/
|
|
111
|
+
closedAt: Date | null;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {AdminLeadListItemDomainDto}
|
|
115
|
+
* @memberof AdminLeadListItemDto
|
|
116
|
+
*/
|
|
117
|
+
domain: AdminLeadListItemDomainDto;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {AdminLeadListItemBuyerDto}
|
|
121
|
+
* @memberof AdminLeadListItemDto
|
|
122
|
+
*/
|
|
123
|
+
buyer: AdminLeadListItemBuyerDto;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* @export
|
|
127
|
+
*/
|
|
128
|
+
export declare const AdminLeadListItemDtoStatusEnum: {
|
|
129
|
+
readonly UNVERIFIED: "unverified";
|
|
130
|
+
readonly ACTIVE: "active";
|
|
131
|
+
readonly ACCEPTED: "accepted";
|
|
132
|
+
readonly FINISHED: "finished";
|
|
133
|
+
readonly CLOSED: "closed";
|
|
134
|
+
};
|
|
135
|
+
export type AdminLeadListItemDtoStatusEnum = typeof AdminLeadListItemDtoStatusEnum[keyof typeof AdminLeadListItemDtoStatusEnum];
|
|
136
|
+
/**
|
|
137
|
+
* @export
|
|
138
|
+
*/
|
|
139
|
+
export declare const AdminLeadListItemDtoSourceEnum: {
|
|
140
|
+
readonly NAMESHIFT_HOSTED: "nameshift_hosted";
|
|
141
|
+
readonly SELLER_IMPORTED: "seller_imported";
|
|
142
|
+
};
|
|
143
|
+
export type AdminLeadListItemDtoSourceEnum = typeof AdminLeadListItemDtoSourceEnum[keyof typeof AdminLeadListItemDtoSourceEnum];
|
|
144
|
+
/**
|
|
145
|
+
* @export
|
|
146
|
+
*/
|
|
147
|
+
export declare const AdminLeadListItemDtoManualTypeEnum: {
|
|
148
|
+
readonly BUY_NOW: "buy_now";
|
|
149
|
+
readonly OFFER: "offer";
|
|
150
|
+
readonly LEASE_TO_OWN: "lease_to_own";
|
|
151
|
+
readonly RENT: "rent";
|
|
152
|
+
};
|
|
153
|
+
export type AdminLeadListItemDtoManualTypeEnum = typeof AdminLeadListItemDtoManualTypeEnum[keyof typeof AdminLeadListItemDtoManualTypeEnum];
|
|
154
|
+
/**
|
|
155
|
+
* @export
|
|
156
|
+
*/
|
|
157
|
+
export declare const AdminLeadListItemDtoLastOfferByEnum: {
|
|
158
|
+
readonly BUYER: "buyer";
|
|
159
|
+
readonly SELLER: "seller";
|
|
160
|
+
readonly AI: "ai";
|
|
161
|
+
readonly ADMIN: "admin";
|
|
162
|
+
};
|
|
163
|
+
export type AdminLeadListItemDtoLastOfferByEnum = typeof AdminLeadListItemDtoLastOfferByEnum[keyof typeof AdminLeadListItemDtoLastOfferByEnum];
|
|
164
|
+
/**
|
|
165
|
+
* @export
|
|
166
|
+
*/
|
|
167
|
+
export declare const AdminLeadListItemDtoLastOfferTypeEnum: {
|
|
168
|
+
readonly LEAD: "lead";
|
|
169
|
+
readonly LEASE_TO_OWN: "lease_to_own";
|
|
170
|
+
readonly RENT: "rent";
|
|
171
|
+
readonly AUCTION: "auction";
|
|
172
|
+
};
|
|
173
|
+
export type AdminLeadListItemDtoLastOfferTypeEnum = typeof AdminLeadListItemDtoLastOfferTypeEnum[keyof typeof AdminLeadListItemDtoLastOfferTypeEnum];
|
|
174
|
+
/**
|
|
175
|
+
* Check if a given object implements the AdminLeadListItemDto interface.
|
|
176
|
+
*/
|
|
177
|
+
export declare function instanceOfAdminLeadListItemDto(value: object): value is AdminLeadListItemDto;
|
|
178
|
+
export declare function AdminLeadListItemDtoFromJSON(json: any): AdminLeadListItemDto;
|
|
179
|
+
export declare function AdminLeadListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminLeadListItemDto;
|
|
180
|
+
export declare function AdminLeadListItemDtoToJSON(json: any): AdminLeadListItemDto;
|
|
181
|
+
export declare function AdminLeadListItemDtoToJSONTyped(value?: AdminLeadListItemDto | null, ignoreDiscriminator?: boolean): any;
|