@randock/nameshift-api-client 0.0.331 → 0.0.332
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 +20 -0
- package/README.md +3 -3
- package/dist/apis/AuctionsPublicApi.d.ts +29 -0
- package/dist/apis/AuctionsPublicApi.js +124 -0
- package/dist/apis/BuyersApi.d.ts +54 -1
- package/dist/apis/BuyersApi.js +267 -0
- package/dist/apis/BuyersPublicApi.d.ts +23 -1
- package/dist/apis/BuyersPublicApi.js +90 -0
- package/dist/apis/DomainsApi.d.ts +13 -1
- package/dist/apis/DomainsApi.js +56 -0
- package/dist/apis/LeadsApi.d.ts +2 -5
- package/dist/apis/LeadsApi.js +4 -8
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AuctionBidDto.d.ts +51 -0
- package/dist/models/AuctionBidDto.js +64 -0
- package/dist/models/AuctionBidInput.d.ts +32 -0
- package/dist/models/AuctionBidInput.js +51 -0
- package/dist/models/AuctionBuyerDto.d.ts +74 -0
- package/dist/models/AuctionBuyerDto.js +79 -0
- package/dist/models/AuctionBuyerWithTokenDto.d.ts +39 -0
- package/dist/models/AuctionBuyerWithTokenDto.js +56 -0
- package/dist/models/AuctionDto.d.ts +82 -0
- package/dist/models/AuctionDto.js +85 -0
- package/dist/models/BuyerLeadListItemDto.d.ts +23 -0
- package/dist/models/BuyerLeadListItemDto.js +19 -1
- package/dist/models/DomainAuctionDto.d.ts +63 -0
- package/dist/models/DomainAuctionDto.js +72 -0
- package/dist/models/DomainSalesInformationDto.d.ts +12 -0
- package/dist/models/DomainSalesInformationDto.js +8 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +5 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +36 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +28 -1
- package/dist/models/LeadDto.d.ts +43 -0
- package/dist/models/LeadDto.js +33 -1
- package/dist/models/LeadLeaseToOwnConfigurationDto.d.ts +50 -0
- package/dist/models/LeadLeaseToOwnConfigurationDto.js +63 -0
- package/dist/models/LeadMessageData.d.ts +7 -0
- package/dist/models/LeadMessageData.js +5 -0
- package/dist/models/LeadMessageDataLeaseToOwn.d.ts +38 -0
- package/dist/models/LeadMessageDataLeaseToOwn.js +55 -0
- package/dist/models/LeadMessageDto.d.ts +16 -0
- package/dist/models/LeadMessageDto.js +14 -1
- package/dist/models/LeadOfferDto.d.ts +72 -0
- package/dist/models/LeadOfferDto.js +84 -0
- package/dist/models/LeadRentConfigurationDto.d.ts +38 -0
- package/dist/models/LeadRentConfigurationDto.js +55 -0
- package/dist/models/ListLeadsResultItem.d.ts +43 -0
- package/dist/models/ListLeadsResultItem.js +33 -1
- package/dist/models/ManualLeadLeaseToOwnDto.d.ts +12 -0
- package/dist/models/ManualLeadLeaseToOwnDto.js +8 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/PutBuyerLeadOfferInput.d.ts +22 -0
- package/dist/models/PutBuyerLeadOfferInput.js +14 -0
- package/dist/models/PutLeadOfferInput.d.ts +23 -1
- package/dist/models/PutLeadOfferInput.js +15 -3
- package/dist/models/RegisterAuctionBuyerPhoneInput.d.ts +47 -0
- package/dist/models/RegisterAuctionBuyerPhoneInput.js +64 -0
- package/dist/models/RegisterInput.d.ts +38 -0
- package/dist/models/RegisterInput.js +55 -0
- package/dist/models/RequestEmailOtpInput.d.ts +38 -0
- package/dist/models/RequestEmailOtpInput.js +55 -0
- package/dist/models/SellerLeadDetails.d.ts +43 -0
- package/dist/models/SellerLeadDetails.js +33 -1
- package/dist/models/StartAuctionInput.d.ts +51 -0
- package/dist/models/StartAuctionInput.js +62 -0
- package/dist/models/TaskListLeadDto.d.ts +43 -0
- package/dist/models/TaskListLeadDto.js +33 -1
- package/dist/models/TaskListLeadLeaseToOwnConfigurationDto.d.ts +50 -0
- package/dist/models/TaskListLeadLeaseToOwnConfigurationDto.js +63 -0
- package/dist/models/TaskListLeadOfferDto.d.ts +72 -0
- package/dist/models/TaskListLeadOfferDto.js +84 -0
- package/dist/models/TaskListLeadRentConfigurationDto.d.ts +38 -0
- package/dist/models/TaskListLeadRentConfigurationDto.js +55 -0
- package/dist/models/VerifyEmailOtpInput.d.ts +38 -0
- package/dist/models/VerifyEmailOtpInput.js +55 -0
- package/dist/models/VerifyPhoneOtpInput.d.ts +32 -0
- package/dist/models/VerifyPhoneOtpInput.js +51 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/package.json +1 -1
- package/src/apis/AuctionsPublicApi.ts +67 -0
- package/src/apis/BuyersApi.ts +249 -0
- package/src/apis/BuyersPublicApi.ts +88 -0
- package/src/apis/DomainsApi.ts +58 -0
- package/src/apis/LeadsApi.ts +3 -11
- package/src/apis/index.ts +1 -0
- package/src/models/AuctionBidDto.ts +101 -0
- package/src/models/AuctionBidInput.ts +66 -0
- package/src/models/AuctionBuyerDto.ts +129 -0
- package/src/models/AuctionBuyerWithTokenDto.ts +83 -0
- package/src/models/AuctionDto.ts +153 -0
- package/src/models/BuyerLeadListItemDto.ts +36 -0
- package/src/models/DomainAuctionDto.ts +119 -0
- package/src/models/DomainSalesInformationDto.ts +18 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +16 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +61 -0
- package/src/models/LeadDto.ts +77 -0
- package/src/models/LeadLeaseToOwnConfigurationDto.ts +93 -0
- package/src/models/LeadMessageData.ts +16 -0
- package/src/models/LeadMessageDataLeaseToOwn.ts +75 -0
- package/src/models/LeadMessageDto.ts +20 -0
- package/src/models/LeadOfferDto.ts +132 -0
- package/src/models/LeadRentConfigurationDto.ts +75 -0
- package/src/models/ListLeadsResultItem.ts +77 -0
- package/src/models/ManualLeadLeaseToOwnDto.ts +18 -0
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/PutBuyerLeadOfferInput.ts +29 -0
- package/src/models/PutLeadOfferInput.ts +31 -3
- package/src/models/RegisterAuctionBuyerPhoneInput.ts +87 -0
- package/src/models/RegisterInput.ts +75 -0
- package/src/models/RequestEmailOtpInput.ts +75 -0
- package/src/models/SellerLeadDetails.ts +77 -0
- package/src/models/StartAuctionInput.ts +100 -0
- package/src/models/TaskListLeadDto.ts +77 -0
- package/src/models/TaskListLeadLeaseToOwnConfigurationDto.ts +93 -0
- package/src/models/TaskListLeadOfferDto.ts +132 -0
- package/src/models/TaskListLeadRentConfigurationDto.ts +75 -0
- package/src/models/VerifyEmailOtpInput.ts +75 -0
- package/src/models/VerifyPhoneOtpInput.ts +66 -0
- package/src/models/index.ts +19 -0
|
@@ -41,6 +41,20 @@ import {
|
|
|
41
41
|
MoneyDtoToJSON,
|
|
42
42
|
MoneyDtoToJSONTyped,
|
|
43
43
|
} from './MoneyDto';
|
|
44
|
+
import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
|
|
45
|
+
import {
|
|
46
|
+
LeadRentConfigurationDtoFromJSON,
|
|
47
|
+
LeadRentConfigurationDtoFromJSONTyped,
|
|
48
|
+
LeadRentConfigurationDtoToJSON,
|
|
49
|
+
LeadRentConfigurationDtoToJSONTyped,
|
|
50
|
+
} from './LeadRentConfigurationDto';
|
|
51
|
+
import type { LeadOfferDto } from './LeadOfferDto';
|
|
52
|
+
import {
|
|
53
|
+
LeadOfferDtoFromJSON,
|
|
54
|
+
LeadOfferDtoFromJSONTyped,
|
|
55
|
+
LeadOfferDtoToJSON,
|
|
56
|
+
LeadOfferDtoToJSONTyped,
|
|
57
|
+
} from './LeadOfferDto';
|
|
44
58
|
|
|
45
59
|
/**
|
|
46
60
|
*
|
|
@@ -72,6 +86,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
|
|
|
72
86
|
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
73
87
|
*/
|
|
74
88
|
lastOfferBy: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum | null;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
93
|
+
*/
|
|
94
|
+
lastOfferType: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum | null;
|
|
75
95
|
/**
|
|
76
96
|
*
|
|
77
97
|
* @type {IntersectionDomainDtoWithAccountDto}
|
|
@@ -144,6 +164,24 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
|
|
|
144
164
|
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
145
165
|
*/
|
|
146
166
|
isMutedForBuyer: boolean;
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @type {LeadRentConfigurationDto}
|
|
170
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
171
|
+
*/
|
|
172
|
+
rent: LeadRentConfigurationDto;
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @type {LeadOfferDto}
|
|
176
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
177
|
+
*/
|
|
178
|
+
lastBuyerOffer: LeadOfferDto | null;
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @type {LeadOfferDto}
|
|
182
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
183
|
+
*/
|
|
184
|
+
lastSellerOffer: LeadOfferDto | null;
|
|
147
185
|
}
|
|
148
186
|
|
|
149
187
|
|
|
@@ -170,6 +208,17 @@ export const IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoL
|
|
|
170
208
|
} as const;
|
|
171
209
|
export type IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum];
|
|
172
210
|
|
|
211
|
+
/**
|
|
212
|
+
* @export
|
|
213
|
+
*/
|
|
214
|
+
export const IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum = {
|
|
215
|
+
LEAD: 'lead',
|
|
216
|
+
LEASE_TO_OWN: 'lease_to_own',
|
|
217
|
+
RENT: 'rent',
|
|
218
|
+
AUCTION: 'auction'
|
|
219
|
+
} as const;
|
|
220
|
+
export type IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum];
|
|
221
|
+
|
|
173
222
|
/**
|
|
174
223
|
* @export
|
|
175
224
|
*/
|
|
@@ -190,6 +239,7 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuy
|
|
|
190
239
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
191
240
|
if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
|
|
192
241
|
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
|
|
242
|
+
if (!('lastOfferType' in value) || value['lastOfferType'] === undefined) return false;
|
|
193
243
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
194
244
|
if (!('manualType' in value) || value['manualType'] === undefined) return false;
|
|
195
245
|
if (!('buyer' in value) || value['buyer'] === undefined) return false;
|
|
@@ -202,6 +252,9 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuy
|
|
|
202
252
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
|
|
203
253
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
|
|
204
254
|
if (!('isMutedForBuyer' in value) || value['isMutedForBuyer'] === undefined) return false;
|
|
255
|
+
if (!('rent' in value) || value['rent'] === undefined) return false;
|
|
256
|
+
if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
|
|
257
|
+
if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
|
|
205
258
|
return true;
|
|
206
259
|
}
|
|
207
260
|
|
|
@@ -219,6 +272,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
|
|
|
219
272
|
'status': json['status'],
|
|
220
273
|
'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
|
|
221
274
|
'lastOfferBy': json['lastOfferBy'],
|
|
275
|
+
'lastOfferType': json['lastOfferType'],
|
|
222
276
|
'domain': IntersectionDomainDtoWithAccountDtoFromJSON(json['domain']),
|
|
223
277
|
'manualType': json['manualType'],
|
|
224
278
|
'buyer': ManualLeadBuyerDtoFromJSON(json['buyer']),
|
|
@@ -231,6 +285,9 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
|
|
|
231
285
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
232
286
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
233
287
|
'isMutedForBuyer': json['isMutedForBuyer'],
|
|
288
|
+
'rent': LeadRentConfigurationDtoFromJSON(json['rent']),
|
|
289
|
+
'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
|
|
290
|
+
'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
|
|
234
291
|
};
|
|
235
292
|
}
|
|
236
293
|
|
|
@@ -249,6 +306,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
|
|
|
249
306
|
'status': value['status'],
|
|
250
307
|
'lastOffer': MoneyDtoToJSON(value['lastOffer']),
|
|
251
308
|
'lastOfferBy': value['lastOfferBy'],
|
|
309
|
+
'lastOfferType': value['lastOfferType'],
|
|
252
310
|
'domain': IntersectionDomainDtoWithAccountDtoToJSON(value['domain']),
|
|
253
311
|
'manualType': value['manualType'],
|
|
254
312
|
'buyer': ManualLeadBuyerDtoToJSON(value['buyer']),
|
|
@@ -261,6 +319,9 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
|
|
|
261
319
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
262
320
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
263
321
|
'isMutedForBuyer': value['isMutedForBuyer'],
|
|
322
|
+
'rent': LeadRentConfigurationDtoToJSON(value['rent']),
|
|
323
|
+
'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
|
|
324
|
+
'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
|
|
264
325
|
};
|
|
265
326
|
}
|
|
266
327
|
|
package/src/models/LeadDto.ts
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LeadLeaseToOwnConfigurationDto } from './LeadLeaseToOwnConfigurationDto';
|
|
17
|
+
import {
|
|
18
|
+
LeadLeaseToOwnConfigurationDtoFromJSON,
|
|
19
|
+
LeadLeaseToOwnConfigurationDtoFromJSONTyped,
|
|
20
|
+
LeadLeaseToOwnConfigurationDtoToJSON,
|
|
21
|
+
LeadLeaseToOwnConfigurationDtoToJSONTyped,
|
|
22
|
+
} from './LeadLeaseToOwnConfigurationDto';
|
|
16
23
|
import type { LeadDomainDto } from './LeadDomainDto';
|
|
17
24
|
import {
|
|
18
25
|
LeadDomainDtoFromJSON,
|
|
@@ -27,6 +34,20 @@ import {
|
|
|
27
34
|
MoneyDtoToJSON,
|
|
28
35
|
MoneyDtoToJSONTyped,
|
|
29
36
|
} from './MoneyDto';
|
|
37
|
+
import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
|
|
38
|
+
import {
|
|
39
|
+
LeadRentConfigurationDtoFromJSON,
|
|
40
|
+
LeadRentConfigurationDtoFromJSONTyped,
|
|
41
|
+
LeadRentConfigurationDtoToJSON,
|
|
42
|
+
LeadRentConfigurationDtoToJSONTyped,
|
|
43
|
+
} from './LeadRentConfigurationDto';
|
|
44
|
+
import type { LeadOfferDto } from './LeadOfferDto';
|
|
45
|
+
import {
|
|
46
|
+
LeadOfferDtoFromJSON,
|
|
47
|
+
LeadOfferDtoFromJSONTyped,
|
|
48
|
+
LeadOfferDtoToJSON,
|
|
49
|
+
LeadOfferDtoToJSONTyped,
|
|
50
|
+
} from './LeadOfferDto';
|
|
30
51
|
|
|
31
52
|
/**
|
|
32
53
|
*
|
|
@@ -58,6 +79,12 @@ export interface LeadDto {
|
|
|
58
79
|
* @memberof LeadDto
|
|
59
80
|
*/
|
|
60
81
|
lastOfferBy: LeadDtoLastOfferByEnum | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof LeadDto
|
|
86
|
+
*/
|
|
87
|
+
lastOfferType: LeadDtoLastOfferTypeEnum | null;
|
|
61
88
|
/**
|
|
62
89
|
* Archived status
|
|
63
90
|
* @type {boolean}
|
|
@@ -118,6 +145,30 @@ export interface LeadDto {
|
|
|
118
145
|
* @memberof LeadDto
|
|
119
146
|
*/
|
|
120
147
|
isMutedForBuyer: boolean;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {LeadLeaseToOwnConfigurationDto}
|
|
151
|
+
* @memberof LeadDto
|
|
152
|
+
*/
|
|
153
|
+
leaseToOwn: LeadLeaseToOwnConfigurationDto | null;
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @type {LeadRentConfigurationDto}
|
|
157
|
+
* @memberof LeadDto
|
|
158
|
+
*/
|
|
159
|
+
rent: LeadRentConfigurationDto;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {LeadOfferDto}
|
|
163
|
+
* @memberof LeadDto
|
|
164
|
+
*/
|
|
165
|
+
lastBuyerOffer: LeadOfferDto | null;
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @type {LeadOfferDto}
|
|
169
|
+
* @memberof LeadDto
|
|
170
|
+
*/
|
|
171
|
+
lastSellerOffer: LeadOfferDto | null;
|
|
121
172
|
}
|
|
122
173
|
|
|
123
174
|
|
|
@@ -144,6 +195,17 @@ export const LeadDtoLastOfferByEnum = {
|
|
|
144
195
|
} as const;
|
|
145
196
|
export type LeadDtoLastOfferByEnum = typeof LeadDtoLastOfferByEnum[keyof typeof LeadDtoLastOfferByEnum];
|
|
146
197
|
|
|
198
|
+
/**
|
|
199
|
+
* @export
|
|
200
|
+
*/
|
|
201
|
+
export const LeadDtoLastOfferTypeEnum = {
|
|
202
|
+
LEAD: 'lead',
|
|
203
|
+
LEASE_TO_OWN: 'lease_to_own',
|
|
204
|
+
RENT: 'rent',
|
|
205
|
+
AUCTION: 'auction'
|
|
206
|
+
} as const;
|
|
207
|
+
export type LeadDtoLastOfferTypeEnum = typeof LeadDtoLastOfferTypeEnum[keyof typeof LeadDtoLastOfferTypeEnum];
|
|
208
|
+
|
|
147
209
|
/**
|
|
148
210
|
* @export
|
|
149
211
|
*/
|
|
@@ -164,6 +226,7 @@ export function instanceOfLeadDto(value: object): value is LeadDto {
|
|
|
164
226
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
165
227
|
if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
|
|
166
228
|
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
|
|
229
|
+
if (!('lastOfferType' in value) || value['lastOfferType'] === undefined) return false;
|
|
167
230
|
if (!('archived' in value) || value['archived'] === undefined) return false;
|
|
168
231
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
169
232
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
@@ -174,6 +237,10 @@ export function instanceOfLeadDto(value: object): value is LeadDto {
|
|
|
174
237
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
|
|
175
238
|
if (!('manualType' in value) || value['manualType'] === undefined) return false;
|
|
176
239
|
if (!('isMutedForBuyer' in value) || value['isMutedForBuyer'] === undefined) return false;
|
|
240
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
241
|
+
if (!('rent' in value) || value['rent'] === undefined) return false;
|
|
242
|
+
if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
|
|
243
|
+
if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
|
|
177
244
|
return true;
|
|
178
245
|
}
|
|
179
246
|
|
|
@@ -191,6 +258,7 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
|
|
|
191
258
|
'status': json['status'],
|
|
192
259
|
'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
|
|
193
260
|
'lastOfferBy': json['lastOfferBy'],
|
|
261
|
+
'lastOfferType': json['lastOfferType'],
|
|
194
262
|
'archived': json['archived'],
|
|
195
263
|
'createdAt': (new Date(json['createdAt'])),
|
|
196
264
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
@@ -201,6 +269,10 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
|
|
|
201
269
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
202
270
|
'manualType': json['manualType'],
|
|
203
271
|
'isMutedForBuyer': json['isMutedForBuyer'],
|
|
272
|
+
'leaseToOwn': LeadLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
273
|
+
'rent': LeadRentConfigurationDtoFromJSON(json['rent']),
|
|
274
|
+
'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
|
|
275
|
+
'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
|
|
204
276
|
};
|
|
205
277
|
}
|
|
206
278
|
|
|
@@ -219,6 +291,7 @@ export function LeadDtoToJSONTyped(value?: LeadDto | null, ignoreDiscriminator:
|
|
|
219
291
|
'status': value['status'],
|
|
220
292
|
'lastOffer': MoneyDtoToJSON(value['lastOffer']),
|
|
221
293
|
'lastOfferBy': value['lastOfferBy'],
|
|
294
|
+
'lastOfferType': value['lastOfferType'],
|
|
222
295
|
'archived': value['archived'],
|
|
223
296
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
224
297
|
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
@@ -229,6 +302,10 @@ export function LeadDtoToJSONTyped(value?: LeadDto | null, ignoreDiscriminator:
|
|
|
229
302
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
230
303
|
'manualType': value['manualType'],
|
|
231
304
|
'isMutedForBuyer': value['isMutedForBuyer'],
|
|
305
|
+
'leaseToOwn': LeadLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
306
|
+
'rent': LeadRentConfigurationDtoToJSON(value['rent']),
|
|
307
|
+
'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
|
|
308
|
+
'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
|
|
232
309
|
};
|
|
233
310
|
}
|
|
234
311
|
|
|
@@ -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 LeadLeaseToOwnConfigurationDto
|
|
20
|
+
*/
|
|
21
|
+
export interface LeadLeaseToOwnConfigurationDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof LeadLeaseToOwnConfigurationDto
|
|
26
|
+
*/
|
|
27
|
+
minMonths: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof LeadLeaseToOwnConfigurationDto
|
|
32
|
+
*/
|
|
33
|
+
maxMonths: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof LeadLeaseToOwnConfigurationDto
|
|
38
|
+
*/
|
|
39
|
+
kickBackPercentage: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof LeadLeaseToOwnConfigurationDto
|
|
44
|
+
*/
|
|
45
|
+
markupComissionPercentage: number | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the LeadLeaseToOwnConfigurationDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfLeadLeaseToOwnConfigurationDto(value: object): value is LeadLeaseToOwnConfigurationDto {
|
|
52
|
+
if (!('minMonths' in value) || value['minMonths'] === undefined) return false;
|
|
53
|
+
if (!('maxMonths' in value) || value['maxMonths'] === undefined) return false;
|
|
54
|
+
if (!('kickBackPercentage' in value) || value['kickBackPercentage'] === undefined) return false;
|
|
55
|
+
if (!('markupComissionPercentage' in value) || value['markupComissionPercentage'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function LeadLeaseToOwnConfigurationDtoFromJSON(json: any): LeadLeaseToOwnConfigurationDto {
|
|
60
|
+
return LeadLeaseToOwnConfigurationDtoFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function LeadLeaseToOwnConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadLeaseToOwnConfigurationDto {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'minMonths': json['minMonths'],
|
|
70
|
+
'maxMonths': json['maxMonths'],
|
|
71
|
+
'kickBackPercentage': json['kickBackPercentage'],
|
|
72
|
+
'markupComissionPercentage': json['markupComissionPercentage'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function LeadLeaseToOwnConfigurationDtoToJSON(json: any): LeadLeaseToOwnConfigurationDto {
|
|
77
|
+
return LeadLeaseToOwnConfigurationDtoToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function LeadLeaseToOwnConfigurationDtoToJSONTyped(value?: LeadLeaseToOwnConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'minMonths': value['minMonths'],
|
|
88
|
+
'maxMonths': value['maxMonths'],
|
|
89
|
+
'kickBackPercentage': value['kickBackPercentage'],
|
|
90
|
+
'markupComissionPercentage': value['markupComissionPercentage'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LeadMessageDataLeaseToOwn } from './LeadMessageDataLeaseToOwn';
|
|
17
|
+
import {
|
|
18
|
+
LeadMessageDataLeaseToOwnFromJSON,
|
|
19
|
+
LeadMessageDataLeaseToOwnFromJSONTyped,
|
|
20
|
+
LeadMessageDataLeaseToOwnToJSON,
|
|
21
|
+
LeadMessageDataLeaseToOwnToJSONTyped,
|
|
22
|
+
} from './LeadMessageDataLeaseToOwn';
|
|
16
23
|
import type { MoneyDto } from './MoneyDto';
|
|
17
24
|
import {
|
|
18
25
|
MoneyDtoFromJSON,
|
|
@@ -33,6 +40,12 @@ export interface LeadMessageData {
|
|
|
33
40
|
* @memberof LeadMessageData
|
|
34
41
|
*/
|
|
35
42
|
price: MoneyDto;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {LeadMessageDataLeaseToOwn}
|
|
46
|
+
* @memberof LeadMessageData
|
|
47
|
+
*/
|
|
48
|
+
leaseToOwn: LeadMessageDataLeaseToOwn | null;
|
|
36
49
|
}
|
|
37
50
|
|
|
38
51
|
/**
|
|
@@ -40,6 +53,7 @@ export interface LeadMessageData {
|
|
|
40
53
|
*/
|
|
41
54
|
export function instanceOfLeadMessageData(value: object): value is LeadMessageData {
|
|
42
55
|
if (!('price' in value) || value['price'] === undefined) return false;
|
|
56
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
43
57
|
return true;
|
|
44
58
|
}
|
|
45
59
|
|
|
@@ -54,6 +68,7 @@ export function LeadMessageDataFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
54
68
|
return {
|
|
55
69
|
|
|
56
70
|
'price': MoneyDtoFromJSON(json['price']),
|
|
71
|
+
'leaseToOwn': LeadMessageDataLeaseToOwnFromJSON(json['leaseToOwn']),
|
|
57
72
|
};
|
|
58
73
|
}
|
|
59
74
|
|
|
@@ -69,6 +84,7 @@ export function LeadMessageDataToJSONTyped(value?: LeadMessageData | null, ignor
|
|
|
69
84
|
return {
|
|
70
85
|
|
|
71
86
|
'price': MoneyDtoToJSON(value['price']),
|
|
87
|
+
'leaseToOwn': LeadMessageDataLeaseToOwnToJSON(value['leaseToOwn']),
|
|
72
88
|
};
|
|
73
89
|
}
|
|
74
90
|
|
|
@@ -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 LeadMessageDataLeaseToOwn
|
|
20
|
+
*/
|
|
21
|
+
export interface LeadMessageDataLeaseToOwn {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof LeadMessageDataLeaseToOwn
|
|
26
|
+
*/
|
|
27
|
+
minMonths: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof LeadMessageDataLeaseToOwn
|
|
32
|
+
*/
|
|
33
|
+
maxMonths: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the LeadMessageDataLeaseToOwn interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfLeadMessageDataLeaseToOwn(value: object): value is LeadMessageDataLeaseToOwn {
|
|
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 LeadMessageDataLeaseToOwnFromJSON(json: any): LeadMessageDataLeaseToOwn {
|
|
46
|
+
return LeadMessageDataLeaseToOwnFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LeadMessageDataLeaseToOwnFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageDataLeaseToOwn {
|
|
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 LeadMessageDataLeaseToOwnToJSON(json: any): LeadMessageDataLeaseToOwn {
|
|
61
|
+
return LeadMessageDataLeaseToOwnToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function LeadMessageDataLeaseToOwnToJSONTyped(value?: LeadMessageDataLeaseToOwn | 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
|
+
|
|
@@ -39,6 +39,12 @@ export interface LeadMessageDto {
|
|
|
39
39
|
* @memberof LeadMessageDto
|
|
40
40
|
*/
|
|
41
41
|
type: LeadMessageDtoTypeEnum;
|
|
42
|
+
/**
|
|
43
|
+
* The lead message offer type
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof LeadMessageDto
|
|
46
|
+
*/
|
|
47
|
+
offerType: LeadMessageDtoOfferTypeEnum | null;
|
|
42
48
|
/**
|
|
43
49
|
* The lead message origin
|
|
44
50
|
* @type {string}
|
|
@@ -90,6 +96,17 @@ export const LeadMessageDtoTypeEnum = {
|
|
|
90
96
|
} as const;
|
|
91
97
|
export type LeadMessageDtoTypeEnum = typeof LeadMessageDtoTypeEnum[keyof typeof LeadMessageDtoTypeEnum];
|
|
92
98
|
|
|
99
|
+
/**
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
export const LeadMessageDtoOfferTypeEnum = {
|
|
103
|
+
LEAD: 'lead',
|
|
104
|
+
LEASE_TO_OWN: 'lease_to_own',
|
|
105
|
+
RENT: 'rent',
|
|
106
|
+
AUCTION: 'auction'
|
|
107
|
+
} as const;
|
|
108
|
+
export type LeadMessageDtoOfferTypeEnum = typeof LeadMessageDtoOfferTypeEnum[keyof typeof LeadMessageDtoOfferTypeEnum];
|
|
109
|
+
|
|
93
110
|
/**
|
|
94
111
|
* @export
|
|
95
112
|
*/
|
|
@@ -108,6 +125,7 @@ export type LeadMessageDtoOriginEnum = typeof LeadMessageDtoOriginEnum[keyof typ
|
|
|
108
125
|
export function instanceOfLeadMessageDto(value: object): value is LeadMessageDto {
|
|
109
126
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
110
127
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
128
|
+
if (!('offerType' in value) || value['offerType'] === undefined) return false;
|
|
111
129
|
if (!('origin' in value) || value['origin'] === undefined) return false;
|
|
112
130
|
if (!('data' in value) || value['data'] === undefined) return false;
|
|
113
131
|
if (!('message' in value) || value['message'] === undefined) return false;
|
|
@@ -129,6 +147,7 @@ export function LeadMessageDtoFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
129
147
|
|
|
130
148
|
'id': json['id'],
|
|
131
149
|
'type': json['type'],
|
|
150
|
+
'offerType': json['offerType'],
|
|
132
151
|
'origin': json['origin'],
|
|
133
152
|
'data': LeadMessageDataFromJSON(json['data']),
|
|
134
153
|
'message': json['message'],
|
|
@@ -151,6 +170,7 @@ export function LeadMessageDtoToJSONTyped(value?: LeadMessageDto | null, ignoreD
|
|
|
151
170
|
|
|
152
171
|
'id': value['id'],
|
|
153
172
|
'type': value['type'],
|
|
173
|
+
'offerType': value['offerType'],
|
|
154
174
|
'origin': value['origin'],
|
|
155
175
|
'data': LeadMessageDataToJSON(value['data']),
|
|
156
176
|
'message': value['message'],
|
|
@@ -0,0 +1,132 @@
|
|
|
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 { LeadMessageDataLeaseToOwn } from './LeadMessageDataLeaseToOwn';
|
|
17
|
+
import {
|
|
18
|
+
LeadMessageDataLeaseToOwnFromJSON,
|
|
19
|
+
LeadMessageDataLeaseToOwnFromJSONTyped,
|
|
20
|
+
LeadMessageDataLeaseToOwnToJSON,
|
|
21
|
+
LeadMessageDataLeaseToOwnToJSONTyped,
|
|
22
|
+
} from './LeadMessageDataLeaseToOwn';
|
|
23
|
+
import type { MoneyDto } from './MoneyDto';
|
|
24
|
+
import {
|
|
25
|
+
MoneyDtoFromJSON,
|
|
26
|
+
MoneyDtoFromJSONTyped,
|
|
27
|
+
MoneyDtoToJSON,
|
|
28
|
+
MoneyDtoToJSONTyped,
|
|
29
|
+
} from './MoneyDto';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface LeadOfferDto
|
|
35
|
+
*/
|
|
36
|
+
export interface LeadOfferDto {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {MoneyDto}
|
|
40
|
+
* @memberof LeadOfferDto
|
|
41
|
+
*/
|
|
42
|
+
offer: MoneyDto;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof LeadOfferDto
|
|
47
|
+
*/
|
|
48
|
+
offerBy: LeadOfferDtoOfferByEnum;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof LeadOfferDto
|
|
53
|
+
*/
|
|
54
|
+
offerType: LeadOfferDtoOfferTypeEnum;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {LeadMessageDataLeaseToOwn}
|
|
58
|
+
* @memberof LeadOfferDto
|
|
59
|
+
*/
|
|
60
|
+
leaseToOwn: LeadMessageDataLeaseToOwn | null;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @export
|
|
66
|
+
*/
|
|
67
|
+
export const LeadOfferDtoOfferByEnum = {
|
|
68
|
+
BUYER: 'buyer',
|
|
69
|
+
SELLER: 'seller',
|
|
70
|
+
AI: 'ai',
|
|
71
|
+
ADMIN: 'admin'
|
|
72
|
+
} as const;
|
|
73
|
+
export type LeadOfferDtoOfferByEnum = typeof LeadOfferDtoOfferByEnum[keyof typeof LeadOfferDtoOfferByEnum];
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export const LeadOfferDtoOfferTypeEnum = {
|
|
79
|
+
LEAD: 'lead',
|
|
80
|
+
LEASE_TO_OWN: 'lease_to_own',
|
|
81
|
+
RENT: 'rent',
|
|
82
|
+
AUCTION: 'auction'
|
|
83
|
+
} as const;
|
|
84
|
+
export type LeadOfferDtoOfferTypeEnum = typeof LeadOfferDtoOfferTypeEnum[keyof typeof LeadOfferDtoOfferTypeEnum];
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Check if a given object implements the LeadOfferDto interface.
|
|
89
|
+
*/
|
|
90
|
+
export function instanceOfLeadOfferDto(value: object): value is LeadOfferDto {
|
|
91
|
+
if (!('offer' in value) || value['offer'] === undefined) return false;
|
|
92
|
+
if (!('offerBy' in value) || value['offerBy'] === undefined) return false;
|
|
93
|
+
if (!('offerType' in value) || value['offerType'] === undefined) return false;
|
|
94
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function LeadOfferDtoFromJSON(json: any): LeadOfferDto {
|
|
99
|
+
return LeadOfferDtoFromJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function LeadOfferDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadOfferDto {
|
|
103
|
+
if (json == null) {
|
|
104
|
+
return json;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'offer': MoneyDtoFromJSON(json['offer']),
|
|
109
|
+
'offerBy': json['offerBy'],
|
|
110
|
+
'offerType': json['offerType'],
|
|
111
|
+
'leaseToOwn': LeadMessageDataLeaseToOwnFromJSON(json['leaseToOwn']),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function LeadOfferDtoToJSON(json: any): LeadOfferDto {
|
|
116
|
+
return LeadOfferDtoToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function LeadOfferDtoToJSONTyped(value?: LeadOfferDto | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'offer': MoneyDtoToJSON(value['offer']),
|
|
127
|
+
'offerBy': value['offerBy'],
|
|
128
|
+
'offerType': value['offerType'],
|
|
129
|
+
'leaseToOwn': LeadMessageDataLeaseToOwnToJSON(value['leaseToOwn']),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|