@kite-sa/sdk 0.9.4 → 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 +9 -0
- package/dist/generated.d.ts +9 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/openapi-zod/client.d.ts +9 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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
|
+
|
|
10
|
+
## 0.9.5
|
|
11
|
+
|
|
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).
|
|
13
|
+
|
|
5
14
|
## 0.9.4
|
|
6
15
|
|
|
7
16
|
- `projects.models(id)` lists a project's unit models: type, bedrooms, size, units in total and available, and the full and beneficiary price ranges of the available units (`GET /projects/{id}/models`).
|
package/dist/generated.d.ts
CHANGED
|
@@ -1620,7 +1620,15 @@ 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
|
};
|
|
1631
|
+
brochure: unknown;
|
|
1624
1632
|
models: {
|
|
1625
1633
|
id: number;
|
|
1626
1634
|
name: string | null;
|
|
@@ -1652,6 +1660,7 @@ export declare function createEndpoints(request: Request): {
|
|
|
1652
1660
|
};
|
|
1653
1661
|
on_offer: boolean;
|
|
1654
1662
|
developer_model: unknown;
|
|
1663
|
+
brochure_model: unknown;
|
|
1655
1664
|
first_seen_at: unknown;
|
|
1656
1665
|
last_seen_at: unknown;
|
|
1657
1666
|
}[];
|
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.
|
|
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.
|
|
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,7 +2113,15 @@ 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
|
};
|
|
2124
|
+
brochure: unknown;
|
|
2117
2125
|
models: {
|
|
2118
2126
|
id: number;
|
|
2119
2127
|
name: string | null;
|
|
@@ -2145,6 +2153,7 @@ export declare function projectsModels(id: number, params?: {
|
|
|
2145
2153
|
};
|
|
2146
2154
|
on_offer: boolean;
|
|
2147
2155
|
developer_model: unknown;
|
|
2156
|
+
brochure_model: unknown;
|
|
2148
2157
|
first_seen_at: unknown;
|
|
2149
2158
|
last_seen_at: unknown;
|
|
2150
2159
|
}[];
|