@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.
- 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 +6 -6
- package/dist/esm/models/PageLeadProjectionResponse.js +2 -2
- package/dist/esm/models/PageRoleResponse.d.ts +6 -6
- 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/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 +6 -6
- package/dist/models/PageLeadProjectionResponse.js +2 -2
- package/dist/models/PageRoleResponse.d.ts +6 -6
- 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/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 +2 -2
- package/docs/PageRoleResponse.md +2 -2
- package/docs/PageableObject.md +2 -2
- 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 +8 -8
- package/src/models/PageRoleResponse.ts +8 -8
- 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
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IntentResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface IntentResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IntentResponse
|
|
22
|
+
*/
|
|
23
|
+
clientType: IntentResponseClientTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IntentResponse
|
|
28
|
+
*/
|
|
29
|
+
listingType: IntentResponseListingTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IntentResponse
|
|
34
|
+
*/
|
|
35
|
+
propertyType: IntentResponsePropertyTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IntentResponse
|
|
40
|
+
*/
|
|
41
|
+
priceMin?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof IntentResponse
|
|
46
|
+
*/
|
|
47
|
+
priceMax?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof IntentResponse
|
|
52
|
+
*/
|
|
53
|
+
regionId?: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof IntentResponse
|
|
58
|
+
*/
|
|
59
|
+
districtId?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof IntentResponse
|
|
64
|
+
*/
|
|
65
|
+
subDistrictId?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof IntentResponse
|
|
70
|
+
*/
|
|
71
|
+
streetId?: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof IntentResponse
|
|
76
|
+
*/
|
|
77
|
+
area?: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof IntentResponse
|
|
82
|
+
*/
|
|
83
|
+
numberOfRooms?: number;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export declare const IntentResponseClientTypeEnum: {
|
|
89
|
+
readonly Listing: "LISTING";
|
|
90
|
+
readonly Seeking: "SEEKING";
|
|
91
|
+
};
|
|
92
|
+
export type IntentResponseClientTypeEnum = typeof IntentResponseClientTypeEnum[keyof typeof IntentResponseClientTypeEnum];
|
|
93
|
+
/**
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
export declare const IntentResponseListingTypeEnum: {
|
|
97
|
+
readonly Sale: "SALE";
|
|
98
|
+
readonly Rent: "RENT";
|
|
99
|
+
readonly DailyRent: "DAILY_RENT";
|
|
100
|
+
readonly Pledge: "PLEDGE";
|
|
101
|
+
};
|
|
102
|
+
export type IntentResponseListingTypeEnum = typeof IntentResponseListingTypeEnum[keyof typeof IntentResponseListingTypeEnum];
|
|
103
|
+
/**
|
|
104
|
+
* @export
|
|
105
|
+
*/
|
|
106
|
+
export declare const IntentResponsePropertyTypeEnum: {
|
|
107
|
+
readonly House: "HOUSE";
|
|
108
|
+
readonly TownHouse: "TOWN_HOUSE";
|
|
109
|
+
readonly CountryHouse: "COUNTRY_HOUSE";
|
|
110
|
+
readonly Villa: "VILLA";
|
|
111
|
+
readonly Cottage: "COTTAGE";
|
|
112
|
+
readonly Apartment: "APARTMENT";
|
|
113
|
+
readonly Duplex: "DUPLEX";
|
|
114
|
+
readonly Triplex: "TRIPLEX";
|
|
115
|
+
readonly SemiBasement: "SEMI_BASEMENT";
|
|
116
|
+
readonly Attic: "ATTIC";
|
|
117
|
+
readonly AgriculturalLand: "AGRICULTURAL_LAND";
|
|
118
|
+
readonly ResidentialLand: "RESIDENTIAL_LAND";
|
|
119
|
+
readonly HotelRoom: "HOTEL_ROOM";
|
|
120
|
+
readonly MotelRoom: "MOTEL_ROOM";
|
|
121
|
+
readonly CoLivingSpace: "CO_LIVING_SPACE";
|
|
122
|
+
readonly Office: "OFFICE";
|
|
123
|
+
readonly CommercialSpace: "COMMERCIAL_SPACE";
|
|
124
|
+
readonly CoWorkingSpace: "CO_WORKING_SPACE";
|
|
125
|
+
readonly Warehouse: "WAREHOUSE";
|
|
126
|
+
readonly Garage: "GARAGE";
|
|
127
|
+
};
|
|
128
|
+
export type IntentResponsePropertyTypeEnum = typeof IntentResponsePropertyTypeEnum[keyof typeof IntentResponsePropertyTypeEnum];
|
|
129
|
+
/**
|
|
130
|
+
* Check if a given object implements the IntentResponse interface.
|
|
131
|
+
*/
|
|
132
|
+
export declare function instanceOfIntentResponse(value: object): value is IntentResponse;
|
|
133
|
+
export declare function IntentResponseFromJSON(json: any): IntentResponse;
|
|
134
|
+
export declare function IntentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntentResponse;
|
|
135
|
+
export declare function IntentResponseToJSON(json: any): IntentResponse;
|
|
136
|
+
export declare function IntentResponseToJSONTyped(value?: IntentResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,16 +13,32 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
16
|
+
exports.IntentResponsePropertyTypeEnum = exports.IntentResponseListingTypeEnum = exports.IntentResponseClientTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfIntentResponse = instanceOfIntentResponse;
|
|
18
|
+
exports.IntentResponseFromJSON = IntentResponseFromJSON;
|
|
19
|
+
exports.IntentResponseFromJSONTyped = IntentResponseFromJSONTyped;
|
|
20
|
+
exports.IntentResponseToJSON = IntentResponseToJSON;
|
|
21
|
+
exports.IntentResponseToJSONTyped = IntentResponseToJSONTyped;
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
|
-
exports.
|
|
25
|
+
exports.IntentResponseClientTypeEnum = {
|
|
26
|
+
Listing: 'LISTING',
|
|
27
|
+
Seeking: 'SEEKING'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.IntentResponseListingTypeEnum = {
|
|
33
|
+
Sale: 'SALE',
|
|
34
|
+
Rent: 'RENT',
|
|
35
|
+
DailyRent: 'DAILY_RENT',
|
|
36
|
+
Pledge: 'PLEDGE'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
exports.IntentResponsePropertyTypeEnum = {
|
|
26
42
|
House: 'HOUSE',
|
|
27
43
|
TownHouse: 'TOWN_HOUSE',
|
|
28
44
|
CountryHouse: 'COUNTRY_HOUSE',
|
|
@@ -45,36 +61,31 @@ exports.SearchIntentResponsePropertyTypeEnum = {
|
|
|
45
61
|
Garage: 'GARAGE'
|
|
46
62
|
};
|
|
47
63
|
/**
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
exports.SearchIntentResponseDealTypeEnum = {
|
|
51
|
-
Buy: 'BUY',
|
|
52
|
-
Rent: 'RENT'
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Check if a given object implements the SearchIntentResponse interface.
|
|
64
|
+
* Check if a given object implements the IntentResponse interface.
|
|
56
65
|
*/
|
|
57
|
-
function
|
|
58
|
-
if (!('
|
|
66
|
+
function instanceOfIntentResponse(value) {
|
|
67
|
+
if (!('clientType' in value) || value['clientType'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('listingType' in value) || value['listingType'] === undefined)
|
|
59
70
|
return false;
|
|
60
|
-
if (!('
|
|
71
|
+
if (!('propertyType' in value) || value['propertyType'] === undefined)
|
|
61
72
|
return false;
|
|
62
73
|
return true;
|
|
63
74
|
}
|
|
64
|
-
function
|
|
65
|
-
return
|
|
75
|
+
function IntentResponseFromJSON(json) {
|
|
76
|
+
return IntentResponseFromJSONTyped(json, false);
|
|
66
77
|
}
|
|
67
|
-
function
|
|
78
|
+
function IntentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
68
79
|
if (json == null) {
|
|
69
80
|
return json;
|
|
70
81
|
}
|
|
71
82
|
return {
|
|
83
|
+
'clientType': json['clientType'],
|
|
84
|
+
'listingType': json['listingType'],
|
|
72
85
|
'propertyType': json['propertyType'],
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'budgetMax': json['budgetMax'] == null ? undefined : json['budgetMax'],
|
|
86
|
+
'priceMin': json['priceMin'] == null ? undefined : json['priceMin'],
|
|
87
|
+
'priceMax': json['priceMax'] == null ? undefined : json['priceMax'],
|
|
76
88
|
'regionId': json['regionId'] == null ? undefined : json['regionId'],
|
|
77
|
-
'cityId': json['cityId'] == null ? undefined : json['cityId'],
|
|
78
89
|
'districtId': json['districtId'] == null ? undefined : json['districtId'],
|
|
79
90
|
'subDistrictId': json['subDistrictId'] == null ? undefined : json['subDistrictId'],
|
|
80
91
|
'streetId': json['streetId'] == null ? undefined : json['streetId'],
|
|
@@ -82,20 +93,20 @@ function SearchIntentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
93
|
'numberOfRooms': json['numberOfRooms'] == null ? undefined : json['numberOfRooms'],
|
|
83
94
|
};
|
|
84
95
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
96
|
+
function IntentResponseToJSON(json) {
|
|
97
|
+
return IntentResponseToJSONTyped(json, false);
|
|
87
98
|
}
|
|
88
|
-
function
|
|
99
|
+
function IntentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
89
100
|
if (value == null) {
|
|
90
101
|
return value;
|
|
91
102
|
}
|
|
92
103
|
return {
|
|
104
|
+
'clientType': value['clientType'],
|
|
105
|
+
'listingType': value['listingType'],
|
|
93
106
|
'propertyType': value['propertyType'],
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'budgetMax': value['budgetMax'],
|
|
107
|
+
'priceMin': value['priceMin'],
|
|
108
|
+
'priceMax': value['priceMax'],
|
|
97
109
|
'regionId': value['regionId'],
|
|
98
|
-
'cityId': value['cityId'],
|
|
99
110
|
'districtId': value['districtId'],
|
|
100
111
|
'subDistrictId': value['subDistrictId'],
|
|
101
112
|
'streetId': value['streetId'],
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { LocationRefRequest } from './LocationRefRequest';
|
|
13
|
+
import type { PriceRangeRequest } from './PriceRangeRequest';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface LeadIntentRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface LeadIntentRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof LeadIntentRequest
|
|
24
|
+
*/
|
|
25
|
+
clientType: LeadIntentRequestClientTypeEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof LeadIntentRequest
|
|
30
|
+
*/
|
|
31
|
+
listingType: LeadIntentRequestListingTypeEnum;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof LeadIntentRequest
|
|
36
|
+
*/
|
|
37
|
+
propertyType: LeadIntentRequestPropertyTypeEnum;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {PriceRangeRequest}
|
|
41
|
+
* @memberof LeadIntentRequest
|
|
42
|
+
*/
|
|
43
|
+
price?: PriceRangeRequest;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {LocationRefRequest}
|
|
47
|
+
* @memberof LeadIntentRequest
|
|
48
|
+
*/
|
|
49
|
+
targetLocation?: LocationRefRequest;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof LeadIntentRequest
|
|
54
|
+
*/
|
|
55
|
+
area?: number;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof LeadIntentRequest
|
|
60
|
+
*/
|
|
61
|
+
numberOfRooms?: number;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export declare const LeadIntentRequestClientTypeEnum: {
|
|
67
|
+
readonly Listing: "LISTING";
|
|
68
|
+
readonly Seeking: "SEEKING";
|
|
69
|
+
};
|
|
70
|
+
export type LeadIntentRequestClientTypeEnum = typeof LeadIntentRequestClientTypeEnum[keyof typeof LeadIntentRequestClientTypeEnum];
|
|
71
|
+
/**
|
|
72
|
+
* @export
|
|
73
|
+
*/
|
|
74
|
+
export declare const LeadIntentRequestListingTypeEnum: {
|
|
75
|
+
readonly Sale: "SALE";
|
|
76
|
+
readonly Rent: "RENT";
|
|
77
|
+
readonly DailyRent: "DAILY_RENT";
|
|
78
|
+
readonly Pledge: "PLEDGE";
|
|
79
|
+
};
|
|
80
|
+
export type LeadIntentRequestListingTypeEnum = typeof LeadIntentRequestListingTypeEnum[keyof typeof LeadIntentRequestListingTypeEnum];
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export declare const LeadIntentRequestPropertyTypeEnum: {
|
|
85
|
+
readonly House: "HOUSE";
|
|
86
|
+
readonly TownHouse: "TOWN_HOUSE";
|
|
87
|
+
readonly CountryHouse: "COUNTRY_HOUSE";
|
|
88
|
+
readonly Villa: "VILLA";
|
|
89
|
+
readonly Cottage: "COTTAGE";
|
|
90
|
+
readonly Apartment: "APARTMENT";
|
|
91
|
+
readonly Duplex: "DUPLEX";
|
|
92
|
+
readonly Triplex: "TRIPLEX";
|
|
93
|
+
readonly SemiBasement: "SEMI_BASEMENT";
|
|
94
|
+
readonly Attic: "ATTIC";
|
|
95
|
+
readonly AgriculturalLand: "AGRICULTURAL_LAND";
|
|
96
|
+
readonly ResidentialLand: "RESIDENTIAL_LAND";
|
|
97
|
+
readonly HotelRoom: "HOTEL_ROOM";
|
|
98
|
+
readonly MotelRoom: "MOTEL_ROOM";
|
|
99
|
+
readonly CoLivingSpace: "CO_LIVING_SPACE";
|
|
100
|
+
readonly Office: "OFFICE";
|
|
101
|
+
readonly CommercialSpace: "COMMERCIAL_SPACE";
|
|
102
|
+
readonly CoWorkingSpace: "CO_WORKING_SPACE";
|
|
103
|
+
readonly Warehouse: "WAREHOUSE";
|
|
104
|
+
readonly Garage: "GARAGE";
|
|
105
|
+
};
|
|
106
|
+
export type LeadIntentRequestPropertyTypeEnum = typeof LeadIntentRequestPropertyTypeEnum[keyof typeof LeadIntentRequestPropertyTypeEnum];
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the LeadIntentRequest interface.
|
|
109
|
+
*/
|
|
110
|
+
export declare function instanceOfLeadIntentRequest(value: object): value is LeadIntentRequest;
|
|
111
|
+
export declare function LeadIntentRequestFromJSON(json: any): LeadIntentRequest;
|
|
112
|
+
export declare function LeadIntentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadIntentRequest;
|
|
113
|
+
export declare function LeadIntentRequestToJSON(json: any): LeadIntentRequest;
|
|
114
|
+
export declare function LeadIntentRequestToJSONTyped(value?: LeadIntentRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,18 +13,34 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
16
|
+
exports.LeadIntentRequestPropertyTypeEnum = exports.LeadIntentRequestListingTypeEnum = exports.LeadIntentRequestClientTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfLeadIntentRequest = instanceOfLeadIntentRequest;
|
|
18
|
+
exports.LeadIntentRequestFromJSON = LeadIntentRequestFromJSON;
|
|
19
|
+
exports.LeadIntentRequestFromJSONTyped = LeadIntentRequestFromJSONTyped;
|
|
20
|
+
exports.LeadIntentRequestToJSON = LeadIntentRequestToJSON;
|
|
21
|
+
exports.LeadIntentRequestToJSONTyped = LeadIntentRequestToJSONTyped;
|
|
22
22
|
const LocationRefRequest_1 = require("./LocationRefRequest");
|
|
23
23
|
const PriceRangeRequest_1 = require("./PriceRangeRequest");
|
|
24
24
|
/**
|
|
25
25
|
* @export
|
|
26
26
|
*/
|
|
27
|
-
exports.
|
|
27
|
+
exports.LeadIntentRequestClientTypeEnum = {
|
|
28
|
+
Listing: 'LISTING',
|
|
29
|
+
Seeking: 'SEEKING'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.LeadIntentRequestListingTypeEnum = {
|
|
35
|
+
Sale: 'SALE',
|
|
36
|
+
Rent: 'RENT',
|
|
37
|
+
DailyRent: 'DAILY_RENT',
|
|
38
|
+
Pledge: 'PLEDGE'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
exports.LeadIntentRequestPropertyTypeEnum = {
|
|
28
44
|
House: 'HOUSE',
|
|
29
45
|
TownHouse: 'TOWN_HOUSE',
|
|
30
46
|
CountryHouse: 'COUNTRY_HOUSE',
|
|
@@ -47,49 +63,46 @@ exports.SearchIntentRequestPropertyTypeEnum = {
|
|
|
47
63
|
Garage: 'GARAGE'
|
|
48
64
|
};
|
|
49
65
|
/**
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
exports.SearchIntentRequestDealTypeEnum = {
|
|
53
|
-
Buy: 'BUY',
|
|
54
|
-
Rent: 'RENT'
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Check if a given object implements the SearchIntentRequest interface.
|
|
66
|
+
* Check if a given object implements the LeadIntentRequest interface.
|
|
58
67
|
*/
|
|
59
|
-
function
|
|
60
|
-
if (!('
|
|
68
|
+
function instanceOfLeadIntentRequest(value) {
|
|
69
|
+
if (!('clientType' in value) || value['clientType'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
if (!('listingType' in value) || value['listingType'] === undefined)
|
|
61
72
|
return false;
|
|
62
|
-
if (!('
|
|
73
|
+
if (!('propertyType' in value) || value['propertyType'] === undefined)
|
|
63
74
|
return false;
|
|
64
75
|
return true;
|
|
65
76
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
77
|
+
function LeadIntentRequestFromJSON(json) {
|
|
78
|
+
return LeadIntentRequestFromJSONTyped(json, false);
|
|
68
79
|
}
|
|
69
|
-
function
|
|
80
|
+
function LeadIntentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
70
81
|
if (json == null) {
|
|
71
82
|
return json;
|
|
72
83
|
}
|
|
73
84
|
return {
|
|
85
|
+
'clientType': json['clientType'],
|
|
86
|
+
'listingType': json['listingType'],
|
|
74
87
|
'propertyType': json['propertyType'],
|
|
75
|
-
'
|
|
76
|
-
'budget': json['budget'] == null ? undefined : (0, PriceRangeRequest_1.PriceRangeRequestFromJSON)(json['budget']),
|
|
88
|
+
'price': json['price'] == null ? undefined : (0, PriceRangeRequest_1.PriceRangeRequestFromJSON)(json['price']),
|
|
77
89
|
'targetLocation': json['targetLocation'] == null ? undefined : (0, LocationRefRequest_1.LocationRefRequestFromJSON)(json['targetLocation']),
|
|
78
90
|
'area': json['area'] == null ? undefined : json['area'],
|
|
79
91
|
'numberOfRooms': json['numberOfRooms'] == null ? undefined : json['numberOfRooms'],
|
|
80
92
|
};
|
|
81
93
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
94
|
+
function LeadIntentRequestToJSON(json) {
|
|
95
|
+
return LeadIntentRequestToJSONTyped(json, false);
|
|
84
96
|
}
|
|
85
|
-
function
|
|
97
|
+
function LeadIntentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
86
98
|
if (value == null) {
|
|
87
99
|
return value;
|
|
88
100
|
}
|
|
89
101
|
return {
|
|
102
|
+
'clientType': value['clientType'],
|
|
103
|
+
'listingType': value['listingType'],
|
|
90
104
|
'propertyType': value['propertyType'],
|
|
91
|
-
'
|
|
92
|
-
'budget': (0, PriceRangeRequest_1.PriceRangeRequestToJSON)(value['budget']),
|
|
105
|
+
'price': (0, PriceRangeRequest_1.PriceRangeRequestToJSON)(value['price']),
|
|
93
106
|
'targetLocation': (0, LocationRefRequest_1.LocationRefRequestToJSON)(value['targetLocation']),
|
|
94
107
|
'area': value['area'],
|
|
95
108
|
'numberOfRooms': value['numberOfRooms'],
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type { SearchIntentResponse } from './SearchIntentResponse';
|
|
12
|
+
import type { IntentResponse } from './IntentResponse';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -64,13 +63,7 @@ export interface LeadProjectionResponse {
|
|
|
64
63
|
* @type {string}
|
|
65
64
|
* @memberof LeadProjectionResponse
|
|
66
65
|
*/
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof LeadProjectionResponse
|
|
72
|
-
*/
|
|
73
|
-
noteContent?: string;
|
|
66
|
+
note?: string;
|
|
74
67
|
/**
|
|
75
68
|
*
|
|
76
69
|
* @type {string}
|
|
@@ -88,25 +81,19 @@ export interface LeadProjectionResponse {
|
|
|
88
81
|
* @type {boolean}
|
|
89
82
|
* @memberof LeadProjectionResponse
|
|
90
83
|
*/
|
|
91
|
-
|
|
84
|
+
isSearching: boolean;
|
|
92
85
|
/**
|
|
93
86
|
*
|
|
94
87
|
* @type {boolean}
|
|
95
88
|
* @memberof LeadProjectionResponse
|
|
96
89
|
*/
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
*
|
|
100
|
-
* @type {Array<SearchIntentResponse>}
|
|
101
|
-
* @memberof LeadProjectionResponse
|
|
102
|
-
*/
|
|
103
|
-
searchIntents?: Array<SearchIntentResponse>;
|
|
90
|
+
isListing: boolean;
|
|
104
91
|
/**
|
|
105
92
|
*
|
|
106
|
-
* @type {Array<
|
|
93
|
+
* @type {Array<IntentResponse>}
|
|
107
94
|
* @memberof LeadProjectionResponse
|
|
108
95
|
*/
|
|
109
|
-
|
|
96
|
+
intents?: Array<IntentResponse>;
|
|
110
97
|
}
|
|
111
98
|
/**
|
|
112
99
|
* @export
|
|
@@ -19,8 +19,7 @@ exports.LeadProjectionResponseFromJSON = LeadProjectionResponseFromJSON;
|
|
|
19
19
|
exports.LeadProjectionResponseFromJSONTyped = LeadProjectionResponseFromJSONTyped;
|
|
20
20
|
exports.LeadProjectionResponseToJSON = LeadProjectionResponseToJSON;
|
|
21
21
|
exports.LeadProjectionResponseToJSONTyped = LeadProjectionResponseToJSONTyped;
|
|
22
|
-
const
|
|
23
|
-
const SearchIntentResponse_1 = require("./SearchIntentResponse");
|
|
22
|
+
const IntentResponse_1 = require("./IntentResponse");
|
|
24
23
|
/**
|
|
25
24
|
* @export
|
|
26
25
|
*/
|
|
@@ -44,9 +43,9 @@ function instanceOfLeadProjectionResponse(value) {
|
|
|
44
43
|
return false;
|
|
45
44
|
if (!('contactPhoneNumber' in value) || value['contactPhoneNumber'] === undefined)
|
|
46
45
|
return false;
|
|
47
|
-
if (!('
|
|
46
|
+
if (!('isSearching' in value) || value['isSearching'] === undefined)
|
|
48
47
|
return false;
|
|
49
|
-
if (!('
|
|
48
|
+
if (!('isListing' in value) || value['isListing'] === undefined)
|
|
50
49
|
return false;
|
|
51
50
|
return true;
|
|
52
51
|
}
|
|
@@ -65,14 +64,12 @@ function LeadProjectionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
64
|
'contactFullName': json['contactFullName'] == null ? undefined : json['contactFullName'],
|
|
66
65
|
'contactPhoneNumber': json['contactPhoneNumber'],
|
|
67
66
|
'contactEmail': json['contactEmail'] == null ? undefined : json['contactEmail'],
|
|
68
|
-
'
|
|
69
|
-
'noteContent': json['noteContent'] == null ? undefined : json['noteContent'],
|
|
67
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
70
68
|
'sourceType': json['sourceType'] == null ? undefined : json['sourceType'],
|
|
71
69
|
'sourceLink': json['sourceLink'] == null ? undefined : json['sourceLink'],
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'listingIntents': json['listingIntents'] == null ? undefined : (json['listingIntents'].map(ListingIntentResponse_1.ListingIntentResponseFromJSON)),
|
|
70
|
+
'isSearching': json['isSearching'],
|
|
71
|
+
'isListing': json['isListing'],
|
|
72
|
+
'intents': json['intents'] == null ? undefined : (json['intents'].map(IntentResponse_1.IntentResponseFromJSON)),
|
|
76
73
|
};
|
|
77
74
|
}
|
|
78
75
|
function LeadProjectionResponseToJSON(json) {
|
|
@@ -90,13 +87,11 @@ function LeadProjectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
90
87
|
'contactFullName': value['contactFullName'],
|
|
91
88
|
'contactPhoneNumber': value['contactPhoneNumber'],
|
|
92
89
|
'contactEmail': value['contactEmail'],
|
|
93
|
-
'
|
|
94
|
-
'noteContent': value['noteContent'],
|
|
90
|
+
'note': value['note'],
|
|
95
91
|
'sourceType': value['sourceType'],
|
|
96
92
|
'sourceLink': value['sourceLink'],
|
|
97
|
-
'
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'listingIntents': value['listingIntents'] == null ? undefined : (value['listingIntents'].map(ListingIntentResponse_1.ListingIntentResponseToJSON)),
|
|
93
|
+
'isSearching': value['isSearching'],
|
|
94
|
+
'isListing': value['isListing'],
|
|
95
|
+
'intents': value['intents'] == null ? undefined : (value['intents'].map(IntentResponse_1.IntentResponseToJSON)),
|
|
101
96
|
};
|
|
102
97
|
}
|
|
@@ -33,7 +33,6 @@ function LocationRefRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'regionId': json['regionId'] == null ? undefined : json['regionId'],
|
|
36
|
-
'cityId': json['cityId'] == null ? undefined : json['cityId'],
|
|
37
36
|
'districtId': json['districtId'] == null ? undefined : json['districtId'],
|
|
38
37
|
'subDistrictId': json['subDistrictId'] == null ? undefined : json['subDistrictId'],
|
|
39
38
|
'streetId': json['streetId'] == null ? undefined : json['streetId'],
|
|
@@ -48,7 +47,6 @@ function LocationRefRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
47
|
}
|
|
49
48
|
return {
|
|
50
49
|
'regionId': value['regionId'],
|
|
51
|
-
'cityId': value['cityId'],
|
|
52
50
|
'districtId': value['districtId'],
|
|
53
51
|
'subDistrictId': value['subDistrictId'],
|
|
54
52
|
'streetId': value['streetId'],
|
|
@@ -62,22 +62,22 @@ export interface PageLeadProjectionResponse {
|
|
|
62
62
|
last?: boolean;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
|
-
* @type {
|
|
65
|
+
* @type {SortObject}
|
|
66
66
|
* @memberof PageLeadProjectionResponse
|
|
67
67
|
*/
|
|
68
|
-
|
|
68
|
+
sort?: SortObject;
|
|
69
69
|
/**
|
|
70
70
|
*
|
|
71
|
-
* @type {
|
|
71
|
+
* @type {number}
|
|
72
72
|
* @memberof PageLeadProjectionResponse
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
numberOfElements?: number;
|
|
75
75
|
/**
|
|
76
76
|
*
|
|
77
|
-
* @type {
|
|
77
|
+
* @type {PageableObject}
|
|
78
78
|
* @memberof PageLeadProjectionResponse
|
|
79
79
|
*/
|
|
80
|
-
|
|
80
|
+
pageable?: PageableObject;
|
|
81
81
|
/**
|
|
82
82
|
*
|
|
83
83
|
* @type {boolean}
|
|
@@ -42,9 +42,9 @@ function PageLeadProjectionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'number': json['number'] == null ? undefined : json['number'],
|
|
43
43
|
'first': json['first'] == null ? undefined : json['first'],
|
|
44
44
|
'last': json['last'] == null ? undefined : json['last'],
|
|
45
|
+
'sort': json['sort'] == null ? undefined : (0, SortObject_1.SortObjectFromJSON)(json['sort']),
|
|
45
46
|
'numberOfElements': json['numberOfElements'] == null ? undefined : json['numberOfElements'],
|
|
46
47
|
'pageable': json['pageable'] == null ? undefined : (0, PageableObject_1.PageableObjectFromJSON)(json['pageable']),
|
|
47
|
-
'sort': json['sort'] == null ? undefined : (0, SortObject_1.SortObjectFromJSON)(json['sort']),
|
|
48
48
|
'empty': json['empty'] == null ? undefined : json['empty'],
|
|
49
49
|
};
|
|
50
50
|
}
|
|
@@ -63,9 +63,9 @@ function PageLeadProjectionResponseToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
63
63
|
'number': value['number'],
|
|
64
64
|
'first': value['first'],
|
|
65
65
|
'last': value['last'],
|
|
66
|
+
'sort': (0, SortObject_1.SortObjectToJSON)(value['sort']),
|
|
66
67
|
'numberOfElements': value['numberOfElements'],
|
|
67
68
|
'pageable': (0, PageableObject_1.PageableObjectToJSON)(value['pageable']),
|
|
68
|
-
'sort': (0, SortObject_1.SortObjectToJSON)(value['sort']),
|
|
69
69
|
'empty': value['empty'],
|
|
70
70
|
};
|
|
71
71
|
}
|