@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,777 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workflow Context API Contracts
|
|
3
|
+
*
|
|
4
|
+
* Defines the WorkflowContext interface available within workflow steps.
|
|
5
|
+
* All operations are durable (persisted and replayable).
|
|
6
|
+
* Same API works in both local (Pyodide) and cloud (Python) runtimes.
|
|
7
|
+
*
|
|
8
|
+
* The Context API provides access to:
|
|
9
|
+
* - App APIs (high-level domain operations): ctx.apps.*
|
|
10
|
+
* - Kernel APIs (low-level data primitives): ctx.tables, ctx.records, ctx.relations
|
|
11
|
+
* - External Communication: ctx.http, ctx.notify, ctx.secrets
|
|
12
|
+
* - Time & Scheduling: ctx.now(), ctx.sleep()
|
|
13
|
+
* - Workflow Control: ctx.spawn(), ctx.emit(), ctx.workflows
|
|
14
|
+
* - Instance Info: ctx.instance_id, ctx.current_step, ctx.runtime, ctx.config
|
|
15
|
+
*
|
|
16
|
+
* @see plans/active/workflow/README.md
|
|
17
|
+
*/
|
|
18
|
+
import type { Chart, ChartConfig } from '../data/charts';
|
|
19
|
+
import type { RuntimeType } from './runtime';
|
|
20
|
+
/**
|
|
21
|
+
* Registry of app-specific APIs.
|
|
22
|
+
* Each app provides domain operations that abstract kernel primitives.
|
|
23
|
+
*/
|
|
24
|
+
export interface AppRegistry {
|
|
25
|
+
/** CRM app API */
|
|
26
|
+
readonly crm: CRMAppAPI;
|
|
27
|
+
/** Finance app API */
|
|
28
|
+
readonly finance: FinanceAppAPI;
|
|
29
|
+
/** Spreadsheet app API */
|
|
30
|
+
readonly spreadsheet: SpreadsheetAppAPI;
|
|
31
|
+
/** Analytics app API */
|
|
32
|
+
readonly analytics: AnalyticsAppAPI;
|
|
33
|
+
/** Bug Tracker app API */
|
|
34
|
+
readonly bugTracker: BugTrackerAppAPI;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* CRM App API - Domain operations for sales and customer management.
|
|
38
|
+
*/
|
|
39
|
+
export interface CRMAppAPI {
|
|
40
|
+
createDeal(params: CreateDealParams): Promise<Deal>;
|
|
41
|
+
getDeal(dealId: string, options?: GetDealOptions): Promise<Deal>;
|
|
42
|
+
updateDeal(dealId: string, params: UpdateDealParams): Promise<Deal>;
|
|
43
|
+
moveDealToStage(dealId: string, stage: string): Promise<Deal>;
|
|
44
|
+
assignDealOwner(dealId: string, ownerEmail: string): Promise<Deal>;
|
|
45
|
+
getDealsInStage(stage: string): Promise<Deal[]>;
|
|
46
|
+
getDealsClosingSoon(days: number): Promise<Deal[]>;
|
|
47
|
+
getDealsClosedBetween(startDate: Date, endDate: Date): Promise<Deal[]>;
|
|
48
|
+
getPipeline(name: string): Promise<Pipeline>;
|
|
49
|
+
getPipelineMetrics(pipelineId: string): Promise<PipelineMetrics>;
|
|
50
|
+
createContact(params: CreateContactParams): Promise<Contact>;
|
|
51
|
+
getContact(contactId: string): Promise<Contact>;
|
|
52
|
+
linkContactToDeal(contactId: string, dealId: string): Promise<void>;
|
|
53
|
+
enrichContact(contactId: string): Promise<Contact>;
|
|
54
|
+
getContactsByCompany(companyId: string): Promise<Contact[]>;
|
|
55
|
+
createCompany(params: CreateCompanyParams): Promise<Company>;
|
|
56
|
+
getCompany(companyId: string): Promise<Company>;
|
|
57
|
+
}
|
|
58
|
+
export interface CreateDealParams {
|
|
59
|
+
name: string;
|
|
60
|
+
value: number;
|
|
61
|
+
stage?: string;
|
|
62
|
+
owner?: string;
|
|
63
|
+
pipeline?: string;
|
|
64
|
+
company?: string;
|
|
65
|
+
expectedCloseDate?: Date;
|
|
66
|
+
customFields?: Record<string, unknown>;
|
|
67
|
+
}
|
|
68
|
+
export interface UpdateDealParams {
|
|
69
|
+
name?: string;
|
|
70
|
+
value?: number;
|
|
71
|
+
stage?: string;
|
|
72
|
+
owner?: string;
|
|
73
|
+
expectedCloseDate?: Date;
|
|
74
|
+
customFields?: Record<string, unknown>;
|
|
75
|
+
[key: string]: unknown;
|
|
76
|
+
}
|
|
77
|
+
export interface GetDealOptions {
|
|
78
|
+
include?: ('company' | 'contacts' | 'owner' | 'activities')[];
|
|
79
|
+
}
|
|
80
|
+
export interface Deal {
|
|
81
|
+
id: string;
|
|
82
|
+
name: string;
|
|
83
|
+
value: number;
|
|
84
|
+
stage: string;
|
|
85
|
+
owner?: DealOwner;
|
|
86
|
+
company?: Company;
|
|
87
|
+
contacts?: Contact[];
|
|
88
|
+
expectedCloseDate?: string;
|
|
89
|
+
createdAt: string;
|
|
90
|
+
updatedAt: string;
|
|
91
|
+
customFields?: Record<string, unknown>;
|
|
92
|
+
[key: string]: unknown;
|
|
93
|
+
}
|
|
94
|
+
export interface DealOwner {
|
|
95
|
+
id: string;
|
|
96
|
+
name: string;
|
|
97
|
+
email: string;
|
|
98
|
+
}
|
|
99
|
+
export interface Pipeline {
|
|
100
|
+
id: string;
|
|
101
|
+
name: string;
|
|
102
|
+
stages: string[];
|
|
103
|
+
}
|
|
104
|
+
export interface PipelineMetrics {
|
|
105
|
+
totalValue: number;
|
|
106
|
+
dealCount: number;
|
|
107
|
+
averageValue: number;
|
|
108
|
+
byStage: Record<string, {
|
|
109
|
+
count: number;
|
|
110
|
+
value: number;
|
|
111
|
+
}>;
|
|
112
|
+
}
|
|
113
|
+
export interface Contact {
|
|
114
|
+
id: string;
|
|
115
|
+
name: string;
|
|
116
|
+
email: string;
|
|
117
|
+
phone?: string;
|
|
118
|
+
company?: Company;
|
|
119
|
+
customFields?: Record<string, unknown>;
|
|
120
|
+
}
|
|
121
|
+
export interface CreateContactParams {
|
|
122
|
+
name: string;
|
|
123
|
+
email: string;
|
|
124
|
+
phone?: string;
|
|
125
|
+
companyId?: string;
|
|
126
|
+
customFields?: Record<string, unknown>;
|
|
127
|
+
}
|
|
128
|
+
export interface Company {
|
|
129
|
+
id: string;
|
|
130
|
+
name: string;
|
|
131
|
+
domain?: string;
|
|
132
|
+
industry?: string;
|
|
133
|
+
segment?: string;
|
|
134
|
+
customFields?: Record<string, unknown>;
|
|
135
|
+
}
|
|
136
|
+
export interface CreateCompanyParams {
|
|
137
|
+
name: string;
|
|
138
|
+
domain?: string;
|
|
139
|
+
industry?: string;
|
|
140
|
+
segment?: string;
|
|
141
|
+
customFields?: Record<string, unknown>;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Finance App API - Domain operations for financial management.
|
|
145
|
+
*/
|
|
146
|
+
export interface FinanceAppAPI {
|
|
147
|
+
createInvoice(params: CreateInvoiceParams): Promise<Invoice>;
|
|
148
|
+
getInvoice(invoiceId: string): Promise<Invoice>;
|
|
149
|
+
sendInvoice(invoiceId: string): Promise<void>;
|
|
150
|
+
recordPayment(invoiceId: string, amount: number, method?: string): Promise<Payment>;
|
|
151
|
+
voidInvoice(invoiceId: string, reason: string): Promise<void>;
|
|
152
|
+
getAccount(accountId: string): Promise<Account>;
|
|
153
|
+
getAccountBalance(accountId: string): Promise<number>;
|
|
154
|
+
transferFunds(from: string, to: string, amount: number, memo?: string): Promise<Transfer>;
|
|
155
|
+
createTransaction(params: CreateTransactionParams): Promise<Transaction>;
|
|
156
|
+
categorizeTransaction(transactionId: string, category: string): Promise<Transaction>;
|
|
157
|
+
generateProfitLoss(startDate: Date, endDate: Date): Promise<FinancialReport>;
|
|
158
|
+
generateBalanceSheet(asOfDate: Date): Promise<FinancialReport>;
|
|
159
|
+
generateCashFlow(startDate: Date, endDate: Date): Promise<FinancialReport>;
|
|
160
|
+
importBankStatement(csv: string, accountId: string): Promise<Transaction[]>;
|
|
161
|
+
reconcileTransactions(params: ReconcileParams): Promise<ReconcileResult>;
|
|
162
|
+
}
|
|
163
|
+
export interface CreateInvoiceParams {
|
|
164
|
+
customerId: string;
|
|
165
|
+
amount?: number;
|
|
166
|
+
lineItems?: LineItem[];
|
|
167
|
+
dueDate?: Date;
|
|
168
|
+
dueDays?: number;
|
|
169
|
+
notes?: string;
|
|
170
|
+
sourceDealId?: string;
|
|
171
|
+
}
|
|
172
|
+
export interface LineItem {
|
|
173
|
+
description: string;
|
|
174
|
+
amount: number;
|
|
175
|
+
quantity?: number;
|
|
176
|
+
unitPrice?: number;
|
|
177
|
+
}
|
|
178
|
+
export interface Invoice {
|
|
179
|
+
id: string;
|
|
180
|
+
number: string;
|
|
181
|
+
customerId: string;
|
|
182
|
+
amount: number;
|
|
183
|
+
lineItems: LineItem[];
|
|
184
|
+
status: 'draft' | 'sent' | 'paid' | 'overdue' | 'void';
|
|
185
|
+
dueDate: string;
|
|
186
|
+
paidAmount: number;
|
|
187
|
+
createdAt: string;
|
|
188
|
+
sentAt?: string;
|
|
189
|
+
paidAt?: string;
|
|
190
|
+
}
|
|
191
|
+
export interface Payment {
|
|
192
|
+
id: string;
|
|
193
|
+
invoiceId: string;
|
|
194
|
+
amount: number;
|
|
195
|
+
method: string;
|
|
196
|
+
paidAt: string;
|
|
197
|
+
}
|
|
198
|
+
export interface Account {
|
|
199
|
+
id: string;
|
|
200
|
+
name: string;
|
|
201
|
+
type: 'checking' | 'savings' | 'credit' | 'investment';
|
|
202
|
+
balance: number;
|
|
203
|
+
currency: string;
|
|
204
|
+
}
|
|
205
|
+
export interface Transfer {
|
|
206
|
+
id: string;
|
|
207
|
+
fromAccountId: string;
|
|
208
|
+
toAccountId: string;
|
|
209
|
+
amount: number;
|
|
210
|
+
memo?: string;
|
|
211
|
+
transferredAt: string;
|
|
212
|
+
}
|
|
213
|
+
export interface Transaction {
|
|
214
|
+
id: string;
|
|
215
|
+
accountId: string;
|
|
216
|
+
amount: number;
|
|
217
|
+
type: 'debit' | 'credit';
|
|
218
|
+
category?: string;
|
|
219
|
+
description: string;
|
|
220
|
+
date: string;
|
|
221
|
+
reconciled: boolean;
|
|
222
|
+
}
|
|
223
|
+
export interface CreateTransactionParams {
|
|
224
|
+
accountId: string;
|
|
225
|
+
amount: number;
|
|
226
|
+
type: 'debit' | 'credit';
|
|
227
|
+
description: string;
|
|
228
|
+
category?: string;
|
|
229
|
+
date?: Date;
|
|
230
|
+
}
|
|
231
|
+
export interface FinancialReport {
|
|
232
|
+
id: string;
|
|
233
|
+
type: 'profit_loss' | 'balance_sheet' | 'cash_flow';
|
|
234
|
+
startDate: string;
|
|
235
|
+
endDate: string;
|
|
236
|
+
data: Record<string, unknown>;
|
|
237
|
+
generatedAt: string;
|
|
238
|
+
}
|
|
239
|
+
export interface ReconcileParams {
|
|
240
|
+
accountId: string;
|
|
241
|
+
statementEndDate: Date;
|
|
242
|
+
statementBalance: number;
|
|
243
|
+
}
|
|
244
|
+
export interface ReconcileResult {
|
|
245
|
+
matched: number;
|
|
246
|
+
unmatched: number;
|
|
247
|
+
difference: number;
|
|
248
|
+
reconciled: boolean;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Spreadsheet App API - Domain operations for spreadsheet manipulation.
|
|
252
|
+
*/
|
|
253
|
+
export interface SpreadsheetAppAPI {
|
|
254
|
+
getCell(sheet: string, cell: string): Promise<WorkflowCellValue>;
|
|
255
|
+
setCell(sheet: string, cell: string, value: WorkflowCellValue): Promise<void>;
|
|
256
|
+
getRange(sheet: string, range: string): Promise<WorkflowCellValue[][]>;
|
|
257
|
+
setRange(sheet: string, range: string, values: WorkflowCellValue[][]): Promise<void>;
|
|
258
|
+
clearRange(sheet: string, range: string): Promise<void>;
|
|
259
|
+
appendRow(sheet: string, values: WorkflowCellValue[]): Promise<number>;
|
|
260
|
+
insertRows(sheet: string, afterRow: number, count: number): Promise<void>;
|
|
261
|
+
deleteRows(sheet: string, startRow: number, count: number): Promise<void>;
|
|
262
|
+
setFormula(sheet: string, cell: string, formula: string): Promise<void>;
|
|
263
|
+
evaluateFormula(formula: string, context?: {
|
|
264
|
+
sheet?: string;
|
|
265
|
+
}): Promise<WorkflowCellValue>;
|
|
266
|
+
createSheet(name: string): Promise<Sheet>;
|
|
267
|
+
getSheet(name: string): Promise<Sheet>;
|
|
268
|
+
duplicateSheet(sheetName: string, newName: string): Promise<Sheet>;
|
|
269
|
+
deleteSheet(sheetName: string): Promise<void>;
|
|
270
|
+
createChart(sheet: string, config: ChartConfig): Promise<Chart>;
|
|
271
|
+
updateChart(chartId: string, config: Partial<ChartConfig>): Promise<Chart>;
|
|
272
|
+
applyFilter(sheet: string, range: string, filter: FilterConfig): Promise<void>;
|
|
273
|
+
clearFilter(sheet: string): Promise<void>;
|
|
274
|
+
sortRange(sheet: string, range: string, sortBy: SortConfig[]): Promise<void>;
|
|
275
|
+
createPivotTable(source: string, config: PivotConfig): Promise<PivotTable>;
|
|
276
|
+
importCSV(sheet: string, csv: string, options?: ImportOptions): Promise<void>;
|
|
277
|
+
exportToCSV(sheet: string, range?: string): Promise<string>;
|
|
278
|
+
exportToPDF(sheets?: string[]): Promise<Blob>;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Cell value type for workflow context.
|
|
282
|
+
*
|
|
283
|
+
* Intentionally different from the canonical `CellValue` in `@mog/spreadsheet-contracts/core`
|
|
284
|
+
* which is `string | number | boolean | null | CellError`. This workflow variant includes `Date`
|
|
285
|
+
* for date-aware operations and excludes `CellError`.
|
|
286
|
+
*
|
|
287
|
+
* @see `@mog/spreadsheet-contracts/core` for the canonical `CellValue` type.
|
|
288
|
+
*/
|
|
289
|
+
export type WorkflowCellValue = string | number | boolean | null | Date;
|
|
290
|
+
export interface Sheet {
|
|
291
|
+
id: string;
|
|
292
|
+
name: string;
|
|
293
|
+
rowCount: number;
|
|
294
|
+
columnCount: number;
|
|
295
|
+
}
|
|
296
|
+
export type { AxisConfig, Chart, ChartConfig } from '../data/charts';
|
|
297
|
+
export interface FilterConfig {
|
|
298
|
+
column: number;
|
|
299
|
+
criteria: FilterCriteria;
|
|
300
|
+
}
|
|
301
|
+
export interface FilterCriteria {
|
|
302
|
+
type: 'equals' | 'contains' | 'greater_than' | 'less_than' | 'between' | 'in_list';
|
|
303
|
+
value: unknown;
|
|
304
|
+
value2?: unknown;
|
|
305
|
+
}
|
|
306
|
+
export interface SortConfig {
|
|
307
|
+
column: number;
|
|
308
|
+
direction: 'asc' | 'desc';
|
|
309
|
+
}
|
|
310
|
+
export interface PivotConfig {
|
|
311
|
+
rows: string[];
|
|
312
|
+
columns?: string[];
|
|
313
|
+
values: PivotValueConfig[];
|
|
314
|
+
filters?: Record<string, unknown>;
|
|
315
|
+
}
|
|
316
|
+
export interface PivotValueConfig {
|
|
317
|
+
field: string;
|
|
318
|
+
aggregation: 'sum' | 'count' | 'average' | 'min' | 'max';
|
|
319
|
+
}
|
|
320
|
+
export interface PivotTable {
|
|
321
|
+
id: string;
|
|
322
|
+
sourceRange: string;
|
|
323
|
+
config: PivotConfig;
|
|
324
|
+
}
|
|
325
|
+
export interface ImportOptions {
|
|
326
|
+
delimiter?: string;
|
|
327
|
+
hasHeader?: boolean;
|
|
328
|
+
startCell?: string;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Analytics App API - Domain operations for metrics and analytics.
|
|
332
|
+
*/
|
|
333
|
+
export interface AnalyticsAppAPI {
|
|
334
|
+
trackEvent(name: string, properties?: Record<string, unknown>): Promise<void>;
|
|
335
|
+
getEvents(query: EventQuery): Promise<AnalyticsEvent[]>;
|
|
336
|
+
getMetric(name: string, timeRange: TimeRange): Promise<MetricValue>;
|
|
337
|
+
incrementMetric(name: string, value: number, dimensions?: Record<string, string>): Promise<void>;
|
|
338
|
+
getDashboard(dashboardId: string): Promise<Dashboard>;
|
|
339
|
+
refreshDashboard(dashboardId: string): Promise<void>;
|
|
340
|
+
getFunnelConversion(funnelId: string, timeRange: TimeRange): Promise<FunnelResult>;
|
|
341
|
+
getCohortRetention(cohortId: string, timeRange: TimeRange): Promise<RetentionResult>;
|
|
342
|
+
}
|
|
343
|
+
export interface EventQuery {
|
|
344
|
+
eventName?: string;
|
|
345
|
+
startDate: Date;
|
|
346
|
+
endDate: Date;
|
|
347
|
+
filters?: Record<string, unknown>;
|
|
348
|
+
limit?: number;
|
|
349
|
+
}
|
|
350
|
+
export interface AnalyticsEvent {
|
|
351
|
+
id: string;
|
|
352
|
+
name: string;
|
|
353
|
+
properties: Record<string, unknown>;
|
|
354
|
+
timestamp: string;
|
|
355
|
+
userId?: string;
|
|
356
|
+
}
|
|
357
|
+
export interface TimeRange {
|
|
358
|
+
start: Date;
|
|
359
|
+
end: Date;
|
|
360
|
+
granularity?: 'hour' | 'day' | 'week' | 'month';
|
|
361
|
+
}
|
|
362
|
+
export interface MetricValue {
|
|
363
|
+
name: string;
|
|
364
|
+
value: number;
|
|
365
|
+
previousValue?: number;
|
|
366
|
+
change?: number;
|
|
367
|
+
changePercent?: number;
|
|
368
|
+
timeSeries?: Array<{
|
|
369
|
+
timestamp: string;
|
|
370
|
+
value: number;
|
|
371
|
+
}>;
|
|
372
|
+
}
|
|
373
|
+
export interface Dashboard {
|
|
374
|
+
id: string;
|
|
375
|
+
name: string;
|
|
376
|
+
widgets: DashboardWidget[];
|
|
377
|
+
lastRefreshed: string;
|
|
378
|
+
}
|
|
379
|
+
export interface DashboardWidget {
|
|
380
|
+
id: string;
|
|
381
|
+
type: 'metric' | 'chart' | 'table';
|
|
382
|
+
config: Record<string, unknown>;
|
|
383
|
+
}
|
|
384
|
+
export interface FunnelResult {
|
|
385
|
+
steps: FunnelStep[];
|
|
386
|
+
overallConversion: number;
|
|
387
|
+
}
|
|
388
|
+
export interface FunnelStep {
|
|
389
|
+
name: string;
|
|
390
|
+
count: number;
|
|
391
|
+
conversionRate: number;
|
|
392
|
+
dropoff: number;
|
|
393
|
+
}
|
|
394
|
+
export interface RetentionResult {
|
|
395
|
+
cohortSize: number;
|
|
396
|
+
periods: RetentionPeriod[];
|
|
397
|
+
}
|
|
398
|
+
export interface RetentionPeriod {
|
|
399
|
+
period: number;
|
|
400
|
+
retained: number;
|
|
401
|
+
retentionRate: number;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Bug Tracker App API - Domain operations for issue tracking.
|
|
405
|
+
*/
|
|
406
|
+
export interface BugTrackerAppAPI {
|
|
407
|
+
createIssue(params: CreateIssueParams): Promise<Issue>;
|
|
408
|
+
getIssue(issueId: string): Promise<Issue>;
|
|
409
|
+
updateIssue(issueId: string, params: UpdateIssueParams): Promise<Issue>;
|
|
410
|
+
closeIssue(issueId: string, resolution?: string): Promise<Issue>;
|
|
411
|
+
assignIssue(issueId: string, assigneeEmail: string): Promise<Issue>;
|
|
412
|
+
createProject(params: CreateProjectParams): Promise<Project>;
|
|
413
|
+
getProject(projectId: string): Promise<Project>;
|
|
414
|
+
getProjectTasks(projectId: string): Promise<Issue[]>;
|
|
415
|
+
addLabel(issueId: string, label: string): Promise<void>;
|
|
416
|
+
removeLabel(issueId: string, label: string): Promise<void>;
|
|
417
|
+
setMilestone(issueId: string, milestoneId: string): Promise<void>;
|
|
418
|
+
}
|
|
419
|
+
export interface CreateIssueParams {
|
|
420
|
+
title: string;
|
|
421
|
+
description?: string;
|
|
422
|
+
project?: string;
|
|
423
|
+
priority?: 'low' | 'medium' | 'high' | 'critical';
|
|
424
|
+
type?: 'bug' | 'feature' | 'task' | 'improvement';
|
|
425
|
+
assignee?: string;
|
|
426
|
+
labels?: string[];
|
|
427
|
+
}
|
|
428
|
+
export interface UpdateIssueParams {
|
|
429
|
+
title?: string;
|
|
430
|
+
description?: string;
|
|
431
|
+
priority?: 'low' | 'medium' | 'high' | 'critical';
|
|
432
|
+
status?: string;
|
|
433
|
+
assignee?: string;
|
|
434
|
+
labels?: string[];
|
|
435
|
+
}
|
|
436
|
+
export interface Issue {
|
|
437
|
+
id: string;
|
|
438
|
+
title: string;
|
|
439
|
+
description?: string;
|
|
440
|
+
status: 'open' | 'in_progress' | 'review' | 'done' | 'closed';
|
|
441
|
+
priority: 'low' | 'medium' | 'high' | 'critical';
|
|
442
|
+
type: 'bug' | 'feature' | 'task' | 'improvement';
|
|
443
|
+
assignee?: {
|
|
444
|
+
id: string;
|
|
445
|
+
name: string;
|
|
446
|
+
email: string;
|
|
447
|
+
};
|
|
448
|
+
labels: string[];
|
|
449
|
+
createdAt: string;
|
|
450
|
+
updatedAt: string;
|
|
451
|
+
closedAt?: string;
|
|
452
|
+
}
|
|
453
|
+
export interface CreateProjectParams {
|
|
454
|
+
name: string;
|
|
455
|
+
description?: string;
|
|
456
|
+
template?: string;
|
|
457
|
+
}
|
|
458
|
+
export interface Project {
|
|
459
|
+
id: string;
|
|
460
|
+
name: string;
|
|
461
|
+
description?: string;
|
|
462
|
+
issueCount: number;
|
|
463
|
+
createdAt: string;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Tables API - Table operations.
|
|
467
|
+
*/
|
|
468
|
+
export interface TablesAPI {
|
|
469
|
+
/** Find a table by name */
|
|
470
|
+
findByName(name: string): Promise<TableInfo | null>;
|
|
471
|
+
/** List all tables */
|
|
472
|
+
list(): Promise<TableInfo[]>;
|
|
473
|
+
/** Get table by ID */
|
|
474
|
+
get(tableId: string): Promise<TableInfo | null>;
|
|
475
|
+
}
|
|
476
|
+
export interface TableInfo {
|
|
477
|
+
id: string;
|
|
478
|
+
name: string;
|
|
479
|
+
columnCount: number;
|
|
480
|
+
rowCount: number;
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* Records API - Record CRUD operations.
|
|
484
|
+
*/
|
|
485
|
+
export interface RecordsAPI {
|
|
486
|
+
/** Get a single record */
|
|
487
|
+
get(tableName: string, recordId: string): Promise<Record<string, unknown> | null>;
|
|
488
|
+
/** List records with optional filtering */
|
|
489
|
+
list(tableName: string, options?: {
|
|
490
|
+
filter?: RecordFilter;
|
|
491
|
+
sort?: RecordSort[];
|
|
492
|
+
limit?: number;
|
|
493
|
+
offset?: number;
|
|
494
|
+
}): Promise<Record<string, unknown>[]>;
|
|
495
|
+
/** Create a new record */
|
|
496
|
+
create(tableName: string, values: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
497
|
+
/** Update a record */
|
|
498
|
+
update(tableName: string, recordId: string, values: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
499
|
+
/** Delete a record */
|
|
500
|
+
delete(tableName: string, recordId: string): Promise<void>;
|
|
501
|
+
}
|
|
502
|
+
export interface RecordFilter {
|
|
503
|
+
field: string;
|
|
504
|
+
operator: 'equals' | 'not_equals' | 'contains' | 'greater_than' | 'less_than' | 'in';
|
|
505
|
+
value: unknown;
|
|
506
|
+
}
|
|
507
|
+
export interface RecordSort {
|
|
508
|
+
field: string;
|
|
509
|
+
direction: 'asc' | 'desc';
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Relations API - Relation traversal.
|
|
513
|
+
*/
|
|
514
|
+
export interface RelationsAPI {
|
|
515
|
+
/** Get related records through a relation column */
|
|
516
|
+
getRelated(tableName: string, recordId: string, relationColumn: string): Promise<Record<string, unknown>[]>;
|
|
517
|
+
/** Get records that link TO this record (reverse lookup) */
|
|
518
|
+
getBacklinks(tableName: string, recordId: string): Promise<Record<string, unknown>[]>;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* HTTP client for external API calls.
|
|
522
|
+
* Automatically adds idempotency keys: {instance_id}-{step_name}-{attempt}
|
|
523
|
+
*/
|
|
524
|
+
export interface HttpClient {
|
|
525
|
+
/** GET request */
|
|
526
|
+
get(url: string, options?: HttpRequestOptions): Promise<HttpResponse>;
|
|
527
|
+
/** POST request */
|
|
528
|
+
post(url: string, options?: HttpRequestOptions): Promise<HttpResponse>;
|
|
529
|
+
/** PUT request */
|
|
530
|
+
put(url: string, options?: HttpRequestOptions): Promise<HttpResponse>;
|
|
531
|
+
/** PATCH request */
|
|
532
|
+
patch(url: string, options?: HttpRequestOptions): Promise<HttpResponse>;
|
|
533
|
+
/** DELETE request */
|
|
534
|
+
delete(url: string, options?: HttpRequestOptions): Promise<HttpResponse>;
|
|
535
|
+
}
|
|
536
|
+
export interface HttpRequestOptions {
|
|
537
|
+
headers?: Record<string, string>;
|
|
538
|
+
json?: unknown;
|
|
539
|
+
body?: string | ArrayBuffer;
|
|
540
|
+
query?: Record<string, string>;
|
|
541
|
+
timeout?: number;
|
|
542
|
+
}
|
|
543
|
+
export interface HttpResponse {
|
|
544
|
+
/** HTTP status code */
|
|
545
|
+
status: number;
|
|
546
|
+
/** Whether response is successful (2xx) */
|
|
547
|
+
ok: boolean;
|
|
548
|
+
/** Response headers */
|
|
549
|
+
headers: Record<string, string>;
|
|
550
|
+
/** Get response as JSON */
|
|
551
|
+
json(): unknown;
|
|
552
|
+
/** Get response as text */
|
|
553
|
+
text(): string;
|
|
554
|
+
/** Get response as bytes */
|
|
555
|
+
bytes(): ArrayBuffer;
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Notification service for email, Slack, and in-app notifications.
|
|
559
|
+
*/
|
|
560
|
+
export interface NotificationService {
|
|
561
|
+
/** Send email */
|
|
562
|
+
email(options: EmailOptions): Promise<void>;
|
|
563
|
+
/** Send Slack message */
|
|
564
|
+
slack(options: SlackOptions): Promise<void>;
|
|
565
|
+
/** Show in-app toast notification */
|
|
566
|
+
toast(options: ToastOptions): Promise<void>;
|
|
567
|
+
}
|
|
568
|
+
export interface EmailOptions {
|
|
569
|
+
to: string | string[];
|
|
570
|
+
subject: string;
|
|
571
|
+
body?: string;
|
|
572
|
+
template?: string;
|
|
573
|
+
data?: Record<string, unknown>;
|
|
574
|
+
cc?: string | string[];
|
|
575
|
+
bcc?: string | string[];
|
|
576
|
+
/** Action buttons that emit events when clicked */
|
|
577
|
+
actions?: EmailAction[];
|
|
578
|
+
}
|
|
579
|
+
export interface EmailAction {
|
|
580
|
+
label: string;
|
|
581
|
+
event: string;
|
|
582
|
+
data?: Record<string, unknown>;
|
|
583
|
+
}
|
|
584
|
+
export interface SlackOptions {
|
|
585
|
+
channel: string;
|
|
586
|
+
message: string;
|
|
587
|
+
blocks?: SlackBlock[];
|
|
588
|
+
threadTs?: string;
|
|
589
|
+
}
|
|
590
|
+
export interface SlackBlock {
|
|
591
|
+
type: 'section' | 'divider' | 'actions' | 'context';
|
|
592
|
+
text?: {
|
|
593
|
+
type: 'mrkdwn' | 'plain_text';
|
|
594
|
+
text: string;
|
|
595
|
+
};
|
|
596
|
+
elements?: unknown[];
|
|
597
|
+
}
|
|
598
|
+
export interface ToastOptions {
|
|
599
|
+
user?: string;
|
|
600
|
+
message: string;
|
|
601
|
+
type?: 'info' | 'success' | 'warning' | 'error';
|
|
602
|
+
duration?: number;
|
|
603
|
+
action?: {
|
|
604
|
+
label: string;
|
|
605
|
+
url?: string;
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Secrets manager for secure credential access.
|
|
610
|
+
* Values are never logged or persisted in workflow state.
|
|
611
|
+
*/
|
|
612
|
+
export interface SecretsManager {
|
|
613
|
+
/** Get a secret by name */
|
|
614
|
+
get(name: string): string | null;
|
|
615
|
+
/** Check if a secret exists */
|
|
616
|
+
has(name: string): boolean;
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* API for querying and controlling other workflows.
|
|
620
|
+
*/
|
|
621
|
+
export interface WorkflowsAPI {
|
|
622
|
+
/** Find workflow instances */
|
|
623
|
+
find(options: FindWorkflowsOptions): Promise<WorkflowInstanceInfo[]>;
|
|
624
|
+
/** Signal another workflow instance */
|
|
625
|
+
signal(instanceId: string, eventType: string, data?: Record<string, unknown>): Promise<void>;
|
|
626
|
+
/** Cancel a workflow instance */
|
|
627
|
+
cancel(instanceId: string, reason?: string): Promise<void>;
|
|
628
|
+
/** Get workflow instance details */
|
|
629
|
+
getInstance(instanceId: string): Promise<WorkflowInstanceInfo | null>;
|
|
630
|
+
}
|
|
631
|
+
export interface FindWorkflowsOptions {
|
|
632
|
+
workflowClass?: string;
|
|
633
|
+
filter?: Record<string, unknown>;
|
|
634
|
+
status?: ('running' | 'waiting' | 'sleeping' | 'completed' | 'failed')[];
|
|
635
|
+
limit?: number;
|
|
636
|
+
}
|
|
637
|
+
export interface WorkflowInstanceInfo {
|
|
638
|
+
id: string;
|
|
639
|
+
workflowId: string;
|
|
640
|
+
status: string;
|
|
641
|
+
currentStep: string | null;
|
|
642
|
+
createdAt: string;
|
|
643
|
+
updatedAt: string;
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* Workflow configuration and environment.
|
|
647
|
+
*/
|
|
648
|
+
export interface WorkflowConfig {
|
|
649
|
+
/** Company/organization name */
|
|
650
|
+
companyName?: string;
|
|
651
|
+
/** Current environment */
|
|
652
|
+
environment: 'production' | 'staging' | 'development';
|
|
653
|
+
/** Base URL for API calls */
|
|
654
|
+
baseUrl?: string;
|
|
655
|
+
/** Custom configuration values */
|
|
656
|
+
[key: string]: unknown;
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* WorkflowContext - The context available within workflow steps.
|
|
660
|
+
* All operations are durable - persisted and replayable.
|
|
661
|
+
* Same API works in both local and cloud runtimes.
|
|
662
|
+
*/
|
|
663
|
+
export interface WorkflowContext {
|
|
664
|
+
/**
|
|
665
|
+
* Access app-specific APIs. Each app provides domain operations.
|
|
666
|
+
*
|
|
667
|
+
* @example
|
|
668
|
+
* ctx.apps.crm.create_deal(name="Acme", value=50000)
|
|
669
|
+
* ctx.apps.finance.create_invoice(customer_id=..., amount=...)
|
|
670
|
+
* ctx.apps.spreadsheet.append_row("Log", [date, value])
|
|
671
|
+
*/
|
|
672
|
+
readonly apps: AppRegistry;
|
|
673
|
+
/**
|
|
674
|
+
* Table operations.
|
|
675
|
+
*
|
|
676
|
+
* @example
|
|
677
|
+
* table = ctx.tables.find_by_name("Expenses")
|
|
678
|
+
*/
|
|
679
|
+
readonly tables: TablesAPI;
|
|
680
|
+
/**
|
|
681
|
+
* Record CRUD operations.
|
|
682
|
+
*
|
|
683
|
+
* @example
|
|
684
|
+
* expense = ctx.records.get("expenses", record_id)
|
|
685
|
+
* ctx.records.update("expenses", record_id, {"status": "approved"})
|
|
686
|
+
*/
|
|
687
|
+
readonly records: RecordsAPI;
|
|
688
|
+
/**
|
|
689
|
+
* Relation traversal.
|
|
690
|
+
*
|
|
691
|
+
* @example
|
|
692
|
+
* related = ctx.relations.get_related("deals", deal_id, "contact_id")
|
|
693
|
+
*/
|
|
694
|
+
readonly relations: RelationsAPI;
|
|
695
|
+
/**
|
|
696
|
+
* Make HTTP requests to external APIs.
|
|
697
|
+
* Automatically adds idempotency keys.
|
|
698
|
+
*
|
|
699
|
+
* @example
|
|
700
|
+
* response = ctx.http.post("https://api.stripe.com/...", json={...})
|
|
701
|
+
*/
|
|
702
|
+
readonly http: HttpClient;
|
|
703
|
+
/**
|
|
704
|
+
* Send notifications (email, Slack, in-app).
|
|
705
|
+
*
|
|
706
|
+
* @example
|
|
707
|
+
* ctx.notify.email(to="manager@co.com", subject="Approval needed")
|
|
708
|
+
* ctx.notify.slack(channel="#sales", message="Deal closed!")
|
|
709
|
+
* ctx.notify.toast(user=user_id, message="Request approved")
|
|
710
|
+
*/
|
|
711
|
+
readonly notify: NotificationService;
|
|
712
|
+
/**
|
|
713
|
+
* Access secrets (API keys, tokens). Never logged.
|
|
714
|
+
*
|
|
715
|
+
* @example
|
|
716
|
+
* api_key = ctx.secrets.get("OPENAI_API_KEY")
|
|
717
|
+
*/
|
|
718
|
+
readonly secrets: SecretsManager;
|
|
719
|
+
/**
|
|
720
|
+
* Get current time (consistent within workflow execution).
|
|
721
|
+
*/
|
|
722
|
+
now(): Date;
|
|
723
|
+
/**
|
|
724
|
+
* Pause workflow for duration. TRIGGERS AUTO-PROMOTION TO CLOUD.
|
|
725
|
+
*
|
|
726
|
+
* @param duration - Duration in milliseconds or object with time units
|
|
727
|
+
*
|
|
728
|
+
* @example
|
|
729
|
+
* ctx.sleep({ hours: 24 })
|
|
730
|
+
* ctx.sleep({ days: 7 })
|
|
731
|
+
* ctx.sleep(3600000) // 1 hour in ms
|
|
732
|
+
*/
|
|
733
|
+
sleep(duration: number | SleepDuration): Promise<void>;
|
|
734
|
+
/**
|
|
735
|
+
* Start a child workflow. Returns instance ID.
|
|
736
|
+
*
|
|
737
|
+
* @example
|
|
738
|
+
* child_id = ctx.spawn(CustomerOnboarding, {"deal_id": deal_id})
|
|
739
|
+
*/
|
|
740
|
+
spawn(workflowClass: string, input: Record<string, unknown>): Promise<string>;
|
|
741
|
+
/**
|
|
742
|
+
* Emit event (triggers other workflows or signals waiting ones).
|
|
743
|
+
*
|
|
744
|
+
* @example
|
|
745
|
+
* ctx.emit("onboarding:completed", {"deal_id": deal_id})
|
|
746
|
+
*/
|
|
747
|
+
emit(eventType: string, data: Record<string, unknown>): Promise<void>;
|
|
748
|
+
/**
|
|
749
|
+
* Query and signal other workflows.
|
|
750
|
+
*/
|
|
751
|
+
readonly workflows: WorkflowsAPI;
|
|
752
|
+
/**
|
|
753
|
+
* Explicitly promote to cloud runtime.
|
|
754
|
+
* Call this when you know you'll need cloud capabilities.
|
|
755
|
+
*/
|
|
756
|
+
promoteToCloud(): Promise<void>;
|
|
757
|
+
/** Current workflow instance ID */
|
|
758
|
+
readonly instanceId: string;
|
|
759
|
+
/** Current step name */
|
|
760
|
+
readonly currentStep: string;
|
|
761
|
+
/** Current runtime: 'local' or 'cloud' */
|
|
762
|
+
readonly runtime: RuntimeType;
|
|
763
|
+
/** Workflow configuration / environment */
|
|
764
|
+
readonly config: WorkflowConfig;
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* Sleep duration specification.
|
|
768
|
+
*/
|
|
769
|
+
export interface SleepDuration {
|
|
770
|
+
milliseconds?: number;
|
|
771
|
+
seconds?: number;
|
|
772
|
+
minutes?: number;
|
|
773
|
+
hours?: number;
|
|
774
|
+
days?: number;
|
|
775
|
+
weeks?: number;
|
|
776
|
+
}
|
|
777
|
+
//# sourceMappingURL=context.d.ts.map
|