@randock/nameshift-api-client 0.0.365 → 0.0.366
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 +13 -1
- package/dist/apis/LeadsApi.js +56 -0
- package/dist/models/AccountSettingsDto.d.ts +7 -0
- package/dist/models/AccountSettingsDto.js +5 -0
- package/dist/models/AccountSettingsInput.d.ts +6 -0
- package/dist/models/AccountSettingsInput.js +2 -0
- package/dist/models/AdminAccountSettingsInput.d.ts +6 -0
- package/dist/models/AdminAccountSettingsInput.js +2 -0
- package/dist/models/BuyerDomainTransferListItemDto.d.ts +6 -0
- package/dist/models/BuyerDomainTransferListItemDto.js +4 -0
- package/dist/models/BuyerLeadListItemDto.d.ts +6 -0
- package/dist/models/BuyerLeadListItemDto.js +4 -0
- package/dist/models/CreateManualLeadInput.d.ts +14 -0
- package/dist/models/CreateManualLeadInput.js +6 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +7 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +5 -0
- package/dist/models/LeadDto.d.ts +7 -0
- package/dist/models/LeadDto.js +5 -0
- package/dist/models/LeadOfferExpirationConfigurationDto.d.ts +39 -0
- package/dist/models/LeadOfferExpirationConfigurationDto.js +56 -0
- package/dist/models/LeadOfferExpirationConfigurationInput.d.ts +39 -0
- package/dist/models/LeadOfferExpirationConfigurationInput.js +52 -0
- package/dist/models/LeadOfferExpirationDurationInput.d.ts +47 -0
- package/dist/models/LeadOfferExpirationDurationInput.js +60 -0
- package/dist/models/ListLeadsResultItem.d.ts +7 -0
- package/dist/models/ListLeadsResultItem.js +5 -0
- package/dist/models/PutLeadOfferInput.d.ts +7 -0
- package/dist/models/PutLeadOfferInput.js +3 -0
- package/dist/models/SellerLeadDetails.d.ts +7 -0
- package/dist/models/SellerLeadDetails.js +5 -0
- package/dist/models/TaskListLeadDto.d.ts +7 -0
- package/dist/models/TaskListLeadDto.js +5 -0
- package/dist/models/WithSettingsInner.d.ts +7 -0
- package/dist/models/WithSettingsInner.js +5 -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 +58 -0
- package/src/models/AccountSettingsDto.ts +16 -0
- package/src/models/AccountSettingsInput.ts +8 -0
- package/src/models/AdminAccountSettingsInput.ts +8 -0
- package/src/models/BuyerDomainTransferListItemDto.ts +9 -0
- package/src/models/BuyerLeadListItemDto.ts +9 -0
- package/src/models/CreateManualLeadInput.ts +30 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +16 -0
- package/src/models/LeadDto.ts +16 -0
- package/src/models/LeadOfferExpirationConfigurationDto.ts +83 -0
- package/src/models/LeadOfferExpirationConfigurationInput.ts +81 -0
- package/src/models/LeadOfferExpirationDurationInput.ts +85 -0
- package/src/models/ListLeadsResultItem.ts +16 -0
- package/src/models/PutLeadOfferInput.ts +15 -0
- package/src/models/SellerLeadDetails.ts +16 -0
- package/src/models/TaskListLeadDto.ts +16 -0
- package/src/models/WithSettingsInner.ts +16 -0
- package/src/models/index.ts +3 -0
|
@@ -75,6 +75,12 @@ export interface BuyerDomainTransferListItemDto {
|
|
|
75
75
|
* @memberof BuyerDomainTransferListItemDto
|
|
76
76
|
*/
|
|
77
77
|
ipsTag: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* The buyer domain transfer is expired
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof BuyerDomainTransferListItemDto
|
|
82
|
+
*/
|
|
83
|
+
isOfferExpired: boolean;
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
|
|
@@ -114,6 +120,7 @@ export function instanceOfBuyerDomainTransferListItemDto(value: object): value i
|
|
|
114
120
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
115
121
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
116
122
|
if (!('ipsTag' in value) || value['ipsTag'] === undefined) return false;
|
|
123
|
+
if (!('isOfferExpired' in value) || value['isOfferExpired'] === undefined) return false;
|
|
117
124
|
return true;
|
|
118
125
|
}
|
|
119
126
|
|
|
@@ -135,6 +142,7 @@ export function BuyerDomainTransferListItemDtoFromJSONTyped(json: any, ignoreDis
|
|
|
135
142
|
'domain': BuyerDomainTransferListItemDomainDtoFromJSON(json['domain']),
|
|
136
143
|
'createdAt': (new Date(json['createdAt'])),
|
|
137
144
|
'ipsTag': json['ipsTag'],
|
|
145
|
+
'isOfferExpired': json['isOfferExpired'],
|
|
138
146
|
};
|
|
139
147
|
}
|
|
140
148
|
|
|
@@ -157,6 +165,7 @@ export function BuyerDomainTransferListItemDtoToJSONTyped(value?: BuyerDomainTra
|
|
|
157
165
|
'domain': BuyerDomainTransferListItemDomainDtoToJSON(value['domain']),
|
|
158
166
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
159
167
|
'ipsTag': value['ipsTag'],
|
|
168
|
+
'isOfferExpired': value['isOfferExpired'],
|
|
160
169
|
};
|
|
161
170
|
}
|
|
162
171
|
|
|
@@ -107,6 +107,12 @@ export interface BuyerLeadListItemDto {
|
|
|
107
107
|
* @memberof BuyerLeadListItemDto
|
|
108
108
|
*/
|
|
109
109
|
isMuted: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* The lead is offer expired
|
|
112
|
+
* @type {boolean}
|
|
113
|
+
* @memberof BuyerLeadListItemDto
|
|
114
|
+
*/
|
|
115
|
+
isOfferExpired: boolean;
|
|
110
116
|
}
|
|
111
117
|
|
|
112
118
|
|
|
@@ -160,6 +166,7 @@ export function instanceOfBuyerLeadListItemDto(value: object): value is BuyerLea
|
|
|
160
166
|
if (!('unreadMessages' in value) || value['unreadMessages'] === undefined) return false;
|
|
161
167
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
|
|
162
168
|
if (!('isMuted' in value) || value['isMuted'] === undefined) return false;
|
|
169
|
+
if (!('isOfferExpired' in value) || value['isOfferExpired'] === undefined) return false;
|
|
163
170
|
return true;
|
|
164
171
|
}
|
|
165
172
|
|
|
@@ -184,6 +191,7 @@ export function BuyerLeadListItemDtoFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
184
191
|
'unreadMessages': json['unreadMessages'],
|
|
185
192
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
186
193
|
'isMuted': json['isMuted'],
|
|
194
|
+
'isOfferExpired': json['isOfferExpired'],
|
|
187
195
|
};
|
|
188
196
|
}
|
|
189
197
|
|
|
@@ -209,6 +217,7 @@ export function BuyerLeadListItemDtoToJSONTyped(value?: BuyerLeadListItemDto | n
|
|
|
209
217
|
'unreadMessages': value['unreadMessages'],
|
|
210
218
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
211
219
|
'isMuted': value['isMuted'],
|
|
220
|
+
'isOfferExpired': value['isOfferExpired'],
|
|
212
221
|
};
|
|
213
222
|
}
|
|
214
223
|
|
|
@@ -13,6 +13,20 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LockConfigurationInput } from './LockConfigurationInput';
|
|
17
|
+
import {
|
|
18
|
+
LockConfigurationInputFromJSON,
|
|
19
|
+
LockConfigurationInputFromJSONTyped,
|
|
20
|
+
LockConfigurationInputToJSON,
|
|
21
|
+
LockConfigurationInputToJSONTyped,
|
|
22
|
+
} from './LockConfigurationInput';
|
|
23
|
+
import type { LeadOfferExpirationConfigurationInput } from './LeadOfferExpirationConfigurationInput';
|
|
24
|
+
import {
|
|
25
|
+
LeadOfferExpirationConfigurationInputFromJSON,
|
|
26
|
+
LeadOfferExpirationConfigurationInputFromJSONTyped,
|
|
27
|
+
LeadOfferExpirationConfigurationInputToJSON,
|
|
28
|
+
LeadOfferExpirationConfigurationInputToJSONTyped,
|
|
29
|
+
} from './LeadOfferExpirationConfigurationInput';
|
|
16
30
|
import type { MoneyInput } from './MoneyInput';
|
|
17
31
|
import {
|
|
18
32
|
MoneyInputFromJSON,
|
|
@@ -81,6 +95,18 @@ export interface CreateManualLeadInput {
|
|
|
81
95
|
* @memberof CreateManualLeadInput
|
|
82
96
|
*/
|
|
83
97
|
leaseToOwnMaxMonths: number | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {LeadOfferExpirationConfigurationInput}
|
|
101
|
+
* @memberof CreateManualLeadInput
|
|
102
|
+
*/
|
|
103
|
+
leadOfferExpirationConfiguration?: LeadOfferExpirationConfigurationInput;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {LockConfigurationInput}
|
|
107
|
+
* @memberof CreateManualLeadInput
|
|
108
|
+
*/
|
|
109
|
+
domainLockConfiguration?: LockConfigurationInput;
|
|
84
110
|
}
|
|
85
111
|
|
|
86
112
|
|
|
@@ -131,6 +157,8 @@ export function CreateManualLeadInputFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
131
157
|
'offer': MoneyInputFromJSON(json['offer']),
|
|
132
158
|
'leaseToOwnMinMonths': json['leaseToOwnMinMonths'],
|
|
133
159
|
'leaseToOwnMaxMonths': json['leaseToOwnMaxMonths'],
|
|
160
|
+
'leadOfferExpirationConfiguration': json['leadOfferExpirationConfiguration'] == null ? undefined : LeadOfferExpirationConfigurationInputFromJSON(json['leadOfferExpirationConfiguration']),
|
|
161
|
+
'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : LockConfigurationInputFromJSON(json['domainLockConfiguration']),
|
|
134
162
|
};
|
|
135
163
|
}
|
|
136
164
|
|
|
@@ -154,6 +182,8 @@ export function CreateManualLeadInputToJSONTyped(value?: CreateManualLeadInput |
|
|
|
154
182
|
'offer': MoneyInputToJSON(value['offer']),
|
|
155
183
|
'leaseToOwnMinMonths': value['leaseToOwnMinMonths'],
|
|
156
184
|
'leaseToOwnMaxMonths': value['leaseToOwnMaxMonths'],
|
|
185
|
+
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationInputToJSON(value['leadOfferExpirationConfiguration']),
|
|
186
|
+
'domainLockConfiguration': LockConfigurationInputToJSON(value['domainLockConfiguration']),
|
|
157
187
|
};
|
|
158
188
|
}
|
|
159
189
|
|
|
@@ -48,6 +48,13 @@ import {
|
|
|
48
48
|
LeadRentConfigurationDtoToJSON,
|
|
49
49
|
LeadRentConfigurationDtoToJSONTyped,
|
|
50
50
|
} from './LeadRentConfigurationDto';
|
|
51
|
+
import type { LeadOfferExpirationConfigurationDto } from './LeadOfferExpirationConfigurationDto';
|
|
52
|
+
import {
|
|
53
|
+
LeadOfferExpirationConfigurationDtoFromJSON,
|
|
54
|
+
LeadOfferExpirationConfigurationDtoFromJSONTyped,
|
|
55
|
+
LeadOfferExpirationConfigurationDtoToJSON,
|
|
56
|
+
LeadOfferExpirationConfigurationDtoToJSONTyped,
|
|
57
|
+
} from './LeadOfferExpirationConfigurationDto';
|
|
51
58
|
import type { LeadOfferDto } from './LeadOfferDto';
|
|
52
59
|
import {
|
|
53
60
|
LeadOfferDtoFromJSON,
|
|
@@ -182,6 +189,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
|
|
|
182
189
|
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
183
190
|
*/
|
|
184
191
|
lastSellerOffer: LeadOfferDto | null;
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @type {LeadOfferExpirationConfigurationDto}
|
|
195
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
196
|
+
*/
|
|
197
|
+
leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
|
|
185
198
|
}
|
|
186
199
|
|
|
187
200
|
|
|
@@ -255,6 +268,7 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuy
|
|
|
255
268
|
if (!('rent' in value) || value['rent'] === undefined) return false;
|
|
256
269
|
if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
|
|
257
270
|
if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
|
|
271
|
+
if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
|
|
258
272
|
return true;
|
|
259
273
|
}
|
|
260
274
|
|
|
@@ -288,6 +302,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
|
|
|
288
302
|
'rent': LeadRentConfigurationDtoFromJSON(json['rent']),
|
|
289
303
|
'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
|
|
290
304
|
'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
|
|
305
|
+
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
|
|
291
306
|
};
|
|
292
307
|
}
|
|
293
308
|
|
|
@@ -322,6 +337,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
|
|
|
322
337
|
'rent': LeadRentConfigurationDtoToJSON(value['rent']),
|
|
323
338
|
'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
|
|
324
339
|
'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
|
|
340
|
+
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
|
|
325
341
|
};
|
|
326
342
|
}
|
|
327
343
|
|
package/src/models/LeadDto.ts
CHANGED
|
@@ -41,6 +41,13 @@ import {
|
|
|
41
41
|
LeadRentConfigurationDtoToJSON,
|
|
42
42
|
LeadRentConfigurationDtoToJSONTyped,
|
|
43
43
|
} from './LeadRentConfigurationDto';
|
|
44
|
+
import type { LeadOfferExpirationConfigurationDto } from './LeadOfferExpirationConfigurationDto';
|
|
45
|
+
import {
|
|
46
|
+
LeadOfferExpirationConfigurationDtoFromJSON,
|
|
47
|
+
LeadOfferExpirationConfigurationDtoFromJSONTyped,
|
|
48
|
+
LeadOfferExpirationConfigurationDtoToJSON,
|
|
49
|
+
LeadOfferExpirationConfigurationDtoToJSONTyped,
|
|
50
|
+
} from './LeadOfferExpirationConfigurationDto';
|
|
44
51
|
import type { LeadOfferDto } from './LeadOfferDto';
|
|
45
52
|
import {
|
|
46
53
|
LeadOfferDtoFromJSON,
|
|
@@ -169,6 +176,12 @@ export interface LeadDto {
|
|
|
169
176
|
* @memberof LeadDto
|
|
170
177
|
*/
|
|
171
178
|
lastSellerOffer: LeadOfferDto | null;
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @type {LeadOfferExpirationConfigurationDto}
|
|
182
|
+
* @memberof LeadDto
|
|
183
|
+
*/
|
|
184
|
+
leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
|
|
172
185
|
}
|
|
173
186
|
|
|
174
187
|
|
|
@@ -241,6 +254,7 @@ export function instanceOfLeadDto(value: object): value is LeadDto {
|
|
|
241
254
|
if (!('rent' in value) || value['rent'] === undefined) return false;
|
|
242
255
|
if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
|
|
243
256
|
if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
|
|
257
|
+
if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
|
|
244
258
|
return true;
|
|
245
259
|
}
|
|
246
260
|
|
|
@@ -273,6 +287,7 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
|
|
|
273
287
|
'rent': LeadRentConfigurationDtoFromJSON(json['rent']),
|
|
274
288
|
'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
|
|
275
289
|
'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
|
|
290
|
+
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
|
|
276
291
|
};
|
|
277
292
|
}
|
|
278
293
|
|
|
@@ -306,6 +321,7 @@ export function LeadDtoToJSONTyped(value?: LeadDto | null, ignoreDiscriminator:
|
|
|
306
321
|
'rent': LeadRentConfigurationDtoToJSON(value['rent']),
|
|
307
322
|
'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
|
|
308
323
|
'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
|
|
324
|
+
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
|
|
309
325
|
};
|
|
310
326
|
}
|
|
311
327
|
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { LockDurationDto } from './LockDurationDto';
|
|
17
|
+
import {
|
|
18
|
+
LockDurationDtoFromJSON,
|
|
19
|
+
LockDurationDtoFromJSONTyped,
|
|
20
|
+
LockDurationDtoToJSON,
|
|
21
|
+
LockDurationDtoToJSONTyped,
|
|
22
|
+
} from './LockDurationDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LeadOfferExpirationConfigurationDto
|
|
28
|
+
*/
|
|
29
|
+
export interface LeadOfferExpirationConfigurationDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof LeadOfferExpirationConfigurationDto
|
|
34
|
+
*/
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {LockDurationDto}
|
|
39
|
+
* @memberof LeadOfferExpirationConfigurationDto
|
|
40
|
+
*/
|
|
41
|
+
duration: LockDurationDto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the LeadOfferExpirationConfigurationDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfLeadOfferExpirationConfigurationDto(value: object): value is LeadOfferExpirationConfigurationDto {
|
|
48
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
49
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function LeadOfferExpirationConfigurationDtoFromJSON(json: any): LeadOfferExpirationConfigurationDto {
|
|
54
|
+
return LeadOfferExpirationConfigurationDtoFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function LeadOfferExpirationConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadOfferExpirationConfigurationDto {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'enabled': json['enabled'],
|
|
64
|
+
'duration': LockDurationDtoFromJSON(json['duration']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function LeadOfferExpirationConfigurationDtoToJSON(json: any): LeadOfferExpirationConfigurationDto {
|
|
69
|
+
return LeadOfferExpirationConfigurationDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function LeadOfferExpirationConfigurationDtoToJSONTyped(value?: LeadOfferExpirationConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'enabled': value['enabled'],
|
|
80
|
+
'duration': LockDurationDtoToJSON(value['duration']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { LeadOfferExpirationDurationInput } from './LeadOfferExpirationDurationInput';
|
|
17
|
+
import {
|
|
18
|
+
LeadOfferExpirationDurationInputFromJSON,
|
|
19
|
+
LeadOfferExpirationDurationInputFromJSONTyped,
|
|
20
|
+
LeadOfferExpirationDurationInputToJSON,
|
|
21
|
+
LeadOfferExpirationDurationInputToJSONTyped,
|
|
22
|
+
} from './LeadOfferExpirationDurationInput';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LeadOfferExpirationConfigurationInput
|
|
28
|
+
*/
|
|
29
|
+
export interface LeadOfferExpirationConfigurationInput {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof LeadOfferExpirationConfigurationInput
|
|
34
|
+
*/
|
|
35
|
+
enabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {LeadOfferExpirationDurationInput}
|
|
39
|
+
* @memberof LeadOfferExpirationConfigurationInput
|
|
40
|
+
*/
|
|
41
|
+
duration?: LeadOfferExpirationDurationInput;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the LeadOfferExpirationConfigurationInput interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfLeadOfferExpirationConfigurationInput(value: object): value is LeadOfferExpirationConfigurationInput {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function LeadOfferExpirationConfigurationInputFromJSON(json: any): LeadOfferExpirationConfigurationInput {
|
|
52
|
+
return LeadOfferExpirationConfigurationInputFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function LeadOfferExpirationConfigurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadOfferExpirationConfigurationInput {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
62
|
+
'duration': json['duration'] == null ? undefined : LeadOfferExpirationDurationInputFromJSON(json['duration']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function LeadOfferExpirationConfigurationInputToJSON(json: any): LeadOfferExpirationConfigurationInput {
|
|
67
|
+
return LeadOfferExpirationConfigurationInputToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function LeadOfferExpirationConfigurationInputToJSONTyped(value?: LeadOfferExpirationConfigurationInput | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'enabled': value['enabled'],
|
|
78
|
+
'duration': LeadOfferExpirationDurationInputToJSON(value['duration']),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
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 LeadOfferExpirationDurationInput
|
|
20
|
+
*/
|
|
21
|
+
export interface LeadOfferExpirationDurationInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof LeadOfferExpirationDurationInput
|
|
26
|
+
*/
|
|
27
|
+
amount?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LeadOfferExpirationDurationInput
|
|
32
|
+
*/
|
|
33
|
+
unit?: LeadOfferExpirationDurationInputUnitEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const LeadOfferExpirationDurationInputUnitEnum = {
|
|
41
|
+
MINUTE: 'minute',
|
|
42
|
+
HOUR: 'hour',
|
|
43
|
+
DAY: 'day'
|
|
44
|
+
} as const;
|
|
45
|
+
export type LeadOfferExpirationDurationInputUnitEnum = typeof LeadOfferExpirationDurationInputUnitEnum[keyof typeof LeadOfferExpirationDurationInputUnitEnum];
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the LeadOfferExpirationDurationInput interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfLeadOfferExpirationDurationInput(value: object): value is LeadOfferExpirationDurationInput {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function LeadOfferExpirationDurationInputFromJSON(json: any): LeadOfferExpirationDurationInput {
|
|
56
|
+
return LeadOfferExpirationDurationInputFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function LeadOfferExpirationDurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadOfferExpirationDurationInput {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
66
|
+
'unit': json['unit'] == null ? undefined : json['unit'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function LeadOfferExpirationDurationInputToJSON(json: any): LeadOfferExpirationDurationInput {
|
|
71
|
+
return LeadOfferExpirationDurationInputToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function LeadOfferExpirationDurationInputToJSONTyped(value?: LeadOfferExpirationDurationInput | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'amount': value['amount'],
|
|
82
|
+
'unit': value['unit'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -48,6 +48,13 @@ import {
|
|
|
48
48
|
LeadRentConfigurationDtoToJSON,
|
|
49
49
|
LeadRentConfigurationDtoToJSONTyped,
|
|
50
50
|
} from './LeadRentConfigurationDto';
|
|
51
|
+
import type { LeadOfferExpirationConfigurationDto } from './LeadOfferExpirationConfigurationDto';
|
|
52
|
+
import {
|
|
53
|
+
LeadOfferExpirationConfigurationDtoFromJSON,
|
|
54
|
+
LeadOfferExpirationConfigurationDtoFromJSONTyped,
|
|
55
|
+
LeadOfferExpirationConfigurationDtoToJSON,
|
|
56
|
+
LeadOfferExpirationConfigurationDtoToJSONTyped,
|
|
57
|
+
} from './LeadOfferExpirationConfigurationDto';
|
|
51
58
|
import type { LeadOfferDto } from './LeadOfferDto';
|
|
52
59
|
import {
|
|
53
60
|
LeadOfferDtoFromJSON,
|
|
@@ -212,6 +219,12 @@ export interface ListLeadsResultItem {
|
|
|
212
219
|
* @memberof ListLeadsResultItem
|
|
213
220
|
*/
|
|
214
221
|
lastSellerOffer: LeadOfferDto | null;
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @type {LeadOfferExpirationConfigurationDto}
|
|
225
|
+
* @memberof ListLeadsResultItem
|
|
226
|
+
*/
|
|
227
|
+
leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
|
|
215
228
|
/**
|
|
216
229
|
* The message in case lastMessageType === LeadMessageTypeEnum.MESSAGE
|
|
217
230
|
* @type {string}
|
|
@@ -325,6 +338,7 @@ export function instanceOfListLeadsResultItem(value: object): value is ListLeads
|
|
|
325
338
|
if (!('rent' in value) || value['rent'] === undefined) return false;
|
|
326
339
|
if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
|
|
327
340
|
if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
|
|
341
|
+
if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
|
|
328
342
|
if (!('lastMessageMessage' in value) || value['lastMessageMessage'] === undefined) return false;
|
|
329
343
|
if (!('lastMessageDate' in value) || value['lastMessageDate'] === undefined) return false;
|
|
330
344
|
return true;
|
|
@@ -365,6 +379,7 @@ export function ListLeadsResultItemFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
365
379
|
'rent': LeadRentConfigurationDtoFromJSON(json['rent']),
|
|
366
380
|
'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
|
|
367
381
|
'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
|
|
382
|
+
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
|
|
368
383
|
'lastMessageMessage': json['lastMessageMessage'],
|
|
369
384
|
'lastMessageDate': (new Date(json['lastMessageDate'])),
|
|
370
385
|
};
|
|
@@ -406,6 +421,7 @@ export function ListLeadsResultItemToJSONTyped(value?: ListLeadsResultItem | nul
|
|
|
406
421
|
'rent': LeadRentConfigurationDtoToJSON(value['rent']),
|
|
407
422
|
'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
|
|
408
423
|
'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
|
|
424
|
+
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
|
|
409
425
|
'lastMessageMessage': value['lastMessageMessage'],
|
|
410
426
|
'lastMessageDate': ((value['lastMessageDate']).toISOString()),
|
|
411
427
|
};
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
MoneyDtoToJSON,
|
|
21
21
|
MoneyDtoToJSONTyped,
|
|
22
22
|
} from './MoneyDto';
|
|
23
|
+
import type { LeadOfferExpirationConfigurationInput } from './LeadOfferExpirationConfigurationInput';
|
|
24
|
+
import {
|
|
25
|
+
LeadOfferExpirationConfigurationInputFromJSON,
|
|
26
|
+
LeadOfferExpirationConfigurationInputFromJSONTyped,
|
|
27
|
+
LeadOfferExpirationConfigurationInputToJSON,
|
|
28
|
+
LeadOfferExpirationConfigurationInputToJSONTyped,
|
|
29
|
+
} from './LeadOfferExpirationConfigurationInput';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -45,6 +52,12 @@ export interface PutLeadOfferInput {
|
|
|
45
52
|
* @memberof PutLeadOfferInput
|
|
46
53
|
*/
|
|
47
54
|
leaseToOwnMonths?: number | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {LeadOfferExpirationConfigurationInput}
|
|
58
|
+
* @memberof PutLeadOfferInput
|
|
59
|
+
*/
|
|
60
|
+
leadOfferExpirationConfiguration?: LeadOfferExpirationConfigurationInput;
|
|
48
61
|
}
|
|
49
62
|
|
|
50
63
|
|
|
@@ -80,6 +93,7 @@ export function PutLeadOfferInputFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
80
93
|
'offer': json['offer'] == null ? undefined : MoneyDtoFromJSON(json['offer']),
|
|
81
94
|
'offerType': json['offerType'] == null ? undefined : json['offerType'],
|
|
82
95
|
'leaseToOwnMonths': json['leaseToOwnMonths'] == null ? undefined : json['leaseToOwnMonths'],
|
|
96
|
+
'leadOfferExpirationConfiguration': json['leadOfferExpirationConfiguration'] == null ? undefined : LeadOfferExpirationConfigurationInputFromJSON(json['leadOfferExpirationConfiguration']),
|
|
83
97
|
};
|
|
84
98
|
}
|
|
85
99
|
|
|
@@ -97,6 +111,7 @@ export function PutLeadOfferInputToJSONTyped(value?: PutLeadOfferInput | null, i
|
|
|
97
111
|
'offer': MoneyDtoToJSON(value['offer']),
|
|
98
112
|
'offerType': value['offerType'],
|
|
99
113
|
'leaseToOwnMonths': value['leaseToOwnMonths'],
|
|
114
|
+
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationInputToJSON(value['leadOfferExpirationConfiguration']),
|
|
100
115
|
};
|
|
101
116
|
}
|
|
102
117
|
|
|
@@ -48,6 +48,13 @@ import {
|
|
|
48
48
|
LeadRentConfigurationDtoToJSON,
|
|
49
49
|
LeadRentConfigurationDtoToJSONTyped,
|
|
50
50
|
} from './LeadRentConfigurationDto';
|
|
51
|
+
import type { LeadOfferExpirationConfigurationDto } from './LeadOfferExpirationConfigurationDto';
|
|
52
|
+
import {
|
|
53
|
+
LeadOfferExpirationConfigurationDtoFromJSON,
|
|
54
|
+
LeadOfferExpirationConfigurationDtoFromJSONTyped,
|
|
55
|
+
LeadOfferExpirationConfigurationDtoToJSON,
|
|
56
|
+
LeadOfferExpirationConfigurationDtoToJSONTyped,
|
|
57
|
+
} from './LeadOfferExpirationConfigurationDto';
|
|
51
58
|
import type { DomainLockConfigurationDto } from './DomainLockConfigurationDto';
|
|
52
59
|
import {
|
|
53
60
|
DomainLockConfigurationDtoFromJSON,
|
|
@@ -201,6 +208,12 @@ export interface SellerLeadDetails {
|
|
|
201
208
|
* @memberof SellerLeadDetails
|
|
202
209
|
*/
|
|
203
210
|
lastSellerOffer: LeadOfferDto | null;
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @type {LeadOfferExpirationConfigurationDto}
|
|
214
|
+
* @memberof SellerLeadDetails
|
|
215
|
+
*/
|
|
216
|
+
leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
|
|
204
217
|
}
|
|
205
218
|
|
|
206
219
|
|
|
@@ -276,6 +289,7 @@ export function instanceOfSellerLeadDetails(value: object): value is SellerLeadD
|
|
|
276
289
|
if (!('rent' in value) || value['rent'] === undefined) return false;
|
|
277
290
|
if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
|
|
278
291
|
if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
|
|
292
|
+
if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
|
|
279
293
|
return true;
|
|
280
294
|
}
|
|
281
295
|
|
|
@@ -311,6 +325,7 @@ export function SellerLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
311
325
|
'rent': LeadRentConfigurationDtoFromJSON(json['rent']),
|
|
312
326
|
'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
|
|
313
327
|
'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
|
|
328
|
+
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
|
|
314
329
|
};
|
|
315
330
|
}
|
|
316
331
|
|
|
@@ -347,6 +362,7 @@ export function SellerLeadDetailsToJSONTyped(value?: SellerLeadDetails | null, i
|
|
|
347
362
|
'rent': LeadRentConfigurationDtoToJSON(value['rent']),
|
|
348
363
|
'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
|
|
349
364
|
'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
|
|
365
|
+
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
|
|
350
366
|
};
|
|
351
367
|
}
|
|
352
368
|
|
|
@@ -41,6 +41,13 @@ import {
|
|
|
41
41
|
TaskListLeadRentConfigurationDtoToJSON,
|
|
42
42
|
TaskListLeadRentConfigurationDtoToJSONTyped,
|
|
43
43
|
} from './TaskListLeadRentConfigurationDto';
|
|
44
|
+
import type { LeadOfferExpirationConfigurationDto } from './LeadOfferExpirationConfigurationDto';
|
|
45
|
+
import {
|
|
46
|
+
LeadOfferExpirationConfigurationDtoFromJSON,
|
|
47
|
+
LeadOfferExpirationConfigurationDtoFromJSONTyped,
|
|
48
|
+
LeadOfferExpirationConfigurationDtoToJSON,
|
|
49
|
+
LeadOfferExpirationConfigurationDtoToJSONTyped,
|
|
50
|
+
} from './LeadOfferExpirationConfigurationDto';
|
|
44
51
|
|
|
45
52
|
/**
|
|
46
53
|
*
|
|
@@ -102,6 +109,12 @@ export interface TaskListLeadDto {
|
|
|
102
109
|
* @memberof TaskListLeadDto
|
|
103
110
|
*/
|
|
104
111
|
rent: TaskListLeadRentConfigurationDto;
|
|
112
|
+
/**
|
|
113
|
+
* Lead offer expiration configuration
|
|
114
|
+
* @type {LeadOfferExpirationConfigurationDto}
|
|
115
|
+
* @memberof TaskListLeadDto
|
|
116
|
+
*/
|
|
117
|
+
leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
|
|
105
118
|
}
|
|
106
119
|
|
|
107
120
|
|
|
@@ -141,6 +154,7 @@ export function instanceOfTaskListLeadDto(value: object): value is TaskListLeadD
|
|
|
141
154
|
if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
|
|
142
155
|
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
143
156
|
if (!('rent' in value) || value['rent'] === undefined) return false;
|
|
157
|
+
if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
|
|
144
158
|
return true;
|
|
145
159
|
}
|
|
146
160
|
|
|
@@ -163,6 +177,7 @@ export function TaskListLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
163
177
|
'lastSellerOffer': TaskListLeadOfferDtoFromJSON(json['lastSellerOffer']),
|
|
164
178
|
'leaseToOwn': TaskListLeadLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
165
179
|
'rent': TaskListLeadRentConfigurationDtoFromJSON(json['rent']),
|
|
180
|
+
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
|
|
166
181
|
};
|
|
167
182
|
}
|
|
168
183
|
|
|
@@ -186,6 +201,7 @@ export function TaskListLeadDtoToJSONTyped(value?: TaskListLeadDto | null, ignor
|
|
|
186
201
|
'lastSellerOffer': TaskListLeadOfferDtoToJSON(value['lastSellerOffer']),
|
|
187
202
|
'leaseToOwn': TaskListLeadLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
188
203
|
'rent': TaskListLeadRentConfigurationDtoToJSON(value['rent']),
|
|
204
|
+
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
|
|
189
205
|
};
|
|
190
206
|
}
|
|
191
207
|
|