@veltdev/sdk 3.0.74 → 3.0.75

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.
@@ -1,4 +1,5 @@
1
1
  import { AnnotationProperty } from "./annotation-property.data.model";
2
+ import { BaseMetadata } from "./base-metadata.data.model";
2
3
  import { CursorPosition } from "./cursor-position.data.model";
3
4
  import { Location } from "./location.model";
4
5
  import { PageInfo } from "./page-info.model";
@@ -51,6 +52,10 @@ export declare class AreaAnnotation {
51
52
  pageInfo?: PageInfo;
52
53
  areaProperties?: AreaProperty;
53
54
  targetAnnotations: AreaTargetAnnotation[];
55
+ metadata?: AreaMetadata;
56
+ }
57
+ export declare class AreaMetadata extends BaseMetadata {
58
+ [key: string]: any;
54
59
  }
55
60
  export declare class AreaTargetAnnotation {
56
61
  /**
@@ -0,0 +1,6 @@
1
+ export declare class BaseMetadata {
2
+ documentId?: string;
3
+ clientDocumentId?: string;
4
+ organizationId?: string;
5
+ clientOrganizationId?: string;
6
+ }
@@ -9,6 +9,7 @@ import { User } from "./user.data.model";
9
9
  export interface RequestOptions {
10
10
  organizationId?: string;
11
11
  documentId?: string;
12
+ filters?: any;
12
13
  }
13
14
  export interface UpdatePriorityRequest {
14
15
  annotationId: string;
@@ -57,6 +58,9 @@ export interface DeleteCommentAnnotationRequest {
57
58
  annotationId: string;
58
59
  options?: RequestOptions;
59
60
  }
61
+ export interface GetCommentAnnotationRequest {
62
+ options?: RequestOptions;
63
+ }
60
64
  export interface SubscribeCommentAnnotationRequest {
61
65
  annotationId: string;
62
66
  options?: RequestOptions;
@@ -1,13 +1,14 @@
1
1
  import { CommentAccessMode } from "../../utils/enums";
2
+ import { BaseMetadata } from "./base-metadata.data.model";
2
3
  import { Comment } from "./comment.data.model";
3
4
  import { CursorPosition } from "./cursor-position.data.model";
5
+ import { CustomAnnotationDropdownItem } from "./custom-chip-dropdown.data.model";
4
6
  import { CustomCategory, CustomPriority, CustomStatus } from "./custom-filter.data.model";
5
7
  import { Location } from "./location.model";
6
8
  import { PageInfo } from "./page-info.model";
7
9
  import { TargetElement } from "./target-element.data.model";
8
10
  import { TargetTextRange } from "./target-text-range.data.model";
9
11
  import { User } from "./user.data.model";
10
- import { CustomAnnotationDropdownItem } from "./custom-chip-dropdown.data.model";
11
12
  export declare class CommentAnnotation {
12
13
  /**
13
14
  * Unique identifier for the comment pin annotation.
@@ -208,7 +209,7 @@ export declare class CommentOnElementConfig {
208
209
  export declare class CommentIAMConfig {
209
210
  accessMode?: CommentAccessMode;
210
211
  }
211
- export declare class CommentMetadata {
212
+ export declare class CommentMetadata extends BaseMetadata {
212
213
  [key: string]: any;
213
214
  }
214
215
  export declare class CommentSelectionChangeData {
@@ -123,6 +123,10 @@ export interface DeleteCommentAnnotationEvent {
123
123
  commentAnnotation: CommentAnnotation;
124
124
  metadata: VeltEventMetadata;
125
125
  }
126
+ export interface GetCommentAnnotationEvent {
127
+ commentAnnotations: CommentAnnotation[];
128
+ metadata: VeltEventMetadata;
129
+ }
126
130
  export interface SubscribeCommentAnnotationEvent {
127
131
  annotationId: string;
128
132
  commentAnnotation: CommentAnnotation;
@@ -1,3 +1,4 @@
1
+ import { BaseMetadata } from "./base-metadata.data.model";
1
2
  import { CursorPosition } from "./cursor-position.data.model";
2
3
  import { Location } from "./location.model";
3
4
  import { PageInfo } from "./page-info.model";
@@ -50,6 +51,10 @@ export declare class ReactionAnnotation {
50
51
  icon?: string;
51
52
  iconUrl?: string;
52
53
  iconEmoji?: string;
54
+ metadata?: ReactionMetadata;
55
+ }
56
+ export declare class ReactionMetadata extends BaseMetadata {
57
+ [key: string]: any;
53
58
  }
54
59
  export declare class ReactionMap {
55
60
  [reactionId: string]: ReactionItem;
@@ -1,4 +1,5 @@
1
1
  import { Attachment } from "./attachment.model";
2
+ import { BaseMetadata } from "./base-metadata.data.model";
2
3
  import { CursorPosition } from "./cursor-position.data.model";
3
4
  import { Location } from "./location.model";
4
5
  import { PageInfo } from "./page-info.model";
@@ -125,6 +126,10 @@ export declare class RecorderAnnotation {
125
126
  * Display name for the annotation
126
127
  */
127
128
  displayName?: string;
129
+ metadata?: RecorderMetadata;
130
+ }
131
+ export declare class RecorderMetadata extends BaseMetadata {
132
+ [key: string]: any;
128
133
  }
129
134
  declare class RecorderDataTranscriptSegment {
130
135
  startTime: string;
@@ -6,6 +6,8 @@ export declare class Constants {
6
6
  static USER_TYPE_ANONYMOUS: string;
7
7
  static USER_TYPE_SIGNED_IN: string;
8
8
  static LOCALSTORAGE_DATA_ID: string;
9
+ static NO_ORGANIZATION_ID: string;
10
+ static DEFAULT_QUERY_HASH: string;
9
11
  static FIREBASE_PARTIAL_PATH_ORGANIZATIONS: string;
10
12
  static FIREBASE_PARTIAL_PATH_DOCS: string;
11
13
  static FIREBASE_PARTIAL_PATH_PRESENCE: string;
package/models.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './app/utils/enums';
2
2
  export * from './app/models/data/attachment.model';
3
3
  export * from './app/models/data/area-annotation.data.model';
4
+ export * from './app/models/data/base-metadata.data.model';
4
5
  export * from './app/models/data/chatgpt.data.model';
5
6
  export * from './app/models/data/comment-annotation.data.model';
6
7
  export * from './app/models/data/comment-events.data.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "3.0.74",
3
+ "version": "3.0.75",
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": [