@coveo/relay-event-types 6.28.2 → 6.30.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 +59 -0
package/package.json
CHANGED
package/relay-event-types.d.ts
CHANGED
|
@@ -73,6 +73,18 @@ export interface EcPurchase extends Base {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
interface Feedback {
|
|
77
|
+
liked: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* The reason for the feedback.
|
|
80
|
+
*/
|
|
81
|
+
reason?: "irrelevant" | "notAccurate" | "outOfDate" | "harmful" | "other";
|
|
82
|
+
/**
|
|
83
|
+
* Additional details written in free text.
|
|
84
|
+
*/
|
|
85
|
+
details?: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
76
88
|
/**
|
|
77
89
|
* 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.
|
|
78
90
|
*/
|
|
@@ -135,6 +147,53 @@ interface ProductQuantity {
|
|
|
135
147
|
quantity: number;
|
|
136
148
|
}
|
|
137
149
|
|
|
150
|
+
interface QnaAnswer {
|
|
151
|
+
/**
|
|
152
|
+
* The answer id. This value needs to match the unique identifier of a Q&A answer.
|
|
153
|
+
*/
|
|
154
|
+
id: string;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Event to emit when interacting with a Q&A answer.
|
|
159
|
+
*/
|
|
160
|
+
export interface QnaAnswerAction extends Base {
|
|
161
|
+
answer: QnaAnswer;
|
|
162
|
+
action: "copyToClipboard" | "hide" | "show" | "expand" | "collapse";
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
interface QnaCitation {
|
|
166
|
+
/**
|
|
167
|
+
* The citation id. This value needs to match the unique identifier of the answer's citation.
|
|
168
|
+
*/
|
|
169
|
+
id: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Event to emit when a Q&A answer citation has been hovered.
|
|
174
|
+
*/
|
|
175
|
+
export interface QnaCitationHover extends Base {
|
|
176
|
+
answer: QnaAnswer;
|
|
177
|
+
citation: QnaCitation;
|
|
178
|
+
citationHoverTimeInMs?: number;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Event to emit when a Q&A answer citation item has been clicked.
|
|
183
|
+
*/
|
|
184
|
+
export interface QnaCitationItemClick extends Base {
|
|
185
|
+
answer: QnaAnswer;
|
|
186
|
+
citation: QnaCitation;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Event to emit when submitting feedback for a Q&A answer.
|
|
191
|
+
*/
|
|
192
|
+
export interface QnaFeedback extends Base {
|
|
193
|
+
answer: QnaAnswer;
|
|
194
|
+
feedback: Feedback;
|
|
195
|
+
}
|
|
196
|
+
|
|
138
197
|
/**
|
|
139
198
|
* Represents the Coveo Analytics Search Event. Send this schema exclusively when conducting A/B tests against a competitor's search solution.
|
|
140
199
|
*/
|