@veltdev/types-dev 4.5.0-beta.99 → 4.5.2-beta.10

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.
Files changed (31) hide show
  1. package/app/client/snippyly.model.d.ts +23 -2
  2. package/app/models/data/autocomplete.data.model.d.ts +6 -0
  3. package/app/models/data/comment-actions.data.model.d.ts +7 -0
  4. package/app/models/data/comment-annotation.data.model.d.ts +3 -0
  5. package/app/models/data/comment-events.data.model.d.ts +5 -0
  6. package/app/models/data/comment-resolver.data.model.d.ts +19 -0
  7. package/app/models/data/comment-sidebar-config.model.d.ts +6 -0
  8. package/app/models/data/comment.data.model.d.ts +1 -0
  9. package/app/models/data/core-events.data.model.d.ts +2 -0
  10. package/app/models/data/crdt.data.model.d.ts +59 -0
  11. package/app/models/data/document-paths.data.model.d.ts +5 -0
  12. package/app/models/data/encryption-provider.data.model.d.ts +12 -0
  13. package/app/models/data/live-state-data.data.model.d.ts +18 -0
  14. package/app/models/data/media-preview-config.data.model.d.ts +2 -0
  15. package/app/models/data/notification.model.d.ts +3 -0
  16. package/app/models/data/reaction-resolver.data.model.d.ts +4 -2
  17. package/app/models/data/recorder-events.data.model.d.ts +19 -0
  18. package/app/models/data/recorder.model.d.ts +4 -0
  19. package/app/models/data/resolver.data.model.d.ts +1 -0
  20. package/app/models/data/user-iam.data.model.d.ts +6 -0
  21. package/app/models/data/user.data.model.d.ts +10 -0
  22. package/app/models/element/comment-element.model.d.ts +83 -13
  23. package/app/models/element/crdt-element.model.d.ts +166 -0
  24. package/app/models/element/live-state-sync-element.model.d.ts +13 -3
  25. package/app/models/element/notification-element.model.d.ts +43 -3
  26. package/app/models/element/recorder-element.model.d.ts +239 -169
  27. package/app/utils/constants.d.ts +45 -1
  28. package/app/utils/enums.d.ts +10 -2
  29. package/models.d.ts +2 -0
  30. package/package.json +1 -1
  31. package/types.d.ts +1 -0
@@ -2,175 +2,245 @@
2
2
  import { Observable } from "rxjs";
3
3
  import { RecorderData, RecorderRequestQuery, GetRecordingDataResponse, GetRecordingsResponse, DeleteRecordingsResponse } from "../data/recorder-annotation.data.model";
4
4
  import { RecorderEventTypesMap } from "../data/recorder-events.data.model";
5
- import { RecordedData, RecorderQualityConstraints, RecorderEncodingOptions } from "../data/recorder.model";
5
+ import { RecordedData, RecorderQualityConstraints, RecorderEncodingOptions, RecorderDevicePermissionOptions } from "../data/recorder.model";
6
6
 
7
7
  export declare class RecorderElement {
8
8
 
9
- initRecording: (type: string, panelId?: string) => any;
10
-
11
- /**
12
- * @deprecated Use on('recordingDone') method instead
13
- */
14
- onRecordedData: () => Observable<RecordedData | null>;
15
-
16
- /**
17
- * To enable recording countdown
18
- */
19
- enableRecordingCountdown: () => void;
20
-
21
- /**
22
- * To disable recording countdown
23
- */
24
- disableRecordingCountdown: () => void;
25
-
26
- /**
27
- * To get recording data by recorder id
28
- * @deprecated Use getRecordingData() method instead
29
- */
30
- getRecordingDataByRecorderId: (recorderId: string) => Observable<RecorderData | null>;
31
-
32
- /**
33
- * To enable recording transcription
34
- */
35
- enableRecordingTranscription: () => void;
36
-
37
- /**
38
- * To disable recording transcription
39
- */
40
- disableRecordingTranscription: () => void;
41
-
42
- /**
43
- * Subscribe to recorder actions
44
- */
45
- public on: <T extends keyof RecorderEventTypesMap>(action: T) => Observable<RecorderEventTypesMap[T]>;
46
-
47
- /**
48
- * @deprecated Use fetchRecordings() method instead
49
- */
50
- getRecordingData: (query: RecorderRequestQuery) => Promise<GetRecordingDataResponse>;
51
-
52
- /**
53
- * To enable video editor
54
- */
55
- enableVideoEditor: () => void;
56
-
57
- /**
58
- * To disable video editor
59
- */
60
- disableVideoEditor: () => void;
61
-
62
- /**
63
- * To get recordings
64
- */
65
- getRecordings: (query?: RecorderRequestQuery) => Observable<GetRecordingsResponse[]>;
66
-
67
- /**
68
- * To fetch recordings
69
- */
70
- fetchRecordings: (query?: RecorderRequestQuery) => Promise<GetRecordingsResponse[]>;
71
-
72
- /**
73
- * To delete recordings
74
- */
75
- deleteRecordings: (query?: RecorderRequestQuery) => Promise<DeleteRecordingsResponse[]>;
76
-
77
- /**
78
- * To set recording quality constraints
79
- */
80
- setRecordingQualityConstraints: (constraints: RecorderQualityConstraints) => void;
81
-
82
- /**
83
- * To set recording encoding options
84
- */
85
- setRecordingEncodingOptions: (options: RecorderEncodingOptions) => void;
86
-
87
- /**
88
- * To download latest video
89
- */
90
- downloadLatestVideo: (recorderId: string) => Promise<boolean>;
91
-
92
- constructor();
93
-
94
- private _initRecording;
95
-
96
- /**
97
- * @deprecated Use on('recordingDone') method instead
98
- */
99
- private _onRecordedData;
100
-
101
- /**
102
- * To enable dark mode in comments
103
- */
104
- private _enableRecordingCountdown;
105
-
106
- /**
107
- * To disable dark mode in comments
108
- */
109
- private _disableRecordingCountdown;
110
-
111
- /**
112
- * To get recording data by recorder id
113
- * @deprecated Use getRecordingData() method instead
114
- */
115
- private _getRecordingDataByRecorderId;
116
-
117
- /**
118
- * To enable recording transcription
119
- */
120
- private _enableRecordingTranscription;
121
-
122
- /**
123
- * To disable recording transcription
124
- */
125
- private _disableRecordingTranscription;
126
-
127
- /**
128
- * Subscribe to recorder actions
129
- */
130
- private _on;
131
-
132
- /**
133
- * To get recording data by recorder ids
134
- */
135
- private _getRecordingData;
136
-
137
- /**
138
- * To enable video editor
139
- */
140
- private _enableVideoEditor;
141
-
142
- /**
143
- * To disable video editor
144
- */
145
- private _disableVideoEditor;
146
-
147
- /**
148
- * To get recordings
149
- */
150
- private _getRecordings;
151
-
152
- /**
153
- * To fetch recordings
154
- */
155
- private _fetchRecordings;
156
-
157
- /**
158
- * To delete recordings
159
- */
160
- private _deleteRecordings;
161
-
162
- /**
163
- * To set recording quality constraints
164
- */
165
- private _setRecordingQualityConstraints;
166
-
167
- /**
168
- * To set recording encoding options
169
- */
170
- private _setRecordingEncodingOptions;
171
-
172
- /**
173
- * To download latest video
174
- */
175
- private _downloadLatestVideo;
176
- }
9
+ initRecording: (type: string, panelId?: string) => any;
10
+
11
+ /**
12
+ * @deprecated Use on('recordingDone') method instead
13
+ */
14
+ onRecordedData: () => Observable<RecordedData | null>;
15
+
16
+ /**
17
+ * To enable recording countdown
18
+ */
19
+ enableRecordingCountdown: () => void;
20
+
21
+ /**
22
+ * To disable recording countdown
23
+ */
24
+ disableRecordingCountdown: () => void;
25
+
26
+ /**
27
+ * To get recording data by recorder id
28
+ * @deprecated Use getRecordingData() method instead
29
+ */
30
+ getRecordingDataByRecorderId: (recorderId: string) => Observable<RecorderData | null>;
31
+
32
+ /**
33
+ * To enable recording transcription
34
+ */
35
+ enableRecordingTranscription: () => void;
36
+
37
+ /**
38
+ * To disable recording transcription
39
+ */
40
+ disableRecordingTranscription: () => void;
41
+
42
+ /**
43
+ * Subscribe to recorder actions
44
+ */
45
+ public on: <T extends keyof RecorderEventTypesMap>(action: T) => Observable<RecorderEventTypesMap[T]>;
46
+
47
+ /**
48
+ * @deprecated Use fetchRecordings() method instead
49
+ */
50
+ getRecordingData: (query: RecorderRequestQuery) => Promise<GetRecordingDataResponse>;
51
+
52
+ /**
53
+ * To enable video editor
54
+ */
55
+ enableVideoEditor: () => void;
56
+
57
+ /**
58
+ * To disable video editor
59
+ */
60
+ disableVideoEditor: () => void;
61
+
62
+ /**
63
+ * To get recordings
64
+ */
65
+ getRecordings: (query?: RecorderRequestQuery) => Observable<GetRecordingsResponse[]>;
66
+
67
+ /**
68
+ * To fetch recordings
69
+ */
70
+ fetchRecordings: (query?: RecorderRequestQuery) => Promise<GetRecordingsResponse[]>;
71
+
72
+ /**
73
+ * To delete recordings
74
+ */
75
+ deleteRecordings: (query?: RecorderRequestQuery) => Promise<DeleteRecordingsResponse[]>;
76
+
77
+ /**
78
+ * To set recording quality constraints
79
+ */
80
+ setRecordingQualityConstraints: (constraints: RecorderQualityConstraints) => void;
81
+
82
+ /**
83
+ * To set recording encoding options
84
+ */
85
+ setRecordingEncodingOptions: (options: RecorderEncodingOptions) => void;
86
+
87
+ /**
88
+ * To download latest video
89
+ */
90
+ downloadLatestVideo: (recorderId: string) => Promise<boolean>;
91
+
92
+ /**
93
+ * To enable recording mic
94
+ */
95
+ enableRecordingMic: () => void;
96
+
97
+ /**
98
+ * To disable recording mic
99
+ */
100
+ disableRecordingMic: () => void;
101
+
102
+ /**
103
+ * To enable onboarding tooltip
104
+ */
105
+ enableOnboardingTooltip: () => void;
106
+
107
+ /**
108
+ * To disable onboarding tooltip
109
+ */
110
+ disableOnboardingTooltip: () => void;
111
+
112
+ /**
113
+ * To enable retake on video editor
114
+ */
115
+ enableRetakeOnVideoEditor: () => void;
116
+
117
+ /**
118
+ * To disable retake on video editor
119
+ */
120
+ disableRetakeOnVideoEditor: () => void;
121
+
122
+ /**
123
+ * To ask device permission
124
+ */
125
+ askDevicePermission: (options: RecorderDevicePermissionOptions) => void;
126
+
127
+ constructor();
128
+
129
+ private _initRecording;
130
+
131
+ /**
132
+ * @deprecated Use on('recordingDone') method instead
133
+ */
134
+ private _onRecordedData;
135
+
136
+ /**
137
+ * To enable dark mode in comments
138
+ */
139
+ private _enableRecordingCountdown;
140
+
141
+ /**
142
+ * To disable dark mode in comments
143
+ */
144
+ private _disableRecordingCountdown;
145
+
146
+ /**
147
+ * To get recording data by recorder id
148
+ * @deprecated Use getRecordingData() method instead
149
+ */
150
+ private _getRecordingDataByRecorderId;
151
+
152
+ /**
153
+ * To enable recording transcription
154
+ */
155
+ private _enableRecordingTranscription;
156
+
157
+ /**
158
+ * To disable recording transcription
159
+ */
160
+ private _disableRecordingTranscription;
161
+
162
+ /**
163
+ * Subscribe to recorder actions
164
+ */
165
+ private _on;
166
+
167
+ /**
168
+ * To get recording data by recorder ids
169
+ */
170
+ private _getRecordingData;
171
+
172
+ /**
173
+ * To enable video editor
174
+ */
175
+ private _enableVideoEditor;
176
+
177
+ /**
178
+ * To disable video editor
179
+ */
180
+ private _disableVideoEditor;
181
+
182
+ /**
183
+ * To get recordings
184
+ */
185
+ private _getRecordings;
186
+
187
+ /**
188
+ * To fetch recordings
189
+ */
190
+ private _fetchRecordings;
191
+
192
+ /**
193
+ * To delete recordings
194
+ */
195
+ private _deleteRecordings;
196
+
197
+ /**
198
+ * To set recording quality constraints
199
+ */
200
+ private _setRecordingQualityConstraints;
201
+
202
+ /**
203
+ * To set recording encoding options
204
+ */
205
+ private _setRecordingEncodingOptions;
206
+
207
+ /**
208
+ * To download latest video
209
+ */
210
+ private _downloadLatestVideo;
211
+
212
+ /**
213
+ * To enable recording mic
214
+ */
215
+ private _enableRecordingMic;
216
+
217
+ /**
218
+ * To disable recording mic
219
+ */
220
+ private _disableRecordingMic;
221
+
222
+ /**
223
+ * To enable onboarding tooltip
224
+ */
225
+ private _enableOnboardingTooltip;
226
+
227
+ /**
228
+ * To disable onboarding tooltip
229
+ */
230
+ private _disableOnboardingTooltip;
231
+
232
+ /**
233
+ * To enable retake on video editor
234
+ */
235
+ private _enableRetakeOnVideoEditor;
236
+
237
+ /**
238
+ * To disable retake on video editor
239
+ */
240
+ private _disableRetakeOnVideoEditor;
241
+
242
+ /**
243
+ * To ask device permission
244
+ */
245
+ private _askDevicePermission;
246
+ }
@@ -15,6 +15,7 @@ export declare class Constants {
15
15
  static FIREBASE_PARTIAL_PATH_DOCUMENT_CONFIGURATIONS: string;
16
16
  static FIREBASE_PARTIAL_PATH_PRESENCE: string;
17
17
  static FIREBASE_PARTIAL_PATH_ORGANIZATION_USERS: string;
18
+ static FIREBASE_PARTIAL_PATH_CENTRAL_USERS: string;
18
19
  static FIREBASE_PARTIAL_PATH_FOLDER_USERS: string;
19
20
  static FIREBASE_PARTIAL_PATH_DOCUMENT_USERS: string;
20
21
  static FIREBASE_PARTIAL_PATH_CURSOR: string;
@@ -45,8 +46,8 @@ export declare class Constants {
45
46
  static FIREBASE_PARTIAL_PATH_LIVE_STATE: string;
46
47
  static FIREBASE_PARTIAL_PATH_IAM: string;
47
48
  static FIREBASE_PARTIAL_PATH_REACTION: string;
49
+ static FIREBASE_PARTIAL_PATH_CRDT: string;
48
50
  static FIREBASE_PARTIAL_PATH_VIEWS: string;
49
- static FIREBASE_PARTIAL_PATH_COMMENT_VIEWS: string;
50
51
  static FIREBASE_PARTIAL_PATH_NOTIFICATION_VIEWS: string;
51
52
  static FIREBASE_PARTIAL_PATH_DOCUMENT_VIEWS: string;
52
53
  static FIREBASE_PARTIAL_PATH_LOCATION_VIEWS: string;
@@ -54,6 +55,7 @@ export declare class Constants {
54
55
  static FIREBASE_PARTIAL_PATH_ORGANIZATION_NOTIFICATIONS: string;
55
56
  static FIREBASE_PARTIAL_PATH_LAST_NOTIFICATION_TIMESTAMP: string;
56
57
  static FIREBASE_PARTIAL_PATH_USERS: string;
58
+ static FIREBASE_PARTIAL_PATH_PERMISSIONS_USERS: string;
57
59
  static FIREBASE_PARTIAL_PATH_USER_REQUESTS: string;
58
60
  static FIREBASE_PARTIAL_PATH_FEEDBACK: string;
59
61
  static FIREBASE_PARTIAL_PATH_BUGS: string;
@@ -194,6 +196,7 @@ export declare class Constants {
194
196
  VELT_RECORDER_CONTROL_PANEL: string;
195
197
  VELT_RECORDER_CONTROL_PANEL_INTERNAL: string;
196
198
  VELT_RECORDER_PLAYER: string;
199
+ VELT_VIDEO_EDITOR: string;
197
200
  VELT_TEXT_HIGHLIGHT: string;
198
201
  VELT_COMMENT_TEXT_PORTAL: string;
199
202
  VELT_COMMENTS_SIDEBAR: string;
@@ -364,6 +367,7 @@ export declare class Constants {
364
367
  VELT_USER_FORCE_RE_LOGGED_IN: string;
365
368
  VELT_VERSION: string;
366
369
  VELT_ADVANCED_QUERIES: string;
370
+ VELT_COMMENT_VIEWS_MIGRATED: string;
367
371
  };
368
372
  static NON_NESTABLE_ELEMENTS: {
369
373
  [tag: string]: boolean;
@@ -458,4 +462,44 @@ export declare class Constants {
458
462
  overlayX: any;
459
463
  overlayY: any;
460
464
  }[];
465
+ static VIDEO_EDITOR: {
466
+ ZOOM_IN_DURATION: number;
467
+ ZOOM_OUT_DURATION: number;
468
+ DEFAULT_ZOOM_FACTOR: number;
469
+ MAX_ZOOM_FACTOR: number;
470
+ ZOOM_FACTOR_OPTIONS: {
471
+ value: number;
472
+ label: string;
473
+ }[];
474
+ MIN_DRAG_AREA_MULTIPLIER: number;
475
+ PREFERRED_SECTION_DURATION_MULTIPLIER: number;
476
+ SELECTION_MIN_DRAG_DISTANCE: number;
477
+ MIN_DURATION_THRESHOLD: number;
478
+ TIME_BUFFER: number;
479
+ SHORT_VIDEO_THRESHOLD: number;
480
+ SMALL_VIDEO_THRESHOLD: number;
481
+ MILLISECOND_PRECISION_MULTIPLIER: number;
482
+ TENTH_SECOND_PRECISION_MULTIPLIER: number;
483
+ DEBOUNCE_DELAY: number;
484
+ DECIMAL_PRECISION: number;
485
+ MAX_MARKER_COUNT: number;
486
+ MARKER_INTERVAL: number;
487
+ FAST_TIMEOUT: number;
488
+ STANDARD_TIMEOUT: number;
489
+ RECTANGLE_POSITIONING: {
490
+ FULL_PERCENT: number;
491
+ HALF_PERCENT: number;
492
+ QUARTER_PERCENT: number;
493
+ };
494
+ EASING: {
495
+ QUAD_IN_OUT_MULTIPLIER: number;
496
+ QUAD_IN_OUT_POWER: number;
497
+ HALF_THRESHOLD: number;
498
+ };
499
+ PERCENTAGE: {
500
+ HALF: number;
501
+ FULL: number;
502
+ };
503
+ MILLISECONDS_TO_SECONDS: number;
504
+ };
461
505
  }
@@ -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";
@@ -62,6 +64,11 @@ export declare const RecorderEventTypes: {
62
64
  readonly DELETE_RECORDING: "deleteRecording";
63
65
  readonly ERROR: "error";
64
66
  readonly RECORDING_SAVE_INITIATED: "recordingSaveInitiated";
67
+ readonly RECORDING_STARTED: "recordingStarted";
68
+ readonly RECORDING_PAUSED: "recordingPaused";
69
+ readonly RECORDING_RESUMED: "recordingResumed";
70
+ readonly RECORDING_CANCELLED: "recordingCancelled";
71
+ readonly RECORDING_STOPPED: "recordingStopped";
65
72
  };
66
73
  export declare const CoreEventTypes: {
67
74
  readonly VELT_BUTTON_CLICK: "veltButtonClick";
@@ -261,10 +268,11 @@ export type ReactionPinType = 'timeline' | 'comment';
261
268
  export type SidebarPosition = 'left' | 'right';
262
269
  export type SidebarSortingCriteria = 'date' | 'unread' | null;
263
270
  export type SidebarFilterCriteria = 'all' | 'read' | 'unread' | 'resolved';
264
- export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages' | 'documents' | 'statuses' | 'priorities' | 'categories' | 'versions' | string;
271
+ export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'involved' | 'pages' | 'documents' | 'statuses' | 'priorities' | 'categories' | 'versions' | string;
265
272
  export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
266
273
  export type NotificationPanelMode = 'popover' | 'sidebar';
267
274
  export type SidebarActionButtonType = 'default' | 'toggle';
275
+ export type SidebarButtonCountType = 'default' | 'filter';
268
276
  export declare enum CommentSidebarSystemFiltersOperator {
269
277
  AND = "and",
270
278
  OR = "or"
package/models.d.ts CHANGED
@@ -77,3 +77,5 @@ export * from './app/models/data/event-metadata.data.model';
77
77
  export * from './app/models/data/user-resolver.data.model';
78
78
  export * from './app/models/data/provider.data.model';
79
79
  export * from './app/models/data/resolver.data.model';
80
+ export * from './app/models/data/crdt.data.model';
81
+ export * from './app/models/data/encryption-provider.data.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "4.5.0-beta.99",
3
+ "version": "4.5.2-beta.10",
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": [
package/types.d.ts CHANGED
@@ -16,4 +16,5 @@ export * from './app/models/element/views-element.model';
16
16
  export * from './app/models/element/notification-element.model';
17
17
  export * from './app/models/element/autocomplete-element.model';
18
18
  export * from './app/models/element/reaction-element.model';
19
+ export * from './app/models/element/crdt-element.model';
19
20
  export * from './models';