@coveo/relay-event-types 7.8.1 → 7.9.1
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 +17 -30
package/package.json
CHANGED
package/relay-event-types.d.ts
CHANGED
|
@@ -125,19 +125,6 @@ interface QnaCitation {
|
|
|
125
125
|
id: string;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
/**
|
|
129
|
-
* Represents the Coveo Analytics Search Event. Send this schema exclusively when conducting A/B tests against a competitor's search solution.
|
|
130
|
-
*/
|
|
131
|
-
export interface Search extends Base {
|
|
132
|
-
/**
|
|
133
|
-
* A unique identifier identifying the query made to a search system.
|
|
134
|
-
*/
|
|
135
|
-
searchUid: string;
|
|
136
|
-
queryText: string;
|
|
137
|
-
numberOfResults?: number;
|
|
138
|
-
responseTimeInMs?: number;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
128
|
/**
|
|
142
129
|
* A support ticket.
|
|
143
130
|
*/
|
|
@@ -166,12 +153,12 @@ interface Ticket {
|
|
|
166
153
|
|
|
167
154
|
export namespace CaseAssist {
|
|
168
155
|
/**
|
|
169
|
-
* The
|
|
156
|
+
* The caseAssist.start event is emitted when a user initiates a Case Assist flow.
|
|
170
157
|
*/
|
|
171
158
|
export type Start = Base;
|
|
172
159
|
|
|
173
160
|
/**
|
|
174
|
-
* The
|
|
161
|
+
* The caseAssist.cancel event is emitted when a user cancels the Case Assist flow.
|
|
175
162
|
*/
|
|
176
163
|
export interface Cancel extends Base {
|
|
177
164
|
/**
|
|
@@ -181,21 +168,21 @@ export namespace CaseAssist {
|
|
|
181
168
|
}
|
|
182
169
|
|
|
183
170
|
/**
|
|
184
|
-
* The
|
|
171
|
+
* The caseAssist.createTicket event is emitted when a user creates support ticket is created with Case Assist.
|
|
185
172
|
*/
|
|
186
173
|
export interface CreateTicket extends Base {
|
|
187
174
|
ticket: Ticket;
|
|
188
175
|
}
|
|
189
176
|
|
|
190
177
|
/**
|
|
191
|
-
* The
|
|
178
|
+
* The caseAssist.documentSuggestionClick event is emitted when a user clicks on a Case Assist document suggestion.
|
|
192
179
|
*/
|
|
193
180
|
export interface DocumentSuggestionClick extends Base {
|
|
194
181
|
documentSuggestion: DocumentSuggestion;
|
|
195
182
|
}
|
|
196
183
|
|
|
197
184
|
/**
|
|
198
|
-
* The
|
|
185
|
+
* The caseAssist.documentSuggestionFeedback event is emitted when a user gives feedback on a Case Assist document suggestion.
|
|
199
186
|
*/
|
|
200
187
|
export interface DocumentSuggestionFeedback extends Base {
|
|
201
188
|
documentSuggestion: DocumentSuggestion;
|
|
@@ -206,7 +193,7 @@ export namespace CaseAssist {
|
|
|
206
193
|
}
|
|
207
194
|
|
|
208
195
|
/**
|
|
209
|
-
* The
|
|
196
|
+
* The caseAssist.selectFieldClassification event is emitted when a user selects a Case Assist field recommendation.
|
|
210
197
|
*/
|
|
211
198
|
export interface SelectFieldClassification extends Base {
|
|
212
199
|
fieldClassification: {
|
|
@@ -226,7 +213,7 @@ export namespace CaseAssist {
|
|
|
226
213
|
}
|
|
227
214
|
|
|
228
215
|
/**
|
|
229
|
-
* The
|
|
216
|
+
* The caseAssist.updateField event is emitted when a user edits a Case Assist form field.
|
|
230
217
|
*/
|
|
231
218
|
export interface UpdateField extends Base {
|
|
232
219
|
/**
|
|
@@ -282,7 +269,7 @@ export namespace Ec {
|
|
|
282
269
|
}
|
|
283
270
|
|
|
284
271
|
/**
|
|
285
|
-
* The ec.purchase event is emitted when
|
|
272
|
+
* The ec.purchase event is emitted when a user completes a purchase.
|
|
286
273
|
*/
|
|
287
274
|
export interface Purchase extends Base {
|
|
288
275
|
currency: CurrencyCodeISO4217;
|
|
@@ -302,7 +289,7 @@ export namespace Ec {
|
|
|
302
289
|
|
|
303
290
|
export namespace InsightPanel {
|
|
304
291
|
/**
|
|
305
|
-
* The context in which
|
|
292
|
+
* The context in which Insight Panel is used. Generally, this will be a support case.
|
|
306
293
|
*/
|
|
307
294
|
interface Context {
|
|
308
295
|
/**
|
|
@@ -316,11 +303,11 @@ export namespace InsightPanel {
|
|
|
316
303
|
}
|
|
317
304
|
|
|
318
305
|
/**
|
|
319
|
-
*
|
|
306
|
+
* The insightPanel.createArticle event is emitted when the agent creates an article from a support case.
|
|
320
307
|
*/
|
|
321
308
|
export interface CreateArticle extends Base {
|
|
322
309
|
/**
|
|
323
|
-
* The context in which
|
|
310
|
+
* The context in which Insight Panel is used.
|
|
324
311
|
*/
|
|
325
312
|
context: Context;
|
|
326
313
|
/**
|
|
@@ -330,28 +317,28 @@ export namespace InsightPanel {
|
|
|
330
317
|
}
|
|
331
318
|
|
|
332
319
|
/**
|
|
333
|
-
*
|
|
320
|
+
* The insightPanel.detachItem event is emitted when the agent detaches an item from a record.
|
|
334
321
|
*/
|
|
335
322
|
export interface DetachItem extends Base {
|
|
336
323
|
/**
|
|
337
|
-
* The context in which
|
|
324
|
+
* The context in which Insight Panel is used.
|
|
338
325
|
*/
|
|
339
326
|
context: Context;
|
|
340
327
|
itemMetadata: ItemMetaData;
|
|
341
328
|
}
|
|
342
329
|
|
|
343
330
|
/**
|
|
344
|
-
*
|
|
331
|
+
* The insightPanel.expandToFullUI event is emitted when the agent expands an Insight Panel view to full UI.
|
|
345
332
|
*/
|
|
346
333
|
export interface ExpandToFullUI extends Base {
|
|
347
334
|
/**
|
|
348
|
-
* The context in which
|
|
335
|
+
* The context in which Insight Panel is used.
|
|
349
336
|
*/
|
|
350
337
|
context: Context;
|
|
351
338
|
}
|
|
352
339
|
|
|
353
340
|
/**
|
|
354
|
-
*
|
|
341
|
+
* The insightPanel.itemAction event is emited when the agent interacts with a search item.
|
|
355
342
|
*/
|
|
356
343
|
export interface ItemAction extends BaseItemClick {
|
|
357
344
|
/**
|
|
@@ -359,7 +346,7 @@ export namespace InsightPanel {
|
|
|
359
346
|
*/
|
|
360
347
|
action: "attach" | "open" | "copyToClipboard" | "sendEmail" | "postToFeed";
|
|
361
348
|
/**
|
|
362
|
-
* The context in which
|
|
349
|
+
* The context in which Insight Panel is used.
|
|
363
350
|
*/
|
|
364
351
|
context: Context;
|
|
365
352
|
/**
|