@veltdev/types 4.7.1 → 4.7.2
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/models/data/area-annotation.data.model.d.ts +1 -7
- package/app/models/data/attachment.model.d.ts +1 -21
- package/app/models/data/comment-annotation.data.model.d.ts +4 -80
- package/app/models/data/comment.data.model.d.ts +1 -26
- package/app/models/data/config.data.model.d.ts +0 -23
- package/app/models/data/cursor-position.data.model.d.ts +0 -15
- package/app/models/data/cursor-user.data.model.d.ts +0 -5
- package/app/models/data/custom-filter.data.model.d.ts +0 -8
- package/app/models/data/document-iam.data.model.d.ts +0 -8
- package/app/models/data/document-metadata.model.d.ts +0 -28
- package/app/models/data/document-paths.data.model.d.ts +1 -51
- package/app/models/data/huddle.model.d.ts +1 -2
- package/app/models/data/live-state-data-map.data.model.d.ts +6 -7
- package/app/models/data/live-state-data.data.model.d.ts +2 -37
- package/app/models/data/location-metadata.model.d.ts +0 -14
- package/app/models/data/location.model.d.ts +2 -0
- package/app/models/data/media-preview-config.data.model.d.ts +0 -3
- package/app/models/data/notification.model.d.ts +3 -129
- package/app/models/data/page-info.model.d.ts +0 -4
- package/app/models/data/presence-user.data.model.d.ts +0 -7
- package/app/models/data/recorder-annotation.data.model.d.ts +9 -101
- package/app/models/data/recorder.model.d.ts +2 -31
- package/app/models/data/selection.model.d.ts +0 -12
- package/app/models/data/target-element.data.model.d.ts +0 -5
- package/app/models/data/target-text-range.data.model.d.ts +0 -13
- package/app/models/data/user-contact.data.model.d.ts +0 -21
- package/app/models/data/user-iam.data.model.d.ts +0 -15
- package/app/models/data/user.data.model.d.ts +0 -82
- package/app/utils/constants.d.ts +6 -133
- package/app/utils/enums.d.ts +4 -208
- package/models.d.ts +0 -36
- package/package.json +2 -2
- package/app/models/data/anchor-record.data.model.d.ts +0 -109
- package/app/models/data/arrow-annotation.data.model.d.ts +0 -51
- package/app/models/data/attachment-resolver.data.model.d.ts +0 -52
- package/app/models/data/autocomplete.data.model.d.ts +0 -51
- package/app/models/data/base-metadata.data.model.d.ts +0 -9
- package/app/models/data/button.data.model.d.ts +0 -37
- package/app/models/data/comment-actions.data.model.d.ts +0 -190
- package/app/models/data/comment-events.data.model.d.ts +0 -272
- package/app/models/data/comment-resolver.data.model.d.ts +0 -72
- package/app/models/data/comment-sidebar-config.model.d.ts +0 -95
- package/app/models/data/comment-utils.data.model.d.ts +0 -16
- package/app/models/data/contact-utils.data.model.d.ts +0 -9
- package/app/models/data/core-events.data.model.d.ts +0 -180
- package/app/models/data/crdt-events.data.model.d.ts +0 -25
- package/app/models/data/crdt.data.model.d.ts +0 -60
- package/app/models/data/custom-chip-dropdown.data.model.d.ts +0 -10
- package/app/models/data/custom-css.data.model.d.ts +0 -10
- package/app/models/data/customer-metadata.data.model.d.ts +0 -15
- package/app/models/data/document-events.data.model.d.ts +0 -8
- package/app/models/data/document.data.model.d.ts +0 -63
- package/app/models/data/encryption-provider.data.model.d.ts +0 -12
- package/app/models/data/event-metadata.data.model.d.ts +0 -32
- package/app/models/data/folder-metadata.model.d.ts +0 -40
- package/app/models/data/heartbeat.data.model.d.ts +0 -16
- package/app/models/data/live-state-events.data.model.d.ts +0 -23
- package/app/models/data/multi-thread.data.model.d.ts +0 -63
- package/app/models/data/notifications-events.data.model.d.ts +0 -9
- package/app/models/data/organization-groups.data.model.d.ts +0 -16
- package/app/models/data/organization-metadata.model.d.ts +0 -31
- package/app/models/data/presence-actions.data.model.d.ts +0 -5
- package/app/models/data/presence-events.data.model.d.ts +0 -16
- package/app/models/data/provider.data.model.d.ts +0 -10
- package/app/models/data/reaction-annotation.data.model.d.ts +0 -68
- package/app/models/data/reaction-resolver.data.model.d.ts +0 -42
- package/app/models/data/reaction.data.model.d.ts +0 -18
- package/app/models/data/recorder-events.data.model.d.ts +0 -45
- package/app/models/data/resolver.data.model.d.ts +0 -36
- package/app/models/data/screenshot.data.model.d.ts +0 -10
- package/app/models/data/sync-video-player.data.model.d.ts +0 -47
- package/app/models/data/user-organization.data.model.d.ts +0 -12
- package/app/models/data/user-resolver.data.model.d.ts +0 -56
- package/app/models/data/views.data.model.d.ts +0 -64
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
import { CommentAccessMode, CommentEventTypes, CommentStatus } from "../../utils/enums";
|
|
2
|
-
import { Attachment } from "./attachment.model";
|
|
3
|
-
import { VeltButtonClickEvent } from "./button.data.model";
|
|
4
|
-
import { AddAttachmentResponse } from "./comment-actions.data.model";
|
|
5
|
-
import { CommentAnnotation, UpdateContextConfig } from "./comment-annotation.data.model";
|
|
6
|
-
import { Comment } from "./comment.data.model";
|
|
7
|
-
import { CustomPriority, CustomStatus } from "./custom-filter.data.model";
|
|
8
|
-
import { VeltEventMetadata } from "./event-metadata.data.model";
|
|
9
|
-
import { Location } from "./location.model";
|
|
10
|
-
import { ReactionAnnotation } from "./reaction-annotation.data.model";
|
|
11
|
-
import { RecordedData } from "./recorder.model";
|
|
12
|
-
import { UserContact } from "./user-contact.data.model";
|
|
13
|
-
import { User } from "./user.data.model";
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Use `AddCommentAnnotationEvent` instead
|
|
16
|
-
*/
|
|
17
|
-
export interface CommentAddEventData {
|
|
18
|
-
annotation: CommentAnnotation;
|
|
19
|
-
location?: Location;
|
|
20
|
-
documentId?: string;
|
|
21
|
-
addContext: (context: any) => void;
|
|
22
|
-
targetAnnotationId?: string;
|
|
23
|
-
targetCommentId?: number;
|
|
24
|
-
elementRef?: {
|
|
25
|
-
xpath: string;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated Use respective events instead
|
|
30
|
-
*/
|
|
31
|
-
export interface CommentEvent {
|
|
32
|
-
annotation?: CommentAnnotation | null;
|
|
33
|
-
element?: HTMLElement;
|
|
34
|
-
type?: string;
|
|
35
|
-
targetAnnotationId?: string;
|
|
36
|
-
targetCommentId?: number;
|
|
37
|
-
updateContext?: (context: any, config?: UpdateContextConfig) => void;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated Use respective events instead
|
|
41
|
-
*/
|
|
42
|
-
export interface CommentUpdateEventData extends CommentEvent {
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated Use `AcceptCommentAnnotationEvent` and `RejectCommentAnnotationEvent` instead
|
|
46
|
-
*/
|
|
47
|
-
export interface CommentSuggestionEventData {
|
|
48
|
-
annotationId: string;
|
|
49
|
-
actionUser?: User;
|
|
50
|
-
actionType?: CommentStatus;
|
|
51
|
-
replaceContentHtml?: string;
|
|
52
|
-
replaceContentText?: string;
|
|
53
|
-
annotation?: any;
|
|
54
|
-
}
|
|
55
|
-
export type CommentEventTypesMap = {
|
|
56
|
-
[CommentEventTypes.ADD_COMMENT_ANNOTATION]: AddCommentAnnotationEvent;
|
|
57
|
-
[CommentEventTypes.APPROVE_COMMENT_ANNOTATION]: ApproveCommentAnnotationEvent;
|
|
58
|
-
[CommentEventTypes.ACCEPT_COMMENT_ANNOTATION]: AcceptCommentAnnotationEvent;
|
|
59
|
-
[CommentEventTypes.REJECT_COMMENT_ANNOTATION]: RejectCommentAnnotationEvent;
|
|
60
|
-
[CommentEventTypes.SUBSCRIBE_COMMENT_ANNOTATION]: SubscribeCommentAnnotationEvent;
|
|
61
|
-
[CommentEventTypes.UNSUBSCRIBE_COMMENT_ANNOTATION]: UnsubscribeCommentAnnotationEvent;
|
|
62
|
-
[CommentEventTypes.DELETE_COMMENT_ANNOTATION]: DeleteCommentAnnotationEvent;
|
|
63
|
-
[CommentEventTypes.ASSIGN_USER]: AssignUserEvent;
|
|
64
|
-
[CommentEventTypes.UPDATE_PRIORITY]: UpdatePriorityEvent;
|
|
65
|
-
[CommentEventTypes.UPDATE_STATUS]: UpdateStatusEvent;
|
|
66
|
-
[CommentEventTypes.UPDATE_ACCESS]: UpdateAccessEvent;
|
|
67
|
-
[CommentEventTypes.RESOLVE_COMMENT]: ResolveCommentEvent;
|
|
68
|
-
[CommentEventTypes.ADD_COMMENT]: AddCommentEvent;
|
|
69
|
-
[CommentEventTypes.UPDATE_COMMENT]: UpdateCommentEvent;
|
|
70
|
-
[CommentEventTypes.DELETE_COMMENT]: DeleteCommentEvent;
|
|
71
|
-
[CommentEventTypes.ADD_ATTACHMENT]: AddAttachmentEvent;
|
|
72
|
-
[CommentEventTypes.DELETE_ATTACHMENT]: DeleteAttachmentEvent;
|
|
73
|
-
[CommentEventTypes.DELETE_RECORDING]: DeleteRecordingEvent;
|
|
74
|
-
[CommentEventTypes.COPY_LINK]: CopyLinkEvent;
|
|
75
|
-
[CommentEventTypes.ADD_REACTION]: AddReactionEvent;
|
|
76
|
-
[CommentEventTypes.DELETE_REACTION]: DeleteReactionEvent;
|
|
77
|
-
[CommentEventTypes.TOGGLE_REACTION]: ToggleReactionEvent;
|
|
78
|
-
[CommentEventTypes.COMMENT_SIDEBAR_DATA_INIT]: CommentSidebarDataInitEvent;
|
|
79
|
-
[CommentEventTypes.COMMENT_SIDEBAR_DATA_UPDATE]: CommentSidebarDataUpdateEvent;
|
|
80
|
-
[CommentEventTypes.AUTOCOMPLETE_SEARCH]: AutocompleteSearchEvent;
|
|
81
|
-
[CommentEventTypes.COMPOSER_CLICKED]: ComposerClickedEvent;
|
|
82
|
-
[CommentEventTypes.LINK_CLICKED]: LinkClickedEvent;
|
|
83
|
-
[CommentEventTypes.COMMENT_PIN_CLICKED]: CommentPinClickedEvent;
|
|
84
|
-
[CommentEventTypes.COMMENT_BUBBLE_CLICKED]: CommentBubbleClickedEvent;
|
|
85
|
-
};
|
|
86
|
-
export interface AddAttachmentEvent {
|
|
87
|
-
annotationId: string;
|
|
88
|
-
commentAnnotation: CommentAnnotation;
|
|
89
|
-
attachments: AddAttachmentResponse[];
|
|
90
|
-
metadata: VeltEventMetadata;
|
|
91
|
-
}
|
|
92
|
-
export interface DeleteAttachmentEvent {
|
|
93
|
-
annotationId: string;
|
|
94
|
-
commentId: number;
|
|
95
|
-
commentAnnotation: CommentAnnotation;
|
|
96
|
-
attachment: Attachment;
|
|
97
|
-
metadata: VeltEventMetadata;
|
|
98
|
-
}
|
|
99
|
-
export interface AddCommentAnnotationEvent {
|
|
100
|
-
annotationId: string;
|
|
101
|
-
commentAnnotation: CommentAnnotation;
|
|
102
|
-
metadata: VeltEventMetadata;
|
|
103
|
-
addContext: (context: any) => void;
|
|
104
|
-
elementRef?: {
|
|
105
|
-
xpath: string;
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
export interface ApproveCommentAnnotationEvent {
|
|
109
|
-
annotationId: string;
|
|
110
|
-
commentAnnotation: CommentAnnotation;
|
|
111
|
-
metadata: VeltEventMetadata;
|
|
112
|
-
}
|
|
113
|
-
export interface AcceptCommentAnnotationEvent {
|
|
114
|
-
annotationId: string;
|
|
115
|
-
commentAnnotation: CommentAnnotation;
|
|
116
|
-
metadata: VeltEventMetadata;
|
|
117
|
-
actionUser: User;
|
|
118
|
-
replaceContentHtml?: string;
|
|
119
|
-
replaceContentText?: string;
|
|
120
|
-
}
|
|
121
|
-
export interface RejectCommentAnnotationEvent {
|
|
122
|
-
annotationId: string;
|
|
123
|
-
commentAnnotation: CommentAnnotation;
|
|
124
|
-
metadata: VeltEventMetadata;
|
|
125
|
-
actionUser: User;
|
|
126
|
-
replaceContentHtml?: string;
|
|
127
|
-
replaceContentText?: string;
|
|
128
|
-
}
|
|
129
|
-
export interface DeleteCommentAnnotationEvent {
|
|
130
|
-
annotationId: string;
|
|
131
|
-
commentAnnotation: CommentAnnotation;
|
|
132
|
-
metadata: VeltEventMetadata;
|
|
133
|
-
}
|
|
134
|
-
export interface GetCommentAnnotationsResponse {
|
|
135
|
-
data: Record<string, CommentAnnotation[]> | null;
|
|
136
|
-
}
|
|
137
|
-
export interface FetchCommentAnnotationsResponse extends GetCommentAnnotationsResponse {
|
|
138
|
-
nextPageToken?: string;
|
|
139
|
-
}
|
|
140
|
-
export interface GetCommentAnnotationsCountResponse {
|
|
141
|
-
data: Record<string, CommentAnnotationsCount> | null;
|
|
142
|
-
}
|
|
143
|
-
export interface CommentAnnotationsCount {
|
|
144
|
-
unread: number;
|
|
145
|
-
total: number;
|
|
146
|
-
}
|
|
147
|
-
export interface SubscribeCommentAnnotationEvent {
|
|
148
|
-
annotationId: string;
|
|
149
|
-
commentAnnotation: CommentAnnotation;
|
|
150
|
-
metadata: VeltEventMetadata;
|
|
151
|
-
}
|
|
152
|
-
export interface UnsubscribeCommentAnnotationEvent {
|
|
153
|
-
annotationId: string;
|
|
154
|
-
commentAnnotation: CommentAnnotation;
|
|
155
|
-
metadata: VeltEventMetadata;
|
|
156
|
-
}
|
|
157
|
-
export interface AssignUserEvent {
|
|
158
|
-
annotationId: string;
|
|
159
|
-
assignedTo: UserContact;
|
|
160
|
-
commentAnnotation: CommentAnnotation;
|
|
161
|
-
metadata?: VeltEventMetadata;
|
|
162
|
-
}
|
|
163
|
-
export interface AddCommentEvent {
|
|
164
|
-
annotationId: string;
|
|
165
|
-
commentAnnotation: CommentAnnotation;
|
|
166
|
-
commentId: number;
|
|
167
|
-
comment: Comment;
|
|
168
|
-
metadata: VeltEventMetadata;
|
|
169
|
-
}
|
|
170
|
-
export interface UpdateCommentEvent {
|
|
171
|
-
annotationId: string;
|
|
172
|
-
commentAnnotation: CommentAnnotation;
|
|
173
|
-
commentId: number;
|
|
174
|
-
comment: Comment;
|
|
175
|
-
metadata: VeltEventMetadata;
|
|
176
|
-
}
|
|
177
|
-
export interface DeleteCommentEvent {
|
|
178
|
-
annotationId: string;
|
|
179
|
-
commentAnnotation: CommentAnnotation;
|
|
180
|
-
commentId: number;
|
|
181
|
-
comment: Comment;
|
|
182
|
-
metadata: VeltEventMetadata;
|
|
183
|
-
}
|
|
184
|
-
export interface DeleteRecordingEvent {
|
|
185
|
-
annotationId: string;
|
|
186
|
-
commentAnnotation: CommentAnnotation;
|
|
187
|
-
commentId: number;
|
|
188
|
-
recording: RecordedData;
|
|
189
|
-
metadata: VeltEventMetadata;
|
|
190
|
-
}
|
|
191
|
-
export interface ReactionEvent {
|
|
192
|
-
annotationId: string;
|
|
193
|
-
commentAnnotation: CommentAnnotation;
|
|
194
|
-
commentId: number;
|
|
195
|
-
reaction: ReactionAnnotation;
|
|
196
|
-
metadata: VeltEventMetadata;
|
|
197
|
-
}
|
|
198
|
-
export interface AddReactionEvent extends ReactionEvent {
|
|
199
|
-
}
|
|
200
|
-
export interface DeleteReactionEvent extends ReactionEvent {
|
|
201
|
-
}
|
|
202
|
-
export interface ToggleReactionEvent extends ReactionEvent {
|
|
203
|
-
}
|
|
204
|
-
export interface UpdateStatusEvent {
|
|
205
|
-
annotationId: string;
|
|
206
|
-
commentAnnotation: CommentAnnotation;
|
|
207
|
-
newStatus: CustomStatus;
|
|
208
|
-
oldStatus: CustomStatus;
|
|
209
|
-
metadata: VeltEventMetadata;
|
|
210
|
-
}
|
|
211
|
-
export interface UpdatePriorityEvent {
|
|
212
|
-
annotationId: string;
|
|
213
|
-
commentAnnotation: CommentAnnotation;
|
|
214
|
-
newPriority?: CustomPriority;
|
|
215
|
-
oldPriority?: CustomPriority;
|
|
216
|
-
metadata: VeltEventMetadata;
|
|
217
|
-
}
|
|
218
|
-
export interface UpdateAccessEvent {
|
|
219
|
-
annotationId: string;
|
|
220
|
-
commentAnnotation: CommentAnnotation;
|
|
221
|
-
newAccessMode?: CommentAccessMode;
|
|
222
|
-
oldAccessMode?: CommentAccessMode;
|
|
223
|
-
metadata: VeltEventMetadata;
|
|
224
|
-
}
|
|
225
|
-
export interface ResolveCommentEvent {
|
|
226
|
-
annotationId: string;
|
|
227
|
-
commentAnnotation: CommentAnnotation;
|
|
228
|
-
metadata: VeltEventMetadata;
|
|
229
|
-
}
|
|
230
|
-
export interface GetLinkResponse {
|
|
231
|
-
annotationId: string;
|
|
232
|
-
commentAnnotation: CommentAnnotation;
|
|
233
|
-
link: string | null;
|
|
234
|
-
metadata: VeltEventMetadata;
|
|
235
|
-
}
|
|
236
|
-
export interface CopyLinkEvent {
|
|
237
|
-
annotationId: string;
|
|
238
|
-
commentAnnotation: CommentAnnotation;
|
|
239
|
-
link: string;
|
|
240
|
-
metadata: VeltEventMetadata;
|
|
241
|
-
}
|
|
242
|
-
export interface CommentSidebarDataInitEvent extends VeltButtonClickEvent {
|
|
243
|
-
}
|
|
244
|
-
export interface CommentSidebarDataUpdateEvent extends VeltButtonClickEvent {
|
|
245
|
-
}
|
|
246
|
-
export interface AutocompleteSearchEvent {
|
|
247
|
-
event: KeyboardEvent | InputEvent | Event;
|
|
248
|
-
searchText: string;
|
|
249
|
-
type?: 'contact' | 'custom' | 'group';
|
|
250
|
-
metadata?: VeltEventMetadata;
|
|
251
|
-
}
|
|
252
|
-
export interface ComposerClickedEvent {
|
|
253
|
-
commentAnnotation?: CommentAnnotation;
|
|
254
|
-
metadata?: VeltEventMetadata;
|
|
255
|
-
}
|
|
256
|
-
export interface LinkClickedEvent {
|
|
257
|
-
text: string;
|
|
258
|
-
link: string;
|
|
259
|
-
commentAnnotation: CommentAnnotation;
|
|
260
|
-
commentId: Number;
|
|
261
|
-
metadata?: VeltEventMetadata;
|
|
262
|
-
}
|
|
263
|
-
export interface CommentPinClickedEvent {
|
|
264
|
-
annotationId: string;
|
|
265
|
-
commentAnnotation: CommentAnnotation;
|
|
266
|
-
metadata?: VeltEventMetadata;
|
|
267
|
-
}
|
|
268
|
-
export interface CommentBubbleClickedEvent {
|
|
269
|
-
annotationId: string;
|
|
270
|
-
commentAnnotation: CommentAnnotation;
|
|
271
|
-
metadata?: VeltEventMetadata;
|
|
272
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { ResolverActions } from "../../utils/enums";
|
|
2
|
-
import { PartialAttachment } from "./attachment-resolver.data.model";
|
|
3
|
-
import { BaseMetadata } from "./base-metadata.data.model";
|
|
4
|
-
import { CommentAnnotation } from "./comment-annotation.data.model";
|
|
5
|
-
import { ResolverConfig, ResolverResponse } from "./resolver.data.model";
|
|
6
|
-
export interface CommentAnnotationDataProvider {
|
|
7
|
-
get: (request: GetCommentResolverRequest) => Promise<ResolverResponse<Record<string, PartialCommentAnnotation>>>;
|
|
8
|
-
save: (request: SaveCommentResolverRequest) => Promise<ResolverResponse<undefined>>;
|
|
9
|
-
delete: (request: DeleteCommentResolverRequest) => Promise<ResolverResponse<undefined>>;
|
|
10
|
-
config?: ResolverConfig;
|
|
11
|
-
}
|
|
12
|
-
export interface GetCommentResolverRequest {
|
|
13
|
-
organizationId: string;
|
|
14
|
-
commentAnnotationIds?: string[];
|
|
15
|
-
documentIds?: string[];
|
|
16
|
-
folderId?: string;
|
|
17
|
-
allDocuments?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export interface DeleteCommentResolverRequest {
|
|
20
|
-
commentAnnotationId: string;
|
|
21
|
-
metadata?: BaseMetadata;
|
|
22
|
-
event?: ResolverActions;
|
|
23
|
-
}
|
|
24
|
-
export interface SaveCommentResolverRequest {
|
|
25
|
-
commentAnnotation: {
|
|
26
|
-
[key: string]: PartialCommentAnnotation;
|
|
27
|
-
};
|
|
28
|
-
event?: ResolverActions;
|
|
29
|
-
metadata?: BaseMetadata;
|
|
30
|
-
commentId?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface PartialUser {
|
|
33
|
-
userId: string;
|
|
34
|
-
}
|
|
35
|
-
export interface PartialTaggedUserContacts {
|
|
36
|
-
userId: string;
|
|
37
|
-
contact?: PartialUser;
|
|
38
|
-
text?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface PartialComment {
|
|
41
|
-
commentId: string | number;
|
|
42
|
-
commentHtml?: string;
|
|
43
|
-
commentText?: string;
|
|
44
|
-
attachments?: {
|
|
45
|
-
[attachmentId: number]: PartialAttachment;
|
|
46
|
-
};
|
|
47
|
-
from?: PartialUser;
|
|
48
|
-
to?: PartialUser[];
|
|
49
|
-
taggedUserContacts?: PartialTaggedUserContacts[];
|
|
50
|
-
}
|
|
51
|
-
export interface PartialCommentAnnotationResult {
|
|
52
|
-
strippedData: {
|
|
53
|
-
[annotationId: string]: PartialCommentAnnotation;
|
|
54
|
-
} | null;
|
|
55
|
-
originalData: CommentAnnotation | null;
|
|
56
|
-
eventType?: ResolverActions;
|
|
57
|
-
}
|
|
58
|
-
export interface PartialTargetTextRange {
|
|
59
|
-
text: string;
|
|
60
|
-
}
|
|
61
|
-
export interface PartialCommentAnnotation {
|
|
62
|
-
annotationId: string;
|
|
63
|
-
metadata?: BaseMetadata;
|
|
64
|
-
comments: {
|
|
65
|
-
[commentId: string]: PartialComment;
|
|
66
|
-
};
|
|
67
|
-
from?: PartialUser;
|
|
68
|
-
assignedTo?: PartialUser;
|
|
69
|
-
targetTextRange?: PartialTargetTextRange;
|
|
70
|
-
resolvedByUserId?: string | null;
|
|
71
|
-
[key: string]: any;
|
|
72
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { CommentAnnotation } from "./comment-annotation.data.model";
|
|
2
|
-
import { UnreadCommentsMap } from "./comment-utils.data.model";
|
|
3
|
-
import { CustomFilters } from "./custom-filter.data.model";
|
|
4
|
-
import { Location } from "./location.model";
|
|
5
|
-
declare class FilterOption {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
}
|
|
9
|
-
declare class FilterTypeConfig {
|
|
10
|
-
name?: string;
|
|
11
|
-
enable?: boolean;
|
|
12
|
-
multiSelection?: boolean;
|
|
13
|
-
enableGrouping?: boolean;
|
|
14
|
-
order?: string[];
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
id?: string;
|
|
17
|
-
type?: 'custom' | 'system';
|
|
18
|
-
options?: FilterOption[];
|
|
19
|
-
}
|
|
20
|
-
export declare class CommentSidebarFilterConfig {
|
|
21
|
-
location?: FilterTypeConfig;
|
|
22
|
-
document?: FilterTypeConfig;
|
|
23
|
-
people?: FilterTypeConfig;
|
|
24
|
-
assigned?: FilterTypeConfig;
|
|
25
|
-
tagged?: FilterTypeConfig;
|
|
26
|
-
involved?: FilterTypeConfig;
|
|
27
|
-
priority?: FilterTypeConfig;
|
|
28
|
-
status?: FilterTypeConfig;
|
|
29
|
-
category?: FilterTypeConfig;
|
|
30
|
-
commentType?: FilterTypeConfig;
|
|
31
|
-
version?: FilterTypeConfig;
|
|
32
|
-
[key: string]: FilterTypeConfig | undefined;
|
|
33
|
-
}
|
|
34
|
-
export declare class CommentSidebarGroupConfig {
|
|
35
|
-
enable?: boolean;
|
|
36
|
-
name?: string;
|
|
37
|
-
}
|
|
38
|
-
export declare class CommentSidebarFilters {
|
|
39
|
-
location?: Location[];
|
|
40
|
-
document?: {
|
|
41
|
-
id?: string;
|
|
42
|
-
documentName?: string;
|
|
43
|
-
}[];
|
|
44
|
-
people?: {
|
|
45
|
-
userId?: string;
|
|
46
|
-
email?: string;
|
|
47
|
-
name?: string;
|
|
48
|
-
}[];
|
|
49
|
-
assigned?: {
|
|
50
|
-
userId?: string;
|
|
51
|
-
email?: string;
|
|
52
|
-
name?: string;
|
|
53
|
-
}[];
|
|
54
|
-
tagged?: {
|
|
55
|
-
userId?: string;
|
|
56
|
-
email?: string;
|
|
57
|
-
name?: string;
|
|
58
|
-
}[];
|
|
59
|
-
involved?: {
|
|
60
|
-
userId?: string;
|
|
61
|
-
email?: string;
|
|
62
|
-
name?: string;
|
|
63
|
-
}[];
|
|
64
|
-
priority?: string[];
|
|
65
|
-
status?: string[];
|
|
66
|
-
category?: string[];
|
|
67
|
-
version?: {
|
|
68
|
-
id: string;
|
|
69
|
-
name?: string;
|
|
70
|
-
}[];
|
|
71
|
-
[key: string]: {
|
|
72
|
-
id?: string;
|
|
73
|
-
name?: string;
|
|
74
|
-
}[] | string[] | undefined;
|
|
75
|
-
}
|
|
76
|
-
export interface CommentSidebarCustomActionsState {
|
|
77
|
-
[key: string]: boolean;
|
|
78
|
-
}
|
|
79
|
-
export interface CommentSidebarCustomActionEventData {
|
|
80
|
-
actions: CommentSidebarCustomActionsState;
|
|
81
|
-
data: CommentAnnotation[];
|
|
82
|
-
unreadDataMap: UnreadCommentsMap;
|
|
83
|
-
systemFilteredData: CommentAnnotation[];
|
|
84
|
-
customFilters: CustomFilters;
|
|
85
|
-
}
|
|
86
|
-
export declare class CommentSidebarData {
|
|
87
|
-
groupId?: string;
|
|
88
|
-
groupName?: string;
|
|
89
|
-
isExpanded?: boolean;
|
|
90
|
-
annotations: CommentAnnotation[];
|
|
91
|
-
}
|
|
92
|
-
export declare class CommentSidebarDataOptions {
|
|
93
|
-
grouping?: boolean;
|
|
94
|
-
}
|
|
95
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface IUnreadCommentsMap {
|
|
2
|
-
[annotationId: string]: number;
|
|
3
|
-
}
|
|
4
|
-
export type UnreadCommentsMap = IUnreadCommentsMap | null;
|
|
5
|
-
export interface IUnreadCommentsCount {
|
|
6
|
-
count: number;
|
|
7
|
-
}
|
|
8
|
-
export type UnreadCommentsCount = IUnreadCommentsCount | null;
|
|
9
|
-
export interface TransformContext {
|
|
10
|
-
containerSelector: string;
|
|
11
|
-
transforms: {
|
|
12
|
-
scale: number;
|
|
13
|
-
transformOrigin: string;
|
|
14
|
-
inverseScale?: number;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UserGroup } from "./organization-groups.data.model";
|
|
2
|
-
import { User } from "./user.data.model";
|
|
3
|
-
export interface GetContactListResponse {
|
|
4
|
-
organizationUsers?: User[];
|
|
5
|
-
folderUsers?: User[];
|
|
6
|
-
documentUsers?: User[];
|
|
7
|
-
userGroups?: UserGroup[];
|
|
8
|
-
updatedContactList?: User[];
|
|
9
|
-
}
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { CoreEventTypes } from "../../utils/enums";
|
|
2
|
-
import { VeltButtonClickEvent } from "./button.data.model";
|
|
3
|
-
import { PermissionSource, User } from "./user.data.model";
|
|
4
|
-
export type CoreEventTypesMap = {
|
|
5
|
-
[CoreEventTypes.PERMISSION_PROVIDER]: PermissionProviderEvent;
|
|
6
|
-
[CoreEventTypes.USER_RESOLVER]: UserResolverEvent;
|
|
7
|
-
[CoreEventTypes.COMMENT_RESOLVER]: CommentResolverEvent;
|
|
8
|
-
[CoreEventTypes.ATTACHMENT_RESOLVER]: AttachmentResolverEvent;
|
|
9
|
-
[CoreEventTypes.REACTION_RESOLVER]: ReactionResolverEvent;
|
|
10
|
-
[CoreEventTypes.VELT_BUTTON_CLICK]: VeltButtonClickEvent;
|
|
11
|
-
[CoreEventTypes.USER_UPDATE]: UserUpdateEvent;
|
|
12
|
-
[CoreEventTypes.DOCUMENT_INIT]: DocumentInitEvent;
|
|
13
|
-
[CoreEventTypes.ERROR]: ErrorEvent;
|
|
14
|
-
[CoreEventTypes.INIT_UPDATE]: InitUpdateEvent;
|
|
15
|
-
};
|
|
16
|
-
export type UserUpdateEvent = User | null;
|
|
17
|
-
export type DocumentInitEvent = boolean | undefined;
|
|
18
|
-
export declare enum UserResolverSource {
|
|
19
|
-
RESOLVE_USERS = "resolveUsers",
|
|
20
|
-
FORMAT_RESPONSE = "formatResponse",
|
|
21
|
-
MERGE_USER_WITH_PROVIDED_USER_DATA = "mergeUserWithProvidedUserData",
|
|
22
|
-
GET_TEMPORARY_USERS = "getTemporaryUsers",
|
|
23
|
-
SET_SINGLE_EDITOR_MODE_LIVE_STATE_DATA_FOR_DIFFERENT_USER_PRESENT_ON_TAB = "setSingleEditorModeLiveStateDataForDifferentUserPresentOnTab",
|
|
24
|
-
RESOLVE_AND_MERGE_SINGLE_EDITOR_LIVE_STATE_DATA_WITH_USER = "resolveAndMergeSingleEditorLiveStateDataWithUser",
|
|
25
|
-
GET_SINGLE_EDITOR_MODE_DATA = "getSingleEditorModeData",
|
|
26
|
-
RESOLVE_USERS_FROM_HUDDLE_MESSAGES = "resolveUsersFromHuddleMessages"
|
|
27
|
-
}
|
|
28
|
-
export declare enum UserResolverModuleName {
|
|
29
|
-
IDENTIFY = "identify/authProvider",
|
|
30
|
-
GET_TEMPORARY_USERS = "getTemporaryUsers",
|
|
31
|
-
GET_USERS = "getUsers",
|
|
32
|
-
GET_HUDDLE_USERS = "getHuddleUsers",
|
|
33
|
-
GET_SINGLE_EDITOR_USERS = "getSingleEditorUsers"
|
|
34
|
-
}
|
|
35
|
-
export declare enum CommentResolverSource {
|
|
36
|
-
RESOLVE_COMMENT_ANNOTATIONS = "resolveCommentAnnotations",
|
|
37
|
-
SAVE_COMMENT_ANNOTATION = "saveCommentAnnotation",
|
|
38
|
-
DELETE_COMMENT_ANNOTATION = "deleteCommentAnnotation",
|
|
39
|
-
FORMAT_RESPONSE = "formatResponse",
|
|
40
|
-
INIT_DOCUMENTS = "initDocuments",
|
|
41
|
-
SET_DATA = "setData",
|
|
42
|
-
UPDATE_DATA = "updateData",
|
|
43
|
-
DELETE_DATA = "deleteData"
|
|
44
|
-
}
|
|
45
|
-
export declare enum AttachmentResolverSource {
|
|
46
|
-
SAVE_ATTACHMENT = "saveAttachment",
|
|
47
|
-
DELETE_ATTACHMENT = "deleteAttachment",
|
|
48
|
-
UPLOAD_TO_RESOLVER = "uploadToResolver"
|
|
49
|
-
}
|
|
50
|
-
export declare enum ReactionResolverSource {
|
|
51
|
-
RESOLVE_REACTION_ANNOTATIONS = "resolveReactionAnnotations",
|
|
52
|
-
SAVE_REACTION_ANNOTATION = "saveReactionAnnotation",
|
|
53
|
-
DELETE_REACTION_ANNOTATION = "deleteReactionAnnotation",
|
|
54
|
-
FORMAT_RESPONSE = "formatResponse",
|
|
55
|
-
INIT_DOCUMENTS = "initDocuments",
|
|
56
|
-
SET_DATA = "setData",
|
|
57
|
-
UPDATE_DATA = "updateData",
|
|
58
|
-
DELETE_DATA = "deleteData"
|
|
59
|
-
}
|
|
60
|
-
export type BaseResolverEvent<TEventType, TMethodName, TModuleName> = {
|
|
61
|
-
event: TEventType;
|
|
62
|
-
methodName?: TMethodName;
|
|
63
|
-
moduleName?: TModuleName;
|
|
64
|
-
source?: 'internal' | 'external';
|
|
65
|
-
timestamp?: number;
|
|
66
|
-
uniqueId?: string;
|
|
67
|
-
payload?: any;
|
|
68
|
-
};
|
|
69
|
-
export type PermissionProviderEvent = BaseResolverEvent<PermissionProviderEventType, PermissionSource, PermissionProviderModuleName>;
|
|
70
|
-
export declare enum PermissionProviderModuleName {
|
|
71
|
-
}
|
|
72
|
-
export type PermissionProviderEventType = {
|
|
73
|
-
RESOURCE_ACCESS_REQUEST_FORMED: 'resourceAccessRequestFormed';
|
|
74
|
-
RESOURCE_ACCESS_REQUEST_TRIGGERED: 'resourceAccessRequestTriggered';
|
|
75
|
-
RESOURCE_ACCESS_RESULT: 'resourceAccessResult';
|
|
76
|
-
RESOURCE_ACCESS_ERROR: 'resourceAccessError';
|
|
77
|
-
RESOURCE_ACCESS_RESULT_FROM_CACHE: 'resourceAccessResultFromCache';
|
|
78
|
-
REVOKE_ACCESS_ON_DOCUMENT_UNSET_TRIGGERED: 'revokeAccessOnDocumentUnsetTriggered';
|
|
79
|
-
REVOKE_ACCESS_ON_DOCUMENT_UNSET_FORMED: 'revokeAccessOnDocumentUnsetFormed';
|
|
80
|
-
REVOKE_ACCESS_ON_DOCUMENT_UNSET_RESULT: 'revokeAccessOnDocumentUnsetResult';
|
|
81
|
-
REVOKE_ACCESS_ON_USER_LOGOUT_TRIGGERED: 'revokeAccessOnUserLogoutTriggered';
|
|
82
|
-
REVOKE_ACCESS_ON_USER_LOGOUT_FORMED: 'revokeAccessOnUserLogoutFormed';
|
|
83
|
-
REVOKE_ACCESS_ON_USER_LOGOUT_RESULT: 'revokeAccessOnUserLogoutResult';
|
|
84
|
-
REVOKE_ACCESS_ON_DOCUMENT_UNSET_ERROR: 'revokeAccessOnDocumentUnsetError';
|
|
85
|
-
REVOKE_ACCESS_ON_USER_LOGOUT_ERROR: 'revokeAccessOnUserLogoutError';
|
|
86
|
-
};
|
|
87
|
-
export type UserResolverEvent = BaseResolverEvent<UserResolverEventType, UserResolverSource, UserResolverModuleName>;
|
|
88
|
-
export type UserResolverEventType = {
|
|
89
|
-
USER_RESOLUTION_REQUEST_FORMED: 'userResolutionRequestFormed';
|
|
90
|
-
USER_RESOLUTION_REQUEST_TRIGGERED: 'userResolutionRequestTriggered';
|
|
91
|
-
USER_RESOLUTION_RESULT: 'userResolutionResult';
|
|
92
|
-
USER_RESOLUTION_ERROR: 'userResolutionError';
|
|
93
|
-
USER_RESOLUTION_RESULT_FROM_CACHE: 'userResolutionResultFromCache';
|
|
94
|
-
};
|
|
95
|
-
export type CommentResolverEvent = BaseResolverEvent<CommentResolverEventType, CommentResolverSource, CommentResolverModuleName>;
|
|
96
|
-
export declare enum CommentResolverModuleName {
|
|
97
|
-
SET_DOCUMENTS = "setDocuments",
|
|
98
|
-
GET_COMMENT_ANNOTATIONS = "getCommentAnnotations",
|
|
99
|
-
GET_NOTIFICATIONS = "getNotifications"
|
|
100
|
-
}
|
|
101
|
-
export type CommentResolverEventType = {
|
|
102
|
-
COMMENT_RESOLUTION_REQUEST_FORMED: 'commentResolutionRequestFormed';
|
|
103
|
-
COMMENT_RESOLUTION_REQUEST_TRIGGERED: 'commentResolutionRequestTriggered';
|
|
104
|
-
COMMENT_RESOLUTION_RESULT: 'commentResolutionResult';
|
|
105
|
-
COMMENT_RESOLUTION_ERROR: 'commentResolutionError';
|
|
106
|
-
COMMENT_RESOLUTION_RESULT_FROM_CACHE: 'commentResolutionResultFromCache';
|
|
107
|
-
COMMENT_SAVE_REQUEST_FORMED: 'commentSaveRequestFormed';
|
|
108
|
-
COMMENT_SAVE_REQUEST_TRIGGERED: 'commentSaveRequestTriggered';
|
|
109
|
-
COMMENT_SAVE_RESULT: 'commentSaveResult';
|
|
110
|
-
COMMENT_SAVE_ERROR: 'commentSaveError';
|
|
111
|
-
COMMENT_DELETE_REQUEST_FORMED: 'commentDeleteRequestFormed';
|
|
112
|
-
COMMENT_DELETE_REQUEST_TRIGGERED: 'commentDeleteRequestTriggered';
|
|
113
|
-
COMMENT_DELETE_RESULT: 'commentDeleteResult';
|
|
114
|
-
COMMENT_DELETE_ERROR: 'commentDeleteError';
|
|
115
|
-
};
|
|
116
|
-
export type AttachmentResolverEvent = BaseResolverEvent<AttachmentResolverEventType, AttachmentResolverSource, AttachmentResolverModuleName>;
|
|
117
|
-
export declare enum AttachmentResolverModuleName {
|
|
118
|
-
}
|
|
119
|
-
export type AttachmentResolverEventType = {
|
|
120
|
-
ATTACHMENT_SAVE_REQUEST_FORMED: 'attachmentSaveRequestFormed';
|
|
121
|
-
ATTACHMENT_SAVE_REQUEST_TRIGGERED: 'attachmentSaveRequestTriggered';
|
|
122
|
-
ATTACHMENT_SAVE_RESULT: 'attachmentSaveResult';
|
|
123
|
-
ATTACHMENT_SAVE_ERROR: 'attachmentSaveError';
|
|
124
|
-
ATTACHMENT_DELETE_REQUEST_FORMED: 'attachmentDeleteRequestFormed';
|
|
125
|
-
ATTACHMENT_DELETE_REQUEST_TRIGGERED: 'attachmentDeleteRequestTriggered';
|
|
126
|
-
ATTACHMENT_DELETE_RESULT: 'attachmentDeleteResult';
|
|
127
|
-
ATTACHMENT_DELETE_ERROR: 'attachmentDeleteError';
|
|
128
|
-
};
|
|
129
|
-
export type ReactionResolverEvent = BaseResolverEvent<ReactionResolverEventType, ReactionResolverSource, ReactionResolverModuleName>;
|
|
130
|
-
export declare enum ReactionResolverModuleName {
|
|
131
|
-
SET_DOCUMENTS = "setDocuments",
|
|
132
|
-
GET_REACTION_ANNOTATIONS = "getReactionAnnotations"
|
|
133
|
-
}
|
|
134
|
-
export type ReactionResolverEventType = {
|
|
135
|
-
REACTION_RESOLUTION_REQUEST_FORMED: 'reactionResolutionRequestFormed';
|
|
136
|
-
REACTION_RESOLUTION_REQUEST_TRIGGERED: 'reactionResolutionRequestTriggered';
|
|
137
|
-
REACTION_RESOLUTION_RESULT: 'reactionResolutionResult';
|
|
138
|
-
REACTION_RESOLUTION_ERROR: 'reactionResolutionError';
|
|
139
|
-
REACTION_RESOLUTION_RESULT_FROM_CACHE: 'reactionResolutionResultFromCache';
|
|
140
|
-
REACTION_SAVE_REQUEST_FORMED: 'reactionSaveRequestFormed';
|
|
141
|
-
REACTION_SAVE_REQUEST_TRIGGERED: 'reactionSaveRequestTriggered';
|
|
142
|
-
REACTION_SAVE_RESULT: 'reactionSaveResult';
|
|
143
|
-
REACTION_SAVE_ERROR: 'reactionSaveError';
|
|
144
|
-
REACTION_DELETE_REQUEST_FORMED: 'reactionDeleteRequestFormed';
|
|
145
|
-
REACTION_DELETE_REQUEST_TRIGGERED: 'reactionDeleteRequestTriggered';
|
|
146
|
-
REACTION_DELETE_RESULT: 'reactionDeleteResult';
|
|
147
|
-
REACTION_DELETE_ERROR: 'reactionDeleteError';
|
|
148
|
-
};
|
|
149
|
-
export type ErrorEvent = {
|
|
150
|
-
event?: string;
|
|
151
|
-
sourceMethod?: string;
|
|
152
|
-
documentIds?: string[];
|
|
153
|
-
userId?: string;
|
|
154
|
-
timestamp?: number;
|
|
155
|
-
error?: string;
|
|
156
|
-
code?: string;
|
|
157
|
-
message?: string;
|
|
158
|
-
source?: string;
|
|
159
|
-
};
|
|
160
|
-
export declare enum InitUpdateMethodNames {
|
|
161
|
-
SET_DOCUMENTS = "setDocuments",
|
|
162
|
-
SET_ROOT_DOCUMENT = "setRootDocument",
|
|
163
|
-
SET_DOCUMENT_ID = "setDocumentId",
|
|
164
|
-
UNSET_DOCUMENT_ID = "unsetDocumentId",
|
|
165
|
-
UNSET_DOCUMENTS = "unsetDocuments",
|
|
166
|
-
SET_LOCATION = "setLocation",
|
|
167
|
-
SET_LOCATIONS = "setLocations",
|
|
168
|
-
SET_ROOT_LOCATION = "setRootLocation",
|
|
169
|
-
ADD_LOCATION = "addLocation",
|
|
170
|
-
REMOVE_LOCATION = "removeLocation",
|
|
171
|
-
REMOVE_LOCATIONS = "removeLocations",
|
|
172
|
-
UNSET_LOCATION_IDS = "unsetLocationIds",
|
|
173
|
-
REMOVE_LOCATIONS_SUCCESS = "removeLocationsSuccess"
|
|
174
|
-
}
|
|
175
|
-
export type InitUpdateEvent = {
|
|
176
|
-
event: string;
|
|
177
|
-
methodName?: string;
|
|
178
|
-
source?: string;
|
|
179
|
-
payload?: any;
|
|
180
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CrdtEventTypes } from "../../utils/enums";
|
|
2
|
-
export type CrdtEventTypesMap = {
|
|
3
|
-
[CrdtEventTypes.UPDATE_DATA]: CrdtUpdateDataEvent;
|
|
4
|
-
};
|
|
5
|
-
export declare enum CrdtSource {
|
|
6
|
-
INTERNAL = "internal",
|
|
7
|
-
EXTERNAL = "external"
|
|
8
|
-
}
|
|
9
|
-
export declare enum CrdtMethodName {
|
|
10
|
-
UPDATE_DATA = "updateData"
|
|
11
|
-
}
|
|
12
|
-
export type CrdtUpdateDataEvent = {
|
|
13
|
-
methodName: string;
|
|
14
|
-
uniqueId: string;
|
|
15
|
-
timestamp: number;
|
|
16
|
-
source: string;
|
|
17
|
-
payload: CrdtUpdateDataPayload;
|
|
18
|
-
};
|
|
19
|
-
export type CrdtUpdateDataPayload = {
|
|
20
|
-
id: string;
|
|
21
|
-
data: unknown;
|
|
22
|
-
lastUpdatedBy: string;
|
|
23
|
-
sessionId?: string | null;
|
|
24
|
-
lastUpdate: string;
|
|
25
|
-
};
|