n8n-nodes-base 2.46.0 β 3.0.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/dist/cjs/build.tsbuildinfo +1 -1
- package/dist/credentials/SlackApi.credentials.d.ts.map +1 -1
- package/dist/credentials/SlackApi.credentials.js +1 -11
- package/dist/credentials/SlackApi.credentials.js.map +1 -1
- package/dist/credentials/WebflowOAuth2Api.credentials.js +1 -1
- package/dist/credentials/WebflowOAuth2Api.credentials.js.map +1 -1
- package/dist/known/credentials.json +1 -11
- package/dist/known/nodes.json +0 -64
- package/dist/methods/defined.json +0 -4
- package/dist/methods/referenced.json +0 -4
- package/dist/node-definitions/.nodes-hash +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/code/v1/mode_run_once_for_all_items.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/code/v1/mode_run_once_for_each_item.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/code/v2/mode_run_once_for_all_items.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/code/v2/mode_run_once_for_each_item.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/convertToFile/v1.ts +13 -14
- package/dist/node-definitions/nodes/n8n-nodes-base/convertToFile/v11.ts +13 -14
- package/dist/node-definitions/nodes/n8n-nodes-base/convertToFile/v12.ts +13 -14
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v1.schema.js +1 -3
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v1.ts +1 -13
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v11.schema.js +1 -3
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v11.ts +1 -13
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v12.schema.js +0 -2
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v12.ts +0 -12
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v13.schema.js +0 -2
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v13.ts +0 -12
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v14.schema.js +0 -2
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v14.ts +0 -12
- package/dist/node-definitions/nodes/n8n-nodes-base/gmailTrigger/v1.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/gmailTrigger/v1.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/gmailTrigger/v11.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/gmailTrigger/v11.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/gmailTrigger/v12.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/gmailTrigger/v12.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/gmailTrigger/v13.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/gmailTrigger/v13.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftOutlook/v2/resource_event/operation_create.ts +2 -2
- package/dist/nodes/Code/descriptions/JavascriptCodeDescription.js +1 -1
- package/dist/nodes/Code/descriptions/JavascriptCodeDescription.js.map +1 -1
- package/dist/nodes/Crypto/v1/CryptoV1.node.d.ts.map +1 -1
- package/dist/nodes/Crypto/v1/CryptoV1.node.js +0 -1
- package/dist/nodes/Crypto/v1/CryptoV1.node.js.map +1 -1
- package/dist/nodes/Crypto/v2/CryptoV2.node.d.ts.map +1 -1
- package/dist/nodes/Crypto/v2/CryptoV2.node.js +0 -1
- package/dist/nodes/Crypto/v2/CryptoV2.node.js.map +1 -1
- package/dist/nodes/DateTime/V1/DateTimeV1.node.js +1 -1
- package/dist/nodes/DateTime/V1/DateTimeV1.node.js.map +1 -1
- package/dist/nodes/DateTime/V2/DateTimeV2.node.js +1 -1
- package/dist/nodes/DateTime/V2/DateTimeV2.node.js.map +1 -1
- package/dist/nodes/EditImage/EditImage.node.d.ts +2 -3
- package/dist/nodes/EditImage/EditImage.node.d.ts.map +1 -1
- package/dist/nodes/EditImage/EditImage.node.js +4 -349
- package/dist/nodes/EditImage/EditImage.node.js.map +1 -1
- package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js +1 -1
- package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js.map +1 -1
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.d.ts.map +1 -1
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js +0 -1
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js.map +1 -1
- package/dist/nodes/Evaluation/Evaluation/Evaluation.node.ee.js +1 -1
- package/dist/nodes/Evaluation/Evaluation/Evaluation.node.ee.js.map +1 -1
- package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js +1 -1
- package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js.map +1 -1
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.d.ts.map +1 -1
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.js +0 -56
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.js.map +1 -1
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/GenericFunctions.js +3 -33
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/GenericFunctions.js.map +1 -1
- package/dist/nodes/Filter/V1/FilterV1.node.js +1 -1
- package/dist/nodes/Filter/V1/FilterV1.node.js.map +1 -1
- package/dist/nodes/Filter/V2/FilterV2.node.js +1 -1
- package/dist/nodes/Filter/V2/FilterV2.node.js.map +1 -1
- package/dist/nodes/Form/v1/FormTriggerV1.node.d.ts +1 -1
- package/dist/nodes/Form/v2/FormTriggerV2.node.d.ts +1 -1
- package/dist/nodes/Google/Gmail/GmailTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Google/Gmail/GmailTrigger.node.js +43 -48
- package/dist/nodes/Google/Gmail/GmailTrigger.node.js.map +1 -1
- package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.js +1 -1
- package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.js.map +1 -1
- package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.js +1 -1
- package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.js.map +1 -1
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +1 -1
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
- package/dist/nodes/ICalendar/createEvent.operation.d.ts.map +1 -1
- package/dist/nodes/ICalendar/createEvent.operation.js +31 -177
- package/dist/nodes/ICalendar/createEvent.operation.js.map +1 -1
- package/dist/nodes/If/V1/IfV1.node.js +1 -1
- package/dist/nodes/If/V1/IfV1.node.js.map +1 -1
- package/dist/nodes/If/V2/IfV2.node.js +1 -1
- package/dist/nodes/If/V2/IfV2.node.js.map +1 -1
- package/dist/nodes/Merge/v1/MergeV1.node.js +1 -1
- package/dist/nodes/Merge/v1/MergeV1.node.js.map +1 -1
- package/dist/nodes/Notion/shared/GenericFunctions.d.ts +3 -3
- package/dist/nodes/Notion/shared/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Set/v1/SetV1.node.js +1 -1
- package/dist/nodes/Set/v1/SetV1.node.js.map +1 -1
- package/dist/nodes/Simulate/Simulate.node.js +1 -1
- package/dist/nodes/Simulate/Simulate.node.js.map +1 -1
- package/dist/nodes/Simulate/SimulateTrigger.node.js +1 -1
- package/dist/nodes/Simulate/SimulateTrigger.node.js.map +1 -1
- package/dist/nodes/Slack/SlackTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Slack/SlackTrigger.node.js +8 -0
- package/dist/nodes/Slack/SlackTrigger.node.js.map +1 -1
- package/dist/nodes/Slack/SlackTriggerHelpers.d.ts.map +1 -1
- package/dist/nodes/Slack/SlackTriggerHelpers.js +6 -2
- package/dist/nodes/Slack/SlackTriggerHelpers.js.map +1 -1
- package/dist/nodes/Slack/V2/SlackHitlWebhook.d.ts +1 -1
- package/dist/nodes/SplitInBatches/v1/SplitInBatchesV1.node.js +1 -1
- package/dist/nodes/SplitInBatches/v1/SplitInBatchesV1.node.js.map +1 -1
- package/dist/nodes/SplitInBatches/v2/SplitInBatchesV2.node.js +1 -1
- package/dist/nodes/SplitInBatches/v2/SplitInBatchesV2.node.js.map +1 -1
- package/dist/nodes/SpreadsheetFile/v1/SpreadsheetFileV1.node.js +1 -1
- package/dist/nodes/SpreadsheetFile/v1/SpreadsheetFileV1.node.js.map +1 -1
- package/dist/nodes/SpreadsheetFile/v2/SpreadsheetFileV2.node.js +1 -1
- package/dist/nodes/SpreadsheetFile/v2/SpreadsheetFileV2.node.js.map +1 -1
- package/dist/nodes/StickyNote/StickyNote.node.js +1 -1
- package/dist/nodes/StickyNote/StickyNote.node.js.map +1 -1
- package/dist/nodes/Switch/V1/SwitchV1.node.js +1 -1
- package/dist/nodes/Switch/V1/SwitchV1.node.js.map +1 -1
- package/dist/nodes/Switch/V2/SwitchV2.node.js +1 -1
- package/dist/nodes/Switch/V2/SwitchV2.node.js.map +1 -1
- package/dist/nodes/Switch/V3/SwitchV3.node.js +1 -1
- package/dist/nodes/Switch/V3/SwitchV3.node.js.map +1 -1
- package/dist/types/credentials.json +3 -4
- package/dist/types/nodes.json +33 -51
- package/package.json +13 -32
- package/dist/credentials/OrbitApi.credentials.d.ts +0 -8
- package/dist/credentials/OrbitApi.credentials.d.ts.map +0 -1
- package/dist/credentials/OrbitApi.credentials.js +0 -25
- package/dist/credentials/OrbitApi.credentials.js.map +0 -1
- package/dist/nodes/AiTransform/AiTransform.node.d.ts +0 -6
- package/dist/nodes/AiTransform/AiTransform.node.d.ts.map +0 -1
- package/dist/nodes/AiTransform/AiTransform.node.js +0 -101
- package/dist/nodes/AiTransform/AiTransform.node.js.map +0 -1
- package/dist/nodes/AiTransform/AiTransform.node.json +0 -18
- package/dist/nodes/AiTransform/aitransform.svg +0 -10
- package/dist/nodes/Cron/Cron.node.d.ts +0 -6
- package/dist/nodes/Cron/Cron.node.d.ts.map +0 -1
- package/dist/nodes/Cron/Cron.node.js +0 -64
- package/dist/nodes/Cron/Cron.node.js.map +0 -1
- package/dist/nodes/Cron/Cron.node.json +0 -135
- package/dist/nodes/Function/Function.node.d.ts +0 -6
- package/dist/nodes/Function/Function.node.d.ts.map +0 -1
- package/dist/nodes/Function/Function.node.js +0 -184
- package/dist/nodes/Function/Function.node.js.map +0 -1
- package/dist/nodes/Function/Function.node.json +0 -129
- package/dist/nodes/FunctionItem/FunctionItem.node.d.ts +0 -6
- package/dist/nodes/FunctionItem/FunctionItem.node.d.ts.map +0 -1
- package/dist/nodes/FunctionItem/FunctionItem.node.js +0 -206
- package/dist/nodes/FunctionItem/FunctionItem.node.js.map +0 -1
- package/dist/nodes/FunctionItem/FunctionItem.node.json +0 -28
- package/dist/nodes/HtmlExtract/HtmlExtract.node.d.ts +0 -6
- package/dist/nodes/HtmlExtract/HtmlExtract.node.d.ts.map +0 -1
- package/dist/nodes/HtmlExtract/HtmlExtract.node.js +0 -300
- package/dist/nodes/HtmlExtract/HtmlExtract.node.js.map +0 -1
- package/dist/nodes/HtmlExtract/HtmlExtract.node.json +0 -38
- package/dist/nodes/ICalendar/ICalendar.node.d.ts +0 -6
- package/dist/nodes/ICalendar/ICalendar.node.d.ts.map +0 -1
- package/dist/nodes/ICalendar/ICalendar.node.js +0 -84
- package/dist/nodes/ICalendar/ICalendar.node.js.map +0 -1
- package/dist/nodes/ICalendar/ICalendar.node.json +0 -17
- package/dist/nodes/Interval/Interval.node.d.ts +0 -6
- package/dist/nodes/Interval/Interval.node.d.ts.map +0 -1
- package/dist/nodes/Interval/Interval.node.js +0 -97
- package/dist/nodes/Interval/Interval.node.js.map +0 -1
- package/dist/nodes/Interval/Interval.node.json +0 -29
- package/dist/nodes/ItemLists/ItemLists.node.d.ts +0 -5
- package/dist/nodes/ItemLists/ItemLists.node.d.ts.map +0 -1
- package/dist/nodes/ItemLists/ItemLists.node.js +0 -32
- package/dist/nodes/ItemLists/ItemLists.node.js.map +0 -1
- package/dist/nodes/ItemLists/ItemLists.node.json +0 -48
- package/dist/nodes/ItemLists/V1/ItemListsV1.node.d.ts +0 -7
- package/dist/nodes/ItemLists/V1/ItemListsV1.node.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V1/ItemListsV1.node.js +0 -1254
- package/dist/nodes/ItemLists/V1/ItemListsV1.node.js.map +0 -1
- package/dist/nodes/ItemLists/V1/summarize.operation.d.ts +0 -4
- package/dist/nodes/ItemLists/V1/summarize.operation.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V1/summarize.operation.js +0 -468
- package/dist/nodes/ItemLists/V1/summarize.operation.js.map +0 -1
- package/dist/nodes/ItemLists/V2/ItemListsV2.node.d.ts +0 -7
- package/dist/nodes/ItemLists/V2/ItemListsV2.node.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V2/ItemListsV2.node.js +0 -1287
- package/dist/nodes/ItemLists/V2/ItemListsV2.node.js.map +0 -1
- package/dist/nodes/ItemLists/V2/summarize.operation.d.ts +0 -4
- package/dist/nodes/ItemLists/V2/summarize.operation.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V2/summarize.operation.js +0 -502
- package/dist/nodes/ItemLists/V2/summarize.operation.js.map +0 -1
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.d.ts +0 -7
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.js +0 -19
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.d.ts +0 -3
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.js +0 -11
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.d.ts +0 -31
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js +0 -351
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/index.d.ts +0 -10
- package/dist/nodes/ItemLists/V3/actions/itemList/index.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/index.js +0 -107
- package/dist/nodes/ItemLists/V3/actions/itemList/index.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.d.ts +0 -31
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js +0 -57
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.d.ts +0 -31
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js +0 -207
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.d.ts +0 -31
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js +0 -240
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.d.ts +0 -31
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js +0 -207
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.d.ts +0 -32
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js +0 -502
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/node.type.d.ts +0 -7
- package/dist/nodes/ItemLists/V3/actions/node.type.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/node.type.js +0 -3
- package/dist/nodes/ItemLists/V3/actions/node.type.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/router.d.ts +0 -3
- package/dist/nodes/ItemLists/V3/actions/router.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/router.js +0 -57
- package/dist/nodes/ItemLists/V3/actions/router.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/versionDescription.d.ts +0 -3
- package/dist/nodes/ItemLists/V3/actions/versionDescription.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/versionDescription.js +0 -70
- package/dist/nodes/ItemLists/V3/actions/versionDescription.js.map +0 -1
- package/dist/nodes/ItemLists/V3/helpers/utils.d.ts +0 -6
- package/dist/nodes/ItemLists/V3/helpers/utils.d.ts.map +0 -1
- package/dist/nodes/ItemLists/V3/helpers/utils.js +0 -100
- package/dist/nodes/ItemLists/V3/helpers/utils.js.map +0 -1
- package/dist/nodes/ItemLists/__schema__/v3.0.0/itemList/limit.json +0 -9
- package/dist/nodes/ItemLists/__schema__/v3.1.0/itemList/limit.json +0 -8
- package/dist/nodes/ItemLists/__schema__/v3.1.0/itemList/removeDuplicates.json +0 -77
- package/dist/nodes/ItemLists/__schema__/v3.1.0/itemList/sort.json +0 -45
- package/dist/nodes/ItemLists/__schema__/v3.1.0/itemList/summarize.json +0 -15
- package/dist/nodes/ItemLists/itemLists.svg +0 -1
- package/dist/nodes/MoveBinaryData/MoveBinaryData.node.d.ts +0 -6
- package/dist/nodes/MoveBinaryData/MoveBinaryData.node.d.ts.map +0 -1
- package/dist/nodes/MoveBinaryData/MoveBinaryData.node.js +0 -443
- package/dist/nodes/MoveBinaryData/MoveBinaryData.node.js.map +0 -1
- package/dist/nodes/MoveBinaryData/MoveBinaryData.node.json +0 -17
- package/dist/nodes/OpenAi/ChatDescription.d.ts +0 -4
- package/dist/nodes/OpenAi/ChatDescription.d.ts.map +0 -1
- package/dist/nodes/OpenAi/ChatDescription.js +0 -396
- package/dist/nodes/OpenAi/ChatDescription.js.map +0 -1
- package/dist/nodes/OpenAi/GenericFunctions.d.ts +0 -3
- package/dist/nodes/OpenAi/GenericFunctions.d.ts.map +0 -1
- package/dist/nodes/OpenAi/GenericFunctions.js +0 -11
- package/dist/nodes/OpenAi/GenericFunctions.js.map +0 -1
- package/dist/nodes/OpenAi/ImageDescription.d.ts +0 -4
- package/dist/nodes/OpenAi/ImageDescription.d.ts.map +0 -1
- package/dist/nodes/OpenAi/ImageDescription.js +0 -392
- package/dist/nodes/OpenAi/ImageDescription.js.map +0 -1
- package/dist/nodes/OpenAi/OpenAi.node.d.ts +0 -5
- package/dist/nodes/OpenAi/OpenAi.node.d.ts.map +0 -1
- package/dist/nodes/OpenAi/OpenAi.node.js +0 -79
- package/dist/nodes/OpenAi/OpenAi.node.js.map +0 -1
- package/dist/nodes/OpenAi/OpenAi.node.json +0 -19
- package/dist/nodes/OpenAi/TextDescription.d.ts +0 -4
- package/dist/nodes/OpenAi/TextDescription.d.ts.map +0 -1
- package/dist/nodes/OpenAi/TextDescription.js +0 -488
- package/dist/nodes/OpenAi/TextDescription.js.map +0 -1
- package/dist/nodes/OpenAi/__schema__/v1.0.0/chat/chat.json +0 -9
- package/dist/nodes/OpenAi/__schema__/v1.0.0/image/create.json +0 -9
- package/dist/nodes/OpenAi/__schema__/v1.1.0/chat/complete.json +0 -57
- package/dist/nodes/OpenAi/__schema__/v1.1.0/text/chat.json +0 -9
- package/dist/nodes/OpenAi/__schema__/v1.1.0/text/complete.json +0 -15
- package/dist/nodes/OpenAi/openAi.dark.svg +0 -3
- package/dist/nodes/OpenAi/openAi.svg +0 -1
- package/dist/nodes/Orbit/ActivityDescription.d.ts +0 -4
- package/dist/nodes/Orbit/ActivityDescription.d.ts.map +0 -1
- package/dist/nodes/Orbit/ActivityDescription.js +0 -213
- package/dist/nodes/Orbit/ActivityDescription.js.map +0 -1
- package/dist/nodes/Orbit/GenericFunctions.d.ts +0 -11
- package/dist/nodes/Orbit/GenericFunctions.d.ts.map +0 -1
- package/dist/nodes/Orbit/GenericFunctions.js +0 -84
- package/dist/nodes/Orbit/GenericFunctions.js.map +0 -1
- package/dist/nodes/Orbit/Interfaces.d.ts +0 -20
- package/dist/nodes/Orbit/Interfaces.d.ts.map +0 -1
- package/dist/nodes/Orbit/Interfaces.js +0 -3
- package/dist/nodes/Orbit/Interfaces.js.map +0 -1
- package/dist/nodes/Orbit/MemberDescription.d.ts +0 -4
- package/dist/nodes/Orbit/MemberDescription.d.ts.map +0 -1
- package/dist/nodes/Orbit/MemberDescription.js +0 -747
- package/dist/nodes/Orbit/MemberDescription.js.map +0 -1
- package/dist/nodes/Orbit/NoteDescription.d.ts +0 -4
- package/dist/nodes/Orbit/NoteDescription.d.ts.map +0 -1
- package/dist/nodes/Orbit/NoteDescription.js +0 -221
- package/dist/nodes/Orbit/NoteDescription.js.map +0 -1
- package/dist/nodes/Orbit/Orbit.node.d.ts +0 -12
- package/dist/nodes/Orbit/Orbit.node.d.ts.map +0 -1
- package/dist/nodes/Orbit/Orbit.node.js +0 -94
- package/dist/nodes/Orbit/Orbit.node.js.map +0 -1
- package/dist/nodes/Orbit/Orbit.node.json +0 -25
- package/dist/nodes/Orbit/PostDescription.d.ts +0 -4
- package/dist/nodes/Orbit/PostDescription.d.ts.map +0 -1
- package/dist/nodes/Orbit/PostDescription.js +0 -227
- package/dist/nodes/Orbit/PostDescription.js.map +0 -1
- package/dist/nodes/Orbit/orbit.dark.svg +0 -7
- package/dist/nodes/Orbit/orbit.svg +0 -7
- package/dist/nodes/ReadBinaryFile/ReadBinaryFile.node.d.ts +0 -6
- package/dist/nodes/ReadBinaryFile/ReadBinaryFile.node.d.ts.map +0 -1
- package/dist/nodes/ReadBinaryFile/ReadBinaryFile.node.js +0 -86
- package/dist/nodes/ReadBinaryFile/ReadBinaryFile.node.js.map +0 -1
- package/dist/nodes/ReadBinaryFile/ReadBinaryFile.node.json +0 -34
- package/dist/nodes/ReadBinaryFiles/ReadBinaryFiles.node.d.ts +0 -6
- package/dist/nodes/ReadBinaryFiles/ReadBinaryFiles.node.d.ts.map +0 -1
- package/dist/nodes/ReadBinaryFiles/ReadBinaryFiles.node.js +0 -62
- package/dist/nodes/ReadBinaryFiles/ReadBinaryFiles.node.js.map +0 -1
- package/dist/nodes/ReadBinaryFiles/ReadBinaryFiles.node.json +0 -17
- package/dist/nodes/ReadPdf/ReadPDF.node.d.ts +0 -6
- package/dist/nodes/ReadPdf/ReadPDF.node.d.ts.map +0 -1
- package/dist/nodes/ReadPdf/ReadPDF.node.js +0 -89
- package/dist/nodes/ReadPdf/ReadPDF.node.js.map +0 -1
- package/dist/nodes/ReadPdf/ReadPDF.node.json +0 -16
- package/dist/nodes/WorkflowTrigger/WorkflowTrigger.node.d.ts +0 -6
- package/dist/nodes/WorkflowTrigger/WorkflowTrigger.node.d.ts.map +0 -1
- package/dist/nodes/WorkflowTrigger/WorkflowTrigger.node.js +0 -91
- package/dist/nodes/WorkflowTrigger/WorkflowTrigger.node.js.map +0 -1
- package/dist/nodes/WorkflowTrigger/WorkflowTrigger.node.json +0 -16
- package/dist/nodes/WriteBinaryFile/WriteBinaryFile.node.d.ts +0 -6
- package/dist/nodes/WriteBinaryFile/WriteBinaryFile.node.d.ts.map +0 -1
- package/dist/nodes/WriteBinaryFile/WriteBinaryFile.node.js +0 -118
- package/dist/nodes/WriteBinaryFile/WriteBinaryFile.node.js.map +0 -1
- package/dist/nodes/WriteBinaryFile/WriteBinaryFile.node.json +0 -24
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Function = void 0;
|
|
4
|
-
const vm2_1 = require("vm2");
|
|
5
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
-
const JavaScriptSandbox_1 = require("../Code/JavaScriptSandbox");
|
|
7
|
-
class Function {
|
|
8
|
-
description = {
|
|
9
|
-
displayName: 'Function',
|
|
10
|
-
name: 'function',
|
|
11
|
-
hidden: true,
|
|
12
|
-
deprecated: true,
|
|
13
|
-
replacedByNodeType: 'n8n-nodes-base.code',
|
|
14
|
-
icon: 'fa:code',
|
|
15
|
-
group: ['transform'],
|
|
16
|
-
version: 1,
|
|
17
|
-
description: 'Run custom function code which gets executed once and allows you to add, remove, change and replace items',
|
|
18
|
-
defaults: {
|
|
19
|
-
name: 'Function',
|
|
20
|
-
color: '#FF9922',
|
|
21
|
-
},
|
|
22
|
-
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
23
|
-
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
24
|
-
properties: [
|
|
25
|
-
{
|
|
26
|
-
displayName: 'JavaScript Code',
|
|
27
|
-
name: 'functionCode',
|
|
28
|
-
typeOptions: {
|
|
29
|
-
alwaysOpenEditWindow: true,
|
|
30
|
-
codeAutocomplete: 'function',
|
|
31
|
-
editor: 'jsEditor',
|
|
32
|
-
rows: 10,
|
|
33
|
-
},
|
|
34
|
-
type: 'string',
|
|
35
|
-
default: `// Code here will run only once, no matter how many input items there are.
|
|
36
|
-
// More info and help:https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.function/
|
|
37
|
-
// Tip: You can use luxon for dates and $jmespath for querying JSON structures
|
|
38
|
-
|
|
39
|
-
// Loop over inputs and add a new field called 'myNewField' to the JSON of each one
|
|
40
|
-
for (item of items) {
|
|
41
|
-
item.json.myNewField = 1;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// You can write logs to the browser console
|
|
45
|
-
console.log('Done!');
|
|
46
|
-
|
|
47
|
-
return items;`,
|
|
48
|
-
description: 'The JavaScript code to execute',
|
|
49
|
-
noDataExpression: true,
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
};
|
|
53
|
-
async execute() {
|
|
54
|
-
// const item = this.getInputData();
|
|
55
|
-
let items = this.getInputData();
|
|
56
|
-
// Copy the items as they may get changed in the functions
|
|
57
|
-
items = (0, n8n_workflow_1.deepCopy)(items);
|
|
58
|
-
// Assign item indexes
|
|
59
|
-
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
|
60
|
-
items[itemIndex].index = itemIndex;
|
|
61
|
-
}
|
|
62
|
-
const cleanupData = (inputData) => {
|
|
63
|
-
Object.keys(inputData).map((key) => {
|
|
64
|
-
if (inputData[key] !== null && typeof inputData[key] === 'object') {
|
|
65
|
-
if (inputData[key].constructor.name === 'Object') {
|
|
66
|
-
// Is regular node.js object so check its data
|
|
67
|
-
inputData[key] = cleanupData(inputData[key]);
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
// Is some special object like a Date so stringify
|
|
71
|
-
inputData[key] = (0, n8n_workflow_1.deepCopy)(inputData[key]);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
return inputData;
|
|
76
|
-
};
|
|
77
|
-
// Define the global objects for the custom function
|
|
78
|
-
const sandbox = {
|
|
79
|
-
getNodeParameter: this.getNodeParameter.bind(this),
|
|
80
|
-
getWorkflowStaticData: this.getWorkflowStaticData.bind(this),
|
|
81
|
-
helpers: this.helpers,
|
|
82
|
-
items,
|
|
83
|
-
// To be able to access data of other items
|
|
84
|
-
$item: (index) => this.getWorkflowDataProxy(index),
|
|
85
|
-
getBinaryDataAsync: async (item) => {
|
|
86
|
-
// Fetch Binary Data, if available. Cannot check item with `if (item?.index)`, as index may be 0.
|
|
87
|
-
if (item?.binary && item?.index !== undefined && item?.index !== null) {
|
|
88
|
-
for (const binaryPropertyName of Object.keys(item.binary)) {
|
|
89
|
-
item.binary[binaryPropertyName].data = (await this.helpers.getBinaryDataBuffer(item.index, binaryPropertyName))?.toString('base64');
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
// Return Data
|
|
93
|
-
return item.binary;
|
|
94
|
-
},
|
|
95
|
-
setBinaryDataAsync: async (item, data) => {
|
|
96
|
-
// Ensure item is provided, else return a friendly error.
|
|
97
|
-
if (!item) {
|
|
98
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No item was provided to setBinaryDataAsync (item: INodeExecutionData, data: IBinaryKeyData).');
|
|
99
|
-
}
|
|
100
|
-
// Ensure data is provided, else return a friendly error.
|
|
101
|
-
if (!data) {
|
|
102
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No data was provided to setBinaryDataAsync (item: INodeExecutionData, data: IBinaryKeyData).');
|
|
103
|
-
}
|
|
104
|
-
// Set Binary Data
|
|
105
|
-
for (const binaryPropertyName of Object.keys(data)) {
|
|
106
|
-
const binaryItem = data[binaryPropertyName];
|
|
107
|
-
data[binaryPropertyName] = await this.helpers.setBinaryDataBuffer(binaryItem, Buffer.from(binaryItem.data, 'base64'));
|
|
108
|
-
}
|
|
109
|
-
// Set Item Reference
|
|
110
|
-
item.binary = data;
|
|
111
|
-
},
|
|
112
|
-
};
|
|
113
|
-
// Make it possible to access data via $node, $parameter, ...
|
|
114
|
-
// By default use data from first item
|
|
115
|
-
Object.assign(sandbox, sandbox.$item(0));
|
|
116
|
-
const mode = this.getMode();
|
|
117
|
-
// Keep vm2 'inherit' (raw stdout) when the run is not redacted so output
|
|
118
|
-
// is byte-identical; redirect only when the resolved policy redacts it.
|
|
119
|
-
const redactConsole = mode !== 'manual' && this.isConsoleOutputRedacted();
|
|
120
|
-
const options = {
|
|
121
|
-
console: mode === 'manual' || redactConsole ? 'redirect' : 'inherit',
|
|
122
|
-
sandbox,
|
|
123
|
-
require: JavaScriptSandbox_1.vmResolver,
|
|
124
|
-
};
|
|
125
|
-
const vm = new vm2_1.NodeVM(options);
|
|
126
|
-
if (mode === 'manual') {
|
|
127
|
-
vm.on('console.log', this.sendMessageToUI.bind(this));
|
|
128
|
-
}
|
|
129
|
-
else if (redactConsole) {
|
|
130
|
-
vm.on('console.log', () => console.log(n8n_workflow_1.CONSOLE_OUTPUT_REDACTED_MESSAGE));
|
|
131
|
-
}
|
|
132
|
-
// Get the code to execute
|
|
133
|
-
const functionCode = this.getNodeParameter('functionCode', 0);
|
|
134
|
-
try {
|
|
135
|
-
// Execute the function code
|
|
136
|
-
items = await vm.run(`module.exports = async function() {${functionCode}\n}()`, __dirname);
|
|
137
|
-
items = this.helpers.normalizeItems(items);
|
|
138
|
-
// Do very basic validation of the data
|
|
139
|
-
if (items === undefined) {
|
|
140
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No data got returned. Always return an Array of items!');
|
|
141
|
-
}
|
|
142
|
-
if (!Array.isArray(items)) {
|
|
143
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Always an Array of items has to be returned!');
|
|
144
|
-
}
|
|
145
|
-
for (const item of items) {
|
|
146
|
-
if (item.json === undefined) {
|
|
147
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'All returned items have to contain a property named "json"!');
|
|
148
|
-
}
|
|
149
|
-
if (typeof item.json !== 'object') {
|
|
150
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'The json-property has to be an object!');
|
|
151
|
-
}
|
|
152
|
-
item.json = cleanupData(item.json);
|
|
153
|
-
if (item.binary !== undefined) {
|
|
154
|
-
if (Array.isArray(item.binary) || typeof item.binary !== 'object') {
|
|
155
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'The binary-property has to be an object!');
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
catch (error) {
|
|
161
|
-
if (this.continueOnFail()) {
|
|
162
|
-
items = [{ json: { error: error.message } }];
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
// Try to find the line number which contains the error and attach to error message
|
|
166
|
-
const stackLines = error.stack.split('\n');
|
|
167
|
-
if (stackLines.length > 0) {
|
|
168
|
-
stackLines.shift();
|
|
169
|
-
const lineParts = stackLines.find((line) => line.includes('Function')).split(':');
|
|
170
|
-
if (lineParts.length > 2) {
|
|
171
|
-
const lineNumber = lineParts.splice(-2, 1);
|
|
172
|
-
if (!isNaN(lineNumber)) {
|
|
173
|
-
error.message = `${error.message} [Line ${lineNumber}]`;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
throw error;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
return [items];
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
exports.Function = Function;
|
|
184
|
-
//# sourceMappingURL=Function.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Function.node.js","sourceRoot":"","sources":["../../../nodes/Function/Function.node.ts"],"names":[],"mappings":";;;AACA,6BAA6B;AAS7B,+CAKsB;AAEtB,iEAAuD;AAEvD;IACC,WAAW,GAAyB;QACnC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,kBAAkB,EAAE,qBAAqB;QACzC,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,CAAC,WAAW,CAAC;QACpB,OAAO,EAAE,CAAC;QACV,WAAW,EACV,2GAA2G;QAC5G,QAAQ,EAAE;YACT,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;SAChB;QACD,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;QAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;QACnC,UAAU,EAAE;YACX;gBACC,WAAW,EAAE,iBAA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1,129 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"node": "n8n-nodes-base.function",
|
|
3
|
-
"nodeVersion": "1.0",
|
|
4
|
-
"codexVersion": "1.0",
|
|
5
|
-
"details": "The Function node allows you to execute JavaScript in your workflow. Unlike the Function Item node, this node does not operate on incoming node data per-item. Instead, you must iterate over multiple items of incoming data yourself. This can be useful if you're performing data transformation where you want to manipulate the number of items being outputted by the node (i.e. 1 item is inputted in with nested object, 10 items are outputted without any nested objects)",
|
|
6
|
-
"categories": ["Development", "Core Nodes"],
|
|
7
|
-
"resources": {
|
|
8
|
-
"primaryDocumentation": [
|
|
9
|
-
{
|
|
10
|
-
"url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.code/"
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"generic": [
|
|
14
|
-
{
|
|
15
|
-
"label": "2021 Goals: Level Up Your Vocabulary With Vonage and n8n",
|
|
16
|
-
"icon": "π―",
|
|
17
|
-
"url": "https://n8n.io/blog/2021-goals-level-up-your-vocabulary-with-vonage-and-n8n/"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"label": "Learn to Automate Your Factory's Incident Reporting: A Step by Step Guide",
|
|
21
|
-
"icon": "π",
|
|
22
|
-
"url": "https://n8n.io/blog/learn-to-automate-your-factorys-incident-reporting-a-step-by-step-guide/"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"label": "2021: The Year to Automate the New You with n8n",
|
|
26
|
-
"icon": "βοΈ",
|
|
27
|
-
"url": "https://n8n.io/blog/2021-the-year-to-automate-the-new-you-with-n8n/"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"label": "Why business process automation with n8n can change your daily life",
|
|
31
|
-
"icon": "π§¬",
|
|
32
|
-
"url": "https://n8n.io/blog/why-business-process-automation-with-n8n-can-change-your-daily-life/"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"label": "Why I chose n8n over Zapier in 2020",
|
|
36
|
-
"icon": "π",
|
|
37
|
-
"url": "https://n8n.io/blog/why-i-chose-n8n-over-zapier-in-2020/"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"label": "How to host virtual coffee breaks with n8n",
|
|
41
|
-
"icon": "βοΈ",
|
|
42
|
-
"url": "https://n8n.io/blog/how-to-host-virtual-coffee-breaks-with-n8n/"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"label": "Automatically pulling and visualizing data with n8n",
|
|
46
|
-
"icon": "π",
|
|
47
|
-
"url": "https://n8n.io/blog/automatically-pulling-and-visualizing-data-with-n8n/"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"label": "Database Monitoring and Alerting with n8n",
|
|
51
|
-
"icon": "π‘",
|
|
52
|
-
"url": "https://n8n.io/blog/database-monitoring-and-alerting-with-n8n/"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"label": "Supercharging your conference registration process with n8n",
|
|
56
|
-
"icon": "π«",
|
|
57
|
-
"url": "https://n8n.io/blog/supercharging-your-conference-registration-process-with-n8n/"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"label": "Creating triggers for n8n workflows using polling",
|
|
61
|
-
"icon": "β²",
|
|
62
|
-
"url": "https://n8n.io/blog/creating-triggers-for-n8n-workflows-using-polling/"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"label": "6 e-commerce workflows to power up your Shopify s",
|
|
66
|
-
"icon": "store",
|
|
67
|
-
"url": "https://n8n.io/blog/no-code-ecommerce-workflow-automations/"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"label": "How to build a low-code, self-hosted URL shortener in 3 steps",
|
|
71
|
-
"icon": "π",
|
|
72
|
-
"url": "https://n8n.io/blog/how-to-build-a-low-code-self-hosted-url-shortener/"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"label": "Build your own virtual assistant with n8n: A step by step guide",
|
|
76
|
-
"icon": "π¦",
|
|
77
|
-
"url": "https://n8n.io/blog/build-your-own-virtual-assistant-with-n8n-a-step-by-step-guide/"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"label": "How uProc scraped a multi-page website with a low-code workflow",
|
|
81
|
-
"icon": " πΈοΈ",
|
|
82
|
-
"url": "https://n8n.io/case-studies/uproc/"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"label": "How to automatically give kudos to contributors with GitHub, Slack, and n8n",
|
|
86
|
-
"icon": "π",
|
|
87
|
-
"url": "https://n8n.io/blog/how-to-automatically-give-kudos-to-contributors-with-github-slack-and-n8n/"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"label": "5 workflow automations for Mattermost that we love at n8n",
|
|
91
|
-
"icon": "π€",
|
|
92
|
-
"url": "https://n8n.io/blog/5-workflow-automations-for-mattermost-that-we-love-at-n8n/"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"label": "Tracking Time Spent in Meetings With Google Calendar, Twilio, and n8n",
|
|
96
|
-
"icon": "π",
|
|
97
|
-
"url": "https://n8n.io/blog/tracking-time-spent-in-meetings-with-google-calendar-twilio-and-n8n/"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"label": "Creating Error Workflows in n8n",
|
|
101
|
-
"icon": "πͺ",
|
|
102
|
-
"url": "https://n8n.io/blog/creating-error-workflows-in-n8n/"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"label": "Sending Automated Congratulations with Google Sheets, Twilio, and n8n ",
|
|
106
|
-
"icon": "π",
|
|
107
|
-
"url": "https://n8n.io/blog/sending-automated-congratulations-with-google-sheets-twilio-and-n8n/"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"label": "How a Membership Development Manager automates his work and investments",
|
|
111
|
-
"icon": "π",
|
|
112
|
-
"url": "https://n8n.io/blog/how-a-membership-development-manager-automates-his-work-and-investments/"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"label": "How Goomer automated their operations with over 200 n8n workflows",
|
|
116
|
-
"icon": "π΅",
|
|
117
|
-
"url": "https://n8n.io/blog/how-goomer-automated-their-operations-with-over-200-n8n-workflows/"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"label": "7 no-code workflow automations for Amazon Web Services",
|
|
121
|
-
"url": "https://n8n.io/blog/aws-workflow-automation/"
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
"alias": ["Code", "Javascript", "Custom Code", "Script", "cpde"],
|
|
126
|
-
"subcategories": {
|
|
127
|
-
"Core Nodes": ["Data Transformation"]
|
|
128
|
-
}
|
|
129
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
-
export declare class FunctionItem implements INodeType {
|
|
3
|
-
description: INodeTypeDescription;
|
|
4
|
-
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=FunctionItem.node.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionItem.node.d.ts","sourceRoot":"","sources":["../../../nodes/FunctionItem/FunctionItem.node.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,iBAAiB,EAGjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,MAAM,cAAc,CAAC;AAUtB,qBAAa,YAAa,YAAW,SAAS;IAC7C,WAAW,EAAE,oBAAoB,CA0C/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CA0LtE;CACD"}
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FunctionItem = void 0;
|
|
4
|
-
const vm2_1 = require("vm2");
|
|
5
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
-
const JavaScriptSandbox_1 = require("../Code/JavaScriptSandbox");
|
|
7
|
-
class FunctionItem {
|
|
8
|
-
description = {
|
|
9
|
-
displayName: 'Function Item',
|
|
10
|
-
name: 'functionItem',
|
|
11
|
-
hidden: true,
|
|
12
|
-
deprecated: true,
|
|
13
|
-
replacedByNodeType: 'n8n-nodes-base.code',
|
|
14
|
-
icon: 'fa:code',
|
|
15
|
-
group: ['transform'],
|
|
16
|
-
version: 1,
|
|
17
|
-
description: 'Run custom function code which gets executed once per item',
|
|
18
|
-
defaults: {
|
|
19
|
-
name: 'Function Item',
|
|
20
|
-
color: '#ddbb33',
|
|
21
|
-
},
|
|
22
|
-
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
23
|
-
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
24
|
-
properties: [
|
|
25
|
-
{
|
|
26
|
-
displayName: 'JavaScript Code',
|
|
27
|
-
name: 'functionCode',
|
|
28
|
-
typeOptions: {
|
|
29
|
-
alwaysOpenEditWindow: true,
|
|
30
|
-
codeAutocomplete: 'functionItem',
|
|
31
|
-
editor: 'jsEditor',
|
|
32
|
-
rows: 10,
|
|
33
|
-
},
|
|
34
|
-
type: 'string',
|
|
35
|
-
default: `// Code here will run once per input item.
|
|
36
|
-
// More info and help: https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.functionitem/
|
|
37
|
-
// Tip: You can use luxon for dates and $jmespath for querying JSON structures
|
|
38
|
-
|
|
39
|
-
// Add a new field called 'myNewField' to the JSON of the item
|
|
40
|
-
item.myNewField = 1;
|
|
41
|
-
|
|
42
|
-
// You can write logs to the browser console
|
|
43
|
-
console.log('Done!');
|
|
44
|
-
|
|
45
|
-
return item;`,
|
|
46
|
-
description: 'The JavaScript code to execute for each item',
|
|
47
|
-
noDataExpression: true,
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
};
|
|
51
|
-
async execute() {
|
|
52
|
-
const items = this.getInputData();
|
|
53
|
-
const returnData = [];
|
|
54
|
-
const length = items.length;
|
|
55
|
-
let item;
|
|
56
|
-
const cleanupData = (inputData) => {
|
|
57
|
-
Object.keys(inputData).map((key) => {
|
|
58
|
-
if (inputData[key] !== null && typeof inputData[key] === 'object') {
|
|
59
|
-
if (inputData[key].constructor.name === 'Object') {
|
|
60
|
-
// Is regular node.js object so check its data
|
|
61
|
-
inputData[key] = cleanupData(inputData[key]);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
// Is some special object like a Date so stringify
|
|
65
|
-
inputData[key] = (0, n8n_workflow_1.deepCopy)(inputData[key]);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
return inputData;
|
|
70
|
-
};
|
|
71
|
-
for (let itemIndex = 0; itemIndex < length; itemIndex++) {
|
|
72
|
-
const mode = this.getMode();
|
|
73
|
-
try {
|
|
74
|
-
item = items[itemIndex];
|
|
75
|
-
item.index = itemIndex;
|
|
76
|
-
// Copy the items as they may get changed in the functions
|
|
77
|
-
item = (0, n8n_workflow_1.deepCopy)(item);
|
|
78
|
-
// Define the global objects for the custom function
|
|
79
|
-
const sandbox = {
|
|
80
|
-
/** @deprecated for removal - replaced by getBinaryDataAsync() */
|
|
81
|
-
getBinaryData: () => {
|
|
82
|
-
if (mode === 'manual') {
|
|
83
|
-
this.sendMessageToUI('getBinaryData(...) is deprecated and will be removed in a future version. Please consider switching to getBinaryDataAsync(...) instead.');
|
|
84
|
-
}
|
|
85
|
-
return item.binary;
|
|
86
|
-
},
|
|
87
|
-
/** @deprecated for removal - replaced by setBinaryDataAsync() */
|
|
88
|
-
setBinaryData: async (data) => {
|
|
89
|
-
if (mode === 'manual') {
|
|
90
|
-
this.sendMessageToUI('setBinaryData(...) is deprecated and will be removed in a future version. Please consider switching to setBinaryDataAsync(...) instead.');
|
|
91
|
-
}
|
|
92
|
-
item.binary = data;
|
|
93
|
-
},
|
|
94
|
-
getNodeParameter: this.getNodeParameter.bind(this),
|
|
95
|
-
getWorkflowStaticData: this.getWorkflowStaticData.bind(this),
|
|
96
|
-
helpers: this.helpers,
|
|
97
|
-
item: item.json,
|
|
98
|
-
getBinaryDataAsync: async () => {
|
|
99
|
-
// Fetch Binary Data, if available. Cannot check item with `if (item?.index)`, as index may be 0.
|
|
100
|
-
if (item?.binary && item?.index !== undefined && item?.index !== null) {
|
|
101
|
-
for (const binaryPropertyName of Object.keys(item.binary)) {
|
|
102
|
-
item.binary[binaryPropertyName].data = (await this.helpers.getBinaryDataBuffer(item.index, binaryPropertyName))?.toString('base64');
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
// Return Data
|
|
106
|
-
return item.binary;
|
|
107
|
-
},
|
|
108
|
-
setBinaryDataAsync: async (data) => {
|
|
109
|
-
// Ensure data is present
|
|
110
|
-
if (!data) {
|
|
111
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No data was provided to setBinaryDataAsync (data: IBinaryKeyData).');
|
|
112
|
-
}
|
|
113
|
-
// Set Binary Data
|
|
114
|
-
for (const binaryPropertyName of Object.keys(data)) {
|
|
115
|
-
const binaryItem = data[binaryPropertyName];
|
|
116
|
-
data[binaryPropertyName] = await this.helpers.setBinaryDataBuffer(binaryItem, Buffer.from(binaryItem.data, 'base64'));
|
|
117
|
-
}
|
|
118
|
-
// Set Item Reference
|
|
119
|
-
item.binary = data;
|
|
120
|
-
},
|
|
121
|
-
};
|
|
122
|
-
// Make it possible to access data via $node, $parameter, ...
|
|
123
|
-
const dataProxy = this.getWorkflowDataProxy(itemIndex);
|
|
124
|
-
Object.assign(sandbox, dataProxy);
|
|
125
|
-
// Keep vm2 'inherit' (raw stdout) when the run is not redacted so output
|
|
126
|
-
// is byte-identical; redirect only when the resolved policy redacts it.
|
|
127
|
-
const redactConsole = mode !== 'manual' && this.isConsoleOutputRedacted();
|
|
128
|
-
const options = {
|
|
129
|
-
console: mode === 'manual' || redactConsole ? 'redirect' : 'inherit',
|
|
130
|
-
sandbox,
|
|
131
|
-
require: JavaScriptSandbox_1.vmResolver,
|
|
132
|
-
};
|
|
133
|
-
const vm = new vm2_1.NodeVM(options);
|
|
134
|
-
if (mode === 'manual') {
|
|
135
|
-
vm.on('console.log', this.sendMessageToUI.bind(this));
|
|
136
|
-
}
|
|
137
|
-
else if (redactConsole) {
|
|
138
|
-
vm.on('console.log', () => console.log(n8n_workflow_1.CONSOLE_OUTPUT_REDACTED_MESSAGE));
|
|
139
|
-
}
|
|
140
|
-
// Get the code to execute
|
|
141
|
-
const functionCode = this.getNodeParameter('functionCode', itemIndex);
|
|
142
|
-
let jsonData;
|
|
143
|
-
try {
|
|
144
|
-
// Execute the function code
|
|
145
|
-
jsonData = await vm.run(`module.exports = async function() {${functionCode}\n}()`, __dirname);
|
|
146
|
-
}
|
|
147
|
-
catch (error) {
|
|
148
|
-
if (this.continueOnFail()) {
|
|
149
|
-
returnData.push({ json: { error: error.message } });
|
|
150
|
-
continue;
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
// Try to find the line number which contains the error and attach to error message
|
|
154
|
-
const stackLines = error.stack.split('\n');
|
|
155
|
-
if (stackLines.length > 0) {
|
|
156
|
-
stackLines.shift();
|
|
157
|
-
const lineParts = stackLines
|
|
158
|
-
.find((line) => line.includes('FunctionItem'))
|
|
159
|
-
.split(':');
|
|
160
|
-
if (lineParts.length > 2) {
|
|
161
|
-
const lineNumber = lineParts.splice(-2, 1);
|
|
162
|
-
if (!isNaN(lineNumber)) {
|
|
163
|
-
error.message = `${error.message} [Line ${lineNumber} | Item Index: ${itemIndex}]`;
|
|
164
|
-
throw error;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
error.message = `${error.message} [Item Index: ${itemIndex}]`;
|
|
169
|
-
throw error;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
// Do very basic validation of the data
|
|
173
|
-
if (jsonData === undefined) {
|
|
174
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No data got returned. Always an object has to be returned!');
|
|
175
|
-
}
|
|
176
|
-
const returnItem = {
|
|
177
|
-
json: cleanupData(jsonData),
|
|
178
|
-
pairedItem: {
|
|
179
|
-
item: itemIndex,
|
|
180
|
-
},
|
|
181
|
-
};
|
|
182
|
-
if (item.binary) {
|
|
183
|
-
returnItem.binary = item.binary;
|
|
184
|
-
}
|
|
185
|
-
returnData.push(returnItem);
|
|
186
|
-
}
|
|
187
|
-
catch (error) {
|
|
188
|
-
if (this.continueOnFail()) {
|
|
189
|
-
returnData.push({
|
|
190
|
-
json: {
|
|
191
|
-
error: error.message,
|
|
192
|
-
},
|
|
193
|
-
pairedItem: {
|
|
194
|
-
item: itemIndex,
|
|
195
|
-
},
|
|
196
|
-
});
|
|
197
|
-
continue;
|
|
198
|
-
}
|
|
199
|
-
throw error;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
return [returnData];
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
exports.FunctionItem = FunctionItem;
|
|
206
|
-
//# sourceMappingURL=FunctionItem.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionItem.node.js","sourceRoot":"","sources":["../../../nodes/FunctionItem/FunctionItem.node.ts"],"names":[],"mappings":";;;AACA,6BAA6B;AAS7B,+CAKsB;AAEtB,iEAAuD;AAEvD;IACC,WAAW,GAAyB;QACnC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,kBAAkB,EAAE,qBAAqB;QACzC,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,CAAC,WAAW,CAAC;QACpB,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,4DAA4D;QACzE,QAAQ,EAAE;YACT,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,SAAS;SAChB;QACD,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,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3B,UAAU,CAAC,IAAI,CAAC;wBACf,IAAI,EAAE;4BACL,KAAK,EAAE,KAAK,CAAC,OAAO;yBACpB;wBACD,UAAU,EAAE;4BACX,IAAI,EAAE,SAAS;yBACf;qBACD,CAAC,CAAC;oBACH,SAAS;gBACV,CAAC;gBACD,MAAM,KAAK,CAAC;YACb,CAAC;QACF,CAAC;QACD,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"node": "n8n-nodes-base.functionItem",
|
|
3
|
-
"nodeVersion": "1.0",
|
|
4
|
-
"codexVersion": "1.0",
|
|
5
|
-
"categories": ["Development", "Core Nodes"],
|
|
6
|
-
"resources": {
|
|
7
|
-
"primaryDocumentation": [
|
|
8
|
-
{
|
|
9
|
-
"url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.code/"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"generic": [
|
|
13
|
-
{
|
|
14
|
-
"label": "How uProc scraped a multi-page website with a low-code workflow",
|
|
15
|
-
"icon": " πΈοΈ",
|
|
16
|
-
"url": "https://n8n.io/case-studies/uproc/"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"label": "7 no-code workflow automations for Amazon Web Services",
|
|
20
|
-
"url": "https://n8n.io/blog/aws-workflow-automation/"
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"alias": ["Javascript", "Code", "Custom Code", "JS"],
|
|
25
|
-
"subcategories": {
|
|
26
|
-
"Core Nodes": ["Data Transformation"]
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
-
export declare class HtmlExtract implements INodeType {
|
|
3
|
-
description: INodeTypeDescription;
|
|
4
|
-
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=HtmlExtract.node.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HtmlExtract.node.d.ts","sourceRoot":"","sources":["../../../nodes/HtmlExtract/HtmlExtract.node.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEX,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,MAAM,cAAc,CAAC;AAwCtB,qBAAa,WAAY,YAAW,SAAS;IAC5C,WAAW,EAAE,oBAAoB,CAkK/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CA2FtE;CACD"}
|