@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
@@ -16,73 +16,73 @@ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface SearchIntentResponse
19
+ * @interface IntentResponse
20
20
  */
21
- export interface SearchIntentResponse {
21
+ export interface IntentResponse {
22
22
  /**
23
23
  *
24
24
  * @type {string}
25
- * @memberof SearchIntentResponse
25
+ * @memberof IntentResponse
26
26
  */
27
- propertyType: SearchIntentResponsePropertyTypeEnum;
27
+ clientType: IntentResponseClientTypeEnum;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
- * @memberof SearchIntentResponse
31
+ * @memberof IntentResponse
32
32
  */
33
- dealType: SearchIntentResponseDealTypeEnum;
33
+ listingType: IntentResponseListingTypeEnum;
34
34
  /**
35
35
  *
36
- * @type {number}
37
- * @memberof SearchIntentResponse
36
+ * @type {string}
37
+ * @memberof IntentResponse
38
38
  */
39
- budgetMin?: number;
39
+ propertyType: IntentResponsePropertyTypeEnum;
40
40
  /**
41
41
  *
42
42
  * @type {number}
43
- * @memberof SearchIntentResponse
43
+ * @memberof IntentResponse
44
44
  */
45
- budgetMax?: number;
45
+ priceMin?: number;
46
46
  /**
47
47
  *
48
48
  * @type {number}
49
- * @memberof SearchIntentResponse
49
+ * @memberof IntentResponse
50
50
  */
51
- regionId?: number;
51
+ priceMax?: number;
52
52
  /**
53
53
  *
54
54
  * @type {number}
55
- * @memberof SearchIntentResponse
55
+ * @memberof IntentResponse
56
56
  */
57
- cityId?: number;
57
+ regionId?: number;
58
58
  /**
59
59
  *
60
60
  * @type {number}
61
- * @memberof SearchIntentResponse
61
+ * @memberof IntentResponse
62
62
  */
63
63
  districtId?: number;
64
64
  /**
65
65
  *
66
66
  * @type {number}
67
- * @memberof SearchIntentResponse
67
+ * @memberof IntentResponse
68
68
  */
69
69
  subDistrictId?: number;
70
70
  /**
71
71
  *
72
72
  * @type {number}
73
- * @memberof SearchIntentResponse
73
+ * @memberof IntentResponse
74
74
  */
75
75
  streetId?: number;
76
76
  /**
77
77
  *
78
78
  * @type {number}
79
- * @memberof SearchIntentResponse
79
+ * @memberof IntentResponse
80
80
  */
81
81
  area?: number;
82
82
  /**
83
83
  *
84
84
  * @type {number}
85
- * @memberof SearchIntentResponse
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 SearchIntentResponsePropertyTypeEnum = {
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 SearchIntentResponsePropertyTypeEnum = typeof SearchIntentResponsePropertyTypeEnum[keyof typeof SearchIntentResponsePropertyTypeEnum];
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 SearchIntentResponse interface.
140
+ * Check if a given object implements the IntentResponse interface.
130
141
  */
131
- export function instanceOfSearchIntentResponse(value: object): value is SearchIntentResponse {
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 SearchIntentResponseFromJSON(json: any): SearchIntentResponse {
138
- return SearchIntentResponseFromJSONTyped(json, false);
149
+ export function IntentResponseFromJSON(json: any): IntentResponse {
150
+ return IntentResponseFromJSONTyped(json, false);
139
151
  }
140
152
 
141
- export function SearchIntentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchIntentResponse {
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
- 'dealType': json['dealType'],
149
- 'budgetMin': json['budgetMin'] == null ? undefined : json['budgetMin'],
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 SearchIntentResponseToJSON(json: any): SearchIntentResponse {
162
- return SearchIntentResponseToJSONTyped(json, false);
173
+ export function IntentResponseToJSON(json: any): IntentResponse {
174
+ return IntentResponseToJSONTyped(json, false);
163
175
  }
164
176
 
165
- export function SearchIntentResponseToJSONTyped(value?: SearchIntentResponse | null, ignoreDiscriminator: boolean = false): any {
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
- 'dealType': value['dealType'],
174
- 'budgetMin': value['budgetMin'],
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 SearchIntentRequest
34
+ * @interface LeadIntentRequest
35
35
  */
36
- export interface SearchIntentRequest {
36
+ export interface LeadIntentRequest {
37
37
  /**
38
38
  *
39
39
  * @type {string}
40
- * @memberof SearchIntentRequest
40
+ * @memberof LeadIntentRequest
41
41
  */
42
- propertyType: SearchIntentRequestPropertyTypeEnum;
42
+ clientType: LeadIntentRequestClientTypeEnum;
43
43
  /**
44
44
  *
45
45
  * @type {string}
46
- * @memberof SearchIntentRequest
46
+ * @memberof LeadIntentRequest
47
47
  */
48
- dealType: SearchIntentRequestDealTypeEnum;
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 SearchIntentRequest
58
+ * @memberof LeadIntentRequest
53
59
  */
54
- budget?: PriceRangeRequest;
60
+ price?: PriceRangeRequest;
55
61
  /**
56
62
  *
57
63
  * @type {LocationRefRequest}
58
- * @memberof SearchIntentRequest
64
+ * @memberof LeadIntentRequest
59
65
  */
60
66
  targetLocation?: LocationRefRequest;
61
67
  /**
62
68
  *
63
69
  * @type {number}
64
- * @memberof SearchIntentRequest
70
+ * @memberof LeadIntentRequest
65
71
  */
66
72
  area?: number;
67
73
  /**
68
74
  *
69
75
  * @type {number}
70
- * @memberof SearchIntentRequest
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 SearchIntentRequestPropertyTypeEnum = {
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 SearchIntentRequestPropertyTypeEnum = typeof SearchIntentRequestPropertyTypeEnum[keyof typeof SearchIntentRequestPropertyTypeEnum];
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 SearchIntentRequest interface.
131
+ * Check if a given object implements the LeadIntentRequest interface.
115
132
  */
116
- export function instanceOfSearchIntentRequest(value: object): value is SearchIntentRequest {
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 SearchIntentRequestFromJSON(json: any): SearchIntentRequest {
123
- return SearchIntentRequestFromJSONTyped(json, false);
140
+ export function LeadIntentRequestFromJSON(json: any): LeadIntentRequest {
141
+ return LeadIntentRequestFromJSONTyped(json, false);
124
142
  }
125
143
 
126
- export function SearchIntentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchIntentRequest {
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
- 'dealType': json['dealType'],
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 SearchIntentRequestToJSON(json: any): SearchIntentRequest {
142
- return SearchIntentRequestToJSONTyped(json, false);
160
+ export function LeadIntentRequestToJSON(json: any): LeadIntentRequest {
161
+ return LeadIntentRequestToJSONTyped(json, false);
143
162
  }
144
163
 
145
- export function SearchIntentRequestToJSONTyped(value?: SearchIntentRequest | null, ignoreDiscriminator: boolean = false): any {
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
- 'dealType': value['dealType'],
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 { ListingIntentResponse } from './ListingIntentResponse';
16
+ import type { IntentResponse } from './IntentResponse';
17
17
  import {
18
- ListingIntentResponseFromJSON,
19
- ListingIntentResponseFromJSONTyped,
20
- ListingIntentResponseToJSON,
21
- ListingIntentResponseToJSONTyped,
22
- } from './ListingIntentResponse';
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
- noteTitle?: string;
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
- isSearcher: boolean;
95
+ isSearching: boolean;
109
96
  /**
110
97
  *
111
98
  * @type {boolean}
112
99
  * @memberof LeadProjectionResponse
113
100
  */
114
- isLister: boolean;
115
- /**
116
- *
117
- * @type {Array<SearchIntentResponse>}
118
- * @memberof LeadProjectionResponse
119
- */
120
- searchIntents?: Array<SearchIntentResponse>;
101
+ isListing: boolean;
121
102
  /**
122
103
  *
123
- * @type {Array<ListingIntentResponse>}
104
+ * @type {Array<IntentResponse>}
124
105
  * @memberof LeadProjectionResponse
125
106
  */
126
- listingIntents?: Array<ListingIntentResponse>;
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 (!('isSearcher' in value) || value['isSearcher'] === undefined) return false;
153
- if (!('isLister' in value) || value['isLister'] === undefined) return false;
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
- 'noteTitle': json['noteTitle'] == null ? undefined : json['noteTitle'],
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
- 'isSearcher': json['isSearcher'],
179
- 'isLister': json['isLister'],
180
- 'searchIntents': json['searchIntents'] == null ? undefined : ((json['searchIntents'] as Array<any>).map(SearchIntentResponseFromJSON)),
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
- 'noteTitle': value['noteTitle'],
204
- 'noteContent': value['noteContent'],
182
+ 'note': value['note'],
205
183
  'sourceType': value['sourceType'],
206
184
  'sourceLink': value['sourceLink'],
207
- 'isSearcher': value['isSearcher'],
208
- 'isLister': value['isLister'],
209
- 'searchIntents': value['searchIntents'] == null ? undefined : ((value['searchIntents'] as Array<any>).map(SearchIntentResponseToJSON)),
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
- totalPages?: number;
49
+ totalElements?: number;
50
50
  /**
51
51
  *
52
52
  * @type {number}
53
53
  * @memberof PageLeadProjectionResponse
54
54
  */
55
- totalElements?: number;
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 {number}
88
+ * @type {SortObject}
89
89
  * @memberof PageLeadProjectionResponse
90
90
  */
91
- numberOfElements?: number;
91
+ sort?: SortObject;
92
92
  /**
93
93
  *
94
- * @type {PageableObject}
94
+ * @type {number}
95
95
  * @memberof PageLeadProjectionResponse
96
96
  */
97
- pageable?: PageableObject;
97
+ numberOfElements?: number;
98
98
  /**
99
99
  *
100
- * @type {SortObject}
100
+ * @type {PageableObject}
101
101
  * @memberof PageLeadProjectionResponse
102
102
  */
103
- sort?: SortObject;
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
  }