@veltdev/types-dev 4.5.0-beta.99 → 4.5.2-beta.10
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.
- package/app/client/snippyly.model.d.ts +23 -2
- package/app/models/data/autocomplete.data.model.d.ts +6 -0
- package/app/models/data/comment-actions.data.model.d.ts +7 -0
- package/app/models/data/comment-annotation.data.model.d.ts +3 -0
- package/app/models/data/comment-events.data.model.d.ts +5 -0
- package/app/models/data/comment-resolver.data.model.d.ts +19 -0
- package/app/models/data/comment-sidebar-config.model.d.ts +6 -0
- package/app/models/data/comment.data.model.d.ts +1 -0
- package/app/models/data/core-events.data.model.d.ts +2 -0
- package/app/models/data/crdt.data.model.d.ts +59 -0
- package/app/models/data/document-paths.data.model.d.ts +5 -0
- package/app/models/data/encryption-provider.data.model.d.ts +12 -0
- package/app/models/data/live-state-data.data.model.d.ts +18 -0
- package/app/models/data/media-preview-config.data.model.d.ts +2 -0
- package/app/models/data/notification.model.d.ts +3 -0
- package/app/models/data/reaction-resolver.data.model.d.ts +4 -2
- package/app/models/data/recorder-events.data.model.d.ts +19 -0
- package/app/models/data/recorder.model.d.ts +4 -0
- package/app/models/data/resolver.data.model.d.ts +1 -0
- package/app/models/data/user-iam.data.model.d.ts +6 -0
- package/app/models/data/user.data.model.d.ts +10 -0
- package/app/models/element/comment-element.model.d.ts +83 -13
- package/app/models/element/crdt-element.model.d.ts +166 -0
- package/app/models/element/live-state-sync-element.model.d.ts +13 -3
- package/app/models/element/notification-element.model.d.ts +43 -3
- package/app/models/element/recorder-element.model.d.ts +239 -169
- package/app/utils/constants.d.ts +45 -1
- package/app/utils/enums.d.ts +10 -2
- package/models.d.ts +2 -0
- package/package.json +1 -1
- package/types.d.ts +1 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig, UpdateContextConfig } from "../data/comment-annotation.data.model";
|
|
4
|
-
import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, GetLinkEvent, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, FetchCommentAnnotationsResponse } from "../data/comment-events.data.model";
|
|
4
|
+
import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, GetLinkEvent, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, FetchCommentAnnotationsResponse, PublishCommentAnnotationEvent } from "../data/comment-events.data.model";
|
|
5
5
|
import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
|
|
6
6
|
import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
|
|
7
7
|
import { AutocompleteData } from "../data/autocomplete.data.model";
|
|
8
8
|
import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebarDataOptions } from "../data/comment-sidebar-config.model";
|
|
9
9
|
export { ReactionMap } from '../data/reaction-annotation.data.model';
|
|
10
|
-
import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, CommentRequestQuery, CommentRequestQuery, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetRecordingRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationRequest, ToggleReactionRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest, FetchCommentAnnotationsRequest } from "../data/comment-actions.data.model";
|
|
10
|
+
import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, CommentRequestQuery, CommentRequestQuery, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetRecordingRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationRequest, ToggleReactionRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest, FetchCommentAnnotationsRequest, PublishCommentAnnotationRequest } from "../data/comment-actions.data.model";
|
|
11
11
|
import { UnreadCommentsCount, TransformContext } from "../data/comment-utils.data.model";
|
|
12
|
-
import { CommentSidebarSystemFiltersOperator } from "../../utils/enums";
|
|
12
|
+
import { CommentSidebarSystemFiltersOperator, SidebarButtonCountType } from "../../utils/enums";
|
|
13
13
|
|
|
14
14
|
export declare class CommentElement {
|
|
15
15
|
/**
|
|
@@ -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>;
|
|
@@ -953,6 +953,11 @@ export declare class CommentElement {
|
|
|
953
953
|
*/
|
|
954
954
|
public addCommentAnnotation: (request: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
|
|
955
955
|
|
|
956
|
+
/**
|
|
957
|
+
* To publish comment annotation
|
|
958
|
+
*/
|
|
959
|
+
public publishCommentAnnotation: (request: PublishCommentAnnotationRequest) => Promise<PublishCommentAnnotationEvent | null>;
|
|
960
|
+
|
|
956
961
|
/**
|
|
957
962
|
* To approve comment annotation
|
|
958
963
|
*/
|
|
@@ -1173,6 +1178,36 @@ export declare class CommentElement {
|
|
|
1173
1178
|
*/
|
|
1174
1179
|
public disableFilterCommentsOnDom: () => void;
|
|
1175
1180
|
|
|
1181
|
+
/**
|
|
1182
|
+
* To enable reply avatars
|
|
1183
|
+
*/
|
|
1184
|
+
public enableReplyAvatars: () => void;
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* To disable reply avatars
|
|
1188
|
+
*/
|
|
1189
|
+
public disableReplyAvatars: () => void;
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* To set max reply avatars
|
|
1193
|
+
*/
|
|
1194
|
+
public setMaxReplyAvatars: (maxReplyAvatars: number) => void;
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* To set sidebar button count type
|
|
1198
|
+
*/
|
|
1199
|
+
public setSidebarButtonCountType: (type: SidebarButtonCountType) => void;
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* To enable filter ghost comments in sidebar
|
|
1203
|
+
*/
|
|
1204
|
+
public enableFilterGhostCommentsInSidebar: () => void;
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* To disable filter ghost comments in sidebar
|
|
1208
|
+
*/
|
|
1209
|
+
public disableFilterGhostCommentsInSidebar: () => void;
|
|
1210
|
+
|
|
1176
1211
|
constructor();
|
|
1177
1212
|
/**
|
|
1178
1213
|
* Subscribe to comments on the current document.
|
|
@@ -1288,7 +1323,7 @@ export declare class CommentElement {
|
|
|
1288
1323
|
|
|
1289
1324
|
/**
|
|
1290
1325
|
* Subscribe to comment mode change.
|
|
1291
|
-
*
|
|
1326
|
+
*
|
|
1292
1327
|
* Returns Observable<boolean>.
|
|
1293
1328
|
*/
|
|
1294
1329
|
private _onCommentModeChange;
|
|
@@ -1435,7 +1470,7 @@ export declare class CommentElement {
|
|
|
1435
1470
|
|
|
1436
1471
|
/**
|
|
1437
1472
|
* @description Sets custom status filters
|
|
1438
|
-
* @param statuses
|
|
1473
|
+
* @param statuses
|
|
1439
1474
|
*/
|
|
1440
1475
|
private _setCustomStatus;
|
|
1441
1476
|
|
|
@@ -1483,7 +1518,7 @@ export declare class CommentElement {
|
|
|
1483
1518
|
|
|
1484
1519
|
/**
|
|
1485
1520
|
* @description Sets the comment context provider
|
|
1486
|
-
* @param provider
|
|
1521
|
+
* @param provider
|
|
1487
1522
|
*/
|
|
1488
1523
|
private _setContextProvider;
|
|
1489
1524
|
|
|
@@ -1728,7 +1763,7 @@ export declare class CommentElement {
|
|
|
1728
1763
|
*/
|
|
1729
1764
|
private _disableRecordingSummary;
|
|
1730
1765
|
|
|
1731
|
-
/**
|
|
1766
|
+
/**
|
|
1732
1767
|
* To enable recording transcription
|
|
1733
1768
|
*/
|
|
1734
1769
|
private _enableRecordingTranscription;
|
|
@@ -2023,7 +2058,7 @@ export declare class CommentElement {
|
|
|
2023
2058
|
*/
|
|
2024
2059
|
private _disableQueryParamsComments;
|
|
2025
2060
|
|
|
2026
|
-
/**
|
|
2061
|
+
/**
|
|
2027
2062
|
* To enable comment sidebar action button click
|
|
2028
2063
|
*/
|
|
2029
2064
|
private _onCommentSidebarActionButtonClick;
|
|
@@ -2106,6 +2141,11 @@ export declare class CommentElement {
|
|
|
2106
2141
|
*/
|
|
2107
2142
|
private _addCommentAnnotation;
|
|
2108
2143
|
|
|
2144
|
+
/**
|
|
2145
|
+
* To publish comment annotation
|
|
2146
|
+
*/
|
|
2147
|
+
private _publishCommentAnnotation;
|
|
2148
|
+
|
|
2109
2149
|
/**
|
|
2110
2150
|
* To approve comment annotation
|
|
2111
2151
|
*/
|
|
@@ -2325,4 +2365,34 @@ export declare class CommentElement {
|
|
|
2325
2365
|
* To disable filter comments on dom
|
|
2326
2366
|
*/
|
|
2327
2367
|
private _disableFilterCommentsOnDom;
|
|
2368
|
+
|
|
2369
|
+
/**
|
|
2370
|
+
* To enable reply avatars
|
|
2371
|
+
*/
|
|
2372
|
+
private _enableReplyAvatars;
|
|
2373
|
+
|
|
2374
|
+
/**
|
|
2375
|
+
* To disable reply avatars
|
|
2376
|
+
*/
|
|
2377
|
+
private _disableReplyAvatars;
|
|
2378
|
+
|
|
2379
|
+
/**
|
|
2380
|
+
* To set max reply avatars
|
|
2381
|
+
*/
|
|
2382
|
+
private _setMaxReplyAvatars;
|
|
2383
|
+
|
|
2384
|
+
/**
|
|
2385
|
+
* To set sidebar button count type
|
|
2386
|
+
*/
|
|
2387
|
+
private _setSidebarButtonCountType;
|
|
2388
|
+
|
|
2389
|
+
/**
|
|
2390
|
+
* To enable filter ghost comments in sidebar
|
|
2391
|
+
*/
|
|
2392
|
+
private _enableFilterGhostCommentsInSidebar;
|
|
2393
|
+
|
|
2394
|
+
/**
|
|
2395
|
+
* To disable filter ghost comments in sidebar
|
|
2396
|
+
*/
|
|
2397
|
+
private _disableFilterGhostCommentsInSidebar;
|
|
2328
2398
|
}
|
|
@@ -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,8 +1,8 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { SingleEditorConfig, UserEditorAccess, EditorAccessTimer, LiveStateDataConfig, SetLiveStateDataConfig } from '../data/live-state-data.data.model';
|
|
3
|
-
import { User } from '../data/user.data.model';
|
|
4
2
|
import { ServerConnectionState } from '../../utils/enums';
|
|
3
|
+
import { EditorAccessTimer, LiveStateDataConfig, LiveStateSingleEditorExternalUserPresence, SetLiveStateDataConfig, SetUserAsEditorResponse, SingleEditorConfig, UserEditorAccess } from '../data/live-state-data.data.model';
|
|
5
4
|
import { LiveStateEventTypesMap } from '../data/live-state-events.data.model';
|
|
5
|
+
import { User } from '../data/user.data.model';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Represents the synchronization element for live state.
|
|
@@ -54,7 +54,7 @@ export declare class LiveStateSyncElement {
|
|
|
54
54
|
/**
|
|
55
55
|
* Sets the current user as an editor.
|
|
56
56
|
*/
|
|
57
|
-
setUserAsEditor: () => void
|
|
57
|
+
setUserAsEditor: () => Promise<SetUserAsEditorResponse | void>;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Resets the user access.
|
|
@@ -142,6 +142,11 @@ export declare class LiveStateSyncElement {
|
|
|
142
142
|
*/
|
|
143
143
|
onServerConnectionStateChange: () => Observable<ServerConnectionState>;
|
|
144
144
|
|
|
145
|
+
/**
|
|
146
|
+
* To update user presence for single editor mode
|
|
147
|
+
*/
|
|
148
|
+
updateUserPresence: (userPresence: LiveStateSingleEditorExternalUserPresence) => void;
|
|
149
|
+
|
|
145
150
|
/**
|
|
146
151
|
* Subscribe to live state events
|
|
147
152
|
*/
|
|
@@ -285,6 +290,11 @@ export declare class LiveStateSyncElement {
|
|
|
285
290
|
*/
|
|
286
291
|
private _onServerConnectionStateChange;
|
|
287
292
|
|
|
293
|
+
/**
|
|
294
|
+
* To update user presence for single editor mode
|
|
295
|
+
*/
|
|
296
|
+
private _updateUserPresence;
|
|
297
|
+
|
|
288
298
|
/**
|
|
289
299
|
* Subscribe to live state events
|
|
290
300
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
|
-
import { Notification,
|
|
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
|
+
}
|