n8n-nodes-base 1.22.4 → 1.24.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/build.tsbuildinfo +1 -1
- package/dist/credentials/MongoDb.credentials.js +62 -0
- package/dist/credentials/MongoDb.credentials.js.map +1 -1
- package/dist/credentials/WordpressApi.credentials.js +8 -0
- package/dist/credentials/WordpressApi.credentials.js.map +1 -1
- package/dist/credentials/icons/AWS.svg +1 -1
- package/dist/credentials/icons/Auth0.svg +1 -3
- package/dist/credentials/icons/Azure.svg +1 -27
- package/dist/credentials/icons/Cisco.svg +1 -35
- package/dist/credentials/icons/CrowdStrike.svg +1 -1
- package/dist/credentials/icons/F5.svg +1 -11
- package/dist/credentials/icons/Fortinet.svg +1 -7
- package/dist/credentials/icons/Google.svg +1 -1
- package/dist/credentials/icons/IBM.svg +1 -54
- package/dist/credentials/icons/Imperva.svg +1 -51
- package/dist/credentials/icons/Kibana.svg +1 -9
- package/dist/credentials/icons/Mist.svg +1 -111
- package/dist/credentials/icons/Okta.svg +1 -7
- package/dist/credentials/icons/Qualys.svg +1 -9
- package/dist/credentials/icons/RecordedFuture.svg +1 -42
- package/dist/credentials/icons/Sekoia.svg +1 -44
- package/dist/credentials/icons/Shuffler.svg +1 -5
- package/dist/credentials/icons/Trellix.svg +1 -1
- package/dist/credentials/icons/VirusTotal.svg +1 -4
- package/dist/credentials/icons/Zscaler.svg +1 -9
- package/dist/credentials/icons/vmware.svg +1 -12
- package/dist/known/nodes.json +12 -0
- package/dist/nodes/ActionNetwork/actionNetwork.svg +1 -1
- package/dist/nodes/Adalo/adalo.svg +1 -14
- package/dist/nodes/Airtable/airtable.svg +1 -1
- package/dist/nodes/ApiTemplateIo/ApiTemplateIo.node.js +2 -2
- package/dist/nodes/ApiTemplateIo/ApiTemplateIo.node.js.map +1 -1
- package/dist/nodes/ApiTemplateIo/apiTemplateIo.svg +1 -1
- package/dist/nodes/Asana/asana.svg +1 -1
- package/dist/nodes/Autopilot/autopilot.svg +1 -1
- package/dist/nodes/Aws/CertificateManager/acm.svg +1 -1
- package/dist/nodes/Aws/Comprehend/comprehend.svg +1 -1
- package/dist/nodes/Aws/DynamoDB/dynamodb.svg +1 -13
- package/dist/nodes/Aws/ELB/elb.svg +1 -1
- package/dist/nodes/Aws/Rekognition/AwsRekognition.node.js +3 -3
- package/dist/nodes/Aws/Rekognition/AwsRekognition.node.js.map +1 -1
- package/dist/nodes/Aws/Rekognition/rekognition.svg +1 -1
- package/dist/nodes/Aws/S3/V1/FileDescription.js +5 -5
- package/dist/nodes/Aws/S3/V1/FileDescription.js.map +1 -1
- package/dist/nodes/Aws/S3/V2/FileDescription.js +5 -5
- package/dist/nodes/Aws/S3/V2/FileDescription.js.map +1 -1
- package/dist/nodes/Aws/S3/s3.svg +1 -1
- package/dist/nodes/Aws/SES/ses.svg +1 -1
- package/dist/nodes/Aws/SQS/sqs.svg +1 -1
- package/dist/nodes/Aws/Textract/textract.svg +1 -18
- package/dist/nodes/Aws/Transcribe/transcribe.svg +1 -1
- package/dist/nodes/Aws/lambda.svg +1 -1
- package/dist/nodes/Aws/sns.svg +1 -1
- package/dist/nodes/Baserow/baserow.svg +1 -143
- package/dist/nodes/Bitbucket/bitbucket.svg +1 -1
- package/dist/nodes/Bitly/bitly.svg +1 -1
- package/dist/nodes/Bitwarden/bitwarden.svg +1 -1
- package/dist/nodes/Box/FileDescription.js +5 -5
- package/dist/nodes/Box/FileDescription.js.map +1 -1
- package/dist/nodes/Brevo/brevo.svg +1 -4
- package/dist/nodes/Bubble/bubble.svg +1 -1
- package/dist/nodes/Cal/cal.svg +1 -9
- package/dist/nodes/Calendly/calendly.svg +1 -1
- package/dist/nodes/Cisco/Webex/descriptions/MessageDescription.js +1 -1
- package/dist/nodes/Citrix/ADC/citrix.svg +1 -50
- package/dist/nodes/Clearbit/clearbit.svg +1 -1
- package/dist/nodes/ClickUp/clickup.svg +1 -1
- package/dist/nodes/Clockify/clockify.svg +1 -1
- package/dist/nodes/Cloudflare/cloudflare.svg +1 -4
- package/dist/nodes/Coda/GenericFunctions.js +4 -1
- package/dist/nodes/Coda/GenericFunctions.js.map +1 -1
- package/dist/nodes/Coda/coda.svg +1 -11
- package/dist/nodes/Code/descriptions/JavascriptCodeDescription.js +0 -1
- package/dist/nodes/Code/descriptions/JavascriptCodeDescription.js.map +1 -1
- package/dist/nodes/Code/descriptions/PythonCodeDescription.js +0 -1
- package/dist/nodes/Code/descriptions/PythonCodeDescription.js.map +1 -1
- package/dist/nodes/CoinGecko/coinGecko.svg +1 -1
- package/dist/nodes/CompareDatasets/compare.svg +1 -5
- package/dist/nodes/Compression/Compression.node.js +148 -24
- package/dist/nodes/Compression/Compression.node.js.map +1 -1
- package/dist/nodes/Compression/Compression.node.json +13 -2
- package/dist/nodes/ConvertKit/convertKit.svg +1 -1
- package/dist/nodes/Copper/copper.svg +1 -1
- package/dist/nodes/Cortex/AnalyzerDescriptions.js +2 -2
- package/dist/nodes/Cortex/AnalyzerDescriptions.js.map +1 -1
- package/dist/nodes/Cortex/ResponderDescription.js +3 -3
- package/dist/nodes/Cortex/ResponderDescription.js.map +1 -1
- package/dist/nodes/Cortex/cortex.svg +1 -1
- package/dist/nodes/Cron/Cron.node.js +1 -1
- package/dist/nodes/Cron/Cron.node.js.map +1 -1
- package/dist/nodes/CrowdDev/crowdDev.svg +1 -15
- package/dist/nodes/Crypto/Crypto.node.js +1 -1
- package/dist/nodes/CustomerIo/customerio.svg +1 -1
- package/dist/nodes/DebugHelper/DebugHelper.svg +1 -28
- package/dist/nodes/DeepL/deepl.svg +1 -1
- package/dist/nodes/Demio/demio.svg +1 -1
- package/dist/nodes/Dhl/dhl.svg +1 -21
- package/dist/nodes/Discord/discord.svg +1 -6
- package/dist/nodes/Discord/v1/DiscordV1.node.js +5 -5
- package/dist/nodes/Discord/v1/DiscordV1.node.js.map +1 -1
- package/dist/nodes/Discord/v2/actions/common.description.js +2 -4
- package/dist/nodes/Discord/v2/actions/common.description.js.map +1 -1
- package/dist/nodes/Discord/v2/actions/message/send.operation.js +0 -1
- package/dist/nodes/Discord/v2/actions/message/send.operation.js.map +1 -1
- package/dist/nodes/Discord/v2/helpers/utils.js +4 -3
- package/dist/nodes/Discord/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/Discourse/discourse.svg +1 -1
- package/dist/nodes/Dropbox/Dropbox.node.js +5 -5
- package/dist/nodes/Dropbox/Dropbox.node.js.map +1 -1
- package/dist/nodes/Dropbox/dropbox.svg +1 -1
- package/dist/nodes/Dropcontact/dropcontact.svg +1 -3
- package/dist/nodes/ERPNext/erpnext.svg +1 -1
- package/dist/nodes/EditImage/EditImage.node.json +2 -1
- package/dist/nodes/Elastic/ElasticSecurity/elasticSecurity.svg +1 -11
- package/dist/nodes/Elastic/Elasticsearch/elasticsearch.svg +1 -14
- package/dist/nodes/Emelia/emelia.svg +1 -1
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow.node.js +1 -2
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow.node.js.map +1 -1
- package/dist/nodes/ExecuteWorkflow/GenericFunctions.d.ts +1 -1
- package/dist/nodes/ExecuteWorkflow/GenericFunctions.js +1 -2
- package/dist/nodes/ExecuteWorkflow/GenericFunctions.js.map +1 -1
- package/dist/nodes/Facebook/FacebookGraphApi.node.js +4 -3
- package/dist/nodes/Facebook/FacebookGraphApi.node.js.map +1 -1
- package/dist/nodes/Facebook/facebook.svg +1 -1
- package/dist/nodes/FacebookLeadAds/facebook.svg +1 -1
- package/dist/nodes/Figma/figma.svg +1 -1
- package/dist/nodes/Files/ConvertToFile/ConvertToFile.node.d.ts +5 -0
- package/dist/nodes/Files/ConvertToFile/ConvertToFile.node.js +136 -0
- package/dist/nodes/Files/ConvertToFile/ConvertToFile.node.js.map +1 -0
- package/dist/nodes/Files/ConvertToFile/ConvertToFile.node.json +35 -0
- package/dist/nodes/Files/ConvertToFile/actions/iCall.operation.d.ts +3 -0
- package/dist/nodes/Files/ConvertToFile/actions/iCall.operation.js +39 -0
- package/dist/nodes/Files/ConvertToFile/actions/iCall.operation.js.map +1 -0
- package/dist/nodes/Files/ConvertToFile/actions/spreadsheet.operation.d.ts +27 -0
- package/dist/nodes/Files/ConvertToFile/actions/spreadsheet.operation.js +105 -0
- package/dist/nodes/Files/ConvertToFile/actions/spreadsheet.operation.js.map +1 -0
- package/dist/nodes/Files/ConvertToFile/actions/toBinary.operation.d.ts +26 -0
- package/dist/nodes/Files/ConvertToFile/actions/toBinary.operation.js +136 -0
- package/dist/nodes/Files/ConvertToFile/actions/toBinary.operation.js.map +1 -0
- package/dist/nodes/Files/ConvertToFile/actions/toJson.operation.d.ts +26 -0
- package/dist/nodes/Files/ConvertToFile/actions/toJson.operation.js +154 -0
- package/dist/nodes/Files/ConvertToFile/actions/toJson.operation.js.map +1 -0
- package/dist/nodes/Files/ConvertToFile/convertToFile.svg +12 -0
- package/dist/nodes/Files/ExtractFromFile/ExtractFromFile.node.d.ts +5 -0
- package/dist/nodes/Files/ExtractFromFile/ExtractFromFile.node.js +149 -0
- package/dist/nodes/Files/ExtractFromFile/ExtractFromFile.node.js.map +1 -0
- package/dist/nodes/Files/ExtractFromFile/ExtractFromFile.node.json +39 -0
- package/dist/nodes/Files/ExtractFromFile/actions/moveTo.operation.d.ts +26 -0
- package/dist/nodes/Files/ExtractFromFile/actions/moveTo.operation.js +170 -0
- package/dist/nodes/Files/ExtractFromFile/actions/moveTo.operation.js.map +1 -0
- package/dist/nodes/Files/ExtractFromFile/actions/pdf.operation.d.ts +26 -0
- package/dist/nodes/Files/ExtractFromFile/actions/pdf.operation.js +127 -0
- package/dist/nodes/Files/ExtractFromFile/actions/pdf.operation.js.map +1 -0
- package/dist/nodes/Files/ExtractFromFile/actions/spreadsheet.operation.d.ts +4 -0
- package/dist/nodes/Files/ExtractFromFile/actions/spreadsheet.operation.js +73 -0
- package/dist/nodes/Files/ExtractFromFile/actions/spreadsheet.operation.js.map +1 -0
- package/dist/nodes/Files/ExtractFromFile/extractFromFile.svg +5 -0
- package/dist/nodes/Files/ReadWriteFile/ReadWriteFile.node.d.ts +5 -0
- package/dist/nodes/Files/ReadWriteFile/ReadWriteFile.node.js +90 -0
- package/dist/nodes/Files/ReadWriteFile/ReadWriteFile.node.js.map +1 -0
- package/dist/nodes/Files/ReadWriteFile/ReadWriteFile.node.json +17 -0
- package/dist/nodes/Files/ReadWriteFile/actions/read.operation.d.ts +26 -0
- package/dist/nodes/Files/ReadWriteFile/actions/read.operation.js +136 -0
- package/dist/nodes/Files/ReadWriteFile/actions/read.operation.js.map +1 -0
- package/dist/nodes/Files/ReadWriteFile/actions/write.operation.d.ts +26 -0
- package/dist/nodes/Files/ReadWriteFile/actions/write.operation.js +105 -0
- package/dist/nodes/Files/ReadWriteFile/actions/write.operation.js.map +1 -0
- package/dist/nodes/Files/ReadWriteFile/helpers/utils.d.ts +3 -0
- package/dist/nodes/Files/ReadWriteFile/helpers/utils.js +28 -0
- package/dist/nodes/Files/ReadWriteFile/helpers/utils.js.map +1 -0
- package/dist/nodes/Files/ReadWriteFile/readWriteFile.svg +13 -0
- package/dist/nodes/Files/ReadWriteFile/test/ReadWriteFile.workflow.json +72 -0
- package/dist/nodes/Files/test/convert_extract.workflow.json +707 -0
- package/dist/nodes/Form/form.svg +1 -5
- package/dist/nodes/FormIo/formio.svg +1 -1
- package/dist/nodes/Formstack/formstack.svg +1 -1
- package/dist/nodes/Freshservice/freshservice.svg +1 -16
- package/dist/nodes/FreshworksCrm/freshworksCrm.svg +1 -151
- package/dist/nodes/Ftp/Ftp.node.js +14 -7
- package/dist/nodes/Ftp/Ftp.node.js.map +1 -1
- package/dist/nodes/Ftp/Ftp.node.json +1 -1
- package/dist/nodes/Function/Function.node.js +1 -1
- package/dist/nodes/Function/Function.node.js.map +1 -1
- package/dist/nodes/FunctionItem/FunctionItem.node.js +1 -1
- package/dist/nodes/FunctionItem/FunctionItem.node.js.map +1 -1
- package/dist/nodes/Ghost/ghost.svg +1 -1
- package/dist/nodes/Git/git.svg +1 -1
- package/dist/nodes/Github/Github.node.js +8 -7
- package/dist/nodes/Github/Github.node.js.map +1 -1
- package/dist/nodes/Github/GithubTrigger.node.js +18 -1
- package/dist/nodes/Github/GithubTrigger.node.js.map +1 -1
- package/dist/nodes/Github/github.svg +1 -1
- package/dist/nodes/Gitlab/Gitlab.node.js +5 -5
- package/dist/nodes/Gitlab/Gitlab.node.js.map +1 -1
- package/dist/nodes/Gitlab/gitlab.svg +1 -1
- package/dist/nodes/GoToWebinar/gotowebinar.svg +1 -1
- package/dist/nodes/Google/Ads/googleAds.svg +1 -8
- package/dist/nodes/Google/Analytics/analytics.svg +1 -1
- package/dist/nodes/Google/BigQuery/googleBigQuery.svg +1 -1
- package/dist/nodes/Google/BigQuery/v2/actions/database/executeQuery.operation.js +0 -2
- package/dist/nodes/Google/BigQuery/v2/actions/database/executeQuery.operation.js.map +1 -1
- package/dist/nodes/Google/Books/googlebooks.svg +1 -1
- package/dist/nodes/Google/Calendar/googleCalendar.svg +1 -1
- package/dist/nodes/Google/Chat/descriptions/MediaDescription.js +2 -2
- package/dist/nodes/Google/Chat/descriptions/MediaDescription.js.map +1 -1
- package/dist/nodes/Google/Chat/googleChat.svg +1 -1
- package/dist/nodes/Google/CloudStorage/ObjectDescription.js +5 -3
- package/dist/nodes/Google/CloudStorage/ObjectDescription.js.map +1 -1
- package/dist/nodes/Google/CloudStorage/googleCloudStorage.svg +1 -1
- package/dist/nodes/Google/Docs/googleDocs.svg +1 -1
- package/dist/nodes/Google/Drive/googleDrive.svg +1 -1
- package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js +5 -5
- package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js.map +1 -1
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js +2 -2
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js.map +1 -1
- package/dist/nodes/Google/Firebase/RealtimeDatabase/googleFirebaseRealtimeDatabase.svg +1 -36
- package/dist/nodes/Google/Gmail/gmail.svg +1 -1
- package/dist/nodes/Google/Perspective/perspective.svg +1 -30
- package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js +5 -5
- package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Sheet/googleSheets.svg +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/router.js +6 -7
- package/dist/nodes/Google/Sheet/v2/actions/router.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.js +6 -0
- package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.d.ts +6 -3
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js +10 -8
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheets.types.d.ts +11 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheets.types.js +1 -0
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheets.types.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.d.ts +1 -0
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.js +7 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/methods/loadOptions.js +3 -5
- package/dist/nodes/Google/Sheet/v2/methods/loadOptions.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.js +3 -5
- package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.js.map +1 -1
- package/dist/nodes/Google/Slides/GoogleSlides.node.js +2 -2
- package/dist/nodes/Google/Slides/GoogleSlides.node.js.map +1 -1
- package/dist/nodes/Google/Slides/googleslides.svg +1 -1
- package/dist/nodes/Google/YouTube/ChannelDescription.js +2 -1
- package/dist/nodes/Google/YouTube/ChannelDescription.js.map +1 -1
- package/dist/nodes/Google/YouTube/VideoDescription.js +2 -1
- package/dist/nodes/Google/YouTube/VideoDescription.js.map +1 -1
- package/dist/nodes/Grafana/grafana.svg +1 -191
- package/dist/nodes/Grist/grist.svg +1 -1
- package/dist/nodes/HaloPSA/halopsa.svg +1 -1
- package/dist/nodes/HelpScout/helpScout.svg +1 -1
- package/dist/nodes/HighLevel/highLevel.svg +1 -1
- package/dist/nodes/HomeAssistant/CameraProxyDescription.js +2 -2
- package/dist/nodes/HomeAssistant/CameraProxyDescription.js.map +1 -1
- package/dist/nodes/HomeAssistant/homeAssistant.svg +1 -16
- package/dist/nodes/Html/Html.node.js +2 -2
- package/dist/nodes/Html/Html.node.js.map +1 -1
- package/dist/nodes/Html/html.svg +1 -1
- package/dist/nodes/HtmlExtract/HtmlExtract.node.js +2 -2
- package/dist/nodes/HtmlExtract/HtmlExtract.node.js.map +1 -1
- package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.js +7 -8
- package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.js.map +1 -1
- package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.js +7 -8
- package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.js.map +1 -1
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +73 -57
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
- package/dist/nodes/HttpRequest/httprequest.svg +1 -3
- package/dist/nodes/Hubspot/hubspot.svg +1 -1
- package/dist/nodes/HumanticAI/ProfileDescription.js +4 -4
- package/dist/nodes/HumanticAI/ProfileDescription.js.map +1 -1
- package/dist/nodes/ICalendar/ICalendar.node.js +5 -310
- package/dist/nodes/ICalendar/ICalendar.node.js.map +1 -1
- package/dist/nodes/ICalendar/ICalendar.node.json +1 -1
- package/dist/nodes/ICalendar/createEvent.operation.d.ts +3 -0
- package/dist/nodes/ICalendar/createEvent.operation.js +376 -0
- package/dist/nodes/ICalendar/createEvent.operation.js.map +1 -0
- package/dist/nodes/Interval/Interval.node.js +1 -1
- package/dist/nodes/Interval/Interval.node.js.map +1 -1
- package/dist/nodes/InvoiceNinja/InvoiceNinja.node.js +12 -2
- package/dist/nodes/InvoiceNinja/InvoiceNinja.node.js.map +1 -1
- package/dist/nodes/InvoiceNinja/QuoteInterface.d.ts +1 -0
- package/dist/nodes/InvoiceNinja/invoiceInterface.d.ts +1 -0
- package/dist/nodes/InvoiceNinja/invoiceNinja.svg +1 -1
- package/dist/nodes/ItemLists/V1/ItemListsV1.node.js +1 -1
- package/dist/nodes/ItemLists/V1/ItemListsV1.node.js.map +1 -1
- package/dist/nodes/ItemLists/V2/ItemListsV2.node.js +1 -1
- package/dist/nodes/ItemLists/V2/ItemListsV2.node.js.map +1 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js +1 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js.map +1 -1
- package/dist/nodes/ItemLists/itemLists.svg +1 -13
- package/dist/nodes/Jenkins/jenkins.svg +1 -72
- package/dist/nodes/Jira/IssueAttachmentDescription.js +6 -6
- package/dist/nodes/Jira/IssueAttachmentDescription.js.map +1 -1
- package/dist/nodes/Jira/jira.svg +1 -1
- package/dist/nodes/Kafka/kafka.svg +1 -1
- package/dist/nodes/Keap/FileDescription.js +3 -3
- package/dist/nodes/Keap/FileDescription.js.map +1 -1
- package/dist/nodes/Kitemaker/kitemaker.svg +1 -1
- package/dist/nodes/KoBoToolbox/FileDescription.js +1 -1
- package/dist/nodes/KoBoToolbox/koBoToolbox.svg +1 -1
- package/dist/nodes/Ldap/ldap.svg +1 -1
- package/dist/nodes/Lemlist/lemlist.svg +1 -1
- package/dist/nodes/Line/NotificationDescription.js +3 -3
- package/dist/nodes/Line/NotificationDescription.js.map +1 -1
- package/dist/nodes/Linear/linear.svg +1 -1
- package/dist/nodes/LinkedIn/PostDescription.js +4 -4
- package/dist/nodes/LinkedIn/PostDescription.js.map +1 -1
- package/dist/nodes/LinkedIn/linkedin.svg +1 -1
- package/dist/nodes/LoneScale/lonescale-logo.svg +1 -8
- package/dist/nodes/MQTT/mqtt.svg +1 -1
- package/dist/nodes/Magento/magento.svg +1 -6
- package/dist/nodes/Mailcheck/mailcheck.svg +1 -1
- package/dist/nodes/Mailchimp/mailchimp.svg +1 -1
- package/dist/nodes/Mailgun/mailgun.svg +1 -1
- package/dist/nodes/Mailjet/mailjet.svg +1 -1
- package/dist/nodes/Mandrill/mandrill.svg +1 -1
- package/dist/nodes/ManualTrigger/ManualTrigger.node.js +2 -2
- package/dist/nodes/ManualTrigger/ManualTrigger.node.js.map +1 -1
- package/dist/nodes/Markdown/markdown.svg +1 -6
- package/dist/nodes/Marketstack/marketstack.svg +1 -57
- package/dist/nodes/Matrix/MediaDescription.js +2 -1
- package/dist/nodes/Matrix/MediaDescription.js.map +1 -1
- package/dist/nodes/Mattermost/mattermost.svg +1 -1
- package/dist/nodes/Mattermost/v1/mattermost.svg +1 -1
- package/dist/nodes/Mautic/mautic.svg +1 -17
- package/dist/nodes/MessageBird/messagebird.svg +1 -1
- package/dist/nodes/Metabase/metabase.svg +1 -27
- package/dist/nodes/Microsoft/Dynamics/dynamicsCrm.svg +1 -1
- package/dist/nodes/Microsoft/Excel/excel.svg +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/versionDescription.js +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/versionDescription.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/methods/listSearch.js +11 -4
- package/dist/nodes/Microsoft/Excel/v2/methods/listSearch.js.map +1 -1
- package/dist/nodes/Microsoft/GraphSecurity/microsoftGraph.svg +1 -45
- package/dist/nodes/Microsoft/OneDrive/FileDescription.js +5 -5
- package/dist/nodes/Microsoft/OneDrive/FileDescription.js.map +1 -1
- package/dist/nodes/Microsoft/OneDrive/oneDrive.svg +1 -1
- package/dist/nodes/Microsoft/Outlook/outlook.svg +1 -1
- package/dist/nodes/Microsoft/Outlook/v1/MessageAttachmentDescription.js +2 -2
- package/dist/nodes/Microsoft/Outlook/v1/MessageAttachmentDescription.js.map +1 -1
- package/dist/nodes/Microsoft/Outlook/v1/MessageDescription.js +2 -2
- package/dist/nodes/Microsoft/Outlook/v1/MessageDescription.js.map +1 -1
- package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js +1 -1
- package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js.map +1 -1
- package/dist/nodes/Microsoft/Sql/mssql.svg +1 -1
- package/dist/nodes/Microsoft/Teams/teams.svg +1 -1
- package/dist/nodes/Microsoft/ToDo/todo.svg +1 -1
- package/dist/nodes/Mindee/Mindee.node.js +2 -2
- package/dist/nodes/Mindee/Mindee.node.js.map +1 -1
- package/dist/nodes/Mindee/mindee.svg +1 -1
- package/dist/nodes/Misp/misp.svg +1 -41
- package/dist/nodes/Mocean/mocean.svg +1 -24
- package/dist/nodes/MondayCom/mondayCom.svg +1 -1
- package/dist/nodes/MongoDb/GenericFunctions.d.ts +2 -0
- package/dist/nodes/MongoDb/GenericFunctions.js +27 -1
- package/dist/nodes/MongoDb/GenericFunctions.js.map +1 -1
- package/dist/nodes/MongoDb/MongoDb.node.js +4 -3
- package/dist/nodes/MongoDb/MongoDb.node.js.map +1 -1
- package/dist/nodes/MongoDb/mongodb.svg +1 -1
- package/dist/nodes/MoveBinaryData/MoveBinaryData.node.js +15 -13
- package/dist/nodes/MoveBinaryData/MoveBinaryData.node.js.map +1 -1
- package/dist/nodes/MoveBinaryData/MoveBinaryData.node.json +1 -1
- package/dist/nodes/MySql/MySql.node.js +1 -0
- package/dist/nodes/MySql/MySql.node.js.map +1 -1
- package/dist/nodes/MySql/mysql.svg +1 -1
- package/dist/nodes/MySql/v1/MySqlV1.node.js +0 -1
- package/dist/nodes/MySql/v1/MySqlV1.node.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/deleteTable.operation.js +3 -3
- package/dist/nodes/MySql/v2/actions/database/deleteTable.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/executeQuery.operation.js +0 -1
- package/dist/nodes/MySql/v2/actions/database/executeQuery.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/insert.operation.js +4 -4
- package/dist/nodes/MySql/v2/actions/database/insert.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/select.operation.js +3 -3
- package/dist/nodes/MySql/v2/actions/database/select.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/update.operation.js +3 -3
- package/dist/nodes/MySql/v2/actions/database/update.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/upsert.operation.js +3 -3
- package/dist/nodes/MySql/v2/actions/database/upsert.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/helpers/utils.d.ts +1 -0
- package/dist/nodes/MySql/v2/helpers/utils.js +18 -4
- package/dist/nodes/MySql/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/MySql/v2/methods/loadOptions.js +2 -1
- package/dist/nodes/MySql/v2/methods/loadOptions.js.map +1 -1
- package/dist/nodes/N8n/n8n.svg +1 -3
- package/dist/nodes/N8nTrainingCustomerDatastore/n8nTrainingCustomerDatastore.svg +1 -13
- package/dist/nodes/N8nTrainingCustomerMessenger/n8nTrainingCustomerMessenger.svg +1 -4
- package/dist/nodes/N8nTrigger/n8nTrigger.svg +1 -3
- package/dist/nodes/Nasa/Nasa.node.js +4 -4
- package/dist/nodes/Nasa/Nasa.node.js.map +1 -1
- package/dist/nodes/Netlify/netlify.svg +1 -16
- package/dist/nodes/NextCloud/GenericFunctions.d.ts +1 -1
- package/dist/nodes/NextCloud/GenericFunctions.js +8 -1
- package/dist/nodes/NextCloud/GenericFunctions.js.map +1 -1
- package/dist/nodes/NextCloud/NextCloud.node.js +5 -5
- package/dist/nodes/NextCloud/NextCloud.node.js.map +1 -1
- package/dist/nodes/NextCloud/nextcloud.svg +1 -1
- package/dist/nodes/NocoDB/GenericFunctions.js +11 -3
- package/dist/nodes/NocoDB/GenericFunctions.js.map +1 -1
- package/dist/nodes/NocoDB/OperationDescription.js +1 -1
- package/dist/nodes/NocoDB/nocodb.svg +1 -4
- package/dist/nodes/Notion/GenericFunctions.d.ts +1 -1
- package/dist/nodes/Notion/GenericFunctions.js +1 -1
- package/dist/nodes/Notion/GenericFunctions.js.map +1 -1
- package/dist/nodes/Notion/notion.svg +1 -1
- package/dist/nodes/Npm/npm.svg +1 -4
- package/dist/nodes/Odoo/odoo.svg +1 -1
- package/dist/nodes/OneSimpleApi/onesimpleapi.svg +1 -25
- package/dist/nodes/Onfleet/Onfleet.svg +1 -14
- package/dist/nodes/OpenAi/ImageDescription.js +1 -1
- package/dist/nodes/OpenAi/openAi.svg +1 -7
- package/dist/nodes/Orbit/orbit.svg +1 -1
- package/dist/nodes/Oura/oura.svg +1 -1
- package/dist/nodes/PagerDuty/pagerDuty.svg +1 -1
- package/dist/nodes/PayPal/paypal.svg +1 -1
- package/dist/nodes/Peekalink/Peekalink.node.d.ts +4 -3
- package/dist/nodes/Peekalink/Peekalink.node.js +23 -36
- package/dist/nodes/Peekalink/Peekalink.node.js.map +1 -1
- package/dist/nodes/Pipedrive/Pipedrive.node.js +4 -4
- package/dist/nodes/Pipedrive/Pipedrive.node.js.map +1 -1
- package/dist/nodes/Plivo/plivo.svg +1 -1
- package/dist/nodes/PostBin/postbin.svg +1 -3
- package/dist/nodes/PostHog/postHog.svg +1 -1
- package/dist/nodes/Postgres/Postgres.node.js +1 -0
- package/dist/nodes/Postgres/Postgres.node.js.map +1 -1
- package/dist/nodes/Postgres/postgres.svg +1 -1
- package/dist/nodes/Postgres/v1/PostgresV1.node.js +0 -1
- package/dist/nodes/Postgres/v1/PostgresV1.node.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js +0 -1
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/helpers/interfaces.d.ts +2 -0
- package/dist/nodes/Postgres/v2/helpers/utils.d.ts +7 -1
- package/dist/nodes/Postgres/v2/helpers/utils.js +24 -3
- package/dist/nodes/Postgres/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/Postgres/v2/methods/resourceMapping.js +5 -4
- package/dist/nodes/Postgres/v2/methods/resourceMapping.js.map +1 -1
- package/dist/nodes/Pushbullet/Pushbullet.node.js +2 -2
- package/dist/nodes/Pushbullet/Pushbullet.node.js.map +1 -1
- package/dist/nodes/Pushbullet/pushbullet.svg +1 -1
- package/dist/nodes/Pushover/Pushover.node.js +2 -2
- package/dist/nodes/Pushover/Pushover.node.js.map +1 -1
- package/dist/nodes/Pushover/pushover.svg +1 -4
- package/dist/nodes/QuestDb/QuestDb.node.js +1 -1
- package/dist/nodes/QuestDb/QuestDb.node.js.map +1 -1
- package/dist/nodes/QuickBase/FileDescription.js +2 -2
- package/dist/nodes/QuickBase/FileDescription.js.map +1 -1
- package/dist/nodes/QuickBooks/descriptions/Estimate/EstimateDescription.js +2 -2
- package/dist/nodes/QuickBooks/descriptions/Estimate/EstimateDescription.js.map +1 -1
- package/dist/nodes/QuickBooks/descriptions/Invoice/InvoiceDescription.js +2 -2
- package/dist/nodes/QuickBooks/descriptions/Invoice/InvoiceDescription.js.map +1 -1
- package/dist/nodes/QuickBooks/descriptions/Payment/PaymentDescription.js +2 -2
- package/dist/nodes/QuickBooks/descriptions/Payment/PaymentDescription.js.map +1 -1
- package/dist/nodes/QuickBooks/quickbooks.svg +1 -1
- package/dist/nodes/QuickChart/quickChart.svg +1 -14
- package/dist/nodes/Raindrop/raindrop.svg +1 -1
- package/dist/nodes/ReadBinaryFile/ReadBinaryFile.node.json +1 -1
- package/dist/nodes/ReadBinaryFiles/ReadBinaryFiles.node.js +1 -0
- package/dist/nodes/ReadBinaryFiles/ReadBinaryFiles.node.js.map +1 -1
- package/dist/nodes/ReadBinaryFiles/ReadBinaryFiles.node.json +1 -1
- package/dist/nodes/ReadPdf/ReadPDF.node.js +8 -48
- package/dist/nodes/ReadPdf/ReadPDF.node.js.map +1 -1
- package/dist/nodes/ReadPdf/ReadPDF.node.json +1 -1
- package/dist/nodes/Reddit/reddit.svg +1 -1
- package/dist/nodes/Redis/redis.svg +1 -1
- package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js +0 -2
- package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js.map +1 -1
- package/dist/nodes/RespondToWebhook/webhook.svg +1 -1
- package/dist/nodes/Rocketchat/rocketchat.svg +1 -1
- package/dist/nodes/Salesforce/AttachmentDescription.js +4 -4
- package/dist/nodes/Salesforce/AttachmentDescription.js.map +1 -1
- package/dist/nodes/Salesforce/DocumentDescription.js +2 -2
- package/dist/nodes/Salesforce/DocumentDescription.js.map +1 -1
- package/dist/nodes/Salesforce/salesforce.svg +1 -1
- package/dist/nodes/Schedule/ScheduleTrigger.node.js +1 -1
- package/dist/nodes/Schedule/ScheduleTrigger.node.js.map +1 -1
- package/dist/nodes/SeaTable/seaTable.svg +1 -1
- package/dist/nodes/SecurityScorecard/descriptions/ReportDescription.js +2 -2
- package/dist/nodes/SecurityScorecard/descriptions/ReportDescription.js.map +1 -1
- package/dist/nodes/SecurityScorecard/securityScorecard.svg +1 -1
- package/dist/nodes/Segment/segment.svg +1 -1
- package/dist/nodes/SendGrid/sendGrid.svg +1 -1
- package/dist/nodes/SentryIo/sentryio.svg +1 -1
- package/dist/nodes/ServiceNow/servicenow.svg +1 -1
- package/dist/nodes/Set/Set.node.json +1 -1
- package/dist/nodes/Set/v2/SetV2.node.js +1 -1
- package/dist/nodes/Set/v2/helpers/utils.js +15 -3
- package/dist/nodes/Set/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/Set/v2/manual.mode.js +1 -3
- package/dist/nodes/Set/v2/manual.mode.js.map +1 -1
- package/dist/nodes/Set/v2/raw.mode.js +2 -4
- package/dist/nodes/Set/v2/raw.mode.js.map +1 -1
- package/dist/nodes/Shopify/shopify.svg +1 -1
- package/dist/nodes/Slack/V1/FileDescription.js +3 -3
- package/dist/nodes/Slack/V1/FileDescription.js.map +1 -1
- package/dist/nodes/Slack/V2/FileDescription.js +2 -2
- package/dist/nodes/Slack/V2/FileDescription.js.map +1 -1
- package/dist/nodes/Slack/slack.svg +1 -1
- package/dist/nodes/Sms77/seven.svg +1 -1
- package/dist/nodes/Snowflake/Snowflake.node.js +1 -1
- package/dist/nodes/Snowflake/Snowflake.node.js.map +1 -1
- package/dist/nodes/Snowflake/snowflake.svg +1 -1
- package/dist/nodes/Splunk/splunk.svg +1 -3
- package/dist/nodes/Spotify/spotify.svg +1 -1
- package/dist/nodes/SpreadsheetFile/SpreadsheetFile.node.js +1 -0
- package/dist/nodes/SpreadsheetFile/SpreadsheetFile.node.js.map +1 -1
- package/dist/nodes/SpreadsheetFile/SpreadsheetFile.node.json +1 -1
- package/dist/nodes/SpreadsheetFile/description.d.ts +4 -4
- package/dist/nodes/SpreadsheetFile/description.js +183 -250
- package/dist/nodes/SpreadsheetFile/description.js.map +1 -1
- package/dist/nodes/SpreadsheetFile/v1/SpreadsheetFileV1.node.js +4 -3
- package/dist/nodes/SpreadsheetFile/v1/SpreadsheetFileV1.node.js.map +1 -1
- package/dist/nodes/SpreadsheetFile/v2/SpreadsheetFileV2.node.js +31 -227
- package/dist/nodes/SpreadsheetFile/v2/SpreadsheetFileV2.node.js.map +1 -1
- package/dist/nodes/SpreadsheetFile/v2/fromFile.operation.d.ts +3 -0
- package/dist/nodes/SpreadsheetFile/v2/fromFile.operation.js +203 -0
- package/dist/nodes/SpreadsheetFile/v2/fromFile.operation.js.map +1 -0
- package/dist/nodes/SpreadsheetFile/v2/toFile.operation.d.ts +3 -0
- package/dist/nodes/SpreadsheetFile/v2/toFile.operation.js +41 -0
- package/dist/nodes/SpreadsheetFile/v2/toFile.operation.js.map +1 -0
- package/dist/nodes/Ssh/Ssh.node.js +3 -3
- package/dist/nodes/Ssh/Ssh.node.js.map +1 -1
- package/dist/nodes/Storyblok/storyblok.svg +1 -1
- package/dist/nodes/Strapi/strapi.svg +1 -1
- package/dist/nodes/Strava/strava.svg +1 -1
- package/dist/nodes/Stripe/stripe.svg +1 -22
- package/dist/nodes/Supabase/supabase.svg +1 -15
- package/dist/nodes/SurveyMonkey/surveyMonkey.svg +1 -1
- package/dist/nodes/Switch/Switch.node.js +3 -1
- package/dist/nodes/Switch/Switch.node.js.map +1 -1
- package/dist/nodes/Switch/V2/SwitchV2.node.js +1 -0
- package/dist/nodes/Switch/V2/SwitchV2.node.js.map +1 -1
- package/dist/nodes/Switch/V3/SwitchV3.node.d.ts +11 -0
- package/dist/nodes/Switch/V3/SwitchV3.node.js +351 -0
- package/dist/nodes/Switch/V3/SwitchV3.node.js.map +1 -0
- package/dist/nodes/Switch/V3/test/switch.expression.workflow.json +168 -0
- package/dist/nodes/Switch/V3/test/switch.rules.workflow.json +242 -0
- package/dist/nodes/Taiga/taiga.svg +1 -1
- package/dist/nodes/Tapfiliate/tapfiliate.svg +1 -1
- package/dist/nodes/Telegram/Telegram.node.js +3 -2
- package/dist/nodes/Telegram/Telegram.node.js.map +1 -1
- package/dist/nodes/Telegram/telegram.svg +1 -1
- package/dist/nodes/TheHive/descriptions/AlertDescription.js +4 -2
- package/dist/nodes/TheHive/descriptions/AlertDescription.js.map +1 -1
- package/dist/nodes/TheHive/descriptions/LogDescription.js +2 -2
- package/dist/nodes/TheHive/descriptions/LogDescription.js.map +1 -1
- package/dist/nodes/TheHive/descriptions/ObservableDescription.js +2 -2
- package/dist/nodes/TheHive/descriptions/ObservableDescription.js.map +1 -1
- package/dist/nodes/TheHive/thehive.svg +1 -1
- package/dist/nodes/TheHiveProject/actions/alert/create.operation.js +2 -1
- package/dist/nodes/TheHiveProject/actions/alert/create.operation.js.map +1 -1
- package/dist/nodes/TheHiveProject/actions/query/executeQuery.operation.js +1 -2
- package/dist/nodes/TheHiveProject/actions/query/executeQuery.operation.js.map +1 -1
- package/dist/nodes/TheHiveProject/thehiveproject.svg +1 -1
- package/dist/nodes/TimescaleDb/TimescaleDb.node.js +1 -1
- package/dist/nodes/TimescaleDb/TimescaleDb.node.js.map +1 -1
- package/dist/nodes/TimescaleDb/timescale.svg +1 -31
- package/dist/nodes/Todoist/todoist.svg +1 -1
- package/dist/nodes/Transform/Aggregate/aggregate.svg +1 -14
- package/dist/nodes/Transform/Limit/limit.svg +1 -16
- package/dist/nodes/Transform/RemoveDuplicates/removeDuplicates.svg +1 -15
- package/dist/nodes/Transform/Sort/Sort.node.js +1 -1
- package/dist/nodes/Transform/Sort/Sort.node.js.map +1 -1
- package/dist/nodes/Transform/Sort/sort.svg +1 -6
- package/dist/nodes/Transform/SplitOut/splitOut.svg +1 -14
- package/dist/nodes/Transform/Summarize/summarize.svg +1 -10
- package/dist/nodes/Trello/trello.svg +1 -1
- package/dist/nodes/Twilio/twilio.svg +1 -1
- package/dist/nodes/Twitter/x.svg +1 -1
- package/dist/nodes/Typeform/typeform.svg +1 -1
- package/dist/nodes/UrlScanIo/urlScanIo.svg +1 -1
- package/dist/nodes/Venafi/venafi.svg +1 -1
- package/dist/nodes/Vero/vero.svg +1 -21
- package/dist/nodes/Webflow/webflow.svg +1 -1
- package/dist/nodes/Webhook/description.js +4 -3
- package/dist/nodes/Webhook/description.js.map +1 -1
- package/dist/nodes/Webhook/webhook.svg +1 -1
- package/dist/nodes/WhatsApp/whatsapp.svg +1 -7
- package/dist/nodes/Wise/descriptions/AccountDescription.js +2 -2
- package/dist/nodes/Wise/descriptions/AccountDescription.js.map +1 -1
- package/dist/nodes/Wise/descriptions/TransferDescription.js +2 -2
- package/dist/nodes/Wise/descriptions/TransferDescription.js.map +1 -1
- package/dist/nodes/Wise/wise.svg +1 -1
- package/dist/nodes/WooCommerce/wooCommerce.svg +1 -14
- package/dist/nodes/Wordpress/GenericFunctions.js +1 -0
- package/dist/nodes/Wordpress/GenericFunctions.js.map +1 -1
- package/dist/nodes/Wordpress/wordpress.svg +1 -1
- package/dist/nodes/WriteBinaryFile/WriteBinaryFile.node.js +1 -0
- package/dist/nodes/WriteBinaryFile/WriteBinaryFile.node.js.map +1 -1
- package/dist/nodes/WriteBinaryFile/WriteBinaryFile.node.json +1 -1
- package/dist/nodes/Xero/xero.svg +1 -1
- package/dist/nodes/Xml/Xml.node.js +11 -0
- package/dist/nodes/Xml/Xml.node.js.map +1 -1
- package/dist/nodes/Xml/Xml.node.json +1 -1
- package/dist/nodes/Yourls/GenericFunctions.js +5 -0
- package/dist/nodes/Yourls/GenericFunctions.js.map +1 -1
- package/dist/nodes/Zammad/zammad.svg +1 -27
- package/dist/nodes/Zendesk/zendesk.svg +1 -4
- package/dist/nodes/Zoho/zoho.svg +1 -1
- package/dist/nodes/Zoom/zoom.svg +1 -1
- package/dist/nodes/Zulip/MessageDescription.js +2 -2
- package/dist/nodes/Zulip/MessageDescription.js.map +1 -1
- package/dist/nodes/Zulip/zulip.svg +1 -1
- package/dist/types/credentials.json +2 -2
- package/dist/types/nodes.json +103 -99
- package/dist/utils/binary.d.ts +27 -0
- package/dist/utils/binary.js +133 -0
- package/dist/utils/binary.js.map +1 -0
- package/dist/utils/descriptions.d.ts +2 -1
- package/dist/utils/descriptions.js +411 -1
- package/dist/utils/descriptions.js.map +1 -1
- package/package.json +9 -5
- package/dist/nodes/Peekalink/GenericFunctions.d.ts +0 -2
- package/dist/nodes/Peekalink/GenericFunctions.js +0 -26
- package/dist/nodes/Peekalink/GenericFunctions.js.map +0 -1
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.ExtractFromFile = void 0;
|
|
27
|
+
const spreadsheet = __importStar(require("./actions/spreadsheet.operation"));
|
|
28
|
+
const moveTo = __importStar(require("./actions/moveTo.operation"));
|
|
29
|
+
const pdf = __importStar(require("./actions/pdf.operation"));
|
|
30
|
+
class ExtractFromFile {
|
|
31
|
+
constructor() {
|
|
32
|
+
this.description = {
|
|
33
|
+
displayName: 'Extract From File',
|
|
34
|
+
name: 'extractFromFile',
|
|
35
|
+
icon: 'file:extractFromFile.svg',
|
|
36
|
+
group: ['input'],
|
|
37
|
+
version: 1,
|
|
38
|
+
description: 'Convert binary data to JSON',
|
|
39
|
+
defaults: {
|
|
40
|
+
name: 'Extract From File',
|
|
41
|
+
},
|
|
42
|
+
inputs: ['main'],
|
|
43
|
+
outputs: ['main'],
|
|
44
|
+
properties: [
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Operation',
|
|
47
|
+
name: 'operation',
|
|
48
|
+
type: 'options',
|
|
49
|
+
noDataExpression: true,
|
|
50
|
+
options: [
|
|
51
|
+
{
|
|
52
|
+
name: 'Extract From CSV',
|
|
53
|
+
value: 'csv',
|
|
54
|
+
action: 'Extract from CSV',
|
|
55
|
+
description: 'Transform a CSV file into output items',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'Extract From HTML',
|
|
59
|
+
value: 'html',
|
|
60
|
+
action: 'Extract from HTML',
|
|
61
|
+
description: 'Transform a table in an HTML file into output items',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'Extract From JSON',
|
|
65
|
+
value: 'fromJson',
|
|
66
|
+
action: 'Extract from JSON',
|
|
67
|
+
description: 'Transform a JSON file into output items',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'Extract From ICS',
|
|
71
|
+
value: 'fromIcs',
|
|
72
|
+
action: 'Extract from ICS',
|
|
73
|
+
description: 'Transform a ICS file into output items',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'Extract From ODS',
|
|
77
|
+
value: 'ods',
|
|
78
|
+
action: 'Extract from ODS',
|
|
79
|
+
description: 'Transform an ODS file into output items',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'Extract From PDF',
|
|
83
|
+
value: 'pdf',
|
|
84
|
+
action: 'Extract from PDF',
|
|
85
|
+
description: 'Extracts the content and metadata from a PDF file',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'Extract From RTF',
|
|
89
|
+
value: 'rtf',
|
|
90
|
+
action: 'Extract from RTF',
|
|
91
|
+
description: 'Transform a table in an RTF file into output items',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'Extract From Text File',
|
|
95
|
+
value: 'text',
|
|
96
|
+
action: 'Extract from text file',
|
|
97
|
+
description: 'Extracts the content of a text file',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'Extract From XML',
|
|
101
|
+
value: 'xml',
|
|
102
|
+
action: 'Extract from XLS',
|
|
103
|
+
description: 'Extracts the content of an XML file',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'Extract From XLS',
|
|
107
|
+
value: 'xls',
|
|
108
|
+
action: 'Extract from XLS',
|
|
109
|
+
description: 'Transform an Excel file into output items',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'Extract From XLSX',
|
|
113
|
+
value: 'xlsx',
|
|
114
|
+
action: 'Extract from XLSX',
|
|
115
|
+
description: 'Transform an Excel file into output items',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'Move File to Base64 String',
|
|
119
|
+
value: 'binaryToPropery',
|
|
120
|
+
action: 'Move file to base64 string',
|
|
121
|
+
description: 'Convert a file into a base64-encoded string',
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
default: 'csv',
|
|
125
|
+
},
|
|
126
|
+
...spreadsheet.description,
|
|
127
|
+
...moveTo.description,
|
|
128
|
+
...pdf.description,
|
|
129
|
+
],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
async execute() {
|
|
133
|
+
const items = this.getInputData();
|
|
134
|
+
const operation = this.getNodeParameter('operation', 0);
|
|
135
|
+
let returnData = [];
|
|
136
|
+
if (spreadsheet.operations.includes(operation)) {
|
|
137
|
+
returnData = await spreadsheet.execute.call(this, items, 'operation');
|
|
138
|
+
}
|
|
139
|
+
if (['binaryToPropery', 'fromJson', 'text', 'fromIcs', 'xml'].includes(operation)) {
|
|
140
|
+
returnData = await moveTo.execute.call(this, items, operation);
|
|
141
|
+
}
|
|
142
|
+
if (operation === 'pdf') {
|
|
143
|
+
returnData = await pdf.execute.call(this, items);
|
|
144
|
+
}
|
|
145
|
+
return [returnData];
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
exports.ExtractFromFile = ExtractFromFile;
|
|
149
|
+
//# sourceMappingURL=ExtractFromFile.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtractFromFile.node.js","sourceRoot":"","sources":["../../../../nodes/Files/ExtractFromFile/ExtractFromFile.node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,6EAA+D;AAC/D,mEAAqD;AACrD,6DAA+C;AAE/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AC;QACvE,CAAC;QAED,IAAI,CAAC,iBAAiB,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;YACnF,UAAU,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;QAChE,CAAC;QAED,IAAI,SAAS,KAAK,KAAK,EAAE,CAAC;YACzB,UAAU,GAAG,MAAM,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAClD,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AA1HD,0CA0HC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-base.extractFromFile",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Core Nodes"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"primaryDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.extractfromfile/"
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"alias": [
|
|
14
|
+
"CSV",
|
|
15
|
+
"Spreadsheet",
|
|
16
|
+
"Excel",
|
|
17
|
+
"xls",
|
|
18
|
+
"xlsx",
|
|
19
|
+
"ods",
|
|
20
|
+
"tabular",
|
|
21
|
+
"decode",
|
|
22
|
+
"decoding",
|
|
23
|
+
"Move Binary Data",
|
|
24
|
+
"Binary",
|
|
25
|
+
"File",
|
|
26
|
+
"PDF",
|
|
27
|
+
"JSON",
|
|
28
|
+
"HTML",
|
|
29
|
+
"ICS",
|
|
30
|
+
"txt",
|
|
31
|
+
"Text",
|
|
32
|
+
"RTF",
|
|
33
|
+
"XML",
|
|
34
|
+
"64"
|
|
35
|
+
],
|
|
36
|
+
"subcategories": {
|
|
37
|
+
"Core Nodes": ["Files", "Data Transformation"]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const properties: INodeProperties[];
|
|
3
|
+
export declare const description: {
|
|
4
|
+
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
5
|
+
displayName: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type: import("n8n-workflow").NodePropertyTypes;
|
|
8
|
+
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
|
|
9
|
+
default: import("n8n-workflow").NodeParameterValueType;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
hint?: string | undefined;
|
|
12
|
+
options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
|
|
13
|
+
placeholder?: string | undefined;
|
|
14
|
+
isNodeSetting?: boolean | undefined;
|
|
15
|
+
noDataExpression?: boolean | undefined;
|
|
16
|
+
required?: boolean | undefined;
|
|
17
|
+
routing?: import("n8n-workflow").INodePropertyRouting | undefined;
|
|
18
|
+
credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
|
|
19
|
+
extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
|
|
20
|
+
modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
|
|
21
|
+
requiresDataPath?: "single" | "multiple" | undefined;
|
|
22
|
+
doNotInherit?: boolean | undefined;
|
|
23
|
+
validateType?: import("n8n-workflow").FieldType | undefined;
|
|
24
|
+
ignoreValidationDuringExecution?: boolean | undefined;
|
|
25
|
+
}[];
|
|
26
|
+
export declare function execute(this: IExecuteFunctions, items: INodeExecutionData[], operation: string): Promise<INodeExecutionData[]>;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.execute = exports.description = exports.properties = void 0;
|
|
7
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
8
|
+
const descriptions_1 = require("../../../../utils/descriptions");
|
|
9
|
+
const utilities_1 = require("../../../../utils/utilities");
|
|
10
|
+
const get_1 = __importDefault(require("lodash/get"));
|
|
11
|
+
const set_1 = __importDefault(require("lodash/set"));
|
|
12
|
+
const unset_1 = __importDefault(require("lodash/unset"));
|
|
13
|
+
const iconv_lite_1 = __importDefault(require("iconv-lite"));
|
|
14
|
+
const ts_ics_1 = require("ts-ics");
|
|
15
|
+
exports.properties = [
|
|
16
|
+
{
|
|
17
|
+
displayName: 'Input Binary Field',
|
|
18
|
+
name: 'binaryPropertyName',
|
|
19
|
+
type: 'string',
|
|
20
|
+
default: 'data',
|
|
21
|
+
required: true,
|
|
22
|
+
placeholder: 'e.g data',
|
|
23
|
+
hint: 'The name of the input field containing the file data to be processed',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
displayName: 'Destination Output Field',
|
|
27
|
+
name: 'destinationKey',
|
|
28
|
+
type: 'string',
|
|
29
|
+
default: 'data',
|
|
30
|
+
required: true,
|
|
31
|
+
placeholder: 'e.g data',
|
|
32
|
+
description: 'The name of the output field that will contain the extracted data',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Options',
|
|
36
|
+
name: 'options',
|
|
37
|
+
type: 'collection',
|
|
38
|
+
placeholder: 'Add Option',
|
|
39
|
+
default: {},
|
|
40
|
+
options: [
|
|
41
|
+
{
|
|
42
|
+
displayName: 'File Encoding',
|
|
43
|
+
name: 'encoding',
|
|
44
|
+
type: 'options',
|
|
45
|
+
options: descriptions_1.encodeDecodeOptions,
|
|
46
|
+
default: 'utf8',
|
|
47
|
+
description: 'Specify the encoding of the file, defaults to UTF-8',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Strip BOM',
|
|
51
|
+
name: 'stripBOM',
|
|
52
|
+
displayOptions: {
|
|
53
|
+
show: {
|
|
54
|
+
encoding: ['utf8', 'cesu8', 'ucs2'],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
type: 'boolean',
|
|
58
|
+
default: true,
|
|
59
|
+
description: 'Whether to strip the BOM (Byte Order Mark) from the file, this could help in an environment where the presence of the BOM is causing issues or inconsistencies',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
displayName: 'Keep Source',
|
|
63
|
+
name: 'keepSource',
|
|
64
|
+
type: 'options',
|
|
65
|
+
default: 'json',
|
|
66
|
+
options: [
|
|
67
|
+
{
|
|
68
|
+
name: 'JSON',
|
|
69
|
+
value: 'json',
|
|
70
|
+
description: 'Include JSON data of the input item',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'Binary',
|
|
74
|
+
value: 'binary',
|
|
75
|
+
description: 'Include binary data of the input item',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Both',
|
|
79
|
+
value: 'both',
|
|
80
|
+
description: 'Include both JSON and binary data of the input item',
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
];
|
|
87
|
+
const displayOptions = {
|
|
88
|
+
show: {
|
|
89
|
+
operation: ['binaryToPropery', 'fromJson', 'text', 'fromIcs', 'xml'],
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, exports.properties);
|
|
93
|
+
async function execute(items, operation) {
|
|
94
|
+
const returnData = [];
|
|
95
|
+
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
|
96
|
+
try {
|
|
97
|
+
const item = items[itemIndex];
|
|
98
|
+
const options = this.getNodeParameter('options', itemIndex);
|
|
99
|
+
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', itemIndex);
|
|
100
|
+
const newItem = {
|
|
101
|
+
json: {},
|
|
102
|
+
pairedItem: { item: itemIndex },
|
|
103
|
+
};
|
|
104
|
+
const value = (0, get_1.default)(item.binary, binaryPropertyName);
|
|
105
|
+
if (!value)
|
|
106
|
+
continue;
|
|
107
|
+
const encoding = options.encoding || 'utf8';
|
|
108
|
+
const buffer = await this.helpers.getBinaryDataBuffer(itemIndex, binaryPropertyName);
|
|
109
|
+
if (options.keepSource && options.keepSource !== 'binary') {
|
|
110
|
+
newItem.json = (0, n8n_workflow_1.deepCopy)(item.json);
|
|
111
|
+
}
|
|
112
|
+
let convertedValue;
|
|
113
|
+
if (operation !== 'binaryToPropery') {
|
|
114
|
+
convertedValue = iconv_lite_1.default.decode(buffer, encoding, {
|
|
115
|
+
stripBOM: options.stripBOM,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
convertedValue = Buffer.from(buffer).toString(n8n_workflow_1.BINARY_ENCODING);
|
|
120
|
+
}
|
|
121
|
+
if (operation === 'fromJson') {
|
|
122
|
+
if (convertedValue === '') {
|
|
123
|
+
convertedValue = {};
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
convertedValue = (0, n8n_workflow_1.jsonParse)(convertedValue);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
if (operation === 'fromIcs') {
|
|
130
|
+
convertedValue = (0, ts_ics_1.icsCalendarToObject)(convertedValue);
|
|
131
|
+
}
|
|
132
|
+
const destinationKey = this.getNodeParameter('destinationKey', itemIndex, '');
|
|
133
|
+
(0, set_1.default)(newItem.json, destinationKey, convertedValue);
|
|
134
|
+
if (options.keepSource === 'binary' || options.keepSource === 'both') {
|
|
135
|
+
newItem.binary = item.binary;
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
newItem.binary = (0, n8n_workflow_1.deepCopy)(item.binary);
|
|
139
|
+
(0, unset_1.default)(newItem.binary, binaryPropertyName);
|
|
140
|
+
}
|
|
141
|
+
returnData.push(newItem);
|
|
142
|
+
}
|
|
143
|
+
catch (error) {
|
|
144
|
+
let errorDescription;
|
|
145
|
+
if (error.message.includes('Unexpected token')) {
|
|
146
|
+
error.message = "The file selected in 'Input Binary Field' is not in JSON format";
|
|
147
|
+
errorDescription =
|
|
148
|
+
"Try to change the operation or select a JSON file in 'Input Binary Field'";
|
|
149
|
+
}
|
|
150
|
+
if (this.continueOnFail()) {
|
|
151
|
+
returnData.push({
|
|
152
|
+
json: {
|
|
153
|
+
error: error.message,
|
|
154
|
+
},
|
|
155
|
+
pairedItem: {
|
|
156
|
+
item: itemIndex,
|
|
157
|
+
},
|
|
158
|
+
});
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, {
|
|
162
|
+
itemIndex,
|
|
163
|
+
description: errorDescription,
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return returnData;
|
|
168
|
+
}
|
|
169
|
+
exports.execute = execute;
|
|
170
|
+
//# sourceMappingURL=moveTo.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moveTo.operation.js","sourceRoot":"","sources":["../../../../../nodes/Files/ExtractFromFile/actions/moveTo.operation.ts"],"names":[],"mappings":";;;;;;AAOA,+CAAwF;AAExF,sDAA0D;AAC1D,gDAAwD;AAExD,qDAA6B;AAC7B,qDAA6B;AAC7B,yDAAiC;AAEjC,4DAA+B;AAE/B,mCAA6C;AAEhC,QAAA,UAAU,GAAsB;IAC5C;QACC,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,sEAAsE;KAC5E;IACD;QAC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AC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC;gBAChD,KAAK,CAAC,OAAO,GAAG,iEAAiE,CAAC;gBAClF,gBAAgB;oBACf,2EAA2E,CAAC;YAC9E,CAAC;YACD,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC3B,UAAU,CAAC,IAAI,CAAC;oBACf,IAAI,EAAE;wBACL,KAAK,EAAE,KAAK,CAAC,OAAO;qBACpB;oBACD,UAAU,EAAE;wBACX,IAAI,EAAE,SAAS;qBACf;iBACD,CAAC,CAAC;gBACH,SAAS;YACV,CAAC;YACD,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE;gBACnD,SAAS;gBACT,WAAW,EAAE,gBAAgB;aAC7B,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;IAED,OAAO,UAAU,CAAC;AACnB,CAAC;AAzFD,0BAyFC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const properties: INodeProperties[];
|
|
3
|
+
export declare const description: {
|
|
4
|
+
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
5
|
+
displayName: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type: import("n8n-workflow").NodePropertyTypes;
|
|
8
|
+
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
|
|
9
|
+
default: import("n8n-workflow").NodeParameterValueType;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
hint?: string | undefined;
|
|
12
|
+
options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
|
|
13
|
+
placeholder?: string | undefined;
|
|
14
|
+
isNodeSetting?: boolean | undefined;
|
|
15
|
+
noDataExpression?: boolean | undefined;
|
|
16
|
+
required?: boolean | undefined;
|
|
17
|
+
routing?: import("n8n-workflow").INodePropertyRouting | undefined;
|
|
18
|
+
credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
|
|
19
|
+
extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
|
|
20
|
+
modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
|
|
21
|
+
requiresDataPath?: "single" | "multiple" | undefined;
|
|
22
|
+
doNotInherit?: boolean | undefined;
|
|
23
|
+
validateType?: import("n8n-workflow").FieldType | undefined;
|
|
24
|
+
ignoreValidationDuringExecution?: boolean | undefined;
|
|
25
|
+
}[];
|
|
26
|
+
export declare function execute(this: IExecuteFunctions, items: INodeExecutionData[]): Promise<INodeExecutionData[]>;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.execute = exports.description = exports.properties = void 0;
|
|
7
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
8
|
+
const unset_1 = __importDefault(require("lodash/unset"));
|
|
9
|
+
const binary_1 = require("../../../../utils/binary");
|
|
10
|
+
const utilities_1 = require("../../../../utils/utilities");
|
|
11
|
+
exports.properties = [
|
|
12
|
+
{
|
|
13
|
+
displayName: 'Input Binary Field',
|
|
14
|
+
name: 'binaryPropertyName',
|
|
15
|
+
type: 'string',
|
|
16
|
+
default: 'data',
|
|
17
|
+
required: true,
|
|
18
|
+
placeholder: 'e.g data',
|
|
19
|
+
hint: 'The name of the input binary field containing the file to be extracted',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Options',
|
|
23
|
+
name: 'options',
|
|
24
|
+
type: 'collection',
|
|
25
|
+
placeholder: 'Add Option',
|
|
26
|
+
default: {},
|
|
27
|
+
options: [
|
|
28
|
+
{
|
|
29
|
+
displayName: 'Join Pages',
|
|
30
|
+
name: 'joinPages',
|
|
31
|
+
type: 'boolean',
|
|
32
|
+
default: true,
|
|
33
|
+
description: 'Whether to join the text from all pages or return an array of text from each page',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Keep Source',
|
|
37
|
+
name: 'keepSource',
|
|
38
|
+
type: 'options',
|
|
39
|
+
default: 'json',
|
|
40
|
+
options: [
|
|
41
|
+
{
|
|
42
|
+
name: 'JSON',
|
|
43
|
+
value: 'json',
|
|
44
|
+
description: 'Include JSON data of the input item',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Binary',
|
|
48
|
+
value: 'binary',
|
|
49
|
+
description: 'Include binary data of the input item',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'Both',
|
|
53
|
+
value: 'both',
|
|
54
|
+
description: 'Include both JSON and binary data of the input item',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
displayName: 'Max Pages',
|
|
60
|
+
name: 'maxPages',
|
|
61
|
+
type: 'number',
|
|
62
|
+
default: 0,
|
|
63
|
+
description: 'Maximum number of pages to include',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Password',
|
|
67
|
+
name: 'password',
|
|
68
|
+
type: 'string',
|
|
69
|
+
typeOptions: { password: true },
|
|
70
|
+
default: '',
|
|
71
|
+
description: 'Prowide password, if the PDF is encrypted',
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
const displayOptions = {
|
|
77
|
+
show: {
|
|
78
|
+
operation: ['pdf'],
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, exports.properties);
|
|
82
|
+
async function execute(items) {
|
|
83
|
+
const returnData = [];
|
|
84
|
+
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
|
85
|
+
try {
|
|
86
|
+
const item = items[itemIndex];
|
|
87
|
+
const options = this.getNodeParameter('options', itemIndex);
|
|
88
|
+
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', itemIndex);
|
|
89
|
+
const json = await binary_1.extractDataFromPDF.call(this, binaryPropertyName, options.password, options.maxPages, options.joinPages, itemIndex);
|
|
90
|
+
const newItem = {
|
|
91
|
+
json: {},
|
|
92
|
+
pairedItem: { item: itemIndex },
|
|
93
|
+
};
|
|
94
|
+
if (options.keepSource && options.keepSource !== 'binary') {
|
|
95
|
+
newItem.json = { ...(0, n8n_workflow_1.deepCopy)(item.json), ...json };
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
newItem.json = json;
|
|
99
|
+
}
|
|
100
|
+
if (options.keepSource === 'binary' || options.keepSource === 'both') {
|
|
101
|
+
newItem.binary = item.binary;
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
newItem.binary = (0, n8n_workflow_1.deepCopy)(item.binary);
|
|
105
|
+
(0, unset_1.default)(newItem.binary, binaryPropertyName);
|
|
106
|
+
}
|
|
107
|
+
returnData.push(newItem);
|
|
108
|
+
}
|
|
109
|
+
catch (error) {
|
|
110
|
+
if (this.continueOnFail()) {
|
|
111
|
+
returnData.push({
|
|
112
|
+
json: {
|
|
113
|
+
error: error.message,
|
|
114
|
+
},
|
|
115
|
+
pairedItem: {
|
|
116
|
+
item: itemIndex,
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, { itemIndex });
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return returnData;
|
|
125
|
+
}
|
|
126
|
+
exports.execute = execute;
|
|
127
|
+
//# sourceMappingURL=pdf.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf.operation.js","sourceRoot":"","sources":["../../../../../nodes/Files/ExtractFromFile/actions/pdf.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AI,CAAC;YACrB,CAAC;YAED,IAAI,OAAO,CAAC,UAAU,KAAK,QAAQ,IAAI,OAAO,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;gBACtE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YAC9B,CAAC;iBAAM,CAAC;gBAGP,OAAO,CAAC,MAAM,GAAG,IAAA,uBAAQ,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBACvC,IAAA,eAAK,EAAC,OAAO,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;YAC3C,CAAC;YAED,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC3B,UAAU,CAAC,IAAI,CAAC;oBACf,IAAI,EAAE;wBACL,KAAK,EAAE,KAAK,CAAC,OAAO;qBACpB;oBACD,UAAU,EAAE;wBACX,IAAI,EAAE,SAAS;qBACf;iBACD,CAAC,CAAC;gBACH,SAAS;YACV,CAAC;YACD,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;QACpE,CAAC;IACF,CAAC;IAED,OAAO,UAAU,CAAC;AACnB,CAAC;AAxDD,0BAwDC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const operations: string[];
|
|
3
|
+
export declare const description: INodeProperties[];
|
|
4
|
+
export declare function execute(this: IExecuteFunctions, items: INodeExecutionData[], fileFormatProperty: string): Promise<INodeExecutionData[]>;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.execute = exports.description = exports.operations = void 0;
|
|
27
|
+
const fromFile = __importStar(require("../../../SpreadsheetFile/v2/fromFile.operation"));
|
|
28
|
+
exports.operations = ['csv', 'html', 'rtf', 'ods', 'xls', 'xlsx'];
|
|
29
|
+
exports.description = fromFile.description
|
|
30
|
+
.filter((property) => property.name !== 'fileFormat')
|
|
31
|
+
.map((property) => {
|
|
32
|
+
const newProperty = { ...property };
|
|
33
|
+
newProperty.displayOptions = {
|
|
34
|
+
show: {
|
|
35
|
+
operation: exports.operations,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
if (newProperty.name === 'options') {
|
|
39
|
+
newProperty.options = newProperty.options.map((option) => {
|
|
40
|
+
let newOption = option;
|
|
41
|
+
if (['delimiter', 'fromLine', 'maxRowCount', 'enableBOM'].includes(option.name)) {
|
|
42
|
+
newOption = { ...option, displayOptions: { show: { '/operation': ['csv'] } } };
|
|
43
|
+
}
|
|
44
|
+
if (option.name === 'sheetName') {
|
|
45
|
+
newOption = {
|
|
46
|
+
...option,
|
|
47
|
+
displayOptions: { show: { '/operation': ['ods', 'xls', 'xlsx'] } },
|
|
48
|
+
description: 'Name of the sheet to read from in the spreadsheet',
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
if (option.name === 'range') {
|
|
52
|
+
newOption = {
|
|
53
|
+
...option,
|
|
54
|
+
displayOptions: { show: { '/operation': ['ods', 'xls', 'xlsx'] } },
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
if (['includeEmptyCells', 'headerRow'].includes(option.name)) {
|
|
58
|
+
newOption = {
|
|
59
|
+
...option,
|
|
60
|
+
displayOptions: { show: { '/operation': ['ods', 'xls', 'xlsx', 'csv', 'html'] } },
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
return newOption;
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
return newProperty;
|
|
67
|
+
});
|
|
68
|
+
async function execute(items, fileFormatProperty) {
|
|
69
|
+
const returnData = await fromFile.execute.call(this, items, fileFormatProperty);
|
|
70
|
+
return returnData;
|
|
71
|
+
}
|
|
72
|
+
exports.execute = execute;
|
|
73
|
+
//# sourceMappingURL=spreadsheet.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spreadsheet.operation.js","sourceRoot":"","sources":["../../../../../nodes/Files/ExtractFromFile/actions/spreadsheet.operation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,yFAA2E;AAE9D,QAAA,UAAU,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAE1D,QAAA,WAAW,GAAsB,QAAQ,CAAC,WAAW;KAChE,MAAM,CAAC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QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC9D,SAAS,GAAG;oBACX,GAAG,MAAM;oBACT,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,EAAE;iBACjF,CAAC;YACH,CAAC;YACD,OAAO,SAAS,CAAC;QAClB,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC,CAAC;AAEG,KAAK,UAAU,OAAO,CAE5B,KAA2B,EAC3B,kBAA0B;IAE1B,MAAM,UAAU,GAAyB,MAAM,QAAQ,CAAC,OAAO,CAAC,IAAI,CACnE,IAAI,EACJ,KAAK,EACL,kBAAkB,CAClB,CAAC;IACF,OAAO,UAAU,CAAC;AACnB,CAAC;AAXD,0BAWC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M0 39.8158C0 33.2901 5.28667 28 11.8081 28H168.41V189.704C168.41 196.331 173.782 201.704 180.41 201.704H342L342 287H268C243.699 287 224 306.699 224 331V355C224 379.301 243.699 399 268 399L342 399L342 473.184C342 479.71 336.713 485 330.192 485H11.8081C5.28667 485 0 479.71 0 473.184V39.8158Z" fill="#003355"/>
|
|
3
|
+
<path d="M199.898 34C199.898 30.6863 202.584 28 205.898 28H208.564C211.7 28 214.708 29.2487 216.923 31.4707L338.551 153.468C340.76 155.683 342 158.684 342 161.813L342 164.195C342 167.509 339.314 170.195 336 170.195H205.898C202.584 170.195 199.898 167.509 199.898 164.195V34Z" fill="#003355"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M381.077 415.982C371.678 425.329 371.636 440.525 380.982 449.923C390.329 459.322 405.525 459.364 414.923 450.018L504.923 360.518C509.453 356.013 512 349.888 512 343.5C512 337.112 509.453 330.987 504.923 326.482L414.923 236.982C405.525 227.636 390.329 227.678 380.982 237.077C371.636 246.475 371.678 261.671 381.077 271.018L429.327 319L268 319C261.373 319 256 324.373 256 331L256 355C256 361.627 261.373 367 268 367L430.333 367L381.077 415.982Z" fill="#003355"/>
|
|
5
|
+
</svg>
|