@veltdev/sdk 4.5.0-beta.51 → 4.5.0-beta.53

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.
@@ -29,6 +29,14 @@ export interface SaveCommentResolverRequest {
29
29
  metadata?: BaseMetadata;
30
30
  commentId?: string;
31
31
  }
32
+ export interface PartialUser {
33
+ userId: string;
34
+ }
35
+ export interface PartialTaggedUserContacts {
36
+ userId: string;
37
+ contact?: PartialUser;
38
+ text?: string;
39
+ }
32
40
  export interface PartialComment {
33
41
  commentId: string | number;
34
42
  commentHtml?: string;
@@ -36,6 +44,9 @@ export interface PartialComment {
36
44
  attachments?: {
37
45
  [attachmentId: number]: PartialAttachment;
38
46
  };
47
+ from?: PartialUser;
48
+ to?: PartialUser[];
49
+ taggedUserContacts?: PartialTaggedUserContacts[];
39
50
  }
40
51
  export interface PartialCommentAnnotationResult {
41
52
  strippedData: {
@@ -50,4 +61,7 @@ export interface PartialCommentAnnotation {
50
61
  comments: {
51
62
  [commentId: string]: PartialComment;
52
63
  };
64
+ from?: PartialUser;
65
+ assignedTo?: PartialUser;
66
+ resolvedByUserId?: string | null;
53
67
  }
@@ -1,7 +1,8 @@
1
+ import { ResolverActions } from "../../utils/enums";
1
2
  import { BaseMetadata } from "./base-metadata.data.model";
3
+ import { PartialUser } from "./comment-resolver.data.model";
2
4
  import { ReactionAnnotation } from "./reaction-annotation.data.model";
3
- import { ResolverResponse, ResolverConfig } from "./resolver.data.model";
4
- import { ResolverActions } from "../../utils/enums";
5
+ import { ResolverConfig, ResolverResponse } from "./resolver.data.model";
5
6
  export interface ReactionAnnotationDataProvider {
6
7
  get: (request: GetReactionResolverRequest) => Promise<ResolverResponse<Record<string, PartialReactionAnnotation>>>;
7
8
  save: (request: SaveReactionResolverRequest) => Promise<ResolverResponse<undefined>>;
@@ -37,4 +38,5 @@ export interface PartialReactionAnnotation {
37
38
  annotationId: string;
38
39
  metadata?: BaseMetadata;
39
40
  icon?: string;
41
+ from?: PartialUser;
40
42
  }
@@ -9,7 +9,7 @@ import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebar
9
9
  export { ReactionMap } from '../data/reaction-annotation.data.model';
10
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";
11
11
  import { UnreadCommentsCount, TransformContext } from "../data/comment-utils.data.model";
12
- import { CommentSidebarSystemFiltersOperator } from "../../utils/enums";
12
+ import { CommentSidebarSystemFiltersOperator, SidebarButtonCountType } from "../../utils/enums";
13
13
 
14
14
  export declare class CommentElement {
15
15
  /**
@@ -1188,6 +1188,11 @@ export declare class CommentElement {
1188
1188
  */
1189
1189
  public setMaxReplyAvatars: (maxReplyAvatars: number) => void;
1190
1190
 
1191
+ /**
1192
+ * To set sidebar button count type
1193
+ */
1194
+ public setSidebarButtonCountType: (type: SidebarButtonCountType) => void;
1195
+
1191
1196
  constructor();
1192
1197
  /**
1193
1198
  * Subscribe to comments on the current document.
@@ -2355,4 +2360,9 @@ export declare class CommentElement {
2355
2360
  * To set max reply avatars
2356
2361
  */
2357
2362
  private _setMaxReplyAvatars;
2363
+
2364
+ /**
2365
+ * To set sidebar button count type
2366
+ */
2367
+ private _setSidebarButtonCountType;
2358
2368
  }
@@ -265,6 +265,7 @@ export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'involv
265
265
  export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
266
266
  export type NotificationPanelMode = 'popover' | 'sidebar';
267
267
  export type SidebarActionButtonType = 'default' | 'toggle';
268
+ export type SidebarButtonCountType = 'default' | 'filter';
268
269
  export declare enum CommentSidebarSystemFiltersOperator {
269
270
  AND = "and",
270
271
  OR = "or"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "4.5.0-beta.51",
3
+ "version": "4.5.0-beta.53",
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": [