@sweepbright/api-client 0.30.6 → 0.30.7
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/dist/common/currencies.d.ts +50 -0
- package/dist/common/currencies.js.map +1 -0
- package/dist/common/types.d.ts +1 -0
- package/dist/{src/common → common}/types.js.map +1 -1
- package/dist/entities/office.d.ts +183 -0
- package/dist/entities/office.js.map +1 -0
- package/dist/entities/property.d.ts +518 -0
- package/dist/entities/property.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js.map +1 -0
- package/dist/resources/channel_accounts.d.ts +15 -0
- package/dist/resources/channel_accounts.js.map +1 -0
- package/dist/resources/channels.d.ts +16 -0
- package/dist/resources/channels.js.map +1 -0
- package/dist/resources/companies.d.ts +7 -0
- package/dist/resources/companies.js.map +1 -0
- package/dist/resources/contact_preferences.d.ts +6 -0
- package/dist/resources/contact_preferences.js.map +1 -0
- package/dist/resources/contacts.d.ts +14 -0
- package/dist/resources/contacts.js.map +1 -0
- package/dist/resources/estates.d.ts +43 -0
- package/dist/resources/estates.js.map +1 -0
- package/dist/resources/leads.d.ts +39 -0
- package/dist/resources/leads.js.map +1 -0
- package/dist/resources/negotiators.d.ts +9 -0
- package/dist/resources/negotiators.js.map +1 -0
- package/dist/resources/offices.d.ts +7 -0
- package/dist/resources/offices.js.map +1 -0
- package/dist/types.d.ts +75 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.js.map +1 -0
- package/package.json +2 -2
- package/dist/mockServer.js +0 -27
- package/dist/mockServer.js.map +0 -1
- package/dist/src/__tests__/auth.test.js +0 -15
- package/dist/src/__tests__/auth.test.js.map +0 -1
- package/dist/src/__tests__/channels.test.js +0 -77
- package/dist/src/__tests__/channels.test.js.map +0 -1
- package/dist/src/__tests__/contacts.test.js +0 -61
- package/dist/src/__tests__/contacts.test.js.map +0 -1
- package/dist/src/__tests__/estates.test.js +0 -43
- package/dist/src/__tests__/estates.test.js.map +0 -1
- package/dist/src/__tests__/leads.test.js +0 -55
- package/dist/src/__tests__/leads.test.js.map +0 -1
- package/dist/src/common/currencies.js.map +0 -1
- package/dist/src/entities/office.js.map +0 -1
- package/dist/src/entities/property.js.map +0 -1
- package/dist/src/index.js.map +0 -1
- package/dist/src/resources/channel_accounts.js.map +0 -1
- package/dist/src/resources/channels.js.map +0 -1
- package/dist/src/resources/companies.js.map +0 -1
- package/dist/src/resources/contact_preferences.js.map +0 -1
- package/dist/src/resources/contacts.js.map +0 -1
- package/dist/src/resources/estates.js.map +0 -1
- package/dist/src/resources/leads.js.map +0 -1
- package/dist/src/resources/negotiators.js.map +0 -1
- package/dist/src/resources/offices.js.map +0 -1
- package/dist/src/types.js.map +0 -1
- package/dist/src/utils.js.map +0 -1
- /package/dist/{src/common → common}/currencies.js +0 -0
- /package/dist/{src/common → common}/types.js +0 -0
- /package/dist/{src/entities → entities}/office.js +0 -0
- /package/dist/{src/entities → entities}/property.js +0 -0
- /package/dist/{src/index.js → index.js} +0 -0
- /package/dist/{src/resources → resources}/channel_accounts.js +0 -0
- /package/dist/{src/resources → resources}/channels.js +0 -0
- /package/dist/{src/resources → resources}/companies.js +0 -0
- /package/dist/{src/resources → resources}/contact_preferences.js +0 -0
- /package/dist/{src/resources → resources}/contacts.js +0 -0
- /package/dist/{src/resources → resources}/estates.js +0 -0
- /package/dist/{src/resources → resources}/leads.js +0 -0
- /package/dist/{src/resources → resources}/negotiators.js +0 -0
- /package/dist/{src/resources → resources}/offices.js +0 -0
- /package/dist/{src/types.js → types.js} +0 -0
- /package/dist/{src/utils.js → utils.js} +0 -0
|
@@ -0,0 +1,518 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import * as fs from 'fs';
|
|
3
|
+
import { Currency } from '../common/currencies';
|
|
4
|
+
import { Maybe } from '../common/types';
|
|
5
|
+
export declare enum ADScale {
|
|
6
|
+
A = "A",
|
|
7
|
+
B = "B",
|
|
8
|
+
C = "C",
|
|
9
|
+
D = "D"
|
|
10
|
+
}
|
|
11
|
+
export declare enum Amenity {
|
|
12
|
+
Attic = "attic",
|
|
13
|
+
Balcony = "balcony",
|
|
14
|
+
Basement = "basement",
|
|
15
|
+
ClimateControl = "climate_control",
|
|
16
|
+
Code = "code",
|
|
17
|
+
CoolingRoom = "cooling_room",
|
|
18
|
+
DisplayWindow = "display_window",
|
|
19
|
+
Drainage = "drainage",
|
|
20
|
+
ElectricalGate = "electrical_gate",
|
|
21
|
+
ExteriorParking = "exterior_parking",
|
|
22
|
+
Fence = "fence",
|
|
23
|
+
Fenced = "fenced",
|
|
24
|
+
Garden = "garden",
|
|
25
|
+
Guesthouse = "guesthouse",
|
|
26
|
+
InteriorParking = "interior_parking",
|
|
27
|
+
KeyCard = "key_card",
|
|
28
|
+
Lift = "lift",
|
|
29
|
+
ManualGate = "manual_gate",
|
|
30
|
+
Parking = "parking",
|
|
31
|
+
Pool = "pool",
|
|
32
|
+
PrintAndCopyArea = "print_and_copy_area",
|
|
33
|
+
ReceptionArea = "reception_area",
|
|
34
|
+
RoadAccess = "road_access",
|
|
35
|
+
ServerRoom = "server_room",
|
|
36
|
+
SewerAccess = "sewer_access",
|
|
37
|
+
StorageSpace = "storage_space",
|
|
38
|
+
Terrace = "terrace",
|
|
39
|
+
UtilitiesAccess = "utilities_access",
|
|
40
|
+
WaitingArea = "waiting_area",
|
|
41
|
+
WaterAccess = "water_access"
|
|
42
|
+
}
|
|
43
|
+
export declare enum UnitOfMeasurement {
|
|
44
|
+
cm = "cm",
|
|
45
|
+
inch = "inch",
|
|
46
|
+
sq_m = "sq_m",
|
|
47
|
+
sq_ft = "sq_ft"
|
|
48
|
+
}
|
|
49
|
+
export declare enum MeasurementSystem {
|
|
50
|
+
Metric = "metric",
|
|
51
|
+
Imperial = "imperial"
|
|
52
|
+
}
|
|
53
|
+
export declare enum AreaType {
|
|
54
|
+
Bathrooms = "bathrooms",
|
|
55
|
+
Bedrooms = "bedrooms",
|
|
56
|
+
ClosedOfficeSpaces = "closed_office_spaces",
|
|
57
|
+
ConferenceRooms = "conference_rooms",
|
|
58
|
+
Floors = "floors",
|
|
59
|
+
Kitchens = "kitchens",
|
|
60
|
+
LivingRoom = "living_room",
|
|
61
|
+
ManufacturingAreas = "manufacturing_areas",
|
|
62
|
+
MeetingRooms = "meeting_rooms",
|
|
63
|
+
OpenOfficeSpaces = "open_office_spaces",
|
|
64
|
+
ParkingSpaces = "parking_spaces",
|
|
65
|
+
Showrooms = "showrooms",
|
|
66
|
+
StorageRooms = "storage_rooms",
|
|
67
|
+
Toilets = "toilets"
|
|
68
|
+
}
|
|
69
|
+
export declare enum PropertyStatus {
|
|
70
|
+
prospect = "prospect",
|
|
71
|
+
lost = "lost",
|
|
72
|
+
available = "available",
|
|
73
|
+
rented = "rented",
|
|
74
|
+
sold = "sold",
|
|
75
|
+
bid = "bid",
|
|
76
|
+
option = "option",
|
|
77
|
+
under_contract = "under_contract"
|
|
78
|
+
}
|
|
79
|
+
export declare enum PropertySubType {
|
|
80
|
+
duplex = "duplex",
|
|
81
|
+
agricultural = "agricultural",
|
|
82
|
+
pasture_land = "pasture_land",
|
|
83
|
+
private_garage = "private_garage",
|
|
84
|
+
loft = "loft",
|
|
85
|
+
recreational = "recreational",
|
|
86
|
+
investment_property = "investment_property",
|
|
87
|
+
mansion = "mansion",
|
|
88
|
+
terraced = "terraced",
|
|
89
|
+
townhouse = "townhouse",
|
|
90
|
+
condo = "condo",
|
|
91
|
+
penthouse = "penthouse",
|
|
92
|
+
farm = "farm",
|
|
93
|
+
cottage = "cottage",
|
|
94
|
+
buildable = "buildable",
|
|
95
|
+
villa = "villa",
|
|
96
|
+
retail = "retail",
|
|
97
|
+
covered_outdoor_space = "covered_outdoor_space",
|
|
98
|
+
indoor_parking_space = "indoor_parking_space",
|
|
99
|
+
flex_office = "flex_office",
|
|
100
|
+
open_office = "open_office",
|
|
101
|
+
industrial = "industrial",
|
|
102
|
+
restaurant_and_cafe = "restaurant_and_cafe",
|
|
103
|
+
student_accommodation = "student_accommodation",
|
|
104
|
+
leisure_and_sports = "leasure_and_sports",
|
|
105
|
+
outdoor_parking_space = "outdoor_parking_space",
|
|
106
|
+
coworking = "coworking",
|
|
107
|
+
warehouse = "warehouse",
|
|
108
|
+
shop = "shop",
|
|
109
|
+
semi_detached = "semi_detached",
|
|
110
|
+
healthcare = "healthcare",
|
|
111
|
+
detached = "detached",
|
|
112
|
+
bungalow = "bungalow"
|
|
113
|
+
}
|
|
114
|
+
export declare enum PropertyType {
|
|
115
|
+
apartment = "apartment",
|
|
116
|
+
house = "house",
|
|
117
|
+
land = "land",
|
|
118
|
+
office = "office",
|
|
119
|
+
parking = "parking",
|
|
120
|
+
commercial = "commercial"
|
|
121
|
+
}
|
|
122
|
+
export declare enum Negotiation {
|
|
123
|
+
sale = "sale",
|
|
124
|
+
let = "let"
|
|
125
|
+
}
|
|
126
|
+
export declare enum Condition {
|
|
127
|
+
new = "new",
|
|
128
|
+
good = "good",
|
|
129
|
+
mint = "mint",
|
|
130
|
+
poor = "poor",
|
|
131
|
+
fair = "fair"
|
|
132
|
+
}
|
|
133
|
+
export declare enum Orientation {
|
|
134
|
+
N = "N",
|
|
135
|
+
S = "S",
|
|
136
|
+
E = "E",
|
|
137
|
+
W = "W",
|
|
138
|
+
NE = "NE",
|
|
139
|
+
NW = "NW",
|
|
140
|
+
SE = "SE",
|
|
141
|
+
SW = "SW"
|
|
142
|
+
}
|
|
143
|
+
export declare enum EnergyCategory {
|
|
144
|
+
A = "A",
|
|
145
|
+
B = "B",
|
|
146
|
+
C = "C",
|
|
147
|
+
D = "D",
|
|
148
|
+
E = "E",
|
|
149
|
+
F = "F",
|
|
150
|
+
G = "G"
|
|
151
|
+
}
|
|
152
|
+
export declare enum EnergyCategoryExtended {
|
|
153
|
+
A_PLUS_PLUS = "A++",
|
|
154
|
+
A_PLUS = "A+",
|
|
155
|
+
A = "A",
|
|
156
|
+
B = "B",
|
|
157
|
+
C = "C",
|
|
158
|
+
D = "D",
|
|
159
|
+
E = "E",
|
|
160
|
+
F = "F",
|
|
161
|
+
G = "G"
|
|
162
|
+
}
|
|
163
|
+
export declare enum EnergyReport {
|
|
164
|
+
conform = "conform",
|
|
165
|
+
not_conform = "not_conform",
|
|
166
|
+
no_report = "no_report",
|
|
167
|
+
not_applicable = "not_applicable"
|
|
168
|
+
}
|
|
169
|
+
export declare enum FloodRisk {
|
|
170
|
+
no_flood_risk_area = "no_flood_risk_area",
|
|
171
|
+
potential_flood_sensitive_area = "potential_flood_sensitive_area",
|
|
172
|
+
effective_flood_sensitive_area = "effective_flood_sensitive_area"
|
|
173
|
+
}
|
|
174
|
+
export declare enum Shape {
|
|
175
|
+
flat = "flat",
|
|
176
|
+
sloped = "sloped",
|
|
177
|
+
wooded = "wooded",
|
|
178
|
+
has_rivers_lakes_or_ponds = "has_rivers_lakes_or_ponds",
|
|
179
|
+
single = "single",
|
|
180
|
+
double = "double"
|
|
181
|
+
}
|
|
182
|
+
export declare enum LandUseDesignation {
|
|
183
|
+
residential = "residential",
|
|
184
|
+
mixed_residential = "mixed_residential",
|
|
185
|
+
industrial = "industrial",
|
|
186
|
+
recreational = "recreational",
|
|
187
|
+
park = "park",
|
|
188
|
+
area_with_economical_activity = "area_with_economical_activity",
|
|
189
|
+
forest_area = "forest_area",
|
|
190
|
+
agricultural = "agricultural",
|
|
191
|
+
nature_area = "nature_area",
|
|
192
|
+
natural_reserve = "natural_reserve",
|
|
193
|
+
residential_area_with_cultural_historical_value = "residential_area_with_cultural_historical_value",
|
|
194
|
+
industrial_area_for_sme = "industrial_area_for_sme",
|
|
195
|
+
day_recreation_area = "day_recreation_area",
|
|
196
|
+
other = "other"
|
|
197
|
+
}
|
|
198
|
+
export interface Regulations {
|
|
199
|
+
heritage_list?: Maybe<boolean>;
|
|
200
|
+
as_build_report?: Maybe<boolean>;
|
|
201
|
+
building_permit?: Maybe<boolean>;
|
|
202
|
+
expropriation_plan?: Maybe<boolean>;
|
|
203
|
+
registered_building?: Maybe<boolean>;
|
|
204
|
+
urban_planning_breach?: Maybe<boolean>;
|
|
205
|
+
site_untapped_activity?: Maybe<boolean>;
|
|
206
|
+
priority_purchase_right?: Maybe<boolean>;
|
|
207
|
+
subdivision_authorisation?: Maybe<boolean>;
|
|
208
|
+
urban_planning_certificate?: Maybe<boolean>;
|
|
209
|
+
pending_legal_proceedings?: Maybe<boolean>;
|
|
210
|
+
asbestos_certificate?: Maybe<boolean>;
|
|
211
|
+
asbestos_certificate_reference?: Maybe<string>;
|
|
212
|
+
zone_subject_to_rent_control?: Maybe<boolean>;
|
|
213
|
+
ongoing_litigation?: Maybe<boolean>;
|
|
214
|
+
renovation_obligation?: Maybe<boolean>;
|
|
215
|
+
}
|
|
216
|
+
export interface PropertyAndLand {
|
|
217
|
+
flood_risk?: Maybe<FloodRisk>;
|
|
218
|
+
purchased_year?: Maybe<number | string>;
|
|
219
|
+
cadastral_income?: Maybe<number>;
|
|
220
|
+
land_use_designation?: Maybe<LandUseDesignation>;
|
|
221
|
+
flood_risk_plot_score?: Maybe<ADScale>;
|
|
222
|
+
flood_risk_building_score?: Maybe<ADScale>;
|
|
223
|
+
}
|
|
224
|
+
export interface Energy {
|
|
225
|
+
epc_value?: Maybe<number>;
|
|
226
|
+
epc_category?: Maybe<EnergyCategoryExtended>;
|
|
227
|
+
epc_reference?: Maybe<string>;
|
|
228
|
+
co2_emissions?: Maybe<number>;
|
|
229
|
+
e_level?: Maybe<number>;
|
|
230
|
+
report_electricity_gas?: Maybe<EnergyReport>;
|
|
231
|
+
report_fuel_tank?: Maybe<EnergyReport>;
|
|
232
|
+
total_epc_value?: Maybe<number>;
|
|
233
|
+
dpe?: Maybe<EnergyCategory>;
|
|
234
|
+
greenhouse_emissions?: Maybe<EnergyCategory>;
|
|
235
|
+
}
|
|
236
|
+
export interface LegalAttributes {
|
|
237
|
+
energy?: Maybe<Energy>;
|
|
238
|
+
regulations?: Maybe<Regulations>;
|
|
239
|
+
legal_mentions?: Maybe<Record<string, string>>;
|
|
240
|
+
property_and_land?: Maybe<PropertyAndLand>;
|
|
241
|
+
}
|
|
242
|
+
export interface Price {
|
|
243
|
+
amount: number;
|
|
244
|
+
currency: Currency;
|
|
245
|
+
}
|
|
246
|
+
export interface PropertyPrice {
|
|
247
|
+
costs?: Maybe<Record<string, string>>;
|
|
248
|
+
taxes?: Maybe<Record<string, string>>;
|
|
249
|
+
current_price?: Maybe<Price>;
|
|
250
|
+
published_price?: Maybe<Price>;
|
|
251
|
+
yearly_budgeted_building_costs?: Maybe<Price>;
|
|
252
|
+
recurring_costs?: Maybe<Price>;
|
|
253
|
+
property_tax?: Maybe<Price>;
|
|
254
|
+
vat_regime?: Maybe<number>;
|
|
255
|
+
guarantee?: Maybe<Price>;
|
|
256
|
+
}
|
|
257
|
+
export interface RenovationAttributes {
|
|
258
|
+
year?: Maybe<number | string>;
|
|
259
|
+
description?: Maybe<string>;
|
|
260
|
+
}
|
|
261
|
+
export interface ConstructionAttributes {
|
|
262
|
+
year?: Maybe<number | string>;
|
|
263
|
+
architect?: Maybe<string>;
|
|
264
|
+
residential_lots?: Maybe<number>;
|
|
265
|
+
}
|
|
266
|
+
export interface BuildingAttributes {
|
|
267
|
+
renovation?: Maybe<RenovationAttributes>;
|
|
268
|
+
construction?: Maybe<ConstructionAttributes>;
|
|
269
|
+
units_of_building?: Maybe<number>;
|
|
270
|
+
}
|
|
271
|
+
export interface EnergyFeatures {
|
|
272
|
+
gas?: Maybe<boolean>;
|
|
273
|
+
electricity?: Maybe<boolean>;
|
|
274
|
+
fuel?: Maybe<boolean>;
|
|
275
|
+
heat_pump?: Maybe<boolean>;
|
|
276
|
+
}
|
|
277
|
+
export interface ComfortFeatures {
|
|
278
|
+
sauna?: Maybe<boolean>;
|
|
279
|
+
fireplace?: Maybe<boolean>;
|
|
280
|
+
fitness_room?: Maybe<boolean>;
|
|
281
|
+
furnished?: Maybe<boolean>;
|
|
282
|
+
home_automation?: Maybe<boolean>;
|
|
283
|
+
home_cinema?: Maybe<boolean>;
|
|
284
|
+
wine_cellar?: Maybe<boolean>;
|
|
285
|
+
walk_in_closet?: Maybe<boolean>;
|
|
286
|
+
water_softener?: Maybe<boolean>;
|
|
287
|
+
}
|
|
288
|
+
export interface EcologyFeatures {
|
|
289
|
+
solar_boiler?: Maybe<boolean>;
|
|
290
|
+
solar_panels?: Maybe<boolean>;
|
|
291
|
+
double_glazing?: Maybe<boolean>;
|
|
292
|
+
rainwater_harvesting?: Maybe<boolean>;
|
|
293
|
+
insulated_roof?: Maybe<boolean>;
|
|
294
|
+
}
|
|
295
|
+
export interface SecurityFeatures {
|
|
296
|
+
alarm?: Maybe<boolean>;
|
|
297
|
+
concierge?: Maybe<boolean>;
|
|
298
|
+
video_surveillance?: Maybe<boolean>;
|
|
299
|
+
}
|
|
300
|
+
export interface HeatingCoolingFeatures {
|
|
301
|
+
air_conditioning?: Maybe<boolean>;
|
|
302
|
+
central_heating?: Maybe<boolean>;
|
|
303
|
+
floor_heating?: Maybe<boolean>;
|
|
304
|
+
individual_heating?: Maybe<boolean>;
|
|
305
|
+
}
|
|
306
|
+
export interface FeaturesAttributes {
|
|
307
|
+
energy?: Maybe<EnergyFeatures>;
|
|
308
|
+
comfort?: Maybe<ComfortFeatures>;
|
|
309
|
+
ecology?: Maybe<EcologyFeatures>;
|
|
310
|
+
security?: Maybe<SecurityFeatures>;
|
|
311
|
+
heating_cooling?: Maybe<HeatingCoolingFeatures>;
|
|
312
|
+
}
|
|
313
|
+
export interface GeoData {
|
|
314
|
+
latitude: number;
|
|
315
|
+
longitude: number;
|
|
316
|
+
}
|
|
317
|
+
export interface LocationAttributes {
|
|
318
|
+
country?: Maybe<string>;
|
|
319
|
+
box?: Maybe<string>;
|
|
320
|
+
geo?: Maybe<GeoData>;
|
|
321
|
+
city?: Maybe<string>;
|
|
322
|
+
floor?: Maybe<string>;
|
|
323
|
+
number?: Maybe<string>;
|
|
324
|
+
street?: Maybe<string>;
|
|
325
|
+
addition?: Maybe<string>;
|
|
326
|
+
street_2?: Maybe<string>;
|
|
327
|
+
postal_code?: Maybe<string | number>;
|
|
328
|
+
province_or_state?: Maybe<string>;
|
|
329
|
+
borough_or_district?: Maybe<string>;
|
|
330
|
+
}
|
|
331
|
+
export interface OfficeSettings {
|
|
332
|
+
reference?: Maybe<string>;
|
|
333
|
+
}
|
|
334
|
+
export interface MandateSettings {
|
|
335
|
+
end_date?: Maybe<string>;
|
|
336
|
+
start_date?: Maybe<string>;
|
|
337
|
+
number?: Maybe<string>;
|
|
338
|
+
exclusive?: Maybe<boolean>;
|
|
339
|
+
}
|
|
340
|
+
export interface AgencyCommission {
|
|
341
|
+
fixed_fee?: Maybe<number>;
|
|
342
|
+
percentage?: Maybe<number>;
|
|
343
|
+
}
|
|
344
|
+
export interface AgencyCommissions {
|
|
345
|
+
buyer?: Maybe<AgencyCommission>;
|
|
346
|
+
seller?: Maybe<AgencyCommission>;
|
|
347
|
+
}
|
|
348
|
+
export interface PropertySettings {
|
|
349
|
+
office?: Maybe<OfficeSettings>;
|
|
350
|
+
mandate?: Maybe<MandateSettings>;
|
|
351
|
+
current_rent?: Maybe<Price>;
|
|
352
|
+
internal_note?: Maybe<string>;
|
|
353
|
+
agency_commission?: Maybe<AgencyCommissions>;
|
|
354
|
+
}
|
|
355
|
+
export interface OccupancyAttributes {
|
|
356
|
+
vacant?: Maybe<boolean>;
|
|
357
|
+
occupied?: Maybe<boolean>;
|
|
358
|
+
contact_details?: Maybe<string>;
|
|
359
|
+
available_from?: Maybe<string>;
|
|
360
|
+
}
|
|
361
|
+
export interface PropertyRoomAttributes {
|
|
362
|
+
size: number | string;
|
|
363
|
+
type: string;
|
|
364
|
+
units: UnitOfMeasurement;
|
|
365
|
+
ordinal: Maybe<number>;
|
|
366
|
+
size_description: string;
|
|
367
|
+
}
|
|
368
|
+
export interface Area {
|
|
369
|
+
size: number;
|
|
370
|
+
units?: Maybe<UnitOfMeasurement>;
|
|
371
|
+
size_description: string;
|
|
372
|
+
}
|
|
373
|
+
export interface PropertyStructure {
|
|
374
|
+
rooms?: Maybe<Record<string, PropertyRoomAttributes>>;
|
|
375
|
+
toilets?: Maybe<number>;
|
|
376
|
+
bedrooms?: Maybe<number>;
|
|
377
|
+
bathrooms?: Maybe<number>;
|
|
378
|
+
kitchens?: Maybe<number>;
|
|
379
|
+
floors?: Maybe<number>;
|
|
380
|
+
living_room?: Maybe<number>;
|
|
381
|
+
showrooms?: Maybe<number>;
|
|
382
|
+
shower_rooms?: Maybe<number>;
|
|
383
|
+
manufacturing_areas?: Maybe<number>;
|
|
384
|
+
storage_rooms?: Maybe<number>;
|
|
385
|
+
parking_spaces?: Maybe<number>;
|
|
386
|
+
meeting_rooms?: Maybe<number>;
|
|
387
|
+
open_office_spaces?: Maybe<number>;
|
|
388
|
+
closed_office_spaces?: Maybe<number>;
|
|
389
|
+
conference_rooms?: Maybe<number>;
|
|
390
|
+
liveable_area?: Maybe<Area>;
|
|
391
|
+
gross_area?: Maybe<Area>;
|
|
392
|
+
net_area?: Maybe<Area>;
|
|
393
|
+
plot_area?: Maybe<Area>;
|
|
394
|
+
display_window_length?: Maybe<Area>;
|
|
395
|
+
ceiling_height?: Maybe<Area>;
|
|
396
|
+
loi_carrez_area?: Maybe<Area>;
|
|
397
|
+
}
|
|
398
|
+
export interface PropertyConditions {
|
|
399
|
+
kitchen?: Maybe<Condition>;
|
|
400
|
+
bathroom?: Maybe<Condition>;
|
|
401
|
+
}
|
|
402
|
+
export interface PropertyDescription {
|
|
403
|
+
title: Record<string, string>;
|
|
404
|
+
description: Record<string, string>;
|
|
405
|
+
}
|
|
406
|
+
export interface PropertyOrientation {
|
|
407
|
+
balcony?: Maybe<Orientation>;
|
|
408
|
+
garden?: Maybe<Orientation>;
|
|
409
|
+
terrace?: Maybe<Orientation>;
|
|
410
|
+
}
|
|
411
|
+
export interface PropertyAccessibility {
|
|
412
|
+
alarm?: Maybe<boolean>;
|
|
413
|
+
alarm_code?: Maybe<number | string>;
|
|
414
|
+
key_available?: Maybe<boolean>;
|
|
415
|
+
}
|
|
416
|
+
export interface PropertyDocument {
|
|
417
|
+
private: boolean;
|
|
418
|
+
filename: string;
|
|
419
|
+
extension: string;
|
|
420
|
+
description?: Maybe<string>;
|
|
421
|
+
uploaded_at: string;
|
|
422
|
+
'content-type': string;
|
|
423
|
+
}
|
|
424
|
+
export interface FloorPlan {
|
|
425
|
+
private: boolean;
|
|
426
|
+
filename: string;
|
|
427
|
+
extension: string;
|
|
428
|
+
description: Maybe<string>;
|
|
429
|
+
uploaded_at: string;
|
|
430
|
+
'content-type': string;
|
|
431
|
+
}
|
|
432
|
+
export interface Image {
|
|
433
|
+
ordinal: number;
|
|
434
|
+
private: boolean;
|
|
435
|
+
filename: string;
|
|
436
|
+
extension: string;
|
|
437
|
+
description?: Maybe<string>;
|
|
438
|
+
equirectangular?: Maybe<boolean>;
|
|
439
|
+
uploaded_at: string;
|
|
440
|
+
'content-type': string;
|
|
441
|
+
}
|
|
442
|
+
export interface PropertyPermissions {
|
|
443
|
+
construction?: Maybe<boolean>;
|
|
444
|
+
farming?: Maybe<boolean>;
|
|
445
|
+
fishing?: Maybe<boolean>;
|
|
446
|
+
planning?: Maybe<boolean>;
|
|
447
|
+
}
|
|
448
|
+
export interface TenantContract {
|
|
449
|
+
start_date?: Maybe<string>;
|
|
450
|
+
end_date?: Maybe<string>;
|
|
451
|
+
}
|
|
452
|
+
export interface PropertyAttributes {
|
|
453
|
+
legal?: Maybe<LegalAttributes>;
|
|
454
|
+
price?: Maybe<PropertyPrice>;
|
|
455
|
+
images?: Maybe<Record<string, Image>>;
|
|
456
|
+
status?: Maybe<PropertyStatus>;
|
|
457
|
+
building?: Maybe<BuildingAttributes>;
|
|
458
|
+
features?: Maybe<FeaturesAttributes>;
|
|
459
|
+
location?: Maybe<LocationAttributes>;
|
|
460
|
+
settings?: Maybe<PropertySettings>;
|
|
461
|
+
sub_type?: Maybe<PropertySubType[]>;
|
|
462
|
+
amenities?: Maybe<Amenity[]>;
|
|
463
|
+
documents?: Maybe<Record<string, PropertyDocument>>;
|
|
464
|
+
occupancy?: Maybe<OccupancyAttributes>;
|
|
465
|
+
structure?: Maybe<PropertyStructure>;
|
|
466
|
+
conditions?: Maybe<PropertyConditions>;
|
|
467
|
+
description?: Maybe<PropertyDescription>;
|
|
468
|
+
floor_plans?: Maybe<Record<string, FloorPlan>>;
|
|
469
|
+
orientation?: Maybe<PropertyOrientation>;
|
|
470
|
+
accessibility?: Maybe<PropertyAccessibility>;
|
|
471
|
+
tenant_contract?: Maybe<TenantContract>;
|
|
472
|
+
general_condition?: Maybe<Condition>;
|
|
473
|
+
permissions?: Maybe<PropertyPermissions>;
|
|
474
|
+
shape?: Maybe<Shape>;
|
|
475
|
+
video?: Maybe<string>;
|
|
476
|
+
virtual_tour?: Maybe<string>;
|
|
477
|
+
}
|
|
478
|
+
export interface Property {
|
|
479
|
+
id: string;
|
|
480
|
+
type: PropertyType;
|
|
481
|
+
negotiation: Negotiation;
|
|
482
|
+
is_project: boolean;
|
|
483
|
+
project_id?: Maybe<string>;
|
|
484
|
+
office_id: string;
|
|
485
|
+
negotiator_id: string;
|
|
486
|
+
attributes: PropertyAttributes;
|
|
487
|
+
archived_at?: Maybe<string>;
|
|
488
|
+
created_at?: Maybe<string>;
|
|
489
|
+
updated_at?: Maybe<string>;
|
|
490
|
+
}
|
|
491
|
+
export type Resource = FloorPlan | PropertyDocument | Image;
|
|
492
|
+
export type FileUploadStream = fs.ReadStream;
|
|
493
|
+
export interface LanguageWithDefaultValue {
|
|
494
|
+
language: string;
|
|
495
|
+
default_value: string;
|
|
496
|
+
}
|
|
497
|
+
export interface RoomData {
|
|
498
|
+
name: AreaType;
|
|
499
|
+
value: number;
|
|
500
|
+
}
|
|
501
|
+
export type LocalizedStringMap = {
|
|
502
|
+
[key: string]: string;
|
|
503
|
+
};
|
|
504
|
+
export interface UserDefaults {
|
|
505
|
+
measurementSystem: MeasurementSystem;
|
|
506
|
+
currency: Currency;
|
|
507
|
+
defaultLanguage: string[];
|
|
508
|
+
country: string;
|
|
509
|
+
}
|
|
510
|
+
export declare enum InternalType {
|
|
511
|
+
project = "project",
|
|
512
|
+
unit = "unit",
|
|
513
|
+
standalone = "standalone"
|
|
514
|
+
}
|
|
515
|
+
export interface PropertyForSnsEvent extends Property {
|
|
516
|
+
is_archived: boolean;
|
|
517
|
+
internal_type: InternalType;
|
|
518
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property.js","sourceRoot":"","sources":["../../src/entities/property.ts"],"names":[],"mappings":";;;AAIA,IAAY,OAKX;AALD,WAAY,OAAO;IACjB,kBAAO,CAAA;IACP,kBAAO,CAAA;IACP,kBAAO,CAAA;IACP,kBAAO,CAAA;AACT,CAAC,EALW,OAAO,uBAAP,OAAO,QAKlB;AAED,IAAY,OA+BX;AA/BD,WAAY,OAAO;IACjB,0BAAe,CAAA;IACf,8BAAmB,CAAA;IACnB,gCAAqB,CAAA;IACrB,6CAAkC,CAAA;IAClC,wBAAa,CAAA;IACb,uCAA4B,CAAA;IAC5B,2CAAgC,CAAA;IAChC,gCAAqB,CAAA;IACrB,6CAAkC,CAAA;IAClC,+CAAoC,CAAA;IACpC,0BAAe,CAAA;IACf,4BAAiB,CAAA;IACjB,4BAAiB,CAAA;IACjB,oCAAyB,CAAA;IACzB,+CAAoC,CAAA;IACpC,+BAAoB,CAAA;IACpB,wBAAa,CAAA;IACb,qCAA0B,CAAA;IAC1B,8BAAmB,CAAA;IACnB,wBAAa,CAAA;IACb,mDAAwC,CAAA;IACxC,2CAAgC,CAAA;IAChC,qCAA0B,CAAA;IAC1B,qCAA0B,CAAA;IAC1B,uCAA4B,CAAA;IAC5B,yCAA8B,CAAA;IAC9B,8BAAmB,CAAA;IACnB,+CAAoC,CAAA;IACpC,uCAA4B,CAAA;IAC5B,uCAA4B,CAAA;AAC9B,CAAC,EA/BW,OAAO,uBAAP,OAAO,QA+BlB;AAED,IAAY,iBAKX;AALD,WAAY,iBAAi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YAAY;IACtB,mCAAmB,CAAA;IACnB,6BAAa,CAAA;IACb,yCAAyB,CAAA;AAC3B,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import channelAccounts from './resources/channel_accounts';
|
|
2
|
+
import channels from './resources/channels';
|
|
3
|
+
import companies from './resources/companies';
|
|
4
|
+
import contact_preferences from './resources/contact_preferences';
|
|
5
|
+
import contacts from './resources/contacts';
|
|
6
|
+
import estates from './resources/estates';
|
|
7
|
+
import leads from './resources/leads';
|
|
8
|
+
import negotiators from './resources/negotiators';
|
|
9
|
+
import offices from './resources/offices';
|
|
10
|
+
import { ClientConf, Env, InitConf } from './types';
|
|
11
|
+
interface Client {
|
|
12
|
+
authorize(config?: InitConf): Promise<Client>;
|
|
13
|
+
withUserToken(accessToken: string): Promise<Client>;
|
|
14
|
+
leads: ReturnType<typeof leads>;
|
|
15
|
+
negotiators: ReturnType<typeof negotiators>;
|
|
16
|
+
offices: ReturnType<typeof offices>;
|
|
17
|
+
contacts: ReturnType<typeof contacts>;
|
|
18
|
+
channelAccounts: ReturnType<typeof channelAccounts>;
|
|
19
|
+
channels: ReturnType<typeof channels>;
|
|
20
|
+
companies: ReturnType<typeof companies>;
|
|
21
|
+
contactPreferences: ReturnType<typeof contact_preferences>;
|
|
22
|
+
estates: ReturnType<typeof estates>;
|
|
23
|
+
}
|
|
24
|
+
declare function createClient(conf: ClientConf): Client;
|
|
25
|
+
export { createClient, Env, Client };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,oEAAuC;AACvC,oFAA2D;AAC3D,oEAA4C;AAC5C,sEAA8C;AAC9C,0FAAkE;AAClE,oEAA4C;AAC5C,kEAA0C;AAC1C,8DAAsC;AACtC,0EAAkD;AAClD,kEAA0C;AAC1C,mCAA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AAE,IAAA,0BAAe,EAAC,GAAG,CAAC;QACrC,SAAS,EAAE,IAAA,mBAAS,EAAC,GAAG,CAAC;QACzB,QAAQ,EAAE,IAAA,kBAAQ,EAAC,GAAG,CAAC;QACvB,kBAAkB,EAAE,IAAA,6BAAmB,EAAC,GAAG,CAAC;QAC5C,WAAW,EAAE,IAAA,qBAAW,EAAC,GAAG,CAAC;QAC7B,OAAO,EAAE,IAAA,iBAAO,EAAC,GAAG,CAAC;KACtB,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC;AAEQ,oCAAY"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ClientCtx } from '../types';
|
|
2
|
+
export default function (ctx: ClientCtx): {
|
|
3
|
+
readonly getAll: ({ companyId }: {
|
|
4
|
+
companyId: string;
|
|
5
|
+
}) => Promise<import("axios").AxiosResponse<any>>;
|
|
6
|
+
readonly get: ({ channelAccountId }: {
|
|
7
|
+
channelAccountId: string;
|
|
8
|
+
}) => Promise<import("axios").AxiosResponse<any>>;
|
|
9
|
+
readonly getEstateHash: ({ estateId, channelAccountId, }: {
|
|
10
|
+
estateId: string;
|
|
11
|
+
channelAccountId: string;
|
|
12
|
+
}) => Promise<{
|
|
13
|
+
hash: string;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel_accounts.js","sourceRoot":"","sources":["../../src/resources/channel_accounts.ts"],"names":[],"mappings":";;AAAA,oCAAgD;AAEhD,mBAAyB,GAAc;IACrC,KAAK,UAAU,MAAM,CAAC,EAAE,SAAS,EAAyB;QACxD,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,MAAM,QAAQ,GAAG,uBAAuB,SAAS,mBAAmB,CAAC;QAErE,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE;YAClC,MAAM,EAAE;gBACN,QAAQ,EAAE,SAAS;aACpB;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,UAAU,GAAG,CAAC,EAAE,gBAAgB,EAAgC;QACnE,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,MAAM,QAAQ,GAAG,8BAA8B,gBAAgB,EAAE,CAAC;QAElE,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE;YAClC,MAAM,EAAE;gBACN,QAAQ,EAAE,SAAS;aACpB;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,UAAU,aAAa,CAAC,EAC3B,QAAQ,EACR,gBAAgB,GAIjB;QACC,MAAM,QAAQ,GAAG,oBAAoB,QAAQ,qBAAqB,gBAAgB,OAAO,CAAC;QAC1F,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrD,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,aAAa,EAAW,CAAC;AACjD,CAAC;AApCD,4BAoCC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ClientCtx } from '../types';
|
|
2
|
+
interface ReferenceDetails {
|
|
3
|
+
reference_code: string;
|
|
4
|
+
estate_id: string;
|
|
5
|
+
channel_id: string;
|
|
6
|
+
channel_account_id: string;
|
|
7
|
+
company_id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ChannelsResolveReferencesResult {
|
|
10
|
+
data: ReferenceDetails[];
|
|
11
|
+
}
|
|
12
|
+
export default function (ctx: ClientCtx): {
|
|
13
|
+
getPropertyIdFromReference: (channel: string, referenceId: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
14
|
+
resolveReferences: (channel_id: string, reference_code: string, company_id?: string) => Promise<ChannelsResolveReferencesResult>;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channels.js","sourceRoot":"","sources":["../../src/resources/channels.ts"],"names":[],"mappings":";;AAAA,oCAAgD;AAchD,mBAAyB,GAAc;IACrC;;OAEG;IACH,KAAK,UAAU,0BAA0B,CACvC,OAAe,EACf,WAAmB;QAEnB,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,MAAM,QAAQ,GAAG,aAAa,OAAO,uBAAuB,WAAW,EAAE,CAAC;QAE1E,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IAED;;;;OAIG;IACH,KAAK,UAAU,iBAAiB,CAC9B,UAAkB,EAClB,cAAsB,EACtB,UAAmB;QAEnB,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,MAAM,QAAQ,GAAG,8BAA8B,CAAC;QAEhD,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE;YAClC,MAAM,EAAE;gBACN,UAAU;gBACV,cAAc;gBACd,UAAU;aACX;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,CAAC;AAC3D,CAAC;AArCD,4BAqCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companies.js","sourceRoot":"","sources":["../../src/resources/companies.ts"],"names":[],"mappings":";;AAAA,oCAAgD;AAEhD,mBAAyB,GAAc;IACrC,SAAS,GAAG,CAAC,UAAsD;QACjE,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QAEnC,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,cAAc,UAAU,CAAC,SAAS,EAAE,EAAE;YAC9D,MAAM,EAAE;gBACN,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC;aACzC;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,GAAG,EAAE,CAAC;AACjB,CAAC;AAZD,4BAYC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact_preferences.js","sourceRoot":"","sources":["../../src/resources/contact_preferences.ts"],"names":[],"mappings":";;AAAA,oCAAgD;AAEhD,SAAwB,mBAAmB,CAAC,GAAc;IACxD,SAAS,MAAM,CAAC,UAAiC;QAC/C,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CACvB,sBAAsB,UAAU,CAAC,SAAS,cAAc,CACzD,CAAC;IACJ,CAAC;IAED,OAAO;QACL,MAAM;KACP,CAAC;AACJ,CAAC;AAXD,sCAWC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClientCtx } from '../types';
|
|
2
|
+
export default function (ctx: ClientCtx): {
|
|
3
|
+
getOne: (attributes: {
|
|
4
|
+
contactId: string;
|
|
5
|
+
}) => Promise<import("axios").AxiosResponse<any>>;
|
|
6
|
+
getOneWithNegotiators: (attributes: {
|
|
7
|
+
contactId: string;
|
|
8
|
+
}) => Promise<import("axios").AxiosResponse<any>>;
|
|
9
|
+
getAll: (attributes: {
|
|
10
|
+
companyId: string;
|
|
11
|
+
page?: number;
|
|
12
|
+
limit?: number;
|
|
13
|
+
}) => Promise<import("axios").AxiosResponse<any>>;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../src/resources/contacts.ts"],"names":[],"mappings":";;AAAA,oCAAgD;AAEhD,mBAAyB,GAAc;IACrC,SAAS,MAAM,CAAC,UAAiC;QAC/C,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,sBAAsB,UAAU,CAAC,SAAS,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,SAAS,qBAAqB,CAAC,UAAiC;QAC9D,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CACvB,sBAAsB,UAAU,CAAC,SAAS,uBAAuB,CAClE,CAAC;IACJ,CAAC;IAED,SAAS,MAAM,CAAC,UAIf;QACC,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CACvB,uBAAuB,UAAU,CAAC,SAAS,WAAW,EACtD;YACE,MAAM,EAAE;gBACN,IAAI,EAAE,UAAU,CAAC,IAAI,IAAI,CAAC;gBAC1B,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,EAAE;aAC9B;SACF,CACF,CAAC;IACJ,CAAC;IAED,OAAO;QACL,MAAM;QACN,qBAAqB;QACrB,MAAM;KACP,CAAC;AACJ,CAAC;AAnCD,4BAmCC"}
|