logisheets 0.7.0 → 1.0.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 (461) hide show
  1. package/dist/src/api/block_manager.d.ts +21 -0
  2. package/dist/src/api/block_manager.js +35 -0
  3. package/dist/src/api/calculator.d.ts +19 -0
  4. package/dist/src/api/calculator.js +46 -0
  5. package/dist/src/api/cell.d.ts +29 -0
  6. package/dist/src/api/cell.js +55 -0
  7. package/dist/src/api/craft-calc.d.ts +83 -0
  8. package/dist/src/api/craft-calc.js +223 -0
  9. package/dist/src/api/index.d.ts +6 -0
  10. package/dist/src/api/index.js +4 -0
  11. package/dist/src/api/utils.d.ts +3 -1
  12. package/dist/src/api/utils.js +7 -0
  13. package/dist/src/api/workbook.d.ts +82 -10
  14. package/dist/src/api/workbook.js +285 -64
  15. package/dist/src/api/worksheet.d.ts +32 -11
  16. package/dist/src/api/worksheet.js +146 -19
  17. package/dist/src/bindings/action_effect.d.ts +56 -0
  18. package/dist/src/bindings/action_effect.js +96 -1
  19. package/dist/src/bindings/alignment.d.ts +7 -0
  20. package/dist/src/bindings/app_data.d.ts +4 -0
  21. package/dist/src/bindings/appendix.d.ts +5 -0
  22. package/dist/src/bindings/appendix_with_cell.d.ts +8 -0
  23. package/dist/src/bindings/async_func_result.d.ts +10 -0
  24. package/dist/src/bindings/async_func_result.js +19 -1
  25. package/dist/src/bindings/bind_form_schema.d.ts +42 -0
  26. package/dist/src/bindings/bind_form_schema.js +68 -0
  27. package/dist/src/bindings/bind_random_schema.d.ts +23 -0
  28. package/dist/src/bindings/bind_random_schema.js +33 -0
  29. package/dist/src/bindings/block_cell_id.d.ts +1 -1
  30. package/dist/src/bindings/block_cell_id.js +0 -1
  31. package/dist/src/bindings/block_cell_info.d.ts +5 -0
  32. package/dist/src/bindings/block_display_info.d.ts +7 -0
  33. package/dist/src/bindings/block_field.d.ts +5 -0
  34. package/dist/src/bindings/block_info.d.ts +8 -0
  35. package/dist/src/bindings/block_info.js +0 -1
  36. package/dist/src/bindings/block_input.d.ts +19 -0
  37. package/dist/src/bindings/block_input.js +40 -2
  38. package/dist/src/bindings/block_line_name_field_update.d.ts +34 -0
  39. package/dist/src/bindings/block_line_name_field_update.js +50 -0
  40. package/dist/src/bindings/block_line_style_update.d.ts +31 -0
  41. package/dist/src/bindings/block_line_style_update.js +47 -0
  42. package/dist/src/bindings/block_schema.d.ts +11 -0
  43. package/dist/src/bindings/block_schema_field_entry.d.ts +5 -0
  44. package/dist/src/bindings/block_schema_key_entry.d.ts +4 -0
  45. package/dist/src/bindings/block_schema_random_entry.d.ts +6 -0
  46. package/dist/src/bindings/block_schema_type.d.ts +1 -0
  47. package/dist/src/bindings/block_style_update.d.ts +19 -0
  48. package/dist/src/bindings/block_style_update.js +40 -1
  49. package/dist/src/bindings/cell_alignment.d.ts +6 -6
  50. package/dist/src/bindings/cell_clear.d.ts +18 -0
  51. package/dist/src/bindings/cell_clear.js +26 -0
  52. package/dist/src/bindings/cell_coordinate.d.ts +4 -0
  53. package/dist/src/bindings/cell_coordinate.js +1 -0
  54. package/dist/src/bindings/cell_coordinate_with_sheet.d.ts +5 -0
  55. package/dist/src/bindings/cell_coordinate_with_sheet.js +1 -0
  56. package/dist/src/bindings/cell_format_brush.d.ts +38 -0
  57. package/dist/src/bindings/cell_format_brush.js +61 -0
  58. package/dist/src/bindings/cell_id.d.ts +8 -3
  59. package/dist/src/bindings/cell_info.d.ts +2 -0
  60. package/dist/src/bindings/cell_input.d.ts +16 -0
  61. package/dist/src/bindings/cell_input.js +33 -2
  62. package/dist/src/bindings/cell_position.d.ts +4 -0
  63. package/dist/src/bindings/cell_position.js +1 -0
  64. package/dist/src/bindings/cell_protection.js +0 -1
  65. package/dist/src/bindings/cell_ref.d.ts +9 -0
  66. package/dist/src/bindings/cell_ref.js +1 -0
  67. package/dist/src/bindings/cell_style_update.d.ts +23 -0
  68. package/dist/src/bindings/cell_style_update.js +33 -0
  69. package/dist/src/bindings/col_info.js +0 -1
  70. package/dist/src/bindings/color.js +0 -1
  71. package/dist/src/bindings/comment.js +0 -1
  72. package/dist/src/bindings/convert_block.d.ts +30 -0
  73. package/dist/src/bindings/convert_block.js +47 -0
  74. package/dist/src/bindings/create_appendix.d.ts +38 -0
  75. package/dist/src/bindings/create_appendix.js +57 -0
  76. package/dist/src/bindings/create_block.d.ts +31 -0
  77. package/dist/src/bindings/create_block.js +57 -2
  78. package/dist/src/bindings/create_diy_cell.d.ts +18 -0
  79. package/dist/src/bindings/create_diy_cell.js +26 -0
  80. package/dist/src/bindings/create_diy_cell_by_id.d.ts +22 -0
  81. package/dist/src/bindings/create_diy_cell_by_id.js +33 -0
  82. package/dist/src/bindings/create_sheet.d.ts +10 -0
  83. package/dist/src/bindings/create_sheet.js +19 -2
  84. package/dist/src/bindings/ct_border.d.ts +13 -0
  85. package/dist/src/bindings/ct_border.js +1 -0
  86. package/dist/src/bindings/ct_border_pr.d.ts +6 -0
  87. package/dist/src/bindings/ct_border_pr.js +1 -0
  88. package/dist/src/bindings/ct_color.d.ts +7 -0
  89. package/dist/src/bindings/ct_color.js +1 -0
  90. package/dist/src/bindings/ct_fill.d.ts +9 -0
  91. package/dist/src/bindings/ct_fill.js +1 -0
  92. package/dist/src/bindings/ct_font.d.ts +25 -0
  93. package/dist/src/bindings/ct_font.js +1 -0
  94. package/dist/src/bindings/ct_gradient_fill.d.ts +11 -0
  95. package/dist/src/bindings/ct_gradient_fill.js +1 -0
  96. package/dist/src/bindings/ct_gradient_stop.d.ts +5 -0
  97. package/dist/src/bindings/ct_gradient_stop.js +1 -0
  98. package/dist/src/bindings/ct_pattern_fill.d.ts +7 -0
  99. package/dist/src/bindings/ct_pattern_fill.js +1 -0
  100. package/dist/src/bindings/delete_cols.d.ts +13 -0
  101. package/dist/src/bindings/delete_cols.js +26 -2
  102. package/dist/src/bindings/delete_cols_in_block.d.ts +16 -0
  103. package/dist/src/bindings/delete_cols_in_block.js +33 -2
  104. package/dist/src/bindings/delete_rows.d.ts +13 -0
  105. package/dist/src/bindings/delete_rows.js +26 -2
  106. package/dist/src/bindings/delete_rows_in_block.d.ts +16 -0
  107. package/dist/src/bindings/delete_rows_in_block.js +33 -2
  108. package/dist/src/bindings/delete_sheet.d.ts +7 -0
  109. package/dist/src/bindings/delete_sheet.js +12 -2
  110. package/dist/src/bindings/display_window.d.ts +14 -0
  111. package/dist/src/bindings/display_window.js +1 -0
  112. package/dist/src/bindings/display_window_request.d.ts +7 -0
  113. package/dist/src/bindings/display_window_request.js +1 -0
  114. package/dist/src/bindings/display_window_with_start_point.d.ts +6 -0
  115. package/dist/src/bindings/display_window_with_start_point.js +1 -0
  116. package/dist/src/bindings/edit_action.d.ts +5 -3
  117. package/dist/src/bindings/edit_payload.d.ts +160 -27
  118. package/dist/src/bindings/ephemeral_cell_input.d.ts +18 -0
  119. package/dist/src/bindings/ephemeral_cell_input.js +26 -0
  120. package/dist/src/bindings/ephemeral_cell_remove.d.ts +14 -0
  121. package/dist/src/bindings/ephemeral_cell_remove.js +19 -0
  122. package/dist/src/bindings/ephemeral_cell_style_update.d.ts +19 -0
  123. package/dist/src/bindings/ephemeral_cell_style_update.js +26 -0
  124. package/dist/src/bindings/error_message.js +0 -1
  125. package/dist/src/bindings/field_render_entry.d.ts +6 -0
  126. package/dist/src/bindings/field_render_entry.js +1 -0
  127. package/dist/src/bindings/fill.d.ts +5 -3
  128. package/dist/src/bindings/font_family.js +0 -1
  129. package/dist/src/bindings/font_name.js +0 -1
  130. package/dist/src/bindings/font_size.d.ts +3 -0
  131. package/dist/src/bindings/font_size.js +1 -0
  132. package/dist/src/bindings/formula_display_info.d.ts +6 -0
  133. package/dist/src/bindings/formula_display_info.js +1 -0
  134. package/dist/src/bindings/horizontal_alignment.d.ts +1 -0
  135. package/dist/src/bindings/horizontal_alignment.js +1 -0
  136. package/dist/src/bindings/index.d.ts +123 -14
  137. package/dist/src/bindings/index.js +123 -14
  138. package/dist/src/bindings/insert_cols.d.ts +13 -0
  139. package/dist/src/bindings/insert_cols.js +26 -2
  140. package/dist/src/bindings/insert_cols_in_block.d.ts +16 -0
  141. package/dist/src/bindings/insert_cols_in_block.js +33 -2
  142. package/dist/src/bindings/insert_rows.d.ts +13 -0
  143. package/dist/src/bindings/insert_rows.js +26 -2
  144. package/dist/src/bindings/insert_rows_in_block.d.ts +16 -0
  145. package/dist/src/bindings/insert_rows_in_block.js +33 -2
  146. package/dist/src/bindings/int_property.d.ts +3 -0
  147. package/dist/src/bindings/int_property.js +1 -0
  148. package/dist/src/bindings/line_format_brush.d.ts +34 -0
  149. package/dist/src/bindings/line_format_brush.js +54 -0
  150. package/dist/src/bindings/line_style_update.d.ts +27 -0
  151. package/dist/src/bindings/line_style_update.js +40 -0
  152. package/dist/src/bindings/merge_cell.d.ts +4 -4
  153. package/dist/src/bindings/merge_cell.js +0 -1
  154. package/dist/src/bindings/merge_cells.d.ts +26 -0
  155. package/dist/src/bindings/merge_cells.js +40 -0
  156. package/dist/src/bindings/modify_policy.d.ts +1 -0
  157. package/dist/src/bindings/modify_policy.js +1 -0
  158. package/dist/src/bindings/move_block.d.ts +16 -0
  159. package/dist/src/bindings/move_block.js +33 -2
  160. package/dist/src/bindings/move_block_line.d.ts +26 -0
  161. package/dist/src/bindings/move_block_line.js +40 -0
  162. package/dist/src/bindings/msg_sequencer_action_invalid_message.js +0 -1
  163. package/dist/src/bindings/msg_sequencer_init_workbook.js +0 -1
  164. package/dist/src/bindings/msg_sequencer_message.d.ts +7 -4
  165. package/dist/src/bindings/msg_user_message.d.ts +5 -3
  166. package/dist/src/bindings/normal_cell_id.js +0 -1
  167. package/dist/src/bindings/payloads_action.d.ts +1 -0
  168. package/dist/src/bindings/random_schema_unit.d.ts +22 -0
  169. package/dist/src/bindings/random_schema_unit.js +33 -0
  170. package/dist/src/bindings/raw_style.d.ts +13 -0
  171. package/dist/src/bindings/raw_style.js +1 -0
  172. package/dist/src/bindings/remove_appendix.d.ts +26 -0
  173. package/dist/src/bindings/remove_appendix.js +36 -0
  174. package/dist/src/bindings/remove_block.d.ts +10 -0
  175. package/dist/src/bindings/remove_block.js +19 -2
  176. package/dist/src/bindings/remove_diy_cell.d.ts +18 -0
  177. package/dist/src/bindings/remove_diy_cell.js +26 -0
  178. package/dist/src/bindings/remove_diy_cell_by_id.d.ts +22 -0
  179. package/dist/src/bindings/remove_diy_cell_by_id.js +33 -0
  180. package/dist/src/bindings/reorder_block_lines.d.ts +6 -0
  181. package/dist/src/bindings/reorder_block_lines.js +1 -0
  182. package/dist/src/bindings/reproduce_cells.d.ts +23 -0
  183. package/dist/src/bindings/reproduce_cells.js +33 -0
  184. package/dist/src/bindings/reproducible_cell.d.ts +10 -0
  185. package/dist/src/bindings/reproducible_cell.js +1 -0
  186. package/dist/src/bindings/resize_block.d.ts +22 -0
  187. package/dist/src/bindings/resize_block.js +29 -0
  188. package/dist/src/bindings/row_info.js +0 -1
  189. package/dist/src/bindings/rpc_batch_get_cell_coordinate_with_sheet_by_id_params.d.ts +4 -0
  190. package/dist/src/bindings/rpc_batch_get_cell_coordinate_with_sheet_by_id_params.js +1 -0
  191. package/dist/src/bindings/rpc_batch_get_cell_info_by_id_params.d.ts +4 -0
  192. package/dist/src/bindings/rpc_batch_get_cell_info_by_id_params.js +1 -0
  193. package/dist/src/bindings/rpc_calc_condition_params.d.ts +4 -0
  194. package/dist/src/bindings/rpc_calc_condition_params.js +1 -0
  195. package/dist/src/bindings/rpc_check_formula_params.d.ts +3 -0
  196. package/dist/src/bindings/rpc_check_formula_params.js +1 -0
  197. package/dist/src/bindings/rpc_direction.d.ts +1 -0
  198. package/dist/src/bindings/rpc_direction.js +1 -0
  199. package/dist/src/bindings/rpc_get_available_block_id_params.d.ts +3 -0
  200. package/dist/src/bindings/rpc_get_available_block_id_params.js +1 -0
  201. package/dist/src/bindings/rpc_get_block_col_id_params.d.ts +5 -0
  202. package/dist/src/bindings/rpc_get_block_col_id_params.js +1 -0
  203. package/dist/src/bindings/rpc_get_block_display_window_params.d.ts +4 -0
  204. package/dist/src/bindings/rpc_get_block_display_window_params.js +1 -0
  205. package/dist/src/bindings/rpc_get_block_info_params.d.ts +4 -0
  206. package/dist/src/bindings/rpc_get_block_info_params.js +1 -0
  207. package/dist/src/bindings/rpc_get_block_row_id_params.d.ts +5 -0
  208. package/dist/src/bindings/rpc_get_block_row_id_params.js +1 -0
  209. package/dist/src/bindings/rpc_get_block_values_params.d.ts +6 -0
  210. package/dist/src/bindings/rpc_get_block_values_params.js +1 -0
  211. package/dist/src/bindings/rpc_get_cell_id_by_block_ref_params.d.ts +5 -0
  212. package/dist/src/bindings/rpc_get_cell_id_by_block_ref_params.js +1 -0
  213. package/dist/src/bindings/rpc_get_cell_id_params.d.ts +5 -0
  214. package/dist/src/bindings/rpc_get_cell_id_params.js +1 -0
  215. package/dist/src/bindings/rpc_get_cell_infos_params.d.ts +7 -0
  216. package/dist/src/bindings/rpc_get_cell_infos_params.js +1 -0
  217. package/dist/src/bindings/rpc_get_cell_params.d.ts +5 -0
  218. package/dist/src/bindings/rpc_get_cell_params.js +1 -0
  219. package/dist/src/bindings/rpc_get_cell_position_params.d.ts +5 -0
  220. package/dist/src/bindings/rpc_get_cell_position_params.js +1 -0
  221. package/dist/src/bindings/rpc_get_cells_except_window_params.d.ts +11 -0
  222. package/dist/src/bindings/rpc_get_cells_except_window_params.js +1 -0
  223. package/dist/src/bindings/rpc_get_cells_params.d.ts +7 -0
  224. package/dist/src/bindings/rpc_get_cells_params.js +1 -0
  225. package/dist/src/bindings/rpc_get_col_width_params.d.ts +4 -0
  226. package/dist/src/bindings/rpc_get_col_width_params.js +1 -0
  227. package/dist/src/bindings/rpc_get_display_units_of_formula_params.d.ts +3 -0
  228. package/dist/src/bindings/rpc_get_display_units_of_formula_params.js +1 -0
  229. package/dist/src/bindings/rpc_get_display_window_params.d.ts +7 -0
  230. package/dist/src/bindings/rpc_get_display_window_params.js +1 -0
  231. package/dist/src/bindings/rpc_get_display_window_with_start_point_params.d.ts +7 -0
  232. package/dist/src/bindings/rpc_get_display_window_with_start_point_params.js +1 -0
  233. package/dist/src/bindings/rpc_get_display_window_within_cell_params.d.ts +7 -0
  234. package/dist/src/bindings/rpc_get_display_window_within_cell_params.js +1 -0
  235. package/dist/src/bindings/rpc_get_diy_cell_id_with_block_id_params.d.ts +6 -0
  236. package/dist/src/bindings/rpc_get_diy_cell_id_with_block_id_params.js +1 -0
  237. package/dist/src/bindings/rpc_get_merged_cells_params.d.ts +7 -0
  238. package/dist/src/bindings/rpc_get_merged_cells_params.js +1 -0
  239. package/dist/src/bindings/rpc_get_next_visible_cell_params.d.ts +7 -0
  240. package/dist/src/bindings/rpc_get_next_visible_cell_params.js +1 -0
  241. package/dist/src/bindings/rpc_get_reproducible_cell_params.d.ts +5 -0
  242. package/dist/src/bindings/rpc_get_reproducible_cell_params.js +1 -0
  243. package/dist/src/bindings/rpc_get_reproducible_cells_params.d.ts +5 -0
  244. package/dist/src/bindings/rpc_get_reproducible_cells_params.js +1 -0
  245. package/dist/src/bindings/rpc_get_row_height_params.d.ts +4 -0
  246. package/dist/src/bindings/rpc_get_row_height_params.js +1 -0
  247. package/dist/src/bindings/rpc_get_row_info_params.d.ts +4 -0
  248. package/dist/src/bindings/rpc_get_row_info_params.js +1 -0
  249. package/dist/src/bindings/rpc_get_shadow_cell_id_params.d.ts +7 -0
  250. package/dist/src/bindings/rpc_get_shadow_cell_id_params.js +1 -0
  251. package/dist/src/bindings/rpc_get_shadow_cell_ids_params.d.ts +7 -0
  252. package/dist/src/bindings/rpc_get_shadow_cell_ids_params.js +1 -0
  253. package/dist/src/bindings/rpc_get_shadow_info_by_id_params.d.ts +3 -0
  254. package/dist/src/bindings/rpc_get_shadow_info_by_id_params.js +1 -0
  255. package/dist/src/bindings/rpc_get_sheet_dimension_params.d.ts +3 -0
  256. package/dist/src/bindings/rpc_get_sheet_dimension_params.js +1 -0
  257. package/dist/src/bindings/rpc_get_sheet_id_params.d.ts +3 -0
  258. package/dist/src/bindings/rpc_get_sheet_id_params.js +1 -0
  259. package/dist/src/bindings/rpc_get_sheet_idx_params.d.ts +3 -0
  260. package/dist/src/bindings/rpc_get_sheet_idx_params.js +1 -0
  261. package/dist/src/bindings/rpc_get_sheet_name_by_idx_params.d.ts +3 -0
  262. package/dist/src/bindings/rpc_get_sheet_name_by_idx_params.js +1 -0
  263. package/dist/src/bindings/rpc_handle_transaction_params.d.ts +4 -0
  264. package/dist/src/bindings/rpc_handle_transaction_params.js +1 -0
  265. package/dist/src/bindings/rpc_load_workbook_params.d.ts +4 -0
  266. package/dist/src/bindings/rpc_load_workbook_params.js +1 -0
  267. package/dist/src/bindings/rpc_lookup_appendix_upward_params.d.ts +8 -0
  268. package/dist/src/bindings/rpc_lookup_appendix_upward_params.js +1 -0
  269. package/dist/src/bindings/rpc_save_params.d.ts +3 -0
  270. package/dist/src/bindings/rpc_save_params.js +1 -0
  271. package/dist/src/bindings/rpc_toggle_status_params.d.ts +3 -0
  272. package/dist/src/bindings/rpc_toggle_status_params.js +1 -0
  273. package/dist/src/bindings/rpc_transaction.d.ts +6 -0
  274. package/dist/src/bindings/rpc_transaction.js +1 -0
  275. package/dist/src/bindings/rpc_workbook_methods.d.ts +116 -0
  276. package/dist/src/bindings/rpc_workbook_methods.js +1 -0
  277. package/dist/src/bindings/save_file_result.d.ts +4 -0
  278. package/dist/src/bindings/save_file_result.js +1 -0
  279. package/dist/src/bindings/set_col_width.d.ts +13 -0
  280. package/dist/src/bindings/set_col_width.js +26 -2
  281. package/dist/src/bindings/set_row_height.d.ts +13 -0
  282. package/dist/src/bindings/set_row_height.js +26 -2
  283. package/dist/src/bindings/set_sheet_color.d.ts +14 -0
  284. package/dist/src/bindings/set_sheet_color.js +19 -0
  285. package/dist/src/bindings/set_sheet_visible.d.ts +14 -0
  286. package/dist/src/bindings/set_sheet_visible.js +19 -0
  287. package/dist/src/bindings/set_visible.d.ts +16 -0
  288. package/dist/src/bindings/set_visible.js +33 -2
  289. package/dist/src/bindings/shadow_cell_info.d.ts +7 -0
  290. package/dist/src/bindings/shadow_cell_info.js +1 -0
  291. package/dist/src/bindings/shadow_kind.d.ts +1 -0
  292. package/dist/src/bindings/shadow_kind.js +1 -0
  293. package/dist/src/bindings/sheet_cell_id.d.ts +15 -0
  294. package/dist/src/bindings/sheet_cell_id.js +19 -0
  295. package/dist/src/bindings/sheet_col_id.d.ts +14 -0
  296. package/dist/src/bindings/sheet_col_id.js +19 -0
  297. package/dist/src/bindings/sheet_coordinate.d.ts +4 -0
  298. package/dist/src/bindings/sheet_coordinate.js +1 -0
  299. package/dist/src/bindings/sheet_dimension.d.ts +6 -0
  300. package/dist/src/bindings/sheet_dimension.js +1 -0
  301. package/dist/src/bindings/sheet_info.d.ts +6 -0
  302. package/dist/src/bindings/sheet_info.js +1 -0
  303. package/dist/src/bindings/sheet_rename.d.ts +13 -0
  304. package/dist/src/bindings/sheet_rename.js +22 -2
  305. package/dist/src/bindings/sheet_row_id.d.ts +14 -0
  306. package/dist/src/bindings/sheet_row_id.js +19 -0
  307. package/dist/src/bindings/split_merged_cells.d.ts +18 -0
  308. package/dist/src/bindings/split_merged_cells.js +26 -0
  309. package/dist/src/bindings/st_border_style.d.ts +1 -1
  310. package/dist/src/bindings/st_border_style.js +0 -1
  311. package/dist/src/bindings/st_font_scheme.d.ts +1 -1
  312. package/dist/src/bindings/st_font_scheme.js +0 -1
  313. package/dist/src/bindings/st_gradient_type.d.ts +1 -1
  314. package/dist/src/bindings/st_gradient_type.js +0 -1
  315. package/dist/src/bindings/st_horizontal_alignment.d.ts +1 -1
  316. package/dist/src/bindings/st_horizontal_alignment.js +0 -1
  317. package/dist/src/bindings/st_pattern_type.d.ts +1 -1
  318. package/dist/src/bindings/st_pattern_type.js +0 -1
  319. package/dist/src/bindings/st_underline_values.d.ts +1 -1
  320. package/dist/src/bindings/st_underline_values.js +0 -1
  321. package/dist/src/bindings/st_vertical_align_run.d.ts +1 -1
  322. package/dist/src/bindings/st_vertical_align_run.js +0 -1
  323. package/dist/src/bindings/st_vertical_alignment.d.ts +1 -1
  324. package/dist/src/bindings/st_vertical_alignment.js +0 -1
  325. package/dist/src/bindings/status_code.d.ts +6 -3
  326. package/dist/src/bindings/status_code.js +0 -1
  327. package/dist/src/bindings/style.d.ts +2 -2
  328. package/dist/src/bindings/style_update_type.d.ts +79 -0
  329. package/dist/src/bindings/style_update_type.js +125 -1
  330. package/dist/src/bindings/task.js +0 -1
  331. package/dist/src/bindings/temp_cell_change.d.ts +8 -0
  332. package/dist/src/bindings/temp_cell_change.js +1 -0
  333. package/dist/src/bindings/temp_status_diff.d.ts +4 -0
  334. package/dist/src/bindings/temp_status_diff.js +1 -0
  335. package/dist/src/bindings/token_type.d.ts +1 -0
  336. package/dist/src/bindings/token_type.js +1 -0
  337. package/dist/src/bindings/token_unit.d.ts +6 -0
  338. package/dist/src/bindings/token_unit.js +1 -0
  339. package/dist/src/bindings/upsert_field_formulas.d.ts +18 -0
  340. package/dist/src/bindings/upsert_field_formulas.js +26 -0
  341. package/dist/src/bindings/upsert_field_render_info.d.ts +19 -0
  342. package/dist/src/bindings/upsert_field_render_info.js +26 -0
  343. package/dist/src/bindings/value.d.ts +9 -5
  344. package/dist/src/bindings/value.js +0 -1
  345. package/dist/src/bindings/vertical_alignment.d.ts +1 -0
  346. package/dist/src/bindings/vertical_alignment.js +1 -0
  347. package/dist/src/bindings/workbook_file.js +0 -1
  348. package/dist/src/bindings/workbook_update_type.d.ts +1 -0
  349. package/dist/src/bindings/workbook_update_type.js +1 -0
  350. package/dist/src/client.d.ts +25 -0
  351. package/dist/src/client.js +1 -0
  352. package/dist/src/index.d.ts +5 -2
  353. package/dist/src/index.js +5 -1
  354. package/dist/src/layout.d.ts +7 -0
  355. package/dist/src/layout.js +1 -0
  356. package/dist/src/payloads/index.d.ts +1 -43
  357. package/dist/src/payloads/index.js +1 -21
  358. package/dist/src/payloads/set_block_line_name_field.d.ts +34 -0
  359. package/dist/src/payloads/set_block_line_name_field.js +62 -0
  360. package/dist/src/payloads/set_block_line_num_fmt.d.ts +23 -0
  361. package/dist/src/payloads/set_block_line_num_fmt.js +54 -0
  362. package/dist/src/payloads/set_cell_alignment.d.ts +18 -0
  363. package/dist/src/payloads/{set_col_width.js → set_cell_alignment.js} +15 -8
  364. package/dist/src/payloads/{set_border.d.ts → set_cell_border.d.ts} +3 -4
  365. package/dist/src/payloads/{set_border.js → set_cell_border.js} +1 -2
  366. package/dist/src/payloads/{set_font.d.ts → set_cell_font.d.ts} +3 -4
  367. package/dist/src/payloads/{set_font.js → set_cell_font.js} +1 -2
  368. package/dist/src/payloads/{cell_input.d.ts → set_cell_num_fmt.d.ts} +6 -7
  369. package/dist/src/payloads/{cell_input.js → set_cell_num_fmt.js} +7 -8
  370. package/dist/src/payloads/set_cell_pattern_fill.d.ts +24 -0
  371. package/dist/src/payloads/{block_input.js → set_cell_pattern_fill.js} +15 -14
  372. package/dist/src/payloads/set_cell_wrap_text.d.ts +17 -0
  373. package/dist/src/payloads/{set_col_visible.js → set_cell_wrap_text.js} +15 -8
  374. package/dist/src/payloads/set_field_num_fmt.d.ts +14 -0
  375. package/dist/src/payloads/set_field_num_fmt.js +30 -0
  376. package/dist/src/payloads/set_line_alignment.d.ts +21 -0
  377. package/dist/src/payloads/set_line_alignment.js +46 -0
  378. package/dist/src/payloads/set_line_border.d.ts +48 -0
  379. package/dist/src/payloads/set_line_border.js +96 -0
  380. package/dist/src/payloads/set_line_font.d.ts +48 -0
  381. package/dist/src/payloads/set_line_font.js +98 -0
  382. package/dist/src/payloads/set_line_num_fmt.d.ts +20 -0
  383. package/dist/src/payloads/set_line_num_fmt.js +46 -0
  384. package/dist/src/payloads/set_line_pattern_fill.d.ts +27 -0
  385. package/dist/src/payloads/set_line_pattern_fill.js +56 -0
  386. package/dist/src/payloads/set_line_wrap_text.d.ts +20 -0
  387. package/dist/src/payloads/set_line_wrap_text.js +46 -0
  388. package/dist/src/types.d.ts +31 -0
  389. package/dist/src/types.js +21 -0
  390. package/dist/src/utils.d.ts +1 -0
  391. package/dist/src/utils.js +22 -0
  392. package/package.json +4 -3
  393. package/dist/src/bindings/cell_formula_value.d.ts +0 -7
  394. package/dist/src/bindings/cell_style.d.ts +0 -6
  395. package/dist/src/bindings/display_patch.d.ts +0 -25
  396. package/dist/src/bindings/display_request.d.ts +0 -4
  397. package/dist/src/bindings/display_request.js +0 -2
  398. package/dist/src/bindings/display_response.d.ts +0 -5
  399. package/dist/src/bindings/sheet_blocks.d.ts +0 -5
  400. package/dist/src/bindings/sheet_col_info.d.ts +0 -6
  401. package/dist/src/bindings/sheet_comments.d.ts +0 -5
  402. package/dist/src/bindings/sheet_merge_cells.d.ts +0 -5
  403. package/dist/src/bindings/sheet_names.d.ts +0 -3
  404. package/dist/src/bindings/sheet_names.js +0 -2
  405. package/dist/src/bindings/sheet_row_info.d.ts +0 -6
  406. package/dist/src/bindings/sheet_styles.d.ts +0 -5
  407. package/dist/src/bindings/sheet_values.d.ts +0 -5
  408. package/dist/src/bindings/style_update.d.ts +0 -7
  409. package/dist/src/payloads/block_input.d.ts +0 -21
  410. package/dist/src/payloads/create_block.d.ts +0 -24
  411. package/dist/src/payloads/create_block.js +0 -61
  412. package/dist/src/payloads/delete_block_cols.d.ts +0 -18
  413. package/dist/src/payloads/delete_block_cols.js +0 -39
  414. package/dist/src/payloads/delete_block_rows.d.ts +0 -18
  415. package/dist/src/payloads/delete_block_rows.js +0 -39
  416. package/dist/src/payloads/delete_cols.d.ts +0 -15
  417. package/dist/src/payloads/delete_cols.js +0 -31
  418. package/dist/src/payloads/delete_rows.d.ts +0 -15
  419. package/dist/src/payloads/delete_rows.js +0 -31
  420. package/dist/src/payloads/delete_sheet.d.ts +0 -9
  421. package/dist/src/payloads/delete_sheet.js +0 -15
  422. package/dist/src/payloads/insert_block_cols.d.ts +0 -18
  423. package/dist/src/payloads/insert_block_cols.js +0 -39
  424. package/dist/src/payloads/insert_block_rows.d.ts +0 -18
  425. package/dist/src/payloads/insert_block_rows.js +0 -39
  426. package/dist/src/payloads/insert_cols.d.ts +0 -15
  427. package/dist/src/payloads/insert_cols.js +0 -31
  428. package/dist/src/payloads/insert_rows.d.ts +0 -15
  429. package/dist/src/payloads/insert_rows.js +0 -31
  430. package/dist/src/payloads/insert_sheet.d.ts +0 -12
  431. package/dist/src/payloads/insert_sheet.js +0 -23
  432. package/dist/src/payloads/move_block.d.ts +0 -18
  433. package/dist/src/payloads/move_block.js +0 -39
  434. package/dist/src/payloads/set_col_visible.d.ts +0 -15
  435. package/dist/src/payloads/set_col_width.d.ts +0 -15
  436. package/dist/src/payloads/set_row_height.d.ts +0 -15
  437. package/dist/src/payloads/set_row_height.js +0 -31
  438. package/dist/src/payloads/set_row_visible.d.ts +0 -15
  439. package/dist/src/payloads/set_row_visible.js +0 -31
  440. package/dist/src/payloads/sheet_rename.d.ts +0 -15
  441. package/dist/src/payloads/sheet_rename.js +0 -29
  442. package/dist/src/transactions.d.ts +0 -7
  443. package/dist/src/transactions.js +0 -12
  444. package/wasm/.gitignore +0 -1
  445. package/wasm/logisheets_wasm_server.d.ts +0 -255
  446. package/wasm/logisheets_wasm_server.js +0 -946
  447. package/wasm/logisheets_wasm_server_bg.wasm +0 -0
  448. package/wasm/logisheets_wasm_server_bg.wasm.d.ts +0 -40
  449. package/wasm/package.json +0 -14
  450. /package/dist/src/bindings/{cell_formula_value.js → alignment.js} +0 -0
  451. /package/dist/src/bindings/{cell_style.js → app_data.js} +0 -0
  452. /package/dist/src/bindings/{display_patch.js → appendix.js} +0 -0
  453. /package/dist/src/bindings/{display_response.js → appendix_with_cell.js} +0 -0
  454. /package/dist/src/bindings/{sheet_blocks.js → block_cell_info.js} +0 -0
  455. /package/dist/src/bindings/{sheet_col_info.js → block_display_info.js} +0 -0
  456. /package/dist/src/bindings/{sheet_comments.js → block_field.js} +0 -0
  457. /package/dist/src/bindings/{sheet_merge_cells.js → block_schema.js} +0 -0
  458. /package/dist/src/bindings/{sheet_row_info.js → block_schema_field_entry.js} +0 -0
  459. /package/dist/src/bindings/{sheet_styles.js → block_schema_key_entry.js} +0 -0
  460. /package/dist/src/bindings/{sheet_values.js → block_schema_random_entry.js} +0 -0
  461. /package/dist/src/bindings/{style_update.js → block_schema_type.js} +0 -0
@@ -1 +1,40 @@
1
- export {};
1
+ export class BlockStyleUpdateBuilder {
2
+ _sheetIdx;
3
+ _blockId;
4
+ _row;
5
+ _col;
6
+ _styleUpdate;
7
+ sheetIdx(value) {
8
+ this._sheetIdx = value;
9
+ return this;
10
+ }
11
+ blockId(value) {
12
+ this._blockId = 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
+ styleUpdate(value) {
24
+ this._styleUpdate = value;
25
+ return this;
26
+ }
27
+ build() {
28
+ if (this._sheetIdx === undefined)
29
+ throw new Error('missing sheetIdx');
30
+ if (this._blockId === undefined)
31
+ throw new Error('missing blockId');
32
+ if (this._row === undefined)
33
+ throw new Error('missing row');
34
+ if (this._col === undefined)
35
+ throw new Error('missing col');
36
+ if (this._styleUpdate === undefined)
37
+ throw new Error('missing styleUpdate');
38
+ return { sheetIdx: this._sheetIdx, blockId: this._blockId, row: this._row, col: this._col, styleUpdate: this._styleUpdate };
39
+ }
40
+ }
@@ -3,11 +3,11 @@ import { StVerticalAlignment } from './st_vertical_alignment';
3
3
  export interface CtCellAlignment {
4
4
  horizontal?: StHorizontalAlignment;
5
5
  vertical?: StVerticalAlignment;
6
- textRotation?: number;
7
- wrapText?: boolean;
6
+ text_rotation?: number;
7
+ wrap_text?: boolean;
8
8
  indent?: number;
9
- relativeIndent?: number;
10
- justifyLastLine?: boolean;
11
- shrinkToFit?: boolean;
12
- readingOrder?: number;
9
+ relative_indent?: number;
10
+ justify_last_line?: boolean;
11
+ shrink_to_fit?: boolean;
12
+ reading_order?: number;
13
13
  }
@@ -0,0 +1,18 @@
1
+ export interface CellClear {
2
+ sheetIdx: number;
3
+ row: number;
4
+ col: number;
5
+ }
6
+ export declare class CellClearBuilder {
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 CellClearBuilder {
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,4 @@
1
+ export interface CellCoordinate {
2
+ x: number;
3
+ y: number;
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import { CellCoordinate } from './cell_coordinate';
2
+ export interface CellCoordinateWithSheet {
3
+ sheetIdx: number;
4
+ coordinate: CellCoordinate;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,38 @@
1
+ export interface CellFormatBrush {
2
+ srcSheetIdx: number;
3
+ srcRow: number;
4
+ srcCol: number;
5
+ dstSheetIdx: number;
6
+ dstRowStart: number;
7
+ dstColStart: number;
8
+ dstRowEnd: number;
9
+ dstColEnd: number;
10
+ }
11
+ export declare class CellFormatBrushBuilder {
12
+ private _srcSheetIdx;
13
+ private _srcRow;
14
+ private _srcCol;
15
+ private _dstSheetIdx;
16
+ private _dstRowStart;
17
+ private _dstColStart;
18
+ private _dstRowEnd;
19
+ private _dstColEnd;
20
+ srcSheetIdx(value: number): this;
21
+ srcRow(value: number): this;
22
+ srcCol(value: number): this;
23
+ dstSheetIdx(value: number): this;
24
+ dstRowStart(value: number): this;
25
+ dstColStart(value: number): this;
26
+ dstRowEnd(value: number): this;
27
+ dstColEnd(value: number): this;
28
+ build(): {
29
+ srcSheetIdx: number;
30
+ srcRow: number;
31
+ srcCol: number;
32
+ dstSheetIdx: number;
33
+ dstRowStart: number;
34
+ dstColStart: number;
35
+ dstRowEnd: number;
36
+ dstColEnd: number;
37
+ };
38
+ }
@@ -0,0 +1,61 @@
1
+ export class CellFormatBrushBuilder {
2
+ _srcSheetIdx;
3
+ _srcRow;
4
+ _srcCol;
5
+ _dstSheetIdx;
6
+ _dstRowStart;
7
+ _dstColStart;
8
+ _dstRowEnd;
9
+ _dstColEnd;
10
+ srcSheetIdx(value) {
11
+ this._srcSheetIdx = value;
12
+ return this;
13
+ }
14
+ srcRow(value) {
15
+ this._srcRow = value;
16
+ return this;
17
+ }
18
+ srcCol(value) {
19
+ this._srcCol = value;
20
+ return this;
21
+ }
22
+ dstSheetIdx(value) {
23
+ this._dstSheetIdx = value;
24
+ return this;
25
+ }
26
+ dstRowStart(value) {
27
+ this._dstRowStart = value;
28
+ return this;
29
+ }
30
+ dstColStart(value) {
31
+ this._dstColStart = value;
32
+ return this;
33
+ }
34
+ dstRowEnd(value) {
35
+ this._dstRowEnd = value;
36
+ return this;
37
+ }
38
+ dstColEnd(value) {
39
+ this._dstColEnd = value;
40
+ return this;
41
+ }
42
+ build() {
43
+ if (this._srcSheetIdx === undefined)
44
+ throw new Error('missing srcSheetIdx');
45
+ if (this._srcRow === undefined)
46
+ throw new Error('missing srcRow');
47
+ if (this._srcCol === undefined)
48
+ throw new Error('missing srcCol');
49
+ if (this._dstSheetIdx === undefined)
50
+ throw new Error('missing dstSheetIdx');
51
+ if (this._dstRowStart === undefined)
52
+ throw new Error('missing dstRowStart');
53
+ if (this._dstColStart === undefined)
54
+ throw new Error('missing dstColStart');
55
+ if (this._dstRowEnd === undefined)
56
+ throw new Error('missing dstRowEnd');
57
+ if (this._dstColEnd === undefined)
58
+ throw new Error('missing dstColEnd');
59
+ return { srcSheetIdx: this._srcSheetIdx, srcRow: this._srcRow, srcCol: this._srcCol, dstSheetIdx: this._dstSheetIdx, dstRowStart: this._dstRowStart, dstColStart: this._dstColStart, dstRowEnd: this._dstRowEnd, dstColEnd: this._dstColEnd };
60
+ }
61
+ }
@@ -1,7 +1,12 @@
1
1
  import { BlockCellId } from './block_cell_id';
2
2
  import { NormalCellId } from './normal_cell_id';
3
- export declare type CellId = {
4
- NormalCell: NormalCellId;
3
+ export type CellId = {
4
+ type: 'normalCell';
5
+ value: NormalCellId;
5
6
  } | {
6
- BlockCell: BlockCellId;
7
+ type: 'blockCell';
8
+ value: BlockCellId;
9
+ } | {
10
+ type: 'ephemeralCell';
11
+ value: number;
7
12
  };
@@ -4,4 +4,6 @@ export interface CellInfo {
4
4
  value: Value;
5
5
  formula: string;
6
6
  style: Style;
7
+ blockId?: number;
8
+ diyCellId?: number;
7
9
  }
@@ -4,3 +4,19 @@ export interface CellInput {
4
4
  col: number;
5
5
  content: string;
6
6
  }
7
+ export declare class CellInputBuilder {
8
+ private _sheetIdx;
9
+ private _row;
10
+ private _col;
11
+ private _content;
12
+ sheetIdx(value: number): this;
13
+ row(value: number): this;
14
+ col(value: number): this;
15
+ content(value: string): this;
16
+ build(): {
17
+ sheetIdx: number;
18
+ row: number;
19
+ col: number;
20
+ content: string;
21
+ };
22
+ }
@@ -1,2 +1,33 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- export {};
1
+ export class CellInputBuilder {
2
+ _sheetIdx;
3
+ _row;
4
+ _col;
5
+ _content;
6
+ sheetIdx(value) {
7
+ this._sheetIdx = value;
8
+ return this;
9
+ }
10
+ row(value) {
11
+ this._row = value;
12
+ return this;
13
+ }
14
+ col(value) {
15
+ this._col = value;
16
+ return this;
17
+ }
18
+ content(value) {
19
+ this._content = value;
20
+ return this;
21
+ }
22
+ build() {
23
+ if (this._sheetIdx === undefined)
24
+ throw new Error('missing sheetIdx');
25
+ if (this._row === undefined)
26
+ throw new Error('missing row');
27
+ if (this._col === undefined)
28
+ throw new Error('missing col');
29
+ if (this._content === undefined)
30
+ throw new Error('missing content');
31
+ return { sheetIdx: this._sheetIdx, row: this._row, col: this._col, content: this._content };
32
+ }
33
+ }
@@ -0,0 +1,4 @@
1
+ export interface CellPosition {
2
+ x: number;
3
+ y: number;
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
1
  export {};
@@ -0,0 +1,9 @@
1
+ export interface CellRef {
2
+ workbook?: string;
3
+ sheet1?: string;
4
+ sheet2?: string;
5
+ row1?: number;
6
+ col1?: number;
7
+ row2?: number;
8
+ col2?: number;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ import { StyleUpdateType } from './style_update_type';
2
+ export interface CellStyleUpdate {
3
+ sheetIdx: number;
4
+ row: number;
5
+ col: number;
6
+ ty: StyleUpdateType;
7
+ }
8
+ export declare class CellStyleUpdateBuilder {
9
+ private _sheetIdx;
10
+ private _row;
11
+ private _col;
12
+ private _ty;
13
+ sheetIdx(value: number): this;
14
+ row(value: number): this;
15
+ col(value: number): this;
16
+ ty(value: StyleUpdateType): this;
17
+ build(): {
18
+ sheetIdx: number;
19
+ row: number;
20
+ col: number;
21
+ ty: StyleUpdateType;
22
+ };
23
+ }
@@ -0,0 +1,33 @@
1
+ export class CellStyleUpdateBuilder {
2
+ _sheetIdx;
3
+ _row;
4
+ _col;
5
+ _ty;
6
+ sheetIdx(value) {
7
+ this._sheetIdx = value;
8
+ return this;
9
+ }
10
+ row(value) {
11
+ this._row = value;
12
+ return this;
13
+ }
14
+ col(value) {
15
+ this._col = value;
16
+ return this;
17
+ }
18
+ ty(value) {
19
+ this._ty = value;
20
+ return this;
21
+ }
22
+ build() {
23
+ if (this._sheetIdx === undefined)
24
+ throw new Error('missing sheetIdx');
25
+ if (this._row === undefined)
26
+ throw new Error('missing row');
27
+ if (this._col === undefined)
28
+ throw new Error('missing col');
29
+ if (this._ty === undefined)
30
+ throw new Error('missing ty');
31
+ return { sheetIdx: this._sheetIdx, row: this._row, col: this._col, ty: this._ty };
32
+ }
33
+ }
@@ -1,2 +1 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
1
  export {};
@@ -1,2 +1 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
1
  export {};
@@ -1,2 +1 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
1
  export {};
@@ -0,0 +1,30 @@
1
+ export interface ConvertBlock {
2
+ sheetIdx: number;
3
+ id: number;
4
+ masterRow: number;
5
+ masterCol: number;
6
+ rowCnt: number;
7
+ colCnt: number;
8
+ }
9
+ export declare class ConvertBlockBuilder {
10
+ private _sheetIdx;
11
+ private _id;
12
+ private _masterRow;
13
+ private _masterCol;
14
+ private _rowCnt;
15
+ private _colCnt;
16
+ sheetIdx(value: number): this;
17
+ id(value: number): this;
18
+ masterRow(value: number): this;
19
+ masterCol(value: number): this;
20
+ rowCnt(value: number): this;
21
+ colCnt(value: number): this;
22
+ build(): {
23
+ sheetIdx: number;
24
+ id: number;
25
+ masterRow: number;
26
+ masterCol: number;
27
+ rowCnt: number;
28
+ colCnt: number;
29
+ };
30
+ }
@@ -0,0 +1,47 @@
1
+ export class ConvertBlockBuilder {
2
+ _sheetIdx;
3
+ _id;
4
+ _masterRow;
5
+ _masterCol;
6
+ _rowCnt;
7
+ _colCnt;
8
+ sheetIdx(value) {
9
+ this._sheetIdx = value;
10
+ return this;
11
+ }
12
+ id(value) {
13
+ this._id = value;
14
+ return this;
15
+ }
16
+ masterRow(value) {
17
+ this._masterRow = value;
18
+ return this;
19
+ }
20
+ masterCol(value) {
21
+ this._masterCol = value;
22
+ return this;
23
+ }
24
+ rowCnt(value) {
25
+ this._rowCnt = value;
26
+ return this;
27
+ }
28
+ colCnt(value) {
29
+ this._colCnt = value;
30
+ return this;
31
+ }
32
+ build() {
33
+ if (this._sheetIdx === undefined)
34
+ throw new Error('missing sheetIdx');
35
+ if (this._id === undefined)
36
+ throw new Error('missing id');
37
+ if (this._masterRow === undefined)
38
+ throw new Error('missing masterRow');
39
+ if (this._masterCol === undefined)
40
+ throw new Error('missing masterCol');
41
+ if (this._rowCnt === undefined)
42
+ throw new Error('missing rowCnt');
43
+ if (this._colCnt === undefined)
44
+ throw new Error('missing colCnt');
45
+ return { sheetIdx: this._sheetIdx, id: this._id, masterRow: this._masterRow, masterCol: this._masterCol, rowCnt: this._rowCnt, colCnt: this._colCnt };
46
+ }
47
+ }
@@ -0,0 +1,38 @@
1
+ export interface CreateAppendix {
2
+ sheetId?: number;
3
+ sheetIdx?: number;
4
+ blockId: number;
5
+ rowIdx: number;
6
+ colIdx: number;
7
+ craftId: string;
8
+ tag: number;
9
+ content: string;
10
+ }
11
+ export declare class CreateAppendixBuilder {
12
+ private _sheetId?;
13
+ private _sheetIdx?;
14
+ private _blockId;
15
+ private _rowIdx;
16
+ private _colIdx;
17
+ private _craftId;
18
+ private _tag;
19
+ private _content;
20
+ sheetId(value: number): this;
21
+ sheetIdx(value: number): this;
22
+ blockId(value: number): this;
23
+ rowIdx(value: number): this;
24
+ colIdx(value: number): this;
25
+ craftId(value: string): this;
26
+ tag(value: number): this;
27
+ content(value: string): this;
28
+ build(): {
29
+ sheetId: number | undefined;
30
+ sheetIdx: number | undefined;
31
+ blockId: number;
32
+ rowIdx: number;
33
+ colIdx: number;
34
+ craftId: string;
35
+ tag: number;
36
+ content: string;
37
+ };
38
+ }
@@ -0,0 +1,57 @@
1
+ export class CreateAppendixBuilder {
2
+ _sheetId;
3
+ _sheetIdx;
4
+ _blockId;
5
+ _rowIdx;
6
+ _colIdx;
7
+ _craftId;
8
+ _tag;
9
+ _content;
10
+ sheetId(value) {
11
+ this._sheetId = value;
12
+ return this;
13
+ }
14
+ sheetIdx(value) {
15
+ this._sheetIdx = value;
16
+ return this;
17
+ }
18
+ blockId(value) {
19
+ this._blockId = value;
20
+ return this;
21
+ }
22
+ rowIdx(value) {
23
+ this._rowIdx = value;
24
+ return this;
25
+ }
26
+ colIdx(value) {
27
+ this._colIdx = value;
28
+ return this;
29
+ }
30
+ craftId(value) {
31
+ this._craftId = value;
32
+ return this;
33
+ }
34
+ tag(value) {
35
+ this._tag = value;
36
+ return this;
37
+ }
38
+ content(value) {
39
+ this._content = value;
40
+ return this;
41
+ }
42
+ build() {
43
+ if (this._blockId === undefined)
44
+ throw new Error('missing blockId');
45
+ if (this._rowIdx === undefined)
46
+ throw new Error('missing rowIdx');
47
+ if (this._colIdx === undefined)
48
+ throw new Error('missing colIdx');
49
+ if (this._craftId === undefined)
50
+ throw new Error('missing craftId');
51
+ if (this._tag === undefined)
52
+ throw new Error('missing tag');
53
+ if (this._content === undefined)
54
+ throw new Error('missing content');
55
+ return { sheetId: this._sheetId, sheetIdx: this._sheetIdx, blockId: this._blockId, rowIdx: this._rowIdx, colIdx: this._colIdx, craftId: this._craftId, tag: this._tag, content: this._content };
56
+ }
57
+ }
@@ -1,3 +1,4 @@
1
+ import { ModifyPolicy } from './modify_policy';
1
2
  export interface CreateBlock {
2
3
  sheetIdx: number;
3
4
  id: number;
@@ -5,4 +6,34 @@ export interface CreateBlock {
5
6
  masterCol: number;
6
7
  rowCnt: number;
7
8
  colCnt: number;
9
+ owner?: string;
10
+ modifyPolicy?: ModifyPolicy;
11
+ }
12
+ export declare class CreateBlockBuilder {
13
+ private _sheetIdx;
14
+ private _id;
15
+ private _masterRow;
16
+ private _masterCol;
17
+ private _rowCnt;
18
+ private _colCnt;
19
+ private _owner?;
20
+ private _modifyPolicy?;
21
+ sheetIdx(value: number): this;
22
+ id(value: number): this;
23
+ masterRow(value: number): this;
24
+ masterCol(value: number): this;
25
+ rowCnt(value: number): this;
26
+ colCnt(value: number): this;
27
+ owner(value: string): this;
28
+ modifyPolicy(value: ModifyPolicy): this;
29
+ build(): {
30
+ sheetIdx: number;
31
+ id: number;
32
+ masterRow: number;
33
+ masterCol: number;
34
+ rowCnt: number;
35
+ colCnt: number;
36
+ owner: string | undefined;
37
+ modifyPolicy: ModifyPolicy | undefined;
38
+ };
8
39
  }
@@ -1,2 +1,57 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- export {};
1
+ export class CreateBlockBuilder {
2
+ _sheetIdx;
3
+ _id;
4
+ _masterRow;
5
+ _masterCol;
6
+ _rowCnt;
7
+ _colCnt;
8
+ _owner;
9
+ _modifyPolicy;
10
+ sheetIdx(value) {
11
+ this._sheetIdx = value;
12
+ return this;
13
+ }
14
+ id(value) {
15
+ this._id = value;
16
+ return this;
17
+ }
18
+ masterRow(value) {
19
+ this._masterRow = value;
20
+ return this;
21
+ }
22
+ masterCol(value) {
23
+ this._masterCol = value;
24
+ return this;
25
+ }
26
+ rowCnt(value) {
27
+ this._rowCnt = value;
28
+ return this;
29
+ }
30
+ colCnt(value) {
31
+ this._colCnt = value;
32
+ return this;
33
+ }
34
+ owner(value) {
35
+ this._owner = value;
36
+ return this;
37
+ }
38
+ modifyPolicy(value) {
39
+ this._modifyPolicy = value;
40
+ return this;
41
+ }
42
+ build() {
43
+ if (this._sheetIdx === undefined)
44
+ throw new Error('missing sheetIdx');
45
+ if (this._id === undefined)
46
+ throw new Error('missing id');
47
+ if (this._masterRow === undefined)
48
+ throw new Error('missing masterRow');
49
+ if (this._masterCol === undefined)
50
+ throw new Error('missing masterCol');
51
+ if (this._rowCnt === undefined)
52
+ throw new Error('missing rowCnt');
53
+ if (this._colCnt === undefined)
54
+ throw new Error('missing colCnt');
55
+ return { sheetIdx: this._sheetIdx, id: this._id, masterRow: this._masterRow, masterCol: this._masterCol, rowCnt: this._rowCnt, colCnt: this._colCnt, owner: this._owner, modifyPolicy: this._modifyPolicy };
56
+ }
57
+ }