@veltdev/sdk-staging 4.5.0-beta.9 → 4.5.0-beta.90

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 (39) hide show
  1. package/app/client/snippyly.model.d.ts +62 -8
  2. package/app/models/data/button.data.model.d.ts +2 -0
  3. package/app/models/data/comment-actions.data.model.d.ts +1 -0
  4. package/app/models/data/comment-annotation.data.model.d.ts +7 -0
  5. package/app/models/data/comment-resolver.data.model.d.ts +19 -0
  6. package/app/models/data/comment-sidebar-config.model.d.ts +26 -0
  7. package/app/models/data/comment.data.model.d.ts +1 -0
  8. package/app/models/data/core-events.data.model.d.ts +9 -0
  9. package/app/models/data/crdt.data.model.d.ts +59 -0
  10. package/app/models/data/custom-filter.data.model.d.ts +8 -0
  11. package/app/models/data/document-paths.data.model.d.ts +12 -0
  12. package/app/models/data/document.data.model.d.ts +2 -0
  13. package/app/models/data/encryption-provider.data.model.d.ts +12 -0
  14. package/app/models/data/location.model.d.ts +10 -0
  15. package/app/models/data/media-preview-config.data.model.d.ts +2 -0
  16. package/app/models/data/multi-thread.data.model.d.ts +2 -0
  17. package/app/models/data/notification.model.d.ts +23 -1
  18. package/app/models/data/notifications-events.data.model.d.ts +9 -0
  19. package/app/models/data/presence-actions.data.model.d.ts +5 -0
  20. package/app/models/data/presence-events.data.model.d.ts +8 -0
  21. package/app/models/data/reaction-resolver.data.model.d.ts +4 -2
  22. package/app/models/data/recorder-annotation.data.model.d.ts +3 -0
  23. package/app/models/data/recorder-events.data.model.d.ts +19 -0
  24. package/app/models/data/recorder.model.d.ts +4 -0
  25. package/app/models/data/resolver.data.model.d.ts +7 -0
  26. package/app/models/data/user-iam.data.model.d.ts +6 -0
  27. package/app/models/data/user-resolver.data.model.d.ts +2 -0
  28. package/app/models/data/user.data.model.d.ts +10 -0
  29. package/app/models/element/comment-element.model.d.ts +136 -11
  30. package/app/models/element/crdt-element.model.d.ts +166 -0
  31. package/app/models/element/notification-element.model.d.ts +103 -3
  32. package/app/models/element/presence-element.model.d.ts +15 -1
  33. package/app/models/element/recorder-element.model.d.ts +239 -158
  34. package/app/utils/constants.d.ts +45 -0
  35. package/app/utils/enums.d.ts +21 -1
  36. package/models.d.ts +4 -0
  37. package/package.json +1 -1
  38. package/types.d.ts +1 -0
  39. package/velt.js +117 -106
@@ -2,164 +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
- constructor();
87
-
88
- private _initRecording;
89
-
90
- /**
91
- * @deprecated Use on('recordingDone') method instead
92
- */
93
- private _onRecordedData;
94
-
95
- /**
96
- * To enable dark mode in comments
97
- */
98
- private _enableRecordingCountdown;
99
-
100
- /**
101
- * To disable dark mode in comments
102
- */
103
- private _disableRecordingCountdown;
104
-
105
- /**
106
- * To get recording data by recorder id
107
- * @deprecated Use getRecordingData() method instead
108
- */
109
- private _getRecordingDataByRecorderId;
110
-
111
- /**
112
- * To enable recording transcription
113
- */
114
- private _enableRecordingTranscription;
115
-
116
- /**
117
- * To disable recording transcription
118
- */
119
- private _disableRecordingTranscription;
120
-
121
- /**
122
- * Subscribe to recorder actions
123
- */
124
- private _on;
125
-
126
- /**
127
- * To get recording data by recorder ids
128
- */
129
- private _getRecordingData;
130
-
131
- /**
132
- * To enable video editor
133
- */
134
- private _enableVideoEditor;
135
-
136
- /**
137
- * To disable video editor
138
- */
139
- private _disableVideoEditor;
140
-
141
- /**
142
- * To get recordings
143
- */
144
- private _getRecordings;
145
-
146
- /**
147
- * To fetch recordings
148
- */
149
- private _fetchRecordings;
150
-
151
- /**
152
- * To delete recordings
153
- */
154
- private _deleteRecordings;
155
-
156
- /**
157
- * To set recording quality constraints
158
- */
159
- private _setRecordingQualityConstraints;
160
-
161
- /**
162
- * To set recording encoding options
163
- */
164
- private _setRecordingEncodingOptions;
165
- }
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
+ }
@@ -12,8 +12,10 @@ export declare class Constants {
12
12
  static FIREBASE_PARTIAL_PATH_ORGANIZATIONS: string;
13
13
  static FIREBASE_PARTIAL_PATH_FOLDERS: string;
14
14
  static FIREBASE_PARTIAL_PATH_DOCS: string;
15
+ static FIREBASE_PARTIAL_PATH_DOCUMENT_CONFIGURATIONS: string;
15
16
  static FIREBASE_PARTIAL_PATH_PRESENCE: string;
16
17
  static FIREBASE_PARTIAL_PATH_ORGANIZATION_USERS: string;
18
+ static FIREBASE_PARTIAL_PATH_CENTRAL_USERS: string;
17
19
  static FIREBASE_PARTIAL_PATH_FOLDER_USERS: string;
18
20
  static FIREBASE_PARTIAL_PATH_DOCUMENT_USERS: string;
19
21
  static FIREBASE_PARTIAL_PATH_CURSOR: string;
@@ -44,6 +46,7 @@ export declare class Constants {
44
46
  static FIREBASE_PARTIAL_PATH_LIVE_STATE: string;
45
47
  static FIREBASE_PARTIAL_PATH_IAM: string;
46
48
  static FIREBASE_PARTIAL_PATH_REACTION: string;
49
+ static FIREBASE_PARTIAL_PATH_CRDT: string;
47
50
  static FIREBASE_PARTIAL_PATH_VIEWS: string;
48
51
  static FIREBASE_PARTIAL_PATH_COMMENT_VIEWS: string;
49
52
  static FIREBASE_PARTIAL_PATH_NOTIFICATION_VIEWS: string;
@@ -53,6 +56,7 @@ export declare class Constants {
53
56
  static FIREBASE_PARTIAL_PATH_ORGANIZATION_NOTIFICATIONS: string;
54
57
  static FIREBASE_PARTIAL_PATH_LAST_NOTIFICATION_TIMESTAMP: string;
55
58
  static FIREBASE_PARTIAL_PATH_USERS: string;
59
+ static FIREBASE_PARTIAL_PATH_PERMISSIONS_USERS: string;
56
60
  static FIREBASE_PARTIAL_PATH_USER_REQUESTS: string;
57
61
  static FIREBASE_PARTIAL_PATH_FEEDBACK: string;
58
62
  static FIREBASE_PARTIAL_PATH_BUGS: string;
@@ -193,6 +197,7 @@ export declare class Constants {
193
197
  VELT_RECORDER_CONTROL_PANEL: string;
194
198
  VELT_RECORDER_CONTROL_PANEL_INTERNAL: string;
195
199
  VELT_RECORDER_PLAYER: string;
200
+ VELT_VIDEO_EDITOR: string;
196
201
  VELT_TEXT_HIGHLIGHT: string;
197
202
  VELT_COMMENT_TEXT_PORTAL: string;
198
203
  VELT_COMMENTS_SIDEBAR: string;
@@ -457,4 +462,44 @@ export declare class Constants {
457
462
  overlayX: any;
458
463
  overlayY: any;
459
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
+ };
460
505
  }
@@ -62,10 +62,16 @@ export declare const RecorderEventTypes: {
62
62
  readonly DELETE_RECORDING: "deleteRecording";
63
63
  readonly ERROR: "error";
64
64
  readonly RECORDING_SAVE_INITIATED: "recordingSaveInitiated";
65
+ readonly RECORDING_STARTED: "recordingStarted";
66
+ readonly RECORDING_PAUSED: "recordingPaused";
67
+ readonly RECORDING_RESUMED: "recordingResumed";
68
+ readonly RECORDING_CANCELLED: "recordingCancelled";
69
+ readonly RECORDING_STOPPED: "recordingStopped";
65
70
  };
66
71
  export declare const CoreEventTypes: {
67
72
  readonly VELT_BUTTON_CLICK: "veltButtonClick";
68
73
  readonly USER_UPDATE: "userUpdate";
74
+ readonly INIT_UPDATE: "initUpdate";
69
75
  readonly DOCUMENT_INIT: "documentInit";
70
76
  readonly ERROR: "error";
71
77
  };
@@ -80,12 +86,17 @@ export declare const LiveStateSyncEventTypes: {
80
86
  };
81
87
  export declare const PresenceEventTypes: {
82
88
  readonly MULTIPLE_USERS_ONLINE: "multipleUsersOnline";
89
+ readonly USER_STATE_CHANGE: "userStateChange";
90
+ };
91
+ export declare const NotificationEventTypes: {
92
+ readonly SETTINGS_UPDATED: "settingsUpdated";
83
93
  };
84
94
  export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
85
95
  export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
86
96
  export type CoreEventType = typeof CoreEventTypes[keyof typeof CoreEventTypes];
87
97
  export type LiveStateSyncEventType = typeof LiveStateSyncEventTypes[keyof typeof LiveStateSyncEventTypes];
88
98
  export type PresenceEventType = typeof PresenceEventTypes[keyof typeof PresenceEventTypes];
99
+ export type NotificationEventType = typeof NotificationEventTypes[keyof typeof NotificationEventTypes];
89
100
  export declare enum TagStatus {
90
101
  ADDED = "added",
91
102
  UPDATED = "updated",
@@ -255,11 +266,20 @@ export type ReactionPinType = 'timeline' | 'comment';
255
266
  export type SidebarPosition = 'left' | 'right';
256
267
  export type SidebarSortingCriteria = 'date' | 'unread' | null;
257
268
  export type SidebarFilterCriteria = 'all' | 'read' | 'unread' | 'resolved';
258
- export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages' | 'statuses' | 'priorities' | 'categories' | 'versions';
269
+ export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'involved' | 'pages' | 'documents' | 'statuses' | 'priorities' | 'categories' | 'versions' | string;
259
270
  export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
260
271
  export type NotificationPanelMode = 'popover' | 'sidebar';
261
272
  export type SidebarActionButtonType = 'default' | 'toggle';
273
+ export type SidebarButtonCountType = 'default' | 'filter';
262
274
  export declare enum CommentSidebarSystemFiltersOperator {
263
275
  AND = "and",
264
276
  OR = "or"
265
277
  }
278
+ /**
279
+ * Type for notification settings accordion types
280
+ */
281
+ export type NotificationSettingsAccordionType = 'inbox' | 'email' | string;
282
+ /**
283
+ * Type for notification settings item options
284
+ */
285
+ export type NotificationSettingsItemType = 'ALL' | 'MINE' | 'NONE' | string;
package/models.d.ts CHANGED
@@ -35,9 +35,11 @@ export * from './app/models/data/location.model';
35
35
  export * from './app/models/data/media-preview-config.data.model';
36
36
  export * from './app/models/data/multi-thread.data.model';
37
37
  export * from './app/models/data/notification.model';
38
+ export * from './app/models/data/notifications-events.data.model';
38
39
  export * from './app/models/data/page-info.model';
39
40
  export * from './app/models/data/permission.data.model';
40
41
  export * from './app/models/data/presence-user.data.model';
42
+ export * from './app/models/data/presence-actions.data.model';
41
43
  export * from './app/models/data/presence-events.data.model';
42
44
  export * from './app/models/data/recorder.model';
43
45
  export * from './app/models/data/recorder-annotation.data.model';
@@ -75,3 +77,5 @@ export * from './app/models/data/event-metadata.data.model';
75
77
  export * from './app/models/data/user-resolver.data.model';
76
78
  export * from './app/models/data/provider.data.model';
77
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/sdk-staging",
3
- "version": "4.5.0-beta.9",
3
+ "version": "4.5.0-beta.90",
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';