@coveo/thermidor-schema 1.0.0-beta.39 → 1.0.0-beta.40
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 +98 -53
- package/dist/generated/schemas.js +27 -25
- package/dist/generated/zod3/index.d.ts +2 -2
- package/dist/generated/zod3/index.js +1 -1
- package/dist/generated/zod3/schemas.d.ts +449 -336
- package/dist/generated/zod3/schemas.js +27 -25
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/schema/components/commerce-search.schema.json +2 -27
- package/schema/components/query-summary.schema.json +48 -3
|
@@ -28,6 +28,11 @@ export declare const BreadboxFacetTypeSchema: z.ZodEnum<{
|
|
|
28
28
|
regular: "regular";
|
|
29
29
|
}>;
|
|
30
30
|
export type BreadboxFacetType = z.infer<typeof BreadboxFacetTypeSchema>;
|
|
31
|
+
export declare const QueryCorrectionCauseSchema: z.ZodEnum<{
|
|
32
|
+
correction: "correction";
|
|
33
|
+
trigger: "trigger";
|
|
34
|
+
}>;
|
|
35
|
+
export type QueryCorrectionCause = z.infer<typeof QueryCorrectionCauseSchema>;
|
|
31
36
|
export declare const ProductSchema: z.ZodObject<{
|
|
32
37
|
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
33
38
|
badgePlacements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -578,10 +583,6 @@ export declare const InitializePayloadSchema: z.ZodObject<{}, z.core.$strict>;
|
|
|
578
583
|
export type InitializePayload = z.infer<typeof InitializePayloadSchema>;
|
|
579
584
|
export declare const SessionShellStateSchema: z.ZodObject<{}, z.core.$strict>;
|
|
580
585
|
export type SessionShellState = z.infer<typeof SessionShellStateSchema>;
|
|
581
|
-
export declare const OverrideCorrectionPayloadSchema: z.ZodObject<{
|
|
582
|
-
originalQuery: z.ZodString;
|
|
583
|
-
}, z.core.$strict>;
|
|
584
|
-
export type OverrideCorrectionPayload = z.infer<typeof OverrideCorrectionPayloadSchema>;
|
|
585
586
|
export declare const NumericRangeRestoreSchema: z.ZodObject<{
|
|
586
587
|
end: z.ZodNumber;
|
|
587
588
|
endInclusive: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -598,15 +599,21 @@ export declare const LayoutStackActionsSchema: z.ZodObject<{}, z.core.$strict>;
|
|
|
598
599
|
export type LayoutStackActions = z.infer<typeof LayoutStackActionsSchema>;
|
|
599
600
|
export declare const LayoutStackStateSchema: z.ZodObject<{}, z.core.$strict>;
|
|
600
601
|
export type LayoutStackState = z.infer<typeof LayoutStackStateSchema>;
|
|
601
|
-
export declare const QuerySummaryActionsSchema: z.ZodObject<{
|
|
602
|
+
export declare const QuerySummaryActionsSchema: z.ZodObject<{
|
|
603
|
+
overrideCorrection: z.ZodObject<{
|
|
604
|
+
payload: z.ZodUnknown;
|
|
605
|
+
}, z.core.$strict>;
|
|
606
|
+
}, z.core.$strict>;
|
|
602
607
|
export type QuerySummaryActions = z.infer<typeof QuerySummaryActionsSchema>;
|
|
603
|
-
export declare const
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
+
export declare const QueryCorrectionSchema: z.ZodObject<{
|
|
609
|
+
canOverride: z.ZodBoolean;
|
|
610
|
+
cause: z.ZodEnum<{
|
|
611
|
+
correction: "correction";
|
|
612
|
+
trigger: "trigger";
|
|
613
|
+
}>;
|
|
614
|
+
originalQuery: z.ZodString;
|
|
608
615
|
}, z.core.$strict>;
|
|
609
|
-
export type
|
|
616
|
+
export type QueryCorrection = z.infer<typeof QueryCorrectionSchema>;
|
|
610
617
|
export declare const SetPageSizePayloadSchema: z.ZodObject<{
|
|
611
618
|
pageSize: z.ZodNumber;
|
|
612
619
|
}, z.core.$strict>;
|
|
@@ -1142,12 +1149,6 @@ export declare const InitializeSchema: z.ZodObject<{
|
|
|
1142
1149
|
payload: z.ZodObject<{}, z.core.$strict>;
|
|
1143
1150
|
}, z.core.$strict>;
|
|
1144
1151
|
export type Initialize = z.infer<typeof InitializeSchema>;
|
|
1145
|
-
export declare const OverrideCorrectionSchema: z.ZodObject<{
|
|
1146
|
-
payload: z.ZodObject<{
|
|
1147
|
-
originalQuery: z.ZodString;
|
|
1148
|
-
}, z.core.$strict>;
|
|
1149
|
-
}, z.core.$strict>;
|
|
1150
|
-
export type OverrideCorrection = z.infer<typeof OverrideCorrectionSchema>;
|
|
1151
1152
|
export declare const FacetRestoreSchema: z.ZodObject<{
|
|
1152
1153
|
facetId: z.ZodString;
|
|
1153
1154
|
numericRanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1172,18 +1173,21 @@ export declare const LayoutStackSchema: z.ZodObject<{
|
|
|
1172
1173
|
state: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
1173
1174
|
}, z.core.$loose>;
|
|
1174
1175
|
export type LayoutStack = z.infer<typeof LayoutStackSchema>;
|
|
1175
|
-
export declare const
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
totalEntries: z.ZodNumber;
|
|
1176
|
+
export declare const QuerySummaryStateSchema: z.ZodObject<{
|
|
1177
|
+
correction: z.ZodOptional<z.ZodObject<{
|
|
1178
|
+
canOverride: z.ZodBoolean;
|
|
1179
|
+
cause: z.ZodEnum<{
|
|
1180
|
+
correction: "correction";
|
|
1181
|
+
trigger: "trigger";
|
|
1182
|
+
}>;
|
|
1183
|
+
originalQuery: z.ZodString;
|
|
1184
1184
|
}, z.core.$strict>>;
|
|
1185
|
-
|
|
1186
|
-
|
|
1185
|
+
firstIndex: z.ZodNumber;
|
|
1186
|
+
lastIndex: z.ZodNumber;
|
|
1187
|
+
query: z.ZodString;
|
|
1188
|
+
totalEntries: z.ZodNumber;
|
|
1189
|
+
}, z.core.$strict>;
|
|
1190
|
+
export type QuerySummaryState = z.infer<typeof QuerySummaryStateSchema>;
|
|
1187
1191
|
export declare const SetPageSizeSchema: z.ZodObject<{
|
|
1188
1192
|
payload: z.ZodObject<{
|
|
1189
1193
|
pageSize: z.ZodNumber;
|
|
@@ -1627,6 +1631,30 @@ export declare const RestoreStatePayloadSchema: z.ZodObject<{
|
|
|
1627
1631
|
sortCriteria: z.ZodOptional<z.ZodString>;
|
|
1628
1632
|
}, z.core.$strict>;
|
|
1629
1633
|
export type RestoreStatePayload = z.infer<typeof RestoreStatePayloadSchema>;
|
|
1634
|
+
export declare const QuerySummarySchema: z.ZodObject<{
|
|
1635
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
1636
|
+
overrideCorrection: z.ZodObject<{
|
|
1637
|
+
payload: z.ZodUnknown;
|
|
1638
|
+
}, z.core.$strict>;
|
|
1639
|
+
}, z.core.$strict>>;
|
|
1640
|
+
component: z.ZodLiteral<"QuerySummary">;
|
|
1641
|
+
id: z.ZodString;
|
|
1642
|
+
state: z.ZodOptional<z.ZodObject<{
|
|
1643
|
+
correction: z.ZodOptional<z.ZodObject<{
|
|
1644
|
+
canOverride: z.ZodBoolean;
|
|
1645
|
+
cause: z.ZodEnum<{
|
|
1646
|
+
correction: "correction";
|
|
1647
|
+
trigger: "trigger";
|
|
1648
|
+
}>;
|
|
1649
|
+
originalQuery: z.ZodString;
|
|
1650
|
+
}, z.core.$strict>>;
|
|
1651
|
+
firstIndex: z.ZodNumber;
|
|
1652
|
+
lastIndex: z.ZodNumber;
|
|
1653
|
+
query: z.ZodString;
|
|
1654
|
+
totalEntries: z.ZodNumber;
|
|
1655
|
+
}, z.core.$strict>>;
|
|
1656
|
+
}, z.core.$loose>;
|
|
1657
|
+
export type QuerySummary = z.infer<typeof QuerySummarySchema>;
|
|
1630
1658
|
export declare const PageSizeActionsSchema: z.ZodObject<{
|
|
1631
1659
|
setPageSize: z.ZodObject<{
|
|
1632
1660
|
payload: z.ZodObject<{
|
|
@@ -2263,11 +2291,6 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
2263
2291
|
}, z.core.$loose>;
|
|
2264
2292
|
export type Cart = z.infer<typeof CartSchema>;
|
|
2265
2293
|
export declare const CommerceSearchActionsSchema: z.ZodObject<{
|
|
2266
|
-
overrideCorrection: z.ZodObject<{
|
|
2267
|
-
payload: z.ZodObject<{
|
|
2268
|
-
originalQuery: z.ZodString;
|
|
2269
|
-
}, z.core.$strict>;
|
|
2270
|
-
}, z.core.$strict>;
|
|
2271
2294
|
restoreState: z.ZodObject<{
|
|
2272
2295
|
payload: z.ZodObject<{
|
|
2273
2296
|
facets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2296,11 +2319,6 @@ export declare const CommerceSearchActionsSchema: z.ZodObject<{
|
|
|
2296
2319
|
export type CommerceSearchActions = z.infer<typeof CommerceSearchActionsSchema>;
|
|
2297
2320
|
export declare const CommerceSearchSchema: z.ZodObject<{
|
|
2298
2321
|
actions: z.ZodOptional<z.ZodObject<{
|
|
2299
|
-
overrideCorrection: z.ZodObject<{
|
|
2300
|
-
payload: z.ZodObject<{
|
|
2301
|
-
originalQuery: z.ZodString;
|
|
2302
|
-
}, z.core.$strict>;
|
|
2303
|
-
}, z.core.$strict>;
|
|
2304
2322
|
restoreState: z.ZodObject<{
|
|
2305
2323
|
payload: z.ZodObject<{
|
|
2306
2324
|
facets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3018,11 +3036,6 @@ export declare const ComponentContractsSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
3018
3036
|
state: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
3019
3037
|
}, z.core.$loose>, z.ZodObject<{
|
|
3020
3038
|
actions: z.ZodOptional<z.ZodObject<{
|
|
3021
|
-
overrideCorrection: z.ZodObject<{
|
|
3022
|
-
payload: z.ZodObject<{
|
|
3023
|
-
originalQuery: z.ZodString;
|
|
3024
|
-
}, z.core.$strict>;
|
|
3025
|
-
}, z.core.$strict>;
|
|
3026
3039
|
restoreState: z.ZodObject<{
|
|
3027
3040
|
payload: z.ZodObject<{
|
|
3028
3041
|
facets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3057,10 +3070,22 @@ export declare const ComponentContractsSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
3057
3070
|
id: z.ZodString;
|
|
3058
3071
|
state: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
3059
3072
|
}, z.core.$loose>, z.ZodObject<{
|
|
3060
|
-
actions: z.ZodOptional<z.ZodObject<{
|
|
3073
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
3074
|
+
overrideCorrection: z.ZodObject<{
|
|
3075
|
+
payload: z.ZodUnknown;
|
|
3076
|
+
}, z.core.$strict>;
|
|
3077
|
+
}, z.core.$strict>>;
|
|
3061
3078
|
component: z.ZodLiteral<"QuerySummary">;
|
|
3062
3079
|
id: z.ZodString;
|
|
3063
3080
|
state: z.ZodOptional<z.ZodObject<{
|
|
3081
|
+
correction: z.ZodOptional<z.ZodObject<{
|
|
3082
|
+
canOverride: z.ZodBoolean;
|
|
3083
|
+
cause: z.ZodEnum<{
|
|
3084
|
+
correction: "correction";
|
|
3085
|
+
trigger: "trigger";
|
|
3086
|
+
}>;
|
|
3087
|
+
originalQuery: z.ZodString;
|
|
3088
|
+
}, z.core.$strict>>;
|
|
3064
3089
|
firstIndex: z.ZodNumber;
|
|
3065
3090
|
lastIndex: z.ZodNumber;
|
|
3066
3091
|
query: z.ZodString;
|
|
@@ -4278,6 +4303,28 @@ export declare const QuerySummaryPropsSchema: z.ZodObject<{
|
|
|
4278
4303
|
void: "void";
|
|
4279
4304
|
}>>;
|
|
4280
4305
|
}, z.core.$strip>]>;
|
|
4306
|
+
correction: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodObject<{
|
|
4307
|
+
canOverride: z.ZodBoolean;
|
|
4308
|
+
cause: z.ZodEnum<{
|
|
4309
|
+
correction: "correction";
|
|
4310
|
+
trigger: "trigger";
|
|
4311
|
+
}>;
|
|
4312
|
+
originalQuery: z.ZodString;
|
|
4313
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
4314
|
+
path: z.ZodString;
|
|
4315
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4316
|
+
call: z.ZodString;
|
|
4317
|
+
args: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
4318
|
+
returnType: z.ZodDefault<z.ZodEnum<{
|
|
4319
|
+
any: "any";
|
|
4320
|
+
array: "array";
|
|
4321
|
+
boolean: "boolean";
|
|
4322
|
+
number: "number";
|
|
4323
|
+
object: "object";
|
|
4324
|
+
string: "string";
|
|
4325
|
+
void: "void";
|
|
4326
|
+
}>>;
|
|
4327
|
+
}, z.core.$strip>]>>;
|
|
4281
4328
|
}, z.core.$strip>;
|
|
4282
4329
|
export declare const RegularFacetPropsSchema: z.ZodObject<{
|
|
4283
4330
|
field: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -4570,13 +4617,6 @@ export declare const CommerceSearchActionSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
4570
4617
|
pinnedProducts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4571
4618
|
}, z.core.$strict>;
|
|
4572
4619
|
}, z.core.$strip>;
|
|
4573
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4574
|
-
event: z.ZodObject<{
|
|
4575
|
-
name: z.ZodLiteral<"overrideCorrection">;
|
|
4576
|
-
context: z.ZodObject<{
|
|
4577
|
-
originalQuery: z.ZodString;
|
|
4578
|
-
}, z.core.$strict>;
|
|
4579
|
-
}, z.core.$strip>;
|
|
4580
4620
|
}, z.core.$strip>]>;
|
|
4581
4621
|
export type CommerceSearchAction = z.infer<typeof CommerceSearchActionSchema>;
|
|
4582
4622
|
export declare const ComparisonTableActionSchema: z.ZodNever;
|
|
@@ -4754,8 +4794,13 @@ export declare const QuerySuggestionsActionSchema: z.ZodUnion<readonly [z.ZodObj
|
|
|
4754
4794
|
}, z.core.$strip>;
|
|
4755
4795
|
}, z.core.$strip>]>;
|
|
4756
4796
|
export type QuerySuggestionsAction = z.infer<typeof QuerySuggestionsActionSchema>;
|
|
4757
|
-
export declare const QuerySummaryActionSchema: z.
|
|
4758
|
-
|
|
4797
|
+
export declare const QuerySummaryActionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
4798
|
+
event: z.ZodObject<{
|
|
4799
|
+
name: z.ZodLiteral<"overrideCorrection">;
|
|
4800
|
+
context: z.ZodUnknown;
|
|
4801
|
+
}, z.core.$strip>;
|
|
4802
|
+
}, z.core.$strip>]>;
|
|
4803
|
+
export type QuerySummaryAction = z.infer<typeof QuerySummaryActionSchema>;
|
|
4759
4804
|
export declare const RegularFacetActionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
4760
4805
|
event: z.ZodObject<{
|
|
4761
4806
|
name: z.ZodLiteral<"toggleSelect">;
|
|
@@ -15,6 +15,8 @@ export const BreadboxFacetTypeSchema = z.enum([
|
|
|
15
15
|
'numericalRange',
|
|
16
16
|
'regular',
|
|
17
17
|
]);
|
|
18
|
+
// What replaced the shopper's query: an automatic query correction, or a query trigger.
|
|
19
|
+
export const QueryCorrectionCauseSchema = z.enum(['correction', 'trigger']);
|
|
18
20
|
export const ProductSchema = z.strictObject({
|
|
19
21
|
additionalFields: z.record(z.string(), z.unknown()),
|
|
20
22
|
get badgePlacements() {
|
|
@@ -323,9 +325,6 @@ export const BreadboxFacetValueSchema = z.strictObject({
|
|
|
323
325
|
});
|
|
324
326
|
export const InitializePayloadSchema = z.strictObject({});
|
|
325
327
|
export const SessionShellStateSchema = z.strictObject({});
|
|
326
|
-
export const OverrideCorrectionPayloadSchema = z.strictObject({
|
|
327
|
-
originalQuery: z.string().min(1),
|
|
328
|
-
});
|
|
329
328
|
export const NumericRangeRestoreSchema = z.strictObject({
|
|
330
329
|
end: z.number(),
|
|
331
330
|
endInclusive: z.boolean().optional(),
|
|
@@ -337,12 +336,13 @@ export const SubmitQueryPayloadSchema = z.strictObject({
|
|
|
337
336
|
export const CommerceSearchStateSchema = z.strictObject({});
|
|
338
337
|
export const LayoutStackActionsSchema = z.strictObject({});
|
|
339
338
|
export const LayoutStackStateSchema = z.strictObject({});
|
|
340
|
-
export const QuerySummaryActionsSchema = z.strictObject({
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
339
|
+
export const QuerySummaryActionsSchema = z.strictObject({
|
|
340
|
+
overrideCorrection: ActionSchema,
|
|
341
|
+
});
|
|
342
|
+
export const QueryCorrectionSchema = z.strictObject({
|
|
343
|
+
canOverride: z.boolean(),
|
|
344
|
+
cause: z.enum(['correction', 'trigger']),
|
|
345
|
+
originalQuery: z.string().min(1),
|
|
346
346
|
});
|
|
347
347
|
export const SetPageSizePayloadSchema = z.strictObject({
|
|
348
348
|
pageSize: z.number().int().min(1),
|
|
@@ -536,9 +536,6 @@ export const BreadboxFacetSchema = z.discriminatedUnion('type', [
|
|
|
536
536
|
export const InitializeSchema = z.strictObject({
|
|
537
537
|
payload: InitializePayloadSchema,
|
|
538
538
|
});
|
|
539
|
-
export const OverrideCorrectionSchema = z.strictObject({
|
|
540
|
-
payload: OverrideCorrectionPayloadSchema,
|
|
541
|
-
});
|
|
542
539
|
export const FacetRestoreSchema = z.strictObject({
|
|
543
540
|
facetId: z.string().min(1),
|
|
544
541
|
numericRanges: z.array(NumericRangeRestoreSchema).optional(),
|
|
@@ -554,11 +551,12 @@ export const LayoutStackSchema = z.looseObject({
|
|
|
554
551
|
id: z.string().min(1).regex(new RegExp('^[a-z][a-z0-9-]*$')),
|
|
555
552
|
state: LayoutStackStateSchema.optional(),
|
|
556
553
|
});
|
|
557
|
-
export const
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
554
|
+
export const QuerySummaryStateSchema = z.strictObject({
|
|
555
|
+
correction: QueryCorrectionSchema.optional(),
|
|
556
|
+
firstIndex: z.number().int().min(0),
|
|
557
|
+
lastIndex: z.number().int().min(0),
|
|
558
|
+
query: z.string(),
|
|
559
|
+
totalEntries: z.number().int().min(0),
|
|
562
560
|
});
|
|
563
561
|
export const SetPageSizeSchema = z.strictObject({
|
|
564
562
|
payload: SetPageSizePayloadSchema,
|
|
@@ -673,6 +671,12 @@ export const RestoreStatePayloadSchema = z.strictObject({
|
|
|
673
671
|
query: z.string(),
|
|
674
672
|
sortCriteria: z.string().optional(),
|
|
675
673
|
});
|
|
674
|
+
export const QuerySummarySchema = z.looseObject({
|
|
675
|
+
actions: QuerySummaryActionsSchema.optional(),
|
|
676
|
+
component: z.literal('QuerySummary'),
|
|
677
|
+
id: z.string().min(1).regex(new RegExp('^[a-z][a-z0-9-]*$')),
|
|
678
|
+
state: QuerySummaryStateSchema.optional(),
|
|
679
|
+
});
|
|
676
680
|
export const PageSizeActionsSchema = z.strictObject({
|
|
677
681
|
setPageSize: SetPageSizeSchema,
|
|
678
682
|
});
|
|
@@ -774,7 +778,6 @@ export const CartSchema = z.looseObject({
|
|
|
774
778
|
state: CartStateSchema.optional(),
|
|
775
779
|
});
|
|
776
780
|
export const CommerceSearchActionsSchema = z.strictObject({
|
|
777
|
-
overrideCorrection: OverrideCorrectionSchema,
|
|
778
781
|
restoreState: RestoreStateSchema,
|
|
779
782
|
submitQuery: SubmitQuerySchema,
|
|
780
783
|
});
|
|
@@ -1008,6 +1011,9 @@ export const QuerySummaryPropsSchema = z.object({
|
|
|
1008
1011
|
firstIndex: DynamicNumberSchema,
|
|
1009
1012
|
lastIndex: DynamicNumberSchema,
|
|
1010
1013
|
totalEntries: DynamicNumberSchema,
|
|
1014
|
+
correction: z
|
|
1015
|
+
.union([QuerySummaryStateSchema.shape['correction'], DataBindingSchema, FunctionCallSchema])
|
|
1016
|
+
.optional(),
|
|
1011
1017
|
});
|
|
1012
1018
|
export const RegularFacetPropsSchema = z.object({
|
|
1013
1019
|
field: DynamicStringSchema,
|
|
@@ -1109,12 +1115,6 @@ export const CommerceSearchActionSchema = z.union([
|
|
|
1109
1115
|
}),
|
|
1110
1116
|
}),
|
|
1111
1117
|
}),
|
|
1112
|
-
z.object({
|
|
1113
|
-
event: z.object({
|
|
1114
|
-
name: z.literal('overrideCorrection'),
|
|
1115
|
-
context: z.strictObject({ originalQuery: z.string() }),
|
|
1116
|
-
}),
|
|
1117
|
-
}),
|
|
1118
1118
|
]);
|
|
1119
1119
|
export const ComparisonTableActionSchema = z.never();
|
|
1120
1120
|
export const DateFacetActionSchema = z.union([
|
|
@@ -1234,7 +1234,9 @@ export const QuerySuggestionsActionSchema = z.union([
|
|
|
1234
1234
|
}),
|
|
1235
1235
|
}),
|
|
1236
1236
|
]);
|
|
1237
|
-
export const QuerySummaryActionSchema = z.
|
|
1237
|
+
export const QuerySummaryActionSchema = z.union([
|
|
1238
|
+
z.object({ event: z.object({ name: z.literal('overrideCorrection'), context: z.unknown() }) }),
|
|
1239
|
+
]);
|
|
1238
1240
|
export const RegularFacetActionSchema = z.union([
|
|
1239
1241
|
z.object({
|
|
1240
1242
|
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, InstantProductsSchema, InstantProductsActionsSchema, InstantProductsStateSchema, FetchInstantProductsSchema, FetchInstantProductsPayloadSchema, RestoreStateSchema, RestoreStatePayloadSchema, FacetRestoreSchema, NumericRangeRestoreSchema,
|
|
3
|
-
export type { ActionItem, FollowupActionItem, SearchActionItem, SearchOptionActionItem, Cart, CartActions, CartState, UpdateCart, UpdateCartPayload, CartUpdateOperation, Purchase, PurchasePayload, PurchaseProduct, Transaction, QuerySuggestions, QuerySuggestionsActions, QuerySuggestionsState, QueryCompletion, FetchSuggestions, FetchSuggestionsPayload, InstantProducts, InstantProductsActions, InstantProductsState, FetchInstantProducts, FetchInstantProductsPayload, RestoreState, RestoreStatePayload, FacetRestore, NumericRangeRestore,
|
|
2
|
+
export { ActionItemSchema, FollowupActionItemSchema, SearchActionItemSchema, SearchOptionActionItemSchema, CartSchema, CartActionsSchema, CartStateSchema, UpdateCartSchema, UpdateCartPayloadSchema, CartUpdateOperationSchema, PurchaseSchema, PurchasePayloadSchema, PurchaseProductSchema, TransactionSchema, QuerySuggestionsSchema, QuerySuggestionsActionsSchema, QuerySuggestionsStateSchema, QueryCompletionSchema, FetchSuggestionsSchema, FetchSuggestionsPayloadSchema, InstantProductsSchema, InstantProductsActionsSchema, InstantProductsStateSchema, FetchInstantProductsSchema, FetchInstantProductsPayloadSchema, RestoreStateSchema, RestoreStatePayloadSchema, FacetRestoreSchema, NumericRangeRestoreSchema, ShowMoreSchema, ShowMorePayloadSchema, SelectProductsSchema, SelectProductsPayloadSchema, ProductClickSchema, ProductClickPayloadSchema, BundleDisplaySchema, BundleDisplayStateSchema, BundleSlotSchema, BundleTierSchema, CategoryFacetSchema, CategoryFacetActionsSchema, CategoryFacetValueSchema, CategoryFacetSearchSchema, CategoryFacetSearchPayloadSchema, CategoryFacetSearchStateSchema, 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, 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, QuerySummaryActionsSchema, QuerySummaryStateSchema, QueryCorrectionSchema, QueryCorrectionCauseSchema, BadgeSchema, BadgePlacementSchema, ProductSchema, RegularFacetSchema, RegularFacetActionsSchema, RegularFacetSearchSchema, RegularFacetSearchPayloadSchema, RegularFacetSearchResultSchema, RegularFacetSearchStateSchema, RegularFacetStateSchema, RegularFacetToggleSelectPayloadSchema, RegularFacetToggleSingleSelectPayloadSchema, RegularFacetValueSchema, SelectActionPayloadSchema, SelectSearchOptionPayloadSchema, SelectPagePayloadSchema, SelectSortPayloadSchema, SetPageSizePayloadSchema, SortSchema, SortActionsSchema, SortCriterionSchema, SortStateSchema, BundleDisplayPropsSchema, CartPropsSchema, CategoryFacetPropsSchema, CommerceSearchPropsSchema, ComparisonTablePropsSchema, DateFacetPropsSchema, FacetManagerPropsSchema, BreadboxPropsSchema, InstantProductsPropsSchema, 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, InstantProductsActionSchema, 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, InstantProducts, InstantProductsActions, InstantProductsState, FetchInstantProducts, FetchInstantProductsPayload, RestoreState, RestoreStatePayload, FacetRestore, NumericRangeRestore, ShowMore, ShowMorePayload, SelectProducts, SelectProductsPayload, ProductClick, ProductClickPayload, BundleDisplay, BundleDisplayState, BundleSlot, BundleTier, CategoryFacet, CategoryFacetActions, CategoryFacetValue, CategoryFacetSearch, CategoryFacetSearchPayload, CategoryFacetSearchState, 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, 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, QuerySummaryActions, QuerySummaryState, QueryCorrection, QueryCorrectionCause, RegularFacet, RegularFacetActions, RegularFacetSearch, RegularFacetSearchPayload, RegularFacetSearchResult, RegularFacetSearchState, RegularFacetState, RegularFacetToggleSelectPayload, 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, InstantProductsAction, LayoutStackAction, SearchBoxAction, SessionShellAction, NextActionsBarAction, NumericFacetAction, PageSizeAction, PaginationAction, ProductCarouselAction, ProductListAction, ProductResearchCardAction, ProductSummaryAction, QuerySummaryAction, RegularFacetAction, SortAction, BundleDisplayProps, CartProps, CategoryFacetProps, CommerceSearchProps, ComparisonTableProps, DateFacetProps, FacetManagerProps, BreadboxProps, InstantProductsProps, 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, InstantProductsSchema, InstantProductsActionsSchema, InstantProductsStateSchema, FetchInstantProductsSchema, FetchInstantProductsPayloadSchema, RestoreStateSchema, RestoreStatePayloadSchema, FacetRestoreSchema, NumericRangeRestoreSchema,
|
|
5
|
+
export { ActionItemSchema, FollowupActionItemSchema, SearchActionItemSchema, SearchOptionActionItemSchema, CartSchema, CartActionsSchema, CartStateSchema, UpdateCartSchema, UpdateCartPayloadSchema, CartUpdateOperationSchema, PurchaseSchema, PurchasePayloadSchema, PurchaseProductSchema, TransactionSchema, QuerySuggestionsSchema, QuerySuggestionsActionsSchema, QuerySuggestionsStateSchema, QueryCompletionSchema, FetchSuggestionsSchema, FetchSuggestionsPayloadSchema, InstantProductsSchema, InstantProductsActionsSchema, InstantProductsStateSchema, FetchInstantProductsSchema, FetchInstantProductsPayloadSchema, RestoreStateSchema, RestoreStatePayloadSchema, FacetRestoreSchema, NumericRangeRestoreSchema, ShowMoreSchema, ShowMorePayloadSchema, SelectProductsSchema, SelectProductsPayloadSchema, ProductClickSchema, ProductClickPayloadSchema, BundleDisplaySchema, BundleDisplayStateSchema, BundleSlotSchema, BundleTierSchema, CategoryFacetSchema, CategoryFacetActionsSchema, CategoryFacetValueSchema, CategoryFacetSearchSchema, CategoryFacetSearchPayloadSchema, CategoryFacetSearchStateSchema, 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, 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, QuerySummaryActionsSchema, QuerySummaryStateSchema, QueryCorrectionSchema, QueryCorrectionCauseSchema, BadgeSchema, BadgePlacementSchema, ProductSchema, RegularFacetSchema, RegularFacetActionsSchema, RegularFacetSearchSchema, RegularFacetSearchPayloadSchema, RegularFacetSearchResultSchema, RegularFacetSearchStateSchema, RegularFacetStateSchema, RegularFacetToggleSelectPayloadSchema, RegularFacetToggleSingleSelectPayloadSchema, RegularFacetValueSchema, SelectActionPayloadSchema, SelectSearchOptionPayloadSchema, SelectPagePayloadSchema, SelectSortPayloadSchema, SetPageSizePayloadSchema, SortSchema, SortActionsSchema, SortCriterionSchema, SortStateSchema, BundleDisplayPropsSchema, CartPropsSchema, CategoryFacetPropsSchema, CommerceSearchPropsSchema, ComparisonTablePropsSchema, DateFacetPropsSchema, FacetManagerPropsSchema, BreadboxPropsSchema, InstantProductsPropsSchema, 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, InstantProductsActionSchema, LayoutStackActionSchema, SearchBoxActionSchema, SessionShellActionSchema, NextActionsBarActionSchema, NumericFacetActionSchema, PageSizeActionSchema, PaginationActionSchema, ProductCarouselActionSchema, ProductListActionSchema, ProductResearchCardActionSchema, ProductSummaryActionSchema, QuerySummaryActionSchema, RegularFacetActionSchema, SortActionSchema, } from './schemas.js';
|