@homespot-sdk/api 0.0.639 → 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.
Files changed (84) hide show
  1. package/.openapi-generator/FILES +4 -12
  2. package/README.md +6 -12
  3. package/dist/apis/LeadControllerApi.d.ts +15 -71
  4. package/dist/apis/LeadControllerApi.js +18 -109
  5. package/dist/esm/apis/LeadControllerApi.d.ts +15 -71
  6. package/dist/esm/apis/LeadControllerApi.js +18 -109
  7. package/dist/esm/models/IntentResponse.d.ts +136 -0
  8. package/dist/esm/models/{SearchIntentResponse.js → IntentResponse.js} +37 -26
  9. package/dist/esm/models/LeadIntentRequest.d.ts +114 -0
  10. package/dist/esm/models/{SearchIntentRequest.js → LeadIntentRequest.js} +35 -22
  11. package/dist/esm/models/LeadProjectionResponse.d.ts +6 -19
  12. package/dist/esm/models/LeadProjectionResponse.js +11 -16
  13. package/dist/esm/models/LocationRefRequest.d.ts +0 -6
  14. package/dist/esm/models/LocationRefRequest.js +0 -2
  15. package/dist/esm/models/PageLeadProjectionResponse.d.ts +8 -8
  16. package/dist/esm/models/PageLeadProjectionResponse.js +4 -4
  17. package/dist/esm/models/PageRoleResponse.d.ts +8 -8
  18. package/dist/esm/models/PageRoleResponse.js +4 -4
  19. package/dist/esm/models/PageableObject.d.ts +4 -4
  20. package/dist/esm/models/PageableObject.js +4 -4
  21. package/dist/esm/models/index.d.ts +2 -6
  22. package/dist/esm/models/index.js +2 -6
  23. package/dist/models/IntentResponse.d.ts +136 -0
  24. package/dist/models/{SearchIntentResponse.js → IntentResponse.js} +43 -32
  25. package/dist/models/LeadIntentRequest.d.ts +114 -0
  26. package/dist/models/{SearchIntentRequest.js → LeadIntentRequest.js} +41 -28
  27. package/dist/models/LeadProjectionResponse.d.ts +6 -19
  28. package/dist/models/LeadProjectionResponse.js +11 -16
  29. package/dist/models/LocationRefRequest.d.ts +0 -6
  30. package/dist/models/LocationRefRequest.js +0 -2
  31. package/dist/models/PageLeadProjectionResponse.d.ts +8 -8
  32. package/dist/models/PageLeadProjectionResponse.js +4 -4
  33. package/dist/models/PageRoleResponse.d.ts +8 -8
  34. package/dist/models/PageRoleResponse.js +4 -4
  35. package/dist/models/PageableObject.d.ts +4 -4
  36. package/dist/models/PageableObject.js +4 -4
  37. package/dist/models/index.d.ts +2 -6
  38. package/dist/models/index.js +2 -6
  39. package/docs/{SearchIntentResponse.md → IntentResponse.md} +12 -12
  40. package/docs/LeadControllerApi.md +19 -171
  41. package/docs/{SearchIntentRequest.md → LeadIntentRequest.md} +10 -8
  42. package/docs/LeadProjectionResponse.md +8 -12
  43. package/docs/LocationRefRequest.md +0 -2
  44. package/docs/PageLeadProjectionResponse.md +4 -4
  45. package/docs/PageRoleResponse.md +4 -4
  46. package/docs/PageableObject.md +4 -4
  47. package/package.json +1 -1
  48. package/src/apis/LeadControllerApi.ts +32 -206
  49. package/src/models/{SearchIntentResponse.ts → IntentResponse.ts} +60 -48
  50. package/src/models/{SearchIntentRequest.ts → LeadIntentRequest.ts} +55 -35
  51. package/src/models/LeadProjectionResponse.ts +21 -44
  52. package/src/models/LocationRefRequest.ts +0 -8
  53. package/src/models/PageLeadProjectionResponse.ts +12 -12
  54. package/src/models/PageRoleResponse.ts +12 -12
  55. package/src/models/PageableObject.ts +8 -8
  56. package/src/models/index.ts +2 -6
  57. package/dist/esm/models/AddressRefRequest.d.ts +0 -63
  58. package/dist/esm/models/AddressRefRequest.js +0 -54
  59. package/dist/esm/models/CoordinatesRequest.d.ts +0 -38
  60. package/dist/esm/models/CoordinatesRequest.js +0 -47
  61. package/dist/esm/models/ListingIntentRequest.d.ts +0 -98
  62. package/dist/esm/models/ListingIntentRequest.js +0 -89
  63. package/dist/esm/models/ListingIntentResponse.d.ts +0 -138
  64. package/dist/esm/models/ListingIntentResponse.js +0 -101
  65. package/dist/esm/models/SearchIntentRequest.d.ts +0 -98
  66. package/dist/esm/models/SearchIntentResponse.d.ts +0 -126
  67. package/dist/models/AddressRefRequest.d.ts +0 -63
  68. package/dist/models/AddressRefRequest.js +0 -61
  69. package/dist/models/CoordinatesRequest.d.ts +0 -38
  70. package/dist/models/CoordinatesRequest.js +0 -54
  71. package/dist/models/ListingIntentRequest.d.ts +0 -98
  72. package/dist/models/ListingIntentRequest.js +0 -97
  73. package/dist/models/ListingIntentResponse.d.ts +0 -138
  74. package/dist/models/ListingIntentResponse.js +0 -109
  75. package/dist/models/SearchIntentRequest.d.ts +0 -98
  76. package/dist/models/SearchIntentResponse.d.ts +0 -126
  77. package/docs/AddressRefRequest.md +0 -44
  78. package/docs/CoordinatesRequest.md +0 -36
  79. package/docs/ListingIntentRequest.md +0 -44
  80. package/docs/ListingIntentResponse.md +0 -58
  81. package/src/models/AddressRefRequest.ts +0 -114
  82. package/src/models/CoordinatesRequest.ts +0 -75
  83. package/src/models/ListingIntentRequest.ts +0 -160
  84. package/src/models/ListingIntentResponse.ts +0 -201
@@ -10,14 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AssignToMemberRequest, ChangeStatusRequest, ContactInfoRequest, CreateLeadRequest, IdResponse, ListingIntentRequest, SearchIntentRequest, SourceRequest, UpdateNoteRequest } from '../models/index';
14
- export interface AddListingIntentRequest {
13
+ import type { AssignToMemberRequest, ChangeStatusRequest, ContactInfoRequest, CreateLeadRequest, IdResponse, LeadIntentRequest, SourceRequest, UpdateNoteRequest } from '../models/index';
14
+ export interface AddIntentRequest {
15
15
  leadId: string;
16
- listingIntentRequest: ListingIntentRequest;
17
- }
18
- export interface AddSearchIntentRequest {
19
- leadId: string;
20
- searchIntentRequest: SearchIntentRequest;
16
+ leadIntentRequest: LeadIntentRequest;
21
17
  }
22
18
  export interface AssignToAgentRequest {
23
19
  leadId: string;
@@ -33,26 +29,20 @@ export interface CreateLeadOperationRequest {
33
29
  export interface RemoveIntentRequest {
34
30
  leadId: string;
35
31
  index: number;
36
- type: RemoveIntentTypeEnum;
37
32
  }
38
33
  export interface UpdateContactInfoRequest {
39
34
  leadId: string;
40
35
  contactInfoRequest: ContactInfoRequest;
41
36
  }
42
- export interface UpdateListingIntentRequest {
37
+ export interface UpdateIntentRequest {
43
38
  leadId: string;
44
39
  index: number;
45
- listingIntentRequest: ListingIntentRequest;
40
+ leadIntentRequest: LeadIntentRequest;
46
41
  }
47
42
  export interface UpdateNoteOperationRequest {
48
43
  leadId: string;
49
44
  updateNoteRequest: UpdateNoteRequest;
50
45
  }
51
- export interface UpdateSearchIntentRequest {
52
- leadId: string;
53
- index: number;
54
- searchIntentRequest: SearchIntentRequest;
55
- }
56
46
  export interface UpdateSourceRequest {
57
47
  leadId: string;
58
48
  sourceRequest: SourceRequest;
@@ -67,27 +57,15 @@ export interface LeadControllerApiInterface {
67
57
  /**
68
58
  *
69
59
  * @param {string} leadId
70
- * @param {ListingIntentRequest} listingIntentRequest
71
- * @param {*} [options] Override http request option.
72
- * @throws {RequiredError}
73
- * @memberof LeadControllerApiInterface
74
- */
75
- addListingIntentRaw(requestParameters: AddListingIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
76
- /**
77
- */
78
- addListingIntent(requestParameters: AddListingIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
79
- /**
80
- *
81
- * @param {string} leadId
82
- * @param {SearchIntentRequest} searchIntentRequest
60
+ * @param {LeadIntentRequest} leadIntentRequest
83
61
  * @param {*} [options] Override http request option.
84
62
  * @throws {RequiredError}
85
63
  * @memberof LeadControllerApiInterface
86
64
  */
87
- addSearchIntentRaw(requestParameters: AddSearchIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
65
+ addIntentRaw(requestParameters: AddIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
88
66
  /**
89
67
  */
90
- addSearchIntent(requestParameters: AddSearchIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
68
+ addIntent(requestParameters: AddIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
91
69
  /**
92
70
  *
93
71
  * @param {string} leadId
@@ -127,7 +105,6 @@ export interface LeadControllerApiInterface {
127
105
  *
128
106
  * @param {string} leadId
129
107
  * @param {number} index
130
- * @param {'SEARCH' | 'LISTING'} type
131
108
  * @param {*} [options] Override http request option.
132
109
  * @throws {RequiredError}
133
110
  * @memberof LeadControllerApiInterface
@@ -152,15 +129,15 @@ export interface LeadControllerApiInterface {
152
129
  *
153
130
  * @param {string} leadId
154
131
  * @param {number} index
155
- * @param {ListingIntentRequest} listingIntentRequest
132
+ * @param {LeadIntentRequest} leadIntentRequest
156
133
  * @param {*} [options] Override http request option.
157
134
  * @throws {RequiredError}
158
135
  * @memberof LeadControllerApiInterface
159
136
  */
160
- updateListingIntentRaw(requestParameters: UpdateListingIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
137
+ updateIntentRaw(requestParameters: UpdateIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
161
138
  /**
162
139
  */
163
- updateListingIntent(requestParameters: UpdateListingIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
140
+ updateIntent(requestParameters: UpdateIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
164
141
  /**
165
142
  *
166
143
  * @param {string} leadId
@@ -173,19 +150,6 @@ export interface LeadControllerApiInterface {
173
150
  /**
174
151
  */
175
152
  updateNote(requestParameters: UpdateNoteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
176
- /**
177
- *
178
- * @param {string} leadId
179
- * @param {number} index
180
- * @param {SearchIntentRequest} searchIntentRequest
181
- * @param {*} [options] Override http request option.
182
- * @throws {RequiredError}
183
- * @memberof LeadControllerApiInterface
184
- */
185
- updateSearchIntentRaw(requestParameters: UpdateSearchIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
186
- /**
187
- */
188
- updateSearchIntent(requestParameters: UpdateSearchIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
189
153
  /**
190
154
  *
191
155
  * @param {string} leadId
@@ -205,16 +169,10 @@ export interface LeadControllerApiInterface {
205
169
  export declare class LeadControllerApi extends runtime.BaseAPI implements LeadControllerApiInterface {
206
170
  /**
207
171
  */
208
- addListingIntentRaw(requestParameters: AddListingIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
209
- /**
210
- */
211
- addListingIntent(requestParameters: AddListingIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
172
+ addIntentRaw(requestParameters: AddIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
212
173
  /**
213
174
  */
214
- addSearchIntentRaw(requestParameters: AddSearchIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
215
- /**
216
- */
217
- addSearchIntent(requestParameters: AddSearchIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
175
+ addIntent(requestParameters: AddIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
218
176
  /**
219
177
  */
220
178
  assignToAgentRaw(requestParameters: AssignToAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
@@ -247,22 +205,16 @@ export declare class LeadControllerApi extends runtime.BaseAPI implements LeadCo
247
205
  updateContactInfo(requestParameters: UpdateContactInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
248
206
  /**
249
207
  */
250
- updateListingIntentRaw(requestParameters: UpdateListingIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
208
+ updateIntentRaw(requestParameters: UpdateIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
251
209
  /**
252
210
  */
253
- updateListingIntent(requestParameters: UpdateListingIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
211
+ updateIntent(requestParameters: UpdateIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
254
212
  /**
255
213
  */
256
214
  updateNoteRaw(requestParameters: UpdateNoteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
257
215
  /**
258
216
  */
259
217
  updateNote(requestParameters: UpdateNoteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
260
- /**
261
- */
262
- updateSearchIntentRaw(requestParameters: UpdateSearchIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
263
- /**
264
- */
265
- updateSearchIntent(requestParameters: UpdateSearchIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
266
218
  /**
267
219
  */
268
220
  updateSourceRaw(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
@@ -270,11 +222,3 @@ export declare class LeadControllerApi extends runtime.BaseAPI implements LeadCo
270
222
  */
271
223
  updateSource(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
272
224
  }
273
- /**
274
- * @export
275
- */
276
- export declare const RemoveIntentTypeEnum: {
277
- readonly Search: "SEARCH";
278
- readonly Listing: "LISTING";
279
- };
280
- export type RemoveIntentTypeEnum = typeof RemoveIntentTypeEnum[keyof typeof RemoveIntentTypeEnum];
@@ -21,20 +21,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { AssignToMemberRequestToJSON, ChangeStatusRequestToJSON, ContactInfoRequestToJSON, CreateLeadRequestToJSON, IdResponseFromJSON, ListingIntentRequestToJSON, SearchIntentRequestToJSON, SourceRequestToJSON, UpdateNoteRequestToJSON, } from '../models/index';
24
+ import { AssignToMemberRequestToJSON, ChangeStatusRequestToJSON, ContactInfoRequestToJSON, CreateLeadRequestToJSON, IdResponseFromJSON, LeadIntentRequestToJSON, SourceRequestToJSON, UpdateNoteRequestToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
28
28
  export class LeadControllerApi extends runtime.BaseAPI {
29
29
  /**
30
30
  */
31
- addListingIntentRaw(requestParameters, initOverrides) {
31
+ addIntentRaw(requestParameters, initOverrides) {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  if (requestParameters['leadId'] == null) {
34
- throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling addListingIntent().');
34
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling addIntent().');
35
35
  }
36
- if (requestParameters['listingIntentRequest'] == null) {
37
- throw new runtime.RequiredError('listingIntentRequest', 'Required parameter "listingIntentRequest" was null or undefined when calling addListingIntent().');
36
+ if (requestParameters['leadIntentRequest'] == null) {
37
+ throw new runtime.RequiredError('leadIntentRequest', 'Required parameter "leadIntentRequest" was null or undefined when calling addIntent().');
38
38
  }
39
39
  const queryParameters = {};
40
40
  const headerParameters = {};
@@ -43,59 +43,23 @@ export class LeadControllerApi extends runtime.BaseAPI {
43
43
  // oauth required
44
44
  headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
45
45
  }
46
- let urlPath = `/lead/{leadId}/listing-intents`;
46
+ let urlPath = `/lead/{leadId}/intent`;
47
47
  urlPath = urlPath.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId'])));
48
48
  const response = yield this.request({
49
49
  path: urlPath,
50
50
  method: 'POST',
51
51
  headers: headerParameters,
52
52
  query: queryParameters,
53
- body: ListingIntentRequestToJSON(requestParameters['listingIntentRequest']),
53
+ body: LeadIntentRequestToJSON(requestParameters['leadIntentRequest']),
54
54
  }, initOverrides);
55
55
  return new runtime.VoidApiResponse(response);
56
56
  });
57
57
  }
58
58
  /**
59
59
  */
60
- addListingIntent(requestParameters, initOverrides) {
60
+ addIntent(requestParameters, initOverrides) {
61
61
  return __awaiter(this, void 0, void 0, function* () {
62
- yield this.addListingIntentRaw(requestParameters, initOverrides);
63
- });
64
- }
65
- /**
66
- */
67
- addSearchIntentRaw(requestParameters, initOverrides) {
68
- return __awaiter(this, void 0, void 0, function* () {
69
- if (requestParameters['leadId'] == null) {
70
- throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling addSearchIntent().');
71
- }
72
- if (requestParameters['searchIntentRequest'] == null) {
73
- throw new runtime.RequiredError('searchIntentRequest', 'Required parameter "searchIntentRequest" was null or undefined when calling addSearchIntent().');
74
- }
75
- const queryParameters = {};
76
- const headerParameters = {};
77
- headerParameters['Content-Type'] = 'application/json';
78
- if (this.configuration && this.configuration.accessToken) {
79
- // oauth required
80
- headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
81
- }
82
- let urlPath = `/lead/{leadId}/search-intents`;
83
- urlPath = urlPath.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId'])));
84
- const response = yield this.request({
85
- path: urlPath,
86
- method: 'POST',
87
- headers: headerParameters,
88
- query: queryParameters,
89
- body: SearchIntentRequestToJSON(requestParameters['searchIntentRequest']),
90
- }, initOverrides);
91
- return new runtime.VoidApiResponse(response);
92
- });
93
- }
94
- /**
95
- */
96
- addSearchIntent(requestParameters, initOverrides) {
97
- return __awaiter(this, void 0, void 0, function* () {
98
- yield this.addSearchIntentRaw(requestParameters, initOverrides);
62
+ yield this.addIntentRaw(requestParameters, initOverrides);
99
63
  });
100
64
  }
101
65
  /**
@@ -213,16 +177,10 @@ export class LeadControllerApi extends runtime.BaseAPI {
213
177
  if (requestParameters['index'] == null) {
214
178
  throw new runtime.RequiredError('index', 'Required parameter "index" was null or undefined when calling removeIntent().');
215
179
  }
216
- if (requestParameters['type'] == null) {
217
- throw new runtime.RequiredError('type', 'Required parameter "type" was null or undefined when calling removeIntent().');
218
- }
219
180
  const queryParameters = {};
220
181
  if (requestParameters['index'] != null) {
221
182
  queryParameters['index'] = requestParameters['index'];
222
183
  }
223
- if (requestParameters['type'] != null) {
224
- queryParameters['type'] = requestParameters['type'];
225
- }
226
184
  const headerParameters = {};
227
185
  if (this.configuration && this.configuration.accessToken) {
228
186
  // oauth required
@@ -284,16 +242,16 @@ export class LeadControllerApi extends runtime.BaseAPI {
284
242
  }
285
243
  /**
286
244
  */
287
- updateListingIntentRaw(requestParameters, initOverrides) {
245
+ updateIntentRaw(requestParameters, initOverrides) {
288
246
  return __awaiter(this, void 0, void 0, function* () {
289
247
  if (requestParameters['leadId'] == null) {
290
- throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling updateListingIntent().');
248
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling updateIntent().');
291
249
  }
292
250
  if (requestParameters['index'] == null) {
293
- throw new runtime.RequiredError('index', 'Required parameter "index" was null or undefined when calling updateListingIntent().');
251
+ throw new runtime.RequiredError('index', 'Required parameter "index" was null or undefined when calling updateIntent().');
294
252
  }
295
- if (requestParameters['listingIntentRequest'] == null) {
296
- throw new runtime.RequiredError('listingIntentRequest', 'Required parameter "listingIntentRequest" was null or undefined when calling updateListingIntent().');
253
+ if (requestParameters['leadIntentRequest'] == null) {
254
+ throw new runtime.RequiredError('leadIntentRequest', 'Required parameter "leadIntentRequest" was null or undefined when calling updateIntent().');
297
255
  }
298
256
  const queryParameters = {};
299
257
  if (requestParameters['index'] != null) {
@@ -305,23 +263,23 @@ export class LeadControllerApi extends runtime.BaseAPI {
305
263
  // oauth required
306
264
  headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
307
265
  }
308
- let urlPath = `/lead/{leadId}/listing-intents`;
266
+ let urlPath = `/lead/{leadId}/intent`;
309
267
  urlPath = urlPath.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId'])));
310
268
  const response = yield this.request({
311
269
  path: urlPath,
312
270
  method: 'PUT',
313
271
  headers: headerParameters,
314
272
  query: queryParameters,
315
- body: ListingIntentRequestToJSON(requestParameters['listingIntentRequest']),
273
+ body: LeadIntentRequestToJSON(requestParameters['leadIntentRequest']),
316
274
  }, initOverrides);
317
275
  return new runtime.VoidApiResponse(response);
318
276
  });
319
277
  }
320
278
  /**
321
279
  */
322
- updateListingIntent(requestParameters, initOverrides) {
280
+ updateIntent(requestParameters, initOverrides) {
323
281
  return __awaiter(this, void 0, void 0, function* () {
324
- yield this.updateListingIntentRaw(requestParameters, initOverrides);
282
+ yield this.updateIntentRaw(requestParameters, initOverrides);
325
283
  });
326
284
  }
327
285
  /**
@@ -360,48 +318,6 @@ export class LeadControllerApi extends runtime.BaseAPI {
360
318
  yield this.updateNoteRaw(requestParameters, initOverrides);
361
319
  });
362
320
  }
363
- /**
364
- */
365
- updateSearchIntentRaw(requestParameters, initOverrides) {
366
- return __awaiter(this, void 0, void 0, function* () {
367
- if (requestParameters['leadId'] == null) {
368
- throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling updateSearchIntent().');
369
- }
370
- if (requestParameters['index'] == null) {
371
- throw new runtime.RequiredError('index', 'Required parameter "index" was null or undefined when calling updateSearchIntent().');
372
- }
373
- if (requestParameters['searchIntentRequest'] == null) {
374
- throw new runtime.RequiredError('searchIntentRequest', 'Required parameter "searchIntentRequest" was null or undefined when calling updateSearchIntent().');
375
- }
376
- const queryParameters = {};
377
- if (requestParameters['index'] != null) {
378
- queryParameters['index'] = requestParameters['index'];
379
- }
380
- const headerParameters = {};
381
- headerParameters['Content-Type'] = 'application/json';
382
- if (this.configuration && this.configuration.accessToken) {
383
- // oauth required
384
- headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
385
- }
386
- let urlPath = `/lead/{leadId}/search-intents`;
387
- urlPath = urlPath.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId'])));
388
- const response = yield this.request({
389
- path: urlPath,
390
- method: 'PUT',
391
- headers: headerParameters,
392
- query: queryParameters,
393
- body: SearchIntentRequestToJSON(requestParameters['searchIntentRequest']),
394
- }, initOverrides);
395
- return new runtime.VoidApiResponse(response);
396
- });
397
- }
398
- /**
399
- */
400
- updateSearchIntent(requestParameters, initOverrides) {
401
- return __awaiter(this, void 0, void 0, function* () {
402
- yield this.updateSearchIntentRaw(requestParameters, initOverrides);
403
- });
404
- }
405
321
  /**
406
322
  */
407
323
  updateSourceRaw(requestParameters, initOverrides) {
@@ -439,10 +355,3 @@ export class LeadControllerApi extends runtime.BaseAPI {
439
355
  });
440
356
  }
441
357
  }
442
- /**
443
- * @export
444
- */
445
- export const RemoveIntentTypeEnum = {
446
- Search: 'SEARCH',
447
- Listing: 'LISTING'
448
- };
@@ -0,0 +1,136 @@
1
+ /**
2
+ * Service API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface IntentResponse
16
+ */
17
+ export interface IntentResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof IntentResponse
22
+ */
23
+ clientType: IntentResponseClientTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IntentResponse
28
+ */
29
+ listingType: IntentResponseListingTypeEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof IntentResponse
34
+ */
35
+ propertyType: IntentResponsePropertyTypeEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof IntentResponse
40
+ */
41
+ priceMin?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof IntentResponse
46
+ */
47
+ priceMax?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof IntentResponse
52
+ */
53
+ regionId?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof IntentResponse
58
+ */
59
+ districtId?: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof IntentResponse
64
+ */
65
+ subDistrictId?: number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof IntentResponse
70
+ */
71
+ streetId?: number;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof IntentResponse
76
+ */
77
+ area?: number;
78
+ /**
79
+ *
80
+ * @type {number}
81
+ * @memberof IntentResponse
82
+ */
83
+ numberOfRooms?: number;
84
+ }
85
+ /**
86
+ * @export
87
+ */
88
+ export declare const IntentResponseClientTypeEnum: {
89
+ readonly Listing: "LISTING";
90
+ readonly Seeking: "SEEKING";
91
+ };
92
+ export type IntentResponseClientTypeEnum = typeof IntentResponseClientTypeEnum[keyof typeof IntentResponseClientTypeEnum];
93
+ /**
94
+ * @export
95
+ */
96
+ export declare const IntentResponseListingTypeEnum: {
97
+ readonly Sale: "SALE";
98
+ readonly Rent: "RENT";
99
+ readonly DailyRent: "DAILY_RENT";
100
+ readonly Pledge: "PLEDGE";
101
+ };
102
+ export type IntentResponseListingTypeEnum = typeof IntentResponseListingTypeEnum[keyof typeof IntentResponseListingTypeEnum];
103
+ /**
104
+ * @export
105
+ */
106
+ export declare const IntentResponsePropertyTypeEnum: {
107
+ readonly House: "HOUSE";
108
+ readonly TownHouse: "TOWN_HOUSE";
109
+ readonly CountryHouse: "COUNTRY_HOUSE";
110
+ readonly Villa: "VILLA";
111
+ readonly Cottage: "COTTAGE";
112
+ readonly Apartment: "APARTMENT";
113
+ readonly Duplex: "DUPLEX";
114
+ readonly Triplex: "TRIPLEX";
115
+ readonly SemiBasement: "SEMI_BASEMENT";
116
+ readonly Attic: "ATTIC";
117
+ readonly AgriculturalLand: "AGRICULTURAL_LAND";
118
+ readonly ResidentialLand: "RESIDENTIAL_LAND";
119
+ readonly HotelRoom: "HOTEL_ROOM";
120
+ readonly MotelRoom: "MOTEL_ROOM";
121
+ readonly CoLivingSpace: "CO_LIVING_SPACE";
122
+ readonly Office: "OFFICE";
123
+ readonly CommercialSpace: "COMMERCIAL_SPACE";
124
+ readonly CoWorkingSpace: "CO_WORKING_SPACE";
125
+ readonly Warehouse: "WAREHOUSE";
126
+ readonly Garage: "GARAGE";
127
+ };
128
+ export type IntentResponsePropertyTypeEnum = typeof IntentResponsePropertyTypeEnum[keyof typeof IntentResponsePropertyTypeEnum];
129
+ /**
130
+ * Check if a given object implements the IntentResponse interface.
131
+ */
132
+ export declare function instanceOfIntentResponse(value: object): value is IntentResponse;
133
+ export declare function IntentResponseFromJSON(json: any): IntentResponse;
134
+ export declare function IntentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntentResponse;
135
+ export declare function IntentResponseToJSON(json: any): IntentResponse;
136
+ export declare function IntentResponseToJSONTyped(value?: IntentResponse | null, ignoreDiscriminator?: boolean): any;
@@ -14,7 +14,23 @@
14
14
  /**
15
15
  * @export
16
16
  */
17
- export const SearchIntentResponsePropertyTypeEnum = {
17
+ export const IntentResponseClientTypeEnum = {
18
+ Listing: 'LISTING',
19
+ Seeking: 'SEEKING'
20
+ };
21
+ /**
22
+ * @export
23
+ */
24
+ export const IntentResponseListingTypeEnum = {
25
+ Sale: 'SALE',
26
+ Rent: 'RENT',
27
+ DailyRent: 'DAILY_RENT',
28
+ Pledge: 'PLEDGE'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ export const IntentResponsePropertyTypeEnum = {
18
34
  House: 'HOUSE',
19
35
  TownHouse: 'TOWN_HOUSE',
20
36
  CountryHouse: 'COUNTRY_HOUSE',
@@ -37,36 +53,31 @@ export const SearchIntentResponsePropertyTypeEnum = {
37
53
  Garage: 'GARAGE'
38
54
  };
39
55
  /**
40
- * @export
41
- */
42
- export const SearchIntentResponseDealTypeEnum = {
43
- Buy: 'BUY',
44
- Rent: 'RENT'
45
- };
46
- /**
47
- * Check if a given object implements the SearchIntentResponse interface.
56
+ * Check if a given object implements the IntentResponse interface.
48
57
  */
49
- export function instanceOfSearchIntentResponse(value) {
50
- if (!('propertyType' in value) || value['propertyType'] === undefined)
58
+ export function instanceOfIntentResponse(value) {
59
+ if (!('clientType' in value) || value['clientType'] === undefined)
60
+ return false;
61
+ if (!('listingType' in value) || value['listingType'] === undefined)
51
62
  return false;
52
- if (!('dealType' in value) || value['dealType'] === undefined)
63
+ if (!('propertyType' in value) || value['propertyType'] === undefined)
53
64
  return false;
54
65
  return true;
55
66
  }
56
- export function SearchIntentResponseFromJSON(json) {
57
- return SearchIntentResponseFromJSONTyped(json, false);
67
+ export function IntentResponseFromJSON(json) {
68
+ return IntentResponseFromJSONTyped(json, false);
58
69
  }
59
- export function SearchIntentResponseFromJSONTyped(json, ignoreDiscriminator) {
70
+ export function IntentResponseFromJSONTyped(json, ignoreDiscriminator) {
60
71
  if (json == null) {
61
72
  return json;
62
73
  }
63
74
  return {
75
+ 'clientType': json['clientType'],
76
+ 'listingType': json['listingType'],
64
77
  'propertyType': json['propertyType'],
65
- 'dealType': json['dealType'],
66
- 'budgetMin': json['budgetMin'] == null ? undefined : json['budgetMin'],
67
- 'budgetMax': json['budgetMax'] == null ? undefined : json['budgetMax'],
78
+ 'priceMin': json['priceMin'] == null ? undefined : json['priceMin'],
79
+ 'priceMax': json['priceMax'] == null ? undefined : json['priceMax'],
68
80
  'regionId': json['regionId'] == null ? undefined : json['regionId'],
69
- 'cityId': json['cityId'] == null ? undefined : json['cityId'],
70
81
  'districtId': json['districtId'] == null ? undefined : json['districtId'],
71
82
  'subDistrictId': json['subDistrictId'] == null ? undefined : json['subDistrictId'],
72
83
  'streetId': json['streetId'] == null ? undefined : json['streetId'],
@@ -74,20 +85,20 @@ export function SearchIntentResponseFromJSONTyped(json, ignoreDiscriminator) {
74
85
  'numberOfRooms': json['numberOfRooms'] == null ? undefined : json['numberOfRooms'],
75
86
  };
76
87
  }
77
- export function SearchIntentResponseToJSON(json) {
78
- return SearchIntentResponseToJSONTyped(json, false);
88
+ export function IntentResponseToJSON(json) {
89
+ return IntentResponseToJSONTyped(json, false);
79
90
  }
80
- export function SearchIntentResponseToJSONTyped(value, ignoreDiscriminator = false) {
91
+ export function IntentResponseToJSONTyped(value, ignoreDiscriminator = false) {
81
92
  if (value == null) {
82
93
  return value;
83
94
  }
84
95
  return {
96
+ 'clientType': value['clientType'],
97
+ 'listingType': value['listingType'],
85
98
  'propertyType': value['propertyType'],
86
- 'dealType': value['dealType'],
87
- 'budgetMin': value['budgetMin'],
88
- 'budgetMax': value['budgetMax'],
99
+ 'priceMin': value['priceMin'],
100
+ 'priceMax': value['priceMax'],
89
101
  'regionId': value['regionId'],
90
- 'cityId': value['cityId'],
91
102
  'districtId': value['districtId'],
92
103
  'subDistrictId': value['subDistrictId'],
93
104
  'streetId': value['streetId'],