@veltdev/sdk 4.6.6-beta.1 → 4.6.7-beta.1
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 +5 -0
- package/app/models/data/comment-events.data.model.d.ts +6 -0
- package/app/models/data/core-events.data.model.d.ts +8 -0
- package/app/models/data/event-metadata.data.model.d.ts +3 -0
- package/app/models/data/selection.model.d.ts +1 -0
- package/app/models/data/user-resolver.data.model.d.ts +3 -0
- package/app/models/element/selection-element.model.d.ts +12 -0
- package/app/utils/enums.d.ts +1 -0
- package/package.json +1 -1
- package/velt.js +74 -74
|
@@ -305,6 +305,11 @@ export declare class Snippyly {
|
|
|
305
305
|
*/
|
|
306
306
|
getUserPermissions: (request?: GetUserPermissionsRequest) => Promise<GetUserPermissionsResponse>;
|
|
307
307
|
|
|
308
|
+
/**
|
|
309
|
+
* To get current user permissions.
|
|
310
|
+
*/
|
|
311
|
+
getCurrentUserPermissions: () => Observable<GetUserPermissionsResponse | null>;
|
|
312
|
+
|
|
308
313
|
/**
|
|
309
314
|
* To check if plan is expired or not.
|
|
310
315
|
*/
|
|
@@ -81,6 +81,7 @@ export type CommentEventTypesMap = {
|
|
|
81
81
|
[CommentEventTypes.COMPOSER_CLICKED]: ComposerClickedEvent;
|
|
82
82
|
[CommentEventTypes.LINK_CLICKED]: LinkClickedEvent;
|
|
83
83
|
[CommentEventTypes.COMMENT_PIN_CLICKED]: CommentPinClickedEvent;
|
|
84
|
+
[CommentEventTypes.COMMENT_BUBBLE_CLICKED]: CommentBubbleClickedEvent;
|
|
84
85
|
};
|
|
85
86
|
export interface AddAttachmentEvent {
|
|
86
87
|
annotationId: string;
|
|
@@ -264,3 +265,8 @@ export interface CommentPinClickedEvent {
|
|
|
264
265
|
commentAnnotation: CommentAnnotation;
|
|
265
266
|
metadata?: VeltEventMetadata;
|
|
266
267
|
}
|
|
268
|
+
export interface CommentBubbleClickedEvent {
|
|
269
|
+
annotationId: string;
|
|
270
|
+
commentAnnotation: CommentAnnotation;
|
|
271
|
+
metadata?: VeltEventMetadata;
|
|
272
|
+
}
|
|
@@ -65,6 +65,14 @@ export type PermissionProviderEventType = {
|
|
|
65
65
|
RESOURCE_ACCESS_RESULT: 'resourceAccessResult';
|
|
66
66
|
RESOURCE_ACCESS_ERROR: 'resourceAccessError';
|
|
67
67
|
RESOURCE_ACCESS_RESULT_FROM_CACHE: 'resourceAccessResultFromCache';
|
|
68
|
+
REVOKE_ACCESS_ON_DOCUMENT_UNSET_TRIGGERED: 'revokeAccessOnDocumentUnsetTriggered';
|
|
69
|
+
REVOKE_ACCESS_ON_DOCUMENT_UNSET_FORMED: 'revokeAccessOnDocumentUnsetFormed';
|
|
70
|
+
REVOKE_ACCESS_ON_DOCUMENT_UNSET_RESULT: 'revokeAccessOnDocumentUnsetResult';
|
|
71
|
+
REVOKE_ACCESS_ON_USER_LOGOUT_TRIGGERED: 'revokeAccessOnUserLogoutTriggered';
|
|
72
|
+
REVOKE_ACCESS_ON_USER_LOGOUT_FORMED: 'revokeAccessOnUserLogoutFormed';
|
|
73
|
+
REVOKE_ACCESS_ON_USER_LOGOUT_RESULT: 'revokeAccessOnUserLogoutResult';
|
|
74
|
+
REVOKE_ACCESS_ON_DOCUMENT_UNSET_ERROR: 'revokeAccessOnDocumentUnsetError';
|
|
75
|
+
REVOKE_ACCESS_ON_USER_LOGOUT_ERROR: 'revokeAccessOnUserLogoutError';
|
|
68
76
|
};
|
|
69
77
|
export type UserResolverEvent = BaseResolverEvent<UserResolverEventType, UserResolverSource>;
|
|
70
78
|
export type UserResolverEventType = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DocumentMetadata } from "./document-metadata.model";
|
|
2
|
+
import { SetDocumentsContext } from "./document.data.model";
|
|
2
3
|
import { FolderMetadata } from "./folder-metadata.model";
|
|
3
4
|
import { Location } from "./location.model";
|
|
4
5
|
import { OrganizationMetadata } from "./organization-metadata.model";
|
|
@@ -18,6 +19,7 @@ export interface VeltDebugInfo {
|
|
|
18
19
|
locations?: Location[];
|
|
19
20
|
folder?: FolderMetadata;
|
|
20
21
|
user?: User;
|
|
22
|
+
accessFields?: Array<string>;
|
|
21
23
|
};
|
|
22
24
|
clientMap?: {
|
|
23
25
|
organization?: OrganizationMetadata;
|
|
@@ -25,5 +27,6 @@ export interface VeltDebugInfo {
|
|
|
25
27
|
locations?: Location[];
|
|
26
28
|
folder?: FolderMetadata;
|
|
27
29
|
user?: User;
|
|
30
|
+
context?: SetDocumentsContext;
|
|
28
31
|
};
|
|
29
32
|
}
|
|
@@ -56,6 +56,12 @@ export declare class SelectionElement {
|
|
|
56
56
|
*/
|
|
57
57
|
getLiveSelectionData: () => Observable<LiveSelectionData | null>;
|
|
58
58
|
|
|
59
|
+
/**
|
|
60
|
+
* To set inactivity time (Default value is 5 minutes)
|
|
61
|
+
* @param time inactivity time in milliseconds
|
|
62
|
+
*/
|
|
63
|
+
setInactivityTime: (time: number) => void;
|
|
64
|
+
|
|
59
65
|
constructor();
|
|
60
66
|
|
|
61
67
|
/**
|
|
@@ -112,4 +118,10 @@ export declare class SelectionElement {
|
|
|
112
118
|
* To get live selection data
|
|
113
119
|
*/
|
|
114
120
|
private _getLiveSelectionData;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* To set inactivity time (Default value is 5 minutes)
|
|
124
|
+
* @param time inactivity time in milliseconds
|
|
125
|
+
*/
|
|
126
|
+
private _setInactivityTime;
|
|
115
127
|
}
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export declare const CommentEventTypes: {
|
|
|
56
56
|
readonly COMPOSER_CLICKED: "composerClicked";
|
|
57
57
|
readonly LINK_CLICKED: "linkClicked";
|
|
58
58
|
readonly COMMENT_PIN_CLICKED: "commentPinClicked";
|
|
59
|
+
readonly COMMENT_BUBBLE_CLICKED: "commentBubbleClicked";
|
|
59
60
|
};
|
|
60
61
|
export declare const RecorderEventTypes: {
|
|
61
62
|
readonly TRANSCRIPTION_DONE: "transcriptionDone";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.7-beta.1",
|
|
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": [
|