@veltdev/types-dev 4.0.0-beta.109 → 4.0.0-beta.11

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.
@@ -27,7 +27,6 @@ import { ReactionElement } from "../models/element/reaction-element.model";
27
27
  import { VeltEventMetadata } from "../models/data/event-metadata.data.model";
28
28
  import { CoreEventTypesMap } from "../models/data/core-events.data.model";
29
29
  import { Document, SetDocumentsRequestOptions } from "../models/data/document.data.model";
30
- import { UserDataProvider } from "../models/data/user-resolver.data.model";
31
30
  export declare class Snippyly {
32
31
  constructor();
33
32
  initConfig: (apiKey: string, config?: Config) => void;
@@ -58,14 +57,6 @@ export declare class Snippyly {
58
57
  * To unset the document id
59
58
  */
60
59
  unsetDocumentId: () => void;
61
- /**
62
- * To unset the documents
63
- */
64
- unsetDocuments: () => void;
65
- /**
66
- * To set the user data provider.
67
- */
68
- setUserDataProvider: (userDataProvider: UserDataProvider) => void;
69
60
  /**
70
61
  * Get Document ID
71
62
  */
@@ -4,6 +4,4 @@ export declare class BaseMetadata {
4
4
  clientDocumentId?: string;
5
5
  organizationId?: string;
6
6
  clientOrganizationId?: string;
7
- folderId?: string;
8
- veltFolderId?: string;
9
7
  }
@@ -9,10 +9,8 @@ import { User } from "./user.data.model";
9
9
  export interface RequestOptions {
10
10
  organizationId?: string;
11
11
  documentId?: string;
12
- folderId?: string;
13
12
  filters?: any;
14
13
  documentIds?: string[];
15
- allDocuments?: boolean;
16
14
  }
17
15
  export interface UpdatePriorityRequest {
18
16
  annotationId: string;
@@ -65,9 +63,6 @@ export interface CommentRequestQuery {
65
63
  documentIds?: string[];
66
64
  locationIds?: string[];
67
65
  statusIds?: string[];
68
- folderId?: string;
69
- allDocuments?: boolean;
70
- locationId?: string;
71
66
  }
72
67
  export interface SubscribeCommentAnnotationRequest {
73
68
  annotationId: string;
@@ -166,16 +161,3 @@ export interface ToggleReactionRequest {
166
161
  };
167
162
  options?: RequestOptions;
168
163
  }
169
- export interface GetCommentAnnotationsRequest {
170
- createdAfter?: number;
171
- createdBefore?: number;
172
- updatedAfter?: number;
173
- updatedBefore?: number;
174
- statusIds?: string[];
175
- order?: 'asc' | 'desc';
176
- pageToken?: string;
177
- groupByDocumentId?: boolean;
178
- allDocuments?: boolean;
179
- pageSize?: number;
180
- options?: RequestOptions;
181
- }
@@ -77,7 +77,6 @@ export type CommentEventTypesMap = {
77
77
  [CommentEventTypes.TOGGLE_REACTION]: ToggleReactionEvent;
78
78
  [CommentEventTypes.COMMENT_SIDEBAR_DATA_INIT]: CommentSidebarDataInitEvent;
79
79
  [CommentEventTypes.COMMENT_SIDEBAR_DATA_UPDATE]: CommentSidebarDataUpdateEvent;
80
- [CommentEventTypes.AUTOCOMPLETE_SEARCH]: AutocompleteSearchEvent;
81
80
  };
82
81
  export interface AddAttachmentEvent {
83
82
  annotationId: string;
@@ -236,9 +235,3 @@ export interface CommentSidebarDataInitEvent extends VeltButtonClickEvent {
236
235
  }
237
236
  export interface CommentSidebarDataUpdateEvent extends VeltButtonClickEvent {
238
237
  }
239
- export interface AutocompleteSearchEvent {
240
- event: KeyboardEvent | InputEvent | Event;
241
- searchText: string;
242
- type?: 'contact' | 'custom' | 'group';
243
- metadata?: VeltEventMetadata;
244
- }
@@ -52,7 +52,6 @@ export declare class Config {
52
52
  }
53
53
  export interface ExtendedFirebaseOptions extends FirebaseOptions {
54
54
  storeDbId: string;
55
- region?: string;
56
55
  }
57
56
  export interface AdvancedQueries {
58
57
  advancedQueriesEnabled: boolean;
@@ -6,14 +6,6 @@ export declare class DocumentMetadata {
6
6
  * Unique document id generated from client document id
7
7
  */
8
8
  documentId?: string;
9
- /**
10
- * Folders
11
- */
12
- folderId?: string;
13
- /**
14
- * Velt folder id
15
- */
16
- veltFolderId?: string;
17
9
  /**
18
10
  * API key
19
11
  */
@@ -1,4 +1,3 @@
1
- import { RequestOptions } from "./comment-actions.data.model";
2
1
  import { DocumentMetadata } from "./document-metadata.model";
3
2
  export interface Document {
4
3
  id: string;
@@ -6,19 +5,4 @@ export interface Document {
6
5
  }
7
6
  export interface SetDocumentsRequestOptions {
8
7
  organizationId?: string;
9
- folderId?: string;
10
- allDocuments?: boolean;
11
- locationId?: string;
12
- }
13
- export interface GetDocumentsRequest {
14
- options?: RequestOptions;
15
- }
16
- export interface GetFoldersRequest {
17
- options?: RequestOptions;
18
- }
19
- export interface FolderConfig {
20
- folderId?: string;
21
- allDocuments?: boolean;
22
- locationId?: string;
23
- veltFolderId?: string;
24
8
  }
@@ -88,11 +88,6 @@ export declare class NotificationRawData {
88
88
  [key: string]: any;
89
89
  };
90
90
  displayBodyMessage?: string;
91
- displayBodyMessageTemplate?: string;
92
- displayBodyMessageTemplateData?: {
93
- users?: User[];
94
- [key: string]: any;
95
- };
96
91
  customData?: any;
97
92
  notifyUsers?: {
98
93
  [email: string]: boolean;
@@ -132,17 +127,6 @@ export declare class Notification {
132
127
  * Notification body message
133
128
  */
134
129
  displayBodyMessage?: string;
135
- /**
136
- * Display body message template
137
- */
138
- displayBodyMessageTemplate?: string;
139
- /**
140
- * Display body message template data
141
- */
142
- displayBodyMessageTemplateData?: {
143
- users?: User[];
144
- [key: string]: any;
145
- };
146
130
  /**
147
131
  * Display message template
148
132
  */
@@ -164,10 +164,4 @@ export declare class RecorderData {
164
164
  assets: RecorderDataAsset[];
165
165
  transcription: RecorderDataTranscription;
166
166
  }
167
- export interface RecorderRequestQuery {
168
- recorderIds: string[];
169
- }
170
- export interface GetRecordingDataResponse {
171
- data: Record<string, RecorderData> | null;
172
- }
173
167
  export {};
@@ -1073,16 +1073,6 @@ export declare class CommentElement {
1073
1073
  */
1074
1074
  public disableReadOnly: () => void;
1075
1075
 
1076
- /**
1077
- * To enable custom autocomplete search
1078
- */
1079
- public enableCustomAutocompleteSearch: () => void;
1080
-
1081
- /**
1082
- * To disable custom autocomplete search
1083
- */
1084
- public disableCustomAutocompleteSearch: () => void;
1085
-
1086
1076
  constructor();
1087
1077
  /**
1088
1078
  * Subscribe to comments on the current document.
@@ -2137,14 +2127,4 @@ export declare class CommentElement {
2137
2127
  * To disable read only
2138
2128
  */
2139
2129
  private _disableReadOnly;
2140
-
2141
- /**
2142
- * To enable custom autocomplete search
2143
- */
2144
- private _enableCustomAutocompleteSearch;
2145
-
2146
- /**
2147
- * To disable custom autocomplete search
2148
- */
2149
- private _disableCustomAutocompleteSearch;
2150
2130
  }
@@ -1,7 +1,6 @@
1
1
  // @ts-nocheck
2
2
  import { Observable } from "rxjs";
3
- import { RecorderData, RecorderRequestQuery, GetRecordingDataResponse } from "../data/recorder-annotation.data.model";
4
- import { RecorderEventTypesMap } from "../data/recorder-events.data.model";
3
+ import { RecorderData } from "../data/recorder-annotation.data.model";
5
4
 
6
5
  export declare class RecorderElement {
7
6
 
@@ -34,16 +33,6 @@ export declare class RecorderElement {
34
33
  */
35
34
  disableRecordingTranscription: () => void;
36
35
 
37
- /**
38
- * Subscribe to recorder actions
39
- */
40
- public on: <T extends keyof RecorderEventTypesMap>(action: T) => Observable<RecorderEventTypesMap[T]>;
41
-
42
- /**
43
- * To get recording data by recorder ids
44
- */
45
- getRecordingData: (query: RecorderRequestQuery) => Promise<GetRecordingDataResponse>;
46
-
47
36
  constructor();
48
37
 
49
38
  private _initRecording;
@@ -74,14 +63,4 @@ export declare class RecorderElement {
74
63
  * To disable recording transcription
75
64
  */
76
65
  private _disableRecordingTranscription;
77
-
78
- /**
79
- * Subscribe to recorder actions
80
- */
81
- private _on;
82
-
83
- /**
84
- * To get recording data by recorder ids
85
- */
86
- private _getRecordingData;
87
66
  }
@@ -8,9 +8,7 @@ export declare class Constants {
8
8
  static LOCALSTORAGE_DATA_ID: string;
9
9
  static NO_ORGANIZATION_ID: string;
10
10
  static DEFAULT_QUERY_HASH: string;
11
- static LISTENER_BATCH_SIZE: number;
12
11
  static FIREBASE_PARTIAL_PATH_ORGANIZATIONS: string;
13
- static FIREBASE_PARTIAL_PATH_FOLDERS: string;
14
12
  static FIREBASE_PARTIAL_PATH_DOCS: string;
15
13
  static FIREBASE_PARTIAL_PATH_PRESENCE: string;
16
14
  static FIREBASE_PARTIAL_PATH_ORGANIZATION_USERS: string;
@@ -244,8 +242,8 @@ export declare class Constants {
244
242
  VELT_COMMENT_DIALOG_BODY_THREAD_CARD: string;
245
243
  VELT_COMMENT_DIALOG_PRIVATE_BANNER: string;
246
244
  VELT_COMMENT_COMPOSER: string;
247
- VELT_SKELETON_LOADER: string;
248
245
  VELT_SHADOW_DOM_INTERNAL: string;
246
+ VELT_OVERLAY: string;
249
247
  };
250
248
  static ATTRIBUTES: {
251
249
  VELT_TARGET_COMMENT_ELEMENT_ID: string;
@@ -255,7 +253,6 @@ export declare class Constants {
255
253
  TARGET_ELEMENT_ID: string;
256
254
  VELT_ID: string;
257
255
  VELT_ELEMENT: string;
258
- VELT_SCREEN_RECORDER_PANEL: string;
259
256
  VELT_SOURCE_ID: string;
260
257
  VELT_ANNOTATION_ID: string;
261
258
  VELT_ANNOTATION_IDS: string;
@@ -41,16 +41,11 @@ export declare const CommentEventTypes: {
41
41
  readonly TOGGLE_REACTION: "toggleReaction";
42
42
  readonly COMMENT_SIDEBAR_DATA_INIT: "commentSidebarDataInit";
43
43
  readonly COMMENT_SIDEBAR_DATA_UPDATE: "commentSidebarDataUpdate";
44
- readonly AUTOCOMPLETE_SEARCH: "autocompleteSearch";
45
- };
46
- export declare const RecorderEventTypes: {
47
- readonly TRANSCRIPTION_DONE: "transcriptionDone";
48
44
  };
49
45
  export declare const CoreEventTypes: {
50
46
  readonly VELT_BUTTON_CLICK: "veltButtonClick";
51
47
  };
52
48
  export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
53
- export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
54
49
  export type CoreEventType = typeof CoreEventTypes[keyof typeof CoreEventTypes];
55
50
  export declare enum TagStatus {
56
51
  ADDED = "added",
package/models.d.ts CHANGED
@@ -1,7 +1,6 @@
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/arrow-annotation.data.model';
5
4
  export * from './app/models/data/base-metadata.data.model';
6
5
  export * from './app/models/data/button.data.model';
7
6
  export * from './app/models/data/chatgpt.data.model';
@@ -29,14 +28,12 @@ export * from './app/models/data/localstorage.data.model';
29
28
  export * from './app/models/data/location-metadata.model';
30
29
  export * from './app/models/data/location.model';
31
30
  export * from './app/models/data/media-preview-config.data.model';
32
- export * from './app/models/data/multi-thread.data.model';
33
31
  export * from './app/models/data/notification.model';
34
32
  export * from './app/models/data/page-info.model';
35
33
  export * from './app/models/data/permission.data.model';
36
34
  export * from './app/models/data/presence-user.data.model';
37
35
  export * from './app/models/data/recorder.model';
38
36
  export * from './app/models/data/recorder-annotation.data.model';
39
- export * from './app/models/data/recorder-events.data.model';
40
37
  export * from './app/models/data/rewriter-annotation.data.model';
41
38
  export * from './app/models/data/screen-size.data.model';
42
39
  export * from './app/models/data/selection.model';
@@ -65,4 +62,3 @@ export * from './app/models/data/organization-groups.data.model';
65
62
  export * from './app/models/data/organization-metadata.model';
66
63
  export * from './app/models/data/user-organization.data.model';
67
64
  export * from './app/models/data/event-metadata.data.model';
68
- export * from './app/models/data/user-resolver.data.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "4.0.0-beta.109",
3
+ "version": "4.0.0-beta.11",
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": [
@@ -1,51 +0,0 @@
1
- import { AnnotationProperty } from "./annotation-property.data.model";
2
- import { CursorPosition } from "./cursor-position.data.model";
3
- import { Location } from "./location.model";
4
- import { PageInfo } from "./page-info.model";
5
- import { TargetElement } from "./target-element.data.model";
6
- import { User } from "./user.data.model";
7
- export declare class ArrowAnnotation {
8
- /**
9
- * Unique identifier for the arrow pin annotation.
10
- *
11
- * Auto generated.
12
- */
13
- annotationId: string;
14
- /**
15
- * The user who created this arrow pin annotation.
16
- *
17
- */
18
- from: User;
19
- /**
20
- * Color used for the arrow pin annotation.
21
- *
22
- */
23
- color?: string;
24
- /**
25
- * Timestamp when the arrow annotation was last updated.
26
- *
27
- * Auto generated.
28
- */
29
- lastUpdated?: any;
30
- /**
31
- * Target element of attached annotation.
32
- */
33
- targetElement?: TargetElement | null;
34
- position?: CursorPosition | null;
35
- /**
36
- * Unique location id generated from provided location
37
- */
38
- locationId?: number | null;
39
- /**
40
- * Set location to identify user on sub document
41
- */
42
- location?: Location | null;
43
- type?: string;
44
- props: AnnotationProperty;
45
- /**
46
- * To maintain index of current annotation in available list of annotations
47
- * It will start from 1, so no need to add 1 in that.
48
- */
49
- annotationIndex?: number;
50
- pageInfo?: PageInfo;
51
- }
@@ -1,61 +0,0 @@
1
- import { BaseMetadata } from "./base-metadata.data.model";
2
- import { CommentAnnotation, GhostComment, InlineCommentSectionConfig } from "./comment-annotation.data.model";
3
- import { CursorPosition } from "./cursor-position.data.model";
4
- import { Location } from "./location.model";
5
- import { TargetElement } from "./target-element.data.model";
6
- import { TargetTextRange } from "./target-text-range.data.model";
7
- import { User } from "./user.data.model";
8
- export declare class MultiThreadCommentAnnotation {
9
- /**
10
- * The id of the annotation.
11
- */
12
- annotationId: string;
13
- /**
14
- * The id of the area annotation.
15
- */
16
- areaAnnotationId?: string;
17
- /**
18
- * The target element of the annotation.
19
- */
20
- targetElement?: TargetElement | null;
21
- /**
22
- * The id of the target element.
23
- */
24
- targetElementId?: string | null;
25
- /**
26
- * Selected text range of comment annotation
27
- */
28
- targetTextRange?: TargetTextRange | null;
29
- /**
30
- * The id of the target inline comment element.
31
- */
32
- targetInlineCommentElementId?: string;
33
- /**
34
- * The inline comment section config.
35
- */
36
- inlineCommentSectionConfig?: InlineCommentSectionConfig;
37
- commentAnnotations?: {
38
- [commentAnnotationId: string]: boolean;
39
- };
40
- commentAnnotationsMap?: {
41
- [commentAnnotationId: string]: CommentAnnotation;
42
- };
43
- /**
44
- * Unique location id generated from provided location
45
- */
46
- locationId?: number | null;
47
- /**
48
- * Set location to identify user on sub document
49
- */
50
- location?: Location | null;
51
- position?: CursorPosition | null;
52
- ghostComment?: GhostComment | null;
53
- from: User;
54
- type: string;
55
- isDraft?: boolean;
56
- sourceId?: string;
57
- metadata?: MultiThreadMetadata;
58
- }
59
- export declare class MultiThreadMetadata extends BaseMetadata {
60
- [key: string]: any;
61
- }
@@ -1,16 +0,0 @@
1
- import { RecorderEventTypes } from "../../utils/enums";
2
- export interface TranscriptionDoneEvent {
3
- transcription: string;
4
- id?: string;
5
- tag?: string;
6
- type?: string;
7
- thumbnailUrl?: string;
8
- thumbnailWithPlayIconUrl?: string;
9
- videoUrl?: string;
10
- audioUrl?: string;
11
- videoPlayerUrl?: string;
12
- getThumbnailTag?: (url?: string) => string;
13
- }
14
- export type RecorderEventTypesMap = {
15
- [RecorderEventTypes.TRANSCRIPTION_DONE]: TranscriptionDoneEvent;
16
- };
@@ -1,5 +0,0 @@
1
- import { User } from "./user.data.model";
2
- export interface UserDataProvider {
3
- getUsers(userIds: string[]): Promise<Record<string, User>>;
4
- resolveTimeout?: number;
5
- }