@veltdev/sdk 4.0.0-beta.8 → 4.0.0
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 +220 -195
- package/app/models/data/arrow-annotation.data.model.d.ts +51 -0
- package/app/models/data/base-metadata.data.model.d.ts +2 -0
- package/app/models/data/comment-actions.data.model.d.ts +20 -0
- package/app/models/data/comment-events.data.model.d.ts +15 -0
- package/app/models/data/comment-utils.data.model.d.ts +8 -0
- package/app/models/data/cursor-position.data.model.d.ts +15 -0
- package/app/models/data/document-events.data.model.d.ts +8 -0
- package/app/models/data/document-metadata.model.d.ts +8 -0
- package/app/models/data/document.data.model.d.ts +23 -0
- package/app/models/data/folder-metadata.model.d.ts +40 -0
- package/app/models/data/multi-thread.data.model.d.ts +61 -0
- package/app/models/data/notification.model.d.ts +16 -0
- package/app/models/data/recorder-annotation.data.model.d.ts +6 -0
- package/app/models/data/recorder-events.data.model.d.ts +2 -10
- package/app/models/data/user-resolver.data.model.d.ts +5 -0
- package/app/models/element/comment-element.model.d.ts +31 -1
- package/app/models/element/recorder-element.model.d.ts +13 -1
- package/app/utils/constants.d.ts +5 -0
- package/app/utils/enums.d.ts +2 -0
- package/models.d.ts +4 -0
- package/package.json +1 -1
- package/velt.js +2 -2
|
@@ -26,210 +26,214 @@ import { DocumentMetadata } from "../models/data/document-metadata.model";
|
|
|
26
26
|
import { ReactionElement } from "../models/element/reaction-element.model";
|
|
27
27
|
import { VeltEventMetadata } from "../models/data/event-metadata.data.model";
|
|
28
28
|
import { CoreEventTypesMap } from "../models/data/core-events.data.model";
|
|
29
|
-
import { Document, SetDocumentsRequestOptions } from "../models/data/document.data.model";
|
|
29
|
+
import { Document, SetDocumentsRequestOptions, FetchDocumentsRequest, FetchFoldersRequest } from "../models/data/document.data.model";
|
|
30
|
+
import { FetchDocumentsResponse, FetchFoldersResponse } from "../models/data/document-events.data.model";
|
|
31
|
+
import { UserDataProvider } from "../models/data/user-resolver.data.model";
|
|
32
|
+
|
|
30
33
|
export declare class Snippyly {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
34
|
+
constructor();
|
|
35
|
+
initConfig: (apiKey: string, config?: Config) => void;
|
|
36
|
+
identify: (user: User, userOptions?: UserOptions) => Promise<unknown>;
|
|
37
|
+
/**
|
|
38
|
+
* Tell us who the currently logged in user is.
|
|
39
|
+
*
|
|
40
|
+
* Call whenever the user is updated: signs in, signs out, signs up etc.
|
|
41
|
+
* @deprecated This method is deprecated.
|
|
42
|
+
*/
|
|
43
|
+
updateUser: (user: User) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Tell us the unique ID of the current document/resource on which you want to enable collaboration.
|
|
46
|
+
* @param id unique document ID
|
|
47
|
+
* @param documentMetadata Document Metadata
|
|
48
|
+
*/
|
|
49
|
+
setDocument: (id: string, documentMetadata?: DocumentMetadata) => void;
|
|
50
|
+
/**
|
|
51
|
+
* Tell us the unique ID of the current document/resource on which you want to enable collaboration.
|
|
52
|
+
* @param id unique document ID
|
|
53
|
+
* @deprecated This method is deprecated. Use `setDocuments` method instead.
|
|
54
|
+
*/
|
|
55
|
+
setDocumentId: (id: string) => void;
|
|
56
|
+
/**
|
|
57
|
+
* To set multiple documents
|
|
58
|
+
*/
|
|
59
|
+
setDocuments: (documents: Document[], options?: SetDocumentsRequestOptions) => void;
|
|
60
|
+
/**
|
|
61
|
+
* To unset the document id
|
|
62
|
+
* @deprecated This method is deprecated. Use `unsetDocuments` method instead.
|
|
63
|
+
*/
|
|
64
|
+
unsetDocumentId: () => void;
|
|
65
|
+
/**
|
|
66
|
+
* To unset the documents
|
|
67
|
+
*/
|
|
68
|
+
unsetDocuments: () => void;
|
|
69
|
+
/**
|
|
70
|
+
* To fetch documents
|
|
71
|
+
*/
|
|
72
|
+
fetchDocuments: (options?: FetchDocumentsRequest) => Promise<FetchDocumentsResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* To fetch folders
|
|
75
|
+
*/
|
|
76
|
+
fetchFolders: (options?: FetchFoldersRequest) => Promise<FetchFoldersResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* To set the user data provider.
|
|
79
|
+
*/
|
|
80
|
+
setUserDataProvider: (userDataProvider: UserDataProvider) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Get Document ID
|
|
83
|
+
*/
|
|
84
|
+
getDocumentId: () => string;
|
|
85
|
+
/**
|
|
86
|
+
* Tell us the custom params of the current document/resource to identify sub document inside a document.
|
|
87
|
+
* @param params Location
|
|
88
|
+
* @param appendLocation Append location to existing location
|
|
89
|
+
*/
|
|
90
|
+
setLocation: (params: Location, appendLocation?: boolean) => void;
|
|
91
|
+
/**
|
|
92
|
+
* To remove location from a User
|
|
93
|
+
* @param location Location
|
|
94
|
+
*/
|
|
95
|
+
removeLocation: (location?: Location) => void;
|
|
96
|
+
/**
|
|
97
|
+
* To exclude data of specific location ids
|
|
98
|
+
* @param ids Location Ids
|
|
99
|
+
*/
|
|
100
|
+
excludeLocationIds: (ids: string[]) => void;
|
|
101
|
+
/**
|
|
102
|
+
* Tell us the about the scrollable document ids to keep track on its scroll changes
|
|
103
|
+
* @param ids scrollable elements ids
|
|
104
|
+
*/
|
|
105
|
+
setScrollableElementsIds: (ids: string[]) => void;
|
|
106
|
+
/**
|
|
107
|
+
* To remove document params from a User
|
|
108
|
+
*/
|
|
109
|
+
removeScrollableElementsIds: () => void;
|
|
110
|
+
/**
|
|
111
|
+
* Get the Presence Element Object to access the raw presence data.
|
|
112
|
+
*
|
|
113
|
+
* This is for Pros who don’t want to use Snippyly Presence web component and want to design their own UI.
|
|
114
|
+
*/
|
|
115
|
+
getPresenceElement: () => PresenceElement;
|
|
116
|
+
/**
|
|
117
|
+
* Get the Cursor Element Object to access the raw cursor data.
|
|
118
|
+
*
|
|
119
|
+
* This is for Pros who don’t want to use Snippyly Presence web component and want to design their own UI.
|
|
120
|
+
*/
|
|
121
|
+
getCursorElement: () => CursorElement;
|
|
122
|
+
/**
|
|
123
|
+
* Get the Comment Element Object to access the raw comment data.
|
|
124
|
+
*
|
|
125
|
+
* This is for Pros who don’t want to use Snippyly Comment web component and want to design their own UI.
|
|
126
|
+
*/
|
|
127
|
+
getCommentElement: () => CommentElement;
|
|
128
|
+
/**
|
|
129
|
+
* Get the Tag Pin Annotation Object to access the raw tag data.
|
|
130
|
+
*
|
|
131
|
+
* This is for Pros who don’t want to use Snippyly Tag web component and want to design their own UI.
|
|
132
|
+
*/
|
|
133
|
+
getTagElement: () => TagElement;
|
|
134
|
+
/**
|
|
135
|
+
* Get the Selection Object to enable/disable the feature.
|
|
136
|
+
*/
|
|
137
|
+
getSelectionElement: () => SelectionElement;
|
|
138
|
+
/**
|
|
139
|
+
* Get the Recorder Object.
|
|
140
|
+
*/
|
|
141
|
+
getRecorderElement: () => RecorderElement;
|
|
142
|
+
/**
|
|
143
|
+
* Get the Contact Object.
|
|
144
|
+
*/
|
|
145
|
+
getContactElement: () => ContactElement;
|
|
146
|
+
/**
|
|
147
|
+
* Get the Rewriter Object.
|
|
148
|
+
*/
|
|
149
|
+
getRewriterElement: () => RewriterElement;
|
|
150
|
+
/**
|
|
151
|
+
* Get the Huddle element.
|
|
152
|
+
*/
|
|
153
|
+
getHuddleElement: () => HuddleElement;
|
|
154
|
+
/**
|
|
155
|
+
* Get the LiveStateSync Object.
|
|
156
|
+
*/
|
|
157
|
+
getLiveStateSyncElement: () => LiveStateSyncElement;
|
|
158
|
+
/**
|
|
159
|
+
* Get the Arrow Object.
|
|
160
|
+
*/
|
|
161
|
+
getArrowElement: () => ArrowElement;
|
|
162
|
+
/**
|
|
163
|
+
* Get the Views Object.
|
|
164
|
+
*/
|
|
165
|
+
getViewsElement: () => ViewsElement;
|
|
166
|
+
/**
|
|
167
|
+
* Get the Notification Object.
|
|
168
|
+
*/
|
|
169
|
+
getNotificationElement: () => NotificationElement;
|
|
170
|
+
/**
|
|
171
|
+
* Get the Autocomplete Object.
|
|
172
|
+
*/
|
|
173
|
+
getAutocompleteElement: () => AutocompleteElement;
|
|
174
|
+
/**
|
|
175
|
+
* Get the Area Object.
|
|
176
|
+
*/
|
|
177
|
+
getAreaElement: () => AreaElement;
|
|
178
|
+
/**
|
|
179
|
+
* Get the Area Object.
|
|
180
|
+
*/
|
|
181
|
+
getReactionElement: () => ReactionElement;
|
|
182
|
+
/**
|
|
183
|
+
* Get the metadata of the current resource.
|
|
184
|
+
*/
|
|
185
|
+
getMetadata: () => Promise<VeltEventMetadata | null>;
|
|
186
|
+
/**
|
|
187
|
+
* To signout a user
|
|
188
|
+
*/
|
|
189
|
+
signOutUser: () => any;
|
|
190
|
+
/**
|
|
191
|
+
* Provide a list of features to disable.
|
|
192
|
+
* Provide an empty array to enable all the features.
|
|
193
|
+
* @param features List of features
|
|
194
|
+
*/
|
|
195
|
+
disableFeatures: (features: Array<FeatureType>) => void;
|
|
196
|
+
/**
|
|
187
197
|
* Add location to show comments, tags, recorders etc. for provided location also.
|
|
188
198
|
* @param location Location object
|
|
189
199
|
* @deprecated This method is deprecated and will be removed in next release. Use `setLocation` method with `appendLocation: true` instead.
|
|
190
200
|
*/
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* To check if user allowed in provided document or not.
|
|
200
|
-
*/
|
|
201
|
-
isUserAllowed$: () => Observable<boolean>;
|
|
201
|
+
addLocation: (location: any) => any;
|
|
202
|
+
/**
|
|
203
|
+
* To set the dark mode of Velt components.
|
|
204
|
+
* @param value {boolean} true/false
|
|
205
|
+
*/
|
|
206
|
+
setDarkMode: (darkMode: boolean) => void;
|
|
202
207
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
208
|
+
/**
|
|
209
|
+
* To check if user allowed in provided document or not.
|
|
210
|
+
*/
|
|
211
|
+
isUserAllowed$: () => Observable<boolean>;
|
|
207
212
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
213
|
+
/**
|
|
214
|
+
* To get user.
|
|
215
|
+
*/
|
|
216
|
+
getUser: () => User | null;
|
|
212
217
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
getVeltInitState: () => Observable<boolean | undefined>;
|
|
218
|
+
/**
|
|
219
|
+
* To get user role in provided document.
|
|
220
|
+
*/
|
|
221
|
+
getUserRole$: () => Observable<string | null>;
|
|
218
222
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
inviteUsers: (documentUsers: Array<DocumentUser>) => void;
|
|
223
|
+
/**
|
|
224
|
+
* To check if plan is expired or not.
|
|
225
|
+
*/
|
|
226
|
+
isPlanExpired$: () => Observable<boolean>;
|
|
224
227
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
228
|
+
/**
|
|
229
|
+
* To get if the Velt is initialized or not.
|
|
230
|
+
* @returns Observable<boolean | undefined>
|
|
231
|
+
*/
|
|
232
|
+
getVeltInitState: () => Observable<boolean | undefined>;
|
|
229
233
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
234
|
+
/**
|
|
235
|
+
* To remove velt specific content from provided html content.
|
|
236
|
+
*/
|
|
233
237
|
removeVeltContent: (htmlContent: string) => string;
|
|
234
238
|
|
|
235
239
|
/**
|
|
@@ -263,10 +267,11 @@ export declare class Snippyly {
|
|
|
263
267
|
/**
|
|
264
268
|
* To update user contact list.
|
|
265
269
|
*/
|
|
266
|
-
updateContactList: (userContacts: UserContact[], config?: {merge: boolean}) => void;
|
|
270
|
+
updateContactList: (userContacts: UserContact[], config?: { merge: boolean }) => void;
|
|
267
271
|
|
|
268
272
|
/**
|
|
269
273
|
* To get document metadata.
|
|
274
|
+
* @deprecated This method is deprecated. Use `fetchDocuments` method instead.
|
|
270
275
|
*/
|
|
271
276
|
getDocumentMetadata: () => Observable<DocumentMetadata | null>;
|
|
272
277
|
|
|
@@ -274,4 +279,24 @@ export declare class Snippyly {
|
|
|
274
279
|
* To subscribe to core actions
|
|
275
280
|
*/
|
|
276
281
|
on: <T extends keyof CoreEventTypesMap>(action: T) => Observable<CoreEventTypesMap[T]>;
|
|
277
|
-
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* To set the ui state.
|
|
285
|
+
*/
|
|
286
|
+
setUiState: <T extends object>(uiState: T) => void;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* To get the ui state.
|
|
290
|
+
*/
|
|
291
|
+
getUiState: <T extends object>() => Observable<T>;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* To enable logs.
|
|
295
|
+
*/
|
|
296
|
+
enableLogs: () => void;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* To disable logs.
|
|
300
|
+
*/
|
|
301
|
+
disableLogs: () => void;
|
|
302
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AnnotationProperty } from "./annotation-property.data.model";
|
|
2
|
+
import { CursorPosition } from "./cursor-position.data.model";
|
|
3
|
+
import { Location } from "./location.model";
|
|
4
|
+
import { PageInfo } from "./page-info.model";
|
|
5
|
+
import { TargetElement } from "./target-element.data.model";
|
|
6
|
+
import { User } from "./user.data.model";
|
|
7
|
+
export declare class ArrowAnnotation {
|
|
8
|
+
/**
|
|
9
|
+
* Unique identifier for the arrow pin annotation.
|
|
10
|
+
*
|
|
11
|
+
* Auto generated.
|
|
12
|
+
*/
|
|
13
|
+
annotationId: string;
|
|
14
|
+
/**
|
|
15
|
+
* The user who created this arrow pin annotation.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
from: User;
|
|
19
|
+
/**
|
|
20
|
+
* Color used for the arrow pin annotation.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
color?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Timestamp when the arrow annotation was last updated.
|
|
26
|
+
*
|
|
27
|
+
* Auto generated.
|
|
28
|
+
*/
|
|
29
|
+
lastUpdated?: any;
|
|
30
|
+
/**
|
|
31
|
+
* Target element of attached annotation.
|
|
32
|
+
*/
|
|
33
|
+
targetElement?: TargetElement | null;
|
|
34
|
+
position?: CursorPosition | null;
|
|
35
|
+
/**
|
|
36
|
+
* Unique location id generated from provided location
|
|
37
|
+
*/
|
|
38
|
+
locationId?: number | null;
|
|
39
|
+
/**
|
|
40
|
+
* Set location to identify user on sub document
|
|
41
|
+
*/
|
|
42
|
+
location?: Location | null;
|
|
43
|
+
type?: string;
|
|
44
|
+
props: AnnotationProperty;
|
|
45
|
+
/**
|
|
46
|
+
* To maintain index of current annotation in available list of annotations
|
|
47
|
+
* It will start from 1, so no need to add 1 in that.
|
|
48
|
+
*/
|
|
49
|
+
annotationIndex?: number;
|
|
50
|
+
pageInfo?: PageInfo;
|
|
51
|
+
}
|
|
@@ -9,8 +9,10 @@ import { User } from "./user.data.model";
|
|
|
9
9
|
export interface RequestOptions {
|
|
10
10
|
organizationId?: string;
|
|
11
11
|
documentId?: string;
|
|
12
|
+
folderId?: string;
|
|
12
13
|
filters?: any;
|
|
13
14
|
documentIds?: string[];
|
|
15
|
+
allDocuments?: boolean;
|
|
14
16
|
}
|
|
15
17
|
export interface UpdatePriorityRequest {
|
|
16
18
|
annotationId: string;
|
|
@@ -63,6 +65,9 @@ export interface CommentRequestQuery {
|
|
|
63
65
|
documentIds?: string[];
|
|
64
66
|
locationIds?: string[];
|
|
65
67
|
statusIds?: string[];
|
|
68
|
+
folderId?: string;
|
|
69
|
+
allDocuments?: boolean;
|
|
70
|
+
locationId?: string;
|
|
66
71
|
}
|
|
67
72
|
export interface SubscribeCommentAnnotationRequest {
|
|
68
73
|
annotationId: string;
|
|
@@ -161,3 +166,18 @@ export interface ToggleReactionRequest {
|
|
|
161
166
|
};
|
|
162
167
|
options?: RequestOptions;
|
|
163
168
|
}
|
|
169
|
+
export interface FetchCommentAnnotationsRequest {
|
|
170
|
+
createdAfter?: number;
|
|
171
|
+
createdBefore?: number;
|
|
172
|
+
updatedAfter?: number;
|
|
173
|
+
updatedBefore?: number;
|
|
174
|
+
statusIds?: string[];
|
|
175
|
+
order?: 'asc' | 'desc';
|
|
176
|
+
pageToken?: string;
|
|
177
|
+
allDocuments?: boolean;
|
|
178
|
+
pageSize?: number;
|
|
179
|
+
organizationId?: string;
|
|
180
|
+
locationId?: string;
|
|
181
|
+
documentIds?: string[];
|
|
182
|
+
folderId?: string;
|
|
183
|
+
}
|
|
@@ -77,6 +77,8 @@ export type CommentEventTypesMap = {
|
|
|
77
77
|
[CommentEventTypes.TOGGLE_REACTION]: ToggleReactionEvent;
|
|
78
78
|
[CommentEventTypes.COMMENT_SIDEBAR_DATA_INIT]: CommentSidebarDataInitEvent;
|
|
79
79
|
[CommentEventTypes.COMMENT_SIDEBAR_DATA_UPDATE]: CommentSidebarDataUpdateEvent;
|
|
80
|
+
[CommentEventTypes.AUTOCOMPLETE_SEARCH]: AutocompleteSearchEvent;
|
|
81
|
+
[CommentEventTypes.COMPOSER_CLICKED]: ComposerClickedEvent;
|
|
80
82
|
};
|
|
81
83
|
export interface AddAttachmentEvent {
|
|
82
84
|
annotationId: string;
|
|
@@ -129,6 +131,9 @@ export interface DeleteCommentAnnotationEvent {
|
|
|
129
131
|
export interface GetCommentAnnotationsResponse {
|
|
130
132
|
data: Record<string, CommentAnnotation[]> | null;
|
|
131
133
|
}
|
|
134
|
+
export interface FetchCommentAnnotationsResponse extends GetCommentAnnotationsResponse {
|
|
135
|
+
nextPageToken: string;
|
|
136
|
+
}
|
|
132
137
|
export interface GetCommentAnnotationsCountResponse {
|
|
133
138
|
data: Record<string, CommentAnnotationsCount> | null;
|
|
134
139
|
}
|
|
@@ -235,3 +240,13 @@ export interface CommentSidebarDataInitEvent extends VeltButtonClickEvent {
|
|
|
235
240
|
}
|
|
236
241
|
export interface CommentSidebarDataUpdateEvent extends VeltButtonClickEvent {
|
|
237
242
|
}
|
|
243
|
+
export interface AutocompleteSearchEvent {
|
|
244
|
+
event: KeyboardEvent | InputEvent | Event;
|
|
245
|
+
searchText: string;
|
|
246
|
+
type?: 'contact' | 'custom' | 'group';
|
|
247
|
+
metadata?: VeltEventMetadata;
|
|
248
|
+
}
|
|
249
|
+
export interface ComposerClickedEvent {
|
|
250
|
+
commentAnnotation?: CommentAnnotation;
|
|
251
|
+
metadata?: VeltEventMetadata;
|
|
252
|
+
}
|
|
@@ -6,3 +6,11 @@ export interface IUnreadCommentsCount {
|
|
|
6
6
|
count: number;
|
|
7
7
|
}
|
|
8
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
|
+
}
|
|
@@ -7,4 +7,19 @@ export declare class CursorPosition {
|
|
|
7
7
|
* Position left of cursor on viewer user's screen
|
|
8
8
|
*/
|
|
9
9
|
left: number;
|
|
10
|
+
/**
|
|
11
|
+
* Scale factor of the parent element in X direction
|
|
12
|
+
* Used for transform handling
|
|
13
|
+
*/
|
|
14
|
+
parentScaleX?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Scale factor of the parent element in Y direction
|
|
17
|
+
* Used for transform handling
|
|
18
|
+
*/
|
|
19
|
+
parentScaleY?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Transform context information
|
|
22
|
+
* Used to handle transforms properly
|
|
23
|
+
*/
|
|
24
|
+
transformContext?: any;
|
|
10
25
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DocumentMetadata } from "./document-metadata.model";
|
|
2
|
+
import { FolderMetadata } from "./folder-metadata.model";
|
|
3
|
+
export interface FetchDocumentsResponse {
|
|
4
|
+
data: Record<string, DocumentMetadata> | null;
|
|
5
|
+
}
|
|
6
|
+
export interface FetchFoldersResponse {
|
|
7
|
+
data: Record<string, FolderMetadata> | null;
|
|
8
|
+
}
|
|
@@ -6,6 +6,14 @@ export declare class DocumentMetadata {
|
|
|
6
6
|
* Unique document id generated from client document id
|
|
7
7
|
*/
|
|
8
8
|
documentId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Folders
|
|
11
|
+
*/
|
|
12
|
+
folderId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Velt folder id
|
|
15
|
+
*/
|
|
16
|
+
veltFolderId?: string;
|
|
9
17
|
/**
|
|
10
18
|
* API key
|
|
11
19
|
*/
|
|
@@ -5,4 +5,27 @@ export interface Document {
|
|
|
5
5
|
}
|
|
6
6
|
export interface SetDocumentsRequestOptions {
|
|
7
7
|
organizationId?: string;
|
|
8
|
+
folderId?: string;
|
|
9
|
+
allDocuments?: boolean;
|
|
10
|
+
locationId?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface FetchDocumentsRequest {
|
|
13
|
+
organizationId?: string;
|
|
14
|
+
documentIds?: string[];
|
|
15
|
+
folderId?: string;
|
|
16
|
+
allDocuments?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface FetchFoldersRequest {
|
|
19
|
+
organizationId?: string;
|
|
20
|
+
folderId?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface FolderConfig {
|
|
23
|
+
folderId?: string;
|
|
24
|
+
allDocuments?: boolean;
|
|
25
|
+
locationId?: string;
|
|
26
|
+
veltFolderId?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface OrganizationConfig {
|
|
29
|
+
organizationId: string;
|
|
30
|
+
clientOrganizationId: string;
|
|
8
31
|
}
|