@homespot-sdk/api 0.0.640 → 0.0.641

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +6 -6
  16. package/dist/esm/models/PageLeadProjectionResponse.js +2 -2
  17. package/dist/esm/models/PageRoleResponse.d.ts +6 -6
  18. package/dist/esm/models/PageRoleResponse.js +2 -2
  19. package/dist/esm/models/PageableObject.d.ts +6 -6
  20. package/dist/esm/models/PageableObject.js +2 -2
  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 +6 -6
  32. package/dist/models/PageLeadProjectionResponse.js +2 -2
  33. package/dist/models/PageRoleResponse.d.ts +6 -6
  34. package/dist/models/PageRoleResponse.js +2 -2
  35. package/dist/models/PageableObject.d.ts +6 -6
  36. package/dist/models/PageableObject.js +2 -2
  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 +2 -2
  45. package/docs/PageRoleResponse.md +2 -2
  46. package/docs/PageableObject.md +2 -2
  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 +8 -8
  54. package/src/models/PageRoleResponse.ts +8 -8
  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
@@ -2,7 +2,6 @@
2
2
  .npmignore
3
3
  .openapi-generator-ignore
4
4
  README.md
5
- docs/AddressRefRequest.md
6
5
  docs/AddressRequest.md
7
6
  docs/AddressViewResponse.md
8
7
  docs/AgencyControllerApi.md
@@ -14,11 +13,11 @@ docs/AssignToMemberRequest.md
14
13
  docs/BatchAssignRoleRequest.md
15
14
  docs/ChangeStatusRequest.md
16
15
  docs/ContactInfoRequest.md
17
- docs/CoordinatesRequest.md
18
16
  docs/CreateAgencyRequest.md
19
17
  docs/CreateLeadRequest.md
20
18
  docs/GroupedPermissionsResponse.md
21
19
  docs/IdResponse.md
20
+ docs/IntentResponse.md
22
21
  docs/InvitationControllerApi.md
23
22
  docs/InvitationDetailsRequest.md
24
23
  docs/InvitationDetailsResponse.md
@@ -26,10 +25,9 @@ docs/InvitationQueryControllerApi.md
26
25
  docs/InvitationViewResponse.md
27
26
  docs/InviteMemberRequest.md
28
27
  docs/LeadControllerApi.md
28
+ docs/LeadIntentRequest.md
29
29
  docs/LeadProjectionResponse.md
30
30
  docs/LeadQueryControllerApi.md
31
- docs/ListingIntentRequest.md
32
- docs/ListingIntentResponse.md
33
31
  docs/LocationRefRequest.md
34
32
  docs/MemberControllerApi.md
35
33
  docs/MemberQueryControllerApi.md
@@ -54,8 +52,6 @@ docs/RoleControllerApi.md
54
52
  docs/RoleQueryControllerApi.md
55
53
  docs/RoleResponse.md
56
54
  docs/RolesRequest.md
57
- docs/SearchIntentRequest.md
58
- docs/SearchIntentResponse.md
59
55
  docs/SocialMediaRequest.md
60
56
  docs/SocialMediasRequest.md
61
57
  docs/SortObject.md
@@ -82,7 +78,6 @@ src/apis/RoleQueryControllerApi.ts
82
78
  src/apis/UserQueryControllerApi.ts
83
79
  src/apis/index.ts
84
80
  src/index.ts
85
- src/models/AddressRefRequest.ts
86
81
  src/models/AddressRequest.ts
87
82
  src/models/AddressViewResponse.ts
88
83
  src/models/AgencyProfileResponse.ts
@@ -92,18 +87,17 @@ src/models/AssignToMemberRequest.ts
92
87
  src/models/BatchAssignRoleRequest.ts
93
88
  src/models/ChangeStatusRequest.ts
94
89
  src/models/ContactInfoRequest.ts
95
- src/models/CoordinatesRequest.ts
96
90
  src/models/CreateAgencyRequest.ts
97
91
  src/models/CreateLeadRequest.ts
98
92
  src/models/GroupedPermissionsResponse.ts
99
93
  src/models/IdResponse.ts
94
+ src/models/IntentResponse.ts
100
95
  src/models/InvitationDetailsRequest.ts
101
96
  src/models/InvitationDetailsResponse.ts
102
97
  src/models/InvitationViewResponse.ts
103
98
  src/models/InviteMemberRequest.ts
99
+ src/models/LeadIntentRequest.ts
104
100
  src/models/LeadProjectionResponse.ts
105
- src/models/ListingIntentRequest.ts
106
- src/models/ListingIntentResponse.ts
107
101
  src/models/LocationRefRequest.ts
108
102
  src/models/MemberViewResponse.ts
109
103
  src/models/OrganizationSummaryViewResponse.ts
@@ -121,8 +115,6 @@ src/models/PresignedUrlsResponse.ts
121
115
  src/models/PriceRangeRequest.ts
122
116
  src/models/RoleResponse.ts
123
117
  src/models/RolesRequest.ts
124
- src/models/SearchIntentRequest.ts
125
- src/models/SearchIntentResponse.ts
126
118
  src/models/SocialMediaRequest.ts
127
119
  src/models/SocialMediasRequest.ts
128
120
  src/models/SortObject.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @homespot-sdk/api@0.0.640
1
+ # @homespot-sdk/api@0.0.641
2
2
 
3
3
  A TypeScript SDK client for the gateway.dev.homespot.ge API.
4
4
 
@@ -65,16 +65,14 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
65
65
  *InvitationControllerApi* | [**acceptInvitation**](docs/InvitationControllerApi.md#acceptinvitation) | **POST** /invitation/{invitationId} |
66
66
  *InvitationControllerApi* | [**sendInvitation**](docs/InvitationControllerApi.md#sendinvitation) | **POST** /invitation |
67
67
  *InvitationQueryControllerApi* | [**getSentInvitations**](docs/InvitationQueryControllerApi.md#getsentinvitations) | **GET** /invitation |
68
- *LeadControllerApi* | [**addListingIntent**](docs/LeadControllerApi.md#addlistingintent) | **POST** /lead/{leadId}/listing-intents |
69
- *LeadControllerApi* | [**addSearchIntent**](docs/LeadControllerApi.md#addsearchintent) | **POST** /lead/{leadId}/search-intents |
68
+ *LeadControllerApi* | [**addIntent**](docs/LeadControllerApi.md#addintent) | **POST** /lead/{leadId}/intent |
70
69
  *LeadControllerApi* | [**assignToAgent**](docs/LeadControllerApi.md#assigntoagent) | **PUT** /lead/{leadId}/assign |
71
70
  *LeadControllerApi* | [**changeStatus**](docs/LeadControllerApi.md#changestatusoperation) | **PUT** /lead/{leadId}/status |
72
71
  *LeadControllerApi* | [**createLead**](docs/LeadControllerApi.md#createleadoperation) | **POST** /lead |
73
72
  *LeadControllerApi* | [**removeIntent**](docs/LeadControllerApi.md#removeintent) | **DELETE** /lead/{leadId} |
74
73
  *LeadControllerApi* | [**updateContactInfo**](docs/LeadControllerApi.md#updatecontactinfo) | **PUT** /lead/{leadId}/contact-info |
75
- *LeadControllerApi* | [**updateListingIntent**](docs/LeadControllerApi.md#updatelistingintent) | **PUT** /lead/{leadId}/listing-intents |
74
+ *LeadControllerApi* | [**updateIntent**](docs/LeadControllerApi.md#updateintent) | **PUT** /lead/{leadId}/intent |
76
75
  *LeadControllerApi* | [**updateNote**](docs/LeadControllerApi.md#updatenoteoperation) | **PUT** /lead/{leadId}/note |
77
- *LeadControllerApi* | [**updateSearchIntent**](docs/LeadControllerApi.md#updatesearchintent) | **PUT** /lead/{leadId}/search-intents |
78
76
  *LeadControllerApi* | [**updateSource**](docs/LeadControllerApi.md#updatesource) | **PUT** /lead/{leadId}/source |
79
77
  *LeadQueryControllerApi* | [**getLeadById**](docs/LeadQueryControllerApi.md#getleadbyid) | **GET** /lead/{leadId} |
80
78
  *LeadQueryControllerApi* | [**searchLeads**](docs/LeadQueryControllerApi.md#searchleads) | **GET** /lead |
@@ -94,7 +92,6 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
94
92
 
95
93
  ### Models
96
94
 
97
- - [AddressRefRequest](docs/AddressRefRequest.md)
98
95
  - [AddressRequest](docs/AddressRequest.md)
99
96
  - [AddressViewResponse](docs/AddressViewResponse.md)
100
97
  - [AgencyProfileResponse](docs/AgencyProfileResponse.md)
@@ -104,18 +101,17 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
104
101
  - [BatchAssignRoleRequest](docs/BatchAssignRoleRequest.md)
105
102
  - [ChangeStatusRequest](docs/ChangeStatusRequest.md)
106
103
  - [ContactInfoRequest](docs/ContactInfoRequest.md)
107
- - [CoordinatesRequest](docs/CoordinatesRequest.md)
108
104
  - [CreateAgencyRequest](docs/CreateAgencyRequest.md)
109
105
  - [CreateLeadRequest](docs/CreateLeadRequest.md)
110
106
  - [GroupedPermissionsResponse](docs/GroupedPermissionsResponse.md)
111
107
  - [IdResponse](docs/IdResponse.md)
108
+ - [IntentResponse](docs/IntentResponse.md)
112
109
  - [InvitationDetailsRequest](docs/InvitationDetailsRequest.md)
113
110
  - [InvitationDetailsResponse](docs/InvitationDetailsResponse.md)
114
111
  - [InvitationViewResponse](docs/InvitationViewResponse.md)
115
112
  - [InviteMemberRequest](docs/InviteMemberRequest.md)
113
+ - [LeadIntentRequest](docs/LeadIntentRequest.md)
116
114
  - [LeadProjectionResponse](docs/LeadProjectionResponse.md)
117
- - [ListingIntentRequest](docs/ListingIntentRequest.md)
118
- - [ListingIntentResponse](docs/ListingIntentResponse.md)
119
115
  - [LocationRefRequest](docs/LocationRefRequest.md)
120
116
  - [MemberViewResponse](docs/MemberViewResponse.md)
121
117
  - [OrganizationSummaryViewResponse](docs/OrganizationSummaryViewResponse.md)
@@ -133,8 +129,6 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
133
129
  - [PriceRangeRequest](docs/PriceRangeRequest.md)
134
130
  - [RoleResponse](docs/RoleResponse.md)
135
131
  - [RolesRequest](docs/RolesRequest.md)
136
- - [SearchIntentRequest](docs/SearchIntentRequest.md)
137
- - [SearchIntentResponse](docs/SearchIntentResponse.md)
138
132
  - [SocialMediaRequest](docs/SocialMediaRequest.md)
139
133
  - [SocialMediasRequest](docs/SocialMediasRequest.md)
140
134
  - [SortObject](docs/SortObject.md)
@@ -167,7 +161,7 @@ and is automatically generated by the
167
161
  [OpenAPI Generator](https://openapi-generator.tech) project:
168
162
 
169
163
  - API version: `v1`
170
- - Package version: `0.0.640`
164
+ - Package version: `0.0.641`
171
165
  - Generator version: `7.18.0`
172
166
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
173
167
 
@@ -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];
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.RemoveIntentTypeEnum = exports.LeadControllerApi = void 0;
25
+ exports.LeadControllerApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const index_1 = require("../models/index");
28
28
  /**
@@ -31,13 +31,13 @@ const index_1 = require("../models/index");
31
31
  class LeadControllerApi extends runtime.BaseAPI {
32
32
  /**
33
33
  */
34
- addListingIntentRaw(requestParameters, initOverrides) {
34
+ addIntentRaw(requestParameters, initOverrides) {
35
35
  return __awaiter(this, void 0, void 0, function* () {
36
36
  if (requestParameters['leadId'] == null) {
37
- throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling addListingIntent().');
37
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling addIntent().');
38
38
  }
39
- if (requestParameters['listingIntentRequest'] == null) {
40
- throw new runtime.RequiredError('listingIntentRequest', 'Required parameter "listingIntentRequest" was null or undefined when calling addListingIntent().');
39
+ if (requestParameters['leadIntentRequest'] == null) {
40
+ throw new runtime.RequiredError('leadIntentRequest', 'Required parameter "leadIntentRequest" was null or undefined when calling addIntent().');
41
41
  }
42
42
  const queryParameters = {};
43
43
  const headerParameters = {};
@@ -46,59 +46,23 @@ class LeadControllerApi extends runtime.BaseAPI {
46
46
  // oauth required
47
47
  headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
48
48
  }
49
- let urlPath = `/lead/{leadId}/listing-intents`;
49
+ let urlPath = `/lead/{leadId}/intent`;
50
50
  urlPath = urlPath.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId'])));
51
51
  const response = yield this.request({
52
52
  path: urlPath,
53
53
  method: 'POST',
54
54
  headers: headerParameters,
55
55
  query: queryParameters,
56
- body: (0, index_1.ListingIntentRequestToJSON)(requestParameters['listingIntentRequest']),
56
+ body: (0, index_1.LeadIntentRequestToJSON)(requestParameters['leadIntentRequest']),
57
57
  }, initOverrides);
58
58
  return new runtime.VoidApiResponse(response);
59
59
  });
60
60
  }
61
61
  /**
62
62
  */
63
- addListingIntent(requestParameters, initOverrides) {
63
+ addIntent(requestParameters, initOverrides) {
64
64
  return __awaiter(this, void 0, void 0, function* () {
65
- yield this.addListingIntentRaw(requestParameters, initOverrides);
66
- });
67
- }
68
- /**
69
- */
70
- addSearchIntentRaw(requestParameters, initOverrides) {
71
- return __awaiter(this, void 0, void 0, function* () {
72
- if (requestParameters['leadId'] == null) {
73
- throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling addSearchIntent().');
74
- }
75
- if (requestParameters['searchIntentRequest'] == null) {
76
- throw new runtime.RequiredError('searchIntentRequest', 'Required parameter "searchIntentRequest" was null or undefined when calling addSearchIntent().');
77
- }
78
- const queryParameters = {};
79
- const headerParameters = {};
80
- headerParameters['Content-Type'] = 'application/json';
81
- if (this.configuration && this.configuration.accessToken) {
82
- // oauth required
83
- headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
84
- }
85
- let urlPath = `/lead/{leadId}/search-intents`;
86
- urlPath = urlPath.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId'])));
87
- const response = yield this.request({
88
- path: urlPath,
89
- method: 'POST',
90
- headers: headerParameters,
91
- query: queryParameters,
92
- body: (0, index_1.SearchIntentRequestToJSON)(requestParameters['searchIntentRequest']),
93
- }, initOverrides);
94
- return new runtime.VoidApiResponse(response);
95
- });
96
- }
97
- /**
98
- */
99
- addSearchIntent(requestParameters, initOverrides) {
100
- return __awaiter(this, void 0, void 0, function* () {
101
- yield this.addSearchIntentRaw(requestParameters, initOverrides);
65
+ yield this.addIntentRaw(requestParameters, initOverrides);
102
66
  });
103
67
  }
104
68
  /**
@@ -216,16 +180,10 @@ class LeadControllerApi extends runtime.BaseAPI {
216
180
  if (requestParameters['index'] == null) {
217
181
  throw new runtime.RequiredError('index', 'Required parameter "index" was null or undefined when calling removeIntent().');
218
182
  }
219
- if (requestParameters['type'] == null) {
220
- throw new runtime.RequiredError('type', 'Required parameter "type" was null or undefined when calling removeIntent().');
221
- }
222
183
  const queryParameters = {};
223
184
  if (requestParameters['index'] != null) {
224
185
  queryParameters['index'] = requestParameters['index'];
225
186
  }
226
- if (requestParameters['type'] != null) {
227
- queryParameters['type'] = requestParameters['type'];
228
- }
229
187
  const headerParameters = {};
230
188
  if (this.configuration && this.configuration.accessToken) {
231
189
  // oauth required
@@ -287,16 +245,16 @@ class LeadControllerApi extends runtime.BaseAPI {
287
245
  }
288
246
  /**
289
247
  */
290
- updateListingIntentRaw(requestParameters, initOverrides) {
248
+ updateIntentRaw(requestParameters, initOverrides) {
291
249
  return __awaiter(this, void 0, void 0, function* () {
292
250
  if (requestParameters['leadId'] == null) {
293
- throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling updateListingIntent().');
251
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling updateIntent().');
294
252
  }
295
253
  if (requestParameters['index'] == null) {
296
- throw new runtime.RequiredError('index', 'Required parameter "index" was null or undefined when calling updateListingIntent().');
254
+ throw new runtime.RequiredError('index', 'Required parameter "index" was null or undefined when calling updateIntent().');
297
255
  }
298
- if (requestParameters['listingIntentRequest'] == null) {
299
- throw new runtime.RequiredError('listingIntentRequest', 'Required parameter "listingIntentRequest" was null or undefined when calling updateListingIntent().');
256
+ if (requestParameters['leadIntentRequest'] == null) {
257
+ throw new runtime.RequiredError('leadIntentRequest', 'Required parameter "leadIntentRequest" was null or undefined when calling updateIntent().');
300
258
  }
301
259
  const queryParameters = {};
302
260
  if (requestParameters['index'] != null) {
@@ -308,23 +266,23 @@ class LeadControllerApi extends runtime.BaseAPI {
308
266
  // oauth required
309
267
  headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
310
268
  }
311
- let urlPath = `/lead/{leadId}/listing-intents`;
269
+ let urlPath = `/lead/{leadId}/intent`;
312
270
  urlPath = urlPath.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId'])));
313
271
  const response = yield this.request({
314
272
  path: urlPath,
315
273
  method: 'PUT',
316
274
  headers: headerParameters,
317
275
  query: queryParameters,
318
- body: (0, index_1.ListingIntentRequestToJSON)(requestParameters['listingIntentRequest']),
276
+ body: (0, index_1.LeadIntentRequestToJSON)(requestParameters['leadIntentRequest']),
319
277
  }, initOverrides);
320
278
  return new runtime.VoidApiResponse(response);
321
279
  });
322
280
  }
323
281
  /**
324
282
  */
325
- updateListingIntent(requestParameters, initOverrides) {
283
+ updateIntent(requestParameters, initOverrides) {
326
284
  return __awaiter(this, void 0, void 0, function* () {
327
- yield this.updateListingIntentRaw(requestParameters, initOverrides);
285
+ yield this.updateIntentRaw(requestParameters, initOverrides);
328
286
  });
329
287
  }
330
288
  /**
@@ -363,48 +321,6 @@ class LeadControllerApi extends runtime.BaseAPI {
363
321
  yield this.updateNoteRaw(requestParameters, initOverrides);
364
322
  });
365
323
  }
366
- /**
367
- */
368
- updateSearchIntentRaw(requestParameters, initOverrides) {
369
- return __awaiter(this, void 0, void 0, function* () {
370
- if (requestParameters['leadId'] == null) {
371
- throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling updateSearchIntent().');
372
- }
373
- if (requestParameters['index'] == null) {
374
- throw new runtime.RequiredError('index', 'Required parameter "index" was null or undefined when calling updateSearchIntent().');
375
- }
376
- if (requestParameters['searchIntentRequest'] == null) {
377
- throw new runtime.RequiredError('searchIntentRequest', 'Required parameter "searchIntentRequest" was null or undefined when calling updateSearchIntent().');
378
- }
379
- const queryParameters = {};
380
- if (requestParameters['index'] != null) {
381
- queryParameters['index'] = requestParameters['index'];
382
- }
383
- const headerParameters = {};
384
- headerParameters['Content-Type'] = 'application/json';
385
- if (this.configuration && this.configuration.accessToken) {
386
- // oauth required
387
- headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
388
- }
389
- let urlPath = `/lead/{leadId}/search-intents`;
390
- urlPath = urlPath.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId'])));
391
- const response = yield this.request({
392
- path: urlPath,
393
- method: 'PUT',
394
- headers: headerParameters,
395
- query: queryParameters,
396
- body: (0, index_1.SearchIntentRequestToJSON)(requestParameters['searchIntentRequest']),
397
- }, initOverrides);
398
- return new runtime.VoidApiResponse(response);
399
- });
400
- }
401
- /**
402
- */
403
- updateSearchIntent(requestParameters, initOverrides) {
404
- return __awaiter(this, void 0, void 0, function* () {
405
- yield this.updateSearchIntentRaw(requestParameters, initOverrides);
406
- });
407
- }
408
324
  /**
409
325
  */
410
326
  updateSourceRaw(requestParameters, initOverrides) {
@@ -443,10 +359,3 @@ class LeadControllerApi extends runtime.BaseAPI {
443
359
  }
444
360
  }
445
361
  exports.LeadControllerApi = LeadControllerApi;
446
- /**
447
- * @export
448
- */
449
- exports.RemoveIntentTypeEnum = {
450
- Search: 'SEARCH',
451
- Listing: 'LISTING'
452
- };