@univerjs-pro/collaboration 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/lib/cjs/index.js +1 -0
- package/lib/es/index.js +1 -0
- package/lib/types/controllers/doc-transform/algorithms/doc-algo.d.ts +4 -0
- package/lib/types/controllers/doc-transform/doc-transform.controller.d.ts +10 -0
- package/lib/types/controllers/doc-transform/text-x-pro/__tests__/transform-position.spec.d.ts +1 -0
- package/lib/types/controllers/doc-transform/text-x-pro/__tests__/transform.spec.d.ts +1 -0
- package/lib/types/controllers/doc-transform/text-x-pro/text-x-pro.d.ts +34 -0
- package/lib/types/controllers/doc-transform/text-x-pro/utils.d.ts +3 -0
- package/lib/types/controllers/sheet-transform/algorithms/__tests__/transform-test-bed.d.ts +19 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-conditional-rule/__test__/add-conditional-rule.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-conditional-rule/add-conditional-formatting-rule.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-data-validation/__test__/add-data-validation.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-data-validation/__test__/update-data-validation.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-data-validation/__test__/util.d.ts +14 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-data-validation/add-data-validation.algo.d.ts +16 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-data-validation/update-data-validation.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/__test__/add-worksheet-merge.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/__test__/insert-col.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/__test__/insert-row.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/__test__/move-col.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/__test__/move-row.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/__test__/remove-col.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/__test__/remove-row.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/__test__/remove-worksheet-merge.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/__test__/set-range-values.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/add-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/insert-col.algo.d.ts +6 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/insert-row.algo.d.ts +6 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/move-col.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/move-range.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/move-row.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/remove-col.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/remove-row.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/remove-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/set-range-values.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/set-selection.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-worksheet-merge/utils/merge-tools.d.ts +3 -0
- package/lib/types/controllers/sheet-transform/algorithms/delete-conditional-formatting-rule/delete-conditional-formatting-rule.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/__test__/add-worksheet-merge.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/__test__/insert-col.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/__test__/move-col.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/__test__/move-range.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/__test__/remove-col.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/__test__/remove-numfmt.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/__test__/remove-worksheet-merge.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/__test__/set-col-hidden.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/__test__/set-col-visible.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/__test__/set-numfmt.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/__test__/set-range-values.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/__test__/set-sheets-filter-criteria.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/__test__/set-sheets-filter-range.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/add-data-validation.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/add-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/insert-col.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/move-col.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/move-range.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/remove-col.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/remove-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/remove-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/set-col-hidden.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/set-col-visible.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/set-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/set-range-values.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/set-selection.algo.d.ts +8 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/set-sheets-filter-criteria.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/set-sheets-filter-range.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/set-worksheet-col-width.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/update-data-validation.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/__test__/add-worksheet-merge.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/__test__/insert-row.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/__test__/move-range.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/__test__/move-row.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/__test__/remove-numfmt.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/__test__/remove-row.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/__test__/remove-worksheet-merge.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/__test__/set-numfmt.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/__test__/set-range-values.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/__test__/set-row-hidden.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/__test__/set-row-visible.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/__test__/set-sheets-filter-range.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/add-data-validation.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/add-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/insert-row.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/move-range.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/move-row.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/remove-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/remove-row.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/remove-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/set-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/set-range-values.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/set-row-hidden.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/set-row-visible.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/set-selection.algo.d.ts +8 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/set-sheets-filter-range.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/update-data-validation.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/__test__/add-worksheet-merge.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/__test__/move-col.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/__test__/move-range.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/__test__/remove-numfmt.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/__test__/remove-worksheet-merge.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/__test__/set-col-hidden.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/__test__/set-col-visible.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/__test__/set-numfmt.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/__test__/set-range-values.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/__test__/set-sheets-filter-criteria.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/__test__/set-sheets-filter-range.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/add-data-validation.algo.d.ts +7 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/add-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/move-col.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/move-range.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/remove-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/remove-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/set-col-hidden.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/set-col-visible.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/set-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/set-range-values.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/set-selection.algo.d.ts +8 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/set-sheets-filter-criteria.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/set-sheets-filter-range.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/set-worksheet-col-width.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/update-data-validation.algo.d.ts +10 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-conditional-formatting-rule/__test__/move-conditional-formatting-rule.algo.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-conditional-formatting-rule/move-conditional-formatting-rule.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-range/add-data-validation.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-range/add-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-range/move-range.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-range/remove-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-range/set-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/__test__/add-worksheet-merge.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/__test__/move-range.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/__test__/move-row.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/__test__/remove-numfmt.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/__test__/remove-worksheet-merge.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/__test__/set-numfmt.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/__test__/set-range-values.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/__test__/set-row-hidden.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/__test__/set-row-visible.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/__test__/set-sheets-filter-range.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/add-data-validation.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/add-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/move-range.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/move-row.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/remove-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/remove-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/set-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/set-range-values.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/set-row-hidden.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/set-row-visible.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/set-selection.algo.d.ts +8 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/set-sheets-filter-range.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/update-data-validation.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/__tests__/move-col.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/__tests__/move-range.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/__tests__/remove-col.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/__tests__/remove-numfmt.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/__tests__/remove-worksheet-merge.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/__tests__/set-col-hidden.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/__tests__/set-col-visible.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/__tests__/set-numfmt.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/__tests__/set-range-values.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/__tests__/set-sheets-filter-criteria.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/__tests__/set-sheets-filter-range.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/add-data-validation.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/add-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/move-col.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/move-range.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/remove-col.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/remove-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/remove-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/set-col-hidden.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/set-col-visible.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/set-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/set-range-values.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/set-selection.algo.d.ts +8 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/set-sheets-filter-criteria.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/set-sheets-filter-range.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/set-worksheet-col-width.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/update-data-validation.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-data-validation/__test__/remove-data-validation.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-data-validation/remove-data-validation.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-numfmt/remove-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-numfmt/set-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/__tests__/move-range.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/__tests__/move-row.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/__tests__/remove-numfmt.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/__tests__/remove-row.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/__tests__/remove-worksheet-merge.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/__tests__/set-numfmt.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/__tests__/set-range-value.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/__tests__/set-row-hidden.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/__tests__/set-row-visible.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/add-data-validation.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/add-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/move-range.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/move-row.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/remove-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/remove-row.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/remove-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/set-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/set-range-values.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/set-row-hidden.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/set-row-visible.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/set-selection.algo.d.ts +8 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/set-sheets-filter-range.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/update-data-validation.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-sheets-filter/remove-sheets-filter.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-sheets-filter/set-sheets-filter-range.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/__tests__/add-worksheet-merge.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/__tests__/insert-col.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/__tests__/insert-row.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/add-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/insert-col.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/insert-row.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/move-col.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/move-row.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/remove-col.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/remove-row.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/set-selection.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-conditional-formatting-rule/__test__/set-conditional-formatting-rule.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-conditional-formatting-rule/set-conditional-formatting-rule.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-frozen/__test__/set-frozen.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-frozen/set-frozen.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-numfmt/__test__/set-numfmt.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-numfmt/remove-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-numfmt/set-numfmt.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-range-values/__test__/set-range-valuea.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-range-values/add-worksheet-merge.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-range-values/move-range.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-range-values/set-range-values.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-sheets-filter-criteria/move-range.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-sheets-filter-criteria/remove-sheets-filter.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-sheets-filter-criteria/set-range-values.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-sheets-filter-criteria/set-sheets-filter-criteria.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-sheets-filter-range/remove-sheets-filter.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-sheets-filter-range/set-sheets-filter-range.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-tab-color/__test__/set-tab-color.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-tab-color/set-tab-color.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-worksheet-col-width/set-worksheet-col-width.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/set-worksheet-name/set-worksheet-name.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/update-data-validation/__test__/add-data-validation.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/update-data-validation/__test__/remove-data-validation.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/update-data-validation/__test__/update-data-validation.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/update-data-validation/add-data-validation.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/update-data-validation/remove-data-validation.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/update-data-validation/update-data-validation.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/utils.d.ts +29 -0
- package/lib/types/controllers/sheet-transform/algorithms/worksheet/__tests__/add-worksheet-merge.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/worksheet/__tests__/remove-worksheet-merge.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/worksheet/__tests__/worksheet.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/worksheet/add-worksheet-merge.algo.d.ts +3 -0
- package/lib/types/controllers/sheet-transform/algorithms/worksheet/remove-worksheet-merge.algo.d.ts +3 -0
- package/lib/types/controllers/sheet-transform/algorithms/worksheet/worksheet.algo.d.ts +9 -0
- package/lib/types/controllers/sheet-transform/sheet-transform.controller.d.ts +10 -0
- package/lib/types/index.d.ts +12 -0
- package/lib/types/models/changeset.d.ts +16 -0
- package/lib/types/models/collaboration-events.d.ts +211 -0
- package/lib/types/models/socket-events.d.ts +54 -0
- package/lib/types/plugin.d.ts +12 -0
- package/lib/types/services/compose-changesets/compose-changesets.service.d.ts +6 -0
- package/lib/types/services/compress-mutation/compress-mutation-service.d.ts +20 -0
- package/lib/types/services/compress-mutation/compress-mutations/__test__/set-range-values.spec.d.ts +16 -0
- package/lib/types/services/compress-mutation/compress-mutations/set-range-values.d.ts +14 -0
- package/lib/types/services/rev/__tests__/rev.service.spec.d.ts +20 -0
- package/lib/types/services/rev/rev.service.d.ts +23 -0
- package/lib/types/services/snapshot/__tests__/snapshot.service.spec.d.ts +12 -0
- package/lib/types/services/snapshot/snapshot.service.d.ts +22 -0
- package/lib/types/services/transform/__tests__/doc.transform.service.spec.d.ts +1 -0
- package/lib/types/services/transform/__tests__/transform.service.spec.d.ts +1 -0
- package/lib/types/services/transform/transform.service.d.ts +115 -0
- package/lib/types/services/transform/types.d.ts +48 -0
- package/lib/types/utils.d.ts +4 -0
- package/lib/umd/index.js +1 -0
- package/package.json +79 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IRemoveRowsMutationParams, ISetSelectionsOperationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The selection transform is a special case of mutation transform which only used at local.
|
|
6
|
+
* In this case, we only need m2Prime to change current selections.
|
|
7
|
+
*/
|
|
8
|
+
export declare const removeRowMutationWithSetSelection: IMutationTransformAlgorithm<IRemoveRowsMutationParams, ISetSelectionsOperationParams>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { ISetSheetsFilterRangeMutationParams } from '@univerjs/sheets-filter';
|
|
3
|
+
import { IRemoveRowsMutationParams } from '@univerjs/sheets';
|
|
4
|
+
|
|
5
|
+
export declare const removeRowMutationWithSetSheetsFilterRange: IMutationTransformAlgorithm<IRemoveRowsMutationParams, ISetSheetsFilterRangeMutationParams>;
|
package/lib/types/controllers/sheet-transform/algorithms/remove-row/update-data-validation.algo.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IRemoveRowsMutationParams } from '@univerjs/sheets';
|
|
3
|
+
import { IUpdateDataValidationMutationParams } from '@univerjs/data-validation';
|
|
4
|
+
|
|
5
|
+
export declare const removeRowMutationWithUpdateDataValidation: IMutationTransformAlgorithm<IRemoveRowsMutationParams, IUpdateDataValidationMutationParams>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IRemoveSheetsFilterMutationParams } from '@univerjs/sheets-filter';
|
|
3
|
+
|
|
4
|
+
export declare const removeSheetsFilterWithSelf: IMutationTransformAlgorithm<IRemoveSheetsFilterMutationParams, IRemoveSheetsFilterMutationParams>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IRemoveSheetsFilterMutationParams, ISetSheetsFilterRangeMutationParams } from '@univerjs/sheets-filter';
|
|
3
|
+
|
|
4
|
+
export declare const removeSheetsFilterWithSetSheetsFilterRange: IMutationTransformAlgorithm<IRemoveSheetsFilterMutationParams, ISetSheetsFilterRangeMutationParams>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const removeWorksheetMergeMutationWithAddMerge: IMutationTransformAlgorithm<IRemoveWorksheetMergeMutationParams, IAddWorksheetMergeMutationParams>;
|
package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/insert-col.algo.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IInsertColMutationParams, IRemoveWorksheetMergeMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const removeWorksheetMergeMutationWithInsertColMutation: IMutationTransformAlgorithm<IRemoveWorksheetMergeMutationParams, IInsertColMutationParams>;
|
package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/insert-row.algo.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../..';
|
|
2
|
+
import { IInsertRowMutationParams, IRemoveWorksheetMergeMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const removeWorksheetMergeMutationWithInsertRowMutation: IMutationTransformAlgorithm<IRemoveWorksheetMergeMutationParams, IInsertRowMutationParams>;
|
package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/move-col.algo.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IMoveColumnsMutationParams, IRemoveWorksheetMergeMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const removeWorksheetMergeMutationWithMoveColMutation: IMutationTransformAlgorithm<IRemoveWorksheetMergeMutationParams, IMoveColumnsMutationParams>;
|
package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/move-row.algo.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IMoveRowsMutationParams, IRemoveWorksheetMergeMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const removeWorksheetMergeMutationWithMoveRowMutation: IMutationTransformAlgorithm<IRemoveWorksheetMergeMutationParams, IMoveRowsMutationParams>;
|
package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/remove-col.algo.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IRemoveColMutationParams, IRemoveWorksheetMergeMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const removeWorksheetMergeMutationWithRemoveColMutation: IMutationTransformAlgorithm<IRemoveWorksheetMergeMutationParams, IRemoveColMutationParams>;
|
package/lib/types/controllers/sheet-transform/algorithms/remove-worksheet-merge/remove-row.algo.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IRemoveRowsMutationParams, IRemoveWorksheetMergeMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const removeWorksheetMergeMutationWithRemoveRowMutation: IMutationTransformAlgorithm<IRemoveWorksheetMergeMutationParams, IRemoveRowsMutationParams>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IRemoveWorksheetMergeMutationParams, ISetSelectionsOperationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const removeWorksheetMergeMutationWithSetSelection: IMutationTransformAlgorithm<IRemoveWorksheetMergeMutationParams, ISetSelectionsOperationParams>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { ISetConditionalRuleMutationParams } from '@univerjs/sheets-conditional-formatting';
|
|
3
|
+
|
|
4
|
+
export declare const setConditionalFormattingRuleMutationWithSelf: IMutationTransformAlgorithm<ISetConditionalRuleMutationParams, ISetConditionalRuleMutationParams>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { ISetFrozenMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const setFrozenMutationWithSelf: IMutationTransformAlgorithm<ISetFrozenMutationParams, ISetFrozenMutationParams>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IRemoveNumfmtMutationParams, ISetNumfmtMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const setNumfmtMutationWithRemoveNumfmt: IMutationTransformAlgorithm<ISetNumfmtMutationParams, IRemoveNumfmtMutationParams>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { ISetNumfmtMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const setNumfmtMutationWithSelf: IMutationTransformAlgorithm<ISetNumfmtMutationParams, ISetNumfmtMutationParams>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IAddWorksheetMergeMutationParams, ISetRangeValuesMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const setRangeValueMutationWithAddMerge: IMutationTransformAlgorithm<ISetRangeValuesMutationParams, IAddWorksheetMergeMutationParams>;
|
package/lib/types/controllers/sheet-transform/algorithms/set-range-values/move-range.algo.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IMoveRangeMutationParams, ISetRangeValuesMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const setRangeValuesWithMoveRange: IMutationTransformAlgorithm<ISetRangeValuesMutationParams, IMoveRangeMutationParams>;
|
package/lib/types/controllers/sheet-transform/algorithms/set-range-values/set-range-values.algo.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { ISetRangeValuesMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const setRangeValuesMutationWithSelf: IMutationTransformAlgorithm<ISetRangeValuesMutationParams, ISetRangeValuesMutationParams>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IMoveRangeMutationParams } from '@univerjs/sheets';
|
|
3
|
+
import { ISetSheetsFilterCriteriaMutationParams } from '@univerjs/sheets-filter';
|
|
4
|
+
|
|
5
|
+
export declare const setSheetsFilterCriteriaWithMoveRange: IMutationTransformAlgorithm<ISetSheetsFilterCriteriaMutationParams, IMoveRangeMutationParams>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IRemoveSheetsFilterMutationParams, ISetSheetsFilterCriteriaMutationParams } from '@univerjs/sheets-filter';
|
|
3
|
+
|
|
4
|
+
export declare const setSheetsFilterCriteriaWithRemoveSheetsFilter: IMutationTransformAlgorithm<ISetSheetsFilterCriteriaMutationParams, IRemoveSheetsFilterMutationParams>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { ISetRangeValuesMutationParams } from '@univerjs/sheets';
|
|
3
|
+
import { ISetSheetsFilterCriteriaMutationParams } from '@univerjs/sheets-filter';
|
|
4
|
+
|
|
5
|
+
export declare const setSheetsFilterCriteriaWithSetRangeValues: IMutationTransformAlgorithm<ISetSheetsFilterCriteriaMutationParams, ISetRangeValuesMutationParams>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { ISetSheetsFilterCriteriaMutationParams } from '@univerjs/sheets-filter';
|
|
3
|
+
|
|
4
|
+
export declare const setSheetsFilterCriteriaWithSelf: IMutationTransformAlgorithm<ISetSheetsFilterCriteriaMutationParams, ISetSheetsFilterCriteriaMutationParams>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IRemoveSheetsFilterMutationParams, ISetSheetsFilterRangeMutationParams } from '@univerjs/sheets-filter';
|
|
3
|
+
|
|
4
|
+
export declare const setSheetsFilterRangeWithRemoveSheetsFilter: IMutationTransformAlgorithm<ISetSheetsFilterRangeMutationParams, IRemoveSheetsFilterMutationParams>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { ISetSheetsFilterRangeMutationParams } from '@univerjs/sheets-filter';
|
|
3
|
+
|
|
4
|
+
export declare const setSheetsFilterRangeWithSelf: IMutationTransformAlgorithm<ISetSheetsFilterRangeMutationParams, ISetSheetsFilterRangeMutationParams>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/types/controllers/sheet-transform/algorithms/set-tab-color/set-tab-color.algo.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { ISetTabColorMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const setTabColorMutationWithSelf: IMutationTransformAlgorithm<ISetTabColorMutationParams, ISetTabColorMutationParams>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { ISetWorksheetColWidthMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const setWorksheetColWidthMutationWithSelf: IMutationTransformAlgorithm<ISetWorksheetColWidthMutationParams, ISetWorksheetColWidthMutationParams>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { ISetWorksheetNameMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const setWorksheetNameMutationWithSelf: IMutationTransformAlgorithm<ISetWorksheetNameMutationParams, ISetWorksheetNameMutationParams>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IAddDataValidationMutationParams, IUpdateDataValidationMutationParams } from '@univerjs/data-validation';
|
|
3
|
+
|
|
4
|
+
export declare const updateDataValidationMutationWithAdd: IMutationTransformAlgorithm<IUpdateDataValidationMutationParams, IAddDataValidationMutationParams>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IRemoveDataValidationMutationParams, IUpdateDataValidationMutationParams } from '@univerjs/data-validation';
|
|
3
|
+
|
|
4
|
+
export declare const updateDataValidationMutationWithRemoveSelf: IMutationTransformAlgorithm<IUpdateDataValidationMutationParams, IRemoveDataValidationMutationParams>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { IUpdateDataValidationMutationParams } from '@univerjs/data-validation';
|
|
3
|
+
|
|
4
|
+
export declare const updateDataValidationMutationWithSelf: IMutationTransformAlgorithm<IUpdateDataValidationMutationParams, IUpdateDataValidationMutationParams>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ICellData, IObjectMatrixPrimitiveType, IRange, Nullable, RANGE_TYPE } from '@univerjs/core';
|
|
2
|
+
|
|
3
|
+
export declare function toColumn(range: IRange): {
|
|
4
|
+
rangeType: RANGE_TYPE;
|
|
5
|
+
startColumn: number;
|
|
6
|
+
endColumn: number;
|
|
7
|
+
startAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType | undefined;
|
|
8
|
+
endAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType | undefined;
|
|
9
|
+
startRow: number;
|
|
10
|
+
endRow: number;
|
|
11
|
+
};
|
|
12
|
+
export declare function moveRows(o: IObjectMatrixPrimitiveType<Nullable<ICellData>>, start: number, count: number, offset: number): void;
|
|
13
|
+
export declare function moveColumns(o: IObjectMatrixPrimitiveType<Nullable<ICellData>>, start: number, count: number, offset: number): void;
|
|
14
|
+
export declare function RangeSubtractRanges(main: IRange, excepts: IRange[]): IRange[];
|
|
15
|
+
export declare function processFormulaString(unitId: string, subUnitId: string, formulaString: string, rangeFunc: (range: IRange) => IRange | null): string;
|
|
16
|
+
export declare function getRangeByFormulaString(formulaString: string): IRange[];
|
|
17
|
+
interface ILine {
|
|
18
|
+
start: number;
|
|
19
|
+
end: number;
|
|
20
|
+
}
|
|
21
|
+
export interface ISheetRangeLocation {
|
|
22
|
+
range: IRange;
|
|
23
|
+
subUnitId: string;
|
|
24
|
+
unitId: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function intersect(line1: ILine, line2: ILine): boolean;
|
|
27
|
+
export declare function handleInsert(insert: ILine, target: ILine): ILine;
|
|
28
|
+
export declare function handleRemove(remove: ILine, target: ILine): ILine | null;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
|
|
2
|
+
import { ISetWorksheetOrderMutationParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export declare const InsertSheetMutationWithSelf: IMutationTransformAlgorithm;
|
|
5
|
+
export declare const RemoveSheetMutationWithOthers: IMutationTransformAlgorithm;
|
|
6
|
+
export declare const SetWorksheetOrderMutationWithSelf: IMutationTransformAlgorithm<ISetWorksheetOrderMutationParams, ISetWorksheetOrderMutationParams>;
|
|
7
|
+
export declare const InsetSheetMutationWithSetWorksheetOrder: IMutationTransformAlgorithm;
|
|
8
|
+
export declare const OthersWithRemoveSheetMutation: IMutationTransformAlgorithm;
|
|
9
|
+
export declare const WorksheetAlgorithms: Array<IMutationTransformAlgorithm>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ITransformService } from '../../services/transform/transform.service';
|
|
2
|
+
import { Disposable } from '@univerjs/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This controller register sheet transform algorithms to the transform service.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SheetTransformController extends Disposable {
|
|
8
|
+
private readonly _transformService;
|
|
9
|
+
constructor(_transformService: ITransformService);
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { SheetTransformController } from './controllers/sheet-transform/sheet-transform.controller';
|
|
2
|
+
export { DocTransformController } from './controllers/doc-transform/doc-transform.controller';
|
|
3
|
+
export { type IChangeset, parseChangesetToProtocol, parseMutationToProtocol, parseProtocolChangeset, parseProtocolMutation, } from './models/changeset';
|
|
4
|
+
export { CollaborationEvent, type IAcknowledgedChangeset, type IAcknowledgementEvent, type ICollaborationEvent, type ICollaborationUser, type IFetchingMissEvent, type IFetchOperationsEvent, type INewChangesetsEvent, type INewHostEvent, type IOperationEvent, type IPseudoFetchMissingResultEvent, type IRejectedChangeset, type IRejectionEvent, type IRequestHostEvent, type ISubmitChangesetEvent, type ITerminateEvent, type IUpdateCursorEvent, type IUserJoinEvent, type IUserLeaveEvent, type IUserSelectionEvent, } from './models/collaboration-events';
|
|
5
|
+
export { type ICombRequestEvent, type ICombResponseEvent, type IHeartbeatRequestEvent, type IHeartbeatResponseEvent, type IHelloRequestEvent, type IHelloResponseEvent, type IIngestQuestEvent, type IJoinRequestEvent, type IJoinResponseEvent, type ILeaveRequestEvent, type IRecvResponseEvent, } from './models/socket-events';
|
|
6
|
+
export { CollaborationPlugin } from './plugin';
|
|
7
|
+
export { CompressMutationService } from './services/compress-mutation/compress-mutation-service';
|
|
8
|
+
export { RevisionService, SINGLE_SNAPSHOT_MUTATIONS } from './services/rev/rev.service';
|
|
9
|
+
export { SnapshotService } from './services/snapshot/snapshot.service';
|
|
10
|
+
export { type IMutationTransformAlgorithm, ITransformService, TransformService, makeArray, } from './services/transform/transform.service';
|
|
11
|
+
export { type IFailureTransformChangesetsResult, type IFailureTransformMutationResult, type IFailureTransformMutationsResult, type IFailureTransformMutationsWithChangesetResult, isTransformChangesetsFailure, isTransformChangesetsSuccess, isTransformMutationFailure, isTransformMutationsFailure, isTransformMutationsSuccess, isTransformMutationSuccess, isTransformMutationsWithChangesetFailure, isTransformMutationsWithChangesetSuccess, type ISuccessTransformChangesetsResult, type ISuccessTransformMutationResult, type ISuccessTransformMutationsResult, type ISuccessTransformMutationsWithChangesetResult, type ITransformChangesetsResult, type ITransformMutationResult, type ITransformMutationsResult, type ITransformMutationsWithChangesetResult, } from './services/transform/types';
|
|
12
|
+
export { mapDocumentTypeToUniverType } from './utils';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IChangeset as IProtocolChangeset, IMutation as IProtocolMutation, UniverType } from '@univerjs/protocol';
|
|
2
|
+
import { IMutationInfo } from '@univerjs/core';
|
|
3
|
+
|
|
4
|
+
export interface IChangeset {
|
|
5
|
+
unitID: string;
|
|
6
|
+
type: UniverType;
|
|
7
|
+
baseRev: number;
|
|
8
|
+
revision: number;
|
|
9
|
+
userID: string;
|
|
10
|
+
mutations: IMutationInfo[];
|
|
11
|
+
memberID: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function parseProtocolChangeset(protocolChangeset: IProtocolChangeset): IChangeset;
|
|
14
|
+
export declare function parseChangesetToProtocol(changeset: IChangeset): IProtocolChangeset;
|
|
15
|
+
export declare function parseProtocolMutation(mutation: IProtocolMutation): IMutationInfo;
|
|
16
|
+
export declare function parseMutationToProtocol(mutation: IMutationInfo): IProtocolMutation;
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { IChangeset } from './changeset';
|
|
2
|
+
import { ICollaMsgErrorEvent, ICollaMsgJoin, ICollaMsgLeave, ILiveShareNewHost, ILiveShareOperation, ILiveShareRequestHost, ILiveShareTerminate, IChangeset as IProtocolChangeset, IUpdateCursor, UniverType } from '@univerjs/protocol';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Types of all possible collaboration events.
|
|
6
|
+
*
|
|
7
|
+
* CollaborationEvents is a subset of `CombEvent.RECV`.
|
|
8
|
+
*/
|
|
9
|
+
export declare enum CollaborationEvent {
|
|
10
|
+
/**
|
|
11
|
+
* When the collaboration session is created, the client may send this event to the server.
|
|
12
|
+
* In the payload, the client will tell the server the its local revision. The server
|
|
13
|
+
* could emit missing changesets to the client using event `NEW_CHANGESETS`.
|
|
14
|
+
*/
|
|
15
|
+
FETCH_MISSING = "fetch_missing",
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
PSEUDO_FETCH_MISSING_RESULT = "pseudo_fetch_missing_result",
|
|
20
|
+
/**
|
|
21
|
+
* The client submit a changeset to the server.
|
|
22
|
+
*/
|
|
23
|
+
SUBMIT_CHANGESET = "submit_changeset",
|
|
24
|
+
/**
|
|
25
|
+
* The submitted changeset is acknowledged by the server.
|
|
26
|
+
*/
|
|
27
|
+
CHANGESET_ACK = "changeset_ack",
|
|
28
|
+
/**
|
|
29
|
+
* The submitted changeset could not be transformed by the server, so
|
|
30
|
+
* the changeset should be rejected.
|
|
31
|
+
*/
|
|
32
|
+
CHANGESET_REJ = "changeset_rej",
|
|
33
|
+
/**
|
|
34
|
+
* When a changeset sent by the client is acknowledged by the server,
|
|
35
|
+
* the server should broadcast this changeset to other clients.
|
|
36
|
+
*
|
|
37
|
+
* Note that this event would not be sent via the websocket but http.
|
|
38
|
+
*/
|
|
39
|
+
NEW_CHANGESETS = "new_changesets",
|
|
40
|
+
/**
|
|
41
|
+
* When a client updates its cursor position, it would send this event to
|
|
42
|
+
* the server. The server would also broadcast this event to other peer
|
|
43
|
+
* clients.
|
|
44
|
+
*/
|
|
45
|
+
UPDATE_CURSOR = "update_cursor",
|
|
46
|
+
/**
|
|
47
|
+
* When a client connect the collaboration session, the server should
|
|
48
|
+
* broadcast this event to all other clients.
|
|
49
|
+
*/
|
|
50
|
+
USERS_ENTER = "users_enter",
|
|
51
|
+
/**
|
|
52
|
+
* When a client disconnect the collaboration session, the server should
|
|
53
|
+
* broadcast this event to all other clients.
|
|
54
|
+
*/
|
|
55
|
+
USERS_LEAVE = "users_leave",
|
|
56
|
+
/**
|
|
57
|
+
* The collaboration unit is deleted on the server.
|
|
58
|
+
*/
|
|
59
|
+
UNIT_DELETE = "unit_delete",
|
|
60
|
+
/**
|
|
61
|
+
* This client requests itself to be the live share host. Sent by clients.
|
|
62
|
+
*/
|
|
63
|
+
LIVESHARE_REQUEST_HOST = "liveshare.request_host",
|
|
64
|
+
/**
|
|
65
|
+
* New host is elected. Sent by the server.
|
|
66
|
+
*/
|
|
67
|
+
LIVESHARE_NEW_HOST = "liveshare.new_host",
|
|
68
|
+
/**
|
|
69
|
+
* A operation sent from the live share host. Sent by the host client and
|
|
70
|
+
* broadcasted by the server. For each `operation.id`, the server should
|
|
71
|
+
* cache let latest value for followers who come into the live share room
|
|
72
|
+
* later.
|
|
73
|
+
*/
|
|
74
|
+
LIVESHARE_OPERATION = "liveshare.operation",
|
|
75
|
+
/**
|
|
76
|
+
* Fetch all operations from the live share host. for some scenarios:
|
|
77
|
+
* 1. when a client comes into the live share room, it should fetch all
|
|
78
|
+
* 2. when a client miss some operations, it should fetch all
|
|
79
|
+
*/
|
|
80
|
+
LIVESHARE_FETCH_OPERATIONS = "liveshare.fetch_operations",
|
|
81
|
+
/**
|
|
82
|
+
* Send by the presenter to terminate live share. Should be broadcasted to
|
|
83
|
+
* all followers.
|
|
84
|
+
*/
|
|
85
|
+
LIVESHARE_TERMINATE = "liveshare.terminate",
|
|
86
|
+
/**
|
|
87
|
+
* This type will be returned if an error is reported.
|
|
88
|
+
*/
|
|
89
|
+
MSG_FOR_ERROR = "error_msg"
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Awaiting mutations were acknowledged by the server.
|
|
93
|
+
*/
|
|
94
|
+
export interface IAcknowledgedChangeset {
|
|
95
|
+
/** The rev of the document when this changeset is assembled. */
|
|
96
|
+
baseRev: number;
|
|
97
|
+
/** The rev version given by the server. */
|
|
98
|
+
revision: number;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Awaiting mutations were rejected by the server.
|
|
102
|
+
*/
|
|
103
|
+
export interface IRejectedChangeset {
|
|
104
|
+
baseRev: number;
|
|
105
|
+
revision: number;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* When the collaboration session is created, it should send a handshake event to the server.
|
|
109
|
+
*/
|
|
110
|
+
export interface IFetchingMissEvent {
|
|
111
|
+
eventID: CollaborationEvent.FETCH_MISSING;
|
|
112
|
+
data: {
|
|
113
|
+
unitID: string;
|
|
114
|
+
unitType: UniverType;
|
|
115
|
+
from: number;
|
|
116
|
+
to: number;
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
export interface IPseudoFetchMissingResultEvent {
|
|
120
|
+
eventID: CollaborationEvent.PSEUDO_FETCH_MISSING_RESULT;
|
|
121
|
+
data: {
|
|
122
|
+
changesets: IProtocolChangeset[];
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
/** Receives a changeset from collaboration server. */
|
|
126
|
+
export interface INewChangesetsEvent {
|
|
127
|
+
eventID: CollaborationEvent.NEW_CHANGESETS;
|
|
128
|
+
data: IProtocolChangeset;
|
|
129
|
+
}
|
|
130
|
+
/** Send a changeset to the collaboration sever. */
|
|
131
|
+
export interface ISubmitChangesetEvent {
|
|
132
|
+
eventID: CollaborationEvent.SUBMIT_CHANGESET;
|
|
133
|
+
data: {
|
|
134
|
+
unitID: string;
|
|
135
|
+
unitType: UniverType;
|
|
136
|
+
memberID: string;
|
|
137
|
+
changeset: IChangeset;
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
export interface IAcknowledgementEvent {
|
|
141
|
+
eventID: CollaborationEvent.CHANGESET_ACK;
|
|
142
|
+
data: IProtocolChangeset;
|
|
143
|
+
}
|
|
144
|
+
export interface IRejectionEvent {
|
|
145
|
+
eventID: CollaborationEvent.CHANGESET_REJ;
|
|
146
|
+
data: {
|
|
147
|
+
unitID: string;
|
|
148
|
+
changeset: IRejectedChangeset;
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
export interface ICollaborationUser {
|
|
152
|
+
userID: string;
|
|
153
|
+
memberID: string;
|
|
154
|
+
name: string;
|
|
155
|
+
}
|
|
156
|
+
export interface IUserSelectionEvent {
|
|
157
|
+
eventID: CollaborationEvent.UPDATE_CURSOR;
|
|
158
|
+
data: {
|
|
159
|
+
/** The selection is serialized. */
|
|
160
|
+
selection: string;
|
|
161
|
+
userID: string;
|
|
162
|
+
memberID: string;
|
|
163
|
+
unitID: string;
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
export interface IUpdateCursorEvent {
|
|
167
|
+
eventID: CollaborationEvent.UPDATE_CURSOR;
|
|
168
|
+
data: IUpdateCursor;
|
|
169
|
+
}
|
|
170
|
+
export interface IUserJoinEvent {
|
|
171
|
+
eventID: CollaborationEvent.USERS_ENTER;
|
|
172
|
+
data: ICollaMsgJoin;
|
|
173
|
+
}
|
|
174
|
+
export interface IUserLeaveEvent {
|
|
175
|
+
eventID: CollaborationEvent.USERS_LEAVE;
|
|
176
|
+
data: ICollaMsgLeave;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* The special type for other features to reuse collaboration session.
|
|
180
|
+
*/
|
|
181
|
+
export interface ICustomEvent {
|
|
182
|
+
eventID: string;
|
|
183
|
+
data: any;
|
|
184
|
+
}
|
|
185
|
+
export interface IRequestHostEvent {
|
|
186
|
+
eventID: CollaborationEvent.LIVESHARE_REQUEST_HOST;
|
|
187
|
+
data: ILiveShareRequestHost;
|
|
188
|
+
}
|
|
189
|
+
export interface IFetchOperationsEvent {
|
|
190
|
+
eventID: CollaborationEvent.LIVESHARE_FETCH_OPERATIONS;
|
|
191
|
+
}
|
|
192
|
+
export interface ITerminateEvent {
|
|
193
|
+
eventID: CollaborationEvent.LIVESHARE_TERMINATE;
|
|
194
|
+
data: ILiveShareTerminate;
|
|
195
|
+
}
|
|
196
|
+
export interface INewHostEvent {
|
|
197
|
+
eventID: CollaborationEvent.LIVESHARE_NEW_HOST;
|
|
198
|
+
data: ILiveShareNewHost;
|
|
199
|
+
}
|
|
200
|
+
export interface IOperationEvent {
|
|
201
|
+
eventID: CollaborationEvent.LIVESHARE_OPERATION;
|
|
202
|
+
data: ILiveShareOperation;
|
|
203
|
+
}
|
|
204
|
+
export interface IMsgErrEvent {
|
|
205
|
+
eventID: CollaborationEvent.MSG_FOR_ERROR;
|
|
206
|
+
data: ICollaMsgErrorEvent;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* A union type of all possible collaboration events.
|
|
210
|
+
*/
|
|
211
|
+
export type ICollaborationEvent = IAcknowledgementEvent | INewChangesetsEvent | IRejectionEvent | ISubmitChangesetEvent | IPseudoFetchMissingResultEvent | IUserSelectionEvent | IFetchingMissEvent | IUpdateCursorEvent | IUserJoinEvent | IUserLeaveEvent | ICustomEvent | IRequestHostEvent | IFetchOperationsEvent | ITerminateEvent | INewHostEvent | IOperationEvent | IMsgErrEvent;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ICollaborationEvent } from './collaboration-events';
|
|
2
|
+
import { CmdRspCode, CombCmd, ICombJoinRequest, ICombJoinResponse, ICombLeaveRequest } from '@univerjs/protocol';
|
|
3
|
+
|
|
4
|
+
interface ICombCmdRequest {
|
|
5
|
+
cmd: CombCmd;
|
|
6
|
+
routeKey: string;
|
|
7
|
+
routeType: string;
|
|
8
|
+
data?: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface IHelloRequestEvent extends ICombCmdRequest {
|
|
11
|
+
cmd: CombCmd.HELLO;
|
|
12
|
+
}
|
|
13
|
+
export interface IJoinRequestEvent extends ICombCmdRequest {
|
|
14
|
+
cmd: CombCmd.JOIN;
|
|
15
|
+
data: ICombJoinRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface ILeaveRequestEvent extends ICombCmdRequest {
|
|
18
|
+
cmd: CombCmd.LEAVE;
|
|
19
|
+
data: ICombLeaveRequest;
|
|
20
|
+
}
|
|
21
|
+
export interface IIngestQuestEvent extends ICombCmdRequest {
|
|
22
|
+
cmd: CombCmd.INGEST;
|
|
23
|
+
data: ICollaborationEvent;
|
|
24
|
+
}
|
|
25
|
+
export interface IHeartbeatRequestEvent extends ICombCmdRequest {
|
|
26
|
+
cmd: CombCmd.HEARTBEAT;
|
|
27
|
+
}
|
|
28
|
+
export type ICombRequestEvent = IHelloRequestEvent | IJoinRequestEvent | ILeaveRequestEvent | IIngestQuestEvent | IHeartbeatRequestEvent;
|
|
29
|
+
interface ICombCmdResponse {
|
|
30
|
+
cmd: CombCmd;
|
|
31
|
+
code: CmdRspCode;
|
|
32
|
+
routeKey: string;
|
|
33
|
+
data?: unknown;
|
|
34
|
+
}
|
|
35
|
+
export interface IHelloResponseEvent extends ICombCmdResponse {
|
|
36
|
+
cmd: CombCmd.HELLO;
|
|
37
|
+
/** The client will not send `data` but the server would respond with `data`. */
|
|
38
|
+
data: {
|
|
39
|
+
memberID: string;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export interface IJoinResponseEvent extends ICombCmdResponse {
|
|
43
|
+
cmd: CombCmd.JOIN;
|
|
44
|
+
data: ICombJoinResponse;
|
|
45
|
+
}
|
|
46
|
+
export interface IRecvResponseEvent extends ICombCmdResponse {
|
|
47
|
+
cmd: CombCmd.RECV;
|
|
48
|
+
data: ICollaborationEvent;
|
|
49
|
+
}
|
|
50
|
+
export interface IHeartbeatResponseEvent extends ICombCmdResponse {
|
|
51
|
+
cmd: CombCmd.HEARTBEAT;
|
|
52
|
+
}
|
|
53
|
+
export type ICombResponseEvent = IHelloResponseEvent | IJoinResponseEvent | IRecvResponseEvent | IHeartbeatResponseEvent;
|
|
54
|
+
export {};
|