@veltdev/types-dev 4.5.6-beta.27 → 4.5.6-beta.28

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.
@@ -45,6 +45,10 @@ export interface AddCommentAnnotationRequest {
45
45
  annotation: CommentAnnotation;
46
46
  options?: RequestOptions;
47
47
  }
48
+ export interface PublishCommentAnnotationRequest {
49
+ annotationId: string;
50
+ options?: RequestOptions;
51
+ }
48
52
  export interface ApproveCommentAnnotationRequest {
49
53
  annotationId: string;
50
54
  options?: RequestOptions;
@@ -189,6 +189,7 @@ export declare class CommentAnnotation {
189
189
  sourceId?: string;
190
190
  views?: CommentAnnotationViews;
191
191
  viewedByUserIds?: string[];
192
+ viewedBy?: User[];
192
193
  }
193
194
  export declare class GhostComment {
194
195
  targetElement?: TargetElement | null;
@@ -103,6 +103,11 @@ export interface AddCommentAnnotationEvent {
103
103
  xpath: string;
104
104
  };
105
105
  }
106
+ export interface PublishCommentAnnotationEvent {
107
+ annotationId: string;
108
+ commentAnnotation: CommentAnnotation;
109
+ metadata: VeltEventMetadata;
110
+ }
106
111
  export interface ApproveCommentAnnotationEvent {
107
112
  annotationId: string;
108
113
  commentAnnotation: CommentAnnotation;
@@ -1,5 +1,6 @@
1
1
  import { Attachment } from "./attachment.model";
2
2
  import { AutocompleteGroupReplaceData, AutocompleteReplaceData, AutocompleteUserContactReplaceData } from "./autocomplete.data.model";
3
+ import { ReactionAnnotation } from "./reaction-annotation.data.model";
3
4
  import { RecordedData } from "./recorder.model";
4
5
  import { User } from "./user.data.model";
5
6
  export declare class Comment {
@@ -86,4 +87,5 @@ export declare class Comment {
86
87
  *
87
88
  */
88
89
  isEdited?: boolean;
90
+ reactionAnnotations?: ReactionAnnotation[];
89
91
  }
@@ -1,13 +1,13 @@
1
1
  // @ts-nocheck
2
2
  import { Observable } from "rxjs";
3
3
  import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig, UpdateContextConfig } from "../data/comment-annotation.data.model";
4
- import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, GetLinkEvent, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, FetchCommentAnnotationsResponse } from "../data/comment-events.data.model";
4
+ import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, GetLinkEvent, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, FetchCommentAnnotationsResponse, PublishCommentAnnotationEvent } from "../data/comment-events.data.model";
5
5
  import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
6
6
  import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
7
7
  import { AutocompleteData } from "../data/autocomplete.data.model";
8
8
  import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebarDataOptions } from "../data/comment-sidebar-config.model";
9
9
  export { ReactionMap } from '../data/reaction-annotation.data.model';
10
- import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, CommentRequestQuery, CommentRequestQuery, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetRecordingRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationRequest, ToggleReactionRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest, FetchCommentAnnotationsRequest } from "../data/comment-actions.data.model";
10
+ import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, CommentRequestQuery, CommentRequestQuery, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetRecordingRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationRequest, ToggleReactionRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest, FetchCommentAnnotationsRequest, PublishCommentAnnotationRequest } from "../data/comment-actions.data.model";
11
11
  import { UnreadCommentsCount, TransformContext } from "../data/comment-utils.data.model";
12
12
  import { CommentSidebarSystemFiltersOperator, SidebarButtonCountType } from "../../utils/enums";
13
13
  import { UploadFileData } from "../data/attachment.model";
@@ -954,6 +954,11 @@ export declare class CommentElement {
954
954
  */
955
955
  public addCommentAnnotation: (request: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
956
956
 
957
+ /**
958
+ * To publish comment annotation
959
+ */
960
+ public publishCommentAnnotation: (request: PublishCommentAnnotationRequest) => Promise<PublishCommentAnnotationEvent | null>;
961
+
957
962
  /**
958
963
  * To approve comment annotation
959
964
  */
@@ -1244,6 +1249,16 @@ export declare class CommentElement {
1244
1249
  */
1245
1250
  public disableForceCloseAllOnEsc: () => void;
1246
1251
 
1252
+ /**
1253
+ * To mark comment annotation as read
1254
+ */
1255
+ public markAsRead: (annotationId: string) => Promise<void>;
1256
+
1257
+ /**
1258
+ * To mark comment annotation as unread
1259
+ */
1260
+ public markAsUnread: (annotationId: string) => Promise<void>;
1261
+
1247
1262
  constructor();
1248
1263
  /**
1249
1264
  * Subscribe to comments on the current document.
@@ -2177,6 +2192,11 @@ export declare class CommentElement {
2177
2192
  */
2178
2193
  private _addCommentAnnotation;
2179
2194
 
2195
+ /**
2196
+ * To publish comment annotation
2197
+ */
2198
+ private _publishCommentAnnotation;
2199
+
2180
2200
  /**
2181
2201
  * To approve comment annotation
2182
2202
  */
@@ -2466,4 +2486,14 @@ export declare class CommentElement {
2466
2486
  * To disable force close all on esc
2467
2487
  */
2468
2488
  private _disableForceCloseAllOnEsc;
2489
+
2490
+ /**
2491
+ * To mark comment annotation as read
2492
+ */
2493
+ private _markAsRead;
2494
+
2495
+ /**
2496
+ * To mark comment annotation as unread
2497
+ */
2498
+ private _markAsUnread;
2469
2499
  }
@@ -14,7 +14,8 @@ export declare enum CommentStatus {
14
14
  REACTION_ADDED = "reactionAdded",
15
15
  REACTION_DELETED = "reactionDeleted",
16
16
  SUBSCRIBED = "subscribed",
17
- UNSUBSCRIBED = "unsubscribed"
17
+ UNSUBSCRIBED = "unsubscribed",
18
+ PUBLISHED = "published"
18
19
  }
19
20
  export declare enum ResolverActions {
20
21
  COMMENT_ANNOTATION_ADD = "comment_annotation.add",
@@ -29,6 +30,7 @@ export declare enum ResolverActions {
29
30
  }
30
31
  export declare const CommentEventTypes: {
31
32
  readonly ADD_COMMENT_ANNOTATION: "addCommentAnnotation";
33
+ readonly PUBLISH_COMMENT_ANNOTATION: "publishCommentAnnotation";
32
34
  readonly DELETE_COMMENT_ANNOTATION: "deleteCommentAnnotation";
33
35
  readonly APPROVE_COMMENT_ANNOTATION: "approveCommentAnnotation";
34
36
  readonly ACCEPT_COMMENT_ANNOTATION: "acceptCommentAnnotation";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "4.5.6-beta.27",
3
+ "version": "4.5.6-beta.28",
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": [