@coveo/thermidor-schema 1.0.0-beta.24 → 1.0.0-beta.25
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/generated/schemas.d.ts +479 -0
- package/dist/generated/schemas.js +114 -0
- package/dist/generated/zod3/index.d.ts +2 -2
- package/dist/generated/zod3/index.js +1 -1
- package/dist/generated/zod3/schemas.d.ts +9333 -5984
- package/dist/generated/zod3/schemas.js +114 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/schema/component-contracts.schema.json +3 -0
- package/schema/components/breadbox.schema.json +82 -0
- package/schema/definitions/breadbox-date-range-facet.schema.json +56 -0
- package/schema/definitions/breadbox-deselect-date-range.schema.json +28 -0
- package/schema/definitions/breadbox-deselect-hierarchical-path.schema.json +28 -0
- package/schema/definitions/breadbox-deselect-numerical-range.schema.json +28 -0
- package/schema/definitions/breadbox-deselect-payload.schema.json +20 -0
- package/schema/definitions/breadbox-deselect-regular-value.schema.json +25 -0
- package/schema/definitions/breadbox-facet.schema.json +20 -0
- package/schema/definitions/breadbox-hierarchical-facet.schema.json +37 -0
- package/schema/definitions/breadbox-numerical-range-facet.schema.json +56 -0
- package/schema/definitions/breadbox-regular-facet.schema.json +59 -0
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
|
+
export declare const BreadboxRegularFacetValueStateSchema: z.ZodEnum<{
|
|
3
|
+
excluded: "excluded";
|
|
4
|
+
selected: "selected";
|
|
5
|
+
}>;
|
|
6
|
+
export type BreadboxRegularFacetValueState = z.infer<typeof BreadboxRegularFacetValueStateSchema>;
|
|
2
7
|
export declare const CartUpdateOperationSchema: z.ZodEnum<{
|
|
3
8
|
add: "add";
|
|
4
9
|
remove: "remove";
|
|
@@ -27,6 +32,13 @@ export declare const SelectableFacetValueStateSchema: z.ZodEnum<{
|
|
|
27
32
|
selected: "selected";
|
|
28
33
|
}>;
|
|
29
34
|
export type SelectableFacetValueState = z.infer<typeof SelectableFacetValueStateSchema>;
|
|
35
|
+
export declare const BreadboxFacetTypeSchema: z.ZodEnum<{
|
|
36
|
+
dateRange: "dateRange";
|
|
37
|
+
hierarchical: "hierarchical";
|
|
38
|
+
numericalRange: "numericalRange";
|
|
39
|
+
regular: "regular";
|
|
40
|
+
}>;
|
|
41
|
+
export type BreadboxFacetType = z.infer<typeof BreadboxFacetTypeSchema>;
|
|
30
42
|
export declare const ProductSchema: z.ZodObject<{
|
|
31
43
|
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
32
44
|
children: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
|
|
@@ -73,6 +85,58 @@ export declare const ChildListClassSchema: z.ZodObject<{
|
|
|
73
85
|
path: z.ZodString;
|
|
74
86
|
}, z.core.$strict>;
|
|
75
87
|
export type ChildListClass = z.infer<typeof ChildListClassSchema>;
|
|
88
|
+
export declare const BreadboxRegularFacetValueSchema: z.ZodObject<{
|
|
89
|
+
state: z.ZodEnum<{
|
|
90
|
+
excluded: "excluded";
|
|
91
|
+
selected: "selected";
|
|
92
|
+
}>;
|
|
93
|
+
value: z.ZodString;
|
|
94
|
+
}, z.core.$strict>;
|
|
95
|
+
export type BreadboxRegularFacetValue = z.infer<typeof BreadboxRegularFacetValueSchema>;
|
|
96
|
+
export declare const BreadboxNumericalRangeFacetValueSchema: z.ZodObject<{
|
|
97
|
+
end: z.ZodNumber;
|
|
98
|
+
start: z.ZodNumber;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
export type BreadboxNumericalRangeFacetValue = z.infer<typeof BreadboxNumericalRangeFacetValueSchema>;
|
|
101
|
+
export declare const BreadboxDateRangeFacetValueSchema: z.ZodObject<{
|
|
102
|
+
end: z.ZodString;
|
|
103
|
+
start: z.ZodString;
|
|
104
|
+
}, z.core.$strict>;
|
|
105
|
+
export type BreadboxDateRangeFacetValue = z.infer<typeof BreadboxDateRangeFacetValueSchema>;
|
|
106
|
+
export declare const BreadboxHierarchicalFacetSchema: z.ZodObject<{
|
|
107
|
+
displayName: z.ZodString;
|
|
108
|
+
facetId: z.ZodString;
|
|
109
|
+
field: z.ZodString;
|
|
110
|
+
path: z.ZodArray<z.ZodString>;
|
|
111
|
+
type: z.ZodLiteral<"hierarchical">;
|
|
112
|
+
}, z.core.$strict>;
|
|
113
|
+
export type BreadboxHierarchicalFacet = z.infer<typeof BreadboxHierarchicalFacetSchema>;
|
|
114
|
+
export declare const BreadboxDeselectRegularValueSchema: z.ZodObject<{
|
|
115
|
+
facetId: z.ZodString;
|
|
116
|
+
type: z.ZodLiteral<"regular">;
|
|
117
|
+
value: z.ZodString;
|
|
118
|
+
}, z.core.$strict>;
|
|
119
|
+
export type BreadboxDeselectRegularValue = z.infer<typeof BreadboxDeselectRegularValueSchema>;
|
|
120
|
+
export declare const BreadboxDeselectNumericalRangeSchema: z.ZodObject<{
|
|
121
|
+
end: z.ZodNumber;
|
|
122
|
+
facetId: z.ZodString;
|
|
123
|
+
start: z.ZodNumber;
|
|
124
|
+
type: z.ZodLiteral<"numericalRange">;
|
|
125
|
+
}, z.core.$strict>;
|
|
126
|
+
export type BreadboxDeselectNumericalRange = z.infer<typeof BreadboxDeselectNumericalRangeSchema>;
|
|
127
|
+
export declare const BreadboxDeselectDateRangeSchema: z.ZodObject<{
|
|
128
|
+
end: z.ZodString;
|
|
129
|
+
facetId: z.ZodString;
|
|
130
|
+
start: z.ZodString;
|
|
131
|
+
type: z.ZodLiteral<"dateRange">;
|
|
132
|
+
}, z.core.$strict>;
|
|
133
|
+
export type BreadboxDeselectDateRange = z.infer<typeof BreadboxDeselectDateRangeSchema>;
|
|
134
|
+
export declare const BreadboxDeselectHierarchicalPathSchema: z.ZodObject<{
|
|
135
|
+
facetId: z.ZodString;
|
|
136
|
+
path: z.ZodArray<z.ZodString>;
|
|
137
|
+
type: z.ZodLiteral<"hierarchical">;
|
|
138
|
+
}, z.core.$strict>;
|
|
139
|
+
export type BreadboxDeselectHierarchicalPath = z.infer<typeof BreadboxDeselectHierarchicalPathSchema>;
|
|
76
140
|
export declare const ProductCarouselActionsSchema: z.ZodObject<{}, z.core.$strict>;
|
|
77
141
|
export type ProductCarouselActions = z.infer<typeof ProductCarouselActionsSchema>;
|
|
78
142
|
export declare const ProductCarouselStateSchema: z.ZodObject<{
|
|
@@ -437,6 +501,36 @@ export declare const FacetManagerActionsSchema: z.ZodObject<{}, z.core.$strict>;
|
|
|
437
501
|
export type FacetManagerActions = z.infer<typeof FacetManagerActionsSchema>;
|
|
438
502
|
export declare const FacetManagerStateSchema: z.ZodObject<{}, z.core.$strict>;
|
|
439
503
|
export type FacetManagerState = z.infer<typeof FacetManagerStateSchema>;
|
|
504
|
+
export declare const BreadboxDeselectPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
505
|
+
facetId: z.ZodString;
|
|
506
|
+
type: z.ZodLiteral<"regular">;
|
|
507
|
+
value: z.ZodString;
|
|
508
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
509
|
+
end: z.ZodNumber;
|
|
510
|
+
facetId: z.ZodString;
|
|
511
|
+
start: z.ZodNumber;
|
|
512
|
+
type: z.ZodLiteral<"numericalRange">;
|
|
513
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
514
|
+
end: z.ZodString;
|
|
515
|
+
facetId: z.ZodString;
|
|
516
|
+
start: z.ZodString;
|
|
517
|
+
type: z.ZodLiteral<"dateRange">;
|
|
518
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
519
|
+
facetId: z.ZodString;
|
|
520
|
+
path: z.ZodArray<z.ZodString>;
|
|
521
|
+
type: z.ZodLiteral<"hierarchical">;
|
|
522
|
+
}, z.core.$strict>], "type">;
|
|
523
|
+
export type BreadboxDeselectPayload = z.infer<typeof BreadboxDeselectPayloadSchema>;
|
|
524
|
+
export declare const BreadboxFacetValueSchema: z.ZodObject<{
|
|
525
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
526
|
+
excluded: "excluded";
|
|
527
|
+
selected: "selected";
|
|
528
|
+
}>>;
|
|
529
|
+
value: z.ZodOptional<z.ZodString>;
|
|
530
|
+
end: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
531
|
+
start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
532
|
+
}, z.core.$strict>;
|
|
533
|
+
export type BreadboxFacetValue = z.infer<typeof BreadboxFacetValueSchema>;
|
|
440
534
|
export declare const OverrideCorrectionPayloadSchema: z.ZodObject<{
|
|
441
535
|
originalQuery: z.ZodString;
|
|
442
536
|
}, z.core.$strict>;
|
|
@@ -474,6 +568,42 @@ export declare const PageSizeStateSchema: z.ZodObject<{
|
|
|
474
568
|
pageSize: z.ZodNumber;
|
|
475
569
|
}, z.core.$strict>;
|
|
476
570
|
export type PageSizeState = z.infer<typeof PageSizeStateSchema>;
|
|
571
|
+
export declare const BreadboxRegularFacetSchema: z.ZodObject<{
|
|
572
|
+
displayName: z.ZodString;
|
|
573
|
+
facetId: z.ZodString;
|
|
574
|
+
field: z.ZodString;
|
|
575
|
+
type: z.ZodLiteral<"regular">;
|
|
576
|
+
values: z.ZodArray<z.ZodObject<{
|
|
577
|
+
state: z.ZodEnum<{
|
|
578
|
+
excluded: "excluded";
|
|
579
|
+
selected: "selected";
|
|
580
|
+
}>;
|
|
581
|
+
value: z.ZodString;
|
|
582
|
+
}, z.core.$strict>>;
|
|
583
|
+
}, z.core.$strict>;
|
|
584
|
+
export type BreadboxRegularFacet = z.infer<typeof BreadboxRegularFacetSchema>;
|
|
585
|
+
export declare const BreadboxNumericalRangeFacetSchema: z.ZodObject<{
|
|
586
|
+
displayName: z.ZodString;
|
|
587
|
+
facetId: z.ZodString;
|
|
588
|
+
field: z.ZodString;
|
|
589
|
+
type: z.ZodLiteral<"numericalRange">;
|
|
590
|
+
values: z.ZodArray<z.ZodObject<{
|
|
591
|
+
end: z.ZodNumber;
|
|
592
|
+
start: z.ZodNumber;
|
|
593
|
+
}, z.core.$strict>>;
|
|
594
|
+
}, z.core.$strict>;
|
|
595
|
+
export type BreadboxNumericalRangeFacet = z.infer<typeof BreadboxNumericalRangeFacetSchema>;
|
|
596
|
+
export declare const BreadboxDateRangeFacetSchema: z.ZodObject<{
|
|
597
|
+
displayName: z.ZodString;
|
|
598
|
+
facetId: z.ZodString;
|
|
599
|
+
field: z.ZodString;
|
|
600
|
+
type: z.ZodLiteral<"dateRange">;
|
|
601
|
+
values: z.ZodArray<z.ZodObject<{
|
|
602
|
+
end: z.ZodString;
|
|
603
|
+
start: z.ZodString;
|
|
604
|
+
}, z.core.$strict>>;
|
|
605
|
+
}, z.core.$strict>;
|
|
606
|
+
export type BreadboxDateRangeFacet = z.infer<typeof BreadboxDateRangeFacetSchema>;
|
|
477
607
|
export declare const ProductCarouselSchema: z.ZodObject<{
|
|
478
608
|
actions: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
479
609
|
component: z.ZodLiteral<"ProductCarousel">;
|
|
@@ -887,6 +1017,66 @@ export declare const FacetManagerSchema: z.ZodObject<{
|
|
|
887
1017
|
state: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
888
1018
|
}, z.core.$loose>;
|
|
889
1019
|
export type FacetManager = z.infer<typeof FacetManagerSchema>;
|
|
1020
|
+
export declare const BreadboxDeselectSchema: z.ZodObject<{
|
|
1021
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1022
|
+
facetId: z.ZodString;
|
|
1023
|
+
type: z.ZodLiteral<"regular">;
|
|
1024
|
+
value: z.ZodString;
|
|
1025
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1026
|
+
end: z.ZodNumber;
|
|
1027
|
+
facetId: z.ZodString;
|
|
1028
|
+
start: z.ZodNumber;
|
|
1029
|
+
type: z.ZodLiteral<"numericalRange">;
|
|
1030
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1031
|
+
end: z.ZodString;
|
|
1032
|
+
facetId: z.ZodString;
|
|
1033
|
+
start: z.ZodString;
|
|
1034
|
+
type: z.ZodLiteral<"dateRange">;
|
|
1035
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1036
|
+
facetId: z.ZodString;
|
|
1037
|
+
path: z.ZodArray<z.ZodString>;
|
|
1038
|
+
type: z.ZodLiteral<"hierarchical">;
|
|
1039
|
+
}, z.core.$strict>], "type">;
|
|
1040
|
+
}, z.core.$strict>;
|
|
1041
|
+
export type BreadboxDeselect = z.infer<typeof BreadboxDeselectSchema>;
|
|
1042
|
+
export declare const BreadboxFacetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1043
|
+
displayName: z.ZodString;
|
|
1044
|
+
facetId: z.ZodString;
|
|
1045
|
+
field: z.ZodString;
|
|
1046
|
+
type: z.ZodLiteral<"regular">;
|
|
1047
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1048
|
+
state: z.ZodEnum<{
|
|
1049
|
+
excluded: "excluded";
|
|
1050
|
+
selected: "selected";
|
|
1051
|
+
}>;
|
|
1052
|
+
value: z.ZodString;
|
|
1053
|
+
}, z.core.$strict>>;
|
|
1054
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1055
|
+
displayName: z.ZodString;
|
|
1056
|
+
facetId: z.ZodString;
|
|
1057
|
+
field: z.ZodString;
|
|
1058
|
+
type: z.ZodLiteral<"numericalRange">;
|
|
1059
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1060
|
+
end: z.ZodNumber;
|
|
1061
|
+
start: z.ZodNumber;
|
|
1062
|
+
}, z.core.$strict>>;
|
|
1063
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1064
|
+
displayName: z.ZodString;
|
|
1065
|
+
facetId: z.ZodString;
|
|
1066
|
+
field: z.ZodString;
|
|
1067
|
+
type: z.ZodLiteral<"dateRange">;
|
|
1068
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1069
|
+
end: z.ZodString;
|
|
1070
|
+
start: z.ZodString;
|
|
1071
|
+
}, z.core.$strict>>;
|
|
1072
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1073
|
+
displayName: z.ZodString;
|
|
1074
|
+
facetId: z.ZodString;
|
|
1075
|
+
field: z.ZodString;
|
|
1076
|
+
path: z.ZodArray<z.ZodString>;
|
|
1077
|
+
type: z.ZodLiteral<"hierarchical">;
|
|
1078
|
+
}, z.core.$strict>], "type">;
|
|
1079
|
+
export type BreadboxFacet = z.infer<typeof BreadboxFacetSchema>;
|
|
890
1080
|
export declare const OverrideCorrectionSchema: z.ZodObject<{
|
|
891
1081
|
payload: z.ZodObject<{
|
|
892
1082
|
originalQuery: z.ZodString;
|
|
@@ -1239,6 +1429,73 @@ export declare const CategoryFacetStateSchema: z.ZodObject<{
|
|
|
1239
1429
|
}, z.core.$strict>;
|
|
1240
1430
|
}, z.core.$strict>;
|
|
1241
1431
|
export type CategoryFacetState = z.infer<typeof CategoryFacetStateSchema>;
|
|
1432
|
+
export declare const BreadboxActionsSchema: z.ZodObject<{
|
|
1433
|
+
clearAll: z.ZodObject<{
|
|
1434
|
+
payload: z.ZodUnknown;
|
|
1435
|
+
}, z.core.$strict>;
|
|
1436
|
+
deselect: z.ZodObject<{
|
|
1437
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1438
|
+
facetId: z.ZodString;
|
|
1439
|
+
type: z.ZodLiteral<"regular">;
|
|
1440
|
+
value: z.ZodString;
|
|
1441
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1442
|
+
end: z.ZodNumber;
|
|
1443
|
+
facetId: z.ZodString;
|
|
1444
|
+
start: z.ZodNumber;
|
|
1445
|
+
type: z.ZodLiteral<"numericalRange">;
|
|
1446
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1447
|
+
end: z.ZodString;
|
|
1448
|
+
facetId: z.ZodString;
|
|
1449
|
+
start: z.ZodString;
|
|
1450
|
+
type: z.ZodLiteral<"dateRange">;
|
|
1451
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1452
|
+
facetId: z.ZodString;
|
|
1453
|
+
path: z.ZodArray<z.ZodString>;
|
|
1454
|
+
type: z.ZodLiteral<"hierarchical">;
|
|
1455
|
+
}, z.core.$strict>], "type">;
|
|
1456
|
+
}, z.core.$strict>;
|
|
1457
|
+
}, z.core.$strict>;
|
|
1458
|
+
export type BreadboxActions = z.infer<typeof BreadboxActionsSchema>;
|
|
1459
|
+
export declare const BreadboxStateSchema: z.ZodObject<{
|
|
1460
|
+
facets: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1461
|
+
displayName: z.ZodString;
|
|
1462
|
+
facetId: z.ZodString;
|
|
1463
|
+
field: z.ZodString;
|
|
1464
|
+
type: z.ZodLiteral<"regular">;
|
|
1465
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1466
|
+
state: z.ZodEnum<{
|
|
1467
|
+
excluded: "excluded";
|
|
1468
|
+
selected: "selected";
|
|
1469
|
+
}>;
|
|
1470
|
+
value: z.ZodString;
|
|
1471
|
+
}, z.core.$strict>>;
|
|
1472
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1473
|
+
displayName: z.ZodString;
|
|
1474
|
+
facetId: z.ZodString;
|
|
1475
|
+
field: z.ZodString;
|
|
1476
|
+
type: z.ZodLiteral<"numericalRange">;
|
|
1477
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1478
|
+
end: z.ZodNumber;
|
|
1479
|
+
start: z.ZodNumber;
|
|
1480
|
+
}, z.core.$strict>>;
|
|
1481
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1482
|
+
displayName: z.ZodString;
|
|
1483
|
+
facetId: z.ZodString;
|
|
1484
|
+
field: z.ZodString;
|
|
1485
|
+
type: z.ZodLiteral<"dateRange">;
|
|
1486
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1487
|
+
end: z.ZodString;
|
|
1488
|
+
start: z.ZodString;
|
|
1489
|
+
}, z.core.$strict>>;
|
|
1490
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1491
|
+
displayName: z.ZodString;
|
|
1492
|
+
facetId: z.ZodString;
|
|
1493
|
+
field: z.ZodString;
|
|
1494
|
+
path: z.ZodArray<z.ZodString>;
|
|
1495
|
+
type: z.ZodLiteral<"hierarchical">;
|
|
1496
|
+
}, z.core.$strict>], "type">>;
|
|
1497
|
+
}, z.core.$strict>;
|
|
1498
|
+
export type BreadboxState = z.infer<typeof BreadboxStateSchema>;
|
|
1242
1499
|
export declare const RestoreStatePayloadSchema: z.ZodObject<{
|
|
1243
1500
|
facets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1244
1501
|
facetId: z.ZodString;
|
|
@@ -1725,6 +1982,76 @@ export declare const CategoryFacetSchema: z.ZodObject<{
|
|
|
1725
1982
|
}, z.core.$strict>>;
|
|
1726
1983
|
}, z.core.$loose>;
|
|
1727
1984
|
export type CategoryFacet = z.infer<typeof CategoryFacetSchema>;
|
|
1985
|
+
export declare const BreadboxSchema: z.ZodObject<{
|
|
1986
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
1987
|
+
clearAll: z.ZodObject<{
|
|
1988
|
+
payload: z.ZodUnknown;
|
|
1989
|
+
}, z.core.$strict>;
|
|
1990
|
+
deselect: z.ZodObject<{
|
|
1991
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1992
|
+
facetId: z.ZodString;
|
|
1993
|
+
type: z.ZodLiteral<"regular">;
|
|
1994
|
+
value: z.ZodString;
|
|
1995
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1996
|
+
end: z.ZodNumber;
|
|
1997
|
+
facetId: z.ZodString;
|
|
1998
|
+
start: z.ZodNumber;
|
|
1999
|
+
type: z.ZodLiteral<"numericalRange">;
|
|
2000
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2001
|
+
end: z.ZodString;
|
|
2002
|
+
facetId: z.ZodString;
|
|
2003
|
+
start: z.ZodString;
|
|
2004
|
+
type: z.ZodLiteral<"dateRange">;
|
|
2005
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2006
|
+
facetId: z.ZodString;
|
|
2007
|
+
path: z.ZodArray<z.ZodString>;
|
|
2008
|
+
type: z.ZodLiteral<"hierarchical">;
|
|
2009
|
+
}, z.core.$strict>], "type">;
|
|
2010
|
+
}, z.core.$strict>;
|
|
2011
|
+
}, z.core.$strict>>;
|
|
2012
|
+
component: z.ZodLiteral<"Breadbox">;
|
|
2013
|
+
id: z.ZodString;
|
|
2014
|
+
state: z.ZodOptional<z.ZodObject<{
|
|
2015
|
+
facets: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2016
|
+
displayName: z.ZodString;
|
|
2017
|
+
facetId: z.ZodString;
|
|
2018
|
+
field: z.ZodString;
|
|
2019
|
+
type: z.ZodLiteral<"regular">;
|
|
2020
|
+
values: z.ZodArray<z.ZodObject<{
|
|
2021
|
+
state: z.ZodEnum<{
|
|
2022
|
+
excluded: "excluded";
|
|
2023
|
+
selected: "selected";
|
|
2024
|
+
}>;
|
|
2025
|
+
value: z.ZodString;
|
|
2026
|
+
}, z.core.$strict>>;
|
|
2027
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2028
|
+
displayName: z.ZodString;
|
|
2029
|
+
facetId: z.ZodString;
|
|
2030
|
+
field: z.ZodString;
|
|
2031
|
+
type: z.ZodLiteral<"numericalRange">;
|
|
2032
|
+
values: z.ZodArray<z.ZodObject<{
|
|
2033
|
+
end: z.ZodNumber;
|
|
2034
|
+
start: z.ZodNumber;
|
|
2035
|
+
}, z.core.$strict>>;
|
|
2036
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2037
|
+
displayName: z.ZodString;
|
|
2038
|
+
facetId: z.ZodString;
|
|
2039
|
+
field: z.ZodString;
|
|
2040
|
+
type: z.ZodLiteral<"dateRange">;
|
|
2041
|
+
values: z.ZodArray<z.ZodObject<{
|
|
2042
|
+
end: z.ZodString;
|
|
2043
|
+
start: z.ZodString;
|
|
2044
|
+
}, z.core.$strict>>;
|
|
2045
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2046
|
+
displayName: z.ZodString;
|
|
2047
|
+
facetId: z.ZodString;
|
|
2048
|
+
field: z.ZodString;
|
|
2049
|
+
path: z.ZodArray<z.ZodString>;
|
|
2050
|
+
type: z.ZodLiteral<"hierarchical">;
|
|
2051
|
+
}, z.core.$strict>], "type">>;
|
|
2052
|
+
}, z.core.$strict>>;
|
|
2053
|
+
}, z.core.$loose>;
|
|
2054
|
+
export type Breadbox = z.infer<typeof BreadboxSchema>;
|
|
1728
2055
|
export declare const RestoreStateSchema: z.ZodObject<{
|
|
1729
2056
|
payload: z.ZodObject<{
|
|
1730
2057
|
facets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2412,6 +2739,74 @@ export declare const ComponentContractsSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
2412
2739
|
component: z.ZodLiteral<"FacetManager">;
|
|
2413
2740
|
id: z.ZodString;
|
|
2414
2741
|
state: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
2742
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2743
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
2744
|
+
clearAll: z.ZodObject<{
|
|
2745
|
+
payload: z.ZodUnknown;
|
|
2746
|
+
}, z.core.$strict>;
|
|
2747
|
+
deselect: z.ZodObject<{
|
|
2748
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2749
|
+
facetId: z.ZodString;
|
|
2750
|
+
type: z.ZodLiteral<"regular">;
|
|
2751
|
+
value: z.ZodString;
|
|
2752
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2753
|
+
end: z.ZodNumber;
|
|
2754
|
+
facetId: z.ZodString;
|
|
2755
|
+
start: z.ZodNumber;
|
|
2756
|
+
type: z.ZodLiteral<"numericalRange">;
|
|
2757
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2758
|
+
end: z.ZodString;
|
|
2759
|
+
facetId: z.ZodString;
|
|
2760
|
+
start: z.ZodString;
|
|
2761
|
+
type: z.ZodLiteral<"dateRange">;
|
|
2762
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2763
|
+
facetId: z.ZodString;
|
|
2764
|
+
path: z.ZodArray<z.ZodString>;
|
|
2765
|
+
type: z.ZodLiteral<"hierarchical">;
|
|
2766
|
+
}, z.core.$strict>], "type">;
|
|
2767
|
+
}, z.core.$strict>;
|
|
2768
|
+
}, z.core.$strict>>;
|
|
2769
|
+
component: z.ZodLiteral<"Breadbox">;
|
|
2770
|
+
id: z.ZodString;
|
|
2771
|
+
state: z.ZodOptional<z.ZodObject<{
|
|
2772
|
+
facets: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2773
|
+
displayName: z.ZodString;
|
|
2774
|
+
facetId: z.ZodString;
|
|
2775
|
+
field: z.ZodString;
|
|
2776
|
+
type: z.ZodLiteral<"regular">;
|
|
2777
|
+
values: z.ZodArray<z.ZodObject<{
|
|
2778
|
+
state: z.ZodEnum<{
|
|
2779
|
+
excluded: "excluded";
|
|
2780
|
+
selected: "selected";
|
|
2781
|
+
}>;
|
|
2782
|
+
value: z.ZodString;
|
|
2783
|
+
}, z.core.$strict>>;
|
|
2784
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2785
|
+
displayName: z.ZodString;
|
|
2786
|
+
facetId: z.ZodString;
|
|
2787
|
+
field: z.ZodString;
|
|
2788
|
+
type: z.ZodLiteral<"numericalRange">;
|
|
2789
|
+
values: z.ZodArray<z.ZodObject<{
|
|
2790
|
+
end: z.ZodNumber;
|
|
2791
|
+
start: z.ZodNumber;
|
|
2792
|
+
}, z.core.$strict>>;
|
|
2793
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2794
|
+
displayName: z.ZodString;
|
|
2795
|
+
facetId: z.ZodString;
|
|
2796
|
+
field: z.ZodString;
|
|
2797
|
+
type: z.ZodLiteral<"dateRange">;
|
|
2798
|
+
values: z.ZodArray<z.ZodObject<{
|
|
2799
|
+
end: z.ZodString;
|
|
2800
|
+
start: z.ZodString;
|
|
2801
|
+
}, z.core.$strict>>;
|
|
2802
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2803
|
+
displayName: z.ZodString;
|
|
2804
|
+
facetId: z.ZodString;
|
|
2805
|
+
field: z.ZodString;
|
|
2806
|
+
path: z.ZodArray<z.ZodString>;
|
|
2807
|
+
type: z.ZodLiteral<"hierarchical">;
|
|
2808
|
+
}, z.core.$strict>], "type">>;
|
|
2809
|
+
}, z.core.$strict>>;
|
|
2415
2810
|
}, z.core.$loose>, z.ZodObject<{
|
|
2416
2811
|
actions: z.ZodOptional<z.ZodObject<{
|
|
2417
2812
|
overrideCorrection: z.ZodObject<{
|
|
@@ -2599,6 +2994,59 @@ export type DynamicAction = z.infer<typeof DynamicActionSchema>;
|
|
|
2599
2994
|
* data model; composition child-ref props stay static so child ids reach the renderer
|
|
2600
2995
|
* untouched. The resolved shape a renderer actually reads is the `XxxProps` type.
|
|
2601
2996
|
*/
|
|
2997
|
+
export declare const BreadboxPropsSchema: z.ZodObject<{
|
|
2998
|
+
facets: z.ZodUnion<readonly [z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2999
|
+
displayName: z.ZodString;
|
|
3000
|
+
facetId: z.ZodString;
|
|
3001
|
+
field: z.ZodString;
|
|
3002
|
+
type: z.ZodLiteral<"regular">;
|
|
3003
|
+
values: z.ZodArray<z.ZodObject<{
|
|
3004
|
+
state: z.ZodEnum<{
|
|
3005
|
+
excluded: "excluded";
|
|
3006
|
+
selected: "selected";
|
|
3007
|
+
}>;
|
|
3008
|
+
value: z.ZodString;
|
|
3009
|
+
}, z.core.$strict>>;
|
|
3010
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3011
|
+
displayName: z.ZodString;
|
|
3012
|
+
facetId: z.ZodString;
|
|
3013
|
+
field: z.ZodString;
|
|
3014
|
+
type: z.ZodLiteral<"numericalRange">;
|
|
3015
|
+
values: z.ZodArray<z.ZodObject<{
|
|
3016
|
+
end: z.ZodNumber;
|
|
3017
|
+
start: z.ZodNumber;
|
|
3018
|
+
}, z.core.$strict>>;
|
|
3019
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3020
|
+
displayName: z.ZodString;
|
|
3021
|
+
facetId: z.ZodString;
|
|
3022
|
+
field: z.ZodString;
|
|
3023
|
+
type: z.ZodLiteral<"dateRange">;
|
|
3024
|
+
values: z.ZodArray<z.ZodObject<{
|
|
3025
|
+
end: z.ZodString;
|
|
3026
|
+
start: z.ZodString;
|
|
3027
|
+
}, z.core.$strict>>;
|
|
3028
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3029
|
+
displayName: z.ZodString;
|
|
3030
|
+
facetId: z.ZodString;
|
|
3031
|
+
field: z.ZodString;
|
|
3032
|
+
path: z.ZodArray<z.ZodString>;
|
|
3033
|
+
type: z.ZodLiteral<"hierarchical">;
|
|
3034
|
+
}, z.core.$strict>], "type">>, z.ZodObject<{
|
|
3035
|
+
path: z.ZodString;
|
|
3036
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3037
|
+
call: z.ZodString;
|
|
3038
|
+
args: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
3039
|
+
returnType: z.ZodDefault<z.ZodEnum<{
|
|
3040
|
+
any: "any";
|
|
3041
|
+
array: "array";
|
|
3042
|
+
boolean: "boolean";
|
|
3043
|
+
number: "number";
|
|
3044
|
+
object: "object";
|
|
3045
|
+
string: "string";
|
|
3046
|
+
void: "void";
|
|
3047
|
+
}>>;
|
|
3048
|
+
}, z.core.$strip>]>;
|
|
3049
|
+
}, z.core.$strip>;
|
|
2602
3050
|
export declare const BundleDisplayPropsSchema: z.ZodObject<{
|
|
2603
3051
|
heading: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2604
3052
|
path: z.ZodString;
|
|
@@ -3704,6 +4152,36 @@ export declare const SortPropsSchema: z.ZodObject<{
|
|
|
3704
4152
|
* never`. The wire field is `context`; the internal validation layer calls the same data
|
|
3705
4153
|
* `payload` (see design: Action typing).
|
|
3706
4154
|
*/
|
|
4155
|
+
export declare const BreadboxActionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
4156
|
+
event: z.ZodObject<{
|
|
4157
|
+
name: z.ZodLiteral<"deselect">;
|
|
4158
|
+
context: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4159
|
+
facetId: z.ZodString;
|
|
4160
|
+
type: z.ZodLiteral<"regular">;
|
|
4161
|
+
value: z.ZodString;
|
|
4162
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4163
|
+
end: z.ZodNumber;
|
|
4164
|
+
facetId: z.ZodString;
|
|
4165
|
+
start: z.ZodNumber;
|
|
4166
|
+
type: z.ZodLiteral<"numericalRange">;
|
|
4167
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4168
|
+
end: z.ZodString;
|
|
4169
|
+
facetId: z.ZodString;
|
|
4170
|
+
start: z.ZodString;
|
|
4171
|
+
type: z.ZodLiteral<"dateRange">;
|
|
4172
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4173
|
+
facetId: z.ZodString;
|
|
4174
|
+
path: z.ZodArray<z.ZodString>;
|
|
4175
|
+
type: z.ZodLiteral<"hierarchical">;
|
|
4176
|
+
}, z.core.$strict>], "type">;
|
|
4177
|
+
}, z.core.$strip>;
|
|
4178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4179
|
+
event: z.ZodObject<{
|
|
4180
|
+
name: z.ZodLiteral<"clearAll">;
|
|
4181
|
+
context: z.ZodUnknown;
|
|
4182
|
+
}, z.core.$strip>;
|
|
4183
|
+
}, z.core.$strip>]>;
|
|
4184
|
+
export type BreadboxAction = z.infer<typeof BreadboxActionSchema>;
|
|
3707
4185
|
export declare const BundleDisplayActionSchema: z.ZodNever;
|
|
3708
4186
|
export type BundleDisplayAction = never;
|
|
3709
4187
|
export declare const CartActionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -4055,6 +4533,7 @@ export type SortAction = z.infer<typeof SortActionSchema>;
|
|
|
4055
4533
|
* `props`. The matching bindable schema you pass to the renderer catalog is `XxxPropsSchema`
|
|
4056
4534
|
* (its fields may still be `{ path }` bindings; this resolved type is what the renderer reads).
|
|
4057
4535
|
*/
|
|
4536
|
+
export type BreadboxProps = BreadboxState;
|
|
4058
4537
|
export type BundleDisplayProps = BundleDisplayState;
|
|
4059
4538
|
export type CartProps = CartState;
|
|
4060
4539
|
export type CategoryFacetProps = CategoryFacetState;
|