@veltdev/types-dev 6.0.14-beta.2 → 6.0.15
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.
|
@@ -178,6 +178,16 @@ export interface AddCommentAnnotationEvent {
|
|
|
178
178
|
elementRef?: {
|
|
179
179
|
xpath: string;
|
|
180
180
|
};
|
|
181
|
+
/**
|
|
182
|
+
* Present only when this event changed the annotation's assignee.
|
|
183
|
+
* - A `UserContact` when this event set the assignee to that user.
|
|
184
|
+
* - `null` when this event cleared a previously set assignee.
|
|
185
|
+
* - Absent (the key is not present) when this event did not change the assignee.
|
|
186
|
+
* "Changed" compares the assignee before and after this event by `userId`, falling back to `email`.
|
|
187
|
+
* For the event that creates an annotation, any assignee it carries counts as a change.
|
|
188
|
+
* To read the annotation's current assignee, use `commentAnnotation.assignedTo`.
|
|
189
|
+
*/
|
|
190
|
+
assignedTo?: UserContact | null;
|
|
181
191
|
}
|
|
182
192
|
export interface ApproveCommentAnnotationEvent {
|
|
183
193
|
annotationId: string;
|
|
@@ -254,6 +264,16 @@ export interface AddCommentEvent {
|
|
|
254
264
|
commentId: number;
|
|
255
265
|
comment: Comment;
|
|
256
266
|
metadata: VeltEventMetadata;
|
|
267
|
+
/**
|
|
268
|
+
* Present only when this event changed the annotation's assignee.
|
|
269
|
+
* - A `UserContact` when this event set the assignee to that user.
|
|
270
|
+
* - `null` when this event cleared a previously set assignee.
|
|
271
|
+
* - Absent (the key is not present) when this event did not change the assignee.
|
|
272
|
+
* "Changed" compares the assignee before and after this event by `userId`, falling back to `email`.
|
|
273
|
+
* For the event that creates an annotation, any assignee it carries counts as a change.
|
|
274
|
+
* To read the annotation's current assignee, use `commentAnnotation.assignedTo`.
|
|
275
|
+
*/
|
|
276
|
+
assignedTo?: UserContact | null;
|
|
257
277
|
}
|
|
258
278
|
export interface AddCommentDraftEvent {
|
|
259
279
|
annotationId: string;
|
|
@@ -277,6 +297,16 @@ export interface UpdateCommentEvent {
|
|
|
277
297
|
commentId: number;
|
|
278
298
|
comment: Comment;
|
|
279
299
|
metadata: VeltEventMetadata;
|
|
300
|
+
/**
|
|
301
|
+
* Present only when this event changed the annotation's assignee.
|
|
302
|
+
* - A `UserContact` when this event set the assignee to that user.
|
|
303
|
+
* - `null` when this event cleared a previously set assignee.
|
|
304
|
+
* - Absent (the key is not present) when this event did not change the assignee.
|
|
305
|
+
* "Changed" compares the assignee before and after this event by `userId`, falling back to `email`.
|
|
306
|
+
* Updates made through the `updateComment` API never carry it; listen to `assignUser` for assignments made separately.
|
|
307
|
+
* To read the annotation's current assignee, use `commentAnnotation.assignedTo`.
|
|
308
|
+
*/
|
|
309
|
+
assignedTo?: UserContact | null;
|
|
280
310
|
}
|
|
281
311
|
export interface DeleteCommentEvent {
|
|
282
312
|
annotationId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/types-dev",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.15",
|
|
4
4
|
"description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
|
|
5
5
|
"homepage": "https://velt.dev",
|
|
6
6
|
"keywords": [
|