@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
@@ -1,160 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Service API
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: v1
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { AddressRefRequest } from './AddressRefRequest';
17
- import {
18
- AddressRefRequestFromJSON,
19
- AddressRefRequestFromJSONTyped,
20
- AddressRefRequestToJSON,
21
- AddressRefRequestToJSONTyped,
22
- } from './AddressRefRequest';
23
- import type { PriceRangeRequest } from './PriceRangeRequest';
24
- import {
25
- PriceRangeRequestFromJSON,
26
- PriceRangeRequestFromJSONTyped,
27
- PriceRangeRequestToJSON,
28
- PriceRangeRequestToJSONTyped,
29
- } from './PriceRangeRequest';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface ListingIntentRequest
35
- */
36
- export interface ListingIntentRequest {
37
- /**
38
- *
39
- * @type {string}
40
- * @memberof ListingIntentRequest
41
- */
42
- propertyType: ListingIntentRequestPropertyTypeEnum;
43
- /**
44
- *
45
- * @type {string}
46
- * @memberof ListingIntentRequest
47
- */
48
- dealType: ListingIntentRequestDealTypeEnum;
49
- /**
50
- *
51
- * @type {PriceRangeRequest}
52
- * @memberof ListingIntentRequest
53
- */
54
- desiredPrice?: PriceRangeRequest;
55
- /**
56
- *
57
- * @type {AddressRefRequest}
58
- * @memberof ListingIntentRequest
59
- */
60
- address?: AddressRefRequest;
61
- /**
62
- *
63
- * @type {number}
64
- * @memberof ListingIntentRequest
65
- */
66
- area?: number;
67
- /**
68
- *
69
- * @type {number}
70
- * @memberof ListingIntentRequest
71
- */
72
- numberOfRooms?: number;
73
- }
74
-
75
-
76
- /**
77
- * @export
78
- */
79
- export const ListingIntentRequestPropertyTypeEnum = {
80
- House: 'HOUSE',
81
- TownHouse: 'TOWN_HOUSE',
82
- CountryHouse: 'COUNTRY_HOUSE',
83
- Villa: 'VILLA',
84
- Cottage: 'COTTAGE',
85
- Apartment: 'APARTMENT',
86
- Duplex: 'DUPLEX',
87
- Triplex: 'TRIPLEX',
88
- SemiBasement: 'SEMI_BASEMENT',
89
- Attic: 'ATTIC',
90
- AgriculturalLand: 'AGRICULTURAL_LAND',
91
- ResidentialLand: 'RESIDENTIAL_LAND',
92
- HotelRoom: 'HOTEL_ROOM',
93
- MotelRoom: 'MOTEL_ROOM',
94
- CoLivingSpace: 'CO_LIVING_SPACE',
95
- Office: 'OFFICE',
96
- CommercialSpace: 'COMMERCIAL_SPACE',
97
- CoWorkingSpace: 'CO_WORKING_SPACE',
98
- Warehouse: 'WAREHOUSE',
99
- Garage: 'GARAGE'
100
- } as const;
101
- export type ListingIntentRequestPropertyTypeEnum = typeof ListingIntentRequestPropertyTypeEnum[keyof typeof ListingIntentRequestPropertyTypeEnum];
102
-
103
- /**
104
- * @export
105
- */
106
- export const ListingIntentRequestDealTypeEnum = {
107
- Buy: 'BUY',
108
- Rent: 'RENT'
109
- } as const;
110
- export type ListingIntentRequestDealTypeEnum = typeof ListingIntentRequestDealTypeEnum[keyof typeof ListingIntentRequestDealTypeEnum];
111
-
112
-
113
- /**
114
- * Check if a given object implements the ListingIntentRequest interface.
115
- */
116
- export function instanceOfListingIntentRequest(value: object): value is ListingIntentRequest {
117
- if (!('propertyType' in value) || value['propertyType'] === undefined) return false;
118
- if (!('dealType' in value) || value['dealType'] === undefined) return false;
119
- return true;
120
- }
121
-
122
- export function ListingIntentRequestFromJSON(json: any): ListingIntentRequest {
123
- return ListingIntentRequestFromJSONTyped(json, false);
124
- }
125
-
126
- export function ListingIntentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListingIntentRequest {
127
- if (json == null) {
128
- return json;
129
- }
130
- return {
131
-
132
- 'propertyType': json['propertyType'],
133
- 'dealType': json['dealType'],
134
- 'desiredPrice': json['desiredPrice'] == null ? undefined : PriceRangeRequestFromJSON(json['desiredPrice']),
135
- 'address': json['address'] == null ? undefined : AddressRefRequestFromJSON(json['address']),
136
- 'area': json['area'] == null ? undefined : json['area'],
137
- 'numberOfRooms': json['numberOfRooms'] == null ? undefined : json['numberOfRooms'],
138
- };
139
- }
140
-
141
- export function ListingIntentRequestToJSON(json: any): ListingIntentRequest {
142
- return ListingIntentRequestToJSONTyped(json, false);
143
- }
144
-
145
- export function ListingIntentRequestToJSONTyped(value?: ListingIntentRequest | null, ignoreDiscriminator: boolean = false): any {
146
- if (value == null) {
147
- return value;
148
- }
149
-
150
- return {
151
-
152
- 'propertyType': value['propertyType'],
153
- 'dealType': value['dealType'],
154
- 'desiredPrice': PriceRangeRequestToJSON(value['desiredPrice']),
155
- 'address': AddressRefRequestToJSON(value['address']),
156
- 'area': value['area'],
157
- 'numberOfRooms': value['numberOfRooms'],
158
- };
159
- }
160
-
@@ -1,201 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Service API
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: v1
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface ListingIntentResponse
20
- */
21
- export interface ListingIntentResponse {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof ListingIntentResponse
26
- */
27
- propertyType: ListingIntentResponsePropertyTypeEnum;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof ListingIntentResponse
32
- */
33
- dealType: ListingIntentResponseDealTypeEnum;
34
- /**
35
- *
36
- * @type {number}
37
- * @memberof ListingIntentResponse
38
- */
39
- desiredPriceMin?: number;
40
- /**
41
- *
42
- * @type {number}
43
- * @memberof ListingIntentResponse
44
- */
45
- desiredPriceMax?: number;
46
- /**
47
- *
48
- * @type {number}
49
- * @memberof ListingIntentResponse
50
- */
51
- regionId?: number;
52
- /**
53
- *
54
- * @type {number}
55
- * @memberof ListingIntentResponse
56
- */
57
- cityId?: number;
58
- /**
59
- *
60
- * @type {number}
61
- * @memberof ListingIntentResponse
62
- */
63
- districtId?: number;
64
- /**
65
- *
66
- * @type {number}
67
- * @memberof ListingIntentResponse
68
- */
69
- subDistrictId?: number;
70
- /**
71
- *
72
- * @type {number}
73
- * @memberof ListingIntentResponse
74
- */
75
- streetId?: number;
76
- /**
77
- *
78
- * @type {number}
79
- * @memberof ListingIntentResponse
80
- */
81
- lat?: number;
82
- /**
83
- *
84
- * @type {number}
85
- * @memberof ListingIntentResponse
86
- */
87
- lng?: number;
88
- /**
89
- *
90
- * @type {number}
91
- * @memberof ListingIntentResponse
92
- */
93
- area?: number;
94
- /**
95
- *
96
- * @type {number}
97
- * @memberof ListingIntentResponse
98
- */
99
- numberOfRooms?: number;
100
- }
101
-
102
-
103
- /**
104
- * @export
105
- */
106
- export const ListingIntentResponsePropertyTypeEnum = {
107
- House: 'HOUSE',
108
- TownHouse: 'TOWN_HOUSE',
109
- CountryHouse: 'COUNTRY_HOUSE',
110
- Villa: 'VILLA',
111
- Cottage: 'COTTAGE',
112
- Apartment: 'APARTMENT',
113
- Duplex: 'DUPLEX',
114
- Triplex: 'TRIPLEX',
115
- SemiBasement: 'SEMI_BASEMENT',
116
- Attic: 'ATTIC',
117
- AgriculturalLand: 'AGRICULTURAL_LAND',
118
- ResidentialLand: 'RESIDENTIAL_LAND',
119
- HotelRoom: 'HOTEL_ROOM',
120
- MotelRoom: 'MOTEL_ROOM',
121
- CoLivingSpace: 'CO_LIVING_SPACE',
122
- Office: 'OFFICE',
123
- CommercialSpace: 'COMMERCIAL_SPACE',
124
- CoWorkingSpace: 'CO_WORKING_SPACE',
125
- Warehouse: 'WAREHOUSE',
126
- Garage: 'GARAGE'
127
- } as const;
128
- export type ListingIntentResponsePropertyTypeEnum = typeof ListingIntentResponsePropertyTypeEnum[keyof typeof ListingIntentResponsePropertyTypeEnum];
129
-
130
- /**
131
- * @export
132
- */
133
- export const ListingIntentResponseDealTypeEnum = {
134
- Buy: 'BUY',
135
- Rent: 'RENT'
136
- } as const;
137
- export type ListingIntentResponseDealTypeEnum = typeof ListingIntentResponseDealTypeEnum[keyof typeof ListingIntentResponseDealTypeEnum];
138
-
139
-
140
- /**
141
- * Check if a given object implements the ListingIntentResponse interface.
142
- */
143
- export function instanceOfListingIntentResponse(value: object): value is ListingIntentResponse {
144
- if (!('propertyType' in value) || value['propertyType'] === undefined) return false;
145
- if (!('dealType' in value) || value['dealType'] === undefined) return false;
146
- return true;
147
- }
148
-
149
- export function ListingIntentResponseFromJSON(json: any): ListingIntentResponse {
150
- return ListingIntentResponseFromJSONTyped(json, false);
151
- }
152
-
153
- export function ListingIntentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListingIntentResponse {
154
- if (json == null) {
155
- return json;
156
- }
157
- return {
158
-
159
- 'propertyType': json['propertyType'],
160
- 'dealType': json['dealType'],
161
- 'desiredPriceMin': json['desiredPriceMin'] == null ? undefined : json['desiredPriceMin'],
162
- 'desiredPriceMax': json['desiredPriceMax'] == null ? undefined : json['desiredPriceMax'],
163
- 'regionId': json['regionId'] == null ? undefined : json['regionId'],
164
- 'cityId': json['cityId'] == null ? undefined : json['cityId'],
165
- 'districtId': json['districtId'] == null ? undefined : json['districtId'],
166
- 'subDistrictId': json['subDistrictId'] == null ? undefined : json['subDistrictId'],
167
- 'streetId': json['streetId'] == null ? undefined : json['streetId'],
168
- 'lat': json['lat'] == null ? undefined : json['lat'],
169
- 'lng': json['lng'] == null ? undefined : json['lng'],
170
- 'area': json['area'] == null ? undefined : json['area'],
171
- 'numberOfRooms': json['numberOfRooms'] == null ? undefined : json['numberOfRooms'],
172
- };
173
- }
174
-
175
- export function ListingIntentResponseToJSON(json: any): ListingIntentResponse {
176
- return ListingIntentResponseToJSONTyped(json, false);
177
- }
178
-
179
- export function ListingIntentResponseToJSONTyped(value?: ListingIntentResponse | null, ignoreDiscriminator: boolean = false): any {
180
- if (value == null) {
181
- return value;
182
- }
183
-
184
- return {
185
-
186
- 'propertyType': value['propertyType'],
187
- 'dealType': value['dealType'],
188
- 'desiredPriceMin': value['desiredPriceMin'],
189
- 'desiredPriceMax': value['desiredPriceMax'],
190
- 'regionId': value['regionId'],
191
- 'cityId': value['cityId'],
192
- 'districtId': value['districtId'],
193
- 'subDistrictId': value['subDistrictId'],
194
- 'streetId': value['streetId'],
195
- 'lat': value['lat'],
196
- 'lng': value['lng'],
197
- 'area': value['area'],
198
- 'numberOfRooms': value['numberOfRooms'],
199
- };
200
- }
201
-