@coveo/thermidor-schema 1.0.0-beta.3 → 1.0.0-beta.4
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.
|
@@ -319,8 +319,10 @@ export declare const FacetManagerActionsSchema: z.ZodObject<{}, z.core.$strict>;
|
|
|
319
319
|
export type FacetManagerActions = z.infer<typeof FacetManagerActionsSchema>;
|
|
320
320
|
export declare const FacetManagerStateSchema: z.ZodObject<{}, z.core.$strict>;
|
|
321
321
|
export type FacetManagerState = z.infer<typeof FacetManagerStateSchema>;
|
|
322
|
-
export declare const
|
|
323
|
-
|
|
322
|
+
export declare const SubmitQueryPayloadSchema: z.ZodObject<{
|
|
323
|
+
query: z.ZodString;
|
|
324
|
+
}, z.core.$strict>;
|
|
325
|
+
export type SubmitQueryPayload = z.infer<typeof SubmitQueryPayloadSchema>;
|
|
324
326
|
export declare const CommerceSearchStateSchema: z.ZodObject<{}, z.core.$strict>;
|
|
325
327
|
export type CommerceSearchState = z.infer<typeof CommerceSearchStateSchema>;
|
|
326
328
|
export declare const LayoutStackActionsSchema: z.ZodObject<{}, z.core.$strict>;
|
|
@@ -668,14 +670,12 @@ export declare const FacetManagerSchema: z.ZodObject<{
|
|
|
668
670
|
state: z.ZodObject<{}, z.core.$strict>;
|
|
669
671
|
}, z.core.$strict>;
|
|
670
672
|
export type FacetManager = z.infer<typeof FacetManagerSchema>;
|
|
671
|
-
export declare const
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
componentType: z.ZodLiteral<"commerce-search">;
|
|
676
|
-
state: z.ZodObject<{}, z.core.$strict>;
|
|
673
|
+
export declare const SubmitQuerySchema: z.ZodObject<{
|
|
674
|
+
payload: z.ZodObject<{
|
|
675
|
+
query: z.ZodString;
|
|
676
|
+
}, z.core.$strict>;
|
|
677
677
|
}, z.core.$strict>;
|
|
678
|
-
export type
|
|
678
|
+
export type SubmitQuery = z.infer<typeof SubmitQuerySchema>;
|
|
679
679
|
export declare const LayoutStackSchema: z.ZodObject<{
|
|
680
680
|
actions: z.ZodObject<{}, z.core.$strict>;
|
|
681
681
|
child: z.ZodOptional<z.ZodString>;
|
|
@@ -960,6 +960,14 @@ export declare const CategoryFacetStateSchema: z.ZodObject<{
|
|
|
960
960
|
}, z.core.$strict>;
|
|
961
961
|
}, z.core.$strict>;
|
|
962
962
|
export type CategoryFacetState = z.infer<typeof CategoryFacetStateSchema>;
|
|
963
|
+
export declare const CommerceSearchActionsSchema: z.ZodObject<{
|
|
964
|
+
submitQuery: z.ZodObject<{
|
|
965
|
+
payload: z.ZodObject<{
|
|
966
|
+
query: z.ZodString;
|
|
967
|
+
}, z.core.$strict>;
|
|
968
|
+
}, z.core.$strict>;
|
|
969
|
+
}, z.core.$strict>;
|
|
970
|
+
export type CommerceSearchActions = z.infer<typeof CommerceSearchActionsSchema>;
|
|
963
971
|
export declare const PageSizeActionsSchema: z.ZodObject<{
|
|
964
972
|
setPageSize: z.ZodObject<{
|
|
965
973
|
payload: z.ZodObject<{
|
|
@@ -1312,6 +1320,20 @@ export declare const CategoryFacetSchema: z.ZodObject<{
|
|
|
1312
1320
|
}, z.core.$strict>;
|
|
1313
1321
|
}, z.core.$strict>;
|
|
1314
1322
|
export type CategoryFacet = z.infer<typeof CategoryFacetSchema>;
|
|
1323
|
+
export declare const CommerceSearchSchema: z.ZodObject<{
|
|
1324
|
+
actions: z.ZodObject<{
|
|
1325
|
+
submitQuery: z.ZodObject<{
|
|
1326
|
+
payload: z.ZodObject<{
|
|
1327
|
+
query: z.ZodString;
|
|
1328
|
+
}, z.core.$strict>;
|
|
1329
|
+
}, z.core.$strict>;
|
|
1330
|
+
}, 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
|
+
}, z.core.$strict>;
|
|
1336
|
+
export type CommerceSearch = z.infer<typeof CommerceSearchSchema>;
|
|
1315
1337
|
export declare const PageSizeSchema: z.ZodObject<{
|
|
1316
1338
|
actions: z.ZodObject<{
|
|
1317
1339
|
setPageSize: z.ZodObject<{
|
|
@@ -1767,7 +1789,13 @@ export declare const ComponentContractsSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1767
1789
|
componentType: z.ZodLiteral<"facet-manager">;
|
|
1768
1790
|
state: z.ZodObject<{}, z.core.$strict>;
|
|
1769
1791
|
}, z.core.$strict>, z.ZodObject<{
|
|
1770
|
-
actions: z.ZodObject<{
|
|
1792
|
+
actions: z.ZodObject<{
|
|
1793
|
+
submitQuery: z.ZodObject<{
|
|
1794
|
+
payload: z.ZodObject<{
|
|
1795
|
+
query: z.ZodString;
|
|
1796
|
+
}, z.core.$strict>;
|
|
1797
|
+
}, z.core.$strict>;
|
|
1798
|
+
}, z.core.$strict>;
|
|
1771
1799
|
child: z.ZodOptional<z.ZodString>;
|
|
1772
1800
|
children: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1773
1801
|
componentType: z.ZodLiteral<"commerce-search">;
|
|
@@ -192,7 +192,9 @@ export const CategoryFacetValuesSchema = z.strictObject({
|
|
|
192
192
|
});
|
|
193
193
|
export const FacetManagerActionsSchema = z.strictObject({});
|
|
194
194
|
export const FacetManagerStateSchema = z.strictObject({});
|
|
195
|
-
export const
|
|
195
|
+
export const SubmitQueryPayloadSchema = z.strictObject({
|
|
196
|
+
query: z.string(),
|
|
197
|
+
});
|
|
196
198
|
export const CommerceSearchStateSchema = z.strictObject({});
|
|
197
199
|
export const LayoutStackActionsSchema = z.strictObject({});
|
|
198
200
|
export const LayoutStackStateSchema = z.strictObject({});
|
|
@@ -347,15 +349,8 @@ export const FacetManagerSchema = z.strictObject({
|
|
|
347
349
|
componentType: z.literal('facet-manager'),
|
|
348
350
|
state: FacetManagerStateSchema,
|
|
349
351
|
});
|
|
350
|
-
export const
|
|
351
|
-
|
|
352
|
-
child: z.string().regex(new RegExp('^[a-z][a-z0-9-]*$')).optional(),
|
|
353
|
-
children: z
|
|
354
|
-
.array(z.string().regex(new RegExp('^[a-z][a-z0-9-]*$')))
|
|
355
|
-
.max(1000)
|
|
356
|
-
.optional(),
|
|
357
|
-
componentType: z.literal('commerce-search'),
|
|
358
|
-
state: CommerceSearchStateSchema,
|
|
352
|
+
export const SubmitQuerySchema = z.strictObject({
|
|
353
|
+
payload: SubmitQueryPayloadSchema,
|
|
359
354
|
});
|
|
360
355
|
export const LayoutStackSchema = z.strictObject({
|
|
361
356
|
actions: LayoutStackActionsSchema,
|
|
@@ -457,6 +452,9 @@ export const CategoryFacetStateSchema = z.strictObject({
|
|
|
457
452
|
field: z.string(),
|
|
458
453
|
values: CategoryFacetValuesSchema,
|
|
459
454
|
});
|
|
455
|
+
export const CommerceSearchActionsSchema = z.strictObject({
|
|
456
|
+
submitQuery: SubmitQuerySchema,
|
|
457
|
+
});
|
|
460
458
|
export const PageSizeActionsSchema = z.strictObject({
|
|
461
459
|
setPageSize: FluffySetPageSizeSchema,
|
|
462
460
|
});
|
|
@@ -540,6 +538,16 @@ export const CategoryFacetSchema = z.strictObject({
|
|
|
540
538
|
componentType: z.literal('category-facet'),
|
|
541
539
|
state: CategoryFacetStateSchema,
|
|
542
540
|
});
|
|
541
|
+
export const CommerceSearchSchema = z.strictObject({
|
|
542
|
+
actions: CommerceSearchActionsSchema,
|
|
543
|
+
child: z.string().regex(new RegExp('^[a-z][a-z0-9-]*$')).optional(),
|
|
544
|
+
children: z
|
|
545
|
+
.array(z.string().regex(new RegExp('^[a-z][a-z0-9-]*$')))
|
|
546
|
+
.max(1000)
|
|
547
|
+
.optional(),
|
|
548
|
+
componentType: z.literal('commerce-search'),
|
|
549
|
+
state: CommerceSearchStateSchema,
|
|
550
|
+
});
|
|
543
551
|
export const PageSizeSchema = z.strictObject({
|
|
544
552
|
actions: PageSizeActionsSchema,
|
|
545
553
|
child: z.string().regex(new RegExp('^[a-z][a-z0-9-]*$')).optional(),
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const THERMIDOR_CATALOG_ID = "https://schema.thermidor.coveo.com/a2-ui/catalog.json";
|
|
2
|
-
export { ActionItemSchema, BundleDisplaySchema, BundleDisplayStateSchema, BundleSlotSchema, BundleTierSchema, CategoryFacetSchema, CategoryFacetActionsSchema, CategoryFacetValueSchema, CategoryFacetSearchSchema, CategoryFacetSearchPayloadSchema, CategoryFacetSelectPathPayloadSchema, CategoryFacetStateSchema, CategoryFacetValuesSchema, CommerceSearchSchema, CommerceSearchStateSchema, ComparisonAttributeSchema, ComparisonProductSchema, ComparisonTableSchema, ComparisonTableStateSchema, ComponentContractsSchema, DateFacetSchema, DateFacetActionsSchema, DateFacetApplyCustomRangePayloadSchema, DateFacetCustomRangeSchema, DateFacetStateSchema, DateFacetToggleSelectPayloadSchema, DateFacetToggleSingleSelectPayloadSchema, DateFacetValueSchema, FacetManagerSchema, FacetManagerActionsSchema, FacetManagerStateSchema, 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, ProductSummarySchema, ProductSummaryActionsSchema, ProductSummaryStateSchema, QuerySummarySchema, QuerySummaryStateSchema, ProductSchema, RegularFacetSchema, RegularFacetActionsSchema, RegularFacetSearchSchema, RegularFacetSearchResultSchema, RegularFacetStateSchema, RegularFacetToggleExcludePayloadSchema, RegularFacetToggleSelectPayloadSchema, RegularFacetToggleSingleExcludePayloadSchema, RegularFacetToggleSingleSelectPayloadSchema, RegularFacetValueSchema, SelectActionPayloadSchema, SelectPagePayloadSchema, SelectSortPayloadSchema, SetPageSizePayloadSchema, SortSchema, SortActionsSchema, SortCriterionSchema, SortStateSchema, BundleDisplayPropsSchema, CategoryFacetPropsSchema, CommerceSearchPropsSchema, ComparisonTablePropsSchema, DateFacetPropsSchema, FacetManagerPropsSchema, LayoutStackPropsSchema, NextActionsBarPropsSchema, NumericFacetPropsSchema, PageSizePropsSchema, PaginationPropsSchema, ProductCarouselPropsSchema, ProductListPropsSchema, ProductSummaryPropsSchema, QuerySummaryPropsSchema, RegularFacetPropsSchema, SortPropsSchema, } from './generated/schemas.js';
|
|
3
|
-
export type { ActionItem, BundleDisplay, BundleDisplayState, BundleSlot, BundleTier, CategoryFacet, CategoryFacetActions, CategoryFacetValue, CategoryFacetSearch, CategoryFacetSearchPayload, CategoryFacetSelectPathPayload, CategoryFacetState, CategoryFacetValues, CommerceSearch, CommerceSearchState, ComparisonAttribute, ComparisonProduct, ComparisonTable, ComparisonTableState, ComponentContracts, DateFacet, DateFacetActions, DateFacetApplyCustomRangePayload, DateFacetCustomRange, DateFacetState, DateFacetToggleSelectPayload, DateFacetToggleSingleSelectPayload, DateFacetValue, FacetManager, FacetManagerActions, FacetManagerState, FacetValueState, SelectableFacetValueState, LayoutStack, LayoutStackState, NextActionsBar, NextActionsState, NumericFacet, NumericFacetActions, NumericFacetCustomRange, NumericFacetDomain, NumericFacetApplyCustomRangePayload, NumericFacetState, NumericFacetToggleSelectPayload, NumericFacetToggleSingleSelectPayload, NumericFacetValue, PageSize, PageSizeActions, PageSizeState, Pagination, PaginationActions, PaginationState, Product, ProductCarousel, ProductCarouselState, ProductList, ProductListActions, ProductListState, ProductSummary, ProductSummaryActions, ProductSummaryState, QuerySummary, QuerySummaryState, RegularFacet, RegularFacetActions, RegularFacetSearch, RegularFacetSearchResult, RegularFacetState, RegularFacetToggleExcludePayload, RegularFacetToggleSelectPayload, RegularFacetToggleSingleExcludePayload, RegularFacetToggleSingleSelectPayload, RegularFacetValue, SelectActionPayload, SelectPagePayload, SelectSortPayload, SetPageSizePayload, Sort, SortActions, SortCriterion, SortState, BundleDisplayProps, CategoryFacetProps, CommerceSearchProps, ComparisonTableProps, DateFacetProps, FacetManagerProps, LayoutStackProps, NextActionsBarProps, NumericFacetProps, PageSizeProps, PaginationProps, ProductCarouselProps, ProductListProps, ProductSummaryProps, QuerySummaryProps, RegularFacetProps, SortProps, } from './generated/schemas.js';
|
|
2
|
+
export { ActionItemSchema, 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, 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, ProductSummarySchema, ProductSummaryActionsSchema, ProductSummaryStateSchema, QuerySummarySchema, QuerySummaryStateSchema, ProductSchema, RegularFacetSchema, RegularFacetActionsSchema, RegularFacetSearchSchema, RegularFacetSearchResultSchema, RegularFacetStateSchema, RegularFacetToggleExcludePayloadSchema, RegularFacetToggleSelectPayloadSchema, RegularFacetToggleSingleExcludePayloadSchema, RegularFacetToggleSingleSelectPayloadSchema, RegularFacetValueSchema, SelectActionPayloadSchema, SelectPagePayloadSchema, SelectSortPayloadSchema, SetPageSizePayloadSchema, SortSchema, SortActionsSchema, SortCriterionSchema, SortStateSchema, BundleDisplayPropsSchema, CategoryFacetPropsSchema, CommerceSearchPropsSchema, ComparisonTablePropsSchema, DateFacetPropsSchema, FacetManagerPropsSchema, LayoutStackPropsSchema, NextActionsBarPropsSchema, NumericFacetPropsSchema, PageSizePropsSchema, PaginationPropsSchema, ProductCarouselPropsSchema, ProductListPropsSchema, ProductSummaryPropsSchema, QuerySummaryPropsSchema, RegularFacetPropsSchema, SortPropsSchema, } from './generated/schemas.js';
|
|
3
|
+
export type { ActionItem, 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, FacetValueState, SelectableFacetValueState, LayoutStack, LayoutStackState, NextActionsBar, NextActionsState, NumericFacet, NumericFacetActions, NumericFacetCustomRange, NumericFacetDomain, NumericFacetApplyCustomRangePayload, NumericFacetState, NumericFacetToggleSelectPayload, NumericFacetToggleSingleSelectPayload, NumericFacetValue, PageSize, PageSizeActions, PageSizeState, Pagination, PaginationActions, PaginationState, Product, ProductCarousel, ProductCarouselState, ProductList, ProductListActions, ProductListState, ProductSummary, ProductSummaryActions, ProductSummaryState, QuerySummary, QuerySummaryState, RegularFacet, RegularFacetActions, RegularFacetSearch, RegularFacetSearchResult, RegularFacetState, RegularFacetToggleExcludePayload, RegularFacetToggleSelectPayload, RegularFacetToggleSingleExcludePayload, RegularFacetToggleSingleSelectPayload, RegularFacetValue, SelectActionPayload, SelectPagePayload, SelectSortPayload, SetPageSizePayload, Sort, SortActions, SortCriterion, SortState, BundleDisplayProps, CategoryFacetProps, CommerceSearchProps, ComparisonTableProps, DateFacetProps, FacetManagerProps, LayoutStackProps, NextActionsBarProps, NumericFacetProps, PageSizeProps, PaginationProps, ProductCarouselProps, ProductListProps, ProductSummaryProps, QuerySummaryProps, RegularFacetProps, SortProps, } from './generated/schemas.js';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const THERMIDOR_CATALOG_ID = 'https://schema.thermidor.coveo.com/a2-ui/catalog.json';
|
|
2
|
-
export { ActionItemSchema, BundleDisplaySchema, BundleDisplayStateSchema, BundleSlotSchema, BundleTierSchema, CategoryFacetSchema, CategoryFacetActionsSchema, CategoryFacetValueSchema, CategoryFacetSearchSchema, CategoryFacetSearchPayloadSchema, CategoryFacetSelectPathPayloadSchema, CategoryFacetStateSchema, CategoryFacetValuesSchema, CommerceSearchSchema, CommerceSearchStateSchema, ComparisonAttributeSchema, ComparisonProductSchema, ComparisonTableSchema, ComparisonTableStateSchema, ComponentContractsSchema, DateFacetSchema, DateFacetActionsSchema, DateFacetApplyCustomRangePayloadSchema, DateFacetCustomRangeSchema, DateFacetStateSchema, DateFacetToggleSelectPayloadSchema, DateFacetToggleSingleSelectPayloadSchema, DateFacetValueSchema, FacetManagerSchema, FacetManagerActionsSchema, FacetManagerStateSchema, 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, ProductSummarySchema, ProductSummaryActionsSchema, ProductSummaryStateSchema, QuerySummarySchema, QuerySummaryStateSchema, ProductSchema, RegularFacetSchema, RegularFacetActionsSchema, RegularFacetSearchSchema, RegularFacetSearchResultSchema, RegularFacetStateSchema, RegularFacetToggleExcludePayloadSchema, RegularFacetToggleSelectPayloadSchema, RegularFacetToggleSingleExcludePayloadSchema, RegularFacetToggleSingleSelectPayloadSchema, RegularFacetValueSchema, SelectActionPayloadSchema, SelectPagePayloadSchema, SelectSortPayloadSchema, SetPageSizePayloadSchema, SortSchema, SortActionsSchema, SortCriterionSchema, SortStateSchema, BundleDisplayPropsSchema, CategoryFacetPropsSchema, CommerceSearchPropsSchema, ComparisonTablePropsSchema, DateFacetPropsSchema, FacetManagerPropsSchema, LayoutStackPropsSchema, NextActionsBarPropsSchema, NumericFacetPropsSchema, PageSizePropsSchema, PaginationPropsSchema, ProductCarouselPropsSchema, ProductListPropsSchema, ProductSummaryPropsSchema, QuerySummaryPropsSchema, RegularFacetPropsSchema, SortPropsSchema, } from './generated/schemas.js';
|
|
2
|
+
export { ActionItemSchema, 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, 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, ProductSummarySchema, ProductSummaryActionsSchema, ProductSummaryStateSchema, QuerySummarySchema, QuerySummaryStateSchema, ProductSchema, RegularFacetSchema, RegularFacetActionsSchema, RegularFacetSearchSchema, RegularFacetSearchResultSchema, RegularFacetStateSchema, RegularFacetToggleExcludePayloadSchema, RegularFacetToggleSelectPayloadSchema, RegularFacetToggleSingleExcludePayloadSchema, RegularFacetToggleSingleSelectPayloadSchema, RegularFacetValueSchema, SelectActionPayloadSchema, SelectPagePayloadSchema, SelectSortPayloadSchema, SetPageSizePayloadSchema, SortSchema, SortActionsSchema, SortCriterionSchema, SortStateSchema, BundleDisplayPropsSchema, CategoryFacetPropsSchema, CommerceSearchPropsSchema, ComparisonTablePropsSchema, DateFacetPropsSchema, FacetManagerPropsSchema, LayoutStackPropsSchema, NextActionsBarPropsSchema, NumericFacetPropsSchema, PageSizePropsSchema, PaginationPropsSchema, ProductCarouselPropsSchema, ProductListPropsSchema, ProductSummaryPropsSchema, QuerySummaryPropsSchema, RegularFacetPropsSchema, SortPropsSchema, } from './generated/schemas.js';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schema.thermidor.coveo.com/components/commerce-search.schema.json",
|
|
4
4
|
"title": "CommerceSearch",
|
|
5
|
-
"description": "Surface-root component for a commerce search surface. Its componentType carries the surface intent; it owns the surface's top-level components via children.",
|
|
5
|
+
"description": "Surface-root component for a commerce search surface. Its componentType carries the surface intent; it owns the surface's top-level components via children and dispatches submitQuery when the user submits a new query.",
|
|
6
6
|
"allOf": [
|
|
7
7
|
{
|
|
8
8
|
"$ref": "https://schema.thermidor.coveo.com/base/component.schema.json"
|
|
@@ -18,7 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"actions": {
|
|
20
20
|
"type": "object",
|
|
21
|
-
"
|
|
21
|
+
"required": ["submitQuery"],
|
|
22
|
+
"properties": {
|
|
23
|
+
"submitQuery": {
|
|
24
|
+
"$ref": "#/$defs/SubmitQueryAction"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
22
27
|
"additionalProperties": false
|
|
23
28
|
},
|
|
24
29
|
"children": {
|
|
@@ -40,6 +45,28 @@
|
|
|
40
45
|
"description": "The commerce search surface state. Owned exclusively by the backend.",
|
|
41
46
|
"type": "object",
|
|
42
47
|
"additionalProperties": false
|
|
48
|
+
},
|
|
49
|
+
"SubmitQueryAction": {
|
|
50
|
+
"title": "submitQuery",
|
|
51
|
+
"description": "Submits a new search query.",
|
|
52
|
+
"allOf": [
|
|
53
|
+
{
|
|
54
|
+
"$ref": "https://schema.thermidor.coveo.com/base/action.schema.json"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"properties": {
|
|
58
|
+
"payload": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"required": ["query"],
|
|
61
|
+
"properties": {
|
|
62
|
+
"query": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "The query string to submit."
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"additionalProperties": false
|
|
68
|
+
}
|
|
69
|
+
}
|
|
43
70
|
}
|
|
44
71
|
}
|
|
45
72
|
}
|