@veltdev/sdk-staging 5.0.2-beta.45 → 5.0.2-beta.5
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/presence-user.data.model.d.ts +0 -5
- 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/recorder-events.data.model.d.ts +0 -3
- 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 +8 -28
- package/app/models/element/crdt-element.model.d.ts +1 -88
- package/app/models/element/presence-element.model.d.ts +0 -25
- package/app/utils/constants.d.ts +0 -223
- package/app/utils/enums.d.ts +3 -29
- package/models.d.ts +0 -5
- package/package.json +1 -1
- package/types.d.ts +0 -1
- package/velt.css +1 -1
- package/velt.js +116 -116
- 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/data/rewriter-events.data.model.d.ts +0 -40
- package/app/models/element/activity-element.model.d.ts +0 -33
|
@@ -5,7 +5,6 @@ import { DocumentUser } from "../models/data/document-user.data.model";
|
|
|
5
5
|
import { Location } from "../models/data/location.model";
|
|
6
6
|
import { User, UserOptions, VeltAuthProvider, VeltPermissionProvider } from "../models/data/user.data.model";
|
|
7
7
|
import { CustomCss } from "../models/data/custom-css.data.model";
|
|
8
|
-
import { ActivityElement } from "../models/element/activity-element.model";
|
|
9
8
|
import { AreaElement } from "../models/element/area-element.model";
|
|
10
9
|
import { ArrowElement } from "../models/element/arrow-element.model";
|
|
11
10
|
import { CommentElement } from "../models/element/comment-element.model";
|
|
@@ -30,7 +29,7 @@ import { VeltEventMetadata, VeltDebugInfo } from "../models/data/event-metadata.
|
|
|
30
29
|
import { CoreEventTypesMap } from "../models/data/core-events.data.model";
|
|
31
30
|
import { Document, SetDocumentsRequestOptions, FetchDocumentsRequest, FetchFoldersRequest, UpdateDocumentsRequest, UpdateLocationsRequest } from "../models/data/document.data.model";
|
|
32
31
|
import { FetchDocumentsResponse, FetchFoldersResponse } from "../models/data/document-events.data.model";
|
|
33
|
-
import {
|
|
32
|
+
import { UserDataProvider, GetUserPermissionsRequest, GetUserPermissionsResponse } from "../models/data/user-resolver.data.model";
|
|
34
33
|
import { VeltDataProvider } from "../models/data/provider.data.model";
|
|
35
34
|
import { VeltEncryptionProvider } from "../models/data/encryption-provider.data.model";
|
|
36
35
|
import { VeltResetButtonStateConfig } from "../models/data/button.data.model";
|
|
@@ -98,10 +97,6 @@ export declare class Snippyly {
|
|
|
98
97
|
* To set the user data provider.
|
|
99
98
|
*/
|
|
100
99
|
setUserDataProvider: (userDataProvider: UserDataProvider) => void;
|
|
101
|
-
/**
|
|
102
|
-
* To set the anonymous user data provider.
|
|
103
|
-
*/
|
|
104
|
-
setAnonymousUserDataProvider: (resolver: AnonymousUserDataProvider, config?: { ha?: boolean }) => void;
|
|
105
100
|
/**
|
|
106
101
|
* To set the data provider.
|
|
107
102
|
*/
|
|
@@ -233,10 +228,6 @@ export declare class Snippyly {
|
|
|
233
228
|
* Get the Autocomplete Object.
|
|
234
229
|
*/
|
|
235
230
|
getAutocompleteElement: () => AutocompleteElement;
|
|
236
|
-
/**
|
|
237
|
-
* Get the Activity Element Object.
|
|
238
|
-
*/
|
|
239
|
-
getActivityElement: () => ActivityElement;
|
|
240
231
|
/**
|
|
241
232
|
* Get the Area Object.
|
|
242
233
|
*/
|
|
@@ -408,16 +399,6 @@ export declare class Snippyly {
|
|
|
408
399
|
*/
|
|
409
400
|
disableSafeEval: () => void;
|
|
410
401
|
|
|
411
|
-
/**
|
|
412
|
-
* Enable Firestore persistent cache for offline support.
|
|
413
|
-
*/
|
|
414
|
-
enableFirestorePersistentCache: (config?: { ha?: boolean }) => void;
|
|
415
|
-
|
|
416
|
-
/**
|
|
417
|
-
* Disable Firestore persistent cache.
|
|
418
|
-
*/
|
|
419
|
-
disableFirestorePersistentCache: (config?: { ha?: boolean }) => void;
|
|
420
|
-
|
|
421
402
|
/**
|
|
422
403
|
* To reset the button toggle map.
|
|
423
404
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ResolverActions } from "../../utils/enums";
|
|
2
2
|
import { ResolverConfig, ResolverResponse } from "./resolver.data.model";
|
|
3
3
|
export interface AttachmentDataProvider {
|
|
4
|
-
save
|
|
5
|
-
delete
|
|
4
|
+
save: (request: SaveAttachmentResolverRequest) => Promise<ResolverResponse<SaveAttachmentResolverData>>;
|
|
5
|
+
delete: (request: DeleteAttachmentResolverRequest) => Promise<ResolverResponse<undefined>>;
|
|
6
6
|
config?: ResolverConfig;
|
|
7
7
|
}
|
|
8
8
|
export interface DeleteAttachmentResolverRequest {
|
|
@@ -22,17 +22,17 @@ export declare class AutocompleteItem {
|
|
|
22
22
|
groupId?: string;
|
|
23
23
|
}
|
|
24
24
|
export declare class AutocompleteReplaceData {
|
|
25
|
-
text
|
|
25
|
+
text: string;
|
|
26
26
|
custom: AutocompleteItem;
|
|
27
27
|
}
|
|
28
28
|
export declare class AutocompleteGroupReplaceData {
|
|
29
|
-
text
|
|
29
|
+
text: string;
|
|
30
30
|
groupId: string;
|
|
31
31
|
clientGroupId: string;
|
|
32
32
|
group?: OrganizationUserGroup;
|
|
33
33
|
}
|
|
34
34
|
export declare class AutocompleteUserContactReplaceData {
|
|
35
|
-
text
|
|
35
|
+
text: string;
|
|
36
36
|
userId: string;
|
|
37
37
|
contact?: UserContact;
|
|
38
38
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DocumentMetadata } from './document-metadata.model';
|
|
2
1
|
export declare class BaseMetadata {
|
|
3
2
|
apiKey?: string;
|
|
4
3
|
documentId?: string;
|
|
@@ -7,6 +6,4 @@ export declare class BaseMetadata {
|
|
|
7
6
|
clientOrganizationId?: string;
|
|
8
7
|
folderId?: string;
|
|
9
8
|
veltFolderId?: string;
|
|
10
|
-
documentMetadata?: DocumentMetadata;
|
|
11
|
-
sdkVersion?: string | null;
|
|
12
9
|
}
|
|
@@ -121,8 +121,6 @@ export interface CommentRequestQuery {
|
|
|
121
121
|
batchedPerDocument?: boolean;
|
|
122
122
|
/** Debounce time in ms for batchedPerDocument mode (default: 5000). */
|
|
123
123
|
debounceMs?: number;
|
|
124
|
-
/** Filter annotations by agent fields. Matches annotations where `agent.agentFields` array contains any of the provided values. */
|
|
125
|
-
agentFields?: string[];
|
|
126
124
|
}
|
|
127
125
|
export interface SubscribeCommentAnnotationRequest {
|
|
128
126
|
annotationId: string;
|
|
@@ -143,8 +141,6 @@ export interface AddCommentRequest {
|
|
|
143
141
|
assignedTo?: User;
|
|
144
142
|
assigned?: boolean;
|
|
145
143
|
options?: RequestOptions;
|
|
146
|
-
/** Optional visibility configuration for the comment */
|
|
147
|
-
visibility?: CommentVisibilityConfig;
|
|
148
144
|
}
|
|
149
145
|
export interface UpdateCommentRequest {
|
|
150
146
|
annotationId: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CommentAccessMode
|
|
1
|
+
import { CommentAccessMode } from "../../utils/enums";
|
|
2
2
|
import { BaseMetadata } from "./base-metadata.data.model";
|
|
3
|
-
import { CommentVisibilityType } from "./comment-actions.data.model";
|
|
4
3
|
import { Comment } from "./comment.data.model";
|
|
5
4
|
import { CursorPosition } from "./cursor-position.data.model";
|
|
6
5
|
import { CustomAnnotationDropdownItem } from "./custom-chip-dropdown.data.model";
|
|
@@ -11,11 +10,6 @@ import { TargetElement } from "./target-element.data.model";
|
|
|
11
10
|
import { TargetTextRange } from "./target-text-range.data.model";
|
|
12
11
|
import { User } from "./user.data.model";
|
|
13
12
|
import { CommentAnnotationViews } from "./views.data.model";
|
|
14
|
-
export interface CommentAnnotationVisibilityConfig {
|
|
15
|
-
type: CommentVisibilityType;
|
|
16
|
-
organizationId?: string;
|
|
17
|
-
userIds?: string[];
|
|
18
|
-
}
|
|
19
13
|
export declare class CommentAnnotation {
|
|
20
14
|
/**
|
|
21
15
|
* Unique identifier for the comment pin annotation.
|
|
@@ -29,7 +23,6 @@ export declare class CommentAnnotation {
|
|
|
29
23
|
* Auto generated.
|
|
30
24
|
*/
|
|
31
25
|
annotationNumber?: number;
|
|
32
|
-
visibilityConfig?: CommentAnnotationVisibilityConfig;
|
|
33
26
|
/**
|
|
34
27
|
* This is the list of all comments part of this annotation.
|
|
35
28
|
*
|
|
@@ -241,8 +234,7 @@ export declare class CommentSelectionChangeData {
|
|
|
241
234
|
}
|
|
242
235
|
export declare class VisibilityOptionClickedData {
|
|
243
236
|
annotationId: string;
|
|
244
|
-
visibility:
|
|
245
|
-
users?: any[];
|
|
237
|
+
visibility: 'public' | 'private';
|
|
246
238
|
}
|
|
247
239
|
export declare class InlineCommentSectionConfig {
|
|
248
240
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AssignToType, CommentAccessMode, CommentEventTypes, CommentStatus
|
|
1
|
+
import { AssignToType, CommentAccessMode, CommentEventTypes, CommentStatus } from "../../utils/enums";
|
|
2
2
|
import { Attachment } from "./attachment.model";
|
|
3
3
|
import { VeltButtonClickEvent } from "./button.data.model";
|
|
4
4
|
import { AddAttachmentResponse } from "./comment-actions.data.model";
|
|
@@ -85,12 +85,9 @@ export type CommentEventTypesMap = {
|
|
|
85
85
|
[CommentEventTypes.COMMENT_PIN_CLICKED]: CommentPinClickedEvent;
|
|
86
86
|
[CommentEventTypes.COMMENT_BUBBLE_CLICKED]: CommentBubbleClickedEvent;
|
|
87
87
|
[CommentEventTypes.COMMENT_TOOL_CLICK]: CommentToolClickEvent;
|
|
88
|
-
[CommentEventTypes.COMMENT_TOOL_CLICKED]: CommentToolClickedEvent;
|
|
89
88
|
[CommentEventTypes.SIDEBAR_BUTTON_CLICK]: SidebarButtonClickEvent;
|
|
90
|
-
[CommentEventTypes.SIDEBAR_BUTTON_CLICKED]: SidebarButtonClickedEvent;
|
|
91
89
|
[CommentEventTypes.ATTACHMENT_DOWNLOAD_CLICKED]: AttachmentDownloadClickedEvent;
|
|
92
90
|
[CommentEventTypes.COMMENT_SAVED]: CommentSavedEvent;
|
|
93
|
-
[CommentEventTypes.COMMENT_SAVE_TRIGGERED]: CommentSaveTriggeredEvent;
|
|
94
91
|
[CommentEventTypes.VISIBILITY_OPTION_CLICKED]: VisibilityOptionClickedEvent;
|
|
95
92
|
};
|
|
96
93
|
export interface AddAttachmentEvent {
|
|
@@ -186,11 +183,6 @@ export interface CommentSavedEvent {
|
|
|
186
183
|
commentAnnotation: CommentAnnotation;
|
|
187
184
|
metadata: VeltEventMetadata;
|
|
188
185
|
}
|
|
189
|
-
export interface CommentSaveTriggeredEvent {
|
|
190
|
-
annotationId: string;
|
|
191
|
-
commentAnnotation: CommentAnnotation;
|
|
192
|
-
metadata: VeltEventMetadata;
|
|
193
|
-
}
|
|
194
186
|
export interface UpdateCommentEvent {
|
|
195
187
|
annotationId: string;
|
|
196
188
|
commentAnnotation: CommentAnnotation;
|
|
@@ -317,13 +309,9 @@ export interface CommentToolClickEvent {
|
|
|
317
309
|
targetElementId?: string | null;
|
|
318
310
|
metadata?: VeltEventMetadata;
|
|
319
311
|
}
|
|
320
|
-
export interface CommentToolClickedEvent extends CommentToolClickEvent {
|
|
321
|
-
}
|
|
322
312
|
export interface SidebarButtonClickEvent {
|
|
323
313
|
metadata?: VeltEventMetadata;
|
|
324
314
|
}
|
|
325
|
-
export interface SidebarButtonClickedEvent extends SidebarButtonClickEvent {
|
|
326
|
-
}
|
|
327
315
|
export interface AttachmentDownloadClickedEvent {
|
|
328
316
|
annotationId: string;
|
|
329
317
|
commentAnnotation: CommentAnnotation;
|
|
@@ -333,7 +321,6 @@ export interface AttachmentDownloadClickedEvent {
|
|
|
333
321
|
export interface VisibilityOptionClickedEvent {
|
|
334
322
|
annotationId: string;
|
|
335
323
|
commentAnnotation: CommentAnnotation;
|
|
336
|
-
visibility:
|
|
337
|
-
users?: any[];
|
|
324
|
+
visibility: 'public' | 'private';
|
|
338
325
|
metadata?: VeltEventMetadata;
|
|
339
326
|
}
|
|
@@ -4,9 +4,9 @@ import { BaseMetadata } from "./base-metadata.data.model";
|
|
|
4
4
|
import { CommentAnnotation } from "./comment-annotation.data.model";
|
|
5
5
|
import { ResolverConfig, ResolverResponse } from "./resolver.data.model";
|
|
6
6
|
export interface CommentAnnotationDataProvider {
|
|
7
|
-
get
|
|
8
|
-
save
|
|
9
|
-
delete
|
|
7
|
+
get: (request: GetCommentResolverRequest) => Promise<ResolverResponse<Record<string, PartialCommentAnnotation>>>;
|
|
8
|
+
save: (request: SaveCommentResolverRequest) => Promise<ResolverResponse<undefined>>;
|
|
9
|
+
delete: (request: DeleteCommentResolverRequest) => Promise<ResolverResponse<undefined>>;
|
|
10
10
|
config?: ResolverConfig;
|
|
11
11
|
}
|
|
12
12
|
export interface GetCommentResolverRequest {
|
|
@@ -51,7 +51,6 @@ export declare class Config {
|
|
|
51
51
|
advancedQueriesDisabled?: boolean;
|
|
52
52
|
/**
|
|
53
53
|
* The domain of the API proxy.
|
|
54
|
-
* @deprecated Use `proxyConfig.apiHost` instead.
|
|
55
54
|
*/
|
|
56
55
|
apiProxyDomain?: string;
|
|
57
56
|
/**
|
|
@@ -62,26 +61,6 @@ export declare class Config {
|
|
|
62
61
|
* Default: true
|
|
63
62
|
*/
|
|
64
63
|
globalStyles?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Configuration for routing all traffic through reverse proxies.
|
|
67
|
-
*/
|
|
68
|
-
proxyConfig?: ProxyConfig;
|
|
69
|
-
}
|
|
70
|
-
export interface ProxyConfig {
|
|
71
|
-
/** Custom host for the Velt CDN (e.g., 'cdn-proxy.customer.com') */
|
|
72
|
-
cdnHost?: string;
|
|
73
|
-
/** Custom host for the Velt API (e.g., 'api-proxy.customer.com') */
|
|
74
|
-
apiHost?: string;
|
|
75
|
-
/** Custom host for Firestore (e.g., 'firestore-proxy.customer.com') */
|
|
76
|
-
v2DbHost?: string;
|
|
77
|
-
/** Custom host for Firebase RTDB (e.g., 'rtdb-proxy.customer.com'). Replaces the firebaseio.com domain in all RTDB URLs. */
|
|
78
|
-
v1DbHost?: string;
|
|
79
|
-
/** Custom host for Firebase Storage (e.g., 'storage-proxy.customer.com'). Replaces firebasestorage.googleapis.com. */
|
|
80
|
-
storageHost?: string;
|
|
81
|
-
/** Custom host for Firebase Auth (e.g., 'auth-proxy.customer.com'). Replaces identitytoolkit.googleapis.com and securetoken.googleapis.com. */
|
|
82
|
-
authHost?: string;
|
|
83
|
-
/** Force long-polling for Firestore and RTDB instead of WebSocket. Default: false (WebSocket). */
|
|
84
|
-
forceLongPolling?: boolean;
|
|
85
64
|
}
|
|
86
65
|
export interface ExtendedFirebaseOptions extends FirebaseOptions {
|
|
87
66
|
storeDbId: string;
|
|
@@ -97,9 +76,4 @@ export interface DisableLogsConfig {
|
|
|
97
76
|
}
|
|
98
77
|
export interface GetProjectConfigResponse {
|
|
99
78
|
isPrivateCommentsEnabled: boolean;
|
|
100
|
-
activityConfig?: ActivityConfig;
|
|
101
|
-
}
|
|
102
|
-
export interface ActivityConfig {
|
|
103
|
-
immutable: boolean;
|
|
104
|
-
isEnabled: boolean;
|
|
105
79
|
}
|
|
@@ -7,9 +7,6 @@ export type CoreEventTypesMap = {
|
|
|
7
7
|
[CoreEventTypes.COMMENT_RESOLVER]: CommentResolverEvent;
|
|
8
8
|
[CoreEventTypes.ATTACHMENT_RESOLVER]: AttachmentResolverEvent;
|
|
9
9
|
[CoreEventTypes.REACTION_RESOLVER]: ReactionResolverEvent;
|
|
10
|
-
[CoreEventTypes.RECORDER_RESOLVER]: RecorderResolverEvent;
|
|
11
|
-
[CoreEventTypes.NOTIFICATION_RESOLVER]: NotificationResolverEvent;
|
|
12
|
-
[CoreEventTypes.ACTIVITY_RESOLVER]: ActivityResolverEvent;
|
|
13
10
|
[CoreEventTypes.VELT_BUTTON_CLICK]: VeltButtonClickEvent;
|
|
14
11
|
[CoreEventTypes.USER_UPDATE]: UserUpdateEvent;
|
|
15
12
|
[CoreEventTypes.DOCUMENT_INIT]: DocumentInitEvent;
|
|
@@ -26,8 +23,7 @@ export declare enum UserResolverSource {
|
|
|
26
23
|
SET_SINGLE_EDITOR_MODE_LIVE_STATE_DATA_FOR_DIFFERENT_USER_PRESENT_ON_TAB = "setSingleEditorModeLiveStateDataForDifferentUserPresentOnTab",
|
|
27
24
|
RESOLVE_AND_MERGE_SINGLE_EDITOR_LIVE_STATE_DATA_WITH_USER = "resolveAndMergeSingleEditorLiveStateDataWithUser",
|
|
28
25
|
GET_SINGLE_EDITOR_MODE_DATA = "getSingleEditorModeData",
|
|
29
|
-
RESOLVE_USERS_FROM_HUDDLE_MESSAGES = "resolveUsersFromHuddleMessages"
|
|
30
|
-
RESOLVE_USER_IDS_BY_EMAIL = "resolveUserIdsByEmail"
|
|
26
|
+
RESOLVE_USERS_FROM_HUDDLE_MESSAGES = "resolveUsersFromHuddleMessages"
|
|
31
27
|
}
|
|
32
28
|
export declare enum UserResolverModuleName {
|
|
33
29
|
IDENTIFY = "identify/authProvider",
|
|
@@ -150,75 +146,6 @@ export type ReactionResolverEventType = {
|
|
|
150
146
|
REACTION_DELETE_RESULT: 'reactionDeleteResult';
|
|
151
147
|
REACTION_DELETE_ERROR: 'reactionDeleteError';
|
|
152
148
|
};
|
|
153
|
-
export declare enum RecorderResolverSource {
|
|
154
|
-
RESOLVE_RECORDER_ANNOTATIONS = "resolveRecorderAnnotations",
|
|
155
|
-
SAVE_RECORDER_ANNOTATION = "saveRecorderAnnotation",
|
|
156
|
-
DELETE_RECORDER_ANNOTATION = "deleteRecorderAnnotation",
|
|
157
|
-
FORMAT_RESPONSE = "formatResponse",
|
|
158
|
-
INIT_DOCUMENTS = "initDocuments",
|
|
159
|
-
SET_DATA = "setData",
|
|
160
|
-
UPDATE_DATA = "updateData",
|
|
161
|
-
DELETE_DATA = "deleteData"
|
|
162
|
-
}
|
|
163
|
-
export declare enum RecorderResolverModuleName {
|
|
164
|
-
GET_RECORDER_ANNOTATIONS = "getRecorderAnnotations"
|
|
165
|
-
}
|
|
166
|
-
export type RecorderResolverEvent = BaseResolverEvent<RecorderResolverEventType, RecorderResolverSource, RecorderResolverModuleName>;
|
|
167
|
-
export type RecorderResolverEventType = {
|
|
168
|
-
RECORDER_RESOLUTION_REQUEST_FORMED: 'recorderResolutionRequestFormed';
|
|
169
|
-
RECORDER_RESOLUTION_REQUEST_TRIGGERED: 'recorderResolutionRequestTriggered';
|
|
170
|
-
RECORDER_RESOLUTION_RESULT: 'recorderResolutionResult';
|
|
171
|
-
RECORDER_RESOLUTION_ERROR: 'recorderResolutionError';
|
|
172
|
-
RECORDER_RESOLUTION_RESULT_FROM_CACHE: 'recorderResolutionResultFromCache';
|
|
173
|
-
RECORDER_SAVE_REQUEST_FORMED: 'recorderSaveRequestFormed';
|
|
174
|
-
RECORDER_SAVE_REQUEST_TRIGGERED: 'recorderSaveRequestTriggered';
|
|
175
|
-
RECORDER_SAVE_RESULT: 'recorderSaveResult';
|
|
176
|
-
RECORDER_SAVE_ERROR: 'recorderSaveError';
|
|
177
|
-
RECORDER_DELETE_REQUEST_FORMED: 'recorderDeleteRequestFormed';
|
|
178
|
-
RECORDER_DELETE_REQUEST_TRIGGERED: 'recorderDeleteRequestTriggered';
|
|
179
|
-
RECORDER_DELETE_RESULT: 'recorderDeleteResult';
|
|
180
|
-
RECORDER_DELETE_ERROR: 'recorderDeleteError';
|
|
181
|
-
};
|
|
182
|
-
export declare enum NotificationResolverSource {
|
|
183
|
-
RESOLVE_NOTIFICATIONS = "resolveNotifications",
|
|
184
|
-
DELETE_NOTIFICATION = "deleteNotification",
|
|
185
|
-
DELETE_DATA = "deleteData",
|
|
186
|
-
FORMAT_RESPONSE = "formatResponse"
|
|
187
|
-
}
|
|
188
|
-
export declare enum NotificationResolverModuleName {
|
|
189
|
-
GET_NOTIFICATIONS = "getNotifications"
|
|
190
|
-
}
|
|
191
|
-
export type NotificationResolverEventType = {
|
|
192
|
-
NOTIFICATION_RESOLUTION_REQUEST_FORMED: 'notificationResolutionRequestFormed';
|
|
193
|
-
NOTIFICATION_RESOLUTION_REQUEST_TRIGGERED: 'notificationResolutionRequestTriggered';
|
|
194
|
-
NOTIFICATION_RESOLUTION_RESULT: 'notificationResolutionResult';
|
|
195
|
-
NOTIFICATION_RESOLUTION_ERROR: 'notificationResolutionError';
|
|
196
|
-
NOTIFICATION_DELETE_REQUEST_FORMED: 'notificationDeleteRequestFormed';
|
|
197
|
-
NOTIFICATION_DELETE_REQUEST_TRIGGERED: 'notificationDeleteRequestTriggered';
|
|
198
|
-
NOTIFICATION_DELETE_RESULT: 'notificationDeleteResult';
|
|
199
|
-
NOTIFICATION_DELETE_ERROR: 'notificationDeleteError';
|
|
200
|
-
};
|
|
201
|
-
export type NotificationResolverEvent = BaseResolverEvent<NotificationResolverEventType, NotificationResolverSource, NotificationResolverModuleName>;
|
|
202
|
-
export declare enum ActivityResolverSource {
|
|
203
|
-
RESOLVE_ACTIVITIES = "resolveActivities",
|
|
204
|
-
SAVE_ACTIVITY = "saveActivity",
|
|
205
|
-
FORMAT_RESPONSE = "formatResponse"
|
|
206
|
-
}
|
|
207
|
-
export declare enum ActivityResolverModuleName {
|
|
208
|
-
GET_ACTIVITIES = "getActivities"
|
|
209
|
-
}
|
|
210
|
-
export type ActivityResolverEventType = {
|
|
211
|
-
ACTIVITY_RESOLUTION_REQUEST_FORMED: 'activityResolutionRequestFormed';
|
|
212
|
-
ACTIVITY_RESOLUTION_REQUEST_TRIGGERED: 'activityResolutionRequestTriggered';
|
|
213
|
-
ACTIVITY_RESOLUTION_RESULT: 'activityResolutionResult';
|
|
214
|
-
ACTIVITY_RESOLUTION_ERROR: 'activityResolutionError';
|
|
215
|
-
ACTIVITY_RESOLUTION_RESULT_FROM_CACHE: 'activityResolutionResultFromCache';
|
|
216
|
-
ACTIVITY_SAVE_REQUEST_FORMED: 'activitySaveRequestFormed';
|
|
217
|
-
ACTIVITY_SAVE_REQUEST_TRIGGERED: 'activitySaveRequestTriggered';
|
|
218
|
-
ACTIVITY_SAVE_RESULT: 'activitySaveResult';
|
|
219
|
-
ACTIVITY_SAVE_ERROR: 'activitySaveError';
|
|
220
|
-
};
|
|
221
|
-
export type ActivityResolverEvent = BaseResolverEvent<ActivityResolverEventType, ActivityResolverSource, ActivityResolverModuleName>;
|
|
222
149
|
export type ErrorEvent = {
|
|
223
150
|
event?: string;
|
|
224
151
|
sourceMethod?: string;
|
|
@@ -58,54 +58,3 @@ export interface CrdtDeleteVersionQuery {
|
|
|
58
58
|
id: string;
|
|
59
59
|
versionId: string;
|
|
60
60
|
}
|
|
61
|
-
export interface CrdtPushMessageQuery {
|
|
62
|
-
id: string;
|
|
63
|
-
data: number[];
|
|
64
|
-
yjsClientId: number;
|
|
65
|
-
messageType?: 'sync' | 'awareness';
|
|
66
|
-
/** User-facing value for event emission only (not stored in database) */
|
|
67
|
-
eventData?: unknown;
|
|
68
|
-
/** Yjs data type: 'text' | 'map' | 'array' | 'xml' | 'xmltext' */
|
|
69
|
-
type?: string;
|
|
70
|
-
/** Content key used in Y.Doc shared types */
|
|
71
|
-
contentKey?: string;
|
|
72
|
-
/** Editor/library source: 'tiptap', 'plate', 'codemirror', etc. */
|
|
73
|
-
source?: string;
|
|
74
|
-
}
|
|
75
|
-
export interface CrdtOnMessageQuery {
|
|
76
|
-
id: string;
|
|
77
|
-
callback: (message: CrdtMessageData) => void;
|
|
78
|
-
afterTs?: number;
|
|
79
|
-
}
|
|
80
|
-
export interface CrdtMessageData {
|
|
81
|
-
data: number[];
|
|
82
|
-
yjsClientId: number;
|
|
83
|
-
timestamp: number;
|
|
84
|
-
}
|
|
85
|
-
export interface CrdtSnapshotData {
|
|
86
|
-
state?: Uint8Array | number[];
|
|
87
|
-
vector?: Uint8Array | number[];
|
|
88
|
-
timestamp?: number;
|
|
89
|
-
}
|
|
90
|
-
export interface CrdtGetSnapshotQuery {
|
|
91
|
-
id: string;
|
|
92
|
-
}
|
|
93
|
-
export interface CrdtSaveSnapshotQuery {
|
|
94
|
-
id: string;
|
|
95
|
-
state: Uint8Array | number[];
|
|
96
|
-
vector: Uint8Array | number[];
|
|
97
|
-
/** Yjs data type: 'text' | 'map' | 'array' | 'xml' | 'xmltext' */
|
|
98
|
-
type?: string;
|
|
99
|
-
/** Content key used in Y.Doc shared types */
|
|
100
|
-
contentKey?: string;
|
|
101
|
-
/** Editor/library source: 'tiptap', 'plate', 'codemirror', etc. */
|
|
102
|
-
source?: string;
|
|
103
|
-
}
|
|
104
|
-
export interface CrdtGetMessagesQuery {
|
|
105
|
-
id: string;
|
|
106
|
-
afterTs?: number;
|
|
107
|
-
}
|
|
108
|
-
export interface CrdtPruneMessagesQuery {
|
|
109
|
-
id: string;
|
|
110
|
-
beforeTs: number;
|
|
111
|
-
}
|
|
@@ -16,8 +16,6 @@ export interface SetDocumentsRequestOptions {
|
|
|
16
16
|
locationId?: string;
|
|
17
17
|
rootDocumentId?: string;
|
|
18
18
|
context?: SetDocumentsContext;
|
|
19
|
-
debounceTime?: number;
|
|
20
|
-
optimisticPermissions?: boolean;
|
|
21
19
|
}
|
|
22
20
|
export interface UpdateDocumentsRequest<T = unknown> {
|
|
23
21
|
organizationId?: string;
|
|
@@ -5,18 +5,12 @@ export interface AccessRequestEvent {
|
|
|
5
5
|
editor?: User;
|
|
6
6
|
timestamp?: number;
|
|
7
7
|
status?: string;
|
|
8
|
-
totalUsers?: number;
|
|
9
|
-
presenceSnippylyUserIds?: string[];
|
|
10
|
-
presenceClientUserIds?: string[];
|
|
11
8
|
}
|
|
12
9
|
export interface SEMEvent {
|
|
13
10
|
viewer?: User;
|
|
14
11
|
editor?: User;
|
|
15
12
|
timestamp?: number;
|
|
16
13
|
role?: string;
|
|
17
|
-
totalUsers?: number;
|
|
18
|
-
presenceSnippylyUserIds?: string[];
|
|
19
|
-
presenceClientUserIds?: string[];
|
|
20
14
|
}
|
|
21
15
|
export type LiveStateEventTypesMap = {
|
|
22
16
|
[LiveStateSyncEventTypes.ACCESS_REQUESTED]: AccessRequestEvent;
|
|
@@ -137,10 +137,6 @@ export declare class Notification {
|
|
|
137
137
|
* Is comment text available
|
|
138
138
|
*/
|
|
139
139
|
isCommentResolverUsed?: boolean;
|
|
140
|
-
/**
|
|
141
|
-
* Is notification resolver used
|
|
142
|
-
*/
|
|
143
|
-
isNotificationResolverUsed?: boolean;
|
|
144
140
|
/**
|
|
145
141
|
* Display body message template
|
|
146
142
|
*/
|
|
@@ -83,9 +83,4 @@ export declare class PresenceUser {
|
|
|
83
83
|
initial?: string;
|
|
84
84
|
isTabAway?: boolean;
|
|
85
85
|
isUserIdle?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Whether this custom user is local-only (not persisted to DB).
|
|
88
|
-
* Only applicable to users added via addUser API.
|
|
89
|
-
*/
|
|
90
|
-
localOnly?: boolean;
|
|
91
86
|
}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import { ActivityAnnotationDataProvider } from "./activity-resolver.data.model";
|
|
2
1
|
import { CommentAnnotationDataProvider } from "./comment-resolver.data.model";
|
|
3
2
|
import { AttachmentDataProvider } from "./attachment-resolver.data.model";
|
|
4
|
-
import { NotificationDataProvider } from "./notification-resolver.data.model";
|
|
5
3
|
import { ReactionAnnotationDataProvider } from "./reaction-resolver.data.model";
|
|
6
|
-
import {
|
|
7
|
-
import { AnonymousUserDataProvider, UserDataProvider } from "./user-resolver.data.model";
|
|
4
|
+
import { UserDataProvider } from "./user-resolver.data.model";
|
|
8
5
|
export interface VeltDataProvider {
|
|
9
6
|
comment?: CommentAnnotationDataProvider;
|
|
10
7
|
user?: UserDataProvider;
|
|
11
8
|
reaction?: ReactionAnnotationDataProvider;
|
|
12
9
|
attachment?: AttachmentDataProvider;
|
|
13
|
-
anonymousUser?: AnonymousUserDataProvider;
|
|
14
|
-
recorder?: RecorderAnnotationDataProvider;
|
|
15
|
-
notification?: NotificationDataProvider;
|
|
16
|
-
activity?: ActivityAnnotationDataProvider;
|
|
17
10
|
}
|
|
@@ -4,9 +4,9 @@ import { PartialUser } from "./comment-resolver.data.model";
|
|
|
4
4
|
import { ReactionAnnotation } from "./reaction-annotation.data.model";
|
|
5
5
|
import { ResolverConfig, ResolverResponse } from "./resolver.data.model";
|
|
6
6
|
export interface ReactionAnnotationDataProvider {
|
|
7
|
-
get
|
|
8
|
-
save
|
|
9
|
-
delete
|
|
7
|
+
get: (request: GetReactionResolverRequest) => Promise<ResolverResponse<Record<string, PartialReactionAnnotation>>>;
|
|
8
|
+
save: (request: SaveReactionResolverRequest) => Promise<ResolverResponse<undefined>>;
|
|
9
|
+
delete: (request: DeleteReactionResolverRequest) => Promise<ResolverResponse<undefined>>;
|
|
10
10
|
config?: ResolverConfig;
|
|
11
11
|
}
|
|
12
12
|
export interface GetReactionResolverRequest {
|
|
@@ -150,17 +150,6 @@ export declare class RecorderAnnotation {
|
|
|
150
150
|
chunkUrls?: {
|
|
151
151
|
[key: number]: string;
|
|
152
152
|
};
|
|
153
|
-
/**
|
|
154
|
-
* Whether the recorder resolver is used for this annotation.
|
|
155
|
-
* Used by UI components to show loading states while resolver data is being fetched.
|
|
156
|
-
*/
|
|
157
|
-
isRecorderResolverUsed?: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Whether the real recording URL is available.
|
|
160
|
-
* Set to false when the annotation is first saved (URL is still a local blob),
|
|
161
|
-
* and true once the actual URL from storage is available after the async upload completes.
|
|
162
|
-
*/
|
|
163
|
-
isUrlAvailable?: boolean;
|
|
164
153
|
}
|
|
165
154
|
export interface RecorderAnnotationEditVersion {
|
|
166
155
|
from?: User;
|
|
@@ -4,8 +4,6 @@ export interface TranscriptionDoneEvent extends RecorderData {
|
|
|
4
4
|
}
|
|
5
5
|
export interface RecordingDoneEvent extends RecorderData {
|
|
6
6
|
}
|
|
7
|
-
export interface RecordingDoneLocalEvent extends RecorderData {
|
|
8
|
-
}
|
|
9
7
|
export interface RecordingDeleteEvent extends RecorderData {
|
|
10
8
|
}
|
|
11
9
|
export interface RecordingEditDoneEvent extends RecorderData {
|
|
@@ -37,7 +35,6 @@ export interface RecordingSaveInitiatedEvent {
|
|
|
37
35
|
export type RecorderEventTypesMap = {
|
|
38
36
|
[RecorderEventTypes.TRANSCRIPTION_DONE]: TranscriptionDoneEvent;
|
|
39
37
|
[RecorderEventTypes.RECORDING_DONE]: RecordingDoneEvent;
|
|
40
|
-
[RecorderEventTypes.RECORDING_DONE_LOCAL]: RecordingDoneLocalEvent;
|
|
41
38
|
[RecorderEventTypes.RECORDING_EDIT_DONE]: RecordingEditDoneEvent;
|
|
42
39
|
[RecorderEventTypes.DELETE_RECORDING]: RecordingDeleteEvent;
|
|
43
40
|
[RecorderEventTypes.RECORDING_STARTED]: RecordingStartedEvent;
|
|
@@ -9,7 +9,6 @@ export interface ResolverConfig {
|
|
|
9
9
|
getRetryConfig?: RetryConfig;
|
|
10
10
|
resolveUsersConfig?: ResolveUsersConfig;
|
|
11
11
|
fieldsToRemove?: string[];
|
|
12
|
-
additionalFields?: string[];
|
|
13
12
|
getConfig?: ResolverEndpointConfig;
|
|
14
13
|
saveConfig?: ResolverEndpointConfig;
|
|
15
14
|
deleteConfig?: ResolverEndpointConfig;
|
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
import { ResolverConfig
|
|
1
|
+
import { ResolverConfig } from "./resolver.data.model";
|
|
2
2
|
import { User } from "./user.data.model";
|
|
3
3
|
export interface UserDataProvider {
|
|
4
4
|
get(userIds: string[]): Promise<Record<string, User>>;
|
|
5
5
|
config?: ResolverConfig;
|
|
6
6
|
resolveTimeout?: number;
|
|
7
7
|
}
|
|
8
|
-
export interface AnonymousUserDataProvider {
|
|
9
|
-
resolveUserIdsByEmail(request: ResolveUserIdsByEmailRequest): Promise<ResolverResponse<Record<string, string>>>;
|
|
10
|
-
config?: AnonymousUserDataProviderConfig;
|
|
11
|
-
}
|
|
12
|
-
export interface AnonymousUserDataProviderConfig {
|
|
13
|
-
resolveTimeout?: number;
|
|
14
|
-
getRetryConfig?: RetryConfig;
|
|
15
|
-
}
|
|
16
|
-
export interface ResolveUserIdsByEmailRequest {
|
|
17
|
-
organizationId: string;
|
|
18
|
-
documentId?: string;
|
|
19
|
-
folderId?: string;
|
|
20
|
-
emails: string[];
|
|
21
|
-
}
|
|
22
8
|
export interface GetUserResolverRequest {
|
|
23
9
|
organizationId: string;
|
|
24
10
|
userIds: string[];
|
|
@@ -33,7 +19,6 @@ export interface GetUserPermissionsResponse {
|
|
|
33
19
|
folders?: {
|
|
34
20
|
[folderId: string]: {
|
|
35
21
|
accessRole?: UserPermissionAccessRole;
|
|
36
|
-
accessType?: string;
|
|
37
22
|
expiresAt?: number;
|
|
38
23
|
error?: string;
|
|
39
24
|
errorCode?: UserPermissionAccessRoleResult;
|
|
@@ -50,7 +35,6 @@ export interface GetUserPermissionsResponse {
|
|
|
50
35
|
documents?: {
|
|
51
36
|
[documentId: string]: {
|
|
52
37
|
accessRole?: UserPermissionAccessRole;
|
|
53
|
-
accessType?: string;
|
|
54
38
|
expiresAt?: number;
|
|
55
39
|
error?: string;
|
|
56
40
|
errorCode?: UserPermissionAccessRoleResult;
|