@expofp/schema 3.11.12
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 +20 -0
- package/dist/index.js +19 -0
- package/dist/lib/booth.d.ts +74 -0
- package/dist/lib/booth.js +35 -0
- package/dist/lib/camera.d.ts +21 -0
- package/dist/lib/camera.js +25 -0
- package/dist/lib/categories.d.ts +9 -0
- package/dist/lib/categories.js +7 -0
- package/dist/lib/config-defaults.d.ts +112 -0
- package/dist/lib/config-defaults.js +121 -0
- package/dist/lib/config.d.ts +1657 -0
- package/dist/lib/config.js +340 -0
- package/dist/lib/exhibitor.d.ts +65 -0
- package/dist/lib/exhibitor.js +67 -0
- package/dist/lib/filters.d.ts +23 -0
- package/dist/lib/filters.js +24 -0
- package/dist/lib/flags.d.ts +23 -0
- package/dist/lib/flags.js +22 -0
- package/dist/lib/fp-geo.d.ts +95 -0
- package/dist/lib/fp-geo.js +41 -0
- package/dist/lib/fp-svg.d.ts +301 -0
- package/dist/lib/fp-svg.js +177 -0
- package/dist/lib/heatmap.d.ts +23 -0
- package/dist/lib/heatmap.js +24 -0
- package/dist/lib/intents.d.ts +129 -0
- package/dist/lib/intents.js +131 -0
- package/dist/lib/kiosk.d.ts +30 -0
- package/dist/lib/kiosk.js +42 -0
- package/dist/lib/maplibre.d.ts +24 -0
- package/dist/lib/maplibre.js +37 -0
- package/dist/lib/poi-types.d.ts +12 -0
- package/dist/lib/poi-types.js +10 -0
- package/dist/lib/schedule.d.ts +25 -0
- package/dist/lib/schedule.js +20 -0
- package/dist/lib/search.d.ts +51 -0
- package/dist/lib/search.js +36 -0
- package/dist/lib/visibility.d.ts +16 -0
- package/dist/lib/visibility.js +17 -0
- package/dist/lib/wayfinding.d.ts +116 -0
- package/dist/lib/wayfinding.js +52 -0
- package/package.json +35 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Schema for the legacy `wf.data.js` wayfinding payload served next to
|
|
4
|
+
* `data.js`. Like `fp.svg.js` it is a `window`-assigning `.js` script,
|
|
5
|
+
* evaluated by `evalJsToJson` (`@expofp/utils`) and reached through a `.js`
|
|
6
|
+
* `$ref` by `resolve` (`@expofp/resolve`); the runtime consumes the graph in
|
|
7
|
+
* `wayfinding/adapters/graphDataSource.ts` (`lines` + `lineEnds`; `walls` has no
|
|
8
|
+
* consumer).
|
|
9
|
+
*/
|
|
10
|
+
/** A wayfinding graph vertex. `layer` is omitted on some virtual endpoints. */
|
|
11
|
+
export declare const WfPointSchema: z.ZodObject<{
|
|
12
|
+
x: z.ZodNumber;
|
|
13
|
+
y: z.ZodNumber;
|
|
14
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
|
+
/**
|
|
17
|
+
* One wayfinding graph edge — the raw form of `GraphLine`
|
|
18
|
+
* (`wayfinding/core/types.ts`); omitted booleans read as `false` and an omitted
|
|
19
|
+
* `weight` as the default line weight.
|
|
20
|
+
*/
|
|
21
|
+
export declare const WfLineSchema: z.ZodObject<{
|
|
22
|
+
p0: z.ZodObject<{
|
|
23
|
+
x: z.ZodNumber;
|
|
24
|
+
y: z.ZodNumber;
|
|
25
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
p1: z.ZodObject<{
|
|
28
|
+
x: z.ZodNumber;
|
|
29
|
+
y: z.ZodNumber;
|
|
30
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
/** A virtual (floor-transition) link rather than a physical path segment. */
|
|
34
|
+
virtual: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
/** Excluded when routing accessible-only. */
|
|
36
|
+
unaccessible: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
/** One-way edge: no reverse link in oriented mode. */
|
|
38
|
+
unidirection: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
/** Custom cost for virtual links ("Virtual length" in the designer). */
|
|
40
|
+
virtualLength: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
}, z.core.$loose>;
|
|
42
|
+
/** `__wfData`: the wayfinding graph. */
|
|
43
|
+
export declare const WfDataSchema: z.ZodObject<{
|
|
44
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
45
|
+
p0: z.ZodObject<{
|
|
46
|
+
x: z.ZodNumber;
|
|
47
|
+
y: z.ZodNumber;
|
|
48
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$loose>;
|
|
50
|
+
p1: z.ZodObject<{
|
|
51
|
+
x: z.ZodNumber;
|
|
52
|
+
y: z.ZodNumber;
|
|
53
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, z.core.$loose>;
|
|
55
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
/** A virtual (floor-transition) link rather than a physical path segment. */
|
|
57
|
+
virtual: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
/** Excluded when routing accessible-only. */
|
|
59
|
+
unaccessible: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
/** One-way edge: no reverse link in oriented mode. */
|
|
61
|
+
unidirection: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
/** Custom cost for virtual links ("Virtual length" in the designer). */
|
|
63
|
+
virtualLength: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
}, z.core.$loose>>>;
|
|
65
|
+
lineEnds: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
66
|
+
x: z.ZodNumber;
|
|
67
|
+
y: z.ZodNumber;
|
|
68
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, z.core.$loose>>>;
|
|
70
|
+
walls: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
71
|
+
}, z.core.$loose>;
|
|
72
|
+
/** The evaluated `wf.data.js` payload. */
|
|
73
|
+
export declare const WfDataJsSchema: z.ZodObject<{
|
|
74
|
+
__wfData: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
76
|
+
p0: z.ZodObject<{
|
|
77
|
+
x: z.ZodNumber;
|
|
78
|
+
y: z.ZodNumber;
|
|
79
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$loose>;
|
|
81
|
+
p1: z.ZodObject<{
|
|
82
|
+
x: z.ZodNumber;
|
|
83
|
+
y: z.ZodNumber;
|
|
84
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$loose>;
|
|
86
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
/** A virtual (floor-transition) link rather than a physical path segment. */
|
|
88
|
+
virtual: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
/** Excluded when routing accessible-only. */
|
|
90
|
+
unaccessible: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
/** One-way edge: no reverse link in oriented mode. */
|
|
92
|
+
unidirection: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
/** Custom cost for virtual links ("Virtual length" in the designer). */
|
|
94
|
+
virtualLength: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
}, z.core.$loose>>>;
|
|
96
|
+
lineEnds: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
97
|
+
x: z.ZodNumber;
|
|
98
|
+
y: z.ZodNumber;
|
|
99
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, z.core.$loose>>>;
|
|
101
|
+
walls: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
102
|
+
}, z.core.$loose>>;
|
|
103
|
+
}, z.core.$loose>;
|
|
104
|
+
/**
|
|
105
|
+
* A `$ref` to the expo's `wf.data.js`. The graph is not loaded eagerly:
|
|
106
|
+
* `resolve()` evaluates the ref on demand into a {@link WfDataJsSchema} payload.
|
|
107
|
+
*/
|
|
108
|
+
export declare const WfDataJsRefSchema: z.ZodObject<{
|
|
109
|
+
$ref: z.ZodString;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
export type WfPoint = z.infer<typeof WfPointSchema>;
|
|
112
|
+
export type WfLine = z.infer<typeof WfLineSchema>;
|
|
113
|
+
export type WfData = z.infer<typeof WfDataSchema>;
|
|
114
|
+
export type WfDataJs = z.infer<typeof WfDataJsSchema>;
|
|
115
|
+
export type WfDataJsRef = z.infer<typeof WfDataJsRefSchema>;
|
|
116
|
+
//# sourceMappingURL=wayfinding.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Schema for the legacy `wf.data.js` wayfinding payload served next to
|
|
4
|
+
* `data.js`. Like `fp.svg.js` it is a `window`-assigning `.js` script,
|
|
5
|
+
* evaluated by `evalJsToJson` (`@expofp/utils`) and reached through a `.js`
|
|
6
|
+
* `$ref` by `resolve` (`@expofp/resolve`); the runtime consumes the graph in
|
|
7
|
+
* `wayfinding/adapters/graphDataSource.ts` (`lines` + `lineEnds`; `walls` has no
|
|
8
|
+
* consumer).
|
|
9
|
+
*/
|
|
10
|
+
/** A wayfinding graph vertex. `layer` is omitted on some virtual endpoints. */
|
|
11
|
+
export const WfPointSchema = z.looseObject({
|
|
12
|
+
x: z.number(),
|
|
13
|
+
y: z.number(),
|
|
14
|
+
layer: z.string().optional(),
|
|
15
|
+
});
|
|
16
|
+
/**
|
|
17
|
+
* One wayfinding graph edge — the raw form of `GraphLine`
|
|
18
|
+
* (`wayfinding/core/types.ts`); omitted booleans read as `false` and an omitted
|
|
19
|
+
* `weight` as the default line weight.
|
|
20
|
+
*/
|
|
21
|
+
export const WfLineSchema = z.looseObject({
|
|
22
|
+
p0: WfPointSchema,
|
|
23
|
+
p1: WfPointSchema,
|
|
24
|
+
weight: z.number().optional(),
|
|
25
|
+
/** A virtual (floor-transition) link rather than a physical path segment. */
|
|
26
|
+
virtual: z.boolean().optional(),
|
|
27
|
+
/** Excluded when routing accessible-only. */
|
|
28
|
+
unaccessible: z.boolean().optional(),
|
|
29
|
+
/** One-way edge: no reverse link in oriented mode. */
|
|
30
|
+
unidirection: z.boolean().optional(),
|
|
31
|
+
/** Custom cost for virtual links ("Virtual length" in the designer). */
|
|
32
|
+
virtualLength: z.number().optional(),
|
|
33
|
+
});
|
|
34
|
+
/** `__wfData`: the wayfinding graph. */
|
|
35
|
+
export const WfDataSchema = z.looseObject({
|
|
36
|
+
lines: z.array(WfLineSchema).optional(),
|
|
37
|
+
lineEnds: z.array(WfPointSchema).optional(),
|
|
38
|
+
walls: z.array(z.unknown()).optional(),
|
|
39
|
+
});
|
|
40
|
+
/** The evaluated `wf.data.js` payload. */
|
|
41
|
+
export const WfDataJsSchema = z.looseObject({
|
|
42
|
+
__wfData: WfDataSchema.optional(),
|
|
43
|
+
});
|
|
44
|
+
/**
|
|
45
|
+
* A `$ref` to the expo's `wf.data.js`. The graph is not loaded eagerly:
|
|
46
|
+
* `resolve()` evaluates the ref on demand into a {@link WfDataJsSchema} payload.
|
|
47
|
+
*/
|
|
48
|
+
export const WfDataJsRefSchema = z
|
|
49
|
+
.object({
|
|
50
|
+
$ref: z.string(),
|
|
51
|
+
})
|
|
52
|
+
.meta({ refSchema: WfDataJsSchema });
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@expofp/schema",
|
|
3
|
+
"version": "3.11.12",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "ExpoFP SDK internal: expo data schemas and types",
|
|
6
|
+
"homepage": "https://developer.expofp.com/",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"module": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
"./package.json": "./package.json",
|
|
16
|
+
".": {
|
|
17
|
+
"@expofp/source": "./src/index.ts",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"tslib": "^2.3.0",
|
|
25
|
+
"zod": "4.3.5"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@expofp/utils": "3.11.12"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"!**/*.tsbuildinfo",
|
|
33
|
+
"!**/*.map"
|
|
34
|
+
]
|
|
35
|
+
}
|