@decaf-ts/as-graph 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +92 -12
- package/assets/i18n/en.json +1519 -130
- package/dist/as-graph.cjs +1 -1
- package/dist/as-graph.cjs.map +1 -1
- package/dist/as-graph.js +1 -1
- package/dist/as-graph.js.map +1 -1
- package/lib/cjs/dagster/DagsterGraphExecutionBackend.cjs +13 -0
- package/lib/cjs/dagster/DagsterGraphExecutionBackend.cjs.map +1 -1
- package/lib/cjs/dagster/capabilities.cjs +5 -0
- package/lib/cjs/dagster/capabilities.cjs.map +1 -1
- package/lib/cjs/engine/execution/GraphCodeMode.cjs +42 -0
- package/lib/cjs/engine/execution/GraphCodeMode.cjs.map +1 -1
- package/lib/cjs/engine/execution/GraphExecutionEngine.cjs +35 -4
- package/lib/cjs/engine/execution/GraphExecutionEngine.cjs.map +1 -1
- package/lib/cjs/engine/validation/GraphNodeInstanceValidator.cjs +29 -1
- package/lib/cjs/engine/validation/GraphNodeInstanceValidator.cjs.map +1 -1
- package/lib/cjs/engine/validation/GraphWorkflowDocumentValidator.cjs +6 -2
- package/lib/cjs/engine/validation/GraphWorkflowDocumentValidator.cjs.map +1 -1
- package/lib/cjs/mastra/MastraWorkflowCompiler.cjs +41 -9
- package/lib/cjs/mastra/MastraWorkflowCompiler.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphEngineController.cjs +18 -0
- package/lib/cjs/nest/graph/GraphEngineController.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs +14 -0
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphRunController.cjs +17 -0
- package/lib/cjs/nest/graph/GraphRunController.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs +34 -5
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs.map +1 -1
- package/lib/cjs/node/comms/discord/node.cjs +384 -0
- package/lib/cjs/node/comms/discord/node.cjs.map +1 -0
- package/lib/cjs/node/comms/outlook/node.cjs +395 -0
- package/lib/cjs/node/comms/outlook/node.cjs.map +1 -0
- package/lib/cjs/node/comms/whatsapp/node.cjs +341 -0
- package/lib/cjs/node/comms/whatsapp/node.cjs.map +1 -0
- package/lib/cjs/node/data/aggregate/node.cjs +196 -0
- package/lib/cjs/node/data/aggregate/node.cjs.map +1 -0
- package/lib/cjs/node/data/compare-datasets/node.cjs +331 -0
- package/lib/cjs/node/data/compare-datasets/node.cjs.map +1 -0
- package/lib/cjs/node/data/item-lists/node.cjs +416 -0
- package/lib/cjs/node/data/item-lists/node.cjs.map +1 -0
- package/lib/cjs/node/data/remove-duplicates/node.cjs +141 -0
- package/lib/cjs/node/data/remove-duplicates/node.cjs.map +1 -0
- package/lib/cjs/node/data/summarize/node.cjs +155 -0
- package/lib/cjs/node/data/summarize/node.cjs.map +1 -0
- package/lib/cjs/node/data/support.cjs +5 -0
- package/lib/cjs/node/data/support.cjs.map +1 -1
- package/lib/cjs/node/data/transform-utils.cjs +719 -0
- package/lib/cjs/node/data/transform-utils.cjs.map +1 -0
- package/lib/cjs/node/index.cjs +216 -110
- package/lib/cjs/node/index.cjs.map +1 -1
- package/lib/cjs/node/io/confluence/node.cjs +253 -0
- package/lib/cjs/node/io/confluence/node.cjs.map +1 -0
- package/lib/cjs/node/io/convert-to-file/node.cjs +349 -0
- package/lib/cjs/node/io/convert-to-file/node.cjs.map +1 -0
- package/lib/cjs/node/io/file-support.cjs +311 -0
- package/lib/cjs/node/io/file-support.cjs.map +1 -0
- package/lib/cjs/node/io/google-calendar/node.cjs +359 -0
- package/lib/cjs/node/io/google-calendar/node.cjs.map +1 -0
- package/lib/cjs/node/io/google-docs/node.cjs +272 -0
- package/lib/cjs/node/io/google-docs/node.cjs.map +1 -0
- package/lib/cjs/node/io/html/node.cjs +275 -0
- package/lib/cjs/node/io/html/node.cjs.map +1 -0
- package/lib/cjs/node/io/html-extract/node.cjs +162 -0
- package/lib/cjs/node/io/html-extract/node.cjs.map +1 -0
- package/lib/cjs/node/io/html-support.cjs +246 -0
- package/lib/cjs/node/io/html-support.cjs.map +1 -0
- package/lib/cjs/node/io/jira/node.cjs +351 -0
- package/lib/cjs/node/io/jira/node.cjs.map +1 -0
- package/lib/cjs/node/io/markdown/node.cjs +229 -0
- package/lib/cjs/node/io/markdown/node.cjs.map +1 -0
- package/lib/cjs/node/io/microsoft-excel/node.cjs +261 -0
- package/lib/cjs/node/io/microsoft-excel/node.cjs.map +1 -0
- package/lib/cjs/node/io/microsoft-sharepoint/node.cjs +274 -0
- package/lib/cjs/node/io/microsoft-sharepoint/node.cjs.map +1 -0
- package/lib/cjs/node/io/read-binary-file/node.cjs +114 -0
- package/lib/cjs/node/io/read-binary-file/node.cjs.map +1 -0
- package/lib/cjs/node/io/read-binary-files/node.cjs +113 -0
- package/lib/cjs/node/io/read-binary-files/node.cjs.map +1 -0
- package/lib/cjs/node/io/write-binary-file/node.cjs +164 -0
- package/lib/cjs/node/io/write-binary-file/node.cjs.map +1 -0
- package/lib/cjs/node/io/xml/node.cjs +322 -0
- package/lib/cjs/node/io/xml/node.cjs.map +1 -0
- package/lib/cjs/node/manifests.cjs +137 -79
- package/lib/cjs/node/manifests.cjs.map +1 -1
- package/lib/cjs/node/storage/rabbitmq/node.cjs +252 -0
- package/lib/cjs/node/storage/rabbitmq/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/error/node.cjs +108 -0
- package/lib/cjs/node/triggers/error/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/postgres/node.cjs +244 -0
- package/lib/cjs/node/triggers/postgres/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/rabbitmq/node.cjs +284 -0
- package/lib/cjs/node/triggers/rabbitmq/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/redis/node.cjs +233 -0
- package/lib/cjs/node/triggers/redis/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/sse/node.cjs +196 -0
- package/lib/cjs/node/triggers/sse/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/support.cjs +107 -0
- package/lib/cjs/node/triggers/support.cjs.map +1 -0
- package/lib/cjs/node/triggers/workflow/node.cjs +193 -0
- package/lib/cjs/node/triggers/workflow/node.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphValueSchemaDerivation.cjs +20 -3
- package/lib/cjs/shared/graph/catalog/GraphValueSchemaDerivation.cjs.map +1 -1
- package/lib/cjs/workflows/boundary-value.workflow.cjs +38 -0
- package/lib/cjs/workflows/boundary-value.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/builders.cjs +47 -0
- package/lib/cjs/workflows/builders.cjs.map +1 -0
- package/lib/cjs/workflows/chat-agent.workflow.cjs +40 -0
- package/lib/cjs/workflows/chat-agent.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/error-boundary.workflow.cjs +54 -0
- package/lib/cjs/workflows/error-boundary.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/event-map.workflow.cjs +37 -0
- package/lib/cjs/workflows/event-map.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/foreach-break.workflow.cjs +58 -0
- package/lib/cjs/workflows/foreach-break.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/human-approval.workflow.cjs +44 -0
- package/lib/cjs/workflows/human-approval.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/if-switch.workflow.cjs +66 -0
- package/lib/cjs/workflows/if-switch.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/index.cjs +135 -0
- package/lib/cjs/workflows/index.cjs.map +1 -0
- package/lib/cjs/workflows/loops-while-until.workflow.cjs +76 -0
- package/lib/cjs/workflows/loops-while-until.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/manual-log.workflow.cjs +52 -0
- package/lib/cjs/workflows/manual-log.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/schedule-code.workflow.cjs +42 -0
- package/lib/cjs/workflows/schedule-code.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/types.cjs +4 -0
- package/lib/cjs/workflows/types.cjs.map +1 -0
- package/lib/cjs/workflows/value-templates.workflow.cjs +43 -0
- package/lib/cjs/workflows/value-templates.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/webhook-form.workflow.cjs +48 -0
- package/lib/cjs/workflows/webhook-form.workflow.cjs.map +1 -0
- package/lib/esm/dagster/DagsterGraphExecutionBackend.js +13 -0
- package/lib/esm/dagster/DagsterGraphExecutionBackend.js.map +1 -1
- package/lib/esm/dagster/capabilities.js +5 -0
- package/lib/esm/dagster/capabilities.js.map +1 -1
- package/lib/esm/engine/execution/GraphCodeMode.js +40 -0
- package/lib/esm/engine/execution/GraphCodeMode.js.map +1 -1
- package/lib/esm/engine/execution/GraphExecutionBackend.js.map +1 -1
- package/lib/esm/engine/execution/GraphExecutionEngine.js +36 -5
- package/lib/esm/engine/execution/GraphExecutionEngine.js.map +1 -1
- package/lib/esm/engine/validation/GraphNodeInstanceValidator.js +29 -1
- package/lib/esm/engine/validation/GraphNodeInstanceValidator.js.map +1 -1
- package/lib/esm/engine/validation/GraphWorkflowDocumentValidator.js +6 -2
- package/lib/esm/engine/validation/GraphWorkflowDocumentValidator.js.map +1 -1
- package/lib/esm/mastra/MastraMemory.js.map +1 -1
- package/lib/esm/mastra/MastraWorkflowCompiler.js +41 -9
- package/lib/esm/mastra/MastraWorkflowCompiler.js.map +1 -1
- package/lib/esm/nest/graph/GraphEngineController.js +19 -1
- package/lib/esm/nest/graph/GraphEngineController.js.map +1 -1
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js +15 -1
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js.map +1 -1
- package/lib/esm/nest/graph/GraphRunController.js +18 -1
- package/lib/esm/nest/graph/GraphRunController.js.map +1 -1
- package/lib/esm/nest/graph/GraphWorkflowController.js +35 -6
- package/lib/esm/nest/graph/GraphWorkflowController.js.map +1 -1
- package/lib/esm/node/comms/discord/node.js +375 -0
- package/lib/esm/node/comms/discord/node.js.map +1 -0
- package/lib/esm/node/comms/outlook/node.js +386 -0
- package/lib/esm/node/comms/outlook/node.js.map +1 -0
- package/lib/esm/node/comms/whatsapp/node.js +332 -0
- package/lib/esm/node/comms/whatsapp/node.js.map +1 -0
- package/lib/esm/node/data/aggregate/node.js +187 -0
- package/lib/esm/node/data/aggregate/node.js.map +1 -0
- package/lib/esm/node/data/compare-datasets/node.js +322 -0
- package/lib/esm/node/data/compare-datasets/node.js.map +1 -0
- package/lib/esm/node/data/item-lists/node.js +407 -0
- package/lib/esm/node/data/item-lists/node.js.map +1 -0
- package/lib/esm/node/data/remove-duplicates/node.js +132 -0
- package/lib/esm/node/data/remove-duplicates/node.js.map +1 -0
- package/lib/esm/node/data/summarize/node.js +146 -0
- package/lib/esm/node/data/summarize/node.js.map +1 -0
- package/lib/esm/node/data/support.js +5 -1
- package/lib/esm/node/data/support.js.map +1 -1
- package/lib/esm/node/data/transform-utils.js +702 -0
- package/lib/esm/node/data/transform-utils.js.map +1 -0
- package/lib/esm/node/index.js +110 -4
- package/lib/esm/node/index.js.map +1 -1
- package/lib/esm/node/io/confluence/node.js +244 -0
- package/lib/esm/node/io/confluence/node.js.map +1 -0
- package/lib/esm/node/io/convert-to-file/node.js +340 -0
- package/lib/esm/node/io/convert-to-file/node.js.map +1 -0
- package/lib/esm/node/io/file-support.js +299 -0
- package/lib/esm/node/io/file-support.js.map +1 -0
- package/lib/esm/node/io/google-calendar/node.js +350 -0
- package/lib/esm/node/io/google-calendar/node.js.map +1 -0
- package/lib/esm/node/io/google-docs/node.js +263 -0
- package/lib/esm/node/io/google-docs/node.js.map +1 -0
- package/lib/esm/node/io/html/node.js +266 -0
- package/lib/esm/node/io/html/node.js.map +1 -0
- package/lib/esm/node/io/html-extract/node.js +153 -0
- package/lib/esm/node/io/html-extract/node.js.map +1 -0
- package/lib/esm/node/io/html-support.js +206 -0
- package/lib/esm/node/io/html-support.js.map +1 -0
- package/lib/esm/node/io/jira/node.js +342 -0
- package/lib/esm/node/io/jira/node.js.map +1 -0
- package/lib/esm/node/io/markdown/node.js +217 -0
- package/lib/esm/node/io/markdown/node.js.map +1 -0
- package/lib/esm/node/io/microsoft-excel/node.js +252 -0
- package/lib/esm/node/io/microsoft-excel/node.js.map +1 -0
- package/lib/esm/node/io/microsoft-sharepoint/node.js +265 -0
- package/lib/esm/node/io/microsoft-sharepoint/node.js.map +1 -0
- package/lib/esm/node/io/read-binary-file/node.js +105 -0
- package/lib/esm/node/io/read-binary-file/node.js.map +1 -0
- package/lib/esm/node/io/read-binary-files/node.js +104 -0
- package/lib/esm/node/io/read-binary-files/node.js.map +1 -0
- package/lib/esm/node/io/write-binary-file/node.js +155 -0
- package/lib/esm/node/io/write-binary-file/node.js.map +1 -0
- package/lib/esm/node/io/xml/node.js +313 -0
- package/lib/esm/node/io/xml/node.js.map +1 -0
- package/lib/esm/node/manifests.js +58 -0
- package/lib/esm/node/manifests.js.map +1 -1
- package/lib/esm/node/storage/rabbitmq/node.js +243 -0
- package/lib/esm/node/storage/rabbitmq/node.js.map +1 -0
- package/lib/esm/node/triggers/error/node.js +99 -0
- package/lib/esm/node/triggers/error/node.js.map +1 -0
- package/lib/esm/node/triggers/postgres/node.js +235 -0
- package/lib/esm/node/triggers/postgres/node.js.map +1 -0
- package/lib/esm/node/triggers/rabbitmq/node.js +275 -0
- package/lib/esm/node/triggers/rabbitmq/node.js.map +1 -0
- package/lib/esm/node/triggers/redis/node.js +224 -0
- package/lib/esm/node/triggers/redis/node.js.map +1 -0
- package/lib/esm/node/triggers/sse/node.js +187 -0
- package/lib/esm/node/triggers/sse/node.js.map +1 -0
- package/lib/esm/node/triggers/support.js +99 -0
- package/lib/esm/node/triggers/support.js.map +1 -0
- package/lib/esm/node/triggers/workflow/node.js +184 -0
- package/lib/esm/node/triggers/workflow/node.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphValueSchemaDerivation.js +20 -3
- package/lib/esm/shared/graph/catalog/GraphValueSchemaDerivation.js.map +1 -1
- package/lib/esm/workflows/boundary-value.workflow.js +34 -0
- package/lib/esm/workflows/boundary-value.workflow.js.map +1 -0
- package/lib/esm/workflows/builders.js +40 -0
- package/lib/esm/workflows/builders.js.map +1 -0
- package/lib/esm/workflows/chat-agent.workflow.js +36 -0
- package/lib/esm/workflows/chat-agent.workflow.js.map +1 -0
- package/lib/esm/workflows/error-boundary.workflow.js +50 -0
- package/lib/esm/workflows/error-boundary.workflow.js.map +1 -0
- package/lib/esm/workflows/event-map.workflow.js +33 -0
- package/lib/esm/workflows/event-map.workflow.js.map +1 -0
- package/lib/esm/workflows/foreach-break.workflow.js +54 -0
- package/lib/esm/workflows/foreach-break.workflow.js.map +1 -0
- package/lib/esm/workflows/human-approval.workflow.js +40 -0
- package/lib/esm/workflows/human-approval.workflow.js.map +1 -0
- package/lib/esm/workflows/if-switch.workflow.js +62 -0
- package/lib/esm/workflows/if-switch.workflow.js.map +1 -0
- package/lib/esm/workflows/index.js +116 -0
- package/lib/esm/workflows/index.js.map +1 -0
- package/lib/esm/workflows/loops-while-until.workflow.js +72 -0
- package/lib/esm/workflows/loops-while-until.workflow.js.map +1 -0
- package/lib/esm/workflows/manual-log.workflow.js +48 -0
- package/lib/esm/workflows/manual-log.workflow.js.map +1 -0
- package/lib/esm/workflows/schedule-code.workflow.js +38 -0
- package/lib/esm/workflows/schedule-code.workflow.js.map +1 -0
- package/lib/esm/workflows/types.js +2 -0
- package/lib/esm/workflows/types.js.map +1 -0
- package/lib/esm/workflows/value-templates.workflow.js +39 -0
- package/lib/esm/workflows/value-templates.workflow.js.map +1 -0
- package/lib/esm/workflows/webhook-form.workflow.js +44 -0
- package/lib/esm/workflows/webhook-form.workflow.js.map +1 -0
- package/lib/types/dagster/DagsterGraphExecutionBackend.d.cts +7 -0
- package/lib/types/dagster/DagsterGraphExecutionBackend.d.mts +7 -0
- package/lib/types/engine/execution/GraphCodeMode.d.cts +46 -0
- package/lib/types/engine/execution/GraphCodeMode.d.mts +46 -0
- package/lib/types/engine/execution/GraphExecutionBackend.d.cts +21 -0
- package/lib/types/engine/execution/GraphExecutionBackend.d.mts +21 -0
- package/lib/types/engine/execution/GraphExecutionEngine.d.cts +28 -3
- package/lib/types/engine/execution/GraphExecutionEngine.d.mts +28 -3
- package/lib/types/engine/validation/GraphNodeInstanceValidator.d.cts +11 -1
- package/lib/types/engine/validation/GraphNodeInstanceValidator.d.mts +11 -1
- package/lib/types/engine/validation/GraphWorkflowDocumentValidator.d.cts +7 -0
- package/lib/types/engine/validation/GraphWorkflowDocumentValidator.d.mts +7 -0
- package/lib/types/mastra/MastraWorkflowCompiler.d.cts +23 -8
- package/lib/types/mastra/MastraWorkflowCompiler.d.mts +23 -8
- package/lib/types/nest/graph/GraphEngineController.d.cts +19 -0
- package/lib/types/nest/graph/GraphEngineController.d.mts +19 -0
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.cts +13 -0
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.mts +13 -0
- package/lib/types/nest/graph/GraphRunController.d.cts +16 -0
- package/lib/types/nest/graph/GraphRunController.d.mts +16 -0
- package/lib/types/nest/graph/GraphWorkflowController.d.cts +26 -3
- package/lib/types/nest/graph/GraphWorkflowController.d.mts +26 -3
- package/lib/types/node/comms/discord/node.d.cts +67 -0
- package/lib/types/node/comms/discord/node.d.mts +67 -0
- package/lib/types/node/comms/outlook/node.d.cts +77 -0
- package/lib/types/node/comms/outlook/node.d.mts +77 -0
- package/lib/types/node/comms/whatsapp/node.d.cts +71 -0
- package/lib/types/node/comms/whatsapp/node.d.mts +71 -0
- package/lib/types/node/data/aggregate/node.d.cts +58 -0
- package/lib/types/node/data/aggregate/node.d.mts +58 -0
- package/lib/types/node/data/compare-datasets/node.d.cts +72 -0
- package/lib/types/node/data/compare-datasets/node.d.mts +72 -0
- package/lib/types/node/data/item-lists/node.d.cts +92 -0
- package/lib/types/node/data/item-lists/node.d.mts +92 -0
- package/lib/types/node/data/remove-duplicates/node.d.cts +47 -0
- package/lib/types/node/data/remove-duplicates/node.d.mts +47 -0
- package/lib/types/node/data/summarize/node.d.cts +44 -0
- package/lib/types/node/data/summarize/node.d.mts +44 -0
- package/lib/types/node/data/support.d.cts +13 -0
- package/lib/types/node/data/support.d.mts +13 -0
- package/lib/types/node/data/transform-utils.d.cts +236 -0
- package/lib/types/node/data/transform-utils.d.mts +236 -0
- package/lib/types/node/index.d.cts +54 -6
- package/lib/types/node/index.d.mts +54 -6
- package/lib/types/node/io/confluence/node.d.cts +49 -0
- package/lib/types/node/io/confluence/node.d.mts +49 -0
- package/lib/types/node/io/convert-to-file/node.d.cts +75 -0
- package/lib/types/node/io/convert-to-file/node.d.mts +75 -0
- package/lib/types/node/io/file-support.d.cts +118 -0
- package/lib/types/node/io/file-support.d.mts +118 -0
- package/lib/types/node/io/google-calendar/node.d.cts +65 -0
- package/lib/types/node/io/google-calendar/node.d.mts +65 -0
- package/lib/types/node/io/google-docs/node.d.cts +51 -0
- package/lib/types/node/io/google-docs/node.d.mts +51 -0
- package/lib/types/node/io/html/node.d.cts +68 -0
- package/lib/types/node/io/html/node.d.mts +68 -0
- package/lib/types/node/io/html-extract/node.d.cts +42 -0
- package/lib/types/node/io/html-extract/node.d.mts +42 -0
- package/lib/types/node/io/html-support.d.cts +69 -0
- package/lib/types/node/io/html-support.d.mts +69 -0
- package/lib/types/node/io/jira/node.d.cts +57 -0
- package/lib/types/node/io/jira/node.d.mts +57 -0
- package/lib/types/node/io/markdown/node.d.cts +61 -0
- package/lib/types/node/io/markdown/node.d.mts +61 -0
- package/lib/types/node/io/microsoft-excel/node.d.cts +45 -0
- package/lib/types/node/io/microsoft-excel/node.d.mts +45 -0
- package/lib/types/node/io/microsoft-sharepoint/node.d.cts +47 -0
- package/lib/types/node/io/microsoft-sharepoint/node.d.mts +47 -0
- package/lib/types/node/io/read-binary-file/node.d.cts +45 -0
- package/lib/types/node/io/read-binary-file/node.d.mts +45 -0
- package/lib/types/node/io/read-binary-files/node.d.cts +41 -0
- package/lib/types/node/io/read-binary-files/node.d.mts +41 -0
- package/lib/types/node/io/write-binary-file/node.d.cts +55 -0
- package/lib/types/node/io/write-binary-file/node.d.mts +55 -0
- package/lib/types/node/io/xml/node.d.cts +67 -0
- package/lib/types/node/io/xml/node.d.mts +67 -0
- package/lib/types/node/storage/rabbitmq/node.d.cts +55 -0
- package/lib/types/node/storage/rabbitmq/node.d.mts +55 -0
- package/lib/types/node/triggers/error/node.d.cts +34 -0
- package/lib/types/node/triggers/error/node.d.mts +34 -0
- package/lib/types/node/triggers/postgres/node.d.cts +54 -0
- package/lib/types/node/triggers/postgres/node.d.mts +54 -0
- package/lib/types/node/triggers/rabbitmq/node.d.cts +59 -0
- package/lib/types/node/triggers/rabbitmq/node.d.mts +59 -0
- package/lib/types/node/triggers/redis/node.d.cts +53 -0
- package/lib/types/node/triggers/redis/node.d.mts +53 -0
- package/lib/types/node/triggers/sse/node.d.cts +43 -0
- package/lib/types/node/triggers/sse/node.d.mts +43 -0
- package/lib/types/node/triggers/support.d.cts +41 -0
- package/lib/types/node/triggers/support.d.mts +41 -0
- package/lib/types/node/triggers/workflow/node.d.cts +46 -0
- package/lib/types/node/triggers/workflow/node.d.mts +46 -0
- package/lib/types/workflows/boundary-value.workflow.d.cts +3 -0
- package/lib/types/workflows/boundary-value.workflow.d.mts +3 -0
- package/lib/types/workflows/builders.d.cts +31 -0
- package/lib/types/workflows/builders.d.mts +31 -0
- package/lib/types/workflows/chat-agent.workflow.d.cts +3 -0
- package/lib/types/workflows/chat-agent.workflow.d.mts +3 -0
- package/lib/types/workflows/error-boundary.workflow.d.cts +3 -0
- package/lib/types/workflows/error-boundary.workflow.d.mts +3 -0
- package/lib/types/workflows/event-map.workflow.d.cts +3 -0
- package/lib/types/workflows/event-map.workflow.d.mts +3 -0
- package/lib/types/workflows/foreach-break.workflow.d.cts +3 -0
- package/lib/types/workflows/foreach-break.workflow.d.mts +3 -0
- package/lib/types/workflows/human-approval.workflow.d.cts +3 -0
- package/lib/types/workflows/human-approval.workflow.d.mts +3 -0
- package/lib/types/workflows/if-switch.workflow.d.cts +3 -0
- package/lib/types/workflows/if-switch.workflow.d.mts +3 -0
- package/lib/types/workflows/index.d.cts +37 -0
- package/lib/types/workflows/index.d.mts +37 -0
- package/lib/types/workflows/loops-while-until.workflow.d.cts +3 -0
- package/lib/types/workflows/loops-while-until.workflow.d.mts +3 -0
- package/lib/types/workflows/manual-log.workflow.d.cts +3 -0
- package/lib/types/workflows/manual-log.workflow.d.mts +3 -0
- package/lib/types/workflows/schedule-code.workflow.d.cts +3 -0
- package/lib/types/workflows/schedule-code.workflow.d.mts +3 -0
- package/lib/types/workflows/types.d.cts +32 -0
- package/lib/types/workflows/types.d.mts +32 -0
- package/lib/types/workflows/value-templates.workflow.d.cts +16 -0
- package/lib/types/workflows/value-templates.workflow.d.mts +16 -0
- package/lib/types/workflows/webhook-form.workflow.d.cts +3 -0
- package/lib/types/workflows/webhook-form.workflow.d.mts +3 -0
- package/package.json +247 -25
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.mts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.mts";
|
|
3
|
+
import type { GraphExecutionContext } from "../../../engine/execution/GraphExecutionContext.d.mts";
|
|
4
|
+
/** Operations the node can run against Jira. */
|
|
5
|
+
export type JiraOperation = "createIssue" | "getIssue" | "updateIssue" | "deleteIssue" | "addComment" | "getTransitions" | "transitionIssue" | "search";
|
|
6
|
+
/** Inputs accepted by the Jira node. */
|
|
7
|
+
export type JiraNodeInput = Record<string, unknown>;
|
|
8
|
+
/** Outputs produced by the Jira node. */
|
|
9
|
+
export interface JiraNodeOutput {
|
|
10
|
+
/** Raw service response for the executed operation. */
|
|
11
|
+
result: unknown;
|
|
12
|
+
/** Created, fetched, updated, transitioned, or commented-on issue key. */
|
|
13
|
+
issueKey?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Jira node (`core.io.jira`): issue, comment, workflow, and JQL operations
|
|
17
|
+
* through the Decaf `JiraService`.
|
|
18
|
+
*/
|
|
19
|
+
export declare class JiraNode extends GraphNode<JiraNodeInput, JiraNodeOutput> {
|
|
20
|
+
/**
|
|
21
|
+
* Executes the configured Jira operation.
|
|
22
|
+
*
|
|
23
|
+
* @param request - Execution request carrying the credential secrets; the optional `jira` credential supplies the token, username, and base URL.
|
|
24
|
+
* @param context - Node execution context forwarded to the ctx-bound credential resolver.
|
|
25
|
+
* @returns Execution values with the service response on `result` and the affected `issueKey` where available.
|
|
26
|
+
* @throws {GraphExecutionError} with codes `GRAPH_JIRA_OPERATION_REQUIRED` (no operation configured), `GRAPH_JIRA_CREATE_REQUIRED`/`GRAPH_JIRA_ISSUE_REQUIRED`/`GRAPH_JIRA_FIELDS_REQUIRED`/`GRAPH_JIRA_COMMENT_REQUIRED`/`GRAPH_JIRA_TRANSITION_REQUIRED`/`GRAPH_JIRA_SEARCH_REQUIRED` (missing per-operation inputs), `GRAPH_JIRA_FIELDS_INVALID` (malformed fields), or `GRAPH_JIRA_OPERATION_FAILED` when the service call fails.
|
|
27
|
+
*/
|
|
28
|
+
execute(request: GraphNodeExecutionRequest<JiraNodeInput>, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
29
|
+
/** Jira operation to perform (default `createIssue`). */
|
|
30
|
+
operation: JiraOperation;
|
|
31
|
+
/** Project key used by `createIssue`. */
|
|
32
|
+
projectKey?: string;
|
|
33
|
+
/** Issue type name (default `Task`). */
|
|
34
|
+
issueType?: string;
|
|
35
|
+
/** Issue summary used by `createIssue`. */
|
|
36
|
+
summary?: string;
|
|
37
|
+
/** Issue description used by `createIssue`. */
|
|
38
|
+
description?: string;
|
|
39
|
+
/** Issue key used by get/update/delete/comment/transition operations. */
|
|
40
|
+
issueKey?: string;
|
|
41
|
+
/** Additional Jira fields as an object or JSON string. */
|
|
42
|
+
fields?: unknown;
|
|
43
|
+
/** Comment body used by `addComment`. */
|
|
44
|
+
comment?: string;
|
|
45
|
+
/** Workflow transition ID used by `transitionIssue`. */
|
|
46
|
+
transitionId?: string;
|
|
47
|
+
/** JQL query used by `search`. */
|
|
48
|
+
jql?: string;
|
|
49
|
+
/** Maximum results returned by `search`. */
|
|
50
|
+
maxResults?: number;
|
|
51
|
+
/** Optional Jira site base URL (overrides the credential value). */
|
|
52
|
+
baseUrl?: string;
|
|
53
|
+
/** Raw service response for the executed operation. */
|
|
54
|
+
result: unknown;
|
|
55
|
+
/** Affected issue key. */
|
|
56
|
+
resultIssueKey?: string;
|
|
57
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.cts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.cts";
|
|
3
|
+
/** Conversion direction. */
|
|
4
|
+
export type MarkdownMode = "markdownToHtml" | "htmlToMarkdown";
|
|
5
|
+
/** Inputs accepted by the Markdown node; `value` is the fallback source. */
|
|
6
|
+
export type MarkdownNodeInput = Record<string, unknown>;
|
|
7
|
+
/** Outputs produced by the Markdown node. */
|
|
8
|
+
export interface MarkdownNodeOutput {
|
|
9
|
+
/** Converted content, or a record when `destinationKey` is set. */
|
|
10
|
+
result: unknown;
|
|
11
|
+
/** The converted content string. */
|
|
12
|
+
content?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Markdown node (`core.io.markdown`): converts Markdown to HTML or HTML to
|
|
16
|
+
* Markdown and optionally nests the result under a destination key.
|
|
17
|
+
*/
|
|
18
|
+
export declare class MarkdownNode extends GraphNode<MarkdownNodeInput, MarkdownNodeOutput> {
|
|
19
|
+
/**
|
|
20
|
+
* Runs the configured Markdown conversion.
|
|
21
|
+
*
|
|
22
|
+
* @param request - Execution request; `inputs.value` is used when the mode's
|
|
23
|
+
* own source field is empty.
|
|
24
|
+
* @returns Execution values with the converted `result` and `content`.
|
|
25
|
+
* @throws {GraphExecutionError} `GRAPH_MARKDOWN_CONTENT_REQUIRED` when no
|
|
26
|
+
* source content is available, or `GRAPH_MARKDOWN_CONVERSION_FAILED` when
|
|
27
|
+
* the converter throws.
|
|
28
|
+
*/
|
|
29
|
+
execute(request: GraphNodeExecutionRequest<MarkdownNodeInput>): GraphExecutionValues;
|
|
30
|
+
private turndown;
|
|
31
|
+
/** Fallback source content when `markdown`/`html` is not set. */
|
|
32
|
+
value?: unknown;
|
|
33
|
+
/** Conversion direction (default `htmlToMarkdown`). */
|
|
34
|
+
mode: MarkdownMode;
|
|
35
|
+
/** Markdown source for `markdownToHtml`. */
|
|
36
|
+
markdown?: string;
|
|
37
|
+
/** HTML source for `htmlToMarkdown`. */
|
|
38
|
+
html?: string;
|
|
39
|
+
/** Wrap the converted content under this record key instead of returning it directly. */
|
|
40
|
+
destinationKey?: string;
|
|
41
|
+
/** Turndown heading style (default `atx`). */
|
|
42
|
+
headingStyle?: "setext" | "atx";
|
|
43
|
+
/** String used for horizontal rules (default `---`). */
|
|
44
|
+
hr?: string;
|
|
45
|
+
/** Bullet-list marker (default `*`). */
|
|
46
|
+
bulletMarker?: string;
|
|
47
|
+
/** Fenced code-block marker (default `````). */
|
|
48
|
+
codeBlockFence?: string;
|
|
49
|
+
/** Emphasis delimiter (default `_`). */
|
|
50
|
+
emDelimiter?: string;
|
|
51
|
+
/** Strong-emphasis delimiter (default `**`). */
|
|
52
|
+
strongDelimiter?: string;
|
|
53
|
+
/** Link output style (default `inlined`). */
|
|
54
|
+
linkStyle?: "inlined" | "referenced";
|
|
55
|
+
/** Comma-separated or array HTML elements removed before conversion. */
|
|
56
|
+
ignore?: string | string[];
|
|
57
|
+
/** Conversion result. */
|
|
58
|
+
result: unknown;
|
|
59
|
+
/** Converted content string. */
|
|
60
|
+
content?: string;
|
|
61
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.mts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.mts";
|
|
3
|
+
/** Conversion direction. */
|
|
4
|
+
export type MarkdownMode = "markdownToHtml" | "htmlToMarkdown";
|
|
5
|
+
/** Inputs accepted by the Markdown node; `value` is the fallback source. */
|
|
6
|
+
export type MarkdownNodeInput = Record<string, unknown>;
|
|
7
|
+
/** Outputs produced by the Markdown node. */
|
|
8
|
+
export interface MarkdownNodeOutput {
|
|
9
|
+
/** Converted content, or a record when `destinationKey` is set. */
|
|
10
|
+
result: unknown;
|
|
11
|
+
/** The converted content string. */
|
|
12
|
+
content?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Markdown node (`core.io.markdown`): converts Markdown to HTML or HTML to
|
|
16
|
+
* Markdown and optionally nests the result under a destination key.
|
|
17
|
+
*/
|
|
18
|
+
export declare class MarkdownNode extends GraphNode<MarkdownNodeInput, MarkdownNodeOutput> {
|
|
19
|
+
/**
|
|
20
|
+
* Runs the configured Markdown conversion.
|
|
21
|
+
*
|
|
22
|
+
* @param request - Execution request; `inputs.value` is used when the mode's
|
|
23
|
+
* own source field is empty.
|
|
24
|
+
* @returns Execution values with the converted `result` and `content`.
|
|
25
|
+
* @throws {GraphExecutionError} `GRAPH_MARKDOWN_CONTENT_REQUIRED` when no
|
|
26
|
+
* source content is available, or `GRAPH_MARKDOWN_CONVERSION_FAILED` when
|
|
27
|
+
* the converter throws.
|
|
28
|
+
*/
|
|
29
|
+
execute(request: GraphNodeExecutionRequest<MarkdownNodeInput>): GraphExecutionValues;
|
|
30
|
+
private turndown;
|
|
31
|
+
/** Fallback source content when `markdown`/`html` is not set. */
|
|
32
|
+
value?: unknown;
|
|
33
|
+
/** Conversion direction (default `htmlToMarkdown`). */
|
|
34
|
+
mode: MarkdownMode;
|
|
35
|
+
/** Markdown source for `markdownToHtml`. */
|
|
36
|
+
markdown?: string;
|
|
37
|
+
/** HTML source for `htmlToMarkdown`. */
|
|
38
|
+
html?: string;
|
|
39
|
+
/** Wrap the converted content under this record key instead of returning it directly. */
|
|
40
|
+
destinationKey?: string;
|
|
41
|
+
/** Turndown heading style (default `atx`). */
|
|
42
|
+
headingStyle?: "setext" | "atx";
|
|
43
|
+
/** String used for horizontal rules (default `---`). */
|
|
44
|
+
hr?: string;
|
|
45
|
+
/** Bullet-list marker (default `*`). */
|
|
46
|
+
bulletMarker?: string;
|
|
47
|
+
/** Fenced code-block marker (default `````). */
|
|
48
|
+
codeBlockFence?: string;
|
|
49
|
+
/** Emphasis delimiter (default `_`). */
|
|
50
|
+
emDelimiter?: string;
|
|
51
|
+
/** Strong-emphasis delimiter (default `**`). */
|
|
52
|
+
strongDelimiter?: string;
|
|
53
|
+
/** Link output style (default `inlined`). */
|
|
54
|
+
linkStyle?: "inlined" | "referenced";
|
|
55
|
+
/** Comma-separated or array HTML elements removed before conversion. */
|
|
56
|
+
ignore?: string | string[];
|
|
57
|
+
/** Conversion result. */
|
|
58
|
+
result: unknown;
|
|
59
|
+
/** Converted content string. */
|
|
60
|
+
content?: string;
|
|
61
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.cts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.cts";
|
|
3
|
+
import type { GraphExecutionContext } from "../../../engine/execution/GraphExecutionContext.d.cts";
|
|
4
|
+
/** Operations the node can run against Microsoft Excel. */
|
|
5
|
+
export type MicrosoftExcelOperation = "listWorksheets" | "getRange" | "updateRange" | "listTables" | "addTableRow";
|
|
6
|
+
/** Inputs accepted by the Microsoft Excel node. */
|
|
7
|
+
export type MicrosoftExcelNodeInput = Record<string, unknown>;
|
|
8
|
+
/** Outputs produced by the Microsoft Excel node. */
|
|
9
|
+
export interface MicrosoftExcelNodeOutput {
|
|
10
|
+
/** Raw service response for the executed operation. */
|
|
11
|
+
result: unknown;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Microsoft Excel node (`core.io.microsoftExcel`): workbook worksheet, range,
|
|
15
|
+
* and table operations through the Decaf `MicrosoftExcelService`.
|
|
16
|
+
*/
|
|
17
|
+
export declare class MicrosoftExcelNode extends GraphNode<MicrosoftExcelNodeInput, MicrosoftExcelNodeOutput> {
|
|
18
|
+
/**
|
|
19
|
+
* Executes the configured Microsoft Excel operation.
|
|
20
|
+
*
|
|
21
|
+
* @param request - Execution request carrying the credential secrets; the optional `microsoft-excel` Graph access token is resolved via `resolveNodeCredential`.
|
|
22
|
+
* @param context - Node execution context forwarded to the ctx-bound credential resolver.
|
|
23
|
+
* @returns Execution values with the service response on `result`.
|
|
24
|
+
* @throws {GraphExecutionError} with codes `GRAPH_EXCEL_OPERATION_REQUIRED` (no operation configured), `GRAPH_EXCEL_VALUES_REQUIRED`/`GRAPH_EXCEL_VALUES_INVALID` (missing or malformed values), or `GRAPH_EXCEL_OPERATION_FAILED` when the service call fails.
|
|
25
|
+
*/
|
|
26
|
+
execute(request: GraphNodeExecutionRequest<MicrosoftExcelNodeInput>, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
27
|
+
/** Excel operation to perform (default `getRange`). */
|
|
28
|
+
operation: MicrosoftExcelOperation;
|
|
29
|
+
/** Drive item ID of the workbook. */
|
|
30
|
+
itemId?: string;
|
|
31
|
+
/** Drive ID owning the workbook (defaults to the user's drive). */
|
|
32
|
+
driveId?: string;
|
|
33
|
+
/** Worksheet name for range operations. */
|
|
34
|
+
worksheet?: string;
|
|
35
|
+
/** A1-style range address (e.g. `A1:C10`). */
|
|
36
|
+
range?: string;
|
|
37
|
+
/** Cell values or row matrix, as an array or JSON string. */
|
|
38
|
+
values?: unknown;
|
|
39
|
+
/** Table ID used by `addTableRow`. */
|
|
40
|
+
tableId?: string;
|
|
41
|
+
/** Optional Microsoft Graph base URL override. */
|
|
42
|
+
baseUrl?: string;
|
|
43
|
+
/** Raw service response for the executed operation. */
|
|
44
|
+
result: unknown;
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.mts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.mts";
|
|
3
|
+
import type { GraphExecutionContext } from "../../../engine/execution/GraphExecutionContext.d.mts";
|
|
4
|
+
/** Operations the node can run against Microsoft Excel. */
|
|
5
|
+
export type MicrosoftExcelOperation = "listWorksheets" | "getRange" | "updateRange" | "listTables" | "addTableRow";
|
|
6
|
+
/** Inputs accepted by the Microsoft Excel node. */
|
|
7
|
+
export type MicrosoftExcelNodeInput = Record<string, unknown>;
|
|
8
|
+
/** Outputs produced by the Microsoft Excel node. */
|
|
9
|
+
export interface MicrosoftExcelNodeOutput {
|
|
10
|
+
/** Raw service response for the executed operation. */
|
|
11
|
+
result: unknown;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Microsoft Excel node (`core.io.microsoftExcel`): workbook worksheet, range,
|
|
15
|
+
* and table operations through the Decaf `MicrosoftExcelService`.
|
|
16
|
+
*/
|
|
17
|
+
export declare class MicrosoftExcelNode extends GraphNode<MicrosoftExcelNodeInput, MicrosoftExcelNodeOutput> {
|
|
18
|
+
/**
|
|
19
|
+
* Executes the configured Microsoft Excel operation.
|
|
20
|
+
*
|
|
21
|
+
* @param request - Execution request carrying the credential secrets; the optional `microsoft-excel` Graph access token is resolved via `resolveNodeCredential`.
|
|
22
|
+
* @param context - Node execution context forwarded to the ctx-bound credential resolver.
|
|
23
|
+
* @returns Execution values with the service response on `result`.
|
|
24
|
+
* @throws {GraphExecutionError} with codes `GRAPH_EXCEL_OPERATION_REQUIRED` (no operation configured), `GRAPH_EXCEL_VALUES_REQUIRED`/`GRAPH_EXCEL_VALUES_INVALID` (missing or malformed values), or `GRAPH_EXCEL_OPERATION_FAILED` when the service call fails.
|
|
25
|
+
*/
|
|
26
|
+
execute(request: GraphNodeExecutionRequest<MicrosoftExcelNodeInput>, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
27
|
+
/** Excel operation to perform (default `getRange`). */
|
|
28
|
+
operation: MicrosoftExcelOperation;
|
|
29
|
+
/** Drive item ID of the workbook. */
|
|
30
|
+
itemId?: string;
|
|
31
|
+
/** Drive ID owning the workbook (defaults to the user's drive). */
|
|
32
|
+
driveId?: string;
|
|
33
|
+
/** Worksheet name for range operations. */
|
|
34
|
+
worksheet?: string;
|
|
35
|
+
/** A1-style range address (e.g. `A1:C10`). */
|
|
36
|
+
range?: string;
|
|
37
|
+
/** Cell values or row matrix, as an array or JSON string. */
|
|
38
|
+
values?: unknown;
|
|
39
|
+
/** Table ID used by `addTableRow`. */
|
|
40
|
+
tableId?: string;
|
|
41
|
+
/** Optional Microsoft Graph base URL override. */
|
|
42
|
+
baseUrl?: string;
|
|
43
|
+
/** Raw service response for the executed operation. */
|
|
44
|
+
result: unknown;
|
|
45
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.cts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.cts";
|
|
3
|
+
import type { GraphExecutionContext } from "../../../engine/execution/GraphExecutionContext.d.cts";
|
|
4
|
+
/** Operations the node can run against Microsoft SharePoint. */
|
|
5
|
+
export type SharePointOperation = "listSites" | "getSite" | "listLists" | "listItems" | "createListItem" | "listDriveItems";
|
|
6
|
+
/** Inputs accepted by the Microsoft SharePoint node. */
|
|
7
|
+
export type SharePointNodeInput = Record<string, unknown>;
|
|
8
|
+
/** Outputs produced by the Microsoft SharePoint node. */
|
|
9
|
+
export interface SharePointNodeOutput {
|
|
10
|
+
/** Raw service response for the executed operation. */
|
|
11
|
+
result: unknown;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Microsoft SharePoint node (`core.io.microsoftSharePoint`): site, list, and
|
|
15
|
+
* drive-folder operations through the Decaf `MicrosoftSharePointService`.
|
|
16
|
+
*/
|
|
17
|
+
export declare class MicrosoftSharePointNode extends GraphNode<SharePointNodeInput, SharePointNodeOutput> {
|
|
18
|
+
/**
|
|
19
|
+
* Executes the configured Microsoft SharePoint operation.
|
|
20
|
+
*
|
|
21
|
+
* @param request - Execution request carrying the credential secrets; the optional `microsoft-sharepoint` Graph access token is resolved via `resolveNodeCredential`.
|
|
22
|
+
* @param context - Node execution context forwarded to the ctx-bound credential resolver.
|
|
23
|
+
* @returns Execution values with the service response on `result`.
|
|
24
|
+
* @throws {GraphExecutionError} with codes `GRAPH_SHAREPOINT_OPERATION_REQUIRED` (no operation configured), `GRAPH_SHAREPOINT_SITE_REQUIRED`/`GRAPH_SHAREPOINT_LIST_REQUIRED`/`GRAPH_SHAREPOINT_ITEM_REQUIRED` (missing per-operation inputs), `GRAPH_SHAREPOINT_FIELDS_INVALID` (malformed fields), or `GRAPH_SHAREPOINT_OPERATION_FAILED` when the service call fails.
|
|
25
|
+
*/
|
|
26
|
+
execute(request: GraphNodeExecutionRequest<SharePointNodeInput>, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
27
|
+
/** SharePoint operation to perform (default `listSites`). */
|
|
28
|
+
operation: SharePointOperation;
|
|
29
|
+
/** SharePoint site ID used by most operations. */
|
|
30
|
+
siteId?: string;
|
|
31
|
+
/** List ID used by list-item operations. */
|
|
32
|
+
listId?: string;
|
|
33
|
+
/** Drive folder item ID (defaults to the drive root). */
|
|
34
|
+
itemId?: string;
|
|
35
|
+
/** Site search term (default `*`). */
|
|
36
|
+
search?: string;
|
|
37
|
+
/** Maximum number of results (`$top`). */
|
|
38
|
+
top?: number;
|
|
39
|
+
/** OData filter expression for `listItems`. */
|
|
40
|
+
filter?: string;
|
|
41
|
+
/** New list-item fields as an object or JSON string. */
|
|
42
|
+
fields?: unknown;
|
|
43
|
+
/** Optional Microsoft Graph base URL override. */
|
|
44
|
+
baseUrl?: string;
|
|
45
|
+
/** Raw service response for the executed operation. */
|
|
46
|
+
result: unknown;
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.mts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.mts";
|
|
3
|
+
import type { GraphExecutionContext } from "../../../engine/execution/GraphExecutionContext.d.mts";
|
|
4
|
+
/** Operations the node can run against Microsoft SharePoint. */
|
|
5
|
+
export type SharePointOperation = "listSites" | "getSite" | "listLists" | "listItems" | "createListItem" | "listDriveItems";
|
|
6
|
+
/** Inputs accepted by the Microsoft SharePoint node. */
|
|
7
|
+
export type SharePointNodeInput = Record<string, unknown>;
|
|
8
|
+
/** Outputs produced by the Microsoft SharePoint node. */
|
|
9
|
+
export interface SharePointNodeOutput {
|
|
10
|
+
/** Raw service response for the executed operation. */
|
|
11
|
+
result: unknown;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Microsoft SharePoint node (`core.io.microsoftSharePoint`): site, list, and
|
|
15
|
+
* drive-folder operations through the Decaf `MicrosoftSharePointService`.
|
|
16
|
+
*/
|
|
17
|
+
export declare class MicrosoftSharePointNode extends GraphNode<SharePointNodeInput, SharePointNodeOutput> {
|
|
18
|
+
/**
|
|
19
|
+
* Executes the configured Microsoft SharePoint operation.
|
|
20
|
+
*
|
|
21
|
+
* @param request - Execution request carrying the credential secrets; the optional `microsoft-sharepoint` Graph access token is resolved via `resolveNodeCredential`.
|
|
22
|
+
* @param context - Node execution context forwarded to the ctx-bound credential resolver.
|
|
23
|
+
* @returns Execution values with the service response on `result`.
|
|
24
|
+
* @throws {GraphExecutionError} with codes `GRAPH_SHAREPOINT_OPERATION_REQUIRED` (no operation configured), `GRAPH_SHAREPOINT_SITE_REQUIRED`/`GRAPH_SHAREPOINT_LIST_REQUIRED`/`GRAPH_SHAREPOINT_ITEM_REQUIRED` (missing per-operation inputs), `GRAPH_SHAREPOINT_FIELDS_INVALID` (malformed fields), or `GRAPH_SHAREPOINT_OPERATION_FAILED` when the service call fails.
|
|
25
|
+
*/
|
|
26
|
+
execute(request: GraphNodeExecutionRequest<SharePointNodeInput>, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
27
|
+
/** SharePoint operation to perform (default `listSites`). */
|
|
28
|
+
operation: SharePointOperation;
|
|
29
|
+
/** SharePoint site ID used by most operations. */
|
|
30
|
+
siteId?: string;
|
|
31
|
+
/** List ID used by list-item operations. */
|
|
32
|
+
listId?: string;
|
|
33
|
+
/** Drive folder item ID (defaults to the drive root). */
|
|
34
|
+
itemId?: string;
|
|
35
|
+
/** Site search term (default `*`). */
|
|
36
|
+
search?: string;
|
|
37
|
+
/** Maximum number of results (`$top`). */
|
|
38
|
+
top?: number;
|
|
39
|
+
/** OData filter expression for `listItems`. */
|
|
40
|
+
filter?: string;
|
|
41
|
+
/** New list-item fields as an object or JSON string. */
|
|
42
|
+
fields?: unknown;
|
|
43
|
+
/** Optional Microsoft Graph base URL override. */
|
|
44
|
+
baseUrl?: string;
|
|
45
|
+
/** Raw service response for the executed operation. */
|
|
46
|
+
result: unknown;
|
|
47
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.cts";
|
|
2
|
+
import type { GraphExecutionValues } from "../../../engine/types.d.cts";
|
|
3
|
+
import { type BinaryFilePayload } from "../file-support.d.cts";
|
|
4
|
+
/** Inputs accepted by the Read Binary File node (the path is configuration, not input). */
|
|
5
|
+
export type ReadBinaryFileNodeInput = Record<string, unknown>;
|
|
6
|
+
/** Outputs produced by the Read Binary File node. */
|
|
7
|
+
export interface ReadBinaryFileNodeOutput {
|
|
8
|
+
/** Read payload. */
|
|
9
|
+
result: BinaryFilePayload;
|
|
10
|
+
/** Base file name of the read file. */
|
|
11
|
+
fileName: string;
|
|
12
|
+
/** MIME type inferred from the file extension. */
|
|
13
|
+
mimeType: string;
|
|
14
|
+
/** File size in bytes. */
|
|
15
|
+
bytes: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Read Binary File node (`core.io.readBinaryFile`): reads one file as a
|
|
19
|
+
* base64 payload.
|
|
20
|
+
*/
|
|
21
|
+
export declare class ReadBinaryFileNode extends GraphNode<ReadBinaryFileNodeInput, ReadBinaryFileNodeOutput> {
|
|
22
|
+
/**
|
|
23
|
+
* Reads the configured file.
|
|
24
|
+
*
|
|
25
|
+
* @returns Execution values with the payload and its file name, MIME type,
|
|
26
|
+
* and byte count.
|
|
27
|
+
* @throws {GraphExecutionError} `GRAPH_READ_BINARY_FILE_PATH_REQUIRED` when no
|
|
28
|
+
* path is configured (and `GRAPH_FILE_*` codes from path resolution/read).
|
|
29
|
+
*/
|
|
30
|
+
execute(): Promise<GraphExecutionValues>;
|
|
31
|
+
/** Unused optional input retained for node uniformity. */
|
|
32
|
+
value?: unknown;
|
|
33
|
+
/** File path to read (relative to the file-IO base). */
|
|
34
|
+
filePath?: string;
|
|
35
|
+
/** Alias for `filePath`. */
|
|
36
|
+
path?: string;
|
|
37
|
+
/** Read payload. */
|
|
38
|
+
result: BinaryFilePayload;
|
|
39
|
+
/** Base file name. */
|
|
40
|
+
fileName: string;
|
|
41
|
+
/** Inferred MIME type. */
|
|
42
|
+
mimeType: string;
|
|
43
|
+
/** File size in bytes. */
|
|
44
|
+
bytes: number;
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.mts";
|
|
2
|
+
import type { GraphExecutionValues } from "../../../engine/types.d.mts";
|
|
3
|
+
import { type BinaryFilePayload } from "../file-support.d.mts";
|
|
4
|
+
/** Inputs accepted by the Read Binary File node (the path is configuration, not input). */
|
|
5
|
+
export type ReadBinaryFileNodeInput = Record<string, unknown>;
|
|
6
|
+
/** Outputs produced by the Read Binary File node. */
|
|
7
|
+
export interface ReadBinaryFileNodeOutput {
|
|
8
|
+
/** Read payload. */
|
|
9
|
+
result: BinaryFilePayload;
|
|
10
|
+
/** Base file name of the read file. */
|
|
11
|
+
fileName: string;
|
|
12
|
+
/** MIME type inferred from the file extension. */
|
|
13
|
+
mimeType: string;
|
|
14
|
+
/** File size in bytes. */
|
|
15
|
+
bytes: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Read Binary File node (`core.io.readBinaryFile`): reads one file as a
|
|
19
|
+
* base64 payload.
|
|
20
|
+
*/
|
|
21
|
+
export declare class ReadBinaryFileNode extends GraphNode<ReadBinaryFileNodeInput, ReadBinaryFileNodeOutput> {
|
|
22
|
+
/**
|
|
23
|
+
* Reads the configured file.
|
|
24
|
+
*
|
|
25
|
+
* @returns Execution values with the payload and its file name, MIME type,
|
|
26
|
+
* and byte count.
|
|
27
|
+
* @throws {GraphExecutionError} `GRAPH_READ_BINARY_FILE_PATH_REQUIRED` when no
|
|
28
|
+
* path is configured (and `GRAPH_FILE_*` codes from path resolution/read).
|
|
29
|
+
*/
|
|
30
|
+
execute(): Promise<GraphExecutionValues>;
|
|
31
|
+
/** Unused optional input retained for node uniformity. */
|
|
32
|
+
value?: unknown;
|
|
33
|
+
/** File path to read (relative to the file-IO base). */
|
|
34
|
+
filePath?: string;
|
|
35
|
+
/** Alias for `filePath`. */
|
|
36
|
+
path?: string;
|
|
37
|
+
/** Read payload. */
|
|
38
|
+
result: BinaryFilePayload;
|
|
39
|
+
/** Base file name. */
|
|
40
|
+
fileName: string;
|
|
41
|
+
/** Inferred MIME type. */
|
|
42
|
+
mimeType: string;
|
|
43
|
+
/** File size in bytes. */
|
|
44
|
+
bytes: number;
|
|
45
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.cts";
|
|
2
|
+
import type { GraphExecutionValues } from "../../../engine/types.d.cts";
|
|
3
|
+
import { type BinaryFilePayload } from "../file-support.d.cts";
|
|
4
|
+
/** Inputs accepted by the Read Binary Files node (the selector is configuration, not input). */
|
|
5
|
+
export type ReadBinaryFilesNodeInput = Record<string, unknown>;
|
|
6
|
+
/** Outputs produced by the Read Binary Files node. */
|
|
7
|
+
export interface ReadBinaryFilesNodeOutput {
|
|
8
|
+
/** Payloads read from the matching files. */
|
|
9
|
+
result: BinaryFilePayload[];
|
|
10
|
+
/** Number of files read. */
|
|
11
|
+
files: number;
|
|
12
|
+
/** Total combined size in bytes. */
|
|
13
|
+
bytes: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Read Binary Files node (`core.io.readBinaryFiles`): reads every file matching
|
|
17
|
+
* a glob selector as a base64 payload.
|
|
18
|
+
*/
|
|
19
|
+
export declare class ReadBinaryFilesNode extends GraphNode<ReadBinaryFilesNodeInput, ReadBinaryFilesNodeOutput> {
|
|
20
|
+
/**
|
|
21
|
+
* Reads all files matching the configured selector.
|
|
22
|
+
*
|
|
23
|
+
* @returns Execution values with the payloads, file count, and total bytes.
|
|
24
|
+
* @throws {GraphExecutionError} `GRAPH_READ_BINARY_FILES_SELECTOR_REQUIRED`
|
|
25
|
+
* when no selector is configured (and `GRAPH_FILE_*` codes from path
|
|
26
|
+
* resolution/read).
|
|
27
|
+
*/
|
|
28
|
+
execute(): Promise<GraphExecutionValues>;
|
|
29
|
+
/** Unused optional input retained for node uniformity. */
|
|
30
|
+
value?: unknown;
|
|
31
|
+
/** Glob pattern to expand, relative to the file-IO base. */
|
|
32
|
+
fileSelector?: string;
|
|
33
|
+
/** Alias for `fileSelector`. */
|
|
34
|
+
pattern?: string;
|
|
35
|
+
/** Read payloads. */
|
|
36
|
+
result: BinaryFilePayload[];
|
|
37
|
+
/** Number of files read. */
|
|
38
|
+
files: number;
|
|
39
|
+
/** Total combined size in bytes. */
|
|
40
|
+
bytes: number;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.mts";
|
|
2
|
+
import type { GraphExecutionValues } from "../../../engine/types.d.mts";
|
|
3
|
+
import { type BinaryFilePayload } from "../file-support.d.mts";
|
|
4
|
+
/** Inputs accepted by the Read Binary Files node (the selector is configuration, not input). */
|
|
5
|
+
export type ReadBinaryFilesNodeInput = Record<string, unknown>;
|
|
6
|
+
/** Outputs produced by the Read Binary Files node. */
|
|
7
|
+
export interface ReadBinaryFilesNodeOutput {
|
|
8
|
+
/** Payloads read from the matching files. */
|
|
9
|
+
result: BinaryFilePayload[];
|
|
10
|
+
/** Number of files read. */
|
|
11
|
+
files: number;
|
|
12
|
+
/** Total combined size in bytes. */
|
|
13
|
+
bytes: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Read Binary Files node (`core.io.readBinaryFiles`): reads every file matching
|
|
17
|
+
* a glob selector as a base64 payload.
|
|
18
|
+
*/
|
|
19
|
+
export declare class ReadBinaryFilesNode extends GraphNode<ReadBinaryFilesNodeInput, ReadBinaryFilesNodeOutput> {
|
|
20
|
+
/**
|
|
21
|
+
* Reads all files matching the configured selector.
|
|
22
|
+
*
|
|
23
|
+
* @returns Execution values with the payloads, file count, and total bytes.
|
|
24
|
+
* @throws {GraphExecutionError} `GRAPH_READ_BINARY_FILES_SELECTOR_REQUIRED`
|
|
25
|
+
* when no selector is configured (and `GRAPH_FILE_*` codes from path
|
|
26
|
+
* resolution/read).
|
|
27
|
+
*/
|
|
28
|
+
execute(): Promise<GraphExecutionValues>;
|
|
29
|
+
/** Unused optional input retained for node uniformity. */
|
|
30
|
+
value?: unknown;
|
|
31
|
+
/** Glob pattern to expand, relative to the file-IO base. */
|
|
32
|
+
fileSelector?: string;
|
|
33
|
+
/** Alias for `fileSelector`. */
|
|
34
|
+
pattern?: string;
|
|
35
|
+
/** Read payloads. */
|
|
36
|
+
result: BinaryFilePayload[];
|
|
37
|
+
/** Number of files read. */
|
|
38
|
+
files: number;
|
|
39
|
+
/** Total combined size in bytes. */
|
|
40
|
+
bytes: number;
|
|
41
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.cts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.cts";
|
|
3
|
+
import { type GraphBinaryEncoding } from "../file-support.d.cts";
|
|
4
|
+
/** Inputs accepted by the Write Binary File node; `value` carries the payload. */
|
|
5
|
+
export type WriteBinaryFileNodeInput = Record<string, unknown>;
|
|
6
|
+
/** Outputs produced by the Write Binary File node. */
|
|
7
|
+
export interface WriteBinaryFileNodeOutput {
|
|
8
|
+
/** Write summary with the configured name, resolved path, and byte count. */
|
|
9
|
+
result: {
|
|
10
|
+
fileName: string;
|
|
11
|
+
path: string;
|
|
12
|
+
bytes: number;
|
|
13
|
+
};
|
|
14
|
+
/** Bytes written. */
|
|
15
|
+
bytes: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Write Binary File node (`core.io.writeBinaryFile`): decodes the input payload
|
|
19
|
+
* and writes it to the configured file.
|
|
20
|
+
*/
|
|
21
|
+
export declare class WriteBinaryFileNode extends GraphNode<WriteBinaryFileNodeInput, WriteBinaryFileNodeOutput> {
|
|
22
|
+
/**
|
|
23
|
+
* Writes the input payload to the configured file.
|
|
24
|
+
*
|
|
25
|
+
* @param request - Execution request; `inputs.value` carries the payload.
|
|
26
|
+
* @returns Execution values with the write summary and byte count.
|
|
27
|
+
* @throws {GraphExecutionError} `GRAPH_WRITE_BINARY_FILE_PATH_REQUIRED` when no
|
|
28
|
+
* path is configured, `GRAPH_WRITE_BINARY_FILE_CONTENT_REQUIRED` when the
|
|
29
|
+
* value is nil, or `GRAPH_BINARY_INPUT_REQUIRED` when the value cannot be
|
|
30
|
+
* decoded.
|
|
31
|
+
*/
|
|
32
|
+
execute(request: GraphNodeExecutionRequest<WriteBinaryFileNodeInput>): Promise<GraphExecutionValues>;
|
|
33
|
+
/** Payload to write (string, binary buffer, or record containing it). */
|
|
34
|
+
value: unknown;
|
|
35
|
+
/** Target file path/name (relative to the file-IO base). */
|
|
36
|
+
fileName?: string;
|
|
37
|
+
/** Alias for `fileName`. */
|
|
38
|
+
path?: string;
|
|
39
|
+
/** Record field holding the payload (default `data`). */
|
|
40
|
+
dataPropertyName: string;
|
|
41
|
+
/** Input decoding mode (default `auto`). */
|
|
42
|
+
encoding: GraphBinaryEncoding;
|
|
43
|
+
/** Append instead of replacing the target file (default `false`). */
|
|
44
|
+
append?: boolean;
|
|
45
|
+
/** Create missing parent directories (default `true`). */
|
|
46
|
+
createDirectories?: boolean;
|
|
47
|
+
/** Write summary. */
|
|
48
|
+
result: {
|
|
49
|
+
fileName: string;
|
|
50
|
+
path: string;
|
|
51
|
+
bytes: number;
|
|
52
|
+
};
|
|
53
|
+
/** Bytes written. */
|
|
54
|
+
bytes: number;
|
|
55
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.mts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.mts";
|
|
3
|
+
import { type GraphBinaryEncoding } from "../file-support.d.mts";
|
|
4
|
+
/** Inputs accepted by the Write Binary File node; `value` carries the payload. */
|
|
5
|
+
export type WriteBinaryFileNodeInput = Record<string, unknown>;
|
|
6
|
+
/** Outputs produced by the Write Binary File node. */
|
|
7
|
+
export interface WriteBinaryFileNodeOutput {
|
|
8
|
+
/** Write summary with the configured name, resolved path, and byte count. */
|
|
9
|
+
result: {
|
|
10
|
+
fileName: string;
|
|
11
|
+
path: string;
|
|
12
|
+
bytes: number;
|
|
13
|
+
};
|
|
14
|
+
/** Bytes written. */
|
|
15
|
+
bytes: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Write Binary File node (`core.io.writeBinaryFile`): decodes the input payload
|
|
19
|
+
* and writes it to the configured file.
|
|
20
|
+
*/
|
|
21
|
+
export declare class WriteBinaryFileNode extends GraphNode<WriteBinaryFileNodeInput, WriteBinaryFileNodeOutput> {
|
|
22
|
+
/**
|
|
23
|
+
* Writes the input payload to the configured file.
|
|
24
|
+
*
|
|
25
|
+
* @param request - Execution request; `inputs.value` carries the payload.
|
|
26
|
+
* @returns Execution values with the write summary and byte count.
|
|
27
|
+
* @throws {GraphExecutionError} `GRAPH_WRITE_BINARY_FILE_PATH_REQUIRED` when no
|
|
28
|
+
* path is configured, `GRAPH_WRITE_BINARY_FILE_CONTENT_REQUIRED` when the
|
|
29
|
+
* value is nil, or `GRAPH_BINARY_INPUT_REQUIRED` when the value cannot be
|
|
30
|
+
* decoded.
|
|
31
|
+
*/
|
|
32
|
+
execute(request: GraphNodeExecutionRequest<WriteBinaryFileNodeInput>): Promise<GraphExecutionValues>;
|
|
33
|
+
/** Payload to write (string, binary buffer, or record containing it). */
|
|
34
|
+
value: unknown;
|
|
35
|
+
/** Target file path/name (relative to the file-IO base). */
|
|
36
|
+
fileName?: string;
|
|
37
|
+
/** Alias for `fileName`. */
|
|
38
|
+
path?: string;
|
|
39
|
+
/** Record field holding the payload (default `data`). */
|
|
40
|
+
dataPropertyName: string;
|
|
41
|
+
/** Input decoding mode (default `auto`). */
|
|
42
|
+
encoding: GraphBinaryEncoding;
|
|
43
|
+
/** Append instead of replacing the target file (default `false`). */
|
|
44
|
+
append?: boolean;
|
|
45
|
+
/** Create missing parent directories (default `true`). */
|
|
46
|
+
createDirectories?: boolean;
|
|
47
|
+
/** Write summary. */
|
|
48
|
+
result: {
|
|
49
|
+
fileName: string;
|
|
50
|
+
path: string;
|
|
51
|
+
bytes: number;
|
|
52
|
+
};
|
|
53
|
+
/** Bytes written. */
|
|
54
|
+
bytes: number;
|
|
55
|
+
}
|