@kite-sa/sdk 0.10.0 → 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,10 @@ 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
+
7
11
  ## 0.10.0
8
12
 
9
13
  - Project timelines carry `handover_basis` (`wafi_registry_end`, `developer` or `portal`): what kind of date `handover_date` is.
@@ -1965,9 +1965,10 @@ export declare function createEndpoints(request: Request): {
1965
1965
  /**
1966
1966
  * What the API covers. What the API can answer, per city: active listings by
1967
1967
  * listing type and kind of property, how many neighborhoods have at least 10 of
1968
- * them, the share with a published nearby price band, the latest registered-deal
1969
- * quarter and how much of it is placed in neighborhoods, and whether registered
1970
- * 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.
1971
1972
  */
1972
1973
  readonly coverage: (params?: QueryOf<"reference.coverage">) => Promise<{
1973
1974
  data: {
@@ -1984,14 +1985,52 @@ export declare function createEndpoints(request: Request): {
1984
1985
  neighborhoods_with_10_listings: number;
1985
1986
  price_band_ready_pct: number | null;
1986
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
+ };
1987
2007
  registered_deals: {
2008
+ first_quarter: string | null;
2009
+ deals: number;
2010
+ notary_only_from: string | null;
2011
+ open_data_ends: string | null;
1988
2012
  latest_quarter: string | null;
1989
2013
  neighborhood_mapped_pct: number | null;
1990
2014
  mappable_deals: number;
1991
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
+ };
1992
2028
  registered_rents: {
1993
2029
  available: boolean;
2030
+ first_quarter: string | null;
1994
2031
  latest_quarter: string | null;
2032
+ neighborhoods: number;
2033
+ contracts: number;
1995
2034
  };
1996
2035
  }[];
1997
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.10.0";
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.10.0";
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kite-sa/sdk",
3
- "version": "0.10.0",
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",