@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.
- package/.openapi-generator/FILES +4 -12
- package/README.md +6 -12
- package/dist/apis/LeadControllerApi.d.ts +15 -71
- package/dist/apis/LeadControllerApi.js +18 -109
- package/dist/esm/apis/LeadControllerApi.d.ts +15 -71
- package/dist/esm/apis/LeadControllerApi.js +18 -109
- package/dist/esm/models/IntentResponse.d.ts +136 -0
- package/dist/esm/models/{SearchIntentResponse.js → IntentResponse.js} +37 -26
- package/dist/esm/models/LeadIntentRequest.d.ts +114 -0
- package/dist/esm/models/{SearchIntentRequest.js → LeadIntentRequest.js} +35 -22
- package/dist/esm/models/LeadProjectionResponse.d.ts +6 -19
- package/dist/esm/models/LeadProjectionResponse.js +11 -16
- package/dist/esm/models/LocationRefRequest.d.ts +0 -6
- package/dist/esm/models/LocationRefRequest.js +0 -2
- package/dist/esm/models/PageLeadProjectionResponse.d.ts +8 -8
- package/dist/esm/models/PageLeadProjectionResponse.js +4 -4
- package/dist/esm/models/PageRoleResponse.d.ts +8 -8
- package/dist/esm/models/PageRoleResponse.js +4 -4
- package/dist/esm/models/PageableObject.d.ts +4 -4
- package/dist/esm/models/PageableObject.js +4 -4
- package/dist/esm/models/index.d.ts +2 -6
- package/dist/esm/models/index.js +2 -6
- package/dist/models/IntentResponse.d.ts +136 -0
- package/dist/models/{SearchIntentResponse.js → IntentResponse.js} +43 -32
- package/dist/models/LeadIntentRequest.d.ts +114 -0
- package/dist/models/{SearchIntentRequest.js → LeadIntentRequest.js} +41 -28
- package/dist/models/LeadProjectionResponse.d.ts +6 -19
- package/dist/models/LeadProjectionResponse.js +11 -16
- package/dist/models/LocationRefRequest.d.ts +0 -6
- package/dist/models/LocationRefRequest.js +0 -2
- package/dist/models/PageLeadProjectionResponse.d.ts +8 -8
- package/dist/models/PageLeadProjectionResponse.js +4 -4
- package/dist/models/PageRoleResponse.d.ts +8 -8
- package/dist/models/PageRoleResponse.js +4 -4
- package/dist/models/PageableObject.d.ts +4 -4
- package/dist/models/PageableObject.js +4 -4
- package/dist/models/index.d.ts +2 -6
- package/dist/models/index.js +2 -6
- package/docs/{SearchIntentResponse.md → IntentResponse.md} +12 -12
- package/docs/LeadControllerApi.md +19 -171
- package/docs/{SearchIntentRequest.md → LeadIntentRequest.md} +10 -8
- package/docs/LeadProjectionResponse.md +8 -12
- package/docs/LocationRefRequest.md +0 -2
- package/docs/PageLeadProjectionResponse.md +4 -4
- package/docs/PageRoleResponse.md +4 -4
- package/docs/PageableObject.md +4 -4
- package/package.json +1 -1
- package/src/apis/LeadControllerApi.ts +32 -206
- package/src/models/{SearchIntentResponse.ts → IntentResponse.ts} +60 -48
- package/src/models/{SearchIntentRequest.ts → LeadIntentRequest.ts} +55 -35
- package/src/models/LeadProjectionResponse.ts +21 -44
- package/src/models/LocationRefRequest.ts +0 -8
- package/src/models/PageLeadProjectionResponse.ts +12 -12
- package/src/models/PageRoleResponse.ts +12 -12
- package/src/models/PageableObject.ts +8 -8
- package/src/models/index.ts +2 -6
- package/dist/esm/models/AddressRefRequest.d.ts +0 -63
- package/dist/esm/models/AddressRefRequest.js +0 -54
- package/dist/esm/models/CoordinatesRequest.d.ts +0 -38
- package/dist/esm/models/CoordinatesRequest.js +0 -47
- package/dist/esm/models/ListingIntentRequest.d.ts +0 -98
- package/dist/esm/models/ListingIntentRequest.js +0 -89
- package/dist/esm/models/ListingIntentResponse.d.ts +0 -138
- package/dist/esm/models/ListingIntentResponse.js +0 -101
- package/dist/esm/models/SearchIntentRequest.d.ts +0 -98
- package/dist/esm/models/SearchIntentResponse.d.ts +0 -126
- package/dist/models/AddressRefRequest.d.ts +0 -63
- package/dist/models/AddressRefRequest.js +0 -61
- package/dist/models/CoordinatesRequest.d.ts +0 -38
- package/dist/models/CoordinatesRequest.js +0 -54
- package/dist/models/ListingIntentRequest.d.ts +0 -98
- package/dist/models/ListingIntentRequest.js +0 -97
- package/dist/models/ListingIntentResponse.d.ts +0 -138
- package/dist/models/ListingIntentResponse.js +0 -109
- package/dist/models/SearchIntentRequest.d.ts +0 -98
- package/dist/models/SearchIntentResponse.d.ts +0 -126
- package/docs/AddressRefRequest.md +0 -44
- package/docs/CoordinatesRequest.md +0 -36
- package/docs/ListingIntentRequest.md +0 -44
- package/docs/ListingIntentResponse.md +0 -58
- package/src/models/AddressRefRequest.ts +0 -114
- package/src/models/CoordinatesRequest.ts +0 -75
- package/src/models/ListingIntentRequest.ts +0 -160
- package/src/models/ListingIntentResponse.ts +0 -201
|
@@ -16,73 +16,73 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface IntentResponse
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface IntentResponse {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof IntentResponse
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
clientType: IntentResponseClientTypeEnum;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof IntentResponse
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
listingType: IntentResponseListingTypeEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
37
|
-
* @memberof
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IntentResponse
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
propertyType: IntentResponsePropertyTypeEnum;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof IntentResponse
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
priceMin?: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
|
49
|
-
* @memberof
|
|
49
|
+
* @memberof IntentResponse
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
priceMax?: number;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
55
|
-
* @memberof
|
|
55
|
+
* @memberof IntentResponse
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
regionId?: number;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {number}
|
|
61
|
-
* @memberof
|
|
61
|
+
* @memberof IntentResponse
|
|
62
62
|
*/
|
|
63
63
|
districtId?: number;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {number}
|
|
67
|
-
* @memberof
|
|
67
|
+
* @memberof IntentResponse
|
|
68
68
|
*/
|
|
69
69
|
subDistrictId?: number;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @type {number}
|
|
73
|
-
* @memberof
|
|
73
|
+
* @memberof IntentResponse
|
|
74
74
|
*/
|
|
75
75
|
streetId?: number;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {number}
|
|
79
|
-
* @memberof
|
|
79
|
+
* @memberof IntentResponse
|
|
80
80
|
*/
|
|
81
81
|
area?: number;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {number}
|
|
85
|
-
* @memberof
|
|
85
|
+
* @memberof IntentResponse
|
|
86
86
|
*/
|
|
87
87
|
numberOfRooms?: number;
|
|
88
88
|
}
|
|
@@ -91,7 +91,27 @@ export interface SearchIntentResponse {
|
|
|
91
91
|
/**
|
|
92
92
|
* @export
|
|
93
93
|
*/
|
|
94
|
-
export const
|
|
94
|
+
export const IntentResponseClientTypeEnum = {
|
|
95
|
+
Listing: 'LISTING',
|
|
96
|
+
Seeking: 'SEEKING'
|
|
97
|
+
} as const;
|
|
98
|
+
export type IntentResponseClientTypeEnum = typeof IntentResponseClientTypeEnum[keyof typeof IntentResponseClientTypeEnum];
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @export
|
|
102
|
+
*/
|
|
103
|
+
export const IntentResponseListingTypeEnum = {
|
|
104
|
+
Sale: 'SALE',
|
|
105
|
+
Rent: 'RENT',
|
|
106
|
+
DailyRent: 'DAILY_RENT',
|
|
107
|
+
Pledge: 'PLEDGE'
|
|
108
|
+
} as const;
|
|
109
|
+
export type IntentResponseListingTypeEnum = typeof IntentResponseListingTypeEnum[keyof typeof IntentResponseListingTypeEnum];
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @export
|
|
113
|
+
*/
|
|
114
|
+
export const IntentResponsePropertyTypeEnum = {
|
|
95
115
|
House: 'HOUSE',
|
|
96
116
|
TownHouse: 'TOWN_HOUSE',
|
|
97
117
|
CountryHouse: 'COUNTRY_HOUSE',
|
|
@@ -113,43 +133,35 @@ export const SearchIntentResponsePropertyTypeEnum = {
|
|
|
113
133
|
Warehouse: 'WAREHOUSE',
|
|
114
134
|
Garage: 'GARAGE'
|
|
115
135
|
} as const;
|
|
116
|
-
export type
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @export
|
|
120
|
-
*/
|
|
121
|
-
export const SearchIntentResponseDealTypeEnum = {
|
|
122
|
-
Buy: 'BUY',
|
|
123
|
-
Rent: 'RENT'
|
|
124
|
-
} as const;
|
|
125
|
-
export type SearchIntentResponseDealTypeEnum = typeof SearchIntentResponseDealTypeEnum[keyof typeof SearchIntentResponseDealTypeEnum];
|
|
136
|
+
export type IntentResponsePropertyTypeEnum = typeof IntentResponsePropertyTypeEnum[keyof typeof IntentResponsePropertyTypeEnum];
|
|
126
137
|
|
|
127
138
|
|
|
128
139
|
/**
|
|
129
|
-
* Check if a given object implements the
|
|
140
|
+
* Check if a given object implements the IntentResponse interface.
|
|
130
141
|
*/
|
|
131
|
-
export function
|
|
142
|
+
export function instanceOfIntentResponse(value: object): value is IntentResponse {
|
|
143
|
+
if (!('clientType' in value) || value['clientType'] === undefined) return false;
|
|
144
|
+
if (!('listingType' in value) || value['listingType'] === undefined) return false;
|
|
132
145
|
if (!('propertyType' in value) || value['propertyType'] === undefined) return false;
|
|
133
|
-
if (!('dealType' in value) || value['dealType'] === undefined) return false;
|
|
134
146
|
return true;
|
|
135
147
|
}
|
|
136
148
|
|
|
137
|
-
export function
|
|
138
|
-
return
|
|
149
|
+
export function IntentResponseFromJSON(json: any): IntentResponse {
|
|
150
|
+
return IntentResponseFromJSONTyped(json, false);
|
|
139
151
|
}
|
|
140
152
|
|
|
141
|
-
export function
|
|
153
|
+
export function IntentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntentResponse {
|
|
142
154
|
if (json == null) {
|
|
143
155
|
return json;
|
|
144
156
|
}
|
|
145
157
|
return {
|
|
146
158
|
|
|
159
|
+
'clientType': json['clientType'],
|
|
160
|
+
'listingType': json['listingType'],
|
|
147
161
|
'propertyType': json['propertyType'],
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
'budgetMax': json['budgetMax'] == null ? undefined : json['budgetMax'],
|
|
162
|
+
'priceMin': json['priceMin'] == null ? undefined : json['priceMin'],
|
|
163
|
+
'priceMax': json['priceMax'] == null ? undefined : json['priceMax'],
|
|
151
164
|
'regionId': json['regionId'] == null ? undefined : json['regionId'],
|
|
152
|
-
'cityId': json['cityId'] == null ? undefined : json['cityId'],
|
|
153
165
|
'districtId': json['districtId'] == null ? undefined : json['districtId'],
|
|
154
166
|
'subDistrictId': json['subDistrictId'] == null ? undefined : json['subDistrictId'],
|
|
155
167
|
'streetId': json['streetId'] == null ? undefined : json['streetId'],
|
|
@@ -158,23 +170,23 @@ export function SearchIntentResponseFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
158
170
|
};
|
|
159
171
|
}
|
|
160
172
|
|
|
161
|
-
export function
|
|
162
|
-
return
|
|
173
|
+
export function IntentResponseToJSON(json: any): IntentResponse {
|
|
174
|
+
return IntentResponseToJSONTyped(json, false);
|
|
163
175
|
}
|
|
164
176
|
|
|
165
|
-
export function
|
|
177
|
+
export function IntentResponseToJSONTyped(value?: IntentResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
166
178
|
if (value == null) {
|
|
167
179
|
return value;
|
|
168
180
|
}
|
|
169
181
|
|
|
170
182
|
return {
|
|
171
183
|
|
|
184
|
+
'clientType': value['clientType'],
|
|
185
|
+
'listingType': value['listingType'],
|
|
172
186
|
'propertyType': value['propertyType'],
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'budgetMax': value['budgetMax'],
|
|
187
|
+
'priceMin': value['priceMin'],
|
|
188
|
+
'priceMax': value['priceMax'],
|
|
176
189
|
'regionId': value['regionId'],
|
|
177
|
-
'cityId': value['cityId'],
|
|
178
190
|
'districtId': value['districtId'],
|
|
179
191
|
'subDistrictId': value['subDistrictId'],
|
|
180
192
|
'streetId': value['streetId'],
|
|
@@ -31,43 +31,49 @@ import {
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @export
|
|
34
|
-
* @interface
|
|
34
|
+
* @interface LeadIntentRequest
|
|
35
35
|
*/
|
|
36
|
-
export interface
|
|
36
|
+
export interface LeadIntentRequest {
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {string}
|
|
40
|
-
* @memberof
|
|
40
|
+
* @memberof LeadIntentRequest
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
clientType: LeadIntentRequestClientTypeEnum;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
46
|
-
* @memberof
|
|
46
|
+
* @memberof LeadIntentRequest
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
listingType: LeadIntentRequestListingTypeEnum;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof LeadIntentRequest
|
|
53
|
+
*/
|
|
54
|
+
propertyType: LeadIntentRequestPropertyTypeEnum;
|
|
49
55
|
/**
|
|
50
56
|
*
|
|
51
57
|
* @type {PriceRangeRequest}
|
|
52
|
-
* @memberof
|
|
58
|
+
* @memberof LeadIntentRequest
|
|
53
59
|
*/
|
|
54
|
-
|
|
60
|
+
price?: PriceRangeRequest;
|
|
55
61
|
/**
|
|
56
62
|
*
|
|
57
63
|
* @type {LocationRefRequest}
|
|
58
|
-
* @memberof
|
|
64
|
+
* @memberof LeadIntentRequest
|
|
59
65
|
*/
|
|
60
66
|
targetLocation?: LocationRefRequest;
|
|
61
67
|
/**
|
|
62
68
|
*
|
|
63
69
|
* @type {number}
|
|
64
|
-
* @memberof
|
|
70
|
+
* @memberof LeadIntentRequest
|
|
65
71
|
*/
|
|
66
72
|
area?: number;
|
|
67
73
|
/**
|
|
68
74
|
*
|
|
69
75
|
* @type {number}
|
|
70
|
-
* @memberof
|
|
76
|
+
* @memberof LeadIntentRequest
|
|
71
77
|
*/
|
|
72
78
|
numberOfRooms?: number;
|
|
73
79
|
}
|
|
@@ -76,7 +82,27 @@ export interface SearchIntentRequest {
|
|
|
76
82
|
/**
|
|
77
83
|
* @export
|
|
78
84
|
*/
|
|
79
|
-
export const
|
|
85
|
+
export const LeadIntentRequestClientTypeEnum = {
|
|
86
|
+
Listing: 'LISTING',
|
|
87
|
+
Seeking: 'SEEKING'
|
|
88
|
+
} as const;
|
|
89
|
+
export type LeadIntentRequestClientTypeEnum = typeof LeadIntentRequestClientTypeEnum[keyof typeof LeadIntentRequestClientTypeEnum];
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const LeadIntentRequestListingTypeEnum = {
|
|
95
|
+
Sale: 'SALE',
|
|
96
|
+
Rent: 'RENT',
|
|
97
|
+
DailyRent: 'DAILY_RENT',
|
|
98
|
+
Pledge: 'PLEDGE'
|
|
99
|
+
} as const;
|
|
100
|
+
export type LeadIntentRequestListingTypeEnum = typeof LeadIntentRequestListingTypeEnum[keyof typeof LeadIntentRequestListingTypeEnum];
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @export
|
|
104
|
+
*/
|
|
105
|
+
export const LeadIntentRequestPropertyTypeEnum = {
|
|
80
106
|
House: 'HOUSE',
|
|
81
107
|
TownHouse: 'TOWN_HOUSE',
|
|
82
108
|
CountryHouse: 'COUNTRY_HOUSE',
|
|
@@ -98,60 +124,54 @@ export const SearchIntentRequestPropertyTypeEnum = {
|
|
|
98
124
|
Warehouse: 'WAREHOUSE',
|
|
99
125
|
Garage: 'GARAGE'
|
|
100
126
|
} as const;
|
|
101
|
-
export type
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @export
|
|
105
|
-
*/
|
|
106
|
-
export const SearchIntentRequestDealTypeEnum = {
|
|
107
|
-
Buy: 'BUY',
|
|
108
|
-
Rent: 'RENT'
|
|
109
|
-
} as const;
|
|
110
|
-
export type SearchIntentRequestDealTypeEnum = typeof SearchIntentRequestDealTypeEnum[keyof typeof SearchIntentRequestDealTypeEnum];
|
|
127
|
+
export type LeadIntentRequestPropertyTypeEnum = typeof LeadIntentRequestPropertyTypeEnum[keyof typeof LeadIntentRequestPropertyTypeEnum];
|
|
111
128
|
|
|
112
129
|
|
|
113
130
|
/**
|
|
114
|
-
* Check if a given object implements the
|
|
131
|
+
* Check if a given object implements the LeadIntentRequest interface.
|
|
115
132
|
*/
|
|
116
|
-
export function
|
|
133
|
+
export function instanceOfLeadIntentRequest(value: object): value is LeadIntentRequest {
|
|
134
|
+
if (!('clientType' in value) || value['clientType'] === undefined) return false;
|
|
135
|
+
if (!('listingType' in value) || value['listingType'] === undefined) return false;
|
|
117
136
|
if (!('propertyType' in value) || value['propertyType'] === undefined) return false;
|
|
118
|
-
if (!('dealType' in value) || value['dealType'] === undefined) return false;
|
|
119
137
|
return true;
|
|
120
138
|
}
|
|
121
139
|
|
|
122
|
-
export function
|
|
123
|
-
return
|
|
140
|
+
export function LeadIntentRequestFromJSON(json: any): LeadIntentRequest {
|
|
141
|
+
return LeadIntentRequestFromJSONTyped(json, false);
|
|
124
142
|
}
|
|
125
143
|
|
|
126
|
-
export function
|
|
144
|
+
export function LeadIntentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadIntentRequest {
|
|
127
145
|
if (json == null) {
|
|
128
146
|
return json;
|
|
129
147
|
}
|
|
130
148
|
return {
|
|
131
149
|
|
|
150
|
+
'clientType': json['clientType'],
|
|
151
|
+
'listingType': json['listingType'],
|
|
132
152
|
'propertyType': json['propertyType'],
|
|
133
|
-
'
|
|
134
|
-
'budget': json['budget'] == null ? undefined : PriceRangeRequestFromJSON(json['budget']),
|
|
153
|
+
'price': json['price'] == null ? undefined : PriceRangeRequestFromJSON(json['price']),
|
|
135
154
|
'targetLocation': json['targetLocation'] == null ? undefined : LocationRefRequestFromJSON(json['targetLocation']),
|
|
136
155
|
'area': json['area'] == null ? undefined : json['area'],
|
|
137
156
|
'numberOfRooms': json['numberOfRooms'] == null ? undefined : json['numberOfRooms'],
|
|
138
157
|
};
|
|
139
158
|
}
|
|
140
159
|
|
|
141
|
-
export function
|
|
142
|
-
return
|
|
160
|
+
export function LeadIntentRequestToJSON(json: any): LeadIntentRequest {
|
|
161
|
+
return LeadIntentRequestToJSONTyped(json, false);
|
|
143
162
|
}
|
|
144
163
|
|
|
145
|
-
export function
|
|
164
|
+
export function LeadIntentRequestToJSONTyped(value?: LeadIntentRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
146
165
|
if (value == null) {
|
|
147
166
|
return value;
|
|
148
167
|
}
|
|
149
168
|
|
|
150
169
|
return {
|
|
151
170
|
|
|
171
|
+
'clientType': value['clientType'],
|
|
172
|
+
'listingType': value['listingType'],
|
|
152
173
|
'propertyType': value['propertyType'],
|
|
153
|
-
'
|
|
154
|
-
'budget': PriceRangeRequestToJSON(value['budget']),
|
|
174
|
+
'price': PriceRangeRequestToJSON(value['price']),
|
|
155
175
|
'targetLocation': LocationRefRequestToJSON(value['targetLocation']),
|
|
156
176
|
'area': value['area'],
|
|
157
177
|
'numberOfRooms': value['numberOfRooms'],
|
|
@@ -13,20 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { IntentResponse } from './IntentResponse';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
23
|
-
import type { SearchIntentResponse } from './SearchIntentResponse';
|
|
24
|
-
import {
|
|
25
|
-
SearchIntentResponseFromJSON,
|
|
26
|
-
SearchIntentResponseFromJSONTyped,
|
|
27
|
-
SearchIntentResponseToJSON,
|
|
28
|
-
SearchIntentResponseToJSONTyped,
|
|
29
|
-
} from './SearchIntentResponse';
|
|
18
|
+
IntentResponseFromJSON,
|
|
19
|
+
IntentResponseFromJSONTyped,
|
|
20
|
+
IntentResponseToJSON,
|
|
21
|
+
IntentResponseToJSONTyped,
|
|
22
|
+
} from './IntentResponse';
|
|
30
23
|
|
|
31
24
|
/**
|
|
32
25
|
*
|
|
@@ -81,13 +74,7 @@ export interface LeadProjectionResponse {
|
|
|
81
74
|
* @type {string}
|
|
82
75
|
* @memberof LeadProjectionResponse
|
|
83
76
|
*/
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof LeadProjectionResponse
|
|
89
|
-
*/
|
|
90
|
-
noteContent?: string;
|
|
77
|
+
note?: string;
|
|
91
78
|
/**
|
|
92
79
|
*
|
|
93
80
|
* @type {string}
|
|
@@ -105,25 +92,19 @@ export interface LeadProjectionResponse {
|
|
|
105
92
|
* @type {boolean}
|
|
106
93
|
* @memberof LeadProjectionResponse
|
|
107
94
|
*/
|
|
108
|
-
|
|
95
|
+
isSearching: boolean;
|
|
109
96
|
/**
|
|
110
97
|
*
|
|
111
98
|
* @type {boolean}
|
|
112
99
|
* @memberof LeadProjectionResponse
|
|
113
100
|
*/
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
*
|
|
117
|
-
* @type {Array<SearchIntentResponse>}
|
|
118
|
-
* @memberof LeadProjectionResponse
|
|
119
|
-
*/
|
|
120
|
-
searchIntents?: Array<SearchIntentResponse>;
|
|
101
|
+
isListing: boolean;
|
|
121
102
|
/**
|
|
122
103
|
*
|
|
123
|
-
* @type {Array<
|
|
104
|
+
* @type {Array<IntentResponse>}
|
|
124
105
|
* @memberof LeadProjectionResponse
|
|
125
106
|
*/
|
|
126
|
-
|
|
107
|
+
intents?: Array<IntentResponse>;
|
|
127
108
|
}
|
|
128
109
|
|
|
129
110
|
|
|
@@ -149,8 +130,8 @@ export function instanceOfLeadProjectionResponse(value: object): value is LeadPr
|
|
|
149
130
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
150
131
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
151
132
|
if (!('contactPhoneNumber' in value) || value['contactPhoneNumber'] === undefined) return false;
|
|
152
|
-
if (!('
|
|
153
|
-
if (!('
|
|
133
|
+
if (!('isSearching' in value) || value['isSearching'] === undefined) return false;
|
|
134
|
+
if (!('isListing' in value) || value['isListing'] === undefined) return false;
|
|
154
135
|
return true;
|
|
155
136
|
}
|
|
156
137
|
|
|
@@ -171,14 +152,12 @@ export function LeadProjectionResponseFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
171
152
|
'contactFullName': json['contactFullName'] == null ? undefined : json['contactFullName'],
|
|
172
153
|
'contactPhoneNumber': json['contactPhoneNumber'],
|
|
173
154
|
'contactEmail': json['contactEmail'] == null ? undefined : json['contactEmail'],
|
|
174
|
-
'
|
|
175
|
-
'noteContent': json['noteContent'] == null ? undefined : json['noteContent'],
|
|
155
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
176
156
|
'sourceType': json['sourceType'] == null ? undefined : json['sourceType'],
|
|
177
157
|
'sourceLink': json['sourceLink'] == null ? undefined : json['sourceLink'],
|
|
178
|
-
'
|
|
179
|
-
'
|
|
180
|
-
'
|
|
181
|
-
'listingIntents': json['listingIntents'] == null ? undefined : ((json['listingIntents'] as Array<any>).map(ListingIntentResponseFromJSON)),
|
|
158
|
+
'isSearching': json['isSearching'],
|
|
159
|
+
'isListing': json['isListing'],
|
|
160
|
+
'intents': json['intents'] == null ? undefined : ((json['intents'] as Array<any>).map(IntentResponseFromJSON)),
|
|
182
161
|
};
|
|
183
162
|
}
|
|
184
163
|
|
|
@@ -200,14 +179,12 @@ export function LeadProjectionResponseToJSONTyped(value?: LeadProjectionResponse
|
|
|
200
179
|
'contactFullName': value['contactFullName'],
|
|
201
180
|
'contactPhoneNumber': value['contactPhoneNumber'],
|
|
202
181
|
'contactEmail': value['contactEmail'],
|
|
203
|
-
'
|
|
204
|
-
'noteContent': value['noteContent'],
|
|
182
|
+
'note': value['note'],
|
|
205
183
|
'sourceType': value['sourceType'],
|
|
206
184
|
'sourceLink': value['sourceLink'],
|
|
207
|
-
'
|
|
208
|
-
'
|
|
209
|
-
'
|
|
210
|
-
'listingIntents': value['listingIntents'] == null ? undefined : ((value['listingIntents'] as Array<any>).map(ListingIntentResponseToJSON)),
|
|
185
|
+
'isSearching': value['isSearching'],
|
|
186
|
+
'isListing': value['isListing'],
|
|
187
|
+
'intents': value['intents'] == null ? undefined : ((value['intents'] as Array<any>).map(IntentResponseToJSON)),
|
|
211
188
|
};
|
|
212
189
|
}
|
|
213
190
|
|
|
@@ -25,12 +25,6 @@ export interface LocationRefRequest {
|
|
|
25
25
|
* @memberof LocationRefRequest
|
|
26
26
|
*/
|
|
27
27
|
regionId?: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof LocationRefRequest
|
|
32
|
-
*/
|
|
33
|
-
cityId?: number;
|
|
34
28
|
/**
|
|
35
29
|
*
|
|
36
30
|
* @type {number}
|
|
@@ -69,7 +63,6 @@ export function LocationRefRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
69
63
|
return {
|
|
70
64
|
|
|
71
65
|
'regionId': json['regionId'] == null ? undefined : json['regionId'],
|
|
72
|
-
'cityId': json['cityId'] == null ? undefined : json['cityId'],
|
|
73
66
|
'districtId': json['districtId'] == null ? undefined : json['districtId'],
|
|
74
67
|
'subDistrictId': json['subDistrictId'] == null ? undefined : json['subDistrictId'],
|
|
75
68
|
'streetId': json['streetId'] == null ? undefined : json['streetId'],
|
|
@@ -88,7 +81,6 @@ export function LocationRefRequestToJSONTyped(value?: LocationRefRequest | null,
|
|
|
88
81
|
return {
|
|
89
82
|
|
|
90
83
|
'regionId': value['regionId'],
|
|
91
|
-
'cityId': value['cityId'],
|
|
92
84
|
'districtId': value['districtId'],
|
|
93
85
|
'subDistrictId': value['subDistrictId'],
|
|
94
86
|
'streetId': value['streetId'],
|
|
@@ -46,13 +46,13 @@ export interface PageLeadProjectionResponse {
|
|
|
46
46
|
* @type {number}
|
|
47
47
|
* @memberof PageLeadProjectionResponse
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
totalElements?: number;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @type {number}
|
|
53
53
|
* @memberof PageLeadProjectionResponse
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
totalPages?: number;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {number}
|
|
@@ -85,22 +85,22 @@ export interface PageLeadProjectionResponse {
|
|
|
85
85
|
last?: boolean;
|
|
86
86
|
/**
|
|
87
87
|
*
|
|
88
|
-
* @type {
|
|
88
|
+
* @type {SortObject}
|
|
89
89
|
* @memberof PageLeadProjectionResponse
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
sort?: SortObject;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
|
-
* @type {
|
|
94
|
+
* @type {number}
|
|
95
95
|
* @memberof PageLeadProjectionResponse
|
|
96
96
|
*/
|
|
97
|
-
|
|
97
|
+
numberOfElements?: number;
|
|
98
98
|
/**
|
|
99
99
|
*
|
|
100
|
-
* @type {
|
|
100
|
+
* @type {PageableObject}
|
|
101
101
|
* @memberof PageLeadProjectionResponse
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
pageable?: PageableObject;
|
|
104
104
|
/**
|
|
105
105
|
*
|
|
106
106
|
* @type {boolean}
|
|
@@ -126,16 +126,16 @@ export function PageLeadProjectionResponseFromJSONTyped(json: any, ignoreDiscrim
|
|
|
126
126
|
}
|
|
127
127
|
return {
|
|
128
128
|
|
|
129
|
-
'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
|
|
130
129
|
'totalElements': json['totalElements'] == null ? undefined : json['totalElements'],
|
|
130
|
+
'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
|
|
131
131
|
'size': json['size'] == null ? undefined : json['size'],
|
|
132
132
|
'content': json['content'] == null ? undefined : ((json['content'] as Array<any>).map(LeadProjectionResponseFromJSON)),
|
|
133
133
|
'number': json['number'] == null ? undefined : json['number'],
|
|
134
134
|
'first': json['first'] == null ? undefined : json['first'],
|
|
135
135
|
'last': json['last'] == null ? undefined : json['last'],
|
|
136
|
+
'sort': json['sort'] == null ? undefined : SortObjectFromJSON(json['sort']),
|
|
136
137
|
'numberOfElements': json['numberOfElements'] == null ? undefined : json['numberOfElements'],
|
|
137
138
|
'pageable': json['pageable'] == null ? undefined : PageableObjectFromJSON(json['pageable']),
|
|
138
|
-
'sort': json['sort'] == null ? undefined : SortObjectFromJSON(json['sort']),
|
|
139
139
|
'empty': json['empty'] == null ? undefined : json['empty'],
|
|
140
140
|
};
|
|
141
141
|
}
|
|
@@ -151,16 +151,16 @@ export function PageLeadProjectionResponseToJSONTyped(value?: PageLeadProjection
|
|
|
151
151
|
|
|
152
152
|
return {
|
|
153
153
|
|
|
154
|
-
'totalPages': value['totalPages'],
|
|
155
154
|
'totalElements': value['totalElements'],
|
|
155
|
+
'totalPages': value['totalPages'],
|
|
156
156
|
'size': value['size'],
|
|
157
157
|
'content': value['content'] == null ? undefined : ((value['content'] as Array<any>).map(LeadProjectionResponseToJSON)),
|
|
158
158
|
'number': value['number'],
|
|
159
159
|
'first': value['first'],
|
|
160
160
|
'last': value['last'],
|
|
161
|
+
'sort': SortObjectToJSON(value['sort']),
|
|
161
162
|
'numberOfElements': value['numberOfElements'],
|
|
162
163
|
'pageable': PageableObjectToJSON(value['pageable']),
|
|
163
|
-
'sort': SortObjectToJSON(value['sort']),
|
|
164
164
|
'empty': value['empty'],
|
|
165
165
|
};
|
|
166
166
|
}
|