@coveo/thermidor-schema 1.0.0-beta.8 → 1.0.0-beta.9
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 +154 -0
- package/dist/generated/schemas.js +23 -0
- package/dist/generated/zod3/schemas.d.ts +1346 -360
- package/dist/generated/zod3/schemas.js +23 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/zod3/index.d.ts +2 -2
- package/dist/zod3/index.js +1 -1
- package/package.json +1 -1
- package/schema/component-contracts.schema.json +3 -0
- package/schema/components/product-research-card.schema.json +70 -0
|
@@ -211,6 +211,33 @@ export declare const ProductSummaryStateSchema: z.ZodObject<{
|
|
|
211
211
|
}, z.core.$strict>, z.ZodNull]>;
|
|
212
212
|
}, z.core.$strict>;
|
|
213
213
|
export type ProductSummaryState = z.infer<typeof ProductSummaryStateSchema>;
|
|
214
|
+
export declare const ProductResearchCardActionsSchema: z.ZodObject<{}, z.core.$strict>;
|
|
215
|
+
export type ProductResearchCardActions = z.infer<typeof ProductResearchCardActionsSchema>;
|
|
216
|
+
export declare const ProductResearchCardStateSchema: z.ZodObject<{
|
|
217
|
+
bullets: z.ZodArray<z.ZodString>;
|
|
218
|
+
product: z.ZodObject<{
|
|
219
|
+
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
220
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
|
|
221
|
+
clickUri: z.ZodOptional<z.ZodURL>;
|
|
222
|
+
ec_brand: z.ZodOptional<z.ZodString>;
|
|
223
|
+
ec_category: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
224
|
+
ec_color: z.ZodOptional<z.ZodString>;
|
|
225
|
+
ec_description: z.ZodOptional<z.ZodString>;
|
|
226
|
+
ec_images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
227
|
+
ec_in_stock: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
+
ec_item_group_id: z.ZodOptional<z.ZodString>;
|
|
229
|
+
ec_item_group_name: z.ZodOptional<z.ZodString>;
|
|
230
|
+
ec_name: z.ZodString;
|
|
231
|
+
ec_price: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
ec_promo_price: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
ec_rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
234
|
+
ec_shortdesc: z.ZodOptional<z.ZodString>;
|
|
235
|
+
ec_thumbnails: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
236
|
+
permanentid: z.ZodString;
|
|
237
|
+
}, z.core.$strict>;
|
|
238
|
+
summary: z.ZodString;
|
|
239
|
+
}, z.core.$strict>;
|
|
240
|
+
export type ProductResearchCardState = z.infer<typeof ProductResearchCardStateSchema>;
|
|
214
241
|
export declare const SelectPagePayloadSchema: z.ZodObject<{
|
|
215
242
|
page: z.ZodNumber;
|
|
216
243
|
}, z.core.$strict>;
|
|
@@ -598,6 +625,36 @@ export declare const ProductSummarySchema: z.ZodObject<{
|
|
|
598
625
|
}, z.core.$strict>>;
|
|
599
626
|
}, z.core.$loose>;
|
|
600
627
|
export type ProductSummary = z.infer<typeof ProductSummarySchema>;
|
|
628
|
+
export declare const ProductResearchCardSchema: z.ZodObject<{
|
|
629
|
+
actions: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
630
|
+
component: z.ZodLiteral<"ProductResearchCard">;
|
|
631
|
+
id: z.ZodString;
|
|
632
|
+
state: z.ZodOptional<z.ZodObject<{
|
|
633
|
+
bullets: z.ZodArray<z.ZodString>;
|
|
634
|
+
product: z.ZodObject<{
|
|
635
|
+
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
636
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
|
|
637
|
+
clickUri: z.ZodOptional<z.ZodURL>;
|
|
638
|
+
ec_brand: z.ZodOptional<z.ZodString>;
|
|
639
|
+
ec_category: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
640
|
+
ec_color: z.ZodOptional<z.ZodString>;
|
|
641
|
+
ec_description: z.ZodOptional<z.ZodString>;
|
|
642
|
+
ec_images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
643
|
+
ec_in_stock: z.ZodOptional<z.ZodBoolean>;
|
|
644
|
+
ec_item_group_id: z.ZodOptional<z.ZodString>;
|
|
645
|
+
ec_item_group_name: z.ZodOptional<z.ZodString>;
|
|
646
|
+
ec_name: z.ZodString;
|
|
647
|
+
ec_price: z.ZodOptional<z.ZodNumber>;
|
|
648
|
+
ec_promo_price: z.ZodOptional<z.ZodNumber>;
|
|
649
|
+
ec_rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
650
|
+
ec_shortdesc: z.ZodOptional<z.ZodString>;
|
|
651
|
+
ec_thumbnails: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
652
|
+
permanentid: z.ZodString;
|
|
653
|
+
}, z.core.$strict>;
|
|
654
|
+
summary: z.ZodString;
|
|
655
|
+
}, z.core.$strict>>;
|
|
656
|
+
}, z.core.$loose>;
|
|
657
|
+
export type ProductResearchCard = z.infer<typeof ProductResearchCardSchema>;
|
|
601
658
|
export declare const SelectPageSchema: z.ZodObject<{
|
|
602
659
|
payload: z.ZodObject<{
|
|
603
660
|
page: z.ZodNumber;
|
|
@@ -1970,6 +2027,34 @@ export declare const ComponentContractsSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1970
2027
|
permanentid: z.ZodString;
|
|
1971
2028
|
}, z.core.$strict>, z.ZodNull]>;
|
|
1972
2029
|
}, z.core.$strict>>;
|
|
2030
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2031
|
+
actions: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
2032
|
+
component: z.ZodLiteral<"ProductResearchCard">;
|
|
2033
|
+
id: z.ZodString;
|
|
2034
|
+
state: z.ZodOptional<z.ZodObject<{
|
|
2035
|
+
bullets: z.ZodArray<z.ZodString>;
|
|
2036
|
+
product: z.ZodObject<{
|
|
2037
|
+
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2038
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject<any, z.core.$strict>>>;
|
|
2039
|
+
clickUri: z.ZodOptional<z.ZodURL>;
|
|
2040
|
+
ec_brand: z.ZodOptional<z.ZodString>;
|
|
2041
|
+
ec_category: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2042
|
+
ec_color: z.ZodOptional<z.ZodString>;
|
|
2043
|
+
ec_description: z.ZodOptional<z.ZodString>;
|
|
2044
|
+
ec_images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
2045
|
+
ec_in_stock: z.ZodOptional<z.ZodBoolean>;
|
|
2046
|
+
ec_item_group_id: z.ZodOptional<z.ZodString>;
|
|
2047
|
+
ec_item_group_name: z.ZodOptional<z.ZodString>;
|
|
2048
|
+
ec_name: z.ZodString;
|
|
2049
|
+
ec_price: z.ZodOptional<z.ZodNumber>;
|
|
2050
|
+
ec_promo_price: z.ZodOptional<z.ZodNumber>;
|
|
2051
|
+
ec_rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
2052
|
+
ec_shortdesc: z.ZodOptional<z.ZodString>;
|
|
2053
|
+
ec_thumbnails: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
2054
|
+
permanentid: z.ZodString;
|
|
2055
|
+
}, z.core.$strict>;
|
|
2056
|
+
summary: z.ZodString;
|
|
2057
|
+
}, z.core.$strict>>;
|
|
1973
2058
|
}, z.core.$loose>, z.ZodObject<{
|
|
1974
2059
|
actions: z.ZodOptional<z.ZodObject<{
|
|
1975
2060
|
selectPage: z.ZodObject<{
|
|
@@ -3118,6 +3203,72 @@ export declare const ProductListPropsSchema: z.ZodObject<{
|
|
|
3118
3203
|
}>>;
|
|
3119
3204
|
}, z.core.$strip>]>;
|
|
3120
3205
|
}, z.core.$strip>;
|
|
3206
|
+
export declare const ProductResearchCardPropsSchema: z.ZodObject<{
|
|
3207
|
+
product: z.ZodUnion<readonly [z.ZodObject<{
|
|
3208
|
+
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3209
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
|
|
3210
|
+
clickUri: z.ZodOptional<z.ZodURL>;
|
|
3211
|
+
ec_brand: z.ZodOptional<z.ZodString>;
|
|
3212
|
+
ec_category: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3213
|
+
ec_color: z.ZodOptional<z.ZodString>;
|
|
3214
|
+
ec_description: z.ZodOptional<z.ZodString>;
|
|
3215
|
+
ec_images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
3216
|
+
ec_in_stock: z.ZodOptional<z.ZodBoolean>;
|
|
3217
|
+
ec_item_group_id: z.ZodOptional<z.ZodString>;
|
|
3218
|
+
ec_item_group_name: z.ZodOptional<z.ZodString>;
|
|
3219
|
+
ec_name: z.ZodString;
|
|
3220
|
+
ec_price: z.ZodOptional<z.ZodNumber>;
|
|
3221
|
+
ec_promo_price: z.ZodOptional<z.ZodNumber>;
|
|
3222
|
+
ec_rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3223
|
+
ec_shortdesc: z.ZodOptional<z.ZodString>;
|
|
3224
|
+
ec_thumbnails: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
3225
|
+
permanentid: z.ZodString;
|
|
3226
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3227
|
+
path: z.ZodString;
|
|
3228
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3229
|
+
call: z.ZodString;
|
|
3230
|
+
args: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
3231
|
+
returnType: z.ZodDefault<z.ZodEnum<{
|
|
3232
|
+
any: "any";
|
|
3233
|
+
array: "array";
|
|
3234
|
+
boolean: "boolean";
|
|
3235
|
+
number: "number";
|
|
3236
|
+
object: "object";
|
|
3237
|
+
string: "string";
|
|
3238
|
+
void: "void";
|
|
3239
|
+
}>>;
|
|
3240
|
+
}, z.core.$strip>]>;
|
|
3241
|
+
summary: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
3242
|
+
path: z.ZodString;
|
|
3243
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3244
|
+
call: z.ZodString;
|
|
3245
|
+
args: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
3246
|
+
returnType: z.ZodDefault<z.ZodEnum<{
|
|
3247
|
+
any: "any";
|
|
3248
|
+
array: "array";
|
|
3249
|
+
boolean: "boolean";
|
|
3250
|
+
number: "number";
|
|
3251
|
+
object: "object";
|
|
3252
|
+
string: "string";
|
|
3253
|
+
void: "void";
|
|
3254
|
+
}>>;
|
|
3255
|
+
}, z.core.$strip>]>;
|
|
3256
|
+
bullets: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
3257
|
+
path: z.ZodString;
|
|
3258
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3259
|
+
call: z.ZodString;
|
|
3260
|
+
args: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
3261
|
+
returnType: z.ZodDefault<z.ZodEnum<{
|
|
3262
|
+
any: "any";
|
|
3263
|
+
array: "array";
|
|
3264
|
+
boolean: "boolean";
|
|
3265
|
+
number: "number";
|
|
3266
|
+
object: "object";
|
|
3267
|
+
string: "string";
|
|
3268
|
+
void: "void";
|
|
3269
|
+
}>>;
|
|
3270
|
+
}, z.core.$strip>]>;
|
|
3271
|
+
}, z.core.$strip>;
|
|
3121
3272
|
export declare const ProductSummaryPropsSchema: z.ZodObject<{
|
|
3122
3273
|
categoryLabel: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
3123
3274
|
path: z.ZodString;
|
|
@@ -3716,6 +3867,8 @@ export declare const ProductListActionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3716
3867
|
}, z.core.$strip>;
|
|
3717
3868
|
}, z.core.$strip>]>;
|
|
3718
3869
|
export type ProductListAction = z.infer<typeof ProductListActionSchema>;
|
|
3870
|
+
export declare const ProductResearchCardActionSchema: z.ZodNever;
|
|
3871
|
+
export type ProductResearchCardAction = never;
|
|
3719
3872
|
export declare const ProductSummaryActionSchema: z.ZodNever;
|
|
3720
3873
|
export type ProductSummaryAction = never;
|
|
3721
3874
|
export declare const QuerySuggestionsActionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -3831,6 +3984,7 @@ export type PageSizeProps = PageSizeState;
|
|
|
3831
3984
|
export type PaginationProps = PaginationState;
|
|
3832
3985
|
export type ProductCarouselProps = ProductCarouselState;
|
|
3833
3986
|
export type ProductListProps = ProductListState;
|
|
3987
|
+
export type ProductResearchCardProps = ProductResearchCardState;
|
|
3834
3988
|
export type ProductSummaryProps = ProductSummaryState;
|
|
3835
3989
|
export type QuerySuggestionsProps = QuerySuggestionsState;
|
|
3836
3990
|
export type QuerySummaryProps = QuerySummaryState;
|
|
@@ -118,6 +118,12 @@ export const ProductSummaryStateSchema = z.strictObject({
|
|
|
118
118
|
categoryLabel: z.string(),
|
|
119
119
|
product: z.union([ProductSchema, z.null()]),
|
|
120
120
|
});
|
|
121
|
+
export const ProductResearchCardActionsSchema = z.strictObject({});
|
|
122
|
+
export const ProductResearchCardStateSchema = z.strictObject({
|
|
123
|
+
bullets: z.array(z.string().min(1)).min(1),
|
|
124
|
+
product: ProductSchema,
|
|
125
|
+
summary: z.string().min(1),
|
|
126
|
+
});
|
|
121
127
|
export const SelectPagePayloadSchema = z.strictObject({
|
|
122
128
|
page: z.number().int().min(0),
|
|
123
129
|
});
|
|
@@ -312,6 +318,12 @@ export const ProductSummarySchema = z.looseObject({
|
|
|
312
318
|
id: z.string().min(1).max(256).regex(new RegExp('^[a-z][a-z0-9-]*$')),
|
|
313
319
|
state: ProductSummaryStateSchema.optional(),
|
|
314
320
|
});
|
|
321
|
+
export const ProductResearchCardSchema = z.looseObject({
|
|
322
|
+
actions: ProductResearchCardActionsSchema.optional(),
|
|
323
|
+
component: z.literal('ProductResearchCard'),
|
|
324
|
+
id: z.string().min(1).max(256).regex(new RegExp('^[a-z][a-z0-9-]*$')),
|
|
325
|
+
state: ProductResearchCardStateSchema.optional(),
|
|
326
|
+
});
|
|
315
327
|
export const SelectPageSchema = z.strictObject({
|
|
316
328
|
payload: SelectPagePayloadSchema,
|
|
317
329
|
});
|
|
@@ -622,6 +634,7 @@ export const ComponentContractsSchema = z.discriminatedUnion('component', [
|
|
|
622
634
|
ComparisonTableSchema,
|
|
623
635
|
ProductListSchema,
|
|
624
636
|
ProductSummarySchema,
|
|
637
|
+
ProductResearchCardSchema,
|
|
625
638
|
PaginationSchema,
|
|
626
639
|
SortSchema,
|
|
627
640
|
RegularFacetSchema,
|
|
@@ -781,6 +794,15 @@ export const ProductListPropsSchema = z.object({
|
|
|
781
794
|
FunctionCallSchema,
|
|
782
795
|
]),
|
|
783
796
|
});
|
|
797
|
+
export const ProductResearchCardPropsSchema = z.object({
|
|
798
|
+
product: z.union([
|
|
799
|
+
ProductResearchCardStateSchema.shape['product'],
|
|
800
|
+
DataBindingSchema,
|
|
801
|
+
FunctionCallSchema,
|
|
802
|
+
]),
|
|
803
|
+
summary: DynamicStringSchema,
|
|
804
|
+
bullets: DynamicStringListSchema,
|
|
805
|
+
});
|
|
784
806
|
export const ProductSummaryPropsSchema = z.object({
|
|
785
807
|
categoryLabel: DynamicStringSchema,
|
|
786
808
|
product: z.union([
|
|
@@ -1005,6 +1027,7 @@ export const ProductListActionSchema = z.union([
|
|
|
1005
1027
|
}),
|
|
1006
1028
|
}),
|
|
1007
1029
|
]);
|
|
1030
|
+
export const ProductResearchCardActionSchema = z.never();
|
|
1008
1031
|
export const ProductSummaryActionSchema = z.never();
|
|
1009
1032
|
export const QuerySuggestionsActionSchema = z.union([
|
|
1010
1033
|
z.object({
|