@univerjs/protocol 0.1.22 → 0.1.24
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/lib/types/index.d.ts
CHANGED
|
@@ -13,3 +13,4 @@ export { type CollaMsg as ICollaMsg, type CollaMsgJoin as ICollaMsgJoin, type Co
|
|
|
13
13
|
export { type FileService as IFileService, type FileUploadMeta as IuploadFileRequestMeta, type FileUploadRequest as IFileUploadRequest, type UploadResponse as IUploadResponse, } from './ts/v1/file';
|
|
14
14
|
export type { GetUserResponse as IGetUserResponse, User as IUser, GetUserRequest as IGetUserRequest } from './ts/v1/user';
|
|
15
15
|
export type { Collaborator as ICollaborator, CreateRequest as ICreateRequest, CreateRequest_SelectRangeObject as ICreateRequest_SelectRangeObject, CreateRequest_WorksheetObject as ICreateRequest_WorksheetObject, CreateResponse as ICreateResponse, CreateCollaboratorRequest as ICreateCollaboratorRequest, CreateCollaboratorResponse as ICreateCollaboratorResponse, UpdateCollaboratorRequest as IUpdateCollaboratorRequest, UpdateCollaboratorResponse as IUpdateCollaboratorResponse, DeleteCollaboratorRequest as IDeleteCollaboratorRequest, DeleteCollaboratorResponse as IDeleteCollaboratorResponse, ListCollaboratorRequest as IListCollaboratorRequest, ListCollaboratorResponse as IListCollaboratorResponse, AllowedRequest as IAllowedRequest, ActionInfo as IActionInfo, AllowedResponse as IAllowedResponse, AuthzService as IAuthzService, } from './ts/v1/authz';
|
|
16
|
+
export type { UnitRoleKV as IUnitRoleKV, UnitRole as IUnitRole, UnitObject as IUnitObject, UnitPermissionStrategy as IUnitPermissionStrategy, UnitAction as IUnitAction, } from './ts/univer/permission';
|
|
@@ -4,10 +4,31 @@ export declare enum UnitAction {
|
|
|
4
4
|
Edit = 1,
|
|
5
5
|
ManageCollaborator = 2,
|
|
6
6
|
Print = 3,
|
|
7
|
+
/** Duplicate - create a copy */
|
|
7
8
|
Duplicate = 4,
|
|
8
9
|
Comment = 5,
|
|
9
10
|
Copy = 6,
|
|
10
11
|
Share = 7,
|
|
12
|
+
Export = 8,
|
|
13
|
+
MoveWorksheet = 9,
|
|
14
|
+
DeleteWorksheet = 10,
|
|
15
|
+
HideWorksheet = 11,
|
|
16
|
+
RenameWorksheet = 12,
|
|
17
|
+
CreateWorksheet = 13,
|
|
18
|
+
SetWorksheetStyle = 14,
|
|
19
|
+
EditWorksheetCell = 15,
|
|
20
|
+
InsertHyperlink = 16,
|
|
21
|
+
Sort = 17,
|
|
22
|
+
Filter = 18,
|
|
23
|
+
PivotTable = 19,
|
|
24
|
+
FloatImg = 20,
|
|
25
|
+
History = 21,
|
|
26
|
+
/** RwHgtClWdt - row height, column width */
|
|
27
|
+
RwHgtClWdt = 22,
|
|
28
|
+
/** ViemRwHgtClWdt - row height, column width in view mode */
|
|
29
|
+
ViemRwHgtClWdt = 23,
|
|
30
|
+
/** ViewFilter - filter in view mode */
|
|
31
|
+
ViewFilter = 24,
|
|
11
32
|
UNRECOGNIZED = -1
|
|
12
33
|
}
|
|
13
34
|
export declare enum UnitRole {
|
|
@@ -22,6 +43,7 @@ export declare enum UnitObject {
|
|
|
22
43
|
Worksheet = 2,
|
|
23
44
|
SelectRange = 3,
|
|
24
45
|
Document = 4,
|
|
46
|
+
Slide = 5,
|
|
25
47
|
UNRECOGNIZED = -1
|
|
26
48
|
}
|
|
27
49
|
export interface UnitRoleKV {
|