@kite-sa/sdk 0.7.0 → 0.9.2
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 +39 -0
- package/README.md +41 -2
- package/dist/generated.d.ts +399 -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 +554 -4
- package/dist/openapi-zod/client.js +369 -0
- package/dist/openapi-zod/models.d.ts +172 -2
- package/dist/openapi-zod/models.js +7 -0
- package/dist/openapi.d.ts +117 -6
- 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,6 +1616,7 @@ 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;
|
|
@@ -1301,6 +1634,15 @@ export declare function projectsSearch(params?: {
|
|
|
1301
1634
|
bedrooms_max: unknown;
|
|
1302
1635
|
};
|
|
1303
1636
|
cover_image: string | null;
|
|
1637
|
+
timeline: {
|
|
1638
|
+
handover_date: string | null;
|
|
1639
|
+
construction_progress_pct: number | null;
|
|
1640
|
+
sources: {
|
|
1641
|
+
handover_date: string | null;
|
|
1642
|
+
construction_progress_pct: string | null;
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1645
|
+
offplan_licence_no: string | null;
|
|
1304
1646
|
last_seen_at: unknown;
|
|
1305
1647
|
}[];
|
|
1306
1648
|
pagination: Pagination;
|
|
@@ -1331,6 +1673,7 @@ export declare function projectsGet(id: number, config?: Partial<ClientConfig>):
|
|
|
1331
1673
|
neighborhood_name_en: string | null;
|
|
1332
1674
|
lat: number | null;
|
|
1333
1675
|
lng: number | null;
|
|
1676
|
+
precision: unknown;
|
|
1334
1677
|
};
|
|
1335
1678
|
price: {
|
|
1336
1679
|
starting_sar: unknown;
|
|
@@ -1359,6 +1702,42 @@ export declare function projectsGet(id: number, config?: Partial<ClientConfig>):
|
|
|
1359
1702
|
virtual_tour: string | null;
|
|
1360
1703
|
video: string | null;
|
|
1361
1704
|
};
|
|
1705
|
+
timeline: {
|
|
1706
|
+
construction_start_date: string | null;
|
|
1707
|
+
sales_start_date: string | null;
|
|
1708
|
+
handover_date: string | null;
|
|
1709
|
+
construction_progress_pct: number | null;
|
|
1710
|
+
sources: {
|
|
1711
|
+
construction_start_date: string | null;
|
|
1712
|
+
sales_start_date: string | null;
|
|
1713
|
+
handover_date: string | null;
|
|
1714
|
+
construction_progress_pct: string | null;
|
|
1715
|
+
};
|
|
1716
|
+
};
|
|
1717
|
+
sales_terms: {
|
|
1718
|
+
down_payment_pct: number | null;
|
|
1719
|
+
payment_plans: unknown;
|
|
1720
|
+
sources: {
|
|
1721
|
+
down_payment_pct: string | null;
|
|
1722
|
+
payment_plans: string | null;
|
|
1723
|
+
};
|
|
1724
|
+
};
|
|
1725
|
+
licence: {
|
|
1726
|
+
number: string | null;
|
|
1727
|
+
valid_from: string | null;
|
|
1728
|
+
valid_to: string | null;
|
|
1729
|
+
land_area_sqm: number | null;
|
|
1730
|
+
escrow_bank: string | null;
|
|
1731
|
+
consultant: string | null;
|
|
1732
|
+
sources: {
|
|
1733
|
+
number: string | null;
|
|
1734
|
+
valid_from: string | null;
|
|
1735
|
+
valid_to: string | null;
|
|
1736
|
+
land_area_sqm: string | null;
|
|
1737
|
+
escrow_bank: string | null;
|
|
1738
|
+
consultant: string | null;
|
|
1739
|
+
};
|
|
1740
|
+
};
|
|
1362
1741
|
source: {
|
|
1363
1742
|
name: string;
|
|
1364
1743
|
url: string | null;
|
|
@@ -1431,6 +1810,7 @@ export declare function projectsUnits(id: number, params?: {
|
|
|
1431
1810
|
neighborhood_name_en: string | null;
|
|
1432
1811
|
lat: number | null;
|
|
1433
1812
|
lng: number | null;
|
|
1813
|
+
precision: unknown;
|
|
1434
1814
|
};
|
|
1435
1815
|
images: string[];
|
|
1436
1816
|
source: {
|
|
@@ -1476,6 +1856,14 @@ export declare function projectsAvailability(id: number, params?: {
|
|
|
1476
1856
|
unit_types: unknown;
|
|
1477
1857
|
starting_price: unknown;
|
|
1478
1858
|
source: string;
|
|
1859
|
+
timeline: {
|
|
1860
|
+
handover_date: string | null;
|
|
1861
|
+
construction_progress_pct: number | null;
|
|
1862
|
+
sources: {
|
|
1863
|
+
handover_date: string | null;
|
|
1864
|
+
construction_progress_pct: string | null;
|
|
1865
|
+
};
|
|
1866
|
+
};
|
|
1479
1867
|
}[];
|
|
1480
1868
|
};
|
|
1481
1869
|
}>;
|
|
@@ -1539,6 +1927,7 @@ export declare function projectsUnitsSearch(params?: {
|
|
|
1539
1927
|
neighborhood_name_en: string | null;
|
|
1540
1928
|
lat: number | null;
|
|
1541
1929
|
lng: number | null;
|
|
1930
|
+
precision: unknown;
|
|
1542
1931
|
};
|
|
1543
1932
|
images: string[];
|
|
1544
1933
|
source: {
|
|
@@ -1570,6 +1959,129 @@ export declare function projectsDevelopers(params?: {
|
|
|
1570
1959
|
}[];
|
|
1571
1960
|
pagination: Pagination;
|
|
1572
1961
|
}>;
|
|
1962
|
+
/**
|
|
1963
|
+
* @throws {ApiError<400, Error>}
|
|
1964
|
+
* @throws {ApiError<401, Error>}
|
|
1965
|
+
* @throws {ApiError<403, Error>}
|
|
1966
|
+
* @throws {ApiError<404, Error>}
|
|
1967
|
+
* @throws {ApiError<429, Error>}
|
|
1968
|
+
* @throws {ApiError<500, Error>}
|
|
1969
|
+
*/
|
|
1970
|
+
export declare function projectsAbsorption(id: number, params?: {
|
|
1971
|
+
listingType?: "sale" | "rent" | "all";
|
|
1972
|
+
from?: string;
|
|
1973
|
+
to?: string;
|
|
1974
|
+
}, config?: Partial<ClientConfig>): Promise<{
|
|
1975
|
+
data: {
|
|
1976
|
+
project_id: number;
|
|
1977
|
+
listing_type: string;
|
|
1978
|
+
from: string;
|
|
1979
|
+
to: string;
|
|
1980
|
+
basis: unknown;
|
|
1981
|
+
basis_source: string | null;
|
|
1982
|
+
reliability: string;
|
|
1983
|
+
history_days: number;
|
|
1984
|
+
first_observed: string | null;
|
|
1985
|
+
last_observed: string | null;
|
|
1986
|
+
readings: number;
|
|
1987
|
+
latest_available: unknown;
|
|
1988
|
+
usable_months: number;
|
|
1989
|
+
units_gone_per_month: number | null;
|
|
1990
|
+
months_of_stock: number | null;
|
|
1991
|
+
months: {
|
|
1992
|
+
month: string;
|
|
1993
|
+
window_start: string | null;
|
|
1994
|
+
window_end: string | null;
|
|
1995
|
+
observed_days: number;
|
|
1996
|
+
start_available: unknown;
|
|
1997
|
+
end_available: unknown;
|
|
1998
|
+
units_gone: number;
|
|
1999
|
+
units_removed: unknown;
|
|
2000
|
+
units_re_added: number;
|
|
2001
|
+
units_released: number;
|
|
2002
|
+
units_not_counted: number;
|
|
2003
|
+
absorption_rate: number | null;
|
|
2004
|
+
units_gone_per_month: number | null;
|
|
2005
|
+
months_of_stock: number | null;
|
|
2006
|
+
reliability: string;
|
|
2007
|
+
usable: boolean;
|
|
2008
|
+
flags: string[];
|
|
2009
|
+
}[];
|
|
2010
|
+
};
|
|
2011
|
+
}>;
|
|
2012
|
+
/**
|
|
2013
|
+
* @throws {ApiError<400, Error>}
|
|
2014
|
+
* @throws {ApiError<401, Error>}
|
|
2015
|
+
* @throws {ApiError<403, Error>}
|
|
2016
|
+
* @throws {ApiError<429, Error>}
|
|
2017
|
+
* @throws {ApiError<500, Error>}
|
|
2018
|
+
*/
|
|
2019
|
+
export declare function marketAbsorption(params?: {
|
|
2020
|
+
city?: string;
|
|
2021
|
+
neighborhoodId?: number[];
|
|
2022
|
+
developer?: string;
|
|
2023
|
+
propertyType?: "apartment" | "villa" | "floor" | "duplex" | "land" | "building" | "office" | "shop";
|
|
2024
|
+
projectType?: "off_plan" | "ready";
|
|
2025
|
+
listingType?: "sale" | "rent" | "all";
|
|
2026
|
+
groupBy?: "city" | "neighborhood" | "developer" | "property_type" | "project_type";
|
|
2027
|
+
from?: string;
|
|
2028
|
+
to?: string;
|
|
2029
|
+
minSampleSize?: number;
|
|
2030
|
+
}, config?: Partial<ClientConfig>): Promise<{
|
|
2031
|
+
data: {
|
|
2032
|
+
filters: {
|
|
2033
|
+
city: string | null;
|
|
2034
|
+
neighborhood_ids: unknown;
|
|
2035
|
+
developer: string | null;
|
|
2036
|
+
property_type: string | null;
|
|
2037
|
+
project_type: string | null;
|
|
2038
|
+
};
|
|
2039
|
+
listing_type: string;
|
|
2040
|
+
group_by: string;
|
|
2041
|
+
from: string;
|
|
2042
|
+
to: string;
|
|
2043
|
+
min_sample_size: number;
|
|
2044
|
+
projects_ungrouped: number;
|
|
2045
|
+
groups: {
|
|
2046
|
+
city: string | null;
|
|
2047
|
+
neighborhood_id: unknown;
|
|
2048
|
+
neighborhood_name_ar: string | null;
|
|
2049
|
+
neighborhood_name_en: string | null;
|
|
2050
|
+
developer: string | null;
|
|
2051
|
+
property_type: string | null;
|
|
2052
|
+
project_type: string | null;
|
|
2053
|
+
projects_tracked: number;
|
|
2054
|
+
projects_with_usable_month: number;
|
|
2055
|
+
months: {
|
|
2056
|
+
month: string;
|
|
2057
|
+
projects_observed: number;
|
|
2058
|
+
projects_usable: number;
|
|
2059
|
+
start_available: unknown;
|
|
2060
|
+
end_available: unknown;
|
|
2061
|
+
units_gone: unknown;
|
|
2062
|
+
units_released: unknown;
|
|
2063
|
+
units_re_added: unknown;
|
|
2064
|
+
absorption_rate: number | null;
|
|
2065
|
+
median_project_absorption_rate: number | null;
|
|
2066
|
+
units_gone_per_month: number | null;
|
|
2067
|
+
months_of_stock: number | null;
|
|
2068
|
+
flagged: {
|
|
2069
|
+
gap: number;
|
|
2070
|
+
withdrawal: number;
|
|
2071
|
+
source_change: number;
|
|
2072
|
+
released: number;
|
|
2073
|
+
units_removed: number;
|
|
2074
|
+
series_starts_mid_month: number;
|
|
2075
|
+
series_ends_mid_month: number;
|
|
2076
|
+
project_inactive: number;
|
|
2077
|
+
month_in_progress: number;
|
|
2078
|
+
no_inventory: number;
|
|
2079
|
+
no_observations: number;
|
|
2080
|
+
};
|
|
2081
|
+
}[];
|
|
2082
|
+
}[];
|
|
2083
|
+
};
|
|
2084
|
+
}>;
|
|
1573
2085
|
/**
|
|
1574
2086
|
* @throws {ApiError<400, Error>}
|
|
1575
2087
|
* @throws {ApiError<401, Error>}
|
|
@@ -1847,6 +2359,13 @@ export declare function organizationWebhooksCreate(body: {
|
|
|
1847
2359
|
price_max?: string;
|
|
1848
2360
|
area_min?: string;
|
|
1849
2361
|
area_max?: string;
|
|
2362
|
+
zoning?: string;
|
|
2363
|
+
corner?: string;
|
|
2364
|
+
street_width_min?: string;
|
|
2365
|
+
white_land_fee?: string;
|
|
2366
|
+
last_sale_within_months?: string;
|
|
2367
|
+
ask_to_last_sale_max?: string;
|
|
2368
|
+
plot_sold?: string;
|
|
1850
2369
|
};
|
|
1851
2370
|
description?: string;
|
|
1852
2371
|
}, params?: {
|
|
@@ -1889,6 +2408,13 @@ export declare function organizationWebhooksUpdate(webhookId: string, body: {
|
|
|
1889
2408
|
price_max?: string;
|
|
1890
2409
|
area_min?: string;
|
|
1891
2410
|
area_max?: string;
|
|
2411
|
+
zoning?: string;
|
|
2412
|
+
corner?: string;
|
|
2413
|
+
street_width_min?: string;
|
|
2414
|
+
white_land_fee?: string;
|
|
2415
|
+
last_sale_within_months?: string;
|
|
2416
|
+
ask_to_last_sale_max?: string;
|
|
2417
|
+
plot_sold?: string;
|
|
1892
2418
|
};
|
|
1893
2419
|
description?: unknown;
|
|
1894
2420
|
}, params?: {
|
|
@@ -2010,3 +2536,27 @@ export declare function organizationWebhooksReplay(webhookId: string, deliveryId
|
|
|
2010
2536
|
status: string;
|
|
2011
2537
|
};
|
|
2012
2538
|
}>;
|
|
2539
|
+
/**
|
|
2540
|
+
* @throws {ApiError<400, Error>}
|
|
2541
|
+
* @throws {ApiError<401, Error>}
|
|
2542
|
+
* @throws {ApiError<403, Error>}
|
|
2543
|
+
* @throws {ApiError<404, Error>}
|
|
2544
|
+
* @throws {ApiError<409, Error>}
|
|
2545
|
+
* @throws {ApiError<429, Error>}
|
|
2546
|
+
* @throws {ApiError<500, Error>}
|
|
2547
|
+
*/
|
|
2548
|
+
export declare function organizationWebhooksTest(webhookId: string, body: {
|
|
2549
|
+
event_type?: string;
|
|
2550
|
+
}, params?: {
|
|
2551
|
+
idempotencyKey?: string;
|
|
2552
|
+
}, config?: Partial<ClientConfig>): Promise<{
|
|
2553
|
+
data: {
|
|
2554
|
+
delivery_id: number;
|
|
2555
|
+
event_id: string;
|
|
2556
|
+
event_type: string;
|
|
2557
|
+
delivered: boolean;
|
|
2558
|
+
response_status: unknown;
|
|
2559
|
+
response_snippet: string | null;
|
|
2560
|
+
duration_ms: number;
|
|
2561
|
+
};
|
|
2562
|
+
}>;
|