@homespot-sdk/api 0.0.637 → 0.0.638
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +38 -0
- package/README.md +32 -3
- package/dist/apis/AgencyQueryControllerApi.d.ts +46 -0
- package/dist/apis/AgencyQueryControllerApi.js +65 -0
- package/dist/apis/LeadControllerApi.d.ts +280 -0
- package/dist/apis/LeadControllerApi.js +452 -0
- package/dist/apis/LeadQueryControllerApi.d.ts +88 -0
- package/dist/apis/LeadQueryControllerApi.js +122 -0
- package/dist/apis/PublicAgencyControllerApi.d.ts +1 -21
- package/dist/apis/PublicAgencyControllerApi.js +0 -32
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/esm/apis/AgencyQueryControllerApi.d.ts +46 -0
- package/dist/esm/apis/AgencyQueryControllerApi.js +61 -0
- package/dist/esm/apis/LeadControllerApi.d.ts +280 -0
- package/dist/esm/apis/LeadControllerApi.js +448 -0
- package/dist/esm/apis/LeadQueryControllerApi.d.ts +88 -0
- package/dist/esm/apis/LeadQueryControllerApi.js +118 -0
- package/dist/esm/apis/PublicAgencyControllerApi.d.ts +1 -21
- package/dist/esm/apis/PublicAgencyControllerApi.js +1 -33
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/models/AddressRefRequest.d.ts +63 -0
- package/dist/esm/models/AddressRefRequest.js +54 -0
- package/dist/esm/models/AssignToMemberRequest.d.ts +32 -0
- package/dist/esm/models/AssignToMemberRequest.js +43 -0
- package/dist/esm/models/ChangeStatusRequest.d.ts +44 -0
- package/dist/esm/models/ChangeStatusRequest.js +54 -0
- package/dist/esm/models/ContactInfoRequest.d.ts +50 -0
- package/dist/esm/models/ContactInfoRequest.js +49 -0
- package/dist/esm/models/CoordinatesRequest.d.ts +38 -0
- package/dist/esm/models/CoordinatesRequest.js +47 -0
- package/dist/esm/models/CreateLeadRequest.d.ts +45 -0
- package/dist/esm/models/CreateLeadRequest.js +48 -0
- package/dist/esm/models/LeadProjectionResponse.d.ts +130 -0
- package/dist/esm/models/LeadProjectionResponse.js +94 -0
- package/dist/esm/models/ListingIntentRequest.d.ts +98 -0
- package/dist/esm/models/ListingIntentRequest.js +89 -0
- package/dist/esm/models/ListingIntentResponse.d.ts +138 -0
- package/dist/esm/models/ListingIntentResponse.js +101 -0
- package/dist/esm/models/LocationRefRequest.d.ts +56 -0
- package/dist/esm/models/LocationRefRequest.js +49 -0
- package/dist/esm/models/PageLeadProjectionResponse.d.ts +95 -0
- package/dist/esm/models/PageLeadProjectionResponse.js +64 -0
- package/dist/esm/models/PageRoleResponse.d.ts +2 -2
- package/dist/esm/models/PageRoleResponse.js +2 -2
- package/dist/esm/models/PageableObject.d.ts +6 -6
- package/dist/esm/models/PageableObject.js +2 -2
- package/dist/esm/models/PriceRangeRequest.d.ts +38 -0
- package/dist/esm/models/PriceRangeRequest.js +43 -0
- package/dist/esm/models/SearchIntentRequest.d.ts +98 -0
- package/dist/esm/models/SearchIntentRequest.js +89 -0
- package/dist/esm/models/SearchIntentResponse.d.ts +126 -0
- package/dist/esm/models/SearchIntentResponse.js +97 -0
- package/dist/esm/models/SourceRequest.d.ts +32 -0
- package/dist/esm/models/SourceRequest.js +43 -0
- package/dist/esm/models/UpdateNoteRequest.d.ts +32 -0
- package/dist/esm/models/UpdateNoteRequest.js +43 -0
- package/dist/esm/models/index.d.ts +16 -0
- package/dist/esm/models/index.js +16 -0
- package/dist/models/AddressRefRequest.d.ts +63 -0
- package/dist/models/AddressRefRequest.js +61 -0
- package/dist/models/AssignToMemberRequest.d.ts +32 -0
- package/dist/models/AssignToMemberRequest.js +50 -0
- package/dist/models/ChangeStatusRequest.d.ts +44 -0
- package/dist/models/ChangeStatusRequest.js +62 -0
- package/dist/models/ContactInfoRequest.d.ts +50 -0
- package/dist/models/ContactInfoRequest.js +56 -0
- package/dist/models/CoordinatesRequest.d.ts +38 -0
- package/dist/models/CoordinatesRequest.js +54 -0
- package/dist/models/CreateLeadRequest.d.ts +45 -0
- package/dist/models/CreateLeadRequest.js +55 -0
- package/dist/models/LeadProjectionResponse.d.ts +130 -0
- package/dist/models/LeadProjectionResponse.js +102 -0
- package/dist/models/ListingIntentRequest.d.ts +98 -0
- package/dist/models/ListingIntentRequest.js +97 -0
- package/dist/models/ListingIntentResponse.d.ts +138 -0
- package/dist/models/ListingIntentResponse.js +109 -0
- package/dist/models/LocationRefRequest.d.ts +56 -0
- package/dist/models/LocationRefRequest.js +56 -0
- package/dist/models/PageLeadProjectionResponse.d.ts +95 -0
- package/dist/models/PageLeadProjectionResponse.js +71 -0
- package/dist/models/PageRoleResponse.d.ts +2 -2
- package/dist/models/PageRoleResponse.js +2 -2
- package/dist/models/PageableObject.d.ts +6 -6
- package/dist/models/PageableObject.js +2 -2
- package/dist/models/PriceRangeRequest.d.ts +38 -0
- package/dist/models/PriceRangeRequest.js +50 -0
- package/dist/models/SearchIntentRequest.d.ts +98 -0
- package/dist/models/SearchIntentRequest.js +97 -0
- package/dist/models/SearchIntentResponse.d.ts +126 -0
- package/dist/models/SearchIntentResponse.js +105 -0
- package/dist/models/SourceRequest.d.ts +32 -0
- package/dist/models/SourceRequest.js +50 -0
- package/dist/models/UpdateNoteRequest.d.ts +32 -0
- package/dist/models/UpdateNoteRequest.js +50 -0
- package/dist/models/index.d.ts +16 -0
- package/dist/models/index.js +16 -0
- package/docs/AddressRefRequest.md +44 -0
- package/docs/AgencyQueryControllerApi.md +78 -0
- package/docs/AssignToMemberRequest.md +34 -0
- package/docs/ChangeStatusRequest.md +34 -0
- package/docs/ContactInfoRequest.md +40 -0
- package/docs/CoordinatesRequest.md +36 -0
- package/docs/CreateLeadRequest.md +38 -0
- package/docs/LeadControllerApi.md +817 -0
- package/docs/LeadProjectionResponse.md +62 -0
- package/docs/LeadQueryControllerApi.md +163 -0
- package/docs/ListingIntentRequest.md +44 -0
- package/docs/ListingIntentResponse.md +58 -0
- package/docs/LocationRefRequest.md +42 -0
- package/docs/PageLeadProjectionResponse.md +54 -0
- package/docs/PageRoleResponse.md +2 -2
- package/docs/PageableObject.md +2 -2
- package/docs/PriceRangeRequest.md +36 -0
- package/docs/PublicAgencyControllerApi.md +0 -70
- package/docs/SearchIntentRequest.md +44 -0
- package/docs/SearchIntentResponse.md +54 -0
- package/docs/SourceRequest.md +34 -0
- package/docs/UpdateNoteRequest.md +34 -0
- package/package.json +1 -1
- package/src/apis/AgencyQueryControllerApi.ts +96 -0
- package/src/apis/LeadControllerApi.ts +851 -0
- package/src/apis/LeadQueryControllerApi.ts +195 -0
- package/src/apis/PublicAgencyControllerApi.ts +0 -60
- package/src/apis/index.ts +3 -0
- package/src/models/AddressRefRequest.ts +114 -0
- package/src/models/AssignToMemberRequest.ts +66 -0
- package/src/models/ChangeStatusRequest.ts +81 -0
- package/src/models/ContactInfoRequest.ts +90 -0
- package/src/models/CoordinatesRequest.ts +75 -0
- package/src/models/CreateLeadRequest.ts +90 -0
- package/src/models/LeadProjectionResponse.ts +213 -0
- package/src/models/ListingIntentRequest.ts +160 -0
- package/src/models/ListingIntentResponse.ts +201 -0
- package/src/models/LocationRefRequest.ts +97 -0
- package/src/models/PageLeadProjectionResponse.ts +167 -0
- package/src/models/PageRoleResponse.ts +4 -4
- package/src/models/PageableObject.ts +8 -8
- package/src/models/PriceRangeRequest.ts +73 -0
- package/src/models/SearchIntentRequest.ts +160 -0
- package/src/models/SearchIntentResponse.ts +185 -0
- package/src/models/SourceRequest.ts +66 -0
- package/src/models/UpdateNoteRequest.ts +66 -0
- package/src/models/index.ts +16 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
|
|
2
|
+
# LeadProjectionResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`createdBy` | string
|
|
11
|
+
`assignedTo` | string
|
|
12
|
+
`status` | string
|
|
13
|
+
`contactFullName` | string
|
|
14
|
+
`contactPhoneNumber` | string
|
|
15
|
+
`contactEmail` | string
|
|
16
|
+
`noteTitle` | string
|
|
17
|
+
`noteContent` | string
|
|
18
|
+
`sourceType` | string
|
|
19
|
+
`sourceLink` | string
|
|
20
|
+
`isSearcher` | boolean
|
|
21
|
+
`isLister` | boolean
|
|
22
|
+
`searchIntents` | [Array<SearchIntentResponse>](SearchIntentResponse.md)
|
|
23
|
+
`listingIntents` | [Array<ListingIntentResponse>](ListingIntentResponse.md)
|
|
24
|
+
|
|
25
|
+
## Example
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import type { LeadProjectionResponse } from '@homespot-sdk/api'
|
|
29
|
+
|
|
30
|
+
// TODO: Update the object below with actual values
|
|
31
|
+
const example = {
|
|
32
|
+
"id": null,
|
|
33
|
+
"createdBy": null,
|
|
34
|
+
"assignedTo": null,
|
|
35
|
+
"status": null,
|
|
36
|
+
"contactFullName": null,
|
|
37
|
+
"contactPhoneNumber": null,
|
|
38
|
+
"contactEmail": null,
|
|
39
|
+
"noteTitle": null,
|
|
40
|
+
"noteContent": null,
|
|
41
|
+
"sourceType": null,
|
|
42
|
+
"sourceLink": null,
|
|
43
|
+
"isSearcher": null,
|
|
44
|
+
"isLister": null,
|
|
45
|
+
"searchIntents": null,
|
|
46
|
+
"listingIntents": null,
|
|
47
|
+
} satisfies LeadProjectionResponse
|
|
48
|
+
|
|
49
|
+
console.log(example)
|
|
50
|
+
|
|
51
|
+
// Convert the instance to a JSON string
|
|
52
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
53
|
+
console.log(exampleJSON)
|
|
54
|
+
|
|
55
|
+
// Parse the JSON string back to an object
|
|
56
|
+
const exampleParsed = JSON.parse(exampleJSON) as LeadProjectionResponse
|
|
57
|
+
console.log(exampleParsed)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
61
|
+
|
|
62
|
+
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# LeadQueryControllerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**getLeadById**](LeadQueryControllerApi.md#getleadbyid) | **GET** /lead/{leadId} | |
|
|
8
|
+
| [**searchLeads**](LeadQueryControllerApi.md#searchleads) | **GET** /lead | |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## getLeadById
|
|
13
|
+
|
|
14
|
+
> LeadProjectionResponse getLeadById(leadId)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import {
|
|
22
|
+
Configuration,
|
|
23
|
+
LeadQueryControllerApi,
|
|
24
|
+
} from '@homespot-sdk/api';
|
|
25
|
+
import type { GetLeadByIdRequest } from '@homespot-sdk/api';
|
|
26
|
+
|
|
27
|
+
async function example() {
|
|
28
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
29
|
+
const config = new Configuration({
|
|
30
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
31
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
32
|
+
});
|
|
33
|
+
const api = new LeadQueryControllerApi(config);
|
|
34
|
+
|
|
35
|
+
const body = {
|
|
36
|
+
// string
|
|
37
|
+
leadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
38
|
+
} satisfies GetLeadByIdRequest;
|
|
39
|
+
|
|
40
|
+
try {
|
|
41
|
+
const data = await api.getLeadById(body);
|
|
42
|
+
console.log(data);
|
|
43
|
+
} catch (error) {
|
|
44
|
+
console.error(error);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Run the test
|
|
49
|
+
example().catch(console.error);
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Parameters
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
| Name | Type | Description | Notes |
|
|
56
|
+
|------------- | ------------- | ------------- | -------------|
|
|
57
|
+
| **leadId** | `string` | | [Defaults to `undefined`] |
|
|
58
|
+
|
|
59
|
+
### Return type
|
|
60
|
+
|
|
61
|
+
[**LeadProjectionResponse**](LeadProjectionResponse.md)
|
|
62
|
+
|
|
63
|
+
### Authorization
|
|
64
|
+
|
|
65
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
66
|
+
|
|
67
|
+
### HTTP request headers
|
|
68
|
+
|
|
69
|
+
- **Content-Type**: Not defined
|
|
70
|
+
- **Accept**: `*/*`
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### HTTP response details
|
|
74
|
+
| Status code | Description | Response headers |
|
|
75
|
+
|-------------|-------------|------------------|
|
|
76
|
+
| **200** | OK | - |
|
|
77
|
+
|
|
78
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## searchLeads
|
|
82
|
+
|
|
83
|
+
> PageLeadProjectionResponse searchLeads(status, isSearcher, isLister, page, size, sort)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### Example
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
import {
|
|
91
|
+
Configuration,
|
|
92
|
+
LeadQueryControllerApi,
|
|
93
|
+
} from '@homespot-sdk/api';
|
|
94
|
+
import type { SearchLeadsRequest } from '@homespot-sdk/api';
|
|
95
|
+
|
|
96
|
+
async function example() {
|
|
97
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
98
|
+
const config = new Configuration({
|
|
99
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
100
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
101
|
+
});
|
|
102
|
+
const api = new LeadQueryControllerApi(config);
|
|
103
|
+
|
|
104
|
+
const body = {
|
|
105
|
+
// 'NEW' | 'ATTEMPTED_CONTACT' | 'CONTACTED' | 'DISQUALIFIED' | 'CONVERTED' | 'LOST' (optional)
|
|
106
|
+
status: status_example,
|
|
107
|
+
// boolean (optional)
|
|
108
|
+
isSearcher: true,
|
|
109
|
+
// boolean (optional)
|
|
110
|
+
isLister: true,
|
|
111
|
+
// number | Zero-based page index (0..N) (optional)
|
|
112
|
+
page: 56,
|
|
113
|
+
// number | The size of the page to be returned (optional)
|
|
114
|
+
size: 56,
|
|
115
|
+
// Array<string> | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (optional)
|
|
116
|
+
sort: ...,
|
|
117
|
+
} satisfies SearchLeadsRequest;
|
|
118
|
+
|
|
119
|
+
try {
|
|
120
|
+
const data = await api.searchLeads(body);
|
|
121
|
+
console.log(data);
|
|
122
|
+
} catch (error) {
|
|
123
|
+
console.error(error);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Run the test
|
|
128
|
+
example().catch(console.error);
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Parameters
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
| Name | Type | Description | Notes |
|
|
135
|
+
|------------- | ------------- | ------------- | -------------|
|
|
136
|
+
| **status** | `NEW`, `ATTEMPTED_CONTACT`, `CONTACTED`, `DISQUALIFIED`, `CONVERTED`, `LOST` | | [Optional] [Defaults to `undefined`] [Enum: NEW, ATTEMPTED_CONTACT, CONTACTED, DISQUALIFIED, CONVERTED, LOST] |
|
|
137
|
+
| **isSearcher** | `boolean` | | [Optional] [Defaults to `undefined`] |
|
|
138
|
+
| **isLister** | `boolean` | | [Optional] [Defaults to `undefined`] |
|
|
139
|
+
| **page** | `number` | Zero-based page index (0..N) | [Optional] [Defaults to `0`] |
|
|
140
|
+
| **size** | `number` | The size of the page to be returned | [Optional] [Defaults to `20`] |
|
|
141
|
+
| **sort** | `Array<string>` | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. | [Optional] |
|
|
142
|
+
|
|
143
|
+
### Return type
|
|
144
|
+
|
|
145
|
+
[**PageLeadProjectionResponse**](PageLeadProjectionResponse.md)
|
|
146
|
+
|
|
147
|
+
### Authorization
|
|
148
|
+
|
|
149
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
150
|
+
|
|
151
|
+
### HTTP request headers
|
|
152
|
+
|
|
153
|
+
- **Content-Type**: Not defined
|
|
154
|
+
- **Accept**: `*/*`
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
### HTTP response details
|
|
158
|
+
| Status code | Description | Response headers |
|
|
159
|
+
|-------------|-------------|------------------|
|
|
160
|
+
| **200** | OK | - |
|
|
161
|
+
|
|
162
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
163
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# LocationRefRequest
|
|
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
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { LocationRefRequest } from '@homespot-sdk/api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"regionId": null,
|
|
23
|
+
"cityId": null,
|
|
24
|
+
"districtId": null,
|
|
25
|
+
"subDistrictId": null,
|
|
26
|
+
"streetId": null,
|
|
27
|
+
} satisfies LocationRefRequest
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as LocationRefRequest
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
# PageLeadProjectionResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`totalPages` | number
|
|
10
|
+
`totalElements` | number
|
|
11
|
+
`size` | number
|
|
12
|
+
`content` | [Array<LeadProjectionResponse>](LeadProjectionResponse.md)
|
|
13
|
+
`number` | number
|
|
14
|
+
`first` | boolean
|
|
15
|
+
`last` | boolean
|
|
16
|
+
`numberOfElements` | number
|
|
17
|
+
`pageable` | [PageableObject](PageableObject.md)
|
|
18
|
+
`sort` | [SortObject](SortObject.md)
|
|
19
|
+
`empty` | boolean
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import type { PageLeadProjectionResponse } from '@homespot-sdk/api'
|
|
25
|
+
|
|
26
|
+
// TODO: Update the object below with actual values
|
|
27
|
+
const example = {
|
|
28
|
+
"totalPages": null,
|
|
29
|
+
"totalElements": null,
|
|
30
|
+
"size": null,
|
|
31
|
+
"content": null,
|
|
32
|
+
"number": null,
|
|
33
|
+
"first": null,
|
|
34
|
+
"last": null,
|
|
35
|
+
"numberOfElements": null,
|
|
36
|
+
"pageable": null,
|
|
37
|
+
"sort": null,
|
|
38
|
+
"empty": null,
|
|
39
|
+
} satisfies PageLeadProjectionResponse
|
|
40
|
+
|
|
41
|
+
console.log(example)
|
|
42
|
+
|
|
43
|
+
// Convert the instance to a JSON string
|
|
44
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
45
|
+
console.log(exampleJSON)
|
|
46
|
+
|
|
47
|
+
// Parse the JSON string back to an object
|
|
48
|
+
const exampleParsed = JSON.parse(exampleJSON) as PageLeadProjectionResponse
|
|
49
|
+
console.log(exampleParsed)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
53
|
+
|
|
54
|
+
|
package/docs/PageRoleResponse.md
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`totalElements` | number
|
|
10
9
|
`totalPages` | number
|
|
10
|
+
`totalElements` | number
|
|
11
11
|
`size` | number
|
|
12
12
|
`content` | [Array<RoleResponse>](RoleResponse.md)
|
|
13
13
|
`number` | number
|
|
@@ -25,8 +25,8 @@ import type { PageRoleResponse } from '@homespot-sdk/api'
|
|
|
25
25
|
|
|
26
26
|
// TODO: Update the object below with actual values
|
|
27
27
|
const example = {
|
|
28
|
-
"totalElements": null,
|
|
29
28
|
"totalPages": null,
|
|
29
|
+
"totalElements": null,
|
|
30
30
|
"size": null,
|
|
31
31
|
"content": null,
|
|
32
32
|
"number": null,
|
package/docs/PageableObject.md
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`offset` | number
|
|
10
|
+
`unpaged` | boolean
|
|
10
11
|
`paged` | boolean
|
|
11
12
|
`pageNumber` | number
|
|
12
13
|
`pageSize` | number
|
|
13
14
|
`sort` | [SortObject](SortObject.md)
|
|
14
|
-
`unpaged` | boolean
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
|
@@ -21,11 +21,11 @@ import type { PageableObject } from '@homespot-sdk/api'
|
|
|
21
21
|
// TODO: Update the object below with actual values
|
|
22
22
|
const example = {
|
|
23
23
|
"offset": null,
|
|
24
|
+
"unpaged": null,
|
|
24
25
|
"paged": null,
|
|
25
26
|
"pageNumber": null,
|
|
26
27
|
"pageSize": null,
|
|
27
28
|
"sort": null,
|
|
28
|
-
"unpaged": null,
|
|
29
29
|
} satisfies PageableObject
|
|
30
30
|
|
|
31
31
|
console.log(example)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PriceRangeRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`min` | number
|
|
10
|
+
`max` | number
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PriceRangeRequest } from '@homespot-sdk/api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"min": null,
|
|
20
|
+
"max": null,
|
|
21
|
+
} satisfies PriceRangeRequest
|
|
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 PriceRangeRequest
|
|
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
|
+
|
|
@@ -4,81 +4,11 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
| [**getAgency**](PublicAgencyControllerApi.md#getagency) | **GET** /public/agency/{agencyId} | |
|
|
8
7
|
| [**getAgencyBySubdomain**](PublicAgencyControllerApi.md#getagencybysubdomain) | **GET** /public/agency/subdomain/{subDomain} | |
|
|
9
8
|
| [**getAllAgencies**](PublicAgencyControllerApi.md#getallagencies) | **GET** /public/agency | |
|
|
10
9
|
|
|
11
10
|
|
|
12
11
|
|
|
13
|
-
## getAgency
|
|
14
|
-
|
|
15
|
-
> AgencyProfileResponse getAgency(agencyId)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
### Example
|
|
20
|
-
|
|
21
|
-
```ts
|
|
22
|
-
import {
|
|
23
|
-
Configuration,
|
|
24
|
-
PublicAgencyControllerApi,
|
|
25
|
-
} from '@homespot-sdk/api';
|
|
26
|
-
import type { GetAgencyRequest } from '@homespot-sdk/api';
|
|
27
|
-
|
|
28
|
-
async function example() {
|
|
29
|
-
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
30
|
-
const config = new Configuration({
|
|
31
|
-
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
32
|
-
accessToken: "YOUR ACCESS TOKEN",
|
|
33
|
-
});
|
|
34
|
-
const api = new PublicAgencyControllerApi(config);
|
|
35
|
-
|
|
36
|
-
const body = {
|
|
37
|
-
// string
|
|
38
|
-
agencyId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
39
|
-
} satisfies GetAgencyRequest;
|
|
40
|
-
|
|
41
|
-
try {
|
|
42
|
-
const data = await api.getAgency(body);
|
|
43
|
-
console.log(data);
|
|
44
|
-
} catch (error) {
|
|
45
|
-
console.error(error);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// Run the test
|
|
50
|
-
example().catch(console.error);
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
### Parameters
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
| Name | Type | Description | Notes |
|
|
57
|
-
|------------- | ------------- | ------------- | -------------|
|
|
58
|
-
| **agencyId** | `string` | | [Defaults to `undefined`] |
|
|
59
|
-
|
|
60
|
-
### Return type
|
|
61
|
-
|
|
62
|
-
[**AgencyProfileResponse**](AgencyProfileResponse.md)
|
|
63
|
-
|
|
64
|
-
### Authorization
|
|
65
|
-
|
|
66
|
-
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
67
|
-
|
|
68
|
-
### HTTP request headers
|
|
69
|
-
|
|
70
|
-
- **Content-Type**: Not defined
|
|
71
|
-
- **Accept**: `*/*`
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
### HTTP response details
|
|
75
|
-
| Status code | Description | Response headers |
|
|
76
|
-
|-------------|-------------|------------------|
|
|
77
|
-
| **200** | OK | - |
|
|
78
|
-
|
|
79
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
80
|
-
|
|
81
|
-
|
|
82
12
|
## getAgencyBySubdomain
|
|
83
13
|
|
|
84
14
|
> AgencySummaryResponse getAgencyBySubdomain(subDomain)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# SearchIntentRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`propertyType` | string
|
|
10
|
+
`dealType` | string
|
|
11
|
+
`budget` | [PriceRangeRequest](PriceRangeRequest.md)
|
|
12
|
+
`targetLocation` | [LocationRefRequest](LocationRefRequest.md)
|
|
13
|
+
`area` | number
|
|
14
|
+
`numberOfRooms` | number
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { SearchIntentRequest } from '@homespot-sdk/api'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"propertyType": null,
|
|
24
|
+
"dealType": null,
|
|
25
|
+
"budget": null,
|
|
26
|
+
"targetLocation": null,
|
|
27
|
+
"area": null,
|
|
28
|
+
"numberOfRooms": null,
|
|
29
|
+
} satisfies SearchIntentRequest
|
|
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 SearchIntentRequest
|
|
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
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
# SearchIntentResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`propertyType` | string
|
|
10
|
+
`dealType` | string
|
|
11
|
+
`budgetMin` | number
|
|
12
|
+
`budgetMax` | number
|
|
13
|
+
`regionId` | number
|
|
14
|
+
`cityId` | number
|
|
15
|
+
`districtId` | number
|
|
16
|
+
`subDistrictId` | number
|
|
17
|
+
`streetId` | number
|
|
18
|
+
`area` | number
|
|
19
|
+
`numberOfRooms` | number
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import type { SearchIntentResponse } from '@homespot-sdk/api'
|
|
25
|
+
|
|
26
|
+
// TODO: Update the object below with actual values
|
|
27
|
+
const example = {
|
|
28
|
+
"propertyType": null,
|
|
29
|
+
"dealType": null,
|
|
30
|
+
"budgetMin": null,
|
|
31
|
+
"budgetMax": null,
|
|
32
|
+
"regionId": null,
|
|
33
|
+
"cityId": null,
|
|
34
|
+
"districtId": null,
|
|
35
|
+
"subDistrictId": null,
|
|
36
|
+
"streetId": null,
|
|
37
|
+
"area": null,
|
|
38
|
+
"numberOfRooms": null,
|
|
39
|
+
} satisfies SearchIntentResponse
|
|
40
|
+
|
|
41
|
+
console.log(example)
|
|
42
|
+
|
|
43
|
+
// Convert the instance to a JSON string
|
|
44
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
45
|
+
console.log(exampleJSON)
|
|
46
|
+
|
|
47
|
+
// Parse the JSON string back to an object
|
|
48
|
+
const exampleParsed = JSON.parse(exampleJSON) as SearchIntentResponse
|
|
49
|
+
console.log(exampleParsed)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
53
|
+
|
|
54
|
+
|