@expofp/schema 3.48.0 → 3.49.1

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.
@@ -4,6 +4,7 @@ export declare const RawCategorySchema: z.ZodObject<{
4
4
  id: z.ZodNumber;
5
5
  name: z.ZodString;
6
6
  sponsorship: z.ZodOptional<z.ZodBoolean>;
7
+ type: z.ZodOptional<z.ZodString>;
7
8
  }, z.core.$loose>;
8
9
  export type RawCategory = z.infer<typeof RawCategorySchema>;
9
10
  //# sourceMappingURL=categories.d.ts.map
@@ -4,4 +4,7 @@ export const RawCategorySchema = z.looseObject({
4
4
  id: z.number(),
5
5
  name: z.string(),
6
6
  sponsorship: z.boolean().optional(),
7
+ // Plain string, no enum: the platform adds types over time (`product` first);
8
+ // absent means `default`.
9
+ type: z.string().optional(),
7
10
  });
@@ -241,6 +241,7 @@ export declare const ConfigSchema: z.ZodObject<{
241
241
  id: z.ZodNumber;
242
242
  name: z.ZodString;
243
243
  sponsorship: z.ZodOptional<z.ZodBoolean>;
244
+ type: z.ZodOptional<z.ZodString>;
244
245
  }, z.core.$loose>>;
245
246
  poiTypes: z.ZodArray<z.ZodObject<{
246
247
  id: z.ZodNumber;
@@ -322,6 +323,7 @@ export declare const ConfigSchema: z.ZodObject<{
322
323
  count: z.ZodOptional<z.ZodNumber>;
323
324
  linkUrl: z.ZodOptional<z.ZodString>;
324
325
  }, z.core.$loose>>>;
326
+ categoryType: z.ZodOptional<z.ZodString>;
325
327
  }, z.core.$loose>>>;
326
328
  }, z.core.$loose>;
327
329
  enableRotation: z.ZodBoolean;
@@ -627,6 +629,7 @@ export declare const DataSchema: z.ZodObject<{
627
629
  id: z.ZodNumber;
628
630
  name: z.ZodString;
629
631
  sponsorship: z.ZodOptional<z.ZodBoolean>;
632
+ type: z.ZodOptional<z.ZodString>;
630
633
  }, z.core.$loose>>>;
631
634
  poiTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
632
635
  id: z.ZodNumber;
@@ -708,6 +711,7 @@ export declare const DataSchema: z.ZodObject<{
708
711
  count: z.ZodOptional<z.ZodNumber>;
709
712
  linkUrl: z.ZodOptional<z.ZodString>;
710
713
  }, z.core.$loose>>>;
714
+ categoryType: z.ZodOptional<z.ZodString>;
711
715
  }, z.core.$loose>>>;
712
716
  }, z.core.$loose>>;
713
717
  enableRotation: z.ZodOptional<z.ZodBoolean>;
@@ -1024,6 +1028,7 @@ export declare const DataJsSchema: z.ZodObject<{
1024
1028
  id: z.ZodNumber;
1025
1029
  name: z.ZodString;
1026
1030
  sponsorship: z.ZodOptional<z.ZodBoolean>;
1031
+ type: z.ZodOptional<z.ZodString>;
1027
1032
  }, z.core.$loose>>>;
1028
1033
  poiTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1029
1034
  id: z.ZodNumber;
@@ -1105,6 +1110,7 @@ export declare const DataJsSchema: z.ZodObject<{
1105
1110
  count: z.ZodOptional<z.ZodNumber>;
1106
1111
  linkUrl: z.ZodOptional<z.ZodString>;
1107
1112
  }, z.core.$loose>>>;
1113
+ categoryType: z.ZodOptional<z.ZodString>;
1108
1114
  }, z.core.$loose>>>;
1109
1115
  }, z.core.$loose>>;
1110
1116
  enableRotation: z.ZodOptional<z.ZodBoolean>;
@@ -1415,6 +1421,7 @@ export declare const ManifestSchema: z.ZodObject<{
1415
1421
  id: z.ZodNumber;
1416
1422
  name: z.ZodString;
1417
1423
  sponsorship: z.ZodOptional<z.ZodBoolean>;
1424
+ type: z.ZodOptional<z.ZodString>;
1418
1425
  }, z.core.$loose>>>;
1419
1426
  poiTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1420
1427
  id: z.ZodNumber;
@@ -1496,6 +1503,7 @@ export declare const ManifestSchema: z.ZodObject<{
1496
1503
  count: z.ZodOptional<z.ZodNumber>;
1497
1504
  linkUrl: z.ZodOptional<z.ZodString>;
1498
1505
  }, z.core.$loose>>>;
1506
+ categoryType: z.ZodOptional<z.ZodString>;
1499
1507
  }, z.core.$loose>>>;
1500
1508
  }, z.core.$loose>>;
1501
1509
  enableRotation: z.ZodOptional<z.ZodBoolean>;
@@ -21,5 +21,9 @@ export const FiltersSchema = z.object({
21
21
  poiTypes: z.array(z.string()).optional(),
22
22
  /** `true` opens the exhibitors list at boot. */
23
23
  exhibitors: z.boolean().optional(),
24
+ /**
25
+ * @deprecated Read and ignored: each search button derives its picks from the
26
+ * category list. Kept so links written by 3.47.0 still parse.
27
+ */
24
28
  searchButton: z.string().optional(),
25
29
  });
@@ -23,6 +23,7 @@ export declare const SearchButtonSchema: z.ZodObject<{
23
23
  count: z.ZodOptional<z.ZodNumber>;
24
24
  linkUrl: z.ZodOptional<z.ZodString>;
25
25
  }, z.core.$loose>>>;
26
+ categoryType: z.ZodOptional<z.ZodString>;
26
27
  }, z.core.$loose>;
27
28
  /** The config's `filterButtonsConfig`: the search/filter button set and its sort. */
28
29
  export declare const FilterButtonsConfigSchema: z.ZodObject<{
@@ -46,6 +47,7 @@ export declare const FilterButtonsConfigSchema: z.ZodObject<{
46
47
  count: z.ZodOptional<z.ZodNumber>;
47
48
  linkUrl: z.ZodOptional<z.ZodString>;
48
49
  }, z.core.$loose>>>;
50
+ categoryType: z.ZodOptional<z.ZodString>;
49
51
  }, z.core.$loose>>>;
50
52
  }, z.core.$loose>;
51
53
  //# sourceMappingURL=search.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import * as z from 'zod';
2
2
  // Kept as plain strings: the platform emits more types over time (known set:
3
- // bookmarks, visited, sessions, guided_tours, categories, poi_type, poi_types,
4
- // link, exhibitors — see floorplan's SearchButtonType), and the runtime ignores
3
+ // bookmarks, visited, sessions, guided_tours, categories, products, poi_type,
4
+ // poi_types, link, exhibitors — see floorplan's SearchButtonType), and the runtime ignores
5
5
  // the ones it does not recognize; an enum here would fail the whole config load.
6
6
  export const SearchButtonChildSchema = z.looseObject({
7
7
  id: z.union([z.number(), z.string()]).optional(),
@@ -27,6 +27,11 @@ export const SearchButtonSchema = z.looseObject({
27
27
  builtIn: z.boolean().optional(),
28
28
  order: z.number().optional(),
29
29
  children: z.array(SearchButtonChildSchema).optional(),
30
+ // `type: 'categories'` buttons only: which category type the button lists
31
+ // (absent = `default`, the built-in Categories button). The platform's built-in
32
+ // `type: 'products'` button omits it and lists `product`. A plain string for
33
+ // the same reason as `type` above.
34
+ categoryType: z.string().optional(),
30
35
  });
31
36
  /** The config's `filterButtonsConfig`: the search/filter button set and its sort. */
32
37
  export const FilterButtonsConfigSchema = z.looseObject({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expofp/schema",
3
- "version": "3.48.0",
3
+ "version": "3.49.1",
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.48.0"
28
+ "@expofp/utils": "3.49.1"
29
29
  },
30
30
  "files": [
31
31
  "dist",