@veltdev/types-dev 5.0.2-beta.38 → 5.0.2-beta.4
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 +1 -20
- package/app/models/data/attachment-resolver.data.model.d.ts +2 -2
- package/app/models/data/attachment.model.d.ts +0 -1
- package/app/models/data/autocomplete.data.model.d.ts +3 -3
- package/app/models/data/base-metadata.data.model.d.ts +0 -3
- package/app/models/data/comment-actions.data.model.d.ts +0 -4
- package/app/models/data/comment-annotation.data.model.d.ts +2 -10
- package/app/models/data/comment-events.data.model.d.ts +2 -15
- package/app/models/data/comment-resolver.data.model.d.ts +3 -3
- package/app/models/data/config.data.model.d.ts +0 -26
- package/app/models/data/core-events.data.model.d.ts +1 -74
- package/app/models/data/crdt.data.model.d.ts +0 -51
- package/app/models/data/document.data.model.d.ts +0 -2
- package/app/models/data/live-state-events.data.model.d.ts +0 -6
- package/app/models/data/notification.model.d.ts +0 -4
- package/app/models/data/provider.data.model.d.ts +1 -8
- package/app/models/data/reaction-resolver.data.model.d.ts +3 -3
- package/app/models/data/recorder-annotation.data.model.d.ts +0 -11
- package/app/models/data/resolver.data.model.d.ts +0 -1
- package/app/models/data/user-resolver.data.model.d.ts +1 -17
- package/app/models/data/user.data.model.d.ts +0 -2
- package/app/models/element/comment-element.model.d.ts +20 -9
- package/app/models/element/crdt-element.model.d.ts +1 -88
- package/app/utils/constants.d.ts +0 -109
- package/app/utils/enums.d.ts +3 -24
- package/models.d.ts +0 -4
- package/package.json +1 -1
- package/types.d.ts +0 -1
- package/app/models/data/activity-resolver.data.model.d.ts +0 -27
- package/app/models/data/activity.data.model.d.ts +0 -179
- package/app/models/data/notification-resolver.data.model.d.ts +0 -39
- package/app/models/data/recorder-resolver.data.model.d.ts +0 -58
- package/app/models/element/activity-element.model.d.ts +0 -33
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { CrdtGetDataQuery,
|
|
2
|
+
import { CrdtGetDataQuery, CrdtGetVersionQuery, CrdtOnDataChangeQuery, CrdtOnPresenceChangeQuery, CrdtOnRegisteredUserChangeQuery, CrdtOnStateChangeQuery, CrdtRegisterSyncUserQuery, CrdtSetPresenceQuery, CrdtSaveVersionQuery, CrdtUpdateDataQuery, CrdtUpdateStateQuery } from "../data/crdt.data.model";
|
|
3
3
|
import { CrdtEventTypesMap } from "../data/crdt-events.data.model";
|
|
4
4
|
|
|
5
5
|
export declare class CrdtElement {
|
|
@@ -80,12 +80,6 @@ export declare class CrdtElement {
|
|
|
80
80
|
*/
|
|
81
81
|
getVersion: (getVersionQuery: CrdtGetVersionQuery) => Promise<any>;
|
|
82
82
|
|
|
83
|
-
/**
|
|
84
|
-
* Get all versions of a specific CRDT document
|
|
85
|
-
* @param id Document ID
|
|
86
|
-
*/
|
|
87
|
-
getVersions: (getVersionsQuery: CrdtGetVersionsQuery) => Promise<any>;
|
|
88
|
-
|
|
89
83
|
/**
|
|
90
84
|
* Enable webhook
|
|
91
85
|
*/
|
|
@@ -102,51 +96,6 @@ export declare class CrdtElement {
|
|
|
102
96
|
*/
|
|
103
97
|
setWebhookDebounceTime: (time: number) => void;
|
|
104
98
|
|
|
105
|
-
/**
|
|
106
|
-
* Push a lib0-encoded message to the unified message stream.
|
|
107
|
-
* Uses Firebase push() for chronologically-ordered keys.
|
|
108
|
-
* Carries both sync (type 0) and awareness (type 1) messages.
|
|
109
|
-
* @param pushMessageQuery - contains id, data (encoded bytes), yjsClientId (Y.Doc client ID), optional messageType and eventData
|
|
110
|
-
*/
|
|
111
|
-
pushMessage: (pushMessageQuery: CrdtPushMessageQuery) => Promise<void>;
|
|
112
|
-
/**
|
|
113
|
-
* Subscribe to the unified message stream for real-time sync.
|
|
114
|
-
* Emits each new message individually as it arrives (streaming pattern).
|
|
115
|
-
* Returns an unsubscribe function.
|
|
116
|
-
* @param onMessageQuery - contains id, callback, and optional afterTs for filtering
|
|
117
|
-
*/
|
|
118
|
-
onMessage: (onMessageQuery: CrdtOnMessageQuery) => () => void;
|
|
119
|
-
/**
|
|
120
|
-
* Fetch all messages after a given timestamp (one-time read).
|
|
121
|
-
* Used for message replay during initial load (y-redis pattern).
|
|
122
|
-
* @param getMessagesQuery - contains id and optional afterTs
|
|
123
|
-
*/
|
|
124
|
-
getMessages: (getMessagesQuery: CrdtGetMessagesQuery) => Promise<CrdtMessageData[]>;
|
|
125
|
-
/**
|
|
126
|
-
* Get the latest full-state snapshot for a document.
|
|
127
|
-
* Used as the baseline for message replay during initial load.
|
|
128
|
-
* @param getSnapshotQuery - contains id
|
|
129
|
-
*/
|
|
130
|
-
getSnapshot: (getSnapshotQuery: CrdtGetSnapshotQuery) => Promise<CrdtSnapshotData | null>;
|
|
131
|
-
/**
|
|
132
|
-
* Save a full-state snapshot (state + vector) for fast initial load.
|
|
133
|
-
* Called periodically to create checkpoints, enabling message pruning.
|
|
134
|
-
* @param saveSnapshotQuery - contains id, state (Y.Doc update), and vector (state vector)
|
|
135
|
-
*/
|
|
136
|
-
saveSnapshot: (saveSnapshotQuery: CrdtSaveSnapshotQuery) => Promise<void>;
|
|
137
|
-
/**
|
|
138
|
-
* Remove messages older than the given timestamp from the message stream.
|
|
139
|
-
* Called after saving a snapshot to keep the message stream bounded.
|
|
140
|
-
* @param pruneMessagesQuery - contains id and beforeTs
|
|
141
|
-
*/
|
|
142
|
-
pruneMessages: (pruneMessagesQuery: CrdtPruneMessagesQuery) => Promise<void>;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* To set activity debounce time for batching CRDT edits (Default value is 10 minutes)
|
|
146
|
-
* @param time debounce time in milliseconds (minimum: 10 seconds)
|
|
147
|
-
*/
|
|
148
|
-
setActivityDebounceTime: (time: number) => void;
|
|
149
|
-
|
|
150
99
|
/**
|
|
151
100
|
* Subscribe to crdt actions
|
|
152
101
|
* @param action Action to subscribe to
|
|
@@ -239,36 +188,6 @@ export declare class CrdtElement {
|
|
|
239
188
|
*/
|
|
240
189
|
private _getVersions;
|
|
241
190
|
|
|
242
|
-
/**
|
|
243
|
-
* Push a message to the unified message stream
|
|
244
|
-
*/
|
|
245
|
-
private _pushMessage;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Subscribe to the unified message stream
|
|
249
|
-
*/
|
|
250
|
-
private _onMessage;
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Fetch all messages after a given timestamp
|
|
254
|
-
*/
|
|
255
|
-
private _getMessages;
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Get the latest snapshot for a document
|
|
259
|
-
*/
|
|
260
|
-
private _getSnapshot;
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Save a full-state snapshot
|
|
264
|
-
*/
|
|
265
|
-
private _saveSnapshot;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Remove messages older than a given timestamp
|
|
269
|
-
*/
|
|
270
|
-
private _pruneMessages;
|
|
271
|
-
|
|
272
191
|
/**
|
|
273
192
|
* Enable webhook
|
|
274
193
|
*/
|
|
@@ -285,12 +204,6 @@ export declare class CrdtElement {
|
|
|
285
204
|
*/
|
|
286
205
|
private _setWebhookDebounceTime;
|
|
287
206
|
|
|
288
|
-
/**
|
|
289
|
-
* Set activity debounce time for batching CRDT edits
|
|
290
|
-
* @param time debounce time in milliseconds (minimum: 10 seconds)
|
|
291
|
-
*/
|
|
292
|
-
private _setActivityDebounceTime;
|
|
293
|
-
|
|
294
207
|
/**
|
|
295
208
|
* Subscribe to crdt actions
|
|
296
209
|
* @param action Action to subscribe to
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -57,8 +57,6 @@ export declare class Constants {
|
|
|
57
57
|
static FIREBASE_PARTIAL_PATH_NOTIFICATIONS: string;
|
|
58
58
|
static FIREBASE_PARTIAL_PATH_ORGANIZATION_NOTIFICATIONS: string;
|
|
59
59
|
static FIREBASE_PARTIAL_PATH_LAST_NOTIFICATION_TIMESTAMP: string;
|
|
60
|
-
static FIREBASE_PARTIAL_PATH_ACTIVITIES: string;
|
|
61
|
-
static FIREBASE_PARTIAL_PATH_LAST_ACTIVITY_TIMESTAMP: string;
|
|
62
60
|
static FIREBASE_PARTIAL_PATH_HEARTBEAT: string;
|
|
63
61
|
static FIREBASE_PARTIAL_PATH_HEARTBEAT_BY_DOCUMENT: string;
|
|
64
62
|
static FIREBASE_PARTIAL_PATH_USERS: string;
|
|
@@ -208,33 +206,6 @@ export declare class Constants {
|
|
|
208
206
|
VELT_TEXT_HIGHLIGHT: string;
|
|
209
207
|
VELT_COMMENT_TEXT_PORTAL: string;
|
|
210
208
|
VELT_COMMENTS_SIDEBAR: string;
|
|
211
|
-
VELT_COMMENTS_SIDEBAR_V2: string;
|
|
212
|
-
VELT_COMMENT_SIDEBAR_SKELETON_V2: string;
|
|
213
|
-
VELT_COMMENT_SIDEBAR_PANEL_V2: string;
|
|
214
|
-
VELT_COMMENT_SIDEBAR_LIST_V2: string;
|
|
215
|
-
VELT_COMMENT_SIDEBAR_LIST_ITEM_V2: string;
|
|
216
|
-
VELT_COMMENT_SIDEBAR_FILTER_DROPDOWN_CONTENT_LIST_V2: string;
|
|
217
|
-
VELT_COMMENT_SIDEBAR_FILTER_DROPDOWN_CONTENT_LIST_CATEGORY_V2: string;
|
|
218
|
-
VELT_COMMENT_SIDEBAR_FILTER_DROPDOWN_CONTENT_LIST_CATEGORY_CONTENT_V2: string;
|
|
219
|
-
VELT_COMMENT_SIDEBAR_FILTER_DROPDOWN_CONTENT_LIST_ITEM_V2: string;
|
|
220
|
-
VELT_COMMENT_SIDEBAR_FILTER_DROPDOWN_CONTENT_LIST_ITEM_INDICATOR_V2: string;
|
|
221
|
-
VELT_COMMENT_SIDEBAR_FILTER_DROPDOWN_CONTENT_LIST_ITEM_LABEL_V2: string;
|
|
222
|
-
VELT_COMMENT_SIDEBAR_MINIMAL_ACTIONS_DROPDOWN_V2: string;
|
|
223
|
-
VELT_COMMENT_SIDEBAR_MINIMAL_ACTIONS_DROPDOWN_TRIGGER_V2: string;
|
|
224
|
-
VELT_COMMENT_SIDEBAR_MINIMAL_ACTIONS_DROPDOWN_CONTENT_V2: string;
|
|
225
|
-
VELT_COMMENT_SIDEBAR_MINIMAL_ACTIONS_DROPDOWN_CONTENT_MARK_ALL_READ_V2: string;
|
|
226
|
-
VELT_COMMENT_SIDEBAR_MINIMAL_ACTIONS_DROPDOWN_CONTENT_MARK_ALL_RESOLVED_V2: string;
|
|
227
|
-
VELT_COMMENT_SIDEBAR_FILTER_DROPDOWN_V2: string;
|
|
228
|
-
VELT_COMMENT_SIDEBAR_FILTER_DROPDOWN_TRIGGER_V2: string;
|
|
229
|
-
VELT_COMMENT_SIDEBAR_FILTER_DROPDOWN_CONTENT_V2: string;
|
|
230
|
-
VELT_COMMENT_SIDEBAR_HEADER_V2: string;
|
|
231
|
-
VELT_COMMENT_SIDEBAR_CLOSE_BUTTON_V2: string;
|
|
232
|
-
VELT_COMMENT_SIDEBAR_EMPTY_PLACEHOLDER_V2: string;
|
|
233
|
-
VELT_COMMENT_SIDEBAR_RESET_FILTER_BUTTON_V2: string;
|
|
234
|
-
VELT_COMMENT_SIDEBAR_PAGE_MODE_COMPOSER_V2: string;
|
|
235
|
-
VELT_COMMENT_SIDEBAR_FOCUSED_THREAD_V2: string;
|
|
236
|
-
VELT_COMMENT_SIDEBAR_FOCUSED_THREAD_BACK_BUTTON_V2: string;
|
|
237
|
-
VELT_COMMENT_SIDEBAR_FOCUSED_THREAD_DIALOG_CONTAINER_V2: string;
|
|
238
209
|
VELT_COMMENT_BUBBLE: string;
|
|
239
210
|
VELT_COMMENT_THREAD: string;
|
|
240
211
|
VELT_COMMENT_PIN: string;
|
|
@@ -242,29 +213,6 @@ export declare class Constants {
|
|
|
242
213
|
VELT_CHART_COMMENT: string;
|
|
243
214
|
VELT_CANVAS_COMMENT: string;
|
|
244
215
|
VELT_INLINE_COMMENTS_SECTION: string;
|
|
245
|
-
VELT_INLINE_COMMENTS_SECTION_SKELETON: string;
|
|
246
|
-
VELT_INLINE_COMMENTS_SECTION_PANEL: string;
|
|
247
|
-
VELT_INLINE_COMMENTS_SECTION_LIST: string;
|
|
248
|
-
VELT_INLINE_COMMENTS_SECTION_COMPOSER_CONTAINER: string;
|
|
249
|
-
VELT_INLINE_COMMENTS_SECTION_COMMENT_COUNT: string;
|
|
250
|
-
VELT_INLINE_COMMENTS_SECTION_SORTING_DROPDOWN: string;
|
|
251
|
-
VELT_INLINE_COMMENTS_SECTION_SORTING_DROPDOWN_TRIGGER: string;
|
|
252
|
-
VELT_INLINE_COMMENTS_SECTION_SORTING_DROPDOWN_TRIGGER_NAME: string;
|
|
253
|
-
VELT_INLINE_COMMENTS_SECTION_SORTING_DROPDOWN_TRIGGER_ICON: string;
|
|
254
|
-
VELT_INLINE_COMMENTS_SECTION_SORTING_DROPDOWN_CONTENT: string;
|
|
255
|
-
VELT_INLINE_COMMENTS_SECTION_SORTING_DROPDOWN_CONTENT_ITEM: string;
|
|
256
|
-
VELT_INLINE_COMMENTS_SECTION_SORTING_DROPDOWN_CONTENT_ITEM_ICON: string;
|
|
257
|
-
VELT_INLINE_COMMENTS_SECTION_SORTING_DROPDOWN_CONTENT_ITEM_TICK: string;
|
|
258
|
-
VELT_INLINE_COMMENTS_SECTION_SORTING_DROPDOWN_CONTENT_ITEM_NAME: string;
|
|
259
|
-
VELT_INLINE_COMMENTS_SECTION_FILTER_DROPDOWN: string;
|
|
260
|
-
VELT_INLINE_COMMENTS_SECTION_FILTER_DROPDOWN_TRIGGER: string;
|
|
261
|
-
VELT_INLINE_COMMENTS_SECTION_FILTER_DROPDOWN_TRIGGER_NAME: string;
|
|
262
|
-
VELT_INLINE_COMMENTS_SECTION_FILTER_DROPDOWN_TRIGGER_ARROW: string;
|
|
263
|
-
VELT_INLINE_COMMENTS_SECTION_FILTER_DROPDOWN_CONTENT: string;
|
|
264
|
-
VELT_INLINE_COMMENTS_SECTION_FILTER_DROPDOWN_CONTENT_LIST: string;
|
|
265
|
-
VELT_INLINE_COMMENTS_SECTION_FILTER_DROPDOWN_CONTENT_LIST_ITEM: string;
|
|
266
|
-
VELT_INLINE_COMMENTS_SECTION_FILTER_DROPDOWN_CONTENT_LIST_ITEM_CHECKBOX: string;
|
|
267
|
-
VELT_INLINE_COMMENTS_SECTION_FILTER_DROPDOWN_CONTENT_LIST_ITEM_LABEL: string;
|
|
268
216
|
VELT_COMMENTS_MINIMAP: string;
|
|
269
217
|
VELT_HIGHLIGHT_USER_TEXT: string;
|
|
270
218
|
VELT_AUDIO_HUDDLE: string;
|
|
@@ -296,64 +244,7 @@ export declare class Constants {
|
|
|
296
244
|
VELT_NOTIFICATIONS_HISTORY_PANEL: string;
|
|
297
245
|
VELT_WIREFRAME: string;
|
|
298
246
|
VELT_AUTOCOMPLETE: string;
|
|
299
|
-
VELT_AUTOCOMPLETE_PANEL: string;
|
|
300
|
-
VELT_AUTOCOMPLETE_OPTION: string;
|
|
301
|
-
VELT_AUTOCOMPLETE_OPTION_ICON: string;
|
|
302
|
-
VELT_AUTOCOMPLETE_OPTION_NAME: string;
|
|
303
|
-
VELT_AUTOCOMPLETE_OPTION_DESCRIPTION: string;
|
|
304
|
-
VELT_AUTOCOMPLETE_OPTION_ERROR_ICON: string;
|
|
305
|
-
VELT_AUTOCOMPLETE_GROUP_OPTION: string;
|
|
306
|
-
VELT_AUTOCOMPLETE_TOOL: string;
|
|
307
|
-
VELT_AUTOCOMPLETE_EMPTY: string;
|
|
308
247
|
VELT_AUTOCOMPLETE_CHIP: string;
|
|
309
|
-
VELT_AUTOCOMPLETE_CHIP_TOOLTIP: string;
|
|
310
|
-
VELT_AUTOCOMPLETE_CHIP_TOOLTIP_ICON: string;
|
|
311
|
-
VELT_AUTOCOMPLETE_CHIP_TOOLTIP_NAME: string;
|
|
312
|
-
VELT_AUTOCOMPLETE_CHIP_TOOLTIP_DESCRIPTION: string;
|
|
313
|
-
VELT_AUTOCOMPLETE_CONTEXT_WRAPPER: string;
|
|
314
|
-
VELT_ACTIVITY_LOG: string;
|
|
315
|
-
VELT_ACTIVITY_LOG_HEADER: string;
|
|
316
|
-
VELT_ACTIVITY_LOG_HEADER_TITLE: string;
|
|
317
|
-
VELT_ACTIVITY_LOG_HEADER_CLOSE_BUTTON: string;
|
|
318
|
-
VELT_ACTIVITY_LOG_HEADER_FILTER: string;
|
|
319
|
-
VELT_ACTIVITY_LOG_HEADER_FILTER_TRIGGER: string;
|
|
320
|
-
VELT_ACTIVITY_LOG_HEADER_FILTER_TRIGGER_LABEL: string;
|
|
321
|
-
VELT_ACTIVITY_LOG_HEADER_FILTER_TRIGGER_ICON: string;
|
|
322
|
-
VELT_ACTIVITY_LOG_HEADER_FILTER_CONTENT: string;
|
|
323
|
-
VELT_ACTIVITY_LOG_HEADER_FILTER_CONTENT_ITEM: string;
|
|
324
|
-
VELT_ACTIVITY_LOG_HEADER_FILTER_CONTENT_ITEM_LABEL: string;
|
|
325
|
-
VELT_ACTIVITY_LOG_HEADER_FILTER_CONTENT_ITEM_ICON: string;
|
|
326
|
-
VELT_ACTIVITY_LOG_LOADING: string;
|
|
327
|
-
VELT_ACTIVITY_LOG_LIST: string;
|
|
328
|
-
VELT_ACTIVITY_LOG_LIST_DATE_GROUP: string;
|
|
329
|
-
VELT_ACTIVITY_LOG_LIST_DATE_GROUP_LABEL: string;
|
|
330
|
-
VELT_ACTIVITY_LOG_LIST_ITEM: string;
|
|
331
|
-
VELT_ACTIVITY_LOG_LIST_ITEM_ICON: string;
|
|
332
|
-
VELT_ACTIVITY_LOG_LIST_ITEM_AVATAR: string;
|
|
333
|
-
VELT_ACTIVITY_LOG_LIST_ITEM_CONTENT: string;
|
|
334
|
-
VELT_ACTIVITY_LOG_LIST_ITEM_CONTENT_USER: string;
|
|
335
|
-
VELT_ACTIVITY_LOG_LIST_ITEM_CONTENT_ACTION: string;
|
|
336
|
-
VELT_ACTIVITY_LOG_LIST_ITEM_CONTENT_TARGET: string;
|
|
337
|
-
VELT_ACTIVITY_LOG_LIST_ITEM_CONTENT_DETAIL: string;
|
|
338
|
-
VELT_ACTIVITY_LOG_LIST_ITEM_TIME: string;
|
|
339
|
-
VELT_ACTIVITY_LOG_LIST_SHOW_MORE: string;
|
|
340
|
-
VELT_ACTIVITY_LOG_EMPTY: string;
|
|
341
|
-
VELT_ACTIVITY_LOG_CONTEXT_WRAPPER: string;
|
|
342
|
-
VELT_COMMENT_DIALOG_VISIBILITY_BANNER: string;
|
|
343
|
-
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_ICON: string;
|
|
344
|
-
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_TEXT: string;
|
|
345
|
-
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN: string;
|
|
346
|
-
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN_TRIGGER: string;
|
|
347
|
-
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN_TRIGGER_LABEL: string;
|
|
348
|
-
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN_TRIGGER_AVATAR_LIST: string;
|
|
349
|
-
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN_TRIGGER_AVATAR_LIST_ITEM: string;
|
|
350
|
-
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN_TRIGGER_AVATAR_LIST_REMAINING_COUNT: string;
|
|
351
|
-
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN_TRIGGER_ICON: string;
|
|
352
|
-
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN_CONTENT: string;
|
|
353
|
-
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN_CONTENT_ITEM: string;
|
|
354
|
-
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN_CONTENT_ITEM_ICON: string;
|
|
355
|
-
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN_CONTENT_ITEM_LABEL: string;
|
|
356
|
-
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN_CONTENT_USER_PICKER: string;
|
|
357
248
|
VELT_COMMENT_COMPOSER: string;
|
|
358
249
|
VELT_SKELETON_LOADER: string;
|
|
359
250
|
VELT_SHADOW_DOM_INTERNAL: string;
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -26,11 +26,7 @@ export declare enum ResolverActions {
|
|
|
26
26
|
REACTION_ADD = "reaction.add",
|
|
27
27
|
REACTION_DELETE = "reaction.delete",
|
|
28
28
|
ATTACHMENT_ADD = "attachment.add",
|
|
29
|
-
ATTACHMENT_DELETE = "attachment.delete"
|
|
30
|
-
RECORDER_ANNOTATION_ADD = "recorder_annotation.add",
|
|
31
|
-
RECORDER_ANNOTATION_UPDATE = "recorder_annotation.update",
|
|
32
|
-
RECORDER_ANNOTATION_DELETE = "recorder_annotation.delete",
|
|
33
|
-
ACTIVITY_SAVE = "activity.save"
|
|
29
|
+
ATTACHMENT_DELETE = "attachment.delete"
|
|
34
30
|
}
|
|
35
31
|
export declare const CommentEventTypes: {
|
|
36
32
|
readonly ADD_COMMENT_ANNOTATION: "addCommentAnnotation";
|
|
@@ -66,12 +62,9 @@ export declare const CommentEventTypes: {
|
|
|
66
62
|
readonly COMMENT_PIN_CLICKED: "commentPinClicked";
|
|
67
63
|
readonly COMMENT_BUBBLE_CLICKED: "commentBubbleClicked";
|
|
68
64
|
readonly COMMENT_TOOL_CLICK: "commentToolClick";
|
|
69
|
-
readonly COMMENT_TOOL_CLICKED: "commentToolClicked";
|
|
70
65
|
readonly SIDEBAR_BUTTON_CLICK: "sidebarButtonClick";
|
|
71
|
-
readonly SIDEBAR_BUTTON_CLICKED: "sidebarButtonClicked";
|
|
72
66
|
readonly ATTACHMENT_DOWNLOAD_CLICKED: "attachmentDownloadClicked";
|
|
73
67
|
readonly COMMENT_SAVED: "commentSaved";
|
|
74
|
-
readonly COMMENT_SAVE_TRIGGERED: "commentSaveTriggered";
|
|
75
68
|
readonly VISIBILITY_OPTION_CLICKED: "visibilityOptionClicked";
|
|
76
69
|
};
|
|
77
70
|
export declare const RecorderEventTypes: {
|
|
@@ -93,9 +86,6 @@ export declare const CoreEventTypes: {
|
|
|
93
86
|
readonly COMMENT_RESOLVER: "commentResolver";
|
|
94
87
|
readonly ATTACHMENT_RESOLVER: "attachmentResolver";
|
|
95
88
|
readonly REACTION_RESOLVER: "reactionResolver";
|
|
96
|
-
readonly RECORDER_RESOLVER: "recorderResolver";
|
|
97
|
-
readonly NOTIFICATION_RESOLVER: "notificationResolver";
|
|
98
|
-
readonly ACTIVITY_RESOLVER: "activityResolver";
|
|
99
89
|
readonly VELT_BUTTON_CLICK: "veltButtonClick";
|
|
100
90
|
readonly USER_UPDATE: "userUpdate";
|
|
101
91
|
readonly INIT_UPDATE: "initUpdate";
|
|
@@ -181,8 +171,7 @@ export declare enum Features {
|
|
|
181
171
|
REWRITER = "rewriter",
|
|
182
172
|
LIVE_SELECTION = "liveSelection",
|
|
183
173
|
NOTIFICATION = "notification",
|
|
184
|
-
REACTION = "reaction"
|
|
185
|
-
ACTIVITY = "activity"
|
|
174
|
+
REACTION = "reaction"
|
|
186
175
|
}
|
|
187
176
|
export declare enum AnalyticsFeatures {
|
|
188
177
|
AREA = "area",
|
|
@@ -204,7 +193,7 @@ export declare enum AnalyticsFeatures {
|
|
|
204
193
|
INLINE_COMMENT = "inlineComment",
|
|
205
194
|
COMMENT_SIDEBAR = "commentSidebar"
|
|
206
195
|
}
|
|
207
|
-
export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag' | 'liveSelection' | 'notification' | 'reaction' | 'multiThread'
|
|
196
|
+
export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag' | 'liveSelection' | 'notification' | 'reaction' | 'multiThread';
|
|
208
197
|
export type AssignToType = 'dropdown' | 'checkbox';
|
|
209
198
|
export declare enum DeviceType {
|
|
210
199
|
DESKTOP = "Desktop",
|
|
@@ -323,13 +312,3 @@ export type NotificationSettingsItemType = 'ALL' | 'MINE' | 'NONE' | string;
|
|
|
323
312
|
* Type for notification settings layout
|
|
324
313
|
*/
|
|
325
314
|
export type NotificationSettingsLayout = 'accordion' | 'dropdown';
|
|
326
|
-
/**
|
|
327
|
-
* Enum for comment visibility options in the visibility banner dropdown
|
|
328
|
-
*/
|
|
329
|
-
export declare enum CommentVisibilityOption {
|
|
330
|
-
RESTRICTED_SELF = "restrictedSelf",
|
|
331
|
-
RESTRICTED_SELECTED_PEOPLE = "restrictedSelectedPeople",
|
|
332
|
-
ORGANIZATION_PRIVATE = "organizationPrivate",
|
|
333
|
-
PUBLIC = "public"
|
|
334
|
-
}
|
|
335
|
-
export type CommentVisibilityOptionType = `${CommentVisibilityOption}`;
|
package/models.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from './app/utils/enums';
|
|
2
2
|
export * from './app/models/data/anchor-record.data.model';
|
|
3
3
|
export * from './app/models/data/attachment.model';
|
|
4
|
-
export * from './app/models/data/activity.data.model';
|
|
5
4
|
export * from './app/models/data/area-annotation.data.model';
|
|
6
5
|
export * from './app/models/data/arrow-annotation.data.model';
|
|
7
6
|
export * from './app/models/data/base-metadata.data.model';
|
|
@@ -38,7 +37,6 @@ export * from './app/models/data/location.model';
|
|
|
38
37
|
export * from './app/models/data/media-preview-config.data.model';
|
|
39
38
|
export * from './app/models/data/multi-thread.data.model';
|
|
40
39
|
export * from './app/models/data/notification.model';
|
|
41
|
-
export * from './app/models/data/notification-resolver.data.model';
|
|
42
40
|
export * from './app/models/data/notifications-events.data.model';
|
|
43
41
|
export * from './app/models/data/page-info.model';
|
|
44
42
|
export * from './app/models/data/permission.data.model';
|
|
@@ -73,9 +71,7 @@ export * from './app/models/data/views.data.model';
|
|
|
73
71
|
export * from './app/models/data/autocomplete.data.model';
|
|
74
72
|
export * from './app/models/data/reaction-annotation.data.model';
|
|
75
73
|
export * from './app/models/data/reaction-resolver.data.model';
|
|
76
|
-
export * from './app/models/data/recorder-resolver.data.model';
|
|
77
74
|
export * from './app/models/data/attachment-resolver.data.model';
|
|
78
|
-
export * from './app/models/data/activity-resolver.data.model';
|
|
79
75
|
export * from './app/models/data/reaction.data.model';
|
|
80
76
|
export * from './app/models/data/organization-groups.data.model';
|
|
81
77
|
export * from './app/models/data/organization-metadata.model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/types-dev",
|
|
3
|
-
"version": "5.0.2-beta.
|
|
3
|
+
"version": "5.0.2-beta.4",
|
|
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
|
@@ -17,5 +17,4 @@ 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
19
|
export * from './app/models/element/crdt-element.model';
|
|
20
|
-
export * from './app/models/element/activity-element.model';
|
|
21
20
|
export * from './models';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BaseMetadata } from './base-metadata.data.model';
|
|
2
|
-
import { ActivityChanges } from './activity.data.model';
|
|
3
|
-
import { ResolverConfig, ResolverResponse } from './resolver.data.model';
|
|
4
|
-
export interface PartialActivityRecord {
|
|
5
|
-
id: string;
|
|
6
|
-
metadata?: BaseMetadata;
|
|
7
|
-
changes?: ActivityChanges;
|
|
8
|
-
entityData?: unknown;
|
|
9
|
-
entityTargetData?: unknown;
|
|
10
|
-
displayMessageTemplateData?: Record<string, unknown>;
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}
|
|
13
|
-
export interface ActivityAnnotationDataProvider {
|
|
14
|
-
get?: (request: GetActivityResolverRequest) => Promise<ResolverResponse<Record<string, PartialActivityRecord>>>;
|
|
15
|
-
save?: (request: SaveActivityResolverRequest) => Promise<ResolverResponse<undefined>>;
|
|
16
|
-
config?: ResolverConfig;
|
|
17
|
-
}
|
|
18
|
-
export interface GetActivityResolverRequest {
|
|
19
|
-
activityIds?: string[];
|
|
20
|
-
documentIds?: string[];
|
|
21
|
-
organizationId?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface SaveActivityResolverRequest {
|
|
24
|
-
activity: Record<string, PartialActivityRecord>;
|
|
25
|
-
event?: string;
|
|
26
|
-
metadata?: BaseMetadata;
|
|
27
|
-
}
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { BaseMetadata } from './base-metadata.data.model';
|
|
3
|
-
import { User } from './user.data.model';
|
|
4
|
-
/**
|
|
5
|
-
* Feature types that can generate activities.
|
|
6
|
-
*/
|
|
7
|
-
export type ActivityFeatureType = 'comment' | 'reaction' | 'recorder' | 'crdt' | 'custom';
|
|
8
|
-
/**
|
|
9
|
-
* Comment action type constants following the `entity_type.action` naming pattern.
|
|
10
|
-
* Annotation-level actions use `comment_annotation.*`, comment-level use `comment.*`.
|
|
11
|
-
*/
|
|
12
|
-
export declare const CommentActivityActionTypes: {
|
|
13
|
-
readonly ANNOTATION_ADD: "comment_annotation.add";
|
|
14
|
-
readonly ANNOTATION_DELETE: "comment_annotation.delete";
|
|
15
|
-
readonly COMMENT_ADD: "comment.add";
|
|
16
|
-
readonly COMMENT_UPDATE: "comment.update";
|
|
17
|
-
readonly COMMENT_DELETE: "comment.delete";
|
|
18
|
-
readonly STATUS_CHANGE: "comment_annotation.status_change";
|
|
19
|
-
readonly PRIORITY_CHANGE: "comment_annotation.priority_change";
|
|
20
|
-
readonly ASSIGN: "comment_annotation.assign";
|
|
21
|
-
readonly ACCESS_MODE_CHANGE: "comment_annotation.access_mode_change";
|
|
22
|
-
readonly CUSTOM_LIST_CHANGE: "comment_annotation.custom_list_change";
|
|
23
|
-
readonly APPROVE: "comment_annotation.approve";
|
|
24
|
-
readonly ACCEPT: "comment.accept";
|
|
25
|
-
readonly REJECT: "comment.reject";
|
|
26
|
-
readonly REACTION_ADD: "comment.reaction_add";
|
|
27
|
-
readonly REACTION_DELETE: "comment.reaction_delete";
|
|
28
|
-
readonly SUBSCRIBE: "comment_annotation.subscribe";
|
|
29
|
-
readonly UNSUBSCRIBE: "comment_annotation.unsubscribe";
|
|
30
|
-
};
|
|
31
|
-
export type CommentActivityActionType = typeof CommentActivityActionTypes[keyof typeof CommentActivityActionTypes];
|
|
32
|
-
/**
|
|
33
|
-
* Recorder action type constants following the `recording.*` naming pattern.
|
|
34
|
-
*/
|
|
35
|
-
export declare const RecorderActivityActionTypes: {
|
|
36
|
-
readonly RECORDING_ADD: "recording.add";
|
|
37
|
-
readonly RECORDING_DELETE: "recording.delete";
|
|
38
|
-
};
|
|
39
|
-
export type RecorderActivityActionType = typeof RecorderActivityActionTypes[keyof typeof RecorderActivityActionTypes];
|
|
40
|
-
/**
|
|
41
|
-
* Reaction action type constants following the `reaction.*` naming pattern.
|
|
42
|
-
*/
|
|
43
|
-
export declare const ReactionActivityActionTypes: {
|
|
44
|
-
readonly REACTION_ADD: "reaction.add";
|
|
45
|
-
readonly REACTION_DELETE: "reaction.delete";
|
|
46
|
-
};
|
|
47
|
-
export type ReactionActivityActionType = typeof ReactionActivityActionTypes[keyof typeof ReactionActivityActionTypes];
|
|
48
|
-
/**
|
|
49
|
-
* CRDT action type constants following the `crdt.*` naming pattern.
|
|
50
|
-
*/
|
|
51
|
-
export declare const CrdtActivityActionTypes: {
|
|
52
|
-
readonly EDITOR_EDIT: "crdt.editor_edit";
|
|
53
|
-
};
|
|
54
|
-
export type CrdtActivityActionType = typeof CrdtActivityActionTypes[keyof typeof CrdtActivityActionTypes];
|
|
55
|
-
/**
|
|
56
|
-
* Represents a single from/to change pair.
|
|
57
|
-
* `from` is always present (null for 'added' events) for uniform structure.
|
|
58
|
-
*/
|
|
59
|
-
export interface ActivityChange<T = unknown> {
|
|
60
|
-
from?: T | null;
|
|
61
|
-
to?: T | null;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Dynamic change tracking. Keys are domain-specific (e.g., 'status', 'commentText', 'assignedTo').
|
|
65
|
-
* No fixed keys — activities span multiple features.
|
|
66
|
-
*/
|
|
67
|
-
export interface ActivityChanges {
|
|
68
|
-
[key: string]: ActivityChange | undefined;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Metadata for activity records. Extends BaseMetadata with denormalized IDs
|
|
72
|
-
* for efficient querying at the organization level.
|
|
73
|
-
*/
|
|
74
|
-
export declare class ActivityMetadata extends BaseMetadata {
|
|
75
|
-
[key: string]: any;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Core activity record representing a single activity event.
|
|
79
|
-
*
|
|
80
|
-
* @typeParam TEntity - Type of the parent entity snapshot (e.g., CommentAnnotation)
|
|
81
|
-
* @typeParam TTarget - Type of the sub-entity snapshot (e.g., Comment)
|
|
82
|
-
*/
|
|
83
|
-
export declare class ActivityRecord<TEntity = unknown, TTarget = unknown> {
|
|
84
|
-
/** Auto-generated unique ID */
|
|
85
|
-
id: string;
|
|
86
|
-
/** Feature that generated this activity */
|
|
87
|
-
featureType: ActivityFeatureType;
|
|
88
|
-
/** Action that occurred, following `entity_type.action` pattern */
|
|
89
|
-
actionType: string;
|
|
90
|
-
/** Event type that occurred */
|
|
91
|
-
eventType?: string;
|
|
92
|
-
/** User who performed the action */
|
|
93
|
-
actionUser: User;
|
|
94
|
-
/** Server timestamp (set by backend) */
|
|
95
|
-
timestamp: number;
|
|
96
|
-
/** Denormalized IDs for querying */
|
|
97
|
-
metadata: ActivityMetadata;
|
|
98
|
-
/** ID of the parent entity (annotationId, recordingId, etc.) */
|
|
99
|
-
targetEntityId: string;
|
|
100
|
-
/** ID of the sub-entity acted on (commentId within annotation, null for entity-level actions) */
|
|
101
|
-
targetSubEntityId?: string | null;
|
|
102
|
-
/** Linear-style from/to change pairs */
|
|
103
|
-
changes?: ActivityChanges;
|
|
104
|
-
/** Full parent entity snapshot at time of action */
|
|
105
|
-
entityData?: TEntity;
|
|
106
|
-
/** Sub-entity snapshot (or user-provided data for custom activities) */
|
|
107
|
-
entityTargetData?: TTarget;
|
|
108
|
-
/** Display message template — ONLY for custom activities */
|
|
109
|
-
displayMessageTemplate?: string;
|
|
110
|
-
/** Template variable values — ONLY for custom activities */
|
|
111
|
-
displayMessageTemplateData?: Record<string, unknown>;
|
|
112
|
-
/** Computed display message (generated client-side, never stored in Firestore) */
|
|
113
|
-
displayMessage?: string;
|
|
114
|
-
/** Icon URL or identifier for display */
|
|
115
|
-
actionIcon?: string;
|
|
116
|
-
/** If true, this activity cannot be updated or deleted via REST API */
|
|
117
|
-
immutable?: boolean;
|
|
118
|
-
/** If true, this activity was stripped by the activity resolver (for UI loading states) */
|
|
119
|
-
isActivityResolverUsed?: boolean;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Configuration for subscribing to activities.
|
|
123
|
-
* Behavior is determined by the props passed:
|
|
124
|
-
* - No config → org-wide
|
|
125
|
-
* - documentIds → specific documents
|
|
126
|
-
* - currentDocumentOnly → current document only
|
|
127
|
-
*/
|
|
128
|
-
export interface ActivitySubscribeConfig {
|
|
129
|
-
/** Subscribe to activities for a specific organization (defaults to current org) */
|
|
130
|
-
organizationId?: string;
|
|
131
|
-
/** Subscribe to activities for specific document IDs */
|
|
132
|
-
documentIds?: string[];
|
|
133
|
-
/** Subscribe to activities for the current document only (auto-switches on setDocument) */
|
|
134
|
-
currentDocumentOnly?: boolean;
|
|
135
|
-
/** Only fetch activities from the last N days (default: 30) */
|
|
136
|
-
maxDays?: number;
|
|
137
|
-
/** Allowlist: only include activities with these feature types */
|
|
138
|
-
featureTypes?: ActivityFeatureType[];
|
|
139
|
-
/** Disallowlist: exclude activities with these feature types (ignored if featureTypes is set) */
|
|
140
|
-
excludeFeatureTypes?: ActivityFeatureType[];
|
|
141
|
-
/** Allowlist: only include activities with these action types */
|
|
142
|
-
actionTypes?: string[];
|
|
143
|
-
/** Disallowlist: exclude activities with these action types (ignored if actionTypes is set) */
|
|
144
|
-
excludeActionTypes?: string[];
|
|
145
|
-
/** Allowlist: only include activities by these user IDs */
|
|
146
|
-
userIds?: string[];
|
|
147
|
-
/** Disallowlist: exclude activities by these user IDs (ignored if userIds is set) */
|
|
148
|
-
excludeUserIds?: string[];
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Represents an active activity subscription.
|
|
152
|
-
* Returned by `activityService.subscribe()`.
|
|
153
|
-
*/
|
|
154
|
-
export interface ActivitySubscription {
|
|
155
|
-
/** Observable stream of activities for this subscription's scope. null = not yet loaded. */
|
|
156
|
-
getActivities$(): Observable<ActivityRecord[] | null>;
|
|
157
|
-
/** Unsubscribe and clean up this subscription */
|
|
158
|
-
unsubscribe(): void;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Data required to create an activity.
|
|
162
|
-
* Used for all activity types: comment, reaction, recorder, custom, etc.
|
|
163
|
-
*/
|
|
164
|
-
export interface CreateActivityData<TEntity = unknown, TTarget = unknown> {
|
|
165
|
-
featureType: ActivityFeatureType;
|
|
166
|
-
actionType: string;
|
|
167
|
-
eventType?: string;
|
|
168
|
-
targetEntityId: string;
|
|
169
|
-
targetSubEntityId?: string | null;
|
|
170
|
-
changes?: ActivityChanges;
|
|
171
|
-
entityData?: TEntity;
|
|
172
|
-
entityTargetData?: TTarget;
|
|
173
|
-
/** Icon URL or identifier — typically used for custom activities */
|
|
174
|
-
actionIcon?: string;
|
|
175
|
-
/** Display message template — only for custom activities */
|
|
176
|
-
displayMessageTemplate?: string;
|
|
177
|
-
/** Template variable values — only for custom activities */
|
|
178
|
-
displayMessageTemplateData?: Record<string, unknown>;
|
|
179
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ResolverEndpointConfig, ResolverResponse, RetryConfig } from "./resolver.data.model";
|
|
2
|
-
import { User } from "./user.data.model";
|
|
3
|
-
export interface NotificationDataProvider {
|
|
4
|
-
get?: (request: GetNotificationResolverRequest) => Promise<ResolverResponse<Record<string, PartialNotification>>>;
|
|
5
|
-
delete?: (request: DeleteNotificationResolverRequest) => Promise<ResolverResponse<undefined>>;
|
|
6
|
-
config?: NotificationResolverConfig;
|
|
7
|
-
}
|
|
8
|
-
export interface NotificationResolverConfig {
|
|
9
|
-
resolveTimeout?: number;
|
|
10
|
-
getRetryConfig?: RetryConfig;
|
|
11
|
-
deleteRetryConfig?: RetryConfig;
|
|
12
|
-
getConfig?: ResolverEndpointConfig;
|
|
13
|
-
deleteConfig?: ResolverEndpointConfig;
|
|
14
|
-
}
|
|
15
|
-
export interface GetNotificationResolverRequest {
|
|
16
|
-
organizationId: string;
|
|
17
|
-
notificationIds: string[];
|
|
18
|
-
}
|
|
19
|
-
export interface DeleteNotificationResolverRequest {
|
|
20
|
-
notificationId: string;
|
|
21
|
-
organizationId: string;
|
|
22
|
-
}
|
|
23
|
-
export interface PartialNotification {
|
|
24
|
-
notificationId: string;
|
|
25
|
-
displayHeadlineMessageTemplate?: string;
|
|
26
|
-
displayHeadlineMessageTemplateData?: {
|
|
27
|
-
actionUser?: User;
|
|
28
|
-
recipientUser?: User;
|
|
29
|
-
actionMessage?: string;
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
};
|
|
32
|
-
displayBodyMessage?: string;
|
|
33
|
-
displayBodyMessageTemplate?: string;
|
|
34
|
-
displayBodyMessageTemplateData?: {
|
|
35
|
-
[key: string]: any;
|
|
36
|
-
};
|
|
37
|
-
notificationSourceData?: any;
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
}
|