@kite-sa/sdk 0.9.16 → 0.11.0

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 CHANGED
@@ -4,6 +4,14 @@ Formerly `@darak-app/sdk`, which is deprecated. Versions before 0.5.0 were publi
4
4
 
5
5
  Releases after 0.9.15 are written as change notes and added to this file when the package is published; in the source repository they can still be notes under `changes/`.
6
6
 
7
+ ## 0.11.0
8
+
9
+ - `reference.coverage` returns `listing_summary`, `projects`, `registered_deals_from_registers`, and new fields in `registered_deals` (`first_quarter`, `deals`, `notary_only_from`, `open_data_ends`) and `registered_rents` (`first_quarter`, `neighborhoods`, `contracts`).
10
+
11
+ ## 0.10.0
12
+
13
+ - Project timelines carry `handover_basis` (`wafi_registry_end`, `developer` or `portal`): what kind of date `handover_date` is.
14
+
7
15
  ## 0.9.16
8
16
 
9
17
  - `projects.absorption` returns `average_since_launch` (Sakani's booked units per unit type ÷ months since sales began, an average over the whole life of the sales, never an observed month, with `launch_basis`, the observed change in the booked count and `flags`) and `neighborhood_deeds` (home sale deeds registered in the project's neighbourhood by month over the last 24 full months). `projects.models` returns `totals.average_since_launch`. `sell_through.launch_basis` can be `"sales_start_date"`.
@@ -1554,6 +1554,7 @@ export declare function createEndpoints(request: Request): {
1554
1554
  source: string;
1555
1555
  timeline: {
1556
1556
  handover_date: string | null;
1557
+ handover_basis: unknown;
1557
1558
  construction_progress_pct: number | null;
1558
1559
  sources: {
1559
1560
  handover_date: string | null;
@@ -1632,6 +1633,7 @@ export declare function createEndpoints(request: Request): {
1632
1633
  construction_start_date: string | null;
1633
1634
  sales_start_date: string | null;
1634
1635
  handover_date: string | null;
1636
+ handover_basis: unknown;
1635
1637
  construction_progress_pct: number | null;
1636
1638
  sources: {
1637
1639
  construction_start_date: string | null;
@@ -1845,6 +1847,7 @@ export declare function createEndpoints(request: Request): {
1845
1847
  cover_image: string | null;
1846
1848
  timeline: {
1847
1849
  handover_date: string | null;
1850
+ handover_basis: unknown;
1848
1851
  construction_progress_pct: number | null;
1849
1852
  sources: {
1850
1853
  handover_date: string | null;
@@ -1962,9 +1965,10 @@ export declare function createEndpoints(request: Request): {
1962
1965
  /**
1963
1966
  * What the API covers. What the API can answer, per city: active listings by
1964
1967
  * listing type and kind of property, how many neighborhoods have at least 10 of
1965
- * them, the share with a published nearby price band, the latest registered-deal
1966
- * quarter and how much of it is placed in neighborhoods, and whether registered
1967
- * rents exist.
1968
+ * them, the share with a published nearby price band, the listing sources, the
1969
+ * projects and how many carry prices, handover dates, payment plans and
1970
+ * model-level stock, the registered-deal history (open data, where it stops, and
1971
+ * the deals from the registers), and the registered rent index.
1968
1972
  */
1969
1973
  readonly coverage: (params?: QueryOf<"reference.coverage">) => Promise<{
1970
1974
  data: {
@@ -1981,14 +1985,52 @@ export declare function createEndpoints(request: Request): {
1981
1985
  neighborhoods_with_10_listings: number;
1982
1986
  price_band_ready_pct: number | null;
1983
1987
  }[];
1988
+ listing_summary: {
1989
+ sources: number;
1990
+ rent: {
1991
+ active_listings: number;
1992
+ neighborhoods_with_10_listings: number;
1993
+ };
1994
+ sale: {
1995
+ active_listings: number;
1996
+ neighborhoods_with_10_listings: number;
1997
+ };
1998
+ };
1999
+ projects: {
2000
+ active: number;
2001
+ with_price_pct: number | null;
2002
+ with_handover_date_pct: number | null;
2003
+ with_payment_plan_pct: number | null;
2004
+ with_model_stock_pct: number | null;
2005
+ refreshed_48h_pct: number | null;
2006
+ };
1984
2007
  registered_deals: {
2008
+ first_quarter: string | null;
2009
+ deals: number;
2010
+ notary_only_from: string | null;
2011
+ open_data_ends: string | null;
1985
2012
  latest_quarter: string | null;
1986
2013
  neighborhood_mapped_pct: number | null;
1987
2014
  mappable_deals: number;
1988
2015
  };
2016
+ registered_deals_from_registers: {
2017
+ real_estate_registry: {
2018
+ deals: number;
2019
+ first_month: string | null;
2020
+ last_month: string | null;
2021
+ };
2022
+ moj_notary: {
2023
+ deals: number;
2024
+ first_month: string | null;
2025
+ last_month: string | null;
2026
+ };
2027
+ };
1989
2028
  registered_rents: {
1990
2029
  available: boolean;
2030
+ first_quarter: string | null;
1991
2031
  latest_quarter: string | null;
2032
+ neighborhoods: number;
2033
+ contracts: number;
1992
2034
  };
1993
2035
  }[];
1994
2036
  };
package/dist/generated.js CHANGED
@@ -394,9 +394,10 @@ export function createEndpoints(request) {
394
394
  /**
395
395
  * What the API covers. What the API can answer, per city: active listings by
396
396
  * listing type and kind of property, how many neighborhoods have at least 10 of
397
- * them, the share with a published nearby price band, the latest registered-deal
398
- * quarter and how much of it is placed in neighborhoods, and whether registered
399
- * rents exist.
397
+ * them, the share with a published nearby price band, the listing sources, the
398
+ * projects and how many carry prices, handover dates, payment plans and
399
+ * model-level stock, the registered-deal history (open data, where it stops, and
400
+ * the deals from the registers), and the registered rent index.
400
401
  */
401
402
  coverage: (params) => request("GET", "/coverage", {
402
403
  query: (params ?? {}),
package/dist/index.d.ts CHANGED
@@ -49,7 +49,7 @@ export interface KiteOptions {
49
49
  }
50
50
  type Query = Record<string, string | number | boolean | readonly (string | number)[] | undefined>;
51
51
  /** Kept in step with package.json by src/index.test.ts. */
52
- export declare const VERSION = "0.9.16";
52
+ export declare const VERSION = "0.11.0";
53
53
  /** Arrays go comma-separated, as the API expects; unset values are dropped. */
54
54
  export declare function toSearchParams(query?: Query): string;
55
55
  /**
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ export class KiteError extends Error {
24
24
  }
25
25
  }
26
26
  /** Kept in step with package.json by src/index.test.ts. */
27
- export const VERSION = "0.9.16";
27
+ export const VERSION = "0.11.0";
28
28
  const USER_AGENT = `kite-sa-js/${VERSION}`;
29
29
  /** Longest Retry-After worth waiting for; anything longer (a monthly quota) throws. */
30
30
  const MAX_RETRY_WAIT_S = 60;
@@ -137,14 +137,52 @@ export declare function referenceCoverage(params?: {
137
137
  neighborhoods_with_10_listings: number;
138
138
  price_band_ready_pct: number | null;
139
139
  }[];
140
+ listing_summary: {
141
+ sources: number;
142
+ rent: {
143
+ active_listings: number;
144
+ neighborhoods_with_10_listings: number;
145
+ };
146
+ sale: {
147
+ active_listings: number;
148
+ neighborhoods_with_10_listings: number;
149
+ };
150
+ };
151
+ projects: {
152
+ active: number;
153
+ with_price_pct: number | null;
154
+ with_handover_date_pct: number | null;
155
+ with_payment_plan_pct: number | null;
156
+ with_model_stock_pct: number | null;
157
+ refreshed_48h_pct: number | null;
158
+ };
140
159
  registered_deals: {
160
+ first_quarter: string | null;
161
+ deals: number;
162
+ notary_only_from: string | null;
163
+ open_data_ends: string | null;
141
164
  latest_quarter: string | null;
142
165
  neighborhood_mapped_pct: number | null;
143
166
  mappable_deals: number;
144
167
  };
168
+ registered_deals_from_registers: {
169
+ real_estate_registry: {
170
+ deals: number;
171
+ first_month: string | null;
172
+ last_month: string | null;
173
+ };
174
+ moj_notary: {
175
+ deals: number;
176
+ first_month: string | null;
177
+ last_month: string | null;
178
+ };
179
+ };
145
180
  registered_rents: {
146
181
  available: boolean;
182
+ first_quarter: string | null;
147
183
  latest_quarter: string | null;
184
+ neighborhoods: number;
185
+ contracts: number;
148
186
  };
149
187
  }[];
150
188
  };
@@ -1693,6 +1731,7 @@ export declare function projectsSearch(params?: {
1693
1731
  cover_image: string | null;
1694
1732
  timeline: {
1695
1733
  handover_date: string | null;
1734
+ handover_basis: unknown;
1696
1735
  construction_progress_pct: number | null;
1697
1736
  sources: {
1698
1737
  handover_date: string | null;
@@ -1767,6 +1806,7 @@ export declare function projectsGet(id: number, config?: Partial<ClientConfig>):
1767
1806
  construction_start_date: string | null;
1768
1807
  sales_start_date: string | null;
1769
1808
  handover_date: string | null;
1809
+ handover_basis: unknown;
1770
1810
  construction_progress_pct: number | null;
1771
1811
  sources: {
1772
1812
  construction_start_date: string | null;
@@ -1927,6 +1967,7 @@ export declare function projectsAvailability(id: number, params?: {
1927
1967
  source: string;
1928
1968
  timeline: {
1929
1969
  handover_date: string | null;
1970
+ handover_basis: unknown;
1930
1971
  construction_progress_pct: number | null;
1931
1972
  sources: {
1932
1973
  handover_date: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kite-sa/sdk",
3
- "version": "0.9.16",
3
+ "version": "0.11.0",
4
4
  "description": "Official JavaScript/TypeScript client for the Kite API: Saudi real-estate listings and market data.",
5
5
  "license": "MIT",
6
6
  "type": "module",