@coveo/relay-event-types 17.1.0 → 18.0.2
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 +1 -1
- package/relay-event-types.d.ts +10 -25
package/package.json
CHANGED
package/relay-event-types.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ interface Base {
|
|
|
17
17
|
|
|
18
18
|
interface BaseItemClick extends Base {
|
|
19
19
|
/**
|
|
20
|
-
* A unique identifier for the response of a service which returned the list of relevant items.
|
|
20
|
+
* A unique identifier for the response of a service which returned the list of relevant items. For example, a searchId or similar.
|
|
21
21
|
*/
|
|
22
22
|
responseId?: UuidNotNull;
|
|
23
23
|
/**
|
|
@@ -32,7 +32,7 @@ interface BaseItemClick extends Base {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* The itemClick event is emitted when
|
|
35
|
+
* The itemClick event is emitted when a user clicks an item returned by Coveo.
|
|
36
36
|
*/
|
|
37
37
|
export interface ItemClick extends BaseItemClick {
|
|
38
38
|
}
|
|
@@ -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:
|
|
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
|
*/
|
|
@@ -154,7 +139,7 @@ export namespace CaseAssist {
|
|
|
154
139
|
}
|
|
155
140
|
|
|
156
141
|
/**
|
|
157
|
-
* The caseAssist.documentSuggestionClick event is emitted when a user clicks
|
|
142
|
+
* The caseAssist.documentSuggestionClick event is emitted when a user clicks a Case Assist document suggestion.
|
|
158
143
|
*/
|
|
159
144
|
export interface DocumentSuggestionClick extends Base {
|
|
160
145
|
/**
|
|
@@ -232,7 +217,7 @@ export namespace Ec {
|
|
|
232
217
|
*/
|
|
233
218
|
action: "add" | "remove";
|
|
234
219
|
currency: CurrencyCodeISO4217;
|
|
235
|
-
product:
|
|
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
|
*/
|
|
@@ -345,7 +330,7 @@ export namespace InsightPanel {
|
|
|
345
330
|
*/
|
|
346
331
|
context: Context;
|
|
347
332
|
/**
|
|
348
|
-
* The id of the item in the source repository (ex: A knowledge article record ID in
|
|
333
|
+
* The id of the item in the source repository (ex: A knowledge article record ID in Salesforce).
|
|
349
334
|
*/
|
|
350
335
|
sourceEntityId?: string;
|
|
351
336
|
}
|