@homespot-sdk/api 0.0.636 → 0.0.638

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 (149) hide show
  1. package/.openapi-generator/FILES +38 -0
  2. package/README.md +33 -4
  3. package/dist/apis/AgencyQueryControllerApi.d.ts +46 -0
  4. package/dist/apis/AgencyQueryControllerApi.js +65 -0
  5. package/dist/apis/LeadControllerApi.d.ts +280 -0
  6. package/dist/apis/LeadControllerApi.js +452 -0
  7. package/dist/apis/LeadQueryControllerApi.d.ts +88 -0
  8. package/dist/apis/LeadQueryControllerApi.js +122 -0
  9. package/dist/apis/PublicAgencyControllerApi.d.ts +1 -21
  10. package/dist/apis/PublicAgencyControllerApi.js +0 -32
  11. package/dist/apis/PublicRoleControllerApi.js +1 -1
  12. package/dist/apis/index.d.ts +3 -0
  13. package/dist/apis/index.js +3 -0
  14. package/dist/esm/apis/AgencyQueryControllerApi.d.ts +46 -0
  15. package/dist/esm/apis/AgencyQueryControllerApi.js +61 -0
  16. package/dist/esm/apis/LeadControllerApi.d.ts +280 -0
  17. package/dist/esm/apis/LeadControllerApi.js +448 -0
  18. package/dist/esm/apis/LeadQueryControllerApi.d.ts +88 -0
  19. package/dist/esm/apis/LeadQueryControllerApi.js +118 -0
  20. package/dist/esm/apis/PublicAgencyControllerApi.d.ts +1 -21
  21. package/dist/esm/apis/PublicAgencyControllerApi.js +1 -33
  22. package/dist/esm/apis/PublicRoleControllerApi.js +1 -1
  23. package/dist/esm/apis/index.d.ts +3 -0
  24. package/dist/esm/apis/index.js +3 -0
  25. package/dist/esm/models/AddressRefRequest.d.ts +63 -0
  26. package/dist/esm/models/AddressRefRequest.js +54 -0
  27. package/dist/esm/models/AssignToMemberRequest.d.ts +32 -0
  28. package/dist/esm/models/AssignToMemberRequest.js +43 -0
  29. package/dist/esm/models/ChangeStatusRequest.d.ts +44 -0
  30. package/dist/esm/models/ChangeStatusRequest.js +54 -0
  31. package/dist/esm/models/ContactInfoRequest.d.ts +50 -0
  32. package/dist/esm/models/ContactInfoRequest.js +49 -0
  33. package/dist/esm/models/CoordinatesRequest.d.ts +38 -0
  34. package/dist/esm/models/CoordinatesRequest.js +47 -0
  35. package/dist/esm/models/CreateLeadRequest.d.ts +45 -0
  36. package/dist/esm/models/CreateLeadRequest.js +48 -0
  37. package/dist/esm/models/LeadProjectionResponse.d.ts +130 -0
  38. package/dist/esm/models/LeadProjectionResponse.js +94 -0
  39. package/dist/esm/models/ListingIntentRequest.d.ts +98 -0
  40. package/dist/esm/models/ListingIntentRequest.js +89 -0
  41. package/dist/esm/models/ListingIntentResponse.d.ts +138 -0
  42. package/dist/esm/models/ListingIntentResponse.js +101 -0
  43. package/dist/esm/models/LocationRefRequest.d.ts +56 -0
  44. package/dist/esm/models/LocationRefRequest.js +49 -0
  45. package/dist/esm/models/PageLeadProjectionResponse.d.ts +95 -0
  46. package/dist/esm/models/PageLeadProjectionResponse.js +64 -0
  47. package/dist/esm/models/PageRoleResponse.d.ts +6 -6
  48. package/dist/esm/models/PageRoleResponse.js +4 -4
  49. package/dist/esm/models/PageableObject.d.ts +6 -6
  50. package/dist/esm/models/PageableObject.js +2 -2
  51. package/dist/esm/models/PriceRangeRequest.d.ts +38 -0
  52. package/dist/esm/models/PriceRangeRequest.js +43 -0
  53. package/dist/esm/models/SearchIntentRequest.d.ts +98 -0
  54. package/dist/esm/models/SearchIntentRequest.js +89 -0
  55. package/dist/esm/models/SearchIntentResponse.d.ts +126 -0
  56. package/dist/esm/models/SearchIntentResponse.js +97 -0
  57. package/dist/esm/models/SourceRequest.d.ts +32 -0
  58. package/dist/esm/models/SourceRequest.js +43 -0
  59. package/dist/esm/models/UpdateNoteRequest.d.ts +32 -0
  60. package/dist/esm/models/UpdateNoteRequest.js +43 -0
  61. package/dist/esm/models/index.d.ts +16 -0
  62. package/dist/esm/models/index.js +16 -0
  63. package/dist/models/AddressRefRequest.d.ts +63 -0
  64. package/dist/models/AddressRefRequest.js +61 -0
  65. package/dist/models/AssignToMemberRequest.d.ts +32 -0
  66. package/dist/models/AssignToMemberRequest.js +50 -0
  67. package/dist/models/ChangeStatusRequest.d.ts +44 -0
  68. package/dist/models/ChangeStatusRequest.js +62 -0
  69. package/dist/models/ContactInfoRequest.d.ts +50 -0
  70. package/dist/models/ContactInfoRequest.js +56 -0
  71. package/dist/models/CoordinatesRequest.d.ts +38 -0
  72. package/dist/models/CoordinatesRequest.js +54 -0
  73. package/dist/models/CreateLeadRequest.d.ts +45 -0
  74. package/dist/models/CreateLeadRequest.js +55 -0
  75. package/dist/models/LeadProjectionResponse.d.ts +130 -0
  76. package/dist/models/LeadProjectionResponse.js +102 -0
  77. package/dist/models/ListingIntentRequest.d.ts +98 -0
  78. package/dist/models/ListingIntentRequest.js +97 -0
  79. package/dist/models/ListingIntentResponse.d.ts +138 -0
  80. package/dist/models/ListingIntentResponse.js +109 -0
  81. package/dist/models/LocationRefRequest.d.ts +56 -0
  82. package/dist/models/LocationRefRequest.js +56 -0
  83. package/dist/models/PageLeadProjectionResponse.d.ts +95 -0
  84. package/dist/models/PageLeadProjectionResponse.js +71 -0
  85. package/dist/models/PageRoleResponse.d.ts +6 -6
  86. package/dist/models/PageRoleResponse.js +4 -4
  87. package/dist/models/PageableObject.d.ts +6 -6
  88. package/dist/models/PageableObject.js +2 -2
  89. package/dist/models/PriceRangeRequest.d.ts +38 -0
  90. package/dist/models/PriceRangeRequest.js +50 -0
  91. package/dist/models/SearchIntentRequest.d.ts +98 -0
  92. package/dist/models/SearchIntentRequest.js +97 -0
  93. package/dist/models/SearchIntentResponse.d.ts +126 -0
  94. package/dist/models/SearchIntentResponse.js +105 -0
  95. package/dist/models/SourceRequest.d.ts +32 -0
  96. package/dist/models/SourceRequest.js +50 -0
  97. package/dist/models/UpdateNoteRequest.d.ts +32 -0
  98. package/dist/models/UpdateNoteRequest.js +50 -0
  99. package/dist/models/index.d.ts +16 -0
  100. package/dist/models/index.js +16 -0
  101. package/docs/AddressRefRequest.md +44 -0
  102. package/docs/AgencyQueryControllerApi.md +78 -0
  103. package/docs/AssignToMemberRequest.md +34 -0
  104. package/docs/ChangeStatusRequest.md +34 -0
  105. package/docs/ContactInfoRequest.md +40 -0
  106. package/docs/CoordinatesRequest.md +36 -0
  107. package/docs/CreateLeadRequest.md +38 -0
  108. package/docs/LeadControllerApi.md +817 -0
  109. package/docs/LeadProjectionResponse.md +62 -0
  110. package/docs/LeadQueryControllerApi.md +163 -0
  111. package/docs/ListingIntentRequest.md +44 -0
  112. package/docs/ListingIntentResponse.md +58 -0
  113. package/docs/LocationRefRequest.md +42 -0
  114. package/docs/PageLeadProjectionResponse.md +54 -0
  115. package/docs/PageRoleResponse.md +4 -4
  116. package/docs/PageableObject.md +2 -2
  117. package/docs/PriceRangeRequest.md +36 -0
  118. package/docs/PublicAgencyControllerApi.md +0 -70
  119. package/docs/PublicRoleControllerApi.md +1 -1
  120. package/docs/SearchIntentRequest.md +44 -0
  121. package/docs/SearchIntentResponse.md +54 -0
  122. package/docs/SourceRequest.md +34 -0
  123. package/docs/UpdateNoteRequest.md +34 -0
  124. package/package.json +1 -1
  125. package/src/apis/AgencyQueryControllerApi.ts +96 -0
  126. package/src/apis/LeadControllerApi.ts +851 -0
  127. package/src/apis/LeadQueryControllerApi.ts +195 -0
  128. package/src/apis/PublicAgencyControllerApi.ts +0 -60
  129. package/src/apis/PublicRoleControllerApi.ts +1 -1
  130. package/src/apis/index.ts +3 -0
  131. package/src/models/AddressRefRequest.ts +114 -0
  132. package/src/models/AssignToMemberRequest.ts +66 -0
  133. package/src/models/ChangeStatusRequest.ts +81 -0
  134. package/src/models/ContactInfoRequest.ts +90 -0
  135. package/src/models/CoordinatesRequest.ts +75 -0
  136. package/src/models/CreateLeadRequest.ts +90 -0
  137. package/src/models/LeadProjectionResponse.ts +213 -0
  138. package/src/models/ListingIntentRequest.ts +160 -0
  139. package/src/models/ListingIntentResponse.ts +201 -0
  140. package/src/models/LocationRefRequest.ts +97 -0
  141. package/src/models/PageLeadProjectionResponse.ts +167 -0
  142. package/src/models/PageRoleResponse.ts +10 -10
  143. package/src/models/PageableObject.ts +8 -8
  144. package/src/models/PriceRangeRequest.ts +73 -0
  145. package/src/models/SearchIntentRequest.ts +160 -0
  146. package/src/models/SearchIntentResponse.ts +185 -0
  147. package/src/models/SourceRequest.ts +66 -0
  148. package/src/models/UpdateNoteRequest.ts +66 -0
  149. package/src/models/index.ts +16 -0
@@ -0,0 +1,817 @@
1
+ # LeadControllerApi
2
+
3
+ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**addListingIntent**](LeadControllerApi.md#addlistingintent) | **POST** /lead/{leadId}/listing-intents | |
8
+ | [**addSearchIntent**](LeadControllerApi.md#addsearchintent) | **POST** /lead/{leadId}/search-intents | |
9
+ | [**assignToAgent**](LeadControllerApi.md#assigntoagent) | **PUT** /lead/{leadId}/assign | |
10
+ | [**changeStatus**](LeadControllerApi.md#changestatusoperation) | **PUT** /lead/{leadId}/status | |
11
+ | [**createLead**](LeadControllerApi.md#createleadoperation) | **POST** /lead | |
12
+ | [**removeIntent**](LeadControllerApi.md#removeintent) | **DELETE** /lead/{leadId} | |
13
+ | [**updateContactInfo**](LeadControllerApi.md#updatecontactinfo) | **PUT** /lead/{leadId}/contact-info | |
14
+ | [**updateListingIntent**](LeadControllerApi.md#updatelistingintent) | **PUT** /lead/{leadId}/listing-intents | |
15
+ | [**updateNote**](LeadControllerApi.md#updatenoteoperation) | **PUT** /lead/{leadId}/note | |
16
+ | [**updateSearchIntent**](LeadControllerApi.md#updatesearchintent) | **PUT** /lead/{leadId}/search-intents | |
17
+ | [**updateSource**](LeadControllerApi.md#updatesource) | **PUT** /lead/{leadId}/source | |
18
+
19
+
20
+
21
+ ## addListingIntent
22
+
23
+ > addListingIntent(leadId, listingIntentRequest)
24
+
25
+
26
+
27
+ ### Example
28
+
29
+ ```ts
30
+ import {
31
+ Configuration,
32
+ LeadControllerApi,
33
+ } from '@homespot-sdk/api';
34
+ import type { AddListingIntentRequest } from '@homespot-sdk/api';
35
+
36
+ async function example() {
37
+ console.log("🚀 Testing @homespot-sdk/api SDK...");
38
+ const config = new Configuration({
39
+ // To configure OAuth2 access token for authorization: keycloak accessCode
40
+ accessToken: "YOUR ACCESS TOKEN",
41
+ });
42
+ const api = new LeadControllerApi(config);
43
+
44
+ const body = {
45
+ // string
46
+ leadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
47
+ // ListingIntentRequest
48
+ listingIntentRequest: ...,
49
+ } satisfies AddListingIntentRequest;
50
+
51
+ try {
52
+ const data = await api.addListingIntent(body);
53
+ console.log(data);
54
+ } catch (error) {
55
+ console.error(error);
56
+ }
57
+ }
58
+
59
+ // Run the test
60
+ example().catch(console.error);
61
+ ```
62
+
63
+ ### Parameters
64
+
65
+
66
+ | Name | Type | Description | Notes |
67
+ |------------- | ------------- | ------------- | -------------|
68
+ | **leadId** | `string` | | [Defaults to `undefined`] |
69
+ | **listingIntentRequest** | [ListingIntentRequest](ListingIntentRequest.md) | | |
70
+
71
+ ### Return type
72
+
73
+ `void` (Empty response body)
74
+
75
+ ### Authorization
76
+
77
+ [keycloak accessCode](../README.md#keycloak-accessCode)
78
+
79
+ ### HTTP request headers
80
+
81
+ - **Content-Type**: `application/json`
82
+ - **Accept**: Not defined
83
+
84
+
85
+ ### HTTP response details
86
+ | Status code | Description | Response headers |
87
+ |-------------|-------------|------------------|
88
+ | **204** | No Content | - |
89
+
90
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
91
+
92
+
93
+ ## addSearchIntent
94
+
95
+ > addSearchIntent(leadId, searchIntentRequest)
96
+
97
+
98
+
99
+ ### Example
100
+
101
+ ```ts
102
+ import {
103
+ Configuration,
104
+ LeadControllerApi,
105
+ } from '@homespot-sdk/api';
106
+ import type { AddSearchIntentRequest } from '@homespot-sdk/api';
107
+
108
+ async function example() {
109
+ console.log("🚀 Testing @homespot-sdk/api SDK...");
110
+ const config = new Configuration({
111
+ // To configure OAuth2 access token for authorization: keycloak accessCode
112
+ accessToken: "YOUR ACCESS TOKEN",
113
+ });
114
+ const api = new LeadControllerApi(config);
115
+
116
+ const body = {
117
+ // string
118
+ leadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
119
+ // SearchIntentRequest
120
+ searchIntentRequest: ...,
121
+ } satisfies AddSearchIntentRequest;
122
+
123
+ try {
124
+ const data = await api.addSearchIntent(body);
125
+ console.log(data);
126
+ } catch (error) {
127
+ console.error(error);
128
+ }
129
+ }
130
+
131
+ // Run the test
132
+ example().catch(console.error);
133
+ ```
134
+
135
+ ### Parameters
136
+
137
+
138
+ | Name | Type | Description | Notes |
139
+ |------------- | ------------- | ------------- | -------------|
140
+ | **leadId** | `string` | | [Defaults to `undefined`] |
141
+ | **searchIntentRequest** | [SearchIntentRequest](SearchIntentRequest.md) | | |
142
+
143
+ ### Return type
144
+
145
+ `void` (Empty response body)
146
+
147
+ ### Authorization
148
+
149
+ [keycloak accessCode](../README.md#keycloak-accessCode)
150
+
151
+ ### HTTP request headers
152
+
153
+ - **Content-Type**: `application/json`
154
+ - **Accept**: Not defined
155
+
156
+
157
+ ### HTTP response details
158
+ | Status code | Description | Response headers |
159
+ |-------------|-------------|------------------|
160
+ | **204** | No Content | - |
161
+
162
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
163
+
164
+
165
+ ## assignToAgent
166
+
167
+ > assignToAgent(leadId, assignToMemberRequest)
168
+
169
+
170
+
171
+ ### Example
172
+
173
+ ```ts
174
+ import {
175
+ Configuration,
176
+ LeadControllerApi,
177
+ } from '@homespot-sdk/api';
178
+ import type { AssignToAgentRequest } from '@homespot-sdk/api';
179
+
180
+ async function example() {
181
+ console.log("🚀 Testing @homespot-sdk/api SDK...");
182
+ const config = new Configuration({
183
+ // To configure OAuth2 access token for authorization: keycloak accessCode
184
+ accessToken: "YOUR ACCESS TOKEN",
185
+ });
186
+ const api = new LeadControllerApi(config);
187
+
188
+ const body = {
189
+ // string
190
+ leadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
191
+ // AssignToMemberRequest
192
+ assignToMemberRequest: ...,
193
+ } satisfies AssignToAgentRequest;
194
+
195
+ try {
196
+ const data = await api.assignToAgent(body);
197
+ console.log(data);
198
+ } catch (error) {
199
+ console.error(error);
200
+ }
201
+ }
202
+
203
+ // Run the test
204
+ example().catch(console.error);
205
+ ```
206
+
207
+ ### Parameters
208
+
209
+
210
+ | Name | Type | Description | Notes |
211
+ |------------- | ------------- | ------------- | -------------|
212
+ | **leadId** | `string` | | [Defaults to `undefined`] |
213
+ | **assignToMemberRequest** | [AssignToMemberRequest](AssignToMemberRequest.md) | | |
214
+
215
+ ### Return type
216
+
217
+ `void` (Empty response body)
218
+
219
+ ### Authorization
220
+
221
+ [keycloak accessCode](../README.md#keycloak-accessCode)
222
+
223
+ ### HTTP request headers
224
+
225
+ - **Content-Type**: `application/json`
226
+ - **Accept**: Not defined
227
+
228
+
229
+ ### HTTP response details
230
+ | Status code | Description | Response headers |
231
+ |-------------|-------------|------------------|
232
+ | **204** | No Content | - |
233
+
234
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
235
+
236
+
237
+ ## changeStatus
238
+
239
+ > changeStatus(leadId, changeStatusRequest)
240
+
241
+
242
+
243
+ ### Example
244
+
245
+ ```ts
246
+ import {
247
+ Configuration,
248
+ LeadControllerApi,
249
+ } from '@homespot-sdk/api';
250
+ import type { ChangeStatusOperationRequest } from '@homespot-sdk/api';
251
+
252
+ async function example() {
253
+ console.log("🚀 Testing @homespot-sdk/api SDK...");
254
+ const config = new Configuration({
255
+ // To configure OAuth2 access token for authorization: keycloak accessCode
256
+ accessToken: "YOUR ACCESS TOKEN",
257
+ });
258
+ const api = new LeadControllerApi(config);
259
+
260
+ const body = {
261
+ // string
262
+ leadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
263
+ // ChangeStatusRequest
264
+ changeStatusRequest: ...,
265
+ } satisfies ChangeStatusOperationRequest;
266
+
267
+ try {
268
+ const data = await api.changeStatus(body);
269
+ console.log(data);
270
+ } catch (error) {
271
+ console.error(error);
272
+ }
273
+ }
274
+
275
+ // Run the test
276
+ example().catch(console.error);
277
+ ```
278
+
279
+ ### Parameters
280
+
281
+
282
+ | Name | Type | Description | Notes |
283
+ |------------- | ------------- | ------------- | -------------|
284
+ | **leadId** | `string` | | [Defaults to `undefined`] |
285
+ | **changeStatusRequest** | [ChangeStatusRequest](ChangeStatusRequest.md) | | |
286
+
287
+ ### Return type
288
+
289
+ `void` (Empty response body)
290
+
291
+ ### Authorization
292
+
293
+ [keycloak accessCode](../README.md#keycloak-accessCode)
294
+
295
+ ### HTTP request headers
296
+
297
+ - **Content-Type**: `application/json`
298
+ - **Accept**: Not defined
299
+
300
+
301
+ ### HTTP response details
302
+ | Status code | Description | Response headers |
303
+ |-------------|-------------|------------------|
304
+ | **204** | No Content | - |
305
+
306
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
307
+
308
+
309
+ ## createLead
310
+
311
+ > IdResponse createLead(createLeadRequest)
312
+
313
+
314
+
315
+ ### Example
316
+
317
+ ```ts
318
+ import {
319
+ Configuration,
320
+ LeadControllerApi,
321
+ } from '@homespot-sdk/api';
322
+ import type { CreateLeadOperationRequest } from '@homespot-sdk/api';
323
+
324
+ async function example() {
325
+ console.log("🚀 Testing @homespot-sdk/api SDK...");
326
+ const config = new Configuration({
327
+ // To configure OAuth2 access token for authorization: keycloak accessCode
328
+ accessToken: "YOUR ACCESS TOKEN",
329
+ });
330
+ const api = new LeadControllerApi(config);
331
+
332
+ const body = {
333
+ // CreateLeadRequest
334
+ createLeadRequest: ...,
335
+ } satisfies CreateLeadOperationRequest;
336
+
337
+ try {
338
+ const data = await api.createLead(body);
339
+ console.log(data);
340
+ } catch (error) {
341
+ console.error(error);
342
+ }
343
+ }
344
+
345
+ // Run the test
346
+ example().catch(console.error);
347
+ ```
348
+
349
+ ### Parameters
350
+
351
+
352
+ | Name | Type | Description | Notes |
353
+ |------------- | ------------- | ------------- | -------------|
354
+ | **createLeadRequest** | [CreateLeadRequest](CreateLeadRequest.md) | | |
355
+
356
+ ### Return type
357
+
358
+ [**IdResponse**](IdResponse.md)
359
+
360
+ ### Authorization
361
+
362
+ [keycloak accessCode](../README.md#keycloak-accessCode)
363
+
364
+ ### HTTP request headers
365
+
366
+ - **Content-Type**: `application/json`
367
+ - **Accept**: `*/*`
368
+
369
+
370
+ ### HTTP response details
371
+ | Status code | Description | Response headers |
372
+ |-------------|-------------|------------------|
373
+ | **201** | Created | - |
374
+
375
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
376
+
377
+
378
+ ## removeIntent
379
+
380
+ > removeIntent(leadId, index, type)
381
+
382
+
383
+
384
+ ### Example
385
+
386
+ ```ts
387
+ import {
388
+ Configuration,
389
+ LeadControllerApi,
390
+ } from '@homespot-sdk/api';
391
+ import type { RemoveIntentRequest } from '@homespot-sdk/api';
392
+
393
+ async function example() {
394
+ console.log("🚀 Testing @homespot-sdk/api SDK...");
395
+ const config = new Configuration({
396
+ // To configure OAuth2 access token for authorization: keycloak accessCode
397
+ accessToken: "YOUR ACCESS TOKEN",
398
+ });
399
+ const api = new LeadControllerApi(config);
400
+
401
+ const body = {
402
+ // string
403
+ leadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
404
+ // number
405
+ index: 56,
406
+ // 'SEARCH' | 'LISTING'
407
+ type: type_example,
408
+ } satisfies RemoveIntentRequest;
409
+
410
+ try {
411
+ const data = await api.removeIntent(body);
412
+ console.log(data);
413
+ } catch (error) {
414
+ console.error(error);
415
+ }
416
+ }
417
+
418
+ // Run the test
419
+ example().catch(console.error);
420
+ ```
421
+
422
+ ### Parameters
423
+
424
+
425
+ | Name | Type | Description | Notes |
426
+ |------------- | ------------- | ------------- | -------------|
427
+ | **leadId** | `string` | | [Defaults to `undefined`] |
428
+ | **index** | `number` | | [Defaults to `undefined`] |
429
+ | **type** | `SEARCH`, `LISTING` | | [Defaults to `undefined`] [Enum: SEARCH, LISTING] |
430
+
431
+ ### Return type
432
+
433
+ `void` (Empty response body)
434
+
435
+ ### Authorization
436
+
437
+ [keycloak accessCode](../README.md#keycloak-accessCode)
438
+
439
+ ### HTTP request headers
440
+
441
+ - **Content-Type**: Not defined
442
+ - **Accept**: Not defined
443
+
444
+
445
+ ### HTTP response details
446
+ | Status code | Description | Response headers |
447
+ |-------------|-------------|------------------|
448
+ | **204** | No Content | - |
449
+
450
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
451
+
452
+
453
+ ## updateContactInfo
454
+
455
+ > updateContactInfo(leadId, contactInfoRequest)
456
+
457
+
458
+
459
+ ### Example
460
+
461
+ ```ts
462
+ import {
463
+ Configuration,
464
+ LeadControllerApi,
465
+ } from '@homespot-sdk/api';
466
+ import type { UpdateContactInfoRequest } from '@homespot-sdk/api';
467
+
468
+ async function example() {
469
+ console.log("🚀 Testing @homespot-sdk/api SDK...");
470
+ const config = new Configuration({
471
+ // To configure OAuth2 access token for authorization: keycloak accessCode
472
+ accessToken: "YOUR ACCESS TOKEN",
473
+ });
474
+ const api = new LeadControllerApi(config);
475
+
476
+ const body = {
477
+ // string
478
+ leadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
479
+ // ContactInfoRequest
480
+ contactInfoRequest: ...,
481
+ } satisfies UpdateContactInfoRequest;
482
+
483
+ try {
484
+ const data = await api.updateContactInfo(body);
485
+ console.log(data);
486
+ } catch (error) {
487
+ console.error(error);
488
+ }
489
+ }
490
+
491
+ // Run the test
492
+ example().catch(console.error);
493
+ ```
494
+
495
+ ### Parameters
496
+
497
+
498
+ | Name | Type | Description | Notes |
499
+ |------------- | ------------- | ------------- | -------------|
500
+ | **leadId** | `string` | | [Defaults to `undefined`] |
501
+ | **contactInfoRequest** | [ContactInfoRequest](ContactInfoRequest.md) | | |
502
+
503
+ ### Return type
504
+
505
+ `void` (Empty response body)
506
+
507
+ ### Authorization
508
+
509
+ [keycloak accessCode](../README.md#keycloak-accessCode)
510
+
511
+ ### HTTP request headers
512
+
513
+ - **Content-Type**: `application/json`
514
+ - **Accept**: Not defined
515
+
516
+
517
+ ### HTTP response details
518
+ | Status code | Description | Response headers |
519
+ |-------------|-------------|------------------|
520
+ | **204** | No Content | - |
521
+
522
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
523
+
524
+
525
+ ## updateListingIntent
526
+
527
+ > updateListingIntent(leadId, index, listingIntentRequest)
528
+
529
+
530
+
531
+ ### Example
532
+
533
+ ```ts
534
+ import {
535
+ Configuration,
536
+ LeadControllerApi,
537
+ } from '@homespot-sdk/api';
538
+ import type { UpdateListingIntentRequest } from '@homespot-sdk/api';
539
+
540
+ async function example() {
541
+ console.log("🚀 Testing @homespot-sdk/api SDK...");
542
+ const config = new Configuration({
543
+ // To configure OAuth2 access token for authorization: keycloak accessCode
544
+ accessToken: "YOUR ACCESS TOKEN",
545
+ });
546
+ const api = new LeadControllerApi(config);
547
+
548
+ const body = {
549
+ // string
550
+ leadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
551
+ // number
552
+ index: 56,
553
+ // ListingIntentRequest
554
+ listingIntentRequest: ...,
555
+ } satisfies UpdateListingIntentRequest;
556
+
557
+ try {
558
+ const data = await api.updateListingIntent(body);
559
+ console.log(data);
560
+ } catch (error) {
561
+ console.error(error);
562
+ }
563
+ }
564
+
565
+ // Run the test
566
+ example().catch(console.error);
567
+ ```
568
+
569
+ ### Parameters
570
+
571
+
572
+ | Name | Type | Description | Notes |
573
+ |------------- | ------------- | ------------- | -------------|
574
+ | **leadId** | `string` | | [Defaults to `undefined`] |
575
+ | **index** | `number` | | [Defaults to `undefined`] |
576
+ | **listingIntentRequest** | [ListingIntentRequest](ListingIntentRequest.md) | | |
577
+
578
+ ### Return type
579
+
580
+ `void` (Empty response body)
581
+
582
+ ### Authorization
583
+
584
+ [keycloak accessCode](../README.md#keycloak-accessCode)
585
+
586
+ ### HTTP request headers
587
+
588
+ - **Content-Type**: `application/json`
589
+ - **Accept**: Not defined
590
+
591
+
592
+ ### HTTP response details
593
+ | Status code | Description | Response headers |
594
+ |-------------|-------------|------------------|
595
+ | **204** | No Content | - |
596
+
597
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
598
+
599
+
600
+ ## updateNote
601
+
602
+ > updateNote(leadId, updateNoteRequest)
603
+
604
+
605
+
606
+ ### Example
607
+
608
+ ```ts
609
+ import {
610
+ Configuration,
611
+ LeadControllerApi,
612
+ } from '@homespot-sdk/api';
613
+ import type { UpdateNoteOperationRequest } from '@homespot-sdk/api';
614
+
615
+ async function example() {
616
+ console.log("🚀 Testing @homespot-sdk/api SDK...");
617
+ const config = new Configuration({
618
+ // To configure OAuth2 access token for authorization: keycloak accessCode
619
+ accessToken: "YOUR ACCESS TOKEN",
620
+ });
621
+ const api = new LeadControllerApi(config);
622
+
623
+ const body = {
624
+ // string
625
+ leadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
626
+ // UpdateNoteRequest
627
+ updateNoteRequest: ...,
628
+ } satisfies UpdateNoteOperationRequest;
629
+
630
+ try {
631
+ const data = await api.updateNote(body);
632
+ console.log(data);
633
+ } catch (error) {
634
+ console.error(error);
635
+ }
636
+ }
637
+
638
+ // Run the test
639
+ example().catch(console.error);
640
+ ```
641
+
642
+ ### Parameters
643
+
644
+
645
+ | Name | Type | Description | Notes |
646
+ |------------- | ------------- | ------------- | -------------|
647
+ | **leadId** | `string` | | [Defaults to `undefined`] |
648
+ | **updateNoteRequest** | [UpdateNoteRequest](UpdateNoteRequest.md) | | |
649
+
650
+ ### Return type
651
+
652
+ `void` (Empty response body)
653
+
654
+ ### Authorization
655
+
656
+ [keycloak accessCode](../README.md#keycloak-accessCode)
657
+
658
+ ### HTTP request headers
659
+
660
+ - **Content-Type**: `application/json`
661
+ - **Accept**: Not defined
662
+
663
+
664
+ ### HTTP response details
665
+ | Status code | Description | Response headers |
666
+ |-------------|-------------|------------------|
667
+ | **204** | No Content | - |
668
+
669
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
670
+
671
+
672
+ ## updateSearchIntent
673
+
674
+ > updateSearchIntent(leadId, index, searchIntentRequest)
675
+
676
+
677
+
678
+ ### Example
679
+
680
+ ```ts
681
+ import {
682
+ Configuration,
683
+ LeadControllerApi,
684
+ } from '@homespot-sdk/api';
685
+ import type { UpdateSearchIntentRequest } from '@homespot-sdk/api';
686
+
687
+ async function example() {
688
+ console.log("🚀 Testing @homespot-sdk/api SDK...");
689
+ const config = new Configuration({
690
+ // To configure OAuth2 access token for authorization: keycloak accessCode
691
+ accessToken: "YOUR ACCESS TOKEN",
692
+ });
693
+ const api = new LeadControllerApi(config);
694
+
695
+ const body = {
696
+ // string
697
+ leadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
698
+ // number
699
+ index: 56,
700
+ // SearchIntentRequest
701
+ searchIntentRequest: ...,
702
+ } satisfies UpdateSearchIntentRequest;
703
+
704
+ try {
705
+ const data = await api.updateSearchIntent(body);
706
+ console.log(data);
707
+ } catch (error) {
708
+ console.error(error);
709
+ }
710
+ }
711
+
712
+ // Run the test
713
+ example().catch(console.error);
714
+ ```
715
+
716
+ ### Parameters
717
+
718
+
719
+ | Name | Type | Description | Notes |
720
+ |------------- | ------------- | ------------- | -------------|
721
+ | **leadId** | `string` | | [Defaults to `undefined`] |
722
+ | **index** | `number` | | [Defaults to `undefined`] |
723
+ | **searchIntentRequest** | [SearchIntentRequest](SearchIntentRequest.md) | | |
724
+
725
+ ### Return type
726
+
727
+ `void` (Empty response body)
728
+
729
+ ### Authorization
730
+
731
+ [keycloak accessCode](../README.md#keycloak-accessCode)
732
+
733
+ ### HTTP request headers
734
+
735
+ - **Content-Type**: `application/json`
736
+ - **Accept**: Not defined
737
+
738
+
739
+ ### HTTP response details
740
+ | Status code | Description | Response headers |
741
+ |-------------|-------------|------------------|
742
+ | **204** | No Content | - |
743
+
744
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
745
+
746
+
747
+ ## updateSource
748
+
749
+ > updateSource(leadId, sourceRequest)
750
+
751
+
752
+
753
+ ### Example
754
+
755
+ ```ts
756
+ import {
757
+ Configuration,
758
+ LeadControllerApi,
759
+ } from '@homespot-sdk/api';
760
+ import type { UpdateSourceRequest } from '@homespot-sdk/api';
761
+
762
+ async function example() {
763
+ console.log("🚀 Testing @homespot-sdk/api SDK...");
764
+ const config = new Configuration({
765
+ // To configure OAuth2 access token for authorization: keycloak accessCode
766
+ accessToken: "YOUR ACCESS TOKEN",
767
+ });
768
+ const api = new LeadControllerApi(config);
769
+
770
+ const body = {
771
+ // string
772
+ leadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
773
+ // SourceRequest
774
+ sourceRequest: ...,
775
+ } satisfies UpdateSourceRequest;
776
+
777
+ try {
778
+ const data = await api.updateSource(body);
779
+ console.log(data);
780
+ } catch (error) {
781
+ console.error(error);
782
+ }
783
+ }
784
+
785
+ // Run the test
786
+ example().catch(console.error);
787
+ ```
788
+
789
+ ### Parameters
790
+
791
+
792
+ | Name | Type | Description | Notes |
793
+ |------------- | ------------- | ------------- | -------------|
794
+ | **leadId** | `string` | | [Defaults to `undefined`] |
795
+ | **sourceRequest** | [SourceRequest](SourceRequest.md) | | |
796
+
797
+ ### Return type
798
+
799
+ `void` (Empty response body)
800
+
801
+ ### Authorization
802
+
803
+ [keycloak accessCode](../README.md#keycloak-accessCode)
804
+
805
+ ### HTTP request headers
806
+
807
+ - **Content-Type**: `application/json`
808
+ - **Accept**: Not defined
809
+
810
+
811
+ ### HTTP response details
812
+ | Status code | Description | Response headers |
813
+ |-------------|-------------|------------------|
814
+ | **204** | No Content | - |
815
+
816
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
817
+