@veltdev/sdk-staging 4.5.0-beta.7 → 4.5.0-beta.70

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 +44 -6
  2. package/app/models/data/button.data.model.d.ts +2 -0
  3. package/app/models/data/comment-annotation.data.model.d.ts +7 -0
  4. package/app/models/data/comment-sidebar-config.model.d.ts +26 -0
  5. package/app/models/data/core-events.data.model.d.ts +9 -0
  6. package/app/models/data/custom-filter.data.model.d.ts +8 -0
  7. package/app/models/data/document-paths.data.model.d.ts +12 -0
  8. package/app/models/data/document.data.model.d.ts +2 -0
  9. package/app/models/data/location.model.d.ts +10 -0
  10. package/app/models/data/multi-thread.data.model.d.ts +2 -0
  11. package/app/models/data/notification.model.d.ts +23 -1
  12. package/app/models/data/notifications-events.data.model.d.ts +9 -0
  13. package/app/models/data/presence-actions.data.model.d.ts +5 -0
  14. package/app/models/data/presence-events.data.model.d.ts +8 -0
  15. package/app/models/data/recorder-annotation.data.model.d.ts +3 -0
  16. package/app/models/data/recorder-events.data.model.d.ts +10 -0
  17. package/app/models/data/recorder.model.d.ts +6 -8
  18. package/app/models/data/resolver.data.model.d.ts +6 -0
  19. package/app/models/data/user-iam.data.model.d.ts +6 -0
  20. package/app/models/data/user-resolver.data.model.d.ts +2 -0
  21. package/app/models/element/comment-element.model.d.ts +105 -10
  22. package/app/models/element/crdt-element.model.d.ts +116 -0
  23. package/app/models/element/notification-element.model.d.ts +103 -3
  24. package/app/models/element/presence-element.model.d.ts +15 -1
  25. package/app/models/element/recorder-element.model.d.ts +228 -157
  26. package/app/utils/constants.d.ts +43 -0
  27. package/app/utils/enums.d.ts +17 -1
  28. package/models.d.ts +2 -0
  29. package/package.json +1 -1
  30. package/types.d.ts +1 -0
  31. package/velt.js +117 -106
@@ -0,0 +1,116 @@
1
+ // @ts-nocheck
2
+ export declare class CrdtElement {
3
+ /**
4
+ * Update data for a specific CRDT document
5
+ * @param id Document ID
6
+ * @param state State data as Uint8Array or number array
7
+ */
8
+ updateData: ({ id, state }: { id: string, state: Uint8Array | number[] }) => Promise<any>;
9
+
10
+ /**
11
+ * Subscribe to data changes for a specific CRDT document
12
+ * @param id Document ID
13
+ * @param callback Callback function to handle data changes
14
+ * @returns Unsubscribe function
15
+ */
16
+ onDataChange: ({ id, callback }: { id: string, callback: (data: any) => void }) => () => void;
17
+
18
+ /**
19
+ * Get data for a specific CRDT document
20
+ * @param id Document ID
21
+ */
22
+ getData: ({ id }: { id: string }) => Promise<any>;
23
+
24
+ /**
25
+ * Subscribe to state changes for a specific CRDT document
26
+ * @param id Document ID
27
+ * @param callback Callback function to handle state changes
28
+ * @returns Unsubscribe function
29
+ */
30
+ onStateChange: ({ id, callback }: { id: string, callback: (data: any) => void }) => () => void;
31
+
32
+ /**
33
+ * Update state for a specific CRDT document
34
+ * @param id Document ID
35
+ * @param state State data as Uint8Array or number array
36
+ */
37
+ updateState: ({ id, state }: { id: string, state: Uint8Array | number[] }) => Promise<any>;
38
+
39
+ /**
40
+ * Register a user for synchronization on a specific CRDT document
41
+ * @param id Document ID
42
+ */
43
+ registerSyncUser: ({ id }: { id: string }) => Promise<void>;
44
+
45
+ /**
46
+ * Set presence for a specific CRDT document
47
+ * @param id Document ID
48
+ */
49
+ setPresence: ({ id }: { id: string }) => Promise<void>;
50
+
51
+ /**
52
+ * Subscribe to presence changes for a specific CRDT document
53
+ * @param id Document ID
54
+ * @param callback Callback function to handle presence changes
55
+ * @returns Unsubscribe function
56
+ */
57
+ onPresenceChange: ({ id, callback }: { id: string, callback: (data: any) => void }) => () => void;
58
+
59
+ constructor();
60
+
61
+ /**
62
+ * Update data for a specific CRDT document
63
+ * @param id Document ID
64
+ * @param state State data as Uint8Array or number array
65
+ */
66
+ private _updateData;
67
+
68
+ /**
69
+ * Subscribe to data changes for a specific CRDT document
70
+ * @param id Document ID
71
+ * @param callback Callback function to handle data changes
72
+ * @returns Unsubscribe function
73
+ */
74
+ private _onDataChange;
75
+
76
+ /**
77
+ * Get data for a specific CRDT document
78
+ * @param id Document ID
79
+ */
80
+ private _getData;
81
+
82
+ /**
83
+ * Subscribe to state changes for a specific CRDT document
84
+ * @param id Document ID
85
+ * @param callback Callback function to handle state changes
86
+ * @returns Unsubscribe function
87
+ */
88
+ private _onStateChange;
89
+
90
+ /**
91
+ * Update state for a specific CRDT document
92
+ * @param id Document ID
93
+ * @param state State data as Uint8Array or number array
94
+ */
95
+ private _updateState;
96
+
97
+ /**
98
+ * Register a user for synchronization on a specific CRDT document
99
+ * @param id Document ID
100
+ */
101
+ private _registerSyncUser;
102
+
103
+ /**
104
+ * Set presence for a specific CRDT document
105
+ * @param id Document ID
106
+ */
107
+ private _setPresence;
108
+
109
+ /**
110
+ * Subscribe to presence changes for a specific CRDT document
111
+ * @param id Document ID
112
+ * @param callback Callback function to handle presence changes
113
+ * @returns Unsubscribe function
114
+ */
115
+ private _onPresenceChange;
116
+ }
@@ -1,6 +1,6 @@
1
1
  // @ts-nocheck
2
2
 
3
- import { Notification, NotificationTabConfig } from "../data/notification.model";
3
+ import { GetNotificationsDataQuery, Notification, NotificationInitialSettingsConfig, NotificationSettingsConfig, NotificationTabConfig } from "../data/notification.model";
4
4
 
5
5
  export declare class NotificationElement {
6
6
  /**
@@ -21,7 +21,7 @@ export declare class NotificationElement {
21
21
  /**
22
22
  * To get notifications data
23
23
  */
24
- getNotificationsData: () => Observable<Notification[] | null>;
24
+ getNotificationsData: (query?: GetNotificationsDataQuery) => Observable<Notification[] | null>;
25
25
 
26
26
  /**
27
27
  * To set max days for notification history
@@ -58,6 +58,56 @@ 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
+ /**
102
+ * To open notifications panel
103
+ */
104
+ openNotificationsPanel: () => void;
105
+
106
+ /**
107
+ * To close notifications panel
108
+ */
109
+ closeNotificationsPanel: () => void;
110
+
61
111
  constructor();
62
112
 
63
113
  /**
@@ -114,4 +164,54 @@ export declare class NotificationElement {
114
164
  * To mark notification as read by id
115
165
  */
116
166
  private _markNotificationAsReadById;
117
- }
167
+
168
+ /**
169
+ * To set settings
170
+ */
171
+ private _setSettings;
172
+
173
+ /**
174
+ * To get settings
175
+ */
176
+ private _getSettings;
177
+
178
+ /**
179
+ * To mute all notifications
180
+ */
181
+ private _muteAllNotifications;
182
+
183
+ /**
184
+ * To enable settings
185
+ */
186
+ private _enableSettings;
187
+
188
+ /**
189
+ * To disable settings
190
+ */
191
+ private _disableSettings;
192
+
193
+ /**
194
+ * To enable self notifications
195
+ */
196
+ private _enableSelfNotifications;
197
+
198
+ /**
199
+ * To disable self notifications
200
+ */
201
+ private _disableSelfNotifications;
202
+
203
+ /**
204
+ * To set settings initial config
205
+ */
206
+ private _setSettingsInitialConfig;
207
+
208
+ /**
209
+ * To open notifications panel
210
+ */
211
+ private _openNotificationsPanel;
212
+
213
+ /**
214
+ * To close notifications panel
215
+ */
216
+ private _closeNotificationsPanel;
217
+ }
@@ -1,13 +1,16 @@
1
1
  // @ts-nocheck
2
2
  import { Observable } from "rxjs";
3
3
  import { PresenceUser } from "../data/presence-user.data.model";
4
- import { PresenceEventTypesMap } from "../data/presence-events.data.model";
4
+ import { GetPresenceDataResponse, PresenceEventTypesMap } from "../data/presence-events.data.model";
5
+ import { PresenceRequestQuery } from "../data/presence-actions.data.model";
6
+
5
7
  export declare class PresenceElement {
6
8
 
7
9
  /**
8
10
  * Subscribe to a list of all online users who are either active or inactive on the current document.
9
11
  *
10
12
  * Returns Observable<PresenceUser[] | null>.
13
+ * @deprecated This method is deprecated. Use `getData` method instead.
11
14
  */
12
15
  getOnlineUsersOnCurrentDocument: () => Observable<PresenceUser[] | null>;
13
16
 
@@ -38,6 +41,11 @@ export declare class PresenceElement {
38
41
  */
39
42
  disableSelf: () => void;
40
43
 
44
+ /**
45
+ * To get the presence data
46
+ */
47
+ getData: (query?: PresenceRequestQuery) => Observable<GetPresenceDataResponse>;
48
+
41
49
  /**
42
50
  * Subscribe to presence events
43
51
  */
@@ -47,6 +55,7 @@ export declare class PresenceElement {
47
55
  * Subscribe to a list of all online users who are either active or inactive on the current document.
48
56
  *
49
57
  * Returns Observable<PresenceUser[] | null>.
58
+ * @deprecated This method is deprecated. Use `getData` method instead.
50
59
  */
51
60
  private _getOnlineUsersOnCurrentDocument;
52
61
 
@@ -77,6 +86,11 @@ export declare class PresenceElement {
77
86
  */
78
87
  private _disableSelf;
79
88
 
89
+ /**
90
+ * To get the presence data
91
+ */
92
+ private _getData;
93
+
80
94
  /**
81
95
  * Subscribe to presence events
82
96
  */
@@ -6,160 +6,231 @@ 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
- 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
+ constructor();
123
+
124
+ private _initRecording;
125
+
126
+ /**
127
+ * @deprecated Use on('recordingDone') method instead
128
+ */
129
+ private _onRecordedData;
130
+
131
+ /**
132
+ * To enable dark mode in comments
133
+ */
134
+ private _enableRecordingCountdown;
135
+
136
+ /**
137
+ * To disable dark mode in comments
138
+ */
139
+ private _disableRecordingCountdown;
140
+
141
+ /**
142
+ * To get recording data by recorder id
143
+ * @deprecated Use getRecordingData() method instead
144
+ */
145
+ private _getRecordingDataByRecorderId;
146
+
147
+ /**
148
+ * To enable recording transcription
149
+ */
150
+ private _enableRecordingTranscription;
151
+
152
+ /**
153
+ * To disable recording transcription
154
+ */
155
+ private _disableRecordingTranscription;
156
+
157
+ /**
158
+ * Subscribe to recorder actions
159
+ */
160
+ private _on;
161
+
162
+ /**
163
+ * To get recording data by recorder ids
164
+ */
165
+ private _getRecordingData;
166
+
167
+ /**
168
+ * To enable video editor
169
+ */
170
+ private _enableVideoEditor;
171
+
172
+ /**
173
+ * To disable video editor
174
+ */
175
+ private _disableVideoEditor;
176
+
177
+ /**
178
+ * To get recordings
179
+ */
180
+ private _getRecordings;
181
+
182
+ /**
183
+ * To fetch recordings
184
+ */
185
+ private _fetchRecordings;
186
+
187
+ /**
188
+ * To delete recordings
189
+ */
190
+ private _deleteRecordings;
191
+
192
+ /**
193
+ * To set recording quality constraints
194
+ */
195
+ private _setRecordingQualityConstraints;
196
+
197
+ /**
198
+ * To set recording encoding options
199
+ */
200
+ private _setRecordingEncodingOptions;
201
+
202
+ /**
203
+ * To download latest video
204
+ */
205
+ private _downloadLatestVideo;
206
+
207
+ /**
208
+ * To enable recording mic
209
+ */
210
+ private _enableRecordingMic;
211
+
212
+ /**
213
+ * To disable recording mic
214
+ */
215
+ private _disableRecordingMic;
216
+
217
+ /**
218
+ * To enable onboarding tooltip
219
+ */
220
+ private _enableOnboardingTooltip;
221
+
222
+ /**
223
+ * To disable onboarding tooltip
224
+ */
225
+ private _disableOnboardingTooltip;
226
+
227
+ /**
228
+ * To enable retake on video editor
229
+ */
230
+ private _enableRetakeOnVideoEditor;
231
+
232
+ /**
233
+ * To disable retake on video editor
234
+ */
235
+ private _disableRetakeOnVideoEditor;
236
+ }