@univerjs/protocol 0.1.49 → 0.20.1-insiders.20260418-3a69981
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/README.md +1 -3
- package/lib/cjs/index.js +463 -1
- package/lib/es/index.js +446 -36
- package/lib/index.js +447 -0
- package/lib/types/index.d.ts +41 -38
- package/lib/types/other/sheet-block.d.ts +27 -0
- package/lib/types/ts/univer/changeset.d.ts +20 -6
- package/lib/types/ts/univer/colla-msg.d.ts +176 -0
- package/lib/types/ts/univer/constants/errors.d.ts +33 -19
- package/lib/types/ts/univer/constants/univer.d.ts +15 -1
- package/lib/types/ts/univer/doc.d.ts +18 -4
- package/lib/types/ts/univer/drawing.d.ts +16 -2
- package/lib/types/ts/univer/initial-sheet.d.ts +46 -0
- package/lib/types/ts/univer/permission.d.ts +19 -5
- package/lib/types/ts/univer/range.d.ts +16 -2
- package/lib/types/ts/univer/resource.d.ts +16 -2
- package/lib/types/ts/univer/snapshot.d.ts +23 -9
- package/lib/types/ts/univer/unit-template.d.ts +23 -0
- package/lib/types/ts/univer/univer-file.d.ts +27 -0
- package/lib/types/ts/univer/workbook.d.ts +30 -53
- package/lib/types/ts/univercloud/stats/v1/stats.d.ts +34 -0
- package/lib/types/ts/univerpro/v1/apply.d.ts +129 -0
- package/lib/types/ts/univerpro/v1/helper.d.ts +36 -0
- package/lib/types/ts/univerpro/v1/ssc.d.ts +72 -0
- package/lib/types/ts/univerpro/v1/ssr.d.ts +28 -0
- package/lib/types/ts/universer/v1/access-key.d.ts +51 -0
- package/lib/types/ts/universer/v1/authz.d.ts +102 -87
- package/lib/types/ts/universer/v1/comb.d.ts +40 -61
- package/lib/types/ts/universer/v1/comment.d.ts +45 -49
- package/lib/types/ts/universer/v1/file.d.ts +57 -42
- package/lib/types/ts/universer/v1/history.d.ts +52 -49
- package/lib/types/ts/universer/v1/license.d.ts +54 -39
- package/lib/types/ts/universer/v1/snapshot.d.ts +146 -143
- package/lib/types/ts/universer/v1/user.d.ts +28 -275
- package/lib/types/utils.d.ts +17 -2
- package/lib/umd/index.js +1 -1
- package/package.json +33 -11
- package/lib/types/ts/univer/colla_msg.d.ts +0 -178
- package/lib/types/ts/univer/constants/biz.d.ts +0 -17
- package/lib/types/ts/univer/event_sync.d.ts +0 -10
- package/lib/types/ts/univer/initial_sheet.d.ts +0 -31
- package/lib/types/ts/univer/unit_template.d.ts +0 -9
- package/lib/types/ts/univer/univer_file.d.ts +0 -33
- package/lib/types/ts/universer/v1/access_key.d.ts +0 -36
- package/lib/types/ts/universer/v1/access_key_logs.d.ts +0 -43
- package/lib/types/ts/universer/v1/activity.d.ts +0 -22
- package/lib/types/ts/universer/v1/analyse_cmn.d.ts +0 -27
- package/lib/types/ts/universer/v1/analyse_data_source.d.ts +0 -86
- package/lib/types/ts/universer/v1/analyse_task.d.ts +0 -232
- package/lib/types/ts/universer/v1/clipsheet_task.d.ts +0 -72
- package/lib/types/ts/universer/v1/conf.d.ts +0 -570
- package/lib/types/ts/universer/v1/connector.d.ts +0 -74
- package/lib/types/ts/universer/v1/conversation.d.ts +0 -578
- package/lib/types/ts/universer/v1/email.d.ts +0 -28
- package/lib/types/ts/universer/v1/entitlement.d.ts +0 -663
- package/lib/types/ts/universer/v1/exchange.d.ts +0 -101
- package/lib/types/ts/universer/v1/feedback.d.ts +0 -71
- package/lib/types/ts/universer/v1/frontend_logs.d.ts +0 -36
- package/lib/types/ts/universer/v1/go_config_center.d.ts +0 -91
- package/lib/types/ts/universer/v1/inbox.d.ts +0 -59
- package/lib/types/ts/universer/v1/invite_code.d.ts +0 -47
- package/lib/types/ts/universer/v1/license_manage.d.ts +0 -157
- package/lib/types/ts/universer/v1/oauth2.d.ts +0 -24
- package/lib/types/ts/universer/v1/oidc.d.ts +0 -167
- package/lib/types/ts/universer/v1/redemption_code.d.ts +0 -32
- package/lib/types/ts/universer/v1/referral.d.ts +0 -55
- package/lib/types/ts/universer/v1/scraper.d.ts +0 -144
- package/lib/types/ts/universer/v1/source_connector/api.d.ts +0 -110
- package/lib/types/ts/universer/v1/source_connector/conf.d.ts +0 -29
- package/lib/types/ts/universer/v1/source_connector/displayer.d.ts +0 -16
- package/lib/types/ts/universer/v1/source_connector/source.d.ts +0 -46
- package/lib/types/ts/universer/v1/source_connector/stream_view.d.ts +0 -31
- package/lib/types/ts/universer/v1/survey.d.ts +0 -25
- package/lib/types/ts/universer/v1/template.d.ts +0 -48
- package/lib/types/ts/universer/v1/toolkit.d.ts +0 -23
- package/lib/types/ts/universer/v1/trigger.d.ts +0 -102
- package/lib/types/ts/universer/v1/uniscript.d.ts +0 -104
- package/lib/types/ts/universer/v1/uniscript_logs.d.ts +0 -157
- package/lib/types/ts/universer/v1/univer_go_template.d.ts +0 -65
- package/lib/types/ts/universer/v1/user_event.d.ts +0 -23
- package/lib/types/ts/universer/v1/user_settings.d.ts +0 -22
- package/lib/types/ts/universer/v1/usip.d.ts +0 -62
- package/lib/types/ts/universer/v1/video_task.d.ts +0 -196
- package/lib/types/ts/universer/v1/workspace.d.ts +0 -273
package/lib/es/index.js
CHANGED
|
@@ -1,37 +1,447 @@
|
|
|
1
|
-
var N = /* @__PURE__ */ ((_) => (_[_.OpenOrReOpen = 0] = "OpenOrReOpen", _[_.Solved = 1] = "Solved", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(N || {}), I = /* @__PURE__ */ ((_) => (_[_.Unknown = 0] = "Unknown", _[_.Add = 1] = "Add", _[_.Reply = 2] = "Reply", _[_.Edit = 3] = "Edit", _[_.Delete = 4] = "Delete", _[_.Solve = 5] = "Solve", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(I || {}), E = /* @__PURE__ */ ((_) => (_[_.UNDEFINED = 0] = "UNDEFINED", _[_.OK = 1] = "OK", _[_.INTERNAL_ERROR = 2] = "INTERNAL_ERROR", _[_.PERMISSION_DENIED = 3] = "PERMISSION_DENIED", _[_.NOT_FOUND = 4] = "NOT_FOUND", _[_.UNAUTHENTICATED = 5] = "UNAUTHENTICATED", _[_.ALREADY_EXISTS = 6] = "ALREADY_EXISTS", _[_.INVALID_ARGUMENT = 7] = "INVALID_ARGUMENT", _[_.TOO_MANY_REQUESTS = 8] = "TOO_MANY_REQUESTS", _[_.COMPLETION_FINISHED = 9] = "COMPLETION_FINISHED", _[_.LOGIN_FAILED = 10] = "LOGIN_FAILED", _[_.MOBILE_VERIFY_CODE_MISMATCH = 11] = "MOBILE_VERIFY_CODE_MISMATCH", _[_.MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED = 12] = "MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED", _[_.EMAIL_VERIFY_CODE_MISMATCH = 13] = "EMAIL_VERIFY_CODE_MISMATCH", _[_.EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED = 14] = "EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED", _[_.AUTHORIZE_CODE_ILLEGAL = 15] = "AUTHORIZE_CODE_ILLEGAL", _[_.LOGIN_TOKEN_PROCESSING_FAILED = 16] = "LOGIN_TOKEN_PROCESSING_FAILED", _[_.CURRENT_STATUS_CANNOT_OPERATE = 100] = "CURRENT_STATUS_CANNOT_OPERATE", _[_.ERROR_AGAIN = 101] = "ERROR_AGAIN", _[_.USER_NOT_FOUND = 201] = "USER_NOT_FOUND", _[_.USER_IS_ANONYMOUS = 202] = "USER_IS_ANONYMOUS", _[_.CHANGESET_REVISION_CONFILICT = 5001] = "CHANGESET_REVISION_CONFILICT", _[_.SNAPSHOT_INVALID_SNAPSHOT = 6001] = "SNAPSHOT_INVALID_SNAPSHOT", _[_.SNAPSHOT_HAS_BEEN_REMOVED = 6002] = "SNAPSHOT_HAS_BEEN_REMOVED", _[_.ENSURE_SNAPSHOT_EXECUTION = 6003] = "ENSURE_SNAPSHOT_EXECUTION", _[_.APPLY_REJECT = 7001] = "APPLY_REJECT", _[_.APPLY_NON_SEQUENTIAL_REVISION = 7002] = "APPLY_NON_SEQUENTIAL_REVISION", _[_.APPLY_REVISION_CONFILICT = 7003] = "APPLY_REVISION_CONFILICT", _[_.APPLY_PERMISSION_DENIED = 7004] = "APPLY_PERMISSION_DENIED", _[_.APPLY_DUPLICATED = 7005] = "APPLY_DUPLICATED", _[_.CONNECTOR_DATA_TOO_LARGE = 8001] = "CONNECTOR_DATA_TOO_LARGE", _[_.LICENSE_MAX_UNITS_EXCEEDED = 9001] = "LICENSE_MAX_UNITS_EXCEEDED", _[_.LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED = 9002] = "LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED", _[_.LICENSE_IMPORT_SIZE_EXCEEDED = 9003] = "LICENSE_IMPORT_SIZE_EXCEEDED", _[_.LICENSE_EXPORT_SIZE_EXCEEDED = 9004] = "LICENSE_EXPORT_SIZE_EXCEEDED", _[_.LICENSE_DISTRO_REJECTED = 9005] = "LICENSE_DISTRO_REJECTED", _[_.YUUMI_UNABLE_LOAD_URL = 10001] = "YUUMI_UNABLE_LOAD_URL", _[_.YUUMI_URL_COL_OUT_OF_RANGE = 10002] = "YUUMI_URL_COL_OUT_OF_RANGE", _[_.YUUMI_RATE_OVER_LIMIT = 10003] = "YUUMI_RATE_OVER_LIMIT", _[_.YUUMI_SUBSCRIPTION_NOT_FOUND = 10004] = "YUUMI_SUBSCRIPTION_NOT_FOUND", _[_.YUUMI_NO_CUBOID_FOR_QUESTION = 10010] = "YUUMI_NO_CUBOID_FOR_QUESTION", _[_.YUUMI_ASYNCIO_CANCELLED = 10011] = "YUUMI_ASYNCIO_CANCELLED", _[_.YUUMI_TABLE_NOT_FOUND_IN_UNIT = 10012] = "YUUMI_TABLE_NOT_FOUND_IN_UNIT", _[_.YUUMI_ALL_TABLES_IS_INVALID = 10013] = "YUUMI_ALL_TABLES_IS_INVALID", _[_.YUUMI_PROMPT_MAX_TOKENS_EXCEEDED = 10014] = "YUUMI_PROMPT_MAX_TOKENS_EXCEEDED", _[_.YUUMI_AI_RUN_FAILED = 10015] = "YUUMI_AI_RUN_FAILED", _[_.YUUMI_CONNECTOR_URL_NOT_FOUND = 10016] = "YUUMI_CONNECTOR_URL_NOT_FOUND", _[_.PY_RUNTIME_SCRIPT_ERROR = 11001] = "PY_RUNTIME_SCRIPT_ERROR", _[_.INVITE_CODE_HAS_BEEN_UES = 12001] = "INVITE_CODE_HAS_BEEN_UES", _[_.INVALID_INVITE_CODE = 12002] = "INVALID_INVITE_CODE", _[_.INVITE_CODE_REQUIRED = 12003] = "INVITE_CODE_REQUIRED", _[_.USER_NOT_INVITED_CODE = 12004] = "USER_NOT_INVITED_CODE", _[_.INVITE_CODE_ALREADY_BOUND = 12005] = "INVITE_CODE_ALREADY_BOUND", _[_.WECHAT_HAS_BEEN_BOUND = 13001] = "WECHAT_HAS_BEEN_BOUND", _[_.MOBILE_HAS_BEEN_BOUND = 13002] = "MOBILE_HAS_BEEN_BOUND", _[_.EMAIL_HAS_BEEN_BOUND = 13003] = "EMAIL_HAS_BEEN_BOUND", _[_.ENTITLE_CAN_NOT_BUY_LOWER_OTP = 14001] = "ENTITLE_CAN_NOT_BUY_LOWER_OTP", _[_.ENTITLE_UPDOWN_GRADE_NOT_SUPPORT = 14002] = "ENTITLE_UPDOWN_GRADE_NOT_SUPPORT", _[_.ENTITLE_DUP_SUBSCRIPTION = 14003] = "ENTITLE_DUP_SUBSCRIPTION", _[_.PAYMENT_CHANNEL_NOT_SUPPORT = 14004] = "PAYMENT_CHANNEL_NOT_SUPPORT", _[_.ENTITLE_INVALID_COUPON_CODE = 14005] = "ENTITLE_INVALID_COUPON_CODE", _[_.ENTITLE_COUPON_EXPIRED = 14006] = "ENTITLE_COUPON_EXPIRED", _[_.ENTITLE_COUPON_USED_UP = 14007] = "ENTITLE_COUPON_USED_UP", _[_.ENTITLE_USE_COUPON_NOT_1ST_TRADE = 14008] = "ENTITLE_USE_COUPON_NOT_1ST_TRADE", _[_.ENTITLE_CHAT_LIMIT_EXCEED = 14101] = "ENTITLE_CHAT_LIMIT_EXCEED", _[_.ENTITLE_REPORT_LIMIT_EXCEED = 14102] = "ENTITLE_REPORT_LIMIT_EXCEED", _[_.ENTITLE_INSUFFICIENT_QUOTA = 14103] = "ENTITLE_INSUFFICIENT_QUOTA", _[_.ENTITLE_NEED_BILLING_ADDRESS = 14301] = "ENTITLE_NEED_BILLING_ADDRESS", _[_.REDEMPTION_INVALID_CODE = 15001] = "REDEMPTION_INVALID_CODE", _[_.REDEMPTION_CODE_INACTIVE = 15002] = "REDEMPTION_CODE_INACTIVE", _[_.REDEMPTION_CODE_FULLY_REDEEMED = 15003] = "REDEMPTION_CODE_FULLY_REDEEMED", _[_.REDEMPTION_CODE_NOT_STARTED = 15004] = "REDEMPTION_CODE_NOT_STARTED", _[_.REDEMPTION_USER_NOT_ELIGIBLE = 15005] = "REDEMPTION_USER_NOT_ELIGIBLE", _[_.REDEMPTION_USER_REDEEM_TIMES_EXCEED = 15006] = "REDEMPTION_USER_REDEEM_TIMES_EXCEED", _[_.REDEMPTION_CODE_HAS_BEEN_CREATED = 15007] = "REDEMPTION_CODE_HAS_BEEN_CREATED", _[_.DATA_SOURCE_TOO_LARGE = 16001] = "DATA_SOURCE_TOO_LARGE", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(E || {}), O = /* @__PURE__ */ ((_) => (_[_.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", _[_.UNIVER_DOC = 1] = "UNIVER_DOC", _[_.UNIVER_SHEET = 2] = "UNIVER_SHEET", _[_.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", _[_.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(O || {}), D = /* @__PURE__ */ ((_) => (_[_.UNDEFINED = 0] = "UNDEFINED", _[_.TEXT = 1] = "TEXT", _[_.URL = 2] = "URL", _[_.IMAGE = 3] = "IMAGE", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(D || {}), R = /* @__PURE__ */ ((_) => (_[_.View = 0] = "View", _[_.Edit = 1] = "Edit", _[_.ManageCollaborator = 2] = "ManageCollaborator", _[_.Print = 3] = "Print", _[_.Duplicate = 4] = "Duplicate", _[_.Comment = 5] = "Comment", _[_.Copy = 6] = "Copy", _[_.Share = 7] = "Share", _[_.Export = 8] = "Export", _[_.MoveWorksheet = 9] = "MoveWorksheet", _[_.DeleteWorksheet = 10] = "DeleteWorksheet", _[_.HideWorksheet = 11] = "HideWorksheet", _[_.RenameWorksheet = 12] = "RenameWorksheet", _[_.CreateWorksheet = 13] = "CreateWorksheet", _[_.SetWorksheetStyle = 14] = "SetWorksheetStyle", _[_.EditWorksheetCell = 15] = "EditWorksheetCell", _[_.InsertHyperlink = 16] = "InsertHyperlink", _[_.Sort = 17] = "Sort", _[_.Filter = 18] = "Filter", _[_.PivotTable = 19] = "PivotTable", _[_.FloatImg = 20] = "FloatImg", _[_.History = 21] = "History", _[_.RwHgtClWdt = 22] = "RwHgtClWdt", _[_.ViemRwHgtClWdt = 23] = "ViemRwHgtClWdt", _[_.ViewFilter = 24] = "ViewFilter", _[_.MoveSheet = 25] = "MoveSheet", _[_.DeleteSheet = 26] = "DeleteSheet", _[_.HideSheet = 27] = "HideSheet", _[_.CopySheet = 28] = "CopySheet", _[_.RenameSheet = 29] = "RenameSheet", _[_.CreateSheet = 30] = "CreateSheet", _[_.SelectProtectedCells = 31] = "SelectProtectedCells", _[_.SelectUnProtectedCells = 32] = "SelectUnProtectedCells", _[_.SetCellStyle = 33] = "SetCellStyle", _[_.SetCellValue = 34] = "SetCellValue", _[_.SetRowStyle = 35] = "SetRowStyle", _[_.SetColumnStyle = 36] = "SetColumnStyle", _[_.InsertRow = 37] = "InsertRow", _[_.InsertColumn = 38] = "InsertColumn", _[_.DeleteRow = 39] = "DeleteRow", _[_.DeleteColumn = 40] = "DeleteColumn", _[_.EditExtraObject = 41] = "EditExtraObject", _[_.Delete = 42] = "Delete", _[_.RecoverHistory = 43] = "RecoverHistory", _[_.ViewHistory = 44] = "ViewHistory", _[_.CreatePermissionObject = 45] = "CreatePermissionObject", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(R || {}), T = /* @__PURE__ */ ((_) => (_[_.Reader = 0] = "Reader", _[_.Editor = 1] = "Editor", _[_.Owner = 2] = "Owner", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(T || {}), S = /* @__PURE__ */ ((_) => (_[_.Unkonwn = 0] = "Unkonwn", _[_.Workbook = 1] = "Workbook", _[_.Worksheet = 2] = "Worksheet", _[_.SelectRange = 3] = "SelectRange", _[_.Document = 4] = "Document", _[_.Slide = 5] = "Slide", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(S || {}), L = /* @__PURE__ */ ((_) => (_[_.Private = 0] = "Private", _[_.Public = 1] = "Public", _[_.Organization = 2] = "Organization", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(L || {}), a = /* @__PURE__ */ ((_) => (_[_.SomeCollaborator = 0] = "SomeCollaborator", _[_.AllCollaborator = 1] = "AllCollaborator", _[_.OneSelf = 2] = "OneSelf", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(a || {}), P = /* @__PURE__ */ ((_) => (_[_.UNKNOWN = 0] = "UNKNOWN", _[_.STRING = 1] = "STRING", _[_.NUMBER = 2] = "NUMBER", _[_.BOOLEAN = 3] = "BOOLEAN", _[_.FORCE_STRING = 4] = "FORCE_STRING", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(P || {}), U = /* @__PURE__ */ ((_) => (_[_.Unknown = 0] = "Unknown", _[_.Colla = 1] = "Colla", _[_.Import = 2] = "Import", _[_.Export = 3] = "Export", _[_.CreateUnit = 4] = "CreateUnit", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(U || {}), M = /* @__PURE__ */ ((_) => (_[_.valueBetween = 0] = "valueBetween", _[_.valueEqual = 1] = "valueEqual", _[_.valueGreaterThan = 2] = "valueGreaterThan", _[_.valueGreaterThanOrEqual = 3] = "valueGreaterThanOrEqual", _[_.valueLessThan = 4] = "valueLessThan", _[_.valueLessThanOrEqual = 5] = "valueLessThanOrEqual", _[_.valueNotBetween = 6] = "valueNotBetween", _[_.valueNotEqual = 7] = "valueNotEqual", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(M || {}), A = /* @__PURE__ */ ((_) => (_[_.DataFragmentationType_None = 0] = "DataFragmentationType_None", _[_.DataFragmentationType_Charts = 1] = "DataFragmentationType_Charts", _[_.DataFragmentationType_Unit = 2] = "DataFragmentationType_Unit", _[_.DataFragmentationType_WorkSheetRef = 3] = "DataFragmentationType_WorkSheetRef", _[_.DataFragmentationType_Code = 4] = "DataFragmentationType_Code", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(A || {}), l = /* @__PURE__ */ ((_) => (_[_.AnalyseTaskStatus_None = 0] = "AnalyseTaskStatus_None", _[_.AnalyseTaskStatus_Analysing = 1] = "AnalyseTaskStatus_Analysing", _[_.AnalyseTaskStatus_Failed = 2] = "AnalyseTaskStatus_Failed", _[_.AnalyseTaskStatus_Completed = 3] = "AnalyseTaskStatus_Completed", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(l || {}), G = /* @__PURE__ */ ((_) => (_[_.UNKNOWN_CMD = 0] = "UNKNOWN_CMD", _[_.HELLO = 1] = "HELLO", _[_.JOIN = 2] = "JOIN", _[_.LEAVE = 3] = "LEAVE", _[_.INGEST = 4] = "INGEST", _[_.HEARTBEAT = 5] = "HEARTBEAT", _[_.RECV = 6] = "RECV", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(G || {}), H = /* @__PURE__ */ ((_) => (_[_.UNKNOWN_CODE = 0] = "UNKNOWN_CODE", _[_.OK = 1] = "OK", _[_.FAIL = 2] = "FAIL", _[_.JOIN_ROOM_FULL = 1001] = "JOIN_ROOM_FULL", _[_.JOIN_ROOM_NOT_EXISTS = 1002] = "JOIN_ROOM_NOT_EXISTS", _[_.JOIN_ROOM_PERMISSION_DENIED = 1003] = "JOIN_ROOM_PERMISSION_DENIED", _[_.GLOBAL_ROOMS_CNT_EXCEEDS = 1004] = "GLOBAL_ROOMS_CNT_EXCEEDS", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(H || {}), Z = /* @__PURE__ */ ((_) => (_[_.Completion_None = 0] = "Completion_None", _[_.Completion_Completed = 1] = "Completion_Completed", _[_.Completion_UserCancelled = 2] = "Completion_UserCancelled", _[_.Completion_SystemErr = 3] = "Completion_SystemErr", _[_.Completion_Interrupted = 4] = "Completion_Interrupted", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(Z || {}), V = /* @__PURE__ */ ((_) => (_[_.RoleType_None = 0] = "RoleType_None", _[_.RoleType_User = 1] = "RoleType_User", _[_.RoleType_Agent = 2] = "RoleType_Agent", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(V || {}), s = /* @__PURE__ */ ((_) => (_[_.ContentBlockType_None = 0] = "ContentBlockType_None", _[_.ContentBlockType_Prompt = 1] = "ContentBlockType_Prompt", _[_.ContentBlockType_Thinking = 2] = "ContentBlockType_Thinking", _[_.ContentBlockType_Report = 3] = "ContentBlockType_Report", _[_.ContentBlockType_PromptV2 = 4] = "ContentBlockType_PromptV2", _[_.ContentBlockType_HITL = 103] = "ContentBlockType_HITL", _[_.ContentBlockType_ToolCallStart = 105] = "ContentBlockType_ToolCallStart", _[_.ContentBlockType_ToolCallResult = 106] = "ContentBlockType_ToolCallResult", _[_.ContentBlockType_SubAgentsCallStart = 107] = "ContentBlockType_SubAgentsCallStart", _[_.ContentBlockType_SubAgentsCallResult = 108] = "ContentBlockType_SubAgentsCallResult", _[_.ContentBlockType_SubAgentRunStarted = 109] = "ContentBlockType_SubAgentRunStarted", _[_.ContentBlockType_SubAgentRunFinished = 110] = "ContentBlockType_SubAgentRunFinished", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(s || {}), B = /* @__PURE__ */ ((_) => (_[_.ContentType_None = 0] = "ContentType_None", _[_.ContentType_PlainText = 1] = "ContentType_PlainText", _[_.ContentType_Markdown = 2] = "ContentType_Markdown", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(B || {}), Y = /* @__PURE__ */ ((_) => (_[_.AttachmentType_None = 0] = "AttachmentType_None", _[_.AttachmentType_Unit = 1] = "AttachmentType_Unit", _[_.AttachmentType_Recommendation = 3] = "AttachmentType_Recommendation", _[_.AttachmentType_DataSource = 4] = "AttachmentType_DataSource", _[_.AttachmentType_HitlAnswer = 5] = "AttachmentType_HitlAnswer", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(Y || {}), h = /* @__PURE__ */ ((_) => (_[_.Reaction_NoReact = 0] = "Reaction_NoReact", _[_.Reaction_ThumbsUp = 1] = "Reaction_ThumbsUp", _[_.Reaction_ThumbsDown = 2] = "Reaction_ThumbsDown", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(h || {}), g = /* @__PURE__ */ ((_) => (_[_.ChatSSEBlockType_None = 0] = "ChatSSEBlockType_None", _[_.ChatSSEBlockType_EndOfStream = 1] = "ChatSSEBlockType_EndOfStream", _[_.ChatSSEBlockType_Reject = 2] = "ChatSSEBlockType_Reject", _[_.ChatSSEBlockType_ModConversation = 3] = "ChatSSEBlockType_ModConversation", _[_.ChatSSEBlockType_PromptAck = 4] = "ChatSSEBlockType_PromptAck", _[_.ChatSSEBlockType_ChatContent = 5] = "ChatSSEBlockType_ChatContent", _[_.ChatSSEBlockType_Attachment = 6] = "ChatSSEBlockType_Attachment", _[_.ChatSSEBlockType_RespMeta = 7] = "ChatSSEBlockType_RespMeta", _[_.ChatSSEBlockType_StreamErr = 8] = "ChatSSEBlockType_StreamErr", _[_.ChatSSEBlockType_ChatThinking = 9] = "ChatSSEBlockType_ChatThinking", _[_.ChatSSEBlockType_Fragmentation = 10] = "ChatSSEBlockType_Fragmentation", _[_.ChatSSEBlockType_RawMessage = 101] = "ChatSSEBlockType_RawMessage", _[_.ChatSSEBlockType_EditThinking = 102] = "ChatSSEBlockType_EditThinking", _[_.ChatSSEBlockType_HITL = 103] = "ChatSSEBlockType_HITL", _[_.ChatSSEBlockType_ToolCallStart = 105] = "ChatSSEBlockType_ToolCallStart", _[_.ChatSSEBlockType_ToolCallResult = 106] = "ChatSSEBlockType_ToolCallResult", _[_.ChatSSEBlockType_SubAgentsCallStart = 107] = "ChatSSEBlockType_SubAgentsCallStart", _[_.ChatSSEBlockType_SubAgentsCallResult = 108] = "ChatSSEBlockType_SubAgentsCallResult", _[_.ChatSSEBlockType_SubAgentRunStarted = 109] = "ChatSSEBlockType_SubAgentRunStarted", _[_.ChatSSEBlockType_SubAgentRunFinished = 110] = "ChatSSEBlockType_SubAgentRunFinished", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(g || {}), W = /* @__PURE__ */ ((_) => (_[_.ChatSSEStatus_None = 0] = "ChatSSEStatus_None", _[_.ChatSSEStatus_Appending = 1] = "ChatSSEStatus_Appending", _[_.ChatSSEStatus_Success = 2] = "ChatSSEStatus_Success", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(W || {}), X = /* @__PURE__ */ ((_) => (_[_.UNDEFINED = 0] = "UNDEFINED", _[_.UNIT = 1] = "UNIT", _[_.JSON = 2] = "JSON", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(X || {}), F = /* @__PURE__ */ ((_) => (_[_.ImportScene_Unspecified = 0] = "ImportScene_Unspecified", _[_.ImportScene_General = 1] = "ImportScene_General", _[_.ImportScene_AIAnalyse = 2] = "ImportScene_AIAnalyse", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(F || {}), k = /* @__PURE__ */ ((_) => (_[_.Undefined = 0] = "Undefined", _[_.HttpImport = 1] = "HttpImport", _[_.HttpExport = 2] = "HttpExport", _[_.UnitEmbedded = 3] = "UnitEmbedded", _[_.UnitSnapshot = 4] = "UnitSnapshot", _[_.UserProfileImg = 5] = "UserProfileImg", _[_.ClipsheetFragments = 6] = "ClipsheetFragments", _[_.LLMInputData = 7] = "LLMInputData", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(k || {}), C = /* @__PURE__ */ ((_) => (_[_.UNDEFINED_ENV = 0] = "UNDEFINED_ENV", _[_.NODE = 1] = "NODE", _[_.BROWSER = 2] = "BROWSER", _[_.PYTHON = 3] = "PYTHON", _[_.REQUIREMENTS_TXT = 4] = "REQUIREMENTS_TXT", _[_.WORKSPACE_ENV_VARS = 5] = "WORKSPACE_ENV_VARS", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(C || {}), u = /* @__PURE__ */ ((_) => (_[_.UNKNOWN = 0] = "UNKNOWN", _[_.ROOT = 1] = "ROOT", _[_.TRASH = 2] = "TRASH", _[_.DEBUG = 3] = "DEBUG", _[_.AI_STASH = 4] = "AI_STASH", _[_.UNRECOGNIZED = -1] = "UNRECOGNIZED", _))(u || {});
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
//#region src/ts/univer/colla-msg.ts
|
|
2
|
+
let CommentSolvedStatus = /* @__PURE__ */ function(CommentSolvedStatus) {
|
|
3
|
+
CommentSolvedStatus[CommentSolvedStatus["OpenOrReOpen"] = 0] = "OpenOrReOpen";
|
|
4
|
+
CommentSolvedStatus[CommentSolvedStatus["Solved"] = 1] = "Solved";
|
|
5
|
+
CommentSolvedStatus[CommentSolvedStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
6
|
+
return CommentSolvedStatus;
|
|
7
|
+
}({});
|
|
8
|
+
let CommentUpdateEventType = /* @__PURE__ */ function(CommentUpdateEventType) {
|
|
9
|
+
CommentUpdateEventType[CommentUpdateEventType["Unknown"] = 0] = "Unknown";
|
|
10
|
+
CommentUpdateEventType[CommentUpdateEventType["Add"] = 1] = "Add";
|
|
11
|
+
CommentUpdateEventType[CommentUpdateEventType["Reply"] = 2] = "Reply";
|
|
12
|
+
CommentUpdateEventType[CommentUpdateEventType["Edit"] = 3] = "Edit";
|
|
13
|
+
CommentUpdateEventType[CommentUpdateEventType["Delete"] = 4] = "Delete";
|
|
14
|
+
CommentUpdateEventType[CommentUpdateEventType["Solve"] = 5] = "Solve";
|
|
15
|
+
CommentUpdateEventType[CommentUpdateEventType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
16
|
+
return CommentUpdateEventType;
|
|
17
|
+
}({});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/ts/univer/constants/errors.ts
|
|
21
|
+
/**
|
|
22
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
23
|
+
*
|
|
24
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
25
|
+
* you may not use this file except in compliance with the License.
|
|
26
|
+
* You may obtain a copy of the License at
|
|
27
|
+
*
|
|
28
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
29
|
+
*
|
|
30
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
31
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
32
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
33
|
+
* See the License for the specific language governing permissions and
|
|
34
|
+
* limitations under the License.
|
|
35
|
+
*/
|
|
36
|
+
let ErrorCode = /* @__PURE__ */ function(ErrorCode) {
|
|
37
|
+
/** UNDEFINED - general codes */
|
|
38
|
+
ErrorCode[ErrorCode["UNDEFINED"] = 0] = "UNDEFINED";
|
|
39
|
+
ErrorCode[ErrorCode["OK"] = 1] = "OK";
|
|
40
|
+
ErrorCode[ErrorCode["INTERNAL_ERROR"] = 2] = "INTERNAL_ERROR";
|
|
41
|
+
ErrorCode[ErrorCode["PERMISSION_DENIED"] = 3] = "PERMISSION_DENIED";
|
|
42
|
+
ErrorCode[ErrorCode["NOT_FOUND"] = 4] = "NOT_FOUND";
|
|
43
|
+
ErrorCode[ErrorCode["UNAUTHENTICATED"] = 5] = "UNAUTHENTICATED";
|
|
44
|
+
ErrorCode[ErrorCode["ALREADY_EXISTS"] = 6] = "ALREADY_EXISTS";
|
|
45
|
+
ErrorCode[ErrorCode["INVALID_ARGUMENT"] = 7] = "INVALID_ARGUMENT";
|
|
46
|
+
ErrorCode[ErrorCode["TOO_MANY_REQUESTS"] = 8] = "TOO_MANY_REQUESTS";
|
|
47
|
+
ErrorCode[ErrorCode["COMPLETION_FINISHED"] = 9] = "COMPLETION_FINISHED";
|
|
48
|
+
/** LOGIN_FAILED - login */
|
|
49
|
+
ErrorCode[ErrorCode["LOGIN_FAILED"] = 10] = "LOGIN_FAILED";
|
|
50
|
+
ErrorCode[ErrorCode["MOBILE_VERIFY_CODE_MISMATCH"] = 11] = "MOBILE_VERIFY_CODE_MISMATCH";
|
|
51
|
+
ErrorCode[ErrorCode["MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED"] = 12] = "MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED";
|
|
52
|
+
ErrorCode[ErrorCode["EMAIL_VERIFY_CODE_MISMATCH"] = 13] = "EMAIL_VERIFY_CODE_MISMATCH";
|
|
53
|
+
ErrorCode[ErrorCode["EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED"] = 14] = "EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED";
|
|
54
|
+
ErrorCode[ErrorCode["AUTHORIZE_CODE_ILLEGAL"] = 15] = "AUTHORIZE_CODE_ILLEGAL";
|
|
55
|
+
ErrorCode[ErrorCode["LOGIN_TOKEN_PROCESSING_FAILED"] = 16] = "LOGIN_TOKEN_PROCESSING_FAILED";
|
|
56
|
+
/** CURRENT_STATUS_CANNOT_OPERATE - biz cmn codes with 100 shift */
|
|
57
|
+
ErrorCode[ErrorCode["CURRENT_STATUS_CANNOT_OPERATE"] = 100] = "CURRENT_STATUS_CANNOT_OPERATE";
|
|
58
|
+
ErrorCode[ErrorCode["ERROR_AGAIN"] = 101] = "ERROR_AGAIN";
|
|
59
|
+
/** USER_NOT_FOUND - user codes with 200 shift */
|
|
60
|
+
ErrorCode[ErrorCode["USER_NOT_FOUND"] = 201] = "USER_NOT_FOUND";
|
|
61
|
+
ErrorCode[ErrorCode["USER_IS_ANONYMOUS"] = 202] = "USER_IS_ANONYMOUS";
|
|
62
|
+
/** CHANGESET_REVISION_CONFILICT - changeset codes with 5000 shift */
|
|
63
|
+
ErrorCode[ErrorCode["CHANGESET_REVISION_CONFILICT"] = 5001] = "CHANGESET_REVISION_CONFILICT";
|
|
64
|
+
/** SNAPSHOT_INVALID_SNAPSHOT - snapshotError codes with 6000 shift */
|
|
65
|
+
ErrorCode[ErrorCode["SNAPSHOT_INVALID_SNAPSHOT"] = 6001] = "SNAPSHOT_INVALID_SNAPSHOT";
|
|
66
|
+
ErrorCode[ErrorCode["SNAPSHOT_HAS_BEEN_REMOVED"] = 6002] = "SNAPSHOT_HAS_BEEN_REMOVED";
|
|
67
|
+
ErrorCode[ErrorCode["ENSURE_SNAPSHOT_EXECUTION"] = 6003] = "ENSURE_SNAPSHOT_EXECUTION";
|
|
68
|
+
/** APPLY_REJECT - apply service codes with 7000 shift */
|
|
69
|
+
ErrorCode[ErrorCode["APPLY_REJECT"] = 7001] = "APPLY_REJECT";
|
|
70
|
+
/** APPLY_NON_SEQUENTIAL_REVISION - apply service expects sequential revisions, otherwise return this code */
|
|
71
|
+
ErrorCode[ErrorCode["APPLY_NON_SEQUENTIAL_REVISION"] = 7002] = "APPLY_NON_SEQUENTIAL_REVISION";
|
|
72
|
+
/** APPLY_REVISION_CONFILICT - save changeset failed because of revision exists */
|
|
73
|
+
ErrorCode[ErrorCode["APPLY_REVISION_CONFILICT"] = 7003] = "APPLY_REVISION_CONFILICT";
|
|
74
|
+
/** APPLY_PERMISSION_DENIED - apply failed because of the user permission denied */
|
|
75
|
+
ErrorCode[ErrorCode["APPLY_PERMISSION_DENIED"] = 7004] = "APPLY_PERMISSION_DENIED";
|
|
76
|
+
/** APPLY_DUPLICATED - if the changeset has been applied before, return this code */
|
|
77
|
+
ErrorCode[ErrorCode["APPLY_DUPLICATED"] = 7005] = "APPLY_DUPLICATED";
|
|
78
|
+
/** CONNECTOR_DATA_TOO_LARGE - connector codes with 8000 shift */
|
|
79
|
+
ErrorCode[ErrorCode["CONNECTOR_DATA_TOO_LARGE"] = 8001] = "CONNECTOR_DATA_TOO_LARGE";
|
|
80
|
+
/** LICENSE_MAX_UNITS_EXCEEDED - license code with 9000 shift */
|
|
81
|
+
ErrorCode[ErrorCode["LICENSE_MAX_UNITS_EXCEEDED"] = 9001] = "LICENSE_MAX_UNITS_EXCEEDED";
|
|
82
|
+
ErrorCode[ErrorCode["LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED"] = 9002] = "LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED";
|
|
83
|
+
ErrorCode[ErrorCode["LICENSE_IMPORT_SIZE_EXCEEDED"] = 9003] = "LICENSE_IMPORT_SIZE_EXCEEDED";
|
|
84
|
+
ErrorCode[ErrorCode["LICENSE_EXPORT_SIZE_EXCEEDED"] = 9004] = "LICENSE_EXPORT_SIZE_EXCEEDED";
|
|
85
|
+
/** LICENSE_DISTRO_REJECTED - the feature not allowed for the distro */
|
|
86
|
+
ErrorCode[ErrorCode["LICENSE_DISTRO_REJECTED"] = 9005] = "LICENSE_DISTRO_REJECTED";
|
|
87
|
+
/** YUUMI_UNABLE_LOAD_URL - yuumi */
|
|
88
|
+
ErrorCode[ErrorCode["YUUMI_UNABLE_LOAD_URL"] = 10001] = "YUUMI_UNABLE_LOAD_URL";
|
|
89
|
+
ErrorCode[ErrorCode["YUUMI_URL_COL_OUT_OF_RANGE"] = 10002] = "YUUMI_URL_COL_OUT_OF_RANGE";
|
|
90
|
+
ErrorCode[ErrorCode["YUUMI_RATE_OVER_LIMIT"] = 10003] = "YUUMI_RATE_OVER_LIMIT";
|
|
91
|
+
ErrorCode[ErrorCode["YUUMI_SUBSCRIPTION_NOT_FOUND"] = 10004] = "YUUMI_SUBSCRIPTION_NOT_FOUND";
|
|
92
|
+
/** YUUMI_NO_CUBOID_FOR_QUESTION - yuumi AI */
|
|
93
|
+
ErrorCode[ErrorCode["YUUMI_NO_CUBOID_FOR_QUESTION"] = 10010] = "YUUMI_NO_CUBOID_FOR_QUESTION";
|
|
94
|
+
ErrorCode[ErrorCode["YUUMI_ASYNCIO_CANCELLED"] = 10011] = "YUUMI_ASYNCIO_CANCELLED";
|
|
95
|
+
ErrorCode[ErrorCode["YUUMI_TABLE_NOT_FOUND_IN_UNIT"] = 10012] = "YUUMI_TABLE_NOT_FOUND_IN_UNIT";
|
|
96
|
+
ErrorCode[ErrorCode["YUUMI_ALL_TABLES_IS_INVALID"] = 10013] = "YUUMI_ALL_TABLES_IS_INVALID";
|
|
97
|
+
ErrorCode[ErrorCode["YUUMI_PROMPT_MAX_TOKENS_EXCEEDED"] = 10014] = "YUUMI_PROMPT_MAX_TOKENS_EXCEEDED";
|
|
98
|
+
ErrorCode[ErrorCode["YUUMI_AI_RUN_FAILED"] = 10015] = "YUUMI_AI_RUN_FAILED";
|
|
99
|
+
ErrorCode[ErrorCode["YUUMI_CONNECTOR_URL_NOT_FOUND"] = 10016] = "YUUMI_CONNECTOR_URL_NOT_FOUND";
|
|
100
|
+
/** PY_RUNTIME_SCRIPT_ERROR - py-runtime */
|
|
101
|
+
ErrorCode[ErrorCode["PY_RUNTIME_SCRIPT_ERROR"] = 11001] = "PY_RUNTIME_SCRIPT_ERROR";
|
|
102
|
+
/** INVITE_CODE_HAS_BEEN_UES - invite-code */
|
|
103
|
+
ErrorCode[ErrorCode["INVITE_CODE_HAS_BEEN_UES"] = 12001] = "INVITE_CODE_HAS_BEEN_UES";
|
|
104
|
+
ErrorCode[ErrorCode["INVALID_INVITE_CODE"] = 12002] = "INVALID_INVITE_CODE";
|
|
105
|
+
ErrorCode[ErrorCode["INVITE_CODE_REQUIRED"] = 12003] = "INVITE_CODE_REQUIRED";
|
|
106
|
+
ErrorCode[ErrorCode["USER_NOT_INVITED_CODE"] = 12004] = "USER_NOT_INVITED_CODE";
|
|
107
|
+
ErrorCode[ErrorCode["INVITE_CODE_ALREADY_BOUND"] = 12005] = "INVITE_CODE_ALREADY_BOUND";
|
|
108
|
+
/** WECHAT_HAS_BEEN_BOUND - user profile */
|
|
109
|
+
ErrorCode[ErrorCode["WECHAT_HAS_BEEN_BOUND"] = 13001] = "WECHAT_HAS_BEEN_BOUND";
|
|
110
|
+
ErrorCode[ErrorCode["MOBILE_HAS_BEEN_BOUND"] = 13002] = "MOBILE_HAS_BEEN_BOUND";
|
|
111
|
+
ErrorCode[ErrorCode["EMAIL_HAS_BEEN_BOUND"] = 13003] = "EMAIL_HAS_BEEN_BOUND";
|
|
112
|
+
/** ENTITLE_CAN_NOT_BUY_LOWER_OTP - entitlement domain errors */
|
|
113
|
+
ErrorCode[ErrorCode["ENTITLE_CAN_NOT_BUY_LOWER_OTP"] = 14001] = "ENTITLE_CAN_NOT_BUY_LOWER_OTP";
|
|
114
|
+
/** ENTITLE_UPDOWN_GRADE_NOT_SUPPORT - subscription upgrade/downgrade is not supported */
|
|
115
|
+
ErrorCode[ErrorCode["ENTITLE_UPDOWN_GRADE_NOT_SUPPORT"] = 14002] = "ENTITLE_UPDOWN_GRADE_NOT_SUPPORT";
|
|
116
|
+
/** ENTITLE_DUP_SUBSCRIPTION - duplicate subscription */
|
|
117
|
+
ErrorCode[ErrorCode["ENTITLE_DUP_SUBSCRIPTION"] = 14003] = "ENTITLE_DUP_SUBSCRIPTION";
|
|
118
|
+
/** PAYMENT_CHANNEL_NOT_SUPPORT - payment channel is not supported */
|
|
119
|
+
ErrorCode[ErrorCode["PAYMENT_CHANNEL_NOT_SUPPORT"] = 14004] = "PAYMENT_CHANNEL_NOT_SUPPORT";
|
|
120
|
+
/** ENTITLE_INVALID_COUPON_CODE - invalid coupon code */
|
|
121
|
+
ErrorCode[ErrorCode["ENTITLE_INVALID_COUPON_CODE"] = 14005] = "ENTITLE_INVALID_COUPON_CODE";
|
|
122
|
+
/** ENTITLE_COUPON_EXPIRED - coupon expired */
|
|
123
|
+
ErrorCode[ErrorCode["ENTITLE_COUPON_EXPIRED"] = 14006] = "ENTITLE_COUPON_EXPIRED";
|
|
124
|
+
/** ENTITLE_COUPON_USED_UP - coupon used up */
|
|
125
|
+
ErrorCode[ErrorCode["ENTITLE_COUPON_USED_UP"] = 14007] = "ENTITLE_COUPON_USED_UP";
|
|
126
|
+
/** ENTITLE_USE_COUPON_NOT_1ST_TRADE - not the first purchase, cannot use coupon */
|
|
127
|
+
ErrorCode[ErrorCode["ENTITLE_USE_COUPON_NOT_1ST_TRADE"] = 14008] = "ENTITLE_USE_COUPON_NOT_1ST_TRADE";
|
|
128
|
+
/** ENTITLE_CHAT_LIMIT_EXCEED - chat rate limit exceeded */
|
|
129
|
+
ErrorCode[ErrorCode["ENTITLE_CHAT_LIMIT_EXCEED"] = 14101] = "ENTITLE_CHAT_LIMIT_EXCEED";
|
|
130
|
+
/** ENTITLE_REPORT_LIMIT_EXCEED - report rate limit exceeded */
|
|
131
|
+
ErrorCode[ErrorCode["ENTITLE_REPORT_LIMIT_EXCEED"] = 14102] = "ENTITLE_REPORT_LIMIT_EXCEED";
|
|
132
|
+
/** ENTITLE_INSUFFICIENT_QUOTA - insufficient quota */
|
|
133
|
+
ErrorCode[ErrorCode["ENTITLE_INSUFFICIENT_QUOTA"] = 14103] = "ENTITLE_INSUFFICIENT_QUOTA";
|
|
134
|
+
/** ENTITLE_NEED_BILLING_ADDRESS - billing address required */
|
|
135
|
+
ErrorCode[ErrorCode["ENTITLE_NEED_BILLING_ADDRESS"] = 14301] = "ENTITLE_NEED_BILLING_ADDRESS";
|
|
136
|
+
/** REDEMPTION_INVALID_CODE - redemption code domain errors */
|
|
137
|
+
ErrorCode[ErrorCode["REDEMPTION_INVALID_CODE"] = 15001] = "REDEMPTION_INVALID_CODE";
|
|
138
|
+
/** REDEMPTION_CODE_INACTIVE - code inactive */
|
|
139
|
+
ErrorCode[ErrorCode["REDEMPTION_CODE_INACTIVE"] = 15002] = "REDEMPTION_CODE_INACTIVE";
|
|
140
|
+
/** REDEMPTION_CODE_FULLY_REDEEMED - fully redeemed */
|
|
141
|
+
ErrorCode[ErrorCode["REDEMPTION_CODE_FULLY_REDEEMED"] = 15003] = "REDEMPTION_CODE_FULLY_REDEEMED";
|
|
142
|
+
/** REDEMPTION_CODE_NOT_STARTED - not started yet */
|
|
143
|
+
ErrorCode[ErrorCode["REDEMPTION_CODE_NOT_STARTED"] = 15004] = "REDEMPTION_CODE_NOT_STARTED";
|
|
144
|
+
/** REDEMPTION_USER_NOT_ELIGIBLE - user not eligible */
|
|
145
|
+
ErrorCode[ErrorCode["REDEMPTION_USER_NOT_ELIGIBLE"] = 15005] = "REDEMPTION_USER_NOT_ELIGIBLE";
|
|
146
|
+
/** REDEMPTION_USER_REDEEM_TIMES_EXCEED - user redemption limit exceeded */
|
|
147
|
+
ErrorCode[ErrorCode["REDEMPTION_USER_REDEEM_TIMES_EXCEED"] = 15006] = "REDEMPTION_USER_REDEEM_TIMES_EXCEED";
|
|
148
|
+
/** REDEMPTION_CODE_HAS_BEEN_CREATED - redemption code already exists */
|
|
149
|
+
ErrorCode[ErrorCode["REDEMPTION_CODE_HAS_BEEN_CREATED"] = 15007] = "REDEMPTION_CODE_HAS_BEEN_CREATED";
|
|
150
|
+
/** DATA_SOURCE_TOO_LARGE - data source errors */
|
|
151
|
+
ErrorCode[ErrorCode["DATA_SOURCE_TOO_LARGE"] = 16001] = "DATA_SOURCE_TOO_LARGE";
|
|
152
|
+
ErrorCode[ErrorCode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
153
|
+
return ErrorCode;
|
|
154
|
+
}({});
|
|
155
|
+
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/ts/univer/constants/univer.ts
|
|
158
|
+
/**
|
|
159
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
160
|
+
*
|
|
161
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
162
|
+
* you may not use this file except in compliance with the License.
|
|
163
|
+
* You may obtain a copy of the License at
|
|
164
|
+
*
|
|
165
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
166
|
+
*
|
|
167
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
168
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
169
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
170
|
+
* See the License for the specific language governing permissions and
|
|
171
|
+
* limitations under the License.
|
|
172
|
+
*/
|
|
173
|
+
let UniverType = /* @__PURE__ */ function(UniverType) {
|
|
174
|
+
UniverType[UniverType["UNIVER_UNKNOWN"] = 0] = "UNIVER_UNKNOWN";
|
|
175
|
+
UniverType[UniverType["UNIVER_DOC"] = 1] = "UNIVER_DOC";
|
|
176
|
+
UniverType[UniverType["UNIVER_SHEET"] = 2] = "UNIVER_SHEET";
|
|
177
|
+
UniverType[UniverType["UNIVER_SLIDE"] = 3] = "UNIVER_SLIDE";
|
|
178
|
+
UniverType[UniverType["UNIVER_PROJECT"] = 4] = "UNIVER_PROJECT";
|
|
179
|
+
UniverType[UniverType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
180
|
+
return UniverType;
|
|
181
|
+
}({});
|
|
182
|
+
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/ts/univer/initial-sheet.ts
|
|
185
|
+
/**
|
|
186
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
187
|
+
*
|
|
188
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
189
|
+
* you may not use this file except in compliance with the License.
|
|
190
|
+
* You may obtain a copy of the License at
|
|
191
|
+
*
|
|
192
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
193
|
+
*
|
|
194
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
195
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
196
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
197
|
+
* See the License for the specific language governing permissions and
|
|
198
|
+
* limitations under the License.
|
|
199
|
+
*/
|
|
200
|
+
let CellType = /* @__PURE__ */ function(CellType) {
|
|
201
|
+
CellType[CellType["UNDEFINED"] = 0] = "UNDEFINED";
|
|
202
|
+
CellType[CellType["TEXT"] = 1] = "TEXT";
|
|
203
|
+
CellType[CellType["URL"] = 2] = "URL";
|
|
204
|
+
CellType[CellType["IMAGE"] = 3] = "IMAGE";
|
|
205
|
+
CellType[CellType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
206
|
+
return CellType;
|
|
207
|
+
}({});
|
|
208
|
+
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region src/ts/univer/permission.ts
|
|
211
|
+
/**
|
|
212
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
213
|
+
*
|
|
214
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
215
|
+
* you may not use this file except in compliance with the License.
|
|
216
|
+
* You may obtain a copy of the License at
|
|
217
|
+
*
|
|
218
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
219
|
+
*
|
|
220
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
221
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
222
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
223
|
+
* See the License for the specific language governing permissions and
|
|
224
|
+
* limitations under the License.
|
|
225
|
+
*/
|
|
226
|
+
let UnitAction = /* @__PURE__ */ function(UnitAction) {
|
|
227
|
+
UnitAction[UnitAction["View"] = 0] = "View";
|
|
228
|
+
UnitAction[UnitAction["Edit"] = 1] = "Edit";
|
|
229
|
+
UnitAction[UnitAction["ManageCollaborator"] = 2] = "ManageCollaborator";
|
|
230
|
+
UnitAction[UnitAction["Print"] = 3] = "Print";
|
|
231
|
+
/** Duplicate - create a copy */
|
|
232
|
+
UnitAction[UnitAction["Duplicate"] = 4] = "Duplicate";
|
|
233
|
+
UnitAction[UnitAction["Comment"] = 5] = "Comment";
|
|
234
|
+
UnitAction[UnitAction["Copy"] = 6] = "Copy";
|
|
235
|
+
UnitAction[UnitAction["Share"] = 7] = "Share";
|
|
236
|
+
UnitAction[UnitAction["Export"] = 8] = "Export";
|
|
237
|
+
/** @deprecated */
|
|
238
|
+
UnitAction[UnitAction["MoveWorksheet"] = 9] = "MoveWorksheet";
|
|
239
|
+
/** @deprecated */
|
|
240
|
+
UnitAction[UnitAction["DeleteWorksheet"] = 10] = "DeleteWorksheet";
|
|
241
|
+
/** @deprecated */
|
|
242
|
+
UnitAction[UnitAction["HideWorksheet"] = 11] = "HideWorksheet";
|
|
243
|
+
/** @deprecated */
|
|
244
|
+
UnitAction[UnitAction["RenameWorksheet"] = 12] = "RenameWorksheet";
|
|
245
|
+
/** @deprecated */
|
|
246
|
+
UnitAction[UnitAction["CreateWorksheet"] = 13] = "CreateWorksheet";
|
|
247
|
+
/** @deprecated */
|
|
248
|
+
UnitAction[UnitAction["SetWorksheetStyle"] = 14] = "SetWorksheetStyle";
|
|
249
|
+
/** @deprecated */
|
|
250
|
+
UnitAction[UnitAction["EditWorksheetCell"] = 15] = "EditWorksheetCell";
|
|
251
|
+
UnitAction[UnitAction["InsertHyperlink"] = 16] = "InsertHyperlink";
|
|
252
|
+
UnitAction[UnitAction["Sort"] = 17] = "Sort";
|
|
253
|
+
UnitAction[UnitAction["Filter"] = 18] = "Filter";
|
|
254
|
+
UnitAction[UnitAction["PivotTable"] = 19] = "PivotTable";
|
|
255
|
+
/** @deprecated */
|
|
256
|
+
UnitAction[UnitAction["FloatImg"] = 20] = "FloatImg";
|
|
257
|
+
/** @deprecated */
|
|
258
|
+
UnitAction[UnitAction["IHistory"] = 21] = "IHistory";
|
|
259
|
+
/**
|
|
260
|
+
* RwHgtClWdt - row height, column width
|
|
261
|
+
*
|
|
262
|
+
* @deprecated
|
|
263
|
+
*/
|
|
264
|
+
UnitAction[UnitAction["RwHgtClWdt"] = 22] = "RwHgtClWdt";
|
|
265
|
+
/**
|
|
266
|
+
* ViemRwHgtClWdt - row height, column width in view mode
|
|
267
|
+
*
|
|
268
|
+
* @deprecated
|
|
269
|
+
*/
|
|
270
|
+
UnitAction[UnitAction["ViemRwHgtClWdt"] = 23] = "ViemRwHgtClWdt";
|
|
271
|
+
/**
|
|
272
|
+
* ViewFilter - filter in view mode
|
|
273
|
+
*
|
|
274
|
+
* @deprecated
|
|
275
|
+
*/
|
|
276
|
+
UnitAction[UnitAction["ViewFilter"] = 24] = "ViewFilter";
|
|
277
|
+
UnitAction[UnitAction["MoveSheet"] = 25] = "MoveSheet";
|
|
278
|
+
/** DeleteSheet - delete the sub sheet */
|
|
279
|
+
UnitAction[UnitAction["DeleteSheet"] = 26] = "DeleteSheet";
|
|
280
|
+
UnitAction[UnitAction["HideSheet"] = 27] = "HideSheet";
|
|
281
|
+
UnitAction[UnitAction["CopySheet"] = 28] = "CopySheet";
|
|
282
|
+
UnitAction[UnitAction["RenameSheet"] = 29] = "RenameSheet";
|
|
283
|
+
UnitAction[UnitAction["CreateSheet"] = 30] = "CreateSheet";
|
|
284
|
+
UnitAction[UnitAction["SelectProtectedCells"] = 31] = "SelectProtectedCells";
|
|
285
|
+
UnitAction[UnitAction["SelectUnProtectedCells"] = 32] = "SelectUnProtectedCells";
|
|
286
|
+
UnitAction[UnitAction["SetCellStyle"] = 33] = "SetCellStyle";
|
|
287
|
+
UnitAction[UnitAction["SetCellValue"] = 34] = "SetCellValue";
|
|
288
|
+
UnitAction[UnitAction["SetRowStyle"] = 35] = "SetRowStyle";
|
|
289
|
+
UnitAction[UnitAction["SetColumnStyle"] = 36] = "SetColumnStyle";
|
|
290
|
+
UnitAction[UnitAction["InsertRow"] = 37] = "InsertRow";
|
|
291
|
+
UnitAction[UnitAction["InsertColumn"] = 38] = "InsertColumn";
|
|
292
|
+
UnitAction[UnitAction["DeleteRow"] = 39] = "DeleteRow";
|
|
293
|
+
UnitAction[UnitAction["DeleteColumn"] = 40] = "DeleteColumn";
|
|
294
|
+
UnitAction[UnitAction["EditExtraObject"] = 41] = "EditExtraObject";
|
|
295
|
+
/** Delete - delete the unit file */
|
|
296
|
+
UnitAction[UnitAction["Delete"] = 42] = "Delete";
|
|
297
|
+
UnitAction[UnitAction["RecoverHistory"] = 43] = "RecoverHistory";
|
|
298
|
+
UnitAction[UnitAction["ViewHistory"] = 44] = "ViewHistory";
|
|
299
|
+
UnitAction[UnitAction["CreatePermissionObject"] = 45] = "CreatePermissionObject";
|
|
300
|
+
UnitAction[UnitAction["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
301
|
+
return UnitAction;
|
|
302
|
+
}({});
|
|
303
|
+
let UnitRole = /* @__PURE__ */ function(UnitRole) {
|
|
304
|
+
UnitRole[UnitRole["Reader"] = 0] = "Reader";
|
|
305
|
+
UnitRole[UnitRole["Editor"] = 1] = "Editor";
|
|
306
|
+
UnitRole[UnitRole["Owner"] = 2] = "Owner";
|
|
307
|
+
UnitRole[UnitRole["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
308
|
+
return UnitRole;
|
|
309
|
+
}({});
|
|
310
|
+
let UnitObject = /* @__PURE__ */ function(UnitObject) {
|
|
311
|
+
UnitObject[UnitObject["Unkonwn"] = 0] = "Unkonwn";
|
|
312
|
+
UnitObject[UnitObject["Workbook"] = 1] = "Workbook";
|
|
313
|
+
UnitObject[UnitObject["Worksheet"] = 2] = "Worksheet";
|
|
314
|
+
UnitObject[UnitObject["SelectRange"] = 3] = "SelectRange";
|
|
315
|
+
UnitObject[UnitObject["Document"] = 4] = "Document";
|
|
316
|
+
UnitObject[UnitObject["Slide"] = 5] = "Slide";
|
|
317
|
+
UnitObject[UnitObject["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
318
|
+
return UnitObject;
|
|
319
|
+
}({});
|
|
320
|
+
let ObjectScope = /* @__PURE__ */ function(ObjectScope) {
|
|
321
|
+
ObjectScope[ObjectScope["SomeCollaborator"] = 0] = "SomeCollaborator";
|
|
322
|
+
ObjectScope[ObjectScope["AllCollaborator"] = 1] = "AllCollaborator";
|
|
323
|
+
ObjectScope[ObjectScope["OneSelf"] = 2] = "OneSelf";
|
|
324
|
+
ObjectScope[ObjectScope["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
325
|
+
return ObjectScope;
|
|
326
|
+
}({});
|
|
327
|
+
|
|
328
|
+
//#endregion
|
|
329
|
+
//#region src/ts/univer/workbook.ts
|
|
330
|
+
let CellValueType = /* @__PURE__ */ function(CellValueType) {
|
|
331
|
+
CellValueType[CellValueType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
332
|
+
CellValueType[CellValueType["STRING"] = 1] = "STRING";
|
|
333
|
+
CellValueType[CellValueType["NUMBER"] = 2] = "NUMBER";
|
|
334
|
+
CellValueType[CellValueType["BOOLEAN"] = 3] = "BOOLEAN";
|
|
335
|
+
CellValueType[CellValueType["FORCE_STRING"] = 4] = "FORCE_STRING";
|
|
336
|
+
CellValueType[CellValueType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
337
|
+
return CellValueType;
|
|
338
|
+
}({});
|
|
339
|
+
|
|
340
|
+
//#endregion
|
|
341
|
+
//#region src/ts/univercloud/stats/v1/stats.ts
|
|
342
|
+
/**
|
|
343
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
344
|
+
*
|
|
345
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
346
|
+
* you may not use this file except in compliance with the License.
|
|
347
|
+
* You may obtain a copy of the License at
|
|
348
|
+
*
|
|
349
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
350
|
+
*
|
|
351
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
352
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
353
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
354
|
+
* See the License for the specific language governing permissions and
|
|
355
|
+
* limitations under the License.
|
|
356
|
+
*/
|
|
357
|
+
let IRecordType = /* @__PURE__ */ function(IRecordType) {
|
|
358
|
+
/** Unknown - don't use */
|
|
359
|
+
IRecordType[IRecordType["Unknown"] = 0] = "Unknown";
|
|
360
|
+
IRecordType[IRecordType["Colla"] = 1] = "Colla";
|
|
361
|
+
IRecordType[IRecordType["Import"] = 2] = "Import";
|
|
362
|
+
IRecordType[IRecordType["Export"] = 3] = "Export";
|
|
363
|
+
IRecordType[IRecordType["ICreateUnit"] = 4] = "ICreateUnit";
|
|
364
|
+
IRecordType[IRecordType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
365
|
+
return IRecordType;
|
|
366
|
+
}({});
|
|
367
|
+
|
|
368
|
+
//#endregion
|
|
369
|
+
//#region src/ts/universer/v1/comb.ts
|
|
370
|
+
/** more details: https://c3fgartrp2.feishu.cn/docx/OS47dk8BCo1ZeKxXiNvcDLuZn2g#PymGdupuyoYfvTxv1EBciV7in9b */
|
|
371
|
+
let CombCmd = /* @__PURE__ */ function(CombCmd) {
|
|
372
|
+
/** UNKNOWN_CMD - unknown cmd */
|
|
373
|
+
CombCmd[CombCmd["UNKNOWN_CMD"] = 0] = "UNKNOWN_CMD";
|
|
374
|
+
/** HELLO - call hello to get comb info, this is essential after you connect to the server */
|
|
375
|
+
CombCmd[CombCmd["HELLO"] = 1] = "HELLO";
|
|
376
|
+
/** JOIN - call join to join couple of rooms */
|
|
377
|
+
CombCmd[CombCmd["JOIN"] = 2] = "JOIN";
|
|
378
|
+
/** LEAVE - call leave to leave a room */
|
|
379
|
+
CombCmd[CombCmd["LEAVE"] = 3] = "LEAVE";
|
|
380
|
+
/** INGEST - call ingest to broadcast a message to a room */
|
|
381
|
+
CombCmd[CombCmd["INGEST"] = 4] = "INGEST";
|
|
382
|
+
/** HEARTBEAT - call heartbeat to keep the connection alive */
|
|
383
|
+
CombCmd[CombCmd["HEARTBEAT"] = 5] = "HEARTBEAT";
|
|
384
|
+
/**
|
|
385
|
+
* RECV - RECV not a cmd actually, you never call a RECV cmd.
|
|
386
|
+
* when you receive a message from comb(may be created by another user), the cmd will be RECV
|
|
387
|
+
*/
|
|
388
|
+
CombCmd[CombCmd["RECV"] = 6] = "RECV";
|
|
389
|
+
CombCmd[CombCmd["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
390
|
+
return CombCmd;
|
|
391
|
+
}({});
|
|
392
|
+
let CmdRspCode = /* @__PURE__ */ function(CmdRspCode) {
|
|
393
|
+
CmdRspCode[CmdRspCode["UNKNOWN_CODE"] = 0] = "UNKNOWN_CODE";
|
|
394
|
+
CmdRspCode[CmdRspCode["OK"] = 1] = "OK";
|
|
395
|
+
CmdRspCode[CmdRspCode["FAIL"] = 2] = "FAIL";
|
|
396
|
+
/**
|
|
397
|
+
* JOIN_ROOM_FULL - 1000~1999 room related
|
|
398
|
+
* max room member reached
|
|
399
|
+
*/
|
|
400
|
+
CmdRspCode[CmdRspCode["JOIN_ROOM_FULL"] = 1001] = "JOIN_ROOM_FULL";
|
|
401
|
+
/** JOIN_ROOM_NOT_EXISTS - the specified room does not exists */
|
|
402
|
+
CmdRspCode[CmdRspCode["JOIN_ROOM_NOT_EXISTS"] = 1002] = "JOIN_ROOM_NOT_EXISTS";
|
|
403
|
+
/** JOIN_ROOM_PERMISSION_DENIED - has no permission to join the room */
|
|
404
|
+
CmdRspCode[CmdRspCode["JOIN_ROOM_PERMISSION_DENIED"] = 1003] = "JOIN_ROOM_PERMISSION_DENIED";
|
|
405
|
+
/** GLOBAL_ROOMS_CNT_EXCEEDS - global live collaboration rooms count exceeds */
|
|
406
|
+
CmdRspCode[CmdRspCode["GLOBAL_ROOMS_CNT_EXCEEDS"] = 1004] = "GLOBAL_ROOMS_CNT_EXCEEDS";
|
|
407
|
+
CmdRspCode[CmdRspCode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
408
|
+
return CmdRspCode;
|
|
409
|
+
}({});
|
|
410
|
+
|
|
411
|
+
//#endregion
|
|
412
|
+
//#region src/ts/universer/v1/file.ts
|
|
413
|
+
let FileSource = /* @__PURE__ */ function(FileSource) {
|
|
414
|
+
FileSource[FileSource["Undefined"] = 0] = "Undefined";
|
|
415
|
+
/** HttpImport - assign UserID */
|
|
416
|
+
FileSource[FileSource["HttpImport"] = 1] = "HttpImport";
|
|
417
|
+
/** HttpExport - assign UserID */
|
|
418
|
+
FileSource[FileSource["HttpExport"] = 2] = "HttpExport";
|
|
419
|
+
/** UnitEmbedded - assign UnitID */
|
|
420
|
+
FileSource[FileSource["UnitEmbedded"] = 3] = "UnitEmbedded";
|
|
421
|
+
/** UnitSnapshot - assign UnitID */
|
|
422
|
+
FileSource[FileSource["UnitSnapshot"] = 4] = "UnitSnapshot";
|
|
423
|
+
/** UserProfileImg - assign UserID */
|
|
424
|
+
FileSource[FileSource["UserProfileImg"] = 5] = "UserProfileImg";
|
|
425
|
+
/** ClipsheetFragments - assign UserID, fragmented file will be deleted after 30 days */
|
|
426
|
+
FileSource[FileSource["ClipsheetFragments"] = 6] = "ClipsheetFragments";
|
|
427
|
+
/** LLMInputData - assign UserID */
|
|
428
|
+
FileSource[FileSource["LLMInputData"] = 7] = "LLMInputData";
|
|
429
|
+
FileSource[FileSource["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
430
|
+
return FileSource;
|
|
431
|
+
}({});
|
|
432
|
+
|
|
433
|
+
//#endregion
|
|
434
|
+
//#region src/utils.ts
|
|
435
|
+
/**
|
|
436
|
+
* To examine if a response is an error.
|
|
437
|
+
*
|
|
438
|
+
* @param error error interface
|
|
439
|
+
* @returns if the response is an error
|
|
440
|
+
*/
|
|
441
|
+
function isError(error) {
|
|
442
|
+
if (error && error.code && error.code !== ErrorCode.OK && error.code !== "OK") return true;
|
|
443
|
+
return false;
|
|
4
444
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
D as CellType,
|
|
9
|
-
P as CellValueType,
|
|
10
|
-
g as ChatSSEBlockTypeEnum,
|
|
11
|
-
W as ChatSSEStatusEnum,
|
|
12
|
-
H as CmdRspCode,
|
|
13
|
-
G as CombCmd,
|
|
14
|
-
N as CommentSolvedStatus,
|
|
15
|
-
I as CommentUpdateEventType,
|
|
16
|
-
Z as CompletionStatusEnum,
|
|
17
|
-
V as ConversationRoleTypeEnum,
|
|
18
|
-
A as DataFragmentationTypeEnum,
|
|
19
|
-
E as ErrorCode,
|
|
20
|
-
k as FileSource,
|
|
21
|
-
U as IRecordType,
|
|
22
|
-
u as IRootType,
|
|
23
|
-
X as ImportOutputTypeEnum,
|
|
24
|
-
F as ImportSceneEnum,
|
|
25
|
-
s as MessageContentBlockTypeEnum,
|
|
26
|
-
B as MessageContentTypeEnum,
|
|
27
|
-
h as MessageReactionEnum,
|
|
28
|
-
M as NumberFilterEnum,
|
|
29
|
-
a as ObjectScope,
|
|
30
|
-
C as UniscriptEnv,
|
|
31
|
-
R as UnitAction,
|
|
32
|
-
S as UnitObject,
|
|
33
|
-
T as UnitRole,
|
|
34
|
-
L as UnitShareScope,
|
|
35
|
-
O as UniverType,
|
|
36
|
-
w as isError
|
|
37
|
-
};
|
|
445
|
+
|
|
446
|
+
//#endregion
|
|
447
|
+
export { CellType, CellValueType, CmdRspCode, CombCmd, CommentSolvedStatus, CommentUpdateEventType, ErrorCode, FileSource, IRecordType, ObjectScope, UnitAction, UnitObject, UnitRole, UniverType, isError };
|