@veltdev/types-dev 3.0.255 → 3.0.257

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.
@@ -54,9 +54,6 @@ export declare class AreaAnnotation {
54
54
  targetAnnotations: AreaTargetAnnotation[];
55
55
  metadata?: AreaMetadata;
56
56
  }
57
- export declare class AreaMetadata extends BaseMetadata {
58
- [key: string]: any;
59
- }
60
57
  export declare class AreaTargetAnnotation {
61
58
  /**
62
59
  * Type of the annotation (ex. comment, tag etc.)
@@ -77,3 +74,6 @@ export declare class AreaProperty {
77
74
  handle2?: any;
78
75
  coordinates?: any;
79
76
  }
77
+ export declare class AreaMetadata extends BaseMetadata {
78
+ [key: string]: any;
79
+ }
@@ -1,4 +1,5 @@
1
1
  export declare class BaseMetadata {
2
+ apiKey?: string;
2
3
  documentId?: string;
3
4
  clientDocumentId?: string;
4
5
  organizationId?: string;
@@ -10,6 +10,7 @@ export interface RequestOptions {
10
10
  organizationId?: string;
11
11
  documentId?: string;
12
12
  filters?: any;
13
+ documentIds?: string[];
13
14
  }
14
15
  export interface UpdatePriorityRequest {
15
16
  annotationId: string;
@@ -75,8 +75,8 @@ export type CommentEventTypesMap = {
75
75
  [CommentEventTypes.ADD_REACTION]: AddReactionEvent;
76
76
  [CommentEventTypes.DELETE_REACTION]: DeleteReactionEvent;
77
77
  [CommentEventTypes.TOGGLE_REACTION]: ToggleReactionEvent;
78
- [CommentEventTypes.COMMENT_SIDEBAR_INIT]: CommentSidebarCustomActionEventData;
79
- [CommentEventTypes.COMMENT_SIDEBAR_DATA]: CommentSidebarCustomActionEventData;
78
+ [CommentEventTypes.COMMENT_SIDEBAR_DATA_INIT]: CommentSidebarCustomActionEventData;
79
+ [CommentEventTypes.COMMENT_SIDEBAR_DATA_UPDATE]: CommentSidebarCustomActionEventData;
80
80
  };
81
81
  export interface AddAttachmentEvent {
82
82
  annotationId: string;
@@ -1,5 +1,4 @@
1
1
  import { CoreEventTypes } from "../../utils/enums";
2
2
  export type CoreEventTypesMap = {
3
- [CoreEventTypes.CLICK_VELT_BUTTON]: any;
4
- [CoreEventTypes.ACTIVE_VELT_BUTTON]: any;
3
+ [CoreEventTypes.VELT_BUTTON_CLICK]: any;
5
4
  };
@@ -13,6 +13,10 @@ export declare class RecorderAnnotation {
13
13
  * Auto generated.
14
14
  */
15
15
  annotationId: string;
16
+ /**
17
+ * Connected comment annotation id of reaction annotation
18
+ */
19
+ commentAnnotationId?: string;
16
20
  /**
17
21
  * The user who created this recorder pin annotation.
18
22
  *
@@ -1,19 +1,6 @@
1
1
  import { Location } from "./location.model";
2
2
  export declare class Views {
3
- comment?: {
4
- [commentAnnotationId: string]: {
5
- views: {
6
- [userSnippylyId: string]: View;
7
- };
8
- comments: {
9
- [commentId: string]: {
10
- views: {
11
- [userSnippylyId: string]: View;
12
- };
13
- };
14
- };
15
- };
16
- };
3
+ comment?: CommentViews;
17
4
  notification?: {
18
5
  [notificationId: string]: {
19
6
  views: {
@@ -22,10 +9,7 @@ export declare class Views {
22
9
  };
23
10
  };
24
11
  documentViews?: {
25
- [documentId: string]: {
26
- users: ViewsByUser;
27
- day: ViewsByDate;
28
- };
12
+ [documentId: string]: DocumentViews;
29
13
  };
30
14
  locationViews?: {
31
15
  [locationId: string]: {
@@ -48,3 +32,21 @@ export declare class ViewsByUser {
48
32
  [date: string]: View;
49
33
  };
50
34
  }
35
+ export declare class CommentViews {
36
+ [commentAnnotationId: string]: {
37
+ views: {
38
+ [userSnippylyId: string]: View;
39
+ };
40
+ comments: {
41
+ [commentId: string]: {
42
+ views: {
43
+ [userSnippylyId: string]: View;
44
+ };
45
+ };
46
+ };
47
+ };
48
+ }
49
+ export declare class DocumentViews {
50
+ users: ViewsByUser;
51
+ day: ViewsByDate;
52
+ }
@@ -271,6 +271,7 @@ export declare class Constants {
271
271
  VELT_RECORDER_DISABLED: string;
272
272
  VELT_ANNOTATION_DRAFT: string;
273
273
  VELT_ANNOTATION_EDIT_COMMENT: string;
274
+ VELT_DOCUMENT_ID: string;
274
275
  VELT_LOCATION: string;
275
276
  VELT_LOCATION_ID: string;
276
277
  VELT_THEME: string;
@@ -39,12 +39,11 @@ export declare const CommentEventTypes: {
39
39
  readonly ADD_REACTION: "addReaction";
40
40
  readonly DELETE_REACTION: "deleteReaction";
41
41
  readonly TOGGLE_REACTION: "toggleReaction";
42
- readonly COMMENT_SIDEBAR_INIT: "commentSidebarInit";
43
- readonly COMMENT_SIDEBAR_DATA: "commentSidebarData";
42
+ readonly COMMENT_SIDEBAR_DATA_INIT: "commentSidebarDataInit";
43
+ readonly COMMENT_SIDEBAR_DATA_UPDATE: "commentSidebarDataUpdate";
44
44
  };
45
45
  export declare const CoreEventTypes: {
46
- readonly CLICK_VELT_BUTTON: "clickVeltButton";
47
- readonly ACTIVE_VELT_BUTTON: "activeVeltButton";
46
+ readonly VELT_BUTTON_CLICK: "veltButtonClick";
48
47
  };
49
48
  export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
50
49
  export type CoreEventType = typeof CoreEventTypes[keyof typeof CoreEventTypes];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "3.0.255",
3
+ "version": "3.0.257",
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": [