@expofp/schema 0.0.0-experimental.2d6c681 → 0.0.0-experimental.3b0db16
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/index.d.ts +0 -4
- package/dist/index.js +0 -4
- package/dist/lib/camera.d.ts +0 -1
- package/dist/lib/camera.js +0 -7
- package/dist/lib/config-defaults.d.ts +0 -25
- package/dist/lib/config-defaults.js +0 -33
- package/dist/lib/config.d.ts +0 -329
- package/dist/lib/config.js +0 -74
- package/dist/lib/flags.d.ts +0 -3
- package/dist/lib/flags.js +0 -30
- package/dist/lib/fp-svg.d.ts +0 -129
- package/dist/lib/fp-svg.js +1 -19
- package/dist/lib/intents.d.ts +0 -1
- package/package.json +2 -2
- package/dist/lib/branding.d.ts +0 -21
- package/dist/lib/branding.js +0 -20
- package/dist/lib/journey.d.ts +0 -27
- package/dist/lib/journey.js +0 -26
- package/dist/lib/maps.d.ts +0 -22
- package/dist/lib/maps.js +0 -19
- package/dist/lib/venues.d.ts +0 -222
- package/dist/lib/venues.js +0 -150
package/dist/lib/flags.d.ts
CHANGED
|
@@ -7,11 +7,8 @@ import * as z from 'zod';
|
|
|
7
7
|
export declare const FlagsSchema: z.ZodObject<{
|
|
8
8
|
enableExperimentalMaplibre: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
enableExperimentalOutdoorMarkers: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
enableExperimentalVenueFraming: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
-
enableExperimentalNorthUp: z.ZodOptional<z.ZodBoolean>;
|
|
12
10
|
customSetKiosk: z.ZodOptional<z.ZodString>;
|
|
13
11
|
hideBoothBadges: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
crossVenueJourneys: z.ZodOptional<z.ZodBoolean>;
|
|
15
12
|
busRoutes: z.ZodOptional<z.ZodBoolean>;
|
|
16
13
|
}, z.core.$loose>;
|
|
17
14
|
//# sourceMappingURL=flags.d.ts.map
|
package/dist/lib/flags.js
CHANGED
|
@@ -18,40 +18,10 @@ export const FlagsSchema = z.looseObject({
|
|
|
18
18
|
* plan in, so there is nothing for `undefined` to defer to.
|
|
19
19
|
*/
|
|
20
20
|
enableExperimentalOutdoorMarkers: z.boolean().optional(),
|
|
21
|
-
/**
|
|
22
|
-
* Enable experimental venue framing on multi-venue (campus) plans: entering
|
|
23
|
-
* a venue or switching its level holds the camera on the venue footprint
|
|
24
|
-
* instead of flying to the level's own viewbox.
|
|
25
|
-
*
|
|
26
|
-
* Unset or `false` lets each level frame its own viewbox (falling back to
|
|
27
|
-
* its rect). Not tri-state.
|
|
28
|
-
*/
|
|
29
|
-
enableExperimentalVenueFraming: z.boolean().optional(),
|
|
30
|
-
/**
|
|
31
|
-
* Enable experimental north-up framing in the MapLibre map view: the initial
|
|
32
|
-
* load, Fit to screen and the campus-wide fits face north (bearing 0)
|
|
33
|
-
* instead of turning the map so the plan stands upright. Entering a venue —
|
|
34
|
-
* and focusing a booth inside one — turns the map to that level's authored
|
|
35
|
-
* viewbox instead, so a building reads along its own axes.
|
|
36
|
-
*
|
|
37
|
-
* Unset or `false` keeps the plan-upright bearing. Not tri-state. The
|
|
38
|
-
* standalone floor plan view has no geographic north and ignores it.
|
|
39
|
-
*/
|
|
40
|
-
enableExperimentalNorthUp: z.boolean().optional(),
|
|
41
21
|
/** Custom `setkiosk` phrase. */
|
|
42
22
|
customSetKiosk: z.string().optional(),
|
|
43
23
|
/** Hide booth number badges. */
|
|
44
24
|
hideBoothBadges: z.boolean().optional(),
|
|
45
|
-
/**
|
|
46
|
-
* Enable cross-venue journeys: where the wayfinding graph cannot route
|
|
47
|
-
* between two venues, the plan offers a Journey with an external maps handoff
|
|
48
|
-
* instead of a dead end (ADR-0010).
|
|
49
|
-
*
|
|
50
|
-
* Off by default and not tri-state — nothing in the data opts a plan in, so
|
|
51
|
-
* there is nothing for `undefined` to defer to. The same switch stays the
|
|
52
|
-
* producer's opt-out once the feature is generally available.
|
|
53
|
-
*/
|
|
54
|
-
crossVenueJourneys: z.boolean().optional(),
|
|
55
25
|
/**
|
|
56
26
|
* Enable live bus/transport routing on the floor plan.
|
|
57
27
|
*
|
package/dist/lib/fp-svg.d.ts
CHANGED
|
@@ -44,22 +44,6 @@ export declare const FpRectSchema: z.ZodObject<{
|
|
|
44
44
|
x2: z.ZodNumber;
|
|
45
45
|
y2: z.ZodNumber;
|
|
46
46
|
angle: z.ZodOptional<z.ZodNumber>;
|
|
47
|
-
p0: z.ZodOptional<z.ZodObject<{
|
|
48
|
-
x: z.ZodNumber;
|
|
49
|
-
y: z.ZodNumber;
|
|
50
|
-
}, z.core.$strip>>;
|
|
51
|
-
p1: z.ZodOptional<z.ZodObject<{
|
|
52
|
-
x: z.ZodNumber;
|
|
53
|
-
y: z.ZodNumber;
|
|
54
|
-
}, z.core.$strip>>;
|
|
55
|
-
p2: z.ZodOptional<z.ZodObject<{
|
|
56
|
-
x: z.ZodNumber;
|
|
57
|
-
y: z.ZodNumber;
|
|
58
|
-
}, z.core.$strip>>;
|
|
59
|
-
p3: z.ZodOptional<z.ZodObject<{
|
|
60
|
-
x: z.ZodNumber;
|
|
61
|
-
y: z.ZodNumber;
|
|
62
|
-
}, z.core.$strip>>;
|
|
63
47
|
}, z.core.$loose>;
|
|
64
48
|
/**
|
|
65
49
|
* One `__fpLayers` entry (consumed by `store/init/init-layers.ts`). `name` also
|
|
@@ -78,22 +62,6 @@ export declare const FpLayerSchema: z.ZodObject<{
|
|
|
78
62
|
x2: z.ZodNumber;
|
|
79
63
|
y2: z.ZodNumber;
|
|
80
64
|
angle: z.ZodOptional<z.ZodNumber>;
|
|
81
|
-
p0: z.ZodOptional<z.ZodObject<{
|
|
82
|
-
x: z.ZodNumber;
|
|
83
|
-
y: z.ZodNumber;
|
|
84
|
-
}, z.core.$strip>>;
|
|
85
|
-
p1: z.ZodOptional<z.ZodObject<{
|
|
86
|
-
x: z.ZodNumber;
|
|
87
|
-
y: z.ZodNumber;
|
|
88
|
-
}, z.core.$strip>>;
|
|
89
|
-
p2: z.ZodOptional<z.ZodObject<{
|
|
90
|
-
x: z.ZodNumber;
|
|
91
|
-
y: z.ZodNumber;
|
|
92
|
-
}, z.core.$strip>>;
|
|
93
|
-
p3: z.ZodOptional<z.ZodObject<{
|
|
94
|
-
x: z.ZodNumber;
|
|
95
|
-
y: z.ZodNumber;
|
|
96
|
-
}, z.core.$strip>>;
|
|
97
65
|
}, z.core.$loose>>>;
|
|
98
66
|
viewbox: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
99
67
|
x1: z.ZodNumber;
|
|
@@ -101,22 +69,6 @@ export declare const FpLayerSchema: z.ZodObject<{
|
|
|
101
69
|
x2: z.ZodNumber;
|
|
102
70
|
y2: z.ZodNumber;
|
|
103
71
|
angle: z.ZodOptional<z.ZodNumber>;
|
|
104
|
-
p0: z.ZodOptional<z.ZodObject<{
|
|
105
|
-
x: z.ZodNumber;
|
|
106
|
-
y: z.ZodNumber;
|
|
107
|
-
}, z.core.$strip>>;
|
|
108
|
-
p1: z.ZodOptional<z.ZodObject<{
|
|
109
|
-
x: z.ZodNumber;
|
|
110
|
-
y: z.ZodNumber;
|
|
111
|
-
}, z.core.$strip>>;
|
|
112
|
-
p2: z.ZodOptional<z.ZodObject<{
|
|
113
|
-
x: z.ZodNumber;
|
|
114
|
-
y: z.ZodNumber;
|
|
115
|
-
}, z.core.$strip>>;
|
|
116
|
-
p3: z.ZodOptional<z.ZodObject<{
|
|
117
|
-
x: z.ZodNumber;
|
|
118
|
-
y: z.ZodNumber;
|
|
119
|
-
}, z.core.$strip>>;
|
|
120
72
|
}, z.core.$loose>>>;
|
|
121
73
|
floorIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
122
74
|
}, z.core.$loose>;
|
|
@@ -284,22 +236,6 @@ export declare const FpSvgJsSchema: z.ZodObject<{
|
|
|
284
236
|
x2: z.ZodNumber;
|
|
285
237
|
y2: z.ZodNumber;
|
|
286
238
|
angle: z.ZodOptional<z.ZodNumber>;
|
|
287
|
-
p0: z.ZodOptional<z.ZodObject<{
|
|
288
|
-
x: z.ZodNumber;
|
|
289
|
-
y: z.ZodNumber;
|
|
290
|
-
}, z.core.$strip>>;
|
|
291
|
-
p1: z.ZodOptional<z.ZodObject<{
|
|
292
|
-
x: z.ZodNumber;
|
|
293
|
-
y: z.ZodNumber;
|
|
294
|
-
}, z.core.$strip>>;
|
|
295
|
-
p2: z.ZodOptional<z.ZodObject<{
|
|
296
|
-
x: z.ZodNumber;
|
|
297
|
-
y: z.ZodNumber;
|
|
298
|
-
}, z.core.$strip>>;
|
|
299
|
-
p3: z.ZodOptional<z.ZodObject<{
|
|
300
|
-
x: z.ZodNumber;
|
|
301
|
-
y: z.ZodNumber;
|
|
302
|
-
}, z.core.$strip>>;
|
|
303
239
|
}, z.core.$loose>>>;
|
|
304
240
|
viewbox: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
305
241
|
x1: z.ZodNumber;
|
|
@@ -307,76 +243,11 @@ export declare const FpSvgJsSchema: z.ZodObject<{
|
|
|
307
243
|
x2: z.ZodNumber;
|
|
308
244
|
y2: z.ZodNumber;
|
|
309
245
|
angle: z.ZodOptional<z.ZodNumber>;
|
|
310
|
-
p0: z.ZodOptional<z.ZodObject<{
|
|
311
|
-
x: z.ZodNumber;
|
|
312
|
-
y: z.ZodNumber;
|
|
313
|
-
}, z.core.$strip>>;
|
|
314
|
-
p1: z.ZodOptional<z.ZodObject<{
|
|
315
|
-
x: z.ZodNumber;
|
|
316
|
-
y: z.ZodNumber;
|
|
317
|
-
}, z.core.$strip>>;
|
|
318
|
-
p2: z.ZodOptional<z.ZodObject<{
|
|
319
|
-
x: z.ZodNumber;
|
|
320
|
-
y: z.ZodNumber;
|
|
321
|
-
}, z.core.$strip>>;
|
|
322
|
-
p3: z.ZodOptional<z.ZodObject<{
|
|
323
|
-
x: z.ZodNumber;
|
|
324
|
-
y: z.ZodNumber;
|
|
325
|
-
}, z.core.$strip>>;
|
|
326
246
|
}, z.core.$loose>>>;
|
|
327
247
|
floorIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
328
248
|
}, z.core.$loose>>>;
|
|
329
249
|
__fpLayersMode: z.ZodOptional<z.ZodNumber>;
|
|
330
250
|
__fpDefaultLayer: z.ZodOptional<z.ZodString>;
|
|
331
|
-
__fpVenues: z.ZodOptional<z.ZodObject<{
|
|
332
|
-
venuesVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
333
|
-
venues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
334
|
-
id: z.ZodString;
|
|
335
|
-
name: z.ZodString;
|
|
336
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
337
|
-
levels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
338
|
-
layer: z.ZodOptional<z.ZodString>;
|
|
339
|
-
ordinal: z.ZodOptional<z.ZodInt>;
|
|
340
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
341
|
-
initial: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
342
|
-
}, z.core.$loose>>>;
|
|
343
|
-
contour: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
344
|
-
x: z.ZodNumber;
|
|
345
|
-
y: z.ZodNumber;
|
|
346
|
-
}, z.core.$strip>>>;
|
|
347
|
-
markerPoint: z.ZodOptional<z.ZodObject<{
|
|
348
|
-
x: z.ZodNumber;
|
|
349
|
-
y: z.ZodNumber;
|
|
350
|
-
}, z.core.$strip>>;
|
|
351
|
-
detailMinSizePx: z.ZodOptional<z.ZodNumber>;
|
|
352
|
-
markerMaxSizePx: z.ZodOptional<z.ZodNumber>;
|
|
353
|
-
layers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
354
|
-
layer: z.ZodOptional<z.ZodString>;
|
|
355
|
-
render: z.ZodOptional<z.ZodEnum<{
|
|
356
|
-
marker: "marker";
|
|
357
|
-
scene: "scene";
|
|
358
|
-
}>>;
|
|
359
|
-
replacesDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
360
|
-
suppressesLabel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
361
|
-
minSizePx: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
362
|
-
maxSizePx: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"detail">]>>>;
|
|
363
|
-
}, z.core.$loose>>>;
|
|
364
|
-
entrances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
365
|
-
layer: z.ZodOptional<z.ZodString>;
|
|
366
|
-
point: z.ZodOptional<z.ZodObject<{
|
|
367
|
-
x: z.ZodNumber;
|
|
368
|
-
y: z.ZodNumber;
|
|
369
|
-
}, z.core.$strip>>;
|
|
370
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
371
|
-
}, z.core.$loose>>>;
|
|
372
|
-
campusViewbox: z.ZodOptional<z.ZodObject<{
|
|
373
|
-
x: z.ZodOptional<z.ZodNumber>;
|
|
374
|
-
y: z.ZodOptional<z.ZodNumber>;
|
|
375
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
376
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
377
|
-
}, z.core.$loose>>;
|
|
378
|
-
}, z.core.$loose>>>;
|
|
379
|
-
}, z.core.$loose>>;
|
|
380
251
|
}, z.core.$loose>;
|
|
381
252
|
/**
|
|
382
253
|
* A `$ref` to the expo's `fp.svg.js` — resolves to a {@link FpSvgJsSchema}
|
package/dist/lib/fp-svg.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
import { FpGeoSchema } from './fp-geo.js';
|
|
3
|
-
import { VenuePayloadSchema } from './venues.js';
|
|
4
3
|
/**
|
|
5
4
|
* Schemas for the legacy `fp.svg.js` drawing payloads served next to `data.js`
|
|
6
5
|
* under `legacyDataUrlBase`:
|
|
@@ -8,7 +7,7 @@ import { VenuePayloadSchema } from './venues.js';
|
|
|
8
7
|
* - `fp.svg.js` — {@link FpSvgJsSchema}: the default layer's drawing plus
|
|
9
8
|
* plan-wide metadata (`__fp`, `__fpPaths`, `__fpGeo`, `__fpSettings`,
|
|
10
9
|
* `__fpStat`, `__fpVersion`, `__viewbox`, `__fpLayers`, `__fpLayersMode`,
|
|
11
|
-
* `__fpDefaultLayer
|
|
10
|
+
* `__fpDefaultLayer`)
|
|
12
11
|
* - `fp.svg.<layerName>.js` — {@link FpSvgLayerJsSchema}: one additional drawing
|
|
13
12
|
* layer (`__fp`, `__fpPaths`, and per-file copies of the shared globals)
|
|
14
13
|
*
|
|
@@ -87,7 +86,6 @@ export const FpViewboxSchema = z.looseObject({
|
|
|
87
86
|
height: z.number(),
|
|
88
87
|
angle: z.number().optional(),
|
|
89
88
|
});
|
|
90
|
-
const FpRectCornerSchema = z.object({ x: z.number(), y: z.number() });
|
|
91
89
|
/** A min/max rectangle in the legacy `core/Rect` shape. */
|
|
92
90
|
export const FpRectSchema = z.looseObject({
|
|
93
91
|
x1: z.number(),
|
|
@@ -96,15 +94,6 @@ export const FpRectSchema = z.looseObject({
|
|
|
96
94
|
y2: z.number(),
|
|
97
95
|
/** Rotation — present on layer viewboxes. */
|
|
98
96
|
angle: z.number().optional(),
|
|
99
|
-
/**
|
|
100
|
-
* The rectangle's own corners, clockwise from the top-left — present on
|
|
101
|
-
* layer viewboxes from converters that emit them. On a turned viewbox these
|
|
102
|
-
* carry the turn, where `x1`..`y2` stay axis-aligned.
|
|
103
|
-
*/
|
|
104
|
-
p0: FpRectCornerSchema.optional(),
|
|
105
|
-
p1: FpRectCornerSchema.optional(),
|
|
106
|
-
p2: FpRectCornerSchema.optional(),
|
|
107
|
-
p3: FpRectCornerSchema.optional(),
|
|
108
97
|
});
|
|
109
98
|
/**
|
|
110
99
|
* One `__fpLayers` entry (consumed by `store/init/init-layers.ts`). `name` also
|
|
@@ -176,13 +165,6 @@ export const FpSvgJsSchema = z.looseObject({
|
|
|
176
165
|
__fpLayersMode: z.number().optional(),
|
|
177
166
|
/** `name` of the layer whose drawing this file carries. */
|
|
178
167
|
__fpDefaultLayer: z.string().optional(),
|
|
179
|
-
/**
|
|
180
|
-
* The venue document, carried on the geometry path so it is written by the
|
|
181
|
-
* same converter run as the `__fpLayers` its layer names join to. Absent on
|
|
182
|
-
* drawings from a converter that predates it — `loadConfig` then keeps the
|
|
183
|
-
* `data.js` value (`docs/specs/multi-venue-data-contract.md` §1).
|
|
184
|
-
*/
|
|
185
|
-
__fpVenues: VenuePayloadSchema.optional(),
|
|
186
168
|
});
|
|
187
169
|
/**
|
|
188
170
|
* A `$ref` to the expo's `fp.svg.js` — resolves to a {@link FpSvgJsSchema}
|
package/dist/lib/intents.d.ts
CHANGED
|
@@ -125,7 +125,6 @@ export declare const IntentsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
125
125
|
lat: z.ZodOptional<z.ZodNumber>;
|
|
126
126
|
lng: z.ZodOptional<z.ZodNumber>;
|
|
127
127
|
floor: z.ZodOptional<z.ZodString>;
|
|
128
|
-
venue: z.ZodOptional<z.ZodString>;
|
|
129
128
|
bearing: z.ZodOptional<z.ZodNumber>;
|
|
130
129
|
zoomTime: z.ZodOptional<z.ZodNumber>;
|
|
131
130
|
pitchTime: z.ZodOptional<z.ZodNumber>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/schema",
|
|
3
|
-
"version": "0.0.0-experimental.
|
|
3
|
+
"version": "0.0.0-experimental.3b0db16",
|
|
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": "0.0.0-experimental.
|
|
28
|
+
"@expofp/utils": "0.0.0-experimental.3b0db16"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"dist",
|
package/dist/lib/branding.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
/** How a selected booth/space/POI is highlighted on the plan. */
|
|
3
|
-
export declare const SelectionStyleSchema: z.ZodEnum<{
|
|
4
|
-
blink: "blink";
|
|
5
|
-
solid: "solid";
|
|
6
|
-
}>;
|
|
7
|
-
export type SelectionStyle = z.infer<typeof SelectionStyleSchema>;
|
|
8
|
-
/**
|
|
9
|
-
* Wayfinding palette overrides. Every key is optional; an absent key keeps
|
|
10
|
-
* the built-in color. Loose so the platform can add keys before the SDK
|
|
11
|
-
* learns them.
|
|
12
|
-
*/
|
|
13
|
-
export declare const WayfindingColorsSchema: z.ZodObject<{
|
|
14
|
-
route: z.ZodOptional<z.ZodString>;
|
|
15
|
-
routeActive: z.ZodOptional<z.ZodString>;
|
|
16
|
-
routePassed: z.ZodOptional<z.ZodString>;
|
|
17
|
-
source: z.ZodOptional<z.ZodString>;
|
|
18
|
-
destination: z.ZodOptional<z.ZodString>;
|
|
19
|
-
}, z.core.$loose>;
|
|
20
|
-
export type WayfindingColors = z.infer<typeof WayfindingColorsSchema>;
|
|
21
|
-
//# sourceMappingURL=branding.d.ts.map
|
package/dist/lib/branding.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
/** How a selected booth/space/POI is highlighted on the plan. */
|
|
3
|
-
export const SelectionStyleSchema = z.enum(['blink', 'solid']);
|
|
4
|
-
/**
|
|
5
|
-
* Wayfinding palette overrides. Every key is optional; an absent key keeps
|
|
6
|
-
* the built-in color. Loose so the platform can add keys before the SDK
|
|
7
|
-
* learns them.
|
|
8
|
-
*/
|
|
9
|
-
export const WayfindingColorsSchema = z.looseObject({
|
|
10
|
-
/** Remaining route segments. */
|
|
11
|
-
route: z.string().optional(),
|
|
12
|
-
/** Animated "current" segment drawn over the remaining route. */
|
|
13
|
-
routeActive: z.string().optional(),
|
|
14
|
-
/** Segments already walked. */
|
|
15
|
-
routePassed: z.string().optional(),
|
|
16
|
-
/** Departure / current-position / transition icons. */
|
|
17
|
-
source: z.string().optional(),
|
|
18
|
-
/** Destination icon. */
|
|
19
|
-
destination: z.string().optional(),
|
|
20
|
-
});
|
package/dist/lib/journey.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* The journey deep link — the `config.journey` node, and the query a scanned
|
|
4
|
-
* kiosk QR or a desktop "continue on your phone" link arrives as
|
|
5
|
-
* (`?journey[to]=A-12&journey[from]=B-30`).
|
|
6
|
-
*
|
|
7
|
-
* IDENTIFIERS ONLY, on purpose: a journey is recomputed from live plan data
|
|
8
|
-
* when the link opens, never restored from it. A link that carried legs,
|
|
9
|
-
* coordinates or a provider URL would hand the phone whatever the plan looked
|
|
10
|
-
* like when the code was printed — the QR beside a kiosk outlives more than one
|
|
11
|
-
* plan edit. Everything a journey needs beyond these two names (the venues,
|
|
12
|
-
* their anchors, the provider, the distance) the receiving device already has,
|
|
13
|
-
* fresher.
|
|
14
|
-
*
|
|
15
|
-
* The origin is optional because two of its three sources are the device's own:
|
|
16
|
-
* a live position and a kiosk anchor travel as themselves (the kiosk anchor
|
|
17
|
-
* through the legacy `kiosk_*` params the QR-share pattern already smuggles),
|
|
18
|
-
* leaving `from` to name a picked from-booth — the one origin that is an
|
|
19
|
-
* authored place rather than a device.
|
|
20
|
-
*/
|
|
21
|
-
export declare const JourneyLinkSchema: z.ZodObject<{
|
|
22
|
-
to: z.ZodString;
|
|
23
|
-
from: z.ZodOptional<z.ZodString>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
/** A journey deep link's payload — see {@link JourneyLinkSchema}. */
|
|
26
|
-
export type JourneyLink = z.infer<typeof JourneyLinkSchema>;
|
|
27
|
-
//# sourceMappingURL=journey.d.ts.map
|
package/dist/lib/journey.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* The journey deep link — the `config.journey` node, and the query a scanned
|
|
4
|
-
* kiosk QR or a desktop "continue on your phone" link arrives as
|
|
5
|
-
* (`?journey[to]=A-12&journey[from]=B-30`).
|
|
6
|
-
*
|
|
7
|
-
* IDENTIFIERS ONLY, on purpose: a journey is recomputed from live plan data
|
|
8
|
-
* when the link opens, never restored from it. A link that carried legs,
|
|
9
|
-
* coordinates or a provider URL would hand the phone whatever the plan looked
|
|
10
|
-
* like when the code was printed — the QR beside a kiosk outlives more than one
|
|
11
|
-
* plan edit. Everything a journey needs beyond these two names (the venues,
|
|
12
|
-
* their anchors, the provider, the distance) the receiving device already has,
|
|
13
|
-
* fresher.
|
|
14
|
-
*
|
|
15
|
-
* The origin is optional because two of its three sources are the device's own:
|
|
16
|
-
* a live position and a kiosk anchor travel as themselves (the kiosk anchor
|
|
17
|
-
* through the legacy `kiosk_*` params the QR-share pattern already smuggles),
|
|
18
|
-
* leaving `from` to name a picked from-booth — the one origin that is an
|
|
19
|
-
* authored place rather than a device.
|
|
20
|
-
*/
|
|
21
|
-
export const JourneyLinkSchema = z.object({
|
|
22
|
-
/** The destination entity — a booth or exhibitor slug / external id. */
|
|
23
|
-
to: z.string().min(1),
|
|
24
|
-
/** The origin entity, when the journey started from a picked from-booth. */
|
|
25
|
-
from: z.string().min(1).optional(),
|
|
26
|
-
});
|
package/dist/lib/maps.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* The external maps provider a cross-venue journey's external handoff opens.
|
|
4
|
-
*
|
|
5
|
-
* Only the two whose universal URL forms the SDK builds: any other value is a
|
|
6
|
-
* dead link, so the enum is closed rather than an open string.
|
|
7
|
-
*/
|
|
8
|
-
export declare const MapsProviderSchema: z.ZodEnum<{
|
|
9
|
-
apple: "apple";
|
|
10
|
-
google: "google";
|
|
11
|
-
}>;
|
|
12
|
-
export type MapsProvider = z.infer<typeof MapsProviderSchema>;
|
|
13
|
-
/**
|
|
14
|
-
* Whether a value is a provider the handoff can actually open.
|
|
15
|
-
*
|
|
16
|
-
* The effective config merges producer-authored layers tolerantly (a manifest
|
|
17
|
-
* or `data.js` is only parsed strictly under `?validateSchema`), so a typed
|
|
18
|
-
* `mapsProvider` can still carry an unmodeled string at runtime — consumers
|
|
19
|
-
* check before honoring the override.
|
|
20
|
-
*/
|
|
21
|
-
export declare function isMapsProvider(value: unknown): value is MapsProvider;
|
|
22
|
-
//# sourceMappingURL=maps.d.ts.map
|
package/dist/lib/maps.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* The external maps provider a cross-venue journey's external handoff opens.
|
|
4
|
-
*
|
|
5
|
-
* Only the two whose universal URL forms the SDK builds: any other value is a
|
|
6
|
-
* dead link, so the enum is closed rather than an open string.
|
|
7
|
-
*/
|
|
8
|
-
export const MapsProviderSchema = z.enum(['apple', 'google']);
|
|
9
|
-
/**
|
|
10
|
-
* Whether a value is a provider the handoff can actually open.
|
|
11
|
-
*
|
|
12
|
-
* The effective config merges producer-authored layers tolerantly (a manifest
|
|
13
|
-
* or `data.js` is only parsed strictly under `?validateSchema`), so a typed
|
|
14
|
-
* `mapsProvider` can still carry an unmodeled string at runtime — consumers
|
|
15
|
-
* check before honoring the override.
|
|
16
|
-
*/
|
|
17
|
-
export function isMapsProvider(value) {
|
|
18
|
-
return MapsProviderSchema.safeParse(value).success;
|
|
19
|
-
}
|
package/dist/lib/venues.d.ts
DELETED
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* The multi-venue contract (docs/specs/multi-venue-data-contract.md, currently
|
|
4
|
-
* Revision 4).
|
|
5
|
-
*
|
|
6
|
-
* `VenueSchema` is deliberately the PERMISSIVE shape the config parses with —
|
|
7
|
-
* a malformed venue must not fail the plan. Venues arrive inside `data.js`
|
|
8
|
-
* alongside everything else, so a strict `ConfigSchema.parse` would throw on
|
|
9
|
-
* one bad `order` and take the whole floor plan down with it. The loose shape
|
|
10
|
-
* here lets the payload through; per-venue enforcement of the published
|
|
11
|
-
* contract (every documented constraint, plus diagnostics) lives in the
|
|
12
|
-
* imperative parser at `packages/floorplan/src/data/venues.ts`, which is the
|
|
13
|
-
* contract's one source of truth — not a zod schema.
|
|
14
|
-
*
|
|
15
|
-
* **Hand-sync is the accepted permanent cost, not a pending TODO.** Three
|
|
16
|
-
* copies encode the contract's rules and each must be updated together:
|
|
17
|
-
*
|
|
18
|
-
* 1. `packages/floorplan/src/data/venues.ts` — runtime parsing + diagnostics
|
|
19
|
-
* 2. `docs/specs/validate-venues.mjs` — the export gate (Guard 2, §12)
|
|
20
|
-
* 3. `docs/specs/multi-venue-data-contract.schema.json` — structural schema
|
|
21
|
-
*
|
|
22
|
-
* An earlier TODO here proposed generating 2 and 3 from a strict zod schema in
|
|
23
|
-
* this module. That schema was deleted as dead code (it had zero consumers and
|
|
24
|
-
* had already drifted from the parser), so the TODO went with it: the parser
|
|
25
|
-
* enforces referential and geometric rules that no JSON Schema can express,
|
|
26
|
-
* which is why it — not zod — is the source of truth.
|
|
27
|
-
*
|
|
28
|
-
* What keeps the copies honest is
|
|
29
|
-
* `packages/floorplan/src/data/validate-venues.test.ts`, which runs all three
|
|
30
|
-
* implementations over shared fixtures and asserts they agree on the `code`,
|
|
31
|
-
* `effect` and `path` of every diagnostic. `message` and `consequence` are
|
|
32
|
-
* deliberately excluded, so either implementation may reword its prose freely.
|
|
33
|
-
* Add a parity case there whenever you add a rule.
|
|
34
|
-
*/
|
|
35
|
-
/** A point in floor-plan projected coordinates. */
|
|
36
|
-
export declare const VenuePointSchema: z.ZodObject<{
|
|
37
|
-
x: z.ZodNumber;
|
|
38
|
-
y: z.ZodNumber;
|
|
39
|
-
}, z.core.$strip>;
|
|
40
|
-
/** How an auxiliary venue layer is drawn. */
|
|
41
|
-
export declare const VenueRenderModeSchema: z.ZodEnum<{
|
|
42
|
-
marker: "marker";
|
|
43
|
-
scene: "scene";
|
|
44
|
-
}>;
|
|
45
|
-
/**
|
|
46
|
-
* Upper size bound for an aux layer: a pixel size, or `'detail'` to track the
|
|
47
|
-
* venue's own detail cutoff instead of a fixed number.
|
|
48
|
-
*/
|
|
49
|
-
export declare const VenueSizeBoundSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"detail">]>;
|
|
50
|
-
/** One level of a venue, bound to a plan layer. */
|
|
51
|
-
export declare const VenueLevelSchema: z.ZodObject<{
|
|
52
|
-
layer: z.ZodString;
|
|
53
|
-
ordinal: z.ZodInt;
|
|
54
|
-
name: z.ZodOptional<z.ZodString>;
|
|
55
|
-
initial: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
-
}, z.core.$loose>;
|
|
57
|
-
/** A non-level layer a venue draws — a replacing scene or a marker. */
|
|
58
|
-
export declare const VenueAuxLayerSchema: z.ZodObject<{
|
|
59
|
-
layer: z.ZodString;
|
|
60
|
-
render: z.ZodEnum<{
|
|
61
|
-
marker: "marker";
|
|
62
|
-
scene: "scene";
|
|
63
|
-
}>;
|
|
64
|
-
replacesDefault: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
-
suppressesLabel: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
-
minSizePx: z.ZodOptional<z.ZodNumber>;
|
|
67
|
-
maxSizePx: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"detail">]>>;
|
|
68
|
-
}, z.core.$loose>;
|
|
69
|
-
/**
|
|
70
|
-
* A venue entrance: the authored point where a venue meets the outside world.
|
|
71
|
-
*
|
|
72
|
-
* Plan-local on one of the venue's own levels, and therefore geo-projectable
|
|
73
|
-
* through the plan's GPS anchors — which is what lets a cross-venue journey
|
|
74
|
-
* hand a maps app a door rather than the middle of a building footprint. The
|
|
75
|
-
* wayfinding engine never learns the concept: an entrance reaches it as an
|
|
76
|
-
* ordinary route endpoint, exactly as a kiosk anchor does.
|
|
77
|
-
*
|
|
78
|
-
* A venue may author several; the SDK chooses between them by cost and never
|
|
79
|
-
* asks the visitor to pick. Authoring none is permanent, supported behavior —
|
|
80
|
-
* such a venue keeps marker-point targeting forever.
|
|
81
|
-
*/
|
|
82
|
-
export declare const VenueEntranceSchema: z.ZodObject<{
|
|
83
|
-
layer: z.ZodString;
|
|
84
|
-
point: z.ZodObject<{
|
|
85
|
-
x: z.ZodNumber;
|
|
86
|
-
y: z.ZodNumber;
|
|
87
|
-
}, z.core.$strip>;
|
|
88
|
-
name: z.ZodOptional<z.ZodString>;
|
|
89
|
-
}, z.core.$loose>;
|
|
90
|
-
/**
|
|
91
|
-
* The plan's whole-campus frame (Revision 9): an axis-aligned rectangle in
|
|
92
|
-
* plan-local coordinates, with no angle. Plan-wide although a venue carries it
|
|
93
|
-
* — the first carrier by `order` wins. A usable one has finite members and a
|
|
94
|
-
* positive `width` and `height`; that, like every venue constraint, is the
|
|
95
|
-
* parser's to enforce (`campus-viewbox-invalid`), not this schema's.
|
|
96
|
-
*/
|
|
97
|
-
export declare const VenueCampusViewboxSchema: z.ZodObject<{
|
|
98
|
-
x: z.ZodNumber;
|
|
99
|
-
y: z.ZodNumber;
|
|
100
|
-
width: z.ZodNumber;
|
|
101
|
-
height: z.ZodNumber;
|
|
102
|
-
}, z.core.$loose>;
|
|
103
|
-
/**
|
|
104
|
-
* The shape the config parses with: same fields, no constraints. Anything
|
|
105
|
-
* structurally venue-like survives into the payload so the quarantine — not the
|
|
106
|
-
* parser — decides what to drop.
|
|
107
|
-
*/
|
|
108
|
-
export declare const VenueSchema: z.ZodObject<{
|
|
109
|
-
id: z.ZodString;
|
|
110
|
-
name: z.ZodString;
|
|
111
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
112
|
-
levels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
113
|
-
layer: z.ZodOptional<z.ZodString>;
|
|
114
|
-
ordinal: z.ZodOptional<z.ZodInt>;
|
|
115
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
116
|
-
initial: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
117
|
-
}, z.core.$loose>>>;
|
|
118
|
-
contour: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
119
|
-
x: z.ZodNumber;
|
|
120
|
-
y: z.ZodNumber;
|
|
121
|
-
}, z.core.$strip>>>;
|
|
122
|
-
markerPoint: z.ZodOptional<z.ZodObject<{
|
|
123
|
-
x: z.ZodNumber;
|
|
124
|
-
y: z.ZodNumber;
|
|
125
|
-
}, z.core.$strip>>;
|
|
126
|
-
detailMinSizePx: z.ZodOptional<z.ZodNumber>;
|
|
127
|
-
markerMaxSizePx: z.ZodOptional<z.ZodNumber>;
|
|
128
|
-
layers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
129
|
-
layer: z.ZodOptional<z.ZodString>;
|
|
130
|
-
render: z.ZodOptional<z.ZodEnum<{
|
|
131
|
-
marker: "marker";
|
|
132
|
-
scene: "scene";
|
|
133
|
-
}>>;
|
|
134
|
-
replacesDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
135
|
-
suppressesLabel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
136
|
-
minSizePx: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
137
|
-
maxSizePx: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"detail">]>>>;
|
|
138
|
-
}, z.core.$loose>>>;
|
|
139
|
-
entrances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
140
|
-
layer: z.ZodOptional<z.ZodString>;
|
|
141
|
-
point: z.ZodOptional<z.ZodObject<{
|
|
142
|
-
x: z.ZodNumber;
|
|
143
|
-
y: z.ZodNumber;
|
|
144
|
-
}, z.core.$strip>>;
|
|
145
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
146
|
-
}, z.core.$loose>>>;
|
|
147
|
-
campusViewbox: z.ZodOptional<z.ZodObject<{
|
|
148
|
-
x: z.ZodOptional<z.ZodNumber>;
|
|
149
|
-
y: z.ZodOptional<z.ZodNumber>;
|
|
150
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
151
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
152
|
-
}, z.core.$loose>>;
|
|
153
|
-
}, z.core.$loose>;
|
|
154
|
-
/** Wire version of the multi-venue payload. Revision 2 defines version 1. */
|
|
155
|
-
export declare const VenuesVersionSchema: z.ZodLiteral<1>;
|
|
156
|
-
/**
|
|
157
|
-
* The venue-bearing slice of the `data.js` payload, as the parser receives it.
|
|
158
|
-
*
|
|
159
|
-
* Both fields are optional and the object is loose: callers hand the whole data
|
|
160
|
-
* module over, and a plan with no venues omits them entirely. A payload that
|
|
161
|
-
* carries `venues` under a version the runtime does not know is the parser's
|
|
162
|
-
* problem to report, not a reason to reject the shape here.
|
|
163
|
-
*/
|
|
164
|
-
export declare const VenuePayloadSchema: z.ZodObject<{
|
|
165
|
-
venuesVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
166
|
-
venues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
167
|
-
id: z.ZodString;
|
|
168
|
-
name: z.ZodString;
|
|
169
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
170
|
-
levels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
171
|
-
layer: z.ZodOptional<z.ZodString>;
|
|
172
|
-
ordinal: z.ZodOptional<z.ZodInt>;
|
|
173
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
174
|
-
initial: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
175
|
-
}, z.core.$loose>>>;
|
|
176
|
-
contour: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
177
|
-
x: z.ZodNumber;
|
|
178
|
-
y: z.ZodNumber;
|
|
179
|
-
}, z.core.$strip>>>;
|
|
180
|
-
markerPoint: z.ZodOptional<z.ZodObject<{
|
|
181
|
-
x: z.ZodNumber;
|
|
182
|
-
y: z.ZodNumber;
|
|
183
|
-
}, z.core.$strip>>;
|
|
184
|
-
detailMinSizePx: z.ZodOptional<z.ZodNumber>;
|
|
185
|
-
markerMaxSizePx: z.ZodOptional<z.ZodNumber>;
|
|
186
|
-
layers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
187
|
-
layer: z.ZodOptional<z.ZodString>;
|
|
188
|
-
render: z.ZodOptional<z.ZodEnum<{
|
|
189
|
-
marker: "marker";
|
|
190
|
-
scene: "scene";
|
|
191
|
-
}>>;
|
|
192
|
-
replacesDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
193
|
-
suppressesLabel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
194
|
-
minSizePx: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
195
|
-
maxSizePx: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"detail">]>>>;
|
|
196
|
-
}, z.core.$loose>>>;
|
|
197
|
-
entrances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
198
|
-
layer: z.ZodOptional<z.ZodString>;
|
|
199
|
-
point: z.ZodOptional<z.ZodObject<{
|
|
200
|
-
x: z.ZodNumber;
|
|
201
|
-
y: z.ZodNumber;
|
|
202
|
-
}, z.core.$strip>>;
|
|
203
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
204
|
-
}, z.core.$loose>>>;
|
|
205
|
-
campusViewbox: z.ZodOptional<z.ZodObject<{
|
|
206
|
-
x: z.ZodOptional<z.ZodNumber>;
|
|
207
|
-
y: z.ZodOptional<z.ZodNumber>;
|
|
208
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
209
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
210
|
-
}, z.core.$loose>>;
|
|
211
|
-
}, z.core.$loose>>>;
|
|
212
|
-
}, z.core.$loose>;
|
|
213
|
-
export type VenuePoint = z.infer<typeof VenuePointSchema>;
|
|
214
|
-
export type VenueRenderMode = z.infer<typeof VenueRenderModeSchema>;
|
|
215
|
-
export type VenueSizeBound = z.infer<typeof VenueSizeBoundSchema>;
|
|
216
|
-
export type RawVenueLevel = z.infer<typeof VenueLevelSchema>;
|
|
217
|
-
export type RawVenueAuxLayer = z.infer<typeof VenueAuxLayerSchema>;
|
|
218
|
-
export type RawVenueEntrance = z.infer<typeof VenueEntranceSchema>;
|
|
219
|
-
export type VenueCampusViewbox = z.infer<typeof VenueCampusViewboxSchema>;
|
|
220
|
-
export type RawVenue = z.infer<typeof VenueSchema>;
|
|
221
|
-
export type VenuePayload = z.infer<typeof VenuePayloadSchema>;
|
|
222
|
-
//# sourceMappingURL=venues.d.ts.map
|