@coveo/relay-event-types 7.11.6 → 7.12.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 +54 -15
package/package.json
CHANGED
package/relay-event-types.d.ts
CHANGED
|
@@ -35,18 +35,6 @@ interface DocumentSuggestion {
|
|
|
35
35
|
responseId: string;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
interface Feedback {
|
|
39
|
-
liked: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* The reason for the feedback.
|
|
42
|
-
*/
|
|
43
|
-
reason?: "irrelevant" | "notAccurate" | "outOfDate" | "harmful" | "other";
|
|
44
|
-
/**
|
|
45
|
-
* Additional details written in free text.
|
|
46
|
-
*/
|
|
47
|
-
details?: string;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
38
|
/**
|
|
51
39
|
* Represents the Coveo Analytics Item Click Event. Use this schema when sending data related to a user's click on an item returned by Coveo.
|
|
52
40
|
*/
|
|
@@ -369,7 +357,7 @@ export namespace Qna {
|
|
|
369
357
|
*/
|
|
370
358
|
export interface AnswerAction extends Base {
|
|
371
359
|
answer: QnaAnswer;
|
|
372
|
-
action: "copyToClipboard" | "hide" | "show" | "expand" | "collapse";
|
|
360
|
+
action: "copyToClipboard" | "hide" | "show" | "expand" | "collapse" | "like" | "dislike";
|
|
373
361
|
}
|
|
374
362
|
|
|
375
363
|
/**
|
|
@@ -390,10 +378,61 @@ export namespace Qna {
|
|
|
390
378
|
}
|
|
391
379
|
|
|
392
380
|
/**
|
|
393
|
-
* Event to emit when submitting feedback for a Q&A answer.
|
|
381
|
+
* Event to emit when submitting feedback following the evaluation rubric for a Q&A answer.
|
|
394
382
|
*/
|
|
395
383
|
export interface SubmitFeedback extends Base {
|
|
396
384
|
answer: QnaAnswer;
|
|
397
|
-
feedback:
|
|
385
|
+
feedback: {
|
|
386
|
+
/**
|
|
387
|
+
* Whether or not the answer helpful.
|
|
388
|
+
*/
|
|
389
|
+
helpful: boolean;
|
|
390
|
+
/**
|
|
391
|
+
* Qualitative score for `Is the answer clear and easy to read?`.
|
|
392
|
+
*/
|
|
393
|
+
readable: "yes" | "unknown" | "no";
|
|
394
|
+
correctness: {
|
|
395
|
+
/**
|
|
396
|
+
* Qualitative score for `Is the question covered in the documentation?`.
|
|
397
|
+
*/
|
|
398
|
+
documented: "yes" | "unknown" | "no";
|
|
399
|
+
/**
|
|
400
|
+
* Qualitative score for `Is the answer about the correct product or topic? `.
|
|
401
|
+
*/
|
|
402
|
+
correct_topic: "yes" | "unknown" | "no";
|
|
403
|
+
/**
|
|
404
|
+
* Qualitative score for `Is the answer free of hallucinated content?`.
|
|
405
|
+
*/
|
|
406
|
+
hallucination_free: "yes" | "unknown" | "no";
|
|
407
|
+
};
|
|
408
|
+
/**
|
|
409
|
+
* Additional details to the evaluation.
|
|
410
|
+
*/
|
|
411
|
+
details?: string;
|
|
412
|
+
/**
|
|
413
|
+
* URL of an indexed document that should be used to generate the answer (i.e. source of truth).
|
|
414
|
+
*/
|
|
415
|
+
document_url?: string;
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Event to emit when submitting the reason of a negative feedback for a Smart Snippet answer.
|
|
421
|
+
*/
|
|
422
|
+
export interface SubmitSmartSnippetFeedback extends Base {
|
|
423
|
+
/**
|
|
424
|
+
* The id of the response associated with the service that delivered the answer (e.g. for the Search API, that would be `searchUid`).
|
|
425
|
+
*/
|
|
426
|
+
responseId: string;
|
|
427
|
+
feedback: {
|
|
428
|
+
/**
|
|
429
|
+
* The reason for the negative feedback.
|
|
430
|
+
*/
|
|
431
|
+
reason: "irrelevant" | "notAccurate" | "outOfDate" | "harmful" | "other";
|
|
432
|
+
/**
|
|
433
|
+
* Additional details written in free text.
|
|
434
|
+
*/
|
|
435
|
+
details?: string;
|
|
436
|
+
};
|
|
398
437
|
}
|
|
399
438
|
}
|