@randock/nameshift-api-client 0.0.393 → 0.0.395
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 +3 -0
- package/README.md +3 -3
- package/dist/apis/LeadsApi.d.ts +16 -1
- package/dist/apis/LeadsApi.js +65 -0
- package/dist/models/DomainCategoryItemDto.d.ts +50 -0
- package/dist/models/DomainCategoryItemDto.js +63 -0
- package/dist/models/DomainPricesChangeDto.d.ts +7 -0
- package/dist/models/DomainPricesChangeDto.js +5 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/ListRelatedLeads200Response.d.ts +47 -0
- package/dist/models/ListRelatedLeads200Response.js +62 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/RelatedLeadDto.d.ts +84 -0
- package/dist/models/RelatedLeadDto.js +92 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/LeadsApi.ts +68 -0
- package/src/models/DomainCategoryItemDto.ts +93 -0
- package/src/models/DomainPricesChangeDto.ts +16 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/ListRelatedLeads200Response.ts +106 -0
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/RelatedLeadDto.ts +144 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -195,6 +195,7 @@ src/models/CursorBasedPageInfo.ts
|
|
|
195
195
|
src/models/CursorBasedPaginationResponse.ts
|
|
196
196
|
src/models/DeleteDomainsInput.ts
|
|
197
197
|
src/models/DomainAuctionDto.ts
|
|
198
|
+
src/models/DomainCategoryItemDto.ts
|
|
198
199
|
src/models/DomainExchangeRateDto.ts
|
|
199
200
|
src/models/DomainFiltersDto.ts
|
|
200
201
|
src/models/DomainLeadPriceNegotiatorAiAgentConfigurationDto.ts
|
|
@@ -316,6 +317,7 @@ src/models/ListDomainsWithUpdatedPricing200Response.ts
|
|
|
316
317
|
src/models/ListLeadMessagesDto.ts
|
|
317
318
|
src/models/ListLeadsResultItem.ts
|
|
318
319
|
src/models/ListNotifications200Response.ts
|
|
320
|
+
src/models/ListRelatedLeads200Response.ts
|
|
319
321
|
src/models/LockConfigurationInput.ts
|
|
320
322
|
src/models/LockDurationDto.ts
|
|
321
323
|
src/models/LockDurationInput.ts
|
|
@@ -370,6 +372,7 @@ src/models/RegisterAccountPortfolioSizeInput.ts
|
|
|
370
372
|
src/models/RegisterAuctionBuyerPhoneInput.ts
|
|
371
373
|
src/models/RegisterInput.ts
|
|
372
374
|
src/models/RelatedDomainsDto.ts
|
|
375
|
+
src/models/RelatedLeadDto.ts
|
|
373
376
|
src/models/RelatedSellerDomain.ts
|
|
374
377
|
src/models/RemoveSubscriptionDomainRecordInput.ts
|
|
375
378
|
src/models/RentConfigurationDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.395
|
|
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.395 --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
|
+
ea353a14548b68259ed9f7902ef5bad1642b9d6fc4548a656eb1cfe7ded122e3161e656d00e5ca54513b3f98262038c2
|
package/dist/apis/LeadsApi.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 { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadOfferExpirationConfigurationInput, List200Response, ListLeadMessagesDto, LockConfigurationInput, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
|
|
13
|
+
import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadOfferExpirationConfigurationInput, List200Response, ListLeadMessagesDto, ListRelatedLeads200Response, LockConfigurationInput, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
|
|
14
14
|
export interface LeadsApiAcceptLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
@@ -46,6 +46,13 @@ export interface LeadsApiListRequest {
|
|
|
46
46
|
limit?: number;
|
|
47
47
|
sortBy?: Array<string>;
|
|
48
48
|
}
|
|
49
|
+
export interface LeadsApiListRelatedLeadsRequest {
|
|
50
|
+
leadId: string;
|
|
51
|
+
filter?: object;
|
|
52
|
+
page?: number;
|
|
53
|
+
limit?: number;
|
|
54
|
+
sortBy?: Array<string>;
|
|
55
|
+
}
|
|
49
56
|
export interface LeadsApiPauseLeadPriceNegotiatorAgentRequest {
|
|
50
57
|
leadId: string;
|
|
51
58
|
}
|
|
@@ -163,6 +170,14 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
163
170
|
*
|
|
164
171
|
*/
|
|
165
172
|
list(requestParameters?: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response>;
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
*/
|
|
176
|
+
listRelatedLeadsRaw(requestParameters: LeadsApiListRelatedLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListRelatedLeads200Response>>;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
listRelatedLeads(requestParameters: LeadsApiListRelatedLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListRelatedLeads200Response>;
|
|
166
181
|
/**
|
|
167
182
|
*
|
|
168
183
|
*/
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -667,6 +667,71 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
667
667
|
});
|
|
668
668
|
});
|
|
669
669
|
};
|
|
670
|
+
/**
|
|
671
|
+
*
|
|
672
|
+
*/
|
|
673
|
+
LeadsApi.prototype.listRelatedLeadsRaw = function (requestParameters, initOverrides) {
|
|
674
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
675
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
676
|
+
return __generator(this, function (_a) {
|
|
677
|
+
switch (_a.label) {
|
|
678
|
+
case 0:
|
|
679
|
+
if (requestParameters['leadId'] == null) {
|
|
680
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling listRelatedLeads().');
|
|
681
|
+
}
|
|
682
|
+
queryParameters = {};
|
|
683
|
+
if (requestParameters['filter'] != null) {
|
|
684
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
685
|
+
}
|
|
686
|
+
if (requestParameters['page'] != null) {
|
|
687
|
+
queryParameters['page'] = requestParameters['page'];
|
|
688
|
+
}
|
|
689
|
+
if (requestParameters['limit'] != null) {
|
|
690
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
691
|
+
}
|
|
692
|
+
if (requestParameters['sortBy'] != null) {
|
|
693
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
694
|
+
}
|
|
695
|
+
headerParameters = {};
|
|
696
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
697
|
+
token = this.configuration.accessToken;
|
|
698
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
699
|
+
case 1:
|
|
700
|
+
tokenString = _a.sent();
|
|
701
|
+
if (tokenString) {
|
|
702
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
703
|
+
}
|
|
704
|
+
_a.label = 2;
|
|
705
|
+
case 2: return [4 /*yield*/, this.request({
|
|
706
|
+
path: "/private/leads/{leadId}/related".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
707
|
+
method: 'GET',
|
|
708
|
+
headers: headerParameters,
|
|
709
|
+
query: queryParameters,
|
|
710
|
+
}, initOverrides)];
|
|
711
|
+
case 3:
|
|
712
|
+
response = _a.sent();
|
|
713
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListRelatedLeads200ResponseFromJSON)(jsonValue); })];
|
|
714
|
+
}
|
|
715
|
+
});
|
|
716
|
+
});
|
|
717
|
+
};
|
|
718
|
+
/**
|
|
719
|
+
*
|
|
720
|
+
*/
|
|
721
|
+
LeadsApi.prototype.listRelatedLeads = function (requestParameters, initOverrides) {
|
|
722
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
723
|
+
var response;
|
|
724
|
+
return __generator(this, function (_a) {
|
|
725
|
+
switch (_a.label) {
|
|
726
|
+
case 0: return [4 /*yield*/, this.listRelatedLeadsRaw(requestParameters, initOverrides)];
|
|
727
|
+
case 1:
|
|
728
|
+
response = _a.sent();
|
|
729
|
+
return [4 /*yield*/, response.value()];
|
|
730
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
731
|
+
}
|
|
732
|
+
});
|
|
733
|
+
});
|
|
734
|
+
};
|
|
670
735
|
/**
|
|
671
736
|
*
|
|
672
737
|
*/
|
|
@@ -0,0 +1,50 @@
|
|
|
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 DomainCategoryItemDto
|
|
16
|
+
*/
|
|
17
|
+
export interface DomainCategoryItemDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DomainCategoryItemDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DomainCategoryItemDto
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DomainCategoryItemDto
|
|
34
|
+
*/
|
|
35
|
+
subId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof DomainCategoryItemDto
|
|
40
|
+
*/
|
|
41
|
+
subName: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the DomainCategoryItemDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfDomainCategoryItemDto(value: object): value is DomainCategoryItemDto;
|
|
47
|
+
export declare function DomainCategoryItemDtoFromJSON(json: any): DomainCategoryItemDto;
|
|
48
|
+
export declare function DomainCategoryItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainCategoryItemDto;
|
|
49
|
+
export declare function DomainCategoryItemDtoToJSON(json: any): DomainCategoryItemDto;
|
|
50
|
+
export declare function DomainCategoryItemDtoToJSONTyped(value?: DomainCategoryItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfDomainCategoryItemDto = instanceOfDomainCategoryItemDto;
|
|
17
|
+
exports.DomainCategoryItemDtoFromJSON = DomainCategoryItemDtoFromJSON;
|
|
18
|
+
exports.DomainCategoryItemDtoFromJSONTyped = DomainCategoryItemDtoFromJSONTyped;
|
|
19
|
+
exports.DomainCategoryItemDtoToJSON = DomainCategoryItemDtoToJSON;
|
|
20
|
+
exports.DomainCategoryItemDtoToJSONTyped = DomainCategoryItemDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DomainCategoryItemDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDomainCategoryItemDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('subId' in value) || value['subId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('subName' in value) || value['subName'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function DomainCategoryItemDtoFromJSON(json) {
|
|
36
|
+
return DomainCategoryItemDtoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function DomainCategoryItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'subId': json['sub_id'],
|
|
46
|
+
'subName': json['sub_name'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function DomainCategoryItemDtoToJSON(json) {
|
|
50
|
+
return DomainCategoryItemDtoToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function DomainCategoryItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'sub_id': value['subId'],
|
|
61
|
+
'sub_name': value['subName'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
import type { DomainCategoryItemDto } from './DomainCategoryItemDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -22,6 +23,12 @@ export interface DomainPricesChangeDto {
|
|
|
22
23
|
* @memberof DomainPricesChangeDto
|
|
23
24
|
*/
|
|
24
25
|
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Categories of the domain (parent + subcategory)
|
|
28
|
+
* @type {Array<DomainCategoryItemDto>}
|
|
29
|
+
* @memberof DomainPricesChangeDto
|
|
30
|
+
*/
|
|
31
|
+
categories: Array<DomainCategoryItemDto>;
|
|
25
32
|
/**
|
|
26
33
|
* The ASCII domain name (example.com, xn--maana-pta.com)
|
|
27
34
|
* @type {string}
|
|
@@ -19,12 +19,15 @@ exports.DomainPricesChangeDtoFromJSONTyped = DomainPricesChangeDtoFromJSONTyped;
|
|
|
19
19
|
exports.DomainPricesChangeDtoToJSON = DomainPricesChangeDtoToJSON;
|
|
20
20
|
exports.DomainPricesChangeDtoToJSONTyped = DomainPricesChangeDtoToJSONTyped;
|
|
21
21
|
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
var DomainCategoryItemDto_1 = require("./DomainCategoryItemDto");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the DomainPricesChangeDto interface.
|
|
24
25
|
*/
|
|
25
26
|
function instanceOfDomainPricesChangeDto(value) {
|
|
26
27
|
if (!('id' in value) || value['id'] === undefined)
|
|
27
28
|
return false;
|
|
29
|
+
if (!('categories' in value) || value['categories'] === undefined)
|
|
30
|
+
return false;
|
|
28
31
|
if (!('name' in value) || value['name'] === undefined)
|
|
29
32
|
return false;
|
|
30
33
|
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
@@ -48,6 +51,7 @@ function DomainPricesChangeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
51
|
}
|
|
49
52
|
return {
|
|
50
53
|
'id': json['id'],
|
|
54
|
+
'categories': (json['categories'].map(DomainCategoryItemDto_1.DomainCategoryItemDtoFromJSON)),
|
|
51
55
|
'name': json['name'],
|
|
52
56
|
'displayName': json['displayName'],
|
|
53
57
|
'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
@@ -66,6 +70,7 @@ function DomainPricesChangeDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
66
70
|
}
|
|
67
71
|
return {
|
|
68
72
|
'id': value['id'],
|
|
73
|
+
'categories': (value['categories'].map(DomainCategoryItemDto_1.DomainCategoryItemDtoToJSON)),
|
|
69
74
|
'name': value['name'],
|
|
70
75
|
'displayName': value['displayName'],
|
|
71
76
|
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
@@ -81,6 +81,7 @@ export declare const FeatureFlagListItemDtoNameEnum: {
|
|
|
81
81
|
readonly BUYER_DOMAIN_DNS_PANEL: "BUYER_DOMAIN_DNS_PANEL";
|
|
82
82
|
readonly ACCOUNT_CHALLENGES: "ACCOUNT_CHALLENGES";
|
|
83
83
|
readonly ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: "ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE";
|
|
84
|
+
readonly UI_LEAD_LAYOUT_V2: "UI_LEAD_LAYOUT_V2";
|
|
84
85
|
};
|
|
85
86
|
export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
|
|
86
87
|
/**
|
|
@@ -41,7 +41,8 @@ exports.FeatureFlagListItemDtoNameEnum = {
|
|
|
41
41
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
42
42
|
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
43
43
|
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
44
|
-
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
44
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE',
|
|
45
|
+
UI_LEAD_LAYOUT_V2: 'UI_LEAD_LAYOUT_V2'
|
|
45
46
|
};
|
|
46
47
|
/**
|
|
47
48
|
* Check if a given object implements the FeatureFlagListItemDto interface.
|
|
@@ -124,6 +124,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
|
|
|
124
124
|
readonly BUYER_DOMAIN_DNS_PANEL: "BUYER_DOMAIN_DNS_PANEL";
|
|
125
125
|
readonly ACCOUNT_CHALLENGES: "ACCOUNT_CHALLENGES";
|
|
126
126
|
readonly ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: "ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE";
|
|
127
|
+
readonly UI_LEAD_LAYOUT_V2: "UI_LEAD_LAYOUT_V2";
|
|
127
128
|
};
|
|
128
129
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
129
130
|
/**
|
package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js
CHANGED
|
@@ -48,7 +48,8 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
|
|
|
48
48
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
49
49
|
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
50
50
|
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
51
|
-
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
51
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE',
|
|
52
|
+
UI_LEAD_LAYOUT_V2: 'UI_LEAD_LAYOUT_V2'
|
|
52
53
|
};
|
|
53
54
|
/**
|
|
54
55
|
* Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { RelatedLeadDto } from './RelatedLeadDto';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ListRelatedLeads200Response
|
|
19
|
+
*/
|
|
20
|
+
export interface ListRelatedLeads200Response {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<RelatedLeadDto>}
|
|
24
|
+
* @memberof ListRelatedLeads200Response
|
|
25
|
+
*/
|
|
26
|
+
data: Array<RelatedLeadDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof ListRelatedLeads200Response
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof ListRelatedLeads200Response
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ListRelatedLeads200Response interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfListRelatedLeads200Response(value: object): value is ListRelatedLeads200Response;
|
|
44
|
+
export declare function ListRelatedLeads200ResponseFromJSON(json: any): ListRelatedLeads200Response;
|
|
45
|
+
export declare function ListRelatedLeads200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListRelatedLeads200Response;
|
|
46
|
+
export declare function ListRelatedLeads200ResponseToJSON(json: any): ListRelatedLeads200Response;
|
|
47
|
+
export declare function ListRelatedLeads200ResponseToJSONTyped(value?: ListRelatedLeads200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfListRelatedLeads200Response = instanceOfListRelatedLeads200Response;
|
|
17
|
+
exports.ListRelatedLeads200ResponseFromJSON = ListRelatedLeads200ResponseFromJSON;
|
|
18
|
+
exports.ListRelatedLeads200ResponseFromJSONTyped = ListRelatedLeads200ResponseFromJSONTyped;
|
|
19
|
+
exports.ListRelatedLeads200ResponseToJSON = ListRelatedLeads200ResponseToJSON;
|
|
20
|
+
exports.ListRelatedLeads200ResponseToJSONTyped = ListRelatedLeads200ResponseToJSONTyped;
|
|
21
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
+
var RelatedLeadDto_1 = require("./RelatedLeadDto");
|
|
23
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ListRelatedLeads200Response interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfListRelatedLeads200Response(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 ListRelatedLeads200ResponseFromJSON(json) {
|
|
37
|
+
return ListRelatedLeads200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function ListRelatedLeads200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (json['data'].map(RelatedLeadDto_1.RelatedLeadDtoFromJSON)),
|
|
45
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ListRelatedLeads200ResponseToJSON(json) {
|
|
50
|
+
return ListRelatedLeads200ResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ListRelatedLeads200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'data': (value['data'].map(RelatedLeadDto_1.RelatedLeadDtoToJSON)),
|
|
59
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -130,6 +130,7 @@ export declare const PrivateAccountGetMeResponseEnabledFeaturesEnum: {
|
|
|
130
130
|
readonly BUYER_DOMAIN_DNS_PANEL: "BUYER_DOMAIN_DNS_PANEL";
|
|
131
131
|
readonly ACCOUNT_CHALLENGES: "ACCOUNT_CHALLENGES";
|
|
132
132
|
readonly ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: "ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE";
|
|
133
|
+
readonly UI_LEAD_LAYOUT_V2: "UI_LEAD_LAYOUT_V2";
|
|
133
134
|
};
|
|
134
135
|
export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
|
|
135
136
|
/**
|
|
@@ -48,7 +48,8 @@ exports.PrivateAccountGetMeResponseEnabledFeaturesEnum = {
|
|
|
48
48
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
49
49
|
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
50
50
|
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
51
|
-
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
51
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE',
|
|
52
|
+
UI_LEAD_LAYOUT_V2: 'UI_LEAD_LAYOUT_V2'
|
|
52
53
|
};
|
|
53
54
|
/**
|
|
54
55
|
* Check if a given object implements the PrivateAccountGetMeResponse interface.
|
|
@@ -0,0 +1,84 @@
|
|
|
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 { LeadOfferDto } from './LeadOfferDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RelatedLeadDto
|
|
17
|
+
*/
|
|
18
|
+
export interface RelatedLeadDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RelatedLeadDto
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof RelatedLeadDto
|
|
29
|
+
*/
|
|
30
|
+
status: RelatedLeadDtoStatusEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {LeadOfferDto}
|
|
34
|
+
* @memberof RelatedLeadDto
|
|
35
|
+
*/
|
|
36
|
+
lastSellerOffer: LeadOfferDto | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {LeadOfferDto}
|
|
40
|
+
* @memberof RelatedLeadDto
|
|
41
|
+
*/
|
|
42
|
+
lastBuyerOffer: LeadOfferDto | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof RelatedLeadDto
|
|
47
|
+
*/
|
|
48
|
+
lastOfferBy: RelatedLeadDtoLastOfferByEnum | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof RelatedLeadDto
|
|
53
|
+
*/
|
|
54
|
+
lastOfferDate: Date | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export declare const RelatedLeadDtoStatusEnum: {
|
|
60
|
+
readonly UNVERIFIED: "unverified";
|
|
61
|
+
readonly ACTIVE: "active";
|
|
62
|
+
readonly ACCEPTED: "accepted";
|
|
63
|
+
readonly FINISHED: "finished";
|
|
64
|
+
readonly CLOSED: "closed";
|
|
65
|
+
};
|
|
66
|
+
export type RelatedLeadDtoStatusEnum = typeof RelatedLeadDtoStatusEnum[keyof typeof RelatedLeadDtoStatusEnum];
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const RelatedLeadDtoLastOfferByEnum: {
|
|
71
|
+
readonly BUYER: "buyer";
|
|
72
|
+
readonly SELLER: "seller";
|
|
73
|
+
readonly AI: "ai";
|
|
74
|
+
readonly ADMIN: "admin";
|
|
75
|
+
};
|
|
76
|
+
export type RelatedLeadDtoLastOfferByEnum = typeof RelatedLeadDtoLastOfferByEnum[keyof typeof RelatedLeadDtoLastOfferByEnum];
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the RelatedLeadDto interface.
|
|
79
|
+
*/
|
|
80
|
+
export declare function instanceOfRelatedLeadDto(value: object): value is RelatedLeadDto;
|
|
81
|
+
export declare function RelatedLeadDtoFromJSON(json: any): RelatedLeadDto;
|
|
82
|
+
export declare function RelatedLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RelatedLeadDto;
|
|
83
|
+
export declare function RelatedLeadDtoToJSON(json: any): RelatedLeadDto;
|
|
84
|
+
export declare function RelatedLeadDtoToJSONTyped(value?: RelatedLeadDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,92 @@
|
|
|
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.RelatedLeadDtoLastOfferByEnum = exports.RelatedLeadDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfRelatedLeadDto = instanceOfRelatedLeadDto;
|
|
18
|
+
exports.RelatedLeadDtoFromJSON = RelatedLeadDtoFromJSON;
|
|
19
|
+
exports.RelatedLeadDtoFromJSONTyped = RelatedLeadDtoFromJSONTyped;
|
|
20
|
+
exports.RelatedLeadDtoToJSON = RelatedLeadDtoToJSON;
|
|
21
|
+
exports.RelatedLeadDtoToJSONTyped = RelatedLeadDtoToJSONTyped;
|
|
22
|
+
var LeadOfferDto_1 = require("./LeadOfferDto");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.RelatedLeadDtoStatusEnum = {
|
|
27
|
+
UNVERIFIED: 'unverified',
|
|
28
|
+
ACTIVE: 'active',
|
|
29
|
+
ACCEPTED: 'accepted',
|
|
30
|
+
FINISHED: 'finished',
|
|
31
|
+
CLOSED: 'closed'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
exports.RelatedLeadDtoLastOfferByEnum = {
|
|
37
|
+
BUYER: 'buyer',
|
|
38
|
+
SELLER: 'seller',
|
|
39
|
+
AI: 'ai',
|
|
40
|
+
ADMIN: 'admin'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the RelatedLeadDto interface.
|
|
44
|
+
*/
|
|
45
|
+
function instanceOfRelatedLeadDto(value) {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('lastOfferDate' in value) || value['lastOfferDate'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
function RelatedLeadDtoFromJSON(json) {
|
|
61
|
+
return RelatedLeadDtoFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function RelatedLeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': json['id'],
|
|
69
|
+
'status': json['status'],
|
|
70
|
+
'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastSellerOffer']),
|
|
71
|
+
'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastBuyerOffer']),
|
|
72
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
73
|
+
'lastOfferDate': (json['lastOfferDate'] == null ? null : new Date(json['lastOfferDate'])),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function RelatedLeadDtoToJSON(json) {
|
|
77
|
+
return RelatedLeadDtoToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
function RelatedLeadDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
80
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
'id': value['id'],
|
|
86
|
+
'status': value['status'],
|
|
87
|
+
'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastSellerOffer']),
|
|
88
|
+
'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastBuyerOffer']),
|
|
89
|
+
'lastOfferBy': value['lastOfferBy'],
|
|
90
|
+
'lastOfferDate': (value['lastOfferDate'] == null ? null : value['lastOfferDate'].toISOString()),
|
|
91
|
+
};
|
|
92
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -159,6 +159,7 @@ export * from './CursorBasedPageInfo';
|
|
|
159
159
|
export * from './CursorBasedPaginationResponse';
|
|
160
160
|
export * from './DeleteDomainsInput';
|
|
161
161
|
export * from './DomainAuctionDto';
|
|
162
|
+
export * from './DomainCategoryItemDto';
|
|
162
163
|
export * from './DomainExchangeRateDto';
|
|
163
164
|
export * from './DomainFiltersDto';
|
|
164
165
|
export * from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
|
|
@@ -280,6 +281,7 @@ export * from './ListDomainsWithUpdatedPricing200Response';
|
|
|
280
281
|
export * from './ListLeadMessagesDto';
|
|
281
282
|
export * from './ListLeadsResultItem';
|
|
282
283
|
export * from './ListNotifications200Response';
|
|
284
|
+
export * from './ListRelatedLeads200Response';
|
|
283
285
|
export * from './LockConfigurationInput';
|
|
284
286
|
export * from './LockDurationDto';
|
|
285
287
|
export * from './LockDurationInput';
|
|
@@ -334,6 +336,7 @@ export * from './RegisterAccountPortfolioSizeInput';
|
|
|
334
336
|
export * from './RegisterAuctionBuyerPhoneInput';
|
|
335
337
|
export * from './RegisterInput';
|
|
336
338
|
export * from './RelatedDomainsDto';
|
|
339
|
+
export * from './RelatedLeadDto';
|
|
337
340
|
export * from './RelatedSellerDomain';
|
|
338
341
|
export * from './RemoveSubscriptionDomainRecordInput';
|
|
339
342
|
export * from './RentConfigurationDto';
|
package/dist/models/index.js
CHANGED
|
@@ -177,6 +177,7 @@ __exportStar(require("./CursorBasedPageInfo"), exports);
|
|
|
177
177
|
__exportStar(require("./CursorBasedPaginationResponse"), exports);
|
|
178
178
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
|
179
179
|
__exportStar(require("./DomainAuctionDto"), exports);
|
|
180
|
+
__exportStar(require("./DomainCategoryItemDto"), exports);
|
|
180
181
|
__exportStar(require("./DomainExchangeRateDto"), exports);
|
|
181
182
|
__exportStar(require("./DomainFiltersDto"), exports);
|
|
182
183
|
__exportStar(require("./DomainLeadPriceNegotiatorAiAgentConfigurationDto"), exports);
|
|
@@ -298,6 +299,7 @@ __exportStar(require("./ListDomainsWithUpdatedPricing200Response"), exports);
|
|
|
298
299
|
__exportStar(require("./ListLeadMessagesDto"), exports);
|
|
299
300
|
__exportStar(require("./ListLeadsResultItem"), exports);
|
|
300
301
|
__exportStar(require("./ListNotifications200Response"), exports);
|
|
302
|
+
__exportStar(require("./ListRelatedLeads200Response"), exports);
|
|
301
303
|
__exportStar(require("./LockConfigurationInput"), exports);
|
|
302
304
|
__exportStar(require("./LockDurationDto"), exports);
|
|
303
305
|
__exportStar(require("./LockDurationInput"), exports);
|
|
@@ -352,6 +354,7 @@ __exportStar(require("./RegisterAccountPortfolioSizeInput"), exports);
|
|
|
352
354
|
__exportStar(require("./RegisterAuctionBuyerPhoneInput"), exports);
|
|
353
355
|
__exportStar(require("./RegisterInput"), exports);
|
|
354
356
|
__exportStar(require("./RelatedDomainsDto"), exports);
|
|
357
|
+
__exportStar(require("./RelatedLeadDto"), exports);
|
|
355
358
|
__exportStar(require("./RelatedSellerDomain"), exports);
|
|
356
359
|
__exportStar(require("./RemoveSubscriptionDomainRecordInput"), exports);
|
|
357
360
|
__exportStar(require("./RentConfigurationDto"), exports);
|
package/package.json
CHANGED
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -24,6 +24,7 @@ import type {
|
|
|
24
24
|
LeadOfferExpirationConfigurationInput,
|
|
25
25
|
List200Response,
|
|
26
26
|
ListLeadMessagesDto,
|
|
27
|
+
ListRelatedLeads200Response,
|
|
27
28
|
LockConfigurationInput,
|
|
28
29
|
ObjectId,
|
|
29
30
|
PutLeadOfferInput,
|
|
@@ -50,6 +51,8 @@ import {
|
|
|
50
51
|
List200ResponseToJSON,
|
|
51
52
|
ListLeadMessagesDtoFromJSON,
|
|
52
53
|
ListLeadMessagesDtoToJSON,
|
|
54
|
+
ListRelatedLeads200ResponseFromJSON,
|
|
55
|
+
ListRelatedLeads200ResponseToJSON,
|
|
53
56
|
LockConfigurationInputFromJSON,
|
|
54
57
|
LockConfigurationInputToJSON,
|
|
55
58
|
ObjectIdFromJSON,
|
|
@@ -109,6 +112,14 @@ export interface LeadsApiListRequest {
|
|
|
109
112
|
sortBy?: Array<string>;
|
|
110
113
|
}
|
|
111
114
|
|
|
115
|
+
export interface LeadsApiListRelatedLeadsRequest {
|
|
116
|
+
leadId: string;
|
|
117
|
+
filter?: object;
|
|
118
|
+
page?: number;
|
|
119
|
+
limit?: number;
|
|
120
|
+
sortBy?: Array<string>;
|
|
121
|
+
}
|
|
122
|
+
|
|
112
123
|
export interface LeadsApiPauseLeadPriceNegotiatorAgentRequest {
|
|
113
124
|
leadId: string;
|
|
114
125
|
}
|
|
@@ -617,6 +628,63 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
617
628
|
return await response.value();
|
|
618
629
|
}
|
|
619
630
|
|
|
631
|
+
/**
|
|
632
|
+
*
|
|
633
|
+
*/
|
|
634
|
+
async listRelatedLeadsRaw(requestParameters: LeadsApiListRelatedLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListRelatedLeads200Response>> {
|
|
635
|
+
if (requestParameters['leadId'] == null) {
|
|
636
|
+
throw new runtime.RequiredError(
|
|
637
|
+
'leadId',
|
|
638
|
+
'Required parameter "leadId" was null or undefined when calling listRelatedLeads().'
|
|
639
|
+
);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
const queryParameters: any = {};
|
|
643
|
+
|
|
644
|
+
if (requestParameters['filter'] != null) {
|
|
645
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
if (requestParameters['page'] != null) {
|
|
649
|
+
queryParameters['page'] = requestParameters['page'];
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
if (requestParameters['limit'] != null) {
|
|
653
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
if (requestParameters['sortBy'] != null) {
|
|
657
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
661
|
+
|
|
662
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
663
|
+
const token = this.configuration.accessToken;
|
|
664
|
+
const tokenString = await token("bearer", []);
|
|
665
|
+
|
|
666
|
+
if (tokenString) {
|
|
667
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
const response = await this.request({
|
|
671
|
+
path: `/private/leads/{leadId}/related`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
672
|
+
method: 'GET',
|
|
673
|
+
headers: headerParameters,
|
|
674
|
+
query: queryParameters,
|
|
675
|
+
}, initOverrides);
|
|
676
|
+
|
|
677
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListRelatedLeads200ResponseFromJSON(jsonValue));
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
*
|
|
682
|
+
*/
|
|
683
|
+
async listRelatedLeads(requestParameters: LeadsApiListRelatedLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListRelatedLeads200Response> {
|
|
684
|
+
const response = await this.listRelatedLeadsRaw(requestParameters, initOverrides);
|
|
685
|
+
return await response.value();
|
|
686
|
+
}
|
|
687
|
+
|
|
620
688
|
/**
|
|
621
689
|
*
|
|
622
690
|
*/
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
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 DomainCategoryItemDto
|
|
20
|
+
*/
|
|
21
|
+
export interface DomainCategoryItemDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DomainCategoryItemDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DomainCategoryItemDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DomainCategoryItemDto
|
|
38
|
+
*/
|
|
39
|
+
subId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof DomainCategoryItemDto
|
|
44
|
+
*/
|
|
45
|
+
subName: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the DomainCategoryItemDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfDomainCategoryItemDto(value: object): value is DomainCategoryItemDto {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
54
|
+
if (!('subId' in value) || value['subId'] === undefined) return false;
|
|
55
|
+
if (!('subName' in value) || value['subName'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function DomainCategoryItemDtoFromJSON(json: any): DomainCategoryItemDto {
|
|
60
|
+
return DomainCategoryItemDtoFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function DomainCategoryItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainCategoryItemDto {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'name': json['name'],
|
|
71
|
+
'subId': json['sub_id'],
|
|
72
|
+
'subName': json['sub_name'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function DomainCategoryItemDtoToJSON(json: any): DomainCategoryItemDto {
|
|
77
|
+
return DomainCategoryItemDtoToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function DomainCategoryItemDtoToJSONTyped(value?: DomainCategoryItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'name': value['name'],
|
|
89
|
+
'sub_id': value['subId'],
|
|
90
|
+
'sub_name': value['subName'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
MoneyDtoToJSON,
|
|
21
21
|
MoneyDtoToJSONTyped,
|
|
22
22
|
} from './MoneyDto';
|
|
23
|
+
import type { DomainCategoryItemDto } from './DomainCategoryItemDto';
|
|
24
|
+
import {
|
|
25
|
+
DomainCategoryItemDtoFromJSON,
|
|
26
|
+
DomainCategoryItemDtoFromJSONTyped,
|
|
27
|
+
DomainCategoryItemDtoToJSON,
|
|
28
|
+
DomainCategoryItemDtoToJSONTyped,
|
|
29
|
+
} from './DomainCategoryItemDto';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -33,6 +40,12 @@ export interface DomainPricesChangeDto {
|
|
|
33
40
|
* @memberof DomainPricesChangeDto
|
|
34
41
|
*/
|
|
35
42
|
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Categories of the domain (parent + subcategory)
|
|
45
|
+
* @type {Array<DomainCategoryItemDto>}
|
|
46
|
+
* @memberof DomainPricesChangeDto
|
|
47
|
+
*/
|
|
48
|
+
categories: Array<DomainCategoryItemDto>;
|
|
36
49
|
/**
|
|
37
50
|
* The ASCII domain name (example.com, xn--maana-pta.com)
|
|
38
51
|
* @type {string}
|
|
@@ -76,6 +89,7 @@ export interface DomainPricesChangeDto {
|
|
|
76
89
|
*/
|
|
77
90
|
export function instanceOfDomainPricesChangeDto(value: object): value is DomainPricesChangeDto {
|
|
78
91
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
92
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
79
93
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
80
94
|
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
81
95
|
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
@@ -96,6 +110,7 @@ export function DomainPricesChangeDtoFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
96
110
|
return {
|
|
97
111
|
|
|
98
112
|
'id': json['id'],
|
|
113
|
+
'categories': ((json['categories'] as Array<any>).map(DomainCategoryItemDtoFromJSON)),
|
|
99
114
|
'name': json['name'],
|
|
100
115
|
'displayName': json['displayName'],
|
|
101
116
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
@@ -117,6 +132,7 @@ export function DomainPricesChangeDtoToJSONTyped(value?: DomainPricesChangeDto |
|
|
|
117
132
|
return {
|
|
118
133
|
|
|
119
134
|
'id': value['id'],
|
|
135
|
+
'categories': ((value['categories'] as Array<any>).map(DomainCategoryItemDtoToJSON)),
|
|
120
136
|
'name': value['name'],
|
|
121
137
|
'displayName': value['displayName'],
|
|
122
138
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
@@ -86,7 +86,8 @@ export const FeatureFlagListItemDtoNameEnum = {
|
|
|
86
86
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
87
87
|
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
88
88
|
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
89
|
-
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
89
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE',
|
|
90
|
+
UI_LEAD_LAYOUT_V2: 'UI_LEAD_LAYOUT_V2'
|
|
90
91
|
} as const;
|
|
91
92
|
export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
|
|
92
93
|
|
package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts
CHANGED
|
@@ -172,7 +172,8 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
|
|
|
172
172
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
173
173
|
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
174
174
|
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
175
|
-
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
175
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE',
|
|
176
|
+
UI_LEAD_LAYOUT_V2: 'UI_LEAD_LAYOUT_V2'
|
|
176
177
|
} as const;
|
|
177
178
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
178
179
|
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
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 { RelatedLeadDto } from './RelatedLeadDto';
|
|
24
|
+
import {
|
|
25
|
+
RelatedLeadDtoFromJSON,
|
|
26
|
+
RelatedLeadDtoFromJSONTyped,
|
|
27
|
+
RelatedLeadDtoToJSON,
|
|
28
|
+
RelatedLeadDtoToJSONTyped,
|
|
29
|
+
} from './RelatedLeadDto';
|
|
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 ListRelatedLeads200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface ListRelatedLeads200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<RelatedLeadDto>}
|
|
47
|
+
* @memberof ListRelatedLeads200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<RelatedLeadDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof ListRelatedLeads200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof ListRelatedLeads200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the ListRelatedLeads200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfListRelatedLeads200Response(value: object): value is ListRelatedLeads200Response {
|
|
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 ListRelatedLeads200ResponseFromJSON(json: any): ListRelatedLeads200Response {
|
|
75
|
+
return ListRelatedLeads200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ListRelatedLeads200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListRelatedLeads200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(RelatedLeadDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ListRelatedLeads200ResponseToJSON(json: any): ListRelatedLeads200Response {
|
|
91
|
+
return ListRelatedLeads200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ListRelatedLeads200ResponseToJSONTyped(value?: ListRelatedLeads200Response | 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(RelatedLeadDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -178,7 +178,8 @@ export const PrivateAccountGetMeResponseEnabledFeaturesEnum = {
|
|
|
178
178
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
179
179
|
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
180
180
|
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
181
|
-
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
181
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE',
|
|
182
|
+
UI_LEAD_LAYOUT_V2: 'UI_LEAD_LAYOUT_V2'
|
|
182
183
|
} as const;
|
|
183
184
|
export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
|
|
184
185
|
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
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 { LeadOfferDto } from './LeadOfferDto';
|
|
17
|
+
import {
|
|
18
|
+
LeadOfferDtoFromJSON,
|
|
19
|
+
LeadOfferDtoFromJSONTyped,
|
|
20
|
+
LeadOfferDtoToJSON,
|
|
21
|
+
LeadOfferDtoToJSONTyped,
|
|
22
|
+
} from './LeadOfferDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface RelatedLeadDto
|
|
28
|
+
*/
|
|
29
|
+
export interface RelatedLeadDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RelatedLeadDto
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RelatedLeadDto
|
|
40
|
+
*/
|
|
41
|
+
status: RelatedLeadDtoStatusEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {LeadOfferDto}
|
|
45
|
+
* @memberof RelatedLeadDto
|
|
46
|
+
*/
|
|
47
|
+
lastSellerOffer: LeadOfferDto | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {LeadOfferDto}
|
|
51
|
+
* @memberof RelatedLeadDto
|
|
52
|
+
*/
|
|
53
|
+
lastBuyerOffer: LeadOfferDto | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof RelatedLeadDto
|
|
58
|
+
*/
|
|
59
|
+
lastOfferBy: RelatedLeadDtoLastOfferByEnum | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof RelatedLeadDto
|
|
64
|
+
*/
|
|
65
|
+
lastOfferDate: Date | null;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export const RelatedLeadDtoStatusEnum = {
|
|
73
|
+
UNVERIFIED: 'unverified',
|
|
74
|
+
ACTIVE: 'active',
|
|
75
|
+
ACCEPTED: 'accepted',
|
|
76
|
+
FINISHED: 'finished',
|
|
77
|
+
CLOSED: 'closed'
|
|
78
|
+
} as const;
|
|
79
|
+
export type RelatedLeadDtoStatusEnum = typeof RelatedLeadDtoStatusEnum[keyof typeof RelatedLeadDtoStatusEnum];
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export const RelatedLeadDtoLastOfferByEnum = {
|
|
85
|
+
BUYER: 'buyer',
|
|
86
|
+
SELLER: 'seller',
|
|
87
|
+
AI: 'ai',
|
|
88
|
+
ADMIN: 'admin'
|
|
89
|
+
} as const;
|
|
90
|
+
export type RelatedLeadDtoLastOfferByEnum = typeof RelatedLeadDtoLastOfferByEnum[keyof typeof RelatedLeadDtoLastOfferByEnum];
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Check if a given object implements the RelatedLeadDto interface.
|
|
95
|
+
*/
|
|
96
|
+
export function instanceOfRelatedLeadDto(value: object): value is RelatedLeadDto {
|
|
97
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
98
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
99
|
+
if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
|
|
100
|
+
if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
|
|
101
|
+
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
|
|
102
|
+
if (!('lastOfferDate' in value) || value['lastOfferDate'] === undefined) return false;
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function RelatedLeadDtoFromJSON(json: any): RelatedLeadDto {
|
|
107
|
+
return RelatedLeadDtoFromJSONTyped(json, false);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function RelatedLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RelatedLeadDto {
|
|
111
|
+
if (json == null) {
|
|
112
|
+
return json;
|
|
113
|
+
}
|
|
114
|
+
return {
|
|
115
|
+
|
|
116
|
+
'id': json['id'],
|
|
117
|
+
'status': json['status'],
|
|
118
|
+
'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
|
|
119
|
+
'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
|
|
120
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
121
|
+
'lastOfferDate': (json['lastOfferDate'] == null ? null : new Date(json['lastOfferDate'])),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function RelatedLeadDtoToJSON(json: any): RelatedLeadDto {
|
|
126
|
+
return RelatedLeadDtoToJSONTyped(json, false);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function RelatedLeadDtoToJSONTyped(value?: RelatedLeadDto | null, ignoreDiscriminator: boolean = false): any {
|
|
130
|
+
if (value == null) {
|
|
131
|
+
return value;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
|
|
136
|
+
'id': value['id'],
|
|
137
|
+
'status': value['status'],
|
|
138
|
+
'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
|
|
139
|
+
'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
|
|
140
|
+
'lastOfferBy': value['lastOfferBy'],
|
|
141
|
+
'lastOfferDate': (value['lastOfferDate'] == null ? null : (value['lastOfferDate'] as any).toISOString()),
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -161,6 +161,7 @@ export * from './CursorBasedPageInfo';
|
|
|
161
161
|
export * from './CursorBasedPaginationResponse';
|
|
162
162
|
export * from './DeleteDomainsInput';
|
|
163
163
|
export * from './DomainAuctionDto';
|
|
164
|
+
export * from './DomainCategoryItemDto';
|
|
164
165
|
export * from './DomainExchangeRateDto';
|
|
165
166
|
export * from './DomainFiltersDto';
|
|
166
167
|
export * from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
|
|
@@ -282,6 +283,7 @@ export * from './ListDomainsWithUpdatedPricing200Response';
|
|
|
282
283
|
export * from './ListLeadMessagesDto';
|
|
283
284
|
export * from './ListLeadsResultItem';
|
|
284
285
|
export * from './ListNotifications200Response';
|
|
286
|
+
export * from './ListRelatedLeads200Response';
|
|
285
287
|
export * from './LockConfigurationInput';
|
|
286
288
|
export * from './LockDurationDto';
|
|
287
289
|
export * from './LockDurationInput';
|
|
@@ -336,6 +338,7 @@ export * from './RegisterAccountPortfolioSizeInput';
|
|
|
336
338
|
export * from './RegisterAuctionBuyerPhoneInput';
|
|
337
339
|
export * from './RegisterInput';
|
|
338
340
|
export * from './RelatedDomainsDto';
|
|
341
|
+
export * from './RelatedLeadDto';
|
|
339
342
|
export * from './RelatedSellerDomain';
|
|
340
343
|
export * from './RemoveSubscriptionDomainRecordInput';
|
|
341
344
|
export * from './RentConfigurationDto';
|