@fieldia/core 0.16.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -429,8 +429,55 @@ export interface MapLayer {
429
429
  route?: MapRoute;
430
430
  /** The reader's own place, from the browser once they allow it. */
431
431
  myLocation?: boolean;
432
+ /** Areas shaded by colour; a click on one writes its key into `choose`. */
433
+ regions?: MapRegions & {
434
+ choose?: string;
435
+ };
436
+ /** The area within a few minutes' travel of a place, as the map's provider works it out. */
437
+ reachable?: MapReach;
432
438
  invisible?: Modifier;
433
439
  }
440
+ /** A tool a map offers under its zoom: the satellite's images, live traffic, full screen, measuring a way; on a list's map, its records nearest first. */
441
+ export type MapTool = 'satellite' | 'traffic' | 'fullscreen' | 'measure' | 'nearest';
442
+ /**
443
+ * Areas shaded by colour: districts, zones, municipalities. Their borders come
444
+ * from the app, never from Fieldia: its maps' `regions`, a set of GeoJSON
445
+ * borders by name. Each border is known by one of its properties (`key`), the
446
+ * value a record keeps, and named by another.
447
+ */
448
+ export interface MapRegions {
449
+ /** The app's set of borders, by the name its maps' settings give it. */
450
+ from: string;
451
+ /** The property of each border that is its key: what a record's field holds. */
452
+ key: string;
453
+ /** The property of each border that names it: its key unless said. */
454
+ name?: string;
455
+ /** What shades an area: on a list's map, `count` (its records: the default there), or a number among each border's properties. */
456
+ shade?: string;
457
+ /** A legend of the shades over the map: on unless false. */
458
+ legend?: boolean;
459
+ }
460
+ /** The area within `minutes` of a layer's place, by car unless said. */
461
+ export interface MapReach {
462
+ /** The layer it is worked out from: a place, or the reader's own. */
463
+ from: string;
464
+ minutes: number;
465
+ mode?: 'car' | 'bike' | 'foot';
466
+ }
467
+ /**
468
+ * A fence on a form's map: when a layer's place goes into an area, or comes
469
+ * out of it, the page's steps run, as a button's do ("the courier is near:
470
+ * tell the customer"). The area is a field holding one (`area`, as an area
471
+ * field keeps it) or a reachable area of the map (`within`, a layer's id).
472
+ */
473
+ export interface MapFence {
474
+ /** The layer whose place is watched: one that moves. */
475
+ layer: string;
476
+ area?: string;
477
+ within?: string;
478
+ when: 'enter' | 'leave';
479
+ steps: ActionStep[];
480
+ }
434
481
  /** A map on a form: the record's places, its lines' places, the routes between them, and the reader's own place, as layers. */
435
482
  export interface MapNode {
436
483
  type: 'map';
@@ -440,6 +487,10 @@ export interface MapNode {
440
487
  layers: MapLayer[];
441
488
  /** Height in pixels: 360 unless said. */
442
489
  height?: number;
490
+ /** The tools under its zoom: satellite, traffic, fullscreen, measure. */
491
+ tools?: Exclude<MapTool, 'nearest'>[];
492
+ /** Steps run when a layer's place goes into an area or comes out of it. */
493
+ fences?: MapFence[];
443
494
  /** Grid columns it spans inside a section. */
444
495
  colspan?: number;
445
496
  invisible?: Modifier;
@@ -845,6 +896,16 @@ export interface ListMap {
845
896
  view?: 'list' | 'map' | 'both';
846
897
  /** How many records the map shows at most: 500 unless said. */
847
898
  limit?: number;
899
+ /** The tools under its zoom: satellite, traffic, fullscreen, measure, nearest (the records nearest the reader first). */
900
+ tools?: MapTool[];
901
+ /** Areas shaded by their records (or a number of their own); `field` is the records' field holding an area's key. A click on one searches for its records. */
902
+ regions?: MapRegions & {
903
+ field: string;
904
+ };
905
+ /** The records as a heat map while the map is far out, each weighing one unless `weight` names a number field; their pins come back close in, at the streets. */
906
+ heat?: boolean | {
907
+ weight?: string;
908
+ };
848
909
  }
849
910
  /** Anything that can sit inside a section, tab, step or sheet. */
850
911
  export type LayoutNode = FieldNode | ButtonNode | TextNode | SlotNode | SectionNode | TabsNode | DividerNode | SpacerNode | ImageNode | FormNode | MapNode;
@@ -1340,6 +1401,167 @@ export declare const MapRouteSchema: z.ZodObject<{
1340
1401
  line: z.ZodOptional<z.ZodString>;
1341
1402
  }, z.z.core.$strict>>;
1342
1403
  }, z.z.core.$strict>;
1404
+ /** Areas shaded by colour, their borders from the app's set by name, each known by a property of its own. */
1405
+ export declare const MapRegionsSchema: z.ZodObject<{
1406
+ from: z.ZodString;
1407
+ key: z.ZodString;
1408
+ name: z.ZodOptional<z.ZodString>;
1409
+ shade: z.ZodOptional<z.ZodString>;
1410
+ legend: z.ZodOptional<z.ZodBoolean>;
1411
+ }, z.z.core.$strict>;
1412
+ /** The area within some minutes' travel of a layer's place. */
1413
+ export declare const MapReachSchema: z.ZodObject<{
1414
+ from: z.ZodString;
1415
+ minutes: z.ZodNumber;
1416
+ mode: z.ZodOptional<z.ZodEnum<{
1417
+ car: "car";
1418
+ bike: "bike";
1419
+ foot: "foot";
1420
+ }>>;
1421
+ }, z.z.core.$strict>;
1422
+ /** Steps run when a layer's place goes into an area, or comes out of it. */
1423
+ export declare const MapFenceSchema: z.ZodObject<{
1424
+ layer: z.ZodString;
1425
+ area: z.ZodOptional<z.ZodString>;
1426
+ within: z.ZodOptional<z.ZodString>;
1427
+ when: z.ZodEnum<{
1428
+ enter: "enter";
1429
+ leave: "leave";
1430
+ }>;
1431
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1432
+ do: z.ZodLiteral<"open">;
1433
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1434
+ page: z.ZodString;
1435
+ version: z.ZodOptional<z.ZodInt>;
1436
+ as: z.ZodOptional<z.ZodEnum<{
1437
+ page: "page";
1438
+ dialog: "dialog";
1439
+ panel: "panel";
1440
+ }>>;
1441
+ side: z.ZodOptional<z.ZodEnum<{
1442
+ end: "end";
1443
+ start: "start";
1444
+ right: "right";
1445
+ left: "left";
1446
+ top: "top";
1447
+ bottom: "bottom";
1448
+ }>>;
1449
+ title: z.ZodOptional<z.ZodString>;
1450
+ record: z.ZodOptional<z.ZodString>;
1451
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1452
+ filter: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1453
+ field: z.ZodString;
1454
+ op: z.ZodEnum<{
1455
+ set: "set";
1456
+ "=": "=";
1457
+ "!=": "!=";
1458
+ "<": "<";
1459
+ ">": ">";
1460
+ "<=": "<=";
1461
+ ">=": ">=";
1462
+ in: "in";
1463
+ "not in": "not in";
1464
+ like: "like";
1465
+ ilike: "ilike";
1466
+ startswith: "startswith";
1467
+ endswith: "endswith";
1468
+ notset: "notset";
1469
+ between: "between";
1470
+ contains: "contains";
1471
+ "not contains": "not contains";
1472
+ "=?": "=?";
1473
+ within: "within";
1474
+ }>;
1475
+ value: z.ZodOptional<z.ZodJSONSchema>;
1476
+ valueFrom: z.ZodOptional<z.ZodString>;
1477
+ }, z.z.core.$strict>, z.ZodObject<{
1478
+ any: z.ZodArray<typeof FilterItemSchema>;
1479
+ }, z.z.core.$strict>, z.ZodObject<{
1480
+ all: z.ZodArray<typeof FilterItemSchema>;
1481
+ }, z.z.core.$strict>]>>>;
1482
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1483
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions").ActionStepSchema>>;
1484
+ }, z.z.core.$strict>, z.ZodObject<{
1485
+ do: z.ZodLiteral<"set">;
1486
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1487
+ field: z.ZodString;
1488
+ value: z.ZodString;
1489
+ }, z.z.core.$strict>, z.ZodObject<{
1490
+ do: z.ZodLiteral<"clear">;
1491
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1492
+ field: z.ZodString;
1493
+ }, z.z.core.$strict>, z.ZodObject<{
1494
+ do: z.ZodLiteral<"addLine">;
1495
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1496
+ field: z.ZodString;
1497
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1498
+ }, z.z.core.$strict>, z.ZodObject<{
1499
+ do: z.ZodLiteral<"check">;
1500
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1501
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1502
+ }, z.z.core.$strict>, z.ZodObject<{
1503
+ do: z.ZodLiteral<"save">;
1504
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1505
+ }, z.z.core.$strict>, z.ZodObject<{
1506
+ do: z.ZodLiteral<"reset">;
1507
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1508
+ }, z.z.core.$strict>, z.ZodObject<{
1509
+ do: z.ZodLiteral<"goTo">;
1510
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1511
+ target: z.ZodString;
1512
+ }, z.z.core.$strict>, z.ZodObject<{
1513
+ do: z.ZodLiteral<"say">;
1514
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1515
+ message: z.ZodString;
1516
+ tone: z.ZodOptional<z.ZodEnum<{
1517
+ success: "success";
1518
+ info: "info";
1519
+ warning: "warning";
1520
+ danger: "danger";
1521
+ muted: "muted";
1522
+ }>>;
1523
+ }, z.z.core.$strict>, z.ZodObject<{
1524
+ do: z.ZodLiteral<"ask">;
1525
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1526
+ message: z.ZodString;
1527
+ }, z.z.core.$strict>, z.ZodObject<{
1528
+ do: z.ZodLiteral<"call">;
1529
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1530
+ action: z.ZodString;
1531
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1532
+ }, z.z.core.$strict>, z.ZodObject<{
1533
+ do: z.ZodLiteral<"close">;
1534
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1535
+ }, z.z.core.$strict>, z.ZodObject<{
1536
+ do: z.ZodLiteral<"reload">;
1537
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1538
+ }, z.z.core.$strict>, z.ZodObject<{
1539
+ do: z.ZodLiteral<"openUrl">;
1540
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1541
+ url: z.ZodString;
1542
+ newTab: z.ZodOptional<z.ZodBoolean>;
1543
+ }, z.z.core.$strict>, z.ZodObject<{
1544
+ do: z.ZodLiteral<"archive">;
1545
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1546
+ }, z.z.core.$strict>, z.ZodObject<{
1547
+ do: z.ZodLiteral<"unarchive">;
1548
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1549
+ }, z.z.core.$strict>, z.ZodObject<{
1550
+ do: z.ZodLiteral<"duplicate">;
1551
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1552
+ }, z.z.core.$strict>, z.ZodObject<{
1553
+ do: z.ZodLiteral<"delete">;
1554
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1555
+ }, z.z.core.$strict>, z.ZodObject<{
1556
+ do: z.ZodLiteral<"post">;
1557
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1558
+ message: z.ZodString;
1559
+ kind: z.ZodOptional<z.ZodEnum<{
1560
+ message: "message";
1561
+ note: "note";
1562
+ }>>;
1563
+ }, z.z.core.$strict>], "do">>;
1564
+ }, z.z.core.$strict>;
1343
1565
  /** One layer of a form's map: the record's own place, a place for each of its lines, a route, or the reader's own place. */
1344
1566
  export declare const MapLayerSchema: z.ZodObject<{
1345
1567
  id: z.ZodString;
@@ -1400,6 +1622,23 @@ export declare const MapLayerSchema: z.ZodObject<{
1400
1622
  }, z.z.core.$strict>>;
1401
1623
  }, z.z.core.$strict>>;
1402
1624
  myLocation: z.ZodOptional<z.ZodBoolean>;
1625
+ regions: z.ZodOptional<z.ZodObject<{
1626
+ from: z.ZodString;
1627
+ key: z.ZodString;
1628
+ name: z.ZodOptional<z.ZodString>;
1629
+ shade: z.ZodOptional<z.ZodString>;
1630
+ legend: z.ZodOptional<z.ZodBoolean>;
1631
+ choose: z.ZodOptional<z.ZodString>;
1632
+ }, z.z.core.$strict>>;
1633
+ reachable: z.ZodOptional<z.ZodObject<{
1634
+ from: z.ZodString;
1635
+ minutes: z.ZodNumber;
1636
+ mode: z.ZodOptional<z.ZodEnum<{
1637
+ car: "car";
1638
+ bike: "bike";
1639
+ foot: "foot";
1640
+ }>>;
1641
+ }, z.z.core.$strict>>;
1403
1642
  invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1404
1643
  }, z.z.core.$strict>;
1405
1644
  export declare const MapNodeSchema: z.ZodObject<{
@@ -1465,9 +1704,174 @@ export declare const MapNodeSchema: z.ZodObject<{
1465
1704
  }, z.z.core.$strict>>;
1466
1705
  }, z.z.core.$strict>>;
1467
1706
  myLocation: z.ZodOptional<z.ZodBoolean>;
1707
+ regions: z.ZodOptional<z.ZodObject<{
1708
+ from: z.ZodString;
1709
+ key: z.ZodString;
1710
+ name: z.ZodOptional<z.ZodString>;
1711
+ shade: z.ZodOptional<z.ZodString>;
1712
+ legend: z.ZodOptional<z.ZodBoolean>;
1713
+ choose: z.ZodOptional<z.ZodString>;
1714
+ }, z.z.core.$strict>>;
1715
+ reachable: z.ZodOptional<z.ZodObject<{
1716
+ from: z.ZodString;
1717
+ minutes: z.ZodNumber;
1718
+ mode: z.ZodOptional<z.ZodEnum<{
1719
+ car: "car";
1720
+ bike: "bike";
1721
+ foot: "foot";
1722
+ }>>;
1723
+ }, z.z.core.$strict>>;
1468
1724
  invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1469
1725
  }, z.z.core.$strict>>;
1470
1726
  height: z.ZodOptional<z.ZodInt>;
1727
+ tools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1728
+ satellite: "satellite";
1729
+ traffic: "traffic";
1730
+ fullscreen: "fullscreen";
1731
+ measure: "measure";
1732
+ }>>>;
1733
+ fences: z.ZodOptional<z.ZodArray<z.ZodObject<{
1734
+ layer: z.ZodString;
1735
+ area: z.ZodOptional<z.ZodString>;
1736
+ within: z.ZodOptional<z.ZodString>;
1737
+ when: z.ZodEnum<{
1738
+ enter: "enter";
1739
+ leave: "leave";
1740
+ }>;
1741
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1742
+ do: z.ZodLiteral<"open">;
1743
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1744
+ page: z.ZodString;
1745
+ version: z.ZodOptional<z.ZodInt>;
1746
+ as: z.ZodOptional<z.ZodEnum<{
1747
+ page: "page";
1748
+ dialog: "dialog";
1749
+ panel: "panel";
1750
+ }>>;
1751
+ side: z.ZodOptional<z.ZodEnum<{
1752
+ end: "end";
1753
+ start: "start";
1754
+ right: "right";
1755
+ left: "left";
1756
+ top: "top";
1757
+ bottom: "bottom";
1758
+ }>>;
1759
+ title: z.ZodOptional<z.ZodString>;
1760
+ record: z.ZodOptional<z.ZodString>;
1761
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1762
+ filter: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1763
+ field: z.ZodString;
1764
+ op: z.ZodEnum<{
1765
+ set: "set";
1766
+ "=": "=";
1767
+ "!=": "!=";
1768
+ "<": "<";
1769
+ ">": ">";
1770
+ "<=": "<=";
1771
+ ">=": ">=";
1772
+ in: "in";
1773
+ "not in": "not in";
1774
+ like: "like";
1775
+ ilike: "ilike";
1776
+ startswith: "startswith";
1777
+ endswith: "endswith";
1778
+ notset: "notset";
1779
+ between: "between";
1780
+ contains: "contains";
1781
+ "not contains": "not contains";
1782
+ "=?": "=?";
1783
+ within: "within";
1784
+ }>;
1785
+ value: z.ZodOptional<z.ZodJSONSchema>;
1786
+ valueFrom: z.ZodOptional<z.ZodString>;
1787
+ }, z.z.core.$strict>, z.ZodObject<{
1788
+ any: z.ZodArray<typeof FilterItemSchema>;
1789
+ }, z.z.core.$strict>, z.ZodObject<{
1790
+ all: z.ZodArray<typeof FilterItemSchema>;
1791
+ }, z.z.core.$strict>]>>>;
1792
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1793
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions").ActionStepSchema>>;
1794
+ }, z.z.core.$strict>, z.ZodObject<{
1795
+ do: z.ZodLiteral<"set">;
1796
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1797
+ field: z.ZodString;
1798
+ value: z.ZodString;
1799
+ }, z.z.core.$strict>, z.ZodObject<{
1800
+ do: z.ZodLiteral<"clear">;
1801
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1802
+ field: z.ZodString;
1803
+ }, z.z.core.$strict>, z.ZodObject<{
1804
+ do: z.ZodLiteral<"addLine">;
1805
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1806
+ field: z.ZodString;
1807
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1808
+ }, z.z.core.$strict>, z.ZodObject<{
1809
+ do: z.ZodLiteral<"check">;
1810
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1811
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1812
+ }, z.z.core.$strict>, z.ZodObject<{
1813
+ do: z.ZodLiteral<"save">;
1814
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1815
+ }, z.z.core.$strict>, z.ZodObject<{
1816
+ do: z.ZodLiteral<"reset">;
1817
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1818
+ }, z.z.core.$strict>, z.ZodObject<{
1819
+ do: z.ZodLiteral<"goTo">;
1820
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1821
+ target: z.ZodString;
1822
+ }, z.z.core.$strict>, z.ZodObject<{
1823
+ do: z.ZodLiteral<"say">;
1824
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1825
+ message: z.ZodString;
1826
+ tone: z.ZodOptional<z.ZodEnum<{
1827
+ success: "success";
1828
+ info: "info";
1829
+ warning: "warning";
1830
+ danger: "danger";
1831
+ muted: "muted";
1832
+ }>>;
1833
+ }, z.z.core.$strict>, z.ZodObject<{
1834
+ do: z.ZodLiteral<"ask">;
1835
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1836
+ message: z.ZodString;
1837
+ }, z.z.core.$strict>, z.ZodObject<{
1838
+ do: z.ZodLiteral<"call">;
1839
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1840
+ action: z.ZodString;
1841
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1842
+ }, z.z.core.$strict>, z.ZodObject<{
1843
+ do: z.ZodLiteral<"close">;
1844
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1845
+ }, z.z.core.$strict>, z.ZodObject<{
1846
+ do: z.ZodLiteral<"reload">;
1847
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1848
+ }, z.z.core.$strict>, z.ZodObject<{
1849
+ do: z.ZodLiteral<"openUrl">;
1850
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1851
+ url: z.ZodString;
1852
+ newTab: z.ZodOptional<z.ZodBoolean>;
1853
+ }, z.z.core.$strict>, z.ZodObject<{
1854
+ do: z.ZodLiteral<"archive">;
1855
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1856
+ }, z.z.core.$strict>, z.ZodObject<{
1857
+ do: z.ZodLiteral<"unarchive">;
1858
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1859
+ }, z.z.core.$strict>, z.ZodObject<{
1860
+ do: z.ZodLiteral<"duplicate">;
1861
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1862
+ }, z.z.core.$strict>, z.ZodObject<{
1863
+ do: z.ZodLiteral<"delete">;
1864
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1865
+ }, z.z.core.$strict>, z.ZodObject<{
1866
+ do: z.ZodLiteral<"post">;
1867
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1868
+ message: z.ZodString;
1869
+ kind: z.ZodOptional<z.ZodEnum<{
1870
+ message: "message";
1871
+ note: "note";
1872
+ }>>;
1873
+ }, z.z.core.$strict>], "do">>;
1874
+ }, z.z.core.$strict>>>;
1471
1875
  colspan: z.ZodOptional<z.ZodInt>;
1472
1876
  invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1473
1877
  roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -2090,9 +2494,174 @@ export declare const LayoutNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2090
2494
  }, z.z.core.$strict>>;
2091
2495
  }, z.z.core.$strict>>;
2092
2496
  myLocation: z.ZodOptional<z.ZodBoolean>;
2497
+ regions: z.ZodOptional<z.ZodObject<{
2498
+ from: z.ZodString;
2499
+ key: z.ZodString;
2500
+ name: z.ZodOptional<z.ZodString>;
2501
+ shade: z.ZodOptional<z.ZodString>;
2502
+ legend: z.ZodOptional<z.ZodBoolean>;
2503
+ choose: z.ZodOptional<z.ZodString>;
2504
+ }, z.z.core.$strict>>;
2505
+ reachable: z.ZodOptional<z.ZodObject<{
2506
+ from: z.ZodString;
2507
+ minutes: z.ZodNumber;
2508
+ mode: z.ZodOptional<z.ZodEnum<{
2509
+ car: "car";
2510
+ bike: "bike";
2511
+ foot: "foot";
2512
+ }>>;
2513
+ }, z.z.core.$strict>>;
2093
2514
  invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2094
2515
  }, z.z.core.$strict>>;
2095
2516
  height: z.ZodOptional<z.ZodInt>;
2517
+ tools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2518
+ satellite: "satellite";
2519
+ traffic: "traffic";
2520
+ fullscreen: "fullscreen";
2521
+ measure: "measure";
2522
+ }>>>;
2523
+ fences: z.ZodOptional<z.ZodArray<z.ZodObject<{
2524
+ layer: z.ZodString;
2525
+ area: z.ZodOptional<z.ZodString>;
2526
+ within: z.ZodOptional<z.ZodString>;
2527
+ when: z.ZodEnum<{
2528
+ enter: "enter";
2529
+ leave: "leave";
2530
+ }>;
2531
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2532
+ do: z.ZodLiteral<"open">;
2533
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2534
+ page: z.ZodString;
2535
+ version: z.ZodOptional<z.ZodInt>;
2536
+ as: z.ZodOptional<z.ZodEnum<{
2537
+ page: "page";
2538
+ dialog: "dialog";
2539
+ panel: "panel";
2540
+ }>>;
2541
+ side: z.ZodOptional<z.ZodEnum<{
2542
+ end: "end";
2543
+ start: "start";
2544
+ right: "right";
2545
+ left: "left";
2546
+ top: "top";
2547
+ bottom: "bottom";
2548
+ }>>;
2549
+ title: z.ZodOptional<z.ZodString>;
2550
+ record: z.ZodOptional<z.ZodString>;
2551
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2552
+ filter: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2553
+ field: z.ZodString;
2554
+ op: z.ZodEnum<{
2555
+ set: "set";
2556
+ "=": "=";
2557
+ "!=": "!=";
2558
+ "<": "<";
2559
+ ">": ">";
2560
+ "<=": "<=";
2561
+ ">=": ">=";
2562
+ in: "in";
2563
+ "not in": "not in";
2564
+ like: "like";
2565
+ ilike: "ilike";
2566
+ startswith: "startswith";
2567
+ endswith: "endswith";
2568
+ notset: "notset";
2569
+ between: "between";
2570
+ contains: "contains";
2571
+ "not contains": "not contains";
2572
+ "=?": "=?";
2573
+ within: "within";
2574
+ }>;
2575
+ value: z.ZodOptional<z.ZodJSONSchema>;
2576
+ valueFrom: z.ZodOptional<z.ZodString>;
2577
+ }, z.z.core.$strict>, z.ZodObject<{
2578
+ any: z.ZodArray<typeof FilterItemSchema>;
2579
+ }, z.z.core.$strict>, z.ZodObject<{
2580
+ all: z.ZodArray<typeof FilterItemSchema>;
2581
+ }, z.z.core.$strict>]>>>;
2582
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2583
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions").ActionStepSchema>>;
2584
+ }, z.z.core.$strict>, z.ZodObject<{
2585
+ do: z.ZodLiteral<"set">;
2586
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2587
+ field: z.ZodString;
2588
+ value: z.ZodString;
2589
+ }, z.z.core.$strict>, z.ZodObject<{
2590
+ do: z.ZodLiteral<"clear">;
2591
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2592
+ field: z.ZodString;
2593
+ }, z.z.core.$strict>, z.ZodObject<{
2594
+ do: z.ZodLiteral<"addLine">;
2595
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2596
+ field: z.ZodString;
2597
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2598
+ }, z.z.core.$strict>, z.ZodObject<{
2599
+ do: z.ZodLiteral<"check">;
2600
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2601
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
2602
+ }, z.z.core.$strict>, z.ZodObject<{
2603
+ do: z.ZodLiteral<"save">;
2604
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2605
+ }, z.z.core.$strict>, z.ZodObject<{
2606
+ do: z.ZodLiteral<"reset">;
2607
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2608
+ }, z.z.core.$strict>, z.ZodObject<{
2609
+ do: z.ZodLiteral<"goTo">;
2610
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2611
+ target: z.ZodString;
2612
+ }, z.z.core.$strict>, z.ZodObject<{
2613
+ do: z.ZodLiteral<"say">;
2614
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2615
+ message: z.ZodString;
2616
+ tone: z.ZodOptional<z.ZodEnum<{
2617
+ success: "success";
2618
+ info: "info";
2619
+ warning: "warning";
2620
+ danger: "danger";
2621
+ muted: "muted";
2622
+ }>>;
2623
+ }, z.z.core.$strict>, z.ZodObject<{
2624
+ do: z.ZodLiteral<"ask">;
2625
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2626
+ message: z.ZodString;
2627
+ }, z.z.core.$strict>, z.ZodObject<{
2628
+ do: z.ZodLiteral<"call">;
2629
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2630
+ action: z.ZodString;
2631
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2632
+ }, z.z.core.$strict>, z.ZodObject<{
2633
+ do: z.ZodLiteral<"close">;
2634
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2635
+ }, z.z.core.$strict>, z.ZodObject<{
2636
+ do: z.ZodLiteral<"reload">;
2637
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2638
+ }, z.z.core.$strict>, z.ZodObject<{
2639
+ do: z.ZodLiteral<"openUrl">;
2640
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2641
+ url: z.ZodString;
2642
+ newTab: z.ZodOptional<z.ZodBoolean>;
2643
+ }, z.z.core.$strict>, z.ZodObject<{
2644
+ do: z.ZodLiteral<"archive">;
2645
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2646
+ }, z.z.core.$strict>, z.ZodObject<{
2647
+ do: z.ZodLiteral<"unarchive">;
2648
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2649
+ }, z.z.core.$strict>, z.ZodObject<{
2650
+ do: z.ZodLiteral<"duplicate">;
2651
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2652
+ }, z.z.core.$strict>, z.ZodObject<{
2653
+ do: z.ZodLiteral<"delete">;
2654
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2655
+ }, z.z.core.$strict>, z.ZodObject<{
2656
+ do: z.ZodLiteral<"post">;
2657
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2658
+ message: z.ZodString;
2659
+ kind: z.ZodOptional<z.ZodEnum<{
2660
+ message: "message";
2661
+ note: "note";
2662
+ }>>;
2663
+ }, z.z.core.$strict>], "do">>;
2664
+ }, z.z.core.$strict>>>;
2096
2665
  colspan: z.ZodOptional<z.ZodInt>;
2097
2666
  invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2098
2667
  roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -4270,6 +4839,24 @@ export declare const ListMapSchema: z.ZodObject<{
4270
4839
  both: "both";
4271
4840
  }>>;
4272
4841
  limit: z.ZodOptional<z.ZodInt>;
4842
+ tools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4843
+ satellite: "satellite";
4844
+ traffic: "traffic";
4845
+ fullscreen: "fullscreen";
4846
+ measure: "measure";
4847
+ nearest: "nearest";
4848
+ }>>>;
4849
+ regions: z.ZodOptional<z.ZodObject<{
4850
+ from: z.ZodString;
4851
+ key: z.ZodString;
4852
+ name: z.ZodOptional<z.ZodString>;
4853
+ shade: z.ZodOptional<z.ZodString>;
4854
+ legend: z.ZodOptional<z.ZodBoolean>;
4855
+ field: z.ZodString;
4856
+ }, z.z.core.$strict>>;
4857
+ heat: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
4858
+ weight: z.ZodOptional<z.ZodString>;
4859
+ }, z.z.core.$strict>]>>;
4273
4860
  }, z.z.core.$strict>;
4274
4861
  export declare const ListNodeSchema: z.ZodObject<{
4275
4862
  type: z.ZodLiteral<"list">;
@@ -4516,6 +5103,24 @@ export declare const ListNodeSchema: z.ZodObject<{
4516
5103
  both: "both";
4517
5104
  }>>;
4518
5105
  limit: z.ZodOptional<z.ZodInt>;
5106
+ tools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5107
+ satellite: "satellite";
5108
+ traffic: "traffic";
5109
+ fullscreen: "fullscreen";
5110
+ measure: "measure";
5111
+ nearest: "nearest";
5112
+ }>>>;
5113
+ regions: z.ZodOptional<z.ZodObject<{
5114
+ from: z.ZodString;
5115
+ key: z.ZodString;
5116
+ name: z.ZodOptional<z.ZodString>;
5117
+ shade: z.ZodOptional<z.ZodString>;
5118
+ legend: z.ZodOptional<z.ZodBoolean>;
5119
+ field: z.ZodString;
5120
+ }, z.z.core.$strict>>;
5121
+ heat: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
5122
+ weight: z.ZodOptional<z.ZodString>;
5123
+ }, z.z.core.$strict>]>>;
4519
5124
  }, z.z.core.$strict>>;
4520
5125
  }, z.z.core.$strict>;
4521
5126
  export declare const RootLayoutSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -6392,5 +6997,23 @@ export declare const RootLayoutSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6392
6997
  both: "both";
6393
6998
  }>>;
6394
6999
  limit: z.ZodOptional<z.ZodInt>;
7000
+ tools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7001
+ satellite: "satellite";
7002
+ traffic: "traffic";
7003
+ fullscreen: "fullscreen";
7004
+ measure: "measure";
7005
+ nearest: "nearest";
7006
+ }>>>;
7007
+ regions: z.ZodOptional<z.ZodObject<{
7008
+ from: z.ZodString;
7009
+ key: z.ZodString;
7010
+ name: z.ZodOptional<z.ZodString>;
7011
+ shade: z.ZodOptional<z.ZodString>;
7012
+ legend: z.ZodOptional<z.ZodBoolean>;
7013
+ field: z.ZodString;
7014
+ }, z.z.core.$strict>>;
7015
+ heat: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
7016
+ weight: z.ZodOptional<z.ZodString>;
7017
+ }, z.z.core.$strict>]>>;
6395
7018
  }, z.z.core.$strict>>;
6396
7019
  }, z.z.core.$strict>], "type">;