@feltmaps/js-sdk 1.5.0-next.2 → 1.5.0-next.20

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/dist/handler.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import * as zod from 'zod';
2
- import { z } from 'zod';
3
- import { z as zInfer, E as Element, G as Geometry, b as ElementGroup, d as ElementChangeCallbackParams, e as ElementGroupChangeCallbackParams, M as MapInteractionEvent, L as Layer, h as LayerGroup, l as LegendItem, o as LayerFilters, q as Feature, g as LayerChangeCallbackParams, j as LayerGroupChangeCallbackParams, n as LegendItemChangeCallbackParams, H as FilterTernary, r as EntityNode, T as ToolType, t as ToolSettingsMap, u as ToolSettingsChangeEvent, V as ViewportState, w as ViewportConstraints, ac as UnionToIntersection, ad as PromiseOrNot } from './types-BLsf5GHN.js';
1
+ import { z, ZodError } from 'zod';
2
+ import { O as zInfer, E as Element, G as GeoJsonGeometry, b as ElementGroup, d as ElementChangeCallbackParams, e as ElementGroupChangeCallbackParams, M as MapInteractionEvent, L as Layer, j as LayerGroup, n as LegendItem, q as LayerFilters, s as LayerFeature, t as GeoJsonFeature, v as GetLayerCategoriesGroup, x as GetLayerHistogramBin, A as AggregationMethod, z as LayerSchema, i as LayerChangeCallbackParams, l as LayerGroupChangeCallbackParams, p as LegendItemChangeCallbackParams, aI as FilterTernary, B as MapDetails, D as EntityNode, T as ToolType, K as ToolSettingsMap, N as ToolSettingsChangeEvent, V as ViewportState, R as ViewportConstraints, bd as UnionToIntersection, be as PromiseOrNot } from './types-DWW9xTjP.js';
4
3
 
5
4
  type Method<TRequest extends {
6
5
  type: string;
@@ -13,6 +12,9 @@ type Listener<TOptions, TParams> = {
13
12
  options: TOptions;
14
13
  eventParams: TParams;
15
14
  };
15
+ type ListenerNoOptions<TParams> = {
16
+ eventParams: TParams;
17
+ };
16
18
 
17
19
  declare const GetElementMessage: z.ZodObject<{
18
20
  type: z.ZodLiteral<"getElement">;
@@ -93,88 +95,1726 @@ declare const SetElementGroupVisibilityMessage: z.ZodObject<{
93
95
  show?: string[] | undefined;
94
96
  hide?: string[] | undefined;
95
97
  }, {
96
- show?: string[] | undefined;
97
- hide?: string[] | undefined;
98
- }>;
99
- }, z.UnknownKeysParam, z.ZodTypeAny, {
100
- params: {
101
- show?: string[] | undefined;
102
- hide?: string[] | undefined;
103
- };
104
- type: "setElementGroupVisibility";
105
- }, {
106
- params: {
107
- show?: string[] | undefined;
108
- hide?: string[] | undefined;
109
- };
110
- type: "setElementGroupVisibility";
111
- }>;
112
- declare const OnElementChangeMessage: z.ZodObject<{
113
- eventName: z.ZodLiteral<"onElementChange">;
114
- id: z.ZodString;
115
- options: z.ZodObject<{
98
+ show?: string[] | undefined;
99
+ hide?: string[] | undefined;
100
+ }>;
101
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
102
+ params: {
103
+ show?: string[] | undefined;
104
+ hide?: string[] | undefined;
105
+ };
106
+ type: "setElementGroupVisibility";
107
+ }, {
108
+ params: {
109
+ show?: string[] | undefined;
110
+ hide?: string[] | undefined;
111
+ };
112
+ type: "setElementGroupVisibility";
113
+ }>;
114
+ declare const OnElementChangeMessage: z.ZodObject<{
115
+ eventName: z.ZodLiteral<"onElementChange">;
116
+ id: z.ZodString;
117
+ options: z.ZodObject<{
118
+ id: z.ZodString;
119
+ }, "strip", z.ZodTypeAny, {
120
+ id: string;
121
+ }, {
122
+ id: string;
123
+ }>;
124
+ }, "strict", z.ZodTypeAny, {
125
+ options: {
126
+ id: string;
127
+ };
128
+ id: string;
129
+ eventName: "onElementChange";
130
+ }, {
131
+ options: {
132
+ id: string;
133
+ };
134
+ id: string;
135
+ eventName: "onElementChange";
136
+ }>;
137
+ declare const OnElementDeleteMessage: z.ZodObject<{
138
+ eventName: z.ZodLiteral<"onElementDelete">;
139
+ id: z.ZodString;
140
+ options: z.ZodObject<{
141
+ id: z.ZodString;
142
+ }, "strip", z.ZodTypeAny, {
143
+ id: string;
144
+ }, {
145
+ id: string;
146
+ }>;
147
+ }, "strict", z.ZodTypeAny, {
148
+ options: {
149
+ id: string;
150
+ };
151
+ id: string;
152
+ eventName: "onElementDelete";
153
+ }, {
154
+ options: {
155
+ id: string;
156
+ };
157
+ id: string;
158
+ eventName: "onElementDelete";
159
+ }>;
160
+ declare const OnElementGroupChangeMessage: z.ZodObject<{
161
+ eventName: z.ZodLiteral<"onElementGroupChange">;
162
+ id: z.ZodString;
163
+ options: z.ZodObject<{
164
+ id: z.ZodString;
165
+ }, "strip", z.ZodTypeAny, {
166
+ id: string;
167
+ }, {
168
+ id: string;
169
+ }>;
170
+ }, "strict", z.ZodTypeAny, {
171
+ options: {
172
+ id: string;
173
+ };
174
+ id: string;
175
+ eventName: "onElementGroupChange";
176
+ }, {
177
+ options: {
178
+ id: string;
179
+ };
180
+ id: string;
181
+ eventName: "onElementGroupChange";
182
+ }>;
183
+ declare const CreateElementMessage: z.ZodObject<{
184
+ type: z.ZodLiteral<"createElement">;
185
+ params: z.ZodDiscriminatedUnion<"type", [z.ZodObject<Omit<z.objectUtil.extendShape<{
186
+ id: z.ZodOptional<z.ZodString>;
187
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
188
+ color: z.ZodOptional<z.ZodString>;
189
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
190
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
191
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
192
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
193
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
+ type: z.ZodOptional<z.ZodLiteral<"Place">>;
195
+ coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
196
+ symbol: z.ZodOptional<z.ZodString>;
197
+ frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
198
+ hideLabel: z.ZodOptional<z.ZodBoolean>;
199
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<{
200
+ id: z.ZodString;
201
+ groupId: z.ZodNullable<z.ZodString>;
202
+ color: z.ZodString;
203
+ name: z.ZodNullable<z.ZodString>;
204
+ description: z.ZodNullable<z.ZodString>;
205
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
206
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
207
+ }, {
208
+ imageUrl: z.ZodNullable<z.ZodString>;
209
+ }>, {
210
+ type: z.ZodLiteral<"Place">;
211
+ coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
212
+ symbol: z.ZodString;
213
+ frame: z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>;
214
+ hideLabel: z.ZodBoolean;
215
+ }>, "type" | "coordinates">>, "id">, "strip", z.ZodTypeAny, {
216
+ type: "Place";
217
+ coordinates: [number, number];
218
+ symbol?: string | undefined;
219
+ groupId?: string | null | undefined;
220
+ color?: string | undefined;
221
+ name?: string | null | undefined;
222
+ description?: string | null | undefined;
223
+ attributes?: Record<string, unknown> | undefined;
224
+ interaction?: "default" | "locked" | undefined;
225
+ imageUrl?: string | null | undefined;
226
+ frame?: "frame-circle" | "frame-square" | null | undefined;
227
+ hideLabel?: boolean | undefined;
228
+ }, {
229
+ type: "Place";
230
+ coordinates: [number, number];
231
+ symbol?: string | undefined;
232
+ groupId?: string | null | undefined;
233
+ color?: string | undefined;
234
+ name?: string | null | undefined;
235
+ description?: string | null | undefined;
236
+ attributes?: Record<string, unknown> | undefined;
237
+ interaction?: "default" | "locked" | undefined;
238
+ imageUrl?: string | null | undefined;
239
+ frame?: "frame-circle" | "frame-square" | null | undefined;
240
+ hideLabel?: boolean | undefined;
241
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
242
+ id: z.ZodOptional<z.ZodString>;
243
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ color: z.ZodOptional<z.ZodString>;
245
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
246
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
248
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
249
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
251
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
252
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
253
+ type: z.ZodOptional<z.ZodLiteral<"Path">>;
254
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
255
+ distanceMarker: z.ZodOptional<z.ZodBoolean>;
256
+ routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
257
+ endCaps: z.ZodOptional<z.ZodBoolean>;
258
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
259
+ id: z.ZodString;
260
+ groupId: z.ZodNullable<z.ZodString>;
261
+ color: z.ZodString;
262
+ name: z.ZodNullable<z.ZodString>;
263
+ description: z.ZodNullable<z.ZodString>;
264
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
265
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
266
+ }, {
267
+ imageUrl: z.ZodNullable<z.ZodString>;
268
+ }>, {
269
+ strokeOpacity: z.ZodNumber;
270
+ strokeWidth: z.ZodNumber;
271
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
272
+ }>, {
273
+ type: z.ZodLiteral<"Path">;
274
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
275
+ distanceMarker: z.ZodBoolean;
276
+ routingMode: z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>;
277
+ endCaps: z.ZodBoolean;
278
+ }>, "type" | "coordinates">>, "id">, "strip", z.ZodTypeAny, {
279
+ type: "Path";
280
+ coordinates: [number, number][][];
281
+ groupId?: string | null | undefined;
282
+ color?: string | undefined;
283
+ name?: string | null | undefined;
284
+ description?: string | null | undefined;
285
+ attributes?: Record<string, unknown> | undefined;
286
+ interaction?: "default" | "locked" | undefined;
287
+ imageUrl?: string | null | undefined;
288
+ strokeOpacity?: number | undefined;
289
+ strokeWidth?: number | undefined;
290
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
291
+ distanceMarker?: boolean | undefined;
292
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
293
+ endCaps?: boolean | undefined;
294
+ }, {
295
+ type: "Path";
296
+ coordinates: [number, number][][];
297
+ groupId?: string | null | undefined;
298
+ color?: string | undefined;
299
+ name?: string | null | undefined;
300
+ description?: string | null | undefined;
301
+ attributes?: Record<string, unknown> | undefined;
302
+ interaction?: "default" | "locked" | undefined;
303
+ imageUrl?: string | null | undefined;
304
+ strokeOpacity?: number | undefined;
305
+ strokeWidth?: number | undefined;
306
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
307
+ distanceMarker?: boolean | undefined;
308
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
309
+ endCaps?: boolean | undefined;
310
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
311
+ id: z.ZodOptional<z.ZodString>;
312
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
+ color: z.ZodOptional<z.ZodString>;
314
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
315
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
316
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
317
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
318
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
320
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
321
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
322
+ type: z.ZodOptional<z.ZodLiteral<"Polygon">>;
323
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
324
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
325
+ areaMarker: z.ZodOptional<z.ZodBoolean>;
326
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
327
+ id: z.ZodString;
328
+ groupId: z.ZodNullable<z.ZodString>;
329
+ color: z.ZodString;
330
+ name: z.ZodNullable<z.ZodString>;
331
+ description: z.ZodNullable<z.ZodString>;
332
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
333
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
334
+ }, {
335
+ imageUrl: z.ZodNullable<z.ZodString>;
336
+ }>, {
337
+ strokeOpacity: z.ZodNumber;
338
+ strokeWidth: z.ZodNumber;
339
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
340
+ }>, {
341
+ type: z.ZodLiteral<"Polygon">;
342
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
343
+ fillOpacity: z.ZodNumber;
344
+ areaMarker: z.ZodBoolean;
345
+ }>, "type" | "coordinates">>, "id">, "strip", z.ZodTypeAny, {
346
+ type: "Polygon";
347
+ coordinates: [number, number][][];
348
+ groupId?: string | null | undefined;
349
+ color?: string | undefined;
350
+ name?: string | null | undefined;
351
+ description?: string | null | undefined;
352
+ attributes?: Record<string, unknown> | undefined;
353
+ interaction?: "default" | "locked" | undefined;
354
+ imageUrl?: string | null | undefined;
355
+ strokeOpacity?: number | undefined;
356
+ strokeWidth?: number | undefined;
357
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
358
+ fillOpacity?: number | undefined;
359
+ areaMarker?: boolean | undefined;
360
+ }, {
361
+ type: "Polygon";
362
+ coordinates: [number, number][][];
363
+ groupId?: string | null | undefined;
364
+ color?: string | undefined;
365
+ name?: string | null | undefined;
366
+ description?: string | null | undefined;
367
+ attributes?: Record<string, unknown> | undefined;
368
+ interaction?: "default" | "locked" | undefined;
369
+ imageUrl?: string | null | undefined;
370
+ strokeOpacity?: number | undefined;
371
+ strokeWidth?: number | undefined;
372
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
373
+ fillOpacity?: number | undefined;
374
+ areaMarker?: boolean | undefined;
375
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
376
+ id: z.ZodOptional<z.ZodString>;
377
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
378
+ color: z.ZodOptional<z.ZodString>;
379
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
380
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
381
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
382
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
383
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
385
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
386
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
387
+ type: z.ZodOptional<z.ZodLiteral<"Circle">>;
388
+ center: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
389
+ radius: z.ZodOptional<z.ZodNumber>;
390
+ radiusMarker: z.ZodOptional<z.ZodBoolean>;
391
+ radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
392
+ radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
393
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
394
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
395
+ id: z.ZodString;
396
+ groupId: z.ZodNullable<z.ZodString>;
397
+ color: z.ZodString;
398
+ name: z.ZodNullable<z.ZodString>;
399
+ description: z.ZodNullable<z.ZodString>;
400
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
401
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
402
+ }, {
403
+ imageUrl: z.ZodNullable<z.ZodString>;
404
+ }>, {
405
+ strokeOpacity: z.ZodNumber;
406
+ strokeWidth: z.ZodNumber;
407
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
408
+ }>, {
409
+ type: z.ZodLiteral<"Circle">;
410
+ center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
411
+ radius: z.ZodNumber;
412
+ radiusMarker: z.ZodBoolean;
413
+ radiusDisplayAngle: z.ZodNumber;
414
+ radiusDisplayUnit: z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>;
415
+ fillOpacity: z.ZodNumber;
416
+ }>, "type" | "center" | "radius">>, "id">, "strip", z.ZodTypeAny, {
417
+ type: "Circle";
418
+ center: [number, number];
419
+ radius: number;
420
+ groupId?: string | null | undefined;
421
+ color?: string | undefined;
422
+ name?: string | null | undefined;
423
+ description?: string | null | undefined;
424
+ attributes?: Record<string, unknown> | undefined;
425
+ interaction?: "default" | "locked" | undefined;
426
+ imageUrl?: string | null | undefined;
427
+ strokeOpacity?: number | undefined;
428
+ strokeWidth?: number | undefined;
429
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
430
+ fillOpacity?: number | undefined;
431
+ radiusMarker?: boolean | undefined;
432
+ radiusDisplayAngle?: number | undefined;
433
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
434
+ }, {
435
+ type: "Circle";
436
+ center: [number, number];
437
+ radius: number;
438
+ groupId?: string | null | undefined;
439
+ color?: string | undefined;
440
+ name?: string | null | undefined;
441
+ description?: string | null | undefined;
442
+ attributes?: Record<string, unknown> | undefined;
443
+ interaction?: "default" | "locked" | undefined;
444
+ imageUrl?: string | null | undefined;
445
+ strokeOpacity?: number | undefined;
446
+ strokeWidth?: number | undefined;
447
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
448
+ fillOpacity?: number | undefined;
449
+ radiusMarker?: boolean | undefined;
450
+ radiusDisplayAngle?: number | undefined;
451
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
452
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
453
+ id: z.ZodOptional<z.ZodString>;
454
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
455
+ color: z.ZodOptional<z.ZodString>;
456
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
457
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
459
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
460
+ type: z.ZodOptional<z.ZodLiteral<"Marker">>;
461
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
462
+ opacity: z.ZodOptional<z.ZodNumber>;
463
+ size: z.ZodOptional<z.ZodNumber>;
464
+ zoom: z.ZodOptional<z.ZodNumber>;
465
+ }, Pick<z.objectUtil.extendShape<{
466
+ id: z.ZodString;
467
+ groupId: z.ZodNullable<z.ZodString>;
468
+ color: z.ZodString;
469
+ name: z.ZodNullable<z.ZodString>;
470
+ description: z.ZodNullable<z.ZodString>;
471
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
472
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
473
+ }, {
474
+ type: z.ZodLiteral<"Marker">;
475
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
476
+ opacity: z.ZodNumber;
477
+ size: z.ZodNumber;
478
+ zoom: z.ZodNumber;
479
+ }>, "type" | "coordinates">>, "id">, "strip", z.ZodTypeAny, {
480
+ type: "Marker";
481
+ coordinates: [number, number][][];
482
+ groupId?: string | null | undefined;
483
+ color?: string | undefined;
484
+ name?: string | null | undefined;
485
+ description?: string | null | undefined;
486
+ attributes?: Record<string, unknown> | undefined;
487
+ interaction?: "default" | "locked" | undefined;
488
+ opacity?: number | undefined;
489
+ size?: number | undefined;
490
+ zoom?: number | undefined;
491
+ }, {
492
+ type: "Marker";
493
+ coordinates: [number, number][][];
494
+ groupId?: string | null | undefined;
495
+ color?: string | undefined;
496
+ name?: string | null | undefined;
497
+ description?: string | null | undefined;
498
+ attributes?: Record<string, unknown> | undefined;
499
+ interaction?: "default" | "locked" | undefined;
500
+ opacity?: number | undefined;
501
+ size?: number | undefined;
502
+ zoom?: number | undefined;
503
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
504
+ id: z.ZodOptional<z.ZodString>;
505
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
506
+ color: z.ZodOptional<z.ZodString>;
507
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
508
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
509
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
510
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
511
+ type: z.ZodOptional<z.ZodLiteral<"Highlighter">>;
512
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">>;
513
+ renderHoles: z.ZodOptional<z.ZodBoolean>;
514
+ opacity: z.ZodOptional<z.ZodNumber>;
515
+ }, Pick<z.objectUtil.extendShape<{
516
+ id: z.ZodString;
517
+ groupId: z.ZodNullable<z.ZodString>;
518
+ color: z.ZodString;
519
+ name: z.ZodNullable<z.ZodString>;
520
+ description: z.ZodNullable<z.ZodString>;
521
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
522
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
523
+ }, {
524
+ type: z.ZodLiteral<"Highlighter">;
525
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
526
+ renderHoles: z.ZodBoolean;
527
+ opacity: z.ZodNumber;
528
+ }>, "type" | "coordinates">>, "id">, "strip", z.ZodTypeAny, {
529
+ type: "Highlighter";
530
+ coordinates: [number, number][][][];
531
+ groupId?: string | null | undefined;
532
+ color?: string | undefined;
533
+ name?: string | null | undefined;
534
+ description?: string | null | undefined;
535
+ attributes?: Record<string, unknown> | undefined;
536
+ interaction?: "default" | "locked" | undefined;
537
+ opacity?: number | undefined;
538
+ renderHoles?: boolean | undefined;
539
+ }, {
540
+ type: "Highlighter";
541
+ coordinates: [number, number][][][];
542
+ groupId?: string | null | undefined;
543
+ color?: string | undefined;
544
+ name?: string | null | undefined;
545
+ description?: string | null | undefined;
546
+ attributes?: Record<string, unknown> | undefined;
547
+ interaction?: "default" | "locked" | undefined;
548
+ opacity?: number | undefined;
549
+ renderHoles?: boolean | undefined;
550
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
551
+ type: z.ZodOptional<z.ZodLiteral<"Image">>;
552
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
553
+ id: z.ZodOptional<z.ZodString>;
554
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
555
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
556
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
557
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
558
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
559
+ imageUrl: z.ZodOptional<z.ZodString>;
560
+ opacity: z.ZodOptional<z.ZodNumber>;
561
+ }, Pick<Omit<z.objectUtil.extendShape<{
562
+ id: z.ZodString;
563
+ groupId: z.ZodNullable<z.ZodString>;
564
+ color: z.ZodString;
565
+ name: z.ZodNullable<z.ZodString>;
566
+ description: z.ZodNullable<z.ZodString>;
567
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
568
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
569
+ }, {
570
+ type: z.ZodLiteral<"Image">;
571
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
572
+ imageUrl: z.ZodString;
573
+ opacity: z.ZodNumber;
574
+ }>, "color">, "type" | "coordinates" | "imageUrl">>, "id">, "strip", z.ZodTypeAny, {
575
+ type: "Image";
576
+ coordinates: [number, number][][];
577
+ imageUrl: string;
578
+ groupId?: string | null | undefined;
579
+ name?: string | null | undefined;
580
+ description?: string | null | undefined;
581
+ attributes?: Record<string, unknown> | undefined;
582
+ interaction?: "default" | "locked" | undefined;
583
+ opacity?: number | undefined;
584
+ }, {
585
+ type: "Image";
586
+ coordinates: [number, number][][];
587
+ imageUrl: string;
588
+ groupId?: string | null | undefined;
589
+ name?: string | null | undefined;
590
+ description?: string | null | undefined;
591
+ attributes?: Record<string, unknown> | undefined;
592
+ interaction?: "default" | "locked" | undefined;
593
+ opacity?: number | undefined;
594
+ }>, z.ZodObject<z.objectUtil.extendShape<Omit<{
595
+ id: z.ZodOptional<z.ZodString>;
596
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
597
+ color: z.ZodOptional<z.ZodString>;
598
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
599
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
600
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
601
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
602
+ rotation: z.ZodOptional<z.ZodNumber>;
603
+ scale: z.ZodOptional<z.ZodNumber>;
604
+ zoom: z.ZodOptional<z.ZodNumber>;
605
+ text: z.ZodOptional<z.ZodString>;
606
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
607
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
608
+ name: z.ZodOptional<z.ZodString>;
609
+ type: z.ZodOptional<z.ZodLiteral<"Text">>;
610
+ }, "type" | "id" | "name">, {
611
+ type: z.ZodLiteral<"Text">;
612
+ text: z.ZodString;
613
+ }>, "strip", z.ZodTypeAny, {
614
+ type: "Text";
615
+ text: string;
616
+ groupId?: string | null | undefined;
617
+ color?: string | undefined;
618
+ description?: string | null | undefined;
619
+ attributes?: Record<string, unknown> | undefined;
620
+ interaction?: "default" | "locked" | undefined;
621
+ zoom?: number | undefined;
622
+ position?: [number, number] | undefined;
623
+ rotation?: number | undefined;
624
+ scale?: number | undefined;
625
+ align?: "center" | "left" | "right" | undefined;
626
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
627
+ }, {
628
+ type: "Text";
629
+ text: string;
630
+ groupId?: string | null | undefined;
631
+ color?: string | undefined;
632
+ description?: string | null | undefined;
633
+ attributes?: Record<string, unknown> | undefined;
634
+ interaction?: "default" | "locked" | undefined;
635
+ zoom?: number | undefined;
636
+ position?: [number, number] | undefined;
637
+ rotation?: number | undefined;
638
+ scale?: number | undefined;
639
+ align?: "center" | "left" | "right" | undefined;
640
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
641
+ }>, z.ZodObject<z.objectUtil.extendShape<Omit<{
642
+ id: z.ZodOptional<z.ZodString>;
643
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
644
+ color: z.ZodOptional<z.ZodString>;
645
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
646
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
647
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
648
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
649
+ rotation: z.ZodOptional<z.ZodNumber>;
650
+ scale: z.ZodOptional<z.ZodNumber>;
651
+ zoom: z.ZodOptional<z.ZodNumber>;
652
+ text: z.ZodOptional<z.ZodString>;
653
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
654
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
655
+ name: z.ZodOptional<z.ZodString>;
656
+ type: z.ZodOptional<z.ZodLiteral<"Note">>;
657
+ widthScale: z.ZodOptional<z.ZodNumber>;
658
+ }, "type" | "id" | "name">, {
659
+ type: z.ZodLiteral<"Note">;
660
+ text: z.ZodString;
661
+ }>, "strip", z.ZodTypeAny, {
662
+ type: "Note";
663
+ text: string;
664
+ groupId?: string | null | undefined;
665
+ color?: string | undefined;
666
+ description?: string | null | undefined;
667
+ attributes?: Record<string, unknown> | undefined;
668
+ interaction?: "default" | "locked" | undefined;
669
+ zoom?: number | undefined;
670
+ position?: [number, number] | undefined;
671
+ rotation?: number | undefined;
672
+ scale?: number | undefined;
673
+ align?: "center" | "left" | "right" | undefined;
674
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
675
+ widthScale?: number | undefined;
676
+ }, {
677
+ type: "Note";
678
+ text: string;
679
+ groupId?: string | null | undefined;
680
+ color?: string | undefined;
681
+ description?: string | null | undefined;
682
+ attributes?: Record<string, unknown> | undefined;
683
+ interaction?: "default" | "locked" | undefined;
684
+ zoom?: number | undefined;
685
+ position?: [number, number] | undefined;
686
+ rotation?: number | undefined;
687
+ scale?: number | undefined;
688
+ align?: "center" | "left" | "right" | undefined;
689
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
690
+ widthScale?: number | undefined;
691
+ }>]>;
692
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
693
+ params: {
694
+ type: "Place";
695
+ coordinates: [number, number];
696
+ symbol?: string | undefined;
697
+ groupId?: string | null | undefined;
698
+ color?: string | undefined;
699
+ name?: string | null | undefined;
700
+ description?: string | null | undefined;
701
+ attributes?: Record<string, unknown> | undefined;
702
+ interaction?: "default" | "locked" | undefined;
703
+ imageUrl?: string | null | undefined;
704
+ frame?: "frame-circle" | "frame-square" | null | undefined;
705
+ hideLabel?: boolean | undefined;
706
+ } | {
707
+ type: "Path";
708
+ coordinates: [number, number][][];
709
+ groupId?: string | null | undefined;
710
+ color?: string | undefined;
711
+ name?: string | null | undefined;
712
+ description?: string | null | undefined;
713
+ attributes?: Record<string, unknown> | undefined;
714
+ interaction?: "default" | "locked" | undefined;
715
+ imageUrl?: string | null | undefined;
716
+ strokeOpacity?: number | undefined;
717
+ strokeWidth?: number | undefined;
718
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
719
+ distanceMarker?: boolean | undefined;
720
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
721
+ endCaps?: boolean | undefined;
722
+ } | {
723
+ type: "Polygon";
724
+ coordinates: [number, number][][];
725
+ groupId?: string | null | undefined;
726
+ color?: string | undefined;
727
+ name?: string | null | undefined;
728
+ description?: string | null | undefined;
729
+ attributes?: Record<string, unknown> | undefined;
730
+ interaction?: "default" | "locked" | undefined;
731
+ imageUrl?: string | null | undefined;
732
+ strokeOpacity?: number | undefined;
733
+ strokeWidth?: number | undefined;
734
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
735
+ fillOpacity?: number | undefined;
736
+ areaMarker?: boolean | undefined;
737
+ } | {
738
+ type: "Circle";
739
+ center: [number, number];
740
+ radius: number;
741
+ groupId?: string | null | undefined;
742
+ color?: string | undefined;
743
+ name?: string | null | undefined;
744
+ description?: string | null | undefined;
745
+ attributes?: Record<string, unknown> | undefined;
746
+ interaction?: "default" | "locked" | undefined;
747
+ imageUrl?: string | null | undefined;
748
+ strokeOpacity?: number | undefined;
749
+ strokeWidth?: number | undefined;
750
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
751
+ fillOpacity?: number | undefined;
752
+ radiusMarker?: boolean | undefined;
753
+ radiusDisplayAngle?: number | undefined;
754
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
755
+ } | {
756
+ type: "Marker";
757
+ coordinates: [number, number][][];
758
+ groupId?: string | null | undefined;
759
+ color?: string | undefined;
760
+ name?: string | null | undefined;
761
+ description?: string | null | undefined;
762
+ attributes?: Record<string, unknown> | undefined;
763
+ interaction?: "default" | "locked" | undefined;
764
+ opacity?: number | undefined;
765
+ size?: number | undefined;
766
+ zoom?: number | undefined;
767
+ } | {
768
+ type: "Highlighter";
769
+ coordinates: [number, number][][][];
770
+ groupId?: string | null | undefined;
771
+ color?: string | undefined;
772
+ name?: string | null | undefined;
773
+ description?: string | null | undefined;
774
+ attributes?: Record<string, unknown> | undefined;
775
+ interaction?: "default" | "locked" | undefined;
776
+ opacity?: number | undefined;
777
+ renderHoles?: boolean | undefined;
778
+ } | {
779
+ type: "Text";
780
+ text: string;
781
+ groupId?: string | null | undefined;
782
+ color?: string | undefined;
783
+ description?: string | null | undefined;
784
+ attributes?: Record<string, unknown> | undefined;
785
+ interaction?: "default" | "locked" | undefined;
786
+ zoom?: number | undefined;
787
+ position?: [number, number] | undefined;
788
+ rotation?: number | undefined;
789
+ scale?: number | undefined;
790
+ align?: "center" | "left" | "right" | undefined;
791
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
792
+ } | {
793
+ type: "Note";
794
+ text: string;
795
+ groupId?: string | null | undefined;
796
+ color?: string | undefined;
797
+ description?: string | null | undefined;
798
+ attributes?: Record<string, unknown> | undefined;
799
+ interaction?: "default" | "locked" | undefined;
800
+ zoom?: number | undefined;
801
+ position?: [number, number] | undefined;
802
+ rotation?: number | undefined;
803
+ scale?: number | undefined;
804
+ align?: "center" | "left" | "right" | undefined;
805
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
806
+ widthScale?: number | undefined;
807
+ } | {
808
+ type: "Image";
809
+ coordinates: [number, number][][];
810
+ imageUrl: string;
811
+ groupId?: string | null | undefined;
812
+ name?: string | null | undefined;
813
+ description?: string | null | undefined;
814
+ attributes?: Record<string, unknown> | undefined;
815
+ interaction?: "default" | "locked" | undefined;
816
+ opacity?: number | undefined;
817
+ };
818
+ type: "createElement";
819
+ }, {
820
+ params: {
821
+ type: "Place";
822
+ coordinates: [number, number];
823
+ symbol?: string | undefined;
824
+ groupId?: string | null | undefined;
825
+ color?: string | undefined;
826
+ name?: string | null | undefined;
827
+ description?: string | null | undefined;
828
+ attributes?: Record<string, unknown> | undefined;
829
+ interaction?: "default" | "locked" | undefined;
830
+ imageUrl?: string | null | undefined;
831
+ frame?: "frame-circle" | "frame-square" | null | undefined;
832
+ hideLabel?: boolean | undefined;
833
+ } | {
834
+ type: "Path";
835
+ coordinates: [number, number][][];
836
+ groupId?: string | null | undefined;
837
+ color?: string | undefined;
838
+ name?: string | null | undefined;
839
+ description?: string | null | undefined;
840
+ attributes?: Record<string, unknown> | undefined;
841
+ interaction?: "default" | "locked" | undefined;
842
+ imageUrl?: string | null | undefined;
843
+ strokeOpacity?: number | undefined;
844
+ strokeWidth?: number | undefined;
845
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
846
+ distanceMarker?: boolean | undefined;
847
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
848
+ endCaps?: boolean | undefined;
849
+ } | {
850
+ type: "Polygon";
851
+ coordinates: [number, number][][];
852
+ groupId?: string | null | undefined;
853
+ color?: string | undefined;
854
+ name?: string | null | undefined;
855
+ description?: string | null | undefined;
856
+ attributes?: Record<string, unknown> | undefined;
857
+ interaction?: "default" | "locked" | undefined;
858
+ imageUrl?: string | null | undefined;
859
+ strokeOpacity?: number | undefined;
860
+ strokeWidth?: number | undefined;
861
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
862
+ fillOpacity?: number | undefined;
863
+ areaMarker?: boolean | undefined;
864
+ } | {
865
+ type: "Circle";
866
+ center: [number, number];
867
+ radius: number;
868
+ groupId?: string | null | undefined;
869
+ color?: string | undefined;
870
+ name?: string | null | undefined;
871
+ description?: string | null | undefined;
872
+ attributes?: Record<string, unknown> | undefined;
873
+ interaction?: "default" | "locked" | undefined;
874
+ imageUrl?: string | null | undefined;
875
+ strokeOpacity?: number | undefined;
876
+ strokeWidth?: number | undefined;
877
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
878
+ fillOpacity?: number | undefined;
879
+ radiusMarker?: boolean | undefined;
880
+ radiusDisplayAngle?: number | undefined;
881
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
882
+ } | {
883
+ type: "Marker";
884
+ coordinates: [number, number][][];
885
+ groupId?: string | null | undefined;
886
+ color?: string | undefined;
887
+ name?: string | null | undefined;
888
+ description?: string | null | undefined;
889
+ attributes?: Record<string, unknown> | undefined;
890
+ interaction?: "default" | "locked" | undefined;
891
+ opacity?: number | undefined;
892
+ size?: number | undefined;
893
+ zoom?: number | undefined;
894
+ } | {
895
+ type: "Highlighter";
896
+ coordinates: [number, number][][][];
897
+ groupId?: string | null | undefined;
898
+ color?: string | undefined;
899
+ name?: string | null | undefined;
900
+ description?: string | null | undefined;
901
+ attributes?: Record<string, unknown> | undefined;
902
+ interaction?: "default" | "locked" | undefined;
903
+ opacity?: number | undefined;
904
+ renderHoles?: boolean | undefined;
905
+ } | {
906
+ type: "Text";
907
+ text: string;
908
+ groupId?: string | null | undefined;
909
+ color?: string | undefined;
910
+ description?: string | null | undefined;
911
+ attributes?: Record<string, unknown> | undefined;
912
+ interaction?: "default" | "locked" | undefined;
913
+ zoom?: number | undefined;
914
+ position?: [number, number] | undefined;
915
+ rotation?: number | undefined;
916
+ scale?: number | undefined;
917
+ align?: "center" | "left" | "right" | undefined;
918
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
919
+ } | {
920
+ type: "Note";
921
+ text: string;
922
+ groupId?: string | null | undefined;
923
+ color?: string | undefined;
924
+ description?: string | null | undefined;
925
+ attributes?: Record<string, unknown> | undefined;
926
+ interaction?: "default" | "locked" | undefined;
927
+ zoom?: number | undefined;
928
+ position?: [number, number] | undefined;
929
+ rotation?: number | undefined;
930
+ scale?: number | undefined;
931
+ align?: "center" | "left" | "right" | undefined;
932
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
933
+ widthScale?: number | undefined;
934
+ } | {
935
+ type: "Image";
936
+ coordinates: [number, number][][];
937
+ imageUrl: string;
938
+ groupId?: string | null | undefined;
939
+ name?: string | null | undefined;
940
+ description?: string | null | undefined;
941
+ attributes?: Record<string, unknown> | undefined;
942
+ interaction?: "default" | "locked" | undefined;
943
+ opacity?: number | undefined;
944
+ };
945
+ type: "createElement";
946
+ }>;
947
+ declare const UpdateElementMessage: z.ZodObject<{
948
+ type: z.ZodLiteral<"updateElement">;
949
+ params: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
950
+ id: z.ZodOptional<z.ZodString>;
951
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
952
+ color: z.ZodOptional<z.ZodString>;
953
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
954
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
955
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
956
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
957
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
958
+ type: z.ZodOptional<z.ZodLiteral<"Place">>;
959
+ coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
960
+ symbol: z.ZodOptional<z.ZodString>;
961
+ frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
962
+ hideLabel: z.ZodOptional<z.ZodBoolean>;
963
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<{
964
+ id: z.ZodString;
965
+ groupId: z.ZodNullable<z.ZodString>;
966
+ color: z.ZodString;
967
+ name: z.ZodNullable<z.ZodString>;
968
+ description: z.ZodNullable<z.ZodString>;
969
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
970
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
971
+ }, {
972
+ imageUrl: z.ZodNullable<z.ZodString>;
973
+ }>, {
974
+ type: z.ZodLiteral<"Place">;
975
+ coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
976
+ symbol: z.ZodString;
977
+ frame: z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>;
978
+ hideLabel: z.ZodBoolean;
979
+ }>, "type" | "id">>, "strip", z.ZodTypeAny, {
980
+ type: "Place";
981
+ id: string;
982
+ symbol?: string | undefined;
983
+ coordinates?: [number, number] | undefined;
984
+ groupId?: string | null | undefined;
985
+ color?: string | undefined;
986
+ name?: string | null | undefined;
987
+ description?: string | null | undefined;
988
+ attributes?: Record<string, unknown> | undefined;
989
+ interaction?: "default" | "locked" | undefined;
990
+ imageUrl?: string | null | undefined;
991
+ frame?: "frame-circle" | "frame-square" | null | undefined;
992
+ hideLabel?: boolean | undefined;
993
+ }, {
994
+ type: "Place";
995
+ id: string;
996
+ symbol?: string | undefined;
997
+ coordinates?: [number, number] | undefined;
998
+ groupId?: string | null | undefined;
999
+ color?: string | undefined;
1000
+ name?: string | null | undefined;
1001
+ description?: string | null | undefined;
1002
+ attributes?: Record<string, unknown> | undefined;
1003
+ interaction?: "default" | "locked" | undefined;
1004
+ imageUrl?: string | null | undefined;
1005
+ frame?: "frame-circle" | "frame-square" | null | undefined;
1006
+ hideLabel?: boolean | undefined;
1007
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1008
+ id: z.ZodOptional<z.ZodString>;
1009
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1010
+ color: z.ZodOptional<z.ZodString>;
1011
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1012
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1013
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1014
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1015
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1016
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
1017
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
1018
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
1019
+ type: z.ZodOptional<z.ZodLiteral<"Path">>;
1020
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1021
+ distanceMarker: z.ZodOptional<z.ZodBoolean>;
1022
+ routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
1023
+ endCaps: z.ZodOptional<z.ZodBoolean>;
1024
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1025
+ id: z.ZodString;
1026
+ groupId: z.ZodNullable<z.ZodString>;
1027
+ color: z.ZodString;
1028
+ name: z.ZodNullable<z.ZodString>;
1029
+ description: z.ZodNullable<z.ZodString>;
1030
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1031
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1032
+ }, {
1033
+ imageUrl: z.ZodNullable<z.ZodString>;
1034
+ }>, {
1035
+ strokeOpacity: z.ZodNumber;
1036
+ strokeWidth: z.ZodNumber;
1037
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
1038
+ }>, {
1039
+ type: z.ZodLiteral<"Path">;
1040
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
1041
+ distanceMarker: z.ZodBoolean;
1042
+ routingMode: z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>;
1043
+ endCaps: z.ZodBoolean;
1044
+ }>, "type" | "id">>, "strip", z.ZodTypeAny, {
1045
+ type: "Path";
1046
+ id: string;
1047
+ coordinates?: [number, number][][] | undefined;
1048
+ groupId?: string | null | undefined;
1049
+ color?: string | undefined;
1050
+ name?: string | null | undefined;
1051
+ description?: string | null | undefined;
1052
+ attributes?: Record<string, unknown> | undefined;
1053
+ interaction?: "default" | "locked" | undefined;
1054
+ imageUrl?: string | null | undefined;
1055
+ strokeOpacity?: number | undefined;
1056
+ strokeWidth?: number | undefined;
1057
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1058
+ distanceMarker?: boolean | undefined;
1059
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1060
+ endCaps?: boolean | undefined;
1061
+ }, {
1062
+ type: "Path";
1063
+ id: string;
1064
+ coordinates?: [number, number][][] | undefined;
1065
+ groupId?: string | null | undefined;
1066
+ color?: string | undefined;
1067
+ name?: string | null | undefined;
1068
+ description?: string | null | undefined;
1069
+ attributes?: Record<string, unknown> | undefined;
1070
+ interaction?: "default" | "locked" | undefined;
1071
+ imageUrl?: string | null | undefined;
1072
+ strokeOpacity?: number | undefined;
1073
+ strokeWidth?: number | undefined;
1074
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1075
+ distanceMarker?: boolean | undefined;
1076
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1077
+ endCaps?: boolean | undefined;
1078
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1079
+ id: z.ZodOptional<z.ZodString>;
1080
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1081
+ color: z.ZodOptional<z.ZodString>;
1082
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1083
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1084
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1085
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1086
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1087
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
1088
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
1089
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
1090
+ type: z.ZodOptional<z.ZodLiteral<"Polygon">>;
1091
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
1092
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
1093
+ areaMarker: z.ZodOptional<z.ZodBoolean>;
1094
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1095
+ id: z.ZodString;
1096
+ groupId: z.ZodNullable<z.ZodString>;
1097
+ color: z.ZodString;
1098
+ name: z.ZodNullable<z.ZodString>;
1099
+ description: z.ZodNullable<z.ZodString>;
1100
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1101
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1102
+ }, {
1103
+ imageUrl: z.ZodNullable<z.ZodString>;
1104
+ }>, {
1105
+ strokeOpacity: z.ZodNumber;
1106
+ strokeWidth: z.ZodNumber;
1107
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
1108
+ }>, {
1109
+ type: z.ZodLiteral<"Polygon">;
1110
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
1111
+ fillOpacity: z.ZodNumber;
1112
+ areaMarker: z.ZodBoolean;
1113
+ }>, "type" | "id">>, "strip", z.ZodTypeAny, {
1114
+ type: "Polygon";
1115
+ id: string;
1116
+ coordinates?: [number, number][][] | undefined;
1117
+ groupId?: string | null | undefined;
1118
+ color?: string | undefined;
1119
+ name?: string | null | undefined;
1120
+ description?: string | null | undefined;
1121
+ attributes?: Record<string, unknown> | undefined;
1122
+ interaction?: "default" | "locked" | undefined;
1123
+ imageUrl?: string | null | undefined;
1124
+ strokeOpacity?: number | undefined;
1125
+ strokeWidth?: number | undefined;
1126
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1127
+ fillOpacity?: number | undefined;
1128
+ areaMarker?: boolean | undefined;
1129
+ }, {
1130
+ type: "Polygon";
1131
+ id: string;
1132
+ coordinates?: [number, number][][] | undefined;
1133
+ groupId?: string | null | undefined;
1134
+ color?: string | undefined;
1135
+ name?: string | null | undefined;
1136
+ description?: string | null | undefined;
1137
+ attributes?: Record<string, unknown> | undefined;
1138
+ interaction?: "default" | "locked" | undefined;
1139
+ imageUrl?: string | null | undefined;
1140
+ strokeOpacity?: number | undefined;
1141
+ strokeWidth?: number | undefined;
1142
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1143
+ fillOpacity?: number | undefined;
1144
+ areaMarker?: boolean | undefined;
1145
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1146
+ id: z.ZodOptional<z.ZodString>;
1147
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1148
+ color: z.ZodOptional<z.ZodString>;
1149
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1150
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1151
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1152
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1153
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1154
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
1155
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
1156
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
1157
+ type: z.ZodOptional<z.ZodLiteral<"Circle">>;
1158
+ center: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1159
+ radius: z.ZodOptional<z.ZodNumber>;
1160
+ radiusMarker: z.ZodOptional<z.ZodBoolean>;
1161
+ radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
1162
+ radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
1163
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
1164
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1165
+ id: z.ZodString;
1166
+ groupId: z.ZodNullable<z.ZodString>;
1167
+ color: z.ZodString;
1168
+ name: z.ZodNullable<z.ZodString>;
1169
+ description: z.ZodNullable<z.ZodString>;
1170
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1171
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1172
+ }, {
1173
+ imageUrl: z.ZodNullable<z.ZodString>;
1174
+ }>, {
1175
+ strokeOpacity: z.ZodNumber;
1176
+ strokeWidth: z.ZodNumber;
1177
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
1178
+ }>, {
1179
+ type: z.ZodLiteral<"Circle">;
1180
+ center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
1181
+ radius: z.ZodNumber;
1182
+ radiusMarker: z.ZodBoolean;
1183
+ radiusDisplayAngle: z.ZodNumber;
1184
+ radiusDisplayUnit: z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>;
1185
+ fillOpacity: z.ZodNumber;
1186
+ }>, "type" | "id">>, "strip", z.ZodTypeAny, {
1187
+ type: "Circle";
1188
+ id: string;
1189
+ groupId?: string | null | undefined;
1190
+ color?: string | undefined;
1191
+ name?: string | null | undefined;
1192
+ description?: string | null | undefined;
1193
+ attributes?: Record<string, unknown> | undefined;
1194
+ interaction?: "default" | "locked" | undefined;
1195
+ imageUrl?: string | null | undefined;
1196
+ strokeOpacity?: number | undefined;
1197
+ strokeWidth?: number | undefined;
1198
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1199
+ fillOpacity?: number | undefined;
1200
+ center?: [number, number] | undefined;
1201
+ radius?: number | undefined;
1202
+ radiusMarker?: boolean | undefined;
1203
+ radiusDisplayAngle?: number | undefined;
1204
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
1205
+ }, {
1206
+ type: "Circle";
1207
+ id: string;
1208
+ groupId?: string | null | undefined;
1209
+ color?: string | undefined;
1210
+ name?: string | null | undefined;
1211
+ description?: string | null | undefined;
1212
+ attributes?: Record<string, unknown> | undefined;
1213
+ interaction?: "default" | "locked" | undefined;
1214
+ imageUrl?: string | null | undefined;
1215
+ strokeOpacity?: number | undefined;
1216
+ strokeWidth?: number | undefined;
1217
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1218
+ fillOpacity?: number | undefined;
1219
+ center?: [number, number] | undefined;
1220
+ radius?: number | undefined;
1221
+ radiusMarker?: boolean | undefined;
1222
+ radiusDisplayAngle?: number | undefined;
1223
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
1224
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1225
+ id: z.ZodOptional<z.ZodString>;
1226
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1227
+ color: z.ZodOptional<z.ZodString>;
1228
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1229
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1230
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1231
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1232
+ type: z.ZodOptional<z.ZodLiteral<"Marker">>;
1233
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1234
+ opacity: z.ZodOptional<z.ZodNumber>;
1235
+ size: z.ZodOptional<z.ZodNumber>;
1236
+ zoom: z.ZodOptional<z.ZodNumber>;
1237
+ }, Pick<z.objectUtil.extendShape<{
1238
+ id: z.ZodString;
1239
+ groupId: z.ZodNullable<z.ZodString>;
1240
+ color: z.ZodString;
1241
+ name: z.ZodNullable<z.ZodString>;
1242
+ description: z.ZodNullable<z.ZodString>;
1243
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1244
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1245
+ }, {
1246
+ type: z.ZodLiteral<"Marker">;
1247
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
1248
+ opacity: z.ZodNumber;
1249
+ size: z.ZodNumber;
1250
+ zoom: z.ZodNumber;
1251
+ }>, "type" | "id">>, "strip", z.ZodTypeAny, {
1252
+ type: "Marker";
1253
+ id: string;
1254
+ coordinates?: [number, number][][] | undefined;
1255
+ groupId?: string | null | undefined;
1256
+ color?: string | undefined;
1257
+ name?: string | null | undefined;
1258
+ description?: string | null | undefined;
1259
+ attributes?: Record<string, unknown> | undefined;
1260
+ interaction?: "default" | "locked" | undefined;
1261
+ opacity?: number | undefined;
1262
+ size?: number | undefined;
1263
+ zoom?: number | undefined;
1264
+ }, {
1265
+ type: "Marker";
1266
+ id: string;
1267
+ coordinates?: [number, number][][] | undefined;
1268
+ groupId?: string | null | undefined;
1269
+ color?: string | undefined;
1270
+ name?: string | null | undefined;
1271
+ description?: string | null | undefined;
1272
+ attributes?: Record<string, unknown> | undefined;
1273
+ interaction?: "default" | "locked" | undefined;
1274
+ opacity?: number | undefined;
1275
+ size?: number | undefined;
1276
+ zoom?: number | undefined;
1277
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1278
+ id: z.ZodOptional<z.ZodString>;
1279
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1280
+ color: z.ZodOptional<z.ZodString>;
1281
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1282
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1283
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1284
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1285
+ type: z.ZodOptional<z.ZodLiteral<"Highlighter">>;
1286
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">>;
1287
+ renderHoles: z.ZodOptional<z.ZodBoolean>;
1288
+ opacity: z.ZodOptional<z.ZodNumber>;
1289
+ }, Pick<z.objectUtil.extendShape<{
116
1290
  id: z.ZodString;
117
- }, "strip", z.ZodTypeAny, {
1291
+ groupId: z.ZodNullable<z.ZodString>;
1292
+ color: z.ZodString;
1293
+ name: z.ZodNullable<z.ZodString>;
1294
+ description: z.ZodNullable<z.ZodString>;
1295
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1296
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1297
+ }, {
1298
+ type: z.ZodLiteral<"Highlighter">;
1299
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
1300
+ renderHoles: z.ZodBoolean;
1301
+ opacity: z.ZodNumber;
1302
+ }>, "type" | "id">>, "strip", z.ZodTypeAny, {
1303
+ type: "Highlighter";
118
1304
  id: string;
1305
+ coordinates?: [number, number][][][] | undefined;
1306
+ groupId?: string | null | undefined;
1307
+ color?: string | undefined;
1308
+ name?: string | null | undefined;
1309
+ description?: string | null | undefined;
1310
+ attributes?: Record<string, unknown> | undefined;
1311
+ interaction?: "default" | "locked" | undefined;
1312
+ opacity?: number | undefined;
1313
+ renderHoles?: boolean | undefined;
119
1314
  }, {
1315
+ type: "Highlighter";
120
1316
  id: string;
121
- }>;
122
- }, "strict", z.ZodTypeAny, {
123
- options: {
1317
+ coordinates?: [number, number][][][] | undefined;
1318
+ groupId?: string | null | undefined;
1319
+ color?: string | undefined;
1320
+ name?: string | null | undefined;
1321
+ description?: string | null | undefined;
1322
+ attributes?: Record<string, unknown> | undefined;
1323
+ interaction?: "default" | "locked" | undefined;
1324
+ opacity?: number | undefined;
1325
+ renderHoles?: boolean | undefined;
1326
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
1327
+ id: z.ZodOptional<z.ZodString>;
1328
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1329
+ color: z.ZodOptional<z.ZodString>;
1330
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1331
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1332
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1333
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1334
+ rotation: z.ZodOptional<z.ZodNumber>;
1335
+ scale: z.ZodOptional<z.ZodNumber>;
1336
+ zoom: z.ZodOptional<z.ZodNumber>;
1337
+ text: z.ZodOptional<z.ZodString>;
1338
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1339
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
1340
+ name: z.ZodOptional<z.ZodString>;
1341
+ type: z.ZodOptional<z.ZodLiteral<"Text">>;
1342
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1343
+ id: z.ZodString;
1344
+ groupId: z.ZodNullable<z.ZodString>;
1345
+ color: z.ZodString;
1346
+ name: z.ZodNullable<z.ZodString>;
1347
+ description: z.ZodNullable<z.ZodString>;
1348
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1349
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1350
+ }, {
1351
+ position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
1352
+ rotation: z.ZodNumber;
1353
+ scale: z.ZodNumber;
1354
+ zoom: z.ZodNumber;
1355
+ text: z.ZodString;
1356
+ align: z.ZodEnum<["left", "center", "right"]>;
1357
+ style: z.ZodEnum<["italic", "light", "regular", "caps"]>;
1358
+ name: z.ZodString;
1359
+ }>, {
1360
+ type: z.ZodLiteral<"Text">;
1361
+ }>, "type" | "id">>, "name">, "strip", z.ZodTypeAny, {
1362
+ type: "Text";
124
1363
  id: string;
125
- };
126
- eventName: "onElementChange";
127
- id: string;
128
- }, {
129
- options: {
1364
+ groupId?: string | null | undefined;
1365
+ color?: string | undefined;
1366
+ description?: string | null | undefined;
1367
+ attributes?: Record<string, unknown> | undefined;
1368
+ interaction?: "default" | "locked" | undefined;
1369
+ zoom?: number | undefined;
1370
+ position?: [number, number] | undefined;
1371
+ rotation?: number | undefined;
1372
+ scale?: number | undefined;
1373
+ text?: string | undefined;
1374
+ align?: "center" | "left" | "right" | undefined;
1375
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1376
+ }, {
1377
+ type: "Text";
130
1378
  id: string;
131
- };
132
- eventName: "onElementChange";
133
- id: string;
134
- }>;
135
- declare const OnElementGroupChangeMessage: z.ZodObject<{
136
- eventName: z.ZodLiteral<"onElementGroupChange">;
137
- id: z.ZodString;
138
- options: z.ZodObject<{
1379
+ groupId?: string | null | undefined;
1380
+ color?: string | undefined;
1381
+ description?: string | null | undefined;
1382
+ attributes?: Record<string, unknown> | undefined;
1383
+ interaction?: "default" | "locked" | undefined;
1384
+ zoom?: number | undefined;
1385
+ position?: [number, number] | undefined;
1386
+ rotation?: number | undefined;
1387
+ scale?: number | undefined;
1388
+ text?: string | undefined;
1389
+ align?: "center" | "left" | "right" | undefined;
1390
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1391
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
1392
+ id: z.ZodOptional<z.ZodString>;
1393
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1394
+ color: z.ZodOptional<z.ZodString>;
1395
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1396
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1397
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1398
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1399
+ rotation: z.ZodOptional<z.ZodNumber>;
1400
+ scale: z.ZodOptional<z.ZodNumber>;
1401
+ zoom: z.ZodOptional<z.ZodNumber>;
1402
+ text: z.ZodOptional<z.ZodString>;
1403
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1404
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
1405
+ name: z.ZodOptional<z.ZodString>;
1406
+ type: z.ZodOptional<z.ZodLiteral<"Note">>;
1407
+ widthScale: z.ZodOptional<z.ZodNumber>;
1408
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<{
139
1409
  id: z.ZodString;
140
- }, "strip", z.ZodTypeAny, {
1410
+ groupId: z.ZodNullable<z.ZodString>;
1411
+ color: z.ZodString;
1412
+ name: z.ZodNullable<z.ZodString>;
1413
+ description: z.ZodNullable<z.ZodString>;
1414
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1415
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1416
+ }, {
1417
+ position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
1418
+ rotation: z.ZodNumber;
1419
+ scale: z.ZodNumber;
1420
+ zoom: z.ZodNumber;
1421
+ text: z.ZodString;
1422
+ align: z.ZodEnum<["left", "center", "right"]>;
1423
+ style: z.ZodEnum<["italic", "light", "regular", "caps"]>;
1424
+ name: z.ZodString;
1425
+ }>, {
1426
+ type: z.ZodLiteral<"Note">;
1427
+ widthScale: z.ZodNumber;
1428
+ }>, "type" | "id">>, "name">, "strip", z.ZodTypeAny, {
1429
+ type: "Note";
141
1430
  id: string;
1431
+ groupId?: string | null | undefined;
1432
+ color?: string | undefined;
1433
+ description?: string | null | undefined;
1434
+ attributes?: Record<string, unknown> | undefined;
1435
+ interaction?: "default" | "locked" | undefined;
1436
+ zoom?: number | undefined;
1437
+ position?: [number, number] | undefined;
1438
+ rotation?: number | undefined;
1439
+ scale?: number | undefined;
1440
+ text?: string | undefined;
1441
+ align?: "center" | "left" | "right" | undefined;
1442
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1443
+ widthScale?: number | undefined;
142
1444
  }, {
1445
+ type: "Note";
143
1446
  id: string;
144
- }>;
145
- }, "strict", z.ZodTypeAny, {
146
- options: {
1447
+ groupId?: string | null | undefined;
1448
+ color?: string | undefined;
1449
+ description?: string | null | undefined;
1450
+ attributes?: Record<string, unknown> | undefined;
1451
+ interaction?: "default" | "locked" | undefined;
1452
+ zoom?: number | undefined;
1453
+ position?: [number, number] | undefined;
1454
+ rotation?: number | undefined;
1455
+ scale?: number | undefined;
1456
+ text?: string | undefined;
1457
+ align?: "center" | "left" | "right" | undefined;
1458
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1459
+ widthScale?: number | undefined;
1460
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1461
+ type: z.ZodOptional<z.ZodLiteral<"Image">>;
1462
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1463
+ id: z.ZodOptional<z.ZodString>;
1464
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1465
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1466
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1467
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1468
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1469
+ imageUrl: z.ZodOptional<z.ZodString>;
1470
+ opacity: z.ZodOptional<z.ZodNumber>;
1471
+ }, Pick<Omit<z.objectUtil.extendShape<{
1472
+ id: z.ZodString;
1473
+ groupId: z.ZodNullable<z.ZodString>;
1474
+ color: z.ZodString;
1475
+ name: z.ZodNullable<z.ZodString>;
1476
+ description: z.ZodNullable<z.ZodString>;
1477
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1478
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1479
+ }, {
1480
+ type: z.ZodLiteral<"Image">;
1481
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
1482
+ imageUrl: z.ZodString;
1483
+ opacity: z.ZodNumber;
1484
+ }>, "color">, "type" | "id">>, "strip", z.ZodTypeAny, {
1485
+ type: "Image";
1486
+ id: string;
1487
+ coordinates?: [number, number][][] | undefined;
1488
+ groupId?: string | null | undefined;
1489
+ name?: string | null | undefined;
1490
+ description?: string | null | undefined;
1491
+ attributes?: Record<string, unknown> | undefined;
1492
+ interaction?: "default" | "locked" | undefined;
1493
+ imageUrl?: string | undefined;
1494
+ opacity?: number | undefined;
1495
+ }, {
1496
+ type: "Image";
1497
+ id: string;
1498
+ coordinates?: [number, number][][] | undefined;
1499
+ groupId?: string | null | undefined;
1500
+ name?: string | null | undefined;
1501
+ description?: string | null | undefined;
1502
+ attributes?: Record<string, unknown> | undefined;
1503
+ interaction?: "default" | "locked" | undefined;
1504
+ imageUrl?: string | undefined;
1505
+ opacity?: number | undefined;
1506
+ }>]>;
1507
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1508
+ params: {
1509
+ type: "Place";
1510
+ id: string;
1511
+ symbol?: string | undefined;
1512
+ coordinates?: [number, number] | undefined;
1513
+ groupId?: string | null | undefined;
1514
+ color?: string | undefined;
1515
+ name?: string | null | undefined;
1516
+ description?: string | null | undefined;
1517
+ attributes?: Record<string, unknown> | undefined;
1518
+ interaction?: "default" | "locked" | undefined;
1519
+ imageUrl?: string | null | undefined;
1520
+ frame?: "frame-circle" | "frame-square" | null | undefined;
1521
+ hideLabel?: boolean | undefined;
1522
+ } | {
1523
+ type: "Path";
1524
+ id: string;
1525
+ coordinates?: [number, number][][] | undefined;
1526
+ groupId?: string | null | undefined;
1527
+ color?: string | undefined;
1528
+ name?: string | null | undefined;
1529
+ description?: string | null | undefined;
1530
+ attributes?: Record<string, unknown> | undefined;
1531
+ interaction?: "default" | "locked" | undefined;
1532
+ imageUrl?: string | null | undefined;
1533
+ strokeOpacity?: number | undefined;
1534
+ strokeWidth?: number | undefined;
1535
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1536
+ distanceMarker?: boolean | undefined;
1537
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1538
+ endCaps?: boolean | undefined;
1539
+ } | {
1540
+ type: "Polygon";
1541
+ id: string;
1542
+ coordinates?: [number, number][][] | undefined;
1543
+ groupId?: string | null | undefined;
1544
+ color?: string | undefined;
1545
+ name?: string | null | undefined;
1546
+ description?: string | null | undefined;
1547
+ attributes?: Record<string, unknown> | undefined;
1548
+ interaction?: "default" | "locked" | undefined;
1549
+ imageUrl?: string | null | undefined;
1550
+ strokeOpacity?: number | undefined;
1551
+ strokeWidth?: number | undefined;
1552
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1553
+ fillOpacity?: number | undefined;
1554
+ areaMarker?: boolean | undefined;
1555
+ } | {
1556
+ type: "Circle";
1557
+ id: string;
1558
+ groupId?: string | null | undefined;
1559
+ color?: string | undefined;
1560
+ name?: string | null | undefined;
1561
+ description?: string | null | undefined;
1562
+ attributes?: Record<string, unknown> | undefined;
1563
+ interaction?: "default" | "locked" | undefined;
1564
+ imageUrl?: string | null | undefined;
1565
+ strokeOpacity?: number | undefined;
1566
+ strokeWidth?: number | undefined;
1567
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1568
+ fillOpacity?: number | undefined;
1569
+ center?: [number, number] | undefined;
1570
+ radius?: number | undefined;
1571
+ radiusMarker?: boolean | undefined;
1572
+ radiusDisplayAngle?: number | undefined;
1573
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
1574
+ } | {
1575
+ type: "Marker";
1576
+ id: string;
1577
+ coordinates?: [number, number][][] | undefined;
1578
+ groupId?: string | null | undefined;
1579
+ color?: string | undefined;
1580
+ name?: string | null | undefined;
1581
+ description?: string | null | undefined;
1582
+ attributes?: Record<string, unknown> | undefined;
1583
+ interaction?: "default" | "locked" | undefined;
1584
+ opacity?: number | undefined;
1585
+ size?: number | undefined;
1586
+ zoom?: number | undefined;
1587
+ } | {
1588
+ type: "Highlighter";
1589
+ id: string;
1590
+ coordinates?: [number, number][][][] | undefined;
1591
+ groupId?: string | null | undefined;
1592
+ color?: string | undefined;
1593
+ name?: string | null | undefined;
1594
+ description?: string | null | undefined;
1595
+ attributes?: Record<string, unknown> | undefined;
1596
+ interaction?: "default" | "locked" | undefined;
1597
+ opacity?: number | undefined;
1598
+ renderHoles?: boolean | undefined;
1599
+ } | {
1600
+ type: "Text";
1601
+ id: string;
1602
+ groupId?: string | null | undefined;
1603
+ color?: string | undefined;
1604
+ description?: string | null | undefined;
1605
+ attributes?: Record<string, unknown> | undefined;
1606
+ interaction?: "default" | "locked" | undefined;
1607
+ zoom?: number | undefined;
1608
+ position?: [number, number] | undefined;
1609
+ rotation?: number | undefined;
1610
+ scale?: number | undefined;
1611
+ text?: string | undefined;
1612
+ align?: "center" | "left" | "right" | undefined;
1613
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1614
+ } | {
1615
+ type: "Note";
1616
+ id: string;
1617
+ groupId?: string | null | undefined;
1618
+ color?: string | undefined;
1619
+ description?: string | null | undefined;
1620
+ attributes?: Record<string, unknown> | undefined;
1621
+ interaction?: "default" | "locked" | undefined;
1622
+ zoom?: number | undefined;
1623
+ position?: [number, number] | undefined;
1624
+ rotation?: number | undefined;
1625
+ scale?: number | undefined;
1626
+ text?: string | undefined;
1627
+ align?: "center" | "left" | "right" | undefined;
1628
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1629
+ widthScale?: number | undefined;
1630
+ } | {
1631
+ type: "Image";
147
1632
  id: string;
1633
+ coordinates?: [number, number][][] | undefined;
1634
+ groupId?: string | null | undefined;
1635
+ name?: string | null | undefined;
1636
+ description?: string | null | undefined;
1637
+ attributes?: Record<string, unknown> | undefined;
1638
+ interaction?: "default" | "locked" | undefined;
1639
+ imageUrl?: string | undefined;
1640
+ opacity?: number | undefined;
148
1641
  };
149
- eventName: "onElementGroupChange";
150
- id: string;
1642
+ type: "updateElement";
151
1643
  }, {
152
- options: {
1644
+ params: {
1645
+ type: "Place";
1646
+ id: string;
1647
+ symbol?: string | undefined;
1648
+ coordinates?: [number, number] | undefined;
1649
+ groupId?: string | null | undefined;
1650
+ color?: string | undefined;
1651
+ name?: string | null | undefined;
1652
+ description?: string | null | undefined;
1653
+ attributes?: Record<string, unknown> | undefined;
1654
+ interaction?: "default" | "locked" | undefined;
1655
+ imageUrl?: string | null | undefined;
1656
+ frame?: "frame-circle" | "frame-square" | null | undefined;
1657
+ hideLabel?: boolean | undefined;
1658
+ } | {
1659
+ type: "Path";
1660
+ id: string;
1661
+ coordinates?: [number, number][][] | undefined;
1662
+ groupId?: string | null | undefined;
1663
+ color?: string | undefined;
1664
+ name?: string | null | undefined;
1665
+ description?: string | null | undefined;
1666
+ attributes?: Record<string, unknown> | undefined;
1667
+ interaction?: "default" | "locked" | undefined;
1668
+ imageUrl?: string | null | undefined;
1669
+ strokeOpacity?: number | undefined;
1670
+ strokeWidth?: number | undefined;
1671
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1672
+ distanceMarker?: boolean | undefined;
1673
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1674
+ endCaps?: boolean | undefined;
1675
+ } | {
1676
+ type: "Polygon";
1677
+ id: string;
1678
+ coordinates?: [number, number][][] | undefined;
1679
+ groupId?: string | null | undefined;
1680
+ color?: string | undefined;
1681
+ name?: string | null | undefined;
1682
+ description?: string | null | undefined;
1683
+ attributes?: Record<string, unknown> | undefined;
1684
+ interaction?: "default" | "locked" | undefined;
1685
+ imageUrl?: string | null | undefined;
1686
+ strokeOpacity?: number | undefined;
1687
+ strokeWidth?: number | undefined;
1688
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1689
+ fillOpacity?: number | undefined;
1690
+ areaMarker?: boolean | undefined;
1691
+ } | {
1692
+ type: "Circle";
1693
+ id: string;
1694
+ groupId?: string | null | undefined;
1695
+ color?: string | undefined;
1696
+ name?: string | null | undefined;
1697
+ description?: string | null | undefined;
1698
+ attributes?: Record<string, unknown> | undefined;
1699
+ interaction?: "default" | "locked" | undefined;
1700
+ imageUrl?: string | null | undefined;
1701
+ strokeOpacity?: number | undefined;
1702
+ strokeWidth?: number | undefined;
1703
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1704
+ fillOpacity?: number | undefined;
1705
+ center?: [number, number] | undefined;
1706
+ radius?: number | undefined;
1707
+ radiusMarker?: boolean | undefined;
1708
+ radiusDisplayAngle?: number | undefined;
1709
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
1710
+ } | {
1711
+ type: "Marker";
1712
+ id: string;
1713
+ coordinates?: [number, number][][] | undefined;
1714
+ groupId?: string | null | undefined;
1715
+ color?: string | undefined;
1716
+ name?: string | null | undefined;
1717
+ description?: string | null | undefined;
1718
+ attributes?: Record<string, unknown> | undefined;
1719
+ interaction?: "default" | "locked" | undefined;
1720
+ opacity?: number | undefined;
1721
+ size?: number | undefined;
1722
+ zoom?: number | undefined;
1723
+ } | {
1724
+ type: "Highlighter";
1725
+ id: string;
1726
+ coordinates?: [number, number][][][] | undefined;
1727
+ groupId?: string | null | undefined;
1728
+ color?: string | undefined;
1729
+ name?: string | null | undefined;
1730
+ description?: string | null | undefined;
1731
+ attributes?: Record<string, unknown> | undefined;
1732
+ interaction?: "default" | "locked" | undefined;
1733
+ opacity?: number | undefined;
1734
+ renderHoles?: boolean | undefined;
1735
+ } | {
1736
+ type: "Text";
1737
+ id: string;
1738
+ groupId?: string | null | undefined;
1739
+ color?: string | undefined;
1740
+ description?: string | null | undefined;
1741
+ attributes?: Record<string, unknown> | undefined;
1742
+ interaction?: "default" | "locked" | undefined;
1743
+ zoom?: number | undefined;
1744
+ position?: [number, number] | undefined;
1745
+ rotation?: number | undefined;
1746
+ scale?: number | undefined;
1747
+ text?: string | undefined;
1748
+ align?: "center" | "left" | "right" | undefined;
1749
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1750
+ } | {
1751
+ type: "Note";
1752
+ id: string;
1753
+ groupId?: string | null | undefined;
1754
+ color?: string | undefined;
1755
+ description?: string | null | undefined;
1756
+ attributes?: Record<string, unknown> | undefined;
1757
+ interaction?: "default" | "locked" | undefined;
1758
+ zoom?: number | undefined;
1759
+ position?: [number, number] | undefined;
1760
+ rotation?: number | undefined;
1761
+ scale?: number | undefined;
1762
+ text?: string | undefined;
1763
+ align?: "center" | "left" | "right" | undefined;
1764
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1765
+ widthScale?: number | undefined;
1766
+ } | {
1767
+ type: "Image";
153
1768
  id: string;
1769
+ coordinates?: [number, number][][] | undefined;
1770
+ groupId?: string | null | undefined;
1771
+ name?: string | null | undefined;
1772
+ description?: string | null | undefined;
1773
+ attributes?: Record<string, unknown> | undefined;
1774
+ interaction?: "default" | "locked" | undefined;
1775
+ imageUrl?: string | undefined;
1776
+ opacity?: number | undefined;
154
1777
  };
155
- eventName: "onElementGroupChange";
156
- id: string;
1778
+ type: "updateElement";
1779
+ }>;
1780
+ declare const DeleteElementMessage: z.ZodObject<{
1781
+ type: z.ZodLiteral<"deleteElement">;
1782
+ params: z.ZodString;
1783
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1784
+ params: string;
1785
+ type: "deleteElement";
1786
+ }, {
1787
+ params: string;
1788
+ type: "deleteElement";
157
1789
  }>;
158
1790
  type ElementsSchema = {
159
1791
  methods: {
160
1792
  getElement: Method<zInfer<typeof GetElementMessage>, Element | null>;
161
- getElementGeometry: Method<zInfer<typeof GetElementGeometryMessage>, Geometry | null>;
1793
+ getElementGeometry: Method<zInfer<typeof GetElementGeometryMessage>, GeoJsonGeometry | null>;
162
1794
  getElements: Method<zInfer<typeof GetElementsMessage>, Array<Element | null>>;
163
1795
  getElementGroup: Method<zInfer<typeof GetGroupMessage$1>, ElementGroup | null>;
164
1796
  getElementGroups: Method<zInfer<typeof GetGroupsMessage$1>, Array<ElementGroup | null>>;
165
1797
  setElementGroupVisibility: Method<zInfer<typeof SetElementGroupVisibilityMessage>, void>;
1798
+ createElement: Method<zInfer<typeof CreateElementMessage>, Element>;
1799
+ updateElement: Method<zInfer<typeof UpdateElementMessage>, Element>;
1800
+ deleteElement: Method<zInfer<typeof DeleteElementMessage>, void>;
166
1801
  };
167
1802
  listeners: {
168
1803
  onElementChange: Listener<zInfer<typeof OnElementChangeMessage.shape.options>, ElementChangeCallbackParams>;
169
1804
  onElementGroupChange: Listener<zInfer<typeof OnElementGroupChangeMessage.shape.options>, ElementGroupChangeCallbackParams>;
1805
+ onElementCreate: ListenerNoOptions<ElementChangeCallbackParams>;
1806
+ onElementCreateEnd: ListenerNoOptions<{
1807
+ element: Element;
1808
+ }>;
1809
+ onElementDelete: Listener<zInfer<typeof OnElementDeleteMessage.shape.options>, void>;
170
1810
  };
171
1811
  };
172
1812
 
173
1813
  type InteractionsSchema = {
174
1814
  methods: {};
175
1815
  listeners: {
176
- onPointerClick: Listener<void, MapInteractionEvent>;
177
- onPointerMove: Listener<void, MapInteractionEvent>;
1816
+ onPointerClick: ListenerNoOptions<MapInteractionEvent>;
1817
+ onPointerMove: ListenerNoOptions<MapInteractionEvent>;
178
1818
  };
179
1819
  };
180
1820
 
@@ -247,14 +1887,14 @@ declare const OnLayerChangeMessage: z.ZodObject<{
247
1887
  options: {
248
1888
  id: string;
249
1889
  };
250
- eventName: "onLayerChange";
251
1890
  id: string;
1891
+ eventName: "onLayerChange";
252
1892
  }, {
253
1893
  options: {
254
1894
  id: string;
255
1895
  };
256
- eventName: "onLayerChange";
257
1896
  id: string;
1897
+ eventName: "onLayerChange";
258
1898
  }>;
259
1899
  declare const SetLayerStyleMessage: z.ZodObject<{
260
1900
  type: z.ZodLiteral<"setLayerStyle">;
@@ -306,13 +1946,156 @@ declare const SetLayerLegendVisibilityMessage: z.ZodObject<{
306
1946
  show?: string[] | undefined;
307
1947
  hide?: string[] | undefined;
308
1948
  };
309
- type: "setLayerLegendVisibility";
1949
+ type: "setLayerLegendVisibility";
1950
+ }, {
1951
+ params: {
1952
+ show?: string[] | undefined;
1953
+ hide?: string[] | undefined;
1954
+ };
1955
+ type: "setLayerLegendVisibility";
1956
+ }>;
1957
+ declare const CreateLayersFromGeoJsonMessage: z.ZodObject<{
1958
+ type: z.ZodLiteral<"createLayersFromGeoJson">;
1959
+ params: z.ZodObject<{
1960
+ source: z.ZodUnion<[z.ZodObject<{
1961
+ type: z.ZodLiteral<"geoJsonUrl">;
1962
+ url: z.ZodString;
1963
+ }, "strip", z.ZodTypeAny, {
1964
+ type: "geoJsonUrl";
1965
+ url: string;
1966
+ }, {
1967
+ type: "geoJsonUrl";
1968
+ url: string;
1969
+ }>, z.ZodObject<{
1970
+ type: z.ZodLiteral<"geoJsonData">;
1971
+ data: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1972
+ }, "strip", z.ZodTypeAny, {
1973
+ type: "geoJsonData";
1974
+ data: {} & {
1975
+ [k: string]: unknown;
1976
+ };
1977
+ }, {
1978
+ type: "geoJsonData";
1979
+ data: {} & {
1980
+ [k: string]: unknown;
1981
+ };
1982
+ }>, z.ZodObject<{
1983
+ type: z.ZodLiteral<"geoJsonFile">;
1984
+ file: z.ZodType<File, z.ZodTypeDef, File>;
1985
+ }, "strip", z.ZodTypeAny, {
1986
+ type: "geoJsonFile";
1987
+ file: File;
1988
+ }, {
1989
+ type: "geoJsonFile";
1990
+ file: File;
1991
+ }>]>;
1992
+ name: z.ZodString;
1993
+ geometryStyles: z.ZodOptional<z.ZodObject<{
1994
+ Point: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1995
+ Line: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1996
+ Polygon: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1997
+ }, "strip", z.ZodTypeAny, {
1998
+ Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1999
+ Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2000
+ Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2001
+ }, {
2002
+ Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2003
+ Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2004
+ Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2005
+ }>>;
2006
+ }, "strip", z.ZodTypeAny, {
2007
+ name: string;
2008
+ source: {
2009
+ type: "geoJsonUrl";
2010
+ url: string;
2011
+ } | {
2012
+ type: "geoJsonData";
2013
+ data: {} & {
2014
+ [k: string]: unknown;
2015
+ };
2016
+ } | {
2017
+ type: "geoJsonFile";
2018
+ file: File;
2019
+ };
2020
+ geometryStyles?: {
2021
+ Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2022
+ Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2023
+ Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2024
+ } | undefined;
2025
+ }, {
2026
+ name: string;
2027
+ source: {
2028
+ type: "geoJsonUrl";
2029
+ url: string;
2030
+ } | {
2031
+ type: "geoJsonData";
2032
+ data: {} & {
2033
+ [k: string]: unknown;
2034
+ };
2035
+ } | {
2036
+ type: "geoJsonFile";
2037
+ file: File;
2038
+ };
2039
+ geometryStyles?: {
2040
+ Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2041
+ Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2042
+ Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2043
+ } | undefined;
2044
+ }>;
2045
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2046
+ params: {
2047
+ name: string;
2048
+ source: {
2049
+ type: "geoJsonUrl";
2050
+ url: string;
2051
+ } | {
2052
+ type: "geoJsonData";
2053
+ data: {} & {
2054
+ [k: string]: unknown;
2055
+ };
2056
+ } | {
2057
+ type: "geoJsonFile";
2058
+ file: File;
2059
+ };
2060
+ geometryStyles?: {
2061
+ Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2062
+ Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2063
+ Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2064
+ } | undefined;
2065
+ };
2066
+ type: "createLayersFromGeoJson";
310
2067
  }, {
311
2068
  params: {
312
- show?: string[] | undefined;
313
- hide?: string[] | undefined;
2069
+ name: string;
2070
+ source: {
2071
+ type: "geoJsonUrl";
2072
+ url: string;
2073
+ } | {
2074
+ type: "geoJsonData";
2075
+ data: {} & {
2076
+ [k: string]: unknown;
2077
+ };
2078
+ } | {
2079
+ type: "geoJsonFile";
2080
+ file: File;
2081
+ };
2082
+ geometryStyles?: {
2083
+ Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2084
+ Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2085
+ Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2086
+ } | undefined;
314
2087
  };
315
- type: "setLayerLegendVisibility";
2088
+ type: "createLayersFromGeoJson";
2089
+ }>;
2090
+ declare const DeleteLayerMessage: z.ZodObject<{
2091
+ type: z.ZodLiteral<"deleteLayer">;
2092
+ params: z.ZodString;
2093
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2094
+ params: string;
2095
+ type: "deleteLayer";
2096
+ }, {
2097
+ params: string;
2098
+ type: "deleteLayer";
316
2099
  }>;
317
2100
  declare const GetGroupMessage: z.ZodObject<{
318
2101
  type: z.ZodLiteral<"getLayerGroup">;
@@ -408,14 +2191,14 @@ declare const OnLayerGroupChangeMessage: z.ZodObject<{
408
2191
  options: {
409
2192
  id: string;
410
2193
  };
411
- eventName: "onLayerGroupChange";
412
2194
  id: string;
2195
+ eventName: "onLayerGroupChange";
413
2196
  }, {
414
2197
  options: {
415
2198
  id: string;
416
2199
  };
417
- eventName: "onLayerGroupChange";
418
2200
  id: string;
2201
+ eventName: "onLayerGroupChange";
419
2202
  }>;
420
2203
  declare const GetLegendItemMessage: z.ZodObject<{
421
2204
  type: z.ZodLiteral<"getLegendItem">;
@@ -506,15 +2289,15 @@ declare const OnLegendItemChangeMessage: z.ZodObject<{
506
2289
  id: string;
507
2290
  layerId: string;
508
2291
  };
509
- eventName: "onLegendItemChange";
510
2292
  id: string;
2293
+ eventName: "onLegendItemChange";
511
2294
  }, {
512
2295
  options: {
513
2296
  id: string;
514
2297
  layerId: string;
515
2298
  };
516
- eventName: "onLegendItemChange";
517
2299
  id: string;
2300
+ eventName: "onLegendItemChange";
518
2301
  }>;
519
2302
  declare const SetLegendItemVisibilityMessage: z.ZodObject<{
520
2303
  type: z.ZodLiteral<"setLegendItemVisibility">;
@@ -560,148 +2343,763 @@ declare const SetLegendItemVisibilityMessage: z.ZodObject<{
560
2343
  }>;
561
2344
  }, z.UnknownKeysParam, z.ZodTypeAny, {
562
2345
  params: {
563
- show?: {
564
- id: string;
565
- layerId: string;
566
- }[] | undefined;
567
- hide?: {
568
- id: string;
569
- layerId: string;
570
- }[] | undefined;
2346
+ show?: {
2347
+ id: string;
2348
+ layerId: string;
2349
+ }[] | undefined;
2350
+ hide?: {
2351
+ id: string;
2352
+ layerId: string;
2353
+ }[] | undefined;
2354
+ };
2355
+ type: "setLegendItemVisibility";
2356
+ }, {
2357
+ params: {
2358
+ show?: {
2359
+ id: string;
2360
+ layerId: string;
2361
+ }[] | undefined;
2362
+ hide?: {
2363
+ id: string;
2364
+ layerId: string;
2365
+ }[] | undefined;
2366
+ };
2367
+ type: "setLegendItemVisibility";
2368
+ }>;
2369
+ declare const GetFiltersMessage: z.ZodObject<{
2370
+ type: z.ZodLiteral<"getLayerFilters">;
2371
+ params: z.ZodString;
2372
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2373
+ params: string;
2374
+ type: "getLayerFilters";
2375
+ }, {
2376
+ params: string;
2377
+ type: "getLayerFilters";
2378
+ }>;
2379
+ declare const SetFiltersMessage: z.ZodObject<{
2380
+ type: z.ZodLiteral<"setLayerFilters">;
2381
+ params: z.ZodObject<{
2382
+ layerId: z.ZodString;
2383
+ filters: z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>;
2384
+ note: z.ZodOptional<z.ZodString>;
2385
+ }, "strip", z.ZodTypeAny, {
2386
+ filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
2387
+ layerId: string;
2388
+ note?: string | undefined;
2389
+ }, {
2390
+ filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
2391
+ layerId: string;
2392
+ note?: string | undefined;
2393
+ }>;
2394
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2395
+ params: {
2396
+ filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
2397
+ layerId: string;
2398
+ note?: string | undefined;
2399
+ };
2400
+ type: "setLayerFilters";
2401
+ }, {
2402
+ params: {
2403
+ filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
2404
+ layerId: string;
2405
+ note?: string | undefined;
2406
+ };
2407
+ type: "setLayerFilters";
2408
+ }>;
2409
+ declare const OnLayerFiltersChangeMessage: z.ZodObject<{
2410
+ eventName: z.ZodLiteral<"onLayerFiltersChange">;
2411
+ id: z.ZodString;
2412
+ options: z.ZodObject<{
2413
+ layerId: z.ZodString;
2414
+ }, "strip", z.ZodTypeAny, {
2415
+ layerId: string;
2416
+ }, {
2417
+ layerId: string;
2418
+ }>;
2419
+ }, "strict", z.ZodTypeAny, {
2420
+ options: {
2421
+ layerId: string;
2422
+ };
2423
+ id: string;
2424
+ eventName: "onLayerFiltersChange";
2425
+ }, {
2426
+ options: {
2427
+ layerId: string;
2428
+ };
2429
+ id: string;
2430
+ eventName: "onLayerFiltersChange";
2431
+ }>;
2432
+ declare const GetRenderedFeaturesMessage: z.ZodObject<{
2433
+ type: z.ZodLiteral<"getRenderedFeatures">;
2434
+ params: z.ZodOptional<z.ZodObject<{
2435
+ layerIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2436
+ areaQuery: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2437
+ coordinates: z.ZodObject<{
2438
+ latitude: z.ZodNumber;
2439
+ longitude: z.ZodNumber;
2440
+ }, "strip", z.ZodTypeAny, {
2441
+ latitude: number;
2442
+ longitude: number;
2443
+ }, {
2444
+ latitude: number;
2445
+ longitude: number;
2446
+ }>;
2447
+ }, "strip", z.ZodTypeAny, {
2448
+ coordinates: {
2449
+ latitude: number;
2450
+ longitude: number;
2451
+ };
2452
+ }, {
2453
+ coordinates: {
2454
+ latitude: number;
2455
+ longitude: number;
2456
+ };
2457
+ }>, z.ZodObject<{
2458
+ boundary: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
2459
+ }, "strip", z.ZodTypeAny, {
2460
+ boundary: [number, number, number, number];
2461
+ }, {
2462
+ boundary: [number, number, number, number];
2463
+ }>]>>;
2464
+ }, "strip", z.ZodTypeAny, {
2465
+ layerIds?: string[] | undefined;
2466
+ areaQuery?: {
2467
+ coordinates: {
2468
+ latitude: number;
2469
+ longitude: number;
2470
+ };
2471
+ } | {
2472
+ boundary: [number, number, number, number];
2473
+ } | undefined;
2474
+ }, {
2475
+ layerIds?: string[] | undefined;
2476
+ areaQuery?: {
2477
+ coordinates: {
2478
+ latitude: number;
2479
+ longitude: number;
2480
+ };
2481
+ } | {
2482
+ boundary: [number, number, number, number];
2483
+ } | undefined;
2484
+ }>>;
2485
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2486
+ type: "getRenderedFeatures";
2487
+ params?: {
2488
+ layerIds?: string[] | undefined;
2489
+ areaQuery?: {
2490
+ coordinates: {
2491
+ latitude: number;
2492
+ longitude: number;
2493
+ };
2494
+ } | {
2495
+ boundary: [number, number, number, number];
2496
+ } | undefined;
2497
+ } | undefined;
2498
+ }, {
2499
+ type: "getRenderedFeatures";
2500
+ params?: {
2501
+ layerIds?: string[] | undefined;
2502
+ areaQuery?: {
2503
+ coordinates: {
2504
+ latitude: number;
2505
+ longitude: number;
2506
+ };
2507
+ } | {
2508
+ boundary: [number, number, number, number];
2509
+ } | undefined;
2510
+ } | undefined;
2511
+ }>;
2512
+ declare const GetFeatureMessage: z.ZodObject<{
2513
+ type: z.ZodLiteral<"getFeature">;
2514
+ params: z.ZodObject<{
2515
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2516
+ layerId: z.ZodString;
2517
+ }, "strip", z.ZodTypeAny, {
2518
+ id: string | number;
2519
+ layerId: string;
2520
+ }, {
2521
+ id: string | number;
2522
+ layerId: string;
2523
+ }>;
2524
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2525
+ params: {
2526
+ id: string | number;
2527
+ layerId: string;
2528
+ };
2529
+ type: "getFeature";
2530
+ }, {
2531
+ params: {
2532
+ id: string | number;
2533
+ layerId: string;
2534
+ };
2535
+ type: "getFeature";
2536
+ }>;
2537
+ declare const GetGeoJsonFeatureMessage: z.ZodObject<{
2538
+ type: z.ZodLiteral<"getGeoJsonFeature">;
2539
+ params: z.ZodObject<{
2540
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2541
+ layerId: z.ZodString;
2542
+ }, "strip", z.ZodTypeAny, {
2543
+ id: string | number;
2544
+ layerId: string;
2545
+ }, {
2546
+ id: string | number;
2547
+ layerId: string;
2548
+ }>;
2549
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2550
+ params: {
2551
+ id: string | number;
2552
+ layerId: string;
2553
+ };
2554
+ type: "getGeoJsonFeature";
2555
+ }, {
2556
+ params: {
2557
+ id: string | number;
2558
+ layerId: string;
2559
+ };
2560
+ type: "getGeoJsonFeature";
2561
+ }>;
2562
+ declare const GetLayerCategoriesMessage: z.ZodObject<{
2563
+ type: z.ZodLiteral<"getCategoryData">;
2564
+ params: z.ZodObject<{
2565
+ layerId: z.ZodString;
2566
+ attribute: z.ZodString;
2567
+ limit: z.ZodOptional<z.ZodNumber>;
2568
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
2569
+ type: z.ZodLiteral<"Polygon">;
2570
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
2571
+ }, "strip", z.ZodTypeAny, {
2572
+ type: "Polygon";
2573
+ coordinates: [number, number][][];
2574
+ }, {
2575
+ type: "Polygon";
2576
+ coordinates: [number, number][][];
2577
+ }>, z.ZodObject<{
2578
+ type: z.ZodLiteral<"MultiPolygon">;
2579
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
2580
+ }, "strip", z.ZodTypeAny, {
2581
+ type: "MultiPolygon";
2582
+ coordinates: [number, number][][][];
2583
+ }, {
2584
+ type: "MultiPolygon";
2585
+ coordinates: [number, number][][][];
2586
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
2587
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
2588
+ values: z.ZodOptional<z.ZodObject<{
2589
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
2590
+ type: z.ZodLiteral<"Polygon">;
2591
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
2592
+ }, "strip", z.ZodTypeAny, {
2593
+ type: "Polygon";
2594
+ coordinates: [number, number][][];
2595
+ }, {
2596
+ type: "Polygon";
2597
+ coordinates: [number, number][][];
2598
+ }>, z.ZodObject<{
2599
+ type: z.ZodLiteral<"MultiPolygon">;
2600
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
2601
+ }, "strip", z.ZodTypeAny, {
2602
+ type: "MultiPolygon";
2603
+ coordinates: [number, number][][][];
2604
+ }, {
2605
+ type: "MultiPolygon";
2606
+ coordinates: [number, number][][][];
2607
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
2608
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
2609
+ aggregation: z.ZodOptional<z.ZodObject<{
2610
+ method: z.ZodEnum<["avg", "max", "min", "sum", "median"]>;
2611
+ attribute: z.ZodString;
2612
+ }, "strip", z.ZodTypeAny, {
2613
+ attribute: string;
2614
+ method: "avg" | "max" | "min" | "sum" | "median";
2615
+ }, {
2616
+ attribute: string;
2617
+ method: "avg" | "max" | "min" | "sum" | "median";
2618
+ }>>;
2619
+ }, "strip", z.ZodTypeAny, {
2620
+ boundary?: [number, number, number, number] | [number, number][] | {
2621
+ type: "Polygon";
2622
+ coordinates: [number, number][][];
2623
+ } | {
2624
+ type: "MultiPolygon";
2625
+ coordinates: [number, number][][][];
2626
+ } | undefined;
2627
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2628
+ aggregation?: {
2629
+ attribute: string;
2630
+ method: "avg" | "max" | "min" | "sum" | "median";
2631
+ } | undefined;
2632
+ }, {
2633
+ boundary?: [number, number, number, number] | [number, number][] | {
2634
+ type: "Polygon";
2635
+ coordinates: [number, number][][];
2636
+ } | {
2637
+ type: "MultiPolygon";
2638
+ coordinates: [number, number][][][];
2639
+ } | undefined;
2640
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2641
+ aggregation?: {
2642
+ attribute: string;
2643
+ method: "avg" | "max" | "min" | "sum" | "median";
2644
+ } | undefined;
2645
+ }>>;
2646
+ }, "strip", z.ZodTypeAny, {
2647
+ attribute: string;
2648
+ layerId: string;
2649
+ values?: {
2650
+ boundary?: [number, number, number, number] | [number, number][] | {
2651
+ type: "Polygon";
2652
+ coordinates: [number, number][][];
2653
+ } | {
2654
+ type: "MultiPolygon";
2655
+ coordinates: [number, number][][][];
2656
+ } | undefined;
2657
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2658
+ aggregation?: {
2659
+ attribute: string;
2660
+ method: "avg" | "max" | "min" | "sum" | "median";
2661
+ } | undefined;
2662
+ } | undefined;
2663
+ boundary?: [number, number, number, number] | [number, number][] | {
2664
+ type: "Polygon";
2665
+ coordinates: [number, number][][];
2666
+ } | {
2667
+ type: "MultiPolygon";
2668
+ coordinates: [number, number][][][];
2669
+ } | undefined;
2670
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2671
+ limit?: number | undefined;
2672
+ }, {
2673
+ attribute: string;
2674
+ layerId: string;
2675
+ values?: {
2676
+ boundary?: [number, number, number, number] | [number, number][] | {
2677
+ type: "Polygon";
2678
+ coordinates: [number, number][][];
2679
+ } | {
2680
+ type: "MultiPolygon";
2681
+ coordinates: [number, number][][][];
2682
+ } | undefined;
2683
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2684
+ aggregation?: {
2685
+ attribute: string;
2686
+ method: "avg" | "max" | "min" | "sum" | "median";
2687
+ } | undefined;
2688
+ } | undefined;
2689
+ boundary?: [number, number, number, number] | [number, number][] | {
2690
+ type: "Polygon";
2691
+ coordinates: [number, number][][];
2692
+ } | {
2693
+ type: "MultiPolygon";
2694
+ coordinates: [number, number][][][];
2695
+ } | undefined;
2696
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2697
+ limit?: number | undefined;
2698
+ }>;
2699
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2700
+ params: {
2701
+ attribute: string;
2702
+ layerId: string;
2703
+ values?: {
2704
+ boundary?: [number, number, number, number] | [number, number][] | {
2705
+ type: "Polygon";
2706
+ coordinates: [number, number][][];
2707
+ } | {
2708
+ type: "MultiPolygon";
2709
+ coordinates: [number, number][][][];
2710
+ } | undefined;
2711
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2712
+ aggregation?: {
2713
+ attribute: string;
2714
+ method: "avg" | "max" | "min" | "sum" | "median";
2715
+ } | undefined;
2716
+ } | undefined;
2717
+ boundary?: [number, number, number, number] | [number, number][] | {
2718
+ type: "Polygon";
2719
+ coordinates: [number, number][][];
2720
+ } | {
2721
+ type: "MultiPolygon";
2722
+ coordinates: [number, number][][][];
2723
+ } | undefined;
2724
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2725
+ limit?: number | undefined;
571
2726
  };
572
- type: "setLegendItemVisibility";
2727
+ type: "getCategoryData";
573
2728
  }, {
574
2729
  params: {
575
- show?: {
576
- id: string;
577
- layerId: string;
578
- }[] | undefined;
579
- hide?: {
580
- id: string;
581
- layerId: string;
582
- }[] | undefined;
2730
+ attribute: string;
2731
+ layerId: string;
2732
+ values?: {
2733
+ boundary?: [number, number, number, number] | [number, number][] | {
2734
+ type: "Polygon";
2735
+ coordinates: [number, number][][];
2736
+ } | {
2737
+ type: "MultiPolygon";
2738
+ coordinates: [number, number][][][];
2739
+ } | undefined;
2740
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2741
+ aggregation?: {
2742
+ attribute: string;
2743
+ method: "avg" | "max" | "min" | "sum" | "median";
2744
+ } | undefined;
2745
+ } | undefined;
2746
+ boundary?: [number, number, number, number] | [number, number][] | {
2747
+ type: "Polygon";
2748
+ coordinates: [number, number][][];
2749
+ } | {
2750
+ type: "MultiPolygon";
2751
+ coordinates: [number, number][][][];
2752
+ } | undefined;
2753
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2754
+ limit?: number | undefined;
583
2755
  };
584
- type: "setLegendItemVisibility";
585
- }>;
586
- declare const GetFiltersMessage: z.ZodObject<{
587
- type: z.ZodLiteral<"getLayerFilters">;
588
- params: z.ZodString;
589
- }, z.UnknownKeysParam, z.ZodTypeAny, {
590
- params: string;
591
- type: "getLayerFilters";
592
- }, {
593
- params: string;
594
- type: "getLayerFilters";
2756
+ type: "getCategoryData";
595
2757
  }>;
596
- declare const SetFiltersMessage: z.ZodObject<{
597
- type: z.ZodLiteral<"setLayerFilters">;
2758
+ declare const GetLayerHistogramMessage: z.ZodObject<{
2759
+ type: z.ZodLiteral<"getHistogramData">;
598
2760
  params: z.ZodObject<{
599
2761
  layerId: z.ZodString;
600
- filters: z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>;
601
- note: z.ZodOptional<z.ZodString>;
2762
+ attribute: z.ZodString;
2763
+ steps: z.ZodUnion<[z.ZodObject<{
2764
+ type: z.ZodLiteral<"equal-intervals">;
2765
+ count: z.ZodNumber;
2766
+ }, "strip", z.ZodTypeAny, {
2767
+ type: "equal-intervals";
2768
+ count: number;
2769
+ }, {
2770
+ type: "equal-intervals";
2771
+ count: number;
2772
+ }>, z.ZodObject<{
2773
+ type: z.ZodLiteral<"time-interval">;
2774
+ interval: z.ZodEnum<["hour", "day", "week", "month", "year"]>;
2775
+ }, "strip", z.ZodTypeAny, {
2776
+ type: "time-interval";
2777
+ interval: "hour" | "day" | "week" | "month" | "year";
2778
+ }, {
2779
+ type: "time-interval";
2780
+ interval: "hour" | "day" | "week" | "month" | "year";
2781
+ }>, z.ZodArray<z.ZodNumber, "many">]>;
2782
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
2783
+ type: z.ZodLiteral<"Polygon">;
2784
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
2785
+ }, "strip", z.ZodTypeAny, {
2786
+ type: "Polygon";
2787
+ coordinates: [number, number][][];
2788
+ }, {
2789
+ type: "Polygon";
2790
+ coordinates: [number, number][][];
2791
+ }>, z.ZodObject<{
2792
+ type: z.ZodLiteral<"MultiPolygon">;
2793
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
2794
+ }, "strip", z.ZodTypeAny, {
2795
+ type: "MultiPolygon";
2796
+ coordinates: [number, number][][][];
2797
+ }, {
2798
+ type: "MultiPolygon";
2799
+ coordinates: [number, number][][][];
2800
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
2801
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
2802
+ values: z.ZodOptional<z.ZodObject<{
2803
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
2804
+ type: z.ZodLiteral<"Polygon">;
2805
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
2806
+ }, "strip", z.ZodTypeAny, {
2807
+ type: "Polygon";
2808
+ coordinates: [number, number][][];
2809
+ }, {
2810
+ type: "Polygon";
2811
+ coordinates: [number, number][][];
2812
+ }>, z.ZodObject<{
2813
+ type: z.ZodLiteral<"MultiPolygon">;
2814
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
2815
+ }, "strip", z.ZodTypeAny, {
2816
+ type: "MultiPolygon";
2817
+ coordinates: [number, number][][][];
2818
+ }, {
2819
+ type: "MultiPolygon";
2820
+ coordinates: [number, number][][][];
2821
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
2822
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
2823
+ aggregation: z.ZodOptional<z.ZodObject<{
2824
+ method: z.ZodEnum<["avg", "max", "min", "sum", "median"]>;
2825
+ attribute: z.ZodString;
2826
+ }, "strip", z.ZodTypeAny, {
2827
+ attribute: string;
2828
+ method: "avg" | "max" | "min" | "sum" | "median";
2829
+ }, {
2830
+ attribute: string;
2831
+ method: "avg" | "max" | "min" | "sum" | "median";
2832
+ }>>;
2833
+ }, "strip", z.ZodTypeAny, {
2834
+ boundary?: [number, number, number, number] | [number, number][] | {
2835
+ type: "Polygon";
2836
+ coordinates: [number, number][][];
2837
+ } | {
2838
+ type: "MultiPolygon";
2839
+ coordinates: [number, number][][][];
2840
+ } | undefined;
2841
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2842
+ aggregation?: {
2843
+ attribute: string;
2844
+ method: "avg" | "max" | "min" | "sum" | "median";
2845
+ } | undefined;
2846
+ }, {
2847
+ boundary?: [number, number, number, number] | [number, number][] | {
2848
+ type: "Polygon";
2849
+ coordinates: [number, number][][];
2850
+ } | {
2851
+ type: "MultiPolygon";
2852
+ coordinates: [number, number][][][];
2853
+ } | undefined;
2854
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2855
+ aggregation?: {
2856
+ attribute: string;
2857
+ method: "avg" | "max" | "min" | "sum" | "median";
2858
+ } | undefined;
2859
+ }>>;
602
2860
  }, "strip", z.ZodTypeAny, {
2861
+ attribute: string;
603
2862
  layerId: string;
604
- filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
605
- note?: string | undefined;
2863
+ steps: number[] | {
2864
+ type: "equal-intervals";
2865
+ count: number;
2866
+ } | {
2867
+ type: "time-interval";
2868
+ interval: "hour" | "day" | "week" | "month" | "year";
2869
+ };
2870
+ values?: {
2871
+ boundary?: [number, number, number, number] | [number, number][] | {
2872
+ type: "Polygon";
2873
+ coordinates: [number, number][][];
2874
+ } | {
2875
+ type: "MultiPolygon";
2876
+ coordinates: [number, number][][][];
2877
+ } | undefined;
2878
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2879
+ aggregation?: {
2880
+ attribute: string;
2881
+ method: "avg" | "max" | "min" | "sum" | "median";
2882
+ } | undefined;
2883
+ } | undefined;
2884
+ boundary?: [number, number, number, number] | [number, number][] | {
2885
+ type: "Polygon";
2886
+ coordinates: [number, number][][];
2887
+ } | {
2888
+ type: "MultiPolygon";
2889
+ coordinates: [number, number][][][];
2890
+ } | undefined;
2891
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
606
2892
  }, {
2893
+ attribute: string;
607
2894
  layerId: string;
608
- filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
609
- note?: string | undefined;
2895
+ steps: number[] | {
2896
+ type: "equal-intervals";
2897
+ count: number;
2898
+ } | {
2899
+ type: "time-interval";
2900
+ interval: "hour" | "day" | "week" | "month" | "year";
2901
+ };
2902
+ values?: {
2903
+ boundary?: [number, number, number, number] | [number, number][] | {
2904
+ type: "Polygon";
2905
+ coordinates: [number, number][][];
2906
+ } | {
2907
+ type: "MultiPolygon";
2908
+ coordinates: [number, number][][][];
2909
+ } | undefined;
2910
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2911
+ aggregation?: {
2912
+ attribute: string;
2913
+ method: "avg" | "max" | "min" | "sum" | "median";
2914
+ } | undefined;
2915
+ } | undefined;
2916
+ boundary?: [number, number, number, number] | [number, number][] | {
2917
+ type: "Polygon";
2918
+ coordinates: [number, number][][];
2919
+ } | {
2920
+ type: "MultiPolygon";
2921
+ coordinates: [number, number][][][];
2922
+ } | undefined;
2923
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
610
2924
  }>;
611
2925
  }, z.UnknownKeysParam, z.ZodTypeAny, {
612
2926
  params: {
2927
+ attribute: string;
613
2928
  layerId: string;
614
- filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
615
- note?: string | undefined;
2929
+ steps: number[] | {
2930
+ type: "equal-intervals";
2931
+ count: number;
2932
+ } | {
2933
+ type: "time-interval";
2934
+ interval: "hour" | "day" | "week" | "month" | "year";
2935
+ };
2936
+ values?: {
2937
+ boundary?: [number, number, number, number] | [number, number][] | {
2938
+ type: "Polygon";
2939
+ coordinates: [number, number][][];
2940
+ } | {
2941
+ type: "MultiPolygon";
2942
+ coordinates: [number, number][][][];
2943
+ } | undefined;
2944
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2945
+ aggregation?: {
2946
+ attribute: string;
2947
+ method: "avg" | "max" | "min" | "sum" | "median";
2948
+ } | undefined;
2949
+ } | undefined;
2950
+ boundary?: [number, number, number, number] | [number, number][] | {
2951
+ type: "Polygon";
2952
+ coordinates: [number, number][][];
2953
+ } | {
2954
+ type: "MultiPolygon";
2955
+ coordinates: [number, number][][][];
2956
+ } | undefined;
2957
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
616
2958
  };
617
- type: "setLayerFilters";
2959
+ type: "getHistogramData";
618
2960
  }, {
619
2961
  params: {
2962
+ attribute: string;
620
2963
  layerId: string;
621
- filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
622
- note?: string | undefined;
2964
+ steps: number[] | {
2965
+ type: "equal-intervals";
2966
+ count: number;
2967
+ } | {
2968
+ type: "time-interval";
2969
+ interval: "hour" | "day" | "week" | "month" | "year";
2970
+ };
2971
+ values?: {
2972
+ boundary?: [number, number, number, number] | [number, number][] | {
2973
+ type: "Polygon";
2974
+ coordinates: [number, number][][];
2975
+ } | {
2976
+ type: "MultiPolygon";
2977
+ coordinates: [number, number][][][];
2978
+ } | undefined;
2979
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2980
+ aggregation?: {
2981
+ attribute: string;
2982
+ method: "avg" | "max" | "min" | "sum" | "median";
2983
+ } | undefined;
2984
+ } | undefined;
2985
+ boundary?: [number, number, number, number] | [number, number][] | {
2986
+ type: "Polygon";
2987
+ coordinates: [number, number][][];
2988
+ } | {
2989
+ type: "MultiPolygon";
2990
+ coordinates: [number, number][][][];
2991
+ } | undefined;
2992
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
623
2993
  };
624
- type: "setLayerFilters";
2994
+ type: "getHistogramData";
625
2995
  }>;
626
- declare const GetRenderedFeaturesMessage: z.ZodObject<{
627
- type: z.ZodLiteral<"getRenderedFeatures">;
628
- params: z.ZodOptional<z.ZodObject<{
629
- layerIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
630
- areaQuery: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
631
- coordinates: z.ZodObject<{
632
- latitude: z.ZodNumber;
633
- longitude: z.ZodNumber;
634
- }, "strip", z.ZodTypeAny, {
635
- latitude: number;
636
- longitude: number;
637
- }, {
638
- latitude: number;
639
- longitude: number;
640
- }>;
2996
+ declare const GetLayerCalculationMessage: z.ZodObject<{
2997
+ type: z.ZodLiteral<"getAggregates">;
2998
+ params: z.ZodObject<{
2999
+ layerId: z.ZodString;
3000
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
3001
+ type: z.ZodLiteral<"Polygon">;
3002
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
641
3003
  }, "strip", z.ZodTypeAny, {
642
- coordinates: {
643
- latitude: number;
644
- longitude: number;
645
- };
3004
+ type: "Polygon";
3005
+ coordinates: [number, number][][];
646
3006
  }, {
647
- coordinates: {
648
- latitude: number;
649
- longitude: number;
650
- };
3007
+ type: "Polygon";
3008
+ coordinates: [number, number][][];
651
3009
  }>, z.ZodObject<{
652
- boundary: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
3010
+ type: z.ZodLiteral<"MultiPolygon">;
3011
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
653
3012
  }, "strip", z.ZodTypeAny, {
654
- boundary: [number, number, number, number];
3013
+ type: "MultiPolygon";
3014
+ coordinates: [number, number][][][];
655
3015
  }, {
656
- boundary: [number, number, number, number];
657
- }>]>>;
3016
+ type: "MultiPolygon";
3017
+ coordinates: [number, number][][][];
3018
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
3019
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
3020
+ aggregation: z.ZodObject<{
3021
+ methods: z.ZodArray<z.ZodUnion<[z.ZodEnum<["avg", "max", "min", "sum", "median"]>, z.ZodLiteral<"count">]>, "many">;
3022
+ attribute: z.ZodOptional<z.ZodString>;
3023
+ }, "strip", z.ZodTypeAny, {
3024
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
3025
+ attribute?: string | undefined;
3026
+ }, {
3027
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
3028
+ attribute?: string | undefined;
3029
+ }>;
658
3030
  }, "strip", z.ZodTypeAny, {
659
- layerIds?: string[] | undefined;
660
- areaQuery?: {
661
- coordinates: {
662
- latitude: number;
663
- longitude: number;
664
- };
3031
+ aggregation: {
3032
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
3033
+ attribute?: string | undefined;
3034
+ };
3035
+ layerId: string;
3036
+ boundary?: [number, number, number, number] | [number, number][] | {
3037
+ type: "Polygon";
3038
+ coordinates: [number, number][][];
665
3039
  } | {
666
- boundary: [number, number, number, number];
3040
+ type: "MultiPolygon";
3041
+ coordinates: [number, number][][][];
667
3042
  } | undefined;
3043
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
668
3044
  }, {
669
- layerIds?: string[] | undefined;
670
- areaQuery?: {
671
- coordinates: {
672
- latitude: number;
673
- longitude: number;
674
- };
3045
+ aggregation: {
3046
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
3047
+ attribute?: string | undefined;
3048
+ };
3049
+ layerId: string;
3050
+ boundary?: [number, number, number, number] | [number, number][] | {
3051
+ type: "Polygon";
3052
+ coordinates: [number, number][][];
675
3053
  } | {
676
- boundary: [number, number, number, number];
3054
+ type: "MultiPolygon";
3055
+ coordinates: [number, number][][][];
677
3056
  } | undefined;
678
- }>>;
3057
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3058
+ }>;
679
3059
  }, z.UnknownKeysParam, z.ZodTypeAny, {
680
- type: "getRenderedFeatures";
681
- params?: {
682
- layerIds?: string[] | undefined;
683
- areaQuery?: {
684
- coordinates: {
685
- latitude: number;
686
- longitude: number;
687
- };
3060
+ params: {
3061
+ aggregation: {
3062
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
3063
+ attribute?: string | undefined;
3064
+ };
3065
+ layerId: string;
3066
+ boundary?: [number, number, number, number] | [number, number][] | {
3067
+ type: "Polygon";
3068
+ coordinates: [number, number][][];
688
3069
  } | {
689
- boundary: [number, number, number, number];
3070
+ type: "MultiPolygon";
3071
+ coordinates: [number, number][][][];
690
3072
  } | undefined;
691
- } | undefined;
3073
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3074
+ };
3075
+ type: "getAggregates";
692
3076
  }, {
693
- type: "getRenderedFeatures";
694
- params?: {
695
- layerIds?: string[] | undefined;
696
- areaQuery?: {
697
- coordinates: {
698
- latitude: number;
699
- longitude: number;
700
- };
3077
+ params: {
3078
+ aggregation: {
3079
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
3080
+ attribute?: string | undefined;
3081
+ };
3082
+ layerId: string;
3083
+ boundary?: [number, number, number, number] | [number, number][] | {
3084
+ type: "Polygon";
3085
+ coordinates: [number, number][][];
701
3086
  } | {
702
- boundary: [number, number, number, number];
3087
+ type: "MultiPolygon";
3088
+ coordinates: [number, number][][][];
703
3089
  } | undefined;
704
- } | undefined;
3090
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3091
+ };
3092
+ type: "getAggregates";
3093
+ }>;
3094
+ declare const GetLayerSchemaMessage: z.ZodObject<{
3095
+ type: z.ZodLiteral<"getLayerSchema">;
3096
+ params: z.ZodString;
3097
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3098
+ params: string;
3099
+ type: "getLayerSchema";
3100
+ }, {
3101
+ params: string;
3102
+ type: "getLayerSchema";
705
3103
  }>;
706
3104
  type LayersSchema = {
707
3105
  methods: {
@@ -710,6 +3108,11 @@ type LayersSchema = {
710
3108
  setLayerVisibility: Method<zInfer<typeof SetLayerVisibilityMessage>, void>;
711
3109
  setLayerStyle: Method<zInfer<typeof SetLayerStyleMessage>, void>;
712
3110
  setLayerLegendVisibility: Method<zInfer<typeof SetLayerLegendVisibilityMessage>, void>;
3111
+ createLayersFromGeoJson: Method<zInfer<typeof CreateLayersFromGeoJsonMessage>, {
3112
+ layerGroup: LayerGroup;
3113
+ layers: Array<Layer>;
3114
+ } | null>;
3115
+ deleteLayer: Method<zInfer<typeof DeleteLayerMessage>, void>;
713
3116
  getLayerGroup: Method<zInfer<typeof GetGroupMessage>, LayerGroup | null>;
714
3117
  getLayerGroups: Method<zInfer<typeof GetGroupsMessage>, Array<LayerGroup | null>>;
715
3118
  setLayerGroupVisibility: Method<zInfer<typeof SetLayerGroupVisibilityMessage>, void>;
@@ -719,13 +3122,37 @@ type LayersSchema = {
719
3122
  setLegendItemVisibility: Method<zInfer<typeof SetLegendItemVisibilityMessage>, void>;
720
3123
  getLayerFilters: Method<zInfer<typeof GetFiltersMessage>, LayerFilters | null>;
721
3124
  setLayerFilters: Method<zInfer<typeof SetFiltersMessage>, void>;
722
- getRenderedFeatures: Method<zInfer<typeof GetRenderedFeaturesMessage>, Array<Feature>>;
3125
+ getRenderedFeatures: Method<zInfer<typeof GetRenderedFeaturesMessage>, Array<LayerFeature>>;
3126
+ getFeature: Method<zInfer<typeof GetFeatureMessage>, LayerFeature | null>;
3127
+ getGeoJsonFeature: Method<zInfer<typeof GetGeoJsonFeatureMessage>, GeoJsonFeature | null>;
3128
+ getCategoryData: Method<zInfer<typeof GetLayerCategoriesMessage>, Array<GetLayerCategoriesGroup>>;
3129
+ getHistogramData: Method<zInfer<typeof GetLayerHistogramMessage>, Array<GetLayerHistogramBin>>;
3130
+ getAggregates: Method<zInfer<typeof GetLayerCalculationMessage>, Record<AggregationMethod | "count", number | null>>;
3131
+ getLayerSchema: Method<zInfer<typeof GetLayerSchemaMessage>, LayerSchema>;
723
3132
  };
724
3133
  listeners: {
725
3134
  onLayerChange: Listener<zInfer<typeof OnLayerChangeMessage.shape.options>, LayerChangeCallbackParams>;
726
3135
  onLayerGroupChange: Listener<zInfer<typeof OnLayerGroupChangeMessage.shape.options>, LayerGroupChangeCallbackParams>;
727
3136
  onLegendItemChange: Listener<zInfer<typeof OnLegendItemChangeMessage.shape.options>, LegendItemChangeCallbackParams>;
3137
+ onLayerFiltersChange: Listener<zInfer<typeof OnLayerFiltersChangeMessage.shape.options>, LayerFilters>;
3138
+ };
3139
+ };
3140
+
3141
+ declare const GetMapDetailsMessage: z.ZodObject<{
3142
+ type: z.ZodLiteral<"getMapDetails">;
3143
+ params: z.ZodUndefined;
3144
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3145
+ type: "getMapDetails";
3146
+ params?: undefined;
3147
+ }, {
3148
+ type: "getMapDetails";
3149
+ params?: undefined;
3150
+ }>;
3151
+ type MiscSchema = {
3152
+ methods: {
3153
+ getMapDetails: Method<zInfer<typeof GetMapDetailsMessage>, MapDetails>;
728
3154
  };
3155
+ listeners: {};
729
3156
  };
730
3157
 
731
3158
  declare const GetSelectionMessage: z.ZodObject<{
@@ -819,7 +3246,7 @@ type SelectionSchema = {
819
3246
  clearSelection: Method<zInfer<typeof ClearSelectionMessage>, void>;
820
3247
  };
821
3248
  listeners: {
822
- onSelectionChange: Listener<void, {
3249
+ onSelectionChange: ListenerNoOptions<{
823
3250
  selection: Array<EntityNode>;
824
3251
  }>;
825
3252
  };
@@ -829,10 +3256,10 @@ declare const SetToolMessage: z.ZodObject<{
829
3256
  type: z.ZodLiteral<"setTool">;
830
3257
  params: z.ZodNullable<z.ZodEnum<["pin", "line", "route", "polygon", "circle", "marker", "highlighter", "text", "note", "link"]>>;
831
3258
  }, z.UnknownKeysParam, z.ZodTypeAny, {
832
- params: "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | "text" | null;
3259
+ params: "text" | "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | null;
833
3260
  type: "setTool";
834
3261
  }, {
835
- params: "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | "text" | null;
3262
+ params: "text" | "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | null;
836
3263
  type: "setTool";
837
3264
  }>;
838
3265
  declare const GetToolMessage: z.ZodObject<{
@@ -848,9 +3275,10 @@ declare const GetToolMessage: z.ZodObject<{
848
3275
  declare const SetToolSettingsMessage: z.ZodObject<{
849
3276
  type: z.ZodLiteral<"setToolSettings">;
850
3277
  params: z.ZodDiscriminatedUnion<"tool", [z.ZodObject<z.objectUtil.extendShape<{
851
- color: z.ZodOptional<z.ZodString>;
852
3278
  symbol: z.ZodOptional<z.ZodString>;
3279
+ color: z.ZodOptional<z.ZodString>;
853
3280
  frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
3281
+ afterCreation: z.ZodOptional<z.ZodEnum<["enter name", "add another", "select"]>>;
854
3282
  }, {
855
3283
  tool: z.ZodLiteral<"pin">;
856
3284
  }>, "strip", z.ZodTypeAny, {
@@ -858,11 +3286,13 @@ declare const SetToolSettingsMessage: z.ZodObject<{
858
3286
  symbol?: string | undefined;
859
3287
  color?: string | undefined;
860
3288
  frame?: "frame-circle" | "frame-square" | null | undefined;
3289
+ afterCreation?: "enter name" | "add another" | "select" | undefined;
861
3290
  }, {
862
3291
  tool: "pin";
863
3292
  symbol?: string | undefined;
864
3293
  color?: string | undefined;
865
3294
  frame?: "frame-circle" | "frame-square" | null | undefined;
3295
+ afterCreation?: "enter name" | "add another" | "select" | undefined;
866
3296
  }>, z.ZodObject<z.objectUtil.extendShape<{
867
3297
  color: z.ZodOptional<z.ZodString>;
868
3298
  strokeOpacity: z.ZodOptional<z.ZodNumber>;
@@ -887,11 +3317,11 @@ declare const SetToolSettingsMessage: z.ZodObject<{
887
3317
  distanceMarker?: boolean | undefined;
888
3318
  }>, z.ZodObject<z.objectUtil.extendShape<{
889
3319
  color: z.ZodOptional<z.ZodString>;
890
- routingMode: z.ZodOptional<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>;
891
3320
  strokeOpacity: z.ZodOptional<z.ZodNumber>;
892
3321
  strokeWidth: z.ZodOptional<z.ZodNumber>;
893
3322
  strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
894
3323
  distanceMarker: z.ZodOptional<z.ZodBoolean>;
3324
+ routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
895
3325
  endCaps: z.ZodOptional<z.ZodBoolean>;
896
3326
  }, {
897
3327
  tool: z.ZodLiteral<"route">;
@@ -902,7 +3332,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
902
3332
  strokeWidth?: number | undefined;
903
3333
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
904
3334
  distanceMarker?: boolean | undefined;
905
- routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
3335
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
906
3336
  endCaps?: boolean | undefined;
907
3337
  }, {
908
3338
  tool: "route";
@@ -911,14 +3341,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
911
3341
  strokeWidth?: number | undefined;
912
3342
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
913
3343
  distanceMarker?: boolean | undefined;
914
- routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
3344
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
915
3345
  endCaps?: boolean | undefined;
916
3346
  }>, z.ZodObject<z.objectUtil.extendShape<{
917
3347
  color: z.ZodOptional<z.ZodString>;
918
- fillOpacity: z.ZodOptional<z.ZodNumber>;
919
3348
  strokeOpacity: z.ZodOptional<z.ZodNumber>;
920
3349
  strokeWidth: z.ZodOptional<z.ZodNumber>;
921
3350
  strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
3351
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
922
3352
  areaMarker: z.ZodOptional<z.ZodBoolean>;
923
3353
  }, {
924
3354
  tool: z.ZodLiteral<"polygon">;
@@ -940,10 +3370,10 @@ declare const SetToolSettingsMessage: z.ZodObject<{
940
3370
  areaMarker?: boolean | undefined;
941
3371
  }>, z.ZodObject<z.objectUtil.extendShape<{
942
3372
  color: z.ZodOptional<z.ZodString>;
943
- fillOpacity: z.ZodOptional<z.ZodNumber>;
944
3373
  strokeOpacity: z.ZodOptional<z.ZodNumber>;
945
3374
  strokeWidth: z.ZodOptional<z.ZodNumber>;
946
3375
  strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
3376
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
947
3377
  radiusMarker: z.ZodOptional<z.ZodBoolean>;
948
3378
  }, {
949
3379
  tool: z.ZodLiteral<"circle">;
@@ -982,6 +3412,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
982
3412
  }>, z.ZodObject<z.objectUtil.extendShape<{
983
3413
  color: z.ZodOptional<z.ZodString>;
984
3414
  opacity: z.ZodOptional<z.ZodNumber>;
3415
+ renderHoles: z.ZodOptional<z.ZodBoolean>;
985
3416
  size: z.ZodOptional<z.ZodNumber>;
986
3417
  }, {
987
3418
  tool: z.ZodLiteral<"highlighter">;
@@ -990,11 +3421,13 @@ declare const SetToolSettingsMessage: z.ZodObject<{
990
3421
  color?: string | undefined;
991
3422
  opacity?: number | undefined;
992
3423
  size?: number | undefined;
3424
+ renderHoles?: boolean | undefined;
993
3425
  }, {
994
3426
  tool: "highlighter";
995
3427
  color?: string | undefined;
996
3428
  opacity?: number | undefined;
997
3429
  size?: number | undefined;
3430
+ renderHoles?: boolean | undefined;
998
3431
  }>, z.ZodObject<z.objectUtil.extendShape<{
999
3432
  color: z.ZodOptional<z.ZodString>;
1000
3433
  align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
@@ -1003,14 +3436,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
1003
3436
  tool: z.ZodLiteral<"text">;
1004
3437
  }>, "strip", z.ZodTypeAny, {
1005
3438
  tool: "text";
1006
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1007
3439
  color?: string | undefined;
1008
3440
  align?: "center" | "left" | "right" | undefined;
3441
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1009
3442
  }, {
1010
3443
  tool: "text";
1011
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1012
3444
  color?: string | undefined;
1013
3445
  align?: "center" | "left" | "right" | undefined;
3446
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1014
3447
  }>, z.ZodObject<z.objectUtil.extendShape<{
1015
3448
  color: z.ZodOptional<z.ZodString>;
1016
3449
  align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
@@ -1019,14 +3452,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
1019
3452
  tool: z.ZodLiteral<"note">;
1020
3453
  }>, "strip", z.ZodTypeAny, {
1021
3454
  tool: "note";
1022
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1023
3455
  color?: string | undefined;
1024
3456
  align?: "center" | "left" | "right" | undefined;
3457
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1025
3458
  }, {
1026
3459
  tool: "note";
1027
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1028
3460
  color?: string | undefined;
1029
3461
  align?: "center" | "left" | "right" | undefined;
3462
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1030
3463
  }>]>;
1031
3464
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1032
3465
  params: {
@@ -1034,6 +3467,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
1034
3467
  symbol?: string | undefined;
1035
3468
  color?: string | undefined;
1036
3469
  frame?: "frame-circle" | "frame-square" | null | undefined;
3470
+ afterCreation?: "enter name" | "add another" | "select" | undefined;
1037
3471
  } | {
1038
3472
  tool: "line";
1039
3473
  color?: string | undefined;
@@ -1048,7 +3482,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
1048
3482
  strokeWidth?: number | undefined;
1049
3483
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1050
3484
  distanceMarker?: boolean | undefined;
1051
- routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
3485
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1052
3486
  endCaps?: boolean | undefined;
1053
3487
  } | {
1054
3488
  tool: "polygon";
@@ -1076,16 +3510,17 @@ declare const SetToolSettingsMessage: z.ZodObject<{
1076
3510
  color?: string | undefined;
1077
3511
  opacity?: number | undefined;
1078
3512
  size?: number | undefined;
3513
+ renderHoles?: boolean | undefined;
1079
3514
  } | {
1080
3515
  tool: "text";
1081
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1082
3516
  color?: string | undefined;
1083
3517
  align?: "center" | "left" | "right" | undefined;
3518
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1084
3519
  } | {
1085
3520
  tool: "note";
1086
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1087
3521
  color?: string | undefined;
1088
3522
  align?: "center" | "left" | "right" | undefined;
3523
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1089
3524
  };
1090
3525
  type: "setToolSettings";
1091
3526
  }, {
@@ -1094,6 +3529,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
1094
3529
  symbol?: string | undefined;
1095
3530
  color?: string | undefined;
1096
3531
  frame?: "frame-circle" | "frame-square" | null | undefined;
3532
+ afterCreation?: "enter name" | "add another" | "select" | undefined;
1097
3533
  } | {
1098
3534
  tool: "line";
1099
3535
  color?: string | undefined;
@@ -1108,7 +3544,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
1108
3544
  strokeWidth?: number | undefined;
1109
3545
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1110
3546
  distanceMarker?: boolean | undefined;
1111
- routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
3547
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1112
3548
  endCaps?: boolean | undefined;
1113
3549
  } | {
1114
3550
  tool: "polygon";
@@ -1136,16 +3572,17 @@ declare const SetToolSettingsMessage: z.ZodObject<{
1136
3572
  color?: string | undefined;
1137
3573
  opacity?: number | undefined;
1138
3574
  size?: number | undefined;
3575
+ renderHoles?: boolean | undefined;
1139
3576
  } | {
1140
3577
  tool: "text";
1141
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1142
3578
  color?: string | undefined;
1143
3579
  align?: "center" | "left" | "right" | undefined;
3580
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1144
3581
  } | {
1145
3582
  tool: "note";
1146
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1147
3583
  color?: string | undefined;
1148
3584
  align?: "center" | "left" | "right" | undefined;
3585
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1149
3586
  };
1150
3587
  type: "setToolSettings";
1151
3588
  }>;
@@ -1153,10 +3590,10 @@ declare const GetToolSettingsMessage: z.ZodObject<{
1153
3590
  type: z.ZodLiteral<"getToolSettings">;
1154
3591
  params: z.ZodEnum<["pin", "line", "route", "polygon", "circle", "marker", "highlighter", "text", "note"]>;
1155
3592
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1156
- params: "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | "text";
3593
+ params: "text" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter";
1157
3594
  type: "getToolSettings";
1158
3595
  }, {
1159
- params: "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | "text";
3596
+ params: "text" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter";
1160
3597
  type: "getToolSettings";
1161
3598
  }>;
1162
3599
  type ToolsSchema = {
@@ -1167,21 +3604,21 @@ type ToolsSchema = {
1167
3604
  getToolSettings: Method<zInfer<typeof GetToolSettingsMessage>, ToolSettingsMap[keyof ToolSettingsMap]>;
1168
3605
  };
1169
3606
  listeners: {
1170
- onToolChange: Listener<void, ToolType | null>;
1171
- onToolSettingsChange: Listener<void, ToolSettingsChangeEvent>;
3607
+ onToolChange: ListenerNoOptions<ToolType | null>;
3608
+ onToolSettingsChange: ListenerNoOptions<ToolSettingsChangeEvent>;
1172
3609
  };
1173
3610
  };
1174
3611
 
1175
- declare const UiControlsMessage: zod.ZodObject<{
1176
- type: zod.ZodLiteral<"updateUiControls">;
1177
- params: zod.ZodObject<{
1178
- showLegend: zod.ZodOptional<zod.ZodBoolean>;
1179
- cooperativeGestures: zod.ZodOptional<zod.ZodBoolean>;
1180
- fullScreenButton: zod.ZodOptional<zod.ZodBoolean>;
1181
- geolocation: zod.ZodOptional<zod.ZodBoolean>;
1182
- zoomControls: zod.ZodOptional<zod.ZodBoolean>;
1183
- scaleBar: zod.ZodOptional<zod.ZodBoolean>;
1184
- }, "strip", zod.ZodTypeAny, {
3612
+ declare const UiControlsMessage: z.ZodObject<{
3613
+ type: z.ZodLiteral<"updateUiControls">;
3614
+ params: z.ZodObject<{
3615
+ showLegend: z.ZodOptional<z.ZodBoolean>;
3616
+ cooperativeGestures: z.ZodOptional<z.ZodBoolean>;
3617
+ fullScreenButton: z.ZodOptional<z.ZodBoolean>;
3618
+ geolocation: z.ZodOptional<z.ZodBoolean>;
3619
+ zoomControls: z.ZodOptional<z.ZodBoolean>;
3620
+ scaleBar: z.ZodOptional<z.ZodBoolean>;
3621
+ }, "strip", z.ZodTypeAny, {
1185
3622
  showLegend?: boolean | undefined;
1186
3623
  cooperativeGestures?: boolean | undefined;
1187
3624
  fullScreenButton?: boolean | undefined;
@@ -1196,7 +3633,7 @@ declare const UiControlsMessage: zod.ZodObject<{
1196
3633
  zoomControls?: boolean | undefined;
1197
3634
  scaleBar?: boolean | undefined;
1198
3635
  }>;
1199
- }, zod.UnknownKeysParam, zod.ZodTypeAny, {
3636
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1200
3637
  params: {
1201
3638
  showLegend?: boolean | undefined;
1202
3639
  cooperativeGestures?: boolean | undefined;
@@ -1217,15 +3654,15 @@ declare const UiControlsMessage: zod.ZodObject<{
1217
3654
  };
1218
3655
  type: "updateUiControls";
1219
3656
  }>;
1220
- declare const OnMapInteractionsMessage: zod.ZodObject<{
1221
- type: zod.ZodLiteral<"setOnMapInteractionsUi">;
1222
- params: zod.ZodObject<{
1223
- featureSelectPanel: zod.ZodOptional<zod.ZodBoolean>;
1224
- featureHoverPanel: zod.ZodOptional<zod.ZodBoolean>;
1225
- elementSelectPanel: zod.ZodOptional<zod.ZodBoolean>;
1226
- linkClickOpen: zod.ZodOptional<zod.ZodBoolean>;
1227
- imageLightboxOpen: zod.ZodOptional<zod.ZodBoolean>;
1228
- }, "strip", zod.ZodTypeAny, {
3657
+ declare const OnMapInteractionsMessage: z.ZodObject<{
3658
+ type: z.ZodLiteral<"setOnMapInteractionsUi">;
3659
+ params: z.ZodObject<{
3660
+ featureSelectPanel: z.ZodOptional<z.ZodBoolean>;
3661
+ featureHoverPanel: z.ZodOptional<z.ZodBoolean>;
3662
+ elementSelectPanel: z.ZodOptional<z.ZodBoolean>;
3663
+ linkClickOpen: z.ZodOptional<z.ZodBoolean>;
3664
+ imageLightboxOpen: z.ZodOptional<z.ZodBoolean>;
3665
+ }, "strip", z.ZodTypeAny, {
1229
3666
  featureSelectPanel?: boolean | undefined;
1230
3667
  featureHoverPanel?: boolean | undefined;
1231
3668
  elementSelectPanel?: boolean | undefined;
@@ -1238,7 +3675,7 @@ declare const OnMapInteractionsMessage: zod.ZodObject<{
1238
3675
  linkClickOpen?: boolean | undefined;
1239
3676
  imageLightboxOpen?: boolean | undefined;
1240
3677
  }>;
1241
- }, zod.UnknownKeysParam, zod.ZodTypeAny, {
3678
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1242
3679
  params: {
1243
3680
  featureSelectPanel?: boolean | undefined;
1244
3681
  featureHoverPanel?: boolean | undefined;
@@ -1257,10 +3694,68 @@ declare const OnMapInteractionsMessage: zod.ZodObject<{
1257
3694
  };
1258
3695
  type: "setOnMapInteractionsUi";
1259
3696
  }>;
3697
+ declare const ShowLayerDataTableMessage: z.ZodObject<{
3698
+ type: z.ZodLiteral<"showLayerDataTable">;
3699
+ params: z.ZodOptional<z.ZodObject<{
3700
+ layerId: z.ZodString;
3701
+ sorting: z.ZodOptional<z.ZodObject<{
3702
+ attribute: z.ZodString;
3703
+ direction: z.ZodEnum<["asc", "desc"]>;
3704
+ }, "strip", z.ZodTypeAny, {
3705
+ attribute: string;
3706
+ direction: "asc" | "desc";
3707
+ }, {
3708
+ attribute: string;
3709
+ direction: "asc" | "desc";
3710
+ }>>;
3711
+ }, "strip", z.ZodTypeAny, {
3712
+ layerId: string;
3713
+ sorting?: {
3714
+ attribute: string;
3715
+ direction: "asc" | "desc";
3716
+ } | undefined;
3717
+ }, {
3718
+ layerId: string;
3719
+ sorting?: {
3720
+ attribute: string;
3721
+ direction: "asc" | "desc";
3722
+ } | undefined;
3723
+ }>>;
3724
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3725
+ type: "showLayerDataTable";
3726
+ params?: {
3727
+ layerId: string;
3728
+ sorting?: {
3729
+ attribute: string;
3730
+ direction: "asc" | "desc";
3731
+ } | undefined;
3732
+ } | undefined;
3733
+ }, {
3734
+ type: "showLayerDataTable";
3735
+ params?: {
3736
+ layerId: string;
3737
+ sorting?: {
3738
+ attribute: string;
3739
+ direction: "asc" | "desc";
3740
+ } | undefined;
3741
+ } | undefined;
3742
+ }>;
3743
+ declare const HideLayerDataTableMessage: z.ZodObject<{
3744
+ type: z.ZodLiteral<"hideLayerDataTable">;
3745
+ params: z.ZodUndefined;
3746
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3747
+ type: "hideLayerDataTable";
3748
+ params?: undefined;
3749
+ }, {
3750
+ type: "hideLayerDataTable";
3751
+ params?: undefined;
3752
+ }>;
1260
3753
  type UiSchema = {
1261
3754
  methods: {
1262
3755
  updateUiControls: Method<zInfer<typeof UiControlsMessage>, void>;
1263
3756
  setOnMapInteractionsUi: Method<zInfer<typeof OnMapInteractionsMessage>, void>;
3757
+ showLayerDataTable: Method<zInfer<typeof ShowLayerDataTableMessage>, void>;
3758
+ hideLayerDataTable: Method<zInfer<typeof HideLayerDataTableMessage>, void>;
1264
3759
  };
1265
3760
  listeners: {};
1266
3761
  };
@@ -1390,13 +3885,13 @@ type ViewportSchema = {
1390
3885
  fitViewportToBounds: Method<zInfer<typeof ViewportFitBoundsMessage>, void>;
1391
3886
  };
1392
3887
  listeners: {
1393
- onViewportMove: Listener<void, ViewportState>;
1394
- onViewportMoveEnd: Listener<void, ViewportState>;
1395
- onMapIdle: Listener<void, void>;
3888
+ onViewportMove: ListenerNoOptions<ViewportState>;
3889
+ onViewportMoveEnd: ListenerNoOptions<ViewportState>;
3890
+ onMapIdle: ListenerNoOptions<void>;
1396
3891
  };
1397
3892
  };
1398
3893
 
1399
- type AllModules = UiSchema | ViewportSchema | LayersSchema | ElementsSchema | SelectionSchema | InteractionsSchema | ToolsSchema;
3894
+ type AllModules = UiSchema | ViewportSchema | LayersSchema | ElementsSchema | SelectionSchema | InteractionsSchema | ToolsSchema | InteractionsSchema | MiscSchema;
1400
3895
 
1401
3896
  type FeltHandlers = {
1402
3897
  methods: FeltMethodHandlers;
@@ -1423,10 +3918,16 @@ type ExtractMethodParams<T extends Record<string, AnyFunction | {
1423
3918
  type ExtractListenerParams<T extends Record<string, {
1424
3919
  options: any;
1425
3920
  eventParams: any;
3921
+ } | {
3922
+ eventParams: any;
1426
3923
  }>> = {
1427
- [K in keyof T]: {
3924
+ [K in keyof T]: T[K] extends {
3925
+ options: any;
3926
+ } ? {
1428
3927
  options: T[K]["options"];
1429
3928
  eventParams: T[K]["eventParams"];
3929
+ } : {
3930
+ eventParams: T[K]["eventParams"];
1430
3931
  };
1431
3932
  };
1432
3933
  type AnyFunction = (...args: any[]) => any;
@@ -1439,13 +3940,17 @@ type MethodHandlers<T> = {
1439
3940
  };
1440
3941
  type FeltMethodHandlers = MethodHandlers<ExtractMethodParams<MethodSpec>>;
1441
3942
  type ListenerHandlers<T> = {
1442
- [K in keyof T]: (args: {
3943
+ [K in keyof T]: (args: T[K] extends {
3944
+ options: any;
3945
+ } ? {
3946
+ handler: (event: T[K] extends {
3947
+ eventParams: any;
3948
+ } ? T[K]["eventParams"] : never) => void;
3949
+ options: T[K]["options"];
3950
+ } : {
1443
3951
  handler: (event: T[K] extends {
1444
3952
  eventParams: any;
1445
3953
  } ? T[K]["eventParams"] : never) => void;
1446
- options: T[K] extends {
1447
- options: any;
1448
- } ? T[K]["options"] : never;
1449
3954
  }) => VoidFunction;
1450
3955
  };
1451
3956
  type FeltListenerHandlers = ListenerHandlers<ExtractListenerParams<ListenerSpec>>;
@@ -1473,7 +3978,7 @@ declare function createMessageHandler(feltWindow: Window, handlers: FeltHandlers
1473
3978
  *
1474
3979
  * @param message
1475
3980
  */
1476
- onInvalidMessage?: (message: unknown) => void;
3981
+ onInvalidMessage?: (message: unknown, error: ZodError) => void;
1477
3982
  }): VoidFunction;
1478
3983
 
1479
3984
  export { createMessageHandler };