@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coveo/relay-event-types",
3
- "version": "13.1.2",
3
+ "version": "14.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",
@@ -334,23 +334,37 @@ export namespace Rga {
334
334
  */
335
335
  export interface AnswerAction extends Base {
336
336
  /**
337
- * The id of the response associated with the service that delivered the answer.
337
+ * The unique identifier of the generated answer.
338
338
  */
339
- responseId: string;
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 id of the response associated with the service that delivered the answer.
365
+ * The unique identifier of the generated answer.
352
366
  */
353
- responseId: string;
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 id of the response associated with the service that delivered the answer.
380
+ * The unique identifier of the generated answer.
367
381
  */
368
- responseId: string;
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 when a generated answer stream has ended.
395
+ * Event to emit to signal that an particular answer is linked to another API response (ex: a search).
382
396
  */
383
- export interface StreamEnd extends Base {
397
+ export interface ResponseLinked extends Base {
384
398
  /**
385
- * The id of the response associated with the service that delivered the answer.
399
+ * The unique identifier of the generated answer.
386
400
  */
387
- responseId: string;
401
+ answerId: UuidNotNull;
388
402
  /**
389
- * Indicates if the answer was generated or not.
403
+ * The unique identifier of the response (ex: a search) that needs to be linked to the answer.
390
404
  */
391
- answerGenerated: boolean;
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 id of the response associated with the service that delivered the answer.
413
+ * The unique identifier of the generated answer.
400
414
  */
401
- responseId: string;
415
+ answerId: UuidNotNull;
402
416
  /**
403
417
  * Whether or not the answer is helpful.
404
418
  */