@veltdev/sdk-dev 5.0.2-beta.88 → 5.0.2-beta.9
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 -16
- 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 -4
- 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 -11
- package/app/models/data/comment-events.data.model.d.ts +10 -12
- package/app/models/data/comment-resolver.data.model.d.ts +3 -3
- package/app/models/data/comment-sidebar-config.model.d.ts +0 -2
- package/app/models/data/config.data.model.d.ts +0 -26
- package/app/models/data/core-events.data.model.d.ts +0 -72
- 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 +0 -6
- 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 +0 -2
- package/app/models/data/user.data.model.d.ts +0 -3
- package/app/models/element/comment-element.model.d.ts +8 -48
- package/app/models/element/crdt-element.model.d.ts +1 -88
- package/app/models/element/presence-element.model.d.ts +0 -25
- package/app/models/element/rewriter-element.model.d.ts +0 -20
- package/app/utils/constants.d.ts +0 -224
- package/app/utils/enums.d.ts +3 -36
- package/models.d.ts +0 -7
- package/package.json +1 -1
- package/types.d.ts +0 -2
- package/velt.css +1 -1
- package/velt.js +143 -131
- 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 -44
- package/app/models/data/suggestion-events.data.model.d.ts +0 -57
- package/app/models/data/suggestion.data.model.d.ts +0 -267
- package/app/models/element/activity-element.model.d.ts +0 -33
- package/app/models/element/suggestion-element.model.d.ts +0 -180
|
@@ -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";
|
|
@@ -233,10 +232,6 @@ export declare class Snippyly {
|
|
|
233
232
|
* Get the Autocomplete Object.
|
|
234
233
|
*/
|
|
235
234
|
getAutocompleteElement: () => AutocompleteElement;
|
|
236
|
-
/**
|
|
237
|
-
* Get the Activity Element Object.
|
|
238
|
-
*/
|
|
239
|
-
getActivityElement: () => ActivityElement;
|
|
240
235
|
/**
|
|
241
236
|
* Get the Area Object.
|
|
242
237
|
*/
|
|
@@ -365,7 +360,7 @@ export declare class Snippyly {
|
|
|
365
360
|
/**
|
|
366
361
|
* To update user contact list.
|
|
367
362
|
*/
|
|
368
|
-
updateContactList: (userContacts: UserContact[], config?: { merge: boolean
|
|
363
|
+
updateContactList: (userContacts: UserContact[], config?: { merge: boolean }) => void;
|
|
369
364
|
|
|
370
365
|
/**
|
|
371
366
|
* To get document metadata.
|
|
@@ -408,16 +403,6 @@ export declare class Snippyly {
|
|
|
408
403
|
*/
|
|
409
404
|
disableSafeEval: () => void;
|
|
410
405
|
|
|
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
406
|
/**
|
|
422
407
|
* To reset the button toggle map.
|
|
423
408
|
*/
|
|
@@ -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,20 +22,19 @@ 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
|
-
isEmailValid?: boolean;
|
|
39
38
|
}
|
|
40
39
|
export declare class AutocompleteGroup {
|
|
41
40
|
id: string;
|
|
@@ -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
|
}
|
|
@@ -125,8 +125,6 @@ export interface CommentRequestQuery {
|
|
|
125
125
|
batchedPerDocument?: boolean;
|
|
126
126
|
/** Debounce time in ms for batchedPerDocument mode (default: 5000). */
|
|
127
127
|
debounceMs?: number;
|
|
128
|
-
/** Filter annotations by agent fields. Matches annotations where `agent.agentFields` array contains any of the provided values. */
|
|
129
|
-
agentFields?: string[];
|
|
130
128
|
}
|
|
131
129
|
export interface SubscribeCommentAnnotationRequest {
|
|
132
130
|
annotationId: string;
|
|
@@ -147,8 +145,6 @@ export interface AddCommentRequest {
|
|
|
147
145
|
assignedTo?: User;
|
|
148
146
|
assigned?: boolean;
|
|
149
147
|
options?: RequestOptions;
|
|
150
|
-
/** Optional visibility configuration for the comment */
|
|
151
|
-
visibility?: CommentVisibilityConfig;
|
|
152
148
|
}
|
|
153
149
|
export interface UpdateCommentRequest {
|
|
154
150
|
annotationId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommentAccessMode
|
|
1
|
+
import { CommentAccessMode } from "../../utils/enums";
|
|
2
2
|
import { BaseMetadata } from "./base-metadata.data.model";
|
|
3
3
|
import { CommentVisibilityType } from "./comment-actions.data.model";
|
|
4
4
|
import { Comment } from "./comment.data.model";
|
|
@@ -7,7 +7,6 @@ import { CustomAnnotationDropdownItem } from "./custom-chip-dropdown.data.model"
|
|
|
7
7
|
import { CustomCategory, CustomPriority, CustomStatus } from "./custom-filter.data.model";
|
|
8
8
|
import { Location } from "./location.model";
|
|
9
9
|
import { PageInfo } from "./page-info.model";
|
|
10
|
-
import { SuggestionData } from "./suggestion.data.model";
|
|
11
10
|
import { TargetElement } from "./target-element.data.model";
|
|
12
11
|
import { TargetTextRange } from "./target-text-range.data.model";
|
|
13
12
|
import { User } from "./user.data.model";
|
|
@@ -200,13 +199,6 @@ export declare class CommentAnnotation {
|
|
|
200
199
|
viewedByUserIds?: string[];
|
|
201
200
|
viewedBy?: User[];
|
|
202
201
|
unread?: boolean;
|
|
203
|
-
/**
|
|
204
|
-
* SDK-managed suggestion data. Present iff type === 'suggestion'.
|
|
205
|
-
* Customer code must not write to this directly — use the SuggestionElement API.
|
|
206
|
-
*
|
|
207
|
-
* See docs/suggestions-api-contract.md for the full storage model.
|
|
208
|
-
*/
|
|
209
|
-
suggestion?: SuggestionData;
|
|
210
202
|
}
|
|
211
203
|
export declare class GhostComment {
|
|
212
204
|
targetElement?: TargetElement | null;
|
|
@@ -249,8 +241,7 @@ export declare class CommentSelectionChangeData {
|
|
|
249
241
|
}
|
|
250
242
|
export declare class VisibilityOptionClickedData {
|
|
251
243
|
annotationId: string;
|
|
252
|
-
visibility:
|
|
253
|
-
users?: any[];
|
|
244
|
+
visibility: 'public' | 'private';
|
|
254
245
|
}
|
|
255
246
|
export declare class InlineCommentSectionConfig {
|
|
256
247
|
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";
|
|
@@ -67,7 +67,6 @@ export type CommentEventTypesMap = {
|
|
|
67
67
|
[CommentEventTypes.UPDATE_ACCESS]: UpdateAccessEvent;
|
|
68
68
|
[CommentEventTypes.RESOLVE_COMMENT]: ResolveCommentEvent;
|
|
69
69
|
[CommentEventTypes.ADD_COMMENT]: AddCommentEvent;
|
|
70
|
-
[CommentEventTypes.ADD_COMMENT_DRAFT]: AddCommentDraftEvent;
|
|
71
70
|
[CommentEventTypes.UPDATE_COMMENT]: UpdateCommentEvent;
|
|
72
71
|
[CommentEventTypes.DELETE_COMMENT]: DeleteCommentEvent;
|
|
73
72
|
[CommentEventTypes.ADD_ATTACHMENT]: AddAttachmentEvent;
|
|
@@ -187,12 +186,6 @@ export interface AddCommentEvent {
|
|
|
187
186
|
comment: Comment;
|
|
188
187
|
metadata: VeltEventMetadata;
|
|
189
188
|
}
|
|
190
|
-
export interface AddCommentDraftEvent {
|
|
191
|
-
annotationId: string;
|
|
192
|
-
commentAnnotation: CommentAnnotation;
|
|
193
|
-
comment: Comment;
|
|
194
|
-
metadata: VeltEventMetadata;
|
|
195
|
-
}
|
|
196
189
|
export interface CommentSavedEvent {
|
|
197
190
|
annotationId: string;
|
|
198
191
|
commentAnnotation: CommentAnnotation;
|
|
@@ -329,12 +322,18 @@ export interface CommentToolClickEvent {
|
|
|
329
322
|
targetElementId?: string | null;
|
|
330
323
|
metadata?: VeltEventMetadata;
|
|
331
324
|
}
|
|
332
|
-
export interface CommentToolClickedEvent
|
|
325
|
+
export interface CommentToolClickedEvent {
|
|
326
|
+
context: {
|
|
327
|
+
[key: string]: any;
|
|
328
|
+
} | null;
|
|
329
|
+
targetElementId?: string | null;
|
|
330
|
+
metadata?: VeltEventMetadata;
|
|
333
331
|
}
|
|
334
332
|
export interface SidebarButtonClickEvent {
|
|
335
333
|
metadata?: VeltEventMetadata;
|
|
336
334
|
}
|
|
337
|
-
export interface SidebarButtonClickedEvent
|
|
335
|
+
export interface SidebarButtonClickedEvent {
|
|
336
|
+
metadata?: VeltEventMetadata;
|
|
338
337
|
}
|
|
339
338
|
export interface AttachmentDownloadClickedEvent {
|
|
340
339
|
annotationId: string;
|
|
@@ -345,7 +344,6 @@ export interface AttachmentDownloadClickedEvent {
|
|
|
345
344
|
export interface VisibilityOptionClickedEvent {
|
|
346
345
|
annotationId: string;
|
|
347
346
|
commentAnnotation: CommentAnnotation;
|
|
348
|
-
visibility:
|
|
349
|
-
users?: any[];
|
|
347
|
+
visibility: 'public' | 'private';
|
|
350
348
|
metadata?: VeltEventMetadata;
|
|
351
349
|
}
|
|
@@ -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 {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CommentAccessMode } from "../../utils/enums";
|
|
2
1
|
import { CommentAnnotation } from "./comment-annotation.data.model";
|
|
3
2
|
import { UnreadCommentsMap } from "./comment-utils.data.model";
|
|
4
3
|
import { CustomFilters } from "./custom-filter.data.model";
|
|
@@ -65,7 +64,6 @@ export declare class CommentSidebarFilters {
|
|
|
65
64
|
priority?: string[];
|
|
66
65
|
status?: string[];
|
|
67
66
|
category?: string[];
|
|
68
|
-
accessModes?: CommentAccessMode[];
|
|
69
67
|
version?: {
|
|
70
68
|
id: string;
|
|
71
69
|
name?: string;
|
|
@@ -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;
|
|
@@ -150,75 +147,6 @@ export type ReactionResolverEventType = {
|
|
|
150
147
|
REACTION_DELETE_RESULT: 'reactionDeleteResult';
|
|
151
148
|
REACTION_DELETE_ERROR: 'reactionDeleteError';
|
|
152
149
|
};
|
|
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
150
|
export type ErrorEvent = {
|
|
223
151
|
event?: string;
|
|
224
152
|
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,9 +1,6 @@
|
|
|
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 { RecorderAnnotationDataProvider } from "./recorder-resolver.data.model";
|
|
7
4
|
import { AnonymousUserDataProvider, UserDataProvider } from "./user-resolver.data.model";
|
|
8
5
|
export interface VeltDataProvider {
|
|
9
6
|
comment?: CommentAnnotationDataProvider;
|
|
@@ -11,7 +8,4 @@ export interface VeltDataProvider {
|
|
|
11
8
|
reaction?: ReactionAnnotationDataProvider;
|
|
12
9
|
attachment?: AttachmentDataProvider;
|
|
13
10
|
anonymousUser?: AnonymousUserDataProvider;
|
|
14
|
-
recorder?: RecorderAnnotationDataProvider;
|
|
15
|
-
notification?: NotificationDataProvider;
|
|
16
|
-
activity?: ActivityAnnotationDataProvider;
|
|
17
11
|
}
|
|
@@ -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;
|
|
@@ -33,7 +33,6 @@ export interface GetUserPermissionsResponse {
|
|
|
33
33
|
folders?: {
|
|
34
34
|
[folderId: string]: {
|
|
35
35
|
accessRole?: UserPermissionAccessRole;
|
|
36
|
-
accessType?: string;
|
|
37
36
|
expiresAt?: number;
|
|
38
37
|
error?: string;
|
|
39
38
|
errorCode?: UserPermissionAccessRoleResult;
|
|
@@ -50,7 +49,6 @@ export interface GetUserPermissionsResponse {
|
|
|
50
49
|
documents?: {
|
|
51
50
|
[documentId: string]: {
|
|
52
51
|
accessRole?: UserPermissionAccessRole;
|
|
53
|
-
accessType?: string;
|
|
54
52
|
expiresAt?: number;
|
|
55
53
|
error?: string;
|
|
56
54
|
errorCode?: UserPermissionAccessRoleResult;
|
|
@@ -12,8 +12,6 @@ export declare class User {
|
|
|
12
12
|
* Default: Random avatar name.
|
|
13
13
|
*/
|
|
14
14
|
name?: string;
|
|
15
|
-
email_lowercase?: string;
|
|
16
|
-
name_lowercase?: string;
|
|
17
15
|
clientUserName?: string;
|
|
18
16
|
/**
|
|
19
17
|
* Your user's display picture URL.
|
|
@@ -160,7 +158,6 @@ export interface PermissionQuery {
|
|
|
160
158
|
source: PermissionSource;
|
|
161
159
|
organizationId: string;
|
|
162
160
|
context?: Context | SetDocumentsContext;
|
|
163
|
-
parentFolderId?: string;
|
|
164
161
|
};
|
|
165
162
|
}
|
|
166
163
|
export interface PermissionResult {
|