@coveo/relay-event-types 17.1.0 → 18.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coveo/relay-event-types",
3
- "version": "17.1.0",
3
+ "version": "18.0.0",
4
4
  "description": "Typescript types for Coveo Events, intended to be used with the Relay package.",
5
5
  "types": "./relay-event-types.d.ts",
6
6
  "author": "Coveo",
@@ -80,35 +80,20 @@ interface Product {
80
80
  * The product price. If the price is not available, set the value to 0.
81
81
  */
82
82
  price: number;
83
+ /**
84
+ * The (optional) unique identifier for the specific variant of the product. The identifier should correspond to a variant in your Coveo catalog.
85
+ */
86
+ variantId?: string;
83
87
  }
84
88
 
85
89
  interface ProductQuantity {
86
- product: ProductVariant;
90
+ product: Product;
87
91
  /**
88
92
  * Purchased product quantity. Can be decimal. Must be greater than 0.
89
93
  */
90
94
  quantity: number;
91
95
  }
92
96
 
93
- interface ProductVariant {
94
- /**
95
- * The unique identifier of the product. The value must match exactly, including case, the values of the link:{site-baseurl}/n73f0502#define-a-unique-product-identifier[product identifier] and `permanentid` fields configured in the catalog.
96
- */
97
- productId: string;
98
- /**
99
- * The product name.
100
- */
101
- name: string;
102
- /**
103
- * The product price. If the price is not available, set the value to 0.
104
- */
105
- price: number;
106
- /**
107
- * The unique identifier for the specific variant of the product, if applicable. The identifier should correspond to a variant in your Coveo catalog.
108
- */
109
- variantId?: string;
110
- }
111
-
112
97
  /**
113
98
  * A support ticket.
114
99
  */
@@ -232,7 +217,7 @@ export namespace Ec {
232
217
  */
233
218
  action: "add" | "remove";
234
219
  currency: CurrencyCodeISO4217;
235
- product: ProductVariant;
220
+ product: Product;
236
221
  /**
237
222
  * Represents the change in product quantity, not the total quantity. Can be decimal. Must be greater than 0.
238
223
  */