@veltdev/types-dev 4.5.0-beta.98 → 4.5.1

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 (28) hide show
  1. package/app/client/snippyly.model.d.ts +23 -2
  2. package/app/models/data/comment-actions.data.model.d.ts +7 -0
  3. package/app/models/data/comment-annotation.data.model.d.ts +3 -0
  4. package/app/models/data/comment-events.data.model.d.ts +5 -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 +6 -0
  7. package/app/models/data/comment.data.model.d.ts +1 -0
  8. package/app/models/data/core-events.data.model.d.ts +2 -0
  9. package/app/models/data/crdt.data.model.d.ts +59 -0
  10. package/app/models/data/document-paths.data.model.d.ts +5 -0
  11. package/app/models/data/encryption-provider.data.model.d.ts +12 -0
  12. package/app/models/data/media-preview-config.data.model.d.ts +2 -0
  13. package/app/models/data/notification.model.d.ts +3 -0
  14. package/app/models/data/reaction-resolver.data.model.d.ts +4 -2
  15. package/app/models/data/recorder-events.data.model.d.ts +19 -0
  16. package/app/models/data/recorder.model.d.ts +4 -0
  17. package/app/models/data/resolver.data.model.d.ts +1 -0
  18. package/app/models/data/user-iam.data.model.d.ts +6 -0
  19. package/app/models/data/user.data.model.d.ts +10 -0
  20. package/app/models/element/comment-element.model.d.ts +83 -13
  21. package/app/models/element/crdt-element.model.d.ts +166 -0
  22. package/app/models/element/notification-element.model.d.ts +43 -3
  23. package/app/models/element/recorder-element.model.d.ts +239 -169
  24. package/app/utils/constants.d.ts +44 -1
  25. package/app/utils/enums.d.ts +10 -2
  26. package/models.d.ts +2 -0
  27. package/package.json +1 -1
  28. package/types.d.ts +1 -0
@@ -0,0 +1,166 @@
1
+ // @ts-nocheck
2
+ import { CrdtGetDataQuery, CrdtGetVersionQuery, CrdtOnDataChangeQuery, CrdtOnPresenceChangeQuery, CrdtOnRegisteredUserChangeQuery, CrdtOnStateChangeQuery, CrdtRegisterSyncUserQuery, CrdtSetPresenceQuery, CrdtSaveVersionQuery, CrdtUpdateDataQuery, CrdtUpdateStateQuery } from "../data/crdt.data.model";
3
+
4
+ export declare class CrdtElement {
5
+ /**
6
+ * Update data for a specific CRDT document
7
+ * @param id Document ID
8
+ * @param state State data as Uint8Array or number array
9
+ */
10
+ updateData: (updateDataQuery: CrdtUpdateDataQuery) => Promise<any>;
11
+
12
+ /**
13
+ * Subscribe to data changes for a specific CRDT document
14
+ * @param id Document ID
15
+ * @param callback Callback function to handle data changes
16
+ * @returns Unsubscribe function
17
+ */
18
+ onDataChange: (onDataChangeQuery: CrdtOnDataChangeQuery) => () => void;
19
+
20
+ /**
21
+ * Get data for a specific CRDT document
22
+ * @param id Document ID
23
+ */
24
+ getData: (getDataQuery: CrdtGetDataQuery) => Promise<any>;
25
+
26
+ /**
27
+ * Subscribe to state changes for a specific CRDT document
28
+ * @param id Document ID
29
+ * @param callback Callback function to handle state changes
30
+ * @returns Unsubscribe function
31
+ */
32
+ onStateChange: (onStateChangeQuery: CrdtOnStateChangeQuery) => () => void;
33
+
34
+ /**
35
+ * Update state for a specific CRDT document
36
+ * @param id Document ID
37
+ * @param state State data as Uint8Array or number array
38
+ */
39
+ updateState: (updateStateQuery: CrdtUpdateStateQuery) => Promise<any>;
40
+
41
+ /**
42
+ * Register a user for synchronization on a specific CRDT document
43
+ * @param id Document ID
44
+ */
45
+ registerSyncUser: (registerSyncUserQuery: CrdtRegisterSyncUserQuery) => Promise<void>;
46
+
47
+ /**
48
+ * Subscribe to registered user changes for a specific CRDT document
49
+ */
50
+ onRegisteredUserChange: (onRegisteredUserChangeQuery: CrdtOnRegisteredUserChangeQuery) => () => void;
51
+
52
+ /**
53
+ * Set presence for a specific CRDT document
54
+ * @param id Document ID
55
+ */
56
+ setPresence: (setPresenceQuery: CrdtSetPresenceQuery) => Promise<void>;
57
+
58
+ /**
59
+ * Subscribe to presence changes for a specific CRDT document
60
+ * @param id Document ID
61
+ * @param callback Callback function to handle presence changes
62
+ * @returns Unsubscribe function
63
+ */
64
+ onPresenceChange: (onPresenceChangeQuery: CrdtOnPresenceChangeQuery) => () => void;
65
+
66
+ /**
67
+ * Store a version of a specific CRDT document
68
+ * @param id Document ID
69
+ * @param versionId Version ID
70
+ * @param versionName Version name
71
+ * @param state State data as Uint8Array or number array
72
+ */
73
+ saveVersion: (saveVersionQuery: CrdtSaveVersionQuery) => Promise<any>;
74
+
75
+ /**
76
+ * Get a version of a specific CRDT document
77
+ * @param id Document ID
78
+ * @param versionId Version ID
79
+ */
80
+ getVersion: (getVersionQuery: CrdtGetVersionQuery) => Promise<any>;
81
+
82
+ constructor();
83
+
84
+ /**
85
+ * Update data for a specific CRDT document
86
+ * @param id Document ID
87
+ * @param state State data as Uint8Array or number array
88
+ */
89
+ private _updateData;
90
+
91
+ /**
92
+ * Subscribe to data changes for a specific CRDT document
93
+ * @param id Document ID
94
+ * @param callback Callback function to handle data changes
95
+ * @returns Unsubscribe function
96
+ */
97
+ private _onDataChange;
98
+
99
+ /**
100
+ * Get data for a specific CRDT document
101
+ * @param id Document ID
102
+ */
103
+ private _getData;
104
+
105
+ /**
106
+ * Subscribe to state changes for a specific CRDT document
107
+ * @param id Document ID
108
+ * @param callback Callback function to handle state changes
109
+ * @returns Unsubscribe function
110
+ */
111
+ private _onStateChange;
112
+
113
+ /**
114
+ * Update state for a specific CRDT document
115
+ * @param id Document ID
116
+ * @param state State data as Uint8Array or number array
117
+ */
118
+ private _updateState;
119
+
120
+ /**
121
+ * Register a user for synchronization on a specific CRDT document
122
+ * @param id Document ID
123
+ */
124
+ private _registerSyncUser;
125
+
126
+ /**
127
+ * Subscribe to registered user changes for a specific CRDT document
128
+ */
129
+ private _onRegisteredUserChange;
130
+
131
+ /**
132
+ * Set presence for a specific CRDT document
133
+ * @param id Document ID
134
+ */
135
+ private _setPresence;
136
+
137
+ /**
138
+ * Subscribe to presence changes for a specific CRDT document
139
+ * @param id Document ID
140
+ * @param callback Callback function to handle presence changes
141
+ * @returns Unsubscribe function
142
+ */
143
+ private _onPresenceChange;
144
+
145
+ /**
146
+ * Store a version of a specific CRDT document
147
+ * @param id Document ID
148
+ * @param versionId Version ID
149
+ * @param versionName Version name
150
+ * @param state State data as Uint8Array or number array
151
+ */
152
+ private _saveVersion;
153
+
154
+ /**
155
+ * Get a version of a specific CRDT document
156
+ * @param id Document ID
157
+ * @param versionId Version ID
158
+ */
159
+ private _getVersion;
160
+
161
+ /**
162
+ * Get all versions of a specific CRDT document
163
+ * @param id Document ID
164
+ */
165
+ private _getVersions;
166
+ }
@@ -1,6 +1,6 @@
1
1
  // @ts-nocheck
2
2
 
3
- import { Notification, NotificationTabConfig, NotificationSettingsConfig, NotificationInitialSettingsConfig } 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
@@ -83,11 +83,31 @@ export declare class NotificationElement {
83
83
  */
84
84
  disableSettings: () => void;
85
85
 
86
+ /**
87
+ * To enable self notifications
88
+ */
89
+ enableSelfNotifications: () => void;
90
+
91
+ /**
92
+ * To disable self notifications
93
+ */
94
+ disableSelfNotifications: () => void;
95
+
86
96
  /**
87
97
  * To set settings initial config
88
98
  */
89
99
  setSettingsInitialConfig: (settings: NotificationInitialSettingsConfig[]) => void;
90
100
 
101
+ /**
102
+ * To open notifications panel
103
+ */
104
+ openNotificationsPanel: () => void;
105
+
106
+ /**
107
+ * To close notifications panel
108
+ */
109
+ closeNotificationsPanel: () => void;
110
+
91
111
  constructor();
92
112
 
93
113
  /**
@@ -170,8 +190,28 @@ export declare class NotificationElement {
170
190
  */
171
191
  private _disableSettings;
172
192
 
193
+ /**
194
+ * To enable self notifications
195
+ */
196
+ private _enableSelfNotifications;
197
+
198
+ /**
199
+ * To disable self notifications
200
+ */
201
+ private _disableSelfNotifications;
202
+
173
203
  /**
174
204
  * To set settings initial config
175
205
  */
176
206
  private _setSettingsInitialConfig;
177
- }
207
+
208
+ /**
209
+ * To open notifications panel
210
+ */
211
+ private _openNotificationsPanel;
212
+
213
+ /**
214
+ * To close notifications panel
215
+ */
216
+ private _closeNotificationsPanel;
217
+ }
@@ -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
+ }