@mog-sdk/spreadsheet-contracts 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accessibility/index.d.ts +9 -0
- package/dist/accessibility/index.d.ts.map +1 -0
- package/dist/accessibility/types.d.ts +75 -0
- package/dist/accessibility/types.d.ts.map +1 -0
- package/dist/actions/comments.d.ts +31 -0
- package/dist/actions/comments.d.ts.map +1 -0
- package/dist/actions/index.d.ts +22 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/types.d.ts +448 -0
- package/dist/actions/types.d.ts.map +1 -0
- package/dist/actors/chart.d.ts +88 -0
- package/dist/actors/chart.d.ts.map +1 -0
- package/dist/actors/clipboard.d.ts +243 -0
- package/dist/actors/clipboard.d.ts.map +1 -0
- package/dist/actors/commands.d.ts +1343 -0
- package/dist/actors/commands.d.ts.map +1 -0
- package/dist/actors/comment.d.ts +84 -0
- package/dist/actors/comment.d.ts.map +1 -0
- package/dist/actors/draw-border.d.ts +89 -0
- package/dist/actors/draw-border.d.ts.map +1 -0
- package/dist/actors/editor.d.ts +161 -0
- package/dist/actors/editor.d.ts.map +1 -0
- package/dist/actors/find-replace.d.ts +88 -0
- package/dist/actors/find-replace.d.ts.map +1 -0
- package/dist/actors/focus.d.ts +91 -0
- package/dist/actors/focus.d.ts.map +1 -0
- package/dist/actors/index.d.ts +88 -0
- package/dist/actors/index.d.ts.map +1 -0
- package/dist/actors/input.d.ts +98 -0
- package/dist/actors/input.d.ts.map +1 -0
- package/dist/actors/object-interaction.d.ts +163 -0
- package/dist/actors/object-interaction.d.ts.map +1 -0
- package/dist/actors/object.d.ts +124 -0
- package/dist/actors/object.d.ts.map +1 -0
- package/dist/actors/page-break.d.ts +64 -0
- package/dist/actors/page-break.d.ts.map +1 -0
- package/dist/actors/pane-focus.d.ts +56 -0
- package/dist/actors/pane-focus.d.ts.map +1 -0
- package/dist/actors/renderer.d.ts +197 -0
- package/dist/actors/renderer.d.ts.map +1 -0
- package/dist/actors/selection.d.ts +170 -0
- package/dist/actors/selection.d.ts.map +1 -0
- package/dist/actors/slicer.d.ts +175 -0
- package/dist/actors/slicer.d.ts.map +1 -0
- package/dist/actors/smartart.d.ts +48 -0
- package/dist/actors/smartart.d.ts.map +1 -0
- package/dist/api/index.d.ts +19 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/mutation-receipt.d.ts +26 -0
- package/dist/api/mutation-receipt.d.ts.map +1 -0
- package/dist/api/types.d.ts +1542 -0
- package/dist/api/types.d.ts.map +1 -0
- package/dist/api/workbook/history.d.ts +43 -0
- package/dist/api/workbook/history.d.ts.map +1 -0
- package/dist/api/workbook/index.d.ts +17 -0
- package/dist/api/workbook/index.d.ts.map +1 -0
- package/dist/api/workbook/names.d.ts +104 -0
- package/dist/api/workbook/names.d.ts.map +1 -0
- package/dist/api/workbook/notifications.d.ts +35 -0
- package/dist/api/workbook/notifications.d.ts.map +1 -0
- package/dist/api/workbook/protection.d.ts +14 -0
- package/dist/api/workbook/protection.d.ts.map +1 -0
- package/dist/api/workbook/scenarios.d.ts +45 -0
- package/dist/api/workbook/scenarios.d.ts.map +1 -0
- package/dist/api/workbook/sheets.d.ts +74 -0
- package/dist/api/workbook/sheets.d.ts.map +1 -0
- package/dist/api/workbook/slicers.d.ts +63 -0
- package/dist/api/workbook/slicers.d.ts.map +1 -0
- package/dist/api/workbook/styles.d.ts +19 -0
- package/dist/api/workbook/styles.d.ts.map +1 -0
- package/dist/api/workbook/theme.d.ts +38 -0
- package/dist/api/workbook/theme.d.ts.map +1 -0
- package/dist/api/workbook/viewport.d.ts +85 -0
- package/dist/api/workbook/viewport.d.ts.map +1 -0
- package/dist/api/workbook.d.ts +279 -0
- package/dist/api/workbook.d.ts.map +1 -0
- package/dist/api/worksheet/bindings.d.ts +66 -0
- package/dist/api/worksheet/bindings.d.ts.map +1 -0
- package/dist/api/worksheet/changes.d.ts +60 -0
- package/dist/api/worksheet/changes.d.ts.map +1 -0
- package/dist/api/worksheet/charts.d.ts +83 -0
- package/dist/api/worksheet/charts.d.ts.map +1 -0
- package/dist/api/worksheet/collections/connector-collection.d.ts +7 -0
- package/dist/api/worksheet/collections/connector-collection.d.ts.map +1 -0
- package/dist/api/worksheet/collections/drawing-collection.d.ts +9 -0
- package/dist/api/worksheet/collections/drawing-collection.d.ts.map +1 -0
- package/dist/api/worksheet/collections/equation-collection.d.ts +8 -0
- package/dist/api/worksheet/collections/equation-collection.d.ts.map +1 -0
- package/dist/api/worksheet/collections/index.d.ts +12 -0
- package/dist/api/worksheet/collections/index.d.ts.map +1 -0
- package/dist/api/worksheet/collections/object-collection.d.ts +45 -0
- package/dist/api/worksheet/collections/object-collection.d.ts.map +1 -0
- package/dist/api/worksheet/collections/picture-collection.d.ts +8 -0
- package/dist/api/worksheet/collections/picture-collection.d.ts.map +1 -0
- package/dist/api/worksheet/collections/shape-collection.d.ts +8 -0
- package/dist/api/worksheet/collections/shape-collection.d.ts.map +1 -0
- package/dist/api/worksheet/collections/textbox-collection.d.ts +8 -0
- package/dist/api/worksheet/collections/textbox-collection.d.ts.map +1 -0
- package/dist/api/worksheet/collections/wordart-collection.d.ts +8 -0
- package/dist/api/worksheet/collections/wordart-collection.d.ts.map +1 -0
- package/dist/api/worksheet/comments.d.ts +143 -0
- package/dist/api/worksheet/comments.d.ts.map +1 -0
- package/dist/api/worksheet/conditional-formats.d.ts +101 -0
- package/dist/api/worksheet/conditional-formats.d.ts.map +1 -0
- package/dist/api/worksheet/filters.d.ts +141 -0
- package/dist/api/worksheet/filters.d.ts.map +1 -0
- package/dist/api/worksheet/form-controls.d.ts +22 -0
- package/dist/api/worksheet/form-controls.d.ts.map +1 -0
- package/dist/api/worksheet/format-mappings.d.ts +50 -0
- package/dist/api/worksheet/format-mappings.d.ts.map +1 -0
- package/dist/api/worksheet/formats.d.ts +136 -0
- package/dist/api/worksheet/formats.d.ts.map +1 -0
- package/dist/api/worksheet/handles/chart-handle.d.ts +11 -0
- package/dist/api/worksheet/handles/chart-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/connector-handle.d.ts +9 -0
- package/dist/api/worksheet/handles/connector-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/drawing-handle.d.ts +14 -0
- package/dist/api/worksheet/handles/drawing-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/equation-handle.d.ts +9 -0
- package/dist/api/worksheet/handles/equation-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/floating-object-handle.d.ts +75 -0
- package/dist/api/worksheet/handles/floating-object-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/index.d.ts +16 -0
- package/dist/api/worksheet/handles/index.d.ts.map +1 -0
- package/dist/api/worksheet/handles/ole-object-handle.d.ts +10 -0
- package/dist/api/worksheet/handles/ole-object-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/picture-handle.d.ts +9 -0
- package/dist/api/worksheet/handles/picture-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/shape-handle.d.ts +11 -0
- package/dist/api/worksheet/handles/shape-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/slicer-handle.d.ts +13 -0
- package/dist/api/worksheet/handles/slicer-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/smartart-handle.d.ts +11 -0
- package/dist/api/worksheet/handles/smartart-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/textbox-handle.d.ts +9 -0
- package/dist/api/worksheet/handles/textbox-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/wordart-handle.d.ts +10 -0
- package/dist/api/worksheet/handles/wordart-handle.d.ts.map +1 -0
- package/dist/api/worksheet/hyperlinks.d.ts +52 -0
- package/dist/api/worksheet/hyperlinks.d.ts.map +1 -0
- package/dist/api/worksheet/index.d.ts +35 -0
- package/dist/api/worksheet/index.d.ts.map +1 -0
- package/dist/api/worksheet/internal.d.ts +105 -0
- package/dist/api/worksheet/internal.d.ts.map +1 -0
- package/dist/api/worksheet/layout.d.ts +150 -0
- package/dist/api/worksheet/layout.d.ts.map +1 -0
- package/dist/api/worksheet/names.d.ts +52 -0
- package/dist/api/worksheet/names.d.ts.map +1 -0
- package/dist/api/worksheet/objects.d.ts +124 -0
- package/dist/api/worksheet/objects.d.ts.map +1 -0
- package/dist/api/worksheet/outline.d.ts +101 -0
- package/dist/api/worksheet/outline.d.ts.map +1 -0
- package/dist/api/worksheet/pivots.d.ts +257 -0
- package/dist/api/worksheet/pivots.d.ts.map +1 -0
- package/dist/api/worksheet/print.d.ts +108 -0
- package/dist/api/worksheet/print.d.ts.map +1 -0
- package/dist/api/worksheet/protection.d.ts +73 -0
- package/dist/api/worksheet/protection.d.ts.map +1 -0
- package/dist/api/worksheet/settings.d.ts +54 -0
- package/dist/api/worksheet/settings.d.ts.map +1 -0
- package/dist/api/worksheet/slicers.d.ts +101 -0
- package/dist/api/worksheet/slicers.d.ts.map +1 -0
- package/dist/api/worksheet/smartart.d.ts +49 -0
- package/dist/api/worksheet/smartart.d.ts.map +1 -0
- package/dist/api/worksheet/sparklines.d.ts +143 -0
- package/dist/api/worksheet/sparklines.d.ts.map +1 -0
- package/dist/api/worksheet/structure.d.ts +44 -0
- package/dist/api/worksheet/structure.d.ts.map +1 -0
- package/dist/api/worksheet/tables.d.ts +313 -0
- package/dist/api/worksheet/tables.d.ts.map +1 -0
- package/dist/api/worksheet/validation.d.ts +101 -0
- package/dist/api/worksheet/validation.d.ts.map +1 -0
- package/dist/api/worksheet/view.d.ts +91 -0
- package/dist/api/worksheet/view.d.ts.map +1 -0
- package/dist/api/worksheet.d.ts +370 -0
- package/dist/api/worksheet.d.ts.map +1 -0
- package/dist/app/index.d.ts +17 -0
- package/dist/app/index.d.ts.map +1 -0
- package/dist/app/types.d.ts +349 -0
- package/dist/app/types.d.ts.map +1 -0
- package/dist/apps/api.d.ts +519 -0
- package/dist/apps/api.d.ts.map +1 -0
- package/dist/apps/bindings.d.ts +72 -0
- package/dist/apps/bindings.d.ts.map +1 -0
- package/dist/apps/index.d.ts +13 -0
- package/dist/apps/index.d.ts.map +1 -0
- package/dist/apps/types.d.ts +224 -0
- package/dist/apps/types.d.ts.map +1 -0
- package/dist/apps/views.d.ts +142 -0
- package/dist/apps/views.d.ts.map +1 -0
- package/dist/bridges/chart-bridge.d.ts +172 -0
- package/dist/bridges/chart-bridge.d.ts.map +1 -0
- package/dist/bridges/equation-bridge.d.ts +74 -0
- package/dist/bridges/equation-bridge.d.ts.map +1 -0
- package/dist/bridges/index.d.ts +25 -0
- package/dist/bridges/index.d.ts.map +1 -0
- package/dist/bridges/ink-recognition-bridge.d.ts +142 -0
- package/dist/bridges/ink-recognition-bridge.d.ts.map +1 -0
- package/dist/bridges/locale-bridge.d.ts +93 -0
- package/dist/bridges/locale-bridge.d.ts.map +1 -0
- package/dist/bridges/pivot-bridge.d.ts +201 -0
- package/dist/bridges/pivot-bridge.d.ts.map +1 -0
- package/dist/bridges/schema-bridge.d.ts +137 -0
- package/dist/bridges/schema-bridge.d.ts.map +1 -0
- package/dist/bridges/smartart-bridge.d.ts +217 -0
- package/dist/bridges/smartart-bridge.d.ts.map +1 -0
- package/dist/bridges/wordart-bridge.d.ts +86 -0
- package/dist/bridges/wordart-bridge.d.ts.map +1 -0
- package/dist/capabilities/errors.d.ts +16 -0
- package/dist/capabilities/errors.d.ts.map +1 -0
- package/dist/capabilities/gated-api.d.ts +355 -0
- package/dist/capabilities/gated-api.d.ts.map +1 -0
- package/dist/capabilities/grants.d.ts +239 -0
- package/dist/capabilities/grants.d.ts.map +1 -0
- package/dist/capabilities/index.d.ts +24 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/manifest.d.ts +128 -0
- package/dist/capabilities/manifest.d.ts.map +1 -0
- package/dist/capabilities/requester.d.ts +209 -0
- package/dist/capabilities/requester.d.ts.map +1 -0
- package/dist/capabilities/scope.d.ts +55 -0
- package/dist/capabilities/scope.d.ts.map +1 -0
- package/dist/capabilities/sensitive.d.ts +279 -0
- package/dist/capabilities/sensitive.d.ts.map +1 -0
- package/dist/capabilities/taxonomy.d.ts +15 -0
- package/dist/capabilities/taxonomy.d.ts.map +1 -0
- package/dist/capabilities/types.d.ts +91 -0
- package/dist/capabilities/types.d.ts.map +1 -0
- package/dist/cells/cell-identity.d.ts +281 -0
- package/dist/cells/cell-identity.d.ts.map +1 -0
- package/dist/cells/cell-style.d.ts +67 -0
- package/dist/cells/cell-style.d.ts.map +1 -0
- package/dist/cells/formula-string.d.ts +37 -0
- package/dist/cells/formula-string.d.ts.map +1 -0
- package/dist/cells/index.d.ts +7 -0
- package/dist/cells/index.d.ts.map +1 -0
- package/dist/cells/range-ref.d.ts +77 -0
- package/dist/cells/range-ref.d.ts.map +1 -0
- package/dist/cells/rich-text.d.ts +66 -0
- package/dist/cells/rich-text.d.ts.map +1 -0
- package/dist/cells/spill.d.ts +121 -0
- package/dist/cells/spill.d.ts.map +1 -0
- package/dist/conditional-format/index.d.ts +11 -0
- package/dist/conditional-format/index.d.ts.map +1 -0
- package/dist/conditional-format/presets.d.ts +54 -0
- package/dist/conditional-format/presets.d.ts.map +1 -0
- package/dist/conditional-format/range-utils.d.ts +11 -0
- package/dist/conditional-format/range-utils.d.ts.map +1 -0
- package/dist/conditional-format/render-types.d.ts +80 -0
- package/dist/conditional-format/render-types.d.ts.map +1 -0
- package/dist/connections/api-errors.d.ts +29 -0
- package/dist/connections/api-errors.d.ts.map +1 -0
- package/dist/connections/api.d.ts +879 -0
- package/dist/connections/api.d.ts.map +1 -0
- package/dist/connections/database-bridge-types.d.ts +108 -0
- package/dist/connections/database-bridge-types.d.ts.map +1 -0
- package/dist/connections/index.d.ts +5 -0
- package/dist/connections/index.d.ts.map +1 -0
- package/dist/connections/power-query.d.ts +1 -0
- package/dist/connections/power-query.d.ts.map +1 -0
- package/dist/connections/query.d.ts +144 -0
- package/dist/connections/query.d.ts.map +1 -0
- package/dist/context-menu/index.d.ts +10 -0
- package/dist/context-menu/index.d.ts.map +1 -0
- package/dist/context-menu/types.d.ts +28 -0
- package/dist/context-menu/types.d.ts.map +1 -0
- package/dist/core/commands.d.ts +143 -0
- package/dist/core/commands.d.ts.map +1 -0
- package/dist/core/core.d.ts +943 -0
- package/dist/core/core.d.ts.map +1 -0
- package/dist/core/disposable.d.ts +30 -0
- package/dist/core/disposable.d.ts.map +1 -0
- package/dist/core/event-base.d.ts +31 -0
- package/dist/core/event-base.d.ts.map +1 -0
- package/dist/core/execution.d.ts +79 -0
- package/dist/core/execution.d.ts.map +1 -0
- package/dist/core/formatted-text.d.ts +8 -0
- package/dist/core/formatted-text.d.ts.map +1 -0
- package/dist/core/index.d.ts +10 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/result.d.ts +23 -0
- package/dist/core/result.d.ts.map +1 -0
- package/dist/core/schema.d.ts +360 -0
- package/dist/core/schema.d.ts.map +1 -0
- package/dist/core/testing.d.ts +309 -0
- package/dist/core/testing.d.ts.map +1 -0
- package/dist/culture/index.d.ts +11 -0
- package/dist/culture/index.d.ts.map +1 -0
- package/dist/culture/types.d.ts +320 -0
- package/dist/culture/types.d.ts.map +1 -0
- package/dist/data/charts.d.ts +412 -0
- package/dist/data/charts.d.ts.map +1 -0
- package/dist/data/conditional-format.d.ts +188 -0
- package/dist/data/conditional-format.d.ts.map +1 -0
- package/dist/data/filter.d.ts +364 -0
- package/dist/data/filter.d.ts.map +1 -0
- package/dist/data/grouping.d.ts +170 -0
- package/dist/data/grouping.d.ts.map +1 -0
- package/dist/data/index.d.ts +12 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/named-ranges.d.ts +104 -0
- package/dist/data/named-ranges.d.ts.map +1 -0
- package/dist/data/pivot.d.ts +68 -0
- package/dist/data/pivot.d.ts.map +1 -0
- package/dist/data/slicers.d.ts +417 -0
- package/dist/data/slicers.d.ts.map +1 -0
- package/dist/data/sorting.d.ts +172 -0
- package/dist/data/sorting.d.ts.map +1 -0
- package/dist/data/sparklines.d.ts +358 -0
- package/dist/data/sparklines.d.ts.map +1 -0
- package/dist/data/tables.d.ts +333 -0
- package/dist/data/tables.d.ts.map +1 -0
- package/dist/data/trace-arrows.d.ts +165 -0
- package/dist/data/trace-arrows.d.ts.map +1 -0
- package/dist/diagnostics/core.d.ts +219 -0
- package/dist/diagnostics/core.d.ts.map +1 -0
- package/dist/diagnostics/index.d.ts +9 -0
- package/dist/diagnostics/index.d.ts.map +1 -0
- package/dist/diagnostics/style.d.ts +196 -0
- package/dist/diagnostics/style.d.ts.map +1 -0
- package/dist/document/comments.d.ts +109 -0
- package/dist/document/comments.d.ts.map +1 -0
- package/dist/document/document.d.ts +182 -0
- package/dist/document/document.d.ts.map +1 -0
- package/dist/document/index.d.ts +5 -0
- package/dist/document/index.d.ts.map +1 -0
- package/dist/document/protection.d.ts +114 -0
- package/dist/document/protection.d.ts.map +1 -0
- package/dist/document/search.d.ts +202 -0
- package/dist/document/search.d.ts.map +1 -0
- package/dist/drawing/index.d.ts +8 -0
- package/dist/drawing/index.d.ts.map +1 -0
- package/dist/drawing/three-d.d.ts +171 -0
- package/dist/drawing/three-d.d.ts.map +1 -0
- package/dist/editor/drag.d.ts +178 -0
- package/dist/editor/drag.d.ts.map +1 -0
- package/dist/editor/editor.d.ts +59 -0
- package/dist/editor/editor.d.ts.map +1 -0
- package/dist/editor/form-controls.d.ts +428 -0
- package/dist/editor/form-controls.d.ts.map +1 -0
- package/dist/editor/index.d.ts +4 -0
- package/dist/editor/index.d.ts.map +1 -0
- package/dist/equation/errors.d.ts +19 -0
- package/dist/equation/errors.d.ts.map +1 -0
- package/dist/equation/index.d.ts +12 -0
- package/dist/equation/index.d.ts.map +1 -0
- package/dist/equation/omml-ast.d.ts +358 -0
- package/dist/equation/omml-ast.d.ts.map +1 -0
- package/dist/equation/templates.d.ts +26 -0
- package/dist/equation/templates.d.ts.map +1 -0
- package/dist/equation/types.d.ts +87 -0
- package/dist/equation/types.d.ts.map +1 -0
- package/dist/events/canvas-object-events.d.ts +31 -0
- package/dist/events/canvas-object-events.d.ts.map +1 -0
- package/dist/events/cell-events.d.ts +60 -0
- package/dist/events/cell-events.d.ts.map +1 -0
- package/dist/events/chart-events.d.ts +61 -0
- package/dist/events/chart-events.d.ts.map +1 -0
- package/dist/events/comment-events.d.ts +43 -0
- package/dist/events/comment-events.d.ts.map +1 -0
- package/dist/events/conditional-formatting-events.d.ts +40 -0
- package/dist/events/conditional-formatting-events.d.ts.map +1 -0
- package/dist/events/data-tools-events.d.ts +29 -0
- package/dist/events/data-tools-events.d.ts.map +1 -0
- package/dist/events/file-io-events.d.ts +39 -0
- package/dist/events/file-io-events.d.ts.map +1 -0
- package/dist/events/filter-events.d.ts +43 -0
- package/dist/events/filter-events.d.ts.map +1 -0
- package/dist/events/floating-object-events.d.ts +158 -0
- package/dist/events/floating-object-events.d.ts.map +1 -0
- package/dist/events/grouping-events.d.ts +75 -0
- package/dist/events/grouping-events.d.ts.map +1 -0
- package/dist/events/index.d.ts +129 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/ink-collaboration-events.d.ts +57 -0
- package/dist/events/ink-collaboration-events.d.ts.map +1 -0
- package/dist/events/ink-events.d.ts +33 -0
- package/dist/events/ink-events.d.ts.map +1 -0
- package/dist/events/ink-recognition-events.d.ts +149 -0
- package/dist/events/ink-recognition-events.d.ts.map +1 -0
- package/dist/events/ink-stroke-events.d.ts +197 -0
- package/dist/events/ink-stroke-events.d.ts.map +1 -0
- package/dist/events/merge-events.d.ts +46 -0
- package/dist/events/merge-events.d.ts.map +1 -0
- package/dist/events/named-range-events.d.ts +24 -0
- package/dist/events/named-range-events.d.ts.map +1 -0
- package/dist/events/pivot-events.d.ts +47 -0
- package/dist/events/pivot-events.d.ts.map +1 -0
- package/dist/events/print-events.d.ts +75 -0
- package/dist/events/print-events.d.ts.map +1 -0
- package/dist/events/recalc-events.d.ts +20 -0
- package/dist/events/recalc-events.d.ts.map +1 -0
- package/dist/events/scenario-events.d.ts +37 -0
- package/dist/events/scenario-events.d.ts.map +1 -0
- package/dist/events/selection-events.d.ts +16 -0
- package/dist/events/selection-events.d.ts.map +1 -0
- package/dist/events/settings-events.d.ts +41 -0
- package/dist/events/settings-events.d.ts.map +1 -0
- package/dist/events/sheet-events.d.ts +68 -0
- package/dist/events/sheet-events.d.ts.map +1 -0
- package/dist/events/slicer-events.d.ts +47 -0
- package/dist/events/slicer-events.d.ts.map +1 -0
- package/dist/events/smartart-events.d.ts +222 -0
- package/dist/events/smartart-events.d.ts.map +1 -0
- package/dist/events/sparkline-events.d.ts +68 -0
- package/dist/events/sparkline-events.d.ts.map +1 -0
- package/dist/events/store-events.d.ts +18 -0
- package/dist/events/store-events.d.ts.map +1 -0
- package/dist/events/structure-events.d.ts +76 -0
- package/dist/events/structure-events.d.ts.map +1 -0
- package/dist/events/table-events.d.ts +99 -0
- package/dist/events/table-events.d.ts.map +1 -0
- package/dist/events/validation-events.d.ts +85 -0
- package/dist/events/validation-events.d.ts.map +1 -0
- package/dist/events/view-events.d.ts +72 -0
- package/dist/events/view-events.d.ts.map +1 -0
- package/dist/events/wordart-events.d.ts +169 -0
- package/dist/events/wordart-events.d.ts.map +1 -0
- package/dist/events.d.ts +41 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/extensions/index.d.ts +9 -0
- package/dist/extensions/index.d.ts.map +1 -0
- package/dist/extensions/types.d.ts +64 -0
- package/dist/extensions/types.d.ts.map +1 -0
- package/dist/filesystem/index.d.ts +11 -0
- package/dist/filesystem/index.d.ts.map +1 -0
- package/dist/filesystem/paths.d.ts +38 -0
- package/dist/filesystem/paths.d.ts.map +1 -0
- package/dist/filesystem/permissions.d.ts +89 -0
- package/dist/filesystem/permissions.d.ts.map +1 -0
- package/dist/filesystem/types.d.ts +251 -0
- package/dist/filesystem/types.d.ts.map +1 -0
- package/dist/fill/custom-lists.d.ts +41 -0
- package/dist/fill/custom-lists.d.ts.map +1 -0
- package/dist/fill/index.d.ts +11 -0
- package/dist/fill/index.d.ts.map +1 -0
- package/dist/fill/types.d.ts +102 -0
- package/dist/fill/types.d.ts.map +1 -0
- package/dist/formatting/format-registry.d.ts +45 -0
- package/dist/formatting/format-registry.d.ts.map +1 -0
- package/dist/formatting/index.d.ts +9 -0
- package/dist/formatting/index.d.ts.map +1 -0
- package/dist/formatting/theme.d.ts +108 -0
- package/dist/formatting/theme.d.ts.map +1 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/ink/index.d.ts +16 -0
- package/dist/ink/index.d.ts.map +1 -0
- package/dist/ink/spatial-index.d.ts +113 -0
- package/dist/ink/spatial-index.d.ts.map +1 -0
- package/dist/ink/types.d.ts +558 -0
- package/dist/ink/types.d.ts.map +1 -0
- package/dist/kernel/floating-object-manager.d.ts +68 -0
- package/dist/kernel/floating-object-manager.d.ts.map +1 -0
- package/dist/kernel/index.d.ts +12 -0
- package/dist/kernel/index.d.ts.map +1 -0
- package/dist/kernel/kernel-context.d.ts +129 -0
- package/dist/kernel/kernel-context.d.ts.map +1 -0
- package/dist/keyboard/actions.d.ts +328 -0
- package/dist/keyboard/actions.d.ts.map +1 -0
- package/dist/keyboard/binding-utils.d.ts +112 -0
- package/dist/keyboard/binding-utils.d.ts.map +1 -0
- package/dist/keyboard/customization.d.ts +121 -0
- package/dist/keyboard/customization.d.ts.map +1 -0
- package/dist/keyboard/display-utils.d.ts +9 -0
- package/dist/keyboard/display-utils.d.ts.map +1 -0
- package/dist/keyboard/excel-reference.d.ts +28 -0
- package/dist/keyboard/excel-reference.d.ts.map +1 -0
- package/dist/keyboard/index.d.ts +16 -0
- package/dist/keyboard/index.d.ts.map +1 -0
- package/dist/keyboard/input.d.ts +124 -0
- package/dist/keyboard/input.d.ts.map +1 -0
- package/dist/keyboard/physical-keys.d.ts +79 -0
- package/dist/keyboard/physical-keys.d.ts.map +1 -0
- package/dist/keyboard/shortcuts/definitions/index.d.ts +10 -0
- package/dist/keyboard/shortcuts/definitions/index.d.ts.map +1 -0
- package/dist/keyboard/shortcuts/types.d.ts +347 -0
- package/dist/keyboard/shortcuts/types.d.ts.map +1 -0
- package/dist/machines/index.d.ts +12 -0
- package/dist/machines/index.d.ts.map +1 -0
- package/dist/machines/snapshots.d.ts +160 -0
- package/dist/machines/snapshots.d.ts.map +1 -0
- package/dist/machines/types.d.ts +64 -0
- package/dist/machines/types.d.ts.map +1 -0
- package/dist/number-formats/constants.d.ts +39 -0
- package/dist/number-formats/constants.d.ts.map +1 -0
- package/dist/number-formats/index.d.ts +14 -0
- package/dist/number-formats/index.d.ts.map +1 -0
- package/dist/number-formats/locale/index.d.ts +5 -0
- package/dist/number-formats/locale/index.d.ts.map +1 -0
- package/dist/number-formats/locale/locale-defaults.d.ts +17 -0
- package/dist/number-formats/locale/locale-defaults.d.ts.map +1 -0
- package/dist/number-formats/registry.d.ts +52 -0
- package/dist/number-formats/registry.d.ts.map +1 -0
- package/dist/number-formats/types.d.ts +134 -0
- package/dist/number-formats/types.d.ts.map +1 -0
- package/dist/objects/canvas-object.d.ts +157 -0
- package/dist/objects/canvas-object.d.ts.map +1 -0
- package/dist/objects/drawing-object.d.ts +144 -0
- package/dist/objects/drawing-object.d.ts.map +1 -0
- package/dist/objects/floating-objects.d.ts +742 -0
- package/dist/objects/floating-objects.d.ts.map +1 -0
- package/dist/objects/index.d.ts +5 -0
- package/dist/objects/index.d.ts.map +1 -0
- package/dist/objects/object-bounds-reader.d.ts +25 -0
- package/dist/objects/object-bounds-reader.d.ts.map +1 -0
- package/dist/objects/object-mutator.d.ts +30 -0
- package/dist/objects/object-mutator.d.ts.map +1 -0
- package/dist/performance/index.d.ts +8 -0
- package/dist/performance/index.d.ts.map +1 -0
- package/dist/performance/profiler-types.d.ts +351 -0
- package/dist/performance/profiler-types.d.ts.map +1 -0
- package/dist/platform/identity.d.ts +24 -0
- package/dist/platform/identity.d.ts.map +1 -0
- package/dist/platform/index.d.ts +17 -0
- package/dist/platform/index.d.ts.map +1 -0
- package/dist/platform/types.d.ts +359 -0
- package/dist/platform/types.d.ts.map +1 -0
- package/dist/rendering/canvas-bridge-types.d.ts +68 -0
- package/dist/rendering/canvas-bridge-types.d.ts.map +1 -0
- package/dist/rendering/constants.d.ts +76 -0
- package/dist/rendering/constants.d.ts.map +1 -0
- package/dist/rendering/coordinates.d.ts +452 -0
- package/dist/rendering/coordinates.d.ts.map +1 -0
- package/dist/rendering/coordinator-interfaces.d.ts +163 -0
- package/dist/rendering/coordinator-interfaces.d.ts.map +1 -0
- package/dist/rendering/data-sources.d.ts +372 -0
- package/dist/rendering/data-sources.d.ts.map +1 -0
- package/dist/rendering/grid-region.d.ts +32 -0
- package/dist/rendering/grid-region.d.ts.map +1 -0
- package/dist/rendering/grid-renderer.d.ts +391 -0
- package/dist/rendering/grid-renderer.d.ts.map +1 -0
- package/dist/rendering/grouping.d.ts +21 -0
- package/dist/rendering/grouping.d.ts.map +1 -0
- package/dist/rendering/hit-test-service.d.ts +58 -0
- package/dist/rendering/hit-test-service.d.ts.map +1 -0
- package/dist/rendering/hit-test.d.ts +223 -0
- package/dist/rendering/hit-test.d.ts.map +1 -0
- package/dist/rendering/index.d.ts +25 -0
- package/dist/rendering/index.d.ts.map +1 -0
- package/dist/rendering/interactive-elements.d.ts +121 -0
- package/dist/rendering/interactive-elements.d.ts.map +1 -0
- package/dist/rendering/primitives.d.ts +17 -0
- package/dist/rendering/primitives.d.ts.map +1 -0
- package/dist/rendering/render-context.d.ts +457 -0
- package/dist/rendering/render-context.d.ts.map +1 -0
- package/dist/rendering/text-measurement-service.d.ts +197 -0
- package/dist/rendering/text-measurement-service.d.ts.map +1 -0
- package/dist/ribbon/collapse-configs.d.ts +298 -0
- package/dist/ribbon/collapse-configs.d.ts.map +1 -0
- package/dist/ribbon/collapse-types.d.ts +76 -0
- package/dist/ribbon/collapse-types.d.ts.map +1 -0
- package/dist/ribbon/index.d.ts +25 -0
- package/dist/ribbon/index.d.ts.map +1 -0
- package/dist/selection/index.d.ts +10 -0
- package/dist/selection/index.d.ts.map +1 -0
- package/dist/selection/registry.d.ts +17 -0
- package/dist/selection/registry.d.ts.map +1 -0
- package/dist/selection/types.d.ts +82 -0
- package/dist/selection/types.d.ts.map +1 -0
- package/dist/selectors/index.d.ts +8 -0
- package/dist/selectors/index.d.ts.map +1 -0
- package/dist/selectors/smart-art.d.ts +58 -0
- package/dist/selectors/smart-art.d.ts.map +1 -0
- package/dist/services/index.d.ts +273 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/smartart/index.d.ts +26 -0
- package/dist/smartart/index.d.ts.map +1 -0
- package/dist/smartart/layouts.d.ts +193 -0
- package/dist/smartart/layouts.d.ts.map +1 -0
- package/dist/smartart/ooxml-algorithm-types.d.ts +939 -0
- package/dist/smartart/ooxml-algorithm-types.d.ts.map +1 -0
- package/dist/smartart/ooxml-data-model-types.d.ts +845 -0
- package/dist/smartart/ooxml-data-model-types.d.ts.map +1 -0
- package/dist/smartart/ooxml-drawing-types.d.ts +356 -0
- package/dist/smartart/ooxml-drawing-types.d.ts.map +1 -0
- package/dist/smartart/ooxml-engine-types.d.ts +873 -0
- package/dist/smartart/ooxml-engine-types.d.ts.map +1 -0
- package/dist/smartart/ooxml-layout-types.d.ts +405 -0
- package/dist/smartart/ooxml-layout-types.d.ts.map +1 -0
- package/dist/smartart/ooxml-style-types.d.ts +474 -0
- package/dist/smartart/ooxml-style-types.d.ts.map +1 -0
- package/dist/smartart/styles.d.ts +137 -0
- package/dist/smartart/styles.d.ts.map +1 -0
- package/dist/smartart/types.d.ts +323 -0
- package/dist/smartart/types.d.ts.map +1 -0
- package/dist/storage/capabilities.d.ts +33 -0
- package/dist/storage/capabilities.d.ts.map +1 -0
- package/dist/storage/connection.d.ts +183 -0
- package/dist/storage/connection.d.ts.map +1 -0
- package/dist/storage/index.d.ts +13 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/query.d.ts +91 -0
- package/dist/storage/query.d.ts.map +1 -0
- package/dist/storage/table-driver.d.ts +249 -0
- package/dist/storage/table-driver.d.ts.map +1 -0
- package/dist/store/cell-schema.d.ts +235 -0
- package/dist/store/cell-schema.d.ts.map +1 -0
- package/dist/store/equation-schema.d.ts +22 -0
- package/dist/store/equation-schema.d.ts.map +1 -0
- package/dist/store/index.d.ts +33 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/ink-schema.d.ts +26 -0
- package/dist/store/ink-schema.d.ts.map +1 -0
- package/dist/store/scenarios-schema.d.ts +105 -0
- package/dist/store/scenarios-schema.d.ts.map +1 -0
- package/dist/store/schema-types.d.ts +113 -0
- package/dist/store/schema-types.d.ts.map +1 -0
- package/dist/store/sheet-maps-schema.d.ts +222 -0
- package/dist/store/sheet-maps-schema.d.ts.map +1 -0
- package/dist/store/sheet-meta-schema.d.ts +16 -0
- package/dist/store/sheet-meta-schema.d.ts.map +1 -0
- package/dist/store/smartart-schema.d.ts +17 -0
- package/dist/store/smartart-schema.d.ts.map +1 -0
- package/dist/store/store-types.d.ts +381 -0
- package/dist/store/store-types.d.ts.map +1 -0
- package/dist/store/wordart-schema.d.ts +13 -0
- package/dist/store/wordart-schema.d.ts.map +1 -0
- package/dist/store/workbook-schema.d.ts +16 -0
- package/dist/store/workbook-schema.d.ts.map +1 -0
- package/dist/styles/built-in-styles.d.ts +10 -0
- package/dist/styles/built-in-styles.d.ts.map +1 -0
- package/dist/styles/index.d.ts +18 -0
- package/dist/styles/index.d.ts.map +1 -0
- package/dist/utils/a1.d.ts +12 -0
- package/dist/utils/a1.d.ts.map +1 -0
- package/dist/utils/datetime.d.ts +7 -0
- package/dist/utils/datetime.d.ts.map +1 -0
- package/dist/utils/function-registry.d.ts +40 -0
- package/dist/utils/function-registry.d.ts.map +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/protection.d.ts +9 -0
- package/dist/utils/protection.d.ts.map +1 -0
- package/dist/utils/range-navigation.d.ts +9 -0
- package/dist/utils/range-navigation.d.ts.map +1 -0
- package/dist/utils/range.d.ts +9 -0
- package/dist/utils/range.d.ts.map +1 -0
- package/dist/utils/rich-text.d.ts +9 -0
- package/dist/utils/rich-text.d.ts.map +1 -0
- package/dist/viewport/geometry.d.ts +90 -0
- package/dist/viewport/geometry.d.ts.map +1 -0
- package/dist/viewport/grid-canvas.d.ts +133 -0
- package/dist/viewport/grid-canvas.d.ts.map +1 -0
- package/dist/viewport/index.d.ts +5 -0
- package/dist/viewport/index.d.ts.map +1 -0
- package/dist/viewport/viewport-config.d.ts +95 -0
- package/dist/viewport/viewport-config.d.ts.map +1 -0
- package/dist/viewport/viewport.d.ts +191 -0
- package/dist/viewport/viewport.d.ts.map +1 -0
- package/dist/views/index.d.ts +9 -0
- package/dist/views/index.d.ts.map +1 -0
- package/dist/views/types.d.ts +161 -0
- package/dist/views/types.d.ts.map +1 -0
- package/dist/what-if/index.d.ts +2 -0
- package/dist/what-if/index.d.ts.map +1 -0
- package/dist/what-if/what-if.d.ts +152 -0
- package/dist/what-if/what-if.d.ts.map +1 -0
- package/dist/window-manager/index.d.ts +134 -0
- package/dist/window-manager/index.d.ts.map +1 -0
- package/dist/wordart/effects.d.ts +611 -0
- package/dist/wordart/effects.d.ts.map +1 -0
- package/dist/wordart/index.d.ts +17 -0
- package/dist/wordart/index.d.ts.map +1 -0
- package/dist/wordart/presets.d.ts +133 -0
- package/dist/wordart/presets.d.ts.map +1 -0
- package/dist/wordart/types.d.ts +444 -0
- package/dist/wordart/types.d.ts.map +1 -0
- package/dist/workflows/context.d.ts +777 -0
- package/dist/workflows/context.d.ts.map +1 -0
- package/dist/workflows/definition.d.ts +256 -0
- package/dist/workflows/definition.d.ts.map +1 -0
- package/dist/workflows/events.d.ts +397 -0
- package/dist/workflows/events.d.ts.map +1 -0
- package/dist/workflows/index.d.ts +19 -0
- package/dist/workflows/index.d.ts.map +1 -0
- package/dist/workflows/instance.d.ts +358 -0
- package/dist/workflows/instance.d.ts.map +1 -0
- package/dist/workflows/runtime.d.ts +287 -0
- package/dist/workflows/runtime.d.ts.map +1 -0
- package/dist/workflows/triggers.d.ts +335 -0
- package/dist/workflows/triggers.d.ts.map +1 -0
- package/dist/workflows/versioning.d.ts +245 -0
- package/dist/workflows/versioning.d.ts.map +1 -0
- package/dist/xlsx-parser/conditional-format.d.ts +137 -0
- package/dist/xlsx-parser/conditional-format.d.ts.map +1 -0
- package/dist/xlsx-parser/core.d.ts +622 -0
- package/dist/xlsx-parser/core.d.ts.map +1 -0
- package/dist/xlsx-parser/data-validation.d.ts +55 -0
- package/dist/xlsx-parser/data-validation.d.ts.map +1 -0
- package/dist/xlsx-parser/errors.d.ts +38 -0
- package/dist/xlsx-parser/errors.d.ts.map +1 -0
- package/dist/xlsx-parser/index.d.ts +17 -0
- package/dist/xlsx-parser/index.d.ts.map +1 -0
- package/dist/xlsx-parser/options.d.ts +89 -0
- package/dist/xlsx-parser/options.d.ts.map +1 -0
- package/dist/xlsx-parser/styles.d.ts +157 -0
- package/dist/xlsx-parser/styles.d.ts.map +1 -0
- package/dist/xlsx-parser/table.d.ts +170 -0
- package/dist/xlsx-parser/table.d.ts.map +1 -0
- package/package.json +410 -0
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* App Kernel API - Interface Definition
|
|
3
|
+
*
|
|
4
|
+
* This is THE contract between apps and the kernel. Apps import this interface
|
|
5
|
+
* and receive an implementation from the Shell host.
|
|
6
|
+
*
|
|
7
|
+
* The API is organized into sub-APIs for different domains:
|
|
8
|
+
* - tables: Table CRUD operations
|
|
9
|
+
* - columns: Column CRUD operations
|
|
10
|
+
* - records: Record CRUD operations
|
|
11
|
+
* - relations: Relation traversal
|
|
12
|
+
* - events: Subscribe to data changes
|
|
13
|
+
*
|
|
14
|
+
* @see plans/active/os-refactor/PHASE-F-APPS.md
|
|
15
|
+
*/
|
|
16
|
+
import type { AppCellValue, AppColumnId, AppColumnInfo, AppColumnSchema, AppQueryOptions, AppRecord, AppTableId, AppTableInfo, AppTableSchema, RecordId, Unsubscribe } from './types';
|
|
17
|
+
import type { IUndoService } from '../services';
|
|
18
|
+
import type { AppInstance, TableBinding } from './bindings';
|
|
19
|
+
/**
|
|
20
|
+
* Event payload for record changes.
|
|
21
|
+
*/
|
|
22
|
+
export interface RecordChangeEvent {
|
|
23
|
+
type: 'created' | 'updated' | 'deleted';
|
|
24
|
+
tableId: AppTableId;
|
|
25
|
+
recordId: RecordId;
|
|
26
|
+
/** For 'updated', the fields that changed */
|
|
27
|
+
changedFields?: (AppColumnId | string)[];
|
|
28
|
+
/** For 'created' and 'updated', the new record */
|
|
29
|
+
record?: AppRecord;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Event payload for table schema changes.
|
|
33
|
+
*/
|
|
34
|
+
export interface TableSchemaChangeEvent {
|
|
35
|
+
type: 'columnAdded' | 'columnRemoved' | 'columnRenamed' | 'columnTypeChanged' | 'tableRenamed';
|
|
36
|
+
tableId: AppTableId;
|
|
37
|
+
columnId?: AppColumnId;
|
|
38
|
+
oldName?: string;
|
|
39
|
+
newName?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Handler for record change events.
|
|
43
|
+
*/
|
|
44
|
+
export type RecordChangeHandler = (event: RecordChangeEvent) => void;
|
|
45
|
+
/**
|
|
46
|
+
* Handler for table schema change events.
|
|
47
|
+
*/
|
|
48
|
+
export type TableSchemaChangeHandler = (event: TableSchemaChangeEvent) => void;
|
|
49
|
+
/**
|
|
50
|
+
* API for table operations.
|
|
51
|
+
*/
|
|
52
|
+
export interface IAppTablesAPI {
|
|
53
|
+
/**
|
|
54
|
+
* Get a table by ID.
|
|
55
|
+
* @param tableId - Table identifier
|
|
56
|
+
* @returns Table info or null if not found
|
|
57
|
+
*/
|
|
58
|
+
get(tableId: AppTableId): Promise<AppTableInfo | null>;
|
|
59
|
+
/**
|
|
60
|
+
* Find a table by name.
|
|
61
|
+
* @param name - Table name
|
|
62
|
+
* @returns Table info or null if not found
|
|
63
|
+
*/
|
|
64
|
+
findByName(name: string): Promise<AppTableInfo | null>;
|
|
65
|
+
/**
|
|
66
|
+
* List all tables.
|
|
67
|
+
* @returns Array of table info
|
|
68
|
+
*/
|
|
69
|
+
list(): Promise<AppTableInfo[]>;
|
|
70
|
+
/**
|
|
71
|
+
* Create a new table.
|
|
72
|
+
* @param schema - Table schema
|
|
73
|
+
* @param options - Creation options
|
|
74
|
+
* @returns Created table info
|
|
75
|
+
*/
|
|
76
|
+
create(schema: AppTableSchema, options?: {
|
|
77
|
+
/** Sheet to create table in (creates new sheet if not specified) */
|
|
78
|
+
sheetId?: string;
|
|
79
|
+
/** Starting cell (A1 notation, defaults to A1) */
|
|
80
|
+
startCell?: string;
|
|
81
|
+
}): Promise<AppTableInfo>;
|
|
82
|
+
/**
|
|
83
|
+
* Rename a table.
|
|
84
|
+
* @param tableId - Table identifier
|
|
85
|
+
* @param newName - New table name
|
|
86
|
+
*/
|
|
87
|
+
rename(tableId: AppTableId, newName: string): Promise<void>;
|
|
88
|
+
/**
|
|
89
|
+
* Delete a table.
|
|
90
|
+
* Note: This removes the table definition, not the underlying data.
|
|
91
|
+
* @param tableId - Table identifier
|
|
92
|
+
*/
|
|
93
|
+
delete(tableId: AppTableId): Promise<void>;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* API for column operations.
|
|
97
|
+
*/
|
|
98
|
+
export interface IAppColumnsAPI {
|
|
99
|
+
/**
|
|
100
|
+
* Get column info by ID.
|
|
101
|
+
* @param tableId - Table identifier
|
|
102
|
+
* @param columnId - Column identifier
|
|
103
|
+
* @returns Column info or null if not found
|
|
104
|
+
*/
|
|
105
|
+
get(tableId: AppTableId, columnId: AppColumnId): Promise<AppColumnInfo | null>;
|
|
106
|
+
/**
|
|
107
|
+
* Find a column by name.
|
|
108
|
+
* @param tableId - Table identifier
|
|
109
|
+
* @param name - Column name
|
|
110
|
+
* @returns Column info or null if not found
|
|
111
|
+
*/
|
|
112
|
+
findByName(tableId: AppTableId, name: string): Promise<AppColumnInfo | null>;
|
|
113
|
+
/**
|
|
114
|
+
* List all columns in a table.
|
|
115
|
+
* @param tableId - Table identifier
|
|
116
|
+
* @returns Array of column info
|
|
117
|
+
*/
|
|
118
|
+
list(tableId: AppTableId): Promise<AppColumnInfo[]>;
|
|
119
|
+
/**
|
|
120
|
+
* Add a new column to a table.
|
|
121
|
+
* @param tableId - Table identifier
|
|
122
|
+
* @param schema - Column schema
|
|
123
|
+
* @param options - Creation options
|
|
124
|
+
* @returns Created column info
|
|
125
|
+
*/
|
|
126
|
+
create(tableId: AppTableId, schema: AppColumnSchema, options?: {
|
|
127
|
+
/** Insert at specific position (0-indexed, defaults to end) */
|
|
128
|
+
index?: number;
|
|
129
|
+
}): Promise<AppColumnInfo>;
|
|
130
|
+
/**
|
|
131
|
+
* Update a column's schema.
|
|
132
|
+
* @param tableId - Table identifier
|
|
133
|
+
* @param columnId - Column identifier
|
|
134
|
+
* @param updates - Partial schema updates
|
|
135
|
+
*/
|
|
136
|
+
update(tableId: AppTableId, columnId: AppColumnId, updates: Partial<AppColumnSchema>): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* Rename a column.
|
|
139
|
+
* @param tableId - Table identifier
|
|
140
|
+
* @param columnId - Column identifier
|
|
141
|
+
* @param newName - New column name
|
|
142
|
+
*/
|
|
143
|
+
rename(tableId: AppTableId, columnId: AppColumnId, newName: string): Promise<void>;
|
|
144
|
+
/**
|
|
145
|
+
* Delete a column.
|
|
146
|
+
* @param tableId - Table identifier
|
|
147
|
+
* @param columnId - Column identifier
|
|
148
|
+
*/
|
|
149
|
+
delete(tableId: AppTableId, columnId: AppColumnId): Promise<void>;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* API for record (row) operations.
|
|
153
|
+
*/
|
|
154
|
+
export interface IAppRecordsAPI {
|
|
155
|
+
/**
|
|
156
|
+
* Get a single record by ID.
|
|
157
|
+
* @param tableId - Table identifier
|
|
158
|
+
* @param recordId - Record identifier
|
|
159
|
+
* @returns Record or null if not found
|
|
160
|
+
*/
|
|
161
|
+
get(tableId: AppTableId, recordId: RecordId): Promise<AppRecord | null>;
|
|
162
|
+
/**
|
|
163
|
+
* List records with optional filtering, sorting, and pagination.
|
|
164
|
+
* @param tableId - Table identifier
|
|
165
|
+
* @param options - Query options
|
|
166
|
+
* @returns Array of records
|
|
167
|
+
*/
|
|
168
|
+
list(tableId: AppTableId, options?: AppQueryOptions): Promise<AppRecord[]>;
|
|
169
|
+
/**
|
|
170
|
+
* Create a new record.
|
|
171
|
+
* @param tableId - Table identifier
|
|
172
|
+
* @param values - Field values (by column name or ID)
|
|
173
|
+
* @returns Created record
|
|
174
|
+
*/
|
|
175
|
+
create(tableId: AppTableId, values: Record<string, AppCellValue>): Promise<AppRecord>;
|
|
176
|
+
/**
|
|
177
|
+
* Update a record.
|
|
178
|
+
* @param tableId - Table identifier
|
|
179
|
+
* @param recordId - Record identifier
|
|
180
|
+
* @param values - Field values to update (by column name or ID)
|
|
181
|
+
* @returns Updated record
|
|
182
|
+
*/
|
|
183
|
+
update(tableId: AppTableId, recordId: RecordId, values: Record<string, AppCellValue>): Promise<AppRecord>;
|
|
184
|
+
/**
|
|
185
|
+
* Delete a record.
|
|
186
|
+
* LOAD-BEARING: This MUST actually remove the row from the table.
|
|
187
|
+
* @param tableId - Table identifier
|
|
188
|
+
* @param recordId - Record identifier
|
|
189
|
+
*/
|
|
190
|
+
delete(tableId: AppTableId, recordId: RecordId): Promise<void>;
|
|
191
|
+
/**
|
|
192
|
+
* Batch create multiple records.
|
|
193
|
+
* More efficient than calling create() in a loop.
|
|
194
|
+
* @param tableId - Table identifier
|
|
195
|
+
* @param records - Array of field value objects
|
|
196
|
+
* @returns Array of created records
|
|
197
|
+
*/
|
|
198
|
+
createBatch(tableId: AppTableId, records: Record<string, AppCellValue>[]): Promise<AppRecord[]>;
|
|
199
|
+
/**
|
|
200
|
+
* Batch update multiple records.
|
|
201
|
+
* @param tableId - Table identifier
|
|
202
|
+
* @param updates - Array of { id, values } objects
|
|
203
|
+
* @returns Array of updated records
|
|
204
|
+
*/
|
|
205
|
+
updateBatch(tableId: AppTableId, updates: Array<{
|
|
206
|
+
id: RecordId;
|
|
207
|
+
values: Record<string, AppCellValue>;
|
|
208
|
+
}>): Promise<AppRecord[]>;
|
|
209
|
+
/**
|
|
210
|
+
* Batch delete multiple records.
|
|
211
|
+
* @param tableId - Table identifier
|
|
212
|
+
* @param recordIds - Array of record IDs to delete
|
|
213
|
+
*/
|
|
214
|
+
deleteBatch(tableId: AppTableId, recordIds: RecordId[]): Promise<void>;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Relation link between records.
|
|
218
|
+
*/
|
|
219
|
+
export interface RelationLink {
|
|
220
|
+
/** Source table ID */
|
|
221
|
+
sourceTableId: AppTableId;
|
|
222
|
+
/** Source record ID */
|
|
223
|
+
sourceRecordId: RecordId;
|
|
224
|
+
/** Relation column ID in source table */
|
|
225
|
+
relationColumnId: AppColumnId;
|
|
226
|
+
/** Target table ID */
|
|
227
|
+
targetTableId: AppTableId;
|
|
228
|
+
/** Target record ID */
|
|
229
|
+
targetRecordId: RecordId;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* API for relation traversal.
|
|
233
|
+
*/
|
|
234
|
+
export interface IAppRelationsAPI {
|
|
235
|
+
/**
|
|
236
|
+
* Get related records through a relation column.
|
|
237
|
+
* @param tableId - Source table ID
|
|
238
|
+
* @param recordId - Source record ID
|
|
239
|
+
* @param relationColumnId - Relation column ID
|
|
240
|
+
* @returns Array of related records
|
|
241
|
+
*/
|
|
242
|
+
getRelated(tableId: AppTableId, recordId: RecordId, relationColumnId: AppColumnId): Promise<AppRecord[]>;
|
|
243
|
+
/**
|
|
244
|
+
* Get all records that link TO this record (reverse lookup).
|
|
245
|
+
* @param tableId - Target table ID
|
|
246
|
+
* @param recordId - Target record ID
|
|
247
|
+
* @param options - Optional filter by source table/column
|
|
248
|
+
* @returns Array of records that reference this record
|
|
249
|
+
*/
|
|
250
|
+
getBacklinks(tableId: AppTableId, recordId: RecordId, options?: {
|
|
251
|
+
sourceTableId?: AppTableId;
|
|
252
|
+
sourceColumnId?: AppColumnId;
|
|
253
|
+
}): Promise<AppRecord[]>;
|
|
254
|
+
/**
|
|
255
|
+
* Link two records via a relation column.
|
|
256
|
+
* @param sourceTableId - Source table ID
|
|
257
|
+
* @param sourceRecordId - Source record ID
|
|
258
|
+
* @param relationColumnId - Relation column ID in source table
|
|
259
|
+
* @param targetRecordId - Target record ID to link to
|
|
260
|
+
*/
|
|
261
|
+
link(sourceTableId: AppTableId, sourceRecordId: RecordId, relationColumnId: AppColumnId, targetRecordId: RecordId): Promise<void>;
|
|
262
|
+
/**
|
|
263
|
+
* Unlink two records.
|
|
264
|
+
* @param sourceTableId - Source table ID
|
|
265
|
+
* @param sourceRecordId - Source record ID
|
|
266
|
+
* @param relationColumnId - Relation column ID
|
|
267
|
+
* @param targetRecordId - Target record ID to unlink
|
|
268
|
+
*/
|
|
269
|
+
unlink(sourceTableId: AppTableId, sourceRecordId: RecordId, relationColumnId: AppColumnId, targetRecordId: RecordId): Promise<void>;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* API for subscribing to data changes.
|
|
273
|
+
*/
|
|
274
|
+
export interface IAppEventsAPI {
|
|
275
|
+
/**
|
|
276
|
+
* Subscribe to record changes in a table.
|
|
277
|
+
* @param tableId - Table to watch
|
|
278
|
+
* @param handler - Change handler
|
|
279
|
+
* @returns Unsubscribe function
|
|
280
|
+
*/
|
|
281
|
+
onRecordChange(tableId: AppTableId, handler: RecordChangeHandler): Unsubscribe;
|
|
282
|
+
/**
|
|
283
|
+
* Subscribe to table schema changes.
|
|
284
|
+
* @param tableId - Table to watch
|
|
285
|
+
* @param handler - Change handler
|
|
286
|
+
* @returns Unsubscribe function
|
|
287
|
+
*/
|
|
288
|
+
onSchemaChange(tableId: AppTableId, handler: TableSchemaChangeHandler): Unsubscribe;
|
|
289
|
+
/**
|
|
290
|
+
* Subscribe to changes on a specific record.
|
|
291
|
+
* @param tableId - Table ID
|
|
292
|
+
* @param recordId - Record ID
|
|
293
|
+
* @param handler - Change handler
|
|
294
|
+
* @returns Unsubscribe function
|
|
295
|
+
*/
|
|
296
|
+
onRecordFieldChange(tableId: AppTableId, recordId: RecordId, handler: (fieldId: AppColumnId, value: AppCellValue) => void): Unsubscribe;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Clipboard payload for cross-app copy/paste.
|
|
300
|
+
* Simplified version for apps - the kernel manages the full payload internally.
|
|
301
|
+
*/
|
|
302
|
+
export interface AppClipboardPayload {
|
|
303
|
+
/**
|
|
304
|
+
* Cell values as 2D array (for spreadsheet paste).
|
|
305
|
+
* Each inner array is a row of values.
|
|
306
|
+
*/
|
|
307
|
+
cells: AppCellValue[][];
|
|
308
|
+
/**
|
|
309
|
+
* Plain text representation (TSV format).
|
|
310
|
+
* Used for pasting into external apps.
|
|
311
|
+
*/
|
|
312
|
+
text: string;
|
|
313
|
+
/**
|
|
314
|
+
* Table context for smart paste (optional).
|
|
315
|
+
*/
|
|
316
|
+
tableContext?: {
|
|
317
|
+
/** Source table ID */
|
|
318
|
+
sourceTableId: AppTableId;
|
|
319
|
+
/** Record IDs being copied */
|
|
320
|
+
recordIds: RecordId[];
|
|
321
|
+
/** Column names in order */
|
|
322
|
+
columnNames: string[];
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Clipboard state snapshot for apps.
|
|
327
|
+
*/
|
|
328
|
+
export interface AppClipboardSnapshot {
|
|
329
|
+
/** Whether clipboard has data */
|
|
330
|
+
hasData: boolean;
|
|
331
|
+
/** Current operation (copy/cut/null) */
|
|
332
|
+
operation: 'copy' | 'cut' | null;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* API for managing app data bindings.
|
|
336
|
+
* Apps bind to tables rather than owning them directly.
|
|
337
|
+
*
|
|
338
|
+
* @see plans/archive/os-refactor/APP-DATA-BINDING-PLAN.md
|
|
339
|
+
*/
|
|
340
|
+
export interface IAppBindingsAPI {
|
|
341
|
+
/**
|
|
342
|
+
* Get all instances for an app type.
|
|
343
|
+
* @param appId - App identifier from manifest
|
|
344
|
+
* @returns Array of app instances
|
|
345
|
+
*/
|
|
346
|
+
getInstances(appId: string): AppInstance[];
|
|
347
|
+
/**
|
|
348
|
+
* Get a specific instance.
|
|
349
|
+
* @param instanceId - Instance identifier
|
|
350
|
+
* @returns App instance or null if not found
|
|
351
|
+
*/
|
|
352
|
+
getInstance(instanceId: string): AppInstance | null;
|
|
353
|
+
/**
|
|
354
|
+
* Create a new app instance.
|
|
355
|
+
* @param appId - App identifier from manifest
|
|
356
|
+
* @param name - User-given name for this instance
|
|
357
|
+
* @returns Created app instance
|
|
358
|
+
*/
|
|
359
|
+
createInstance(appId: string, name: string): AppInstance;
|
|
360
|
+
/**
|
|
361
|
+
* Update instance bindings.
|
|
362
|
+
* @param instanceId - Instance identifier
|
|
363
|
+
* @param bindings - New bindings to set
|
|
364
|
+
*/
|
|
365
|
+
updateBindings(instanceId: string, bindings: Record<string, TableBinding>): void;
|
|
366
|
+
/**
|
|
367
|
+
* Mark instance setup as complete.
|
|
368
|
+
* @param instanceId - Instance identifier
|
|
369
|
+
*/
|
|
370
|
+
completeSetup(instanceId: string): void;
|
|
371
|
+
/**
|
|
372
|
+
* Delete an instance.
|
|
373
|
+
* @param instanceId - Instance identifier
|
|
374
|
+
*/
|
|
375
|
+
deleteInstance(instanceId: string): void;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* API for clipboard operations.
|
|
379
|
+
* Apps can copy records to clipboard for cross-app paste.
|
|
380
|
+
*/
|
|
381
|
+
export interface IAppClipboardAPI {
|
|
382
|
+
/**
|
|
383
|
+
* Copy data to clipboard.
|
|
384
|
+
* @param payload - Data to copy
|
|
385
|
+
*/
|
|
386
|
+
copy(payload: AppClipboardPayload): void;
|
|
387
|
+
/**
|
|
388
|
+
* Cut data to clipboard (single-use).
|
|
389
|
+
* @param payload - Data to cut
|
|
390
|
+
*/
|
|
391
|
+
cut(payload: AppClipboardPayload): void;
|
|
392
|
+
/**
|
|
393
|
+
* Get current clipboard state.
|
|
394
|
+
*/
|
|
395
|
+
getSnapshot(): AppClipboardSnapshot;
|
|
396
|
+
/**
|
|
397
|
+
* Get the current clipboard payload data.
|
|
398
|
+
* Returns null if clipboard is empty.
|
|
399
|
+
*/
|
|
400
|
+
getPayload(): AppClipboardPayload | null;
|
|
401
|
+
/**
|
|
402
|
+
* Clear clipboard.
|
|
403
|
+
*/
|
|
404
|
+
clear(): void;
|
|
405
|
+
/**
|
|
406
|
+
* Subscribe to clipboard state changes.
|
|
407
|
+
* @param handler - Called when clipboard state changes
|
|
408
|
+
*/
|
|
409
|
+
subscribe(handler: (snapshot: AppClipboardSnapshot) => void): Unsubscribe;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* The App Kernel API.
|
|
413
|
+
*
|
|
414
|
+
* This is the main interface that apps use to interact with the spreadsheet kernel.
|
|
415
|
+
* Apps receive an implementation of this interface from the Shell host.
|
|
416
|
+
*
|
|
417
|
+
* Design:
|
|
418
|
+
* - Organized into logical sub-APIs (tables, columns, records, etc.)
|
|
419
|
+
* - Uses opaque ID types (apps don't see internal CellId/RowId/ColId)
|
|
420
|
+
* - Provides dual access patterns (by name and by ID)
|
|
421
|
+
*
|
|
422
|
+
* Example usage:
|
|
423
|
+
* ```typescript
|
|
424
|
+
* // Get a table by name
|
|
425
|
+
* const deals = api.tables.findByName('Deals');
|
|
426
|
+
*
|
|
427
|
+
* // Query records with filtering and sorting
|
|
428
|
+
* const openDeals = api.records.list(deals.id, {
|
|
429
|
+
* filter: { conditions: [{ field: 'Status', operator: 'equals', value: 'Open' }] },
|
|
430
|
+
* sort: [{ field: 'Value', direction: 'desc' }]
|
|
431
|
+
* });
|
|
432
|
+
*
|
|
433
|
+
* // Create a new record
|
|
434
|
+
* const newDeal = api.records.create(deals.id, {
|
|
435
|
+
* 'Name': 'Acme Corp Deal',
|
|
436
|
+
* 'Value': 50000,
|
|
437
|
+
* 'Status': 'Open'
|
|
438
|
+
* });
|
|
439
|
+
*
|
|
440
|
+
* // Subscribe to changes
|
|
441
|
+
* const unsubscribe = api.events.onRecordChange(deals.id, (event) => {
|
|
442
|
+
* console.log('Record changed:', event.recordId, event.type);
|
|
443
|
+
* });
|
|
444
|
+
* ```
|
|
445
|
+
*/
|
|
446
|
+
export interface IAppKernelAPI {
|
|
447
|
+
/** Table operations */
|
|
448
|
+
readonly tables: IAppTablesAPI;
|
|
449
|
+
/** Column operations */
|
|
450
|
+
readonly columns: IAppColumnsAPI;
|
|
451
|
+
/** Record operations */
|
|
452
|
+
readonly records: IAppRecordsAPI;
|
|
453
|
+
/** Relation traversal */
|
|
454
|
+
readonly relations: IAppRelationsAPI;
|
|
455
|
+
/** Event subscriptions */
|
|
456
|
+
readonly events: IAppEventsAPI;
|
|
457
|
+
/** Clipboard operations (cross-app copy/paste) */
|
|
458
|
+
readonly clipboard?: IAppClipboardAPI;
|
|
459
|
+
/**
|
|
460
|
+
* App data bindings management.
|
|
461
|
+
* Optional for backward compatibility - may be undefined if bindings not yet implemented.
|
|
462
|
+
* @see plans/archive/os-refactor/APP-DATA-BINDING-PLAN.md
|
|
463
|
+
*/
|
|
464
|
+
readonly bindings?: IAppBindingsAPI;
|
|
465
|
+
/**
|
|
466
|
+
* Undo/redo service for reverting changes.
|
|
467
|
+
* May be undefined if undo service is not available.
|
|
468
|
+
*/
|
|
469
|
+
readonly undo?: IUndoService;
|
|
470
|
+
/**
|
|
471
|
+
* Execute multiple operations in a single transaction.
|
|
472
|
+
* All changes are batched as a single undo step.
|
|
473
|
+
* @param fn - Function containing operations to batch
|
|
474
|
+
* @param description - Description for undo history
|
|
475
|
+
*/
|
|
476
|
+
batch<T>(fn: () => T, description?: string): T;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* App metadata provided to the kernel.
|
|
480
|
+
*/
|
|
481
|
+
export interface AppManifest {
|
|
482
|
+
/** Unique app identifier */
|
|
483
|
+
id: string;
|
|
484
|
+
/** Display name */
|
|
485
|
+
name: string;
|
|
486
|
+
/** App version */
|
|
487
|
+
version: string;
|
|
488
|
+
/** Icon (emoji or icon identifier) */
|
|
489
|
+
icon?: string;
|
|
490
|
+
/** Description */
|
|
491
|
+
description?: string;
|
|
492
|
+
/** Author */
|
|
493
|
+
author?: string;
|
|
494
|
+
/** Tables this app manages (for ensureAppTables) */
|
|
495
|
+
managedTables?: AppTableSchema[];
|
|
496
|
+
/**
|
|
497
|
+
* Views contributed by this app.
|
|
498
|
+
* These views appear in view tabs for applicable tables.
|
|
499
|
+
* @see contracts/src/apps/views.ts
|
|
500
|
+
*/
|
|
501
|
+
views?: import('./views').ViewContribution[];
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Context provided to an app when it starts.
|
|
505
|
+
*/
|
|
506
|
+
export interface AppContext {
|
|
507
|
+
/** App's manifest */
|
|
508
|
+
manifest: AppManifest;
|
|
509
|
+
/** The App Kernel API */
|
|
510
|
+
api: IAppKernelAPI;
|
|
511
|
+
/**
|
|
512
|
+
* Ensure app's managed tables exist.
|
|
513
|
+
* Creates tables from manifest.managedTables if they don't exist.
|
|
514
|
+
* Returns existing tables if they already exist (idempotent).
|
|
515
|
+
* @returns Map of table name to table ID
|
|
516
|
+
*/
|
|
517
|
+
ensureAppTables(): Map<string, AppTableId>;
|
|
518
|
+
}
|
|
519
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/apps/api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,aAAa,EACb,eAAe,EACf,eAAe,EACf,SAAS,EACT,UAAU,EACV,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAE,YAAY,EAA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;CAChD;AAMD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;IAEX,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IAEb,kBAAkB;IAClB,OAAO,EAAE,MAAM,CAAC;IAEhB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,kBAAkB;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,aAAa;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,oDAAoD;IACpD,aAAa,CAAC,EAAE,cAAc,EAAE,CAAC;IAEjC;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,SAAS,EAAE,gBAAgB,EAAE,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,qBAAqB;IACrB,QAAQ,EAAE,WAAW,CAAC;IAEtB,yBAAyB;IACzB,GAAG,EAAE,aAAa,CAAC;IAEnB;;;;;OAKG;IACH,eAAe,IAAI,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CAC5C"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* App Data Binding Types
|
|
3
|
+
*
|
|
4
|
+
* Apps bind to tables, they don't own tables. This enables:
|
|
5
|
+
* - Fresh start: App creates new tables on a dedicated sheet
|
|
6
|
+
* - Existing data: App binds to user's existing tables with column mappings
|
|
7
|
+
*
|
|
8
|
+
* @see plans/archive/os-refactor/APP-DATA-BINDING-PLAN.md
|
|
9
|
+
*/
|
|
10
|
+
import type { AppColumnId, AppTableId, AppTableInfo } from './types';
|
|
11
|
+
/**
|
|
12
|
+
* Persisted app instance - represents one "installation" of an app with its data bindings.
|
|
13
|
+
* One app type can have multiple instances (e.g., "Sales CRM" and "Recruiting CRM").
|
|
14
|
+
*
|
|
15
|
+
* Stored in WorkbookSettings.appInstances and persisted with the document.
|
|
16
|
+
*/
|
|
17
|
+
export interface AppInstance {
|
|
18
|
+
/** Unique instance ID */
|
|
19
|
+
instanceId: string;
|
|
20
|
+
/** App type from manifest */
|
|
21
|
+
appId: string;
|
|
22
|
+
/** User-given name for this instance */
|
|
23
|
+
name: string;
|
|
24
|
+
/** Table bindings - maps app's logical tables to actual tables */
|
|
25
|
+
bindings: Record<string, TableBinding>;
|
|
26
|
+
/** Whether setup is complete */
|
|
27
|
+
setupComplete: boolean;
|
|
28
|
+
/** Created timestamp (Unix ms) */
|
|
29
|
+
createdAt: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Binding from an app's logical table to an actual table in the workbook.
|
|
33
|
+
*/
|
|
34
|
+
export interface TableBinding {
|
|
35
|
+
/** The actual table ID in the workbook (null = needs setup) */
|
|
36
|
+
tableId: AppTableId | null;
|
|
37
|
+
/** Column mappings: app's logical column name -> actual column */
|
|
38
|
+
columnMappings: Record<string, ColumnMapping>;
|
|
39
|
+
/** Whether this table was created by the app (vs bound to existing) */
|
|
40
|
+
isManaged: boolean;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Mapping from an app's logical column to an actual column.
|
|
44
|
+
*/
|
|
45
|
+
export interface ColumnMapping {
|
|
46
|
+
/** Target column ID */
|
|
47
|
+
columnId: AppColumnId;
|
|
48
|
+
/** Target column name (for display) */
|
|
49
|
+
columnName: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Resolved bindings passed to app components at runtime.
|
|
53
|
+
* All table IDs are guaranteed to exist.
|
|
54
|
+
*/
|
|
55
|
+
export interface ResolvedBindings {
|
|
56
|
+
/** Map of logical table name -> resolved table info */
|
|
57
|
+
tables: Record<string, ResolvedTableBinding>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A fully resolved table binding with table info loaded.
|
|
61
|
+
*/
|
|
62
|
+
export interface ResolvedTableBinding {
|
|
63
|
+
/** Table ID */
|
|
64
|
+
tableId: AppTableId;
|
|
65
|
+
/** Table info */
|
|
66
|
+
table: AppTableInfo;
|
|
67
|
+
/** Map of logical column name -> actual column ID */
|
|
68
|
+
columns: Record<string, AppColumnId>;
|
|
69
|
+
/** Whether this was auto-created (managed) */
|
|
70
|
+
isManaged: boolean;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=bindings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bindings.d.ts","sourceRoot":"","sources":["../../src/apps/bindings.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAMrE;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B,yBAAyB;IACzB,UAAU,EAAE,MAAM,CAAC;IAEnB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IAEd,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IAEb,kEAAkE;IAClE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAEvC,gCAAgC;IAChC,aAAa,EAAE,OAAO,CAAC;IAEvB,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,+DAA+D;IAC/D,OAAO,EAAE,UAAU,GAAG,IAAI,CAAC;IAE3B,kEAAkE;IAClE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAE9C,uEAAuE;IACvE,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,uBAAuB;IACvB,QAAQ,EAAE,WAAW,CAAC;IAEtB,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAC;CACpB;AAMD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,eAAe;IACf,OAAO,EAAE,UAAU,CAAC;IAEpB,iBAAiB;IACjB,KAAK,EAAE,YAAY,CAAC;IAEpB,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAErC,8CAA8C;IAC9C,SAAS,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* App Kernel API - Public Exports
|
|
3
|
+
*
|
|
4
|
+
* This module exports the types and interfaces that apps use to interact
|
|
5
|
+
* with the spreadsheet kernel.
|
|
6
|
+
*
|
|
7
|
+
* @see plans/active/os-refactor/PHASE-F-APPS.md
|
|
8
|
+
*/
|
|
9
|
+
export type { AppCellError, AppCellValue, AppCellValuePrimitive, AppColumnId, AppColumnInfo, AppColumnSchema, AppColumnType, AppColumnTypeKind, AppFilter, AppFilterCondition, AppFilterOperator, AppQueryOptions, AppRecord, AppSelectOption, AppSortConfig, AppSortDirection, AppTableId, AppTableInfo, AppTableSchema, RecordId, Unsubscribe, } from './types';
|
|
10
|
+
export type { AppClipboardPayload, AppClipboardSnapshot, AppContext, AppManifest, IAppBindingsAPI, IAppClipboardAPI, IAppColumnsAPI, IAppEventsAPI, IAppKernelAPI, IAppRecordsAPI, IAppRelationsAPI, IAppTablesAPI, RecordChangeEvent, RecordChangeHandler, RelationLink, TableSchemaChangeEvent, TableSchemaChangeHandler, } from './api';
|
|
11
|
+
export type { AppInstance, ColumnMapping, ResolvedBindings, ResolvedTableBinding, TableBinding, } from './bindings';
|
|
12
|
+
export type { ViewContribution, ViewProps } from './views';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/apps/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,YAAY,EACV,YAAY,EAEZ,YAAY,EACZ,qBAAqB,EACrB,WAAW,EACX,aAAa,EACb,eAAe,EACf,aAAa,EAEb,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAElB,iBAAiB,EACjB,eAAe,EAEf,SAAS,EACT,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,UAAU,EAEV,YAAY,EACZ,cAAc,EAEd,QAAQ,EAER,WAAW,GACZ,MAAM,SAAS,CAAC;AAGjB,YAAY,EAEV,mBAAmB,EACnB,oBAAoB,EACpB,UAAU,EAEV,WAAW,EAEX,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,aAAa,EAEb,aAAa,EACb,cAAc,EACd,gBAAgB,EAEhB,aAAa,EAEb,iBAAiB,EACjB,mBAAmB,EAEnB,YAAY,EACZ,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,OAAO,CAAC;AAGf,YAAY,EACV,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,GACb,MAAM,YAAY,CAAC;AAGpB,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
|