@kite-sa/sdk 0.9.5 → 0.9.6

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
@@ -2,6 +2,11 @@
2
2
 
3
3
  Formerly `@darak-app/sdk`, which is deprecated. Versions before 0.5.0 were published under that name.
4
4
 
5
+ ## 0.9.6
6
+
7
+ - `projects.models(id)` totals carry `phase`: the whole phase's units, units available and the source's own booked count on its latest stock reading, with the reading's source and day. `totals.units` stays the sum over the models listed, which is not the phase's size once a model has sold out.
8
+ - `status` and `price` descriptions say a `sold_out` phase usually has no asking price; no shape change.
9
+
5
10
  ## 0.9.5
6
11
 
7
12
  - `projects.models(id)` returns brochure specs: each model's `brochure_model` (plot and built-up area, floor areas, rooms and parking as the developer's sales brochure prints them, where the pairing was reviewed) and the project's `brochure` (finishes and warranties).
@@ -1620,6 +1620,13 @@ export declare function createEndpoints(request: Request): {
1620
1620
  models_on_offer: number;
1621
1621
  units: unknown;
1622
1622
  units_available: unknown;
1623
+ phase: {
1624
+ units: unknown;
1625
+ units_available: unknown;
1626
+ units_booked: unknown;
1627
+ source: string | null;
1628
+ as_of: string | null;
1629
+ };
1623
1630
  };
1624
1631
  brochure: unknown;
1625
1632
  models: {
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.5";
52
+ export declare const VERSION = "0.9.6";
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.5";
27
+ export const VERSION = "0.9.6";
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;
@@ -2113,6 +2113,13 @@ export declare function projectsModels(id: number, params?: {
2113
2113
  models_on_offer: number;
2114
2114
  units: unknown;
2115
2115
  units_available: unknown;
2116
+ phase: {
2117
+ units: unknown;
2118
+ units_available: unknown;
2119
+ units_booked: unknown;
2120
+ source: string | null;
2121
+ as_of: string | null;
2122
+ };
2116
2123
  };
2117
2124
  brochure: unknown;
2118
2125
  models: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kite-sa/sdk",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
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",