@veltdev/sdk-staging 4.5.0-beta.58 → 4.5.0-beta.6

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 (30) hide show
  1. package/app/client/snippyly.model.d.ts +6 -44
  2. package/app/models/data/button.data.model.d.ts +0 -2
  3. package/app/models/data/comment-annotation.data.model.d.ts +0 -7
  4. package/app/models/data/comment-sidebar-config.model.d.ts +0 -20
  5. package/app/models/data/core-events.data.model.d.ts +0 -9
  6. package/app/models/data/custom-filter.data.model.d.ts +0 -8
  7. package/app/models/data/document-paths.data.model.d.ts +0 -12
  8. package/app/models/data/document.data.model.d.ts +0 -2
  9. package/app/models/data/location.model.d.ts +0 -10
  10. package/app/models/data/multi-thread.data.model.d.ts +0 -2
  11. package/app/models/data/notification.model.d.ts +1 -20
  12. package/app/models/data/presence-events.data.model.d.ts +0 -8
  13. package/app/models/data/recorder-annotation.data.model.d.ts +0 -3
  14. package/app/models/data/recorder-events.data.model.d.ts +0 -10
  15. package/app/models/data/recorder.model.d.ts +8 -6
  16. package/app/models/data/resolver.data.model.d.ts +0 -6
  17. package/app/models/data/user-resolver.data.model.d.ts +0 -2
  18. package/app/models/element/comment-element.model.d.ts +10 -105
  19. package/app/models/element/notification-element.model.d.ts +1 -81
  20. package/app/models/element/presence-element.model.d.ts +1 -15
  21. package/app/models/element/recorder-element.model.d.ts +156 -187
  22. package/app/utils/constants.d.ts +0 -2
  23. package/app/utils/enums.d.ts +1 -17
  24. package/models.d.ts +0 -2
  25. package/package.json +1 -1
  26. package/types.d.ts +0 -1
  27. package/velt.js +106 -111
  28. package/app/models/data/notifications-events.data.model.d.ts +0 -9
  29. package/app/models/data/presence-actions.data.model.d.ts +0 -5
  30. package/app/models/element/crdt-element.model.d.ts +0 -116
@@ -1,6 +1,6 @@
1
1
  // @ts-nocheck
2
2
 
3
- import { Notification, NotificationTabConfig, NotificationSettingsConfig, NotificationInitialSettingsConfig } from "../data/notification.model";
3
+ import { Notification, NotificationTabConfig } from "../data/notification.model";
4
4
 
5
5
  export declare class NotificationElement {
6
6
  /**
@@ -58,46 +58,6 @@ export declare class NotificationElement {
58
58
  */
59
59
  markNotificationAsReadById: (notificationId: string) => void;
60
60
 
61
- /**
62
- * To set settings
63
- */
64
- setSettings: (config: NotificationSettingsConfig) => void;
65
-
66
- /**
67
- * To get settings
68
- */
69
- getSettings: () => Observable<NotificationSettingsConfig | null>;
70
-
71
- /**
72
- * To mute all notifications
73
- */
74
- muteAllNotifications: () => void;
75
-
76
- /**
77
- * To enable settings
78
- */
79
- enableSettings: () => void;
80
-
81
- /**
82
- * To disable settings
83
- */
84
- disableSettings: () => void;
85
-
86
- /**
87
- * To enable self notifications
88
- */
89
- enableSelfNotifications: () => void;
90
-
91
- /**
92
- * To disable self notifications
93
- */
94
- disableSelfNotifications: () => void;
95
-
96
- /**
97
- * To set settings initial config
98
- */
99
- setSettingsInitialConfig: (settings: NotificationInitialSettingsConfig[]) => void;
100
-
101
61
  constructor();
102
62
 
103
63
  /**
@@ -154,44 +114,4 @@ export declare class NotificationElement {
154
114
  * To mark notification as read by id
155
115
  */
156
116
  private _markNotificationAsReadById;
157
-
158
- /**
159
- * To set settings
160
- */
161
- private _setSettings;
162
-
163
- /**
164
- * To get settings
165
- */
166
- private _getSettings;
167
-
168
- /**
169
- * To mute all notifications
170
- */
171
- private _muteAllNotifications;
172
-
173
- /**
174
- * To enable settings
175
- */
176
- private _enableSettings;
177
-
178
- /**
179
- * To disable settings
180
- */
181
- private _disableSettings;
182
-
183
- /**
184
- * To enable self notifications
185
- */
186
- private _enableSelfNotifications;
187
-
188
- /**
189
- * To disable self notifications
190
- */
191
- private _disableSelfNotifications;
192
-
193
- /**
194
- * To set settings initial config
195
- */
196
- private _setSettingsInitialConfig;
197
117
  }
@@ -1,16 +1,13 @@
1
1
  // @ts-nocheck
2
2
  import { Observable } from "rxjs";
3
3
  import { PresenceUser } from "../data/presence-user.data.model";
4
- import { GetPresenceDataResponse, PresenceEventTypesMap } from "../data/presence-events.data.model";
5
- import { PresenceRequestQuery } from "../data/presence-actions.data.model";
6
-
4
+ import { PresenceEventTypesMap } from "../data/presence-events.data.model";
7
5
  export declare class PresenceElement {
8
6
 
9
7
  /**
10
8
  * Subscribe to a list of all online users who are either active or inactive on the current document.
11
9
  *
12
10
  * Returns Observable<PresenceUser[] | null>.
13
- * @deprecated This method is deprecated. Use `getData` method instead.
14
11
  */
15
12
  getOnlineUsersOnCurrentDocument: () => Observable<PresenceUser[] | null>;
16
13
 
@@ -41,11 +38,6 @@ export declare class PresenceElement {
41
38
  */
42
39
  disableSelf: () => void;
43
40
 
44
- /**
45
- * To get the presence data
46
- */
47
- getData: (query?: PresenceRequestQuery) => Observable<GetPresenceDataResponse>;
48
-
49
41
  /**
50
42
  * Subscribe to presence events
51
43
  */
@@ -55,7 +47,6 @@ export declare class PresenceElement {
55
47
  * Subscribe to a list of all online users who are either active or inactive on the current document.
56
48
  *
57
49
  * Returns Observable<PresenceUser[] | null>.
58
- * @deprecated This method is deprecated. Use `getData` method instead.
59
50
  */
60
51
  private _getOnlineUsersOnCurrentDocument;
61
52
 
@@ -86,11 +77,6 @@ export declare class PresenceElement {
86
77
  */
87
78
  private _disableSelf;
88
79
 
89
- /**
90
- * To get the presence data
91
- */
92
- private _getData;
93
-
94
80
  /**
95
81
  * Subscribe to presence events
96
82
  */
@@ -6,191 +6,160 @@ import { RecordedData, RecorderQualityConstraints, RecorderEncodingOptions } fro
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
- /**
93
- * To enable recording mic
94
- */
95
- enableRecordingMic: () => void;
96
-
97
- /**
98
- * To disable recording mic
99
- */
100
- disableRecordingMic: () => void;
101
-
102
- constructor();
103
-
104
- private _initRecording;
105
-
106
- /**
107
- * @deprecated Use on('recordingDone') method instead
108
- */
109
- private _onRecordedData;
110
-
111
- /**
112
- * To enable dark mode in comments
113
- */
114
- private _enableRecordingCountdown;
115
-
116
- /**
117
- * To disable dark mode in comments
118
- */
119
- private _disableRecordingCountdown;
120
-
121
- /**
122
- * To get recording data by recorder id
123
- * @deprecated Use getRecordingData() method instead
124
- */
125
- private _getRecordingDataByRecorderId;
126
-
127
- /**
128
- * To enable recording transcription
129
- */
130
- private _enableRecordingTranscription;
131
-
132
- /**
133
- * To disable recording transcription
134
- */
135
- private _disableRecordingTranscription;
136
-
137
- /**
138
- * Subscribe to recorder actions
139
- */
140
- private _on;
141
-
142
- /**
143
- * To get recording data by recorder ids
144
- */
145
- private _getRecordingData;
146
-
147
- /**
148
- * To enable video editor
149
- */
150
- private _enableVideoEditor;
151
-
152
- /**
153
- * To disable video editor
154
- */
155
- private _disableVideoEditor;
156
-
157
- /**
158
- * To get recordings
159
- */
160
- private _getRecordings;
161
-
162
- /**
163
- * To fetch recordings
164
- */
165
- private _fetchRecordings;
166
-
167
- /**
168
- * To delete recordings
169
- */
170
- private _deleteRecordings;
171
-
172
- /**
173
- * To set recording quality constraints
174
- */
175
- private _setRecordingQualityConstraints;
176
-
177
- /**
178
- * To set recording encoding options
179
- */
180
- private _setRecordingEncodingOptions;
181
-
182
- /**
183
- * To download latest video
184
- */
185
- private _downloadLatestVideo;
186
-
187
- /**
188
- * To enable recording mic
189
- */
190
- private _enableRecordingMic;
191
-
192
- /**
193
- * To disable recording mic
194
- */
195
- private _disableRecordingMic;
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;
196
165
  }
@@ -12,7 +12,6 @@ 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;
16
15
  static FIREBASE_PARTIAL_PATH_PRESENCE: string;
17
16
  static FIREBASE_PARTIAL_PATH_ORGANIZATION_USERS: string;
18
17
  static FIREBASE_PARTIAL_PATH_FOLDER_USERS: string;
@@ -45,7 +44,6 @@ export declare class Constants {
45
44
  static FIREBASE_PARTIAL_PATH_LIVE_STATE: string;
46
45
  static FIREBASE_PARTIAL_PATH_IAM: string;
47
46
  static FIREBASE_PARTIAL_PATH_REACTION: string;
48
- static FIREBASE_PARTIAL_PATH_CRDT: string;
49
47
  static FIREBASE_PARTIAL_PATH_VIEWS: string;
50
48
  static FIREBASE_PARTIAL_PATH_COMMENT_VIEWS: string;
51
49
  static FIREBASE_PARTIAL_PATH_NOTIFICATION_VIEWS: string;
@@ -60,13 +60,10 @@ export declare const RecorderEventTypes: {
60
60
  readonly RECORDING_DONE: "recordingDone";
61
61
  readonly RECORDING_EDIT_DONE: "recordingEditDone";
62
62
  readonly DELETE_RECORDING: "deleteRecording";
63
- readonly ERROR: "error";
64
- readonly RECORDING_SAVE_INITIATED: "recordingSaveInitiated";
65
63
  };
66
64
  export declare const CoreEventTypes: {
67
65
  readonly VELT_BUTTON_CLICK: "veltButtonClick";
68
66
  readonly USER_UPDATE: "userUpdate";
69
- readonly INIT_UPDATE: "initUpdate";
70
67
  readonly DOCUMENT_INIT: "documentInit";
71
68
  readonly ERROR: "error";
72
69
  };
@@ -81,17 +78,12 @@ export declare const LiveStateSyncEventTypes: {
81
78
  };
82
79
  export declare const PresenceEventTypes: {
83
80
  readonly MULTIPLE_USERS_ONLINE: "multipleUsersOnline";
84
- readonly USER_STATE_CHANGE: "userStateChange";
85
- };
86
- export declare const NotificationEventTypes: {
87
- readonly SETTINGS_UPDATED: "settingsUpdated";
88
81
  };
89
82
  export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
90
83
  export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
91
84
  export type CoreEventType = typeof CoreEventTypes[keyof typeof CoreEventTypes];
92
85
  export type LiveStateSyncEventType = typeof LiveStateSyncEventTypes[keyof typeof LiveStateSyncEventTypes];
93
86
  export type PresenceEventType = typeof PresenceEventTypes[keyof typeof PresenceEventTypes];
94
- export type NotificationEventType = typeof NotificationEventTypes[keyof typeof NotificationEventTypes];
95
87
  export declare enum TagStatus {
96
88
  ADDED = "added",
97
89
  UPDATED = "updated",
@@ -261,7 +253,7 @@ export type ReactionPinType = 'timeline' | 'comment';
261
253
  export type SidebarPosition = 'left' | 'right';
262
254
  export type SidebarSortingCriteria = 'date' | 'unread' | null;
263
255
  export type SidebarFilterCriteria = 'all' | 'read' | 'unread' | 'resolved';
264
- export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages' | 'documents' | 'statuses' | 'priorities' | 'categories' | 'versions' | string;
256
+ export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages' | 'statuses' | 'priorities' | 'categories' | 'versions';
265
257
  export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
266
258
  export type NotificationPanelMode = 'popover' | 'sidebar';
267
259
  export type SidebarActionButtonType = 'default' | 'toggle';
@@ -269,11 +261,3 @@ export declare enum CommentSidebarSystemFiltersOperator {
269
261
  AND = "and",
270
262
  OR = "or"
271
263
  }
272
- /**
273
- * Type for notification settings accordion types
274
- */
275
- export type NotificationSettingsAccordionType = 'inbox' | 'email' | string;
276
- /**
277
- * Type for notification settings item options
278
- */
279
- export type NotificationSettingsItemType = 'ALL' | 'MINE' | 'NONE' | string;
package/models.d.ts CHANGED
@@ -35,11 +35,9 @@ 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';
39
38
  export * from './app/models/data/page-info.model';
40
39
  export * from './app/models/data/permission.data.model';
41
40
  export * from './app/models/data/presence-user.data.model';
42
- export * from './app/models/data/presence-actions.data.model';
43
41
  export * from './app/models/data/presence-events.data.model';
44
42
  export * from './app/models/data/recorder.model';
45
43
  export * from './app/models/data/recorder-annotation.data.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk-staging",
3
- "version": "4.5.0-beta.58",
3
+ "version": "4.5.0-beta.6",
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,5 +16,4 @@ 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';
20
19
  export * from './models';