@kite-sa/sdk 0.0.0-stage → 0.5.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 +47 -0
- package/LICENSE +21 -0
- package/README.md +60 -2
- package/dist/generated.d.ts +1311 -0
- package/dist/generated.js +327 -0
- package/dist/index.d.ts +111 -0
- package/dist/index.js +146 -0
- package/dist/openapi-zod/client-config.d.ts +64 -0
- package/dist/openapi-zod/client-config.js +13 -0
- package/dist/openapi-zod/client.d.ts +1728 -0
- package/dist/openapi-zod/client.js +1247 -0
- package/dist/openapi-zod/index.d.ts +3 -0
- package/dist/openapi-zod/index.js +4 -0
- package/dist/openapi-zod/models.d.ts +241 -0
- package/dist/openapi-zod/models.js +2 -0
- package/dist/openapi.d.ts +593 -0
- package/dist/openapi.js +1 -0
- package/package.json +47 -4
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
export type CoverageFlag = "full" | "notary_only" | "incomplete";
|
|
2
|
+
export declare const CoverageFlagValues: readonly ["full", "notary_only", "incomplete"];
|
|
3
|
+
export interface Error {
|
|
4
|
+
error: {
|
|
5
|
+
type: "invalid_request" | "authentication_error" | "permission_error" | "not_found" | "method_not_allowed" | "conflict" | "rate_limit_error" | "api_error";
|
|
6
|
+
code: string;
|
|
7
|
+
message: string;
|
|
8
|
+
param?: string;
|
|
9
|
+
details?: Record<string, unknown>;
|
|
10
|
+
request_id: string;
|
|
11
|
+
doc_url: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface Export {
|
|
15
|
+
id: string;
|
|
16
|
+
dataset: "listings" | "listing_changes" | "registered_transactions" | "registered_rents";
|
|
17
|
+
format: "ndjson" | "csv";
|
|
18
|
+
compression: "gzip" | "none";
|
|
19
|
+
status: "queued" | "running" | "completed" | "failed" | "expired";
|
|
20
|
+
filters: Record<string, unknown> | null;
|
|
21
|
+
price_source: "asking" | "registered";
|
|
22
|
+
rows_estimated: number | null;
|
|
23
|
+
row_count: number | null;
|
|
24
|
+
units: number;
|
|
25
|
+
progress: {
|
|
26
|
+
rows_written: number;
|
|
27
|
+
parts_written: number;
|
|
28
|
+
};
|
|
29
|
+
error: {
|
|
30
|
+
code: string;
|
|
31
|
+
message: string;
|
|
32
|
+
} | null;
|
|
33
|
+
attribution: {
|
|
34
|
+
notice: string;
|
|
35
|
+
license_url: string;
|
|
36
|
+
} | null;
|
|
37
|
+
files: {
|
|
38
|
+
name: string;
|
|
39
|
+
kind: "data" | "manifest" | "attribution";
|
|
40
|
+
rows: number | null;
|
|
41
|
+
bytes: number;
|
|
42
|
+
url: string;
|
|
43
|
+
url_expires_at: string;
|
|
44
|
+
}[];
|
|
45
|
+
created_at: string;
|
|
46
|
+
started_at: string | null;
|
|
47
|
+
completed_at: string | null;
|
|
48
|
+
expires_at: string | null;
|
|
49
|
+
}
|
|
50
|
+
export type ExportRequest = {
|
|
51
|
+
dataset: "listings";
|
|
52
|
+
filters?: ListingExportFilters;
|
|
53
|
+
format?: "ndjson" | "csv";
|
|
54
|
+
compression?: "gzip" | "none";
|
|
55
|
+
} | {
|
|
56
|
+
dataset: "listing_changes";
|
|
57
|
+
filters: ListingChangeExportFilters;
|
|
58
|
+
format?: "ndjson" | "csv";
|
|
59
|
+
compression?: "gzip" | "none";
|
|
60
|
+
} | {
|
|
61
|
+
dataset: "registered_transactions";
|
|
62
|
+
filters?: TransactionExportFilters;
|
|
63
|
+
format?: "ndjson" | "csv";
|
|
64
|
+
compression?: "gzip" | "none";
|
|
65
|
+
} | {
|
|
66
|
+
dataset: "registered_rents";
|
|
67
|
+
filters?: RentExportFilters;
|
|
68
|
+
format?: "ndjson" | "csv";
|
|
69
|
+
compression?: "gzip" | "none";
|
|
70
|
+
};
|
|
71
|
+
export interface Listing {
|
|
72
|
+
id: number;
|
|
73
|
+
url: string;
|
|
74
|
+
title: string | null;
|
|
75
|
+
headline: string;
|
|
76
|
+
description: string | null;
|
|
77
|
+
description_en: string | null;
|
|
78
|
+
listing_type: string;
|
|
79
|
+
listing_category: string | null;
|
|
80
|
+
property_type: string;
|
|
81
|
+
price: {
|
|
82
|
+
yearly_sar: number | null;
|
|
83
|
+
as_posted: {
|
|
84
|
+
amount: number | null;
|
|
85
|
+
frequency: string | null;
|
|
86
|
+
};
|
|
87
|
+
previous_yearly_sar: number | null;
|
|
88
|
+
changed_at: string | null;
|
|
89
|
+
};
|
|
90
|
+
financing: {
|
|
91
|
+
rent_now_pay_later_monthly_sar: number | null;
|
|
92
|
+
accepts_bank_financing: boolean | null;
|
|
93
|
+
landlord_payment_plans: {
|
|
94
|
+
monthly: boolean | null;
|
|
95
|
+
quarterly: boolean | null;
|
|
96
|
+
semiannually: boolean | null;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
bedrooms: number | null;
|
|
100
|
+
bathrooms: number | null;
|
|
101
|
+
livings: number | null;
|
|
102
|
+
area_sqm: number | null;
|
|
103
|
+
floor: string | null;
|
|
104
|
+
age_years: number | null;
|
|
105
|
+
furnished: boolean | null;
|
|
106
|
+
amenities: string[];
|
|
107
|
+
location: {
|
|
108
|
+
city: string | null;
|
|
109
|
+
city_name_en: string | null;
|
|
110
|
+
neighborhood_id: number | null;
|
|
111
|
+
neighborhood_name_ar: string | null;
|
|
112
|
+
neighborhood_name_en: string | null;
|
|
113
|
+
lat: number | null;
|
|
114
|
+
lng: number | null;
|
|
115
|
+
street_width_m: number | null;
|
|
116
|
+
};
|
|
117
|
+
compound_name: string | null;
|
|
118
|
+
project_id: number | null;
|
|
119
|
+
images: string[];
|
|
120
|
+
image_count: number;
|
|
121
|
+
advertiser: {
|
|
122
|
+
type: string | null;
|
|
123
|
+
};
|
|
124
|
+
verified_by_source: boolean | null;
|
|
125
|
+
source: {
|
|
126
|
+
name: string;
|
|
127
|
+
listing_id: string | null;
|
|
128
|
+
url: string | null;
|
|
129
|
+
};
|
|
130
|
+
also_listed_on: string[];
|
|
131
|
+
first_seen_at: string | null;
|
|
132
|
+
updated_at: string | null;
|
|
133
|
+
last_seen_at: string | null;
|
|
134
|
+
days_on_market: number | null;
|
|
135
|
+
}
|
|
136
|
+
export interface ListingChangeExportFilters {
|
|
137
|
+
city?: string[];
|
|
138
|
+
listing_type?: "rent" | "sale"[];
|
|
139
|
+
listing_category?: "residential" | "commercial";
|
|
140
|
+
property_type?: "apartment" | "villa" | "floor" | "duplex" | "office" | "shop" | "warehouse" | "land" | "building"[];
|
|
141
|
+
neighborhood_id?: number[];
|
|
142
|
+
beds_min?: number;
|
|
143
|
+
beds_max?: number;
|
|
144
|
+
price_min?: number;
|
|
145
|
+
price_max?: number;
|
|
146
|
+
area_min?: number;
|
|
147
|
+
area_max?: number;
|
|
148
|
+
source?: string[];
|
|
149
|
+
furnished?: boolean;
|
|
150
|
+
from: string;
|
|
151
|
+
to?: string;
|
|
152
|
+
event_type?: "created" | "price_changed" | "delisted"[];
|
|
153
|
+
}
|
|
154
|
+
export interface ListingExportFilters {
|
|
155
|
+
city?: string[];
|
|
156
|
+
listing_type?: "rent" | "sale"[];
|
|
157
|
+
listing_category?: "residential" | "commercial";
|
|
158
|
+
property_type?: "apartment" | "villa" | "floor" | "duplex" | "office" | "shop" | "warehouse" | "land" | "building"[];
|
|
159
|
+
neighborhood_id?: number[];
|
|
160
|
+
beds_min?: number;
|
|
161
|
+
beds_max?: number;
|
|
162
|
+
price_min?: number;
|
|
163
|
+
price_max?: number;
|
|
164
|
+
area_min?: number;
|
|
165
|
+
area_max?: number;
|
|
166
|
+
source?: string[];
|
|
167
|
+
furnished?: boolean;
|
|
168
|
+
updated_since?: string;
|
|
169
|
+
}
|
|
170
|
+
export interface Pagination {
|
|
171
|
+
limit: number;
|
|
172
|
+
next_cursor: string | null;
|
|
173
|
+
has_more: boolean;
|
|
174
|
+
result_window_reached: boolean;
|
|
175
|
+
}
|
|
176
|
+
export interface RentExportFilters {
|
|
177
|
+
city?: string[];
|
|
178
|
+
property_type?: "apartment" | "studio" | "floor" | "villa" | "duplex"[];
|
|
179
|
+
period_from?: string;
|
|
180
|
+
period_to?: string;
|
|
181
|
+
}
|
|
182
|
+
export interface Transaction {
|
|
183
|
+
id: string;
|
|
184
|
+
month: string;
|
|
185
|
+
source_quarter: string;
|
|
186
|
+
city: string;
|
|
187
|
+
city_name_ar: string | null;
|
|
188
|
+
district_name_ar: string | null;
|
|
189
|
+
neighborhood: TransactionNeighborhood | null;
|
|
190
|
+
land_use: "residential" | "commercial" | "agricultural" | "industrial" | "mixed_use" | "other";
|
|
191
|
+
land_use_ar: string | null;
|
|
192
|
+
area_sqm: number | null;
|
|
193
|
+
price_sar: number;
|
|
194
|
+
price_per_sqm_sar: number | null;
|
|
195
|
+
property_count: number | null;
|
|
196
|
+
}
|
|
197
|
+
export interface TransactionAttribution {
|
|
198
|
+
notice: string;
|
|
199
|
+
license: {
|
|
200
|
+
name: string;
|
|
201
|
+
url: string;
|
|
202
|
+
base_license: string;
|
|
203
|
+
base_license_url: string;
|
|
204
|
+
};
|
|
205
|
+
datasets: {
|
|
206
|
+
source: "rega_rent_index" | "moj_transactions";
|
|
207
|
+
title: string;
|
|
208
|
+
title_en: string;
|
|
209
|
+
publisher: string;
|
|
210
|
+
urls: string[];
|
|
211
|
+
}[];
|
|
212
|
+
quarters: {
|
|
213
|
+
quarter: string;
|
|
214
|
+
url: string;
|
|
215
|
+
}[];
|
|
216
|
+
modifications: string;
|
|
217
|
+
}
|
|
218
|
+
export interface TransactionCoverage {
|
|
219
|
+
city: string;
|
|
220
|
+
first_deal_date: string | null;
|
|
221
|
+
last_deal_date: string | null;
|
|
222
|
+
latest_quarter: string | null;
|
|
223
|
+
complete_through_quarter: string | null;
|
|
224
|
+
notary_only_from_quarter: string | null;
|
|
225
|
+
excluded_quarters: {
|
|
226
|
+
quarter: string;
|
|
227
|
+
reason: string;
|
|
228
|
+
}[];
|
|
229
|
+
notes: string[];
|
|
230
|
+
}
|
|
231
|
+
export interface TransactionExportFilters {
|
|
232
|
+
city?: string[];
|
|
233
|
+
land_use?: "residential" | "commercial" | "agricultural" | "industrial" | "mixed_use" | "other"[];
|
|
234
|
+
month_from?: string;
|
|
235
|
+
month_to?: string;
|
|
236
|
+
}
|
|
237
|
+
export interface TransactionNeighborhood {
|
|
238
|
+
id: number;
|
|
239
|
+
name_ar: string;
|
|
240
|
+
name_en: string;
|
|
241
|
+
}
|