@kite-sa/sdk 0.9.15 → 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 +10 -0
- package/dist/generated.d.ts +64 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/openapi-zod/client.d.ts +64 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Formerly `@darak-app/sdk`, which is deprecated. Versions before 0.5.0 were published under that name.
|
|
4
4
|
|
|
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
|
+
|
|
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
|
+
|
|
11
|
+
## 0.9.16
|
|
12
|
+
|
|
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"`.
|
|
14
|
+
|
|
5
15
|
## 0.9.15
|
|
6
16
|
|
|
7
17
|
- Webhook project events `project.withdrawn_from_sale` (a project's units taken off sale with few of them booked: not a sell-out) and `project.returned_to_sale` (a withdrawn project with units on sale again), typed (`WebhookProjectWithdrawnFromSaleEvent`, `WebhookProjectReturnedToSaleEvent`) and accepted by `parseWebhookEvent`.
|
package/dist/generated.d.ts
CHANGED
|
@@ -1447,6 +1447,36 @@ export declare function createEndpoints(request: Request): {
|
|
|
1447
1447
|
usable_months: number;
|
|
1448
1448
|
units_gone_per_month: number | null;
|
|
1449
1449
|
months_of_stock: number | null;
|
|
1450
|
+
average_since_launch: {
|
|
1451
|
+
source: string | null;
|
|
1452
|
+
as_of: string | null;
|
|
1453
|
+
launch_date: string | null;
|
|
1454
|
+
launch_basis: unknown;
|
|
1455
|
+
months_since_launch: number | null;
|
|
1456
|
+
first_unit_listed: string | null;
|
|
1457
|
+
units_booked: unknown;
|
|
1458
|
+
units_available: unknown;
|
|
1459
|
+
units_released: unknown;
|
|
1460
|
+
units_in_project: unknown;
|
|
1461
|
+
units_booked_per_month: number | null;
|
|
1462
|
+
units_booked_per_month_since_first_unit: number | null;
|
|
1463
|
+
by_unit_type: {
|
|
1464
|
+
unit_type: string;
|
|
1465
|
+
units_booked: number;
|
|
1466
|
+
units_available: number;
|
|
1467
|
+
units_booked_per_month: number | null;
|
|
1468
|
+
observed_units_booked_change: unknown;
|
|
1469
|
+
}[];
|
|
1470
|
+
observed: {
|
|
1471
|
+
from: string | null;
|
|
1472
|
+
to: string | null;
|
|
1473
|
+
days: unknown;
|
|
1474
|
+
units_booked_change: unknown;
|
|
1475
|
+
units_booked_per_month: number | null;
|
|
1476
|
+
};
|
|
1477
|
+
reliability: string;
|
|
1478
|
+
flags: string[];
|
|
1479
|
+
};
|
|
1450
1480
|
months: {
|
|
1451
1481
|
month: string;
|
|
1452
1482
|
window_start: string | null;
|
|
@@ -1483,6 +1513,7 @@ export declare function createEndpoints(request: Request): {
|
|
|
1483
1513
|
units_gone_per_month_since_launch: number | null;
|
|
1484
1514
|
reliability: string;
|
|
1485
1515
|
};
|
|
1516
|
+
neighborhood_deeds: unknown;
|
|
1486
1517
|
};
|
|
1487
1518
|
}>;
|
|
1488
1519
|
/**
|
|
@@ -1523,6 +1554,7 @@ export declare function createEndpoints(request: Request): {
|
|
|
1523
1554
|
source: string;
|
|
1524
1555
|
timeline: {
|
|
1525
1556
|
handover_date: string | null;
|
|
1557
|
+
handover_basis: unknown;
|
|
1526
1558
|
construction_progress_pct: number | null;
|
|
1527
1559
|
sources: {
|
|
1528
1560
|
handover_date: string | null;
|
|
@@ -1601,6 +1633,7 @@ export declare function createEndpoints(request: Request): {
|
|
|
1601
1633
|
construction_start_date: string | null;
|
|
1602
1634
|
sales_start_date: string | null;
|
|
1603
1635
|
handover_date: string | null;
|
|
1636
|
+
handover_basis: unknown;
|
|
1604
1637
|
construction_progress_pct: number | null;
|
|
1605
1638
|
sources: {
|
|
1606
1639
|
construction_start_date: string | null;
|
|
@@ -1675,6 +1708,36 @@ export declare function createEndpoints(request: Request): {
|
|
|
1675
1708
|
source: string | null;
|
|
1676
1709
|
as_of: string | null;
|
|
1677
1710
|
};
|
|
1711
|
+
average_since_launch: {
|
|
1712
|
+
source: string | null;
|
|
1713
|
+
as_of: string | null;
|
|
1714
|
+
launch_date: string | null;
|
|
1715
|
+
launch_basis: unknown;
|
|
1716
|
+
months_since_launch: number | null;
|
|
1717
|
+
first_unit_listed: string | null;
|
|
1718
|
+
units_booked: unknown;
|
|
1719
|
+
units_available: unknown;
|
|
1720
|
+
units_released: unknown;
|
|
1721
|
+
units_in_project: unknown;
|
|
1722
|
+
units_booked_per_month: number | null;
|
|
1723
|
+
units_booked_per_month_since_first_unit: number | null;
|
|
1724
|
+
by_unit_type: {
|
|
1725
|
+
unit_type: string;
|
|
1726
|
+
units_booked: number;
|
|
1727
|
+
units_available: number;
|
|
1728
|
+
units_booked_per_month: number | null;
|
|
1729
|
+
observed_units_booked_change: unknown;
|
|
1730
|
+
}[];
|
|
1731
|
+
observed: {
|
|
1732
|
+
from: string | null;
|
|
1733
|
+
to: string | null;
|
|
1734
|
+
days: unknown;
|
|
1735
|
+
units_booked_change: unknown;
|
|
1736
|
+
units_booked_per_month: number | null;
|
|
1737
|
+
};
|
|
1738
|
+
reliability: string;
|
|
1739
|
+
flags: string[];
|
|
1740
|
+
};
|
|
1678
1741
|
left_market: {
|
|
1679
1742
|
units_booked: number;
|
|
1680
1743
|
units_unconfirmed: number;
|
|
@@ -1784,6 +1847,7 @@ export declare function createEndpoints(request: Request): {
|
|
|
1784
1847
|
cover_image: string | null;
|
|
1785
1848
|
timeline: {
|
|
1786
1849
|
handover_date: string | null;
|
|
1850
|
+
handover_basis: unknown;
|
|
1787
1851
|
construction_progress_pct: number | null;
|
|
1788
1852
|
sources: {
|
|
1789
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.
|
|
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.
|
|
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;
|
|
@@ -2060,6 +2063,36 @@ export declare function projectsAbsorption(id: number, params?: {
|
|
|
2060
2063
|
usable_months: number;
|
|
2061
2064
|
units_gone_per_month: number | null;
|
|
2062
2065
|
months_of_stock: number | null;
|
|
2066
|
+
average_since_launch: {
|
|
2067
|
+
source: string | null;
|
|
2068
|
+
as_of: string | null;
|
|
2069
|
+
launch_date: string | null;
|
|
2070
|
+
launch_basis: unknown;
|
|
2071
|
+
months_since_launch: number | null;
|
|
2072
|
+
first_unit_listed: string | null;
|
|
2073
|
+
units_booked: unknown;
|
|
2074
|
+
units_available: unknown;
|
|
2075
|
+
units_released: unknown;
|
|
2076
|
+
units_in_project: unknown;
|
|
2077
|
+
units_booked_per_month: number | null;
|
|
2078
|
+
units_booked_per_month_since_first_unit: number | null;
|
|
2079
|
+
by_unit_type: {
|
|
2080
|
+
unit_type: string;
|
|
2081
|
+
units_booked: number;
|
|
2082
|
+
units_available: number;
|
|
2083
|
+
units_booked_per_month: number | null;
|
|
2084
|
+
observed_units_booked_change: unknown;
|
|
2085
|
+
}[];
|
|
2086
|
+
observed: {
|
|
2087
|
+
from: string | null;
|
|
2088
|
+
to: string | null;
|
|
2089
|
+
days: unknown;
|
|
2090
|
+
units_booked_change: unknown;
|
|
2091
|
+
units_booked_per_month: number | null;
|
|
2092
|
+
};
|
|
2093
|
+
reliability: string;
|
|
2094
|
+
flags: string[];
|
|
2095
|
+
};
|
|
2063
2096
|
months: {
|
|
2064
2097
|
month: string;
|
|
2065
2098
|
window_start: string | null;
|
|
@@ -2096,6 +2129,7 @@ export declare function projectsAbsorption(id: number, params?: {
|
|
|
2096
2129
|
units_gone_per_month_since_launch: number | null;
|
|
2097
2130
|
reliability: string;
|
|
2098
2131
|
};
|
|
2132
|
+
neighborhood_deeds: unknown;
|
|
2099
2133
|
};
|
|
2100
2134
|
}>;
|
|
2101
2135
|
/**
|
|
@@ -2213,6 +2247,36 @@ export declare function projectsModels(id: number, params?: {
|
|
|
2213
2247
|
source: string | null;
|
|
2214
2248
|
as_of: string | null;
|
|
2215
2249
|
};
|
|
2250
|
+
average_since_launch: {
|
|
2251
|
+
source: string | null;
|
|
2252
|
+
as_of: string | null;
|
|
2253
|
+
launch_date: string | null;
|
|
2254
|
+
launch_basis: unknown;
|
|
2255
|
+
months_since_launch: number | null;
|
|
2256
|
+
first_unit_listed: string | null;
|
|
2257
|
+
units_booked: unknown;
|
|
2258
|
+
units_available: unknown;
|
|
2259
|
+
units_released: unknown;
|
|
2260
|
+
units_in_project: unknown;
|
|
2261
|
+
units_booked_per_month: number | null;
|
|
2262
|
+
units_booked_per_month_since_first_unit: number | null;
|
|
2263
|
+
by_unit_type: {
|
|
2264
|
+
unit_type: string;
|
|
2265
|
+
units_booked: number;
|
|
2266
|
+
units_available: number;
|
|
2267
|
+
units_booked_per_month: number | null;
|
|
2268
|
+
observed_units_booked_change: unknown;
|
|
2269
|
+
}[];
|
|
2270
|
+
observed: {
|
|
2271
|
+
from: string | null;
|
|
2272
|
+
to: string | null;
|
|
2273
|
+
days: unknown;
|
|
2274
|
+
units_booked_change: unknown;
|
|
2275
|
+
units_booked_per_month: number | null;
|
|
2276
|
+
};
|
|
2277
|
+
reliability: string;
|
|
2278
|
+
flags: string[];
|
|
2279
|
+
};
|
|
2216
2280
|
left_market: {
|
|
2217
2281
|
units_booked: number;
|
|
2218
2282
|
units_unconfirmed: number;
|