@1dex-fr/connector 0.2.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/LICENSE +21 -0
- package/README.md +143 -0
- package/package.json +39 -0
- package/src/index.d.ts +520 -0
- package/src/index.js +722 -0
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,520 @@
|
|
|
1
|
+
export interface OneDexRequestOptions {
|
|
2
|
+
headers?: Record<string, string | number | boolean | null | undefined>;
|
|
3
|
+
timeoutMs?: number;
|
|
4
|
+
signal?: AbortSignal;
|
|
5
|
+
body?: unknown;
|
|
6
|
+
idempotencyKey?: string;
|
|
7
|
+
retry?: boolean | OneDexRetryOptions;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface OneDexRetryOptions {
|
|
11
|
+
maxAttempts?: number;
|
|
12
|
+
/** Stop retrying if the server asks to wait longer; never retry before Retry-After. */
|
|
13
|
+
maxDelayMs?: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface OneDexIdempotentRequestOptions extends OneDexRequestOptions {
|
|
17
|
+
idempotencyKey: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface MapParcellesInput {
|
|
21
|
+
address?: string;
|
|
22
|
+
addressSlug?: string;
|
|
23
|
+
address_slug?: string;
|
|
24
|
+
city_code?: string;
|
|
25
|
+
cityCode?: string;
|
|
26
|
+
lon?: number;
|
|
27
|
+
lat?: number;
|
|
28
|
+
viewport_bbox?: string;
|
|
29
|
+
viewport_zoom?: number;
|
|
30
|
+
viewport_render_mode?: 'features' | string;
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type PublicMapLayerKey =
|
|
35
|
+
| 'context'
|
|
36
|
+
| 'iris'
|
|
37
|
+
| 'parcelles'
|
|
38
|
+
| 'parcelles_dvf'
|
|
39
|
+
| 'parcelles_travaux'
|
|
40
|
+
| 'parcelles_labels'
|
|
41
|
+
| 'dvf'
|
|
42
|
+
| 'travaux'
|
|
43
|
+
| 'labels';
|
|
44
|
+
|
|
45
|
+
export interface MapLayerInput extends MapParcellesInput {
|
|
46
|
+
layer?: PublicMapLayerKey;
|
|
47
|
+
layerKey?: PublicMapLayerKey;
|
|
48
|
+
layer_key?: PublicMapLayerKey;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface MapViewportInput {
|
|
52
|
+
layers: string;
|
|
53
|
+
address?: string;
|
|
54
|
+
city_code?: string;
|
|
55
|
+
cityCode?: string;
|
|
56
|
+
lon?: number;
|
|
57
|
+
lat?: number;
|
|
58
|
+
[key: string]: unknown;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface AddressLocatorInput {
|
|
62
|
+
address?: string;
|
|
63
|
+
city_code?: string;
|
|
64
|
+
cityCode?: string;
|
|
65
|
+
lon?: number;
|
|
66
|
+
lat?: number;
|
|
67
|
+
parcel_record_key?: string;
|
|
68
|
+
parcelRecordKey?: string;
|
|
69
|
+
normalized_address_key?: string;
|
|
70
|
+
normalizedAddressKey?: string;
|
|
71
|
+
[key: string]: unknown;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type OneDexIdempotencyInput =
|
|
75
|
+
| { idempotencyKey: string; idempotency_key?: never }
|
|
76
|
+
| { idempotency_key: string; idempotencyKey?: never };
|
|
77
|
+
|
|
78
|
+
export type AddressDetailsParameters = AddressLocatorInput & {
|
|
79
|
+
fields: string | string[];
|
|
80
|
+
dvf_radius_m?: number;
|
|
81
|
+
dvf_year?: number;
|
|
82
|
+
dvf_date_min?: string;
|
|
83
|
+
dvf_date_max?: string;
|
|
84
|
+
dvf_type?: 'appartement' | 'maison' | 'terrain' | 'local' | 'mixte' | string;
|
|
85
|
+
dvf_surface_min?: number;
|
|
86
|
+
dvf_surface_max?: number;
|
|
87
|
+
dvf_price_min?: number;
|
|
88
|
+
dvf_price_max?: number;
|
|
89
|
+
dvf_price_m2_min?: number;
|
|
90
|
+
dvf_price_m2_max?: number;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export type AddressDetailsInput = AddressDetailsParameters & OneDexIdempotencyInput;
|
|
94
|
+
export type AddressUnlockInput = AddressLocatorInput & OneDexIdempotencyInput;
|
|
95
|
+
|
|
96
|
+
export type AddressDetailsField =
|
|
97
|
+
| 'summary'
|
|
98
|
+
| 'rail'
|
|
99
|
+
| 'mobile'
|
|
100
|
+
| 'tabs'
|
|
101
|
+
| 'map_layers'
|
|
102
|
+
| 'parcel_dvf'
|
|
103
|
+
| 'sources'
|
|
104
|
+
| 'source_outcomes';
|
|
105
|
+
|
|
106
|
+
export type AddressUnlockLocatorKind = 'normalized_address_key' | 'resolved_locator' | 'unavailable';
|
|
107
|
+
export type AddressUnlockFollowUpLocatorKind = 'normalized_address_key' | 'unlock_request' | 'unavailable';
|
|
108
|
+
export type AddressUnlockStatus = 'already_active' | 'unlocked' | 'insufficient_credits';
|
|
109
|
+
export type AddressUnlockPreviewStatus = 'already_active' | 'available' | 'insufficient_credits';
|
|
110
|
+
export type AddressCreditSourceKind = 'free_credit' | 'subscription_credit' | 'pack_credit' | 'report_order' | 'legacy_migration' | 'api_v3_activation';
|
|
111
|
+
|
|
112
|
+
export interface AddressAccessGrant {
|
|
113
|
+
address_access_grant_id: string;
|
|
114
|
+
normalized_address_key: string;
|
|
115
|
+
source_kind: AddressCreditSourceKind;
|
|
116
|
+
source_label: string;
|
|
117
|
+
starts_at: string;
|
|
118
|
+
expires_at: string;
|
|
119
|
+
order_id: string | null;
|
|
120
|
+
unlock_credit_pool_id: string | null;
|
|
121
|
+
resolved_label: string | null;
|
|
122
|
+
canonical_slug: string | null;
|
|
123
|
+
[key: string]: unknown;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export interface AddressUnlockPreview {
|
|
127
|
+
status: AddressUnlockPreviewStatus;
|
|
128
|
+
credits_required: 0 | 1;
|
|
129
|
+
remaining_credits: number | null;
|
|
130
|
+
source_kind: AddressCreditSourceKind | null;
|
|
131
|
+
source_label: string | null;
|
|
132
|
+
access_expires_at: string | null;
|
|
133
|
+
active_grant: AddressAccessGrant | null;
|
|
134
|
+
[key: string]: unknown;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface AddressUnlockResult {
|
|
138
|
+
normalized_address_key: string;
|
|
139
|
+
status: AddressUnlockStatus;
|
|
140
|
+
grant: AddressAccessGrant | null;
|
|
141
|
+
[key: string]: unknown;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export interface AddressDetailsResponse {
|
|
145
|
+
version: 'address-details-v1';
|
|
146
|
+
fields: AddressDetailsField[];
|
|
147
|
+
query: Record<string, unknown>;
|
|
148
|
+
resolved: Record<string, unknown>;
|
|
149
|
+
degraded: Record<string, unknown>;
|
|
150
|
+
summaryCards?: Record<string, unknown>[];
|
|
151
|
+
utilityRailCards?: Record<string, unknown>[];
|
|
152
|
+
mobilePriorityCards?: Record<string, unknown>[];
|
|
153
|
+
tabs?: Record<string, unknown>[];
|
|
154
|
+
mapLayers?: Record<string, unknown>[];
|
|
155
|
+
parcelDvfHistory?: Record<string, unknown> | null;
|
|
156
|
+
directSources?: Record<string, unknown>;
|
|
157
|
+
aggregateSources?: Record<string, unknown>;
|
|
158
|
+
sourceOutcomes?: Record<string, unknown>[];
|
|
159
|
+
[key: string]: unknown;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface AddressUnlockResponse {
|
|
163
|
+
version: 'address-unlock-v1';
|
|
164
|
+
normalized_address_key: string;
|
|
165
|
+
resolved: Record<string, unknown> | null;
|
|
166
|
+
result: AddressUnlockResult | null;
|
|
167
|
+
details_url: string | null;
|
|
168
|
+
details_locator_kind: AddressUnlockLocatorKind;
|
|
169
|
+
[key: string]: unknown;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface AddressUnlockRequiredBody {
|
|
173
|
+
error: 'address_unlock_required';
|
|
174
|
+
message?: string;
|
|
175
|
+
normalized_address_key: string | null;
|
|
176
|
+
unlock_locator_kind: AddressUnlockFollowUpLocatorKind;
|
|
177
|
+
unlock_request?: AddressLocatorInput;
|
|
178
|
+
unlock_preview?: AddressUnlockPreview;
|
|
179
|
+
[key: string]: unknown;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export interface UsageWindow {
|
|
183
|
+
limit: number;
|
|
184
|
+
used: number;
|
|
185
|
+
remaining: number;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface UsagePointSnapshot {
|
|
189
|
+
scope: string;
|
|
190
|
+
label: string;
|
|
191
|
+
minute: UsageWindow;
|
|
192
|
+
hour: UsageWindow;
|
|
193
|
+
day: UsageWindow;
|
|
194
|
+
[key: string]: unknown;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export interface UnlockCreditPool {
|
|
198
|
+
unlock_credit_pool_id: string;
|
|
199
|
+
pool_kind: 'free_intro_pack' | 'subscription_cycle' | 'exploration_pack' | 'agency_bonus' | string;
|
|
200
|
+
status: 'active' | 'expired' | 'revoked' | string;
|
|
201
|
+
total_credits: number;
|
|
202
|
+
remaining_credits: number;
|
|
203
|
+
starts_at: string;
|
|
204
|
+
expires_at: string;
|
|
205
|
+
order_id: string | null;
|
|
206
|
+
subscription_charge_id: string | null;
|
|
207
|
+
source_label: string;
|
|
208
|
+
[key: string]: unknown;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface ReportCreditPool {
|
|
212
|
+
report_credit_pool_id: string;
|
|
213
|
+
status: 'active' | 'expired' | 'revoked' | string;
|
|
214
|
+
total_credits: number;
|
|
215
|
+
remaining_credits: number;
|
|
216
|
+
starts_at: string;
|
|
217
|
+
expires_at: string;
|
|
218
|
+
source_kind: 'admin_grant' | string;
|
|
219
|
+
source_label: string;
|
|
220
|
+
[key: string]: unknown;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface AddressCreditConsumption {
|
|
224
|
+
unlock_credit_consumption_id: string;
|
|
225
|
+
normalized_address_key: string;
|
|
226
|
+
consumed_at: string;
|
|
227
|
+
source_label: string;
|
|
228
|
+
resolved_label: string | null;
|
|
229
|
+
canonical_slug: string | null;
|
|
230
|
+
[key: string]: unknown;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export interface AddressAccessSubscription {
|
|
234
|
+
subscription_id: string;
|
|
235
|
+
plan_key: string;
|
|
236
|
+
offer_key: string | null;
|
|
237
|
+
status: 'incomplete' | 'active' | 'past_due' | 'canceled' | 'ended' | 'unpaid' | string;
|
|
238
|
+
is_gift: boolean;
|
|
239
|
+
current_period_start: string;
|
|
240
|
+
current_period_end: string;
|
|
241
|
+
cancel_at_period_end: boolean;
|
|
242
|
+
canceled_at: string | null;
|
|
243
|
+
ended_at: string | null;
|
|
244
|
+
current_credit_pool: UnlockCreditPool | null;
|
|
245
|
+
next_reset_at: string | null;
|
|
246
|
+
[key: string]: unknown;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export interface LegacyAccountUsageResponse {
|
|
250
|
+
version: 'account-usage-v1';
|
|
251
|
+
api_points: UsagePointSnapshot[];
|
|
252
|
+
credits: {
|
|
253
|
+
total_remaining: number;
|
|
254
|
+
pools: UnlockCreditPool[];
|
|
255
|
+
report_pools: ReportCreditPool[];
|
|
256
|
+
active_grants: AddressAccessGrant[];
|
|
257
|
+
recent_consumptions: AddressCreditConsumption[];
|
|
258
|
+
[key: string]: unknown;
|
|
259
|
+
};
|
|
260
|
+
subscription: AddressAccessSubscription | null;
|
|
261
|
+
[key: string]: unknown;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export interface ApiAddressQuotaWindow {
|
|
265
|
+
used: number;
|
|
266
|
+
limit: number | null;
|
|
267
|
+
reset_at: string;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export interface ApiActivationLotUsage {
|
|
271
|
+
api_activation_lot_id: string;
|
|
272
|
+
lot_kind: 'subscription_period' | 'subscription_upgrade' | 'flex' | 'admin' | string;
|
|
273
|
+
rate_profile: 'essential' | 'scale' | 'dedicated' | null;
|
|
274
|
+
daily_activation_limit: number | null;
|
|
275
|
+
rate_limit_mode: 'self_service' | 'dedicated_contract';
|
|
276
|
+
granted_activations: number;
|
|
277
|
+
consumed_activations: number;
|
|
278
|
+
available_activations: number;
|
|
279
|
+
starts_at: string;
|
|
280
|
+
expires_at: string;
|
|
281
|
+
[key: string]: unknown;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export interface ApiDemoUsageWindow {
|
|
285
|
+
normalized_address_key: string;
|
|
286
|
+
policy_version: number;
|
|
287
|
+
reads_used: number;
|
|
288
|
+
reads_limit: number;
|
|
289
|
+
reads_available: number;
|
|
290
|
+
window_seconds: number;
|
|
291
|
+
next_read_expires_at: string | null;
|
|
292
|
+
[key: string]: unknown;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export interface LiveApiAddressUsage {
|
|
296
|
+
plan_key: 'essential' | 'scale' | 'dedicated' | 'v3';
|
|
297
|
+
plan_label: 'API Essentiel' | 'API Scale' | 'API Dedicated' | 'API V3';
|
|
298
|
+
day: ApiAddressQuotaWindow;
|
|
299
|
+
month: ApiAddressQuotaWindow;
|
|
300
|
+
available?: number;
|
|
301
|
+
lots?: ApiActivationLotUsage[];
|
|
302
|
+
as_of?: string;
|
|
303
|
+
[key: string]: unknown;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export interface DemoApiAddressUsage {
|
|
307
|
+
plan_key: 'demo';
|
|
308
|
+
plan_label: 'API Démonstration';
|
|
309
|
+
demo_window: ApiDemoUsageWindow;
|
|
310
|
+
as_of: string;
|
|
311
|
+
[key: string]: unknown;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export interface AccountUsageV2Response {
|
|
315
|
+
version: 'account-usage-v2';
|
|
316
|
+
api_addresses: LiveApiAddressUsage | DemoApiAddressUsage;
|
|
317
|
+
[key: string]: unknown;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export type AccountUsageResponse = LegacyAccountUsageResponse | AccountUsageV2Response;
|
|
321
|
+
|
|
322
|
+
export interface CommuneSearchInput {
|
|
323
|
+
q: string;
|
|
324
|
+
limit?: number;
|
|
325
|
+
[key: string]: unknown;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export interface PublicPreviewInput {
|
|
329
|
+
path: string;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export interface MapFocusParcelleInput {
|
|
333
|
+
record_key?: string;
|
|
334
|
+
recordKey?: string;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export interface MapFocusParcellesInput {
|
|
338
|
+
record_keys?: string | string[];
|
|
339
|
+
recordKeys?: string | string[];
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export interface MapFocusAddressInput {
|
|
343
|
+
address: string;
|
|
344
|
+
city_code?: string;
|
|
345
|
+
cityCode?: string;
|
|
346
|
+
[key: string]: unknown;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export interface MapFocusPublicLocationInput {
|
|
350
|
+
lon: number;
|
|
351
|
+
lat: number;
|
|
352
|
+
[key: string]: unknown;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export interface MapFocusFeatureInput {
|
|
356
|
+
layer?: string;
|
|
357
|
+
layer_key?: string;
|
|
358
|
+
layerKey?: string;
|
|
359
|
+
feature_key?: string;
|
|
360
|
+
featureKey?: string;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export interface AddressOverviewInput {
|
|
364
|
+
address?: string;
|
|
365
|
+
city_code?: string;
|
|
366
|
+
lon?: number;
|
|
367
|
+
lat?: number;
|
|
368
|
+
parcel_record_key?: string;
|
|
369
|
+
dvf_radius_m?: number;
|
|
370
|
+
dvf_year?: number;
|
|
371
|
+
dvf_date_min?: string;
|
|
372
|
+
dvf_date_max?: string;
|
|
373
|
+
[key: string]: unknown;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export interface AutocompleteAddressInput {
|
|
377
|
+
q: string;
|
|
378
|
+
limit?: number;
|
|
379
|
+
[key: string]: unknown;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export type ScoreCategory = 'global' | 'market' | 'daily_life' | 'environment' | 'vigilance' | 'potential' | 'price_m2';
|
|
383
|
+
|
|
384
|
+
export interface ScoreAddressItem {
|
|
385
|
+
id?: string;
|
|
386
|
+
address?: string;
|
|
387
|
+
lat?: number;
|
|
388
|
+
lng?: number;
|
|
389
|
+
lon?: number;
|
|
390
|
+
[key: string]: unknown;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export interface ScoreAddressInput {
|
|
394
|
+
items: ScoreAddressItem[];
|
|
395
|
+
profile?: string;
|
|
396
|
+
[key: string]: unknown;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export interface ScoreCompareInput extends ScoreAddressInput {
|
|
400
|
+
sortBy?: Exclude<ScoreCategory, 'price_m2'>;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export interface ScoreGridInput {
|
|
404
|
+
bbox: string;
|
|
405
|
+
zoom: number;
|
|
406
|
+
category?: ScoreCategory;
|
|
407
|
+
[key: string]: unknown;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export interface ScoreAddressSuggestInput {
|
|
411
|
+
q: string;
|
|
412
|
+
limit?: number;
|
|
413
|
+
[key: string]: unknown;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export class OneDexApiError extends Error {
|
|
417
|
+
readonly status: number;
|
|
418
|
+
readonly body: unknown;
|
|
419
|
+
readonly requestId: string | null;
|
|
420
|
+
readonly headers: Record<string, string>;
|
|
421
|
+
readonly retryable: boolean;
|
|
422
|
+
readonly retryAfterSeconds: number | null;
|
|
423
|
+
readonly code: string | null;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export class OneDexClient {
|
|
427
|
+
constructor(options?: {
|
|
428
|
+
baseUrl?: string;
|
|
429
|
+
apiKey?: string;
|
|
430
|
+
headers?: Record<string, string | number | boolean | null | undefined>;
|
|
431
|
+
timeoutMs?: number;
|
|
432
|
+
retry?: boolean | OneDexRetryOptions;
|
|
433
|
+
fetch?: typeof fetch;
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
readonly baseUrl: string;
|
|
437
|
+
readonly timeoutMs: number;
|
|
438
|
+
|
|
439
|
+
readonly autocomplete: {
|
|
440
|
+
address(input: AutocompleteAddressInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
readonly addressPages: {
|
|
444
|
+
state(slug: string, options?: OneDexRequestOptions): Promise<unknown>;
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
readonly address: {
|
|
448
|
+
details(input: AddressDetailsInput, options?: OneDexRequestOptions): Promise<AddressDetailsResponse>;
|
|
449
|
+
details(input: AddressDetailsParameters, options: OneDexIdempotentRequestOptions): Promise<AddressDetailsResponse>;
|
|
450
|
+
detailsUrl(detailsUrl: string, options: OneDexIdempotentRequestOptions): Promise<AddressDetailsResponse>;
|
|
451
|
+
unlock(input: AddressUnlockInput, options?: OneDexRequestOptions): Promise<AddressUnlockResponse>;
|
|
452
|
+
unlock(input: AddressLocatorInput, options: OneDexIdempotentRequestOptions): Promise<AddressUnlockResponse>;
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
readonly account: {
|
|
456
|
+
usage(options?: OneDexRequestOptions): Promise<AccountUsageResponse>;
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
readonly communes: {
|
|
460
|
+
search(input: CommuneSearchInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
readonly map: {
|
|
464
|
+
parcelles(input: MapParcellesInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
465
|
+
dvf(input: MapParcellesInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
466
|
+
travaux(input: MapParcellesInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
467
|
+
iris(input: MapParcellesInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
468
|
+
context(input: MapParcellesInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
469
|
+
labels(input: MapParcellesInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
470
|
+
layer(input: MapLayerInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
471
|
+
viewport(input: MapViewportInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
472
|
+
focus: {
|
|
473
|
+
parcelle(input: MapFocusParcelleInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
474
|
+
parcelles(input: MapFocusParcellesInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
475
|
+
address(input: MapFocusAddressInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
476
|
+
publicLocation(input: MapFocusPublicLocationInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
477
|
+
feature(input: MapFocusFeatureInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
readonly overview: {
|
|
482
|
+
address(input: AddressOverviewInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
readonly preview: {
|
|
486
|
+
byPath(input: string | PublicPreviewInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
readonly score: {
|
|
490
|
+
address(input: ScoreAddressInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
491
|
+
compare(input: ScoreCompareInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
492
|
+
grid(input: ScoreGridInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
493
|
+
addressSuggest(input: ScoreAddressSuggestInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
request<T = unknown>(method: string, path: string, options?: OneDexRequestOptions): Promise<T>;
|
|
497
|
+
autocompleteAddress(input: AutocompleteAddressInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
498
|
+
addressPageState(slug: string, options?: OneDexRequestOptions): Promise<unknown>;
|
|
499
|
+
addressDetails(input: AddressDetailsInput, options?: OneDexRequestOptions): Promise<AddressDetailsResponse>;
|
|
500
|
+
addressDetails(input: AddressDetailsParameters, options: OneDexIdempotentRequestOptions): Promise<AddressDetailsResponse>;
|
|
501
|
+
addressDetailsUrl(detailsUrl: string, options: OneDexIdempotentRequestOptions): Promise<AddressDetailsResponse>;
|
|
502
|
+
addressUnlock(input: AddressUnlockInput, options?: OneDexRequestOptions): Promise<AddressUnlockResponse>;
|
|
503
|
+
addressUnlock(input: AddressLocatorInput, options: OneDexIdempotentRequestOptions): Promise<AddressUnlockResponse>;
|
|
504
|
+
accountUsage(options?: OneDexRequestOptions): Promise<AccountUsageResponse>;
|
|
505
|
+
communeSearch(input: CommuneSearchInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
506
|
+
mapParcelles(input: MapParcellesInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
507
|
+
mapLayer(input: MapLayerInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
508
|
+
mapViewport(input: MapViewportInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
509
|
+
mapFocusParcelle(input: MapFocusParcelleInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
510
|
+
mapFocusParcelles(input: MapFocusParcellesInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
511
|
+
mapFocusAddress(input: MapFocusAddressInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
512
|
+
mapFocusPublicLocation(input: MapFocusPublicLocationInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
513
|
+
mapFocusFeature(input: MapFocusFeatureInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
514
|
+
addressOverview(input: AddressOverviewInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
515
|
+
publicPreview(input: string | PublicPreviewInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
516
|
+
scoreAddress(input: ScoreAddressInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
517
|
+
scoreCompare(input: ScoreCompareInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
518
|
+
scoreGrid(input: ScoreGridInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
519
|
+
scoreAddressSuggest(input: ScoreAddressSuggestInput, options?: OneDexRequestOptions): Promise<unknown>;
|
|
520
|
+
}
|