@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
@@ -35,16 +35,16 @@ function PageLeadProjectionResponseFromJSONTyped(json, ignoreDiscriminator) {
35
35
  return json;
36
36
  }
37
37
  return {
38
- 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
39
38
  'totalElements': json['totalElements'] == null ? undefined : json['totalElements'],
39
+ 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
40
40
  'size': json['size'] == null ? undefined : json['size'],
41
41
  'content': json['content'] == null ? undefined : (json['content'].map(LeadProjectionResponse_1.LeadProjectionResponseFromJSON)),
42
42
  'number': json['number'] == null ? undefined : json['number'],
43
43
  'first': json['first'] == null ? undefined : json['first'],
44
44
  'last': json['last'] == null ? undefined : json['last'],
45
+ 'sort': json['sort'] == null ? undefined : (0, SortObject_1.SortObjectFromJSON)(json['sort']),
45
46
  'numberOfElements': json['numberOfElements'] == null ? undefined : json['numberOfElements'],
46
47
  'pageable': json['pageable'] == null ? undefined : (0, PageableObject_1.PageableObjectFromJSON)(json['pageable']),
47
- 'sort': json['sort'] == null ? undefined : (0, SortObject_1.SortObjectFromJSON)(json['sort']),
48
48
  'empty': json['empty'] == null ? undefined : json['empty'],
49
49
  };
50
50
  }
@@ -56,16 +56,16 @@ function PageLeadProjectionResponseToJSONTyped(value, ignoreDiscriminator = fals
56
56
  return value;
57
57
  }
58
58
  return {
59
- 'totalPages': value['totalPages'],
60
59
  'totalElements': value['totalElements'],
60
+ 'totalPages': value['totalPages'],
61
61
  'size': value['size'],
62
62
  'content': value['content'] == null ? undefined : (value['content'].map(LeadProjectionResponse_1.LeadProjectionResponseToJSON)),
63
63
  'number': value['number'],
64
64
  'first': value['first'],
65
65
  'last': value['last'],
66
+ 'sort': (0, SortObject_1.SortObjectToJSON)(value['sort']),
66
67
  'numberOfElements': value['numberOfElements'],
67
68
  'pageable': (0, PageableObject_1.PageableObjectToJSON)(value['pageable']),
68
- 'sort': (0, SortObject_1.SortObjectToJSON)(value['sort']),
69
69
  'empty': value['empty'],
70
70
  };
71
71
  }
@@ -23,13 +23,13 @@ export interface PageRoleResponse {
23
23
  * @type {number}
24
24
  * @memberof PageRoleResponse
25
25
  */
26
- totalPages?: number;
26
+ totalElements?: number;
27
27
  /**
28
28
  *
29
29
  * @type {number}
30
30
  * @memberof PageRoleResponse
31
31
  */
32
- totalElements?: number;
32
+ totalPages?: number;
33
33
  /**
34
34
  *
35
35
  * @type {number}
@@ -62,22 +62,22 @@ export interface PageRoleResponse {
62
62
  last?: boolean;
63
63
  /**
64
64
  *
65
- * @type {number}
65
+ * @type {SortObject}
66
66
  * @memberof PageRoleResponse
67
67
  */
68
- numberOfElements?: number;
68
+ sort?: SortObject;
69
69
  /**
70
70
  *
71
- * @type {PageableObject}
71
+ * @type {number}
72
72
  * @memberof PageRoleResponse
73
73
  */
74
- pageable?: PageableObject;
74
+ numberOfElements?: number;
75
75
  /**
76
76
  *
77
- * @type {SortObject}
77
+ * @type {PageableObject}
78
78
  * @memberof PageRoleResponse
79
79
  */
80
- sort?: SortObject;
80
+ pageable?: PageableObject;
81
81
  /**
82
82
  *
83
83
  * @type {boolean}
@@ -35,16 +35,16 @@ function PageRoleResponseFromJSONTyped(json, ignoreDiscriminator) {
35
35
  return json;
36
36
  }
37
37
  return {
38
- 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
39
38
  'totalElements': json['totalElements'] == null ? undefined : json['totalElements'],
39
+ 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
40
40
  'size': json['size'] == null ? undefined : json['size'],
41
41
  'content': json['content'] == null ? undefined : (json['content'].map(RoleResponse_1.RoleResponseFromJSON)),
42
42
  'number': json['number'] == null ? undefined : json['number'],
43
43
  'first': json['first'] == null ? undefined : json['first'],
44
44
  'last': json['last'] == null ? undefined : json['last'],
45
+ 'sort': json['sort'] == null ? undefined : (0, SortObject_1.SortObjectFromJSON)(json['sort']),
45
46
  'numberOfElements': json['numberOfElements'] == null ? undefined : json['numberOfElements'],
46
47
  'pageable': json['pageable'] == null ? undefined : (0, PageableObject_1.PageableObjectFromJSON)(json['pageable']),
47
- 'sort': json['sort'] == null ? undefined : (0, SortObject_1.SortObjectFromJSON)(json['sort']),
48
48
  'empty': json['empty'] == null ? undefined : json['empty'],
49
49
  };
50
50
  }
@@ -56,16 +56,16 @@ function PageRoleResponseToJSONTyped(value, ignoreDiscriminator = false) {
56
56
  return value;
57
57
  }
58
58
  return {
59
- 'totalPages': value['totalPages'],
60
59
  'totalElements': value['totalElements'],
60
+ 'totalPages': value['totalPages'],
61
61
  'size': value['size'],
62
62
  'content': value['content'] == null ? undefined : (value['content'].map(RoleResponse_1.RoleResponseToJSON)),
63
63
  'number': value['number'],
64
64
  'first': value['first'],
65
65
  'last': value['last'],
66
+ 'sort': (0, SortObject_1.SortObjectToJSON)(value['sort']),
66
67
  'numberOfElements': value['numberOfElements'],
67
68
  'pageable': (0, PageableObject_1.PageableObjectToJSON)(value['pageable']),
68
- 'sort': (0, SortObject_1.SortObjectToJSON)(value['sort']),
69
69
  'empty': value['empty'],
70
70
  };
71
71
  }
@@ -24,10 +24,10 @@ export interface PageableObject {
24
24
  offset?: number;
25
25
  /**
26
26
  *
27
- * @type {boolean}
27
+ * @type {SortObject}
28
28
  * @memberof PageableObject
29
29
  */
30
- unpaged?: boolean;
30
+ sort?: SortObject;
31
31
  /**
32
32
  *
33
33
  * @type {boolean}
@@ -48,10 +48,10 @@ export interface PageableObject {
48
48
  pageSize?: number;
49
49
  /**
50
50
  *
51
- * @type {SortObject}
51
+ * @type {boolean}
52
52
  * @memberof PageableObject
53
53
  */
54
- sort?: SortObject;
54
+ unpaged?: boolean;
55
55
  }
56
56
  /**
57
57
  * Check if a given object implements the PageableObject interface.
@@ -34,11 +34,11 @@ function PageableObjectFromJSONTyped(json, ignoreDiscriminator) {
34
34
  }
35
35
  return {
36
36
  'offset': json['offset'] == null ? undefined : json['offset'],
37
- 'unpaged': json['unpaged'] == null ? undefined : json['unpaged'],
37
+ 'sort': json['sort'] == null ? undefined : (0, SortObject_1.SortObjectFromJSON)(json['sort']),
38
38
  'paged': json['paged'] == null ? undefined : json['paged'],
39
39
  'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
40
40
  'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
41
- 'sort': json['sort'] == null ? undefined : (0, SortObject_1.SortObjectFromJSON)(json['sort']),
41
+ 'unpaged': json['unpaged'] == null ? undefined : json['unpaged'],
42
42
  };
43
43
  }
44
44
  function PageableObjectToJSON(json) {
@@ -50,10 +50,10 @@ function PageableObjectToJSONTyped(value, ignoreDiscriminator = false) {
50
50
  }
51
51
  return {
52
52
  'offset': value['offset'],
53
- 'unpaged': value['unpaged'],
53
+ 'sort': (0, SortObject_1.SortObjectToJSON)(value['sort']),
54
54
  'paged': value['paged'],
55
55
  'pageNumber': value['pageNumber'],
56
56
  'pageSize': value['pageSize'],
57
- 'sort': (0, SortObject_1.SortObjectToJSON)(value['sort']),
57
+ 'unpaged': value['unpaged'],
58
58
  };
59
59
  }
@@ -1,4 +1,3 @@
1
- export * from './AddressRefRequest';
2
1
  export * from './AddressRequest';
3
2
  export * from './AddressViewResponse';
4
3
  export * from './AgencyProfileResponse';
@@ -8,18 +7,17 @@ export * from './AssignToMemberRequest';
8
7
  export * from './BatchAssignRoleRequest';
9
8
  export * from './ChangeStatusRequest';
10
9
  export * from './ContactInfoRequest';
11
- export * from './CoordinatesRequest';
12
10
  export * from './CreateAgencyRequest';
13
11
  export * from './CreateLeadRequest';
14
12
  export * from './GroupedPermissionsResponse';
15
13
  export * from './IdResponse';
14
+ export * from './IntentResponse';
16
15
  export * from './InvitationDetailsRequest';
17
16
  export * from './InvitationDetailsResponse';
18
17
  export * from './InvitationViewResponse';
19
18
  export * from './InviteMemberRequest';
19
+ export * from './LeadIntentRequest';
20
20
  export * from './LeadProjectionResponse';
21
- export * from './ListingIntentRequest';
22
- export * from './ListingIntentResponse';
23
21
  export * from './LocationRefRequest';
24
22
  export * from './MemberViewResponse';
25
23
  export * from './OrganizationSummaryViewResponse';
@@ -37,8 +35,6 @@ export * from './PresignedUrlsResponse';
37
35
  export * from './PriceRangeRequest';
38
36
  export * from './RoleResponse';
39
37
  export * from './RolesRequest';
40
- export * from './SearchIntentRequest';
41
- export * from './SearchIntentResponse';
42
38
  export * from './SocialMediaRequest';
43
39
  export * from './SocialMediasRequest';
44
40
  export * from './SortObject';
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
- __exportStar(require("./AddressRefRequest"), exports);
20
19
  __exportStar(require("./AddressRequest"), exports);
21
20
  __exportStar(require("./AddressViewResponse"), exports);
22
21
  __exportStar(require("./AgencyProfileResponse"), exports);
@@ -26,18 +25,17 @@ __exportStar(require("./AssignToMemberRequest"), exports);
26
25
  __exportStar(require("./BatchAssignRoleRequest"), exports);
27
26
  __exportStar(require("./ChangeStatusRequest"), exports);
28
27
  __exportStar(require("./ContactInfoRequest"), exports);
29
- __exportStar(require("./CoordinatesRequest"), exports);
30
28
  __exportStar(require("./CreateAgencyRequest"), exports);
31
29
  __exportStar(require("./CreateLeadRequest"), exports);
32
30
  __exportStar(require("./GroupedPermissionsResponse"), exports);
33
31
  __exportStar(require("./IdResponse"), exports);
32
+ __exportStar(require("./IntentResponse"), exports);
34
33
  __exportStar(require("./InvitationDetailsRequest"), exports);
35
34
  __exportStar(require("./InvitationDetailsResponse"), exports);
36
35
  __exportStar(require("./InvitationViewResponse"), exports);
37
36
  __exportStar(require("./InviteMemberRequest"), exports);
37
+ __exportStar(require("./LeadIntentRequest"), exports);
38
38
  __exportStar(require("./LeadProjectionResponse"), exports);
39
- __exportStar(require("./ListingIntentRequest"), exports);
40
- __exportStar(require("./ListingIntentResponse"), exports);
41
39
  __exportStar(require("./LocationRefRequest"), exports);
42
40
  __exportStar(require("./MemberViewResponse"), exports);
43
41
  __exportStar(require("./OrganizationSummaryViewResponse"), exports);
@@ -55,8 +53,6 @@ __exportStar(require("./PresignedUrlsResponse"), exports);
55
53
  __exportStar(require("./PriceRangeRequest"), exports);
56
54
  __exportStar(require("./RoleResponse"), exports);
57
55
  __exportStar(require("./RolesRequest"), exports);
58
- __exportStar(require("./SearchIntentRequest"), exports);
59
- __exportStar(require("./SearchIntentResponse"), exports);
60
56
  __exportStar(require("./SocialMediaRequest"), exports);
61
57
  __exportStar(require("./SocialMediasRequest"), exports);
62
58
  __exportStar(require("./SortObject"), exports);
@@ -1,17 +1,17 @@
1
1
 
2
- # SearchIntentResponse
2
+ # IntentResponse
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
+ `clientType` | string
10
+ `listingType` | string
9
11
  `propertyType` | string
10
- `dealType` | string
11
- `budgetMin` | number
12
- `budgetMax` | number
12
+ `priceMin` | number
13
+ `priceMax` | number
13
14
  `regionId` | number
14
- `cityId` | number
15
15
  `districtId` | number
16
16
  `subDistrictId` | number
17
17
  `streetId` | number
@@ -21,22 +21,22 @@ Name | Type
21
21
  ## Example
22
22
 
23
23
  ```typescript
24
- import type { SearchIntentResponse } from '@homespot-sdk/api'
24
+ import type { IntentResponse } from '@homespot-sdk/api'
25
25
 
26
26
  // TODO: Update the object below with actual values
27
27
  const example = {
28
+ "clientType": null,
29
+ "listingType": null,
28
30
  "propertyType": null,
29
- "dealType": null,
30
- "budgetMin": null,
31
- "budgetMax": null,
31
+ "priceMin": null,
32
+ "priceMax": null,
32
33
  "regionId": null,
33
- "cityId": null,
34
34
  "districtId": null,
35
35
  "subDistrictId": null,
36
36
  "streetId": null,
37
37
  "area": null,
38
38
  "numberOfRooms": null,
39
- } satisfies SearchIntentResponse
39
+ } satisfies IntentResponse
40
40
 
41
41
  console.log(example)
42
42
 
@@ -45,7 +45,7 @@ const exampleJSON: string = JSON.stringify(example)
45
45
  console.log(exampleJSON)
46
46
 
47
47
  // Parse the JSON string back to an object
48
- const exampleParsed = JSON.parse(exampleJSON) as SearchIntentResponse
48
+ const exampleParsed = JSON.parse(exampleJSON) as IntentResponse
49
49
  console.log(exampleParsed)
50
50
  ```
51
51
 
@@ -4,23 +4,21 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
- | [**addListingIntent**](LeadControllerApi.md#addlistingintent) | **POST** /lead/{leadId}/listing-intents | |
8
- | [**addSearchIntent**](LeadControllerApi.md#addsearchintent) | **POST** /lead/{leadId}/search-intents | |
7
+ | [**addIntent**](LeadControllerApi.md#addintent) | **POST** /lead/{leadId}/intent | |
9
8
  | [**assignToAgent**](LeadControllerApi.md#assigntoagent) | **PUT** /lead/{leadId}/assign | |
10
9
  | [**changeStatus**](LeadControllerApi.md#changestatusoperation) | **PUT** /lead/{leadId}/status | |
11
10
  | [**createLead**](LeadControllerApi.md#createleadoperation) | **POST** /lead | |
12
11
  | [**removeIntent**](LeadControllerApi.md#removeintent) | **DELETE** /lead/{leadId} | |
13
12
  | [**updateContactInfo**](LeadControllerApi.md#updatecontactinfo) | **PUT** /lead/{leadId}/contact-info | |
14
- | [**updateListingIntent**](LeadControllerApi.md#updatelistingintent) | **PUT** /lead/{leadId}/listing-intents | |
13
+ | [**updateIntent**](LeadControllerApi.md#updateintent) | **PUT** /lead/{leadId}/intent | |
15
14
  | [**updateNote**](LeadControllerApi.md#updatenoteoperation) | **PUT** /lead/{leadId}/note | |
16
- | [**updateSearchIntent**](LeadControllerApi.md#updatesearchintent) | **PUT** /lead/{leadId}/search-intents | |
17
15
  | [**updateSource**](LeadControllerApi.md#updatesource) | **PUT** /lead/{leadId}/source | |
18
16
 
19
17
 
20
18
 
21
- ## addListingIntent
19
+ ## addIntent
22
20
 
23
- > addListingIntent(leadId, listingIntentRequest)
21
+ > addIntent(leadId, leadIntentRequest)
24
22
 
25
23
 
26
24
 
@@ -31,7 +29,7 @@ import {
31
29
  Configuration,
32
30
  LeadControllerApi,
33
31
  } from '@homespot-sdk/api';
34
- import type { AddListingIntentRequest } from '@homespot-sdk/api';
32
+ import type { AddIntentRequest } from '@homespot-sdk/api';
35
33
 
36
34
  async function example() {
37
35
  console.log("🚀 Testing @homespot-sdk/api SDK...");
@@ -44,12 +42,12 @@ async function example() {
44
42
  const body = {
45
43
  // string
46
44
  leadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
47
- // ListingIntentRequest
48
- listingIntentRequest: ...,
49
- } satisfies AddListingIntentRequest;
45
+ // LeadIntentRequest
46
+ leadIntentRequest: ...,
47
+ } satisfies AddIntentRequest;
50
48
 
51
49
  try {
52
- const data = await api.addListingIntent(body);
50
+ const data = await api.addIntent(body);
53
51
  console.log(data);
54
52
  } catch (error) {
55
53
  console.error(error);
@@ -66,79 +64,7 @@ example().catch(console.error);
66
64
  | Name | Type | Description | Notes |
67
65
  |------------- | ------------- | ------------- | -------------|
68
66
  | **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) | | |
67
+ | **leadIntentRequest** | [LeadIntentRequest](LeadIntentRequest.md) | | |
142
68
 
143
69
  ### Return type
144
70
 
@@ -377,7 +303,7 @@ example().catch(console.error);
377
303
 
378
304
  ## removeIntent
379
305
 
380
- > removeIntent(leadId, index, type)
306
+ > removeIntent(leadId, index)
381
307
 
382
308
 
383
309
 
@@ -403,8 +329,6 @@ async function example() {
403
329
  leadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
404
330
  // number
405
331
  index: 56,
406
- // 'SEARCH' | 'LISTING'
407
- type: type_example,
408
332
  } satisfies RemoveIntentRequest;
409
333
 
410
334
  try {
@@ -426,7 +350,6 @@ example().catch(console.error);
426
350
  |------------- | ------------- | ------------- | -------------|
427
351
  | **leadId** | `string` | | [Defaults to `undefined`] |
428
352
  | **index** | `number` | | [Defaults to `undefined`] |
429
- | **type** | `SEARCH`, `LISTING` | | [Defaults to `undefined`] [Enum: SEARCH, LISTING] |
430
353
 
431
354
  ### Return type
432
355
 
@@ -522,9 +445,9 @@ example().catch(console.error);
522
445
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
523
446
 
524
447
 
525
- ## updateListingIntent
448
+ ## updateIntent
526
449
 
527
- > updateListingIntent(leadId, index, listingIntentRequest)
450
+ > updateIntent(leadId, index, leadIntentRequest)
528
451
 
529
452
 
530
453
 
@@ -535,7 +458,7 @@ import {
535
458
  Configuration,
536
459
  LeadControllerApi,
537
460
  } from '@homespot-sdk/api';
538
- import type { UpdateListingIntentRequest } from '@homespot-sdk/api';
461
+ import type { UpdateIntentRequest } from '@homespot-sdk/api';
539
462
 
540
463
  async function example() {
541
464
  console.log("🚀 Testing @homespot-sdk/api SDK...");
@@ -550,12 +473,12 @@ async function example() {
550
473
  leadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
551
474
  // number
552
475
  index: 56,
553
- // ListingIntentRequest
554
- listingIntentRequest: ...,
555
- } satisfies UpdateListingIntentRequest;
476
+ // LeadIntentRequest
477
+ leadIntentRequest: ...,
478
+ } satisfies UpdateIntentRequest;
556
479
 
557
480
  try {
558
- const data = await api.updateListingIntent(body);
481
+ const data = await api.updateIntent(body);
559
482
  console.log(data);
560
483
  } catch (error) {
561
484
  console.error(error);
@@ -573,7 +496,7 @@ example().catch(console.error);
573
496
  |------------- | ------------- | ------------- | -------------|
574
497
  | **leadId** | `string` | | [Defaults to `undefined`] |
575
498
  | **index** | `number` | | [Defaults to `undefined`] |
576
- | **listingIntentRequest** | [ListingIntentRequest](ListingIntentRequest.md) | | |
499
+ | **leadIntentRequest** | [LeadIntentRequest](LeadIntentRequest.md) | | |
577
500
 
578
501
  ### Return type
579
502
 
@@ -669,81 +592,6 @@ example().catch(console.error);
669
592
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
670
593
 
671
594
 
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
595
  ## updateSource
748
596
 
749
597
  > updateSource(leadId, sourceRequest)
@@ -1,14 +1,15 @@
1
1
 
2
- # SearchIntentRequest
2
+ # LeadIntentRequest
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
+ `clientType` | string
10
+ `listingType` | string
9
11
  `propertyType` | string
10
- `dealType` | string
11
- `budget` | [PriceRangeRequest](PriceRangeRequest.md)
12
+ `price` | [PriceRangeRequest](PriceRangeRequest.md)
12
13
  `targetLocation` | [LocationRefRequest](LocationRefRequest.md)
13
14
  `area` | number
14
15
  `numberOfRooms` | number
@@ -16,17 +17,18 @@ Name | Type
16
17
  ## Example
17
18
 
18
19
  ```typescript
19
- import type { SearchIntentRequest } from '@homespot-sdk/api'
20
+ import type { LeadIntentRequest } from '@homespot-sdk/api'
20
21
 
21
22
  // TODO: Update the object below with actual values
22
23
  const example = {
24
+ "clientType": null,
25
+ "listingType": null,
23
26
  "propertyType": null,
24
- "dealType": null,
25
- "budget": null,
27
+ "price": null,
26
28
  "targetLocation": null,
27
29
  "area": null,
28
30
  "numberOfRooms": null,
29
- } satisfies SearchIntentRequest
31
+ } satisfies LeadIntentRequest
30
32
 
31
33
  console.log(example)
32
34
 
@@ -35,7 +37,7 @@ const exampleJSON: string = JSON.stringify(example)
35
37
  console.log(exampleJSON)
36
38
 
37
39
  // Parse the JSON string back to an object
38
- const exampleParsed = JSON.parse(exampleJSON) as SearchIntentRequest
40
+ const exampleParsed = JSON.parse(exampleJSON) as LeadIntentRequest
39
41
  console.log(exampleParsed)
40
42
  ```
41
43