@veltdev/sdk 4.5.2-beta.9 → 4.5.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/client/snippyly.model.d.ts +6 -1
- package/app/models/data/comment-annotation.data.model.d.ts +6 -0
- package/app/models/data/user-iam.data.model.d.ts +3 -0
- package/app/models/data/user-resolver.data.model.d.ts +42 -0
- package/app/models/element/comment-element.model.d.ts +20 -0
- package/app/models/element/recorder-element.model.d.ts +60 -0
- package/app/utils/constants.d.ts +1 -0
- package/package.json +1 -1
- package/velt.js +174 -83
|
@@ -29,7 +29,7 @@ import { VeltEventMetadata } from "../models/data/event-metadata.data.model";
|
|
|
29
29
|
import { CoreEventTypesMap } from "../models/data/core-events.data.model";
|
|
30
30
|
import { Document, SetDocumentsRequestOptions, FetchDocumentsRequest, FetchFoldersRequest, UpdateDocumentsRequest, UpdateLocationsRequest } from "../models/data/document.data.model";
|
|
31
31
|
import { FetchDocumentsResponse, FetchFoldersResponse } from "../models/data/document-events.data.model";
|
|
32
|
-
import { UserDataProvider } from "../models/data/user-resolver.data.model";
|
|
32
|
+
import { UserDataProvider, GetUserPermissionsRequest, GetUserPermissionsResponse } from "../models/data/user-resolver.data.model";
|
|
33
33
|
import { VeltDataProvider } from "../models/data/provider.data.model";
|
|
34
34
|
import { VeltEncryptionProvider } from "../models/data/encryption-provider.data.model";
|
|
35
35
|
import { VeltResetButtonStateConfig } from "../models/data/button.data.model";
|
|
@@ -277,6 +277,11 @@ export declare class Snippyly {
|
|
|
277
277
|
*/
|
|
278
278
|
getUserRole$: () => Observable<string | null>;
|
|
279
279
|
|
|
280
|
+
/**
|
|
281
|
+
* To get user permissions.
|
|
282
|
+
*/
|
|
283
|
+
getUserPermissions: (request?: GetUserPermissionsRequest) => Promise<GetUserPermissionsResponse>;
|
|
284
|
+
|
|
280
285
|
/**
|
|
281
286
|
* To check if plan is expired or not.
|
|
282
287
|
*/
|
|
@@ -17,6 +17,12 @@ export declare class CommentAnnotation {
|
|
|
17
17
|
* Auto generated.
|
|
18
18
|
*/
|
|
19
19
|
annotationId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Annotation number for the comment pin annotation.
|
|
22
|
+
*
|
|
23
|
+
* Auto generated.
|
|
24
|
+
*/
|
|
25
|
+
annotationNumber?: number;
|
|
20
26
|
/**
|
|
21
27
|
* This is the list of all comments part of this annotation.
|
|
22
28
|
*
|
|
@@ -12,8 +12,11 @@ export declare class UserIAM {
|
|
|
12
12
|
*/
|
|
13
13
|
user: UserContact;
|
|
14
14
|
documentIds?: string[];
|
|
15
|
+
viewerDocumentIds?: string[];
|
|
15
16
|
folderIds?: string[];
|
|
17
|
+
viewerFolderIds?: string[];
|
|
16
18
|
organizationIds?: string[];
|
|
19
|
+
viewerOrganizationIds?: string[];
|
|
17
20
|
documentIdsCount?: number;
|
|
18
21
|
folderIdsCount?: number;
|
|
19
22
|
organizationIdsCount?: number;
|
|
@@ -5,3 +5,45 @@ export interface UserDataProvider {
|
|
|
5
5
|
config?: ResolverConfig;
|
|
6
6
|
resolveTimeout?: number;
|
|
7
7
|
}
|
|
8
|
+
export interface GetUserPermissionsRequest {
|
|
9
|
+
organizationId?: string;
|
|
10
|
+
folderIds?: string[];
|
|
11
|
+
documentIds?: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface GetUserPermissionsResponse {
|
|
14
|
+
[userId: string]: {
|
|
15
|
+
folders?: {
|
|
16
|
+
[folderId: string]: {
|
|
17
|
+
accessRole?: UserPermissionAccessRole;
|
|
18
|
+
expiresAt?: number;
|
|
19
|
+
error?: string;
|
|
20
|
+
errorCode?: UserPermissionAccessRoleResult;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
organization?: {
|
|
24
|
+
[organizationId: string]: {
|
|
25
|
+
accessRole?: UserPermissionAccessRole;
|
|
26
|
+
expiresAt?: number;
|
|
27
|
+
error?: string;
|
|
28
|
+
errorCode?: UserPermissionAccessRoleResult;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
documents?: {
|
|
32
|
+
[documentId: string]: {
|
|
33
|
+
accessRole?: UserPermissionAccessRole;
|
|
34
|
+
expiresAt?: number;
|
|
35
|
+
error?: string;
|
|
36
|
+
errorCode?: UserPermissionAccessRoleResult;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export declare enum UserPermissionAccessRole {
|
|
42
|
+
EDITOR = "editor",
|
|
43
|
+
VIEWER = "viewer"
|
|
44
|
+
}
|
|
45
|
+
export declare enum UserPermissionAccessRoleResult {
|
|
46
|
+
DOES_NOT_EXIST = "does_not_exist",
|
|
47
|
+
PERMISSION_DENIED = "permission_denied",
|
|
48
|
+
SOMETHING_WENT_WRONG = "something_went_wrong"
|
|
49
|
+
}
|
|
@@ -1213,6 +1213,16 @@ export declare class CommentElement {
|
|
|
1213
1213
|
*/
|
|
1214
1214
|
public disableLinkCallback: () => void;
|
|
1215
1215
|
|
|
1216
|
+
/**
|
|
1217
|
+
* To enable full screen in sidebar
|
|
1218
|
+
*/
|
|
1219
|
+
public enableFullScreenInSidebar: () => void;
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* To disable full screen in sidebar
|
|
1223
|
+
*/
|
|
1224
|
+
public disableFullScreenInSidebar: () => void;
|
|
1225
|
+
|
|
1216
1226
|
constructor();
|
|
1217
1227
|
/**
|
|
1218
1228
|
* Subscribe to comments on the current document.
|
|
@@ -2405,4 +2415,14 @@ export declare class CommentElement {
|
|
|
2405
2415
|
* To disable link callback
|
|
2406
2416
|
*/
|
|
2407
2417
|
private _disableLinkCallback;
|
|
2418
|
+
|
|
2419
|
+
/**
|
|
2420
|
+
* To enable full screen in sidebar
|
|
2421
|
+
*/
|
|
2422
|
+
private _enableFullScreenInSidebar;
|
|
2423
|
+
|
|
2424
|
+
/**
|
|
2425
|
+
* To disable full screen in sidebar
|
|
2426
|
+
*/
|
|
2427
|
+
private _disableFullScreenInSidebar;
|
|
2408
2428
|
}
|
|
@@ -124,6 +124,36 @@ export declare class RecorderElement {
|
|
|
124
124
|
*/
|
|
125
125
|
askDevicePermission: (options: RecorderDevicePermissionOptions) => void;
|
|
126
126
|
|
|
127
|
+
/**
|
|
128
|
+
* To set max length
|
|
129
|
+
*/
|
|
130
|
+
setMaxLength: (seconds: number) => void;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* To open picture in picture
|
|
134
|
+
*/
|
|
135
|
+
openPictureInPicture: () => Promise<void>;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* To exit picture in picture
|
|
139
|
+
*/
|
|
140
|
+
exitPictureInPicture: () => Promise<void>;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* To request screen permission
|
|
144
|
+
*/
|
|
145
|
+
requestScreenPermission: () => Promise<MediaStream | null>;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* To enable picture in picture
|
|
149
|
+
*/
|
|
150
|
+
enablePictureInPicture: () => void;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* To disable picture in picture
|
|
154
|
+
*/
|
|
155
|
+
disablePictureInPicture: () => void;
|
|
156
|
+
|
|
127
157
|
constructor();
|
|
128
158
|
|
|
129
159
|
private _initRecording;
|
|
@@ -243,4 +273,34 @@ export declare class RecorderElement {
|
|
|
243
273
|
* To ask device permission
|
|
244
274
|
*/
|
|
245
275
|
private _askDevicePermission;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* To set max length
|
|
279
|
+
*/
|
|
280
|
+
private _setMaxLength;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* To open picture in picture
|
|
284
|
+
*/
|
|
285
|
+
private _openPictureInPicture;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* To exit picture in picture
|
|
289
|
+
*/
|
|
290
|
+
private _exitPictureInPicture;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* To request screen permission
|
|
294
|
+
*/
|
|
295
|
+
private _requestScreenPermission;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* To enable picture in picture
|
|
299
|
+
*/
|
|
300
|
+
private _enablePictureInPicture;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* To disable picture in picture
|
|
304
|
+
*/
|
|
305
|
+
private _disablePictureInPicture;
|
|
246
306
|
}
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export declare class Constants {
|
|
|
72
72
|
static DEFAULT_ANNOTATION_COLOR: string;
|
|
73
73
|
static REGEX_EMAIL: RegExp;
|
|
74
74
|
static REGEX_URL: RegExp;
|
|
75
|
+
static readonly REGEX_URL_FOR_USER_NAME: RegExp;
|
|
75
76
|
static REGEX_SPECIAL_CHARS: RegExp;
|
|
76
77
|
static SNIPPYLY_HIGHLIGHT: string;
|
|
77
78
|
static SNIPPYLY_HIGHLIGHT_PREVIEW: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.5.2
|
|
3
|
+
"version": "4.5.2",
|
|
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": [
|