New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@univerjs/protocol

Package Overview
Dependencies
Maintainers
5
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@univerjs/protocol - npm Package Compare versions

Comparing version 0.1.25 to 0.1.26-permission-3

2

lib/cjs/index.js

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var N=(E=>(E[E.UNDEFINED=0]="UNDEFINED",E[E.OK=1]="OK",E[E.INTERNAL_ERROR=2]="INTERNAL_ERROR",E[E.PERMISSION_DENIED=3]="PERMISSION_DENIED",E[E.NOT_FOUND=4]="NOT_FOUND",E[E.UNAUTHENTICATED=5]="UNAUTHENTICATED",E[E.ALREADY_EXISTS=6]="ALREADY_EXISTS",E[E.INVALID_ARGUMENT=7]="INVALID_ARGUMENT",E[E.TOO_MANY_REQUESTS=8]="TOO_MANY_REQUESTS",E[E.CHANGESET_REVISION_CONFILICT=5001]="CHANGESET_REVISION_CONFILICT",E[E.SNAPSHOT_INVALID_SNAPSHOT=6001]="SNAPSHOT_INVALID_SNAPSHOT",E[E.APPLY_REJECT=7001]="APPLY_REJECT",E[E.APPLY_NON_SEQUENTIAL_REVISION=7002]="APPLY_NON_SEQUENTIAL_REVISION",E[E.APPLY_REVISION_CONFILICT=7003]="APPLY_REVISION_CONFILICT",E[E.CONNECTOR_DATA_TOO_LARGE=8001]="CONNECTOR_DATA_TOO_LARGE",E[E.LICENSE_MAX_UNITS_EXCEEDED=9001]="LICENSE_MAX_UNITS_EXCEEDED",E[E.LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED=9002]="LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED",E[E.LICENSE_IMPORT_SIZE_EXCEEDED=9003]="LICENSE_IMPORT_SIZE_EXCEEDED",E[E.LICENSE_EXPORT_SIZE_EXCEEDED=9004]="LICENSE_EXPORT_SIZE_EXCEEDED",E[E.LICENSE_DISTRO_REJECTED=9005]="LICENSE_DISTRO_REJECTED",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(N||{});function S(E){return!!(E&&E.code&&E.code!==N.OK&&E.code!=="OK")}var I=(E=>(E[E.UNIVER_UNKNOWN=0]="UNIVER_UNKNOWN",E[E.UNIVER_DOC=1]="UNIVER_DOC",E[E.UNIVER_SHEET=2]="UNIVER_SHEET",E[E.UNIVER_SLIDE=3]="UNIVER_SLIDE",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(I||{}),_=(E=>(E[E.UNKNOWN=0]="UNKNOWN",E[E.STRING=1]="STRING",E[E.NUMBER=2]="NUMBER",E[E.BOOLEAN=3]="BOOLEAN",E[E.FORCE_STRING=4]="FORCE_STRING",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(_||{}),O=(E=>(E[E.UNKNOWN_CMD=0]="UNKNOWN_CMD",E[E.HELLO=1]="HELLO",E[E.JOIN=2]="JOIN",E[E.LEAVE=3]="LEAVE",E[E.INGEST=4]="INGEST",E[E.HEARTBEAT=5]="HEARTBEAT",E[E.RECV=6]="RECV",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(O||{}),R=(E=>(E[E.UNKNOWN_CODE=0]="UNKNOWN_CODE",E[E.OK=1]="OK",E[E.FAIL=2]="FAIL",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(R||{});exports.CellValueType=_;exports.CmdRspCode=R;exports.CombCmd=O;exports.ErrorCode=N;exports.UniverType=I;exports.isError=S;
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var N=(E=>(E[E.UNDEFINED=0]="UNDEFINED",E[E.OK=1]="OK",E[E.INTERNAL_ERROR=2]="INTERNAL_ERROR",E[E.PERMISSION_DENIED=3]="PERMISSION_DENIED",E[E.NOT_FOUND=4]="NOT_FOUND",E[E.UNAUTHENTICATED=5]="UNAUTHENTICATED",E[E.ALREADY_EXISTS=6]="ALREADY_EXISTS",E[E.INVALID_ARGUMENT=7]="INVALID_ARGUMENT",E[E.TOO_MANY_REQUESTS=8]="TOO_MANY_REQUESTS",E[E.CHANGESET_REVISION_CONFILICT=5001]="CHANGESET_REVISION_CONFILICT",E[E.SNAPSHOT_INVALID_SNAPSHOT=6001]="SNAPSHOT_INVALID_SNAPSHOT",E[E.APPLY_REJECT=7001]="APPLY_REJECT",E[E.APPLY_NON_SEQUENTIAL_REVISION=7002]="APPLY_NON_SEQUENTIAL_REVISION",E[E.APPLY_REVISION_CONFILICT=7003]="APPLY_REVISION_CONFILICT",E[E.CONNECTOR_DATA_TOO_LARGE=8001]="CONNECTOR_DATA_TOO_LARGE",E[E.LICENSE_MAX_UNITS_EXCEEDED=9001]="LICENSE_MAX_UNITS_EXCEEDED",E[E.LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED=9002]="LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED",E[E.LICENSE_IMPORT_SIZE_EXCEEDED=9003]="LICENSE_IMPORT_SIZE_EXCEEDED",E[E.LICENSE_EXPORT_SIZE_EXCEEDED=9004]="LICENSE_EXPORT_SIZE_EXCEEDED",E[E.LICENSE_DISTRO_REJECTED=9005]="LICENSE_DISTRO_REJECTED",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(N||{});function L(E){return!!(E&&E.code&&E.code!==N.OK&&E.code!=="OK")}var I=(E=>(E[E.UNIVER_UNKNOWN=0]="UNIVER_UNKNOWN",E[E.UNIVER_DOC=1]="UNIVER_DOC",E[E.UNIVER_SHEET=2]="UNIVER_SHEET",E[E.UNIVER_SLIDE=3]="UNIVER_SLIDE",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(I||{}),_=(E=>(E[E.UNKNOWN=0]="UNKNOWN",E[E.STRING=1]="STRING",E[E.NUMBER=2]="NUMBER",E[E.BOOLEAN=3]="BOOLEAN",E[E.FORCE_STRING=4]="FORCE_STRING",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(_||{}),O=(E=>(E[E.UNKNOWN_CMD=0]="UNKNOWN_CMD",E[E.HELLO=1]="HELLO",E[E.JOIN=2]="JOIN",E[E.LEAVE=3]="LEAVE",E[E.INGEST=4]="INGEST",E[E.HEARTBEAT=5]="HEARTBEAT",E[E.RECV=6]="RECV",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(O||{}),R=(E=>(E[E.UNKNOWN_CODE=0]="UNKNOWN_CODE",E[E.OK=1]="OK",E[E.FAIL=2]="FAIL",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(R||{}),S=(E=>(E[E.View=0]="View",E[E.Edit=1]="Edit",E[E.ManageCollaborator=2]="ManageCollaborator",E[E.Print=3]="Print",E[E.Duplicate=4]="Duplicate",E[E.Comment=5]="Comment",E[E.Copy=6]="Copy",E[E.Share=7]="Share",E[E.Export=8]="Export",E[E.MoveWorksheet=9]="MoveWorksheet",E[E.DeleteWorksheet=10]="DeleteWorksheet",E[E.HideWorksheet=11]="HideWorksheet",E[E.RenameWorksheet=12]="RenameWorksheet",E[E.CreateWorksheet=13]="CreateWorksheet",E[E.SetWorksheetStyle=14]="SetWorksheetStyle",E[E.EditWorksheetCell=15]="EditWorksheetCell",E[E.InsertHyperlink=16]="InsertHyperlink",E[E.Sort=17]="Sort",E[E.Filter=18]="Filter",E[E.PivotTable=19]="PivotTable",E[E.FloatImg=20]="FloatImg",E[E.History=21]="History",E[E.RwHgtClWdt=22]="RwHgtClWdt",E[E.ViemRwHgtClWdt=23]="ViemRwHgtClWdt",E[E.ViewFilter=24]="ViewFilter",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(S||{}),D=(E=>(E[E.Reader=0]="Reader",E[E.Editor=1]="Editor",E[E.Owner=2]="Owner",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(D||{}),T=(E=>(E[E.Unkonwn=0]="Unkonwn",E[E.Workbook=1]="Workbook",E[E.Worksheet=2]="Worksheet",E[E.SelectRange=3]="SelectRange",E[E.Document=4]="Document",E[E.Slide=5]="Slide",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(T||{});exports.CellValueType=_;exports.CmdRspCode=R;exports.CombCmd=O;exports.ErrorCode=N;exports.UnitAction=S;exports.UnitObject=T;exports.UnitRole=D;exports.UniverType=I;exports.isError=L;
var N = /* @__PURE__ */ ((E) => (E[E.UNDEFINED = 0] = "UNDEFINED", E[E.OK = 1] = "OK", E[E.INTERNAL_ERROR = 2] = "INTERNAL_ERROR", E[E.PERMISSION_DENIED = 3] = "PERMISSION_DENIED", E[E.NOT_FOUND = 4] = "NOT_FOUND", E[E.UNAUTHENTICATED = 5] = "UNAUTHENTICATED", E[E.ALREADY_EXISTS = 6] = "ALREADY_EXISTS", E[E.INVALID_ARGUMENT = 7] = "INVALID_ARGUMENT", E[E.TOO_MANY_REQUESTS = 8] = "TOO_MANY_REQUESTS", E[E.CHANGESET_REVISION_CONFILICT = 5001] = "CHANGESET_REVISION_CONFILICT", E[E.SNAPSHOT_INVALID_SNAPSHOT = 6001] = "SNAPSHOT_INVALID_SNAPSHOT", E[E.APPLY_REJECT = 7001] = "APPLY_REJECT", E[E.APPLY_NON_SEQUENTIAL_REVISION = 7002] = "APPLY_NON_SEQUENTIAL_REVISION", E[E.APPLY_REVISION_CONFILICT = 7003] = "APPLY_REVISION_CONFILICT", E[E.CONNECTOR_DATA_TOO_LARGE = 8001] = "CONNECTOR_DATA_TOO_LARGE", E[E.LICENSE_MAX_UNITS_EXCEEDED = 9001] = "LICENSE_MAX_UNITS_EXCEEDED", E[E.LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED = 9002] = "LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED", E[E.LICENSE_IMPORT_SIZE_EXCEEDED = 9003] = "LICENSE_IMPORT_SIZE_EXCEEDED", E[E.LICENSE_EXPORT_SIZE_EXCEEDED = 9004] = "LICENSE_EXPORT_SIZE_EXCEEDED", E[E.LICENSE_DISTRO_REJECTED = 9005] = "LICENSE_DISTRO_REJECTED", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(N || {});
function S(E) {
function T(E) {
return !!(E && E.code && E.code !== N.OK && E.code !== "OK");
}
var I = /* @__PURE__ */ ((E) => (E[E.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", E[E.UNIVER_DOC = 1] = "UNIVER_DOC", E[E.UNIVER_SHEET = 2] = "UNIVER_SHEET", E[E.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(I || {}), _ = /* @__PURE__ */ ((E) => (E[E.UNKNOWN = 0] = "UNKNOWN", E[E.STRING = 1] = "STRING", E[E.NUMBER = 2] = "NUMBER", E[E.BOOLEAN = 3] = "BOOLEAN", E[E.FORCE_STRING = 4] = "FORCE_STRING", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(_ || {}), O = /* @__PURE__ */ ((E) => (E[E.UNKNOWN_CMD = 0] = "UNKNOWN_CMD", E[E.HELLO = 1] = "HELLO", E[E.JOIN = 2] = "JOIN", E[E.LEAVE = 3] = "LEAVE", E[E.INGEST = 4] = "INGEST", E[E.HEARTBEAT = 5] = "HEARTBEAT", E[E.RECV = 6] = "RECV", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(O || {}), R = /* @__PURE__ */ ((E) => (E[E.UNKNOWN_CODE = 0] = "UNKNOWN_CODE", E[E.OK = 1] = "OK", E[E.FAIL = 2] = "FAIL", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(R || {});
var I = /* @__PURE__ */ ((E) => (E[E.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", E[E.UNIVER_DOC = 1] = "UNIVER_DOC", E[E.UNIVER_SHEET = 2] = "UNIVER_SHEET", E[E.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(I || {}), _ = /* @__PURE__ */ ((E) => (E[E.UNKNOWN = 0] = "UNKNOWN", E[E.STRING = 1] = "STRING", E[E.NUMBER = 2] = "NUMBER", E[E.BOOLEAN = 3] = "BOOLEAN", E[E.FORCE_STRING = 4] = "FORCE_STRING", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(_ || {}), O = /* @__PURE__ */ ((E) => (E[E.UNKNOWN_CMD = 0] = "UNKNOWN_CMD", E[E.HELLO = 1] = "HELLO", E[E.JOIN = 2] = "JOIN", E[E.LEAVE = 3] = "LEAVE", E[E.INGEST = 4] = "INGEST", E[E.HEARTBEAT = 5] = "HEARTBEAT", E[E.RECV = 6] = "RECV", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(O || {}), R = /* @__PURE__ */ ((E) => (E[E.UNKNOWN_CODE = 0] = "UNKNOWN_CODE", E[E.OK = 1] = "OK", E[E.FAIL = 2] = "FAIL", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(R || {}), S = /* @__PURE__ */ ((E) => (E[E.View = 0] = "View", E[E.Edit = 1] = "Edit", E[E.ManageCollaborator = 2] = "ManageCollaborator", E[E.Print = 3] = "Print", E[E.Duplicate = 4] = "Duplicate", E[E.Comment = 5] = "Comment", E[E.Copy = 6] = "Copy", E[E.Share = 7] = "Share", E[E.Export = 8] = "Export", E[E.MoveWorksheet = 9] = "MoveWorksheet", E[E.DeleteWorksheet = 10] = "DeleteWorksheet", E[E.HideWorksheet = 11] = "HideWorksheet", E[E.RenameWorksheet = 12] = "RenameWorksheet", E[E.CreateWorksheet = 13] = "CreateWorksheet", E[E.SetWorksheetStyle = 14] = "SetWorksheetStyle", E[E.EditWorksheetCell = 15] = "EditWorksheetCell", E[E.InsertHyperlink = 16] = "InsertHyperlink", E[E.Sort = 17] = "Sort", E[E.Filter = 18] = "Filter", E[E.PivotTable = 19] = "PivotTable", E[E.FloatImg = 20] = "FloatImg", E[E.History = 21] = "History", E[E.RwHgtClWdt = 22] = "RwHgtClWdt", E[E.ViemRwHgtClWdt = 23] = "ViemRwHgtClWdt", E[E.ViewFilter = 24] = "ViewFilter", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(S || {}), D = /* @__PURE__ */ ((E) => (E[E.Reader = 0] = "Reader", E[E.Editor = 1] = "Editor", E[E.Owner = 2] = "Owner", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(D || {}), L = /* @__PURE__ */ ((E) => (E[E.Unkonwn = 0] = "Unkonwn", E[E.Workbook = 1] = "Workbook", E[E.Worksheet = 2] = "Worksheet", E[E.SelectRange = 3] = "SelectRange", E[E.Document = 4] = "Document", E[E.Slide = 5] = "Slide", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(L || {});
export {

@@ -11,4 +11,7 @@ _ as CellValueType,

N as ErrorCode,
S as UnitAction,
L as UnitObject,
D as UnitRole,
I as UniverType,
S as isError
T as isError
};

@@ -15,3 +15,4 @@ export { isError } from './utils';

export type { GetUserResponse as IGetUserResponse, User as IUser, GetUserRequest as IGetUserRequest } from './ts/v1/user';
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';
export type { UnitRoleKV as IUnitRoleKV, UnitRole as IUnitRole, UnitObject as IUnitObject, UnitPermissionStrategy as IUnitPermissionStrategy, UnitAction as IUnitAction, } from './ts/univer/permission';
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, BatchAllowedResponse as IBatchAllowedResponse, ListRolesResponse as IListRolesResponse, ListPermPointRequest as IListPermPointRequest, ListPermPointResponse as IListPermPointResponse } from './ts/v1/authz';
export { UnitRole, UnitObject, UnitAction, } from './ts/univer/permission';
export type { UnitRoleKV as IUnitRoleKV, UnitPermissionStrategy as IUnitPermissionStrategy, } from './ts/univer/permission';

@@ -1,1 +0,1 @@

(function(N,I){typeof exports=="object"&&typeof module<"u"?I(exports):typeof define=="function"&&define.amd?define(["exports"],I):(N=typeof globalThis<"u"?globalThis:N||self,I(N.UniverProtocol={}))})(this,function(N){"use strict";var I=(E=>(E[E.UNDEFINED=0]="UNDEFINED",E[E.OK=1]="OK",E[E.INTERNAL_ERROR=2]="INTERNAL_ERROR",E[E.PERMISSION_DENIED=3]="PERMISSION_DENIED",E[E.NOT_FOUND=4]="NOT_FOUND",E[E.UNAUTHENTICATED=5]="UNAUTHENTICATED",E[E.ALREADY_EXISTS=6]="ALREADY_EXISTS",E[E.INVALID_ARGUMENT=7]="INVALID_ARGUMENT",E[E.TOO_MANY_REQUESTS=8]="TOO_MANY_REQUESTS",E[E.CHANGESET_REVISION_CONFILICT=5001]="CHANGESET_REVISION_CONFILICT",E[E.SNAPSHOT_INVALID_SNAPSHOT=6001]="SNAPSHOT_INVALID_SNAPSHOT",E[E.APPLY_REJECT=7001]="APPLY_REJECT",E[E.APPLY_NON_SEQUENTIAL_REVISION=7002]="APPLY_NON_SEQUENTIAL_REVISION",E[E.APPLY_REVISION_CONFILICT=7003]="APPLY_REVISION_CONFILICT",E[E.CONNECTOR_DATA_TOO_LARGE=8001]="CONNECTOR_DATA_TOO_LARGE",E[E.LICENSE_MAX_UNITS_EXCEEDED=9001]="LICENSE_MAX_UNITS_EXCEEDED",E[E.LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED=9002]="LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED",E[E.LICENSE_IMPORT_SIZE_EXCEEDED=9003]="LICENSE_IMPORT_SIZE_EXCEEDED",E[E.LICENSE_EXPORT_SIZE_EXCEEDED=9004]="LICENSE_EXPORT_SIZE_EXCEEDED",E[E.LICENSE_DISTRO_REJECTED=9005]="LICENSE_DISTRO_REJECTED",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(I||{});function D(E){return!!(E&&E.code&&E.code!==I.OK&&E.code!=="OK")}var _=(E=>(E[E.UNIVER_UNKNOWN=0]="UNIVER_UNKNOWN",E[E.UNIVER_DOC=1]="UNIVER_DOC",E[E.UNIVER_SHEET=2]="UNIVER_SHEET",E[E.UNIVER_SLIDE=3]="UNIVER_SLIDE",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(_||{}),O=(E=>(E[E.UNKNOWN=0]="UNKNOWN",E[E.STRING=1]="STRING",E[E.NUMBER=2]="NUMBER",E[E.BOOLEAN=3]="BOOLEAN",E[E.FORCE_STRING=4]="FORCE_STRING",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(O||{}),R=(E=>(E[E.UNKNOWN_CMD=0]="UNKNOWN_CMD",E[E.HELLO=1]="HELLO",E[E.JOIN=2]="JOIN",E[E.LEAVE=3]="LEAVE",E[E.INGEST=4]="INGEST",E[E.HEARTBEAT=5]="HEARTBEAT",E[E.RECV=6]="RECV",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(R||{}),S=(E=>(E[E.UNKNOWN_CODE=0]="UNKNOWN_CODE",E[E.OK=1]="OK",E[E.FAIL=2]="FAIL",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(S||{});N.CellValueType=O,N.CmdRspCode=S,N.CombCmd=R,N.ErrorCode=I,N.UniverType=_,N.isError=D,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
(function(N,I){typeof exports=="object"&&typeof module<"u"?I(exports):typeof define=="function"&&define.amd?define(["exports"],I):(N=typeof globalThis<"u"?globalThis:N||self,I(N.UniverProtocol={}))})(this,function(N){"use strict";var I=(E=>(E[E.UNDEFINED=0]="UNDEFINED",E[E.OK=1]="OK",E[E.INTERNAL_ERROR=2]="INTERNAL_ERROR",E[E.PERMISSION_DENIED=3]="PERMISSION_DENIED",E[E.NOT_FOUND=4]="NOT_FOUND",E[E.UNAUTHENTICATED=5]="UNAUTHENTICATED",E[E.ALREADY_EXISTS=6]="ALREADY_EXISTS",E[E.INVALID_ARGUMENT=7]="INVALID_ARGUMENT",E[E.TOO_MANY_REQUESTS=8]="TOO_MANY_REQUESTS",E[E.CHANGESET_REVISION_CONFILICT=5001]="CHANGESET_REVISION_CONFILICT",E[E.SNAPSHOT_INVALID_SNAPSHOT=6001]="SNAPSHOT_INVALID_SNAPSHOT",E[E.APPLY_REJECT=7001]="APPLY_REJECT",E[E.APPLY_NON_SEQUENTIAL_REVISION=7002]="APPLY_NON_SEQUENTIAL_REVISION",E[E.APPLY_REVISION_CONFILICT=7003]="APPLY_REVISION_CONFILICT",E[E.CONNECTOR_DATA_TOO_LARGE=8001]="CONNECTOR_DATA_TOO_LARGE",E[E.LICENSE_MAX_UNITS_EXCEEDED=9001]="LICENSE_MAX_UNITS_EXCEEDED",E[E.LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED=9002]="LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED",E[E.LICENSE_IMPORT_SIZE_EXCEEDED=9003]="LICENSE_IMPORT_SIZE_EXCEEDED",E[E.LICENSE_EXPORT_SIZE_EXCEEDED=9004]="LICENSE_EXPORT_SIZE_EXCEEDED",E[E.LICENSE_DISTRO_REJECTED=9005]="LICENSE_DISTRO_REJECTED",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(I||{});function P(E){return!!(E&&E.code&&E.code!==I.OK&&E.code!=="OK")}var _=(E=>(E[E.UNIVER_UNKNOWN=0]="UNIVER_UNKNOWN",E[E.UNIVER_DOC=1]="UNIVER_DOC",E[E.UNIVER_SHEET=2]="UNIVER_SHEET",E[E.UNIVER_SLIDE=3]="UNIVER_SLIDE",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(_||{}),O=(E=>(E[E.UNKNOWN=0]="UNKNOWN",E[E.STRING=1]="STRING",E[E.NUMBER=2]="NUMBER",E[E.BOOLEAN=3]="BOOLEAN",E[E.FORCE_STRING=4]="FORCE_STRING",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(O||{}),R=(E=>(E[E.UNKNOWN_CMD=0]="UNKNOWN_CMD",E[E.HELLO=1]="HELLO",E[E.JOIN=2]="JOIN",E[E.LEAVE=3]="LEAVE",E[E.INGEST=4]="INGEST",E[E.HEARTBEAT=5]="HEARTBEAT",E[E.RECV=6]="RECV",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(R||{}),S=(E=>(E[E.UNKNOWN_CODE=0]="UNKNOWN_CODE",E[E.OK=1]="OK",E[E.FAIL=2]="FAIL",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(S||{}),D=(E=>(E[E.View=0]="View",E[E.Edit=1]="Edit",E[E.ManageCollaborator=2]="ManageCollaborator",E[E.Print=3]="Print",E[E.Duplicate=4]="Duplicate",E[E.Comment=5]="Comment",E[E.Copy=6]="Copy",E[E.Share=7]="Share",E[E.Export=8]="Export",E[E.MoveWorksheet=9]="MoveWorksheet",E[E.DeleteWorksheet=10]="DeleteWorksheet",E[E.HideWorksheet=11]="HideWorksheet",E[E.RenameWorksheet=12]="RenameWorksheet",E[E.CreateWorksheet=13]="CreateWorksheet",E[E.SetWorksheetStyle=14]="SetWorksheetStyle",E[E.EditWorksheetCell=15]="EditWorksheetCell",E[E.InsertHyperlink=16]="InsertHyperlink",E[E.Sort=17]="Sort",E[E.Filter=18]="Filter",E[E.PivotTable=19]="PivotTable",E[E.FloatImg=20]="FloatImg",E[E.History=21]="History",E[E.RwHgtClWdt=22]="RwHgtClWdt",E[E.ViemRwHgtClWdt=23]="ViemRwHgtClWdt",E[E.ViewFilter=24]="ViewFilter",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(D||{}),T=(E=>(E[E.Reader=0]="Reader",E[E.Editor=1]="Editor",E[E.Owner=2]="Owner",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(T||{}),L=(E=>(E[E.Unkonwn=0]="Unkonwn",E[E.Workbook=1]="Workbook",E[E.Worksheet=2]="Worksheet",E[E.SelectRange=3]="SelectRange",E[E.Document=4]="Document",E[E.Slide=5]="Slide",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(L||{});N.CellValueType=O,N.CmdRspCode=S,N.CombCmd=R,N.ErrorCode=I,N.UnitAction=D,N.UnitObject=L,N.UnitRole=T,N.UniverType=_,N.isError=P,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
{
"name": "@univerjs/protocol",
"version": "0.1.25",
"version": "0.1.26-permission-3",
"private": false,

@@ -5,0 +5,0 @@ "description": "A protocol of Univer repos",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc