@coveo/thermidor-schema 1.0.0-beta.4 → 1.0.0-beta.5
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 +576 -49
- package/dist/generated/schemas.js +153 -20
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/schema/{components/component-contracts.schema.json → component-contracts.schema.json} +7 -1
- package/schema/components/cart.schema.json +156 -0
- package/schema/components/commerce-search.schema.json +115 -2
- package/schema/components/pagination.schema.json +20 -1
- package/schema/components/product-list.schema.json +66 -1
- package/schema/components/query-suggestions.schema.json +109 -0
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
|
+
export declare const CartUpdateOperationSchema: z.ZodEnum<{
|
|
3
|
+
add: "add";
|
|
4
|
+
remove: "remove";
|
|
5
|
+
setQuantity: "setQuantity";
|
|
6
|
+
}>;
|
|
7
|
+
export type CartUpdateOperation = z.infer<typeof CartUpdateOperationSchema>;
|
|
2
8
|
export declare const TypeSchema: z.ZodEnum<{
|
|
3
9
|
followup: "followup";
|
|
4
10
|
search: "search";
|
|
@@ -62,6 +68,41 @@ export declare const ProductCarouselStateSchema: z.ZodObject<{
|
|
|
62
68
|
}, z.core.$strict>>;
|
|
63
69
|
}, z.core.$strict>;
|
|
64
70
|
export type ProductCarouselState = z.infer<typeof ProductCarouselStateSchema>;
|
|
71
|
+
export declare const PurchaseProductSchema: z.ZodObject<{
|
|
72
|
+
name: z.ZodOptional<z.ZodString>;
|
|
73
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
74
|
+
productId: z.ZodString;
|
|
75
|
+
quantity: z.ZodNumber;
|
|
76
|
+
}, z.core.$strict>;
|
|
77
|
+
export type PurchaseProduct = z.infer<typeof PurchaseProductSchema>;
|
|
78
|
+
export declare const TransactionSchema: z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
revenue: z.ZodNumber;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
export type Transaction = z.infer<typeof TransactionSchema>;
|
|
83
|
+
export declare const UpdateCartPayloadSchema: z.ZodObject<{
|
|
84
|
+
name: z.ZodOptional<z.ZodString>;
|
|
85
|
+
operation: z.ZodEnum<{
|
|
86
|
+
add: "add";
|
|
87
|
+
remove: "remove";
|
|
88
|
+
setQuantity: "setQuantity";
|
|
89
|
+
}>;
|
|
90
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
91
|
+
productId: z.ZodString;
|
|
92
|
+
quantity: z.ZodNumber;
|
|
93
|
+
}, z.core.$strict>;
|
|
94
|
+
export type UpdateCartPayload = z.infer<typeof UpdateCartPayloadSchema>;
|
|
95
|
+
export declare const CartStateSchema: z.ZodObject<{}, z.core.$strict>;
|
|
96
|
+
export type CartState = z.infer<typeof CartStateSchema>;
|
|
97
|
+
export declare const FetchSuggestionsPayloadSchema: z.ZodObject<{
|
|
98
|
+
query: z.ZodString;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
export type FetchSuggestionsPayload = z.infer<typeof FetchSuggestionsPayloadSchema>;
|
|
101
|
+
export declare const QueryCompletionSchema: z.ZodObject<{
|
|
102
|
+
expression: z.ZodString;
|
|
103
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
}, z.core.$strict>;
|
|
105
|
+
export type QueryCompletion = z.infer<typeof QueryCompletionSchema>;
|
|
65
106
|
export declare const SelectActionPayloadSchema: z.ZodObject<{
|
|
66
107
|
text: z.ZodString;
|
|
67
108
|
type: z.ZodEnum<{
|
|
@@ -101,8 +142,17 @@ export declare const ComparisonProductSchema: z.ZodObject<{
|
|
|
101
142
|
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
102
143
|
}, z.core.$strict>;
|
|
103
144
|
export type ComparisonProduct = z.infer<typeof ComparisonProductSchema>;
|
|
104
|
-
export declare const
|
|
105
|
-
|
|
145
|
+
export declare const ProductClickPayloadSchema: z.ZodObject<{
|
|
146
|
+
name: z.ZodOptional<z.ZodString>;
|
|
147
|
+
position: z.ZodNumber;
|
|
148
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
149
|
+
productId: z.ZodString;
|
|
150
|
+
}, z.core.$strict>;
|
|
151
|
+
export type ProductClickPayload = z.infer<typeof ProductClickPayloadSchema>;
|
|
152
|
+
export declare const SelectProductsPayloadSchema: z.ZodObject<{
|
|
153
|
+
productIds: z.ZodArray<z.ZodString>;
|
|
154
|
+
}, z.core.$strict>;
|
|
155
|
+
export type SelectProductsPayload = z.infer<typeof SelectProductsPayloadSchema>;
|
|
106
156
|
export declare const ProductListStateSchema: z.ZodObject<{
|
|
107
157
|
products: z.ZodArray<z.ZodObject<{
|
|
108
158
|
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -160,6 +210,8 @@ export declare const PayloadSchema: z.ZodObject<{
|
|
|
160
210
|
pageSize: z.ZodNumber;
|
|
161
211
|
}, z.core.$strict>;
|
|
162
212
|
export type Payload = z.infer<typeof PayloadSchema>;
|
|
213
|
+
export declare const ShowMorePayloadSchema: z.ZodObject<{}, z.core.$strict>;
|
|
214
|
+
export type ShowMorePayload = z.infer<typeof ShowMorePayloadSchema>;
|
|
163
215
|
export declare const PaginationStateSchema: z.ZodObject<{
|
|
164
216
|
page: z.ZodNumber;
|
|
165
217
|
pageSize: z.ZodNumber;
|
|
@@ -319,6 +371,16 @@ export declare const FacetManagerActionsSchema: z.ZodObject<{}, z.core.$strict>;
|
|
|
319
371
|
export type FacetManagerActions = z.infer<typeof FacetManagerActionsSchema>;
|
|
320
372
|
export declare const FacetManagerStateSchema: z.ZodObject<{}, z.core.$strict>;
|
|
321
373
|
export type FacetManagerState = z.infer<typeof FacetManagerStateSchema>;
|
|
374
|
+
export declare const OverrideCorrectionPayloadSchema: z.ZodObject<{
|
|
375
|
+
originalQuery: z.ZodString;
|
|
376
|
+
}, z.core.$strict>;
|
|
377
|
+
export type OverrideCorrectionPayload = z.infer<typeof OverrideCorrectionPayloadSchema>;
|
|
378
|
+
export declare const NumericRangeRestoreSchema: z.ZodObject<{
|
|
379
|
+
end: z.ZodNumber;
|
|
380
|
+
endInclusive: z.ZodOptional<z.ZodBoolean>;
|
|
381
|
+
start: z.ZodNumber;
|
|
382
|
+
}, z.core.$strict>;
|
|
383
|
+
export type NumericRangeRestore = z.infer<typeof NumericRangeRestoreSchema>;
|
|
322
384
|
export declare const SubmitQueryPayloadSchema: z.ZodObject<{
|
|
323
385
|
query: z.ZodString;
|
|
324
386
|
}, z.core.$strict>;
|
|
@@ -376,6 +438,67 @@ export declare const ProductCarouselSchema: z.ZodObject<{
|
|
|
376
438
|
}, z.core.$strict>;
|
|
377
439
|
}, z.core.$strict>;
|
|
378
440
|
export type ProductCarousel = z.infer<typeof ProductCarouselSchema>;
|
|
441
|
+
export declare const PurchasePayloadSchema: z.ZodObject<{
|
|
442
|
+
products: z.ZodArray<z.ZodObject<{
|
|
443
|
+
name: z.ZodOptional<z.ZodString>;
|
|
444
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
445
|
+
productId: z.ZodString;
|
|
446
|
+
quantity: z.ZodNumber;
|
|
447
|
+
}, z.core.$strict>>;
|
|
448
|
+
transaction: z.ZodObject<{
|
|
449
|
+
id: z.ZodString;
|
|
450
|
+
revenue: z.ZodNumber;
|
|
451
|
+
}, z.core.$strict>;
|
|
452
|
+
}, z.core.$strict>;
|
|
453
|
+
export type PurchasePayload = z.infer<typeof PurchasePayloadSchema>;
|
|
454
|
+
export declare const UpdateCartSchema: z.ZodObject<{
|
|
455
|
+
payload: z.ZodObject<{
|
|
456
|
+
name: z.ZodOptional<z.ZodString>;
|
|
457
|
+
operation: z.ZodEnum<{
|
|
458
|
+
add: "add";
|
|
459
|
+
remove: "remove";
|
|
460
|
+
setQuantity: "setQuantity";
|
|
461
|
+
}>;
|
|
462
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
463
|
+
productId: z.ZodString;
|
|
464
|
+
quantity: z.ZodNumber;
|
|
465
|
+
}, z.core.$strict>;
|
|
466
|
+
}, z.core.$strict>;
|
|
467
|
+
export type UpdateCart = z.infer<typeof UpdateCartSchema>;
|
|
468
|
+
export declare const FetchSuggestionsSchema: z.ZodObject<{
|
|
469
|
+
payload: z.ZodObject<{
|
|
470
|
+
query: z.ZodString;
|
|
471
|
+
}, z.core.$strict>;
|
|
472
|
+
}, z.core.$strict>;
|
|
473
|
+
export type FetchSuggestions = z.infer<typeof FetchSuggestionsSchema>;
|
|
474
|
+
export declare const QuerySuggestionsStateSchema: z.ZodObject<{
|
|
475
|
+
completions: z.ZodArray<z.ZodObject<{
|
|
476
|
+
expression: z.ZodString;
|
|
477
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
478
|
+
}, z.core.$strict>>;
|
|
479
|
+
products: z.ZodArray<z.ZodObject<{
|
|
480
|
+
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
481
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
|
|
482
|
+
clickUri: z.ZodOptional<z.ZodURL>;
|
|
483
|
+
ec_brand: z.ZodOptional<z.ZodString>;
|
|
484
|
+
ec_category: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
485
|
+
ec_color: z.ZodOptional<z.ZodString>;
|
|
486
|
+
ec_description: z.ZodOptional<z.ZodString>;
|
|
487
|
+
ec_images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
488
|
+
ec_in_stock: z.ZodOptional<z.ZodBoolean>;
|
|
489
|
+
ec_item_group_id: z.ZodOptional<z.ZodString>;
|
|
490
|
+
ec_item_group_name: z.ZodOptional<z.ZodString>;
|
|
491
|
+
ec_name: z.ZodString;
|
|
492
|
+
ec_price: z.ZodOptional<z.ZodNumber>;
|
|
493
|
+
ec_promo_price: z.ZodOptional<z.ZodNumber>;
|
|
494
|
+
ec_rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
495
|
+
ec_shortdesc: z.ZodOptional<z.ZodString>;
|
|
496
|
+
ec_thumbnails: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
497
|
+
permanentid: z.ZodString;
|
|
498
|
+
}, z.core.$strict>>;
|
|
499
|
+
query: z.ZodString;
|
|
500
|
+
}, z.core.$strict>;
|
|
501
|
+
export type QuerySuggestionsState = z.infer<typeof QuerySuggestionsStateSchema>;
|
|
379
502
|
export declare const SelectActionSchema: z.ZodObject<{
|
|
380
503
|
payload: z.ZodObject<{
|
|
381
504
|
text: z.ZodString;
|
|
@@ -422,35 +545,21 @@ export declare const ComparisonTableStateSchema: z.ZodObject<{
|
|
|
422
545
|
summary: z.ZodString;
|
|
423
546
|
}, z.core.$strict>;
|
|
424
547
|
export type ComparisonTableState = z.infer<typeof ComparisonTableStateSchema>;
|
|
425
|
-
export declare const
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
products: z.ZodArray<z.ZodObject<{
|
|
432
|
-
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
433
|
-
children: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
|
|
434
|
-
clickUri: z.ZodOptional<z.ZodURL>;
|
|
435
|
-
ec_brand: z.ZodOptional<z.ZodString>;
|
|
436
|
-
ec_category: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
437
|
-
ec_color: z.ZodOptional<z.ZodString>;
|
|
438
|
-
ec_description: z.ZodOptional<z.ZodString>;
|
|
439
|
-
ec_images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
440
|
-
ec_in_stock: z.ZodOptional<z.ZodBoolean>;
|
|
441
|
-
ec_item_group_id: z.ZodOptional<z.ZodString>;
|
|
442
|
-
ec_item_group_name: z.ZodOptional<z.ZodString>;
|
|
443
|
-
ec_name: z.ZodString;
|
|
444
|
-
ec_price: z.ZodOptional<z.ZodNumber>;
|
|
445
|
-
ec_promo_price: z.ZodOptional<z.ZodNumber>;
|
|
446
|
-
ec_rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
447
|
-
ec_shortdesc: z.ZodOptional<z.ZodString>;
|
|
448
|
-
ec_thumbnails: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
449
|
-
permanentid: z.ZodString;
|
|
450
|
-
}, z.core.$strict>>;
|
|
548
|
+
export declare const ProductClickSchema: z.ZodObject<{
|
|
549
|
+
payload: z.ZodObject<{
|
|
550
|
+
name: z.ZodOptional<z.ZodString>;
|
|
551
|
+
position: z.ZodNumber;
|
|
552
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
553
|
+
productId: z.ZodString;
|
|
451
554
|
}, z.core.$strict>;
|
|
452
555
|
}, z.core.$strict>;
|
|
453
|
-
export type
|
|
556
|
+
export type ProductClick = z.infer<typeof ProductClickSchema>;
|
|
557
|
+
export declare const SelectProductsSchema: z.ZodObject<{
|
|
558
|
+
payload: z.ZodObject<{
|
|
559
|
+
productIds: z.ZodArray<z.ZodString>;
|
|
560
|
+
}, z.core.$strict>;
|
|
561
|
+
}, z.core.$strict>;
|
|
562
|
+
export type SelectProducts = z.infer<typeof SelectProductsSchema>;
|
|
454
563
|
export declare const ProductSummarySchema: z.ZodObject<{
|
|
455
564
|
actions: z.ZodObject<{}, z.core.$strict>;
|
|
456
565
|
child: z.ZodOptional<z.ZodString>;
|
|
@@ -493,6 +602,10 @@ export declare const PurpleSetPageSizeSchema: z.ZodObject<{
|
|
|
493
602
|
}, z.core.$strict>;
|
|
494
603
|
}, z.core.$strict>;
|
|
495
604
|
export type PurpleSetPageSize = z.infer<typeof PurpleSetPageSizeSchema>;
|
|
605
|
+
export declare const ShowMoreSchema: z.ZodObject<{
|
|
606
|
+
payload: z.ZodObject<{}, z.core.$strict>;
|
|
607
|
+
}, z.core.$strict>;
|
|
608
|
+
export type ShowMore = z.infer<typeof ShowMoreSchema>;
|
|
496
609
|
export declare const SelectSortSchema: z.ZodObject<{
|
|
497
610
|
payload: z.ZodObject<{
|
|
498
611
|
fields: z.ZodArray<z.ZodUnknown>;
|
|
@@ -670,6 +783,22 @@ export declare const FacetManagerSchema: z.ZodObject<{
|
|
|
670
783
|
state: z.ZodObject<{}, z.core.$strict>;
|
|
671
784
|
}, z.core.$strict>;
|
|
672
785
|
export type FacetManager = z.infer<typeof FacetManagerSchema>;
|
|
786
|
+
export declare const OverrideCorrectionSchema: z.ZodObject<{
|
|
787
|
+
payload: z.ZodObject<{
|
|
788
|
+
originalQuery: z.ZodString;
|
|
789
|
+
}, z.core.$strict>;
|
|
790
|
+
}, z.core.$strict>;
|
|
791
|
+
export type OverrideCorrection = z.infer<typeof OverrideCorrectionSchema>;
|
|
792
|
+
export declare const FacetRestoreSchema: z.ZodObject<{
|
|
793
|
+
facetId: z.ZodString;
|
|
794
|
+
numericRanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
795
|
+
end: z.ZodNumber;
|
|
796
|
+
endInclusive: z.ZodOptional<z.ZodBoolean>;
|
|
797
|
+
start: z.ZodNumber;
|
|
798
|
+
}, z.core.$strict>>>;
|
|
799
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
800
|
+
}, z.core.$strict>;
|
|
801
|
+
export type FacetRestore = z.infer<typeof FacetRestoreSchema>;
|
|
673
802
|
export declare const SubmitQuerySchema: z.ZodObject<{
|
|
674
803
|
payload: z.ZodObject<{
|
|
675
804
|
query: z.ZodString;
|
|
@@ -703,6 +832,29 @@ export declare const FluffySetPageSizeSchema: z.ZodObject<{
|
|
|
703
832
|
}, z.core.$strict>;
|
|
704
833
|
}, z.core.$strict>;
|
|
705
834
|
export type FluffySetPageSize = z.infer<typeof FluffySetPageSizeSchema>;
|
|
835
|
+
export declare const PurchaseSchema: z.ZodObject<{
|
|
836
|
+
payload: z.ZodObject<{
|
|
837
|
+
products: z.ZodArray<z.ZodObject<{
|
|
838
|
+
name: z.ZodOptional<z.ZodString>;
|
|
839
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
840
|
+
productId: z.ZodString;
|
|
841
|
+
quantity: z.ZodNumber;
|
|
842
|
+
}, z.core.$strict>>;
|
|
843
|
+
transaction: z.ZodObject<{
|
|
844
|
+
id: z.ZodString;
|
|
845
|
+
revenue: z.ZodNumber;
|
|
846
|
+
}, z.core.$strict>;
|
|
847
|
+
}, z.core.$strict>;
|
|
848
|
+
}, z.core.$strict>;
|
|
849
|
+
export type Purchase = z.infer<typeof PurchaseSchema>;
|
|
850
|
+
export declare const QuerySuggestionsActionsSchema: z.ZodObject<{
|
|
851
|
+
fetchSuggestions: z.ZodObject<{
|
|
852
|
+
payload: z.ZodObject<{
|
|
853
|
+
query: z.ZodString;
|
|
854
|
+
}, z.core.$strict>;
|
|
855
|
+
}, z.core.$strict>;
|
|
856
|
+
}, z.core.$strict>;
|
|
857
|
+
export type QuerySuggestionsActions = z.infer<typeof QuerySuggestionsActionsSchema>;
|
|
706
858
|
export declare const NextActionsBarActionsSchema: z.ZodObject<{
|
|
707
859
|
selectAction: z.ZodObject<{
|
|
708
860
|
payload: z.ZodObject<{
|
|
@@ -749,6 +901,22 @@ export declare const ComparisonTableSchema: z.ZodObject<{
|
|
|
749
901
|
}, z.core.$strict>;
|
|
750
902
|
}, z.core.$strict>;
|
|
751
903
|
export type ComparisonTable = z.infer<typeof ComparisonTableSchema>;
|
|
904
|
+
export declare const ProductListActionsSchema: z.ZodObject<{
|
|
905
|
+
productClick: z.ZodObject<{
|
|
906
|
+
payload: z.ZodObject<{
|
|
907
|
+
name: z.ZodOptional<z.ZodString>;
|
|
908
|
+
position: z.ZodNumber;
|
|
909
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
910
|
+
productId: z.ZodString;
|
|
911
|
+
}, z.core.$strict>;
|
|
912
|
+
}, z.core.$strict>;
|
|
913
|
+
selectProducts: z.ZodObject<{
|
|
914
|
+
payload: z.ZodObject<{
|
|
915
|
+
productIds: z.ZodArray<z.ZodString>;
|
|
916
|
+
}, z.core.$strict>;
|
|
917
|
+
}, z.core.$strict>;
|
|
918
|
+
}, z.core.$strict>;
|
|
919
|
+
export type ProductListActions = z.infer<typeof ProductListActionsSchema>;
|
|
752
920
|
export declare const PaginationActionsSchema: z.ZodObject<{
|
|
753
921
|
selectPage: z.ZodObject<{
|
|
754
922
|
payload: z.ZodObject<{
|
|
@@ -760,6 +928,9 @@ export declare const PaginationActionsSchema: z.ZodObject<{
|
|
|
760
928
|
pageSize: z.ZodNumber;
|
|
761
929
|
}, z.core.$strict>;
|
|
762
930
|
}, z.core.$strict>;
|
|
931
|
+
showMore: z.ZodObject<{
|
|
932
|
+
payload: z.ZodObject<{}, z.core.$strict>;
|
|
933
|
+
}, z.core.$strict>;
|
|
763
934
|
}, z.core.$strict>;
|
|
764
935
|
export type PaginationActions = z.infer<typeof PaginationActionsSchema>;
|
|
765
936
|
export declare const SortActionsSchema: z.ZodObject<{
|
|
@@ -960,14 +1131,23 @@ export declare const CategoryFacetStateSchema: z.ZodObject<{
|
|
|
960
1131
|
}, z.core.$strict>;
|
|
961
1132
|
}, z.core.$strict>;
|
|
962
1133
|
export type CategoryFacetState = z.infer<typeof CategoryFacetStateSchema>;
|
|
963
|
-
export declare const
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
1134
|
+
export declare const RestoreStatePayloadSchema: z.ZodObject<{
|
|
1135
|
+
facets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1136
|
+
facetId: z.ZodString;
|
|
1137
|
+
numericRanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1138
|
+
end: z.ZodNumber;
|
|
1139
|
+
endInclusive: z.ZodOptional<z.ZodBoolean>;
|
|
1140
|
+
start: z.ZodNumber;
|
|
1141
|
+
}, z.core.$strict>>>;
|
|
1142
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1143
|
+
}, z.core.$strict>>>;
|
|
1144
|
+
page: z.ZodNumber;
|
|
1145
|
+
pageSize: z.ZodNumber;
|
|
1146
|
+
pinnedProducts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1147
|
+
query: z.ZodString;
|
|
1148
|
+
sortCriteria: z.ZodOptional<z.ZodString>;
|
|
969
1149
|
}, z.core.$strict>;
|
|
970
|
-
export type
|
|
1150
|
+
export type RestoreStatePayload = z.infer<typeof RestoreStatePayloadSchema>;
|
|
971
1151
|
export declare const PageSizeActionsSchema: z.ZodObject<{
|
|
972
1152
|
setPageSize: z.ZodObject<{
|
|
973
1153
|
payload: z.ZodObject<{
|
|
@@ -976,6 +1156,76 @@ export declare const PageSizeActionsSchema: z.ZodObject<{
|
|
|
976
1156
|
}, z.core.$strict>;
|
|
977
1157
|
}, z.core.$strict>;
|
|
978
1158
|
export type PageSizeActions = z.infer<typeof PageSizeActionsSchema>;
|
|
1159
|
+
export declare const CartActionsSchema: z.ZodObject<{
|
|
1160
|
+
purchase: z.ZodObject<{
|
|
1161
|
+
payload: z.ZodObject<{
|
|
1162
|
+
products: z.ZodArray<z.ZodObject<{
|
|
1163
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1164
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1165
|
+
productId: z.ZodString;
|
|
1166
|
+
quantity: z.ZodNumber;
|
|
1167
|
+
}, z.core.$strict>>;
|
|
1168
|
+
transaction: z.ZodObject<{
|
|
1169
|
+
id: z.ZodString;
|
|
1170
|
+
revenue: z.ZodNumber;
|
|
1171
|
+
}, z.core.$strict>;
|
|
1172
|
+
}, z.core.$strict>;
|
|
1173
|
+
}, z.core.$strict>;
|
|
1174
|
+
updateCart: z.ZodObject<{
|
|
1175
|
+
payload: z.ZodObject<{
|
|
1176
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1177
|
+
operation: z.ZodEnum<{
|
|
1178
|
+
add: "add";
|
|
1179
|
+
remove: "remove";
|
|
1180
|
+
setQuantity: "setQuantity";
|
|
1181
|
+
}>;
|
|
1182
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1183
|
+
productId: z.ZodString;
|
|
1184
|
+
quantity: z.ZodNumber;
|
|
1185
|
+
}, z.core.$strict>;
|
|
1186
|
+
}, z.core.$strict>;
|
|
1187
|
+
}, z.core.$strict>;
|
|
1188
|
+
export type CartActions = z.infer<typeof CartActionsSchema>;
|
|
1189
|
+
export declare const QuerySuggestionsSchema: z.ZodObject<{
|
|
1190
|
+
actions: z.ZodObject<{
|
|
1191
|
+
fetchSuggestions: z.ZodObject<{
|
|
1192
|
+
payload: z.ZodObject<{
|
|
1193
|
+
query: z.ZodString;
|
|
1194
|
+
}, z.core.$strict>;
|
|
1195
|
+
}, z.core.$strict>;
|
|
1196
|
+
}, z.core.$strict>;
|
|
1197
|
+
child: z.ZodOptional<z.ZodString>;
|
|
1198
|
+
children: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1199
|
+
componentType: z.ZodLiteral<"query-suggestions">;
|
|
1200
|
+
state: z.ZodObject<{
|
|
1201
|
+
completions: z.ZodArray<z.ZodObject<{
|
|
1202
|
+
expression: z.ZodString;
|
|
1203
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
1204
|
+
}, z.core.$strict>>;
|
|
1205
|
+
products: z.ZodArray<z.ZodObject<{
|
|
1206
|
+
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1207
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
|
|
1208
|
+
clickUri: z.ZodOptional<z.ZodURL>;
|
|
1209
|
+
ec_brand: z.ZodOptional<z.ZodString>;
|
|
1210
|
+
ec_category: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1211
|
+
ec_color: z.ZodOptional<z.ZodString>;
|
|
1212
|
+
ec_description: z.ZodOptional<z.ZodString>;
|
|
1213
|
+
ec_images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
1214
|
+
ec_in_stock: z.ZodOptional<z.ZodBoolean>;
|
|
1215
|
+
ec_item_group_id: z.ZodOptional<z.ZodString>;
|
|
1216
|
+
ec_item_group_name: z.ZodOptional<z.ZodString>;
|
|
1217
|
+
ec_name: z.ZodString;
|
|
1218
|
+
ec_price: z.ZodOptional<z.ZodNumber>;
|
|
1219
|
+
ec_promo_price: z.ZodOptional<z.ZodNumber>;
|
|
1220
|
+
ec_rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1221
|
+
ec_shortdesc: z.ZodOptional<z.ZodString>;
|
|
1222
|
+
ec_thumbnails: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
1223
|
+
permanentid: z.ZodString;
|
|
1224
|
+
}, z.core.$strict>>;
|
|
1225
|
+
query: z.ZodString;
|
|
1226
|
+
}, z.core.$strict>;
|
|
1227
|
+
}, z.core.$strict>;
|
|
1228
|
+
export type QuerySuggestions = z.infer<typeof QuerySuggestionsSchema>;
|
|
979
1229
|
export declare const NextActionsBarSchema: z.ZodObject<{
|
|
980
1230
|
actions: z.ZodObject<{
|
|
981
1231
|
selectAction: z.ZodObject<{
|
|
@@ -1019,6 +1269,49 @@ export declare const BundleDisplaySchema: z.ZodObject<{
|
|
|
1019
1269
|
}, z.core.$strict>;
|
|
1020
1270
|
}, z.core.$strict>;
|
|
1021
1271
|
export type BundleDisplay = z.infer<typeof BundleDisplaySchema>;
|
|
1272
|
+
export declare const ProductListSchema: z.ZodObject<{
|
|
1273
|
+
actions: z.ZodObject<{
|
|
1274
|
+
productClick: z.ZodObject<{
|
|
1275
|
+
payload: z.ZodObject<{
|
|
1276
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1277
|
+
position: z.ZodNumber;
|
|
1278
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1279
|
+
productId: z.ZodString;
|
|
1280
|
+
}, z.core.$strict>;
|
|
1281
|
+
}, z.core.$strict>;
|
|
1282
|
+
selectProducts: z.ZodObject<{
|
|
1283
|
+
payload: z.ZodObject<{
|
|
1284
|
+
productIds: z.ZodArray<z.ZodString>;
|
|
1285
|
+
}, z.core.$strict>;
|
|
1286
|
+
}, z.core.$strict>;
|
|
1287
|
+
}, z.core.$strict>;
|
|
1288
|
+
child: z.ZodOptional<z.ZodString>;
|
|
1289
|
+
children: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1290
|
+
componentType: z.ZodLiteral<"product-list">;
|
|
1291
|
+
state: z.ZodObject<{
|
|
1292
|
+
products: z.ZodArray<z.ZodObject<{
|
|
1293
|
+
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1294
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
|
|
1295
|
+
clickUri: z.ZodOptional<z.ZodURL>;
|
|
1296
|
+
ec_brand: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
ec_category: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1298
|
+
ec_color: z.ZodOptional<z.ZodString>;
|
|
1299
|
+
ec_description: z.ZodOptional<z.ZodString>;
|
|
1300
|
+
ec_images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
1301
|
+
ec_in_stock: z.ZodOptional<z.ZodBoolean>;
|
|
1302
|
+
ec_item_group_id: z.ZodOptional<z.ZodString>;
|
|
1303
|
+
ec_item_group_name: z.ZodOptional<z.ZodString>;
|
|
1304
|
+
ec_name: z.ZodString;
|
|
1305
|
+
ec_price: z.ZodOptional<z.ZodNumber>;
|
|
1306
|
+
ec_promo_price: z.ZodOptional<z.ZodNumber>;
|
|
1307
|
+
ec_rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1308
|
+
ec_shortdesc: z.ZodOptional<z.ZodString>;
|
|
1309
|
+
ec_thumbnails: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
1310
|
+
permanentid: z.ZodString;
|
|
1311
|
+
}, z.core.$strict>>;
|
|
1312
|
+
}, z.core.$strict>;
|
|
1313
|
+
}, z.core.$strict>;
|
|
1314
|
+
export type ProductList = z.infer<typeof ProductListSchema>;
|
|
1022
1315
|
export declare const PaginationSchema: z.ZodObject<{
|
|
1023
1316
|
actions: z.ZodObject<{
|
|
1024
1317
|
selectPage: z.ZodObject<{
|
|
@@ -1031,6 +1324,9 @@ export declare const PaginationSchema: z.ZodObject<{
|
|
|
1031
1324
|
pageSize: z.ZodNumber;
|
|
1032
1325
|
}, z.core.$strict>;
|
|
1033
1326
|
}, z.core.$strict>;
|
|
1327
|
+
showMore: z.ZodObject<{
|
|
1328
|
+
payload: z.ZodObject<{}, z.core.$strict>;
|
|
1329
|
+
}, z.core.$strict>;
|
|
1034
1330
|
}, z.core.$strict>;
|
|
1035
1331
|
child: z.ZodOptional<z.ZodString>;
|
|
1036
1332
|
children: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1320,20 +1616,25 @@ export declare const CategoryFacetSchema: z.ZodObject<{
|
|
|
1320
1616
|
}, z.core.$strict>;
|
|
1321
1617
|
}, z.core.$strict>;
|
|
1322
1618
|
export type CategoryFacet = z.infer<typeof CategoryFacetSchema>;
|
|
1323
|
-
export declare const
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1619
|
+
export declare const RestoreStateSchema: z.ZodObject<{
|
|
1620
|
+
payload: z.ZodObject<{
|
|
1621
|
+
facets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1622
|
+
facetId: z.ZodString;
|
|
1623
|
+
numericRanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1624
|
+
end: z.ZodNumber;
|
|
1625
|
+
endInclusive: z.ZodOptional<z.ZodBoolean>;
|
|
1626
|
+
start: z.ZodNumber;
|
|
1627
|
+
}, z.core.$strict>>>;
|
|
1628
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1629
|
+
}, z.core.$strict>>>;
|
|
1630
|
+
page: z.ZodNumber;
|
|
1631
|
+
pageSize: z.ZodNumber;
|
|
1632
|
+
pinnedProducts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1633
|
+
query: z.ZodString;
|
|
1634
|
+
sortCriteria: z.ZodOptional<z.ZodString>;
|
|
1330
1635
|
}, z.core.$strict>;
|
|
1331
|
-
child: z.ZodOptional<z.ZodString>;
|
|
1332
|
-
children: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1333
|
-
componentType: z.ZodLiteral<"commerce-search">;
|
|
1334
|
-
state: z.ZodObject<{}, z.core.$strict>;
|
|
1335
1636
|
}, z.core.$strict>;
|
|
1336
|
-
export type
|
|
1637
|
+
export type RestoreState = z.infer<typeof RestoreStateSchema>;
|
|
1337
1638
|
export declare const PageSizeSchema: z.ZodObject<{
|
|
1338
1639
|
actions: z.ZodObject<{
|
|
1339
1640
|
setPageSize: z.ZodObject<{
|
|
@@ -1350,6 +1651,110 @@ export declare const PageSizeSchema: z.ZodObject<{
|
|
|
1350
1651
|
}, z.core.$strict>;
|
|
1351
1652
|
}, z.core.$strict>;
|
|
1352
1653
|
export type PageSize = z.infer<typeof PageSizeSchema>;
|
|
1654
|
+
export declare const CartSchema: z.ZodObject<{
|
|
1655
|
+
actions: z.ZodObject<{
|
|
1656
|
+
purchase: z.ZodObject<{
|
|
1657
|
+
payload: z.ZodObject<{
|
|
1658
|
+
products: z.ZodArray<z.ZodObject<{
|
|
1659
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1660
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1661
|
+
productId: z.ZodString;
|
|
1662
|
+
quantity: z.ZodNumber;
|
|
1663
|
+
}, z.core.$strict>>;
|
|
1664
|
+
transaction: z.ZodObject<{
|
|
1665
|
+
id: z.ZodString;
|
|
1666
|
+
revenue: z.ZodNumber;
|
|
1667
|
+
}, z.core.$strict>;
|
|
1668
|
+
}, z.core.$strict>;
|
|
1669
|
+
}, z.core.$strict>;
|
|
1670
|
+
updateCart: z.ZodObject<{
|
|
1671
|
+
payload: z.ZodObject<{
|
|
1672
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1673
|
+
operation: z.ZodEnum<{
|
|
1674
|
+
add: "add";
|
|
1675
|
+
remove: "remove";
|
|
1676
|
+
setQuantity: "setQuantity";
|
|
1677
|
+
}>;
|
|
1678
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1679
|
+
productId: z.ZodString;
|
|
1680
|
+
quantity: z.ZodNumber;
|
|
1681
|
+
}, z.core.$strict>;
|
|
1682
|
+
}, z.core.$strict>;
|
|
1683
|
+
}, z.core.$strict>;
|
|
1684
|
+
child: z.ZodOptional<z.ZodString>;
|
|
1685
|
+
children: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1686
|
+
componentType: z.ZodLiteral<"cart">;
|
|
1687
|
+
state: z.ZodObject<{}, z.core.$strict>;
|
|
1688
|
+
}, z.core.$strict>;
|
|
1689
|
+
export type Cart = z.infer<typeof CartSchema>;
|
|
1690
|
+
export declare const CommerceSearchActionsSchema: z.ZodObject<{
|
|
1691
|
+
overrideCorrection: z.ZodObject<{
|
|
1692
|
+
payload: z.ZodObject<{
|
|
1693
|
+
originalQuery: z.ZodString;
|
|
1694
|
+
}, z.core.$strict>;
|
|
1695
|
+
}, z.core.$strict>;
|
|
1696
|
+
restoreState: z.ZodObject<{
|
|
1697
|
+
payload: z.ZodObject<{
|
|
1698
|
+
facets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1699
|
+
facetId: z.ZodString;
|
|
1700
|
+
numericRanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1701
|
+
end: z.ZodNumber;
|
|
1702
|
+
endInclusive: z.ZodOptional<z.ZodBoolean>;
|
|
1703
|
+
start: z.ZodNumber;
|
|
1704
|
+
}, z.core.$strict>>>;
|
|
1705
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1706
|
+
}, z.core.$strict>>>;
|
|
1707
|
+
page: z.ZodNumber;
|
|
1708
|
+
pageSize: z.ZodNumber;
|
|
1709
|
+
pinnedProducts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1710
|
+
query: z.ZodString;
|
|
1711
|
+
sortCriteria: z.ZodOptional<z.ZodString>;
|
|
1712
|
+
}, z.core.$strict>;
|
|
1713
|
+
}, z.core.$strict>;
|
|
1714
|
+
submitQuery: z.ZodObject<{
|
|
1715
|
+
payload: z.ZodObject<{
|
|
1716
|
+
query: z.ZodString;
|
|
1717
|
+
}, z.core.$strict>;
|
|
1718
|
+
}, z.core.$strict>;
|
|
1719
|
+
}, z.core.$strict>;
|
|
1720
|
+
export type CommerceSearchActions = z.infer<typeof CommerceSearchActionsSchema>;
|
|
1721
|
+
export declare const CommerceSearchSchema: z.ZodObject<{
|
|
1722
|
+
actions: z.ZodObject<{
|
|
1723
|
+
overrideCorrection: z.ZodObject<{
|
|
1724
|
+
payload: z.ZodObject<{
|
|
1725
|
+
originalQuery: z.ZodString;
|
|
1726
|
+
}, z.core.$strict>;
|
|
1727
|
+
}, z.core.$strict>;
|
|
1728
|
+
restoreState: z.ZodObject<{
|
|
1729
|
+
payload: z.ZodObject<{
|
|
1730
|
+
facets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1731
|
+
facetId: z.ZodString;
|
|
1732
|
+
numericRanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1733
|
+
end: z.ZodNumber;
|
|
1734
|
+
endInclusive: z.ZodOptional<z.ZodBoolean>;
|
|
1735
|
+
start: z.ZodNumber;
|
|
1736
|
+
}, z.core.$strict>>>;
|
|
1737
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1738
|
+
}, z.core.$strict>>>;
|
|
1739
|
+
page: z.ZodNumber;
|
|
1740
|
+
pageSize: z.ZodNumber;
|
|
1741
|
+
pinnedProducts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1742
|
+
query: z.ZodString;
|
|
1743
|
+
sortCriteria: z.ZodOptional<z.ZodString>;
|
|
1744
|
+
}, z.core.$strict>;
|
|
1745
|
+
}, z.core.$strict>;
|
|
1746
|
+
submitQuery: z.ZodObject<{
|
|
1747
|
+
payload: z.ZodObject<{
|
|
1748
|
+
query: z.ZodString;
|
|
1749
|
+
}, z.core.$strict>;
|
|
1750
|
+
}, z.core.$strict>;
|
|
1751
|
+
}, z.core.$strict>;
|
|
1752
|
+
child: z.ZodOptional<z.ZodString>;
|
|
1753
|
+
children: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1754
|
+
componentType: z.ZodLiteral<"commerce-search">;
|
|
1755
|
+
state: z.ZodObject<{}, z.core.$strict>;
|
|
1756
|
+
}, z.core.$strict>;
|
|
1757
|
+
export type CommerceSearch = z.infer<typeof CommerceSearchSchema>;
|
|
1353
1758
|
export declare const ComponentContractsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1354
1759
|
actions: z.ZodObject<{}, z.core.$strict>;
|
|
1355
1760
|
child: z.ZodOptional<z.ZodString>;
|
|
@@ -1378,6 +1783,78 @@ export declare const ComponentContractsSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1378
1783
|
permanentid: z.ZodString;
|
|
1379
1784
|
}, z.core.$strict>>;
|
|
1380
1785
|
}, z.core.$strict>;
|
|
1786
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1787
|
+
actions: z.ZodObject<{
|
|
1788
|
+
purchase: z.ZodObject<{
|
|
1789
|
+
payload: z.ZodObject<{
|
|
1790
|
+
products: z.ZodArray<z.ZodObject<{
|
|
1791
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1792
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1793
|
+
productId: z.ZodString;
|
|
1794
|
+
quantity: z.ZodNumber;
|
|
1795
|
+
}, z.core.$strict>>;
|
|
1796
|
+
transaction: z.ZodObject<{
|
|
1797
|
+
id: z.ZodString;
|
|
1798
|
+
revenue: z.ZodNumber;
|
|
1799
|
+
}, z.core.$strict>;
|
|
1800
|
+
}, z.core.$strict>;
|
|
1801
|
+
}, z.core.$strict>;
|
|
1802
|
+
updateCart: z.ZodObject<{
|
|
1803
|
+
payload: z.ZodObject<{
|
|
1804
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1805
|
+
operation: z.ZodEnum<{
|
|
1806
|
+
add: "add";
|
|
1807
|
+
remove: "remove";
|
|
1808
|
+
setQuantity: "setQuantity";
|
|
1809
|
+
}>;
|
|
1810
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1811
|
+
productId: z.ZodString;
|
|
1812
|
+
quantity: z.ZodNumber;
|
|
1813
|
+
}, z.core.$strict>;
|
|
1814
|
+
}, z.core.$strict>;
|
|
1815
|
+
}, z.core.$strict>;
|
|
1816
|
+
child: z.ZodOptional<z.ZodString>;
|
|
1817
|
+
children: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1818
|
+
componentType: z.ZodLiteral<"cart">;
|
|
1819
|
+
state: z.ZodObject<{}, z.core.$strict>;
|
|
1820
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1821
|
+
actions: z.ZodObject<{
|
|
1822
|
+
fetchSuggestions: z.ZodObject<{
|
|
1823
|
+
payload: z.ZodObject<{
|
|
1824
|
+
query: z.ZodString;
|
|
1825
|
+
}, z.core.$strict>;
|
|
1826
|
+
}, z.core.$strict>;
|
|
1827
|
+
}, z.core.$strict>;
|
|
1828
|
+
child: z.ZodOptional<z.ZodString>;
|
|
1829
|
+
children: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1830
|
+
componentType: z.ZodLiteral<"query-suggestions">;
|
|
1831
|
+
state: z.ZodObject<{
|
|
1832
|
+
completions: z.ZodArray<z.ZodObject<{
|
|
1833
|
+
expression: z.ZodString;
|
|
1834
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
1835
|
+
}, z.core.$strict>>;
|
|
1836
|
+
products: z.ZodArray<z.ZodObject<{
|
|
1837
|
+
additionalFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1838
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject<any, z.core.$strict>>>;
|
|
1839
|
+
clickUri: z.ZodOptional<z.ZodURL>;
|
|
1840
|
+
ec_brand: z.ZodOptional<z.ZodString>;
|
|
1841
|
+
ec_category: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1842
|
+
ec_color: z.ZodOptional<z.ZodString>;
|
|
1843
|
+
ec_description: z.ZodOptional<z.ZodString>;
|
|
1844
|
+
ec_images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
1845
|
+
ec_in_stock: z.ZodOptional<z.ZodBoolean>;
|
|
1846
|
+
ec_item_group_id: z.ZodOptional<z.ZodString>;
|
|
1847
|
+
ec_item_group_name: z.ZodOptional<z.ZodString>;
|
|
1848
|
+
ec_name: z.ZodString;
|
|
1849
|
+
ec_price: z.ZodOptional<z.ZodNumber>;
|
|
1850
|
+
ec_promo_price: z.ZodOptional<z.ZodNumber>;
|
|
1851
|
+
ec_rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1852
|
+
ec_shortdesc: z.ZodOptional<z.ZodString>;
|
|
1853
|
+
ec_thumbnails: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
1854
|
+
permanentid: z.ZodString;
|
|
1855
|
+
}, z.core.$strict>>;
|
|
1856
|
+
query: z.ZodString;
|
|
1857
|
+
}, z.core.$strict>;
|
|
1381
1858
|
}, z.core.$strict>, z.ZodObject<{
|
|
1382
1859
|
actions: z.ZodObject<{
|
|
1383
1860
|
selectAction: z.ZodObject<{
|
|
@@ -1439,7 +1916,21 @@ export declare const ComponentContractsSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1439
1916
|
summary: z.ZodString;
|
|
1440
1917
|
}, z.core.$strict>;
|
|
1441
1918
|
}, z.core.$strict>, z.ZodObject<{
|
|
1442
|
-
actions: z.ZodObject<{
|
|
1919
|
+
actions: z.ZodObject<{
|
|
1920
|
+
productClick: z.ZodObject<{
|
|
1921
|
+
payload: z.ZodObject<{
|
|
1922
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1923
|
+
position: z.ZodNumber;
|
|
1924
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1925
|
+
productId: z.ZodString;
|
|
1926
|
+
}, z.core.$strict>;
|
|
1927
|
+
}, z.core.$strict>;
|
|
1928
|
+
selectProducts: z.ZodObject<{
|
|
1929
|
+
payload: z.ZodObject<{
|
|
1930
|
+
productIds: z.ZodArray<z.ZodString>;
|
|
1931
|
+
}, z.core.$strict>;
|
|
1932
|
+
}, z.core.$strict>;
|
|
1933
|
+
}, z.core.$strict>;
|
|
1443
1934
|
child: z.ZodOptional<z.ZodString>;
|
|
1444
1935
|
children: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1445
1936
|
componentType: z.ZodLiteral<"product-list">;
|
|
@@ -1505,6 +1996,9 @@ export declare const ComponentContractsSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1505
1996
|
pageSize: z.ZodNumber;
|
|
1506
1997
|
}, z.core.$strict>;
|
|
1507
1998
|
}, z.core.$strict>;
|
|
1999
|
+
showMore: z.ZodObject<{
|
|
2000
|
+
payload: z.ZodObject<{}, z.core.$strict>;
|
|
2001
|
+
}, z.core.$strict>;
|
|
1508
2002
|
}, z.core.$strict>;
|
|
1509
2003
|
child: z.ZodOptional<z.ZodString>;
|
|
1510
2004
|
children: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1790,6 +2284,29 @@ export declare const ComponentContractsSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1790
2284
|
state: z.ZodObject<{}, z.core.$strict>;
|
|
1791
2285
|
}, z.core.$strict>, z.ZodObject<{
|
|
1792
2286
|
actions: z.ZodObject<{
|
|
2287
|
+
overrideCorrection: z.ZodObject<{
|
|
2288
|
+
payload: z.ZodObject<{
|
|
2289
|
+
originalQuery: z.ZodString;
|
|
2290
|
+
}, z.core.$strict>;
|
|
2291
|
+
}, z.core.$strict>;
|
|
2292
|
+
restoreState: z.ZodObject<{
|
|
2293
|
+
payload: z.ZodObject<{
|
|
2294
|
+
facets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2295
|
+
facetId: z.ZodString;
|
|
2296
|
+
numericRanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2297
|
+
end: z.ZodNumber;
|
|
2298
|
+
endInclusive: z.ZodOptional<z.ZodBoolean>;
|
|
2299
|
+
start: z.ZodNumber;
|
|
2300
|
+
}, z.core.$strict>>>;
|
|
2301
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2302
|
+
}, z.core.$strict>>>;
|
|
2303
|
+
page: z.ZodNumber;
|
|
2304
|
+
pageSize: z.ZodNumber;
|
|
2305
|
+
pinnedProducts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2306
|
+
query: z.ZodString;
|
|
2307
|
+
sortCriteria: z.ZodOptional<z.ZodString>;
|
|
2308
|
+
}, z.core.$strict>;
|
|
2309
|
+
}, z.core.$strict>;
|
|
1793
2310
|
submitQuery: z.ZodObject<{
|
|
1794
2311
|
payload: z.ZodObject<{
|
|
1795
2312
|
query: z.ZodString;
|
|
@@ -1844,6 +2361,11 @@ export declare const BundleDisplayPropsSchema: z.ZodObject<{
|
|
|
1844
2361
|
componentType: z.ZodLiteral<"bundle-display">;
|
|
1845
2362
|
}, z.core.$strip>;
|
|
1846
2363
|
export type BundleDisplayProps = z.infer<typeof BundleDisplayPropsSchema>;
|
|
2364
|
+
export declare const CartPropsSchema: z.ZodObject<{
|
|
2365
|
+
componentId: z.ZodString;
|
|
2366
|
+
componentType: z.ZodLiteral<"cart">;
|
|
2367
|
+
}, z.core.$strip>;
|
|
2368
|
+
export type CartProps = z.infer<typeof CartPropsSchema>;
|
|
1847
2369
|
export declare const CategoryFacetPropsSchema: z.ZodObject<{
|
|
1848
2370
|
componentId: z.ZodString;
|
|
1849
2371
|
componentType: z.ZodLiteral<"category-facet">;
|
|
@@ -1909,6 +2431,11 @@ export declare const ProductSummaryPropsSchema: z.ZodObject<{
|
|
|
1909
2431
|
componentType: z.ZodLiteral<"product-summary">;
|
|
1910
2432
|
}, z.core.$strip>;
|
|
1911
2433
|
export type ProductSummaryProps = z.infer<typeof ProductSummaryPropsSchema>;
|
|
2434
|
+
export declare const QuerySuggestionsPropsSchema: z.ZodObject<{
|
|
2435
|
+
componentId: z.ZodString;
|
|
2436
|
+
componentType: z.ZodLiteral<"query-suggestions">;
|
|
2437
|
+
}, z.core.$strip>;
|
|
2438
|
+
export type QuerySuggestionsProps = z.infer<typeof QuerySuggestionsPropsSchema>;
|
|
1912
2439
|
export declare const QuerySummaryPropsSchema: z.ZodObject<{
|
|
1913
2440
|
componentId: z.ZodString;
|
|
1914
2441
|
componentType: z.ZodLiteral<"query-summary">;
|