@coveo/relay-event-types 7.1.5 → 7.2.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 +1 -1
- package/relay-event-types.d.ts +109 -0
package/package.json
CHANGED
package/relay-event-types.d.ts
CHANGED
|
@@ -15,6 +15,14 @@ type UuidNotNull = string;
|
|
|
15
15
|
interface Base {
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* A document suggestion.
|
|
20
|
+
*/
|
|
21
|
+
interface DocumentSuggestion {
|
|
22
|
+
id: string;
|
|
23
|
+
responseId: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
18
26
|
/**
|
|
19
27
|
* The ecCartAction event is emitted when a user adds or removes a product from the cart or changes a product's quantity.
|
|
20
28
|
*/
|
|
@@ -207,3 +215,104 @@ export interface Search extends Base {
|
|
|
207
215
|
responseTimeInMs?: number;
|
|
208
216
|
}
|
|
209
217
|
|
|
218
|
+
/**
|
|
219
|
+
* A support ticket.
|
|
220
|
+
*/
|
|
221
|
+
interface Ticket {
|
|
222
|
+
/**
|
|
223
|
+
* The support ticket unique id as identified by the origin system.
|
|
224
|
+
*/
|
|
225
|
+
id: string;
|
|
226
|
+
/**
|
|
227
|
+
* The category of the support ticket.
|
|
228
|
+
*/
|
|
229
|
+
category?: string;
|
|
230
|
+
/**
|
|
231
|
+
* The description of the support ticket.
|
|
232
|
+
*/
|
|
233
|
+
description?: string;
|
|
234
|
+
/**
|
|
235
|
+
* The subject of the support ticket.
|
|
236
|
+
*/
|
|
237
|
+
subject?: string;
|
|
238
|
+
/**
|
|
239
|
+
* The origin system of the support ticket.
|
|
240
|
+
*/
|
|
241
|
+
system?: string;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export namespace CaseAssist {
|
|
245
|
+
/**
|
|
246
|
+
* The CaseAssist.Start event is emitted when Coveo Case Assist support ticket creation flow is initiated.
|
|
247
|
+
*/
|
|
248
|
+
export type Start = Base;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* The CaseAssist.Cancel event is emitted when Coveo Case Assist support ticket creation flow is canceled by the user.
|
|
252
|
+
*/
|
|
253
|
+
export interface Cancel extends Base {
|
|
254
|
+
/**
|
|
255
|
+
* The reason why the user canceled the ticket creation flow.
|
|
256
|
+
*/
|
|
257
|
+
reason: "solved" | "quit";
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* The CaseAssist.CreateTicket event is emitted when a support ticket is created in Coveo Case Assist.
|
|
262
|
+
*/
|
|
263
|
+
export interface CreateTicket extends Base {
|
|
264
|
+
ticket: Ticket;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* The CaseAssist.DocumentSuggestionClick event is emitted when a Coveo Case Assist document suggestion is clicked.
|
|
269
|
+
*/
|
|
270
|
+
export interface DocumentSuggestionClick extends Base {
|
|
271
|
+
documentSuggestion: DocumentSuggestion;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* The CaseAssist.DocumentSuggestionFeedback event is emitted when feedback is given on a Coveo Case Assist document suggestion.
|
|
276
|
+
*/
|
|
277
|
+
export interface DocumentSuggestionFeedback extends Base {
|
|
278
|
+
documentSuggestion: DocumentSuggestion;
|
|
279
|
+
/**
|
|
280
|
+
* Whether the user liked the document suggestion or not.
|
|
281
|
+
*/
|
|
282
|
+
liked: boolean;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* The CaseAssist.selectFieldClassification event is emitted when a support ticket field recommendation is selected in Coveo Case Assist.
|
|
287
|
+
*/
|
|
288
|
+
export interface SelectFieldClassification extends Base {
|
|
289
|
+
fieldClassification: {
|
|
290
|
+
/**
|
|
291
|
+
* The unique identifier of the field classification.
|
|
292
|
+
*/
|
|
293
|
+
id: string;
|
|
294
|
+
/**
|
|
295
|
+
* The unique identifier of the response that contains the field classification.
|
|
296
|
+
*/
|
|
297
|
+
responseId: string;
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* Whether the field classification was automatically selected by Coveo Case Assist.
|
|
301
|
+
*/
|
|
302
|
+
autoselected: boolean;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* The CaseAssist.UpdateField event is emitted when an end-user edits a Coveo Case Assist form field.
|
|
307
|
+
*/
|
|
308
|
+
export interface UpdateField extends Base {
|
|
309
|
+
/**
|
|
310
|
+
* The name of the field that was updated.
|
|
311
|
+
*/
|
|
312
|
+
fieldName: string;
|
|
313
|
+
/**
|
|
314
|
+
* The new value of the field.
|
|
315
|
+
*/
|
|
316
|
+
fieldValue: string;
|
|
317
|
+
}
|
|
318
|
+
}
|