@veltdev/sdk 4.5.0-beta.8 → 4.5.0

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 +3 -0
  4. package/app/models/data/comment-annotation.data.model.d.ts +10 -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 +21 -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 +13 -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 +6 -10
  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 +82 -2
  34. package/app/utils/constants.d.ts +45 -1
  35. package/app/utils/enums.d.ts +21 -4
  36. package/models.d.ts +4 -0
  37. package/package.json +1 -1
  38. package/types.d.ts +1 -0
  39. package/velt.js +116 -105
@@ -2,7 +2,7 @@
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
 
@@ -84,6 +84,46 @@ export declare class RecorderElement {
84
84
  */
85
85
  setRecordingEncodingOptions: (options: RecorderEncodingOptions) => void;
86
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
+
87
127
  constructor();
88
128
 
89
129
  private _initRecording;
@@ -163,4 +203,44 @@ export declare class RecorderElement {
163
203
  * To set recording encoding options
164
204
  */
165
205
  private _setRecordingEncodingOptions;
166
- }
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,8 +46,8 @@ 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
- static FIREBASE_PARTIAL_PATH_COMMENT_VIEWS: string;
49
51
  static FIREBASE_PARTIAL_PATH_NOTIFICATION_VIEWS: string;
50
52
  static FIREBASE_PARTIAL_PATH_DOCUMENT_VIEWS: string;
51
53
  static FIREBASE_PARTIAL_PATH_LOCATION_VIEWS: string;
@@ -53,6 +55,7 @@ export declare class Constants {
53
55
  static FIREBASE_PARTIAL_PATH_ORGANIZATION_NOTIFICATIONS: string;
54
56
  static FIREBASE_PARTIAL_PATH_LAST_NOTIFICATION_TIMESTAMP: string;
55
57
  static FIREBASE_PARTIAL_PATH_USERS: string;
58
+ static FIREBASE_PARTIAL_PATH_PERMISSIONS_USERS: string;
56
59
  static FIREBASE_PARTIAL_PATH_USER_REQUESTS: string;
57
60
  static FIREBASE_PARTIAL_PATH_FEEDBACK: string;
58
61
  static FIREBASE_PARTIAL_PATH_BUGS: string;
@@ -193,6 +196,7 @@ export declare class Constants {
193
196
  VELT_RECORDER_CONTROL_PANEL: string;
194
197
  VELT_RECORDER_CONTROL_PANEL_INTERNAL: string;
195
198
  VELT_RECORDER_PLAYER: string;
199
+ VELT_VIDEO_EDITOR: string;
196
200
  VELT_TEXT_HIGHLIGHT: string;
197
201
  VELT_COMMENT_TEXT_PORTAL: string;
198
202
  VELT_COMMENTS_SIDEBAR: string;
@@ -457,4 +461,44 @@ export declare class Constants {
457
461
  overlayX: any;
458
462
  overlayY: any;
459
463
  }[];
464
+ static VIDEO_EDITOR: {
465
+ ZOOM_IN_DURATION: number;
466
+ ZOOM_OUT_DURATION: number;
467
+ DEFAULT_ZOOM_FACTOR: number;
468
+ MAX_ZOOM_FACTOR: number;
469
+ ZOOM_FACTOR_OPTIONS: {
470
+ value: number;
471
+ label: string;
472
+ }[];
473
+ MIN_DRAG_AREA_MULTIPLIER: number;
474
+ PREFERRED_SECTION_DURATION_MULTIPLIER: number;
475
+ SELECTION_MIN_DRAG_DISTANCE: number;
476
+ MIN_DURATION_THRESHOLD: number;
477
+ TIME_BUFFER: number;
478
+ SHORT_VIDEO_THRESHOLD: number;
479
+ SMALL_VIDEO_THRESHOLD: number;
480
+ MILLISECOND_PRECISION_MULTIPLIER: number;
481
+ TENTH_SECOND_PRECISION_MULTIPLIER: number;
482
+ DEBOUNCE_DELAY: number;
483
+ DECIMAL_PRECISION: number;
484
+ MAX_MARKER_COUNT: number;
485
+ MARKER_INTERVAL: number;
486
+ FAST_TIMEOUT: number;
487
+ STANDARD_TIMEOUT: number;
488
+ RECTANGLE_POSITIONING: {
489
+ FULL_PERCENT: number;
490
+ HALF_PERCENT: number;
491
+ QUARTER_PERCENT: number;
492
+ };
493
+ EASING: {
494
+ QUAD_IN_OUT_MULTIPLIER: number;
495
+ QUAD_IN_OUT_POWER: number;
496
+ HALF_THRESHOLD: number;
497
+ };
498
+ PERCENTAGE: {
499
+ HALF: number;
500
+ FULL: number;
501
+ };
502
+ MILLISECONDS_TO_SECONDS: number;
503
+ };
460
504
  }
@@ -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,15 +86,17 @@ export declare const LiveStateSyncEventTypes: {
80
86
  };
81
87
  export declare const PresenceEventTypes: {
82
88
  readonly MULTIPLE_USERS_ONLINE: "multipleUsersOnline";
83
- readonly USER_ONLINE: "userOnline";
84
- readonly USER_OFFLINE: "userOffline";
85
- readonly USER_AWAY: "userAway";
89
+ readonly USER_STATE_CHANGE: "userStateChange";
90
+ };
91
+ export declare const NotificationEventTypes: {
92
+ readonly SETTINGS_UPDATED: "settingsUpdated";
86
93
  };
87
94
  export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
88
95
  export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
89
96
  export type CoreEventType = typeof CoreEventTypes[keyof typeof CoreEventTypes];
90
97
  export type LiveStateSyncEventType = typeof LiveStateSyncEventTypes[keyof typeof LiveStateSyncEventTypes];
91
98
  export type PresenceEventType = typeof PresenceEventTypes[keyof typeof PresenceEventTypes];
99
+ export type NotificationEventType = typeof NotificationEventTypes[keyof typeof NotificationEventTypes];
92
100
  export declare enum TagStatus {
93
101
  ADDED = "added",
94
102
  UPDATED = "updated",
@@ -258,11 +266,20 @@ export type ReactionPinType = 'timeline' | 'comment';
258
266
  export type SidebarPosition = 'left' | 'right';
259
267
  export type SidebarSortingCriteria = 'date' | 'unread' | null;
260
268
  export type SidebarFilterCriteria = 'all' | 'read' | 'unread' | 'resolved';
261
- export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages' | 'documents' | 'statuses' | 'priorities' | 'categories' | 'versions';
269
+ export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'involved' | 'pages' | 'documents' | 'statuses' | 'priorities' | 'categories' | 'versions' | string;
262
270
  export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
263
271
  export type NotificationPanelMode = 'popover' | 'sidebar';
264
272
  export type SidebarActionButtonType = 'default' | 'toggle';
273
+ export type SidebarButtonCountType = 'default' | 'filter';
265
274
  export declare enum CommentSidebarSystemFiltersOperator {
266
275
  AND = "and",
267
276
  OR = "or"
268
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",
3
- "version": "4.5.0-beta.8",
3
+ "version": "4.5.0",
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';