@univerjs/protocol 0.1.38-alpha.6 → 0.1.38-alpha.8

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.
@@ -1,6 +1,11 @@
1
1
  import { Changeset } from './changeset';
2
2
 
3
3
  export declare const protobufPackage = "univer";
4
+ export declare enum CommentSolvedStatus {
5
+ OpenOrReOpen = 0,
6
+ Solved = 1,
7
+ UNRECOGNIZED = -1
8
+ }
4
9
  export interface CollaMsg {
5
10
  eventID: string;
6
11
  joinEvent?: CollaMsgJoin | undefined;
@@ -15,6 +20,9 @@ export interface CollaMsg {
15
20
  liveShareTerminate?: LiveShareTerminate | undefined;
16
21
  errorEvent?: CollaMsgErrorEvent | undefined;
17
22
  permissionRejEvent?: PermissionRej | undefined;
23
+ /** eventID: "should_close_conn" */
24
+ shouldCloseConn?: ShouldCloseConn | undefined;
25
+ commentUpdateEvent?: CommentUpdate | undefined;
18
26
  }
19
27
  export interface CollaMsgJoin {
20
28
  memberID: string;
@@ -79,7 +87,24 @@ export interface CollaMsgErrorEvent {
79
87
  export interface PermissionRej {
80
88
  cs: Changeset | undefined;
81
89
  }
90
+ export interface CommentUpdate {
91
+ memberId: string;
92
+ userId: string;
93
+ unitId: string;
94
+ threadId: string;
95
+ replyId?: string | undefined;
96
+ /** Set when solve or reopen Otherwise, it will be null */
97
+ solved?: CommentSolvedStatus | undefined;
98
+ /** Set when edit or new comment reply. Otherwise, it will be null */
99
+ content?: string | undefined;
100
+ /** Set true when delete comment thread . Otherwise, it will be null */
101
+ deleteFlag?: boolean | undefined;
102
+ }
82
103
  export interface UpdateUnit {
83
104
  name: string;
84
105
  unitId: string;
85
106
  }
107
+ export interface ShouldCloseConn {
108
+ /** enum, ["logout", "roleChange"] */
109
+ reason: string;
110
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/protocol",
3
- "version": "0.1.38-alpha.6",
3
+ "version": "0.1.38-alpha.8",
4
4
  "private": false,
5
5
  "description": "A protocol of Univer repos",
6
6
  "author": "DreamNum <developer@univer.ai>",