@kite-sa/sdk 0.9.16 → 0.10.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.10.0
8
+
9
+ - Project timelines carry `handover_basis` (`wafi_registry_end`, `developer` or `portal`): what kind of date `handover_date` is.
10
+
7
11
  ## 0.9.16
8
12
 
9
13
  - `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;
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.10.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.10.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;
@@ -1693,6 +1693,7 @@ export declare function projectsSearch(params?: {
1693
1693
  cover_image: string | null;
1694
1694
  timeline: {
1695
1695
  handover_date: string | null;
1696
+ handover_basis: unknown;
1696
1697
  construction_progress_pct: number | null;
1697
1698
  sources: {
1698
1699
  handover_date: string | null;
@@ -1767,6 +1768,7 @@ export declare function projectsGet(id: number, config?: Partial<ClientConfig>):
1767
1768
  construction_start_date: string | null;
1768
1769
  sales_start_date: string | null;
1769
1770
  handover_date: string | null;
1771
+ handover_basis: unknown;
1770
1772
  construction_progress_pct: number | null;
1771
1773
  sources: {
1772
1774
  construction_start_date: string | null;
@@ -1927,6 +1929,7 @@ export declare function projectsAvailability(id: number, params?: {
1927
1929
  source: string;
1928
1930
  timeline: {
1929
1931
  handover_date: string | null;
1932
+ handover_basis: unknown;
1930
1933
  construction_progress_pct: number | null;
1931
1934
  sources: {
1932
1935
  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.10.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",