@veltdev/types-dev 4.0.0-beta.116 → 4.0.0-beta.118
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,8 +26,10 @@ 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
34
|
constructor();
|
|
33
35
|
initConfig: (apiKey: string, config?: Config) => void;
|
|
@@ -48,6 +50,7 @@ export declare class Snippyly {
|
|
|
48
50
|
/**
|
|
49
51
|
* Tell us the unique ID of the current document/resource on which you want to enable collaboration.
|
|
50
52
|
* @param id unique document ID
|
|
53
|
+
* @deprecated This method is deprecated and will be removed in next release. Use `setDocuments` method instead.
|
|
51
54
|
*/
|
|
52
55
|
setDocumentId: (id: string) => void;
|
|
53
56
|
/**
|
|
@@ -56,12 +59,21 @@ export declare class Snippyly {
|
|
|
56
59
|
setDocuments: (documents: Document[], options?: SetDocumentsRequestOptions) => void;
|
|
57
60
|
/**
|
|
58
61
|
* To unset the document id
|
|
62
|
+
* @deprecated This method is deprecated and will be removed in next release. Use `unsetDocuments` method instead.
|
|
59
63
|
*/
|
|
60
64
|
unsetDocumentId: () => void;
|
|
61
65
|
/**
|
|
62
66
|
* To unset the documents
|
|
63
67
|
*/
|
|
64
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>;
|
|
65
77
|
/**
|
|
66
78
|
* To set the user data provider.
|
|
67
79
|
*/
|
|
@@ -70,23 +82,12 @@ export declare class Snippyly {
|
|
|
70
82
|
* Get Document ID
|
|
71
83
|
*/
|
|
72
84
|
getDocumentId: () => string;
|
|
73
|
-
/**
|
|
74
|
-
* Tell us the custom params of the current document/resource to identify sub document inside a document.
|
|
75
|
-
* @param params Document Params
|
|
76
|
-
* @deprecated This method is depercated and will be removed in next release. Use `setLocation` method instead.
|
|
77
|
-
*/
|
|
78
|
-
setDocumentParams: (params: Location) => void;
|
|
79
85
|
/**
|
|
80
86
|
* Tell us the custom params of the current document/resource to identify sub document inside a document.
|
|
81
87
|
* @param params Location
|
|
82
88
|
* @param appendLocation Append location to existing location
|
|
83
89
|
*/
|
|
84
90
|
setLocation: (params: Location, appendLocation?: boolean) => void;
|
|
85
|
-
/**
|
|
86
|
-
* To remove document params from a User
|
|
87
|
-
* @deprecated This method is depercated and will be removed in next release. Use `removeLocation` method instead.
|
|
88
|
-
*/
|
|
89
|
-
removeDocumentParams: () => void;
|
|
90
91
|
/**
|
|
91
92
|
* To remove location from a User
|
|
92
93
|
* @param location Location
|
|
@@ -192,12 +193,6 @@ export declare class Snippyly {
|
|
|
192
193
|
* @param features List of features
|
|
193
194
|
*/
|
|
194
195
|
disableFeatures: (features: Array<FeatureType>) => void;
|
|
195
|
-
/**
|
|
196
|
-
* Add location to show comments, tags, recorders etc. for provided location also.
|
|
197
|
-
* @param location Location object
|
|
198
|
-
* @deprecated This method is deprecated and will be removed in next release. Use `setLocation` method with `appendLocation: true` instead.
|
|
199
|
-
*/
|
|
200
|
-
addLocation: (location: any) => any;
|
|
201
196
|
/**
|
|
202
197
|
* To set the dark mode of Velt components.
|
|
203
198
|
* @param value {boolean} true/false
|
|
@@ -209,6 +204,11 @@ export declare class Snippyly {
|
|
|
209
204
|
*/
|
|
210
205
|
isUserAllowed$: () => Observable<boolean>;
|
|
211
206
|
|
|
207
|
+
/**
|
|
208
|
+
* To get user.
|
|
209
|
+
*/
|
|
210
|
+
getUser: () => User | null;
|
|
211
|
+
|
|
212
212
|
/**
|
|
213
213
|
* To get user role in provided document.
|
|
214
214
|
*/
|
|
@@ -225,17 +225,6 @@ export declare class Snippyly {
|
|
|
225
225
|
*/
|
|
226
226
|
getVeltInitState: () => Observable<boolean | undefined>;
|
|
227
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;
|
|
238
|
-
|
|
239
228
|
/**
|
|
240
229
|
* To remove velt specific content from provided html content.
|
|
241
230
|
*/
|
|
@@ -276,6 +265,7 @@ export declare class Snippyly {
|
|
|
276
265
|
|
|
277
266
|
/**
|
|
278
267
|
* To get document metadata.
|
|
268
|
+
* @deprecated This method is deprecated. Use `fetchDocuments` method instead.
|
|
279
269
|
*/
|
|
280
270
|
getDocumentMetadata: () => Observable<DocumentMetadata | null>;
|
|
281
271
|
|
|
@@ -285,12 +275,12 @@ export declare class Snippyly {
|
|
|
285
275
|
on: <T extends keyof CoreEventTypesMap>(action: T) => Observable<CoreEventTypesMap[T]>;
|
|
286
276
|
|
|
287
277
|
/**
|
|
288
|
-
|
|
289
|
-
|
|
278
|
+
* To set the ui state.
|
|
279
|
+
*/
|
|
290
280
|
setUiState: (uiState: { [key: string]: any }) => void;
|
|
291
281
|
|
|
292
282
|
/**
|
|
293
283
|
* To get the ui state.
|
|
294
284
|
*/
|
|
295
285
|
getUiState: () => Observable<{ [key: string]: any }>;
|
|
296
|
-
}
|
|
286
|
+
}
|
|
@@ -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";
|
|
@@ -80,6 +78,7 @@ export type CommentEventTypesMap = {
|
|
|
80
78
|
[CommentEventTypes.COMMENT_SIDEBAR_DATA_INIT]: CommentSidebarDataInitEvent;
|
|
81
79
|
[CommentEventTypes.COMMENT_SIDEBAR_DATA_UPDATE]: CommentSidebarDataUpdateEvent;
|
|
82
80
|
[CommentEventTypes.AUTOCOMPLETE_SEARCH]: AutocompleteSearchEvent;
|
|
81
|
+
[CommentEventTypes.COMPOSER_CLICKED]: ComposerClickedEvent;
|
|
83
82
|
};
|
|
84
83
|
export interface AddAttachmentEvent {
|
|
85
84
|
annotationId: string;
|
|
@@ -135,14 +134,6 @@ export interface GetCommentAnnotationsResponse {
|
|
|
135
134
|
export interface FetchCommentAnnotationsResponse extends GetCommentAnnotationsResponse {
|
|
136
135
|
nextPageToken: string;
|
|
137
136
|
}
|
|
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
137
|
export interface GetCommentAnnotationsCountResponse {
|
|
147
138
|
data: Record<string, CommentAnnotationsCount> | null;
|
|
148
139
|
}
|
|
@@ -255,3 +246,7 @@ export interface AutocompleteSearchEvent {
|
|
|
255
246
|
type?: 'contact' | 'custom' | 'group';
|
|
256
247
|
metadata?: VeltEventMetadata;
|
|
257
248
|
}
|
|
249
|
+
export interface ComposerClickedEvent {
|
|
250
|
+
commentAnnotation?: CommentAnnotation;
|
|
251
|
+
metadata?: VeltEventMetadata;
|
|
252
|
+
}
|
|
@@ -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/app/utils/enums.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export declare const CommentEventTypes: {
|
|
|
42
42
|
readonly COMMENT_SIDEBAR_DATA_INIT: "commentSidebarDataInit";
|
|
43
43
|
readonly COMMENT_SIDEBAR_DATA_UPDATE: "commentSidebarDataUpdate";
|
|
44
44
|
readonly AUTOCOMPLETE_SEARCH: "autocompleteSearch";
|
|
45
|
+
readonly COMPOSER_CLICKED: "composerClicked";
|
|
45
46
|
};
|
|
46
47
|
export declare const RecorderEventTypes: {
|
|
47
48
|
readonly TRANSCRIPTION_DONE: "transcriptionDone";
|
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.118",
|
|
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": [
|