@veltdev/sdk-staging 4.5.2-beta.10 → 4.5.2-beta.12
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.
|
@@ -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
|
*/
|
|
@@ -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,38 @@ 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
|
+
userIds?: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface GetUserPermissionsResponse {
|
|
15
|
+
[userId: string]: {
|
|
16
|
+
folders?: {
|
|
17
|
+
[folderId: string]: {
|
|
18
|
+
accessRole?: UserPermissionAccessRole;
|
|
19
|
+
expiresAt?: number;
|
|
20
|
+
error?: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
organization?: {
|
|
24
|
+
[organizationId: string]: {
|
|
25
|
+
accessRole?: UserPermissionAccessRole;
|
|
26
|
+
expiresAt?: number;
|
|
27
|
+
error?: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
documents?: {
|
|
31
|
+
[documentId: string]: {
|
|
32
|
+
accessRole?: UserPermissionAccessRole;
|
|
33
|
+
expiresAt?: number;
|
|
34
|
+
error?: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export declare enum UserPermissionAccessRole {
|
|
40
|
+
EDITOR = "editor",
|
|
41
|
+
VIEWER = "viewer"
|
|
42
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk-staging",
|
|
3
|
-
"version": "4.5.2-beta.
|
|
3
|
+
"version": "4.5.2-beta.12",
|
|
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": [
|