@veltdev/types-dev 4.5.0-beta.15 → 4.5.0-beta.150

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 (33) 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-resolver.data.model.d.ts +14 -0
  5. package/app/models/data/comment-sidebar-config.model.d.ts +26 -0
  6. package/app/models/data/config.data.model.d.ts +4 -0
  7. package/app/models/data/core-events.data.model.d.ts +9 -0
  8. package/app/models/data/custom-filter.data.model.d.ts +8 -0
  9. package/app/models/data/document-paths.data.model.d.ts +12 -0
  10. package/app/models/data/document.data.model.d.ts +2 -0
  11. package/app/models/data/location.model.d.ts +10 -0
  12. package/app/models/data/multi-thread.data.model.d.ts +2 -0
  13. package/app/models/data/notification.model.d.ts +23 -1
  14. package/app/models/data/notifications-events.data.model.d.ts +9 -0
  15. package/app/models/data/presence-actions.data.model.d.ts +5 -0
  16. package/app/models/data/presence-events.data.model.d.ts +8 -0
  17. package/app/models/data/reaction-resolver.data.model.d.ts +4 -2
  18. package/app/models/data/recorder-annotation.data.model.d.ts +3 -0
  19. package/app/models/data/recorder-events.data.model.d.ts +10 -0
  20. package/app/models/data/recorder.model.d.ts +6 -8
  21. package/app/models/data/resolver.data.model.d.ts +6 -0
  22. package/app/models/data/user-iam.data.model.d.ts +6 -0
  23. package/app/models/data/user-resolver.data.model.d.ts +2 -0
  24. package/app/models/element/comment-element.model.d.ts +105 -10
  25. package/app/models/element/crdt-element.model.d.ts +116 -0
  26. package/app/models/element/notification-element.model.d.ts +103 -3
  27. package/app/models/element/presence-element.model.d.ts +15 -1
  28. package/app/models/element/recorder-element.model.d.ts +228 -158
  29. package/app/utils/constants.d.ts +43 -0
  30. package/app/utils/enums.d.ts +17 -1
  31. package/models.d.ts +2 -0
  32. package/package.json +1 -1
  33. package/types.d.ts +1 -0
@@ -126,7 +126,7 @@ export declare class CommentElement {
126
126
 
127
127
  /**
128
128
  * Subscribe to comment mode change.
129
- *
129
+ *
130
130
  * Returns Observable<boolean>.
131
131
  */
132
132
  onCommentModeChange: () => Observable<boolean>;
@@ -278,7 +278,7 @@ export declare class CommentElement {
278
278
 
279
279
  /**
280
280
  * @description Sets custom status filters
281
- * @param statuses
281
+ * @param statuses
282
282
  */
283
283
  setCustomStatus: (statuses: CustomStatus[]) => void;
284
284
 
@@ -326,7 +326,7 @@ export declare class CommentElement {
326
326
 
327
327
  /**
328
328
  * @description Sets the comment context provider
329
- * @param provider
329
+ * @param provider
330
330
  */
331
331
  public setContextProvider: (provider: (documentId: string, location?: any) => any) => void;
332
332
 
@@ -397,14 +397,14 @@ export declare class CommentElement {
397
397
 
398
398
  /**
399
399
  * To get documentId, location and set context data when comment is added.
400
- *
400
+ *
401
401
  * @legacy Use `AddCommentAnnotationEvent` instead
402
402
  */
403
403
  public onCommentAdd: () => Observable<CommentAddEventData>;
404
404
 
405
405
  /**
406
406
  * To get data when comment is updated.
407
- *
407
+ *
408
408
  * @legacy Use action specific events instead
409
409
  */
410
410
  public onCommentUpdate: () => Observable<CommentUpdateEventData>;
@@ -791,6 +791,28 @@ export declare class CommentElement {
791
791
  */
792
792
  public disableMultiThread: () => void;
793
793
 
794
+ /**
795
+ * To enable group multiple match
796
+ * @deprecated Use enableGroupMatchedComments instead
797
+ */
798
+ public enableGroupMultipleMatch: () => void;
799
+
800
+ /**
801
+ * To disable group multiple match
802
+ * @deprecated Use disableGroupMatchedComments instead
803
+ */
804
+ public disableGroupMultipleMatch: () => void;
805
+
806
+ /**
807
+ * To enable group matched comments
808
+ */
809
+ public enableGroupMatchedComments: () => void;
810
+
811
+ /**
812
+ * To disable group matched comments
813
+ */
814
+ public disableGroupMatchedComments: () => void;
815
+
794
816
  /**
795
817
  * To update context of comment annotation
796
818
  * @param annotationId Comment annotation id
@@ -1140,6 +1162,32 @@ export declare class CommentElement {
1140
1162
  * To disable draft mode
1141
1163
  */
1142
1164
  public disableDraftMode: () => void;
1165
+
1166
+ /**
1167
+ * To enable filter comments on dom
1168
+ */
1169
+ public enableFilterCommentsOnDom: () => void;
1170
+
1171
+ /**
1172
+ * To disable filter comments on dom
1173
+ */
1174
+ public disableFilterCommentsOnDom: () => void;
1175
+
1176
+ /**
1177
+ * To enable reply avatars
1178
+ */
1179
+ public enableReplyAvatars: () => void;
1180
+
1181
+ /**
1182
+ * To disable reply avatars
1183
+ */
1184
+ public disableReplyAvatars: () => void;
1185
+
1186
+ /**
1187
+ * To set max reply avatars
1188
+ */
1189
+ public setMaxReplyAvatars: (maxReplyAvatars: number) => void;
1190
+
1143
1191
  constructor();
1144
1192
  /**
1145
1193
  * Subscribe to comments on the current document.
@@ -1255,7 +1303,7 @@ export declare class CommentElement {
1255
1303
 
1256
1304
  /**
1257
1305
  * Subscribe to comment mode change.
1258
- *
1306
+ *
1259
1307
  * Returns Observable<boolean>.
1260
1308
  */
1261
1309
  private _onCommentModeChange;
@@ -1402,7 +1450,7 @@ export declare class CommentElement {
1402
1450
 
1403
1451
  /**
1404
1452
  * @description Sets custom status filters
1405
- * @param statuses
1453
+ * @param statuses
1406
1454
  */
1407
1455
  private _setCustomStatus;
1408
1456
 
@@ -1450,7 +1498,7 @@ export declare class CommentElement {
1450
1498
 
1451
1499
  /**
1452
1500
  * @description Sets the comment context provider
1453
- * @param provider
1501
+ * @param provider
1454
1502
  */
1455
1503
  private _setContextProvider;
1456
1504
 
@@ -1695,7 +1743,7 @@ export declare class CommentElement {
1695
1743
  */
1696
1744
  private _disableRecordingSummary;
1697
1745
 
1698
- /**
1746
+ /**
1699
1747
  * To enable recording transcription
1700
1748
  */
1701
1749
  private _enableRecordingTranscription;
@@ -1910,6 +1958,28 @@ export declare class CommentElement {
1910
1958
  */
1911
1959
  private _disableMultiThread;
1912
1960
 
1961
+ /**
1962
+ * To enable group multiple match
1963
+ * @deprecated Use enableGroupMatchedComments instead
1964
+ */
1965
+ private _enableGroupMultipleMatch;
1966
+
1967
+ /**
1968
+ * To disable group multiple match
1969
+ * @deprecated Use disableGroupMatchedComments instead
1970
+ */
1971
+ private _disableGroupMultipleMatch;
1972
+
1973
+ /**
1974
+ * To enable group matched comments
1975
+ */
1976
+ private _enableGroupMatchedComments;
1977
+
1978
+ /**
1979
+ * To disable group matched comments
1980
+ */
1981
+ private _disableGroupMatchedComments;
1982
+
1913
1983
  /**
1914
1984
  * To update context of comment annotation
1915
1985
  * @param annotationId Comment annotation id
@@ -1968,7 +2038,7 @@ export declare class CommentElement {
1968
2038
  */
1969
2039
  private _disableQueryParamsComments;
1970
2040
 
1971
- /**
2041
+ /**
1972
2042
  * To enable comment sidebar action button click
1973
2043
  */
1974
2044
  private _onCommentSidebarActionButtonClick;
@@ -2260,4 +2330,29 @@ export declare class CommentElement {
2260
2330
  * To disable draft mode
2261
2331
  */
2262
2332
  private _disableDraftMode;
2333
+
2334
+ /**
2335
+ * To enable filter comments on dom
2336
+ */
2337
+ private _enableFilterCommentsOnDom;
2338
+
2339
+ /**
2340
+ * To disable filter comments on dom
2341
+ */
2342
+ private _disableFilterCommentsOnDom;
2343
+
2344
+ /**
2345
+ * To enable reply avatars
2346
+ */
2347
+ private _enableReplyAvatars;
2348
+
2349
+ /**
2350
+ * To disable reply avatars
2351
+ */
2352
+ private _disableReplyAvatars;
2353
+
2354
+ /**
2355
+ * To set max reply avatars
2356
+ */
2357
+ private _setMaxReplyAvatars;
2263
2358
  }
@@ -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
  */