@expofp/schema 3.43.0 → 3.44.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.
@@ -59,6 +59,24 @@ export declare const ConfigSchema: z.ZodObject<{
59
59
  tours: "tours";
60
60
  visited: "visited";
61
61
  }>], null>;
62
+ }, z.core.$strip>, z.ZodObject<{
63
+ name: z.ZodLiteral<"showSessions">;
64
+ args: z.ZodTuple<[z.ZodObject<{
65
+ tracks: z.ZodOptional<z.ZodArray<z.ZodString>>;
66
+ venues: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
+ date: z.ZodOptional<z.ZodEnum<{
68
+ past: "past";
69
+ today: "today";
70
+ tomorrow: "tomorrow";
71
+ }>>;
72
+ time: z.ZodOptional<z.ZodEnum<{
73
+ afternoon: "afternoon";
74
+ midday: "midday";
75
+ morning: "morning";
76
+ }>>;
77
+ bookmarked: z.ZodOptional<z.ZodBoolean>;
78
+ live: z.ZodOptional<z.ZodBoolean>;
79
+ }, z.core.$strip>], null>;
62
80
  }, z.core.$strip>, z.ZodObject<{
63
81
  name: z.ZodLiteral<"selectTour">;
64
82
  args: z.ZodTuple<[z.ZodString], null>;
@@ -426,6 +444,24 @@ export declare const DataSchema: z.ZodObject<{
426
444
  tours: "tours";
427
445
  visited: "visited";
428
446
  }>], null>;
447
+ }, z.core.$strip>, z.ZodObject<{
448
+ name: z.ZodLiteral<"showSessions">;
449
+ args: z.ZodTuple<[z.ZodObject<{
450
+ tracks: z.ZodOptional<z.ZodArray<z.ZodString>>;
451
+ venues: z.ZodOptional<z.ZodArray<z.ZodString>>;
452
+ date: z.ZodOptional<z.ZodEnum<{
453
+ past: "past";
454
+ today: "today";
455
+ tomorrow: "tomorrow";
456
+ }>>;
457
+ time: z.ZodOptional<z.ZodEnum<{
458
+ afternoon: "afternoon";
459
+ midday: "midday";
460
+ morning: "morning";
461
+ }>>;
462
+ bookmarked: z.ZodOptional<z.ZodBoolean>;
463
+ live: z.ZodOptional<z.ZodBoolean>;
464
+ }, z.core.$strip>], null>;
429
465
  }, z.core.$strip>, z.ZodObject<{
430
466
  name: z.ZodLiteral<"selectTour">;
431
467
  args: z.ZodTuple<[z.ZodString], null>;
@@ -804,6 +840,24 @@ export declare const DataJsSchema: z.ZodObject<{
804
840
  tours: "tours";
805
841
  visited: "visited";
806
842
  }>], null>;
843
+ }, z.core.$strip>, z.ZodObject<{
844
+ name: z.ZodLiteral<"showSessions">;
845
+ args: z.ZodTuple<[z.ZodObject<{
846
+ tracks: z.ZodOptional<z.ZodArray<z.ZodString>>;
847
+ venues: z.ZodOptional<z.ZodArray<z.ZodString>>;
848
+ date: z.ZodOptional<z.ZodEnum<{
849
+ past: "past";
850
+ today: "today";
851
+ tomorrow: "tomorrow";
852
+ }>>;
853
+ time: z.ZodOptional<z.ZodEnum<{
854
+ afternoon: "afternoon";
855
+ midday: "midday";
856
+ morning: "morning";
857
+ }>>;
858
+ bookmarked: z.ZodOptional<z.ZodBoolean>;
859
+ live: z.ZodOptional<z.ZodBoolean>;
860
+ }, z.core.$strip>], null>;
807
861
  }, z.core.$strip>, z.ZodObject<{
808
862
  name: z.ZodLiteral<"selectTour">;
809
863
  args: z.ZodTuple<[z.ZodString], null>;
@@ -1176,6 +1230,24 @@ export declare const ManifestSchema: z.ZodObject<{
1176
1230
  tours: "tours";
1177
1231
  visited: "visited";
1178
1232
  }>], null>;
1233
+ }, z.core.$strip>, z.ZodObject<{
1234
+ name: z.ZodLiteral<"showSessions">;
1235
+ args: z.ZodTuple<[z.ZodObject<{
1236
+ tracks: z.ZodOptional<z.ZodArray<z.ZodString>>;
1237
+ venues: z.ZodOptional<z.ZodArray<z.ZodString>>;
1238
+ date: z.ZodOptional<z.ZodEnum<{
1239
+ past: "past";
1240
+ today: "today";
1241
+ tomorrow: "tomorrow";
1242
+ }>>;
1243
+ time: z.ZodOptional<z.ZodEnum<{
1244
+ afternoon: "afternoon";
1245
+ midday: "midday";
1246
+ morning: "morning";
1247
+ }>>;
1248
+ bookmarked: z.ZodOptional<z.ZodBoolean>;
1249
+ live: z.ZodOptional<z.ZodBoolean>;
1250
+ }, z.core.$strip>], null>;
1179
1251
  }, z.core.$strip>, z.ZodObject<{
1180
1252
  name: z.ZodLiteral<"selectTour">;
1181
1253
  args: z.ZodTuple<[z.ZodString], null>;
@@ -1568,6 +1640,24 @@ export declare const UrlConfigSchema: z.ZodObject<{
1568
1640
  tours: "tours";
1569
1641
  visited: "visited";
1570
1642
  }>], null>;
1643
+ }, z.core.$strip>, z.ZodObject<{
1644
+ name: z.ZodLiteral<"showSessions">;
1645
+ args: z.ZodTuple<[z.ZodObject<{
1646
+ tracks: z.ZodOptional<z.ZodArray<z.ZodString>>;
1647
+ venues: z.ZodOptional<z.ZodArray<z.ZodString>>;
1648
+ date: z.ZodOptional<z.ZodEnum<{
1649
+ past: "past";
1650
+ today: "today";
1651
+ tomorrow: "tomorrow";
1652
+ }>>;
1653
+ time: z.ZodOptional<z.ZodEnum<{
1654
+ afternoon: "afternoon";
1655
+ midday: "midday";
1656
+ morning: "morning";
1657
+ }>>;
1658
+ bookmarked: z.ZodOptional<z.ZodBoolean>;
1659
+ live: z.ZodOptional<z.ZodBoolean>;
1660
+ }, z.core.$strip>], null>;
1571
1661
  }, z.core.$strip>, z.ZodObject<{
1572
1662
  name: z.ZodLiteral<"selectTour">;
1573
1663
  args: z.ZodTuple<[z.ZodString], null>;
@@ -18,6 +18,26 @@ export declare const PlannerOptionsSchema: z.ZodObject<{
18
18
  from: z.ZodOptional<z.ZodString>;
19
19
  fromBookmarks: z.ZodOptional<z.ZodBoolean>;
20
20
  }, z.core.$strip>;
21
+ /**
22
+ * Filters of the `showSessions` intent / `FloorPlan.showSessions` method — the
23
+ * sessions list's toolbar filters. An omitted field is off.
24
+ */
25
+ export declare const SessionsFiltersSchema: z.ZodObject<{
26
+ tracks: z.ZodOptional<z.ZodArray<z.ZodString>>;
27
+ venues: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
+ date: z.ZodOptional<z.ZodEnum<{
29
+ past: "past";
30
+ today: "today";
31
+ tomorrow: "tomorrow";
32
+ }>>;
33
+ time: z.ZodOptional<z.ZodEnum<{
34
+ afternoon: "afternoon";
35
+ midday: "midday";
36
+ morning: "morning";
37
+ }>>;
38
+ bookmarked: z.ZodOptional<z.ZodBoolean>;
39
+ live: z.ZodOptional<z.ZodBoolean>;
40
+ }, z.core.$strip>;
21
41
  /**
22
42
  * The visitor position of the `selectCurrentPosition` intent /
23
43
  * `FloorPlan.selectCurrentPosition` method — the floor plan's
@@ -66,6 +86,24 @@ export declare const IntentsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
66
86
  tours: "tours";
67
87
  visited: "visited";
68
88
  }>], null>;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ name: z.ZodLiteral<"showSessions">;
91
+ args: z.ZodTuple<[z.ZodObject<{
92
+ tracks: z.ZodOptional<z.ZodArray<z.ZodString>>;
93
+ venues: z.ZodOptional<z.ZodArray<z.ZodString>>;
94
+ date: z.ZodOptional<z.ZodEnum<{
95
+ past: "past";
96
+ today: "today";
97
+ tomorrow: "tomorrow";
98
+ }>>;
99
+ time: z.ZodOptional<z.ZodEnum<{
100
+ afternoon: "afternoon";
101
+ midday: "midday";
102
+ morning: "morning";
103
+ }>>;
104
+ bookmarked: z.ZodOptional<z.ZodBoolean>;
105
+ live: z.ZodOptional<z.ZodBoolean>;
106
+ }, z.core.$strip>], null>;
69
107
  }, z.core.$strip>, z.ZodObject<{
70
108
  name: z.ZodLiteral<"selectTour">;
71
109
  args: z.ZodTuple<[z.ZodString], null>;
@@ -127,6 +165,8 @@ export type Intent = z.infer<typeof IntentsSchema>;
127
165
  export type ListPanel = z.infer<typeof ListPanelSchema>;
128
166
  /** Options of the `openPlanner` intent — see {@link PlannerOptionsSchema}. */
129
167
  export type PlannerOptions = z.infer<typeof PlannerOptionsSchema>;
168
+ /** Filters of the `showSessions` intent — see {@link SessionsFiltersSchema}. */
169
+ export type SessionsFilters = z.infer<typeof SessionsFiltersSchema>;
130
170
  /** The `selectCurrentPosition` point — see {@link CurrentPositionSchema}. */
131
171
  export type CurrentPosition = z.infer<typeof CurrentPositionSchema>;
132
172
  //# sourceMappingURL=intents.d.ts.map
@@ -23,6 +23,24 @@ export const PlannerOptionsSchema = z.object({
23
23
  /** Fill the planner from the visitor's bookmarks instead of `items`. */
24
24
  fromBookmarks: z.boolean().optional(),
25
25
  });
26
+ /**
27
+ * Filters of the `showSessions` intent / `FloorPlan.showSessions` method — the
28
+ * sessions list's toolbar filters. An omitted field is off.
29
+ */
30
+ export const SessionsFiltersSchema = z.object({
31
+ /** Tracks to show: names, external ids or ids. */
32
+ tracks: z.array(z.string()).optional(),
33
+ /** Venues (the booths sessions take place in) to show: names, external ids or ids. */
34
+ venues: z.array(z.string()).optional(),
35
+ /** Day to show. */
36
+ date: z.enum(['today', 'tomorrow', 'past']).optional(),
37
+ /** Time of day to show; it narrows the list only together with `date: 'today'`. */
38
+ time: z.enum(['morning', 'midday', 'afternoon']).optional(),
39
+ /** Only the visitor's bookmarked sessions. */
40
+ bookmarked: z.boolean().optional(),
41
+ /** Only the sessions happening now. */
42
+ live: z.boolean().optional(),
43
+ });
26
44
  /**
27
45
  * The visitor position of the `selectCurrentPosition` intent /
28
46
  * `FloorPlan.selectCurrentPosition` method — the floor plan's
@@ -78,6 +96,10 @@ export const IntentsSchema = z.discriminatedUnion('name', [
78
96
  name: z.literal('showList'),
79
97
  args: z.tuple([ListPanelSchema]),
80
98
  }),
99
+ z.object({
100
+ name: z.literal('showSessions'),
101
+ args: z.tuple([SessionsFiltersSchema]),
102
+ }),
81
103
  z.object({
82
104
  name: z.literal('selectTour'),
83
105
  args: z.tuple([z.string()]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expofp/schema",
3
- "version": "3.43.0",
3
+ "version": "3.44.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.43.0"
28
+ "@expofp/utils": "3.44.0"
29
29
  },
30
30
  "files": [
31
31
  "dist",