@randock/nameshift-api-client 0.0.282 → 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/IntersectionLeadDtoWithListFieldsDto.d.ts +16 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +14 -1
- package/dist/models/LeadDto.d.ts +16 -0
- package/dist/models/LeadDto.js +14 -1
- 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/IntersectionLeadDtoWithListFieldsDto.ts +20 -0
- package/src/models/LeadDto.ts +20 -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
|
+
}
|
|
@@ -120,6 +120,12 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
120
120
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
121
121
|
*/
|
|
122
122
|
isPriceNegotiatorAgentPaused: boolean;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {string}
|
|
126
|
+
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
127
|
+
*/
|
|
128
|
+
manualType: IntersectionLeadDtoWithListFieldsDtoManualTypeEnum | null;
|
|
123
129
|
/**
|
|
124
130
|
* The message in case lastMessageType === LeadMessageTypeEnum.MESSAGE
|
|
125
131
|
* @type {string}
|
|
@@ -175,6 +181,16 @@ export declare const IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum: {
|
|
|
175
181
|
readonly MESSAGE: "message";
|
|
176
182
|
};
|
|
177
183
|
export type IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = typeof IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum];
|
|
184
|
+
/**
|
|
185
|
+
* @export
|
|
186
|
+
*/
|
|
187
|
+
export declare const IntersectionLeadDtoWithListFieldsDtoManualTypeEnum: {
|
|
188
|
+
readonly BUY_NOW: "buy_now";
|
|
189
|
+
readonly OFFER: "offer";
|
|
190
|
+
readonly LEASE_TO_OWN: "lease_to_own";
|
|
191
|
+
readonly RENT: "rent";
|
|
192
|
+
};
|
|
193
|
+
export type IntersectionLeadDtoWithListFieldsDtoManualTypeEnum = typeof IntersectionLeadDtoWithListFieldsDtoManualTypeEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoManualTypeEnum];
|
|
178
194
|
/**
|
|
179
195
|
* Check if a given object implements the IntersectionLeadDtoWithListFieldsDto interface.
|
|
180
196
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = exports.IntersectionLeadDtoWithListFieldsDtoLastMessageFromEnum = exports.IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum = exports.IntersectionLeadDtoWithListFieldsDtoStatusEnum = void 0;
|
|
16
|
+
exports.IntersectionLeadDtoWithListFieldsDtoManualTypeEnum = exports.IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = exports.IntersectionLeadDtoWithListFieldsDtoLastMessageFromEnum = exports.IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum = exports.IntersectionLeadDtoWithListFieldsDtoStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfIntersectionLeadDtoWithListFieldsDto = instanceOfIntersectionLeadDtoWithListFieldsDto;
|
|
18
18
|
exports.IntersectionLeadDtoWithListFieldsDtoFromJSON = IntersectionLeadDtoWithListFieldsDtoFromJSON;
|
|
19
19
|
exports.IntersectionLeadDtoWithListFieldsDtoFromJSONTyped = IntersectionLeadDtoWithListFieldsDtoFromJSONTyped;
|
|
@@ -60,6 +60,15 @@ exports.IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = {
|
|
|
60
60
|
OFFER_REJECTED: 'offer_rejected',
|
|
61
61
|
MESSAGE: 'message'
|
|
62
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
exports.IntersectionLeadDtoWithListFieldsDtoManualTypeEnum = {
|
|
67
|
+
BUY_NOW: 'buy_now',
|
|
68
|
+
OFFER: 'offer',
|
|
69
|
+
LEASE_TO_OWN: 'lease_to_own',
|
|
70
|
+
RENT: 'rent'
|
|
71
|
+
};
|
|
63
72
|
/**
|
|
64
73
|
* Check if a given object implements the IntersectionLeadDtoWithListFieldsDto interface.
|
|
65
74
|
*/
|
|
@@ -98,6 +107,8 @@ function instanceOfIntersectionLeadDtoWithListFieldsDto(value) {
|
|
|
98
107
|
return false;
|
|
99
108
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
|
|
100
109
|
return false;
|
|
110
|
+
if (!('manualType' in value) || value['manualType'] === undefined)
|
|
111
|
+
return false;
|
|
101
112
|
if (!('lastMessageMessage' in value) || value['lastMessageMessage'] === undefined)
|
|
102
113
|
return false;
|
|
103
114
|
if (!('lastMessageDate' in value) || value['lastMessageDate'] === undefined)
|
|
@@ -129,6 +140,7 @@ function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json, ignoreDiscrimin
|
|
|
129
140
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
130
141
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
131
142
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
143
|
+
'manualType': json['manualType'],
|
|
132
144
|
'lastMessageMessage': json['lastMessageMessage'],
|
|
133
145
|
'lastMessageDate': (new Date(json['lastMessageDate'])),
|
|
134
146
|
};
|
|
@@ -159,6 +171,7 @@ function IntersectionLeadDtoWithListFieldsDtoToJSONTyped(value, ignoreDiscrimina
|
|
|
159
171
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
160
172
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
161
173
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
174
|
+
'manualType': value['manualType'],
|
|
162
175
|
'lastMessageMessage': value['lastMessageMessage'],
|
|
163
176
|
'lastMessageDate': ((value['lastMessageDate']).toISOString()),
|
|
164
177
|
};
|
package/dist/models/LeadDto.d.ts
CHANGED
|
@@ -89,6 +89,12 @@ export interface LeadDto {
|
|
|
89
89
|
* @memberof LeadDto
|
|
90
90
|
*/
|
|
91
91
|
isPriceNegotiatorAgentPaused: boolean;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof LeadDto
|
|
96
|
+
*/
|
|
97
|
+
manualType: LeadDtoManualTypeEnum | null;
|
|
92
98
|
}
|
|
93
99
|
/**
|
|
94
100
|
* @export
|
|
@@ -111,6 +117,16 @@ export declare const LeadDtoLastOfferByEnum: {
|
|
|
111
117
|
readonly ADMIN: "admin";
|
|
112
118
|
};
|
|
113
119
|
export type LeadDtoLastOfferByEnum = typeof LeadDtoLastOfferByEnum[keyof typeof LeadDtoLastOfferByEnum];
|
|
120
|
+
/**
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
export declare const LeadDtoManualTypeEnum: {
|
|
124
|
+
readonly BUY_NOW: "buy_now";
|
|
125
|
+
readonly OFFER: "offer";
|
|
126
|
+
readonly LEASE_TO_OWN: "lease_to_own";
|
|
127
|
+
readonly RENT: "rent";
|
|
128
|
+
};
|
|
129
|
+
export type LeadDtoManualTypeEnum = typeof LeadDtoManualTypeEnum[keyof typeof LeadDtoManualTypeEnum];
|
|
114
130
|
/**
|
|
115
131
|
* Check if a given object implements the LeadDto interface.
|
|
116
132
|
*/
|
package/dist/models/LeadDto.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.LeadDtoLastOfferByEnum = exports.LeadDtoStatusEnum = void 0;
|
|
16
|
+
exports.LeadDtoManualTypeEnum = exports.LeadDtoLastOfferByEnum = exports.LeadDtoStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfLeadDto = instanceOfLeadDto;
|
|
18
18
|
exports.LeadDtoFromJSON = LeadDtoFromJSON;
|
|
19
19
|
exports.LeadDtoFromJSONTyped = LeadDtoFromJSONTyped;
|
|
@@ -40,6 +40,15 @@ exports.LeadDtoLastOfferByEnum = {
|
|
|
40
40
|
AI: 'ai',
|
|
41
41
|
ADMIN: 'admin'
|
|
42
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
exports.LeadDtoManualTypeEnum = {
|
|
47
|
+
BUY_NOW: 'buy_now',
|
|
48
|
+
OFFER: 'offer',
|
|
49
|
+
LEASE_TO_OWN: 'lease_to_own',
|
|
50
|
+
RENT: 'rent'
|
|
51
|
+
};
|
|
43
52
|
/**
|
|
44
53
|
* Check if a given object implements the LeadDto interface.
|
|
45
54
|
*/
|
|
@@ -68,6 +77,8 @@ function instanceOfLeadDto(value) {
|
|
|
68
77
|
return false;
|
|
69
78
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
|
|
70
79
|
return false;
|
|
80
|
+
if (!('manualType' in value) || value['manualType'] === undefined)
|
|
81
|
+
return false;
|
|
71
82
|
return true;
|
|
72
83
|
}
|
|
73
84
|
function LeadDtoFromJSON(json) {
|
|
@@ -90,6 +101,7 @@ function LeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
90
101
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
91
102
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
92
103
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
104
|
+
'manualType': json['manualType'],
|
|
93
105
|
};
|
|
94
106
|
}
|
|
95
107
|
function LeadDtoToJSON(json) {
|
|
@@ -113,5 +125,6 @@ function LeadDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
113
125
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
114
126
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
115
127
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
128
|
+
'manualType': value['manualType'],
|
|
116
129
|
};
|
|
117
130
|
}
|
|
@@ -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;
|