@randock/nameshift-api-client 0.0.283 → 0.0.284
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 +12 -1
- package/dist/apis/LeadsApi.js +53 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +151 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +140 -0
- package/dist/models/ManualLeadBuyerDto.d.ts +50 -0
- package/dist/models/ManualLeadBuyerDto.js +63 -0
- package/dist/models/ManualLeadLeaseToOwnDto.d.ts +38 -0
- package/dist/models/ManualLeadLeaseToOwnDto.js +55 -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 +48 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +257 -0
- package/src/models/ManualLeadBuyerDto.ts +93 -0
- package/src/models/ManualLeadLeaseToOwnDto.ts +75 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -142,6 +142,7 @@ src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureF
|
|
|
142
142
|
src/models/IntersectionDomainDtoWithAccountDto.ts
|
|
143
143
|
src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
|
|
144
144
|
src/models/IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto.ts
|
|
145
|
+
src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts
|
|
145
146
|
src/models/IntersectionLeadDtoWithListFieldsDto.ts
|
|
146
147
|
src/models/IntersectionTaskListTaskDto.ts
|
|
147
148
|
src/models/InvoiceDomainDto.ts
|
|
@@ -181,6 +182,8 @@ src/models/LoginDto.ts
|
|
|
181
182
|
src/models/LoginInput.ts
|
|
182
183
|
src/models/MajesticMetrics.ts
|
|
183
184
|
src/models/MajesticTopicTrustFlow.ts
|
|
185
|
+
src/models/ManualLeadBuyerDto.ts
|
|
186
|
+
src/models/ManualLeadLeaseToOwnDto.ts
|
|
184
187
|
src/models/MoneyDto.ts
|
|
185
188
|
src/models/MoneyInput.ts
|
|
186
189
|
src/models/MozMetrics.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.284
|
|
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.284 --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
|
+
e0a6e116ba98df25dec5ebde612fb7c38bb5fc62fc70ac8e4fa3c9e8deb50e909fd9bd719ea082fe833c6aa36056ca96
|
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, IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, List200Response, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
|
|
13
|
+
import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, List200Response, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
|
|
14
14
|
export interface LeadsApiAcceptLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
@@ -34,6 +34,9 @@ export interface LeadsApiGetLeadRequest {
|
|
|
34
34
|
export interface LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest {
|
|
35
35
|
date?: string;
|
|
36
36
|
}
|
|
37
|
+
export interface LeadsApiGetManualLeadRequest {
|
|
38
|
+
leadId: string;
|
|
39
|
+
}
|
|
37
40
|
export interface LeadsApiGetMessagesRequest {
|
|
38
41
|
leadId: string;
|
|
39
42
|
}
|
|
@@ -116,6 +119,14 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
116
119
|
*
|
|
117
120
|
*/
|
|
118
121
|
getLeadLeaseToOwnConfigurationPresets(requestParameters?: LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadLeaseToOwnAndRentConfigurationPresetsDto>;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
getManualLeadRaw(requestParameters: LeadsApiGetManualLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto>>;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
*/
|
|
129
|
+
getManualLead(requestParameters: LeadsApiGetManualLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto>;
|
|
119
130
|
/**
|
|
120
131
|
*
|
|
121
132
|
*/
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -451,6 +451,59 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
451
451
|
});
|
|
452
452
|
});
|
|
453
453
|
};
|
|
454
|
+
/**
|
|
455
|
+
*
|
|
456
|
+
*/
|
|
457
|
+
LeadsApi.prototype.getManualLeadRaw = function (requestParameters, initOverrides) {
|
|
458
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
459
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
460
|
+
return __generator(this, function (_a) {
|
|
461
|
+
switch (_a.label) {
|
|
462
|
+
case 0:
|
|
463
|
+
if (requestParameters['leadId'] == null) {
|
|
464
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getManualLead().');
|
|
465
|
+
}
|
|
466
|
+
queryParameters = {};
|
|
467
|
+
headerParameters = {};
|
|
468
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
469
|
+
token = this.configuration.accessToken;
|
|
470
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
471
|
+
case 1:
|
|
472
|
+
tokenString = _a.sent();
|
|
473
|
+
if (tokenString) {
|
|
474
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
475
|
+
}
|
|
476
|
+
_a.label = 2;
|
|
477
|
+
case 2: return [4 /*yield*/, this.request({
|
|
478
|
+
path: "/private/leads/manual/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
479
|
+
method: 'GET',
|
|
480
|
+
headers: headerParameters,
|
|
481
|
+
query: queryParameters,
|
|
482
|
+
}, initOverrides)];
|
|
483
|
+
case 3:
|
|
484
|
+
response = _a.sent();
|
|
485
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON)(jsonValue); })];
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
});
|
|
489
|
+
};
|
|
490
|
+
/**
|
|
491
|
+
*
|
|
492
|
+
*/
|
|
493
|
+
LeadsApi.prototype.getManualLead = function (requestParameters, initOverrides) {
|
|
494
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
495
|
+
var response;
|
|
496
|
+
return __generator(this, function (_a) {
|
|
497
|
+
switch (_a.label) {
|
|
498
|
+
case 0: return [4 /*yield*/, this.getManualLeadRaw(requestParameters, initOverrides)];
|
|
499
|
+
case 1:
|
|
500
|
+
response = _a.sent();
|
|
501
|
+
return [4 /*yield*/, response.value()];
|
|
502
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
});
|
|
506
|
+
};
|
|
454
507
|
/**
|
|
455
508
|
*
|
|
456
509
|
*/
|
|
@@ -0,0 +1,151 @@
|
|
|
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 { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
|
|
13
|
+
import type { ManualLeadBuyerDto } from './ManualLeadBuyerDto';
|
|
14
|
+
import type { ManualLeadLeaseToOwnDto } from './ManualLeadLeaseToOwnDto';
|
|
15
|
+
import type { MoneyDto } from './MoneyDto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
20
|
+
*/
|
|
21
|
+
export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto {
|
|
22
|
+
/**
|
|
23
|
+
* The lead id
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The current lead status
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
32
|
+
*/
|
|
33
|
+
status: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum;
|
|
34
|
+
/**
|
|
35
|
+
* The lead last offer amount
|
|
36
|
+
* @type {MoneyDto}
|
|
37
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
38
|
+
*/
|
|
39
|
+
lastOffer: MoneyDto | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
44
|
+
*/
|
|
45
|
+
lastOfferBy: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {IntersectionDomainDtoWithAccountDto}
|
|
49
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
50
|
+
*/
|
|
51
|
+
domain: IntersectionDomainDtoWithAccountDto;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
56
|
+
*/
|
|
57
|
+
manualType: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {ManualLeadBuyerDto}
|
|
61
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
62
|
+
*/
|
|
63
|
+
buyer: ManualLeadBuyerDto;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {ManualLeadLeaseToOwnDto}
|
|
67
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
68
|
+
*/
|
|
69
|
+
leaseToOwn: ManualLeadLeaseToOwnDto | null;
|
|
70
|
+
/**
|
|
71
|
+
* Archived status
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
74
|
+
*/
|
|
75
|
+
archived: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Created at date
|
|
78
|
+
* @type {Date}
|
|
79
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
80
|
+
*/
|
|
81
|
+
createdAt: Date;
|
|
82
|
+
/**
|
|
83
|
+
* Updated at date
|
|
84
|
+
* @type {Date}
|
|
85
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
86
|
+
*/
|
|
87
|
+
updatedAt: Date;
|
|
88
|
+
/**
|
|
89
|
+
* Number of buyer unread messages
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
92
|
+
*/
|
|
93
|
+
unreadBuyerMessagesNumber: number;
|
|
94
|
+
/**
|
|
95
|
+
* Number of seller unread messages
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
98
|
+
*/
|
|
99
|
+
unreadSellerMessagesNumber: number;
|
|
100
|
+
/**
|
|
101
|
+
* Lead order payment URL
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
104
|
+
*/
|
|
105
|
+
orderPaymentUrl: string | null;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {boolean}
|
|
109
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
110
|
+
*/
|
|
111
|
+
isPriceNegotiatorAgentPaused: boolean;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
export declare const IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum: {
|
|
117
|
+
readonly UNVERIFIED: "unverified";
|
|
118
|
+
readonly ACTIVE: "active";
|
|
119
|
+
readonly ACCEPTED: "accepted";
|
|
120
|
+
readonly FINISHED: "finished";
|
|
121
|
+
readonly CLOSED: "closed";
|
|
122
|
+
};
|
|
123
|
+
export type IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum];
|
|
124
|
+
/**
|
|
125
|
+
* @export
|
|
126
|
+
*/
|
|
127
|
+
export declare const IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum: {
|
|
128
|
+
readonly BUYER: "buyer";
|
|
129
|
+
readonly SELLER: "seller";
|
|
130
|
+
readonly AI: "ai";
|
|
131
|
+
readonly ADMIN: "admin";
|
|
132
|
+
};
|
|
133
|
+
export type IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum];
|
|
134
|
+
/**
|
|
135
|
+
* @export
|
|
136
|
+
*/
|
|
137
|
+
export declare const IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum: {
|
|
138
|
+
readonly BUY_NOW: "buy_now";
|
|
139
|
+
readonly OFFER: "offer";
|
|
140
|
+
readonly LEASE_TO_OWN: "lease_to_own";
|
|
141
|
+
readonly RENT: "rent";
|
|
142
|
+
};
|
|
143
|
+
export type IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum];
|
|
144
|
+
/**
|
|
145
|
+
* Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto interface.
|
|
146
|
+
*/
|
|
147
|
+
export declare function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto(value: object): value is IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto;
|
|
148
|
+
export declare function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON(json: any): IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto;
|
|
149
|
+
export declare function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto;
|
|
150
|
+
export declare function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON(json: any): IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto;
|
|
151
|
+
export declare function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSONTyped(value?: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,140 @@
|
|
|
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.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto = instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto;
|
|
18
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON = IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON;
|
|
19
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped;
|
|
20
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON = IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON;
|
|
21
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSONTyped;
|
|
22
|
+
var IntersectionDomainDtoWithAccountDto_1 = require("./IntersectionDomainDtoWithAccountDto");
|
|
23
|
+
var ManualLeadBuyerDto_1 = require("./ManualLeadBuyerDto");
|
|
24
|
+
var ManualLeadLeaseToOwnDto_1 = require("./ManualLeadLeaseToOwnDto");
|
|
25
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum = {
|
|
30
|
+
UNVERIFIED: 'unverified',
|
|
31
|
+
ACTIVE: 'active',
|
|
32
|
+
ACCEPTED: 'accepted',
|
|
33
|
+
FINISHED: 'finished',
|
|
34
|
+
CLOSED: 'closed'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum = {
|
|
40
|
+
BUYER: 'buyer',
|
|
41
|
+
SELLER: 'seller',
|
|
42
|
+
AI: 'ai',
|
|
43
|
+
ADMIN: 'admin'
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum = {
|
|
49
|
+
BUY_NOW: 'buy_now',
|
|
50
|
+
OFFER: 'offer',
|
|
51
|
+
LEASE_TO_OWN: 'lease_to_own',
|
|
52
|
+
RENT: 'rent'
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto interface.
|
|
56
|
+
*/
|
|
57
|
+
function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto(value) {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('lastOffer' in value) || value['lastOffer'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('domain' in value) || value['domain'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if (!('manualType' in value) || value['manualType'] === undefined)
|
|
69
|
+
return false;
|
|
70
|
+
if (!('buyer' in value) || value['buyer'] === undefined)
|
|
71
|
+
return false;
|
|
72
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
if (!('archived' in value) || value['archived'] === undefined)
|
|
75
|
+
return false;
|
|
76
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
77
|
+
return false;
|
|
78
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
79
|
+
return false;
|
|
80
|
+
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined)
|
|
81
|
+
return false;
|
|
82
|
+
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
|
|
83
|
+
return false;
|
|
84
|
+
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined)
|
|
85
|
+
return false;
|
|
86
|
+
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
|
|
87
|
+
return false;
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON(json) {
|
|
91
|
+
return IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
94
|
+
if (json == null) {
|
|
95
|
+
return json;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
'id': json['id'],
|
|
99
|
+
'status': json['status'],
|
|
100
|
+
'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
|
|
101
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
102
|
+
'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoFromJSON)(json['domain']),
|
|
103
|
+
'manualType': json['manualType'],
|
|
104
|
+
'buyer': (0, ManualLeadBuyerDto_1.ManualLeadBuyerDtoFromJSON)(json['buyer']),
|
|
105
|
+
'leaseToOwn': (0, ManualLeadLeaseToOwnDto_1.ManualLeadLeaseToOwnDtoFromJSON)(json['leaseToOwn']),
|
|
106
|
+
'archived': json['archived'],
|
|
107
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
108
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
109
|
+
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
110
|
+
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
111
|
+
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
112
|
+
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON(json) {
|
|
116
|
+
return IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
119
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
'id': value['id'],
|
|
125
|
+
'status': value['status'],
|
|
126
|
+
'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
|
|
127
|
+
'lastOfferBy': value['lastOfferBy'],
|
|
128
|
+
'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value['domain']),
|
|
129
|
+
'manualType': value['manualType'],
|
|
130
|
+
'buyer': (0, ManualLeadBuyerDto_1.ManualLeadBuyerDtoToJSON)(value['buyer']),
|
|
131
|
+
'leaseToOwn': (0, ManualLeadLeaseToOwnDto_1.ManualLeadLeaseToOwnDtoToJSON)(value['leaseToOwn']),
|
|
132
|
+
'archived': value['archived'],
|
|
133
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
134
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
135
|
+
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
136
|
+
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
137
|
+
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
138
|
+
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
139
|
+
};
|
|
140
|
+
}
|
|
@@ -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 ManualLeadBuyerDto
|
|
16
|
+
*/
|
|
17
|
+
export interface ManualLeadBuyerDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ManualLeadBuyerDto
|
|
22
|
+
*/
|
|
23
|
+
firstName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ManualLeadBuyerDto
|
|
28
|
+
*/
|
|
29
|
+
lastName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ManualLeadBuyerDto
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ManualLeadBuyerDto
|
|
40
|
+
*/
|
|
41
|
+
locale: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ManualLeadBuyerDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfManualLeadBuyerDto(value: object): value is ManualLeadBuyerDto;
|
|
47
|
+
export declare function ManualLeadBuyerDtoFromJSON(json: any): ManualLeadBuyerDto;
|
|
48
|
+
export declare function ManualLeadBuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManualLeadBuyerDto;
|
|
49
|
+
export declare function ManualLeadBuyerDtoToJSON(json: any): ManualLeadBuyerDto;
|
|
50
|
+
export declare function ManualLeadBuyerDtoToJSONTyped(value?: ManualLeadBuyerDto | 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.instanceOfManualLeadBuyerDto = instanceOfManualLeadBuyerDto;
|
|
17
|
+
exports.ManualLeadBuyerDtoFromJSON = ManualLeadBuyerDtoFromJSON;
|
|
18
|
+
exports.ManualLeadBuyerDtoFromJSONTyped = ManualLeadBuyerDtoFromJSONTyped;
|
|
19
|
+
exports.ManualLeadBuyerDtoToJSON = ManualLeadBuyerDtoToJSON;
|
|
20
|
+
exports.ManualLeadBuyerDtoToJSONTyped = ManualLeadBuyerDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ManualLeadBuyerDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfManualLeadBuyerDto(value) {
|
|
25
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('locale' in value) || value['locale'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ManualLeadBuyerDtoFromJSON(json) {
|
|
36
|
+
return ManualLeadBuyerDtoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ManualLeadBuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'firstName': json['firstName'],
|
|
44
|
+
'lastName': json['lastName'],
|
|
45
|
+
'email': json['email'],
|
|
46
|
+
'locale': json['locale'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ManualLeadBuyerDtoToJSON(json) {
|
|
50
|
+
return ManualLeadBuyerDtoToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ManualLeadBuyerDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'firstName': value['firstName'],
|
|
59
|
+
'lastName': value['lastName'],
|
|
60
|
+
'email': value['email'],
|
|
61
|
+
'locale': value['locale'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ManualLeadLeaseToOwnDto
|
|
16
|
+
*/
|
|
17
|
+
export interface ManualLeadLeaseToOwnDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ManualLeadLeaseToOwnDto
|
|
22
|
+
*/
|
|
23
|
+
minMonths: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ManualLeadLeaseToOwnDto
|
|
28
|
+
*/
|
|
29
|
+
maxMonths: number | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ManualLeadLeaseToOwnDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfManualLeadLeaseToOwnDto(value: object): value is ManualLeadLeaseToOwnDto;
|
|
35
|
+
export declare function ManualLeadLeaseToOwnDtoFromJSON(json: any): ManualLeadLeaseToOwnDto;
|
|
36
|
+
export declare function ManualLeadLeaseToOwnDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManualLeadLeaseToOwnDto;
|
|
37
|
+
export declare function ManualLeadLeaseToOwnDtoToJSON(json: any): ManualLeadLeaseToOwnDto;
|
|
38
|
+
export declare function ManualLeadLeaseToOwnDtoToJSONTyped(value?: ManualLeadLeaseToOwnDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfManualLeadLeaseToOwnDto = instanceOfManualLeadLeaseToOwnDto;
|
|
17
|
+
exports.ManualLeadLeaseToOwnDtoFromJSON = ManualLeadLeaseToOwnDtoFromJSON;
|
|
18
|
+
exports.ManualLeadLeaseToOwnDtoFromJSONTyped = ManualLeadLeaseToOwnDtoFromJSONTyped;
|
|
19
|
+
exports.ManualLeadLeaseToOwnDtoToJSON = ManualLeadLeaseToOwnDtoToJSON;
|
|
20
|
+
exports.ManualLeadLeaseToOwnDtoToJSONTyped = ManualLeadLeaseToOwnDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ManualLeadLeaseToOwnDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfManualLeadLeaseToOwnDto(value) {
|
|
25
|
+
if (!('minMonths' in value) || value['minMonths'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('maxMonths' in value) || value['maxMonths'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ManualLeadLeaseToOwnDtoFromJSON(json) {
|
|
32
|
+
return ManualLeadLeaseToOwnDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ManualLeadLeaseToOwnDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'minMonths': json['minMonths'],
|
|
40
|
+
'maxMonths': json['maxMonths'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ManualLeadLeaseToOwnDtoToJSON(json) {
|
|
44
|
+
return ManualLeadLeaseToOwnDtoToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ManualLeadLeaseToOwnDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'minMonths': value['minMonths'],
|
|
53
|
+
'maxMonths': value['maxMonths'],
|
|
54
|
+
};
|
|
55
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -115,6 +115,7 @@ export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
|
|
|
115
115
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
116
116
|
export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
|
|
117
117
|
export * from './IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto';
|
|
118
|
+
export * from './IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto';
|
|
118
119
|
export * from './IntersectionLeadDtoWithListFieldsDto';
|
|
119
120
|
export * from './IntersectionTaskListTaskDto';
|
|
120
121
|
export * from './InvoiceDomainDto';
|
|
@@ -154,6 +155,8 @@ export * from './LoginDto';
|
|
|
154
155
|
export * from './LoginInput';
|
|
155
156
|
export * from './MajesticMetrics';
|
|
156
157
|
export * from './MajesticTopicTrustFlow';
|
|
158
|
+
export * from './ManualLeadBuyerDto';
|
|
159
|
+
export * from './ManualLeadLeaseToOwnDto';
|
|
157
160
|
export * from './MoneyDto';
|
|
158
161
|
export * from './MoneyInput';
|
|
159
162
|
export * from './MozMetrics';
|
package/dist/models/index.js
CHANGED
|
@@ -133,6 +133,7 @@ __exportStar(require("./IntersectionAccountDtoWithSettingsDtoWithNotificationsDt
|
|
|
133
133
|
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
134
134
|
__exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
|
|
135
135
|
__exportStar(require("./IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto"), exports);
|
|
136
|
+
__exportStar(require("./IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto"), exports);
|
|
136
137
|
__exportStar(require("./IntersectionLeadDtoWithListFieldsDto"), exports);
|
|
137
138
|
__exportStar(require("./IntersectionTaskListTaskDto"), exports);
|
|
138
139
|
__exportStar(require("./InvoiceDomainDto"), exports);
|
|
@@ -172,6 +173,8 @@ __exportStar(require("./LoginDto"), exports);
|
|
|
172
173
|
__exportStar(require("./LoginInput"), exports);
|
|
173
174
|
__exportStar(require("./MajesticMetrics"), exports);
|
|
174
175
|
__exportStar(require("./MajesticTopicTrustFlow"), exports);
|
|
176
|
+
__exportStar(require("./ManualLeadBuyerDto"), exports);
|
|
177
|
+
__exportStar(require("./ManualLeadLeaseToOwnDto"), exports);
|
|
175
178
|
__exportStar(require("./MoneyDto"), exports);
|
|
176
179
|
__exportStar(require("./MoneyInput"), exports);
|
|
177
180
|
__exportStar(require("./MozMetrics"), exports);
|
package/package.json
CHANGED
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
CreateLeadMessageInput,
|
|
21
21
|
CreateManualLeadInput,
|
|
22
22
|
IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto,
|
|
23
|
+
IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto,
|
|
23
24
|
LeadLeaseToOwnAndRentConfigurationPresetsDto,
|
|
24
25
|
List200Response,
|
|
25
26
|
ListLeadMessagesDto,
|
|
@@ -39,6 +40,8 @@ import {
|
|
|
39
40
|
CreateManualLeadInputToJSON,
|
|
40
41
|
IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON,
|
|
41
42
|
IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSON,
|
|
43
|
+
IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON,
|
|
44
|
+
IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON,
|
|
42
45
|
LeadLeaseToOwnAndRentConfigurationPresetsDtoFromJSON,
|
|
43
46
|
LeadLeaseToOwnAndRentConfigurationPresetsDtoToJSON,
|
|
44
47
|
List200ResponseFromJSON,
|
|
@@ -85,6 +88,10 @@ export interface LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest {
|
|
|
85
88
|
date?: string;
|
|
86
89
|
}
|
|
87
90
|
|
|
91
|
+
export interface LeadsApiGetManualLeadRequest {
|
|
92
|
+
leadId: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
88
95
|
export interface LeadsApiGetMessagesRequest {
|
|
89
96
|
leadId: string;
|
|
90
97
|
}
|
|
@@ -421,6 +428,47 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
421
428
|
return await response.value();
|
|
422
429
|
}
|
|
423
430
|
|
|
431
|
+
/**
|
|
432
|
+
*
|
|
433
|
+
*/
|
|
434
|
+
async getManualLeadRaw(requestParameters: LeadsApiGetManualLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto>> {
|
|
435
|
+
if (requestParameters['leadId'] == null) {
|
|
436
|
+
throw new runtime.RequiredError(
|
|
437
|
+
'leadId',
|
|
438
|
+
'Required parameter "leadId" was null or undefined when calling getManualLead().'
|
|
439
|
+
);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
const queryParameters: any = {};
|
|
443
|
+
|
|
444
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
445
|
+
|
|
446
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
447
|
+
const token = this.configuration.accessToken;
|
|
448
|
+
const tokenString = await token("bearer", []);
|
|
449
|
+
|
|
450
|
+
if (tokenString) {
|
|
451
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
const response = await this.request({
|
|
455
|
+
path: `/private/leads/manual/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
456
|
+
method: 'GET',
|
|
457
|
+
headers: headerParameters,
|
|
458
|
+
query: queryParameters,
|
|
459
|
+
}, initOverrides);
|
|
460
|
+
|
|
461
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON(jsonValue));
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
*/
|
|
467
|
+
async getManualLead(requestParameters: LeadsApiGetManualLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto> {
|
|
468
|
+
const response = await this.getManualLeadRaw(requestParameters, initOverrides);
|
|
469
|
+
return await response.value();
|
|
470
|
+
}
|
|
471
|
+
|
|
424
472
|
/**
|
|
425
473
|
*
|
|
426
474
|
*/
|
|
@@ -0,0 +1,257 @@
|
|
|
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 { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
|
|
17
|
+
import {
|
|
18
|
+
IntersectionDomainDtoWithAccountDtoFromJSON,
|
|
19
|
+
IntersectionDomainDtoWithAccountDtoFromJSONTyped,
|
|
20
|
+
IntersectionDomainDtoWithAccountDtoToJSON,
|
|
21
|
+
IntersectionDomainDtoWithAccountDtoToJSONTyped,
|
|
22
|
+
} from './IntersectionDomainDtoWithAccountDto';
|
|
23
|
+
import type { ManualLeadBuyerDto } from './ManualLeadBuyerDto';
|
|
24
|
+
import {
|
|
25
|
+
ManualLeadBuyerDtoFromJSON,
|
|
26
|
+
ManualLeadBuyerDtoFromJSONTyped,
|
|
27
|
+
ManualLeadBuyerDtoToJSON,
|
|
28
|
+
ManualLeadBuyerDtoToJSONTyped,
|
|
29
|
+
} from './ManualLeadBuyerDto';
|
|
30
|
+
import type { ManualLeadLeaseToOwnDto } from './ManualLeadLeaseToOwnDto';
|
|
31
|
+
import {
|
|
32
|
+
ManualLeadLeaseToOwnDtoFromJSON,
|
|
33
|
+
ManualLeadLeaseToOwnDtoFromJSONTyped,
|
|
34
|
+
ManualLeadLeaseToOwnDtoToJSON,
|
|
35
|
+
ManualLeadLeaseToOwnDtoToJSONTyped,
|
|
36
|
+
} from './ManualLeadLeaseToOwnDto';
|
|
37
|
+
import type { MoneyDto } from './MoneyDto';
|
|
38
|
+
import {
|
|
39
|
+
MoneyDtoFromJSON,
|
|
40
|
+
MoneyDtoFromJSONTyped,
|
|
41
|
+
MoneyDtoToJSON,
|
|
42
|
+
MoneyDtoToJSONTyped,
|
|
43
|
+
} from './MoneyDto';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
49
|
+
*/
|
|
50
|
+
export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto {
|
|
51
|
+
/**
|
|
52
|
+
* The lead id
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
* The current lead status
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
61
|
+
*/
|
|
62
|
+
status: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum;
|
|
63
|
+
/**
|
|
64
|
+
* The lead last offer amount
|
|
65
|
+
* @type {MoneyDto}
|
|
66
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
67
|
+
*/
|
|
68
|
+
lastOffer: MoneyDto | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
73
|
+
*/
|
|
74
|
+
lastOfferBy: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {IntersectionDomainDtoWithAccountDto}
|
|
78
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
79
|
+
*/
|
|
80
|
+
domain: IntersectionDomainDtoWithAccountDto;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
85
|
+
*/
|
|
86
|
+
manualType: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {ManualLeadBuyerDto}
|
|
90
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
91
|
+
*/
|
|
92
|
+
buyer: ManualLeadBuyerDto;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {ManualLeadLeaseToOwnDto}
|
|
96
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
97
|
+
*/
|
|
98
|
+
leaseToOwn: ManualLeadLeaseToOwnDto | null;
|
|
99
|
+
/**
|
|
100
|
+
* Archived status
|
|
101
|
+
* @type {boolean}
|
|
102
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
103
|
+
*/
|
|
104
|
+
archived: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Created at date
|
|
107
|
+
* @type {Date}
|
|
108
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
109
|
+
*/
|
|
110
|
+
createdAt: Date;
|
|
111
|
+
/**
|
|
112
|
+
* Updated at date
|
|
113
|
+
* @type {Date}
|
|
114
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
115
|
+
*/
|
|
116
|
+
updatedAt: Date;
|
|
117
|
+
/**
|
|
118
|
+
* Number of buyer unread messages
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
121
|
+
*/
|
|
122
|
+
unreadBuyerMessagesNumber: number;
|
|
123
|
+
/**
|
|
124
|
+
* Number of seller unread messages
|
|
125
|
+
* @type {number}
|
|
126
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
127
|
+
*/
|
|
128
|
+
unreadSellerMessagesNumber: number;
|
|
129
|
+
/**
|
|
130
|
+
* Lead order payment URL
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
133
|
+
*/
|
|
134
|
+
orderPaymentUrl: string | null;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {boolean}
|
|
138
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
139
|
+
*/
|
|
140
|
+
isPriceNegotiatorAgentPaused: boolean;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @export
|
|
146
|
+
*/
|
|
147
|
+
export const IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum = {
|
|
148
|
+
UNVERIFIED: 'unverified',
|
|
149
|
+
ACTIVE: 'active',
|
|
150
|
+
ACCEPTED: 'accepted',
|
|
151
|
+
FINISHED: 'finished',
|
|
152
|
+
CLOSED: 'closed'
|
|
153
|
+
} as const;
|
|
154
|
+
export type IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum];
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @export
|
|
158
|
+
*/
|
|
159
|
+
export const IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum = {
|
|
160
|
+
BUYER: 'buyer',
|
|
161
|
+
SELLER: 'seller',
|
|
162
|
+
AI: 'ai',
|
|
163
|
+
ADMIN: 'admin'
|
|
164
|
+
} as const;
|
|
165
|
+
export type IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum];
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @export
|
|
169
|
+
*/
|
|
170
|
+
export const IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum = {
|
|
171
|
+
BUY_NOW: 'buy_now',
|
|
172
|
+
OFFER: 'offer',
|
|
173
|
+
LEASE_TO_OWN: 'lease_to_own',
|
|
174
|
+
RENT: 'rent'
|
|
175
|
+
} as const;
|
|
176
|
+
export type IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum];
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto interface.
|
|
181
|
+
*/
|
|
182
|
+
export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto(value: object): value is IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto {
|
|
183
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
184
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
185
|
+
if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
|
|
186
|
+
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
|
|
187
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
188
|
+
if (!('manualType' in value) || value['manualType'] === undefined) return false;
|
|
189
|
+
if (!('buyer' in value) || value['buyer'] === undefined) return false;
|
|
190
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
191
|
+
if (!('archived' in value) || value['archived'] === undefined) return false;
|
|
192
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
193
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
194
|
+
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
195
|
+
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
|
|
196
|
+
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
|
|
197
|
+
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
|
|
198
|
+
return true;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON(json: any): IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto {
|
|
202
|
+
return IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped(json, false);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto {
|
|
206
|
+
if (json == null) {
|
|
207
|
+
return json;
|
|
208
|
+
}
|
|
209
|
+
return {
|
|
210
|
+
|
|
211
|
+
'id': json['id'],
|
|
212
|
+
'status': json['status'],
|
|
213
|
+
'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
|
|
214
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
215
|
+
'domain': IntersectionDomainDtoWithAccountDtoFromJSON(json['domain']),
|
|
216
|
+
'manualType': json['manualType'],
|
|
217
|
+
'buyer': ManualLeadBuyerDtoFromJSON(json['buyer']),
|
|
218
|
+
'leaseToOwn': ManualLeadLeaseToOwnDtoFromJSON(json['leaseToOwn']),
|
|
219
|
+
'archived': json['archived'],
|
|
220
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
221
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
222
|
+
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
223
|
+
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
224
|
+
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
225
|
+
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON(json: any): IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto {
|
|
230
|
+
return IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSONTyped(json, false);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSONTyped(value?: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
234
|
+
if (value == null) {
|
|
235
|
+
return value;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
return {
|
|
239
|
+
|
|
240
|
+
'id': value['id'],
|
|
241
|
+
'status': value['status'],
|
|
242
|
+
'lastOffer': MoneyDtoToJSON(value['lastOffer']),
|
|
243
|
+
'lastOfferBy': value['lastOfferBy'],
|
|
244
|
+
'domain': IntersectionDomainDtoWithAccountDtoToJSON(value['domain']),
|
|
245
|
+
'manualType': value['manualType'],
|
|
246
|
+
'buyer': ManualLeadBuyerDtoToJSON(value['buyer']),
|
|
247
|
+
'leaseToOwn': ManualLeadLeaseToOwnDtoToJSON(value['leaseToOwn']),
|
|
248
|
+
'archived': value['archived'],
|
|
249
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
250
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
251
|
+
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
252
|
+
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
253
|
+
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
254
|
+
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
|
|
@@ -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 ManualLeadBuyerDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ManualLeadBuyerDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ManualLeadBuyerDto
|
|
26
|
+
*/
|
|
27
|
+
firstName: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ManualLeadBuyerDto
|
|
32
|
+
*/
|
|
33
|
+
lastName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ManualLeadBuyerDto
|
|
38
|
+
*/
|
|
39
|
+
email: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ManualLeadBuyerDto
|
|
44
|
+
*/
|
|
45
|
+
locale: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ManualLeadBuyerDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfManualLeadBuyerDto(value: object): value is ManualLeadBuyerDto {
|
|
52
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
53
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
54
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
55
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ManualLeadBuyerDtoFromJSON(json: any): ManualLeadBuyerDto {
|
|
60
|
+
return ManualLeadBuyerDtoFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ManualLeadBuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManualLeadBuyerDto {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'firstName': json['firstName'],
|
|
70
|
+
'lastName': json['lastName'],
|
|
71
|
+
'email': json['email'],
|
|
72
|
+
'locale': json['locale'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ManualLeadBuyerDtoToJSON(json: any): ManualLeadBuyerDto {
|
|
77
|
+
return ManualLeadBuyerDtoToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ManualLeadBuyerDtoToJSONTyped(value?: ManualLeadBuyerDto | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'firstName': value['firstName'],
|
|
88
|
+
'lastName': value['lastName'],
|
|
89
|
+
'email': value['email'],
|
|
90
|
+
'locale': value['locale'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 ManualLeadLeaseToOwnDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ManualLeadLeaseToOwnDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ManualLeadLeaseToOwnDto
|
|
26
|
+
*/
|
|
27
|
+
minMonths: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ManualLeadLeaseToOwnDto
|
|
32
|
+
*/
|
|
33
|
+
maxMonths: number | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ManualLeadLeaseToOwnDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfManualLeadLeaseToOwnDto(value: object): value is ManualLeadLeaseToOwnDto {
|
|
40
|
+
if (!('minMonths' in value) || value['minMonths'] === undefined) return false;
|
|
41
|
+
if (!('maxMonths' in value) || value['maxMonths'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ManualLeadLeaseToOwnDtoFromJSON(json: any): ManualLeadLeaseToOwnDto {
|
|
46
|
+
return ManualLeadLeaseToOwnDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ManualLeadLeaseToOwnDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManualLeadLeaseToOwnDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'minMonths': json['minMonths'],
|
|
56
|
+
'maxMonths': json['maxMonths'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ManualLeadLeaseToOwnDtoToJSON(json: any): ManualLeadLeaseToOwnDto {
|
|
61
|
+
return ManualLeadLeaseToOwnDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ManualLeadLeaseToOwnDtoToJSONTyped(value?: ManualLeadLeaseToOwnDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'minMonths': value['minMonths'],
|
|
72
|
+
'maxMonths': value['maxMonths'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -117,6 +117,7 @@ export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
|
|
|
117
117
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
118
118
|
export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
|
|
119
119
|
export * from './IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto';
|
|
120
|
+
export * from './IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto';
|
|
120
121
|
export * from './IntersectionLeadDtoWithListFieldsDto';
|
|
121
122
|
export * from './IntersectionTaskListTaskDto';
|
|
122
123
|
export * from './InvoiceDomainDto';
|
|
@@ -156,6 +157,8 @@ export * from './LoginDto';
|
|
|
156
157
|
export * from './LoginInput';
|
|
157
158
|
export * from './MajesticMetrics';
|
|
158
159
|
export * from './MajesticTopicTrustFlow';
|
|
160
|
+
export * from './ManualLeadBuyerDto';
|
|
161
|
+
export * from './ManualLeadLeaseToOwnDto';
|
|
159
162
|
export * from './MoneyDto';
|
|
160
163
|
export * from './MoneyInput';
|
|
161
164
|
export * from './MozMetrics';
|