@kite-sa/sdk 0.11.0 → 0.11.1
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 +4 -0
- package/dist/generated.d.ts +12 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/openapi-zod/client.d.ts +13 -0
- package/dist/openapi-zod/client.js +2 -0
- package/dist/openapi.d.ts +1 -1
- package/package.json +1 -1
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.1
|
|
8
|
+
|
|
9
|
+
- `projects.search` takes `parent_project_id` (only the phases of that project) and returns `phase` (`parent_project_id` and `key`, the phase letter) on each project; `projects.get` returns `phase` and `phases` (a parent's phases, `project_id` and `key`, by letter).
|
|
10
|
+
|
|
7
11
|
## 0.11.0
|
|
8
12
|
|
|
9
13
|
- `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`).
|
package/dist/generated.d.ts
CHANGED
|
@@ -1612,6 +1612,10 @@ export declare function createEndpoints(request: Request): {
|
|
|
1612
1612
|
max: number | null;
|
|
1613
1613
|
};
|
|
1614
1614
|
advertised_unit_count: unknown;
|
|
1615
|
+
phase: {
|
|
1616
|
+
parent_project_id: unknown;
|
|
1617
|
+
key: string | null;
|
|
1618
|
+
};
|
|
1615
1619
|
last_seen_at: unknown;
|
|
1616
1620
|
description: string | null;
|
|
1617
1621
|
description_en: string | null;
|
|
@@ -1670,6 +1674,10 @@ export declare function createEndpoints(request: Request): {
|
|
|
1670
1674
|
name: string;
|
|
1671
1675
|
url: string | null;
|
|
1672
1676
|
};
|
|
1677
|
+
phases: {
|
|
1678
|
+
project_id: number;
|
|
1679
|
+
key: string | null;
|
|
1680
|
+
}[];
|
|
1673
1681
|
linked_units: {
|
|
1674
1682
|
count: number;
|
|
1675
1683
|
for_sale: number;
|
|
@@ -1839,6 +1847,10 @@ export declare function createEndpoints(request: Request): {
|
|
|
1839
1847
|
max: number | null;
|
|
1840
1848
|
};
|
|
1841
1849
|
advertised_unit_count: unknown;
|
|
1850
|
+
phase: {
|
|
1851
|
+
parent_project_id: unknown;
|
|
1852
|
+
key: string | null;
|
|
1853
|
+
};
|
|
1842
1854
|
linked_units: {
|
|
1843
1855
|
count: number;
|
|
1844
1856
|
bedrooms_min: unknown;
|
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.11.
|
|
52
|
+
export declare const VERSION = "0.11.1";
|
|
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.11.
|
|
27
|
+
export const VERSION = "0.11.1";
|
|
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;
|
|
@@ -1686,6 +1686,7 @@ export declare function projectsSearch(params?: {
|
|
|
1686
1686
|
handoverFrom?: string;
|
|
1687
1687
|
handoverTo?: string;
|
|
1688
1688
|
licensed?: "true" | "false";
|
|
1689
|
+
parentProjectId?: number;
|
|
1689
1690
|
sort?: "updated_desc" | "price_asc" | "price_desc";
|
|
1690
1691
|
limit?: number;
|
|
1691
1692
|
cursor?: string;
|
|
@@ -1723,6 +1724,10 @@ export declare function projectsSearch(params?: {
|
|
|
1723
1724
|
max: number | null;
|
|
1724
1725
|
};
|
|
1725
1726
|
advertised_unit_count: unknown;
|
|
1727
|
+
phase: {
|
|
1728
|
+
parent_project_id: unknown;
|
|
1729
|
+
key: string | null;
|
|
1730
|
+
};
|
|
1726
1731
|
linked_units: {
|
|
1727
1732
|
count: number;
|
|
1728
1733
|
bedrooms_min: unknown;
|
|
@@ -1785,6 +1790,10 @@ export declare function projectsGet(id: number, config?: Partial<ClientConfig>):
|
|
|
1785
1790
|
max: number | null;
|
|
1786
1791
|
};
|
|
1787
1792
|
advertised_unit_count: unknown;
|
|
1793
|
+
phase: {
|
|
1794
|
+
parent_project_id: unknown;
|
|
1795
|
+
key: string | null;
|
|
1796
|
+
};
|
|
1788
1797
|
last_seen_at: unknown;
|
|
1789
1798
|
description: string | null;
|
|
1790
1799
|
description_en: string | null;
|
|
@@ -1843,6 +1852,10 @@ export declare function projectsGet(id: number, config?: Partial<ClientConfig>):
|
|
|
1843
1852
|
name: string;
|
|
1844
1853
|
url: string | null;
|
|
1845
1854
|
};
|
|
1855
|
+
phases: {
|
|
1856
|
+
project_id: number;
|
|
1857
|
+
key: string | null;
|
|
1858
|
+
}[];
|
|
1846
1859
|
linked_units: {
|
|
1847
1860
|
count: number;
|
|
1848
1861
|
for_sale: number;
|
|
@@ -1295,6 +1295,8 @@ export async function projectsSearch(params, config) {
|
|
|
1295
1295
|
searchParams.set("handover_to", String(params.handoverTo));
|
|
1296
1296
|
if (params?.licensed != null)
|
|
1297
1297
|
searchParams.set("licensed", String(params.licensed));
|
|
1298
|
+
if (params?.parentProjectId != null)
|
|
1299
|
+
searchParams.set("parent_project_id", String(params.parentProjectId));
|
|
1298
1300
|
if (params?.sort != null)
|
|
1299
1301
|
searchParams.set("sort", String(params.sort));
|
|
1300
1302
|
if (params?.limit != null)
|
package/dist/openapi.d.ts
CHANGED
|
@@ -442,7 +442,7 @@ export interface operations {
|
|
|
442
442
|
};
|
|
443
443
|
"projects.search": {
|
|
444
444
|
parameters: {
|
|
445
|
-
query?: Pick<SnakeKeys<NonNullable<Parameters<typeof import("./openapi-zod/client.js").projectsSearch>[0]>>, "city" | "neighborhood_id" | "town" | "developer" | "status" | "project_type" | "listing_category" | "features" | "banks" | "kind" | "price_basis" | "q" | "price_min" | "price_max" | "handover_from" | "handover_to" | "licensed" | "sort" | "limit" | "cursor">;
|
|
445
|
+
query?: Pick<SnakeKeys<NonNullable<Parameters<typeof import("./openapi-zod/client.js").projectsSearch>[0]>>, "city" | "neighborhood_id" | "town" | "developer" | "status" | "project_type" | "listing_category" | "features" | "banks" | "kind" | "price_basis" | "q" | "price_min" | "price_max" | "handover_from" | "handover_to" | "licensed" | "parent_project_id" | "sort" | "limit" | "cursor">;
|
|
446
446
|
};
|
|
447
447
|
responses: {
|
|
448
448
|
200: {
|