@coveo/thermidor-schema 1.0.0-beta.1 → 1.0.0-beta.13
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/README.md +32 -5
- package/dist/generated/schemas.d.ts +2547 -378
- package/dist/generated/schemas.js +689 -143
- package/dist/generated/zod3/schemas.d.ts +23821 -0
- package/dist/generated/zod3/schemas.js +1087 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/zod3/index.d.ts +3 -0
- package/dist/zod3/index.js +5 -0
- package/dist/zod3-compat.d.ts +79 -0
- package/dist/zod3-compat.js +82 -0
- package/package.json +26 -20
- package/schema/base/catalog.schema.json +3 -2
- package/schema/base/component.schema.json +24 -20
- package/schema/{components/component-contracts.schema.json → component-contracts.schema.json} +23 -5
- package/schema/components/bundle-display.schema.json +11 -6
- package/schema/components/cart.schema.json +85 -46
- package/schema/components/category-facet.schema.json +35 -24
- package/schema/components/commerce-search.schema.json +186 -0
- package/schema/components/comparison-table.schema.json +35 -11
- package/schema/components/date-facet.schema.json +39 -26
- package/schema/components/facet-manager.schema.json +16 -18
- package/schema/components/layout-stack.schema.json +50 -0
- package/schema/components/next-actions-bar.schema.json +16 -18
- package/schema/components/numeric-facet.schema.json +43 -26
- package/schema/components/page-size.schema.json +79 -0
- package/schema/components/pagination.schema.json +45 -19
- package/schema/components/product-carousel.schema.json +15 -7
- package/schema/components/product-list.schema.json +77 -7
- package/schema/components/product-research-card.schema.json +70 -0
- package/schema/components/product-summary.schema.json +64 -0
- package/schema/components/query-suggestions.schema.json +113 -0
- package/schema/components/query-summary.schema.json +76 -0
- package/schema/components/regular-facet.schema.json +42 -32
- package/schema/components/sort.schema.json +18 -18
- package/schema/definitions/bundle-tier.schema.json +9 -4
- package/schema/definitions/child-list.schema.json +32 -0
- package/schema/definitions/comparison-attribute.schema.json +2 -2
- package/schema/definitions/comparison-product.schema.json +2 -2
- package/schema/definitions/component-id.schema.json +9 -0
- package/schema/definitions/data-binding.schema.json +16 -0
- package/schema/components/search-box.schema.json +0 -74
- package/schema/definitions/cart-item.schema.json +0 -29
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.thermidor.coveo.com/definitions/data-binding.schema.json",
|
|
4
|
+
"title": "DataBinding",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["path"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"path": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "An RFC 6901 JSON Pointer resolving a value in the A2-UI data model, at or beneath statePath(id)."
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"additionalProperties": false,
|
|
14
|
+
"description": "A standard A2-UI Data_Binding object { \"path\": <RFC 6901 JSON Pointer> } pointing at or beneath statePath(id) = /state/<id>.",
|
|
15
|
+
"$comment": "A2-UI common_types.json#/$defs/DataBinding. A bindable prop references this so the Zod generator projects it as a Dynamic_Value union (literal or { path } binding)."
|
|
16
|
+
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://schema.thermidor.coveo.com/components/search-box.schema.json",
|
|
4
|
-
"title": "SearchBox",
|
|
5
|
-
"description": "Provides a search input for a commerce search surface. Renders the current query and dispatches submitQuery when the user submits a new query.",
|
|
6
|
-
"allOf": [
|
|
7
|
-
{
|
|
8
|
-
"$ref": "https://schema.thermidor.coveo.com/base/component.schema.json"
|
|
9
|
-
}
|
|
10
|
-
],
|
|
11
|
-
"properties": {
|
|
12
|
-
"componentType": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"const": "search-box"
|
|
15
|
-
},
|
|
16
|
-
"state": {
|
|
17
|
-
"$ref": "#/$defs/SearchBoxState"
|
|
18
|
-
},
|
|
19
|
-
"actions": {
|
|
20
|
-
"type": "object",
|
|
21
|
-
"required": [
|
|
22
|
-
"submitQuery"
|
|
23
|
-
],
|
|
24
|
-
"properties": {
|
|
25
|
-
"submitQuery": {
|
|
26
|
-
"$ref": "#/$defs/SubmitQueryAction"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"additionalProperties": false
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"additionalProperties": false,
|
|
33
|
-
"$defs": {
|
|
34
|
-
"SearchBoxState": {
|
|
35
|
-
"title": "SearchBoxState",
|
|
36
|
-
"description": "The current search box state. Owned exclusively by the backend.",
|
|
37
|
-
"type": "object",
|
|
38
|
-
"required": [
|
|
39
|
-
"query"
|
|
40
|
-
],
|
|
41
|
-
"properties": {
|
|
42
|
-
"query": {
|
|
43
|
-
"type": "string",
|
|
44
|
-
"description": "The current search query string."
|
|
45
|
-
}
|
|
46
|
-
},
|
|
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": [
|
|
61
|
-
"query"
|
|
62
|
-
],
|
|
63
|
-
"properties": {
|
|
64
|
-
"query": {
|
|
65
|
-
"type": "string",
|
|
66
|
-
"description": "The query string to submit."
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"additionalProperties": false
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://schema.thermidor.coveo.com/definitions/cart-item.schema.json",
|
|
4
|
-
"title": "CartItem",
|
|
5
|
-
"description": "A single line item in the cart, as exposed by the CartController state and used in cart action payloads.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"required": ["productId", "name", "price", "quantity"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"productId": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"description": "The unique product identifier. Corresponds to the Product's permanentid field."
|
|
12
|
-
},
|
|
13
|
-
"name": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"description": "The display name of the product at the time it was added to the cart."
|
|
16
|
-
},
|
|
17
|
-
"price": {
|
|
18
|
-
"type": "number",
|
|
19
|
-
"minimum": 0,
|
|
20
|
-
"description": "The non-negative unit price at the time the item was added, in the session currency."
|
|
21
|
-
},
|
|
22
|
-
"quantity": {
|
|
23
|
-
"type": "integer",
|
|
24
|
-
"minimum": 1,
|
|
25
|
-
"description": "The number of units of this product in the cart."
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"additionalProperties": false
|
|
29
|
-
}
|