@coveo/thermidor-schema 1.0.0-beta.30 → 1.0.0-beta.32
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 +71 -130
- package/dist/generated/schemas.js +34 -6
- package/dist/generated/zod3/index.d.ts +2 -2
- package/dist/generated/zod3/index.js +1 -1
- package/dist/generated/zod3/schemas.d.ts +354 -1497
- package/dist/generated/zod3/schemas.js +34 -6
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/schema/component-contracts.schema.json +6 -0
- package/schema/components/query-suggestions.schema.json +3 -14
- package/schema/components/search-box.schema.json +43 -0
- package/schema/components/session-shell.schema.json +65 -0
|
@@ -214,6 +214,10 @@ export declare const UpdateCartPayloadSchema: z.ZodObject<{
|
|
|
214
214
|
export type UpdateCartPayload = z.infer<typeof UpdateCartPayloadSchema>;
|
|
215
215
|
export declare const CartStateSchema: z.ZodObject<{}, z.core.$strict>;
|
|
216
216
|
export type CartState = z.infer<typeof CartStateSchema>;
|
|
217
|
+
export declare const SearchBoxActionsSchema: z.ZodObject<{}, z.core.$strict>;
|
|
218
|
+
export type SearchBoxActions = z.infer<typeof SearchBoxActionsSchema>;
|
|
219
|
+
export declare const SearchBoxStateSchema: z.ZodObject<{}, z.core.$strict>;
|
|
220
|
+
export type SearchBoxState = z.infer<typeof SearchBoxStateSchema>;
|
|
217
221
|
export declare const FetchSuggestionsPayloadSchema: z.ZodObject<{
|
|
218
222
|
query: z.ZodString;
|
|
219
223
|
}, z.core.$strict>;
|
|
@@ -562,6 +566,10 @@ export declare const BreadboxFacetValueSchema: z.ZodObject<{
|
|
|
562
566
|
start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
563
567
|
}, z.core.$strict>;
|
|
564
568
|
export type BreadboxFacetValue = z.infer<typeof BreadboxFacetValueSchema>;
|
|
569
|
+
export declare const InitializePayloadSchema: z.ZodObject<{}, z.core.$strict>;
|
|
570
|
+
export type InitializePayload = z.infer<typeof InitializePayloadSchema>;
|
|
571
|
+
export declare const SessionShellStateSchema: z.ZodObject<{}, z.core.$strict>;
|
|
572
|
+
export type SessionShellState = z.infer<typeof SessionShellStateSchema>;
|
|
565
573
|
export declare const OverrideCorrectionPayloadSchema: z.ZodObject<{
|
|
566
574
|
originalQuery: z.ZodString;
|
|
567
575
|
}, z.core.$strict>;
|
|
@@ -710,6 +718,13 @@ export declare const UpdateCartSchema: z.ZodObject<{
|
|
|
710
718
|
}, z.core.$strict>;
|
|
711
719
|
}, z.core.$strict>;
|
|
712
720
|
export type UpdateCart = z.infer<typeof UpdateCartSchema>;
|
|
721
|
+
export declare const SearchBoxSchema: z.ZodObject<{
|
|
722
|
+
actions: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
723
|
+
component: z.ZodLiteral<"SearchBox">;
|
|
724
|
+
id: z.ZodString;
|
|
725
|
+
state: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
726
|
+
}, z.core.$loose>;
|
|
727
|
+
export type SearchBox = z.infer<typeof SearchBoxSchema>;
|
|
713
728
|
export declare const FetchSuggestionsSchema: z.ZodObject<{
|
|
714
729
|
payload: z.ZodObject<{
|
|
715
730
|
query: z.ZodString;
|
|
@@ -721,35 +736,6 @@ export declare const QuerySuggestionsStateSchema: z.ZodObject<{
|
|
|
721
736
|
expression: z.ZodString;
|
|
722
737
|
score: z.ZodOptional<z.ZodNumber>;
|
|
723
738
|
}, z.core.$strict>>;
|
|
724
|
-
products: z.ZodArray<z.ZodObject<{
|
|
725
|
-
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
726
|
-
badgePlacements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
727
|
-
badges: z.ZodArray<z.ZodObject<{
|
|
728
|
-
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
729
|
-
iconUrl: z.ZodOptional<z.ZodString>;
|
|
730
|
-
text: z.ZodString;
|
|
731
|
-
textColor: z.ZodOptional<z.ZodString>;
|
|
732
|
-
}, z.core.$strict>>;
|
|
733
|
-
placementId: z.ZodString;
|
|
734
|
-
}, z.core.$strict>>>;
|
|
735
|
-
children: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
|
|
736
|
-
clickUri: z.ZodOptional<z.ZodString>;
|
|
737
|
-
ec_brand: z.ZodOptional<z.ZodString>;
|
|
738
|
-
ec_category: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
739
|
-
ec_color: z.ZodOptional<z.ZodString>;
|
|
740
|
-
ec_description: z.ZodOptional<z.ZodString>;
|
|
741
|
-
ec_images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
742
|
-
ec_in_stock: z.ZodOptional<z.ZodBoolean>;
|
|
743
|
-
ec_item_group_id: z.ZodOptional<z.ZodString>;
|
|
744
|
-
ec_item_group_name: z.ZodOptional<z.ZodString>;
|
|
745
|
-
ec_name: z.ZodString;
|
|
746
|
-
ec_price: z.ZodOptional<z.ZodNumber>;
|
|
747
|
-
ec_promo_price: z.ZodOptional<z.ZodNumber>;
|
|
748
|
-
ec_rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
749
|
-
ec_shortdesc: z.ZodOptional<z.ZodString>;
|
|
750
|
-
ec_thumbnails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
751
|
-
permanentid: z.ZodString;
|
|
752
|
-
}, z.core.$strict>>;
|
|
753
739
|
query: z.ZodString;
|
|
754
740
|
}, z.core.$strict>;
|
|
755
741
|
export type QuerySuggestionsState = z.infer<typeof QuerySuggestionsStateSchema>;
|
|
@@ -1161,6 +1147,10 @@ export declare const BreadboxFacetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1161
1147
|
type: z.ZodLiteral<"hierarchical">;
|
|
1162
1148
|
}, z.core.$strict>], "type">;
|
|
1163
1149
|
export type BreadboxFacet = z.infer<typeof BreadboxFacetSchema>;
|
|
1150
|
+
export declare const InitializeSchema: z.ZodObject<{
|
|
1151
|
+
payload: z.ZodObject<{}, z.core.$strict>;
|
|
1152
|
+
}, z.core.$strict>;
|
|
1153
|
+
export type Initialize = z.infer<typeof InitializeSchema>;
|
|
1164
1154
|
export declare const OverrideCorrectionSchema: z.ZodObject<{
|
|
1165
1155
|
payload: z.ZodObject<{
|
|
1166
1156
|
originalQuery: z.ZodString;
|
|
@@ -1631,6 +1621,12 @@ export declare const BreadboxStateSchema: z.ZodObject<{
|
|
|
1631
1621
|
}, z.core.$strict>], "type">>;
|
|
1632
1622
|
}, z.core.$strict>;
|
|
1633
1623
|
export type BreadboxState = z.infer<typeof BreadboxStateSchema>;
|
|
1624
|
+
export declare const SessionShellActionsSchema: z.ZodObject<{
|
|
1625
|
+
initialize: z.ZodObject<{
|
|
1626
|
+
payload: z.ZodObject<{}, z.core.$strict>;
|
|
1627
|
+
}, z.core.$strict>;
|
|
1628
|
+
}, z.core.$strict>;
|
|
1629
|
+
export type SessionShellActions = z.infer<typeof SessionShellActionsSchema>;
|
|
1634
1630
|
export declare const RestoreStatePayloadSchema: z.ZodObject<{
|
|
1635
1631
|
facets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1636
1632
|
facetId: z.ZodString;
|
|
@@ -1701,35 +1697,6 @@ export declare const QuerySuggestionsSchema: z.ZodObject<{
|
|
|
1701
1697
|
expression: z.ZodString;
|
|
1702
1698
|
score: z.ZodOptional<z.ZodNumber>;
|
|
1703
1699
|
}, z.core.$strict>>;
|
|
1704
|
-
products: z.ZodArray<z.ZodObject<{
|
|
1705
|
-
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1706
|
-
badgePlacements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1707
|
-
badges: z.ZodArray<z.ZodObject<{
|
|
1708
|
-
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
1709
|
-
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1710
|
-
text: z.ZodString;
|
|
1711
|
-
textColor: z.ZodOptional<z.ZodString>;
|
|
1712
|
-
}, z.core.$strict>>;
|
|
1713
|
-
placementId: z.ZodString;
|
|
1714
|
-
}, z.core.$strict>>>;
|
|
1715
|
-
children: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
|
|
1716
|
-
clickUri: z.ZodOptional<z.ZodString>;
|
|
1717
|
-
ec_brand: z.ZodOptional<z.ZodString>;
|
|
1718
|
-
ec_category: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1719
|
-
ec_color: z.ZodOptional<z.ZodString>;
|
|
1720
|
-
ec_description: z.ZodOptional<z.ZodString>;
|
|
1721
|
-
ec_images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1722
|
-
ec_in_stock: z.ZodOptional<z.ZodBoolean>;
|
|
1723
|
-
ec_item_group_id: z.ZodOptional<z.ZodString>;
|
|
1724
|
-
ec_item_group_name: z.ZodOptional<z.ZodString>;
|
|
1725
|
-
ec_name: z.ZodString;
|
|
1726
|
-
ec_price: z.ZodOptional<z.ZodNumber>;
|
|
1727
|
-
ec_promo_price: z.ZodOptional<z.ZodNumber>;
|
|
1728
|
-
ec_rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1729
|
-
ec_shortdesc: z.ZodOptional<z.ZodString>;
|
|
1730
|
-
ec_thumbnails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1731
|
-
permanentid: z.ZodString;
|
|
1732
|
-
}, z.core.$strict>>;
|
|
1733
1700
|
query: z.ZodString;
|
|
1734
1701
|
}, z.core.$strict>>;
|
|
1735
1702
|
}, z.core.$loose>;
|
|
@@ -2205,6 +2172,17 @@ export declare const BreadboxSchema: z.ZodObject<{
|
|
|
2205
2172
|
}, z.core.$strict>>;
|
|
2206
2173
|
}, z.core.$loose>;
|
|
2207
2174
|
export type Breadbox = z.infer<typeof BreadboxSchema>;
|
|
2175
|
+
export declare const SessionShellSchema: z.ZodObject<{
|
|
2176
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
2177
|
+
initialize: z.ZodObject<{
|
|
2178
|
+
payload: z.ZodObject<{}, z.core.$strict>;
|
|
2179
|
+
}, z.core.$strict>;
|
|
2180
|
+
}, z.core.$strict>>;
|
|
2181
|
+
component: z.ZodLiteral<"SessionShell">;
|
|
2182
|
+
id: z.ZodString;
|
|
2183
|
+
state: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
2184
|
+
}, z.core.$loose>;
|
|
2185
|
+
export type SessionShell = z.infer<typeof SessionShellSchema>;
|
|
2208
2186
|
export declare const RestoreStateSchema: z.ZodObject<{
|
|
2209
2187
|
payload: z.ZodObject<{
|
|
2210
2188
|
facets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2410,6 +2388,11 @@ export declare const ComponentContractsSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
2410
2388
|
component: z.ZodLiteral<"Cart">;
|
|
2411
2389
|
id: z.ZodString;
|
|
2412
2390
|
state: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
2391
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2392
|
+
actions: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
2393
|
+
component: z.ZodLiteral<"SearchBox">;
|
|
2394
|
+
id: z.ZodString;
|
|
2395
|
+
state: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
2413
2396
|
}, z.core.$loose>, z.ZodObject<{
|
|
2414
2397
|
actions: z.ZodOptional<z.ZodObject<{
|
|
2415
2398
|
fetchSuggestions: z.ZodObject<{
|
|
@@ -2425,35 +2408,6 @@ export declare const ComponentContractsSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
2425
2408
|
expression: z.ZodString;
|
|
2426
2409
|
score: z.ZodOptional<z.ZodNumber>;
|
|
2427
2410
|
}, z.core.$strict>>;
|
|
2428
|
-
products: z.ZodArray<z.ZodObject<{
|
|
2429
|
-
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2430
|
-
badgePlacements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2431
|
-
badges: z.ZodArray<z.ZodObject<{
|
|
2432
|
-
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
2433
|
-
iconUrl: z.ZodOptional<z.ZodString>;
|
|
2434
|
-
text: z.ZodString;
|
|
2435
|
-
textColor: z.ZodOptional<z.ZodString>;
|
|
2436
|
-
}, z.core.$strict>>;
|
|
2437
|
-
placementId: z.ZodString;
|
|
2438
|
-
}, z.core.$strict>>>;
|
|
2439
|
-
children: z.ZodOptional<z.ZodArray<z.ZodObject<any, z.core.$strict>>>;
|
|
2440
|
-
clickUri: z.ZodOptional<z.ZodString>;
|
|
2441
|
-
ec_brand: z.ZodOptional<z.ZodString>;
|
|
2442
|
-
ec_category: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2443
|
-
ec_color: z.ZodOptional<z.ZodString>;
|
|
2444
|
-
ec_description: z.ZodOptional<z.ZodString>;
|
|
2445
|
-
ec_images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2446
|
-
ec_in_stock: z.ZodOptional<z.ZodBoolean>;
|
|
2447
|
-
ec_item_group_id: z.ZodOptional<z.ZodString>;
|
|
2448
|
-
ec_item_group_name: z.ZodOptional<z.ZodString>;
|
|
2449
|
-
ec_name: z.ZodString;
|
|
2450
|
-
ec_price: z.ZodOptional<z.ZodNumber>;
|
|
2451
|
-
ec_promo_price: z.ZodOptional<z.ZodNumber>;
|
|
2452
|
-
ec_rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
2453
|
-
ec_shortdesc: z.ZodOptional<z.ZodString>;
|
|
2454
|
-
ec_thumbnails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2455
|
-
permanentid: z.ZodString;
|
|
2456
|
-
}, z.core.$strict>>;
|
|
2457
2411
|
query: z.ZodString;
|
|
2458
2412
|
}, z.core.$strict>>;
|
|
2459
2413
|
}, z.core.$loose>, z.ZodObject<{
|
|
@@ -3017,6 +2971,15 @@ export declare const ComponentContractsSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
3017
2971
|
type: z.ZodLiteral<"hierarchical">;
|
|
3018
2972
|
}, z.core.$strict>], "type">>;
|
|
3019
2973
|
}, z.core.$strict>>;
|
|
2974
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2975
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
2976
|
+
initialize: z.ZodObject<{
|
|
2977
|
+
payload: z.ZodObject<{}, z.core.$strict>;
|
|
2978
|
+
}, z.core.$strict>;
|
|
2979
|
+
}, z.core.$strict>>;
|
|
2980
|
+
component: z.ZodLiteral<"SessionShell">;
|
|
2981
|
+
id: z.ZodString;
|
|
2982
|
+
state: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
3020
2983
|
}, z.core.$loose>, z.ZodObject<{
|
|
3021
2984
|
actions: z.ZodOptional<z.ZodObject<{
|
|
3022
2985
|
overrideCorrection: z.ZodObject<{
|
|
@@ -4159,49 +4122,6 @@ export declare const QuerySuggestionsPropsSchema: z.ZodObject<{
|
|
|
4159
4122
|
void: "void";
|
|
4160
4123
|
}>>;
|
|
4161
4124
|
}, z.core.$strip>]>;
|
|
4162
|
-
products: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
4163
|
-
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4164
|
-
badgePlacements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4165
|
-
badges: z.ZodArray<z.ZodObject<{
|
|
4166
|
-
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
4167
|
-
iconUrl: z.ZodOptional<z.ZodString>;
|
|
4168
|
-
text: z.ZodString;
|
|
4169
|
-
textColor: z.ZodOptional<z.ZodString>;
|
|
4170
|
-
}, z.core.$strict>>;
|
|
4171
|
-
placementId: z.ZodString;
|
|
4172
|
-
}, z.core.$strict>>>;
|
|
4173
|
-
children: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
|
|
4174
|
-
clickUri: z.ZodOptional<z.ZodString>;
|
|
4175
|
-
ec_brand: z.ZodOptional<z.ZodString>;
|
|
4176
|
-
ec_category: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4177
|
-
ec_color: z.ZodOptional<z.ZodString>;
|
|
4178
|
-
ec_description: z.ZodOptional<z.ZodString>;
|
|
4179
|
-
ec_images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4180
|
-
ec_in_stock: z.ZodOptional<z.ZodBoolean>;
|
|
4181
|
-
ec_item_group_id: z.ZodOptional<z.ZodString>;
|
|
4182
|
-
ec_item_group_name: z.ZodOptional<z.ZodString>;
|
|
4183
|
-
ec_name: z.ZodString;
|
|
4184
|
-
ec_price: z.ZodOptional<z.ZodNumber>;
|
|
4185
|
-
ec_promo_price: z.ZodOptional<z.ZodNumber>;
|
|
4186
|
-
ec_rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4187
|
-
ec_shortdesc: z.ZodOptional<z.ZodString>;
|
|
4188
|
-
ec_thumbnails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4189
|
-
permanentid: z.ZodString;
|
|
4190
|
-
}, z.core.$strict>>, z.ZodObject<{
|
|
4191
|
-
path: z.ZodString;
|
|
4192
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
4193
|
-
call: z.ZodString;
|
|
4194
|
-
args: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
4195
|
-
returnType: z.ZodDefault<z.ZodEnum<{
|
|
4196
|
-
any: "any";
|
|
4197
|
-
array: "array";
|
|
4198
|
-
boolean: "boolean";
|
|
4199
|
-
number: "number";
|
|
4200
|
-
object: "object";
|
|
4201
|
-
string: "string";
|
|
4202
|
-
void: "void";
|
|
4203
|
-
}>>;
|
|
4204
|
-
}, z.core.$strip>]>;
|
|
4205
4125
|
}, z.core.$strip>;
|
|
4206
4126
|
export declare const QuerySummaryPropsSchema: z.ZodObject<{
|
|
4207
4127
|
query: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -4387,6 +4307,12 @@ export declare const RegularFacetPropsSchema: z.ZodObject<{
|
|
|
4387
4307
|
}>>;
|
|
4388
4308
|
}, z.core.$strip>]>;
|
|
4389
4309
|
}, z.core.$strip>;
|
|
4310
|
+
export declare const SearchBoxPropsSchema: z.ZodObject<{
|
|
4311
|
+
suggestionsChild: z.ZodOptional<z.ZodString>;
|
|
4312
|
+
}, z.core.$strip>;
|
|
4313
|
+
export declare const SessionShellPropsSchema: z.ZodObject<{
|
|
4314
|
+
children: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4315
|
+
}, z.core.$strip>;
|
|
4390
4316
|
export declare const SortPropsSchema: z.ZodObject<{
|
|
4391
4317
|
appliedSort: z.ZodUnion<readonly [z.ZodObject<{
|
|
4392
4318
|
fields: z.ZodArray<z.ZodUnknown>;
|
|
@@ -4795,6 +4721,15 @@ export declare const RegularFacetActionSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
4795
4721
|
}, z.core.$strip>;
|
|
4796
4722
|
}, z.core.$strip>]>;
|
|
4797
4723
|
export type RegularFacetAction = z.infer<typeof RegularFacetActionSchema>;
|
|
4724
|
+
export declare const SearchBoxActionSchema: z.ZodNever;
|
|
4725
|
+
export type SearchBoxAction = never;
|
|
4726
|
+
export declare const SessionShellActionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
4727
|
+
event: z.ZodObject<{
|
|
4728
|
+
name: z.ZodLiteral<"initialize">;
|
|
4729
|
+
context: z.ZodObject<{}, z.core.$strict>;
|
|
4730
|
+
}, z.core.$strip>;
|
|
4731
|
+
}, z.core.$strip>]>;
|
|
4732
|
+
export type SessionShellAction = z.infer<typeof SessionShellActionSchema>;
|
|
4798
4733
|
export declare const SortActionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
4799
4734
|
event: z.ZodObject<{
|
|
4800
4735
|
name: z.ZodLiteral<"selectSort">;
|
|
@@ -4841,4 +4776,10 @@ export type ProductSummaryProps = ProductSummaryState;
|
|
|
4841
4776
|
export type QuerySuggestionsProps = QuerySuggestionsState;
|
|
4842
4777
|
export type QuerySummaryProps = QuerySummaryState;
|
|
4843
4778
|
export type RegularFacetProps = RegularFacetState;
|
|
4779
|
+
export type SearchBoxProps = {
|
|
4780
|
+
suggestionsChild?: string;
|
|
4781
|
+
};
|
|
4782
|
+
export type SessionShellProps = {
|
|
4783
|
+
children?: string[];
|
|
4784
|
+
};
|
|
4844
4785
|
export type SortProps = SortState;
|
|
@@ -137,6 +137,8 @@ export const UpdateCartPayloadSchema = z.strictObject({
|
|
|
137
137
|
quantity: z.number().int().min(1),
|
|
138
138
|
});
|
|
139
139
|
export const CartStateSchema = z.strictObject({});
|
|
140
|
+
export const SearchBoxActionsSchema = z.strictObject({});
|
|
141
|
+
export const SearchBoxStateSchema = z.strictObject({});
|
|
140
142
|
export const FetchSuggestionsPayloadSchema = z.strictObject({
|
|
141
143
|
query: z.string(),
|
|
142
144
|
});
|
|
@@ -327,6 +329,8 @@ export const BreadboxFacetValueSchema = z.strictObject({
|
|
|
327
329
|
end: z.union([z.number(), z.string()]).optional(),
|
|
328
330
|
start: z.union([z.number(), z.string()]).optional(),
|
|
329
331
|
});
|
|
332
|
+
export const InitializePayloadSchema = z.strictObject({});
|
|
333
|
+
export const SessionShellStateSchema = z.strictObject({});
|
|
330
334
|
export const OverrideCorrectionPayloadSchema = z.strictObject({
|
|
331
335
|
originalQuery: z.string().min(1),
|
|
332
336
|
});
|
|
@@ -392,12 +396,17 @@ export const PurchasePayloadSchema = z.strictObject({
|
|
|
392
396
|
export const UpdateCartSchema = z.strictObject({
|
|
393
397
|
payload: UpdateCartPayloadSchema,
|
|
394
398
|
});
|
|
399
|
+
export const SearchBoxSchema = z.looseObject({
|
|
400
|
+
actions: SearchBoxActionsSchema.optional(),
|
|
401
|
+
component: z.literal('SearchBox'),
|
|
402
|
+
id: z.string().min(1).regex(new RegExp('^[a-z][a-z0-9-]*$')),
|
|
403
|
+
state: SearchBoxStateSchema.optional(),
|
|
404
|
+
});
|
|
395
405
|
export const FetchSuggestionsSchema = z.strictObject({
|
|
396
406
|
payload: FetchSuggestionsPayloadSchema,
|
|
397
407
|
});
|
|
398
408
|
export const QuerySuggestionsStateSchema = z.strictObject({
|
|
399
409
|
completions: z.array(QueryCompletionSchema),
|
|
400
|
-
products: z.array(ProductSchema),
|
|
401
410
|
query: z.string(),
|
|
402
411
|
});
|
|
403
412
|
export const SelectActionSchema = z.strictObject({
|
|
@@ -538,6 +547,9 @@ export const BreadboxFacetSchema = z.discriminatedUnion('type', [
|
|
|
538
547
|
BreadboxDateRangeFacetSchema,
|
|
539
548
|
BreadboxHierarchicalFacetSchema,
|
|
540
549
|
]);
|
|
550
|
+
export const InitializeSchema = z.strictObject({
|
|
551
|
+
payload: InitializePayloadSchema,
|
|
552
|
+
});
|
|
541
553
|
export const OverrideCorrectionSchema = z.strictObject({
|
|
542
554
|
payload: OverrideCorrectionPayloadSchema,
|
|
543
555
|
});
|
|
@@ -663,6 +675,9 @@ export const BreadboxActionsSchema = z.strictObject({
|
|
|
663
675
|
export const BreadboxStateSchema = z.strictObject({
|
|
664
676
|
facets: z.array(BreadboxFacetSchema),
|
|
665
677
|
});
|
|
678
|
+
export const SessionShellActionsSchema = z.strictObject({
|
|
679
|
+
initialize: InitializeSchema,
|
|
680
|
+
});
|
|
666
681
|
export const RestoreStatePayloadSchema = z.strictObject({
|
|
667
682
|
facets: z.array(FacetRestoreSchema).optional(),
|
|
668
683
|
page: z.number().int().min(0),
|
|
@@ -744,6 +759,12 @@ export const BreadboxSchema = z.looseObject({
|
|
|
744
759
|
id: z.string().min(1).regex(new RegExp('^[a-z][a-z0-9-]*$')),
|
|
745
760
|
state: BreadboxStateSchema.optional(),
|
|
746
761
|
});
|
|
762
|
+
export const SessionShellSchema = z.looseObject({
|
|
763
|
+
actions: SessionShellActionsSchema.optional(),
|
|
764
|
+
component: z.literal('SessionShell'),
|
|
765
|
+
id: z.string().min(1).regex(new RegExp('^[a-z][a-z0-9-]*$')),
|
|
766
|
+
state: SessionShellStateSchema.optional(),
|
|
767
|
+
});
|
|
747
768
|
export const RestoreStateSchema = z.strictObject({
|
|
748
769
|
payload: RestoreStatePayloadSchema,
|
|
749
770
|
});
|
|
@@ -773,6 +794,7 @@ export const CommerceSearchSchema = z.looseObject({
|
|
|
773
794
|
export const ComponentContractsSchema = z.discriminatedUnion('component', [
|
|
774
795
|
ProductCarouselSchema,
|
|
775
796
|
CartSchema,
|
|
797
|
+
SearchBoxSchema,
|
|
776
798
|
QuerySuggestionsSchema,
|
|
777
799
|
NextActionsBarSchema,
|
|
778
800
|
BundleDisplaySchema,
|
|
@@ -788,6 +810,7 @@ export const ComponentContractsSchema = z.discriminatedUnion('component', [
|
|
|
788
810
|
CategoryFacetSchema,
|
|
789
811
|
FacetManagerSchema,
|
|
790
812
|
BreadboxSchema,
|
|
813
|
+
SessionShellSchema,
|
|
791
814
|
CommerceSearchSchema,
|
|
792
815
|
LayoutStackSchema,
|
|
793
816
|
QuerySummarySchema,
|
|
@@ -977,11 +1000,6 @@ export const QuerySuggestionsPropsSchema = z.object({
|
|
|
977
1000
|
DataBindingSchema,
|
|
978
1001
|
FunctionCallSchema,
|
|
979
1002
|
]),
|
|
980
|
-
products: z.union([
|
|
981
|
-
QuerySuggestionsStateSchema.shape['products'],
|
|
982
|
-
DataBindingSchema,
|
|
983
|
-
FunctionCallSchema,
|
|
984
|
-
]),
|
|
985
1003
|
});
|
|
986
1004
|
export const QuerySummaryPropsSchema = z.object({
|
|
987
1005
|
query: DynamicStringSchema,
|
|
@@ -1002,6 +1020,12 @@ export const RegularFacetPropsSchema = z.object({
|
|
|
1002
1020
|
FunctionCallSchema,
|
|
1003
1021
|
]),
|
|
1004
1022
|
});
|
|
1023
|
+
export const SearchBoxPropsSchema = z.object({
|
|
1024
|
+
suggestionsChild: z.string().optional(),
|
|
1025
|
+
});
|
|
1026
|
+
export const SessionShellPropsSchema = z.object({
|
|
1027
|
+
children: z.array(z.string()).optional(),
|
|
1028
|
+
});
|
|
1005
1029
|
export const SortPropsSchema = z.object({
|
|
1006
1030
|
appliedSort: z.union([
|
|
1007
1031
|
SortStateSchema.shape['appliedSort'],
|
|
@@ -1240,6 +1264,10 @@ export const RegularFacetActionSchema = z.union([
|
|
|
1240
1264
|
z.object({ event: z.object({ name: z.literal('showMoreValues'), context: z.unknown() }) }),
|
|
1241
1265
|
z.object({ event: z.object({ name: z.literal('showLessValues'), context: z.unknown() }) }),
|
|
1242
1266
|
]);
|
|
1267
|
+
export const SearchBoxActionSchema = z.never();
|
|
1268
|
+
export const SessionShellActionSchema = z.union([
|
|
1269
|
+
z.object({ event: z.object({ name: z.literal('initialize'), context: z.strictObject({}) }) }),
|
|
1270
|
+
]);
|
|
1243
1271
|
export const SortActionSchema = z.union([
|
|
1244
1272
|
z.object({
|
|
1245
1273
|
event: z.object({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const THERMIDOR_CATALOG_ID = "https://schema.thermidor.coveo.com/a2-ui/catalog.json";
|
|
2
|
-
export { ActionItemSchema, FollowupActionItemSchema, SearchActionItemSchema, SearchOptionActionItemSchema, CartSchema, CartActionsSchema, CartStateSchema, UpdateCartSchema, UpdateCartPayloadSchema, CartUpdateOperationSchema, PurchaseSchema, PurchasePayloadSchema, PurchaseProductSchema, TransactionSchema, QuerySuggestionsSchema, QuerySuggestionsActionsSchema, QuerySuggestionsStateSchema, QueryCompletionSchema, FetchSuggestionsSchema, FetchSuggestionsPayloadSchema, RestoreStateSchema, RestoreStatePayloadSchema, FacetRestoreSchema, NumericRangeRestoreSchema, OverrideCorrectionSchema, OverrideCorrectionPayloadSchema, ShowMoreSchema, ShowMorePayloadSchema, SelectProductsSchema, SelectProductsPayloadSchema, ProductClickSchema, ProductClickPayloadSchema, BundleDisplaySchema, BundleDisplayStateSchema, BundleSlotSchema, BundleTierSchema, CategoryFacetSchema, CategoryFacetActionsSchema, CategoryFacetValueSchema, CategoryFacetSearchSchema, CategoryFacetSearchPayloadSchema, CategoryFacetSelectPathPayloadSchema, CategoryFacetStateSchema, CategoryFacetValuesSchema, CommerceSearchSchema, CommerceSearchActionsSchema, CommerceSearchStateSchema, SubmitQuerySchema, SubmitQueryPayloadSchema, ComparisonAttributeSchema, ComparisonProductSchema, ComparisonTableSchema, ComparisonTableStateSchema, ComponentContractsSchema, DateFacetSchema, DateFacetActionsSchema, DateFacetApplyCustomRangePayloadSchema, DateFacetCustomRangeSchema, DateFacetStateSchema, DateFacetToggleSelectPayloadSchema, DateFacetToggleSingleSelectPayloadSchema, DateFacetValueSchema, FacetManagerSchema, FacetManagerActionsSchema, FacetManagerStateSchema, BreadboxSchema, BreadboxActionsSchema, BreadboxStateSchema, BreadboxFacetSchema, BreadboxRegularFacetSchema, BreadboxRegularFacetValueSchema, BreadboxNumericalRangeFacetSchema, BreadboxNumericalRangeFacetValueSchema, BreadboxDateRangeFacetSchema, BreadboxDateRangeFacetValueSchema, BreadboxHierarchicalFacetSchema, BreadboxDeselectPayloadSchema, BreadboxDeselectRegularValueSchema, BreadboxDeselectNumericalRangeSchema, BreadboxDeselectDateRangeSchema, BreadboxDeselectHierarchicalPathSchema, FacetValueStateSchema, SelectableFacetValueStateSchema, LayoutStackSchema, LayoutStackStateSchema, NextActionsBarSchema, NextActionsStateSchema, NumericFacetSchema, NumericFacetActionsSchema, NumericFacetCustomRangeSchema, NumericFacetDomainSchema, NumericFacetApplyCustomRangePayloadSchema, NumericFacetStateSchema, NumericFacetToggleSelectPayloadSchema, NumericFacetToggleSingleSelectPayloadSchema, NumericFacetValueSchema, PageSizeSchema, PageSizeActionsSchema, PageSizeStateSchema, PaginationSchema, PaginationActionsSchema, PaginationStateSchema, ProductCarouselSchema, ProductCarouselStateSchema, ProductListSchema, ProductListActionsSchema, ProductListStateSchema, ProductResearchCardSchema, ProductResearchCardActionsSchema, ProductResearchCardStateSchema, ProductResearchRelatedDocumentSchema, ProductSummarySchema, ProductSummaryActionsSchema, ProductSummaryStateSchema, QuerySummarySchema, QuerySummaryStateSchema, BadgeSchema, BadgePlacementSchema, ProductSchema, RegularFacetSchema, RegularFacetActionsSchema, RegularFacetSearchSchema, RegularFacetSearchResultSchema, RegularFacetStateSchema, RegularFacetToggleExcludePayloadSchema, RegularFacetToggleSelectPayloadSchema, RegularFacetToggleSingleExcludePayloadSchema, RegularFacetToggleSingleSelectPayloadSchema, RegularFacetValueSchema, SelectActionPayloadSchema, SelectSearchOptionPayloadSchema, SelectPagePayloadSchema, SelectSortPayloadSchema, SetPageSizePayloadSchema, SortSchema, SortActionsSchema, SortCriterionSchema, SortStateSchema, BundleDisplayPropsSchema, CartPropsSchema, CategoryFacetPropsSchema, CommerceSearchPropsSchema, ComparisonTablePropsSchema, DateFacetPropsSchema, FacetManagerPropsSchema, BreadboxPropsSchema, LayoutStackPropsSchema, NextActionsBarPropsSchema, NumericFacetPropsSchema, PageSizePropsSchema, PaginationPropsSchema, ProductCarouselPropsSchema, ProductListPropsSchema, ProductResearchCardPropsSchema, ProductSummaryPropsSchema, QuerySuggestionsPropsSchema, QuerySummaryPropsSchema, RegularFacetPropsSchema, SortPropsSchema, DataBindingSchema, FunctionCallSchema, DynamicNumberSchema, DynamicStringSchema, DynamicBooleanSchema, DynamicStringListSchema, DynamicValueSchema, DynamicActionSchema, BundleDisplayActionSchema, CategoryFacetActionSchema, CommerceSearchActionSchema, ComparisonTableActionSchema, DateFacetActionSchema, FacetManagerActionSchema, BreadboxActionSchema, LayoutStackActionSchema, NextActionsBarActionSchema, NumericFacetActionSchema, PageSizeActionSchema, PaginationActionSchema, ProductCarouselActionSchema, ProductListActionSchema, ProductResearchCardActionSchema, ProductSummaryActionSchema, QuerySummaryActionSchema, RegularFacetActionSchema, SortActionSchema, } from './schemas.js';
|
|
3
|
-
export type { ActionItem, FollowupActionItem, SearchActionItem, SearchOptionActionItem, Cart, CartActions, CartState, UpdateCart, UpdateCartPayload, CartUpdateOperation, Purchase, PurchasePayload, PurchaseProduct, Transaction, QuerySuggestions, QuerySuggestionsActions, QuerySuggestionsState, QueryCompletion, FetchSuggestions, FetchSuggestionsPayload, RestoreState, RestoreStatePayload, FacetRestore, NumericRangeRestore, OverrideCorrection, OverrideCorrectionPayload, ShowMore, ShowMorePayload, SelectProducts, SelectProductsPayload, ProductClick, ProductClickPayload, BundleDisplay, BundleDisplayState, BundleSlot, BundleTier, CategoryFacet, CategoryFacetActions, CategoryFacetValue, CategoryFacetSearch, CategoryFacetSearchPayload, CategoryFacetSelectPathPayload, CategoryFacetState, CategoryFacetValues, CommerceSearch, CommerceSearchActions, CommerceSearchState, SubmitQuery, SubmitQueryPayload, ComparisonAttribute, ComparisonProduct, ComparisonTable, ComparisonTableState, ComponentContracts, DateFacet, DateFacetActions, DateFacetApplyCustomRangePayload, DateFacetCustomRange, DateFacetState, DateFacetToggleSelectPayload, DateFacetToggleSingleSelectPayload, DateFacetValue, FacetManager, FacetManagerActions, FacetManagerState, Breadbox, BreadboxActions, BreadboxState, BreadboxFacet, BreadboxRegularFacet, BreadboxRegularFacetValue, BreadboxNumericalRangeFacet, BreadboxNumericalRangeFacetValue, BreadboxDateRangeFacet, BreadboxDateRangeFacetValue, BreadboxHierarchicalFacet, BreadboxDeselectPayload, BreadboxDeselectRegularValue, BreadboxDeselectNumericalRange, BreadboxDeselectDateRange, BreadboxDeselectHierarchicalPath, FacetValueState, SelectableFacetValueState, LayoutStack, LayoutStackState, NextActionsBar, NextActionsState, NumericFacet, NumericFacetActions, NumericFacetCustomRange, NumericFacetDomain, NumericFacetApplyCustomRangePayload, NumericFacetState, NumericFacetToggleSelectPayload, NumericFacetToggleSingleSelectPayload, NumericFacetValue, PageSize, PageSizeActions, PageSizeState, Pagination, PaginationActions, PaginationState, Badge, BadgePlacement, Product, ProductCarousel, ProductCarouselState, ProductList, ProductListActions, ProductListState, ProductResearchCard, ProductResearchCardActions, ProductResearchCardState, ProductResearchRelatedDocument, ProductSummary, ProductSummaryActions, ProductSummaryState, QuerySummary, QuerySummaryState, RegularFacet, RegularFacetActions, RegularFacetSearch, RegularFacetSearchResult, RegularFacetState, RegularFacetToggleExcludePayload, RegularFacetToggleSelectPayload, RegularFacetToggleSingleExcludePayload, RegularFacetToggleSingleSelectPayload, RegularFacetValue, SelectActionPayload, SelectSearchOptionPayload, SelectPagePayload, SelectSortPayload, SetPageSizePayload, Sort, SortActions, SortCriterion, SortState, DataBinding, FunctionCall, DynamicNumber, DynamicString, DynamicBoolean, DynamicStringList, DynamicValue, DynamicAction, BundleDisplayAction, CategoryFacetAction, CommerceSearchAction, ComparisonTableAction, DateFacetAction, FacetManagerAction, BreadboxAction, LayoutStackAction, NextActionsBarAction, NumericFacetAction, PageSizeAction, PaginationAction, ProductCarouselAction, ProductListAction, ProductResearchCardAction, ProductSummaryAction, QuerySummaryAction, RegularFacetAction, SortAction, BundleDisplayProps, CartProps, CategoryFacetProps, CommerceSearchProps, ComparisonTableProps, DateFacetProps, FacetManagerProps, BreadboxProps, LayoutStackProps, NextActionsBarProps, NumericFacetProps, PageSizeProps, PaginationProps, ProductCarouselProps, ProductListProps, ProductResearchCardProps, ProductSummaryProps, QuerySuggestionsProps, QuerySummaryProps, RegularFacetProps, SortProps, } from './schemas.js';
|
|
2
|
+
export { ActionItemSchema, FollowupActionItemSchema, SearchActionItemSchema, SearchOptionActionItemSchema, CartSchema, CartActionsSchema, CartStateSchema, UpdateCartSchema, UpdateCartPayloadSchema, CartUpdateOperationSchema, PurchaseSchema, PurchasePayloadSchema, PurchaseProductSchema, TransactionSchema, QuerySuggestionsSchema, QuerySuggestionsActionsSchema, QuerySuggestionsStateSchema, QueryCompletionSchema, FetchSuggestionsSchema, FetchSuggestionsPayloadSchema, RestoreStateSchema, RestoreStatePayloadSchema, FacetRestoreSchema, NumericRangeRestoreSchema, OverrideCorrectionSchema, OverrideCorrectionPayloadSchema, ShowMoreSchema, ShowMorePayloadSchema, SelectProductsSchema, SelectProductsPayloadSchema, ProductClickSchema, ProductClickPayloadSchema, BundleDisplaySchema, BundleDisplayStateSchema, BundleSlotSchema, BundleTierSchema, CategoryFacetSchema, CategoryFacetActionsSchema, CategoryFacetValueSchema, CategoryFacetSearchSchema, CategoryFacetSearchPayloadSchema, CategoryFacetSelectPathPayloadSchema, CategoryFacetStateSchema, CategoryFacetValuesSchema, CommerceSearchSchema, CommerceSearchActionsSchema, CommerceSearchStateSchema, SubmitQuerySchema, SubmitQueryPayloadSchema, ComparisonAttributeSchema, ComparisonProductSchema, ComparisonTableSchema, ComparisonTableStateSchema, ComponentContractsSchema, DateFacetSchema, DateFacetActionsSchema, DateFacetApplyCustomRangePayloadSchema, DateFacetCustomRangeSchema, DateFacetStateSchema, DateFacetToggleSelectPayloadSchema, DateFacetToggleSingleSelectPayloadSchema, DateFacetValueSchema, FacetManagerSchema, FacetManagerActionsSchema, FacetManagerStateSchema, BreadboxSchema, BreadboxActionsSchema, BreadboxStateSchema, BreadboxFacetSchema, BreadboxRegularFacetSchema, BreadboxRegularFacetValueSchema, BreadboxNumericalRangeFacetSchema, BreadboxNumericalRangeFacetValueSchema, BreadboxDateRangeFacetSchema, BreadboxDateRangeFacetValueSchema, BreadboxHierarchicalFacetSchema, BreadboxDeselectPayloadSchema, BreadboxDeselectRegularValueSchema, BreadboxDeselectNumericalRangeSchema, BreadboxDeselectDateRangeSchema, BreadboxDeselectHierarchicalPathSchema, FacetValueStateSchema, SelectableFacetValueStateSchema, LayoutStackSchema, LayoutStackStateSchema, SearchBoxSchema, SearchBoxStateSchema, SessionShellSchema, SessionShellActionsSchema, SessionShellStateSchema, InitializeSchema, InitializePayloadSchema, NextActionsBarSchema, NextActionsStateSchema, NumericFacetSchema, NumericFacetActionsSchema, NumericFacetCustomRangeSchema, NumericFacetDomainSchema, NumericFacetApplyCustomRangePayloadSchema, NumericFacetStateSchema, NumericFacetToggleSelectPayloadSchema, NumericFacetToggleSingleSelectPayloadSchema, NumericFacetValueSchema, PageSizeSchema, PageSizeActionsSchema, PageSizeStateSchema, PaginationSchema, PaginationActionsSchema, PaginationStateSchema, ProductCarouselSchema, ProductCarouselStateSchema, ProductListSchema, ProductListActionsSchema, ProductListStateSchema, ProductResearchCardSchema, ProductResearchCardActionsSchema, ProductResearchCardStateSchema, ProductResearchRelatedDocumentSchema, ProductSummarySchema, ProductSummaryActionsSchema, ProductSummaryStateSchema, QuerySummarySchema, QuerySummaryStateSchema, BadgeSchema, BadgePlacementSchema, ProductSchema, RegularFacetSchema, RegularFacetActionsSchema, RegularFacetSearchSchema, RegularFacetSearchResultSchema, RegularFacetStateSchema, RegularFacetToggleExcludePayloadSchema, RegularFacetToggleSelectPayloadSchema, RegularFacetToggleSingleExcludePayloadSchema, RegularFacetToggleSingleSelectPayloadSchema, RegularFacetValueSchema, SelectActionPayloadSchema, SelectSearchOptionPayloadSchema, SelectPagePayloadSchema, SelectSortPayloadSchema, SetPageSizePayloadSchema, SortSchema, SortActionsSchema, SortCriterionSchema, SortStateSchema, BundleDisplayPropsSchema, CartPropsSchema, CategoryFacetPropsSchema, CommerceSearchPropsSchema, ComparisonTablePropsSchema, DateFacetPropsSchema, FacetManagerPropsSchema, BreadboxPropsSchema, LayoutStackPropsSchema, SearchBoxPropsSchema, SessionShellPropsSchema, NextActionsBarPropsSchema, NumericFacetPropsSchema, PageSizePropsSchema, PaginationPropsSchema, ProductCarouselPropsSchema, ProductListPropsSchema, ProductResearchCardPropsSchema, ProductSummaryPropsSchema, QuerySuggestionsPropsSchema, QuerySummaryPropsSchema, RegularFacetPropsSchema, SortPropsSchema, DataBindingSchema, FunctionCallSchema, DynamicNumberSchema, DynamicStringSchema, DynamicBooleanSchema, DynamicStringListSchema, DynamicValueSchema, DynamicActionSchema, BundleDisplayActionSchema, CategoryFacetActionSchema, CommerceSearchActionSchema, ComparisonTableActionSchema, DateFacetActionSchema, FacetManagerActionSchema, BreadboxActionSchema, LayoutStackActionSchema, SearchBoxActionSchema, SessionShellActionSchema, NextActionsBarActionSchema, NumericFacetActionSchema, PageSizeActionSchema, PaginationActionSchema, ProductCarouselActionSchema, ProductListActionSchema, ProductResearchCardActionSchema, ProductSummaryActionSchema, QuerySummaryActionSchema, RegularFacetActionSchema, SortActionSchema, } from './schemas.js';
|
|
3
|
+
export type { ActionItem, FollowupActionItem, SearchActionItem, SearchOptionActionItem, Cart, CartActions, CartState, UpdateCart, UpdateCartPayload, CartUpdateOperation, Purchase, PurchasePayload, PurchaseProduct, Transaction, QuerySuggestions, QuerySuggestionsActions, QuerySuggestionsState, QueryCompletion, FetchSuggestions, FetchSuggestionsPayload, RestoreState, RestoreStatePayload, FacetRestore, NumericRangeRestore, OverrideCorrection, OverrideCorrectionPayload, ShowMore, ShowMorePayload, SelectProducts, SelectProductsPayload, ProductClick, ProductClickPayload, BundleDisplay, BundleDisplayState, BundleSlot, BundleTier, CategoryFacet, CategoryFacetActions, CategoryFacetValue, CategoryFacetSearch, CategoryFacetSearchPayload, CategoryFacetSelectPathPayload, CategoryFacetState, CategoryFacetValues, CommerceSearch, CommerceSearchActions, CommerceSearchState, SubmitQuery, SubmitQueryPayload, ComparisonAttribute, ComparisonProduct, ComparisonTable, ComparisonTableState, ComponentContracts, DateFacet, DateFacetActions, DateFacetApplyCustomRangePayload, DateFacetCustomRange, DateFacetState, DateFacetToggleSelectPayload, DateFacetToggleSingleSelectPayload, DateFacetValue, FacetManager, FacetManagerActions, FacetManagerState, Breadbox, BreadboxActions, BreadboxState, BreadboxFacet, BreadboxRegularFacet, BreadboxRegularFacetValue, BreadboxNumericalRangeFacet, BreadboxNumericalRangeFacetValue, BreadboxDateRangeFacet, BreadboxDateRangeFacetValue, BreadboxHierarchicalFacet, BreadboxDeselectPayload, BreadboxDeselectRegularValue, BreadboxDeselectNumericalRange, BreadboxDeselectDateRange, BreadboxDeselectHierarchicalPath, FacetValueState, SelectableFacetValueState, LayoutStack, LayoutStackState, SearchBox, SearchBoxState, SessionShell, SessionShellActions, SessionShellState, Initialize, InitializePayload, NextActionsBar, NextActionsState, NumericFacet, NumericFacetActions, NumericFacetCustomRange, NumericFacetDomain, NumericFacetApplyCustomRangePayload, NumericFacetState, NumericFacetToggleSelectPayload, NumericFacetToggleSingleSelectPayload, NumericFacetValue, PageSize, PageSizeActions, PageSizeState, Pagination, PaginationActions, PaginationState, Badge, BadgePlacement, Product, ProductCarousel, ProductCarouselState, ProductList, ProductListActions, ProductListState, ProductResearchCard, ProductResearchCardActions, ProductResearchCardState, ProductResearchRelatedDocument, ProductSummary, ProductSummaryActions, ProductSummaryState, QuerySummary, QuerySummaryState, RegularFacet, RegularFacetActions, RegularFacetSearch, RegularFacetSearchResult, RegularFacetState, RegularFacetToggleExcludePayload, RegularFacetToggleSelectPayload, RegularFacetToggleSingleExcludePayload, RegularFacetToggleSingleSelectPayload, RegularFacetValue, SelectActionPayload, SelectSearchOptionPayload, SelectPagePayload, SelectSortPayload, SetPageSizePayload, Sort, SortActions, SortCriterion, SortState, DataBinding, FunctionCall, DynamicNumber, DynamicString, DynamicBoolean, DynamicStringList, DynamicValue, DynamicAction, BundleDisplayAction, CategoryFacetAction, CommerceSearchAction, ComparisonTableAction, DateFacetAction, FacetManagerAction, BreadboxAction, LayoutStackAction, SearchBoxAction, SessionShellAction, NextActionsBarAction, NumericFacetAction, PageSizeAction, PaginationAction, ProductCarouselAction, ProductListAction, ProductResearchCardAction, ProductSummaryAction, QuerySummaryAction, RegularFacetAction, SortAction, BundleDisplayProps, CartProps, CategoryFacetProps, CommerceSearchProps, ComparisonTableProps, DateFacetProps, FacetManagerProps, BreadboxProps, LayoutStackProps, SearchBoxProps, SessionShellProps, NextActionsBarProps, NumericFacetProps, PageSizeProps, PaginationProps, ProductCarouselProps, ProductListProps, ProductResearchCardProps, ProductSummaryProps, QuerySuggestionsProps, QuerySummaryProps, RegularFacetProps, SortProps, } from './schemas.js';
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
// of the default entry point against the Zod 3 schema build.
|
|
3
3
|
// Do not edit it directly; run `mise run generate` from the repository root.
|
|
4
4
|
export const THERMIDOR_CATALOG_ID = 'https://schema.thermidor.coveo.com/a2-ui/catalog.json';
|
|
5
|
-
export { ActionItemSchema, FollowupActionItemSchema, SearchActionItemSchema, SearchOptionActionItemSchema, CartSchema, CartActionsSchema, CartStateSchema, UpdateCartSchema, UpdateCartPayloadSchema, CartUpdateOperationSchema, PurchaseSchema, PurchasePayloadSchema, PurchaseProductSchema, TransactionSchema, QuerySuggestionsSchema, QuerySuggestionsActionsSchema, QuerySuggestionsStateSchema, QueryCompletionSchema, FetchSuggestionsSchema, FetchSuggestionsPayloadSchema, RestoreStateSchema, RestoreStatePayloadSchema, FacetRestoreSchema, NumericRangeRestoreSchema, OverrideCorrectionSchema, OverrideCorrectionPayloadSchema, ShowMoreSchema, ShowMorePayloadSchema, SelectProductsSchema, SelectProductsPayloadSchema, ProductClickSchema, ProductClickPayloadSchema, BundleDisplaySchema, BundleDisplayStateSchema, BundleSlotSchema, BundleTierSchema, CategoryFacetSchema, CategoryFacetActionsSchema, CategoryFacetValueSchema, CategoryFacetSearchSchema, CategoryFacetSearchPayloadSchema, CategoryFacetSelectPathPayloadSchema, CategoryFacetStateSchema, CategoryFacetValuesSchema, CommerceSearchSchema, CommerceSearchActionsSchema, CommerceSearchStateSchema, SubmitQuerySchema, SubmitQueryPayloadSchema, ComparisonAttributeSchema, ComparisonProductSchema, ComparisonTableSchema, ComparisonTableStateSchema, ComponentContractsSchema, DateFacetSchema, DateFacetActionsSchema, DateFacetApplyCustomRangePayloadSchema, DateFacetCustomRangeSchema, DateFacetStateSchema, DateFacetToggleSelectPayloadSchema, DateFacetToggleSingleSelectPayloadSchema, DateFacetValueSchema, FacetManagerSchema, FacetManagerActionsSchema, FacetManagerStateSchema, BreadboxSchema, BreadboxActionsSchema, BreadboxStateSchema, BreadboxFacetSchema, BreadboxRegularFacetSchema, BreadboxRegularFacetValueSchema, BreadboxNumericalRangeFacetSchema, BreadboxNumericalRangeFacetValueSchema, BreadboxDateRangeFacetSchema, BreadboxDateRangeFacetValueSchema, BreadboxHierarchicalFacetSchema, BreadboxDeselectPayloadSchema, BreadboxDeselectRegularValueSchema, BreadboxDeselectNumericalRangeSchema, BreadboxDeselectDateRangeSchema, BreadboxDeselectHierarchicalPathSchema, FacetValueStateSchema, SelectableFacetValueStateSchema, LayoutStackSchema, LayoutStackStateSchema, NextActionsBarSchema, NextActionsStateSchema, NumericFacetSchema, NumericFacetActionsSchema, NumericFacetCustomRangeSchema, NumericFacetDomainSchema, NumericFacetApplyCustomRangePayloadSchema, NumericFacetStateSchema, NumericFacetToggleSelectPayloadSchema, NumericFacetToggleSingleSelectPayloadSchema, NumericFacetValueSchema, PageSizeSchema, PageSizeActionsSchema, PageSizeStateSchema, PaginationSchema, PaginationActionsSchema, PaginationStateSchema, ProductCarouselSchema, ProductCarouselStateSchema, ProductListSchema, ProductListActionsSchema, ProductListStateSchema, ProductResearchCardSchema, ProductResearchCardActionsSchema, ProductResearchCardStateSchema, ProductResearchRelatedDocumentSchema, ProductSummarySchema, ProductSummaryActionsSchema, ProductSummaryStateSchema, QuerySummarySchema, QuerySummaryStateSchema, BadgeSchema, BadgePlacementSchema, ProductSchema, RegularFacetSchema, RegularFacetActionsSchema, RegularFacetSearchSchema, RegularFacetSearchResultSchema, RegularFacetStateSchema, RegularFacetToggleExcludePayloadSchema, RegularFacetToggleSelectPayloadSchema, RegularFacetToggleSingleExcludePayloadSchema, RegularFacetToggleSingleSelectPayloadSchema, RegularFacetValueSchema, SelectActionPayloadSchema, SelectSearchOptionPayloadSchema, SelectPagePayloadSchema, SelectSortPayloadSchema, SetPageSizePayloadSchema, SortSchema, SortActionsSchema, SortCriterionSchema, SortStateSchema, BundleDisplayPropsSchema, CartPropsSchema, CategoryFacetPropsSchema, CommerceSearchPropsSchema, ComparisonTablePropsSchema, DateFacetPropsSchema, FacetManagerPropsSchema, BreadboxPropsSchema, LayoutStackPropsSchema, NextActionsBarPropsSchema, NumericFacetPropsSchema, PageSizePropsSchema, PaginationPropsSchema, ProductCarouselPropsSchema, ProductListPropsSchema, ProductResearchCardPropsSchema, ProductSummaryPropsSchema, QuerySuggestionsPropsSchema, QuerySummaryPropsSchema, RegularFacetPropsSchema, SortPropsSchema, DataBindingSchema, FunctionCallSchema, DynamicNumberSchema, DynamicStringSchema, DynamicBooleanSchema, DynamicStringListSchema, DynamicValueSchema, DynamicActionSchema, BundleDisplayActionSchema, CategoryFacetActionSchema, CommerceSearchActionSchema, ComparisonTableActionSchema, DateFacetActionSchema, FacetManagerActionSchema, BreadboxActionSchema, LayoutStackActionSchema, NextActionsBarActionSchema, NumericFacetActionSchema, PageSizeActionSchema, PaginationActionSchema, ProductCarouselActionSchema, ProductListActionSchema, ProductResearchCardActionSchema, ProductSummaryActionSchema, QuerySummaryActionSchema, RegularFacetActionSchema, SortActionSchema, } from './schemas.js';
|
|
5
|
+
export { ActionItemSchema, FollowupActionItemSchema, SearchActionItemSchema, SearchOptionActionItemSchema, CartSchema, CartActionsSchema, CartStateSchema, UpdateCartSchema, UpdateCartPayloadSchema, CartUpdateOperationSchema, PurchaseSchema, PurchasePayloadSchema, PurchaseProductSchema, TransactionSchema, QuerySuggestionsSchema, QuerySuggestionsActionsSchema, QuerySuggestionsStateSchema, QueryCompletionSchema, FetchSuggestionsSchema, FetchSuggestionsPayloadSchema, RestoreStateSchema, RestoreStatePayloadSchema, FacetRestoreSchema, NumericRangeRestoreSchema, OverrideCorrectionSchema, OverrideCorrectionPayloadSchema, ShowMoreSchema, ShowMorePayloadSchema, SelectProductsSchema, SelectProductsPayloadSchema, ProductClickSchema, ProductClickPayloadSchema, BundleDisplaySchema, BundleDisplayStateSchema, BundleSlotSchema, BundleTierSchema, CategoryFacetSchema, CategoryFacetActionsSchema, CategoryFacetValueSchema, CategoryFacetSearchSchema, CategoryFacetSearchPayloadSchema, CategoryFacetSelectPathPayloadSchema, CategoryFacetStateSchema, CategoryFacetValuesSchema, CommerceSearchSchema, CommerceSearchActionsSchema, CommerceSearchStateSchema, SubmitQuerySchema, SubmitQueryPayloadSchema, ComparisonAttributeSchema, ComparisonProductSchema, ComparisonTableSchema, ComparisonTableStateSchema, ComponentContractsSchema, DateFacetSchema, DateFacetActionsSchema, DateFacetApplyCustomRangePayloadSchema, DateFacetCustomRangeSchema, DateFacetStateSchema, DateFacetToggleSelectPayloadSchema, DateFacetToggleSingleSelectPayloadSchema, DateFacetValueSchema, FacetManagerSchema, FacetManagerActionsSchema, FacetManagerStateSchema, BreadboxSchema, BreadboxActionsSchema, BreadboxStateSchema, BreadboxFacetSchema, BreadboxRegularFacetSchema, BreadboxRegularFacetValueSchema, BreadboxNumericalRangeFacetSchema, BreadboxNumericalRangeFacetValueSchema, BreadboxDateRangeFacetSchema, BreadboxDateRangeFacetValueSchema, BreadboxHierarchicalFacetSchema, BreadboxDeselectPayloadSchema, BreadboxDeselectRegularValueSchema, BreadboxDeselectNumericalRangeSchema, BreadboxDeselectDateRangeSchema, BreadboxDeselectHierarchicalPathSchema, FacetValueStateSchema, SelectableFacetValueStateSchema, LayoutStackSchema, LayoutStackStateSchema, SearchBoxSchema, SearchBoxStateSchema, SessionShellSchema, SessionShellActionsSchema, SessionShellStateSchema, InitializeSchema, InitializePayloadSchema, NextActionsBarSchema, NextActionsStateSchema, NumericFacetSchema, NumericFacetActionsSchema, NumericFacetCustomRangeSchema, NumericFacetDomainSchema, NumericFacetApplyCustomRangePayloadSchema, NumericFacetStateSchema, NumericFacetToggleSelectPayloadSchema, NumericFacetToggleSingleSelectPayloadSchema, NumericFacetValueSchema, PageSizeSchema, PageSizeActionsSchema, PageSizeStateSchema, PaginationSchema, PaginationActionsSchema, PaginationStateSchema, ProductCarouselSchema, ProductCarouselStateSchema, ProductListSchema, ProductListActionsSchema, ProductListStateSchema, ProductResearchCardSchema, ProductResearchCardActionsSchema, ProductResearchCardStateSchema, ProductResearchRelatedDocumentSchema, ProductSummarySchema, ProductSummaryActionsSchema, ProductSummaryStateSchema, QuerySummarySchema, QuerySummaryStateSchema, BadgeSchema, BadgePlacementSchema, ProductSchema, RegularFacetSchema, RegularFacetActionsSchema, RegularFacetSearchSchema, RegularFacetSearchResultSchema, RegularFacetStateSchema, RegularFacetToggleExcludePayloadSchema, RegularFacetToggleSelectPayloadSchema, RegularFacetToggleSingleExcludePayloadSchema, RegularFacetToggleSingleSelectPayloadSchema, RegularFacetValueSchema, SelectActionPayloadSchema, SelectSearchOptionPayloadSchema, SelectPagePayloadSchema, SelectSortPayloadSchema, SetPageSizePayloadSchema, SortSchema, SortActionsSchema, SortCriterionSchema, SortStateSchema, BundleDisplayPropsSchema, CartPropsSchema, CategoryFacetPropsSchema, CommerceSearchPropsSchema, ComparisonTablePropsSchema, DateFacetPropsSchema, FacetManagerPropsSchema, BreadboxPropsSchema, LayoutStackPropsSchema, SearchBoxPropsSchema, SessionShellPropsSchema, NextActionsBarPropsSchema, NumericFacetPropsSchema, PageSizePropsSchema, PaginationPropsSchema, ProductCarouselPropsSchema, ProductListPropsSchema, ProductResearchCardPropsSchema, ProductSummaryPropsSchema, QuerySuggestionsPropsSchema, QuerySummaryPropsSchema, RegularFacetPropsSchema, SortPropsSchema, DataBindingSchema, FunctionCallSchema, DynamicNumberSchema, DynamicStringSchema, DynamicBooleanSchema, DynamicStringListSchema, DynamicValueSchema, DynamicActionSchema, BundleDisplayActionSchema, CategoryFacetActionSchema, CommerceSearchActionSchema, ComparisonTableActionSchema, DateFacetActionSchema, FacetManagerActionSchema, BreadboxActionSchema, LayoutStackActionSchema, SearchBoxActionSchema, SessionShellActionSchema, NextActionsBarActionSchema, NumericFacetActionSchema, PageSizeActionSchema, PaginationActionSchema, ProductCarouselActionSchema, ProductListActionSchema, ProductResearchCardActionSchema, ProductSummaryActionSchema, QuerySummaryActionSchema, RegularFacetActionSchema, SortActionSchema, } from './schemas.js';
|