ci: Enable Prettier for /nodes-base (#3315)

*  Extend `.prettierignore` patterns

* 🎨 Apply Prettier to `/src` and `/test`

* 🎨 Update `.prettierignore`

* ✏️ Group dirs with same nesting level

* ✏️ Alphabetize credentials
This commit is contained in:
Iván Ovejero 2022-06-20 23:51:01 +02:00 committed by GitHub
parent a2f628927d
commit 4dac848758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 631 additions and 48 deletions

View file

@ -1,4 +1,574 @@
packages/nodes-base
packages/editor-ui packages/editor-ui
packages/design-system packages/design-system
*package.json *package.json
!packages/nodes-base/src
!packages/nodes-base/test
!packages/nodes-base/nodes
!packages/nodes-base/credentials
packages/nodes-base/nodes/ActionNetwork
packages/nodes-base/nodes/ActiveCampaign
packages/nodes-base/nodes/AcuityScheduling
packages/nodes-base/nodes/Affinity
packages/nodes-base/nodes/AgileCrm
packages/nodes-base/nodes/Airtable
packages/nodes-base/nodes/Amqp
packages/nodes-base/nodes/ApiTemplateIo
packages/nodes-base/nodes/Asana
packages/nodes-base/nodes/Automizy
packages/nodes-base/nodes/Autopilot
packages/nodes-base/nodes/Aws
packages/nodes-base/nodes/BambooHr
packages/nodes-base/nodes/Bannerbear
packages/nodes-base/nodes/Baserow
packages/nodes-base/nodes/Beeminder
packages/nodes-base/nodes/Bitbucket
packages/nodes-base/nodes/Bitly
packages/nodes-base/nodes/Bitwarden
packages/nodes-base/nodes/Box
packages/nodes-base/nodes/Brandfetch
packages/nodes-base/nodes/Bubble
packages/nodes-base/nodes/Cal
packages/nodes-base/nodes/Calendly
packages/nodes-base/nodes/Chargebee
packages/nodes-base/nodes/CircleCi
packages/nodes-base/nodes/Cisco
packages/nodes-base/nodes/Clearbit
packages/nodes-base/nodes/ClickUp
packages/nodes-base/nodes/Clockify
packages/nodes-base/nodes/Cockpit
packages/nodes-base/nodes/Coda
packages/nodes-base/nodes/CoinGecko
packages/nodes-base/nodes/Compression
packages/nodes-base/nodes/Contentful
packages/nodes-base/nodes/ConvertKit
packages/nodes-base/nodes/Copper
packages/nodes-base/nodes/Cortex
packages/nodes-base/nodes/CrateDb
packages/nodes-base/nodes/Cron
packages/nodes-base/nodes/Crypto
packages/nodes-base/nodes/CustomerIo
packages/nodes-base/nodes/DateTime
packages/nodes-base/nodes/DeepL
packages/nodes-base/nodes/Demio
packages/nodes-base/nodes/Dhl
packages/nodes-base/nodes/Discord
packages/nodes-base/nodes/Discourse
packages/nodes-base/nodes/Disqus
packages/nodes-base/nodes/Drift
packages/nodes-base/nodes/Dropbox
packages/nodes-base/nodes/Dropcontact
packages/nodes-base/nodes/EditImage
packages/nodes-base/nodes/Egoi
packages/nodes-base/nodes/Elastic
packages/nodes-base/nodes/EmailReadImap
packages/nodes-base/nodes/EmailSend
packages/nodes-base/nodes/Emelia
packages/nodes-base/nodes/ERPNext
packages/nodes-base/nodes/ErrorTrigger
packages/nodes-base/nodes/Eventbrite
packages/nodes-base/nodes/ExecuteCommand
packages/nodes-base/nodes/ExecuteWorkflow
packages/nodes-base/nodes/Facebook
packages/nodes-base/nodes/Figma
packages/nodes-base/nodes/FileMaker
packages/nodes-base/nodes/Flow
packages/nodes-base/nodes/FormIo
packages/nodes-base/nodes/Formstack
packages/nodes-base/nodes/Freshdesk
packages/nodes-base/nodes/Freshservice
packages/nodes-base/nodes/FreshworksCrm
packages/nodes-base/nodes/Ftp
packages/nodes-base/nodes/Function
packages/nodes-base/nodes/FunctionItem
packages/nodes-base/nodes/GetResponse
packages/nodes-base/nodes/Ghost
packages/nodes-base/nodes/Git
packages/nodes-base/nodes/Github
packages/nodes-base/nodes/Gitlab
packages/nodes-base/nodes/Google
packages/nodes-base/nodes/Gotify
packages/nodes-base/nodes/GoToWebinar
packages/nodes-base/nodes/Grafana
packages/nodes-base/nodes/GraphQL
packages/nodes-base/nodes/Grist
packages/nodes-base/nodes/Gumroad
packages/nodes-base/nodes/HackerNews
packages/nodes-base/nodes/HaloPSA
packages/nodes-base/nodes/Harvest
packages/nodes-base/nodes/HelpScout
packages/nodes-base/nodes/HomeAssistant
packages/nodes-base/nodes/HtmlExtract
packages/nodes-base/nodes/HttpRequest
packages/nodes-base/nodes/Hubspot
packages/nodes-base/nodes/HumanticAI
packages/nodes-base/nodes/Hunter
packages/nodes-base/nodes/ICalendar
packages/nodes-base/nodes/If
packages/nodes-base/nodes/Intercom
packages/nodes-base/nodes/Interval
packages/nodes-base/nodes/InvoiceNinja
packages/nodes-base/nodes/ItemLists
packages/nodes-base/nodes/Iterable
packages/nodes-base/nodes/Jenkins
packages/nodes-base/nodes/Jira
packages/nodes-base/nodes/JotForm
packages/nodes-base/nodes/Kafka
packages/nodes-base/nodes/Keap
packages/nodes-base/nodes/Kitemaker
packages/nodes-base/nodes/KoBoToolbox
packages/nodes-base/nodes/Lemlist
packages/nodes-base/nodes/Line
packages/nodes-base/nodes/Linear
packages/nodes-base/nodes/LingvaNex
packages/nodes-base/nodes/LinkedIn
packages/nodes-base/nodes/LocalFileTrigger
packages/nodes-base/nodes/Magento
packages/nodes-base/nodes/Mailcheck
packages/nodes-base/nodes/Mailchimp
packages/nodes-base/nodes/MailerLite
packages/nodes-base/nodes/Mailgun
packages/nodes-base/nodes/Mailjet
packages/nodes-base/nodes/Mandrill
packages/nodes-base/nodes/Markdown
packages/nodes-base/nodes/Marketstack
packages/nodes-base/nodes/Matrix
packages/nodes-base/nodes/Mattermost
packages/nodes-base/nodes/Mautic
packages/nodes-base/nodes/Medium
packages/nodes-base/nodes/Merge
packages/nodes-base/nodes/MessageBird
packages/nodes-base/nodes/Microsoft
packages/nodes-base/nodes/Mindee
packages/nodes-base/nodes/Misp
packages/nodes-base/nodes/Mocean
packages/nodes-base/nodes/MondayCom
packages/nodes-base/nodes/MongoDb
packages/nodes-base/nodes/MonicaCrm
packages/nodes-base/nodes/MoveBinaryData
packages/nodes-base/nodes/MQTT
packages/nodes-base/nodes/Msg91
packages/nodes-base/nodes/MySql
packages/nodes-base/nodes/N8nTrainingCustomerDatastore
packages/nodes-base/nodes/N8nTrainingCustomerMessenger
packages/nodes-base/nodes/N8nTrigger
packages/nodes-base/nodes/Nasa
packages/nodes-base/nodes/Netlify
packages/nodes-base/nodes/NextCloud
packages/nodes-base/nodes/NocoDB
packages/nodes-base/nodes/NoOp
packages/nodes-base/nodes/Notion
packages/nodes-base/nodes/Odoo
packages/nodes-base/nodes/OneSimpleApi
packages/nodes-base/nodes/Onfleet
packages/nodes-base/nodes/OpenThesaurus
packages/nodes-base/nodes/OpenWeatherMap
packages/nodes-base/nodes/Orbit
packages/nodes-base/nodes/Oura
packages/nodes-base/nodes/Paddle
packages/nodes-base/nodes/PagerDuty
packages/nodes-base/nodes/PayPal
packages/nodes-base/nodes/Peekalink
packages/nodes-base/nodes/Phantombuster
packages/nodes-base/nodes/PhilipsHue
packages/nodes-base/nodes/Pipedrive
packages/nodes-base/nodes/Plivo
packages/nodes-base/nodes/PostBin
packages/nodes-base/nodes/Postgres
packages/nodes-base/nodes/PostHog
packages/nodes-base/nodes/Postmark
packages/nodes-base/nodes/ProfitWell
packages/nodes-base/nodes/Pushbullet
packages/nodes-base/nodes/Pushcut
packages/nodes-base/nodes/Pushover
packages/nodes-base/nodes/QuestDb
packages/nodes-base/nodes/QuickBase
packages/nodes-base/nodes/QuickBooks
packages/nodes-base/nodes/RabbitMQ
packages/nodes-base/nodes/Raindrop
packages/nodes-base/nodes/ReadBinaryFile
packages/nodes-base/nodes/ReadBinaryFiles
packages/nodes-base/nodes/ReadPdf
packages/nodes-base/nodes/Reddit
packages/nodes-base/nodes/Redis
packages/nodes-base/nodes/RenameKeys
packages/nodes-base/nodes/RespondToWebhook
packages/nodes-base/nodes/Rocketchat
packages/nodes-base/nodes/RssFeedRead
packages/nodes-base/nodes/Rundeck
packages/nodes-base/nodes/S3
packages/nodes-base/nodes/Salesforce
packages/nodes-base/nodes/Salesmate
packages/nodes-base/nodes/SeaTable
packages/nodes-base/nodes/SecurityScorecard
packages/nodes-base/nodes/Segment
packages/nodes-base/nodes/SendGrid
packages/nodes-base/nodes/Sendy
packages/nodes-base/nodes/SentryIo
packages/nodes-base/nodes/ServiceNow
packages/nodes-base/nodes/Set
packages/nodes-base/nodes/Shopify
packages/nodes-base/nodes/Signl4
packages/nodes-base/nodes/Slack
packages/nodes-base/nodes/Sms77
packages/nodes-base/nodes/Snowflake
packages/nodes-base/nodes/SplitInBatches
packages/nodes-base/nodes/Splunk
packages/nodes-base/nodes/Spontit
packages/nodes-base/nodes/Spotify
packages/nodes-base/nodes/SpreadsheetFile
packages/nodes-base/nodes/SseTrigger
packages/nodes-base/nodes/Ssh
packages/nodes-base/nodes/Stackby
packages/nodes-base/nodes/Start
packages/nodes-base/nodes/StickyNote
packages/nodes-base/nodes/StopAndError
packages/nodes-base/nodes/Storyblok
packages/nodes-base/nodes/Strapi
packages/nodes-base/nodes/Strava
packages/nodes-base/nodes/Stripe
packages/nodes-base/nodes/Supabase
packages/nodes-base/nodes/SurveyMonkey
packages/nodes-base/nodes/Switch
packages/nodes-base/nodes/SyncroMSP
packages/nodes-base/nodes/Taiga
packages/nodes-base/nodes/Tapfiliate
packages/nodes-base/nodes/Telegram
packages/nodes-base/nodes/TheHive
packages/nodes-base/nodes/TimescaleDb
packages/nodes-base/nodes/Todoist
packages/nodes-base/nodes/Toggl
packages/nodes-base/nodes/TravisCi
packages/nodes-base/nodes/Trello
packages/nodes-base/nodes/Twake
packages/nodes-base/nodes/Twilio
packages/nodes-base/nodes/Twist
packages/nodes-base/nodes/Twitter
packages/nodes-base/nodes/Typeform
packages/nodes-base/nodes/UnleashedSoftware
packages/nodes-base/nodes/Uplead
packages/nodes-base/nodes/UProc
packages/nodes-base/nodes/UptimeRobot
packages/nodes-base/nodes/UrlScanIo
packages/nodes-base/nodes/utils
packages/nodes-base/nodes/Vero
packages/nodes-base/nodes/Vonage
packages/nodes-base/nodes/Wait
packages/nodes-base/nodes/Webflow
packages/nodes-base/nodes/Webhook
packages/nodes-base/nodes/Wekan
packages/nodes-base/nodes/Wise
packages/nodes-base/nodes/WooCommerce
packages/nodes-base/nodes/Wordpress
packages/nodes-base/nodes/Workable
packages/nodes-base/nodes/WorkflowTrigger
packages/nodes-base/nodes/WriteBinaryFile
packages/nodes-base/nodes/Wufoo
packages/nodes-base/nodes/Xero
packages/nodes-base/nodes/Xml
packages/nodes-base/nodes/Yourls
packages/nodes-base/nodes/Zammad
packages/nodes-base/nodes/Zendesk
packages/nodes-base/nodes/Zoho
packages/nodes-base/nodes/Zoom
packages/nodes-base/nodes/Zulip
packages/nodes-base/credentials/ActionNetworkApi.credentials.ts
packages/nodes-base/credentials/ActiveCampaignApi.credentials.ts
packages/nodes-base/credentials/AcuitySchedulingApi.credentials.ts
packages/nodes-base/credentials/AcuitySchedulingOAuth2Api.credentials.ts
packages/nodes-base/credentials/AffinityApi.credentials.ts
packages/nodes-base/credentials/AgileCrmApi.credentials.ts
packages/nodes-base/credentials/AirtableApi.credentials.ts
packages/nodes-base/credentials/Amqp.credentials.ts
packages/nodes-base/credentials/ApiTemplateIoApi.credentials.ts
packages/nodes-base/credentials/AsanaApi.credentials.ts
packages/nodes-base/credentials/AsanaOAuth2Api.credentials.ts
packages/nodes-base/credentials/AutomizyApi.credentials.ts
packages/nodes-base/credentials/AutopilotApi.credentials.ts
packages/nodes-base/credentials/Aws.credentials.ts
packages/nodes-base/credentials/AWS.svg
packages/nodes-base/credentials/BambooHrApi.credentials.ts
packages/nodes-base/credentials/BannerbearApi.credentials.ts
packages/nodes-base/credentials/BaserowApi.credentials.ts
packages/nodes-base/credentials/BeeminderApi.credentials.ts
packages/nodes-base/credentials/BitbucketApi.credentials.ts
packages/nodes-base/credentials/BitlyApi.credentials.ts
packages/nodes-base/credentials/BitlyOAuth2Api.credentials.ts
packages/nodes-base/credentials/BitwardenApi.credentials.ts
packages/nodes-base/credentials/BoxOAuth2Api.credentials.ts
packages/nodes-base/credentials/BrandfetchApi.credentials.ts
packages/nodes-base/credentials/BubbleApi.credentials.ts
packages/nodes-base/credentials/CalApi.credentials.ts
packages/nodes-base/credentials/CalendlyApi.credentials.ts
packages/nodes-base/credentials/ChargebeeApi.credentials.ts
packages/nodes-base/credentials/CircleCiApi.credentials.ts
packages/nodes-base/credentials/CiscoWebexOAuth2Api.credentials.ts
packages/nodes-base/credentials/ClearbitApi.credentials.ts
packages/nodes-base/credentials/ClickUpApi.credentials.ts
packages/nodes-base/credentials/ClickUpOAuth2Api.credentials.ts
packages/nodes-base/credentials/ClockifyApi.credentials.ts
packages/nodes-base/credentials/CockpitApi.credentials.ts
packages/nodes-base/credentials/CodaApi.credentials.ts
packages/nodes-base/credentials/ContentfulApi.credentials.ts
packages/nodes-base/credentials/ConvertKitApi.credentials.ts
packages/nodes-base/credentials/CopperApi.credentials.ts
packages/nodes-base/credentials/CortexApi.credentials.ts
packages/nodes-base/credentials/CrateDb.credentials.ts
packages/nodes-base/credentials/CustomerIoApi.credentials.ts
packages/nodes-base/credentials/DeepLApi.credentials.ts
packages/nodes-base/credentials/DemioApi.credentials.ts
packages/nodes-base/credentials/DhlApi.credentials.ts
packages/nodes-base/credentials/DiscourseApi.credentials.ts
packages/nodes-base/credentials/DisqusApi.credentials.ts
packages/nodes-base/credentials/DriftApi.credentials.ts
packages/nodes-base/credentials/DriftOAuth2Api.credentials.ts
packages/nodes-base/credentials/DropboxApi.credentials.ts
packages/nodes-base/credentials/DropboxOAuth2Api.credentials.ts
packages/nodes-base/credentials/DropcontactApi.credentials.ts
packages/nodes-base/credentials/EgoiApi.credentials.ts
packages/nodes-base/credentials/ElasticsearchApi.credentials.ts
packages/nodes-base/credentials/ElasticSecurityApi.credentials.ts
packages/nodes-base/credentials/EmeliaApi.credentials.ts
packages/nodes-base/credentials/ERPNextApi.credentials.ts
packages/nodes-base/credentials/EventbriteApi.credentials.ts
packages/nodes-base/credentials/EventbriteOAuth2Api.credentials.ts
packages/nodes-base/credentials/FacebookGraphApi.credentials.ts
packages/nodes-base/credentials/FacebookGraphAppApi.credentials.ts
packages/nodes-base/credentials/FigmaApi.credentials.ts
packages/nodes-base/credentials/FileMaker.credentials.ts
packages/nodes-base/credentials/FlowApi.credentials.ts
packages/nodes-base/credentials/FormIoApi.credentials.ts
packages/nodes-base/credentials/FormstackApi.credentials.ts
packages/nodes-base/credentials/FormstackOAuth2Api.credentials.ts
packages/nodes-base/credentials/FreshdeskApi.credentials.ts
packages/nodes-base/credentials/FreshserviceApi.credentials.ts
packages/nodes-base/credentials/FreshworksCrmApi.credentials.ts
packages/nodes-base/credentials/Ftp.credentials.ts
packages/nodes-base/credentials/GetResponseApi.credentials.ts
packages/nodes-base/credentials/GetResponseOAuth2Api.credentials.ts
packages/nodes-base/credentials/GhostAdminApi.credentials.ts
packages/nodes-base/credentials/GhostContentApi.credentials.ts
packages/nodes-base/credentials/GithubApi.credentials.ts
packages/nodes-base/credentials/GithubOAuth2Api.credentials.ts
packages/nodes-base/credentials/GitlabApi.credentials.ts
packages/nodes-base/credentials/GitlabOAuth2Api.credentials.ts
packages/nodes-base/credentials/GitPassword.credentials.ts
packages/nodes-base/credentials/GmailOAuth2Api.credentials.ts
packages/nodes-base/credentials/Google.svg
packages/nodes-base/credentials/GoogleAnalyticsOAuth2Api.credentials.ts
packages/nodes-base/credentials/GoogleApi.credentials.ts
packages/nodes-base/credentials/GoogleBigQueryOAuth2Api.credentials.ts
packages/nodes-base/credentials/GoogleBooksOAuth2Api.credentials.ts
packages/nodes-base/credentials/GoogleCalendarOAuth2Api.credentials.ts
packages/nodes-base/credentials/GoogleCloudNaturalLanguageOAuth2Api.credentials.ts
packages/nodes-base/credentials/GoogleContactsOAuth2Api.credentials.ts
packages/nodes-base/credentials/GoogleDocsOAuth2Api.credentials.ts
packages/nodes-base/credentials/GoogleDriveOAuth2Api.credentials.ts
packages/nodes-base/credentials/GoogleFirebaseCloudFirestoreOAuth2Api.credentials.ts
packages/nodes-base/credentials/GoogleFirebaseRealtimeDatabaseOAuth2Api.credentials.ts
packages/nodes-base/credentials/GoogleOAuth2Api.credentials.ts
packages/nodes-base/credentials/GooglePerspectiveOAuth2Api.credentials.ts
packages/nodes-base/credentials/GoogleSheetsOAuth2Api.credentials.ts
packages/nodes-base/credentials/GoogleSlidesOAuth2Api.credentials.ts
packages/nodes-base/credentials/GoogleTasksOAuth2Api.credentials.ts
packages/nodes-base/credentials/GoogleTranslateOAuth2Api.credentials.ts
packages/nodes-base/credentials/GotifyApi.credentials.ts
packages/nodes-base/credentials/GoToWebinarOAuth2Api.credentials.ts
packages/nodes-base/credentials/GrafanaApi.credentials.ts
packages/nodes-base/credentials/GristApi.credentials.ts
packages/nodes-base/credentials/GSuiteAdminOAuth2Api.credentials.ts
packages/nodes-base/credentials/GumroadApi.credentials.ts
packages/nodes-base/credentials/HaloPSAApi.credentials.ts
packages/nodes-base/credentials/HarvestApi.credentials.ts
packages/nodes-base/credentials/HarvestOAuth2Api.credentials.ts
packages/nodes-base/credentials/HelpScoutOAuth2Api.credentials.ts
packages/nodes-base/credentials/HomeAssistantApi.credentials.ts
packages/nodes-base/credentials/HttpBasicAuth.credentials.ts
packages/nodes-base/credentials/HttpDigestAuth.credentials.ts
packages/nodes-base/credentials/HttpHeaderAuth.credentials.ts
packages/nodes-base/credentials/HttpQueryAuth.credentials.ts
packages/nodes-base/credentials/HubspotApi.credentials.ts
packages/nodes-base/credentials/HubspotAppToken.credentials.ts
packages/nodes-base/credentials/HubspotDeveloperApi.credentials.ts
packages/nodes-base/credentials/HubspotOAuth2Api.credentials.ts
packages/nodes-base/credentials/HumanticAiApi.credentials.ts
packages/nodes-base/credentials/HunterApi.credentials.ts
packages/nodes-base/credentials/Imap.credentials.ts
packages/nodes-base/credentials/IntercomApi.credentials.ts
packages/nodes-base/credentials/InvoiceNinjaApi.credentials.ts
packages/nodes-base/credentials/IterableApi.credentials.ts
packages/nodes-base/credentials/JenkinsApi.credentials.ts
packages/nodes-base/credentials/JiraSoftwareCloudApi.credentials.ts
packages/nodes-base/credentials/JiraSoftwareServerApi.credentials.ts
packages/nodes-base/credentials/JotFormApi.credentials.ts
packages/nodes-base/credentials/Kafka.credentials.ts
packages/nodes-base/credentials/KeapOAuth2Api.credentials.ts
packages/nodes-base/credentials/KitemakerApi.credentials.ts
packages/nodes-base/credentials/KoBoToolboxApi.credentials.ts
packages/nodes-base/credentials/LemlistApi.credentials.ts
packages/nodes-base/credentials/LinearApi.credentials.ts
packages/nodes-base/credentials/LineNotifyOAuth2Api.credentials.ts
packages/nodes-base/credentials/LingvaNexApi.credentials.ts
packages/nodes-base/credentials/LinkedInOAuth2Api.credentials.ts
packages/nodes-base/credentials/Magento2Api.credentials.ts
packages/nodes-base/credentials/MailcheckApi.credentials.ts
packages/nodes-base/credentials/MailchimpApi.credentials.ts
packages/nodes-base/credentials/MailchimpOAuth2Api.credentials.ts
packages/nodes-base/credentials/MailerLiteApi.credentials.ts
packages/nodes-base/credentials/MailgunApi.credentials.ts
packages/nodes-base/credentials/MailjetEmailApi.credentials.ts
packages/nodes-base/credentials/MailjetSmsApi.credentials.ts
packages/nodes-base/credentials/MandrillApi.credentials.ts
packages/nodes-base/credentials/MarketstackApi.credentials.ts
packages/nodes-base/credentials/MatrixApi.credentials.ts
packages/nodes-base/credentials/MattermostApi.credentials.ts
packages/nodes-base/credentials/MauticApi.credentials.ts
packages/nodes-base/credentials/MauticOAuth2Api.credentials.ts
packages/nodes-base/credentials/MediumApi.credentials.ts
packages/nodes-base/credentials/MediumOAuth2Api.credentials.ts
packages/nodes-base/credentials/MessageBirdApi.credentials.ts
packages/nodes-base/credentials/Microsoft.svg
packages/nodes-base/credentials/MicrosoftDynamicsOAuth2Api.credentials.ts
packages/nodes-base/credentials/MicrosoftExcelOAuth2Api.credentials.ts
packages/nodes-base/credentials/MicrosoftGraphSecurityOAuth2Api.credentials.ts
packages/nodes-base/credentials/MicrosoftOAuth2Api.credentials.ts
packages/nodes-base/credentials/MicrosoftOneDriveOAuth2Api.credentials.ts
packages/nodes-base/credentials/MicrosoftOutlookOAuth2Api.credentials.ts
packages/nodes-base/credentials/MicrosoftSql.credentials.ts
packages/nodes-base/credentials/MicrosoftTeamsOAuth2Api.credentials.ts
packages/nodes-base/credentials/MicrosoftToDoOAuth2Api.credentials.ts
packages/nodes-base/credentials/MindeeInvoiceApi.credentials.ts
packages/nodes-base/credentials/MindeeReceiptApi.credentials.ts
packages/nodes-base/credentials/MispApi.credentials.ts
packages/nodes-base/credentials/MoceanApi.credentials.ts
packages/nodes-base/credentials/MondayComApi.credentials.ts
packages/nodes-base/credentials/MondayComOAuth2Api.credentials.ts
packages/nodes-base/credentials/MongoDb.credentials.ts
packages/nodes-base/credentials/MonicaCrmApi.credentials.ts
packages/nodes-base/credentials/Mqtt.credentials.ts
packages/nodes-base/credentials/Msg91Api.credentials.ts
packages/nodes-base/credentials/MySql.credentials.ts
packages/nodes-base/credentials/NasaApi.credentials.ts
packages/nodes-base/credentials/NetlifyApi.credentials.ts
packages/nodes-base/credentials/NetlifyOAuth2Api.credentials.ts
packages/nodes-base/credentials/NextCloudApi.credentials.ts
packages/nodes-base/credentials/NextCloudOAuth2Api.credentials.ts
packages/nodes-base/credentials/NocoDb.credentials.ts
packages/nodes-base/credentials/NotionApi.credentials.ts
packages/nodes-base/credentials/NotionOAuth2Api.credentials.ts
packages/nodes-base/credentials/OAuth1Api.credentials.ts
packages/nodes-base/credentials/OAuth2Api.credentials.ts
packages/nodes-base/credentials/OdooApi.credentials.ts
packages/nodes-base/credentials/OneSimpleApi.credentials.ts
packages/nodes-base/credentials/OnfleetApi.credentials.ts
packages/nodes-base/credentials/OpenWeatherMapApi.credentials.ts
packages/nodes-base/credentials/OrbitApi.credentials.ts
packages/nodes-base/credentials/OuraApi.credentials.ts
packages/nodes-base/credentials/PaddleApi.credentials.ts
packages/nodes-base/credentials/PagerDutyApi.credentials.ts
packages/nodes-base/credentials/PagerDutyOAuth2Api.credentials.ts
packages/nodes-base/credentials/PayPalApi.credentials.ts
packages/nodes-base/credentials/PeekalinkApi.credentials.ts
packages/nodes-base/credentials/PhantombusterApi.credentials.ts
packages/nodes-base/credentials/PhilipsHueOAuth2Api.credentials.ts
packages/nodes-base/credentials/PipedriveApi.credentials.ts
packages/nodes-base/credentials/PipedriveOAuth2Api.credentials.ts
packages/nodes-base/credentials/PlivoApi.credentials.ts
packages/nodes-base/credentials/Postgres.credentials.ts
packages/nodes-base/credentials/PostHogApi.credentials.ts
packages/nodes-base/credentials/PostmarkApi.credentials.ts
packages/nodes-base/credentials/ProfitWellApi.credentials.ts
packages/nodes-base/credentials/PushbulletOAuth2Api.credentials.ts
packages/nodes-base/credentials/PushcutApi.credentials.ts
packages/nodes-base/credentials/PushoverApi.credentials.ts
packages/nodes-base/credentials/QuestDb.credentials.ts
packages/nodes-base/credentials/QuickBaseApi.credentials.ts
packages/nodes-base/credentials/QuickBooksOAuth2Api.credentials.ts
packages/nodes-base/credentials/RabbitMQ.credentials.ts
packages/nodes-base/credentials/RaindropOAuth2Api.credentials.ts
packages/nodes-base/credentials/RedditOAuth2Api.credentials.ts
packages/nodes-base/credentials/Redis.credentials.ts
packages/nodes-base/credentials/RocketchatApi.credentials.ts
packages/nodes-base/credentials/RundeckApi.credentials.ts
packages/nodes-base/credentials/S3.credentials.ts
packages/nodes-base/credentials/SalesforceJwtApi.credentials.ts
packages/nodes-base/credentials/SalesforceOAuth2Api.credentials.ts
packages/nodes-base/credentials/SalesmateApi.credentials.ts
packages/nodes-base/credentials/SeaTableApi.credentials.ts
packages/nodes-base/credentials/SecurityScorecardApi.credentials.ts
packages/nodes-base/credentials/SegmentApi.credentials.ts
packages/nodes-base/credentials/SendGridApi.credentials.ts
packages/nodes-base/credentials/SendyApi.credentials.ts
packages/nodes-base/credentials/SentryIoApi.credentials.ts
packages/nodes-base/credentials/SentryIoOAuth2Api.credentials.ts
packages/nodes-base/credentials/SentryIoServerApi.credentials.ts
packages/nodes-base/credentials/ServiceNowBasicApi.credentials.ts
packages/nodes-base/credentials/ServiceNowOAuth2Api.credentials.ts
packages/nodes-base/credentials/Sftp.credentials.ts
packages/nodes-base/credentials/ShopifyApi.credentials.ts
packages/nodes-base/credentials/Signl4Api.credentials.ts
packages/nodes-base/credentials/SlackApi.credentials.ts
packages/nodes-base/credentials/SlackOAuth2Api.credentials.ts
packages/nodes-base/credentials/Sms77Api.credentials.ts
packages/nodes-base/credentials/Smtp.credentials.ts
packages/nodes-base/credentials/Snowflake.credentials.ts
packages/nodes-base/credentials/SplunkApi.credentials.ts
packages/nodes-base/credentials/SpontitApi.credentials.ts
packages/nodes-base/credentials/SpotifyOAuth2Api.credentials.ts
packages/nodes-base/credentials/SshPassword.credentials.ts
packages/nodes-base/credentials/SshPrivateKey.credentials.ts
packages/nodes-base/credentials/StackbyApi.credentials.ts
packages/nodes-base/credentials/StoryblokContentApi.credentials.ts
packages/nodes-base/credentials/StoryblokManagementApi.credentials.ts
packages/nodes-base/credentials/StrapiApi.credentials.ts
packages/nodes-base/credentials/StravaOAuth2Api.credentials.ts
packages/nodes-base/credentials/StripeApi.credentials.ts
packages/nodes-base/credentials/SupabaseApi.credentials.ts
packages/nodes-base/credentials/SurveyMonkeyApi.credentials.ts
packages/nodes-base/credentials/SurveyMonkeyOAuth2Api.credentials.ts
packages/nodes-base/credentials/SyncroMspApi.credentials.ts
packages/nodes-base/credentials/TaigaApi.credentials.ts
packages/nodes-base/credentials/TapfiliateApi.credentials.ts
packages/nodes-base/credentials/TelegramApi.credentials.ts
packages/nodes-base/credentials/TheHiveApi.credentials.ts
packages/nodes-base/credentials/TimescaleDb.credentials.ts
packages/nodes-base/credentials/TodoistApi.credentials.ts
packages/nodes-base/credentials/TodoistOAuth2Api.credentials.ts
packages/nodes-base/credentials/TogglApi.credentials.ts
packages/nodes-base/credentials/TravisCiApi.credentials.ts
packages/nodes-base/credentials/TrelloApi.credentials.ts
packages/nodes-base/credentials/TwakeCloudApi.credentials.ts
packages/nodes-base/credentials/TwakeServerApi.credentials.ts
packages/nodes-base/credentials/TwilioApi.credentials.ts
packages/nodes-base/credentials/TwistOAuth2Api.credentials.ts
packages/nodes-base/credentials/TwitterOAuth1Api.credentials.ts
packages/nodes-base/credentials/TypeformApi.credentials.ts
packages/nodes-base/credentials/TypeformOAuth2Api.credentials.ts
packages/nodes-base/credentials/UnleashedSoftwareApi.credentials.ts
packages/nodes-base/credentials/UpleadApi.credentials.ts
packages/nodes-base/credentials/UProcApi.credentials.ts
packages/nodes-base/credentials/UptimeRobotApi.credentials.ts
packages/nodes-base/credentials/UrlScanIoApi.credentials.ts
packages/nodes-base/credentials/VeroApi.credentials.ts
packages/nodes-base/credentials/VonageApi.credentials.ts
packages/nodes-base/credentials/WebflowApi.credentials.ts
packages/nodes-base/credentials/WebflowOAuth2Api.credentials.ts
packages/nodes-base/credentials/WekanApi.credentials.ts
packages/nodes-base/credentials/WiseApi.credentials.ts
packages/nodes-base/credentials/WooCommerceApi.credentials.ts
packages/nodes-base/credentials/WordpressApi.credentials.ts
packages/nodes-base/credentials/WorkableApi.credentials.ts
packages/nodes-base/credentials/WufooApi.credentials.ts
packages/nodes-base/credentials/XeroOAuth2Api.credentials.ts
packages/nodes-base/credentials/YourlsApi.credentials.ts
packages/nodes-base/credentials/YouTubeOAuth2Api.credentials.ts
packages/nodes-base/credentials/ZammadBasicAuthApi.credentials.ts
packages/nodes-base/credentials/ZammadTokenAuthApi.credentials.ts
packages/nodes-base/credentials/ZendeskApi.credentials.ts
packages/nodes-base/credentials/ZendeskOAuth2Api.credentials.ts
packages/nodes-base/credentials/ZohoOAuth2Api.credentials.ts
packages/nodes-base/credentials/ZoomApi.credentials.ts
packages/nodes-base/credentials/ZoomOAuth2Api.credentials.ts
packages/nodes-base/credentials/ZulipApi.credentials.ts

View file

@ -5,7 +5,10 @@ export class NodeVersionedType implements INodeVersionedType {
nodeVersions: INodeVersionedType['nodeVersions']; nodeVersions: INodeVersionedType['nodeVersions'];
description: INodeTypeBaseDescription; description: INodeTypeBaseDescription;
constructor(nodeVersions: INodeVersionedType['nodeVersions'], description: INodeTypeBaseDescription) { constructor(
nodeVersions: INodeVersionedType['nodeVersions'],
description: INodeTypeBaseDescription,
) {
this.nodeVersions = nodeVersions; this.nodeVersions = nodeVersions;
this.currentVersion = description.defaultVersion ?? this.getLatestVersion(); this.currentVersion = description.defaultVersion ?? this.getLatestVersion();
this.description = description; this.description = description;

View file

@ -1,9 +1,9 @@
const PostgresFun = require('../../../nodes/Postgres/Postgres.node.functions') const PostgresFun = require('../../../nodes/Postgres/Postgres.node.functions');
const pgPromise = require('pg-promise'); const pgPromise = require('pg-promise');
describe('pgUpdate', () => { describe('pgUpdate', () => {
it('runs query to update db', async () => { it('runs query to update db', async () => {
const updateItem = {id: 1234, name: 'test'}; const updateItem = { id: 1234, name: 'test' };
const nodeParams = { const nodeParams = {
table: 'mytable', table: 'mytable',
schema: 'myschema', schema: 'myschema',
@ -15,21 +15,23 @@ describe('pgUpdate', () => {
const getNodeParam = (key) => nodeParams[key]; const getNodeParam = (key) => nodeParams[key];
const pgp = pgPromise(); const pgp = pgPromise();
const any = jest.fn(); const any = jest.fn();
const db = {any}; const db = { any };
const items = [ const items = [
{ {
json: updateItem json: updateItem,
} },
]; ];
await PostgresFun.pgUpdate(getNodeParam, pgp, db, items) await PostgresFun.pgUpdate(getNodeParam, pgp, db, items);
expect(db.any).toHaveBeenCalledWith(`update \"myschema\".\"mytable\" as t set \"id\"=v.\"id\",\"name\"=v.\"name\" from (values(1234,'test')) as v(\"id\",\"name\") WHERE v.\"id\" = t.\"id\" RETURNING *`); expect(db.any).toHaveBeenCalledWith(
`update \"myschema\".\"mytable\" as t set \"id\"=v.\"id\",\"name\"=v.\"name\" from (values(1234,'test')) as v(\"id\",\"name\") WHERE v.\"id\" = t.\"id\" RETURNING *`,
);
}); });
it('runs query to update db if updateKey is not in columns', async () => { it('runs query to update db if updateKey is not in columns', async () => {
const updateItem = {id: 1234, name: 'test'}; const updateItem = { id: 1234, name: 'test' };
const nodeParams = { const nodeParams = {
table: 'mytable', table: 'mytable',
schema: 'myschema', schema: 'myschema',
@ -41,21 +43,23 @@ describe('pgUpdate', () => {
const getNodeParam = (key) => nodeParams[key]; const getNodeParam = (key) => nodeParams[key];
const pgp = pgPromise(); const pgp = pgPromise();
const any = jest.fn(); const any = jest.fn();
const db = {any}; const db = { any };
const items = [ const items = [
{ {
json: updateItem json: updateItem,
} },
]; ];
const results = await PostgresFun.pgUpdate(getNodeParam, pgp, db, items) const results = await PostgresFun.pgUpdate(getNodeParam, pgp, db, items);
expect(db.any).toHaveBeenCalledWith(`update \"myschema\".\"mytable\" as t set \"id\"=v.\"id\",\"name\"=v.\"name\" from (values(1234,'test')) as v(\"id\",\"name\") WHERE v.\"id\" = t.\"id\" RETURNING *`); expect(db.any).toHaveBeenCalledWith(
`update \"myschema\".\"mytable\" as t set \"id\"=v.\"id\",\"name\"=v.\"name\" from (values(1234,'test')) as v(\"id\",\"name\") WHERE v.\"id\" = t.\"id\" RETURNING *`,
);
}); });
it('runs query to update db with cast as updateKey', async () => { it('runs query to update db with cast as updateKey', async () => {
const updateItem = {id: '1234', name: 'test'}; const updateItem = { id: '1234', name: 'test' };
const nodeParams = { const nodeParams = {
table: 'mytable', table: 'mytable',
schema: 'myschema', schema: 'myschema',
@ -67,21 +71,23 @@ describe('pgUpdate', () => {
const getNodeParam = (key) => nodeParams[key]; const getNodeParam = (key) => nodeParams[key];
const pgp = pgPromise(); const pgp = pgPromise();
const any = jest.fn(); const any = jest.fn();
const db = {any}; const db = { any };
const items = [ const items = [
{ {
json: updateItem json: updateItem,
} },
]; ];
await PostgresFun.pgUpdate(getNodeParam, pgp, db, items) await PostgresFun.pgUpdate(getNodeParam, pgp, db, items);
expect(db.any).toHaveBeenCalledWith(`update \"myschema\".\"mytable\" as t set \"id\"=v.\"id\",\"name\"=v.\"name\" from (values('1234'::uuid,'test')) as v(\"id\",\"name\") WHERE v.\"id\" = t.\"id\" RETURNING *`); expect(db.any).toHaveBeenCalledWith(
`update \"myschema\".\"mytable\" as t set \"id\"=v.\"id\",\"name\"=v.\"name\" from (values('1234'::uuid,'test')) as v(\"id\",\"name\") WHERE v.\"id\" = t.\"id\" RETURNING *`,
);
}); });
it('runs query to update db with cast in target columns', async () => { it('runs query to update db with cast in target columns', async () => {
const updateItem = {id: '1234', name: 'test'}; const updateItem = { id: '1234', name: 'test' };
const nodeParams = { const nodeParams = {
table: 'mytable', table: 'mytable',
schema: 'myschema', schema: 'myschema',
@ -93,25 +99,25 @@ describe('pgUpdate', () => {
const getNodeParam = (key) => nodeParams[key]; const getNodeParam = (key) => nodeParams[key];
const pgp = pgPromise(); const pgp = pgPromise();
const any = jest.fn(); const any = jest.fn();
const db = {any}; const db = { any };
const items = [ const items = [
{ {
json: updateItem json: updateItem,
} },
]; ];
await PostgresFun.pgUpdate(getNodeParam, pgp, db, items) await PostgresFun.pgUpdate(getNodeParam, pgp, db, items);
expect(db.any).toHaveBeenCalledWith(`update \"myschema\".\"mytable\" as t set \"id\"=v.\"id\",\"name\"=v.\"name\" from (values('1234'::uuid,'test')) as v(\"id\",\"name\") WHERE v.\"id\" = t.\"id\" RETURNING *`); expect(db.any).toHaveBeenCalledWith(
`update \"myschema\".\"mytable\" as t set \"id\"=v.\"id\",\"name\"=v.\"name\" from (values('1234'::uuid,'test')) as v(\"id\",\"name\") WHERE v.\"id\" = t.\"id\" RETURNING *`,
);
}); });
}); });
describe('pgInsert', () => { describe('pgInsert', () => {
it('runs query to insert', async () => { it('runs query to insert', async () => {
const insertItem = {id: 1234, name: 'test', age: 34}; const insertItem = { id: 1234, name: 'test', age: 34 };
const nodeParams = { const nodeParams = {
table: 'mytable', table: 'mytable',
schema: 'myschema', schema: 'myschema',
@ -122,7 +128,7 @@ describe('pgInsert', () => {
const getNodeParam = (key) => nodeParams[key]; const getNodeParam = (key) => nodeParams[key];
const pgp = pgPromise(); const pgp = pgPromise();
const any = jest.fn(); const any = jest.fn();
const db = {any}; const db = { any };
const items = [ const items = [
{ {
@ -132,11 +138,13 @@ describe('pgInsert', () => {
await PostgresFun.pgInsert(getNodeParam, pgp, db, items); await PostgresFun.pgInsert(getNodeParam, pgp, db, items);
expect(db.any).toHaveBeenCalledWith(`insert into \"myschema\".\"mytable\"(\"id\",\"name\",\"age\") values(1234,'test',34) RETURNING *`); expect(db.any).toHaveBeenCalledWith(
`insert into \"myschema\".\"mytable\"(\"id\",\"name\",\"age\") values(1234,'test',34) RETURNING *`,
);
}); });
it('runs query to insert with type casting', async () => { it('runs query to insert with type casting', async () => {
const insertItem = {id: 1234, name: 'test', age: 34}; const insertItem = { id: 1234, name: 'test', age: 34 };
const nodeParams = { const nodeParams = {
table: 'mytable', table: 'mytable',
schema: 'myschema', schema: 'myschema',
@ -147,7 +155,7 @@ describe('pgInsert', () => {
const getNodeParam = (key) => nodeParams[key]; const getNodeParam = (key) => nodeParams[key];
const pgp = pgPromise(); const pgp = pgPromise();
const any = jest.fn(); const any = jest.fn();
const db = {any}; const db = { any };
const items = [ const items = [
{ {
@ -157,6 +165,8 @@ describe('pgInsert', () => {
await PostgresFun.pgInsert(getNodeParam, pgp, db, items); await PostgresFun.pgInsert(getNodeParam, pgp, db, items);
expect(db.any).toHaveBeenCalledWith(`insert into \"myschema\".\"mytable\"(\"id\",\"name\",\"age\") values(1234::int,'test'::text,34) RETURNING *`); expect(db.any).toHaveBeenCalledWith(
`insert into \"myschema\".\"mytable\"(\"id\",\"name\",\"age\") values(1234::int,'test'::text,34) RETURNING *`,
);
}); });
}); });

View file

@ -1,4 +1,4 @@
const helpers = require("../../../nodes/Stripe/helpers"); const helpers = require('../../../nodes/Stripe/helpers');
describe('adjustMetadata', () => { describe('adjustMetadata', () => {
it('it should adjust multiple metadata values', async () => { it('it should adjust multiple metadata values', async () => {
@ -6,25 +6,25 @@ describe('adjustMetadata', () => {
metadata: { metadata: {
metadataProperties: [ metadataProperties: [
{ {
key: "keyA", key: 'keyA',
value: "valueA" value: 'valueA',
}, },
{ {
key: "keyB", key: 'keyB',
value: "valueB" value: 'valueB',
}, },
], ],
}, },
} };
const adjustedMetadata = helpers.adjustMetadata(additionalFieldsValues) const adjustedMetadata = helpers.adjustMetadata(additionalFieldsValues);
const expectedAdjustedMetadata = { const expectedAdjustedMetadata = {
metadata: { metadata: {
keyA: "valueA", keyA: 'valueA',
keyB: "valueB" keyB: 'valueB',
} },
} };
expect(adjustedMetadata).toStrictEqual(expectedAdjustedMetadata) expect(adjustedMetadata).toStrictEqual(expectedAdjustedMetadata);
}); });
}); });