@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,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ErrorTriggerNode = void 0;
|
|
4
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
+
else
|
|
9
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
+
if (d = decorators[i])
|
|
11
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
+
};
|
|
14
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
+
return Reflect.metadata(k, v);
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @module as-graph/nodes/triggers/error
|
|
20
|
+
* @summary Error trigger node declaration (Stage 5b).
|
|
21
|
+
* @description Error trigger — entrypoint of an error workflow. The run/event
|
|
22
|
+
* plumbing (a failed run's `workflow.failed` / `node.failed` events) delivers
|
|
23
|
+
* the error context; this node normalizes it so the error workflow reads the
|
|
24
|
+
* same three blocks n8n exposes: `execution` (id, url, retryOf,
|
|
25
|
+
* lastNodeExecuted, mode, error), `workflow` (id, name), and the convenience
|
|
26
|
+
* `error` projection. The node has no configuration; it is payloadless unless
|
|
27
|
+
* the caller binds a `payload` input, in which case that payload passes
|
|
28
|
+
* through unchanged. No engine-core change is needed: the failure payload
|
|
29
|
+
* already flows through the existing event/run boundary.
|
|
30
|
+
*/
|
|
31
|
+
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
32
|
+
const index_js_1 = require("./../../../shared/graph/index.cjs");
|
|
33
|
+
const base_js_1 = require("./../../base.cjs");
|
|
34
|
+
const support_js_1 = require("./../../storage/support.cjs");
|
|
35
|
+
/**
|
|
36
|
+
* Error trigger node: emits the failed-run context into the error workflow.
|
|
37
|
+
*/
|
|
38
|
+
let ErrorTriggerNode = class ErrorTriggerNode extends base_js_1.GraphNode {
|
|
39
|
+
/**
|
|
40
|
+
* Emits the delivered failure context.
|
|
41
|
+
*
|
|
42
|
+
* @param request - The execution request carrying the failure payload.
|
|
43
|
+
* @returns The payload plus `execution`, `workflow`, and `error` projections
|
|
44
|
+
* when the delivered context carries them.
|
|
45
|
+
*/
|
|
46
|
+
execute(request) {
|
|
47
|
+
const delivered = this.payload ??
|
|
48
|
+
request.inputs["payload"] ??
|
|
49
|
+
request.inputs["value"] ??
|
|
50
|
+
request.inputs;
|
|
51
|
+
const payload = (0, support_js_1.asRecord)(delivered) ?? { value: delivered };
|
|
52
|
+
const execution = (0, support_js_1.asRecord)(payload["execution"]) ??
|
|
53
|
+
(0, support_js_1.asRecord)(request.inputs["execution"]);
|
|
54
|
+
const workflow = (0, support_js_1.asRecord)(payload["workflow"]) ?? (0, support_js_1.asRecord)(request.inputs["workflow"]);
|
|
55
|
+
const error = (0, support_js_1.asRecord)(execution?.["error"]) ??
|
|
56
|
+
(0, support_js_1.asRecord)(payload["error"]) ??
|
|
57
|
+
(0, support_js_1.asRecord)(request.inputs["error"]);
|
|
58
|
+
return {
|
|
59
|
+
payload,
|
|
60
|
+
...(execution ? { execution } : {}),
|
|
61
|
+
...(workflow ? { workflow } : {}),
|
|
62
|
+
...(error ? { error } : {}),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
exports.ErrorTriggerNode = ErrorTriggerNode;
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, index_js_1.input)({ handle: "payload", type: "object" }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], ErrorTriggerNode.prototype, "payload", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, decorator_validation_1.required)(),
|
|
73
|
+
(0, index_js_1.output)({ handle: "payload", type: "object" }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], ErrorTriggerNode.prototype, "payloadOut", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, index_js_1.output)({ handle: "execution", type: "object" }),
|
|
78
|
+
__metadata("design:type", Object)
|
|
79
|
+
], ErrorTriggerNode.prototype, "execution", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, index_js_1.output)({ handle: "workflow", type: "object" }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], ErrorTriggerNode.prototype, "workflow", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, index_js_1.output)({ handle: "error", type: "object" }),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], ErrorTriggerNode.prototype, "error", void 0);
|
|
88
|
+
exports.ErrorTriggerNode = ErrorTriggerNode = __decorate([
|
|
89
|
+
(0, index_js_1.node)("core.trigger.error", {
|
|
90
|
+
kind: "core.trigger.error",
|
|
91
|
+
category: "Trigger",
|
|
92
|
+
color: "#3b82f6",
|
|
93
|
+
icon: "ti-alert-triangle",
|
|
94
|
+
width: 96,
|
|
95
|
+
height: 96,
|
|
96
|
+
labels: ["trigger", "error", "failure", "workflow"],
|
|
97
|
+
metadata: {
|
|
98
|
+
title: "graph.node.trigger.error.name",
|
|
99
|
+
description: "graph.node.trigger.error.description",
|
|
100
|
+
trigger: {
|
|
101
|
+
type: "error",
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
}),
|
|
105
|
+
(0, decorator_validation_1.model)()
|
|
106
|
+
], ErrorTriggerNode);
|
|
107
|
+
//# sourceMappingURL=node.js.map
|
|
108
|
+
//# sourceMappingURL=node.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node/triggers/error/node.cjs","sourceRoot":"","sources":["node/triggers/error/node.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAA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BAAgB,CAAC,CAAC;AAErB,gCAAgC"}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PostgresTriggerNode = void 0;
|
|
4
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
+
else
|
|
9
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
+
if (d = decorators[i])
|
|
11
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
+
};
|
|
14
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
+
return Reflect.metadata(k, v);
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @module as-graph/nodes/triggers/postgres
|
|
20
|
+
* @summary PostgreSQL trigger node declaration (Stage 5b).
|
|
21
|
+
* @description Postgres trigger — listens on a Postgres `LISTEN`/`NOTIFY`
|
|
22
|
+
* channel and emits the first notification, driving the run. The connection
|
|
23
|
+
* uses the `pg` driver directly (plan amended R2; there is no decaf
|
|
24
|
+
* LISTEN/NOTIFY service) with the same TLS policy as the Stage 3a
|
|
25
|
+
* `core.storage.postgres` node: certificate verification is on unless the
|
|
26
|
+
* explicit `acceptSelfSigned` toggle is set. An optional `postgres`
|
|
27
|
+
* credential supplies the connection password through the ctx-bound node
|
|
28
|
+
* credential resolver.
|
|
29
|
+
*
|
|
30
|
+
* Kind-level parity (R6): this port reproduces the trigger's purpose (react to
|
|
31
|
+
* Postgres messages) and its primary configuration (connection + channel).
|
|
32
|
+
* n8n's table-row-change mode, which installs `AFTER INSERT/UPDATE/DELETE`
|
|
33
|
+
* triggers and helper functions in the target database, is deliberately not
|
|
34
|
+
* ported — it mutates the monitored schema. Emit the same payload from the
|
|
35
|
+
* application (or an existing database trigger) with
|
|
36
|
+
* `pg_notify('<channel>', '<json>')` instead. The wait honours `timeoutMs`
|
|
37
|
+
* and the run abort signal, and the connection is always closed.
|
|
38
|
+
*/
|
|
39
|
+
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
40
|
+
const ui_decorators_1 = require("@decaf-ts/ui-decorators");
|
|
41
|
+
const pg_1 = require("pg");
|
|
42
|
+
const index_js_1 = require("./../../../shared/graph/index.cjs");
|
|
43
|
+
const base_js_1 = require("./../../base.cjs");
|
|
44
|
+
const GraphExecutionError_js_1 = require("./../../../engine/errors/GraphExecutionError.cjs");
|
|
45
|
+
const support_js_1 = require("./../../storage/support.cjs");
|
|
46
|
+
const credentials_js_1 = require("./../../credentials.cjs");
|
|
47
|
+
const support_js_2 = require("./../support.cjs");
|
|
48
|
+
/** Postgres identifiers accepted as a notification channel (safe to quote). */
|
|
49
|
+
const CHANNEL_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
50
|
+
/**
|
|
51
|
+
* Postgres trigger node: listens for the first notification on a channel.
|
|
52
|
+
*/
|
|
53
|
+
let PostgresTriggerNode = class PostgresTriggerNode extends base_js_1.GraphNode {
|
|
54
|
+
constructor() {
|
|
55
|
+
super(...arguments);
|
|
56
|
+
/** Enable TLS. */
|
|
57
|
+
this.ssl = false;
|
|
58
|
+
/** Accept a self-signed TLS certificate (only meaningful with `ssl`). */
|
|
59
|
+
this.acceptSelfSigned = false;
|
|
60
|
+
/** Parse the notification payload as JSON when possible (raw string otherwise). */
|
|
61
|
+
this.jsonParseBody = false;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Listens on the configured channel and emits the first notification.
|
|
65
|
+
*
|
|
66
|
+
* @param request - The execution request carrying resolved credentials.
|
|
67
|
+
* @param context - The node execution context (run abort signal).
|
|
68
|
+
* @returns The notification payload, raw text, and channel.
|
|
69
|
+
* @throws {GraphExecutionError} `GRAPH_POSTGRES_TRIGGER_CHANNEL_REQUIRED` /
|
|
70
|
+
* `GRAPH_POSTGRES_TRIGGER_CHANNEL_INVALID` for a missing or unsafe channel,
|
|
71
|
+
* `GRAPH_POSTGRES_TRIGGER_CONNECTION_REQUIRED` for incomplete connection
|
|
72
|
+
* settings, `GRAPH_TRIGGER_TIMEOUT` when no notification arrives in time,
|
|
73
|
+
* `GRAPH_TRIGGER_ABORTED` when the run is cancelled, and
|
|
74
|
+
* `GRAPH_POSTGRES_TRIGGER_FAILED` for connection or listen failures.
|
|
75
|
+
*/
|
|
76
|
+
async execute(request, context) {
|
|
77
|
+
const channel = (0, support_js_1.asNonEmptyString)(this.channel);
|
|
78
|
+
if (!channel) {
|
|
79
|
+
throw new GraphExecutionError_js_1.GraphExecutionError("Postgres trigger requires a channel", "GRAPH_POSTGRES_TRIGGER_CHANNEL_REQUIRED");
|
|
80
|
+
}
|
|
81
|
+
if (!CHANNEL_PATTERN.test(channel)) {
|
|
82
|
+
throw new GraphExecutionError_js_1.GraphExecutionError(`Postgres trigger channel '${channel}' is not a valid identifier`, "GRAPH_POSTGRES_TRIGGER_CHANNEL_INVALID", { channel });
|
|
83
|
+
}
|
|
84
|
+
const database = (0, support_js_1.asNonEmptyString)(this.database);
|
|
85
|
+
const username = (0, support_js_1.asNonEmptyString)(this.username);
|
|
86
|
+
if (!database || !username) {
|
|
87
|
+
throw new GraphExecutionError_js_1.GraphExecutionError("Postgres trigger requires a database and username", "GRAPH_POSTGRES_TRIGGER_CONNECTION_REQUIRED");
|
|
88
|
+
}
|
|
89
|
+
const password = (0, credentials_js_1.credentialSecret)(await (0, support_js_1.resolveNodeCredential)(context, request.credentials, "postgres", false, "Postgres trigger"), ["password", "secret", "token"], "Postgres trigger");
|
|
90
|
+
const ssl = (0, support_js_1.asBoolean)(this.ssl, false);
|
|
91
|
+
const acceptSelfSigned = (0, support_js_1.asBoolean)(this.acceptSelfSigned, false);
|
|
92
|
+
const timeoutMs = (0, support_js_2.triggerTimeoutMs)(this.timeoutMs);
|
|
93
|
+
const client = new pg_1.Client({
|
|
94
|
+
host: (0, support_js_1.asNonEmptyString)(this.host) ?? "localhost",
|
|
95
|
+
port: (0, support_js_1.asNumber)(this.port) ?? 5432,
|
|
96
|
+
database,
|
|
97
|
+
user: username,
|
|
98
|
+
password,
|
|
99
|
+
ssl: ssl ? { rejectUnauthorized: !acceptSelfSigned } : false,
|
|
100
|
+
});
|
|
101
|
+
try {
|
|
102
|
+
await client.connect();
|
|
103
|
+
const event = await (0, support_js_2.waitForTriggerEvent)(context, timeoutMs, async (emit) => {
|
|
104
|
+
client.on("notification", (message) => {
|
|
105
|
+
if (message.channel !== channel)
|
|
106
|
+
return;
|
|
107
|
+
emit({
|
|
108
|
+
channel: message.channel,
|
|
109
|
+
message: message.payload ?? "",
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
await client.query(`LISTEN "${channel}"`);
|
|
113
|
+
await context.log("Postgres trigger listening", { channel });
|
|
114
|
+
return async () => {
|
|
115
|
+
await client.query(`UNLISTEN "${channel}"`).catch(() => undefined);
|
|
116
|
+
};
|
|
117
|
+
}, "GRAPH_TRIGGER_TIMEOUT", `Postgres trigger received no notification within ${timeoutMs}ms`);
|
|
118
|
+
return {
|
|
119
|
+
payload: (0, support_js_2.triggerPayload)(event.message, this.jsonParseBody === true),
|
|
120
|
+
message: event.message,
|
|
121
|
+
channel: event.channel,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
catch (error) {
|
|
125
|
+
throw (0, support_js_2.triggerFailure)("Postgres", "GRAPH_POSTGRES_TRIGGER_FAILED", error);
|
|
126
|
+
}
|
|
127
|
+
finally {
|
|
128
|
+
await client.end().catch(() => undefined);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
exports.PostgresTriggerNode = PostgresTriggerNode;
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, index_js_1.input)({ handle: "host", userControlled: true }),
|
|
135
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
136
|
+
label: "graph.node.trigger.postgres.fields.host.label",
|
|
137
|
+
type: "string",
|
|
138
|
+
}),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], PostgresTriggerNode.prototype, "host", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, index_js_1.input)({ handle: "port", userControlled: true }),
|
|
143
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
144
|
+
label: "graph.node.trigger.postgres.fields.port.label",
|
|
145
|
+
type: "number",
|
|
146
|
+
}),
|
|
147
|
+
__metadata("design:type", Number)
|
|
148
|
+
], PostgresTriggerNode.prototype, "port", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, decorator_validation_1.required)(),
|
|
151
|
+
(0, index_js_1.input)({ handle: "database", userControlled: true }),
|
|
152
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
153
|
+
label: "graph.node.trigger.postgres.fields.database.label",
|
|
154
|
+
type: "string",
|
|
155
|
+
}),
|
|
156
|
+
__metadata("design:type", String)
|
|
157
|
+
], PostgresTriggerNode.prototype, "database", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, decorator_validation_1.required)(),
|
|
160
|
+
(0, index_js_1.input)({ handle: "username", userControlled: true }),
|
|
161
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
162
|
+
label: "graph.node.trigger.postgres.fields.username.label",
|
|
163
|
+
type: "string",
|
|
164
|
+
}),
|
|
165
|
+
__metadata("design:type", String)
|
|
166
|
+
], PostgresTriggerNode.prototype, "username", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, decorator_validation_1.required)(),
|
|
169
|
+
(0, index_js_1.input)({ handle: "channel" }),
|
|
170
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
171
|
+
label: "graph.node.trigger.postgres.fields.channel.label",
|
|
172
|
+
placeholder: "graph.node.trigger.postgres.fields.channel.placeholder",
|
|
173
|
+
type: "string",
|
|
174
|
+
}),
|
|
175
|
+
__metadata("design:type", String)
|
|
176
|
+
], PostgresTriggerNode.prototype, "channel", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, index_js_1.input)({ handle: "ssl", userControlled: true }),
|
|
179
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
180
|
+
label: "graph.node.trigger.postgres.fields.ssl.label",
|
|
181
|
+
type: "boolean",
|
|
182
|
+
}),
|
|
183
|
+
__metadata("design:type", Boolean)
|
|
184
|
+
], PostgresTriggerNode.prototype, "ssl", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, index_js_1.input)({ handle: "acceptSelfSigned", userControlled: true }),
|
|
187
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
188
|
+
label: "graph.node.trigger.postgres.fields.acceptSelfSigned.label",
|
|
189
|
+
type: "boolean",
|
|
190
|
+
}),
|
|
191
|
+
__metadata("design:type", Boolean)
|
|
192
|
+
], PostgresTriggerNode.prototype, "acceptSelfSigned", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, index_js_1.input)({ handle: "jsonParseBody", userControlled: true }),
|
|
195
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
196
|
+
label: "graph.node.trigger.postgres.fields.jsonParseBody.label",
|
|
197
|
+
type: "boolean",
|
|
198
|
+
}),
|
|
199
|
+
__metadata("design:type", Boolean)
|
|
200
|
+
], PostgresTriggerNode.prototype, "jsonParseBody", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, index_js_1.input)({ handle: "timeoutMs", userControlled: true }),
|
|
203
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
204
|
+
label: "graph.node.trigger.postgres.fields.timeoutMs.label",
|
|
205
|
+
type: "number",
|
|
206
|
+
}),
|
|
207
|
+
__metadata("design:type", Number)
|
|
208
|
+
], PostgresTriggerNode.prototype, "timeoutMs", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, decorator_validation_1.required)(),
|
|
211
|
+
(0, index_js_1.output)({ handle: "payload" }),
|
|
212
|
+
__metadata("design:type", Object)
|
|
213
|
+
], PostgresTriggerNode.prototype, "payload", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
(0, index_js_1.output)({ handle: "message" }),
|
|
216
|
+
__metadata("design:type", String)
|
|
217
|
+
], PostgresTriggerNode.prototype, "message", void 0);
|
|
218
|
+
__decorate([
|
|
219
|
+
(0, index_js_1.output)({ handle: "channel" }),
|
|
220
|
+
__metadata("design:type", String)
|
|
221
|
+
], PostgresTriggerNode.prototype, "channelOutput", void 0);
|
|
222
|
+
exports.PostgresTriggerNode = PostgresTriggerNode = __decorate([
|
|
223
|
+
(0, index_js_1.node)("core.trigger.postgres", {
|
|
224
|
+
kind: "core.trigger.postgres",
|
|
225
|
+
category: "Trigger",
|
|
226
|
+
color: "#3b82f6",
|
|
227
|
+
icon: "ti-database",
|
|
228
|
+
width: 96,
|
|
229
|
+
height: 96,
|
|
230
|
+
labels: ["trigger", "postgres", "sql", "listen", "notify"],
|
|
231
|
+
metadata: {
|
|
232
|
+
title: "graph.node.trigger.postgres.name",
|
|
233
|
+
description: "graph.node.trigger.postgres.description",
|
|
234
|
+
trigger: {
|
|
235
|
+
type: "postgres",
|
|
236
|
+
channel: "",
|
|
237
|
+
jsonParseBody: false,
|
|
238
|
+
},
|
|
239
|
+
},
|
|
240
|
+
}),
|
|
241
|
+
(0, decorator_validation_1.model)()
|
|
242
|
+
], PostgresTriggerNode);
|
|
243
|
+
//# sourceMappingURL=node.js.map
|
|
244
|
+
//# sourceMappingURL=node.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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AI,EAAE,aAAa;QACnB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC;QAC1D,QAAQ,EAAE;YACN,KAAK,EAAE,kCAAkC;YACzC,WAAW,EAAE,yCAAyC;YACtD,OAAO,EAAE;gBACL,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,EAAE;gBACX,aAAa,EAAE,KAAK;aACvB;SACJ;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,mBAAmB,CAAC,CAAC;AAExB,gCAAgC"}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RabbitMqTriggerNode = void 0;
|
|
4
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
+
else
|
|
9
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
+
if (d = decorators[i])
|
|
11
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
+
};
|
|
14
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
+
return Reflect.metadata(k, v);
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @module as-graph/nodes/triggers/rabbitmq
|
|
20
|
+
* @summary RabbitMQ trigger node declaration (Stage 5b).
|
|
21
|
+
* @description RabbitMQ trigger — consumes one message from a queue and emits
|
|
22
|
+
* it, driving the run. The node uses `amqplib` directly (plan amended R2:
|
|
23
|
+
* there is no decaf AMQP service, so the library wrap is the simpler path)
|
|
24
|
+
* and an optional `rabbitmq` credential supplying the password through the
|
|
25
|
+
* ctx-bound node credential resolver. The queue is asserted durable; an
|
|
26
|
+
* optional exchange/routing-key pair binds it to a topic exchange so a
|
|
27
|
+
* producer publishing through the exchange reaches the trigger. One message
|
|
28
|
+
* per run is consumed and acknowledged immediately, matching the run-based
|
|
29
|
+
* trigger contract. The wait honours `timeoutMs` and the run abort signal.
|
|
30
|
+
*
|
|
31
|
+
* Producing side: `core.storage.rabbitmq` publishes to the same queue (or to
|
|
32
|
+
* the bound exchange) and thus fires this trigger.
|
|
33
|
+
*/
|
|
34
|
+
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
35
|
+
const ui_decorators_1 = require("@decaf-ts/ui-decorators");
|
|
36
|
+
const amqplib_1 = require("amqplib");
|
|
37
|
+
const index_js_1 = require("./../../../shared/graph/index.cjs");
|
|
38
|
+
const base_js_1 = require("./../../base.cjs");
|
|
39
|
+
const GraphExecutionError_js_1 = require("./../../../engine/errors/GraphExecutionError.cjs");
|
|
40
|
+
const support_js_1 = require("./../../storage/support.cjs");
|
|
41
|
+
const credentials_js_1 = require("./../../credentials.cjs");
|
|
42
|
+
const support_js_2 = require("./../support.cjs");
|
|
43
|
+
/** Projects AMQP message properties onto a JSON-safe record (undefined fields omitted). */
|
|
44
|
+
function jsonSafeProperties(properties) {
|
|
45
|
+
const timestamp = properties?.timestamp;
|
|
46
|
+
const record = {
|
|
47
|
+
contentType: properties?.contentType,
|
|
48
|
+
contentEncoding: properties?.contentEncoding,
|
|
49
|
+
correlationId: properties?.correlationId,
|
|
50
|
+
replyTo: properties?.replyTo,
|
|
51
|
+
messageId: properties?.messageId,
|
|
52
|
+
type: properties?.type,
|
|
53
|
+
appId: properties?.appId,
|
|
54
|
+
timestamp: timestamp instanceof Date
|
|
55
|
+
? timestamp.toISOString()
|
|
56
|
+
: timestamp === undefined
|
|
57
|
+
? undefined
|
|
58
|
+
: String(timestamp),
|
|
59
|
+
};
|
|
60
|
+
for (const [key, value] of Object.entries(record)) {
|
|
61
|
+
if (value === undefined)
|
|
62
|
+
delete record[key];
|
|
63
|
+
}
|
|
64
|
+
return record;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* RabbitMQ trigger node: consumes the first message from a queue and emits it.
|
|
68
|
+
*/
|
|
69
|
+
let RabbitMqTriggerNode = class RabbitMqTriggerNode extends base_js_1.GraphNode {
|
|
70
|
+
constructor() {
|
|
71
|
+
super(...arguments);
|
|
72
|
+
/** Enable TLS (`amqps`). */
|
|
73
|
+
this.ssl = false;
|
|
74
|
+
/** Parse the received message as JSON when possible (raw string otherwise). */
|
|
75
|
+
this.jsonParseBody = false;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Consumes the first message on the configured queue and emits its content.
|
|
79
|
+
*
|
|
80
|
+
* @param request - The execution request carrying resolved credentials.
|
|
81
|
+
* @param context - The node execution context (run abort signal).
|
|
82
|
+
* @returns The message payload, raw text, queue name, and projected properties.
|
|
83
|
+
* @throws {GraphExecutionError} `GRAPH_RABBITMQ_TRIGGER_QUEUE_REQUIRED` when no
|
|
84
|
+
* queue is configured, `GRAPH_TRIGGER_TIMEOUT` when no message arrives in
|
|
85
|
+
* time, `GRAPH_TRIGGER_ABORTED` when the run is cancelled, and
|
|
86
|
+
* `GRAPH_RABBITMQ_TRIGGER_FAILED` for connection or consume failures.
|
|
87
|
+
*/
|
|
88
|
+
async execute(request, context) {
|
|
89
|
+
const queue = (0, support_js_1.asNonEmptyString)(this.queue);
|
|
90
|
+
if (!queue) {
|
|
91
|
+
throw new GraphExecutionError_js_1.GraphExecutionError("RabbitMQ trigger requires a queue", "GRAPH_RABBITMQ_TRIGGER_QUEUE_REQUIRED");
|
|
92
|
+
}
|
|
93
|
+
const exchange = (0, support_js_1.asNonEmptyString)(this.exchange);
|
|
94
|
+
const routingKey = (0, support_js_1.asNonEmptyString)(this.routingKey) ?? "";
|
|
95
|
+
const password = (0, credentials_js_1.credentialSecret)(await (0, support_js_1.resolveNodeCredential)(context, request.credentials, "rabbitmq", false, "RabbitMQ trigger"), ["password", "secret", "token"], "RabbitMQ trigger");
|
|
96
|
+
const ssl = (0, support_js_1.asBoolean)(this.ssl, false);
|
|
97
|
+
const timeoutMs = (0, support_js_2.triggerTimeoutMs)(this.timeoutMs);
|
|
98
|
+
let connection;
|
|
99
|
+
let channel;
|
|
100
|
+
try {
|
|
101
|
+
connection = await (0, amqplib_1.connect)({
|
|
102
|
+
protocol: ssl ? "amqps" : "amqp",
|
|
103
|
+
hostname: (0, support_js_1.asNonEmptyString)(this.host) ?? "localhost",
|
|
104
|
+
port: (0, support_js_1.asNumber)(this.port) ?? (ssl ? 5671 : 5672),
|
|
105
|
+
username: (0, support_js_1.asNonEmptyString)(this.username) ?? "guest",
|
|
106
|
+
password,
|
|
107
|
+
vhost: (0, support_js_1.asNonEmptyString)(this.vhost) ?? "/",
|
|
108
|
+
heartbeat: 10,
|
|
109
|
+
});
|
|
110
|
+
channel = await connection.createChannel();
|
|
111
|
+
await channel.assertQueue(queue, { durable: true });
|
|
112
|
+
if (exchange) {
|
|
113
|
+
await channel.assertExchange(exchange, (0, support_js_1.asNonEmptyString)(this.exchangeType) ?? "topic", { durable: true });
|
|
114
|
+
await channel.bindQueue(queue, exchange, routingKey);
|
|
115
|
+
}
|
|
116
|
+
await channel.prefetch(1);
|
|
117
|
+
const event = await (0, support_js_2.waitForTriggerEvent)(context, timeoutMs, async (emit) => {
|
|
118
|
+
const consumer = await channel.consume(queue, (message) => {
|
|
119
|
+
if (!message)
|
|
120
|
+
return;
|
|
121
|
+
const raw = message.content.toString("utf8");
|
|
122
|
+
try {
|
|
123
|
+
channel.ack(message);
|
|
124
|
+
}
|
|
125
|
+
catch {
|
|
126
|
+
// the delivery is redelivered when the ack cannot be sent
|
|
127
|
+
}
|
|
128
|
+
emit({
|
|
129
|
+
message: raw,
|
|
130
|
+
properties: jsonSafeProperties(message.properties),
|
|
131
|
+
});
|
|
132
|
+
}, { noAck: false });
|
|
133
|
+
await context.log("RabbitMQ trigger subscribed", { queue });
|
|
134
|
+
return async () => {
|
|
135
|
+
await channel.cancel(consumer.consumerTag).catch(() => undefined);
|
|
136
|
+
};
|
|
137
|
+
}, "GRAPH_TRIGGER_TIMEOUT", `RabbitMQ trigger received no message within ${timeoutMs}ms`);
|
|
138
|
+
return {
|
|
139
|
+
payload: (0, support_js_2.triggerPayload)(event.message, this.jsonParseBody === true),
|
|
140
|
+
message: event.message,
|
|
141
|
+
queue,
|
|
142
|
+
properties: event.properties,
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
catch (error) {
|
|
146
|
+
throw (0, support_js_2.triggerFailure)("RabbitMQ", "GRAPH_RABBITMQ_TRIGGER_FAILED", error);
|
|
147
|
+
}
|
|
148
|
+
finally {
|
|
149
|
+
await channel?.close().catch(() => undefined);
|
|
150
|
+
await connection?.close().catch(() => undefined);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
exports.RabbitMqTriggerNode = RabbitMqTriggerNode;
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, decorator_validation_1.required)(),
|
|
157
|
+
(0, index_js_1.input)({ handle: "queue" }),
|
|
158
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
159
|
+
label: "graph.node.trigger.rabbitmq.fields.queue.label",
|
|
160
|
+
placeholder: "queue-name",
|
|
161
|
+
type: "string",
|
|
162
|
+
}),
|
|
163
|
+
__metadata("design:type", String)
|
|
164
|
+
], RabbitMqTriggerNode.prototype, "queue", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, index_js_1.input)({ handle: "exchange", userControlled: true }),
|
|
167
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
168
|
+
label: "graph.node.trigger.rabbitmq.fields.exchange.label",
|
|
169
|
+
type: "string",
|
|
170
|
+
}),
|
|
171
|
+
__metadata("design:type", String)
|
|
172
|
+
], RabbitMqTriggerNode.prototype, "exchange", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, index_js_1.input)({ handle: "exchangeType", userControlled: true }),
|
|
175
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
176
|
+
label: "graph.node.trigger.rabbitmq.fields.exchangeType.label",
|
|
177
|
+
type: "string",
|
|
178
|
+
}),
|
|
179
|
+
__metadata("design:type", String)
|
|
180
|
+
], RabbitMqTriggerNode.prototype, "exchangeType", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, index_js_1.input)({ handle: "routingKey", userControlled: true }),
|
|
183
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
184
|
+
label: "graph.node.trigger.rabbitmq.fields.routingKey.label",
|
|
185
|
+
type: "string",
|
|
186
|
+
}),
|
|
187
|
+
__metadata("design:type", String)
|
|
188
|
+
], RabbitMqTriggerNode.prototype, "routingKey", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, index_js_1.input)({ handle: "host", userControlled: true }),
|
|
191
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
192
|
+
label: "graph.node.trigger.rabbitmq.fields.host.label",
|
|
193
|
+
type: "string",
|
|
194
|
+
}),
|
|
195
|
+
__metadata("design:type", String)
|
|
196
|
+
], RabbitMqTriggerNode.prototype, "host", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
(0, index_js_1.input)({ handle: "port", userControlled: true }),
|
|
199
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
200
|
+
label: "graph.node.trigger.rabbitmq.fields.port.label",
|
|
201
|
+
type: "number",
|
|
202
|
+
}),
|
|
203
|
+
__metadata("design:type", Number)
|
|
204
|
+
], RabbitMqTriggerNode.prototype, "port", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
(0, index_js_1.input)({ handle: "username", userControlled: true }),
|
|
207
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
208
|
+
label: "graph.node.trigger.rabbitmq.fields.username.label",
|
|
209
|
+
type: "string",
|
|
210
|
+
}),
|
|
211
|
+
__metadata("design:type", String)
|
|
212
|
+
], RabbitMqTriggerNode.prototype, "username", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
(0, index_js_1.input)({ handle: "vhost", userControlled: true }),
|
|
215
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
216
|
+
label: "graph.node.trigger.rabbitmq.fields.vhost.label",
|
|
217
|
+
type: "string",
|
|
218
|
+
}),
|
|
219
|
+
__metadata("design:type", String)
|
|
220
|
+
], RabbitMqTriggerNode.prototype, "vhost", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, index_js_1.input)({ handle: "ssl", userControlled: true }),
|
|
223
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
224
|
+
label: "graph.node.trigger.rabbitmq.fields.ssl.label",
|
|
225
|
+
type: "boolean",
|
|
226
|
+
}),
|
|
227
|
+
__metadata("design:type", Boolean)
|
|
228
|
+
], RabbitMqTriggerNode.prototype, "ssl", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, index_js_1.input)({ handle: "jsonParseBody", userControlled: true }),
|
|
231
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
232
|
+
label: "graph.node.trigger.rabbitmq.fields.jsonParseBody.label",
|
|
233
|
+
type: "boolean",
|
|
234
|
+
}),
|
|
235
|
+
__metadata("design:type", Boolean)
|
|
236
|
+
], RabbitMqTriggerNode.prototype, "jsonParseBody", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
(0, index_js_1.input)({ handle: "timeoutMs", userControlled: true }),
|
|
239
|
+
(0, ui_decorators_1.uielement)("ngx-decaf-crud-field", {
|
|
240
|
+
label: "graph.node.trigger.rabbitmq.fields.timeoutMs.label",
|
|
241
|
+
type: "number",
|
|
242
|
+
}),
|
|
243
|
+
__metadata("design:type", Number)
|
|
244
|
+
], RabbitMqTriggerNode.prototype, "timeoutMs", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
(0, decorator_validation_1.required)(),
|
|
247
|
+
(0, index_js_1.output)({ handle: "payload" }),
|
|
248
|
+
__metadata("design:type", Object)
|
|
249
|
+
], RabbitMqTriggerNode.prototype, "payload", void 0);
|
|
250
|
+
__decorate([
|
|
251
|
+
(0, index_js_1.output)({ handle: "message" }),
|
|
252
|
+
__metadata("design:type", String)
|
|
253
|
+
], RabbitMqTriggerNode.prototype, "message", void 0);
|
|
254
|
+
__decorate([
|
|
255
|
+
(0, index_js_1.output)({ handle: "queue" }),
|
|
256
|
+
__metadata("design:type", String)
|
|
257
|
+
], RabbitMqTriggerNode.prototype, "queueOutput", void 0);
|
|
258
|
+
__decorate([
|
|
259
|
+
(0, index_js_1.output)({ handle: "properties", type: "object" }),
|
|
260
|
+
__metadata("design:type", Object)
|
|
261
|
+
], RabbitMqTriggerNode.prototype, "properties", void 0);
|
|
262
|
+
exports.RabbitMqTriggerNode = RabbitMqTriggerNode = __decorate([
|
|
263
|
+
(0, index_js_1.node)("core.trigger.rabbitmq", {
|
|
264
|
+
kind: "core.trigger.rabbitmq",
|
|
265
|
+
category: "Trigger",
|
|
266
|
+
color: "#3b82f6",
|
|
267
|
+
icon: "ti-inbox",
|
|
268
|
+
width: 96,
|
|
269
|
+
height: 96,
|
|
270
|
+
labels: ["trigger", "rabbitmq", "amqp", "queue"],
|
|
271
|
+
metadata: {
|
|
272
|
+
title: "graph.node.trigger.rabbitmq.name",
|
|
273
|
+
description: "graph.node.trigger.rabbitmq.description",
|
|
274
|
+
trigger: {
|
|
275
|
+
type: "rabbitmq",
|
|
276
|
+
queue: "",
|
|
277
|
+
jsonParseBody: false,
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
}),
|
|
281
|
+
(0, decorator_validation_1.model)()
|
|
282
|
+
], RabbitMqTriggerNode);
|
|
283
|
+
//# sourceMappingURL=node.js.map
|
|
284
|
+
//# sourceMappingURL=node.cjs.map
|