@kite-sa/sdk 0.9.9 → 0.9.10
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/openapi-zod/models.d.ts +39 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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.10
|
|
6
|
+
|
|
7
|
+
- `exports.create` accepts the `projects`, `project_models` and `project_availability` datasets, with their filter types (`ProjectExportFilters`, `ProjectModelExportFilters`, `ProjectAvailabilityExportFilters`): `city`, `town`, `project_id` and `kind` on all three.
|
|
8
|
+
|
|
5
9
|
## 0.9.9
|
|
6
10
|
|
|
7
11
|
- `projects.absorption(id)` carries `sell_through`: units sold to date from the latest stock reading (units in the project, available, sold or reserved, taken off sale, the share sold) and, where a launch date is known, the average units sold a month since launch, with the launch date's basis and a reliability. `market.absorption()` groups carry it pooled.
|
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.10";
|
|
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.10";
|
|
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;
|
|
@@ -18,7 +18,7 @@ export interface Error {
|
|
|
18
18
|
}
|
|
19
19
|
export interface Export {
|
|
20
20
|
id: string;
|
|
21
|
-
dataset: "listings" | "listing_changes" | "registered_transactions" | "registered_rents" | "aggregate_layers";
|
|
21
|
+
dataset: "listings" | "listing_changes" | "registered_transactions" | "registered_rents" | "aggregate_layers" | "projects" | "project_models" | "project_availability";
|
|
22
22
|
format: "ndjson" | "csv";
|
|
23
23
|
compression: "gzip" | "none";
|
|
24
24
|
status: "queued" | "running" | "completed" | "failed" | "expired";
|
|
@@ -72,6 +72,21 @@ export type ExportRequest = {
|
|
|
72
72
|
filters?: RentExportFilters;
|
|
73
73
|
format?: "ndjson" | "csv";
|
|
74
74
|
compression?: "gzip" | "none";
|
|
75
|
+
} | {
|
|
76
|
+
dataset: "projects";
|
|
77
|
+
filters?: ProjectExportFilters;
|
|
78
|
+
format?: "ndjson" | "csv";
|
|
79
|
+
compression?: "gzip" | "none";
|
|
80
|
+
} | {
|
|
81
|
+
dataset: "project_models";
|
|
82
|
+
filters?: ProjectModelExportFilters;
|
|
83
|
+
format?: "ndjson" | "csv";
|
|
84
|
+
compression?: "gzip" | "none";
|
|
85
|
+
} | {
|
|
86
|
+
dataset: "project_availability";
|
|
87
|
+
filters?: ProjectAvailabilityExportFilters;
|
|
88
|
+
format?: "ndjson" | "csv";
|
|
89
|
+
compression?: "gzip" | "none";
|
|
75
90
|
} | {
|
|
76
91
|
dataset: "aggregate_layers";
|
|
77
92
|
filters?: AggregateLayerExportFilters;
|
|
@@ -244,6 +259,29 @@ export interface Pagination {
|
|
|
244
259
|
has_more: boolean;
|
|
245
260
|
result_window_reached: boolean;
|
|
246
261
|
}
|
|
262
|
+
export interface ProjectAvailabilityExportFilters {
|
|
263
|
+
city?: string[];
|
|
264
|
+
town?: string[];
|
|
265
|
+
project_id?: number[];
|
|
266
|
+
kind?: "development" | "compound" | "all";
|
|
267
|
+
from?: string;
|
|
268
|
+
to?: string;
|
|
269
|
+
}
|
|
270
|
+
export interface ProjectExportFilters {
|
|
271
|
+
city?: string[];
|
|
272
|
+
town?: string[];
|
|
273
|
+
project_id?: number[];
|
|
274
|
+
kind?: "development" | "compound" | "all";
|
|
275
|
+
listing_category?: "residential" | "commercial";
|
|
276
|
+
project_type?: "off_plan" | "ready";
|
|
277
|
+
}
|
|
278
|
+
export interface ProjectModelExportFilters {
|
|
279
|
+
city?: string[];
|
|
280
|
+
town?: string[];
|
|
281
|
+
project_id?: number[];
|
|
282
|
+
kind?: "development" | "compound" | "all";
|
|
283
|
+
unit_type?: "apartment" | "villa" | "townhouse"[];
|
|
284
|
+
}
|
|
247
285
|
export interface RentExportFilters {
|
|
248
286
|
city?: string[];
|
|
249
287
|
property_type?: "apartment" | "studio" | "floor" | "villa" | "duplex"[];
|