logisheets 1.14.0 → 1.15.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.
Files changed (69) hide show
  1. package/dist/src/api/workbook.d.ts +112 -1
  2. package/dist/src/api/workbook.js +126 -0
  3. package/dist/src/bindings/bind_form_schema.d.ts +13 -19
  4. package/dist/src/bindings/bind_form_schema.js +7 -25
  5. package/dist/src/bindings/block_field_type.d.ts +7 -0
  6. package/dist/src/bindings/block_field_type.js +2 -0
  7. package/dist/src/bindings/block_info.d.ts +4 -0
  8. package/dist/src/bindings/block_op.d.ts +1 -1
  9. package/dist/src/bindings/block_op_for_payload.d.ts +5 -0
  10. package/dist/src/bindings/block_op_for_payload.js +2 -0
  11. package/dist/src/bindings/block_op_policy.d.ts +6 -0
  12. package/dist/src/bindings/block_op_policy.js +2 -0
  13. package/dist/src/bindings/block_permissions.d.ts +4 -0
  14. package/dist/src/bindings/block_permissions.js +6 -1
  15. package/dist/src/bindings/block_schema.d.ts +3 -0
  16. package/dist/src/bindings/block_schema_field_entry.d.ts +12 -0
  17. package/dist/src/bindings/check_field_validation_params.d.ts +6 -0
  18. package/dist/src/bindings/check_field_validation_params.js +2 -0
  19. package/dist/src/bindings/create_block.d.ts +9 -0
  20. package/dist/src/bindings/create_block.js +11 -1
  21. package/dist/src/bindings/duplicate_block_key.d.ts +7 -0
  22. package/dist/src/bindings/duplicate_block_key.js +2 -0
  23. package/dist/src/bindings/edit_payload.d.ts +12 -0
  24. package/dist/src/bindings/enum_set_info.d.ts +6 -0
  25. package/dist/src/bindings/enum_set_info.js +2 -0
  26. package/dist/src/bindings/enum_variant_info.d.ts +4 -0
  27. package/dist/src/bindings/enum_variant_info.js +2 -0
  28. package/dist/src/bindings/enum_variant_spec.d.ts +14 -0
  29. package/dist/src/bindings/enum_variant_spec.js +21 -0
  30. package/dist/src/bindings/field_validation_verdict.d.ts +5 -0
  31. package/dist/src/bindings/field_validation_verdict.js +2 -0
  32. package/dist/src/bindings/get_block_op_policies_params.d.ts +4 -0
  33. package/dist/src/bindings/get_block_op_policies_params.js +2 -0
  34. package/dist/src/bindings/index.d.ts +21 -0
  35. package/dist/src/bindings/index.js +21 -0
  36. package/dist/src/bindings/pivot_excel_note.d.ts +4 -0
  37. package/dist/src/bindings/pivot_excel_note.js +2 -0
  38. package/dist/src/bindings/pivot_filter.d.ts +4 -0
  39. package/dist/src/bindings/pivot_filter.js +2 -0
  40. package/dist/src/bindings/pivot_plan.d.ts +12 -0
  41. package/dist/src/bindings/pivot_plan.js +2 -0
  42. package/dist/src/bindings/pivot_spec.d.ts +10 -0
  43. package/dist/src/bindings/pivot_spec.js +2 -0
  44. package/dist/src/bindings/remove_enum_set.d.ts +10 -0
  45. package/dist/src/bindings/remove_enum_set.js +16 -0
  46. package/dist/src/bindings/rpc_pivot_plan_for_params.d.ts +6 -0
  47. package/dist/src/bindings/rpc_pivot_plan_for_params.js +2 -0
  48. package/dist/src/bindings/rpc_pivot_plan_params.d.ts +4 -0
  49. package/dist/src/bindings/rpc_pivot_plan_params.js +2 -0
  50. package/dist/src/bindings/rpc_workbook_methods.d.ts +20 -0
  51. package/dist/src/bindings/schema_field_spec.d.ts +71 -0
  52. package/dist/src/bindings/schema_field_spec.js +93 -0
  53. package/dist/src/bindings/set_block_analyzes.d.ts +23 -0
  54. package/dist/src/bindings/set_block_analyzes.js +33 -0
  55. package/dist/src/bindings/unique_together_group.d.ts +3 -0
  56. package/dist/src/bindings/unique_together_group.js +2 -0
  57. package/dist/src/bindings/upsert_enum_set.d.ts +19 -0
  58. package/dist/src/bindings/upsert_enum_set.js +28 -0
  59. package/dist/wasm/logisheets_wasm_server.d.ts +8 -8
  60. package/dist/wasm/logisheets_wasm_server.js +34 -34
  61. package/dist/wasm/logisheets_wasm_server_bg.wasm +0 -0
  62. package/dist/wasm/logisheets_wasm_server_bg.wasm.d.ts +1 -1
  63. package/dist/wasm/package.json +1 -1
  64. package/package.json +1 -1
  65. package/wasm/logisheets_wasm_server.d.ts +8 -8
  66. package/wasm/logisheets_wasm_server.js +34 -34
  67. package/wasm/logisheets_wasm_server_bg.wasm +0 -0
  68. package/wasm/logisheets_wasm_server_bg.wasm.d.ts +1 -1
  69. package/wasm/package.json +1 -1
@@ -46,11 +46,13 @@ import { RemoveAppendix } from './remove_appendix';
46
46
  import { RemoveBlock } from './remove_block';
47
47
  import { RemoveDiyCell } from './remove_diy_cell';
48
48
  import { RemoveDiyCellById } from './remove_diy_cell_by_id';
49
+ import { RemoveEnumSet } from './remove_enum_set';
49
50
  import { ReorderBlockLines } from './reorder_block_lines';
50
51
  import { ReproduceCells } from './reproduce_cells';
51
52
  import { ResizeBlock } from './resize_block';
52
53
  import { ResolveComment } from './resolve_comment';
53
54
  import { RestoreCheckpoint } from './restore_checkpoint';
55
+ import { SetBlockAnalyzes } from './set_block_analyzes';
54
56
  import { SetBlockDescription } from './set_block_description';
55
57
  import { SetBlockPermissions } from './set_block_permissions';
56
58
  import { SetCellImage } from './set_cell_image';
@@ -63,6 +65,7 @@ import { SheetRename } from './sheet_rename';
63
65
  import { SplitMergedCells } from './split_merged_cells';
64
66
  import { UpdateChart } from './update_chart';
65
67
  import { UpdateConditionalFormattingRule } from './update_conditional_formatting_rule';
68
+ import { UpsertEnumSet } from './upsert_enum_set';
66
69
  import { UpsertFieldFormulas } from './upsert_field_formulas';
67
70
  import { UpsertFieldRenderInfo } from './upsert_field_render_info';
68
71
  import { UpsertPerson } from './upsert_person';
@@ -147,6 +150,15 @@ export type EditPayload = {
147
150
  } | {
148
151
  type: 'setBlockPermissions';
149
152
  value: SetBlockPermissions;
153
+ } | {
154
+ type: 'setBlockAnalyzes';
155
+ value: SetBlockAnalyzes;
156
+ } | {
157
+ type: 'upsertEnumSet';
158
+ value: UpsertEnumSet;
159
+ } | {
160
+ type: 'removeEnumSet';
161
+ value: RemoveEnumSet;
150
162
  } | {
151
163
  type: 'cellFormatBrush';
152
164
  value: CellFormatBrush;
@@ -0,0 +1,6 @@
1
+ import { EnumVariantInfo } from './enum_variant_info';
2
+ export interface EnumSetInfo {
3
+ id: string;
4
+ name: string;
5
+ variants: readonly EnumVariantInfo[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface EnumVariantInfo {
2
+ id: string;
3
+ label: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ export interface EnumVariantSpec {
2
+ id: string;
3
+ label?: string;
4
+ }
5
+ export declare class EnumVariantSpecBuilder {
6
+ private _id;
7
+ private _label?;
8
+ id(value: string): this;
9
+ label(value: string): this;
10
+ build(): {
11
+ id: string;
12
+ label: string | undefined;
13
+ };
14
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EnumVariantSpecBuilder = void 0;
4
+ class EnumVariantSpecBuilder {
5
+ _id;
6
+ _label;
7
+ id(value) {
8
+ this._id = value;
9
+ return this;
10
+ }
11
+ label(value) {
12
+ this._label = value;
13
+ return this;
14
+ }
15
+ build() {
16
+ if (this._id === undefined)
17
+ throw new Error('missing id');
18
+ return { id: this._id, label: this._label };
19
+ }
20
+ }
21
+ exports.EnumVariantSpecBuilder = EnumVariantSpecBuilder;
@@ -0,0 +1,5 @@
1
+ export interface FieldValidationVerdict {
2
+ hasRule: boolean;
3
+ violates: boolean;
4
+ rule: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface GetBlockOpPoliciesParams {
2
+ sheetIdx: number;
3
+ blockId: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,12 +15,15 @@ export * from './block_cell_info';
15
15
  export * from './block_data_row';
16
16
  export * from './block_display_info';
17
17
  export * from './block_field';
18
+ export * from './block_field_type';
18
19
  export * from './block_info';
19
20
  export * from './block_input';
20
21
  export * from './block_line_name_field_update';
21
22
  export * from './block_line_style_update';
22
23
  export * from './block_modify_info';
23
24
  export * from './block_op';
25
+ export * from './block_op_for_payload';
26
+ export * from './block_op_policy';
24
27
  export * from './block_permissions';
25
28
  export * from './block_schema';
26
29
  export * from './block_schema_field_entry';
@@ -57,6 +60,7 @@ export * from './chart_data_labels_info';
57
60
  export * from './chart_info';
58
61
  export * from './chart_of_pie_split_info';
59
62
  export * from './chart_series_info';
63
+ export * from './check_field_validation_params';
60
64
  export * from './checkpoint_meta';
61
65
  export * from './col_info';
62
66
  export * from './color';
@@ -97,14 +101,19 @@ export * from './dependent_cell';
97
101
  export * from './display_window';
98
102
  export * from './display_window_request';
99
103
  export * from './display_window_with_start_point';
104
+ export * from './duplicate_block_key';
100
105
  export * from './edit_action';
101
106
  export * from './edit_comment';
102
107
  export * from './edit_payload';
108
+ export * from './enum_set_info';
109
+ export * from './enum_variant_info';
110
+ export * from './enum_variant_spec';
103
111
  export * from './ephemeral_cell_input';
104
112
  export * from './ephemeral_cell_remove';
105
113
  export * from './ephemeral_cell_style_update';
106
114
  export * from './error_message';
107
115
  export * from './field_render_entry';
116
+ export * from './field_validation_verdict';
108
117
  export * from './fill';
109
118
  export * from './font';
110
119
  export * from './font_family';
@@ -113,6 +122,7 @@ export * from './font_scheme';
113
122
  export * from './font_size';
114
123
  export * from './formula_display_info';
115
124
  export * from './get_block_modify_info_params';
125
+ export * from './get_block_op_policies_params';
116
126
  export * from './gradient_fill';
117
127
  export * from './gradient_stop';
118
128
  export * from './horizontal_alignment';
@@ -143,6 +153,10 @@ export * from './normal_cell_id';
143
153
  export * from './of_pie_split_update';
144
154
  export * from './pattern_fill';
145
155
  export * from './payloads_action';
156
+ export * from './pivot_excel_note';
157
+ export * from './pivot_filter';
158
+ export * from './pivot_plan';
159
+ export * from './pivot_spec';
146
160
  export * from './random_schema_unit';
147
161
  export * from './raw_style';
148
162
  export * from './recalc_cell';
@@ -150,6 +164,7 @@ export * from './remove_appendix';
150
164
  export * from './remove_block';
151
165
  export * from './remove_diy_cell';
152
166
  export * from './remove_diy_cell_by_id';
167
+ export * from './remove_enum_set';
153
168
  export * from './reorder_block_lines';
154
169
  export * from './reproduce_cells';
155
170
  export * from './reproducible_cell';
@@ -209,6 +224,8 @@ export * from './rpc_get_sheet_name_by_idx_params';
209
224
  export * from './rpc_handle_transaction_params';
210
225
  export * from './rpc_load_workbook_params';
211
226
  export * from './rpc_lookup_appendix_upward_params';
227
+ export * from './rpc_pivot_plan_for_params';
228
+ export * from './rpc_pivot_plan_params';
212
229
  export * from './rpc_predict_fill_params';
213
230
  export * from './rpc_save_checkpoint_params';
214
231
  export * from './rpc_save_params';
@@ -216,6 +233,8 @@ export * from './rpc_toggle_status_params';
216
233
  export * from './rpc_transaction';
217
234
  export * from './rpc_workbook_methods';
218
235
  export * from './save_file_result';
236
+ export * from './schema_field_spec';
237
+ export * from './set_block_analyzes';
219
238
  export * from './set_block_description';
220
239
  export * from './set_block_permissions';
221
240
  export * from './set_cell_image';
@@ -251,8 +270,10 @@ export * from './temp_status_diff';
251
270
  export * from './token_type';
252
271
  export * from './token_unit';
253
272
  export * from './underline_property';
273
+ export * from './unique_together_group';
254
274
  export * from './update_chart';
255
275
  export * from './update_conditional_formatting_rule';
276
+ export * from './upsert_enum_set';
256
277
  export * from './upsert_field_formulas';
257
278
  export * from './upsert_field_render_info';
258
279
  export * from './upsert_person';
@@ -32,12 +32,15 @@ __exportStar(require("./block_cell_info"), exports);
32
32
  __exportStar(require("./block_data_row"), exports);
33
33
  __exportStar(require("./block_display_info"), exports);
34
34
  __exportStar(require("./block_field"), exports);
35
+ __exportStar(require("./block_field_type"), exports);
35
36
  __exportStar(require("./block_info"), exports);
36
37
  __exportStar(require("./block_input"), exports);
37
38
  __exportStar(require("./block_line_name_field_update"), exports);
38
39
  __exportStar(require("./block_line_style_update"), exports);
39
40
  __exportStar(require("./block_modify_info"), exports);
40
41
  __exportStar(require("./block_op"), exports);
42
+ __exportStar(require("./block_op_for_payload"), exports);
43
+ __exportStar(require("./block_op_policy"), exports);
41
44
  __exportStar(require("./block_permissions"), exports);
42
45
  __exportStar(require("./block_schema"), exports);
43
46
  __exportStar(require("./block_schema_field_entry"), exports);
@@ -74,6 +77,7 @@ __exportStar(require("./chart_data_labels_info"), exports);
74
77
  __exportStar(require("./chart_info"), exports);
75
78
  __exportStar(require("./chart_of_pie_split_info"), exports);
76
79
  __exportStar(require("./chart_series_info"), exports);
80
+ __exportStar(require("./check_field_validation_params"), exports);
77
81
  __exportStar(require("./checkpoint_meta"), exports);
78
82
  __exportStar(require("./col_info"), exports);
79
83
  __exportStar(require("./color"), exports);
@@ -114,14 +118,19 @@ __exportStar(require("./dependent_cell"), exports);
114
118
  __exportStar(require("./display_window"), exports);
115
119
  __exportStar(require("./display_window_request"), exports);
116
120
  __exportStar(require("./display_window_with_start_point"), exports);
121
+ __exportStar(require("./duplicate_block_key"), exports);
117
122
  __exportStar(require("./edit_action"), exports);
118
123
  __exportStar(require("./edit_comment"), exports);
119
124
  __exportStar(require("./edit_payload"), exports);
125
+ __exportStar(require("./enum_set_info"), exports);
126
+ __exportStar(require("./enum_variant_info"), exports);
127
+ __exportStar(require("./enum_variant_spec"), exports);
120
128
  __exportStar(require("./ephemeral_cell_input"), exports);
121
129
  __exportStar(require("./ephemeral_cell_remove"), exports);
122
130
  __exportStar(require("./ephemeral_cell_style_update"), exports);
123
131
  __exportStar(require("./error_message"), exports);
124
132
  __exportStar(require("./field_render_entry"), exports);
133
+ __exportStar(require("./field_validation_verdict"), exports);
125
134
  __exportStar(require("./fill"), exports);
126
135
  __exportStar(require("./font"), exports);
127
136
  __exportStar(require("./font_family"), exports);
@@ -130,6 +139,7 @@ __exportStar(require("./font_scheme"), exports);
130
139
  __exportStar(require("./font_size"), exports);
131
140
  __exportStar(require("./formula_display_info"), exports);
132
141
  __exportStar(require("./get_block_modify_info_params"), exports);
142
+ __exportStar(require("./get_block_op_policies_params"), exports);
133
143
  __exportStar(require("./gradient_fill"), exports);
134
144
  __exportStar(require("./gradient_stop"), exports);
135
145
  __exportStar(require("./horizontal_alignment"), exports);
@@ -160,6 +170,10 @@ __exportStar(require("./normal_cell_id"), exports);
160
170
  __exportStar(require("./of_pie_split_update"), exports);
161
171
  __exportStar(require("./pattern_fill"), exports);
162
172
  __exportStar(require("./payloads_action"), exports);
173
+ __exportStar(require("./pivot_excel_note"), exports);
174
+ __exportStar(require("./pivot_filter"), exports);
175
+ __exportStar(require("./pivot_plan"), exports);
176
+ __exportStar(require("./pivot_spec"), exports);
163
177
  __exportStar(require("./random_schema_unit"), exports);
164
178
  __exportStar(require("./raw_style"), exports);
165
179
  __exportStar(require("./recalc_cell"), exports);
@@ -167,6 +181,7 @@ __exportStar(require("./remove_appendix"), exports);
167
181
  __exportStar(require("./remove_block"), exports);
168
182
  __exportStar(require("./remove_diy_cell"), exports);
169
183
  __exportStar(require("./remove_diy_cell_by_id"), exports);
184
+ __exportStar(require("./remove_enum_set"), exports);
170
185
  __exportStar(require("./reorder_block_lines"), exports);
171
186
  __exportStar(require("./reproduce_cells"), exports);
172
187
  __exportStar(require("./reproducible_cell"), exports);
@@ -226,6 +241,8 @@ __exportStar(require("./rpc_get_sheet_name_by_idx_params"), exports);
226
241
  __exportStar(require("./rpc_handle_transaction_params"), exports);
227
242
  __exportStar(require("./rpc_load_workbook_params"), exports);
228
243
  __exportStar(require("./rpc_lookup_appendix_upward_params"), exports);
244
+ __exportStar(require("./rpc_pivot_plan_for_params"), exports);
245
+ __exportStar(require("./rpc_pivot_plan_params"), exports);
229
246
  __exportStar(require("./rpc_predict_fill_params"), exports);
230
247
  __exportStar(require("./rpc_save_checkpoint_params"), exports);
231
248
  __exportStar(require("./rpc_save_params"), exports);
@@ -233,6 +250,8 @@ __exportStar(require("./rpc_toggle_status_params"), exports);
233
250
  __exportStar(require("./rpc_transaction"), exports);
234
251
  __exportStar(require("./rpc_workbook_methods"), exports);
235
252
  __exportStar(require("./save_file_result"), exports);
253
+ __exportStar(require("./schema_field_spec"), exports);
254
+ __exportStar(require("./set_block_analyzes"), exports);
236
255
  __exportStar(require("./set_block_description"), exports);
237
256
  __exportStar(require("./set_block_permissions"), exports);
238
257
  __exportStar(require("./set_cell_image"), exports);
@@ -268,8 +287,10 @@ __exportStar(require("./temp_status_diff"), exports);
268
287
  __exportStar(require("./token_type"), exports);
269
288
  __exportStar(require("./token_unit"), exports);
270
289
  __exportStar(require("./underline_property"), exports);
290
+ __exportStar(require("./unique_together_group"), exports);
271
291
  __exportStar(require("./update_chart"), exports);
272
292
  __exportStar(require("./update_conditional_formatting_rule"), exports);
293
+ __exportStar(require("./upsert_enum_set"), exports);
273
294
  __exportStar(require("./upsert_field_formulas"), exports);
274
295
  __exportStar(require("./upsert_field_render_info"), exports);
275
296
  __exportStar(require("./upsert_person"), exports);
@@ -0,0 +1,4 @@
1
+ export interface PivotExcelNote {
2
+ expressible: boolean;
3
+ reason?: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface PivotFilter {
2
+ field: string;
3
+ criteria: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ export interface PivotPlan {
2
+ keys: readonly string[];
3
+ fields: readonly string[];
4
+ currentKeys: readonly string[];
5
+ currentFields: readonly string[];
6
+ missingKeys: readonly string[];
7
+ missingFields: readonly string[];
8
+ extraKeys: readonly string[];
9
+ extraFields: readonly string[];
10
+ unassignedRecords: number;
11
+ isStale: boolean;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { PivotFilter } from './pivot_filter';
2
+ export interface PivotSpecParts {
3
+ rowDim: string;
4
+ colDim?: string;
5
+ measure: string;
6
+ func: string;
7
+ order?: string;
8
+ orderValues?: readonly string[];
9
+ filters?: readonly PivotFilter[];
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export interface RemoveEnumSet {
2
+ id: string;
3
+ }
4
+ export declare class RemoveEnumSetBuilder {
5
+ private _id;
6
+ id(value: string): this;
7
+ build(): {
8
+ id: string;
9
+ };
10
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RemoveEnumSetBuilder = void 0;
4
+ class RemoveEnumSetBuilder {
5
+ _id;
6
+ id(value) {
7
+ this._id = value;
8
+ return this;
9
+ }
10
+ build() {
11
+ if (this._id === undefined)
12
+ throw new Error('missing id');
13
+ return { id: this._id };
14
+ }
15
+ }
16
+ exports.RemoveEnumSetBuilder = RemoveEnumSetBuilder;
@@ -0,0 +1,6 @@
1
+ import { PivotSpecParts } from './pivot_spec';
2
+ export interface PivotPlanForParams {
3
+ sheetIdx: number;
4
+ sourceBlock: number;
5
+ spec: PivotSpecParts;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface PivotPlanParams {
2
+ sheetIdx: number;
3
+ blockId: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,6 +7,8 @@ import { BlockDataRow } from './block_data_row';
7
7
  import { BlockField } from './block_field';
8
8
  import { BlockInfo } from './block_info';
9
9
  import { BlockModifyInfo } from './block_modify_info';
10
+ import { BlockOpForPayload } from './block_op_for_payload';
11
+ import { BlockOpPolicy } from './block_op_policy';
10
12
  import { BlockSortOrder } from './block_sort_order';
11
13
  import { CalcConditionParams } from './rpc_calc_condition_params';
12
14
  import { CellCoordinateWithSheet } from './cell_coordinate_with_sheet';
@@ -17,6 +19,7 @@ import { CellPosition } from './cell_position';
17
19
  import { CellRefRange } from './cell_ref_range';
18
20
  import { CfRuleInfo } from './cf_rule_info';
19
21
  import { ChartInfo } from './chart_info';
22
+ import { CheckFieldValidationParams } from './check_field_validation_params';
20
23
  import { CheckFormulaParams } from './rpc_check_formula_params';
21
24
  import { CheckpointMetaDto } from './checkpoint_meta';
22
25
  import { Comment } from './comment';
@@ -24,8 +27,11 @@ import { DeleteCheckpointParams } from './rpc_delete_checkpoint_params';
24
27
  import { DependentCell } from './dependent_cell';
25
28
  import { DisplayWindow } from './display_window';
26
29
  import { DisplayWindowWithStartPoint } from './display_window_with_start_point';
30
+ import { DuplicateBlockKey } from './duplicate_block_key';
31
+ import { EnumSetInfo } from './enum_set_info';
27
32
  import { ErrorMessage } from './error_message';
28
33
  import { ExportBlockDataParams } from './rpc_export_block_data_params';
34
+ import { FieldValidationVerdict } from './field_validation_verdict';
29
35
  import { FormulaDisplayInfo } from './formula_display_info';
30
36
  import { GetAllBlocksParams } from './rpc_get_all_blocks_params';
31
37
  import { GetAvailableBlockIdParams } from './rpc_get_available_block_id_params';
@@ -33,6 +39,7 @@ import { GetBlockColIdParams } from './rpc_get_block_col_id_params';
33
39
  import { GetBlockDisplayWindowParams } from './rpc_get_block_display_window_params';
34
40
  import { GetBlockInfoParams } from './rpc_get_block_info_params';
35
41
  import { GetBlockModifyInfoParams } from './get_block_modify_info_params';
42
+ import { GetBlockOpPoliciesParams } from './get_block_op_policies_params';
36
43
  import { GetBlockRowIdParams } from './rpc_get_block_row_id_params';
37
44
  import { GetBlockSortOrderParams } from './rpc_get_block_sort_order_params';
38
45
  import { GetBlockValuesParams } from './rpc_get_block_values_params';
@@ -76,6 +83,10 @@ import { LoadWorkbookParams } from './rpc_load_workbook_params';
76
83
  import { LookupAppendixUpwardParams } from './rpc_lookup_appendix_upward_params';
77
84
  import { MayModifyBlockParams } from './may_modify_block_params';
78
85
  import { MergeCell } from './merge_cell';
86
+ import { PivotExcelNote } from './pivot_excel_note';
87
+ import { PivotPlan } from './pivot_plan';
88
+ import { PivotPlanForParams } from './rpc_pivot_plan_for_params';
89
+ import { PivotPlanParams } from './rpc_pivot_plan_params';
79
90
  import { PredictFillParams } from './rpc_predict_fill_params';
80
91
  import { ReproducibleCell } from './reproducible_cell';
81
92
  import { RowInfo } from './row_info';
@@ -125,10 +136,18 @@ export interface WorkbookMethods {
125
136
  getBlockColId(params: GetBlockColIdParams, bookId?: number): Promise<number | ErrorMessage>;
126
137
  getBlockValues(params: GetBlockValuesParams, bookId?: number): Promise<readonly string[] | ErrorMessage>;
127
138
  getBlockSortOrder(params: GetBlockSortOrderParams, bookId?: number): Promise<BlockSortOrder | ErrorMessage>;
139
+ pivotPlan(params: PivotPlanParams, bookId?: number): Promise<PivotPlan | ErrorMessage>;
140
+ pivotPlanFor(params: PivotPlanForParams, bookId?: number): Promise<PivotPlan | ErrorMessage>;
141
+ pivotExcelNote(params: PivotPlanParams, bookId?: number): Promise<PivotExcelNote | ErrorMessage>;
128
142
  mayModifyBlock(params: MayModifyBlockParams, bookId?: number): Promise<boolean | ErrorMessage>;
143
+ checkFieldValidation(params: CheckFieldValidationParams, bookId?: number): Promise<FieldValidationVerdict | ErrorMessage>;
129
144
  getBlockModifyInfo(params: GetBlockModifyInfoParams, bookId?: number): Promise<BlockModifyInfo | ErrorMessage>;
130
145
  getAvailableBlockId(params: GetAvailableBlockIdParams, bookId?: number): Promise<number | ErrorMessage>;
131
146
  getAllBlockFields(bookId?: number): Promise<readonly BlockField[] | ErrorMessage>;
147
+ duplicateBlockKeys(bookId?: number): Promise<readonly DuplicateBlockKey[] | ErrorMessage>;
148
+ getEnumSets(bookId?: number): Promise<readonly EnumSetInfo[] | ErrorMessage>;
149
+ getBlockOpForPayloads(bookId?: number): Promise<readonly BlockOpForPayload[] | ErrorMessage>;
150
+ getBlockOpPolicies(params: GetBlockOpPoliciesParams, bookId?: number): Promise<readonly BlockOpPolicy[] | ErrorMessage>;
132
151
  getAllBlocks(params: GetAllBlocksParams, bookId?: number): Promise<readonly BlockInfo[] | ErrorMessage>;
133
152
  getLinkableBlocks(params: GetLinkableBlocksParams, bookId?: number): Promise<readonly BlockInfo[] | ErrorMessage>;
134
153
  getLinks(params: GetLinksParams, bookId?: number): Promise<readonly LinkInfo[] | ErrorMessage>;
@@ -160,6 +179,7 @@ export interface WorkbookMethods {
160
179
  getCellIdByBlockRef(params: GetCellIdByBlockRefParams, bookId?: number): Promise<SheetCellId | ErrorMessage>;
161
180
  exportBlockData(params: ExportBlockDataParams, bookId?: number): Promise<readonly BlockDataRow[] | ErrorMessage>;
162
181
  getTempStatusChanges(bookId?: number): Promise<TempStatusDiff | ErrorMessage>;
182
+ isInTempMode(bookId?: number): Promise<boolean | ErrorMessage>;
163
183
  checkFormula(params: CheckFormulaParams, bookId?: number): Promise<boolean | ErrorMessage>;
164
184
  getRowInfo(params: GetRowInfoParams, bookId?: number): Promise<RowInfo | ErrorMessage>;
165
185
  getAllBlockRefNames(): Promise<readonly string[]>;
@@ -0,0 +1,71 @@
1
+ import { FieldTypeParts } from './block_field_type';
2
+ export interface SchemaFieldSpec {
3
+ name: string;
4
+ renderId: string;
5
+ valueFormula?: string;
6
+ validationFormula?: string;
7
+ editabilityFormula?: string;
8
+ fieldType?: FieldTypeParts;
9
+ description?: string;
10
+ required?: boolean;
11
+ unique?: boolean;
12
+ defaultValue?: string;
13
+ writePolicy?: string;
14
+ aggFunc?: string;
15
+ aggField?: string;
16
+ pivotColValue?: string;
17
+ pivotMeasure?: string;
18
+ pivotFunc?: string;
19
+ }
20
+ export declare class SchemaFieldSpecBuilder {
21
+ private _name;
22
+ private _renderId;
23
+ private _valueFormula?;
24
+ private _validationFormula?;
25
+ private _editabilityFormula?;
26
+ private _fieldType?;
27
+ private _description?;
28
+ private _required?;
29
+ private _unique?;
30
+ private _defaultValue?;
31
+ private _writePolicy?;
32
+ private _aggFunc?;
33
+ private _aggField?;
34
+ private _pivotColValue?;
35
+ private _pivotMeasure?;
36
+ private _pivotFunc?;
37
+ name(value: string): this;
38
+ renderId(value: string): this;
39
+ valueFormula(value: string): this;
40
+ validationFormula(value: string): this;
41
+ editabilityFormula(value: string): this;
42
+ fieldType(value: FieldTypeParts): this;
43
+ description(value: string): this;
44
+ required(value: boolean): this;
45
+ unique(value: boolean): this;
46
+ defaultValue(value: string): this;
47
+ writePolicy(value: string): this;
48
+ aggFunc(value: string): this;
49
+ aggField(value: string): this;
50
+ pivotColValue(value: string): this;
51
+ pivotMeasure(value: string): this;
52
+ pivotFunc(value: string): this;
53
+ build(): {
54
+ name: string;
55
+ renderId: string;
56
+ valueFormula: string | undefined;
57
+ validationFormula: string | undefined;
58
+ editabilityFormula: string | undefined;
59
+ fieldType: FieldTypeParts | undefined;
60
+ description: string | undefined;
61
+ required: boolean | undefined;
62
+ unique: boolean | undefined;
63
+ defaultValue: string | undefined;
64
+ writePolicy: string | undefined;
65
+ aggFunc: string | undefined;
66
+ aggField: string | undefined;
67
+ pivotColValue: string | undefined;
68
+ pivotMeasure: string | undefined;
69
+ pivotFunc: string | undefined;
70
+ };
71
+ }
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SchemaFieldSpecBuilder = void 0;
4
+ class SchemaFieldSpecBuilder {
5
+ _name;
6
+ _renderId;
7
+ _valueFormula;
8
+ _validationFormula;
9
+ _editabilityFormula;
10
+ _fieldType;
11
+ _description;
12
+ _required;
13
+ _unique;
14
+ _defaultValue;
15
+ _writePolicy;
16
+ _aggFunc;
17
+ _aggField;
18
+ _pivotColValue;
19
+ _pivotMeasure;
20
+ _pivotFunc;
21
+ name(value) {
22
+ this._name = value;
23
+ return this;
24
+ }
25
+ renderId(value) {
26
+ this._renderId = value;
27
+ return this;
28
+ }
29
+ valueFormula(value) {
30
+ this._valueFormula = value;
31
+ return this;
32
+ }
33
+ validationFormula(value) {
34
+ this._validationFormula = value;
35
+ return this;
36
+ }
37
+ editabilityFormula(value) {
38
+ this._editabilityFormula = value;
39
+ return this;
40
+ }
41
+ fieldType(value) {
42
+ this._fieldType = value;
43
+ return this;
44
+ }
45
+ description(value) {
46
+ this._description = value;
47
+ return this;
48
+ }
49
+ required(value) {
50
+ this._required = value;
51
+ return this;
52
+ }
53
+ unique(value) {
54
+ this._unique = value;
55
+ return this;
56
+ }
57
+ defaultValue(value) {
58
+ this._defaultValue = value;
59
+ return this;
60
+ }
61
+ writePolicy(value) {
62
+ this._writePolicy = value;
63
+ return this;
64
+ }
65
+ aggFunc(value) {
66
+ this._aggFunc = value;
67
+ return this;
68
+ }
69
+ aggField(value) {
70
+ this._aggField = value;
71
+ return this;
72
+ }
73
+ pivotColValue(value) {
74
+ this._pivotColValue = value;
75
+ return this;
76
+ }
77
+ pivotMeasure(value) {
78
+ this._pivotMeasure = value;
79
+ return this;
80
+ }
81
+ pivotFunc(value) {
82
+ this._pivotFunc = value;
83
+ return this;
84
+ }
85
+ build() {
86
+ if (this._name === undefined)
87
+ throw new Error('missing name');
88
+ if (this._renderId === undefined)
89
+ throw new Error('missing renderId');
90
+ return { name: this._name, renderId: this._renderId, valueFormula: this._valueFormula, validationFormula: this._validationFormula, editabilityFormula: this._editabilityFormula, fieldType: this._fieldType, description: this._description, required: this._required, unique: this._unique, defaultValue: this._defaultValue, writePolicy: this._writePolicy, aggFunc: this._aggFunc, aggField: this._aggField, pivotColValue: this._pivotColValue, pivotMeasure: this._pivotMeasure, pivotFunc: this._pivotFunc };
91
+ }
92
+ }
93
+ exports.SchemaFieldSpecBuilder = SchemaFieldSpecBuilder;