logisheets 1.14.1 → 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 (60) hide show
  1. package/dist/src/api/workbook.d.ts +98 -1
  2. package/dist/src/api/workbook.js +110 -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_for_payload.d.ts +5 -0
  9. package/dist/src/bindings/block_op_for_payload.js +2 -0
  10. package/dist/src/bindings/block_op_policy.d.ts +6 -0
  11. package/dist/src/bindings/block_op_policy.js +2 -0
  12. package/dist/src/bindings/block_schema.d.ts +3 -0
  13. package/dist/src/bindings/block_schema_field_entry.d.ts +12 -0
  14. package/dist/src/bindings/create_block.d.ts +9 -0
  15. package/dist/src/bindings/create_block.js +11 -1
  16. package/dist/src/bindings/duplicate_block_key.d.ts +7 -0
  17. package/dist/src/bindings/duplicate_block_key.js +2 -0
  18. package/dist/src/bindings/edit_payload.d.ts +12 -0
  19. package/dist/src/bindings/enum_set_info.d.ts +6 -0
  20. package/dist/src/bindings/enum_set_info.js +2 -0
  21. package/dist/src/bindings/enum_variant_info.d.ts +4 -0
  22. package/dist/src/bindings/enum_variant_info.js +2 -0
  23. package/dist/src/bindings/enum_variant_spec.d.ts +14 -0
  24. package/dist/src/bindings/enum_variant_spec.js +21 -0
  25. package/dist/src/bindings/get_block_op_policies_params.d.ts +4 -0
  26. package/dist/src/bindings/get_block_op_policies_params.js +2 -0
  27. package/dist/src/bindings/index.d.ts +19 -0
  28. package/dist/src/bindings/index.js +19 -0
  29. package/dist/src/bindings/pivot_excel_note.d.ts +4 -0
  30. package/dist/src/bindings/pivot_excel_note.js +2 -0
  31. package/dist/src/bindings/pivot_filter.d.ts +4 -0
  32. package/dist/src/bindings/pivot_filter.js +2 -0
  33. package/dist/src/bindings/pivot_plan.d.ts +12 -0
  34. package/dist/src/bindings/pivot_plan.js +2 -0
  35. package/dist/src/bindings/pivot_spec.d.ts +10 -0
  36. package/dist/src/bindings/pivot_spec.js +2 -0
  37. package/dist/src/bindings/remove_enum_set.d.ts +10 -0
  38. package/dist/src/bindings/remove_enum_set.js +16 -0
  39. package/dist/src/bindings/rpc_pivot_plan_for_params.d.ts +6 -0
  40. package/dist/src/bindings/rpc_pivot_plan_for_params.js +2 -0
  41. package/dist/src/bindings/rpc_pivot_plan_params.d.ts +4 -0
  42. package/dist/src/bindings/rpc_pivot_plan_params.js +2 -0
  43. package/dist/src/bindings/rpc_workbook_methods.d.ts +17 -0
  44. package/dist/src/bindings/schema_field_spec.d.ts +71 -0
  45. package/dist/src/bindings/schema_field_spec.js +93 -0
  46. package/dist/src/bindings/set_block_analyzes.d.ts +23 -0
  47. package/dist/src/bindings/set_block_analyzes.js +33 -0
  48. package/dist/src/bindings/unique_together_group.d.ts +3 -0
  49. package/dist/src/bindings/unique_together_group.js +2 -0
  50. package/dist/src/bindings/upsert_enum_set.d.ts +19 -0
  51. package/dist/src/bindings/upsert_enum_set.js +28 -0
  52. package/dist/wasm/logisheets_wasm_server.d.ts +5 -5
  53. package/dist/wasm/logisheets_wasm_server.js +24 -24
  54. package/dist/wasm/logisheets_wasm_server_bg.wasm +0 -0
  55. package/dist/wasm/package.json +1 -1
  56. package/package.json +1 -1
  57. package/wasm/logisheets_wasm_server.d.ts +5 -5
  58. package/wasm/logisheets_wasm_server.js +24 -24
  59. package/wasm/logisheets_wasm_server_bg.wasm +0 -0
  60. package/wasm/package.json +1 -1
@@ -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';
@@ -98,9 +101,13 @@ export * from './dependent_cell';
98
101
  export * from './display_window';
99
102
  export * from './display_window_request';
100
103
  export * from './display_window_with_start_point';
104
+ export * from './duplicate_block_key';
101
105
  export * from './edit_action';
102
106
  export * from './edit_comment';
103
107
  export * from './edit_payload';
108
+ export * from './enum_set_info';
109
+ export * from './enum_variant_info';
110
+ export * from './enum_variant_spec';
104
111
  export * from './ephemeral_cell_input';
105
112
  export * from './ephemeral_cell_remove';
106
113
  export * from './ephemeral_cell_style_update';
@@ -115,6 +122,7 @@ export * from './font_scheme';
115
122
  export * from './font_size';
116
123
  export * from './formula_display_info';
117
124
  export * from './get_block_modify_info_params';
125
+ export * from './get_block_op_policies_params';
118
126
  export * from './gradient_fill';
119
127
  export * from './gradient_stop';
120
128
  export * from './horizontal_alignment';
@@ -145,6 +153,10 @@ export * from './normal_cell_id';
145
153
  export * from './of_pie_split_update';
146
154
  export * from './pattern_fill';
147
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';
148
160
  export * from './random_schema_unit';
149
161
  export * from './raw_style';
150
162
  export * from './recalc_cell';
@@ -152,6 +164,7 @@ export * from './remove_appendix';
152
164
  export * from './remove_block';
153
165
  export * from './remove_diy_cell';
154
166
  export * from './remove_diy_cell_by_id';
167
+ export * from './remove_enum_set';
155
168
  export * from './reorder_block_lines';
156
169
  export * from './reproduce_cells';
157
170
  export * from './reproducible_cell';
@@ -211,6 +224,8 @@ export * from './rpc_get_sheet_name_by_idx_params';
211
224
  export * from './rpc_handle_transaction_params';
212
225
  export * from './rpc_load_workbook_params';
213
226
  export * from './rpc_lookup_appendix_upward_params';
227
+ export * from './rpc_pivot_plan_for_params';
228
+ export * from './rpc_pivot_plan_params';
214
229
  export * from './rpc_predict_fill_params';
215
230
  export * from './rpc_save_checkpoint_params';
216
231
  export * from './rpc_save_params';
@@ -218,6 +233,8 @@ export * from './rpc_toggle_status_params';
218
233
  export * from './rpc_transaction';
219
234
  export * from './rpc_workbook_methods';
220
235
  export * from './save_file_result';
236
+ export * from './schema_field_spec';
237
+ export * from './set_block_analyzes';
221
238
  export * from './set_block_description';
222
239
  export * from './set_block_permissions';
223
240
  export * from './set_cell_image';
@@ -253,8 +270,10 @@ export * from './temp_status_diff';
253
270
  export * from './token_type';
254
271
  export * from './token_unit';
255
272
  export * from './underline_property';
273
+ export * from './unique_together_group';
256
274
  export * from './update_chart';
257
275
  export * from './update_conditional_formatting_rule';
276
+ export * from './upsert_enum_set';
258
277
  export * from './upsert_field_formulas';
259
278
  export * from './upsert_field_render_info';
260
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);
@@ -115,9 +118,13 @@ __exportStar(require("./dependent_cell"), exports);
115
118
  __exportStar(require("./display_window"), exports);
116
119
  __exportStar(require("./display_window_request"), exports);
117
120
  __exportStar(require("./display_window_with_start_point"), exports);
121
+ __exportStar(require("./duplicate_block_key"), exports);
118
122
  __exportStar(require("./edit_action"), exports);
119
123
  __exportStar(require("./edit_comment"), exports);
120
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);
121
128
  __exportStar(require("./ephemeral_cell_input"), exports);
122
129
  __exportStar(require("./ephemeral_cell_remove"), exports);
123
130
  __exportStar(require("./ephemeral_cell_style_update"), exports);
@@ -132,6 +139,7 @@ __exportStar(require("./font_scheme"), exports);
132
139
  __exportStar(require("./font_size"), exports);
133
140
  __exportStar(require("./formula_display_info"), exports);
134
141
  __exportStar(require("./get_block_modify_info_params"), exports);
142
+ __exportStar(require("./get_block_op_policies_params"), exports);
135
143
  __exportStar(require("./gradient_fill"), exports);
136
144
  __exportStar(require("./gradient_stop"), exports);
137
145
  __exportStar(require("./horizontal_alignment"), exports);
@@ -162,6 +170,10 @@ __exportStar(require("./normal_cell_id"), exports);
162
170
  __exportStar(require("./of_pie_split_update"), exports);
163
171
  __exportStar(require("./pattern_fill"), exports);
164
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);
165
177
  __exportStar(require("./random_schema_unit"), exports);
166
178
  __exportStar(require("./raw_style"), exports);
167
179
  __exportStar(require("./recalc_cell"), exports);
@@ -169,6 +181,7 @@ __exportStar(require("./remove_appendix"), exports);
169
181
  __exportStar(require("./remove_block"), exports);
170
182
  __exportStar(require("./remove_diy_cell"), exports);
171
183
  __exportStar(require("./remove_diy_cell_by_id"), exports);
184
+ __exportStar(require("./remove_enum_set"), exports);
172
185
  __exportStar(require("./reorder_block_lines"), exports);
173
186
  __exportStar(require("./reproduce_cells"), exports);
174
187
  __exportStar(require("./reproducible_cell"), exports);
@@ -228,6 +241,8 @@ __exportStar(require("./rpc_get_sheet_name_by_idx_params"), exports);
228
241
  __exportStar(require("./rpc_handle_transaction_params"), exports);
229
242
  __exportStar(require("./rpc_load_workbook_params"), exports);
230
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);
231
246
  __exportStar(require("./rpc_predict_fill_params"), exports);
232
247
  __exportStar(require("./rpc_save_checkpoint_params"), exports);
233
248
  __exportStar(require("./rpc_save_params"), exports);
@@ -235,6 +250,8 @@ __exportStar(require("./rpc_toggle_status_params"), exports);
235
250
  __exportStar(require("./rpc_transaction"), exports);
236
251
  __exportStar(require("./rpc_workbook_methods"), exports);
237
252
  __exportStar(require("./save_file_result"), exports);
253
+ __exportStar(require("./schema_field_spec"), exports);
254
+ __exportStar(require("./set_block_analyzes"), exports);
238
255
  __exportStar(require("./set_block_description"), exports);
239
256
  __exportStar(require("./set_block_permissions"), exports);
240
257
  __exportStar(require("./set_cell_image"), exports);
@@ -270,8 +287,10 @@ __exportStar(require("./temp_status_diff"), exports);
270
287
  __exportStar(require("./token_type"), exports);
271
288
  __exportStar(require("./token_unit"), exports);
272
289
  __exportStar(require("./underline_property"), exports);
290
+ __exportStar(require("./unique_together_group"), exports);
273
291
  __exportStar(require("./update_chart"), exports);
274
292
  __exportStar(require("./update_conditional_formatting_rule"), exports);
293
+ __exportStar(require("./upsert_enum_set"), exports);
275
294
  __exportStar(require("./upsert_field_formulas"), exports);
276
295
  __exportStar(require("./upsert_field_render_info"), exports);
277
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';
@@ -25,6 +27,8 @@ import { DeleteCheckpointParams } from './rpc_delete_checkpoint_params';
25
27
  import { DependentCell } from './dependent_cell';
26
28
  import { DisplayWindow } from './display_window';
27
29
  import { DisplayWindowWithStartPoint } from './display_window_with_start_point';
30
+ import { DuplicateBlockKey } from './duplicate_block_key';
31
+ import { EnumSetInfo } from './enum_set_info';
28
32
  import { ErrorMessage } from './error_message';
29
33
  import { ExportBlockDataParams } from './rpc_export_block_data_params';
30
34
  import { FieldValidationVerdict } from './field_validation_verdict';
@@ -35,6 +39,7 @@ import { GetBlockColIdParams } from './rpc_get_block_col_id_params';
35
39
  import { GetBlockDisplayWindowParams } from './rpc_get_block_display_window_params';
36
40
  import { GetBlockInfoParams } from './rpc_get_block_info_params';
37
41
  import { GetBlockModifyInfoParams } from './get_block_modify_info_params';
42
+ import { GetBlockOpPoliciesParams } from './get_block_op_policies_params';
38
43
  import { GetBlockRowIdParams } from './rpc_get_block_row_id_params';
39
44
  import { GetBlockSortOrderParams } from './rpc_get_block_sort_order_params';
40
45
  import { GetBlockValuesParams } from './rpc_get_block_values_params';
@@ -78,6 +83,10 @@ import { LoadWorkbookParams } from './rpc_load_workbook_params';
78
83
  import { LookupAppendixUpwardParams } from './rpc_lookup_appendix_upward_params';
79
84
  import { MayModifyBlockParams } from './may_modify_block_params';
80
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';
81
90
  import { PredictFillParams } from './rpc_predict_fill_params';
82
91
  import { ReproducibleCell } from './reproducible_cell';
83
92
  import { RowInfo } from './row_info';
@@ -127,11 +136,18 @@ export interface WorkbookMethods {
127
136
  getBlockColId(params: GetBlockColIdParams, bookId?: number): Promise<number | ErrorMessage>;
128
137
  getBlockValues(params: GetBlockValuesParams, bookId?: number): Promise<readonly string[] | ErrorMessage>;
129
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>;
130
142
  mayModifyBlock(params: MayModifyBlockParams, bookId?: number): Promise<boolean | ErrorMessage>;
131
143
  checkFieldValidation(params: CheckFieldValidationParams, bookId?: number): Promise<FieldValidationVerdict | ErrorMessage>;
132
144
  getBlockModifyInfo(params: GetBlockModifyInfoParams, bookId?: number): Promise<BlockModifyInfo | ErrorMessage>;
133
145
  getAvailableBlockId(params: GetAvailableBlockIdParams, bookId?: number): Promise<number | ErrorMessage>;
134
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>;
135
151
  getAllBlocks(params: GetAllBlocksParams, bookId?: number): Promise<readonly BlockInfo[] | ErrorMessage>;
136
152
  getLinkableBlocks(params: GetLinkableBlocksParams, bookId?: number): Promise<readonly BlockInfo[] | ErrorMessage>;
137
153
  getLinks(params: GetLinksParams, bookId?: number): Promise<readonly LinkInfo[] | ErrorMessage>;
@@ -163,6 +179,7 @@ export interface WorkbookMethods {
163
179
  getCellIdByBlockRef(params: GetCellIdByBlockRefParams, bookId?: number): Promise<SheetCellId | ErrorMessage>;
164
180
  exportBlockData(params: ExportBlockDataParams, bookId?: number): Promise<readonly BlockDataRow[] | ErrorMessage>;
165
181
  getTempStatusChanges(bookId?: number): Promise<TempStatusDiff | ErrorMessage>;
182
+ isInTempMode(bookId?: number): Promise<boolean | ErrorMessage>;
166
183
  checkFormula(params: CheckFormulaParams, bookId?: number): Promise<boolean | ErrorMessage>;
167
184
  getRowInfo(params: GetRowInfoParams, bookId?: number): Promise<RowInfo | ErrorMessage>;
168
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;
@@ -0,0 +1,23 @@
1
+ import { PivotSpecParts } from './pivot_spec';
2
+ export interface SetBlockAnalyzes {
3
+ sheetIdx: number;
4
+ blockId: number;
5
+ analyzes?: number;
6
+ pivot?: PivotSpecParts;
7
+ }
8
+ export declare class SetBlockAnalyzesBuilder {
9
+ private _sheetIdx;
10
+ private _blockId;
11
+ private _analyzes?;
12
+ private _pivot?;
13
+ sheetIdx(value: number): this;
14
+ blockId(value: number): this;
15
+ analyzes(value: number): this;
16
+ pivot(value: PivotSpecParts): this;
17
+ build(): {
18
+ sheetIdx: number;
19
+ blockId: number;
20
+ analyzes: number | undefined;
21
+ pivot: PivotSpecParts | undefined;
22
+ };
23
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SetBlockAnalyzesBuilder = void 0;
4
+ class SetBlockAnalyzesBuilder {
5
+ _sheetIdx;
6
+ _blockId;
7
+ _analyzes;
8
+ _pivot;
9
+ sheetIdx(value) {
10
+ this._sheetIdx = value;
11
+ return this;
12
+ }
13
+ blockId(value) {
14
+ this._blockId = value;
15
+ return this;
16
+ }
17
+ analyzes(value) {
18
+ this._analyzes = value;
19
+ return this;
20
+ }
21
+ pivot(value) {
22
+ this._pivot = value;
23
+ return this;
24
+ }
25
+ build() {
26
+ if (this._sheetIdx === undefined)
27
+ throw new Error('missing sheetIdx');
28
+ if (this._blockId === undefined)
29
+ throw new Error('missing blockId');
30
+ return { sheetIdx: this._sheetIdx, blockId: this._blockId, analyzes: this._analyzes, pivot: this._pivot };
31
+ }
32
+ }
33
+ exports.SetBlockAnalyzesBuilder = SetBlockAnalyzesBuilder;
@@ -0,0 +1,3 @@
1
+ export interface UniqueTogetherGroup {
2
+ fields: readonly string[];
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import { EnumVariantSpec } from './enum_variant_spec';
2
+ export interface UpsertEnumSet {
3
+ id: string;
4
+ name?: string;
5
+ variants: readonly EnumVariantSpec[];
6
+ }
7
+ export declare class UpsertEnumSetBuilder {
8
+ private _id;
9
+ private _name?;
10
+ private _variants;
11
+ id(value: string): this;
12
+ name(value: string): this;
13
+ variants(value: readonly EnumVariantSpec[]): this;
14
+ build(): {
15
+ id: string;
16
+ name: string | undefined;
17
+ variants: readonly EnumVariantSpec[];
18
+ };
19
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpsertEnumSetBuilder = void 0;
4
+ class UpsertEnumSetBuilder {
5
+ _id;
6
+ _name;
7
+ _variants;
8
+ id(value) {
9
+ this._id = value;
10
+ return this;
11
+ }
12
+ name(value) {
13
+ this._name = value;
14
+ return this;
15
+ }
16
+ variants(value) {
17
+ this._variants = value;
18
+ return this;
19
+ }
20
+ build() {
21
+ if (this._id === undefined)
22
+ throw new Error('missing id');
23
+ if (this._variants === undefined)
24
+ throw new Error('missing variants');
25
+ return { id: this._id, name: this._name, variants: this._variants };
26
+ }
27
+ }
28
+ exports.UpsertEnumSetBuilder = UpsertEnumSetBuilder;
@@ -1,11 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export function handle(msg: any, book_id?: number | null): any;
4
- /**
5
- * Render a text value with an Excel number-format code (for the `@` text
6
- * section). Falls back to the text itself on an unsupported format.
7
- */
8
- export function format_text(fmt: string, text: string): string;
9
4
  /**
10
5
  * Render a number with an Excel number-format code, natively via `ssf-rs`
11
6
  * (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
@@ -13,6 +8,11 @@ export function format_text(fmt: string, text: string): string;
13
8
  * JavaScript `String(value)` representation, matching the previous behavior.
14
9
  */
15
10
  export function format_number(fmt: string, value: number): string;
11
+ /**
12
+ * Render a text value with an Excel number-format code (for the `@` text
13
+ * section). Falls back to the text itself on an unsupported format.
14
+ */
15
+ export function format_text(fmt: string, text: string): string;
16
16
  /**
17
17
  * Input: AsyncFuncResult
18
18
  * Output: ActionAffect