@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
@@ -1,44 +0,0 @@
1
-
2
- # AddressRefRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `regionId` | number
10
- `cityId` | number
11
- `districtId` | number
12
- `subDistrictId` | number
13
- `streetId` | number
14
- `coordinates` | [CoordinatesRequest](CoordinatesRequest.md)
15
-
16
- ## Example
17
-
18
- ```typescript
19
- import type { AddressRefRequest } from '@homespot-sdk/api'
20
-
21
- // TODO: Update the object below with actual values
22
- const example = {
23
- "regionId": null,
24
- "cityId": null,
25
- "districtId": null,
26
- "subDistrictId": null,
27
- "streetId": null,
28
- "coordinates": null,
29
- } satisfies AddressRefRequest
30
-
31
- console.log(example)
32
-
33
- // Convert the instance to a JSON string
34
- const exampleJSON: string = JSON.stringify(example)
35
- console.log(exampleJSON)
36
-
37
- // Parse the JSON string back to an object
38
- const exampleParsed = JSON.parse(exampleJSON) as AddressRefRequest
39
- console.log(exampleParsed)
40
- ```
41
-
42
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
-
44
-
@@ -1,36 +0,0 @@
1
-
2
- # CoordinatesRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `lat` | number
10
- `lng` | number
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { CoordinatesRequest } from '@homespot-sdk/api'
16
-
17
- // TODO: Update the object below with actual values
18
- const example = {
19
- "lat": null,
20
- "lng": null,
21
- } satisfies CoordinatesRequest
22
-
23
- console.log(example)
24
-
25
- // Convert the instance to a JSON string
26
- const exampleJSON: string = JSON.stringify(example)
27
- console.log(exampleJSON)
28
-
29
- // Parse the JSON string back to an object
30
- const exampleParsed = JSON.parse(exampleJSON) as CoordinatesRequest
31
- console.log(exampleParsed)
32
- ```
33
-
34
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
-
36
-
@@ -1,44 +0,0 @@
1
-
2
- # ListingIntentRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `propertyType` | string
10
- `dealType` | string
11
- `desiredPrice` | [PriceRangeRequest](PriceRangeRequest.md)
12
- `address` | [AddressRefRequest](AddressRefRequest.md)
13
- `area` | number
14
- `numberOfRooms` | number
15
-
16
- ## Example
17
-
18
- ```typescript
19
- import type { ListingIntentRequest } from '@homespot-sdk/api'
20
-
21
- // TODO: Update the object below with actual values
22
- const example = {
23
- "propertyType": null,
24
- "dealType": null,
25
- "desiredPrice": null,
26
- "address": null,
27
- "area": null,
28
- "numberOfRooms": null,
29
- } satisfies ListingIntentRequest
30
-
31
- console.log(example)
32
-
33
- // Convert the instance to a JSON string
34
- const exampleJSON: string = JSON.stringify(example)
35
- console.log(exampleJSON)
36
-
37
- // Parse the JSON string back to an object
38
- const exampleParsed = JSON.parse(exampleJSON) as ListingIntentRequest
39
- console.log(exampleParsed)
40
- ```
41
-
42
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
-
44
-
@@ -1,58 +0,0 @@
1
-
2
- # ListingIntentResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `propertyType` | string
10
- `dealType` | string
11
- `desiredPriceMin` | number
12
- `desiredPriceMax` | number
13
- `regionId` | number
14
- `cityId` | number
15
- `districtId` | number
16
- `subDistrictId` | number
17
- `streetId` | number
18
- `lat` | number
19
- `lng` | number
20
- `area` | number
21
- `numberOfRooms` | number
22
-
23
- ## Example
24
-
25
- ```typescript
26
- import type { ListingIntentResponse } from '@homespot-sdk/api'
27
-
28
- // TODO: Update the object below with actual values
29
- const example = {
30
- "propertyType": null,
31
- "dealType": null,
32
- "desiredPriceMin": null,
33
- "desiredPriceMax": null,
34
- "regionId": null,
35
- "cityId": null,
36
- "districtId": null,
37
- "subDistrictId": null,
38
- "streetId": null,
39
- "lat": null,
40
- "lng": null,
41
- "area": null,
42
- "numberOfRooms": null,
43
- } satisfies ListingIntentResponse
44
-
45
- console.log(example)
46
-
47
- // Convert the instance to a JSON string
48
- const exampleJSON: string = JSON.stringify(example)
49
- console.log(exampleJSON)
50
-
51
- // Parse the JSON string back to an object
52
- const exampleParsed = JSON.parse(exampleJSON) as ListingIntentResponse
53
- console.log(exampleParsed)
54
- ```
55
-
56
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
57
-
58
-
@@ -1,114 +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 { CoordinatesRequest } from './CoordinatesRequest';
17
- import {
18
- CoordinatesRequestFromJSON,
19
- CoordinatesRequestFromJSONTyped,
20
- CoordinatesRequestToJSON,
21
- CoordinatesRequestToJSONTyped,
22
- } from './CoordinatesRequest';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface AddressRefRequest
28
- */
29
- export interface AddressRefRequest {
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof AddressRefRequest
34
- */
35
- regionId?: number;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof AddressRefRequest
40
- */
41
- cityId?: number;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof AddressRefRequest
46
- */
47
- districtId?: number;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof AddressRefRequest
52
- */
53
- subDistrictId?: number;
54
- /**
55
- *
56
- * @type {number}
57
- * @memberof AddressRefRequest
58
- */
59
- streetId?: number;
60
- /**
61
- *
62
- * @type {CoordinatesRequest}
63
- * @memberof AddressRefRequest
64
- */
65
- coordinates: CoordinatesRequest;
66
- }
67
-
68
- /**
69
- * Check if a given object implements the AddressRefRequest interface.
70
- */
71
- export function instanceOfAddressRefRequest(value: object): value is AddressRefRequest {
72
- if (!('coordinates' in value) || value['coordinates'] === undefined) return false;
73
- return true;
74
- }
75
-
76
- export function AddressRefRequestFromJSON(json: any): AddressRefRequest {
77
- return AddressRefRequestFromJSONTyped(json, false);
78
- }
79
-
80
- export function AddressRefRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressRefRequest {
81
- if (json == null) {
82
- return json;
83
- }
84
- return {
85
-
86
- 'regionId': json['regionId'] == null ? undefined : json['regionId'],
87
- 'cityId': json['cityId'] == null ? undefined : json['cityId'],
88
- 'districtId': json['districtId'] == null ? undefined : json['districtId'],
89
- 'subDistrictId': json['subDistrictId'] == null ? undefined : json['subDistrictId'],
90
- 'streetId': json['streetId'] == null ? undefined : json['streetId'],
91
- 'coordinates': CoordinatesRequestFromJSON(json['coordinates']),
92
- };
93
- }
94
-
95
- export function AddressRefRequestToJSON(json: any): AddressRefRequest {
96
- return AddressRefRequestToJSONTyped(json, false);
97
- }
98
-
99
- export function AddressRefRequestToJSONTyped(value?: AddressRefRequest | null, ignoreDiscriminator: boolean = false): any {
100
- if (value == null) {
101
- return value;
102
- }
103
-
104
- return {
105
-
106
- 'regionId': value['regionId'],
107
- 'cityId': value['cityId'],
108
- 'districtId': value['districtId'],
109
- 'subDistrictId': value['subDistrictId'],
110
- 'streetId': value['streetId'],
111
- 'coordinates': CoordinatesRequestToJSON(value['coordinates']),
112
- };
113
- }
114
-
@@ -1,75 +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 CoordinatesRequest
20
- */
21
- export interface CoordinatesRequest {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof CoordinatesRequest
26
- */
27
- lat: number;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof CoordinatesRequest
32
- */
33
- lng: number;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the CoordinatesRequest interface.
38
- */
39
- export function instanceOfCoordinatesRequest(value: object): value is CoordinatesRequest {
40
- if (!('lat' in value) || value['lat'] === undefined) return false;
41
- if (!('lng' in value) || value['lng'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function CoordinatesRequestFromJSON(json: any): CoordinatesRequest {
46
- return CoordinatesRequestFromJSONTyped(json, false);
47
- }
48
-
49
- export function CoordinatesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoordinatesRequest {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'lat': json['lat'],
56
- 'lng': json['lng'],
57
- };
58
- }
59
-
60
- export function CoordinatesRequestToJSON(json: any): CoordinatesRequest {
61
- return CoordinatesRequestToJSONTyped(json, false);
62
- }
63
-
64
- export function CoordinatesRequestToJSONTyped(value?: CoordinatesRequest | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'lat': value['lat'],
72
- 'lng': value['lng'],
73
- };
74
- }
75
-
@@ -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
-