logisheets 1.1.1 → 1.3.0
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/dist/src/api/author.d.ts +41 -0
- package/dist/src/api/author.js +22 -0
- package/dist/src/api/index.d.ts +2 -0
- package/dist/src/api/index.js +1 -0
- package/dist/src/api/workbook.d.ts +52 -1
- package/dist/src/api/workbook.js +99 -0
- package/dist/src/api/worksheet.d.ts +15 -1
- package/dist/src/api/worksheet.js +18 -0
- package/dist/src/bindings/add_comment.d.ts +44 -0
- package/dist/src/bindings/add_comment.js +66 -0
- package/dist/src/bindings/author_input.d.ts +5 -0
- package/dist/src/bindings/author_input.js +1 -0
- package/dist/src/bindings/cell_image_info.d.ts +7 -0
- package/dist/src/bindings/cell_image_info.js +1 -0
- package/dist/src/bindings/comment.d.ts +2 -2
- package/dist/src/bindings/comment_mention.d.ts +7 -0
- package/dist/src/bindings/comment_mention.js +1 -0
- package/dist/src/bindings/comment_mention_info.d.ts +6 -0
- package/dist/src/bindings/comment_mention_info.js +1 -0
- package/dist/src/bindings/comment_note.d.ts +11 -0
- package/dist/src/bindings/comment_note.js +1 -0
- package/dist/src/bindings/comment_person.d.ts +5 -0
- package/dist/src/bindings/comment_person.js +1 -0
- package/dist/src/bindings/delete_cell_image.d.ts +18 -0
- package/dist/src/bindings/delete_cell_image.js +26 -0
- package/dist/src/bindings/delete_comment.d.ts +14 -0
- package/dist/src/bindings/delete_comment.js +19 -0
- package/dist/src/bindings/edit_comment.d.ts +23 -0
- package/dist/src/bindings/edit_comment.js +33 -0
- package/dist/src/bindings/edit_payload.d.ts +28 -0
- package/dist/src/bindings/index.d.ts +15 -0
- package/dist/src/bindings/index.js +15 -0
- package/dist/src/bindings/resolve_comment.d.ts +18 -0
- package/dist/src/bindings/resolve_comment.js +26 -0
- package/dist/src/bindings/rpc_get_cell_images_params.d.ts +3 -0
- package/dist/src/bindings/rpc_get_cell_images_params.js +1 -0
- package/dist/src/bindings/rpc_get_comments_params.d.ts +3 -0
- package/dist/src/bindings/rpc_get_comments_params.js +1 -0
- package/dist/src/bindings/rpc_workbook_methods.d.ts +6 -0
- package/dist/src/bindings/set_cell_image.d.ts +30 -0
- package/dist/src/bindings/set_cell_image.js +47 -0
- package/dist/src/bindings/upsert_person.d.ts +18 -0
- package/dist/src/bindings/upsert_person.js +22 -0
- package/dist/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/dist/wasm/package.json +1 -1
- package/package.json +1 -1
- package/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/wasm/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { AuthorInput } from '../bindings';
|
|
2
|
+
/**
|
|
3
|
+
* A person the host knows about — the comment author or an `@mention` target.
|
|
4
|
+
*
|
|
5
|
+
* `displayName` is always present. `userId` + `providerId` are the enterprise
|
|
6
|
+
* directory hooks: enterprise builds fill them from their corporate user
|
|
7
|
+
* system (e.g. `providerId: 'AD'`), while the open-source `src` app leaves them
|
|
8
|
+
* unset and only supplies a typed-in `displayName`.
|
|
9
|
+
*
|
|
10
|
+
* This is structurally the generated {@link AuthorInput} payload shape, re-aliased
|
|
11
|
+
* here so host code can depend on the concept without importing a payload type.
|
|
12
|
+
*/
|
|
13
|
+
export type Author = AuthorInput;
|
|
14
|
+
/**
|
|
15
|
+
* The single seam an enterprise deployment overrides to wire LogiSheets
|
|
16
|
+
* comments into its user directory.
|
|
17
|
+
*
|
|
18
|
+
* - `getCurrentAuthor` resolves who is authoring a comment right now.
|
|
19
|
+
* - `searchUsers` backs `@mention` autocomplete.
|
|
20
|
+
*
|
|
21
|
+
* The Rust core stays identity-provider agnostic: it only ever stores the
|
|
22
|
+
* `Author` records this service produces. Nothing in the engine calls a
|
|
23
|
+
* directory — all remote calls live behind an implementation of this interface.
|
|
24
|
+
*/
|
|
25
|
+
export interface AuthorService {
|
|
26
|
+
getCurrentAuthor(): Promise<Author>;
|
|
27
|
+
searchUsers(query: string): Promise<Author[]>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Default {@link AuthorService} for the open-source `src` app: the author types
|
|
31
|
+
* their own name and there is no directory to search. Enterprise builds inject
|
|
32
|
+
* their own implementation instead of using this.
|
|
33
|
+
*/
|
|
34
|
+
export declare class DefaultAuthorService implements AuthorService {
|
|
35
|
+
constructor(author?: Author);
|
|
36
|
+
/** Update the manually-entered author (e.g. from a name input field). */
|
|
37
|
+
setAuthor(author: Author): void;
|
|
38
|
+
getCurrentAuthor(): Promise<Author>;
|
|
39
|
+
searchUsers(_query: string): Promise<Author[]>;
|
|
40
|
+
private _author;
|
|
41
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default {@link AuthorService} for the open-source `src` app: the author types
|
|
3
|
+
* their own name and there is no directory to search. Enterprise builds inject
|
|
4
|
+
* their own implementation instead of using this.
|
|
5
|
+
*/
|
|
6
|
+
export class DefaultAuthorService {
|
|
7
|
+
constructor(author = { displayName: '' }) {
|
|
8
|
+
this._author = author;
|
|
9
|
+
}
|
|
10
|
+
/** Update the manually-entered author (e.g. from a name input field). */
|
|
11
|
+
setAuthor(author) {
|
|
12
|
+
this._author = author;
|
|
13
|
+
}
|
|
14
|
+
async getCurrentAuthor() {
|
|
15
|
+
return this._author;
|
|
16
|
+
}
|
|
17
|
+
// No directory in the open-source build — `@mention` autocomplete is empty.
|
|
18
|
+
async searchUsers(_query) {
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
_author;
|
|
22
|
+
}
|
package/dist/src/api/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './workbook';
|
|
2
2
|
export * from './worksheet';
|
|
3
|
+
export { DefaultAuthorService } from './author';
|
|
4
|
+
export type { Author, AuthorService } from './author';
|
|
3
5
|
export { CalcException, CustomFunc, Calculator } from './calculator';
|
|
4
6
|
export type { Executor } from './calculator';
|
|
5
7
|
export * from './cell';
|
package/dist/src/api/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ActionEffect, BlockField, BlockInfo, FormulaDisplayInfo, ShadowCellInfo, SheetCellId, SheetInfo, SaveFileResult, AppData, CellInfo, CellCoordinateWithSheet, Transaction, GetBlockValuesParams, GetCellIdParams, GetShadowCellIdParams, GetShadowCellIdsParams, GetAvailableBlockIdParams, TempStatusDiff, BlockDataRow } from '../bindings';
|
|
1
|
+
import { ActionEffect, BlockField, BlockInfo, FormulaDisplayInfo, ShadowCellInfo, SheetCellId, SheetInfo, SaveFileResult, AppData, CellInfo, CellCoordinateWithSheet, Transaction, GetBlockValuesParams, GetCellIdParams, GetShadowCellIdParams, GetShadowCellIdsParams, GetAvailableBlockIdParams, TempStatusDiff, BlockDataRow, CommentMention } from '../bindings';
|
|
2
2
|
import { ColId, RowId } from '../types';
|
|
3
3
|
import { Worksheet } from './worksheet';
|
|
4
4
|
import { CustomFunc } from './calculator';
|
|
5
5
|
import { Result } from './utils';
|
|
6
|
+
import { Author } from './author';
|
|
6
7
|
export type ReturnCode = number;
|
|
7
8
|
export type Callback = () => void;
|
|
8
9
|
export type CellIdCallback = (cellId: SheetCellId) => void;
|
|
@@ -17,6 +18,56 @@ export declare class Workbook {
|
|
|
17
18
|
* It is caller's responsibility to store the block id.
|
|
18
19
|
*/
|
|
19
20
|
createBlockForNewCraft(sheetIdx: number, masterRow: number, masterCol: number, rowCnt: number, colCnt: number): Result<number>;
|
|
21
|
+
/**
|
|
22
|
+
* Add a comment (a new root thread, or a reply when `parentId` is given) to
|
|
23
|
+
* a cell. `author` and any `mentions[].author` are identities resolved by
|
|
24
|
+
* the host's {@link AuthorService}; the core dedupes them into stable
|
|
25
|
+
* persons. The note id (GUID) and timestamp are generated here and the id
|
|
26
|
+
* is returned so the host can later edit / reply to / delete this note.
|
|
27
|
+
*/
|
|
28
|
+
addComment(p: {
|
|
29
|
+
sheetIdx: number;
|
|
30
|
+
row: number;
|
|
31
|
+
col: number;
|
|
32
|
+
author: Author;
|
|
33
|
+
content: string;
|
|
34
|
+
mentions?: readonly CommentMention[];
|
|
35
|
+
parentId?: string;
|
|
36
|
+
undoable?: boolean;
|
|
37
|
+
}): {
|
|
38
|
+
commentId: string;
|
|
39
|
+
effect: ActionEffect;
|
|
40
|
+
};
|
|
41
|
+
/** Replace an existing note's text + mentions. */
|
|
42
|
+
editComment(p: {
|
|
43
|
+
sheetIdx: number;
|
|
44
|
+
commentId: string;
|
|
45
|
+
content: string;
|
|
46
|
+
mentions?: readonly CommentMention[];
|
|
47
|
+
undoable?: boolean;
|
|
48
|
+
}): ActionEffect;
|
|
49
|
+
/**
|
|
50
|
+
* Delete a note. Deleting a thread's root note removes the whole thread
|
|
51
|
+
* (root + all replies).
|
|
52
|
+
*/
|
|
53
|
+
deleteComment(p: {
|
|
54
|
+
sheetIdx: number;
|
|
55
|
+
commentId: string;
|
|
56
|
+
undoable?: boolean;
|
|
57
|
+
}): ActionEffect;
|
|
58
|
+
/** Mark a comment thread resolved / reopened. */
|
|
59
|
+
resolveComment(p: {
|
|
60
|
+
sheetIdx: number;
|
|
61
|
+
commentId: string;
|
|
62
|
+
resolved: boolean;
|
|
63
|
+
undoable?: boolean;
|
|
64
|
+
}): ActionEffect;
|
|
65
|
+
/**
|
|
66
|
+
* Pre-register (or refresh) a directory person so they can be `@mentioned`
|
|
67
|
+
* before they've authored anything. Typically fed from an enterprise
|
|
68
|
+
* {@link AuthorService.searchUsers} result.
|
|
69
|
+
*/
|
|
70
|
+
upsertPerson(author: Author): ActionEffect;
|
|
20
71
|
undo(): boolean;
|
|
21
72
|
redo(): boolean;
|
|
22
73
|
registerCellUpdatedCallback(callback: Callback): void;
|
package/dist/src/api/workbook.js
CHANGED
|
@@ -9,6 +9,11 @@ function rpc(method, params, bookId
|
|
|
9
9
|
const msg = params === undefined ? method : { method, value: params };
|
|
10
10
|
return handle(msg, bookId ?? null);
|
|
11
11
|
}
|
|
12
|
+
// GUID for comment / thread ids, wrapped in braces to match the OOXML
|
|
13
|
+
// threaded-comment convention (`{XXXX-...}`).
|
|
14
|
+
function newGuid() {
|
|
15
|
+
return `{${crypto.randomUUID()}}`;
|
|
16
|
+
}
|
|
12
17
|
export class Workbook {
|
|
13
18
|
constructor() {
|
|
14
19
|
this._id = rpc('newWorkbook');
|
|
@@ -66,6 +71,100 @@ export class Workbook {
|
|
|
66
71
|
}
|
|
67
72
|
return id;
|
|
68
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Add a comment (a new root thread, or a reply when `parentId` is given) to
|
|
76
|
+
* a cell. `author` and any `mentions[].author` are identities resolved by
|
|
77
|
+
* the host's {@link AuthorService}; the core dedupes them into stable
|
|
78
|
+
* persons. The note id (GUID) and timestamp are generated here and the id
|
|
79
|
+
* is returned so the host can later edit / reply to / delete this note.
|
|
80
|
+
*/
|
|
81
|
+
addComment(p) {
|
|
82
|
+
const commentId = newGuid();
|
|
83
|
+
const effect = this.execTransaction({
|
|
84
|
+
payloads: [
|
|
85
|
+
{
|
|
86
|
+
type: 'addComment',
|
|
87
|
+
value: {
|
|
88
|
+
sheetIdx: p.sheetIdx,
|
|
89
|
+
row: p.row,
|
|
90
|
+
col: p.col,
|
|
91
|
+
commentId,
|
|
92
|
+
parentId: p.parentId,
|
|
93
|
+
author: p.author,
|
|
94
|
+
dt: new Date().toISOString(),
|
|
95
|
+
content: p.content,
|
|
96
|
+
mentions: p.mentions ?? [],
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
undoable: p.undoable ?? true,
|
|
101
|
+
temp: false,
|
|
102
|
+
});
|
|
103
|
+
return { commentId, effect };
|
|
104
|
+
}
|
|
105
|
+
/** Replace an existing note's text + mentions. */
|
|
106
|
+
editComment(p) {
|
|
107
|
+
return this.execTransaction({
|
|
108
|
+
payloads: [
|
|
109
|
+
{
|
|
110
|
+
type: 'editComment',
|
|
111
|
+
value: {
|
|
112
|
+
sheetIdx: p.sheetIdx,
|
|
113
|
+
commentId: p.commentId,
|
|
114
|
+
content: p.content,
|
|
115
|
+
mentions: p.mentions ?? [],
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
undoable: p.undoable ?? true,
|
|
120
|
+
temp: false,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Delete a note. Deleting a thread's root note removes the whole thread
|
|
125
|
+
* (root + all replies).
|
|
126
|
+
*/
|
|
127
|
+
deleteComment(p) {
|
|
128
|
+
return this.execTransaction({
|
|
129
|
+
payloads: [
|
|
130
|
+
{
|
|
131
|
+
type: 'deleteComment',
|
|
132
|
+
value: { sheetIdx: p.sheetIdx, commentId: p.commentId },
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
undoable: p.undoable ?? true,
|
|
136
|
+
temp: false,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/** Mark a comment thread resolved / reopened. */
|
|
140
|
+
resolveComment(p) {
|
|
141
|
+
return this.execTransaction({
|
|
142
|
+
payloads: [
|
|
143
|
+
{
|
|
144
|
+
type: 'resolveComment',
|
|
145
|
+
value: {
|
|
146
|
+
sheetIdx: p.sheetIdx,
|
|
147
|
+
commentId: p.commentId,
|
|
148
|
+
resolved: p.resolved,
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
undoable: p.undoable ?? true,
|
|
153
|
+
temp: false,
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Pre-register (or refresh) a directory person so they can be `@mentioned`
|
|
158
|
+
* before they've authored anything. Typically fed from an enterprise
|
|
159
|
+
* {@link AuthorService.searchUsers} result.
|
|
160
|
+
*/
|
|
161
|
+
upsertPerson(author) {
|
|
162
|
+
return this.execTransaction({
|
|
163
|
+
payloads: [{ type: 'upsertPerson', value: author }],
|
|
164
|
+
undoable: false,
|
|
165
|
+
temp: false,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
69
168
|
undo() {
|
|
70
169
|
const result = rpc('undo', undefined, this._id);
|
|
71
170
|
if (result) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockInfo, CellPosition, ColInfo, DisplayWindow, DisplayWindowWithStartPoint, RowInfo, Style, Value, CellInfo, SheetDimension, MergeCell, AppendixWithCell, ReproducibleCell, SheetCoordinate, CellInput } from '../bindings';
|
|
1
|
+
import { BlockInfo, CellPosition, ColInfo, DisplayWindow, DisplayWindowWithStartPoint, RowInfo, Style, Value, CellInfo, SheetDimension, MergeCell, AppendixWithCell, ReproducibleCell, SheetCoordinate, CellInput, Comment, CellImageInfo } from '../bindings';
|
|
2
2
|
import { Cell } from './cell';
|
|
3
3
|
import { Result } from './utils';
|
|
4
4
|
export declare class Worksheet {
|
|
@@ -55,6 +55,20 @@ export declare class Worksheet {
|
|
|
55
55
|
getValue(rowIdx: number, colIdx: number): Result<Value>;
|
|
56
56
|
getDiyCellIdWithBlockId(blockId: number, row: number, col: number): Result<number>;
|
|
57
57
|
lookupAppendixUpward(blockId: number, row: number, col: number, craftId: string, tag: number): Result<AppendixWithCell>;
|
|
58
|
+
/**
|
|
59
|
+
* All comment threads on this sheet. Each `Comment` is a cell-anchored
|
|
60
|
+
* thread whose `notes` carry author identity, timestamp, text and resolved
|
|
61
|
+
* `@mentions`. Mutations go through the workbook transaction API
|
|
62
|
+
* (`addComment` / `editComment` / `deleteComment` / `resolveComment`).
|
|
63
|
+
*/
|
|
64
|
+
getComments(): Result<Comment[]>;
|
|
65
|
+
/**
|
|
66
|
+
* All images placed in this sheet's cells. Each `CellImageInfo` carries the
|
|
67
|
+
* cell `(row, col)`, the image `format` (bare extension, e.g. `png`) and
|
|
68
|
+
* the base64-encoded image `data`. Mutations go through the workbook
|
|
69
|
+
* transaction API (`SetCellImage` / `DeleteCellImage`).
|
|
70
|
+
*/
|
|
71
|
+
getCellImages(): Result<CellImageInfo[]>;
|
|
58
72
|
getFullyCoveredBlocks(rowIdx: number, colIdx: number, rowCnt: number, colCnt: number): Result<BlockInfo[]>;
|
|
59
73
|
private _id;
|
|
60
74
|
private _sheetId;
|
|
@@ -197,6 +197,24 @@ export class Worksheet {
|
|
|
197
197
|
tag,
|
|
198
198
|
}, this._id);
|
|
199
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* All comment threads on this sheet. Each `Comment` is a cell-anchored
|
|
202
|
+
* thread whose `notes` carry author identity, timestamp, text and resolved
|
|
203
|
+
* `@mentions`. Mutations go through the workbook transaction API
|
|
204
|
+
* (`addComment` / `editComment` / `deleteComment` / `resolveComment`).
|
|
205
|
+
*/
|
|
206
|
+
getComments() {
|
|
207
|
+
return rpc('getComments', { sheetIdx: this._sheetIdx }, this._id);
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* All images placed in this sheet's cells. Each `CellImageInfo` carries the
|
|
211
|
+
* cell `(row, col)`, the image `format` (bare extension, e.g. `png`) and
|
|
212
|
+
* the base64-encoded image `data`. Mutations go through the workbook
|
|
213
|
+
* transaction API (`SetCellImage` / `DeleteCellImage`).
|
|
214
|
+
*/
|
|
215
|
+
getCellImages() {
|
|
216
|
+
return rpc('getCellImages', { sheetIdx: this._sheetIdx }, this._id);
|
|
217
|
+
}
|
|
200
218
|
getFullyCoveredBlocks(rowIdx, colIdx, rowCnt, colCnt) {
|
|
201
219
|
return rpc('getFullyCoveredBlocks', {
|
|
202
220
|
sheetId: this._sheetId,
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AuthorInput } from './author_input';
|
|
2
|
+
import { CommentMention } from './comment_mention';
|
|
3
|
+
export interface AddComment {
|
|
4
|
+
sheetIdx: number;
|
|
5
|
+
row: number;
|
|
6
|
+
col: number;
|
|
7
|
+
commentId: string;
|
|
8
|
+
parentId?: string;
|
|
9
|
+
author: AuthorInput;
|
|
10
|
+
dt: string;
|
|
11
|
+
content: string;
|
|
12
|
+
mentions: readonly CommentMention[];
|
|
13
|
+
}
|
|
14
|
+
export declare class AddCommentBuilder {
|
|
15
|
+
private _sheetIdx;
|
|
16
|
+
private _row;
|
|
17
|
+
private _col;
|
|
18
|
+
private _commentId;
|
|
19
|
+
private _parentId?;
|
|
20
|
+
private _author;
|
|
21
|
+
private _dt;
|
|
22
|
+
private _content;
|
|
23
|
+
private _mentions;
|
|
24
|
+
sheetIdx(value: number): this;
|
|
25
|
+
row(value: number): this;
|
|
26
|
+
col(value: number): this;
|
|
27
|
+
commentId(value: string): this;
|
|
28
|
+
parentId(value: string): this;
|
|
29
|
+
author(value: AuthorInput): this;
|
|
30
|
+
dt(value: string): this;
|
|
31
|
+
content(value: string): this;
|
|
32
|
+
mentions(value: readonly CommentMention[]): this;
|
|
33
|
+
build(): {
|
|
34
|
+
sheetIdx: number;
|
|
35
|
+
row: number;
|
|
36
|
+
col: number;
|
|
37
|
+
commentId: string;
|
|
38
|
+
parentId: string | undefined;
|
|
39
|
+
author: AuthorInput;
|
|
40
|
+
dt: string;
|
|
41
|
+
content: string;
|
|
42
|
+
mentions: readonly CommentMention[];
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export class AddCommentBuilder {
|
|
2
|
+
_sheetIdx;
|
|
3
|
+
_row;
|
|
4
|
+
_col;
|
|
5
|
+
_commentId;
|
|
6
|
+
_parentId;
|
|
7
|
+
_author;
|
|
8
|
+
_dt;
|
|
9
|
+
_content;
|
|
10
|
+
_mentions;
|
|
11
|
+
sheetIdx(value) {
|
|
12
|
+
this._sheetIdx = value;
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
row(value) {
|
|
16
|
+
this._row = value;
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
col(value) {
|
|
20
|
+
this._col = value;
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
commentId(value) {
|
|
24
|
+
this._commentId = value;
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
parentId(value) {
|
|
28
|
+
this._parentId = value;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
author(value) {
|
|
32
|
+
this._author = value;
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
dt(value) {
|
|
36
|
+
this._dt = value;
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
content(value) {
|
|
40
|
+
this._content = value;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
mentions(value) {
|
|
44
|
+
this._mentions = value;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
build() {
|
|
48
|
+
if (this._sheetIdx === undefined)
|
|
49
|
+
throw new Error('missing sheetIdx');
|
|
50
|
+
if (this._row === undefined)
|
|
51
|
+
throw new Error('missing row');
|
|
52
|
+
if (this._col === undefined)
|
|
53
|
+
throw new Error('missing col');
|
|
54
|
+
if (this._commentId === undefined)
|
|
55
|
+
throw new Error('missing commentId');
|
|
56
|
+
if (this._author === undefined)
|
|
57
|
+
throw new Error('missing author');
|
|
58
|
+
if (this._dt === undefined)
|
|
59
|
+
throw new Error('missing dt');
|
|
60
|
+
if (this._content === undefined)
|
|
61
|
+
throw new Error('missing content');
|
|
62
|
+
if (this._mentions === undefined)
|
|
63
|
+
throw new Error('missing mentions');
|
|
64
|
+
return { sheetIdx: this._sheetIdx, row: this._row, col: this._col, commentId: this._commentId, parentId: this._parentId, author: this._author, dt: this._dt, content: this._content, mentions: this._mentions };
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CommentMentionInfo } from './comment_mention_info';
|
|
2
|
+
import { CommentPerson } from './comment_person';
|
|
3
|
+
export interface CommentNote {
|
|
4
|
+
id: string;
|
|
5
|
+
author: CommentPerson;
|
|
6
|
+
dt: string;
|
|
7
|
+
content: string;
|
|
8
|
+
parentId?: string;
|
|
9
|
+
mentions: readonly CommentMentionInfo[];
|
|
10
|
+
resolved: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface DeleteCellImage {
|
|
2
|
+
sheetIdx: number;
|
|
3
|
+
row: number;
|
|
4
|
+
col: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class DeleteCellImageBuilder {
|
|
7
|
+
private _sheetIdx;
|
|
8
|
+
private _row;
|
|
9
|
+
private _col;
|
|
10
|
+
sheetIdx(value: number): this;
|
|
11
|
+
row(value: number): this;
|
|
12
|
+
col(value: number): this;
|
|
13
|
+
build(): {
|
|
14
|
+
sheetIdx: number;
|
|
15
|
+
row: number;
|
|
16
|
+
col: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export class DeleteCellImageBuilder {
|
|
2
|
+
_sheetIdx;
|
|
3
|
+
_row;
|
|
4
|
+
_col;
|
|
5
|
+
sheetIdx(value) {
|
|
6
|
+
this._sheetIdx = value;
|
|
7
|
+
return this;
|
|
8
|
+
}
|
|
9
|
+
row(value) {
|
|
10
|
+
this._row = value;
|
|
11
|
+
return this;
|
|
12
|
+
}
|
|
13
|
+
col(value) {
|
|
14
|
+
this._col = value;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
build() {
|
|
18
|
+
if (this._sheetIdx === undefined)
|
|
19
|
+
throw new Error('missing sheetIdx');
|
|
20
|
+
if (this._row === undefined)
|
|
21
|
+
throw new Error('missing row');
|
|
22
|
+
if (this._col === undefined)
|
|
23
|
+
throw new Error('missing col');
|
|
24
|
+
return { sheetIdx: this._sheetIdx, row: this._row, col: this._col };
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface DeleteComment {
|
|
2
|
+
sheetIdx: number;
|
|
3
|
+
commentId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class DeleteCommentBuilder {
|
|
6
|
+
private _sheetIdx;
|
|
7
|
+
private _commentId;
|
|
8
|
+
sheetIdx(value: number): this;
|
|
9
|
+
commentId(value: string): this;
|
|
10
|
+
build(): {
|
|
11
|
+
sheetIdx: number;
|
|
12
|
+
commentId: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export class DeleteCommentBuilder {
|
|
2
|
+
_sheetIdx;
|
|
3
|
+
_commentId;
|
|
4
|
+
sheetIdx(value) {
|
|
5
|
+
this._sheetIdx = value;
|
|
6
|
+
return this;
|
|
7
|
+
}
|
|
8
|
+
commentId(value) {
|
|
9
|
+
this._commentId = value;
|
|
10
|
+
return this;
|
|
11
|
+
}
|
|
12
|
+
build() {
|
|
13
|
+
if (this._sheetIdx === undefined)
|
|
14
|
+
throw new Error('missing sheetIdx');
|
|
15
|
+
if (this._commentId === undefined)
|
|
16
|
+
throw new Error('missing commentId');
|
|
17
|
+
return { sheetIdx: this._sheetIdx, commentId: this._commentId };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CommentMention } from './comment_mention';
|
|
2
|
+
export interface EditComment {
|
|
3
|
+
sheetIdx: number;
|
|
4
|
+
commentId: string;
|
|
5
|
+
content: string;
|
|
6
|
+
mentions: readonly CommentMention[];
|
|
7
|
+
}
|
|
8
|
+
export declare class EditCommentBuilder {
|
|
9
|
+
private _sheetIdx;
|
|
10
|
+
private _commentId;
|
|
11
|
+
private _content;
|
|
12
|
+
private _mentions;
|
|
13
|
+
sheetIdx(value: number): this;
|
|
14
|
+
commentId(value: string): this;
|
|
15
|
+
content(value: string): this;
|
|
16
|
+
mentions(value: readonly CommentMention[]): this;
|
|
17
|
+
build(): {
|
|
18
|
+
sheetIdx: number;
|
|
19
|
+
commentId: string;
|
|
20
|
+
content: string;
|
|
21
|
+
mentions: readonly CommentMention[];
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export class EditCommentBuilder {
|
|
2
|
+
_sheetIdx;
|
|
3
|
+
_commentId;
|
|
4
|
+
_content;
|
|
5
|
+
_mentions;
|
|
6
|
+
sheetIdx(value) {
|
|
7
|
+
this._sheetIdx = value;
|
|
8
|
+
return this;
|
|
9
|
+
}
|
|
10
|
+
commentId(value) {
|
|
11
|
+
this._commentId = value;
|
|
12
|
+
return this;
|
|
13
|
+
}
|
|
14
|
+
content(value) {
|
|
15
|
+
this._content = value;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
mentions(value) {
|
|
19
|
+
this._mentions = value;
|
|
20
|
+
return this;
|
|
21
|
+
}
|
|
22
|
+
build() {
|
|
23
|
+
if (this._sheetIdx === undefined)
|
|
24
|
+
throw new Error('missing sheetIdx');
|
|
25
|
+
if (this._commentId === undefined)
|
|
26
|
+
throw new Error('missing commentId');
|
|
27
|
+
if (this._content === undefined)
|
|
28
|
+
throw new Error('missing content');
|
|
29
|
+
if (this._mentions === undefined)
|
|
30
|
+
throw new Error('missing mentions');
|
|
31
|
+
return { sheetIdx: this._sheetIdx, commentId: this._commentId, content: this._content, mentions: this._mentions };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AddComment } from './add_comment';
|
|
1
2
|
import { BindFormSchema } from './bind_form_schema';
|
|
2
3
|
import { BindRandomSchema } from './bind_random_schema';
|
|
3
4
|
import { BlockInput } from './block_input';
|
|
@@ -14,11 +15,14 @@ import { CreateBlock } from './create_block';
|
|
|
14
15
|
import { CreateDiyCell } from './create_diy_cell';
|
|
15
16
|
import { CreateDiyCellById } from './create_diy_cell_by_id';
|
|
16
17
|
import { CreateSheet } from './create_sheet';
|
|
18
|
+
import { DeleteCellImage } from './delete_cell_image';
|
|
17
19
|
import { DeleteCols } from './delete_cols';
|
|
18
20
|
import { DeleteColsInBlock } from './delete_cols_in_block';
|
|
21
|
+
import { DeleteComment } from './delete_comment';
|
|
19
22
|
import { DeleteRows } from './delete_rows';
|
|
20
23
|
import { DeleteRowsInBlock } from './delete_rows_in_block';
|
|
21
24
|
import { DeleteSheet } from './delete_sheet';
|
|
25
|
+
import { EditComment } from './edit_comment';
|
|
22
26
|
import { EphemeralCellInput } from './ephemeral_cell_input';
|
|
23
27
|
import { EphemeralCellRemove } from './ephemeral_cell_remove';
|
|
24
28
|
import { EphemeralCellStyleUpdate } from './ephemeral_cell_style_update';
|
|
@@ -38,7 +42,9 @@ import { RemoveDiyCellById } from './remove_diy_cell_by_id';
|
|
|
38
42
|
import { ReorderBlockLines } from './reorder_block_lines';
|
|
39
43
|
import { ReproduceCells } from './reproduce_cells';
|
|
40
44
|
import { ResizeBlock } from './resize_block';
|
|
45
|
+
import { ResolveComment } from './resolve_comment';
|
|
41
46
|
import { RestoreCheckpoint } from './restore_checkpoint';
|
|
47
|
+
import { SetCellImage } from './set_cell_image';
|
|
42
48
|
import { SetColWidth } from './set_col_width';
|
|
43
49
|
import { SetRowHeight } from './set_row_height';
|
|
44
50
|
import { SetSheetColor } from './set_sheet_color';
|
|
@@ -48,6 +54,7 @@ import { SheetRename } from './sheet_rename';
|
|
|
48
54
|
import { SplitMergedCells } from './split_merged_cells';
|
|
49
55
|
import { UpsertFieldFormulas } from './upsert_field_formulas';
|
|
50
56
|
import { UpsertFieldRenderInfo } from './upsert_field_render_info';
|
|
57
|
+
import { UpsertPerson } from './upsert_person';
|
|
51
58
|
export type EditPayload = {
|
|
52
59
|
type: 'blockInput';
|
|
53
60
|
value: BlockInput;
|
|
@@ -138,6 +145,12 @@ export type EditPayload = {
|
|
|
138
145
|
} | {
|
|
139
146
|
type: 'cellClear';
|
|
140
147
|
value: CellClear;
|
|
148
|
+
} | {
|
|
149
|
+
type: 'setCellImage';
|
|
150
|
+
value: SetCellImage;
|
|
151
|
+
} | {
|
|
152
|
+
type: 'deleteCellImage';
|
|
153
|
+
value: DeleteCellImage;
|
|
141
154
|
} | {
|
|
142
155
|
type: 'setColWidth';
|
|
143
156
|
value: SetColWidth;
|
|
@@ -153,6 +166,21 @@ export type EditPayload = {
|
|
|
153
166
|
} | {
|
|
154
167
|
type: 'splitMergedCells';
|
|
155
168
|
value: SplitMergedCells;
|
|
169
|
+
} | {
|
|
170
|
+
type: 'addComment';
|
|
171
|
+
value: AddComment;
|
|
172
|
+
} | {
|
|
173
|
+
type: 'editComment';
|
|
174
|
+
value: EditComment;
|
|
175
|
+
} | {
|
|
176
|
+
type: 'deleteComment';
|
|
177
|
+
value: DeleteComment;
|
|
178
|
+
} | {
|
|
179
|
+
type: 'resolveComment';
|
|
180
|
+
value: ResolveComment;
|
|
181
|
+
} | {
|
|
182
|
+
type: 'upsertPerson';
|
|
183
|
+
value: UpsertPerson;
|
|
156
184
|
} | {
|
|
157
185
|
type: 'sheetRename';
|
|
158
186
|
value: SheetRename;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from './action_effect';
|
|
2
|
+
export * from './add_comment';
|
|
2
3
|
export * from './alignment';
|
|
3
4
|
export * from './app_data';
|
|
4
5
|
export * from './appendix';
|
|
5
6
|
export * from './appendix_with_cell';
|
|
6
7
|
export * from './async_func_result';
|
|
8
|
+
export * from './author_input';
|
|
7
9
|
export * from './bind_form_schema';
|
|
8
10
|
export * from './bind_random_schema';
|
|
9
11
|
export * from './block_cell_id';
|
|
@@ -29,6 +31,7 @@ export * from './cell_coordinate';
|
|
|
29
31
|
export * from './cell_coordinate_with_sheet';
|
|
30
32
|
export * from './cell_format_brush';
|
|
31
33
|
export * from './cell_id';
|
|
34
|
+
export * from './cell_image_info';
|
|
32
35
|
export * from './cell_info';
|
|
33
36
|
export * from './cell_input';
|
|
34
37
|
export * from './cell_position';
|
|
@@ -39,6 +42,10 @@ export * from './checkpoint_meta';
|
|
|
39
42
|
export * from './col_info';
|
|
40
43
|
export * from './color';
|
|
41
44
|
export * from './comment';
|
|
45
|
+
export * from './comment_mention';
|
|
46
|
+
export * from './comment_mention_info';
|
|
47
|
+
export * from './comment_note';
|
|
48
|
+
export * from './comment_person';
|
|
42
49
|
export * from './convert_block';
|
|
43
50
|
export * from './create_appendix';
|
|
44
51
|
export * from './create_block';
|
|
@@ -53,8 +60,10 @@ export * from './ct_font';
|
|
|
53
60
|
export * from './ct_gradient_fill';
|
|
54
61
|
export * from './ct_gradient_stop';
|
|
55
62
|
export * from './ct_pattern_fill';
|
|
63
|
+
export * from './delete_cell_image';
|
|
56
64
|
export * from './delete_cols';
|
|
57
65
|
export * from './delete_cols_in_block';
|
|
66
|
+
export * from './delete_comment';
|
|
58
67
|
export * from './delete_rows';
|
|
59
68
|
export * from './delete_rows_in_block';
|
|
60
69
|
export * from './delete_sheet';
|
|
@@ -62,6 +71,7 @@ export * from './display_window';
|
|
|
62
71
|
export * from './display_window_request';
|
|
63
72
|
export * from './display_window_with_start_point';
|
|
64
73
|
export * from './edit_action';
|
|
74
|
+
export * from './edit_comment';
|
|
65
75
|
export * from './edit_payload';
|
|
66
76
|
export * from './ephemeral_cell_input';
|
|
67
77
|
export * from './ephemeral_cell_remove';
|
|
@@ -111,6 +121,7 @@ export * from './reorder_block_lines';
|
|
|
111
121
|
export * from './reproduce_cells';
|
|
112
122
|
export * from './reproducible_cell';
|
|
113
123
|
export * from './resize_block';
|
|
124
|
+
export * from './resolve_comment';
|
|
114
125
|
export * from './restore_checkpoint';
|
|
115
126
|
export * from './row_info';
|
|
116
127
|
export * from './rpc_batch_get_cell_coordinate_with_sheet_by_id_params';
|
|
@@ -129,12 +140,14 @@ export * from './rpc_get_block_row_id_params';
|
|
|
129
140
|
export * from './rpc_get_block_values_params';
|
|
130
141
|
export * from './rpc_get_cell_id_by_block_ref_params';
|
|
131
142
|
export * from './rpc_get_cell_id_params';
|
|
143
|
+
export * from './rpc_get_cell_images_params';
|
|
132
144
|
export * from './rpc_get_cell_infos_params';
|
|
133
145
|
export * from './rpc_get_cell_params';
|
|
134
146
|
export * from './rpc_get_cell_position_params';
|
|
135
147
|
export * from './rpc_get_cells_except_window_params';
|
|
136
148
|
export * from './rpc_get_cells_params';
|
|
137
149
|
export * from './rpc_get_col_width_params';
|
|
150
|
+
export * from './rpc_get_comments_params';
|
|
138
151
|
export * from './rpc_get_data_boundary_params';
|
|
139
152
|
export * from './rpc_get_display_units_of_formula_params';
|
|
140
153
|
export * from './rpc_get_display_window_params';
|
|
@@ -163,6 +176,7 @@ export * from './rpc_toggle_status_params';
|
|
|
163
176
|
export * from './rpc_transaction';
|
|
164
177
|
export * from './rpc_workbook_methods';
|
|
165
178
|
export * from './save_file_result';
|
|
179
|
+
export * from './set_cell_image';
|
|
166
180
|
export * from './set_col_width';
|
|
167
181
|
export * from './set_row_height';
|
|
168
182
|
export * from './set_sheet_color';
|
|
@@ -197,6 +211,7 @@ export * from './token_unit';
|
|
|
197
211
|
export * from './underline_property';
|
|
198
212
|
export * from './upsert_field_formulas';
|
|
199
213
|
export * from './upsert_field_render_info';
|
|
214
|
+
export * from './upsert_person';
|
|
200
215
|
export * from './value';
|
|
201
216
|
export * from './vertical_align_font_property';
|
|
202
217
|
export * from './vertical_alignment';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// DO NOT EDIT. CODE GENERATED BY gents.
|
|
2
2
|
export * from './action_effect';
|
|
3
|
+
export * from './add_comment';
|
|
3
4
|
export * from './alignment';
|
|
4
5
|
export * from './app_data';
|
|
5
6
|
export * from './appendix';
|
|
6
7
|
export * from './appendix_with_cell';
|
|
7
8
|
export * from './async_func_result';
|
|
9
|
+
export * from './author_input';
|
|
8
10
|
export * from './bind_form_schema';
|
|
9
11
|
export * from './bind_random_schema';
|
|
10
12
|
export * from './block_cell_id';
|
|
@@ -30,6 +32,7 @@ export * from './cell_coordinate';
|
|
|
30
32
|
export * from './cell_coordinate_with_sheet';
|
|
31
33
|
export * from './cell_format_brush';
|
|
32
34
|
export * from './cell_id';
|
|
35
|
+
export * from './cell_image_info';
|
|
33
36
|
export * from './cell_info';
|
|
34
37
|
export * from './cell_input';
|
|
35
38
|
export * from './cell_position';
|
|
@@ -40,6 +43,10 @@ export * from './checkpoint_meta';
|
|
|
40
43
|
export * from './col_info';
|
|
41
44
|
export * from './color';
|
|
42
45
|
export * from './comment';
|
|
46
|
+
export * from './comment_mention';
|
|
47
|
+
export * from './comment_mention_info';
|
|
48
|
+
export * from './comment_note';
|
|
49
|
+
export * from './comment_person';
|
|
43
50
|
export * from './convert_block';
|
|
44
51
|
export * from './create_appendix';
|
|
45
52
|
export * from './create_block';
|
|
@@ -54,8 +61,10 @@ export * from './ct_font';
|
|
|
54
61
|
export * from './ct_gradient_fill';
|
|
55
62
|
export * from './ct_gradient_stop';
|
|
56
63
|
export * from './ct_pattern_fill';
|
|
64
|
+
export * from './delete_cell_image';
|
|
57
65
|
export * from './delete_cols';
|
|
58
66
|
export * from './delete_cols_in_block';
|
|
67
|
+
export * from './delete_comment';
|
|
59
68
|
export * from './delete_rows';
|
|
60
69
|
export * from './delete_rows_in_block';
|
|
61
70
|
export * from './delete_sheet';
|
|
@@ -63,6 +72,7 @@ export * from './display_window';
|
|
|
63
72
|
export * from './display_window_request';
|
|
64
73
|
export * from './display_window_with_start_point';
|
|
65
74
|
export * from './edit_action';
|
|
75
|
+
export * from './edit_comment';
|
|
66
76
|
export * from './edit_payload';
|
|
67
77
|
export * from './ephemeral_cell_input';
|
|
68
78
|
export * from './ephemeral_cell_remove';
|
|
@@ -112,6 +122,7 @@ export * from './reorder_block_lines';
|
|
|
112
122
|
export * from './reproduce_cells';
|
|
113
123
|
export * from './reproducible_cell';
|
|
114
124
|
export * from './resize_block';
|
|
125
|
+
export * from './resolve_comment';
|
|
115
126
|
export * from './restore_checkpoint';
|
|
116
127
|
export * from './row_info';
|
|
117
128
|
export * from './rpc_batch_get_cell_coordinate_with_sheet_by_id_params';
|
|
@@ -130,12 +141,14 @@ export * from './rpc_get_block_row_id_params';
|
|
|
130
141
|
export * from './rpc_get_block_values_params';
|
|
131
142
|
export * from './rpc_get_cell_id_by_block_ref_params';
|
|
132
143
|
export * from './rpc_get_cell_id_params';
|
|
144
|
+
export * from './rpc_get_cell_images_params';
|
|
133
145
|
export * from './rpc_get_cell_infos_params';
|
|
134
146
|
export * from './rpc_get_cell_params';
|
|
135
147
|
export * from './rpc_get_cell_position_params';
|
|
136
148
|
export * from './rpc_get_cells_except_window_params';
|
|
137
149
|
export * from './rpc_get_cells_params';
|
|
138
150
|
export * from './rpc_get_col_width_params';
|
|
151
|
+
export * from './rpc_get_comments_params';
|
|
139
152
|
export * from './rpc_get_data_boundary_params';
|
|
140
153
|
export * from './rpc_get_display_units_of_formula_params';
|
|
141
154
|
export * from './rpc_get_display_window_params';
|
|
@@ -164,6 +177,7 @@ export * from './rpc_toggle_status_params';
|
|
|
164
177
|
export * from './rpc_transaction';
|
|
165
178
|
export * from './rpc_workbook_methods';
|
|
166
179
|
export * from './save_file_result';
|
|
180
|
+
export * from './set_cell_image';
|
|
167
181
|
export * from './set_col_width';
|
|
168
182
|
export * from './set_row_height';
|
|
169
183
|
export * from './set_sheet_color';
|
|
@@ -198,6 +212,7 @@ export * from './token_unit';
|
|
|
198
212
|
export * from './underline_property';
|
|
199
213
|
export * from './upsert_field_formulas';
|
|
200
214
|
export * from './upsert_field_render_info';
|
|
215
|
+
export * from './upsert_person';
|
|
201
216
|
export * from './value';
|
|
202
217
|
export * from './vertical_align_font_property';
|
|
203
218
|
export * from './vertical_alignment';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ResolveComment {
|
|
2
|
+
sheetIdx: number;
|
|
3
|
+
commentId: string;
|
|
4
|
+
resolved: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare class ResolveCommentBuilder {
|
|
7
|
+
private _sheetIdx;
|
|
8
|
+
private _commentId;
|
|
9
|
+
private _resolved;
|
|
10
|
+
sheetIdx(value: number): this;
|
|
11
|
+
commentId(value: string): this;
|
|
12
|
+
resolved(value: boolean): this;
|
|
13
|
+
build(): {
|
|
14
|
+
sheetIdx: number;
|
|
15
|
+
commentId: string;
|
|
16
|
+
resolved: boolean;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export class ResolveCommentBuilder {
|
|
2
|
+
_sheetIdx;
|
|
3
|
+
_commentId;
|
|
4
|
+
_resolved;
|
|
5
|
+
sheetIdx(value) {
|
|
6
|
+
this._sheetIdx = value;
|
|
7
|
+
return this;
|
|
8
|
+
}
|
|
9
|
+
commentId(value) {
|
|
10
|
+
this._commentId = value;
|
|
11
|
+
return this;
|
|
12
|
+
}
|
|
13
|
+
resolved(value) {
|
|
14
|
+
this._resolved = value;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
build() {
|
|
18
|
+
if (this._sheetIdx === undefined)
|
|
19
|
+
throw new Error('missing sheetIdx');
|
|
20
|
+
if (this._commentId === undefined)
|
|
21
|
+
throw new Error('missing commentId');
|
|
22
|
+
if (this._resolved === undefined)
|
|
23
|
+
throw new Error('missing resolved');
|
|
24
|
+
return { sheetIdx: this._sheetIdx, commentId: this._commentId, resolved: this._resolved };
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,11 +8,13 @@ import { BlockField } from './block_field';
|
|
|
8
8
|
import { BlockInfo } from './block_info';
|
|
9
9
|
import { CalcConditionParams } from './rpc_calc_condition_params';
|
|
10
10
|
import { CellCoordinateWithSheet } from './cell_coordinate_with_sheet';
|
|
11
|
+
import { CellImageInfo } from './cell_image_info';
|
|
11
12
|
import { CellInfo } from './cell_info';
|
|
12
13
|
import { CellInput } from './cell_input';
|
|
13
14
|
import { CellPosition } from './cell_position';
|
|
14
15
|
import { CheckFormulaParams } from './rpc_check_formula_params';
|
|
15
16
|
import { CheckpointMetaDto } from './checkpoint_meta';
|
|
17
|
+
import { Comment } from './comment';
|
|
16
18
|
import { DeleteCheckpointParams } from './rpc_delete_checkpoint_params';
|
|
17
19
|
import { DisplayWindow } from './display_window';
|
|
18
20
|
import { DisplayWindowWithStartPoint } from './display_window_with_start_point';
|
|
@@ -28,12 +30,14 @@ import { GetBlockRowIdParams } from './rpc_get_block_row_id_params';
|
|
|
28
30
|
import { GetBlockValuesParams } from './rpc_get_block_values_params';
|
|
29
31
|
import { GetCellIdByBlockRefParams } from './rpc_get_cell_id_by_block_ref_params';
|
|
30
32
|
import { GetCellIdParams } from './rpc_get_cell_id_params';
|
|
33
|
+
import { GetCellImagesParams } from './rpc_get_cell_images_params';
|
|
31
34
|
import { GetCellInfosParams } from './rpc_get_cell_infos_params';
|
|
32
35
|
import { GetCellParams } from './rpc_get_cell_params';
|
|
33
36
|
import { GetCellPositionParams } from './rpc_get_cell_position_params';
|
|
34
37
|
import { GetCellsExceptWindowParams } from './rpc_get_cells_except_window_params';
|
|
35
38
|
import { GetCellsParams } from './rpc_get_cells_params';
|
|
36
39
|
import { GetColWidthParams } from './rpc_get_col_width_params';
|
|
40
|
+
import { GetCommentsParams } from './rpc_get_comments_params';
|
|
37
41
|
import { GetDataBoundaryParams } from './rpc_get_data_boundary_params';
|
|
38
42
|
import { GetDisplayUnitsOfFormulaParams } from './rpc_get_display_units_of_formula_params';
|
|
39
43
|
import { GetDisplayWindowParams } from './rpc_get_display_window_params';
|
|
@@ -110,6 +114,8 @@ export interface WorkbookMethods {
|
|
|
110
114
|
getDiyCellIdWithBlockId(params: GetDiyCellIdWithBlockIdParams, bookId?: number): Promise<number | ErrorMessage>;
|
|
111
115
|
lookupAppendixUpward(params: LookupAppendixUpwardParams, bookId?: number): Promise<AppendixWithCell | ErrorMessage>;
|
|
112
116
|
getMergedCells(params: GetMergedCellsParams, bookId?: number): Promise<readonly MergeCell[] | ErrorMessage>;
|
|
117
|
+
getComments(params: GetCommentsParams, bookId?: number): Promise<readonly Comment[] | ErrorMessage>;
|
|
118
|
+
getCellImages(params: GetCellImagesParams, bookId?: number): Promise<readonly CellImageInfo[] | ErrorMessage>;
|
|
113
119
|
getShadowCellId(params: GetShadowCellIdParams, bookId?: number): Promise<SheetCellId | ErrorMessage>;
|
|
114
120
|
getShadowCellIds(params: GetShadowCellIdsParams, bookId?: number): Promise<readonly SheetCellId[] | ErrorMessage>;
|
|
115
121
|
getShadowInfoById(params: GetShadowInfoByIdParams, bookId?: number): Promise<ShadowCellInfo | ErrorMessage>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface SetCellImage {
|
|
2
|
+
sheetIdx: number;
|
|
3
|
+
row: number;
|
|
4
|
+
col: number;
|
|
5
|
+
imageId: string;
|
|
6
|
+
format: string;
|
|
7
|
+
data: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class SetCellImageBuilder {
|
|
10
|
+
private _sheetIdx;
|
|
11
|
+
private _row;
|
|
12
|
+
private _col;
|
|
13
|
+
private _imageId;
|
|
14
|
+
private _format;
|
|
15
|
+
private _data;
|
|
16
|
+
sheetIdx(value: number): this;
|
|
17
|
+
row(value: number): this;
|
|
18
|
+
col(value: number): this;
|
|
19
|
+
imageId(value: string): this;
|
|
20
|
+
format(value: string): this;
|
|
21
|
+
data(value: string): this;
|
|
22
|
+
build(): {
|
|
23
|
+
sheetIdx: number;
|
|
24
|
+
row: number;
|
|
25
|
+
col: number;
|
|
26
|
+
imageId: string;
|
|
27
|
+
format: string;
|
|
28
|
+
data: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export class SetCellImageBuilder {
|
|
2
|
+
_sheetIdx;
|
|
3
|
+
_row;
|
|
4
|
+
_col;
|
|
5
|
+
_imageId;
|
|
6
|
+
_format;
|
|
7
|
+
_data;
|
|
8
|
+
sheetIdx(value) {
|
|
9
|
+
this._sheetIdx = value;
|
|
10
|
+
return this;
|
|
11
|
+
}
|
|
12
|
+
row(value) {
|
|
13
|
+
this._row = value;
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
col(value) {
|
|
17
|
+
this._col = value;
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
imageId(value) {
|
|
21
|
+
this._imageId = value;
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
format(value) {
|
|
25
|
+
this._format = value;
|
|
26
|
+
return this;
|
|
27
|
+
}
|
|
28
|
+
data(value) {
|
|
29
|
+
this._data = value;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
build() {
|
|
33
|
+
if (this._sheetIdx === undefined)
|
|
34
|
+
throw new Error('missing sheetIdx');
|
|
35
|
+
if (this._row === undefined)
|
|
36
|
+
throw new Error('missing row');
|
|
37
|
+
if (this._col === undefined)
|
|
38
|
+
throw new Error('missing col');
|
|
39
|
+
if (this._imageId === undefined)
|
|
40
|
+
throw new Error('missing imageId');
|
|
41
|
+
if (this._format === undefined)
|
|
42
|
+
throw new Error('missing format');
|
|
43
|
+
if (this._data === undefined)
|
|
44
|
+
throw new Error('missing data');
|
|
45
|
+
return { sheetIdx: this._sheetIdx, row: this._row, col: this._col, imageId: this._imageId, format: this._format, data: this._data };
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface UpsertPerson {
|
|
2
|
+
displayName: string;
|
|
3
|
+
userId?: string;
|
|
4
|
+
providerId?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class UpsertPersonBuilder {
|
|
7
|
+
private _displayName;
|
|
8
|
+
private _userId?;
|
|
9
|
+
private _providerId?;
|
|
10
|
+
displayName(value: string): this;
|
|
11
|
+
userId(value: string): this;
|
|
12
|
+
providerId(value: string): this;
|
|
13
|
+
build(): {
|
|
14
|
+
displayName: string;
|
|
15
|
+
userId: string | undefined;
|
|
16
|
+
providerId: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export class UpsertPersonBuilder {
|
|
2
|
+
_displayName;
|
|
3
|
+
_userId;
|
|
4
|
+
_providerId;
|
|
5
|
+
displayName(value) {
|
|
6
|
+
this._displayName = value;
|
|
7
|
+
return this;
|
|
8
|
+
}
|
|
9
|
+
userId(value) {
|
|
10
|
+
this._userId = value;
|
|
11
|
+
return this;
|
|
12
|
+
}
|
|
13
|
+
providerId(value) {
|
|
14
|
+
this._providerId = value;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
build() {
|
|
18
|
+
if (this._displayName === undefined)
|
|
19
|
+
throw new Error('missing displayName');
|
|
20
|
+
return { displayName: this._displayName, userId: this._userId, providerId: this._providerId };
|
|
21
|
+
}
|
|
22
|
+
}
|
|
Binary file
|
package/dist/wasm/package.json
CHANGED
package/package.json
CHANGED
|
Binary file
|