@homespot-sdk/api 0.0.640 → 0.0.641
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 +4 -12
- package/README.md +6 -12
- package/dist/apis/LeadControllerApi.d.ts +15 -71
- package/dist/apis/LeadControllerApi.js +18 -109
- package/dist/esm/apis/LeadControllerApi.d.ts +15 -71
- package/dist/esm/apis/LeadControllerApi.js +18 -109
- package/dist/esm/models/IntentResponse.d.ts +136 -0
- package/dist/esm/models/{SearchIntentResponse.js → IntentResponse.js} +37 -26
- package/dist/esm/models/LeadIntentRequest.d.ts +114 -0
- package/dist/esm/models/{SearchIntentRequest.js → LeadIntentRequest.js} +35 -22
- package/dist/esm/models/LeadProjectionResponse.d.ts +6 -19
- package/dist/esm/models/LeadProjectionResponse.js +11 -16
- package/dist/esm/models/LocationRefRequest.d.ts +0 -6
- package/dist/esm/models/LocationRefRequest.js +0 -2
- package/dist/esm/models/PageLeadProjectionResponse.d.ts +6 -6
- package/dist/esm/models/PageLeadProjectionResponse.js +2 -2
- package/dist/esm/models/PageRoleResponse.d.ts +6 -6
- package/dist/esm/models/PageRoleResponse.js +2 -2
- package/dist/esm/models/PageableObject.d.ts +6 -6
- package/dist/esm/models/PageableObject.js +2 -2
- package/dist/esm/models/index.d.ts +2 -6
- package/dist/esm/models/index.js +2 -6
- package/dist/models/IntentResponse.d.ts +136 -0
- package/dist/models/{SearchIntentResponse.js → IntentResponse.js} +43 -32
- package/dist/models/LeadIntentRequest.d.ts +114 -0
- package/dist/models/{SearchIntentRequest.js → LeadIntentRequest.js} +41 -28
- package/dist/models/LeadProjectionResponse.d.ts +6 -19
- package/dist/models/LeadProjectionResponse.js +11 -16
- package/dist/models/LocationRefRequest.d.ts +0 -6
- package/dist/models/LocationRefRequest.js +0 -2
- package/dist/models/PageLeadProjectionResponse.d.ts +6 -6
- package/dist/models/PageLeadProjectionResponse.js +2 -2
- package/dist/models/PageRoleResponse.d.ts +6 -6
- package/dist/models/PageRoleResponse.js +2 -2
- package/dist/models/PageableObject.d.ts +6 -6
- package/dist/models/PageableObject.js +2 -2
- package/dist/models/index.d.ts +2 -6
- package/dist/models/index.js +2 -6
- package/docs/{SearchIntentResponse.md → IntentResponse.md} +12 -12
- package/docs/LeadControllerApi.md +19 -171
- package/docs/{SearchIntentRequest.md → LeadIntentRequest.md} +10 -8
- package/docs/LeadProjectionResponse.md +8 -12
- package/docs/LocationRefRequest.md +0 -2
- package/docs/PageLeadProjectionResponse.md +2 -2
- package/docs/PageRoleResponse.md +2 -2
- package/docs/PageableObject.md +2 -2
- package/package.json +1 -1
- package/src/apis/LeadControllerApi.ts +32 -206
- package/src/models/{SearchIntentResponse.ts → IntentResponse.ts} +60 -48
- package/src/models/{SearchIntentRequest.ts → LeadIntentRequest.ts} +55 -35
- package/src/models/LeadProjectionResponse.ts +21 -44
- package/src/models/LocationRefRequest.ts +0 -8
- package/src/models/PageLeadProjectionResponse.ts +8 -8
- package/src/models/PageRoleResponse.ts +8 -8
- package/src/models/PageableObject.ts +8 -8
- package/src/models/index.ts +2 -6
- package/dist/esm/models/AddressRefRequest.d.ts +0 -63
- package/dist/esm/models/AddressRefRequest.js +0 -54
- package/dist/esm/models/CoordinatesRequest.d.ts +0 -38
- package/dist/esm/models/CoordinatesRequest.js +0 -47
- package/dist/esm/models/ListingIntentRequest.d.ts +0 -98
- package/dist/esm/models/ListingIntentRequest.js +0 -89
- package/dist/esm/models/ListingIntentResponse.d.ts +0 -138
- package/dist/esm/models/ListingIntentResponse.js +0 -101
- package/dist/esm/models/SearchIntentRequest.d.ts +0 -98
- package/dist/esm/models/SearchIntentResponse.d.ts +0 -126
- package/dist/models/AddressRefRequest.d.ts +0 -63
- package/dist/models/AddressRefRequest.js +0 -61
- package/dist/models/CoordinatesRequest.d.ts +0 -38
- package/dist/models/CoordinatesRequest.js +0 -54
- package/dist/models/ListingIntentRequest.d.ts +0 -98
- package/dist/models/ListingIntentRequest.js +0 -97
- package/dist/models/ListingIntentResponse.d.ts +0 -138
- package/dist/models/ListingIntentResponse.js +0 -109
- package/dist/models/SearchIntentRequest.d.ts +0 -98
- package/dist/models/SearchIntentResponse.d.ts +0 -126
- package/docs/AddressRefRequest.md +0 -44
- package/docs/CoordinatesRequest.md +0 -36
- package/docs/ListingIntentRequest.md +0 -44
- package/docs/ListingIntentResponse.md +0 -58
- package/src/models/AddressRefRequest.ts +0 -114
- package/src/models/CoordinatesRequest.ts +0 -75
- package/src/models/ListingIntentRequest.ts +0 -160
- package/src/models/ListingIntentResponse.ts +0 -201
package/docs/PageableObject.md
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`offset` | number
|
|
10
|
+
`sort` | [SortObject](SortObject.md)
|
|
10
11
|
`paged` | boolean
|
|
11
12
|
`pageNumber` | number
|
|
12
13
|
`pageSize` | number
|
|
13
14
|
`unpaged` | boolean
|
|
14
|
-
`sort` | [SortObject](SortObject.md)
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
|
@@ -21,11 +21,11 @@ import type { PageableObject } from '@homespot-sdk/api'
|
|
|
21
21
|
// TODO: Update the object below with actual values
|
|
22
22
|
const example = {
|
|
23
23
|
"offset": null,
|
|
24
|
+
"sort": null,
|
|
24
25
|
"paged": null,
|
|
25
26
|
"pageNumber": null,
|
|
26
27
|
"pageSize": null,
|
|
27
28
|
"unpaged": null,
|
|
28
|
-
"sort": null,
|
|
29
29
|
} satisfies PageableObject
|
|
30
30
|
|
|
31
31
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -20,8 +20,7 @@ import type {
|
|
|
20
20
|
ContactInfoRequest,
|
|
21
21
|
CreateLeadRequest,
|
|
22
22
|
IdResponse,
|
|
23
|
-
|
|
24
|
-
SearchIntentRequest,
|
|
23
|
+
LeadIntentRequest,
|
|
25
24
|
SourceRequest,
|
|
26
25
|
UpdateNoteRequest,
|
|
27
26
|
} from '../models/index';
|
|
@@ -36,24 +35,17 @@ import {
|
|
|
36
35
|
CreateLeadRequestToJSON,
|
|
37
36
|
IdResponseFromJSON,
|
|
38
37
|
IdResponseToJSON,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
SearchIntentRequestFromJSON,
|
|
42
|
-
SearchIntentRequestToJSON,
|
|
38
|
+
LeadIntentRequestFromJSON,
|
|
39
|
+
LeadIntentRequestToJSON,
|
|
43
40
|
SourceRequestFromJSON,
|
|
44
41
|
SourceRequestToJSON,
|
|
45
42
|
UpdateNoteRequestFromJSON,
|
|
46
43
|
UpdateNoteRequestToJSON,
|
|
47
44
|
} from '../models/index';
|
|
48
45
|
|
|
49
|
-
export interface
|
|
46
|
+
export interface AddIntentRequest {
|
|
50
47
|
leadId: string;
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface AddSearchIntentRequest {
|
|
55
|
-
leadId: string;
|
|
56
|
-
searchIntentRequest: SearchIntentRequest;
|
|
48
|
+
leadIntentRequest: LeadIntentRequest;
|
|
57
49
|
}
|
|
58
50
|
|
|
59
51
|
export interface AssignToAgentRequest {
|
|
@@ -73,7 +65,6 @@ export interface CreateLeadOperationRequest {
|
|
|
73
65
|
export interface RemoveIntentRequest {
|
|
74
66
|
leadId: string;
|
|
75
67
|
index: number;
|
|
76
|
-
type: RemoveIntentTypeEnum;
|
|
77
68
|
}
|
|
78
69
|
|
|
79
70
|
export interface UpdateContactInfoRequest {
|
|
@@ -81,10 +72,10 @@ export interface UpdateContactInfoRequest {
|
|
|
81
72
|
contactInfoRequest: ContactInfoRequest;
|
|
82
73
|
}
|
|
83
74
|
|
|
84
|
-
export interface
|
|
75
|
+
export interface UpdateIntentRequest {
|
|
85
76
|
leadId: string;
|
|
86
77
|
index: number;
|
|
87
|
-
|
|
78
|
+
leadIntentRequest: LeadIntentRequest;
|
|
88
79
|
}
|
|
89
80
|
|
|
90
81
|
export interface UpdateNoteOperationRequest {
|
|
@@ -92,12 +83,6 @@ export interface UpdateNoteOperationRequest {
|
|
|
92
83
|
updateNoteRequest: UpdateNoteRequest;
|
|
93
84
|
}
|
|
94
85
|
|
|
95
|
-
export interface UpdateSearchIntentRequest {
|
|
96
|
-
leadId: string;
|
|
97
|
-
index: number;
|
|
98
|
-
searchIntentRequest: SearchIntentRequest;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
86
|
export interface UpdateSourceRequest {
|
|
102
87
|
leadId: string;
|
|
103
88
|
sourceRequest: SourceRequest;
|
|
@@ -113,30 +98,16 @@ export interface LeadControllerApiInterface {
|
|
|
113
98
|
/**
|
|
114
99
|
*
|
|
115
100
|
* @param {string} leadId
|
|
116
|
-
* @param {
|
|
101
|
+
* @param {LeadIntentRequest} leadIntentRequest
|
|
117
102
|
* @param {*} [options] Override http request option.
|
|
118
103
|
* @throws {RequiredError}
|
|
119
104
|
* @memberof LeadControllerApiInterface
|
|
120
105
|
*/
|
|
121
|
-
|
|
106
|
+
addIntentRaw(requestParameters: AddIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
122
107
|
|
|
123
108
|
/**
|
|
124
109
|
*/
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @param {string} leadId
|
|
130
|
-
* @param {SearchIntentRequest} searchIntentRequest
|
|
131
|
-
* @param {*} [options] Override http request option.
|
|
132
|
-
* @throws {RequiredError}
|
|
133
|
-
* @memberof LeadControllerApiInterface
|
|
134
|
-
*/
|
|
135
|
-
addSearchIntentRaw(requestParameters: AddSearchIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
*/
|
|
139
|
-
addSearchIntent(requestParameters: AddSearchIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
110
|
+
addIntent(requestParameters: AddIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
140
111
|
|
|
141
112
|
/**
|
|
142
113
|
*
|
|
@@ -183,7 +154,6 @@ export interface LeadControllerApiInterface {
|
|
|
183
154
|
*
|
|
184
155
|
* @param {string} leadId
|
|
185
156
|
* @param {number} index
|
|
186
|
-
* @param {'SEARCH' | 'LISTING'} type
|
|
187
157
|
* @param {*} [options] Override http request option.
|
|
188
158
|
* @throws {RequiredError}
|
|
189
159
|
* @memberof LeadControllerApiInterface
|
|
@@ -212,16 +182,16 @@ export interface LeadControllerApiInterface {
|
|
|
212
182
|
*
|
|
213
183
|
* @param {string} leadId
|
|
214
184
|
* @param {number} index
|
|
215
|
-
* @param {
|
|
185
|
+
* @param {LeadIntentRequest} leadIntentRequest
|
|
216
186
|
* @param {*} [options] Override http request option.
|
|
217
187
|
* @throws {RequiredError}
|
|
218
188
|
* @memberof LeadControllerApiInterface
|
|
219
189
|
*/
|
|
220
|
-
|
|
190
|
+
updateIntentRaw(requestParameters: UpdateIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
221
191
|
|
|
222
192
|
/**
|
|
223
193
|
*/
|
|
224
|
-
|
|
194
|
+
updateIntent(requestParameters: UpdateIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
225
195
|
|
|
226
196
|
/**
|
|
227
197
|
*
|
|
@@ -237,21 +207,6 @@ export interface LeadControllerApiInterface {
|
|
|
237
207
|
*/
|
|
238
208
|
updateNote(requestParameters: UpdateNoteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
239
209
|
|
|
240
|
-
/**
|
|
241
|
-
*
|
|
242
|
-
* @param {string} leadId
|
|
243
|
-
* @param {number} index
|
|
244
|
-
* @param {SearchIntentRequest} searchIntentRequest
|
|
245
|
-
* @param {*} [options] Override http request option.
|
|
246
|
-
* @throws {RequiredError}
|
|
247
|
-
* @memberof LeadControllerApiInterface
|
|
248
|
-
*/
|
|
249
|
-
updateSearchIntentRaw(requestParameters: UpdateSearchIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
*/
|
|
253
|
-
updateSearchIntent(requestParameters: UpdateSearchIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
254
|
-
|
|
255
210
|
/**
|
|
256
211
|
*
|
|
257
212
|
* @param {string} leadId
|
|
@@ -275,67 +230,18 @@ export class LeadControllerApi extends runtime.BaseAPI implements LeadController
|
|
|
275
230
|
|
|
276
231
|
/**
|
|
277
232
|
*/
|
|
278
|
-
async
|
|
279
|
-
if (requestParameters['leadId'] == null) {
|
|
280
|
-
throw new runtime.RequiredError(
|
|
281
|
-
'leadId',
|
|
282
|
-
'Required parameter "leadId" was null or undefined when calling addListingIntent().'
|
|
283
|
-
);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
if (requestParameters['listingIntentRequest'] == null) {
|
|
287
|
-
throw new runtime.RequiredError(
|
|
288
|
-
'listingIntentRequest',
|
|
289
|
-
'Required parameter "listingIntentRequest" was null or undefined when calling addListingIntent().'
|
|
290
|
-
);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
const queryParameters: any = {};
|
|
294
|
-
|
|
295
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
296
|
-
|
|
297
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
298
|
-
|
|
299
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
300
|
-
// oauth required
|
|
301
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
let urlPath = `/lead/{leadId}/listing-intents`;
|
|
306
|
-
urlPath = urlPath.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId'])));
|
|
307
|
-
|
|
308
|
-
const response = await this.request({
|
|
309
|
-
path: urlPath,
|
|
310
|
-
method: 'POST',
|
|
311
|
-
headers: headerParameters,
|
|
312
|
-
query: queryParameters,
|
|
313
|
-
body: ListingIntentRequestToJSON(requestParameters['listingIntentRequest']),
|
|
314
|
-
}, initOverrides);
|
|
315
|
-
|
|
316
|
-
return new runtime.VoidApiResponse(response);
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
*/
|
|
321
|
-
async addListingIntent(requestParameters: AddListingIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
322
|
-
await this.addListingIntentRaw(requestParameters, initOverrides);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
*/
|
|
327
|
-
async addSearchIntentRaw(requestParameters: AddSearchIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
233
|
+
async addIntentRaw(requestParameters: AddIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
328
234
|
if (requestParameters['leadId'] == null) {
|
|
329
235
|
throw new runtime.RequiredError(
|
|
330
236
|
'leadId',
|
|
331
|
-
'Required parameter "leadId" was null or undefined when calling
|
|
237
|
+
'Required parameter "leadId" was null or undefined when calling addIntent().'
|
|
332
238
|
);
|
|
333
239
|
}
|
|
334
240
|
|
|
335
|
-
if (requestParameters['
|
|
241
|
+
if (requestParameters['leadIntentRequest'] == null) {
|
|
336
242
|
throw new runtime.RequiredError(
|
|
337
|
-
'
|
|
338
|
-
'Required parameter "
|
|
243
|
+
'leadIntentRequest',
|
|
244
|
+
'Required parameter "leadIntentRequest" was null or undefined when calling addIntent().'
|
|
339
245
|
);
|
|
340
246
|
}
|
|
341
247
|
|
|
@@ -351,7 +257,7 @@ export class LeadControllerApi extends runtime.BaseAPI implements LeadController
|
|
|
351
257
|
}
|
|
352
258
|
|
|
353
259
|
|
|
354
|
-
let urlPath = `/lead/{leadId}/
|
|
260
|
+
let urlPath = `/lead/{leadId}/intent`;
|
|
355
261
|
urlPath = urlPath.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId'])));
|
|
356
262
|
|
|
357
263
|
const response = await this.request({
|
|
@@ -359,7 +265,7 @@ export class LeadControllerApi extends runtime.BaseAPI implements LeadController
|
|
|
359
265
|
method: 'POST',
|
|
360
266
|
headers: headerParameters,
|
|
361
267
|
query: queryParameters,
|
|
362
|
-
body:
|
|
268
|
+
body: LeadIntentRequestToJSON(requestParameters['leadIntentRequest']),
|
|
363
269
|
}, initOverrides);
|
|
364
270
|
|
|
365
271
|
return new runtime.VoidApiResponse(response);
|
|
@@ -367,8 +273,8 @@ export class LeadControllerApi extends runtime.BaseAPI implements LeadController
|
|
|
367
273
|
|
|
368
274
|
/**
|
|
369
275
|
*/
|
|
370
|
-
async
|
|
371
|
-
await this.
|
|
276
|
+
async addIntent(requestParameters: AddIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
277
|
+
await this.addIntentRaw(requestParameters, initOverrides);
|
|
372
278
|
}
|
|
373
279
|
|
|
374
280
|
/**
|
|
@@ -528,23 +434,12 @@ export class LeadControllerApi extends runtime.BaseAPI implements LeadController
|
|
|
528
434
|
);
|
|
529
435
|
}
|
|
530
436
|
|
|
531
|
-
if (requestParameters['type'] == null) {
|
|
532
|
-
throw new runtime.RequiredError(
|
|
533
|
-
'type',
|
|
534
|
-
'Required parameter "type" was null or undefined when calling removeIntent().'
|
|
535
|
-
);
|
|
536
|
-
}
|
|
537
|
-
|
|
538
437
|
const queryParameters: any = {};
|
|
539
438
|
|
|
540
439
|
if (requestParameters['index'] != null) {
|
|
541
440
|
queryParameters['index'] = requestParameters['index'];
|
|
542
441
|
}
|
|
543
442
|
|
|
544
|
-
if (requestParameters['type'] != null) {
|
|
545
|
-
queryParameters['type'] = requestParameters['type'];
|
|
546
|
-
}
|
|
547
|
-
|
|
548
443
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
549
444
|
|
|
550
445
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -623,25 +518,25 @@ export class LeadControllerApi extends runtime.BaseAPI implements LeadController
|
|
|
623
518
|
|
|
624
519
|
/**
|
|
625
520
|
*/
|
|
626
|
-
async
|
|
521
|
+
async updateIntentRaw(requestParameters: UpdateIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
627
522
|
if (requestParameters['leadId'] == null) {
|
|
628
523
|
throw new runtime.RequiredError(
|
|
629
524
|
'leadId',
|
|
630
|
-
'Required parameter "leadId" was null or undefined when calling
|
|
525
|
+
'Required parameter "leadId" was null or undefined when calling updateIntent().'
|
|
631
526
|
);
|
|
632
527
|
}
|
|
633
528
|
|
|
634
529
|
if (requestParameters['index'] == null) {
|
|
635
530
|
throw new runtime.RequiredError(
|
|
636
531
|
'index',
|
|
637
|
-
'Required parameter "index" was null or undefined when calling
|
|
532
|
+
'Required parameter "index" was null or undefined when calling updateIntent().'
|
|
638
533
|
);
|
|
639
534
|
}
|
|
640
535
|
|
|
641
|
-
if (requestParameters['
|
|
536
|
+
if (requestParameters['leadIntentRequest'] == null) {
|
|
642
537
|
throw new runtime.RequiredError(
|
|
643
|
-
'
|
|
644
|
-
'Required parameter "
|
|
538
|
+
'leadIntentRequest',
|
|
539
|
+
'Required parameter "leadIntentRequest" was null or undefined when calling updateIntent().'
|
|
645
540
|
);
|
|
646
541
|
}
|
|
647
542
|
|
|
@@ -661,7 +556,7 @@ export class LeadControllerApi extends runtime.BaseAPI implements LeadController
|
|
|
661
556
|
}
|
|
662
557
|
|
|
663
558
|
|
|
664
|
-
let urlPath = `/lead/{leadId}/
|
|
559
|
+
let urlPath = `/lead/{leadId}/intent`;
|
|
665
560
|
urlPath = urlPath.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId'])));
|
|
666
561
|
|
|
667
562
|
const response = await this.request({
|
|
@@ -669,7 +564,7 @@ export class LeadControllerApi extends runtime.BaseAPI implements LeadController
|
|
|
669
564
|
method: 'PUT',
|
|
670
565
|
headers: headerParameters,
|
|
671
566
|
query: queryParameters,
|
|
672
|
-
body:
|
|
567
|
+
body: LeadIntentRequestToJSON(requestParameters['leadIntentRequest']),
|
|
673
568
|
}, initOverrides);
|
|
674
569
|
|
|
675
570
|
return new runtime.VoidApiResponse(response);
|
|
@@ -677,8 +572,8 @@ export class LeadControllerApi extends runtime.BaseAPI implements LeadController
|
|
|
677
572
|
|
|
678
573
|
/**
|
|
679
574
|
*/
|
|
680
|
-
async
|
|
681
|
-
await this.
|
|
575
|
+
async updateIntent(requestParameters: UpdateIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
576
|
+
await this.updateIntentRaw(requestParameters, initOverrides);
|
|
682
577
|
}
|
|
683
578
|
|
|
684
579
|
/**
|
|
@@ -730,66 +625,6 @@ export class LeadControllerApi extends runtime.BaseAPI implements LeadController
|
|
|
730
625
|
await this.updateNoteRaw(requestParameters, initOverrides);
|
|
731
626
|
}
|
|
732
627
|
|
|
733
|
-
/**
|
|
734
|
-
*/
|
|
735
|
-
async updateSearchIntentRaw(requestParameters: UpdateSearchIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
736
|
-
if (requestParameters['leadId'] == null) {
|
|
737
|
-
throw new runtime.RequiredError(
|
|
738
|
-
'leadId',
|
|
739
|
-
'Required parameter "leadId" was null or undefined when calling updateSearchIntent().'
|
|
740
|
-
);
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
if (requestParameters['index'] == null) {
|
|
744
|
-
throw new runtime.RequiredError(
|
|
745
|
-
'index',
|
|
746
|
-
'Required parameter "index" was null or undefined when calling updateSearchIntent().'
|
|
747
|
-
);
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
if (requestParameters['searchIntentRequest'] == null) {
|
|
751
|
-
throw new runtime.RequiredError(
|
|
752
|
-
'searchIntentRequest',
|
|
753
|
-
'Required parameter "searchIntentRequest" was null or undefined when calling updateSearchIntent().'
|
|
754
|
-
);
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
const queryParameters: any = {};
|
|
758
|
-
|
|
759
|
-
if (requestParameters['index'] != null) {
|
|
760
|
-
queryParameters['index'] = requestParameters['index'];
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
764
|
-
|
|
765
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
766
|
-
|
|
767
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
768
|
-
// oauth required
|
|
769
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
let urlPath = `/lead/{leadId}/search-intents`;
|
|
774
|
-
urlPath = urlPath.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId'])));
|
|
775
|
-
|
|
776
|
-
const response = await this.request({
|
|
777
|
-
path: urlPath,
|
|
778
|
-
method: 'PUT',
|
|
779
|
-
headers: headerParameters,
|
|
780
|
-
query: queryParameters,
|
|
781
|
-
body: SearchIntentRequestToJSON(requestParameters['searchIntentRequest']),
|
|
782
|
-
}, initOverrides);
|
|
783
|
-
|
|
784
|
-
return new runtime.VoidApiResponse(response);
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
/**
|
|
788
|
-
*/
|
|
789
|
-
async updateSearchIntent(requestParameters: UpdateSearchIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
790
|
-
await this.updateSearchIntentRaw(requestParameters, initOverrides);
|
|
791
|
-
}
|
|
792
|
-
|
|
793
628
|
/**
|
|
794
629
|
*/
|
|
795
630
|
async updateSourceRaw(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
@@ -840,12 +675,3 @@ export class LeadControllerApi extends runtime.BaseAPI implements LeadController
|
|
|
840
675
|
}
|
|
841
676
|
|
|
842
677
|
}
|
|
843
|
-
|
|
844
|
-
/**
|
|
845
|
-
* @export
|
|
846
|
-
*/
|
|
847
|
-
export const RemoveIntentTypeEnum = {
|
|
848
|
-
Search: 'SEARCH',
|
|
849
|
-
Listing: 'LISTING'
|
|
850
|
-
} as const;
|
|
851
|
-
export type RemoveIntentTypeEnum = typeof RemoveIntentTypeEnum[keyof typeof RemoveIntentTypeEnum];
|
|
@@ -16,73 +16,73 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface IntentResponse
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface IntentResponse {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof IntentResponse
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
clientType: IntentResponseClientTypeEnum;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof IntentResponse
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
listingType: IntentResponseListingTypeEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
37
|
-
* @memberof
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IntentResponse
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
propertyType: IntentResponsePropertyTypeEnum;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof IntentResponse
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
priceMin?: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
|
49
|
-
* @memberof
|
|
49
|
+
* @memberof IntentResponse
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
priceMax?: number;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
55
|
-
* @memberof
|
|
55
|
+
* @memberof IntentResponse
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
regionId?: number;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {number}
|
|
61
|
-
* @memberof
|
|
61
|
+
* @memberof IntentResponse
|
|
62
62
|
*/
|
|
63
63
|
districtId?: number;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {number}
|
|
67
|
-
* @memberof
|
|
67
|
+
* @memberof IntentResponse
|
|
68
68
|
*/
|
|
69
69
|
subDistrictId?: number;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @type {number}
|
|
73
|
-
* @memberof
|
|
73
|
+
* @memberof IntentResponse
|
|
74
74
|
*/
|
|
75
75
|
streetId?: number;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {number}
|
|
79
|
-
* @memberof
|
|
79
|
+
* @memberof IntentResponse
|
|
80
80
|
*/
|
|
81
81
|
area?: number;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {number}
|
|
85
|
-
* @memberof
|
|
85
|
+
* @memberof IntentResponse
|
|
86
86
|
*/
|
|
87
87
|
numberOfRooms?: number;
|
|
88
88
|
}
|
|
@@ -91,7 +91,27 @@ export interface SearchIntentResponse {
|
|
|
91
91
|
/**
|
|
92
92
|
* @export
|
|
93
93
|
*/
|
|
94
|
-
export const
|
|
94
|
+
export const IntentResponseClientTypeEnum = {
|
|
95
|
+
Listing: 'LISTING',
|
|
96
|
+
Seeking: 'SEEKING'
|
|
97
|
+
} as const;
|
|
98
|
+
export type IntentResponseClientTypeEnum = typeof IntentResponseClientTypeEnum[keyof typeof IntentResponseClientTypeEnum];
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @export
|
|
102
|
+
*/
|
|
103
|
+
export const IntentResponseListingTypeEnum = {
|
|
104
|
+
Sale: 'SALE',
|
|
105
|
+
Rent: 'RENT',
|
|
106
|
+
DailyRent: 'DAILY_RENT',
|
|
107
|
+
Pledge: 'PLEDGE'
|
|
108
|
+
} as const;
|
|
109
|
+
export type IntentResponseListingTypeEnum = typeof IntentResponseListingTypeEnum[keyof typeof IntentResponseListingTypeEnum];
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @export
|
|
113
|
+
*/
|
|
114
|
+
export const IntentResponsePropertyTypeEnum = {
|
|
95
115
|
House: 'HOUSE',
|
|
96
116
|
TownHouse: 'TOWN_HOUSE',
|
|
97
117
|
CountryHouse: 'COUNTRY_HOUSE',
|
|
@@ -113,43 +133,35 @@ export const SearchIntentResponsePropertyTypeEnum = {
|
|
|
113
133
|
Warehouse: 'WAREHOUSE',
|
|
114
134
|
Garage: 'GARAGE'
|
|
115
135
|
} as const;
|
|
116
|
-
export type
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @export
|
|
120
|
-
*/
|
|
121
|
-
export const SearchIntentResponseDealTypeEnum = {
|
|
122
|
-
Buy: 'BUY',
|
|
123
|
-
Rent: 'RENT'
|
|
124
|
-
} as const;
|
|
125
|
-
export type SearchIntentResponseDealTypeEnum = typeof SearchIntentResponseDealTypeEnum[keyof typeof SearchIntentResponseDealTypeEnum];
|
|
136
|
+
export type IntentResponsePropertyTypeEnum = typeof IntentResponsePropertyTypeEnum[keyof typeof IntentResponsePropertyTypeEnum];
|
|
126
137
|
|
|
127
138
|
|
|
128
139
|
/**
|
|
129
|
-
* Check if a given object implements the
|
|
140
|
+
* Check if a given object implements the IntentResponse interface.
|
|
130
141
|
*/
|
|
131
|
-
export function
|
|
142
|
+
export function instanceOfIntentResponse(value: object): value is IntentResponse {
|
|
143
|
+
if (!('clientType' in value) || value['clientType'] === undefined) return false;
|
|
144
|
+
if (!('listingType' in value) || value['listingType'] === undefined) return false;
|
|
132
145
|
if (!('propertyType' in value) || value['propertyType'] === undefined) return false;
|
|
133
|
-
if (!('dealType' in value) || value['dealType'] === undefined) return false;
|
|
134
146
|
return true;
|
|
135
147
|
}
|
|
136
148
|
|
|
137
|
-
export function
|
|
138
|
-
return
|
|
149
|
+
export function IntentResponseFromJSON(json: any): IntentResponse {
|
|
150
|
+
return IntentResponseFromJSONTyped(json, false);
|
|
139
151
|
}
|
|
140
152
|
|
|
141
|
-
export function
|
|
153
|
+
export function IntentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntentResponse {
|
|
142
154
|
if (json == null) {
|
|
143
155
|
return json;
|
|
144
156
|
}
|
|
145
157
|
return {
|
|
146
158
|
|
|
159
|
+
'clientType': json['clientType'],
|
|
160
|
+
'listingType': json['listingType'],
|
|
147
161
|
'propertyType': json['propertyType'],
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
'budgetMax': json['budgetMax'] == null ? undefined : json['budgetMax'],
|
|
162
|
+
'priceMin': json['priceMin'] == null ? undefined : json['priceMin'],
|
|
163
|
+
'priceMax': json['priceMax'] == null ? undefined : json['priceMax'],
|
|
151
164
|
'regionId': json['regionId'] == null ? undefined : json['regionId'],
|
|
152
|
-
'cityId': json['cityId'] == null ? undefined : json['cityId'],
|
|
153
165
|
'districtId': json['districtId'] == null ? undefined : json['districtId'],
|
|
154
166
|
'subDistrictId': json['subDistrictId'] == null ? undefined : json['subDistrictId'],
|
|
155
167
|
'streetId': json['streetId'] == null ? undefined : json['streetId'],
|
|
@@ -158,23 +170,23 @@ export function SearchIntentResponseFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
158
170
|
};
|
|
159
171
|
}
|
|
160
172
|
|
|
161
|
-
export function
|
|
162
|
-
return
|
|
173
|
+
export function IntentResponseToJSON(json: any): IntentResponse {
|
|
174
|
+
return IntentResponseToJSONTyped(json, false);
|
|
163
175
|
}
|
|
164
176
|
|
|
165
|
-
export function
|
|
177
|
+
export function IntentResponseToJSONTyped(value?: IntentResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
166
178
|
if (value == null) {
|
|
167
179
|
return value;
|
|
168
180
|
}
|
|
169
181
|
|
|
170
182
|
return {
|
|
171
183
|
|
|
184
|
+
'clientType': value['clientType'],
|
|
185
|
+
'listingType': value['listingType'],
|
|
172
186
|
'propertyType': value['propertyType'],
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'budgetMax': value['budgetMax'],
|
|
187
|
+
'priceMin': value['priceMin'],
|
|
188
|
+
'priceMax': value['priceMax'],
|
|
176
189
|
'regionId': value['regionId'],
|
|
177
|
-
'cityId': value['cityId'],
|
|
178
190
|
'districtId': value['districtId'],
|
|
179
191
|
'subDistrictId': value['subDistrictId'],
|
|
180
192
|
'streetId': value['streetId'],
|