@kite-sa/sdk 0.7.0 → 0.9.3
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/CHANGELOG.md +44 -0
- package/README.md +41 -2
- package/dist/generated.d.ts +408 -6
- package/dist/generated.js +70 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.js +13 -6
- package/dist/openapi-zod/client.d.ts +564 -4
- package/dist/openapi-zod/client.js +371 -0
- package/dist/openapi-zod/models.d.ts +172 -2
- package/dist/openapi-zod/models.js +7 -0
- package/dist/openapi.d.ts +118 -7
- package/dist/paginate.d.ts +10 -3
- package/dist/paginate.js +1 -1
- package/dist/webhooks.d.ts +26 -0
- package/dist/webhooks.js +57 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CoverageFlag, Export, ExportRequest, Listing, Pagination, Transaction, TransactionAttribution, TransactionCoverage } from "./models.js";
|
|
1
|
+
import type { CoverageFlag, Export, ExportRequest, Listing, NeighborhoodTown, Pagination, Transaction, TransactionAttribution, TransactionCoverage, TransactionCoverageFlag } from "./models.js";
|
|
2
2
|
import { type ClientConfig } from "./client-config.js";
|
|
3
3
|
export declare class ApiError<Status extends number = number, Body = unknown> extends Error {
|
|
4
4
|
readonly status: Status;
|
|
@@ -34,6 +34,7 @@ export declare function referenceNeighborhoods(city: string, config?: Partial<Cl
|
|
|
34
34
|
name_ar: string;
|
|
35
35
|
name_en: string;
|
|
36
36
|
direction_id: unknown;
|
|
37
|
+
town: NeighborhoodTown;
|
|
37
38
|
center: unknown;
|
|
38
39
|
}[];
|
|
39
40
|
}>;
|
|
@@ -175,9 +176,17 @@ export declare function listingsSearch(params: {
|
|
|
175
176
|
rentFrequency?: "monthly" | "yearly";
|
|
176
177
|
daysOnMarketMin?: number;
|
|
177
178
|
daysOnMarketMax?: number;
|
|
179
|
+
zoning?: string[];
|
|
180
|
+
corner?: "true" | "false";
|
|
181
|
+
streetWidthMin?: number;
|
|
182
|
+
whiteLandFee?: "true" | "false";
|
|
183
|
+
lastSaleWithinMonths?: number;
|
|
184
|
+
askToLastSaleMax?: number;
|
|
185
|
+
plotSold?: "true" | "false";
|
|
178
186
|
sort?: "newest" | "updated_desc" | "updated_asc" | "price_asc" | "price_desc" | "price_drop" | "days_on_market_desc" | "recommended";
|
|
179
187
|
limit?: number;
|
|
180
188
|
cursor?: string;
|
|
189
|
+
updatedAfterId?: number;
|
|
181
190
|
}, config?: Partial<ClientConfig>): Promise<{
|
|
182
191
|
data: Listing[];
|
|
183
192
|
pagination: Pagination;
|
|
@@ -225,6 +234,13 @@ export declare function listingsCount(params: {
|
|
|
225
234
|
rentFrequency?: "monthly" | "yearly";
|
|
226
235
|
daysOnMarketMin?: number;
|
|
227
236
|
daysOnMarketMax?: number;
|
|
237
|
+
zoning?: string[];
|
|
238
|
+
corner?: "true" | "false";
|
|
239
|
+
streetWidthMin?: number;
|
|
240
|
+
whiteLandFee?: "true" | "false";
|
|
241
|
+
lastSaleWithinMonths?: number;
|
|
242
|
+
askToLastSaleMax?: number;
|
|
243
|
+
plotSold?: "true" | "false";
|
|
228
244
|
}, config?: Partial<ClientConfig>): Promise<{
|
|
229
245
|
data: {
|
|
230
246
|
total: number;
|
|
@@ -275,6 +291,23 @@ export declare function listingsPriceHistory(id: number, config?: Partial<Client
|
|
|
275
291
|
}[];
|
|
276
292
|
};
|
|
277
293
|
}>;
|
|
294
|
+
/**
|
|
295
|
+
* @throws {ApiError<400, Error>}
|
|
296
|
+
* @throws {ApiError<401, Error>}
|
|
297
|
+
* @throws {ApiError<403, Error>}
|
|
298
|
+
* @throws {ApiError<404, Error>}
|
|
299
|
+
* @throws {ApiError<429, Error>}
|
|
300
|
+
* @throws {ApiError<500, Error>}
|
|
301
|
+
*/
|
|
302
|
+
export declare function listingsContact(id: number, config?: Partial<ClientConfig>): Promise<{
|
|
303
|
+
data: {
|
|
304
|
+
available: boolean;
|
|
305
|
+
reason: unknown;
|
|
306
|
+
phone: string | null;
|
|
307
|
+
whatsapp: string | null;
|
|
308
|
+
source_url: string | null;
|
|
309
|
+
};
|
|
310
|
+
}>;
|
|
278
311
|
/**
|
|
279
312
|
* @throws {ApiError<400, Error>}
|
|
280
313
|
* @throws {ApiError<401, Error>}
|
|
@@ -319,6 +352,7 @@ export declare function marketSummary(params: {
|
|
|
319
352
|
neighborhood_id: number;
|
|
320
353
|
name_ar: string;
|
|
321
354
|
name_en: string;
|
|
355
|
+
town: NeighborhoodTown;
|
|
322
356
|
sample_size: number;
|
|
323
357
|
median_price_sar: unknown;
|
|
324
358
|
}[];
|
|
@@ -557,6 +591,7 @@ export declare function marketNeighborhoods(params: {
|
|
|
557
591
|
neighborhood_id: number;
|
|
558
592
|
name_ar: string;
|
|
559
593
|
name_en: string;
|
|
594
|
+
town: NeighborhoodTown;
|
|
560
595
|
center: unknown;
|
|
561
596
|
sample_size: number;
|
|
562
597
|
median_price_sar: unknown;
|
|
@@ -629,6 +664,7 @@ export declare function marketCommercialRents(params: {
|
|
|
629
664
|
neighborhood_id: number;
|
|
630
665
|
name_ar: string;
|
|
631
666
|
name_en: string;
|
|
667
|
+
town: NeighborhoodTown;
|
|
632
668
|
center: unknown;
|
|
633
669
|
property_type: string;
|
|
634
670
|
sample_size: number;
|
|
@@ -649,6 +685,151 @@ export declare function marketCommercialRents(params: {
|
|
|
649
685
|
};
|
|
650
686
|
};
|
|
651
687
|
}>;
|
|
688
|
+
/**
|
|
689
|
+
* @throws {ApiError<400, Error>}
|
|
690
|
+
* @throws {ApiError<401, Error>}
|
|
691
|
+
* @throws {ApiError<403, Error>}
|
|
692
|
+
* @throws {ApiError<429, Error>}
|
|
693
|
+
* @throws {ApiError<500, Error>}
|
|
694
|
+
*/
|
|
695
|
+
export declare function marketLandResale(params: {
|
|
696
|
+
city: string;
|
|
697
|
+
neighborhoodId?: number[];
|
|
698
|
+
groupBy?: "city" | "neighborhood";
|
|
699
|
+
kind?: "land" | "built";
|
|
700
|
+
minSampleSize?: number;
|
|
701
|
+
}, config?: Partial<ClientConfig>): Promise<{
|
|
702
|
+
data: {
|
|
703
|
+
filters: {
|
|
704
|
+
city: string;
|
|
705
|
+
neighborhood_ids: unknown;
|
|
706
|
+
group_by: string;
|
|
707
|
+
kind: string;
|
|
708
|
+
property_types: string[];
|
|
709
|
+
};
|
|
710
|
+
min_sample_size: number;
|
|
711
|
+
cells: {
|
|
712
|
+
neighborhood: unknown;
|
|
713
|
+
listings_on_parcel: number;
|
|
714
|
+
with_last_sale: number;
|
|
715
|
+
sold_within_12_months: number;
|
|
716
|
+
sold_within_12_months_share: number | null;
|
|
717
|
+
sample_size: number;
|
|
718
|
+
median_ask_to_last_sale: number | null;
|
|
719
|
+
p25_ask_to_last_sale: number | null;
|
|
720
|
+
p75_ask_to_last_sale: number | null;
|
|
721
|
+
median_months_since_last_sale: unknown;
|
|
722
|
+
}[];
|
|
723
|
+
attribution: {
|
|
724
|
+
notice: string;
|
|
725
|
+
sources: {
|
|
726
|
+
name: string;
|
|
727
|
+
name_ar: string;
|
|
728
|
+
url: string;
|
|
729
|
+
}[];
|
|
730
|
+
};
|
|
731
|
+
};
|
|
732
|
+
}>;
|
|
733
|
+
/**
|
|
734
|
+
* @throws {ApiError<400, Error>}
|
|
735
|
+
* @throws {ApiError<401, Error>}
|
|
736
|
+
* @throws {ApiError<403, Error>}
|
|
737
|
+
* @throws {ApiError<429, Error>}
|
|
738
|
+
* @throws {ApiError<500, Error>}
|
|
739
|
+
*/
|
|
740
|
+
export declare function marketAskToDeal(params: {
|
|
741
|
+
city: string;
|
|
742
|
+
neighborhoodId?: number[];
|
|
743
|
+
groupBy?: "city" | "neighborhood";
|
|
744
|
+
kind?: "land" | "built";
|
|
745
|
+
minSampleSize?: number;
|
|
746
|
+
}, config?: Partial<ClientConfig>): Promise<{
|
|
747
|
+
data: {
|
|
748
|
+
filters: {
|
|
749
|
+
city: string;
|
|
750
|
+
neighborhood_ids: unknown;
|
|
751
|
+
group_by: string;
|
|
752
|
+
kind: string;
|
|
753
|
+
property_types: string[];
|
|
754
|
+
};
|
|
755
|
+
period: {
|
|
756
|
+
first_month: string | null;
|
|
757
|
+
last_month: string | null;
|
|
758
|
+
};
|
|
759
|
+
min_sample_size: number;
|
|
760
|
+
cells: {
|
|
761
|
+
neighborhood: unknown;
|
|
762
|
+
deals: number;
|
|
763
|
+
listings: number;
|
|
764
|
+
listings_still_active: number;
|
|
765
|
+
sample_size: number;
|
|
766
|
+
median_deal_to_ask: number | null;
|
|
767
|
+
p25_deal_to_ask: number | null;
|
|
768
|
+
p75_deal_to_ask: number | null;
|
|
769
|
+
days_sample_size: number;
|
|
770
|
+
median_days_to_sell: unknown;
|
|
771
|
+
by_registry: {
|
|
772
|
+
registry: string;
|
|
773
|
+
deals: number;
|
|
774
|
+
sample_size: number;
|
|
775
|
+
median_deal_to_ask: number | null;
|
|
776
|
+
median_days_to_sell: unknown;
|
|
777
|
+
}[];
|
|
778
|
+
}[];
|
|
779
|
+
attribution: {
|
|
780
|
+
notice: string;
|
|
781
|
+
sources: {
|
|
782
|
+
name: string;
|
|
783
|
+
name_ar: string;
|
|
784
|
+
url: string;
|
|
785
|
+
}[];
|
|
786
|
+
};
|
|
787
|
+
};
|
|
788
|
+
}>;
|
|
789
|
+
/**
|
|
790
|
+
* @throws {ApiError<400, Error>}
|
|
791
|
+
* @throws {ApiError<401, Error>}
|
|
792
|
+
* @throws {ApiError<403, Error>}
|
|
793
|
+
* @throws {ApiError<429, Error>}
|
|
794
|
+
* @throws {ApiError<500, Error>}
|
|
795
|
+
*/
|
|
796
|
+
export declare function marketAreaContext(params?: {
|
|
797
|
+
lat?: number;
|
|
798
|
+
lng?: number;
|
|
799
|
+
radiusM?: number;
|
|
800
|
+
city?: string;
|
|
801
|
+
neighborhoodId?: number;
|
|
802
|
+
}, config?: Partial<ClientConfig>): Promise<{
|
|
803
|
+
data: {
|
|
804
|
+
area: {
|
|
805
|
+
method: string;
|
|
806
|
+
center: {
|
|
807
|
+
lat: number;
|
|
808
|
+
lng: number;
|
|
809
|
+
};
|
|
810
|
+
radius_m: unknown;
|
|
811
|
+
district_name: string | null;
|
|
812
|
+
area_sqkm: number;
|
|
813
|
+
neighborhood: unknown;
|
|
814
|
+
};
|
|
815
|
+
places: unknown;
|
|
816
|
+
population: unknown;
|
|
817
|
+
landmarks: {
|
|
818
|
+
name: string;
|
|
819
|
+
name_ar: string | null;
|
|
820
|
+
category: string;
|
|
821
|
+
distance_m: number;
|
|
822
|
+
}[];
|
|
823
|
+
attribution: {
|
|
824
|
+
notice: string;
|
|
825
|
+
sources: {
|
|
826
|
+
name: string;
|
|
827
|
+
licence: string;
|
|
828
|
+
url: string;
|
|
829
|
+
}[];
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
}>;
|
|
652
833
|
/**
|
|
653
834
|
* @throws {ApiError<400, Error>}
|
|
654
835
|
* @throws {ApiError<401, Error>}
|
|
@@ -981,6 +1162,7 @@ export declare function analyticsRentalYield(params: {
|
|
|
981
1162
|
neighborhood_id: number;
|
|
982
1163
|
name_en: string | null;
|
|
983
1164
|
name_ar: string | null;
|
|
1165
|
+
town: NeighborhoodTown;
|
|
984
1166
|
}[];
|
|
985
1167
|
price_source: string;
|
|
986
1168
|
window: {
|
|
@@ -1023,6 +1205,7 @@ export declare function analyticsTrends(params: {
|
|
|
1023
1205
|
neighborhood_id: unknown;
|
|
1024
1206
|
name_en: string | null;
|
|
1025
1207
|
name_ar: string | null;
|
|
1208
|
+
town: NeighborhoodTown;
|
|
1026
1209
|
change_pct: number | null;
|
|
1027
1210
|
index_change_pct: number | null;
|
|
1028
1211
|
index_base_month: string | null;
|
|
@@ -1076,6 +1259,7 @@ export declare function analyticsNeighborhoodsCompare(params: {
|
|
|
1076
1259
|
neighborhood_id: number;
|
|
1077
1260
|
name_en: string;
|
|
1078
1261
|
name_ar: string;
|
|
1262
|
+
town: NeighborhoodTown;
|
|
1079
1263
|
sample_size: number;
|
|
1080
1264
|
median_price_sar: unknown;
|
|
1081
1265
|
p25_price_sar: unknown;
|
|
@@ -1109,6 +1293,140 @@ export declare function analyticsNeighborhoodsCompare(params: {
|
|
|
1109
1293
|
};
|
|
1110
1294
|
};
|
|
1111
1295
|
}>;
|
|
1296
|
+
/**
|
|
1297
|
+
* @throws {ApiError<400, Error>}
|
|
1298
|
+
* @throws {ApiError<401, Error>}
|
|
1299
|
+
* @throws {ApiError<403, Error>}
|
|
1300
|
+
* @throws {ApiError<429, Error>}
|
|
1301
|
+
* @throws {ApiError<500, Error>}
|
|
1302
|
+
*/
|
|
1303
|
+
export declare function analyticsAdvertisers(params: {
|
|
1304
|
+
city: string;
|
|
1305
|
+
listingType: "rent" | "sale";
|
|
1306
|
+
listingCategory?: "residential" | "commercial";
|
|
1307
|
+
propertyType?: string[];
|
|
1308
|
+
neighborhoodId?: number[];
|
|
1309
|
+
beds?: number;
|
|
1310
|
+
bedsMin?: number;
|
|
1311
|
+
bedsMax?: number;
|
|
1312
|
+
bathroomsMin?: number;
|
|
1313
|
+
priceMin?: number;
|
|
1314
|
+
priceMax?: number;
|
|
1315
|
+
areaMin?: number;
|
|
1316
|
+
areaMax?: number;
|
|
1317
|
+
furnished?: "true" | "false";
|
|
1318
|
+
source?: string[];
|
|
1319
|
+
bbox?: string;
|
|
1320
|
+
updatedSince?: string;
|
|
1321
|
+
bathrooms?: number;
|
|
1322
|
+
bathroomsMax?: number;
|
|
1323
|
+
livingsMin?: number;
|
|
1324
|
+
neighborhoodIdExclude?: number[];
|
|
1325
|
+
q?: string;
|
|
1326
|
+
amenities?: string[];
|
|
1327
|
+
amenitiesExclude?: string[];
|
|
1328
|
+
photoFeatures?: string[];
|
|
1329
|
+
floor?: "ground" | "upper";
|
|
1330
|
+
sourceExclude?: string[];
|
|
1331
|
+
maxAge?: number;
|
|
1332
|
+
verified?: "true" | "false";
|
|
1333
|
+
advertiserType?: "company" | "individual";
|
|
1334
|
+
compound?: string;
|
|
1335
|
+
inCompound?: "true" | "false";
|
|
1336
|
+
rentFrequency?: "monthly" | "yearly";
|
|
1337
|
+
daysOnMarketMin?: number;
|
|
1338
|
+
daysOnMarketMax?: number;
|
|
1339
|
+
zoning?: string[];
|
|
1340
|
+
corner?: "true" | "false";
|
|
1341
|
+
streetWidthMin?: number;
|
|
1342
|
+
whiteLandFee?: "true" | "false";
|
|
1343
|
+
lastSaleWithinMonths?: number;
|
|
1344
|
+
askToLastSaleMax?: number;
|
|
1345
|
+
plotSold?: "true" | "false";
|
|
1346
|
+
aboveMedianPct?: number;
|
|
1347
|
+
minListings?: number;
|
|
1348
|
+
sort?: "listings_desc" | "median_price_desc";
|
|
1349
|
+
limit?: number;
|
|
1350
|
+
cursor?: string;
|
|
1351
|
+
}, config?: Partial<ClientConfig>): Promise<{
|
|
1352
|
+
data: {
|
|
1353
|
+
price_basis: string;
|
|
1354
|
+
price_source: string;
|
|
1355
|
+
totals: {
|
|
1356
|
+
advertisers: number;
|
|
1357
|
+
listings: number;
|
|
1358
|
+
};
|
|
1359
|
+
advertisers: {
|
|
1360
|
+
name: string;
|
|
1361
|
+
advertiser_types: string[];
|
|
1362
|
+
fal_number: string | null;
|
|
1363
|
+
fal_licences: number;
|
|
1364
|
+
sources: string[];
|
|
1365
|
+
listings: number;
|
|
1366
|
+
median_price_sar: number;
|
|
1367
|
+
min_price_sar: number;
|
|
1368
|
+
max_price_sar: number;
|
|
1369
|
+
top_neighborhoods: {
|
|
1370
|
+
neighborhood_id: number;
|
|
1371
|
+
name_ar: string;
|
|
1372
|
+
name_en: string;
|
|
1373
|
+
listings: number;
|
|
1374
|
+
}[];
|
|
1375
|
+
sample_listing_ids: number[];
|
|
1376
|
+
}[];
|
|
1377
|
+
};
|
|
1378
|
+
pagination: Pagination;
|
|
1379
|
+
}>;
|
|
1380
|
+
/**
|
|
1381
|
+
* @throws {ApiError<400, Error>}
|
|
1382
|
+
* @throws {ApiError<401, Error>}
|
|
1383
|
+
* @throws {ApiError<403, Error>}
|
|
1384
|
+
* @throws {ApiError<429, Error>}
|
|
1385
|
+
* @throws {ApiError<500, Error>}
|
|
1386
|
+
*/
|
|
1387
|
+
export declare function valuationsAskingRange(params: {
|
|
1388
|
+
city: string;
|
|
1389
|
+
neighborhoodId?: number;
|
|
1390
|
+
lat?: number;
|
|
1391
|
+
lng?: number;
|
|
1392
|
+
propertyType: "apartment" | "villa" | "floor" | "duplex";
|
|
1393
|
+
listingType: "rent" | "sale";
|
|
1394
|
+
bedrooms: number;
|
|
1395
|
+
areaSqm: number;
|
|
1396
|
+
furnished?: "true" | "false";
|
|
1397
|
+
ageYears?: number;
|
|
1398
|
+
floor?: number;
|
|
1399
|
+
claimedPrice?: number;
|
|
1400
|
+
}, config?: Partial<ClientConfig>): Promise<{
|
|
1401
|
+
data: {
|
|
1402
|
+
status: string;
|
|
1403
|
+
reasons: string[];
|
|
1404
|
+
basis: string;
|
|
1405
|
+
notice: string;
|
|
1406
|
+
price_basis: string;
|
|
1407
|
+
range: unknown;
|
|
1408
|
+
median_interval: unknown;
|
|
1409
|
+
confidence: unknown;
|
|
1410
|
+
claimed_price_position: unknown;
|
|
1411
|
+
location: unknown;
|
|
1412
|
+
cohort: unknown;
|
|
1413
|
+
comparables: {
|
|
1414
|
+
listing_id: number;
|
|
1415
|
+
price_sar: number;
|
|
1416
|
+
area_sqm: number;
|
|
1417
|
+
price_per_sqm_sar: number;
|
|
1418
|
+
bedrooms: number;
|
|
1419
|
+
distance_m: number;
|
|
1420
|
+
days_since_seen: number;
|
|
1421
|
+
live: boolean;
|
|
1422
|
+
}[];
|
|
1423
|
+
inputs_ignored: string[];
|
|
1424
|
+
methodology_version: string;
|
|
1425
|
+
see_also: {
|
|
1426
|
+
registered_rents: string | null;
|
|
1427
|
+
};
|
|
1428
|
+
};
|
|
1429
|
+
}>;
|
|
1112
1430
|
/**
|
|
1113
1431
|
* @throws {ApiError<400, Error>}
|
|
1114
1432
|
* @throws {ApiError<401, Error>}
|
|
@@ -1120,6 +1438,9 @@ export declare function transactionsSearch(params: {
|
|
|
1120
1438
|
city: string;
|
|
1121
1439
|
neighborhoodId?: number[];
|
|
1122
1440
|
landUse?: string[];
|
|
1441
|
+
source?: string[];
|
|
1442
|
+
propertyType?: string[];
|
|
1443
|
+
marketSalesOnly?: "true" | "false";
|
|
1123
1444
|
monthFrom?: string;
|
|
1124
1445
|
monthTo?: string;
|
|
1125
1446
|
priceMin?: number;
|
|
@@ -1151,9 +1472,11 @@ export declare function marketTransactions(params: {
|
|
|
1151
1472
|
neighborhoodId?: number[];
|
|
1152
1473
|
groupBy?: "city" | "neighborhood";
|
|
1153
1474
|
landUse?: string[];
|
|
1475
|
+
propertyType?: string[];
|
|
1154
1476
|
quarterFrom?: string;
|
|
1155
1477
|
quarterTo?: string;
|
|
1156
1478
|
minSampleSize?: number;
|
|
1479
|
+
includeTokenPrices?: "true" | "false";
|
|
1157
1480
|
}, config?: Partial<ClientConfig>): Promise<{
|
|
1158
1481
|
data: {
|
|
1159
1482
|
filters: {
|
|
@@ -1161,6 +1484,8 @@ export declare function marketTransactions(params: {
|
|
|
1161
1484
|
neighborhood_ids: unknown;
|
|
1162
1485
|
group_by: string;
|
|
1163
1486
|
land_use: unknown;
|
|
1487
|
+
property_type: unknown;
|
|
1488
|
+
include_token_prices: boolean;
|
|
1164
1489
|
};
|
|
1165
1490
|
price_basis: string;
|
|
1166
1491
|
price_source: string;
|
|
@@ -1173,11 +1498,12 @@ export declare function marketTransactions(params: {
|
|
|
1173
1498
|
quarter: string;
|
|
1174
1499
|
period_start: string;
|
|
1175
1500
|
neighborhood: unknown;
|
|
1176
|
-
land_use:
|
|
1501
|
+
land_use: unknown;
|
|
1502
|
+
property_type: unknown;
|
|
1177
1503
|
deal_count: number;
|
|
1178
1504
|
suppressed: boolean;
|
|
1179
1505
|
complete: boolean;
|
|
1180
|
-
coverage_flag:
|
|
1506
|
+
coverage_flag: TransactionCoverageFlag;
|
|
1181
1507
|
median_price_per_sqm_sar: unknown;
|
|
1182
1508
|
p25_price_per_sqm_sar: unknown;
|
|
1183
1509
|
p75_price_per_sqm_sar: unknown;
|
|
@@ -1187,6 +1513,7 @@ export declare function marketTransactions(params: {
|
|
|
1187
1513
|
p75_price_sar: unknown;
|
|
1188
1514
|
median_area_sqm: unknown;
|
|
1189
1515
|
}[];
|
|
1516
|
+
window_totals: unknown;
|
|
1190
1517
|
coverage: TransactionCoverage;
|
|
1191
1518
|
attribution: TransactionAttribution;
|
|
1192
1519
|
};
|
|
@@ -1206,6 +1533,7 @@ export declare function marketLandPrices(params: {
|
|
|
1206
1533
|
quarterFrom?: string;
|
|
1207
1534
|
quarterTo?: string;
|
|
1208
1535
|
minSampleSize?: number;
|
|
1536
|
+
includeTokenPrices?: "true" | "false";
|
|
1209
1537
|
}, config?: Partial<ClientConfig>): Promise<{
|
|
1210
1538
|
data: {
|
|
1211
1539
|
filters: {
|
|
@@ -1213,6 +1541,7 @@ export declare function marketLandPrices(params: {
|
|
|
1213
1541
|
neighborhood_ids: unknown;
|
|
1214
1542
|
group_by: string;
|
|
1215
1543
|
land_use: string;
|
|
1544
|
+
include_token_prices: boolean;
|
|
1216
1545
|
};
|
|
1217
1546
|
asset: string;
|
|
1218
1547
|
price_basis: string;
|
|
@@ -1230,7 +1559,7 @@ export declare function marketLandPrices(params: {
|
|
|
1230
1559
|
deal_count: number;
|
|
1231
1560
|
suppressed: boolean;
|
|
1232
1561
|
complete: boolean;
|
|
1233
|
-
coverage_flag:
|
|
1562
|
+
coverage_flag: TransactionCoverageFlag;
|
|
1234
1563
|
median_price_per_sqm_sar: unknown;
|
|
1235
1564
|
p25_price_per_sqm_sar: unknown;
|
|
1236
1565
|
p75_price_per_sqm_sar: unknown;
|
|
@@ -1263,6 +1592,9 @@ export declare function projectsSearch(params?: {
|
|
|
1263
1592
|
q?: string;
|
|
1264
1593
|
priceMin?: number;
|
|
1265
1594
|
priceMax?: number;
|
|
1595
|
+
handoverFrom?: string;
|
|
1596
|
+
handoverTo?: string;
|
|
1597
|
+
licensed?: "true" | "false";
|
|
1266
1598
|
sort?: "updated_desc" | "price_asc" | "price_desc";
|
|
1267
1599
|
limit?: number;
|
|
1268
1600
|
cursor?: string;
|
|
@@ -1284,11 +1616,13 @@ export declare function projectsSearch(params?: {
|
|
|
1284
1616
|
neighborhood_name_en: string | null;
|
|
1285
1617
|
lat: number | null;
|
|
1286
1618
|
lng: number | null;
|
|
1619
|
+
precision: unknown;
|
|
1287
1620
|
};
|
|
1288
1621
|
price: {
|
|
1289
1622
|
starting_sar: unknown;
|
|
1290
1623
|
from_sar: unknown;
|
|
1291
1624
|
to_sar: unknown;
|
|
1625
|
+
source: string | null;
|
|
1292
1626
|
};
|
|
1293
1627
|
area_sqm: {
|
|
1294
1628
|
min: number | null;
|
|
@@ -1301,6 +1635,15 @@ export declare function projectsSearch(params?: {
|
|
|
1301
1635
|
bedrooms_max: unknown;
|
|
1302
1636
|
};
|
|
1303
1637
|
cover_image: string | null;
|
|
1638
|
+
timeline: {
|
|
1639
|
+
handover_date: string | null;
|
|
1640
|
+
construction_progress_pct: number | null;
|
|
1641
|
+
sources: {
|
|
1642
|
+
handover_date: string | null;
|
|
1643
|
+
construction_progress_pct: string | null;
|
|
1644
|
+
};
|
|
1645
|
+
};
|
|
1646
|
+
offplan_licence_no: string | null;
|
|
1304
1647
|
last_seen_at: unknown;
|
|
1305
1648
|
}[];
|
|
1306
1649
|
pagination: Pagination;
|
|
@@ -1331,11 +1674,13 @@ export declare function projectsGet(id: number, config?: Partial<ClientConfig>):
|
|
|
1331
1674
|
neighborhood_name_en: string | null;
|
|
1332
1675
|
lat: number | null;
|
|
1333
1676
|
lng: number | null;
|
|
1677
|
+
precision: unknown;
|
|
1334
1678
|
};
|
|
1335
1679
|
price: {
|
|
1336
1680
|
starting_sar: unknown;
|
|
1337
1681
|
from_sar: unknown;
|
|
1338
1682
|
to_sar: unknown;
|
|
1683
|
+
source: string | null;
|
|
1339
1684
|
};
|
|
1340
1685
|
area_sqm: {
|
|
1341
1686
|
min: number | null;
|
|
@@ -1359,6 +1704,42 @@ export declare function projectsGet(id: number, config?: Partial<ClientConfig>):
|
|
|
1359
1704
|
virtual_tour: string | null;
|
|
1360
1705
|
video: string | null;
|
|
1361
1706
|
};
|
|
1707
|
+
timeline: {
|
|
1708
|
+
construction_start_date: string | null;
|
|
1709
|
+
sales_start_date: string | null;
|
|
1710
|
+
handover_date: string | null;
|
|
1711
|
+
construction_progress_pct: number | null;
|
|
1712
|
+
sources: {
|
|
1713
|
+
construction_start_date: string | null;
|
|
1714
|
+
sales_start_date: string | null;
|
|
1715
|
+
handover_date: string | null;
|
|
1716
|
+
construction_progress_pct: string | null;
|
|
1717
|
+
};
|
|
1718
|
+
};
|
|
1719
|
+
sales_terms: {
|
|
1720
|
+
down_payment_pct: number | null;
|
|
1721
|
+
payment_plans: unknown;
|
|
1722
|
+
sources: {
|
|
1723
|
+
down_payment_pct: string | null;
|
|
1724
|
+
payment_plans: string | null;
|
|
1725
|
+
};
|
|
1726
|
+
};
|
|
1727
|
+
licence: {
|
|
1728
|
+
number: string | null;
|
|
1729
|
+
valid_from: string | null;
|
|
1730
|
+
valid_to: string | null;
|
|
1731
|
+
land_area_sqm: number | null;
|
|
1732
|
+
escrow_bank: string | null;
|
|
1733
|
+
consultant: string | null;
|
|
1734
|
+
sources: {
|
|
1735
|
+
number: string | null;
|
|
1736
|
+
valid_from: string | null;
|
|
1737
|
+
valid_to: string | null;
|
|
1738
|
+
land_area_sqm: string | null;
|
|
1739
|
+
escrow_bank: string | null;
|
|
1740
|
+
consultant: string | null;
|
|
1741
|
+
};
|
|
1742
|
+
};
|
|
1362
1743
|
source: {
|
|
1363
1744
|
name: string;
|
|
1364
1745
|
url: string | null;
|
|
@@ -1431,6 +1812,7 @@ export declare function projectsUnits(id: number, params?: {
|
|
|
1431
1812
|
neighborhood_name_en: string | null;
|
|
1432
1813
|
lat: number | null;
|
|
1433
1814
|
lng: number | null;
|
|
1815
|
+
precision: unknown;
|
|
1434
1816
|
};
|
|
1435
1817
|
images: string[];
|
|
1436
1818
|
source: {
|
|
@@ -1455,6 +1837,7 @@ export declare function projectsAvailability(id: number, params?: {
|
|
|
1455
1837
|
from?: string;
|
|
1456
1838
|
to?: string;
|
|
1457
1839
|
unitType?: string;
|
|
1840
|
+
source?: string;
|
|
1458
1841
|
}, config?: Partial<ClientConfig>): Promise<{
|
|
1459
1842
|
data: {
|
|
1460
1843
|
project_id: number;
|
|
@@ -1463,9 +1846,16 @@ export declare function projectsAvailability(id: number, params?: {
|
|
|
1463
1846
|
to: string;
|
|
1464
1847
|
unit_type: string | null;
|
|
1465
1848
|
coverage: {
|
|
1849
|
+
source: string | null;
|
|
1466
1850
|
first_snapshot: string | null;
|
|
1467
1851
|
last_snapshot: string | null;
|
|
1468
1852
|
snapshots: number;
|
|
1853
|
+
sources: {
|
|
1854
|
+
source: string;
|
|
1855
|
+
first_snapshot: string | null;
|
|
1856
|
+
last_snapshot: string | null;
|
|
1857
|
+
snapshots: number;
|
|
1858
|
+
}[];
|
|
1469
1859
|
};
|
|
1470
1860
|
points: {
|
|
1471
1861
|
date: string;
|
|
@@ -1476,6 +1866,14 @@ export declare function projectsAvailability(id: number, params?: {
|
|
|
1476
1866
|
unit_types: unknown;
|
|
1477
1867
|
starting_price: unknown;
|
|
1478
1868
|
source: string;
|
|
1869
|
+
timeline: {
|
|
1870
|
+
handover_date: string | null;
|
|
1871
|
+
construction_progress_pct: number | null;
|
|
1872
|
+
sources: {
|
|
1873
|
+
handover_date: string | null;
|
|
1874
|
+
construction_progress_pct: string | null;
|
|
1875
|
+
};
|
|
1876
|
+
};
|
|
1479
1877
|
}[];
|
|
1480
1878
|
};
|
|
1481
1879
|
}>;
|
|
@@ -1539,6 +1937,7 @@ export declare function projectsUnitsSearch(params?: {
|
|
|
1539
1937
|
neighborhood_name_en: string | null;
|
|
1540
1938
|
lat: number | null;
|
|
1541
1939
|
lng: number | null;
|
|
1940
|
+
precision: unknown;
|
|
1542
1941
|
};
|
|
1543
1942
|
images: string[];
|
|
1544
1943
|
source: {
|
|
@@ -1570,6 +1969,129 @@ export declare function projectsDevelopers(params?: {
|
|
|
1570
1969
|
}[];
|
|
1571
1970
|
pagination: Pagination;
|
|
1572
1971
|
}>;
|
|
1972
|
+
/**
|
|
1973
|
+
* @throws {ApiError<400, Error>}
|
|
1974
|
+
* @throws {ApiError<401, Error>}
|
|
1975
|
+
* @throws {ApiError<403, Error>}
|
|
1976
|
+
* @throws {ApiError<404, Error>}
|
|
1977
|
+
* @throws {ApiError<429, Error>}
|
|
1978
|
+
* @throws {ApiError<500, Error>}
|
|
1979
|
+
*/
|
|
1980
|
+
export declare function projectsAbsorption(id: number, params?: {
|
|
1981
|
+
listingType?: "sale" | "rent" | "all";
|
|
1982
|
+
from?: string;
|
|
1983
|
+
to?: string;
|
|
1984
|
+
}, config?: Partial<ClientConfig>): Promise<{
|
|
1985
|
+
data: {
|
|
1986
|
+
project_id: number;
|
|
1987
|
+
listing_type: string;
|
|
1988
|
+
from: string;
|
|
1989
|
+
to: string;
|
|
1990
|
+
basis: unknown;
|
|
1991
|
+
basis_source: string | null;
|
|
1992
|
+
reliability: string;
|
|
1993
|
+
history_days: number;
|
|
1994
|
+
first_observed: string | null;
|
|
1995
|
+
last_observed: string | null;
|
|
1996
|
+
readings: number;
|
|
1997
|
+
latest_available: unknown;
|
|
1998
|
+
usable_months: number;
|
|
1999
|
+
units_gone_per_month: number | null;
|
|
2000
|
+
months_of_stock: number | null;
|
|
2001
|
+
months: {
|
|
2002
|
+
month: string;
|
|
2003
|
+
window_start: string | null;
|
|
2004
|
+
window_end: string | null;
|
|
2005
|
+
observed_days: number;
|
|
2006
|
+
start_available: unknown;
|
|
2007
|
+
end_available: unknown;
|
|
2008
|
+
units_gone: number;
|
|
2009
|
+
units_removed: unknown;
|
|
2010
|
+
units_re_added: number;
|
|
2011
|
+
units_released: number;
|
|
2012
|
+
units_not_counted: number;
|
|
2013
|
+
absorption_rate: number | null;
|
|
2014
|
+
units_gone_per_month: number | null;
|
|
2015
|
+
months_of_stock: number | null;
|
|
2016
|
+
reliability: string;
|
|
2017
|
+
usable: boolean;
|
|
2018
|
+
flags: string[];
|
|
2019
|
+
}[];
|
|
2020
|
+
};
|
|
2021
|
+
}>;
|
|
2022
|
+
/**
|
|
2023
|
+
* @throws {ApiError<400, Error>}
|
|
2024
|
+
* @throws {ApiError<401, Error>}
|
|
2025
|
+
* @throws {ApiError<403, Error>}
|
|
2026
|
+
* @throws {ApiError<429, Error>}
|
|
2027
|
+
* @throws {ApiError<500, Error>}
|
|
2028
|
+
*/
|
|
2029
|
+
export declare function marketAbsorption(params?: {
|
|
2030
|
+
city?: string;
|
|
2031
|
+
neighborhoodId?: number[];
|
|
2032
|
+
developer?: string;
|
|
2033
|
+
propertyType?: "apartment" | "villa" | "floor" | "duplex" | "land" | "building" | "office" | "shop";
|
|
2034
|
+
projectType?: "off_plan" | "ready";
|
|
2035
|
+
listingType?: "sale" | "rent" | "all";
|
|
2036
|
+
groupBy?: "city" | "neighborhood" | "developer" | "property_type" | "project_type";
|
|
2037
|
+
from?: string;
|
|
2038
|
+
to?: string;
|
|
2039
|
+
minSampleSize?: number;
|
|
2040
|
+
}, config?: Partial<ClientConfig>): Promise<{
|
|
2041
|
+
data: {
|
|
2042
|
+
filters: {
|
|
2043
|
+
city: string | null;
|
|
2044
|
+
neighborhood_ids: unknown;
|
|
2045
|
+
developer: string | null;
|
|
2046
|
+
property_type: string | null;
|
|
2047
|
+
project_type: string | null;
|
|
2048
|
+
};
|
|
2049
|
+
listing_type: string;
|
|
2050
|
+
group_by: string;
|
|
2051
|
+
from: string;
|
|
2052
|
+
to: string;
|
|
2053
|
+
min_sample_size: number;
|
|
2054
|
+
projects_ungrouped: number;
|
|
2055
|
+
groups: {
|
|
2056
|
+
city: string | null;
|
|
2057
|
+
neighborhood_id: unknown;
|
|
2058
|
+
neighborhood_name_ar: string | null;
|
|
2059
|
+
neighborhood_name_en: string | null;
|
|
2060
|
+
developer: string | null;
|
|
2061
|
+
property_type: string | null;
|
|
2062
|
+
project_type: string | null;
|
|
2063
|
+
projects_tracked: number;
|
|
2064
|
+
projects_with_usable_month: number;
|
|
2065
|
+
months: {
|
|
2066
|
+
month: string;
|
|
2067
|
+
projects_observed: number;
|
|
2068
|
+
projects_usable: number;
|
|
2069
|
+
start_available: unknown;
|
|
2070
|
+
end_available: unknown;
|
|
2071
|
+
units_gone: unknown;
|
|
2072
|
+
units_released: unknown;
|
|
2073
|
+
units_re_added: unknown;
|
|
2074
|
+
absorption_rate: number | null;
|
|
2075
|
+
median_project_absorption_rate: number | null;
|
|
2076
|
+
units_gone_per_month: number | null;
|
|
2077
|
+
months_of_stock: number | null;
|
|
2078
|
+
flagged: {
|
|
2079
|
+
gap: number;
|
|
2080
|
+
withdrawal: number;
|
|
2081
|
+
source_change: number;
|
|
2082
|
+
released: number;
|
|
2083
|
+
units_removed: number;
|
|
2084
|
+
series_starts_mid_month: number;
|
|
2085
|
+
series_ends_mid_month: number;
|
|
2086
|
+
project_inactive: number;
|
|
2087
|
+
month_in_progress: number;
|
|
2088
|
+
no_inventory: number;
|
|
2089
|
+
no_observations: number;
|
|
2090
|
+
};
|
|
2091
|
+
}[];
|
|
2092
|
+
}[];
|
|
2093
|
+
};
|
|
2094
|
+
}>;
|
|
1573
2095
|
/**
|
|
1574
2096
|
* @throws {ApiError<400, Error>}
|
|
1575
2097
|
* @throws {ApiError<401, Error>}
|
|
@@ -1847,6 +2369,13 @@ export declare function organizationWebhooksCreate(body: {
|
|
|
1847
2369
|
price_max?: string;
|
|
1848
2370
|
area_min?: string;
|
|
1849
2371
|
area_max?: string;
|
|
2372
|
+
zoning?: string;
|
|
2373
|
+
corner?: string;
|
|
2374
|
+
street_width_min?: string;
|
|
2375
|
+
white_land_fee?: string;
|
|
2376
|
+
last_sale_within_months?: string;
|
|
2377
|
+
ask_to_last_sale_max?: string;
|
|
2378
|
+
plot_sold?: string;
|
|
1850
2379
|
};
|
|
1851
2380
|
description?: string;
|
|
1852
2381
|
}, params?: {
|
|
@@ -1889,6 +2418,13 @@ export declare function organizationWebhooksUpdate(webhookId: string, body: {
|
|
|
1889
2418
|
price_max?: string;
|
|
1890
2419
|
area_min?: string;
|
|
1891
2420
|
area_max?: string;
|
|
2421
|
+
zoning?: string;
|
|
2422
|
+
corner?: string;
|
|
2423
|
+
street_width_min?: string;
|
|
2424
|
+
white_land_fee?: string;
|
|
2425
|
+
last_sale_within_months?: string;
|
|
2426
|
+
ask_to_last_sale_max?: string;
|
|
2427
|
+
plot_sold?: string;
|
|
1892
2428
|
};
|
|
1893
2429
|
description?: unknown;
|
|
1894
2430
|
}, params?: {
|
|
@@ -2010,3 +2546,27 @@ export declare function organizationWebhooksReplay(webhookId: string, deliveryId
|
|
|
2010
2546
|
status: string;
|
|
2011
2547
|
};
|
|
2012
2548
|
}>;
|
|
2549
|
+
/**
|
|
2550
|
+
* @throws {ApiError<400, Error>}
|
|
2551
|
+
* @throws {ApiError<401, Error>}
|
|
2552
|
+
* @throws {ApiError<403, Error>}
|
|
2553
|
+
* @throws {ApiError<404, Error>}
|
|
2554
|
+
* @throws {ApiError<409, Error>}
|
|
2555
|
+
* @throws {ApiError<429, Error>}
|
|
2556
|
+
* @throws {ApiError<500, Error>}
|
|
2557
|
+
*/
|
|
2558
|
+
export declare function organizationWebhooksTest(webhookId: string, body: {
|
|
2559
|
+
event_type?: string;
|
|
2560
|
+
}, params?: {
|
|
2561
|
+
idempotencyKey?: string;
|
|
2562
|
+
}, config?: Partial<ClientConfig>): Promise<{
|
|
2563
|
+
data: {
|
|
2564
|
+
delivery_id: number;
|
|
2565
|
+
event_id: string;
|
|
2566
|
+
event_type: string;
|
|
2567
|
+
delivered: boolean;
|
|
2568
|
+
response_status: unknown;
|
|
2569
|
+
response_snippet: string | null;
|
|
2570
|
+
duration_ms: number;
|
|
2571
|
+
};
|
|
2572
|
+
}>;
|