@atom8n/n8n-workflow 2.2.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 +13 -0
- package/dist/cjs/augment-object.d.ts +3 -0
- package/dist/cjs/augment-object.d.ts.map +1 -0
- package/dist/cjs/augment-object.js +157 -0
- package/dist/cjs/augment-object.js.map +1 -0
- package/dist/cjs/common/get-child-nodes.d.ts +3 -0
- package/dist/cjs/common/get-child-nodes.d.ts.map +1 -0
- package/dist/cjs/common/get-child-nodes.js +19 -0
- package/dist/cjs/common/get-child-nodes.js.map +1 -0
- package/dist/cjs/common/get-connected-nodes.d.ts +10 -0
- package/dist/cjs/common/get-connected-nodes.d.ts.map +1 -0
- package/dist/cjs/common/get-connected-nodes.js +84 -0
- package/dist/cjs/common/get-connected-nodes.js.map +1 -0
- package/dist/cjs/common/get-node-by-name.d.ts +9 -0
- package/dist/cjs/common/get-node-by-name.d.ts.map +1 -0
- package/dist/cjs/common/get-node-by-name.js +29 -0
- package/dist/cjs/common/get-node-by-name.js.map +1 -0
- package/dist/cjs/common/get-parent-nodes.d.ts +9 -0
- package/dist/cjs/common/get-parent-nodes.d.ts.map +1 -0
- package/dist/cjs/common/get-parent-nodes.js +25 -0
- package/dist/cjs/common/get-parent-nodes.js.map +1 -0
- package/dist/cjs/common/index.d.ts +6 -0
- package/dist/cjs/common/index.d.ts.map +1 -0
- package/dist/cjs/common/index.js +32 -0
- package/dist/cjs/common/index.js.map +1 -0
- package/dist/cjs/common/map-connections-by-destination.d.ts +3 -0
- package/dist/cjs/common/map-connections-by-destination.d.ts.map +1 -0
- package/dist/cjs/common/map-connections-by-destination.js +53 -0
- package/dist/cjs/common/map-connections-by-destination.js.map +1 -0
- package/dist/cjs/connections-diff.d.ts +16 -0
- package/dist/cjs/connections-diff.d.ts.map +1 -0
- package/dist/cjs/connections-diff.js +75 -0
- package/dist/cjs/connections-diff.js.map +1 -0
- package/dist/cjs/constants.d.ts +83 -0
- package/dist/cjs/constants.d.ts.map +1 -0
- package/dist/cjs/constants.js +123 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/cron.d.ts +35 -0
- package/dist/cjs/cron.d.ts.map +1 -0
- package/dist/cjs/cron.js +37 -0
- package/dist/cjs/cron.js.map +1 -0
- package/dist/cjs/data-table.types.d.ts +140 -0
- package/dist/cjs/data-table.types.d.ts.map +1 -0
- package/dist/cjs/data-table.types.js +21 -0
- package/dist/cjs/data-table.types.js.map +1 -0
- package/dist/cjs/deferred-promise.d.ts +10 -0
- package/dist/cjs/deferred-promise.d.ts.map +1 -0
- package/dist/cjs/deferred-promise.js +22 -0
- package/dist/cjs/deferred-promise.js.map +1 -0
- package/dist/cjs/errors/abstract/execution-base.error.d.ts +27 -0
- package/dist/cjs/errors/abstract/execution-base.error.d.ts.map +1 -0
- package/dist/cjs/errors/abstract/execution-base.error.js +50 -0
- package/dist/cjs/errors/abstract/execution-base.error.js.map +1 -0
- package/dist/cjs/errors/abstract/node.error.d.ts +48 -0
- package/dist/cjs/errors/abstract/node.error.d.ts.map +1 -0
- package/dist/cjs/errors/abstract/node.error.js +177 -0
- package/dist/cjs/errors/abstract/node.error.js.map +1 -0
- package/dist/cjs/errors/base/base.error.d.ts +26 -0
- package/dist/cjs/errors/base/base.error.d.ts.map +1 -0
- package/dist/cjs/errors/base/base.error.js +53 -0
- package/dist/cjs/errors/base/base.error.js.map +1 -0
- package/dist/cjs/errors/base/operational.error.d.ts +16 -0
- package/dist/cjs/errors/base/operational.error.d.ts.map +1 -0
- package/dist/cjs/errors/base/operational.error.js +29 -0
- package/dist/cjs/errors/base/operational.error.js.map +1 -0
- package/dist/cjs/errors/base/unexpected.error.d.ts +16 -0
- package/dist/cjs/errors/base/unexpected.error.d.ts.map +1 -0
- package/dist/cjs/errors/base/unexpected.error.js +29 -0
- package/dist/cjs/errors/base/unexpected.error.js.map +1 -0
- package/dist/cjs/errors/base/user.error.d.ts +18 -0
- package/dist/cjs/errors/base/user.error.d.ts.map +1 -0
- package/dist/cjs/errors/base/user.error.js +29 -0
- package/dist/cjs/errors/base/user.error.js.map +1 -0
- package/dist/cjs/errors/cli-subworkflow-operation.error.d.ts +4 -0
- package/dist/cjs/errors/cli-subworkflow-operation.error.d.ts.map +1 -0
- package/dist/cjs/errors/cli-subworkflow-operation.error.js +18 -0
- package/dist/cjs/errors/cli-subworkflow-operation.error.js.map +1 -0
- package/dist/cjs/errors/db-connection-timeout-error.d.ts +9 -0
- package/dist/cjs/errors/db-connection-timeout-error.d.ts.map +1 -0
- package/dist/cjs/errors/db-connection-timeout-error.js +23 -0
- package/dist/cjs/errors/db-connection-timeout-error.js.map +1 -0
- package/dist/cjs/errors/ensure-error.d.ts +3 -0
- package/dist/cjs/errors/ensure-error.d.ts.map +1 -0
- package/dist/cjs/errors/ensure-error.js +23 -0
- package/dist/cjs/errors/ensure-error.js.map +1 -0
- package/dist/cjs/errors/execution-cancelled.error.d.ts +16 -0
- package/dist/cjs/errors/execution-cancelled.error.d.ts.map +1 -0
- package/dist/cjs/errors/execution-cancelled.error.js +48 -0
- package/dist/cjs/errors/execution-cancelled.error.js.map +1 -0
- package/dist/cjs/errors/expression-extension.error.d.ts +4 -0
- package/dist/cjs/errors/expression-extension.error.d.ts.map +1 -0
- package/dist/cjs/errors/expression-extension.error.js +18 -0
- package/dist/cjs/errors/expression-extension.error.js.map +1 -0
- package/dist/cjs/errors/expression.error.d.ts +22 -0
- package/dist/cjs/errors/expression.error.d.ts.map +1 -0
- package/dist/cjs/errors/expression.error.js +48 -0
- package/dist/cjs/errors/expression.error.js.map +1 -0
- package/dist/cjs/errors/index.d.ts +24 -0
- package/dist/cjs/errors/index.d.ts.map +1 -0
- package/dist/cjs/errors/index.js +63 -0
- package/dist/cjs/errors/index.js.map +1 -0
- package/dist/cjs/errors/node-api.error.d.ts +39 -0
- package/dist/cjs/errors/node-api.error.d.ts.map +1 -0
- package/dist/cjs/errors/node-api.error.js +257 -0
- package/dist/cjs/errors/node-api.error.js.map +1 -0
- package/dist/cjs/errors/node-operation.error.d.ts +11 -0
- package/dist/cjs/errors/node-operation.error.d.ts.map +1 -0
- package/dist/cjs/errors/node-operation.error.js +53 -0
- package/dist/cjs/errors/node-operation.error.js.map +1 -0
- package/dist/cjs/errors/node-ssl.error.d.ts +5 -0
- package/dist/cjs/errors/node-ssl.error.d.ts.map +1 -0
- package/dist/cjs/errors/node-ssl.error.js +21 -0
- package/dist/cjs/errors/node-ssl.error.js.map +1 -0
- package/dist/cjs/errors/subworkflow-operation.error.d.ts +7 -0
- package/dist/cjs/errors/subworkflow-operation.error.d.ts.map +1 -0
- package/dist/cjs/errors/subworkflow-operation.error.js +30 -0
- package/dist/cjs/errors/subworkflow-operation.error.js.map +1 -0
- package/dist/cjs/errors/trigger-close.error.d.ts +11 -0
- package/dist/cjs/errors/trigger-close.error.d.ts.map +1 -0
- package/dist/cjs/errors/trigger-close.error.js +24 -0
- package/dist/cjs/errors/trigger-close.error.js.map +1 -0
- package/dist/cjs/errors/webhook-taken.error.d.ts +5 -0
- package/dist/cjs/errors/webhook-taken.error.d.ts.map +1 -0
- package/dist/cjs/errors/webhook-taken.error.js +21 -0
- package/dist/cjs/errors/webhook-taken.error.js.map +1 -0
- package/dist/cjs/errors/workflow-activation.error.d.ts +20 -0
- package/dist/cjs/errors/workflow-activation.error.d.ts.map +1 -0
- package/dist/cjs/errors/workflow-activation.error.js +54 -0
- package/dist/cjs/errors/workflow-activation.error.js.map +1 -0
- package/dist/cjs/errors/workflow-configuration.error.d.ts +7 -0
- package/dist/cjs/errors/workflow-configuration.error.d.ts.map +1 -0
- package/dist/cjs/errors/workflow-configuration.error.js +21 -0
- package/dist/cjs/errors/workflow-configuration.error.js.map +1 -0
- package/dist/cjs/errors/workflow-deactivation.error.d.ts +4 -0
- package/dist/cjs/errors/workflow-deactivation.error.d.ts.map +1 -0
- package/dist/cjs/errors/workflow-deactivation.error.js +18 -0
- package/dist/cjs/errors/workflow-deactivation.error.js.map +1 -0
- package/dist/cjs/errors/workflow-operation.error.d.ts +11 -0
- package/dist/cjs/errors/workflow-operation.error.d.ts.map +1 -0
- package/dist/cjs/errors/workflow-operation.error.js +32 -0
- package/dist/cjs/errors/workflow-operation.error.js.map +1 -0
- package/dist/cjs/evaluation-helpers.d.ts +22 -0
- package/dist/cjs/evaluation-helpers.d.ts.map +1 -0
- package/dist/cjs/evaluation-helpers.js +38 -0
- package/dist/cjs/evaluation-helpers.js.map +1 -0
- package/dist/cjs/execution-context-establishment-hooks.d.ts +38 -0
- package/dist/cjs/execution-context-establishment-hooks.d.ts.map +1 -0
- package/dist/cjs/execution-context-establishment-hooks.js +52 -0
- package/dist/cjs/execution-context-establishment-hooks.js.map +1 -0
- package/dist/cjs/execution-context.d.ts +113 -0
- package/dist/cjs/execution-context.d.ts.map +1 -0
- package/dist/cjs/execution-context.js +127 -0
- package/dist/cjs/execution-context.js.map +1 -0
- package/dist/cjs/execution-status.d.ts +3 -0
- package/dist/cjs/execution-status.d.ts.map +1 -0
- package/dist/cjs/execution-status.js +24 -0
- package/dist/cjs/execution-status.js.map +1 -0
- package/dist/cjs/expression-evaluator-proxy.d.ts +6 -0
- package/dist/cjs/expression-evaluator-proxy.d.ts.map +1 -0
- package/dist/cjs/expression-evaluator-proxy.js +30 -0
- package/dist/cjs/expression-evaluator-proxy.js.map +1 -0
- package/dist/cjs/expression-sandboxing.d.ts +24 -0
- package/dist/cjs/expression-sandboxing.d.ts.map +1 -0
- package/dist/cjs/expression-sandboxing.js +210 -0
- package/dist/cjs/expression-sandboxing.js.map +1 -0
- package/dist/cjs/expression.d.ts +48 -0
- package/dist/cjs/expression.d.ts.map +1 -0
- package/dist/cjs/expression.js +362 -0
- package/dist/cjs/expression.js.map +1 -0
- package/dist/cjs/expressions/expression-helpers.d.ts +6 -0
- package/dist/cjs/expressions/expression-helpers.d.ts.map +1 -0
- package/dist/cjs/expressions/expression-helpers.js +24 -0
- package/dist/cjs/expressions/expression-helpers.js.map +1 -0
- package/dist/cjs/extensions/array-extensions.d.ts +34 -0
- package/dist/cjs/extensions/array-extensions.d.ts.map +1 -0
- package/dist/cjs/extensions/array-extensions.js +632 -0
- package/dist/cjs/extensions/array-extensions.js.map +1 -0
- package/dist/cjs/extensions/boolean-extensions.d.ts +6 -0
- package/dist/cjs/extensions/boolean-extensions.d.ts.map +1 -0
- package/dist/cjs/extensions/boolean-extensions.js +49 -0
- package/dist/cjs/extensions/boolean-extensions.js.map +1 -0
- package/dist/cjs/extensions/date-extensions.d.ts +3 -0
- package/dist/cjs/extensions/date-extensions.d.ts.map +1 -0
- package/dist/cjs/extensions/date-extensions.js +528 -0
- package/dist/cjs/extensions/date-extensions.js.map +1 -0
- package/dist/cjs/extensions/expression-extension.d.ts +32 -0
- package/dist/cjs/extensions/expression-extension.d.ts.map +1 -0
- package/dist/cjs/extensions/expression-extension.js +491 -0
- package/dist/cjs/extensions/expression-extension.js.map +1 -0
- package/dist/cjs/extensions/expression-parser.d.ts +14 -0
- package/dist/cjs/extensions/expression-parser.d.ts.map +1 -0
- package/dist/cjs/extensions/expression-parser.js +94 -0
- package/dist/cjs/extensions/expression-parser.js.map +1 -0
- package/dist/cjs/extensions/extended-functions.d.ts +28 -0
- package/dist/cjs/extensions/extended-functions.d.ts.map +1 -0
- package/dist/cjs/extensions/extended-functions.js +89 -0
- package/dist/cjs/extensions/extended-functions.js.map +1 -0
- package/dist/cjs/extensions/extensions.d.ts +52 -0
- package/dist/cjs/extensions/extensions.d.ts.map +1 -0
- package/dist/cjs/extensions/extensions.js +13 -0
- package/dist/cjs/extensions/extensions.js.map +1 -0
- package/dist/cjs/extensions/index.d.ts +4 -0
- package/dist/cjs/extensions/index.d.ts.map +1 -0
- package/dist/cjs/extensions/index.js +21 -0
- package/dist/cjs/extensions/index.js.map +1 -0
- package/dist/cjs/extensions/number-extensions.d.ts +27 -0
- package/dist/cjs/extensions/number-extensions.d.ts.map +1 -0
- package/dist/cjs/extensions/number-extensions.js +236 -0
- package/dist/cjs/extensions/number-extensions.js.map +1 -0
- package/dist/cjs/extensions/object-extensions.d.ts +46 -0
- package/dist/cjs/extensions/object-extensions.d.ts.map +1 -0
- package/dist/cjs/extensions/object-extensions.js +297 -0
- package/dist/cjs/extensions/object-extensions.js.map +1 -0
- package/dist/cjs/extensions/string-extensions.d.ts +38 -0
- package/dist/cjs/extensions/string-extensions.d.ts.map +1 -0
- package/dist/cjs/extensions/string-extensions.js +791 -0
- package/dist/cjs/extensions/string-extensions.js.map +1 -0
- package/dist/cjs/extensions/utils.d.ts +4 -0
- package/dist/cjs/extensions/utils.d.ts.map +1 -0
- package/dist/cjs/extensions/utils.js +42 -0
- package/dist/cjs/extensions/utils.js.map +1 -0
- package/dist/cjs/from-ai-parse-utils.d.ts +44 -0
- package/dist/cjs/from-ai-parse-utils.d.ts.map +1 -0
- package/dist/cjs/from-ai-parse-utils.js +297 -0
- package/dist/cjs/from-ai-parse-utils.js.map +1 -0
- package/dist/cjs/global-state.d.ts +6 -0
- package/dist/cjs/global-state.d.ts.map +1 -0
- package/dist/cjs/global-state.js +23 -0
- package/dist/cjs/global-state.js.map +1 -0
- package/dist/cjs/graph/graph-utils.d.ts +57 -0
- package/dist/cjs/graph/graph-utils.d.ts.map +1 -0
- package/dist/cjs/graph/graph-utils.js +195 -0
- package/dist/cjs/graph/graph-utils.js.map +1 -0
- package/dist/cjs/index.d.ts +63 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +132 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/interfaces.d.ts +2483 -0
- package/dist/cjs/interfaces.d.ts.map +1 -0
- package/dist/cjs/interfaces.js +54 -0
- package/dist/cjs/interfaces.js.map +1 -0
- package/dist/cjs/logger-proxy.d.ts +7 -0
- package/dist/cjs/logger-proxy.d.ts.map +1 -0
- package/dist/cjs/logger-proxy.js +26 -0
- package/dist/cjs/logger-proxy.js.map +1 -0
- package/dist/cjs/message-event-bus.d.ts +119 -0
- package/dist/cjs/message-event-bus.d.ts.map +1 -0
- package/dist/cjs/message-event-bus.js +96 -0
- package/dist/cjs/message-event-bus.js.map +1 -0
- package/dist/cjs/metadata-utils.d.ts +5 -0
- package/dist/cjs/metadata-utils.d.ts.map +1 -0
- package/dist/cjs/metadata-utils.js +37 -0
- package/dist/cjs/metadata-utils.js.map +1 -0
- package/dist/cjs/native-methods/array.methods.d.ts +3 -0
- package/dist/cjs/native-methods/array.methods.d.ts.map +1 -0
- package/dist/cjs/native-methods/array.methods.js +558 -0
- package/dist/cjs/native-methods/array.methods.js.map +1 -0
- package/dist/cjs/native-methods/boolean.methods.d.ts +3 -0
- package/dist/cjs/native-methods/boolean.methods.d.ts.map +1 -0
- package/dist/cjs/native-methods/boolean.methods.js +31 -0
- package/dist/cjs/native-methods/boolean.methods.js.map +1 -0
- package/dist/cjs/native-methods/index.d.ts +4 -0
- package/dist/cjs/native-methods/index.d.ts.map +1 -0
- package/dist/cjs/native-methods/index.js +27 -0
- package/dist/cjs/native-methods/index.js.map +1 -0
- package/dist/cjs/native-methods/number.methods.d.ts +3 -0
- package/dist/cjs/native-methods/number.methods.d.ts.map +1 -0
- package/dist/cjs/native-methods/number.methods.js +95 -0
- package/dist/cjs/native-methods/number.methods.js.map +1 -0
- package/dist/cjs/native-methods/object.methods.d.ts +3 -0
- package/dist/cjs/native-methods/object.methods.d.ts.map +1 -0
- package/dist/cjs/native-methods/object.methods.js +18 -0
- package/dist/cjs/native-methods/object.methods.js.map +1 -0
- package/dist/cjs/native-methods/string.methods.d.ts +3 -0
- package/dist/cjs/native-methods/string.methods.d.ts.map +1 -0
- package/dist/cjs/native-methods/string.methods.js +506 -0
- package/dist/cjs/native-methods/string.methods.js.map +1 -0
- package/dist/cjs/node-helpers.d.ts +153 -0
- package/dist/cjs/node-helpers.d.ts.map +1 -0
- package/dist/cjs/node-helpers.js +1419 -0
- package/dist/cjs/node-helpers.js.map +1 -0
- package/dist/cjs/node-parameters/filter-parameter.d.ts +21 -0
- package/dist/cjs/node-parameters/filter-parameter.d.ts.map +1 -0
- package/dist/cjs/node-parameters/filter-parameter.js +390 -0
- package/dist/cjs/node-parameters/filter-parameter.js.map +1 -0
- package/dist/cjs/node-parameters/parameter-type-validation.d.ts +22 -0
- package/dist/cjs/node-parameters/parameter-type-validation.d.ts.map +1 -0
- package/dist/cjs/node-parameters/parameter-type-validation.js +141 -0
- package/dist/cjs/node-parameters/parameter-type-validation.js.map +1 -0
- package/dist/cjs/node-parameters/path-utils.d.ts +11 -0
- package/dist/cjs/node-parameters/path-utils.d.ts.map +1 -0
- package/dist/cjs/node-parameters/path-utils.js +33 -0
- package/dist/cjs/node-parameters/path-utils.js.map +1 -0
- package/dist/cjs/node-parameters/rename-node-utils.d.ts +3 -0
- package/dist/cjs/node-parameters/rename-node-utils.d.ts.map +1 -0
- package/dist/cjs/node-parameters/rename-node-utils.js +36 -0
- package/dist/cjs/node-parameters/rename-node-utils.js.map +1 -0
- package/dist/cjs/node-reference-parser-utils.d.ts +20 -0
- package/dist/cjs/node-reference-parser-utils.d.ts.map +1 -0
- package/dist/cjs/node-reference-parser-utils.js +504 -0
- package/dist/cjs/node-reference-parser-utils.js.map +1 -0
- package/dist/cjs/observable-object.d.ts +7 -0
- package/dist/cjs/observable-object.d.ts.map +1 -0
- package/dist/cjs/observable-object.js +71 -0
- package/dist/cjs/observable-object.js.map +1 -0
- package/dist/cjs/result.d.ts +19 -0
- package/dist/cjs/result.d.ts.map +1 -0
- package/dist/cjs/result.js +41 -0
- package/dist/cjs/result.js.map +1 -0
- package/dist/cjs/run-execution-data/run-execution-data.d.ts +24 -0
- package/dist/cjs/run-execution-data/run-execution-data.d.ts.map +1 -0
- package/dist/cjs/run-execution-data/run-execution-data.js +34 -0
- package/dist/cjs/run-execution-data/run-execution-data.js.map +1 -0
- package/dist/cjs/run-execution-data/run-execution-data.v0.d.ts +38 -0
- package/dist/cjs/run-execution-data/run-execution-data.v0.d.ts.map +1 -0
- package/dist/cjs/run-execution-data/run-execution-data.v0.js +13 -0
- package/dist/cjs/run-execution-data/run-execution-data.v0.js.map +1 -0
- package/dist/cjs/run-execution-data/run-execution-data.v1.d.ts +40 -0
- package/dist/cjs/run-execution-data/run-execution-data.v1.d.ts.map +1 -0
- package/dist/cjs/run-execution-data/run-execution-data.v1.js +37 -0
- package/dist/cjs/run-execution-data/run-execution-data.v1.js.map +1 -0
- package/dist/cjs/run-execution-data-factory.d.ts +53 -0
- package/dist/cjs/run-execution-data-factory.d.ts.map +1 -0
- package/dist/cjs/run-execution-data-factory.js +122 -0
- package/dist/cjs/run-execution-data-factory.js.map +1 -0
- package/dist/cjs/schemas.d.ts +112 -0
- package/dist/cjs/schemas.d.ts.map +1 -0
- package/dist/cjs/schemas.js +361 -0
- package/dist/cjs/schemas.js.map +1 -0
- package/dist/cjs/telemetry-helpers.d.ts +59 -0
- package/dist/cjs/telemetry-helpers.d.ts.map +1 -0
- package/dist/cjs/telemetry-helpers.js +657 -0
- package/dist/cjs/telemetry-helpers.js.map +1 -0
- package/dist/cjs/tool-helpers.d.ts +7 -0
- package/dist/cjs/tool-helpers.d.ts.map +1 -0
- package/dist/cjs/tool-helpers.js +22 -0
- package/dist/cjs/tool-helpers.js.map +1 -0
- package/dist/cjs/type-guards.d.ts +13 -0
- package/dist/cjs/type-guards.d.ts.map +1 -0
- package/dist/cjs/type-guards.js +61 -0
- package/dist/cjs/type-guards.js.map +1 -0
- package/dist/cjs/type-validation.d.ts +22 -0
- package/dist/cjs/type-validation.d.ts.map +1 -0
- package/dist/cjs/type-validation.js +426 -0
- package/dist/cjs/type-validation.js.map +1 -0
- package/dist/cjs/typecheck.tsbuildinfo +1 -0
- package/dist/cjs/utils.d.ts +111 -0
- package/dist/cjs/utils.d.ts.map +1 -0
- package/dist/cjs/utils.js +476 -0
- package/dist/cjs/utils.js.map +1 -0
- package/dist/cjs/versioned-node-type.d.ts +10 -0
- package/dist/cjs/versioned-node-type.d.ts.map +1 -0
- package/dist/cjs/versioned-node-type.js +36 -0
- package/dist/cjs/versioned-node-type.js.map +1 -0
- package/dist/cjs/workflow-checksum.d.ts +25 -0
- package/dist/cjs/workflow-checksum.d.ts.map +1 -0
- package/dist/cjs/workflow-checksum.js +85 -0
- package/dist/cjs/workflow-checksum.js.map +1 -0
- package/dist/cjs/workflow-data-proxy-env-provider.d.ts +25 -0
- package/dist/cjs/workflow-data-proxy-env-provider.d.ts.map +1 -0
- package/dist/cjs/workflow-data-proxy-env-provider.js +70 -0
- package/dist/cjs/workflow-data-proxy-env-provider.js.map +1 -0
- package/dist/cjs/workflow-data-proxy-helpers.d.ts +3 -0
- package/dist/cjs/workflow-data-proxy-helpers.d.ts.map +1 -0
- package/dist/cjs/workflow-data-proxy-helpers.js +20 -0
- package/dist/cjs/workflow-data-proxy-helpers.js.map +1 -0
- package/dist/cjs/workflow-data-proxy.d.ts +81 -0
- package/dist/cjs/workflow-data-proxy.d.ts.map +1 -0
- package/dist/cjs/workflow-data-proxy.js +1214 -0
- package/dist/cjs/workflow-data-proxy.js.map +1 -0
- package/dist/cjs/workflow-diff.d.ts +57 -0
- package/dist/cjs/workflow-diff.d.ts.map +1 -0
- package/dist/cjs/workflow-diff.js +275 -0
- package/dist/cjs/workflow-diff.js.map +1 -0
- package/dist/cjs/workflow-validation.d.ts +18 -0
- package/dist/cjs/workflow-validation.d.ts.map +1 -0
- package/dist/cjs/workflow-validation.js +53 -0
- package/dist/cjs/workflow-validation.js.map +1 -0
- package/dist/cjs/workflow.d.ts +155 -0
- package/dist/cjs/workflow.d.ts.map +1 -0
- package/dist/cjs/workflow.js +712 -0
- package/dist/cjs/workflow.js.map +1 -0
- package/dist/esm/augment-object.d.ts +3 -0
- package/dist/esm/augment-object.d.ts.map +1 -0
- package/dist/esm/augment-object.js +143 -0
- package/dist/esm/augment-object.js.map +1 -0
- package/dist/esm/common/get-child-nodes.d.ts +3 -0
- package/dist/esm/common/get-child-nodes.d.ts.map +1 -0
- package/dist/esm/common/get-child-nodes.js +6 -0
- package/dist/esm/common/get-child-nodes.js.map +1 -0
- package/dist/esm/common/get-connected-nodes.d.ts +10 -0
- package/dist/esm/common/get-connected-nodes.d.ts.map +1 -0
- package/dist/esm/common/get-connected-nodes.js +71 -0
- package/dist/esm/common/get-connected-nodes.js.map +1 -0
- package/dist/esm/common/get-node-by-name.d.ts +9 -0
- package/dist/esm/common/get-node-by-name.d.ts.map +1 -0
- package/dist/esm/common/get-node-by-name.js +16 -0
- package/dist/esm/common/get-node-by-name.js.map +1 -0
- package/dist/esm/common/get-parent-nodes.d.ts +9 -0
- package/dist/esm/common/get-parent-nodes.d.ts.map +1 -0
- package/dist/esm/common/get-parent-nodes.js +12 -0
- package/dist/esm/common/get-parent-nodes.js.map +1 -0
- package/dist/esm/common/index.d.ts +6 -0
- package/dist/esm/common/index.d.ts.map +1 -0
- package/dist/esm/common/index.js +6 -0
- package/dist/esm/common/index.js.map +1 -0
- package/dist/esm/common/map-connections-by-destination.d.ts +3 -0
- package/dist/esm/common/map-connections-by-destination.d.ts.map +1 -0
- package/dist/esm/common/map-connections-by-destination.js +40 -0
- package/dist/esm/common/map-connections-by-destination.js.map +1 -0
- package/dist/esm/connections-diff.d.ts +16 -0
- package/dist/esm/connections-diff.d.ts.map +1 -0
- package/dist/esm/connections-diff.js +62 -0
- package/dist/esm/connections-diff.js.map +1 -0
- package/dist/esm/constants.d.ts +83 -0
- package/dist/esm/constants.d.ts.map +1 -0
- package/dist/esm/constants.js +110 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/cron.d.ts +35 -0
- package/dist/esm/cron.d.ts.map +1 -0
- package/dist/esm/cron.js +23 -0
- package/dist/esm/cron.js.map +1 -0
- package/dist/esm/data-table.types.d.ts +140 -0
- package/dist/esm/data-table.types.d.ts.map +1 -0
- package/dist/esm/data-table.types.js +8 -0
- package/dist/esm/data-table.types.js.map +1 -0
- package/dist/esm/deferred-promise.d.ts +10 -0
- package/dist/esm/deferred-promise.d.ts.map +1 -0
- package/dist/esm/deferred-promise.js +9 -0
- package/dist/esm/deferred-promise.js.map +1 -0
- package/dist/esm/errors/abstract/execution-base.error.d.ts +27 -0
- package/dist/esm/errors/abstract/execution-base.error.d.ts.map +1 -0
- package/dist/esm/errors/abstract/execution-base.error.js +36 -0
- package/dist/esm/errors/abstract/execution-base.error.js.map +1 -0
- package/dist/esm/errors/abstract/node.error.d.ts +48 -0
- package/dist/esm/errors/abstract/node.error.d.ts.map +1 -0
- package/dist/esm/errors/abstract/node.error.js +163 -0
- package/dist/esm/errors/abstract/node.error.js.map +1 -0
- package/dist/esm/errors/base/base.error.d.ts +26 -0
- package/dist/esm/errors/base/base.error.d.ts.map +1 -0
- package/dist/esm/errors/base/base.error.js +36 -0
- package/dist/esm/errors/base/base.error.js.map +1 -0
- package/dist/esm/errors/base/operational.error.d.ts +16 -0
- package/dist/esm/errors/base/operational.error.d.ts.map +1 -0
- package/dist/esm/errors/base/operational.error.js +15 -0
- package/dist/esm/errors/base/operational.error.js.map +1 -0
- package/dist/esm/errors/base/unexpected.error.d.ts +16 -0
- package/dist/esm/errors/base/unexpected.error.d.ts.map +1 -0
- package/dist/esm/errors/base/unexpected.error.js +15 -0
- package/dist/esm/errors/base/unexpected.error.js.map +1 -0
- package/dist/esm/errors/base/user.error.d.ts +18 -0
- package/dist/esm/errors/base/user.error.d.ts.map +1 -0
- package/dist/esm/errors/base/user.error.js +15 -0
- package/dist/esm/errors/base/user.error.js.map +1 -0
- package/dist/esm/errors/cli-subworkflow-operation.error.d.ts +4 -0
- package/dist/esm/errors/cli-subworkflow-operation.error.d.ts.map +1 -0
- package/dist/esm/errors/cli-subworkflow-operation.error.js +4 -0
- package/dist/esm/errors/cli-subworkflow-operation.error.js.map +1 -0
- package/dist/esm/errors/db-connection-timeout-error.d.ts +9 -0
- package/dist/esm/errors/db-connection-timeout-error.d.ts.map +1 -0
- package/dist/esm/errors/db-connection-timeout-error.js +9 -0
- package/dist/esm/errors/db-connection-timeout-error.js.map +1 -0
- package/dist/esm/errors/ensure-error.d.ts +3 -0
- package/dist/esm/errors/ensure-error.d.ts.map +1 -0
- package/dist/esm/errors/ensure-error.js +10 -0
- package/dist/esm/errors/ensure-error.js.map +1 -0
- package/dist/esm/errors/execution-cancelled.error.d.ts +16 -0
- package/dist/esm/errors/execution-cancelled.error.d.ts.map +1 -0
- package/dist/esm/errors/execution-cancelled.error.js +31 -0
- package/dist/esm/errors/execution-cancelled.error.js.map +1 -0
- package/dist/esm/errors/expression-extension.error.d.ts +4 -0
- package/dist/esm/errors/expression-extension.error.d.ts.map +1 -0
- package/dist/esm/errors/expression-extension.error.js +4 -0
- package/dist/esm/errors/expression-extension.error.js.map +1 -0
- package/dist/esm/errors/expression.error.d.ts +22 -0
- package/dist/esm/errors/expression.error.d.ts.map +1 -0
- package/dist/esm/errors/expression.error.js +34 -0
- package/dist/esm/errors/expression.error.js.map +1 -0
- package/dist/esm/errors/index.d.ts +24 -0
- package/dist/esm/errors/index.d.ts.map +1 -0
- package/dist/esm/errors/index.js +24 -0
- package/dist/esm/errors/index.js.map +1 -0
- package/dist/esm/errors/node-api.error.d.ts +39 -0
- package/dist/esm/errors/node-api.error.d.ts.map +1 -0
- package/dist/esm/errors/node-api.error.js +243 -0
- package/dist/esm/errors/node-api.error.js.map +1 -0
- package/dist/esm/errors/node-operation.error.d.ts +11 -0
- package/dist/esm/errors/node-operation.error.d.ts.map +1 -0
- package/dist/esm/errors/node-operation.error.js +39 -0
- package/dist/esm/errors/node-operation.error.js.map +1 -0
- package/dist/esm/errors/node-ssl.error.d.ts +5 -0
- package/dist/esm/errors/node-ssl.error.d.ts.map +1 -0
- package/dist/esm/errors/node-ssl.error.js +7 -0
- package/dist/esm/errors/node-ssl.error.js.map +1 -0
- package/dist/esm/errors/subworkflow-operation.error.d.ts +7 -0
- package/dist/esm/errors/subworkflow-operation.error.d.ts.map +1 -0
- package/dist/esm/errors/subworkflow-operation.error.js +16 -0
- package/dist/esm/errors/subworkflow-operation.error.js.map +1 -0
- package/dist/esm/errors/trigger-close.error.d.ts +11 -0
- package/dist/esm/errors/trigger-close.error.d.ts.map +1 -0
- package/dist/esm/errors/trigger-close.error.js +10 -0
- package/dist/esm/errors/trigger-close.error.js.map +1 -0
- package/dist/esm/errors/webhook-taken.error.d.ts +5 -0
- package/dist/esm/errors/webhook-taken.error.d.ts.map +1 -0
- package/dist/esm/errors/webhook-taken.error.js +7 -0
- package/dist/esm/errors/webhook-taken.error.js.map +1 -0
- package/dist/esm/errors/workflow-activation.error.d.ts +20 -0
- package/dist/esm/errors/workflow-activation.error.d.ts.map +1 -0
- package/dist/esm/errors/workflow-activation.error.js +40 -0
- package/dist/esm/errors/workflow-activation.error.js.map +1 -0
- package/dist/esm/errors/workflow-configuration.error.d.ts +7 -0
- package/dist/esm/errors/workflow-configuration.error.d.ts.map +1 -0
- package/dist/esm/errors/workflow-configuration.error.js +7 -0
- package/dist/esm/errors/workflow-configuration.error.js.map +1 -0
- package/dist/esm/errors/workflow-deactivation.error.d.ts +4 -0
- package/dist/esm/errors/workflow-deactivation.error.d.ts.map +1 -0
- package/dist/esm/errors/workflow-deactivation.error.js +4 -0
- package/dist/esm/errors/workflow-deactivation.error.js.map +1 -0
- package/dist/esm/errors/workflow-operation.error.d.ts +11 -0
- package/dist/esm/errors/workflow-operation.error.d.ts.map +1 -0
- package/dist/esm/errors/workflow-operation.error.js +18 -0
- package/dist/esm/errors/workflow-operation.error.js.map +1 -0
- package/dist/esm/evaluation-helpers.d.ts +22 -0
- package/dist/esm/evaluation-helpers.d.ts.map +1 -0
- package/dist/esm/evaluation-helpers.js +24 -0
- package/dist/esm/evaluation-helpers.js.map +1 -0
- package/dist/esm/execution-context-establishment-hooks.d.ts +38 -0
- package/dist/esm/execution-context-establishment-hooks.d.ts.map +1 -0
- package/dist/esm/execution-context-establishment-hooks.js +35 -0
- package/dist/esm/execution-context-establishment-hooks.js.map +1 -0
- package/dist/esm/execution-context.d.ts +113 -0
- package/dist/esm/execution-context.d.ts.map +1 -0
- package/dist/esm/execution-context.js +108 -0
- package/dist/esm/execution-context.js.map +1 -0
- package/dist/esm/execution-status.d.ts +3 -0
- package/dist/esm/execution-status.d.ts.map +1 -0
- package/dist/esm/execution-status.js +11 -0
- package/dist/esm/execution-status.js.map +1 -0
- package/dist/esm/expression-evaluator-proxy.d.ts +6 -0
- package/dist/esm/expression-evaluator-proxy.d.ts.map +1 -0
- package/dist/esm/expression-evaluator-proxy.js +15 -0
- package/dist/esm/expression-evaluator-proxy.js.map +1 -0
- package/dist/esm/expression-sandboxing.d.ts +24 -0
- package/dist/esm/expression-sandboxing.d.ts.map +1 -0
- package/dist/esm/expression-sandboxing.js +193 -0
- package/dist/esm/expression-sandboxing.js.map +1 -0
- package/dist/esm/expression.d.ts +48 -0
- package/dist/esm/expression.d.ts.map +1 -0
- package/dist/esm/expression.js +348 -0
- package/dist/esm/expression.js.map +1 -0
- package/dist/esm/expressions/expression-helpers.d.ts +6 -0
- package/dist/esm/expressions/expression-helpers.d.ts.map +1 -0
- package/dist/esm/expressions/expression-helpers.js +10 -0
- package/dist/esm/expressions/expression-helpers.js.map +1 -0
- package/dist/esm/extensions/array-extensions.d.ts +34 -0
- package/dist/esm/extensions/array-extensions.d.ts.map +1 -0
- package/dist/esm/extensions/array-extensions.js +610 -0
- package/dist/esm/extensions/array-extensions.js.map +1 -0
- package/dist/esm/extensions/boolean-extensions.d.ts +6 -0
- package/dist/esm/extensions/boolean-extensions.d.ts.map +1 -0
- package/dist/esm/extensions/boolean-extensions.js +33 -0
- package/dist/esm/extensions/boolean-extensions.js.map +1 -0
- package/dist/esm/extensions/date-extensions.d.ts +3 -0
- package/dist/esm/extensions/date-extensions.d.ts.map +1 -0
- package/dist/esm/extensions/date-extensions.js +515 -0
- package/dist/esm/extensions/date-extensions.js.map +1 -0
- package/dist/esm/extensions/expression-extension.d.ts +32 -0
- package/dist/esm/extensions/expression-extension.d.ts.map +1 -0
- package/dist/esm/extensions/expression-extension.js +472 -0
- package/dist/esm/extensions/expression-extension.js.map +1 -0
- package/dist/esm/extensions/expression-parser.d.ts +14 -0
- package/dist/esm/extensions/expression-parser.d.ts.map +1 -0
- package/dist/esm/extensions/expression-parser.js +78 -0
- package/dist/esm/extensions/expression-parser.js.map +1 -0
- package/dist/esm/extensions/extended-functions.d.ts +28 -0
- package/dist/esm/extensions/extended-functions.d.ts.map +1 -0
- package/dist/esm/extensions/extended-functions.js +76 -0
- package/dist/esm/extensions/extended-functions.js.map +1 -0
- package/dist/esm/extensions/extensions.d.ts +52 -0
- package/dist/esm/extensions/extensions.d.ts.map +1 -0
- package/dist/esm/extensions/extensions.js +2 -0
- package/dist/esm/extensions/extensions.js.map +1 -0
- package/dist/esm/extensions/index.d.ts +4 -0
- package/dist/esm/extensions/index.d.ts.map +1 -0
- package/dist/esm/extensions/index.js +2 -0
- package/dist/esm/extensions/index.js.map +1 -0
- package/dist/esm/extensions/number-extensions.d.ts +27 -0
- package/dist/esm/extensions/number-extensions.d.ts.map +1 -0
- package/dist/esm/extensions/number-extensions.js +222 -0
- package/dist/esm/extensions/number-extensions.js.map +1 -0
- package/dist/esm/extensions/object-extensions.d.ts +46 -0
- package/dist/esm/extensions/object-extensions.d.ts.map +1 -0
- package/dist/esm/extensions/object-extensions.js +277 -0
- package/dist/esm/extensions/object-extensions.js.map +1 -0
- package/dist/esm/extensions/string-extensions.d.ts +38 -0
- package/dist/esm/extensions/string-extensions.d.ts.map +1 -0
- package/dist/esm/extensions/string-extensions.js +773 -0
- package/dist/esm/extensions/string-extensions.js.map +1 -0
- package/dist/esm/extensions/utils.d.ts +4 -0
- package/dist/esm/extensions/utils.d.ts.map +1 -0
- package/dist/esm/extensions/utils.js +27 -0
- package/dist/esm/extensions/utils.js.map +1 -0
- package/dist/esm/from-ai-parse-utils.d.ts +44 -0
- package/dist/esm/from-ai-parse-utils.d.ts.map +1 -0
- package/dist/esm/from-ai-parse-utils.js +281 -0
- package/dist/esm/from-ai-parse-utils.js.map +1 -0
- package/dist/esm/global-state.d.ts +6 -0
- package/dist/esm/global-state.d.ts.map +1 -0
- package/dist/esm/global-state.js +9 -0
- package/dist/esm/global-state.js.map +1 -0
- package/dist/esm/graph/graph-utils.d.ts +57 -0
- package/dist/esm/graph/graph-utils.d.ts.map +1 -0
- package/dist/esm/graph/graph-utils.js +176 -0
- package/dist/esm/graph/graph-utils.js.map +1 -0
- package/dist/esm/index.d.ts +63 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +47 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/interfaces.d.ts +2483 -0
- package/dist/esm/interfaces.d.ts.map +1 -0
- package/dist/esm/interfaces.js +38 -0
- package/dist/esm/interfaces.js.map +1 -0
- package/dist/esm/logger-proxy.d.ts +7 -0
- package/dist/esm/logger-proxy.d.ts.map +1 -0
- package/dist/esm/logger-proxy.js +12 -0
- package/dist/esm/logger-proxy.js.map +1 -0
- package/dist/esm/message-event-bus.d.ts +119 -0
- package/dist/esm/message-event-bus.d.ts.map +1 -0
- package/dist/esm/message-event-bus.js +83 -0
- package/dist/esm/message-event-bus.js.map +1 -0
- package/dist/esm/metadata-utils.d.ts +5 -0
- package/dist/esm/metadata-utils.d.ts.map +1 -0
- package/dist/esm/metadata-utils.js +24 -0
- package/dist/esm/metadata-utils.js.map +1 -0
- package/dist/esm/native-methods/array.methods.d.ts +3 -0
- package/dist/esm/native-methods/array.methods.d.ts.map +1 -0
- package/dist/esm/native-methods/array.methods.js +545 -0
- package/dist/esm/native-methods/array.methods.js.map +1 -0
- package/dist/esm/native-methods/boolean.methods.d.ts +3 -0
- package/dist/esm/native-methods/boolean.methods.d.ts.map +1 -0
- package/dist/esm/native-methods/boolean.methods.js +18 -0
- package/dist/esm/native-methods/boolean.methods.js.map +1 -0
- package/dist/esm/native-methods/index.d.ts +4 -0
- package/dist/esm/native-methods/index.d.ts.map +1 -0
- package/dist/esm/native-methods/index.js +14 -0
- package/dist/esm/native-methods/index.js.map +1 -0
- package/dist/esm/native-methods/number.methods.d.ts +3 -0
- package/dist/esm/native-methods/number.methods.d.ts.map +1 -0
- package/dist/esm/native-methods/number.methods.js +82 -0
- package/dist/esm/native-methods/number.methods.js.map +1 -0
- package/dist/esm/native-methods/object.methods.d.ts +3 -0
- package/dist/esm/native-methods/object.methods.d.ts.map +1 -0
- package/dist/esm/native-methods/object.methods.js +5 -0
- package/dist/esm/native-methods/object.methods.js.map +1 -0
- package/dist/esm/native-methods/string.methods.d.ts +3 -0
- package/dist/esm/native-methods/string.methods.d.ts.map +1 -0
- package/dist/esm/native-methods/string.methods.js +493 -0
- package/dist/esm/native-methods/string.methods.js.map +1 -0
- package/dist/esm/node-helpers.d.ts +153 -0
- package/dist/esm/node-helpers.d.ts.map +1 -0
- package/dist/esm/node-helpers.js +1376 -0
- package/dist/esm/node-helpers.js.map +1 -0
- package/dist/esm/node-parameters/filter-parameter.d.ts +21 -0
- package/dist/esm/node-parameters/filter-parameter.d.ts.map +1 -0
- package/dist/esm/node-parameters/filter-parameter.js +339 -0
- package/dist/esm/node-parameters/filter-parameter.js.map +1 -0
- package/dist/esm/node-parameters/parameter-type-validation.d.ts +22 -0
- package/dist/esm/node-parameters/parameter-type-validation.d.ts.map +1 -0
- package/dist/esm/node-parameters/parameter-type-validation.js +123 -0
- package/dist/esm/node-parameters/parameter-type-validation.js.map +1 -0
- package/dist/esm/node-parameters/path-utils.d.ts +11 -0
- package/dist/esm/node-parameters/path-utils.d.ts.map +1 -0
- package/dist/esm/node-parameters/path-utils.js +20 -0
- package/dist/esm/node-parameters/path-utils.js.map +1 -0
- package/dist/esm/node-parameters/rename-node-utils.d.ts +3 -0
- package/dist/esm/node-parameters/rename-node-utils.d.ts.map +1 -0
- package/dist/esm/node-parameters/rename-node-utils.js +23 -0
- package/dist/esm/node-parameters/rename-node-utils.js.map +1 -0
- package/dist/esm/node-reference-parser-utils.d.ts +20 -0
- package/dist/esm/node-reference-parser-utils.d.ts.map +1 -0
- package/dist/esm/node-reference-parser-utils.js +484 -0
- package/dist/esm/node-reference-parser-utils.js.map +1 -0
- package/dist/esm/observable-object.d.ts +7 -0
- package/dist/esm/observable-object.d.ts.map +1 -0
- package/dist/esm/observable-object.js +58 -0
- package/dist/esm/observable-object.js.map +1 -0
- package/dist/esm/result.d.ts +19 -0
- package/dist/esm/result.d.ts.map +1 -0
- package/dist/esm/result.js +25 -0
- package/dist/esm/result.js.map +1 -0
- package/dist/esm/run-execution-data/run-execution-data.d.ts +24 -0
- package/dist/esm/run-execution-data/run-execution-data.d.ts.map +1 -0
- package/dist/esm/run-execution-data/run-execution-data.js +21 -0
- package/dist/esm/run-execution-data/run-execution-data.js.map +1 -0
- package/dist/esm/run-execution-data/run-execution-data.v0.d.ts +38 -0
- package/dist/esm/run-execution-data/run-execution-data.v0.d.ts.map +1 -0
- package/dist/esm/run-execution-data/run-execution-data.v0.js +2 -0
- package/dist/esm/run-execution-data/run-execution-data.v0.js.map +1 -0
- package/dist/esm/run-execution-data/run-execution-data.v1.d.ts +40 -0
- package/dist/esm/run-execution-data/run-execution-data.v1.d.ts.map +1 -0
- package/dist/esm/run-execution-data/run-execution-data.v1.js +24 -0
- package/dist/esm/run-execution-data/run-execution-data.v1.js.map +1 -0
- package/dist/esm/run-execution-data-factory.d.ts +53 -0
- package/dist/esm/run-execution-data-factory.d.ts.map +1 -0
- package/dist/esm/run-execution-data-factory.js +107 -0
- package/dist/esm/run-execution-data-factory.js.map +1 -0
- package/dist/esm/schemas.d.ts +112 -0
- package/dist/esm/schemas.d.ts.map +1 -0
- package/dist/esm/schemas.js +348 -0
- package/dist/esm/schemas.js.map +1 -0
- package/dist/esm/telemetry-helpers.d.ts +59 -0
- package/dist/esm/telemetry-helpers.d.ts.map +1 -0
- package/dist/esm/telemetry-helpers.js +633 -0
- package/dist/esm/telemetry-helpers.js.map +1 -0
- package/dist/esm/tool-helpers.d.ts +7 -0
- package/dist/esm/tool-helpers.d.ts.map +1 -0
- package/dist/esm/tool-helpers.js +9 -0
- package/dist/esm/tool-helpers.js.map +1 -0
- package/dist/esm/type-guards.d.ts +13 -0
- package/dist/esm/type-guards.d.ts.map +1 -0
- package/dist/esm/type-guards.js +37 -0
- package/dist/esm/type-guards.js.map +1 -0
- package/dist/esm/type-validation.d.ts +22 -0
- package/dist/esm/type-validation.d.ts.map +1 -0
- package/dist/esm/type-validation.js +397 -0
- package/dist/esm/type-validation.js.map +1 -0
- package/dist/esm/typecheck.tsbuildinfo +1 -0
- package/dist/esm/utils.d.ts +111 -0
- package/dist/esm/utils.d.ts.map +1 -0
- package/dist/esm/utils.js +405 -0
- package/dist/esm/utils.js.map +1 -0
- package/dist/esm/versioned-node-type.d.ts +10 -0
- package/dist/esm/versioned-node-type.d.ts.map +1 -0
- package/dist/esm/versioned-node-type.js +22 -0
- package/dist/esm/versioned-node-type.js.map +1 -0
- package/dist/esm/workflow-checksum.d.ts +25 -0
- package/dist/esm/workflow-checksum.d.ts.map +1 -0
- package/dist/esm/workflow-checksum.js +69 -0
- package/dist/esm/workflow-checksum.js.map +1 -0
- package/dist/esm/workflow-data-proxy-env-provider.d.ts +25 -0
- package/dist/esm/workflow-data-proxy-env-provider.d.ts.map +1 -0
- package/dist/esm/workflow-data-proxy-env-provider.js +56 -0
- package/dist/esm/workflow-data-proxy-env-provider.js.map +1 -0
- package/dist/esm/workflow-data-proxy-helpers.d.ts +3 -0
- package/dist/esm/workflow-data-proxy-helpers.d.ts.map +1 -0
- package/dist/esm/workflow-data-proxy-helpers.js +7 -0
- package/dist/esm/workflow-data-proxy-helpers.js.map +1 -0
- package/dist/esm/workflow-data-proxy.d.ts +81 -0
- package/dist/esm/workflow-data-proxy.d.ts.map +1 -0
- package/dist/esm/workflow-data-proxy.js +1167 -0
- package/dist/esm/workflow-data-proxy.js.map +1 -0
- package/dist/esm/workflow-diff.d.ts +57 -0
- package/dist/esm/workflow-diff.d.ts.map +1 -0
- package/dist/esm/workflow-diff.js +253 -0
- package/dist/esm/workflow-diff.js.map +1 -0
- package/dist/esm/workflow-validation.d.ts +18 -0
- package/dist/esm/workflow-validation.d.ts.map +1 -0
- package/dist/esm/workflow-validation.js +40 -0
- package/dist/esm/workflow-validation.js.map +1 -0
- package/dist/esm/workflow.d.ts +155 -0
- package/dist/esm/workflow.d.ts.map +1 -0
- package/dist/esm/workflow.js +665 -0
- package/dist/esm/workflow.js.map +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1,791 @@
|
|
|
1
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3
|
+
};
|
|
4
|
+
(function (factory) {
|
|
5
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
6
|
+
var v = factory(require, exports);
|
|
7
|
+
if (v !== undefined) module.exports = v;
|
|
8
|
+
}
|
|
9
|
+
else if (typeof define === "function" && define.amd) {
|
|
10
|
+
define(["require", "exports", "js-base64", "jssha", "luxon", "md5", "title-case", "transliteration", "./number-extensions", "../errors/expression-extension.error", "../type-validation"], factory);
|
|
11
|
+
}
|
|
12
|
+
})(function (require, exports) {
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.stringExtensions = exports.SupportedHashAlgorithms = void 0;
|
|
16
|
+
exports.toJsonString = toJsonString;
|
|
17
|
+
exports.toDateTime = toDateTime;
|
|
18
|
+
const js_base64_1 = require("js-base64");
|
|
19
|
+
const jssha_1 = __importDefault(require("jssha"));
|
|
20
|
+
const luxon_1 = require("luxon");
|
|
21
|
+
const md5_1 = __importDefault(require("md5"));
|
|
22
|
+
const title_case_1 = require("title-case");
|
|
23
|
+
const transliteration_1 = require("transliteration");
|
|
24
|
+
const number_extensions_1 = require("./number-extensions");
|
|
25
|
+
const expression_extension_error_1 = require("../errors/expression-extension.error");
|
|
26
|
+
const type_validation_1 = require("../type-validation");
|
|
27
|
+
exports.SupportedHashAlgorithms = [
|
|
28
|
+
'md5',
|
|
29
|
+
'sha1',
|
|
30
|
+
'sha224',
|
|
31
|
+
'sha256',
|
|
32
|
+
'sha384',
|
|
33
|
+
'sha512',
|
|
34
|
+
'sha3',
|
|
35
|
+
];
|
|
36
|
+
// All symbols from https://www.xe.com/symbols/ as for 2022/11/09
|
|
37
|
+
const CURRENCY_REGEXP = /(\u004c\u0065\u006b|\u060b|\u0024|\u0192|\u20bc|\u0042\u0072|\u0042\u005a\u0024|\u0024\u0062|\u004b\u004d|\u0050|\u043b\u0432|\u0052\u0024|\u17db|\u00a5|\u20a1|\u006b\u006e|\u20b1|\u004b\u010d|\u006b\u0072|\u0052\u0044\u0024|\u00a3|\u20ac|\u00a2|\u0051|\u004c|\u0046\u0074|\u20b9|\u0052\u0070|\ufdfc|\u20aa|\u004a\u0024|\u20a9|\u20ad|\u0434\u0435\u043d|\u0052\u004d|\u20a8|\u20ae|\u004d\u0054|\u0043\u0024|\u20a6|\u0042\u002f\u002e|\u0047\u0073|\u0053\u002f\u002e|\u007a\u0142|\u006c\u0065\u0069|\u20bd|\u0414\u0438\u043d\u002e|\u0053|\u0052|\u0043\u0048\u0046|\u004e\u0054\u0024|\u0e3f|\u0054\u0054\u0024|\u20ba|\u20b4|\u0024\u0055|\u0042\u0073|\u20ab|\u005a\u0024)/gu;
|
|
38
|
+
/*
|
|
39
|
+
Extract the domain part from various inputs, including URLs, email addresses, and plain domains.
|
|
40
|
+
|
|
41
|
+
/^(?:(?:https?|ftp):\/\/)? // Match optional http, https, or ftp protocols
|
|
42
|
+
(?:mailto:)? // Match optional mailto:
|
|
43
|
+
(?:\/\/)? // Match optional double slashes
|
|
44
|
+
(?:www\.)? // Match optional www prefix
|
|
45
|
+
(?:[-\w]*\.)? // Match any optional subdomain
|
|
46
|
+
( // Capture the domain part
|
|
47
|
+
(?:(?:[-\w]+\.)+ // Match one or more subdomains
|
|
48
|
+
(?:[a-zA-Z]{2,}|xn--[a-zA-Z0-9]+) // Match top-level domain or Punycode encoded IDN(xn--80aswg.xn--p1ai)
|
|
49
|
+
|localhost // Match localhost
|
|
50
|
+
|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} // Match IPv4 addresses
|
|
51
|
+
)
|
|
52
|
+
)
|
|
53
|
+
(?::\d+)? // Match optional port number
|
|
54
|
+
(?:\/[^\s?]*)? // Match optional path
|
|
55
|
+
(?:\?[^\s#]*)? // Match optional query string
|
|
56
|
+
(?:#[^\s]*)?$/i; // Match optional hash fragment
|
|
57
|
+
*/
|
|
58
|
+
const DOMAIN_EXTRACT_REGEXP = /^(?:(?:https?|ftp):\/\/)?(?:mailto:)?(?:\/\/)?((?:www\.)?(?:(?:[-\w]+\.)+(?:[a-zA-Z]{2,}|xn--[a-zA-Z0-9]+)|localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))(?::\d+)?(?:\/[^\s?]*)?(?:\?[^\s#]*)?(?:#[^\s]*)?$/i;
|
|
59
|
+
/*
|
|
60
|
+
Matches domain names without the protocol or optional subdomains
|
|
61
|
+
|
|
62
|
+
/^(?:www\.)? // Match optional www prefix
|
|
63
|
+
( // Capture the domain part
|
|
64
|
+
(?:(?:[-\w]+\.)+ // Match one or more subdomains
|
|
65
|
+
(?:[a-zA-Z]{2,}|xn--[a-zA-Z0-9]+) // Match top-level domain or Punycode encoded IDN
|
|
66
|
+
|localhost // Match localhost
|
|
67
|
+
|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} // Match IPv4 addresses
|
|
68
|
+
)
|
|
69
|
+
)
|
|
70
|
+
(?::\d+)? // Match optional port number
|
|
71
|
+
(?:\/[^\s?]*)? // Match optional path
|
|
72
|
+
(?:\?[^\s#]*)? // Match optional query string
|
|
73
|
+
(?:#[^\s]*)?$/i; // Match optional fragment at the end of the string
|
|
74
|
+
*/
|
|
75
|
+
const DOMAIN_REGEXP = /^(?:www\.)?((?:(?:[-\w]+\.)+(?:[a-zA-Z]{2,}|xn--[a-zA-Z0-9]+)|localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))(?::\d+)?(?:\/[^\s?]*)?(?:\?[^\s#]*)?(?:#[^\s]*)?$/i;
|
|
76
|
+
/*
|
|
77
|
+
Matches email addresses
|
|
78
|
+
|
|
79
|
+
/(
|
|
80
|
+
( // Capture local part of the email address
|
|
81
|
+
([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*) // One or more characters not in the set, followed by
|
|
82
|
+
a period, followed by one or more characters not in the set
|
|
83
|
+
|(".+") // Or one or more characters inside quotes
|
|
84
|
+
)
|
|
85
|
+
)
|
|
86
|
+
@ // Match @ symbol
|
|
87
|
+
(?<domain>( // Capture the domain part of the email address
|
|
88
|
+
\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\] // Match IPv4 address inside brackets
|
|
89
|
+
|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}) // Or match domain with at least two subdomains and TLD
|
|
90
|
+
))/;
|
|
91
|
+
*/
|
|
92
|
+
const EMAIL_REGEXP = /(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@(?<domain>(\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/;
|
|
93
|
+
/*
|
|
94
|
+
Matches URLs with strict beginning and end of the string checks
|
|
95
|
+
|
|
96
|
+
/^(?:(?:https?|ftp):\/\/) // Match http, https, or ftp protocols at the start of the string
|
|
97
|
+
(?:www\.)? // Match optional www prefix
|
|
98
|
+
( // Capture the domain part
|
|
99
|
+
(?:(?:[-\w]+\.)+ // Match one or more subdomains
|
|
100
|
+
(?:[a-zA-Z]{2,}|xn--[a-zA-Z0-9]+) // Match top-level domain or Punycode encoded IDN
|
|
101
|
+
|localhost // Match localhost
|
|
102
|
+
|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} // Match IPv4 addresses
|
|
103
|
+
)
|
|
104
|
+
)
|
|
105
|
+
(?::\d+)? // Match optional port number
|
|
106
|
+
(?:\/[^\s?#]*)? // Match optional path
|
|
107
|
+
(?:\?[^\s#]*)? // Match optional query string
|
|
108
|
+
(?=([^\s]+#.*)?) // Positive lookahead for the fragment identifier
|
|
109
|
+
#?[^\s]*$/i; // Match optional fragment at the end of the string
|
|
110
|
+
*/
|
|
111
|
+
const URL_REGEXP_EXACT = /^(?:(?:https?|ftp):\/\/)(?:www\.)?((?:(?:[-\w]+\.)+(?:[a-zA-Z]{2,}|xn--[a-zA-Z0-9]+)|localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))(?::\d+)?(?:\/[^\s?#]*)?(?:\?[^\s#]*)?(?=([^\s]+#.*)?)#?[^\s]*$/i;
|
|
112
|
+
/*
|
|
113
|
+
Same as URL_REGEXP_EXACT but without the strict beginning and end of the string checks to allow for
|
|
114
|
+
matching URLs in the middle of a string
|
|
115
|
+
*/
|
|
116
|
+
const URL_REGEXP = /(?:(?:https?|ftp):\/\/)(?:www\.)?((?:(?:[-\w]+\.)+(?:[a-zA-Z]{2,}|xn--[a-zA-Z0-9]+)|localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))(?::\d+)?(?:\/[^\s?#]*)?(?:\?[^\s#]*)?(?=([^\s]+#.*)?)#?[^\s]*/i;
|
|
117
|
+
const CHAR_TEST_REGEXP = /\p{L}/u;
|
|
118
|
+
const PUNC_TEST_REGEXP = /[!?.]/;
|
|
119
|
+
function hash(value, extraArgs) {
|
|
120
|
+
const algorithm = extraArgs[0]?.toLowerCase() ?? 'md5';
|
|
121
|
+
switch (algorithm) {
|
|
122
|
+
case 'base64':
|
|
123
|
+
return (0, js_base64_1.toBase64)(value);
|
|
124
|
+
case 'md5':
|
|
125
|
+
return (0, md5_1.default)(value);
|
|
126
|
+
case 'sha1':
|
|
127
|
+
case 'sha224':
|
|
128
|
+
case 'sha256':
|
|
129
|
+
case 'sha384':
|
|
130
|
+
case 'sha512':
|
|
131
|
+
case 'sha3':
|
|
132
|
+
const variant = {
|
|
133
|
+
sha1: 'SHA-1',
|
|
134
|
+
sha224: 'SHA-224',
|
|
135
|
+
sha256: 'SHA-256',
|
|
136
|
+
sha384: 'SHA-384',
|
|
137
|
+
sha512: 'SHA-512',
|
|
138
|
+
sha3: 'SHA3-512',
|
|
139
|
+
}[algorithm];
|
|
140
|
+
return new jssha_1.default(variant, 'TEXT').update(value).getHash('HEX');
|
|
141
|
+
default:
|
|
142
|
+
throw new expression_extension_error_1.ExpressionExtensionError(`Unknown algorithm ${algorithm}. Available algorithms are: ${exports.SupportedHashAlgorithms.join()}, and Base64.`);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function isEmpty(value) {
|
|
146
|
+
return value === '';
|
|
147
|
+
}
|
|
148
|
+
function isNotEmpty(value) {
|
|
149
|
+
return !isEmpty(value);
|
|
150
|
+
}
|
|
151
|
+
function length(value) {
|
|
152
|
+
return value.length;
|
|
153
|
+
}
|
|
154
|
+
function toJsonString(value) {
|
|
155
|
+
return JSON.stringify(value);
|
|
156
|
+
}
|
|
157
|
+
function removeMarkdown(value) {
|
|
158
|
+
let output = value;
|
|
159
|
+
try {
|
|
160
|
+
output = output.replace(/^([\s\t]*)([*\-+]|\d\.)\s+/gm, '$1');
|
|
161
|
+
output = output
|
|
162
|
+
// Header
|
|
163
|
+
.replace(/\n={2,}/g, '\n')
|
|
164
|
+
// Strikethrough
|
|
165
|
+
.replace(/~~/g, '')
|
|
166
|
+
// Fenced codeblocks
|
|
167
|
+
.replace(/`{3}.*\n/g, '');
|
|
168
|
+
output = output
|
|
169
|
+
// Remove HTML tags
|
|
170
|
+
.replace(/<[\w|\s|=|'|"|:|(|)|,|;|/|0-9|.|-]+[>|\\>]/g, '')
|
|
171
|
+
// Remove setext-style headers
|
|
172
|
+
.replace(/^[=-]{2,}\s*$/g, '')
|
|
173
|
+
// Remove footnotes?
|
|
174
|
+
.replace(/\[\^.+?\](: .*?$)?/g, '')
|
|
175
|
+
.replace(/\s{0,2}\[.*?\]: .*?$/g, '')
|
|
176
|
+
// Remove images
|
|
177
|
+
.replace(/!\[.*?\][[(].*?[\])]/g, '')
|
|
178
|
+
// Remove inline links
|
|
179
|
+
.replace(/\[(.*?)\][[(].*?[\])]/g, '$1')
|
|
180
|
+
// Remove Blockquotes
|
|
181
|
+
.replace(/>/g, '')
|
|
182
|
+
// Remove reference-style links?
|
|
183
|
+
.replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g, '')
|
|
184
|
+
// Remove atx-style headers
|
|
185
|
+
.replace(/^#{1,6}\s*([^#]*)\s*(#{1,6})?/gm, '$1')
|
|
186
|
+
.replace(/([*_]{1,3})(\S.*?\S)\1/g, '$2')
|
|
187
|
+
.replace(/(`{3,})(.*?)\1/gm, '$2')
|
|
188
|
+
.replace(/^-{3,}\s*$/g, '')
|
|
189
|
+
.replace(/`(.+?)`/g, '$1')
|
|
190
|
+
.replace(/\n{2,}/g, '\n\n');
|
|
191
|
+
}
|
|
192
|
+
catch (e) {
|
|
193
|
+
return value;
|
|
194
|
+
}
|
|
195
|
+
return output;
|
|
196
|
+
}
|
|
197
|
+
function removeTags(value) {
|
|
198
|
+
return value.replace(/<[^>]*>?/gm, '');
|
|
199
|
+
}
|
|
200
|
+
function toDate(value) {
|
|
201
|
+
const date = new Date(Date.parse(value));
|
|
202
|
+
if (date.toString() === 'Invalid Date') {
|
|
203
|
+
throw new expression_extension_error_1.ExpressionExtensionError('cannot convert to date');
|
|
204
|
+
}
|
|
205
|
+
// If time component is not specified, force 00:00h
|
|
206
|
+
if (!/:/.test(value)) {
|
|
207
|
+
date.setHours(0, 0, 0);
|
|
208
|
+
}
|
|
209
|
+
return date;
|
|
210
|
+
}
|
|
211
|
+
function toDateTime(value, extraArgs = ['']) {
|
|
212
|
+
try {
|
|
213
|
+
const [valueFormat] = extraArgs;
|
|
214
|
+
if (valueFormat) {
|
|
215
|
+
if (valueFormat === 'ms' ||
|
|
216
|
+
valueFormat === 's' ||
|
|
217
|
+
valueFormat === 'us' ||
|
|
218
|
+
valueFormat === 'excel') {
|
|
219
|
+
return (0, number_extensions_1.toDateTime)(Number(value), [valueFormat]);
|
|
220
|
+
}
|
|
221
|
+
return luxon_1.DateTime.fromFormat(value, valueFormat);
|
|
222
|
+
}
|
|
223
|
+
return (0, type_validation_1.tryToParseDateTime)(value);
|
|
224
|
+
}
|
|
225
|
+
catch (error) {
|
|
226
|
+
throw new expression_extension_error_1.ExpressionExtensionError('cannot convert to Luxon DateTime');
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
function urlDecode(value, extraArgs) {
|
|
230
|
+
const [entireString = false] = extraArgs;
|
|
231
|
+
if (entireString) {
|
|
232
|
+
return decodeURI(value.toString());
|
|
233
|
+
}
|
|
234
|
+
return decodeURIComponent(value.toString());
|
|
235
|
+
}
|
|
236
|
+
function urlEncode(value, extraArgs) {
|
|
237
|
+
const [entireString = false] = extraArgs;
|
|
238
|
+
if (entireString) {
|
|
239
|
+
return encodeURI(value.toString());
|
|
240
|
+
}
|
|
241
|
+
return encodeURIComponent(value.toString());
|
|
242
|
+
}
|
|
243
|
+
function toInt(value, extraArgs) {
|
|
244
|
+
const [radix] = extraArgs;
|
|
245
|
+
const int = parseInt(value.replace(CURRENCY_REGEXP, ''), radix);
|
|
246
|
+
if (isNaN(int)) {
|
|
247
|
+
throw new expression_extension_error_1.ExpressionExtensionError('cannot convert to integer');
|
|
248
|
+
}
|
|
249
|
+
return int;
|
|
250
|
+
}
|
|
251
|
+
function toFloat(value) {
|
|
252
|
+
if (value.includes(',')) {
|
|
253
|
+
throw new expression_extension_error_1.ExpressionExtensionError('cannot convert to float, expected . as decimal separator');
|
|
254
|
+
}
|
|
255
|
+
const float = parseFloat(value.replace(CURRENCY_REGEXP, ''));
|
|
256
|
+
if (isNaN(float)) {
|
|
257
|
+
throw new expression_extension_error_1.ExpressionExtensionError('cannot convert to float');
|
|
258
|
+
}
|
|
259
|
+
return float;
|
|
260
|
+
}
|
|
261
|
+
function toNumber(value) {
|
|
262
|
+
const num = Number(value.replace(CURRENCY_REGEXP, ''));
|
|
263
|
+
if (isNaN(num)) {
|
|
264
|
+
throw new expression_extension_error_1.ExpressionExtensionError('cannot convert to number');
|
|
265
|
+
}
|
|
266
|
+
return num;
|
|
267
|
+
}
|
|
268
|
+
function quote(value, extraArgs) {
|
|
269
|
+
const [quoteChar = '"'] = extraArgs;
|
|
270
|
+
return `${quoteChar}${value
|
|
271
|
+
.replace(/\\/g, '\\\\')
|
|
272
|
+
.replace(new RegExp(`\\${quoteChar}`, 'g'), `\\${quoteChar}`)}${quoteChar}`;
|
|
273
|
+
}
|
|
274
|
+
function isNumeric(value) {
|
|
275
|
+
if (value.includes(' '))
|
|
276
|
+
return false;
|
|
277
|
+
return !isNaN(value) && !isNaN(parseFloat(value));
|
|
278
|
+
}
|
|
279
|
+
function isUrl(value) {
|
|
280
|
+
return URL_REGEXP_EXACT.test(value);
|
|
281
|
+
}
|
|
282
|
+
function isDomain(value) {
|
|
283
|
+
return DOMAIN_REGEXP.test(value);
|
|
284
|
+
}
|
|
285
|
+
function isEmail(value) {
|
|
286
|
+
const result = EMAIL_REGEXP.test(value);
|
|
287
|
+
// email regex is loose so check manually for now
|
|
288
|
+
if (result && value.includes(' ')) {
|
|
289
|
+
return false;
|
|
290
|
+
}
|
|
291
|
+
return result;
|
|
292
|
+
}
|
|
293
|
+
function toTitleCase(value) {
|
|
294
|
+
return (0, title_case_1.titleCase)(value);
|
|
295
|
+
}
|
|
296
|
+
function replaceSpecialChars(value) {
|
|
297
|
+
return (0, transliteration_1.transliterate)(value, { unknown: '?' });
|
|
298
|
+
}
|
|
299
|
+
function toSentenceCase(value) {
|
|
300
|
+
let current = value.slice();
|
|
301
|
+
let buffer = '';
|
|
302
|
+
while (CHAR_TEST_REGEXP.test(current)) {
|
|
303
|
+
const charIndex = current.search(CHAR_TEST_REGEXP);
|
|
304
|
+
current =
|
|
305
|
+
current.slice(0, charIndex) +
|
|
306
|
+
current[charIndex].toLocaleUpperCase() +
|
|
307
|
+
current.slice(charIndex + 1).toLocaleLowerCase();
|
|
308
|
+
const puncIndex = current.search(PUNC_TEST_REGEXP);
|
|
309
|
+
if (puncIndex === -1) {
|
|
310
|
+
buffer += current;
|
|
311
|
+
current = '';
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
314
|
+
buffer += current.slice(0, puncIndex + 1);
|
|
315
|
+
current = current.slice(puncIndex + 1);
|
|
316
|
+
}
|
|
317
|
+
return buffer;
|
|
318
|
+
}
|
|
319
|
+
function toSnakeCase(value) {
|
|
320
|
+
return value
|
|
321
|
+
.toLocaleLowerCase()
|
|
322
|
+
.replace(/[ \-]/g, '_')
|
|
323
|
+
.replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,.\/:;<=>?@\[\]^`{|}~]/g, '');
|
|
324
|
+
}
|
|
325
|
+
function extractEmail(value) {
|
|
326
|
+
const matched = EMAIL_REGEXP.exec(value);
|
|
327
|
+
if (!matched) {
|
|
328
|
+
return undefined;
|
|
329
|
+
}
|
|
330
|
+
return matched[0];
|
|
331
|
+
}
|
|
332
|
+
function extractDomain(value) {
|
|
333
|
+
if (isEmail(value)) {
|
|
334
|
+
const matched = EMAIL_REGEXP.exec(value);
|
|
335
|
+
// This shouldn't happen
|
|
336
|
+
if (!matched) {
|
|
337
|
+
return undefined;
|
|
338
|
+
}
|
|
339
|
+
return matched.groups?.domain;
|
|
340
|
+
}
|
|
341
|
+
const domainMatch = value.match(DOMAIN_EXTRACT_REGEXP);
|
|
342
|
+
if (domainMatch) {
|
|
343
|
+
return domainMatch[1];
|
|
344
|
+
}
|
|
345
|
+
return undefined;
|
|
346
|
+
}
|
|
347
|
+
function extractUrl(value) {
|
|
348
|
+
const matched = URL_REGEXP.exec(value);
|
|
349
|
+
if (!matched) {
|
|
350
|
+
return undefined;
|
|
351
|
+
}
|
|
352
|
+
return matched[0];
|
|
353
|
+
}
|
|
354
|
+
function extractUrlPath(value) {
|
|
355
|
+
try {
|
|
356
|
+
const url = new URL(value);
|
|
357
|
+
return url.pathname;
|
|
358
|
+
}
|
|
359
|
+
catch (error) {
|
|
360
|
+
return undefined;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
function parseJson(value) {
|
|
364
|
+
try {
|
|
365
|
+
return JSON.parse(value);
|
|
366
|
+
}
|
|
367
|
+
catch (error) {
|
|
368
|
+
if (value.includes("'")) {
|
|
369
|
+
throw new expression_extension_error_1.ExpressionExtensionError("Parsing failed. Check you're using double quotes");
|
|
370
|
+
}
|
|
371
|
+
throw new expression_extension_error_1.ExpressionExtensionError('Parsing failed');
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
function toBoolean(value) {
|
|
375
|
+
const normalized = value.toLowerCase();
|
|
376
|
+
const FALSY = new Set(['false', 'no', '0']);
|
|
377
|
+
return normalized.length > 0 && !FALSY.has(normalized);
|
|
378
|
+
}
|
|
379
|
+
function base64Encode(value) {
|
|
380
|
+
return (0, js_base64_1.toBase64)(value);
|
|
381
|
+
}
|
|
382
|
+
function base64Decode(value) {
|
|
383
|
+
return (0, js_base64_1.fromBase64)(value);
|
|
384
|
+
}
|
|
385
|
+
removeMarkdown.doc = {
|
|
386
|
+
name: 'removeMarkdown',
|
|
387
|
+
description: 'Removes any Markdown formatting from the string. Also removes HTML tags.',
|
|
388
|
+
section: 'edit',
|
|
389
|
+
returnType: 'string',
|
|
390
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-removeMarkdown',
|
|
391
|
+
examples: [{ example: '"*bold*, [link]()".removeMarkdown()', evaluated: '"bold, link"' }],
|
|
392
|
+
};
|
|
393
|
+
removeTags.doc = {
|
|
394
|
+
name: 'removeTags',
|
|
395
|
+
description: 'Removes tags, such as HTML or XML, from the string.',
|
|
396
|
+
section: 'edit',
|
|
397
|
+
returnType: 'string',
|
|
398
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-removeTags',
|
|
399
|
+
examples: [{ example: '"<b>bold</b>, <a>link</a>".removeTags()', evaluated: '"bold, link"' }],
|
|
400
|
+
};
|
|
401
|
+
toDate.doc = {
|
|
402
|
+
name: 'toDate',
|
|
403
|
+
description: 'Converts a string to a date.',
|
|
404
|
+
section: 'cast',
|
|
405
|
+
returnType: 'Date',
|
|
406
|
+
hidden: true,
|
|
407
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-toDate',
|
|
408
|
+
};
|
|
409
|
+
toDateTime.doc = {
|
|
410
|
+
name: 'toDateTime',
|
|
411
|
+
description: 'Converts the string to a <a target="_blank" href="https://moment.github.io/luxon/api-docs/">Luxon</a> DateTime. Useful for further transformation. Supported formats for the string are ISO 8601, HTTP, RFC2822, SQL and Unix timestamp in milliseconds. To parse other formats, use <a target="_blank" href=”https://moment.github.io/luxon/api-docs/index.html#datetimefromformat”> <code>DateTime.fromFormat()</code></a>.',
|
|
412
|
+
section: 'cast',
|
|
413
|
+
returnType: 'DateTime',
|
|
414
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-toDateTime',
|
|
415
|
+
examples: [
|
|
416
|
+
{ example: '"2024-03-29T18:06:31.798+01:00".toDateTime()' },
|
|
417
|
+
{ example: '"Fri, 29 Mar 2024 18:08:01 +0100".toDateTime()' },
|
|
418
|
+
{ example: '"20240329".toDateTime()' },
|
|
419
|
+
{ example: '"1711732132990".toDateTime("ms")' },
|
|
420
|
+
{ example: '"31-01-2024".toDateTime("dd-MM-yyyy")' },
|
|
421
|
+
],
|
|
422
|
+
args: [
|
|
423
|
+
{
|
|
424
|
+
name: 'format',
|
|
425
|
+
optional: true,
|
|
426
|
+
description: 'The format of the date string. Options are <code>ms</code> (for Unix timestamp in milliseconds), <code>s</code> (for Unix timestamp in seconds), <code>us</code> (for Unix timestamp in microseconds) or <code>excel</code> (for days since 1900). Custom formats can be specified using <a href="https://moment.github.io/luxon/#/formatting?id=table-of-tokens">Luxon tokens</a>.',
|
|
427
|
+
type: 'string',
|
|
428
|
+
},
|
|
429
|
+
],
|
|
430
|
+
};
|
|
431
|
+
toBoolean.doc = {
|
|
432
|
+
name: 'toBoolean',
|
|
433
|
+
description: 'Converts the string to a boolean value. <code>0</code>, <code>false</code> and <code>no</code> resolve to <code>false</code>, everything else to <code>true</code>. Case-insensitive.',
|
|
434
|
+
section: 'cast',
|
|
435
|
+
returnType: 'boolean',
|
|
436
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-toBoolean',
|
|
437
|
+
examples: [
|
|
438
|
+
{ example: '"true".toBoolean()', evaluated: 'true' },
|
|
439
|
+
{ example: '"false".toBoolean()', evaluated: 'false' },
|
|
440
|
+
{ example: '"0".toBoolean()', evaluated: 'false' },
|
|
441
|
+
{ example: '"hello".toBoolean()', evaluated: 'true' },
|
|
442
|
+
],
|
|
443
|
+
};
|
|
444
|
+
toFloat.doc = {
|
|
445
|
+
name: 'toFloat',
|
|
446
|
+
description: 'Converts a string to a decimal number.',
|
|
447
|
+
section: 'cast',
|
|
448
|
+
returnType: 'number',
|
|
449
|
+
aliases: ['toDecimalNumber'],
|
|
450
|
+
hidden: true,
|
|
451
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-toDecimalNumber',
|
|
452
|
+
};
|
|
453
|
+
toInt.doc = {
|
|
454
|
+
name: 'toInt',
|
|
455
|
+
description: 'Converts a string to an integer.',
|
|
456
|
+
section: 'cast',
|
|
457
|
+
returnType: 'number',
|
|
458
|
+
args: [{ name: 'radix?', type: 'number' }],
|
|
459
|
+
aliases: ['toWholeNumber'],
|
|
460
|
+
hidden: true,
|
|
461
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-toInt',
|
|
462
|
+
};
|
|
463
|
+
toSentenceCase.doc = {
|
|
464
|
+
name: 'toSentenceCase',
|
|
465
|
+
description: 'Changes the capitalization of the string to sentence case. The first letter of each sentence is capitalized and all others are lowercased.',
|
|
466
|
+
examples: [{ example: '"quick! brown FOX".toSentenceCase()', evaluated: '"Quick! Brown fox"' }],
|
|
467
|
+
section: 'case',
|
|
468
|
+
returnType: 'string',
|
|
469
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-toSentenceCase',
|
|
470
|
+
};
|
|
471
|
+
toSnakeCase.doc = {
|
|
472
|
+
name: 'toSnakeCase',
|
|
473
|
+
description: 'Changes the format of the string to snake case. Spaces and dashes are replaced by <code>_</code>, symbols are removed and all letters are lowercased.',
|
|
474
|
+
examples: [{ example: '"quick brown $FOX".toSnakeCase()', evaluated: '"quick_brown_fox"' }],
|
|
475
|
+
section: 'case',
|
|
476
|
+
returnType: 'string',
|
|
477
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-toSnakeCase',
|
|
478
|
+
};
|
|
479
|
+
toTitleCase.doc = {
|
|
480
|
+
name: 'toTitleCase',
|
|
481
|
+
description: "Changes the capitalization of the string to title case. The first letter of each word is capitalized and the others left unchanged. Short prepositions and conjunctions aren't capitalized (e.g. 'a', 'the').",
|
|
482
|
+
examples: [{ example: '"quick a brown FOX".toTitleCase()', evaluated: '"Quick a Brown Fox"' }],
|
|
483
|
+
section: 'case',
|
|
484
|
+
returnType: 'string',
|
|
485
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-toTitleCase',
|
|
486
|
+
};
|
|
487
|
+
urlEncode.doc = {
|
|
488
|
+
name: 'urlEncode',
|
|
489
|
+
description: 'Encodes the string so that it can be used in a URL. Spaces and special characters are replaced with codes of the form <code>%XX</code>.',
|
|
490
|
+
section: 'edit',
|
|
491
|
+
args: [
|
|
492
|
+
{
|
|
493
|
+
name: 'allChars',
|
|
494
|
+
optional: true,
|
|
495
|
+
description: 'Whether to encode characters that are part of the URI syntax (e.g. <code>=</code>, <code>?</code>)',
|
|
496
|
+
default: 'false',
|
|
497
|
+
type: 'boolean',
|
|
498
|
+
},
|
|
499
|
+
],
|
|
500
|
+
returnType: 'string',
|
|
501
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-urlEncode',
|
|
502
|
+
examples: [
|
|
503
|
+
{ example: '"name=Nathan Automat".urlEncode()', evaluated: '"name%3DNathan%20Automat"' },
|
|
504
|
+
{ example: '"name=Nathan Automat".urlEncode(true)', evaluated: '"name=Nathan%20Automat"' },
|
|
505
|
+
],
|
|
506
|
+
};
|
|
507
|
+
urlDecode.doc = {
|
|
508
|
+
name: 'urlDecode',
|
|
509
|
+
description: 'Decodes a URL-encoded string. Replaces any character codes in the form of <code>%XX</code> with their corresponding characters.',
|
|
510
|
+
args: [
|
|
511
|
+
{
|
|
512
|
+
name: 'allChars',
|
|
513
|
+
optional: true,
|
|
514
|
+
description: 'Whether to decode characters that are part of the URI syntax (e.g. <code>=</code>, <code>?</code>)',
|
|
515
|
+
default: 'false',
|
|
516
|
+
type: 'boolean',
|
|
517
|
+
},
|
|
518
|
+
],
|
|
519
|
+
section: 'edit',
|
|
520
|
+
returnType: 'string',
|
|
521
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-urlDecode',
|
|
522
|
+
examples: [
|
|
523
|
+
{ example: '"name%3DNathan%20Automat".urlDecode()', evaluated: '"name=Nathan Automat"' },
|
|
524
|
+
{ example: '"name%3DNathan%20Automat".urlDecode(true)', evaluated: '"name%3DNathan Automat"' },
|
|
525
|
+
],
|
|
526
|
+
};
|
|
527
|
+
replaceSpecialChars.doc = {
|
|
528
|
+
name: 'replaceSpecialChars',
|
|
529
|
+
description: 'Replaces special characters in the string with the closest ASCII character',
|
|
530
|
+
section: 'edit',
|
|
531
|
+
returnType: 'string',
|
|
532
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-replaceSpecialChars',
|
|
533
|
+
examples: [{ example: '"déjà".replaceSpecialChars()', evaluated: '"deja"' }],
|
|
534
|
+
};
|
|
535
|
+
length.doc = {
|
|
536
|
+
name: 'length',
|
|
537
|
+
section: 'query',
|
|
538
|
+
hidden: true,
|
|
539
|
+
description: 'Returns the character count of a string.',
|
|
540
|
+
returnType: 'number',
|
|
541
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings',
|
|
542
|
+
};
|
|
543
|
+
isDomain.doc = {
|
|
544
|
+
name: 'isDomain',
|
|
545
|
+
description: 'Returns <code>true</code> if a string is a domain.',
|
|
546
|
+
section: 'validation',
|
|
547
|
+
returnType: 'boolean',
|
|
548
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-isDomain',
|
|
549
|
+
examples: [
|
|
550
|
+
{ example: '"n8n.io".isDomain()', evaluated: 'true' },
|
|
551
|
+
{ example: '"http://n8n.io".isDomain()', evaluated: 'false' },
|
|
552
|
+
{ example: '"hello".isDomain()', evaluated: 'false' },
|
|
553
|
+
],
|
|
554
|
+
};
|
|
555
|
+
isEmail.doc = {
|
|
556
|
+
name: 'isEmail',
|
|
557
|
+
description: 'Returns <code>true</code> if the string is an email.',
|
|
558
|
+
section: 'validation',
|
|
559
|
+
returnType: 'boolean',
|
|
560
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-isEmail',
|
|
561
|
+
examples: [
|
|
562
|
+
{ example: '"me@example.com".isEmail()', evaluated: 'true' },
|
|
563
|
+
{ example: '"It\'s me@example.com".isEmail()', evaluated: 'false' },
|
|
564
|
+
{ example: '"hello".isEmail()', evaluated: 'false' },
|
|
565
|
+
],
|
|
566
|
+
};
|
|
567
|
+
isNumeric.doc = {
|
|
568
|
+
name: 'isNumeric',
|
|
569
|
+
description: 'Returns <code>true</code> if the string represents a number.',
|
|
570
|
+
section: 'validation',
|
|
571
|
+
returnType: 'boolean',
|
|
572
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-isNumeric',
|
|
573
|
+
examples: [
|
|
574
|
+
{ example: '"1.2234".isNumeric()', evaluated: 'true' },
|
|
575
|
+
{ example: '"hello".isNumeric()', evaluated: 'false' },
|
|
576
|
+
{ example: '"123E23".isNumeric()', evaluated: 'true' },
|
|
577
|
+
],
|
|
578
|
+
};
|
|
579
|
+
isUrl.doc = {
|
|
580
|
+
name: 'isUrl',
|
|
581
|
+
description: 'Returns <code>true</code> if a string is a valid URL',
|
|
582
|
+
section: 'validation',
|
|
583
|
+
returnType: 'boolean',
|
|
584
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-isUrl',
|
|
585
|
+
examples: [
|
|
586
|
+
{ example: '"https://n8n.io".isUrl()', evaluated: 'true' },
|
|
587
|
+
{ example: '"n8n.io".isUrl()', evaluated: 'false' },
|
|
588
|
+
{ example: '"hello".isUrl()', evaluated: 'false' },
|
|
589
|
+
],
|
|
590
|
+
};
|
|
591
|
+
isEmpty.doc = {
|
|
592
|
+
name: 'isEmpty',
|
|
593
|
+
description: 'Returns <code>true</code> if the string has no characters or is <code>null</code>',
|
|
594
|
+
section: 'validation',
|
|
595
|
+
returnType: 'boolean',
|
|
596
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-isEmpty',
|
|
597
|
+
examples: [
|
|
598
|
+
{ example: '"".isEmpty()', evaluated: 'true' },
|
|
599
|
+
{ example: '"hello".isEmpty()', evaluated: 'false' },
|
|
600
|
+
],
|
|
601
|
+
};
|
|
602
|
+
isNotEmpty.doc = {
|
|
603
|
+
name: 'isNotEmpty',
|
|
604
|
+
description: 'Returns <code>true</code> if the string has at least one character.',
|
|
605
|
+
section: 'validation',
|
|
606
|
+
returnType: 'boolean',
|
|
607
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-isNotEmpty',
|
|
608
|
+
examples: [
|
|
609
|
+
{ example: '"hello".isNotEmpty()', evaluated: 'true' },
|
|
610
|
+
{ example: '"".isNotEmpty()', evaluated: 'false' },
|
|
611
|
+
],
|
|
612
|
+
};
|
|
613
|
+
toJsonString.doc = {
|
|
614
|
+
name: 'toJsonString',
|
|
615
|
+
description: 'Prepares the string to be inserted into a JSON object. Escapes any quotes and special characters (e.g. new lines), and wraps the string in quotes.The same as JavaScript’s JSON.stringify().',
|
|
616
|
+
section: 'edit',
|
|
617
|
+
returnType: 'string',
|
|
618
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-toJsonString',
|
|
619
|
+
examples: [
|
|
620
|
+
{
|
|
621
|
+
example: 'The "best" colours: red\nbrown.toJsonString()',
|
|
622
|
+
evaluated: '"The \\"best\\" colours: red\\nbrown"',
|
|
623
|
+
},
|
|
624
|
+
{ example: 'foo.toJsonString()', evaluated: '"foo"' },
|
|
625
|
+
],
|
|
626
|
+
};
|
|
627
|
+
extractEmail.doc = {
|
|
628
|
+
name: 'extractEmail',
|
|
629
|
+
description: 'Extracts the first email found in the string. Returns <code>undefined</code> if none is found.',
|
|
630
|
+
section: 'edit',
|
|
631
|
+
returnType: 'string',
|
|
632
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-extractEmail',
|
|
633
|
+
examples: [
|
|
634
|
+
{ example: '"My email is me@example.com".extractEmail()', evaluated: "'me@example.com'" },
|
|
635
|
+
],
|
|
636
|
+
};
|
|
637
|
+
extractDomain.doc = {
|
|
638
|
+
name: 'extractDomain',
|
|
639
|
+
description: 'If the string is an email address or URL, returns its domain (or <code>undefined</code> if nothing found). If the string also contains other content, try using <code>extractEmail()</code> or <code>extractUrl()</code> first.',
|
|
640
|
+
section: 'edit',
|
|
641
|
+
returnType: 'string',
|
|
642
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-extractDomain',
|
|
643
|
+
examples: [
|
|
644
|
+
{ example: '"me@example.com".extractDomain()', evaluated: "'example.com'" },
|
|
645
|
+
{ example: '"http://n8n.io/workflows".extractDomain()', evaluated: "'n8n.io'" },
|
|
646
|
+
{
|
|
647
|
+
example: '"It\'s me@example.com".extractEmail().extractDomain()',
|
|
648
|
+
evaluated: "'example.com'",
|
|
649
|
+
},
|
|
650
|
+
],
|
|
651
|
+
};
|
|
652
|
+
extractUrl.doc = {
|
|
653
|
+
name: 'extractUrl',
|
|
654
|
+
description: 'Extracts the first URL found in the string. Returns <code>undefined</code> if none is found. Only recognizes full URLs, e.g. those starting with <code>http</code>.',
|
|
655
|
+
section: 'edit',
|
|
656
|
+
returnType: 'string',
|
|
657
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-extractUrl',
|
|
658
|
+
examples: [{ example: '"Check out http://n8n.io".extractUrl()', evaluated: "'http://n8n.io'" }],
|
|
659
|
+
};
|
|
660
|
+
extractUrlPath.doc = {
|
|
661
|
+
name: 'extractUrlPath',
|
|
662
|
+
description: 'Returns the part of a URL after the domain, or <code>undefined</code> if no URL found. If the string also contains other content, try using <code>extractUrl()</code> first.',
|
|
663
|
+
section: 'edit',
|
|
664
|
+
returnType: 'string',
|
|
665
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-extractUrlPath',
|
|
666
|
+
examples: [
|
|
667
|
+
{ example: '"http://n8n.io/workflows".extractUrlPath()', evaluated: "'/workflows'" },
|
|
668
|
+
{
|
|
669
|
+
example: '"Check out http://n8n.io/workflows".extractUrl().extractUrlPath()',
|
|
670
|
+
evaluated: "'/workflows'",
|
|
671
|
+
},
|
|
672
|
+
],
|
|
673
|
+
};
|
|
674
|
+
hash.doc = {
|
|
675
|
+
name: 'hash',
|
|
676
|
+
description: 'Returns the string hashed with the given algorithm. Defaults to md5 if not specified.',
|
|
677
|
+
section: 'edit',
|
|
678
|
+
returnType: 'string',
|
|
679
|
+
args: [
|
|
680
|
+
{
|
|
681
|
+
name: 'algo',
|
|
682
|
+
optional: true,
|
|
683
|
+
description: 'The hashing algorithm to use. One of <code>md5</code>, <code>base64</code>, <code>sha1</code>, <code>sha224</code>, <code>sha256</code>, <code>sha384</code>, <code>sha512</code>, <code>sha3</code>, <code>ripemd160</code>\n ',
|
|
684
|
+
default: '"md5"',
|
|
685
|
+
type: 'string',
|
|
686
|
+
},
|
|
687
|
+
],
|
|
688
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-hash',
|
|
689
|
+
examples: [{ example: '"hello".hash()', evaluated: "'5d41402abc4b2a76b9719d911017c592'" }],
|
|
690
|
+
};
|
|
691
|
+
quote.doc = {
|
|
692
|
+
name: 'quote',
|
|
693
|
+
description: 'Wraps a string in quotation marks, and escapes any quotation marks already in the string. Useful when constructing JSON, SQL, etc.',
|
|
694
|
+
section: 'edit',
|
|
695
|
+
returnType: 'string',
|
|
696
|
+
args: [
|
|
697
|
+
{
|
|
698
|
+
name: 'mark',
|
|
699
|
+
optional: true,
|
|
700
|
+
description: 'The type of quotation mark to use',
|
|
701
|
+
default: '"',
|
|
702
|
+
type: 'string',
|
|
703
|
+
},
|
|
704
|
+
],
|
|
705
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-quote',
|
|
706
|
+
examples: [{ example: '\'Nathan says "hi"\'.quote()', evaluated: '\'"Nathan says \\"hi\\""\'' }],
|
|
707
|
+
};
|
|
708
|
+
parseJson.doc = {
|
|
709
|
+
name: 'parseJson',
|
|
710
|
+
aliases: ['fromJson'],
|
|
711
|
+
description: "Returns the JavaScript value or object represented by the string, or <code>undefined</code> if the string isn't valid JSON. Single-quoted JSON is not supported.",
|
|
712
|
+
section: 'cast',
|
|
713
|
+
returnType: 'any',
|
|
714
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-parseJson',
|
|
715
|
+
examples: [
|
|
716
|
+
{ example: '\'{"name":"Nathan"}\'.parseJson()', evaluated: '\'{"name":"Nathan"}\'' },
|
|
717
|
+
{ example: "\"{'name':'Nathan'}\".parseJson()", evaluated: 'undefined' },
|
|
718
|
+
{ example: "'hello'.parseJson()", evaluated: 'undefined' },
|
|
719
|
+
],
|
|
720
|
+
};
|
|
721
|
+
base64Encode.doc = {
|
|
722
|
+
name: 'base64Encode',
|
|
723
|
+
aliases: ['toBase64'],
|
|
724
|
+
description: 'Converts plain text to a base64-encoded string',
|
|
725
|
+
examples: [{ example: '"hello".base64Encode()', evaluated: '"aGVsbG8="' }],
|
|
726
|
+
section: 'edit',
|
|
727
|
+
returnType: 'string',
|
|
728
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-base64Encode',
|
|
729
|
+
};
|
|
730
|
+
base64Decode.doc = {
|
|
731
|
+
name: 'base64Decode',
|
|
732
|
+
aliases: ['fromBase64'],
|
|
733
|
+
description: 'Converts a base64-encoded string to plain text',
|
|
734
|
+
examples: [{ example: '"aGVsbG8=".base64Decode()', evaluated: '"hello"' }],
|
|
735
|
+
section: 'edit',
|
|
736
|
+
returnType: 'string',
|
|
737
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-base64Decode',
|
|
738
|
+
};
|
|
739
|
+
toNumber.doc = {
|
|
740
|
+
name: 'toNumber',
|
|
741
|
+
description: "Converts a string representing a number to a number. Errors if the string doesn't start with a valid number.",
|
|
742
|
+
section: 'cast',
|
|
743
|
+
returnType: 'number',
|
|
744
|
+
docURL: 'https://docs.n8n.io/code/builtin/data-transformation-functions/strings/#string-toNumber',
|
|
745
|
+
examples: [
|
|
746
|
+
{ example: '"123".toNumber()', evaluated: '123' },
|
|
747
|
+
{ example: '"1.23E10".toNumber()', evaluated: '12300000000' },
|
|
748
|
+
],
|
|
749
|
+
};
|
|
750
|
+
const toDecimalNumber = toFloat.bind({});
|
|
751
|
+
const toWholeNumber = toInt.bind({});
|
|
752
|
+
exports.stringExtensions = {
|
|
753
|
+
typeName: 'String',
|
|
754
|
+
functions: {
|
|
755
|
+
hash,
|
|
756
|
+
removeMarkdown,
|
|
757
|
+
removeTags,
|
|
758
|
+
toDate,
|
|
759
|
+
toDateTime,
|
|
760
|
+
toBoolean,
|
|
761
|
+
toDecimalNumber,
|
|
762
|
+
toNumber,
|
|
763
|
+
toFloat,
|
|
764
|
+
toInt,
|
|
765
|
+
toWholeNumber,
|
|
766
|
+
toSentenceCase,
|
|
767
|
+
toSnakeCase,
|
|
768
|
+
toTitleCase,
|
|
769
|
+
urlDecode,
|
|
770
|
+
urlEncode,
|
|
771
|
+
quote,
|
|
772
|
+
replaceSpecialChars,
|
|
773
|
+
length,
|
|
774
|
+
isDomain,
|
|
775
|
+
isEmail,
|
|
776
|
+
isNumeric,
|
|
777
|
+
isUrl,
|
|
778
|
+
isEmpty,
|
|
779
|
+
isNotEmpty,
|
|
780
|
+
toJsonString,
|
|
781
|
+
extractEmail,
|
|
782
|
+
extractDomain,
|
|
783
|
+
extractUrl,
|
|
784
|
+
extractUrlPath,
|
|
785
|
+
parseJson,
|
|
786
|
+
base64Encode,
|
|
787
|
+
base64Decode,
|
|
788
|
+
},
|
|
789
|
+
};
|
|
790
|
+
});
|
|
791
|
+
//# sourceMappingURL=string-extensions.js.map
|