@expofp/schema 3.16.2 → 3.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.
- package/dist/lib/config.d.ts +30 -5
- package/dist/lib/kiosk.d.ts +6 -1
- package/dist/lib/kiosk.js +22 -3
- package/package.json +2 -2
package/dist/lib/config.d.ts
CHANGED
|
@@ -362,7 +362,7 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
362
362
|
kiosk: z.ZodObject<{
|
|
363
363
|
x: z.ZodOptional<z.ZodNumber>;
|
|
364
364
|
y: z.ZodOptional<z.ZodNumber>;
|
|
365
|
-
z: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]
|
|
365
|
+
z: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
366
366
|
heading: z.ZodOptional<z.ZodNumber>;
|
|
367
367
|
lat: z.ZodOptional<z.ZodNumber>;
|
|
368
368
|
lng: z.ZodOptional<z.ZodNumber>;
|
|
@@ -374,6 +374,11 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
374
374
|
mapCenterX: z.ZodOptional<z.ZodNumber>;
|
|
375
375
|
mapCenterY: z.ZodOptional<z.ZodNumber>;
|
|
376
376
|
mapPitch: z.ZodOptional<z.ZodNumber>;
|
|
377
|
+
mapCenterLng: z.ZodOptional<z.ZodNumber>;
|
|
378
|
+
mapCenterLat: z.ZodOptional<z.ZodNumber>;
|
|
379
|
+
mapZoom: z.ZodOptional<z.ZodNumber>;
|
|
380
|
+
mapBearingDegrees: z.ZodOptional<z.ZodNumber>;
|
|
381
|
+
mapPitchDegrees: z.ZodOptional<z.ZodNumber>;
|
|
377
382
|
}, z.core.$strip>;
|
|
378
383
|
}, z.core.$strip>;
|
|
379
384
|
/**
|
|
@@ -716,7 +721,7 @@ export declare const DataSchema: z.ZodObject<{
|
|
|
716
721
|
kiosk: z.ZodOptional<z.ZodObject<{
|
|
717
722
|
x: z.ZodOptional<z.ZodNumber>;
|
|
718
723
|
y: z.ZodOptional<z.ZodNumber>;
|
|
719
|
-
z: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]
|
|
724
|
+
z: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
720
725
|
heading: z.ZodOptional<z.ZodNumber>;
|
|
721
726
|
lat: z.ZodOptional<z.ZodNumber>;
|
|
722
727
|
lng: z.ZodOptional<z.ZodNumber>;
|
|
@@ -728,6 +733,11 @@ export declare const DataSchema: z.ZodObject<{
|
|
|
728
733
|
mapCenterX: z.ZodOptional<z.ZodNumber>;
|
|
729
734
|
mapCenterY: z.ZodOptional<z.ZodNumber>;
|
|
730
735
|
mapPitch: z.ZodOptional<z.ZodNumber>;
|
|
736
|
+
mapCenterLng: z.ZodOptional<z.ZodNumber>;
|
|
737
|
+
mapCenterLat: z.ZodOptional<z.ZodNumber>;
|
|
738
|
+
mapZoom: z.ZodOptional<z.ZodNumber>;
|
|
739
|
+
mapBearingDegrees: z.ZodOptional<z.ZodNumber>;
|
|
740
|
+
mapPitchDegrees: z.ZodOptional<z.ZodNumber>;
|
|
731
741
|
}, z.core.$strip>>;
|
|
732
742
|
allowConsent: z.ZodOptional<z.ZodBoolean>;
|
|
733
743
|
flags: z.ZodOptional<z.ZodObject<{
|
|
@@ -1080,7 +1090,7 @@ export declare const DataJsSchema: z.ZodObject<{
|
|
|
1080
1090
|
kiosk: z.ZodOptional<z.ZodObject<{
|
|
1081
1091
|
x: z.ZodOptional<z.ZodNumber>;
|
|
1082
1092
|
y: z.ZodOptional<z.ZodNumber>;
|
|
1083
|
-
z: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]
|
|
1093
|
+
z: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
1084
1094
|
heading: z.ZodOptional<z.ZodNumber>;
|
|
1085
1095
|
lat: z.ZodOptional<z.ZodNumber>;
|
|
1086
1096
|
lng: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1092,6 +1102,11 @@ export declare const DataJsSchema: z.ZodObject<{
|
|
|
1092
1102
|
mapCenterX: z.ZodOptional<z.ZodNumber>;
|
|
1093
1103
|
mapCenterY: z.ZodOptional<z.ZodNumber>;
|
|
1094
1104
|
mapPitch: z.ZodOptional<z.ZodNumber>;
|
|
1105
|
+
mapCenterLng: z.ZodOptional<z.ZodNumber>;
|
|
1106
|
+
mapCenterLat: z.ZodOptional<z.ZodNumber>;
|
|
1107
|
+
mapZoom: z.ZodOptional<z.ZodNumber>;
|
|
1108
|
+
mapBearingDegrees: z.ZodOptional<z.ZodNumber>;
|
|
1109
|
+
mapPitchDegrees: z.ZodOptional<z.ZodNumber>;
|
|
1095
1110
|
}, z.core.$strip>>;
|
|
1096
1111
|
allowConsent: z.ZodOptional<z.ZodBoolean>;
|
|
1097
1112
|
flags: z.ZodOptional<z.ZodObject<{
|
|
@@ -1438,7 +1453,7 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1438
1453
|
kiosk: z.ZodOptional<z.ZodObject<{
|
|
1439
1454
|
x: z.ZodOptional<z.ZodNumber>;
|
|
1440
1455
|
y: z.ZodOptional<z.ZodNumber>;
|
|
1441
|
-
z: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]
|
|
1456
|
+
z: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
1442
1457
|
heading: z.ZodOptional<z.ZodNumber>;
|
|
1443
1458
|
lat: z.ZodOptional<z.ZodNumber>;
|
|
1444
1459
|
lng: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1450,6 +1465,11 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1450
1465
|
mapCenterX: z.ZodOptional<z.ZodNumber>;
|
|
1451
1466
|
mapCenterY: z.ZodOptional<z.ZodNumber>;
|
|
1452
1467
|
mapPitch: z.ZodOptional<z.ZodNumber>;
|
|
1468
|
+
mapCenterLng: z.ZodOptional<z.ZodNumber>;
|
|
1469
|
+
mapCenterLat: z.ZodOptional<z.ZodNumber>;
|
|
1470
|
+
mapZoom: z.ZodOptional<z.ZodNumber>;
|
|
1471
|
+
mapBearingDegrees: z.ZodOptional<z.ZodNumber>;
|
|
1472
|
+
mapPitchDegrees: z.ZodOptional<z.ZodNumber>;
|
|
1453
1473
|
}, z.core.$strip>>;
|
|
1454
1474
|
allowConsent: z.ZodOptional<z.ZodBoolean>;
|
|
1455
1475
|
legacyDataUrlBase: z.ZodOptional<z.ZodString>;
|
|
@@ -1608,7 +1628,7 @@ export declare const UrlConfigSchema: z.ZodObject<{
|
|
|
1608
1628
|
kiosk: z.ZodOptional<z.ZodObject<{
|
|
1609
1629
|
x: z.ZodOptional<z.ZodNumber>;
|
|
1610
1630
|
y: z.ZodOptional<z.ZodNumber>;
|
|
1611
|
-
z: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]
|
|
1631
|
+
z: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
1612
1632
|
heading: z.ZodOptional<z.ZodNumber>;
|
|
1613
1633
|
lat: z.ZodOptional<z.ZodNumber>;
|
|
1614
1634
|
lng: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1620,6 +1640,11 @@ export declare const UrlConfigSchema: z.ZodObject<{
|
|
|
1620
1640
|
mapCenterX: z.ZodOptional<z.ZodNumber>;
|
|
1621
1641
|
mapCenterY: z.ZodOptional<z.ZodNumber>;
|
|
1622
1642
|
mapPitch: z.ZodOptional<z.ZodNumber>;
|
|
1643
|
+
mapCenterLng: z.ZodOptional<z.ZodNumber>;
|
|
1644
|
+
mapCenterLat: z.ZodOptional<z.ZodNumber>;
|
|
1645
|
+
mapZoom: z.ZodOptional<z.ZodNumber>;
|
|
1646
|
+
mapBearingDegrees: z.ZodOptional<z.ZodNumber>;
|
|
1647
|
+
mapPitchDegrees: z.ZodOptional<z.ZodNumber>;
|
|
1623
1648
|
}, z.core.$strip>>;
|
|
1624
1649
|
allowConsent: z.ZodOptional<z.ZodBoolean>;
|
|
1625
1650
|
validateSchema: z.ZodOptional<z.ZodBoolean>;
|
package/dist/lib/kiosk.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import * as z from 'zod';
|
|
|
12
12
|
export declare const KioskSchema: z.ZodObject<{
|
|
13
13
|
x: z.ZodOptional<z.ZodNumber>;
|
|
14
14
|
y: z.ZodOptional<z.ZodNumber>;
|
|
15
|
-
z: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]
|
|
15
|
+
z: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
16
16
|
heading: z.ZodOptional<z.ZodNumber>;
|
|
17
17
|
lat: z.ZodOptional<z.ZodNumber>;
|
|
18
18
|
lng: z.ZodOptional<z.ZodNumber>;
|
|
@@ -24,6 +24,11 @@ export declare const KioskSchema: z.ZodObject<{
|
|
|
24
24
|
mapCenterX: z.ZodOptional<z.ZodNumber>;
|
|
25
25
|
mapCenterY: z.ZodOptional<z.ZodNumber>;
|
|
26
26
|
mapPitch: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
mapCenterLng: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
mapCenterLat: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
mapZoom: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
mapBearingDegrees: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
mapPitchDegrees: z.ZodOptional<z.ZodNumber>;
|
|
27
32
|
}, z.core.$strip>;
|
|
28
33
|
export interface Kiosk extends z.infer<typeof KioskSchema> {
|
|
29
34
|
}
|
package/dist/lib/kiosk.js
CHANGED
|
@@ -14,8 +14,12 @@ export const KioskSchema = z.object({
|
|
|
14
14
|
x: z.number().optional(),
|
|
15
15
|
/** Anchor y in plan coordinates. */
|
|
16
16
|
y: z.number().optional(),
|
|
17
|
-
/**
|
|
18
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Floor: the level name (a numeric index is accepted and stringified).
|
|
19
|
+
* Nullable — the on-device SetKiosk flow writes `null` for a plan with no
|
|
20
|
+
* layers, and that record round-trips through localStorage.
|
|
21
|
+
*/
|
|
22
|
+
z: z.union([z.string(), z.number()]).nullish(),
|
|
19
23
|
/** Device heading in degrees — rotates the you-are-here marker. */
|
|
20
24
|
heading: z.number().optional(),
|
|
21
25
|
/** GPS latitude (with `lng`, an alternative fix to `x`/`y`). */
|
|
@@ -26,7 +30,8 @@ export const KioskSchema = z.object({
|
|
|
26
30
|
iconSizePercent: z.number().optional(),
|
|
27
31
|
/** Per-device UI scale preference (the applied range is 0.8–1.4). */
|
|
28
32
|
uiScale: z.number().optional(),
|
|
29
|
-
// the saved camera framing — SetKiosk captures the
|
|
33
|
+
// the saved camera framing on the plan renderer — SetKiosk captures the
|
|
34
|
+
// renderer's camera state
|
|
30
35
|
/** Map roll at the kiosk's home framing, degrees. */
|
|
31
36
|
mapRollDegrees: z.number().optional(),
|
|
32
37
|
/** The pt-scale captured when the kiosk was set up (zoom reference). */
|
|
@@ -39,4 +44,18 @@ export const KioskSchema = z.object({
|
|
|
39
44
|
mapCenterY: z.number().optional(),
|
|
40
45
|
/** Map pitch at the home framing, degrees. */
|
|
41
46
|
mapPitch: z.number().optional(),
|
|
47
|
+
// the map-mode framing — with the MapLibre basemap the plan renderer's camera
|
|
48
|
+
// is inert, so the home view is captured as the map's own camera instead. The
|
|
49
|
+
// two sets are fully independent, pitch included: a kiosk carries whichever
|
|
50
|
+
// set its mode captured, and capturing in one mode never writes the other's.
|
|
51
|
+
/** Home framing center longitude (map mode). */
|
|
52
|
+
mapCenterLng: z.number().optional(),
|
|
53
|
+
/** Home framing center latitude (map mode). */
|
|
54
|
+
mapCenterLat: z.number().optional(),
|
|
55
|
+
/** Map zoom level at the home framing (map mode). */
|
|
56
|
+
mapZoom: z.number().optional(),
|
|
57
|
+
/** Map bearing at the home framing, degrees (map mode). */
|
|
58
|
+
mapBearingDegrees: z.number().optional(),
|
|
59
|
+
/** Map pitch at the home framing, degrees (map mode). */
|
|
60
|
+
mapPitchDegrees: z.number().optional(),
|
|
42
61
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/schema",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.18.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "ExpoFP SDK internal: expo data schemas and types",
|
|
6
6
|
"homepage": "https://developer.expofp.com/",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"zod": "4.4.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@expofp/utils": "3.
|
|
28
|
+
"@expofp/utils": "3.18.0"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"dist",
|