@veltdev/types-dev 4.0.0-beta.116 → 4.0.0-beta.117
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.
|
@@ -26,183 +26,178 @@ 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";
|
|
30
31
|
import { UserDataProvider } from "../models/data/user-resolver.data.model";
|
|
32
|
+
|
|
31
33
|
export declare class Snippyly {
|
|
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
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
*/
|
|
200
|
-
addLocation: (location: any) => any;
|
|
201
|
-
/**
|
|
202
|
-
* To set the dark mode of Velt components.
|
|
203
|
-
* @param value {boolean} true/false
|
|
204
|
-
*/
|
|
205
|
-
setDarkMode: (darkMode: boolean) => void;
|
|
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 and will be removed in next release.
|
|
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 and will be removed in next release. 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 and will be removed in next release. 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
|
+
/**
|
|
197
|
+
* To set the dark mode of Velt components.
|
|
198
|
+
* @param value {boolean} true/false
|
|
199
|
+
*/
|
|
200
|
+
setDarkMode: (darkMode: boolean) => void;
|
|
206
201
|
|
|
207
202
|
/**
|
|
208
203
|
* To check if user allowed in provided document or not.
|
|
@@ -219,22 +214,11 @@ export declare class Snippyly {
|
|
|
219
214
|
*/
|
|
220
215
|
isPlanExpired$: () => Observable<boolean>;
|
|
221
216
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* To invite list of users to the document.
|
|
230
|
-
* @param documentUsers List of document users
|
|
231
|
-
*/
|
|
232
|
-
inviteUsers: (documentUsers: Array<DocumentUser>) => void;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* To remove snippyly specific content from provided html content.
|
|
236
|
-
*/
|
|
237
|
-
removeSnippylyContent: (htmlContent: string) => string;
|
|
217
|
+
/**
|
|
218
|
+
* To get if the Velt is initialized or not.
|
|
219
|
+
* @returns Observable<boolean | undefined>
|
|
220
|
+
*/
|
|
221
|
+
getVeltInitState: () => Observable<boolean | undefined>;
|
|
238
222
|
|
|
239
223
|
/**
|
|
240
224
|
* To remove velt specific content from provided html content.
|
|
@@ -276,6 +260,7 @@ export declare class Snippyly {
|
|
|
276
260
|
|
|
277
261
|
/**
|
|
278
262
|
* To get document metadata.
|
|
263
|
+
* @deprecated This method is deprecated and will be removed in next release.
|
|
279
264
|
*/
|
|
280
265
|
getDocumentMetadata: () => Observable<DocumentMetadata | null>;
|
|
281
266
|
|
|
@@ -5,9 +5,7 @@ import { AddAttachmentResponse } from "./comment-actions.data.model";
|
|
|
5
5
|
import { CommentAnnotation, UpdateContextConfig } from "./comment-annotation.data.model";
|
|
6
6
|
import { Comment } from "./comment.data.model";
|
|
7
7
|
import { CustomPriority, CustomStatus } from "./custom-filter.data.model";
|
|
8
|
-
import { DocumentMetadata } from "./document-metadata.model";
|
|
9
8
|
import { VeltEventMetadata } from "./event-metadata.data.model";
|
|
10
|
-
import { FolderMetadata } from "./folder-metadata.model";
|
|
11
9
|
import { Location } from "./location.model";
|
|
12
10
|
import { ReactionAnnotation } from "./reaction-annotation.data.model";
|
|
13
11
|
import { RecordedData } from "./recorder.model";
|
|
@@ -135,14 +133,6 @@ export interface GetCommentAnnotationsResponse {
|
|
|
135
133
|
export interface FetchCommentAnnotationsResponse extends GetCommentAnnotationsResponse {
|
|
136
134
|
nextPageToken: string;
|
|
137
135
|
}
|
|
138
|
-
export interface FetchDocumentsResponse {
|
|
139
|
-
data: Record<string, DocumentMetadata[]> | null;
|
|
140
|
-
nextPageToken: string;
|
|
141
|
-
}
|
|
142
|
-
export interface FetchFoldersResponse {
|
|
143
|
-
data: Record<string, FolderMetadata[]> | null;
|
|
144
|
-
nextPageToken: string;
|
|
145
|
-
}
|
|
146
136
|
export interface GetCommentAnnotationsCountResponse {
|
|
147
137
|
data: Record<string, CommentAnnotationsCount> | null;
|
|
148
138
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
nextPageToken: string;
|
|
6
|
+
}
|
|
7
|
+
export interface FetchFoldersResponse {
|
|
8
|
+
data: Record<string, FolderMetadata[]> | null;
|
|
9
|
+
nextPageToken: string;
|
|
10
|
+
}
|
package/models.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './app/models/data/custom-css.data.model';
|
|
|
18
18
|
export * from './app/models/data/custom-chip-dropdown.data.model';
|
|
19
19
|
export * from './app/models/data/device-info.model';
|
|
20
20
|
export * from './app/models/data/document.data.model';
|
|
21
|
+
export * from './app/models/data/document-events.data.model';
|
|
21
22
|
export * from './app/models/data/document-iam.data.model';
|
|
22
23
|
export * from './app/models/data/document-metadata.model';
|
|
23
24
|
export * from './app/models/data/document-paths.data.model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/types-dev",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.117",
|
|
4
4
|
"description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
|
|
5
5
|
"homepage": "https://velt.dev",
|
|
6
6
|
"keywords": [
|