@coveo/relay-event-types 13.1.2 → 14.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 +1 -1
- package/relay-event-types.d.ts +28 -14
package/package.json
CHANGED
package/relay-event-types.d.ts
CHANGED
|
@@ -334,23 +334,37 @@ export namespace Rga {
|
|
|
334
334
|
*/
|
|
335
335
|
export interface AnswerAction extends Base {
|
|
336
336
|
/**
|
|
337
|
-
* The
|
|
337
|
+
* The unique identifier of the generated answer.
|
|
338
338
|
*/
|
|
339
|
-
|
|
339
|
+
answerId: UuidNotNull;
|
|
340
340
|
/**
|
|
341
341
|
* The action taken on the answer.
|
|
342
342
|
*/
|
|
343
343
|
action: "copyToClipboard" | "hide" | "show" | "expand" | "collapse" | "like" | "dislike";
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
+
/**
|
|
347
|
+
* Event to emit when a generated answer has been fully received.
|
|
348
|
+
*/
|
|
349
|
+
export interface AnswerReceived extends Base {
|
|
350
|
+
/**
|
|
351
|
+
* The unique identifier of the generated answer.
|
|
352
|
+
*/
|
|
353
|
+
answerId: UuidNotNull;
|
|
354
|
+
/**
|
|
355
|
+
* Indicates if the answer was generated or not.
|
|
356
|
+
*/
|
|
357
|
+
answerGenerated: boolean;
|
|
358
|
+
}
|
|
359
|
+
|
|
346
360
|
/**
|
|
347
361
|
* Event to emit when a generated answer citation item has been clicked.
|
|
348
362
|
*/
|
|
349
363
|
export interface CitationClick extends Base {
|
|
350
364
|
/**
|
|
351
|
-
* The
|
|
365
|
+
* The unique identifier of the generated answer.
|
|
352
366
|
*/
|
|
353
|
-
|
|
367
|
+
answerId: UuidNotNull;
|
|
354
368
|
/**
|
|
355
369
|
* The citation id. This value needs to match the unique identifier of the answer's citation.
|
|
356
370
|
*/
|
|
@@ -363,9 +377,9 @@ export namespace Rga {
|
|
|
363
377
|
*/
|
|
364
378
|
export interface CitationHover extends Base {
|
|
365
379
|
/**
|
|
366
|
-
* The
|
|
380
|
+
* The unique identifier of the generated answer.
|
|
367
381
|
*/
|
|
368
|
-
|
|
382
|
+
answerId: UuidNotNull;
|
|
369
383
|
/**
|
|
370
384
|
* The citation id. This value needs to match the unique identifier of the answer's citation.
|
|
371
385
|
*/
|
|
@@ -378,17 +392,17 @@ export namespace Rga {
|
|
|
378
392
|
}
|
|
379
393
|
|
|
380
394
|
/**
|
|
381
|
-
* Event to emit
|
|
395
|
+
* Event to emit to signal that an particular answer is linked to another API response (ex: a search).
|
|
382
396
|
*/
|
|
383
|
-
export interface
|
|
397
|
+
export interface ResponseLinked extends Base {
|
|
384
398
|
/**
|
|
385
|
-
* The
|
|
399
|
+
* The unique identifier of the generated answer.
|
|
386
400
|
*/
|
|
387
|
-
|
|
401
|
+
answerId: UuidNotNull;
|
|
388
402
|
/**
|
|
389
|
-
*
|
|
403
|
+
* The unique identifier of the response (ex: a search) that needs to be linked to the answer.
|
|
390
404
|
*/
|
|
391
|
-
|
|
405
|
+
responseId: UuidNotNull;
|
|
392
406
|
}
|
|
393
407
|
|
|
394
408
|
/**
|
|
@@ -396,9 +410,9 @@ export namespace Rga {
|
|
|
396
410
|
*/
|
|
397
411
|
export interface SubmitFeedback extends Base {
|
|
398
412
|
/**
|
|
399
|
-
* The
|
|
413
|
+
* The unique identifier of the generated answer.
|
|
400
414
|
*/
|
|
401
|
-
|
|
415
|
+
answerId: UuidNotNull;
|
|
402
416
|
/**
|
|
403
417
|
* Whether or not the answer is helpful.
|
|
404
418
|
*/
|