n8n-nodes-base 1.15.1 → 1.17.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/AlienVaultApi.credentials.d.ts +5 -0
- package/dist/credentials/AlienVaultApi.credentials.js +5 -0
- package/dist/credentials/AlienVaultApi.credentials.js.map +1 -1
- package/dist/credentials/Auth0ManagementApi.credentials.d.ts +5 -0
- package/dist/credentials/Auth0ManagementApi.credentials.js +5 -0
- package/dist/credentials/Auth0ManagementApi.credentials.js.map +1 -1
- package/dist/credentials/CarbonBlackApi.credentials.d.ts +5 -0
- package/dist/credentials/CarbonBlackApi.credentials.js +5 -0
- package/dist/credentials/CarbonBlackApi.credentials.js.map +1 -1
- package/dist/credentials/CiscoMerakiApi.credentials.d.ts +5 -0
- package/dist/credentials/CiscoMerakiApi.credentials.js +5 -0
- package/dist/credentials/CiscoMerakiApi.credentials.js.map +1 -1
- package/dist/credentials/CiscoSecureEndpointApi.credentials.d.ts +5 -0
- package/dist/credentials/CiscoSecureEndpointApi.credentials.js +5 -0
- package/dist/credentials/CiscoSecureEndpointApi.credentials.js.map +1 -1
- package/dist/credentials/CiscoUmbrellaApi.credentials.d.ts +5 -0
- package/dist/credentials/CiscoUmbrellaApi.credentials.js +5 -0
- package/dist/credentials/CiscoUmbrellaApi.credentials.js.map +1 -1
- package/dist/credentials/CrowdStrikeOAuth2Api.credentials.d.ts +5 -0
- package/dist/credentials/CrowdStrikeOAuth2Api.credentials.js +5 -0
- package/dist/credentials/CrowdStrikeOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/DiscordBotApi.credentials.d.ts +9 -0
- package/dist/credentials/DiscordBotApi.credentials.js +38 -0
- package/dist/credentials/DiscordBotApi.credentials.js.map +1 -0
- package/dist/credentials/DiscordOAuth2Api.credentials.d.ts +8 -0
- package/dist/credentials/DiscordOAuth2Api.credentials.js +57 -0
- package/dist/credentials/DiscordOAuth2Api.credentials.js.map +1 -0
- package/dist/credentials/DiscordWebhookApi.credentials.d.ts +7 -0
- package/dist/credentials/DiscordWebhookApi.credentials.js +25 -0
- package/dist/credentials/DiscordWebhookApi.credentials.js.map +1 -0
- package/dist/credentials/F5BigIpApi.credentials.d.ts +5 -0
- package/dist/credentials/F5BigIpApi.credentials.js +5 -0
- package/dist/credentials/F5BigIpApi.credentials.js.map +1 -1
- package/dist/credentials/FacebookLeadAdsOAuth2Api.credentials.js +1 -1
- package/dist/credentials/FacebookLeadAdsOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/FortiGateApi.credentials.d.ts +5 -0
- package/dist/credentials/FortiGateApi.credentials.js +5 -0
- package/dist/credentials/FortiGateApi.credentials.js.map +1 -1
- package/dist/credentials/HybridAnalysisApi.credentials.d.ts +5 -0
- package/dist/credentials/HybridAnalysisApi.credentials.js +5 -0
- package/dist/credentials/HybridAnalysisApi.credentials.js.map +1 -1
- package/dist/credentials/ImpervaWafApi.credentials.d.ts +5 -0
- package/dist/credentials/ImpervaWafApi.credentials.js +5 -0
- package/dist/credentials/ImpervaWafApi.credentials.js.map +1 -1
- package/dist/credentials/KibanaApi.credentials.d.ts +5 -0
- package/dist/credentials/KibanaApi.credentials.js +5 -0
- package/dist/credentials/KibanaApi.credentials.js.map +1 -1
- package/dist/credentials/MistApi.credentials.d.ts +5 -0
- package/dist/credentials/MistApi.credentials.js +5 -0
- package/dist/credentials/MistApi.credentials.js.map +1 -1
- package/dist/credentials/OktaApi.credentials.d.ts +5 -0
- package/dist/credentials/OktaApi.credentials.js +5 -0
- package/dist/credentials/OktaApi.credentials.js.map +1 -1
- package/dist/credentials/OpenCTIApi.credentials.d.ts +5 -0
- package/dist/credentials/OpenCTIApi.credentials.js +5 -0
- package/dist/credentials/OpenCTIApi.credentials.js.map +1 -1
- package/dist/credentials/QRadarApi.credentials.d.ts +5 -0
- package/dist/credentials/QRadarApi.credentials.js +5 -0
- package/dist/credentials/QRadarApi.credentials.js.map +1 -1
- package/dist/credentials/QualysApi.credentials.d.ts +5 -0
- package/dist/credentials/QualysApi.credentials.js +5 -0
- package/dist/credentials/QualysApi.credentials.js.map +1 -1
- package/dist/credentials/RecordedFutureApi.credentials.d.ts +5 -0
- package/dist/credentials/RecordedFutureApi.credentials.js +5 -0
- package/dist/credentials/RecordedFutureApi.credentials.js.map +1 -1
- package/dist/credentials/SekoiaApi.credentials.d.ts +5 -0
- package/dist/credentials/SekoiaApi.credentials.js +5 -0
- package/dist/credentials/SekoiaApi.credentials.js.map +1 -1
- package/dist/credentials/ShufflerApi.credentials.d.ts +5 -0
- package/dist/credentials/ShufflerApi.credentials.js +5 -0
- package/dist/credentials/ShufflerApi.credentials.js.map +1 -1
- package/dist/credentials/TrellixEpoApi.credentials.d.ts +5 -0
- package/dist/credentials/TrellixEpoApi.credentials.js +5 -0
- package/dist/credentials/TrellixEpoApi.credentials.js.map +1 -1
- package/dist/credentials/TwakeServerApi.credentials.d.ts +6 -0
- package/dist/credentials/TwakeServerApi.credentials.js +6 -0
- package/dist/credentials/TwakeServerApi.credentials.js.map +1 -1
- package/dist/credentials/VenafiTlsProtectCloudApi.credentials.js +17 -1
- package/dist/credentials/VenafiTlsProtectCloudApi.credentials.js.map +1 -1
- package/dist/credentials/VirusTotalApi.credentials.d.ts +5 -0
- package/dist/credentials/VirusTotalApi.credentials.js +6 -1
- package/dist/credentials/VirusTotalApi.credentials.js.map +1 -1
- package/dist/credentials/ZscalerZiaApi.credentials.d.ts +5 -0
- package/dist/credentials/ZscalerZiaApi.credentials.js +5 -0
- package/dist/credentials/ZscalerZiaApi.credentials.js.map +1 -1
- package/dist/credentials/icons/Twake.png +0 -0
- package/dist/known/credentials.json +505 -383
- package/dist/methods/defined.json +21 -17
- package/dist/methods/referenced.json +27 -23
- package/dist/nodes/Brevo/BrevoTrigger.node.js +3 -0
- package/dist/nodes/Brevo/BrevoTrigger.node.js.map +1 -1
- package/dist/nodes/ClickUp/ClickUp.node.js +1 -1
- package/dist/nodes/ClickUp/ClickUp.node.js.map +1 -1
- package/dist/nodes/Crypto/Crypto.node.js +0 -1
- package/dist/nodes/Crypto/Crypto.node.js.map +1 -1
- package/dist/nodes/DateTime/DateTime.node.js.map +1 -1
- package/dist/nodes/DateTime/V2/AddToDateDescription.js +14 -0
- package/dist/nodes/DateTime/V2/AddToDateDescription.js.map +1 -1
- package/dist/nodes/DateTime/V2/CurrentDateDescription.js +2 -0
- package/dist/nodes/DateTime/V2/CurrentDateDescription.js.map +1 -1
- package/dist/nodes/DateTime/V2/DateTimeV2.node.js +109 -99
- package/dist/nodes/DateTime/V2/DateTimeV2.node.js.map +1 -1
- package/dist/nodes/DateTime/V2/ExtractDateDescription.js +14 -0
- package/dist/nodes/DateTime/V2/ExtractDateDescription.js.map +1 -1
- package/dist/nodes/DateTime/V2/FormatDateDescription.js +10 -0
- package/dist/nodes/DateTime/V2/FormatDateDescription.js.map +1 -1
- package/dist/nodes/DateTime/V2/GenericFunctions.d.ts +4 -1
- package/dist/nodes/DateTime/V2/GenericFunctions.js +9 -3
- package/dist/nodes/DateTime/V2/GenericFunctions.js.map +1 -1
- package/dist/nodes/DateTime/V2/GetTimeBetweenDates.js +2 -0
- package/dist/nodes/DateTime/V2/GetTimeBetweenDates.js.map +1 -1
- package/dist/nodes/DateTime/V2/RoundDateDescription.js +14 -0
- package/dist/nodes/DateTime/V2/RoundDateDescription.js.map +1 -1
- package/dist/nodes/DateTime/V2/SubtractFromDateDescription.js +14 -0
- package/dist/nodes/DateTime/V2/SubtractFromDateDescription.js.map +1 -1
- package/dist/nodes/DateTime/V2/common.descriptions.d.ts +2 -0
- package/dist/nodes/DateTime/V2/common.descriptions.js +11 -0
- package/dist/nodes/DateTime/V2/common.descriptions.js.map +1 -0
- package/dist/nodes/DateTime/test/node/workflow.includeInputFields_v2.json +420 -0
- package/dist/nodes/DebugHelper/DebugHelper.node.json +2 -1
- package/dist/nodes/Discord/Discord.node.d.ts +3 -4
- package/dist/nodes/Discord/Discord.node.js +10 -235
- package/dist/nodes/Discord/Discord.node.js.map +1 -1
- package/dist/nodes/Discord/test/v2/node/channel/create.workflow.json +106 -0
- package/dist/nodes/Discord/test/v2/node/channel/deleteChannel.workflow.json +112 -0
- package/dist/nodes/Discord/test/v2/node/channel/get.workflow.json +113 -0
- package/dist/nodes/Discord/test/v2/node/channel/getAll.workflow.json +191 -0
- package/dist/nodes/Discord/test/v2/node/channel/update.workflow.json +126 -0
- package/dist/nodes/Discord/test/v2/node/member/getAll.workflow.json +134 -0
- package/dist/nodes/Discord/test/v2/node/member/roleAdd.workflow.json +104 -0
- package/dist/nodes/Discord/test/v2/node/member/roleRemove.workflow.json +106 -0
- package/dist/nodes/Discord/test/v2/node/message/deleteMessage.workflow.json +103 -0
- package/dist/nodes/Discord/test/v2/node/message/get.workflow.json +125 -0
- package/dist/nodes/Discord/test/v2/node/message/getAll.workflow.json +144 -0
- package/dist/nodes/Discord/test/v2/node/message/react.workflow.json +104 -0
- package/dist/nodes/Discord/test/v2/node/message/send.workflow.json +155 -0
- package/dist/nodes/Discord/test/v2/node/webhook/sendLegacy.workflow.json +141 -0
- package/dist/nodes/Discord/v1/DiscordV1.node.d.ts +6 -0
- package/dist/nodes/Discord/v1/DiscordV1.node.js +256 -0
- package/dist/nodes/Discord/v1/DiscordV1.node.js.map +1 -0
- package/dist/nodes/Discord/v1/Interfaces.js.map +1 -0
- package/dist/nodes/Discord/v2/DiscordV2.node.d.ts +11 -0
- package/dist/nodes/Discord/v2/DiscordV2.node.js +23 -0
- package/dist/nodes/Discord/v2/DiscordV2.node.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/channel/create.operation.d.ts +25 -0
- package/dist/nodes/Discord/v2/actions/channel/create.operation.js +181 -0
- package/dist/nodes/Discord/v2/actions/channel/create.operation.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/channel/deleteChannel.operation.d.ts +25 -0
- package/dist/nodes/Discord/v2/actions/channel/deleteChannel.operation.js +42 -0
- package/dist/nodes/Discord/v2/actions/channel/deleteChannel.operation.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/channel/get.operation.d.ts +25 -0
- package/dist/nodes/Discord/v2/actions/channel/get.operation.js +42 -0
- package/dist/nodes/Discord/v2/actions/channel/get.operation.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/channel/getAll.operation.d.ts +25 -0
- package/dist/nodes/Discord/v2/actions/channel/getAll.operation.js +77 -0
- package/dist/nodes/Discord/v2/actions/channel/getAll.operation.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/channel/index.d.ts +8 -0
- package/dist/nodes/Discord/v2/actions/channel/index.js +99 -0
- package/dist/nodes/Discord/v2/actions/channel/index.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/channel/update.operation.d.ts +25 -0
- package/dist/nodes/Discord/v2/actions/channel/update.operation.js +128 -0
- package/dist/nodes/Discord/v2/actions/channel/update.operation.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/common.description.d.ts +12 -0
- package/dist/nodes/Discord/v2/actions/common.description.js +447 -0
- package/dist/nodes/Discord/v2/actions/common.description.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/member/getAll.operation.d.ts +25 -0
- package/dist/nodes/Discord/v2/actions/member/getAll.operation.js +86 -0
- package/dist/nodes/Discord/v2/actions/member/getAll.operation.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/member/index.d.ts +6 -0
- package/dist/nodes/Discord/v2/actions/member/index.js +81 -0
- package/dist/nodes/Discord/v2/actions/member/index.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/member/roleAdd.operation.d.ts +25 -0
- package/dist/nodes/Discord/v2/actions/member/roleAdd.operation.js +46 -0
- package/dist/nodes/Discord/v2/actions/member/roleAdd.operation.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/member/roleRemove.operation.d.ts +25 -0
- package/dist/nodes/Discord/v2/actions/member/roleRemove.operation.js +46 -0
- package/dist/nodes/Discord/v2/actions/member/roleRemove.operation.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/message/deleteMessage.operation.d.ts +25 -0
- package/dist/nodes/Discord/v2/actions/message/deleteMessage.operation.js +43 -0
- package/dist/nodes/Discord/v2/actions/message/deleteMessage.operation.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/message/get.operation.d.ts +25 -0
- package/dist/nodes/Discord/v2/actions/message/get.operation.js +66 -0
- package/dist/nodes/Discord/v2/actions/message/get.operation.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/message/getAll.operation.d.ts +25 -0
- package/dist/nodes/Discord/v2/actions/message/getAll.operation.js +84 -0
- package/dist/nodes/Discord/v2/actions/message/getAll.operation.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/message/index.d.ts +8 -0
- package/dist/nodes/Discord/v2/actions/message/index.js +99 -0
- package/dist/nodes/Discord/v2/actions/message/index.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/message/react.operation.d.ts +25 -0
- package/dist/nodes/Discord/v2/actions/message/react.operation.js +55 -0
- package/dist/nodes/Discord/v2/actions/message/react.operation.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/message/send.operation.d.ts +25 -0
- package/dist/nodes/Discord/v2/actions/message/send.operation.js +170 -0
- package/dist/nodes/Discord/v2/actions/message/send.operation.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/node.type.d.ts +9 -0
- package/dist/nodes/Discord/v2/actions/node.type.js +3 -0
- package/dist/nodes/Discord/v2/actions/node.type.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/router.d.ts +2 -0
- package/dist/nodes/Discord/v2/actions/router.js +77 -0
- package/dist/nodes/Discord/v2/actions/router.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/Discord/v2/actions/versionDescription.js +128 -0
- package/dist/nodes/Discord/v2/actions/versionDescription.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/webhook/index.d.ts +4 -0
- package/dist/nodes/Discord/v2/actions/webhook/index.js +52 -0
- package/dist/nodes/Discord/v2/actions/webhook/index.js.map +1 -0
- package/dist/nodes/Discord/v2/actions/webhook/sendLegacy.operation.d.ts +25 -0
- package/dist/nodes/Discord/v2/actions/webhook/sendLegacy.operation.js +136 -0
- package/dist/nodes/Discord/v2/actions/webhook/sendLegacy.operation.js.map +1 -0
- package/dist/nodes/Discord/v2/helpers/utils.d.ts +12 -0
- package/dist/nodes/Discord/v2/helpers/utils.js +227 -0
- package/dist/nodes/Discord/v2/helpers/utils.js.map +1 -0
- package/dist/nodes/Discord/v2/methods/index.d.ts +2 -0
- package/dist/nodes/Discord/v2/methods/index.js +29 -0
- package/dist/nodes/Discord/v2/methods/index.js.map +1 -0
- package/dist/nodes/Discord/v2/methods/listSearch.d.ts +6 -0
- package/dist/nodes/Discord/v2/methods/listSearch.js +115 -0
- package/dist/nodes/Discord/v2/methods/listSearch.js.map +1 -0
- package/dist/nodes/Discord/v2/methods/loadOptions.d.ts +2 -0
- package/dist/nodes/Discord/v2/methods/loadOptions.js +34 -0
- package/dist/nodes/Discord/v2/methods/loadOptions.js.map +1 -0
- package/dist/nodes/Discord/v2/transport/discord.api.d.ts +4 -0
- package/dist/nodes/Discord/v2/transport/discord.api.js +72 -0
- package/dist/nodes/Discord/v2/transport/discord.api.js.map +1 -0
- package/dist/nodes/Discord/v2/transport/helpers.d.ts +4 -0
- package/dist/nodes/Discord/v2/transport/helpers.js +38 -0
- package/dist/nodes/Discord/v2/transport/helpers.js.map +1 -0
- package/dist/nodes/Discord/v2/transport/index.d.ts +2 -0
- package/dist/nodes/Discord/v2/transport/index.js +19 -0
- package/dist/nodes/Discord/v2/transport/index.js.map +1 -0
- package/dist/nodes/Discourse/Discourse.node.js +13 -0
- package/dist/nodes/Discourse/Discourse.node.js.map +1 -1
- package/dist/nodes/Discourse/UserDescription.js +93 -0
- package/dist/nodes/Discourse/UserDescription.js.map +1 -1
- package/dist/nodes/EmailSend/v2/send.operation.js +3 -0
- package/dist/nodes/EmailSend/v2/send.operation.js.map +1 -1
- package/dist/nodes/Facebook/FacebookTrigger.node.json +2 -1
- package/dist/nodes/Gitlab/Gitlab.node.js +15 -4
- package/dist/nodes/Gitlab/Gitlab.node.js.map +1 -1
- package/dist/nodes/Google/Sheet/GoogleSheets.node.json +1 -1
- package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js +1 -1
- package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/router.js +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/router.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.js +3 -3
- package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/append.operation.js +11 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/append.operation.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/appendOrUpdate.operation.js +14 -2
- package/dist/nodes/Google/Sheet/v2/actions/sheet/appendOrUpdate.operation.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.d.ts +5 -5
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js +19 -11
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/methods/loadOptions.js +1 -1
- package/dist/nodes/Google/Sheet/v2/methods/loadOptions.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.js +1 -1
- package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.js.map +1 -1
- package/dist/nodes/HaloPSA/GenericFunctions.js +1 -1
- package/dist/nodes/HaloPSA/GenericFunctions.js.map +1 -1
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +10 -9
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
- package/dist/nodes/Hubspot/V2/CompanyDescription.js +1 -1
- package/dist/nodes/Hubspot/V2/HubspotV2.node.js +7 -0
- package/dist/nodes/Hubspot/V2/HubspotV2.node.js.map +1 -1
- package/dist/nodes/LinkedIn/LinkedIn.node.js +14 -0
- package/dist/nodes/LinkedIn/LinkedIn.node.js.map +1 -1
- package/dist/nodes/LinkedIn/PostDescription.js +12 -0
- package/dist/nodes/LinkedIn/PostDescription.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/MicrosoftExcel.node.json +1 -1
- package/dist/nodes/MoveBinaryData/MoveBinaryData.node.js +18 -15
- package/dist/nodes/MoveBinaryData/MoveBinaryData.node.js.map +1 -1
- package/dist/nodes/NocoDB/NocoDB.node.d.ts +2 -1
- package/dist/nodes/NocoDB/NocoDB.node.js +144 -42
- package/dist/nodes/NocoDB/NocoDB.node.js.map +1 -1
- package/dist/nodes/NocoDB/OperationDescription.js +135 -10
- package/dist/nodes/NocoDB/OperationDescription.js.map +1 -1
- package/dist/nodes/NocoDB/nocodb.svg +3 -424
- package/dist/nodes/Notion/v2/VersionDescription.js +6 -0
- package/dist/nodes/Notion/v2/VersionDescription.js.map +1 -1
- package/dist/nodes/Odoo/GenericFunctions.js +3 -3
- package/dist/nodes/Odoo/GenericFunctions.js.map +1 -1
- package/dist/nodes/OpenAi/ChatDescription.js +1 -1
- package/dist/nodes/OpenAi/ChatDescription.js.map +1 -1
- package/dist/nodes/OpenAi/ImageDescription.js +148 -0
- package/dist/nodes/OpenAi/ImageDescription.js.map +1 -1
- package/dist/nodes/OpenAi/TextDescription.js +1 -1
- package/dist/nodes/OpenAi/TextDescription.js.map +1 -1
- package/dist/nodes/RabbitMQ/GenericFunctions.js +5 -0
- package/dist/nodes/RabbitMQ/GenericFunctions.js.map +1 -1
- package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js +33 -0
- package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js.map +1 -1
- package/dist/nodes/SpreadsheetFile/SpreadsheetFile.node.json +1 -1
- package/dist/nodes/SpreadsheetFile/test/workflow.utf8.json +91 -0
- package/dist/nodes/SpreadsheetFile/v1/SpreadsheetFileV1.node.js +1 -0
- package/dist/nodes/SpreadsheetFile/v1/SpreadsheetFileV1.node.js.map +1 -1
- package/dist/nodes/StickyNote/StickyNote.node.js +7 -0
- package/dist/nodes/StickyNote/StickyNote.node.js.map +1 -1
- package/dist/nodes/Telegram/Telegram.node.js +10 -2
- package/dist/nodes/Telegram/Telegram.node.js.map +1 -1
- package/dist/nodes/Venafi/ProtectCloud/GenericFunctions.js +4 -1
- package/dist/nodes/Venafi/ProtectCloud/GenericFunctions.js.map +1 -1
- package/dist/types/credentials.json +29 -26
- package/dist/types/nodes.json +43 -63
- package/dist/utils/descriptions.d.ts +1 -0
- package/dist/utils/descriptions.js +25 -1
- package/dist/utils/descriptions.js.map +1 -1
- package/dist/utils/utilities.d.ts +1 -0
- package/dist/utils/utilities.js +10 -2
- package/dist/utils/utilities.js.map +1 -1
- package/package.json +6 -3
- package/dist/nodes/Discord/Interfaces.js.map +0 -1
- /package/dist/nodes/Discord/{Interfaces.d.ts → v1/Interfaces.d.ts} +0 -0
- /package/dist/nodes/Discord/{Interfaces.js → v1/Interfaces.js} +0 -0
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "My workflow 38",
|
|
3
|
+
"nodes": [
|
|
4
|
+
{
|
|
5
|
+
"parameters": {},
|
|
6
|
+
"id": "f1242de8-11fc-4849-a4a2-c82fa75731a7",
|
|
7
|
+
"name": "When clicking \"Execute Workflow\"",
|
|
8
|
+
"type": "n8n-nodes-base.manualTrigger",
|
|
9
|
+
"typeVersion": 1,
|
|
10
|
+
"position": [
|
|
11
|
+
120,
|
|
12
|
+
800
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"parameters": {
|
|
17
|
+
"values": {
|
|
18
|
+
"number": [
|
|
19
|
+
{
|
|
20
|
+
"name": "dateMilis",
|
|
21
|
+
"value": 1682918315906
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "dateMilisFloat",
|
|
25
|
+
"value": 1682918315.906
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "dateUnix",
|
|
29
|
+
"value": 1682918315
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"string": [
|
|
33
|
+
{
|
|
34
|
+
"name": "dateMilisStr",
|
|
35
|
+
"value": "1682918315906"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "dateMilisFloatStr",
|
|
39
|
+
"value": "1682918315.906"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "dateUnixStr",
|
|
43
|
+
"value": "1682918315"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"options": {}
|
|
48
|
+
},
|
|
49
|
+
"id": "7208910f-fd33-42b9-bcf2-14bb0b0d157d",
|
|
50
|
+
"name": "Set",
|
|
51
|
+
"type": "n8n-nodes-base.set",
|
|
52
|
+
"typeVersion": 2,
|
|
53
|
+
"position": [
|
|
54
|
+
320,
|
|
55
|
+
800
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"parameters": {
|
|
60
|
+
"operation": "formatDate",
|
|
61
|
+
"date": "={{ $json.dateMilis }}",
|
|
62
|
+
"format": "yyyy/MM/dd",
|
|
63
|
+
"outputFieldName": "data",
|
|
64
|
+
"options": {}
|
|
65
|
+
},
|
|
66
|
+
"id": "fb66a2cc-95b9-4917-999b-847ab61a7938",
|
|
67
|
+
"name": "Date & Time6",
|
|
68
|
+
"type": "n8n-nodes-base.dateTime",
|
|
69
|
+
"typeVersion": 2,
|
|
70
|
+
"position": [
|
|
71
|
+
700,
|
|
72
|
+
360
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"parameters": {
|
|
77
|
+
"operation": "formatDate",
|
|
78
|
+
"date": "={{ $json.dateMilisFloat }}",
|
|
79
|
+
"format": "yyyy/MM/dd",
|
|
80
|
+
"outputFieldName": "data",
|
|
81
|
+
"options": {}
|
|
82
|
+
},
|
|
83
|
+
"id": "b94eb54a-1952-4f33-816a-8ffa47c7bb42",
|
|
84
|
+
"name": "Date & Time",
|
|
85
|
+
"type": "n8n-nodes-base.dateTime",
|
|
86
|
+
"typeVersion": 2,
|
|
87
|
+
"position": [
|
|
88
|
+
700,
|
|
89
|
+
720
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"parameters": {
|
|
94
|
+
"operation": "formatDate",
|
|
95
|
+
"date": "={{ $json.dateUnix }}",
|
|
96
|
+
"format": "yyyy/MM/dd",
|
|
97
|
+
"outputFieldName": "data",
|
|
98
|
+
"options": {}
|
|
99
|
+
},
|
|
100
|
+
"id": "7f0af92d-8064-4af0-8c2c-a21b70f69ac1",
|
|
101
|
+
"name": "Date & Time1",
|
|
102
|
+
"type": "n8n-nodes-base.dateTime",
|
|
103
|
+
"typeVersion": 2,
|
|
104
|
+
"position": [
|
|
105
|
+
700,
|
|
106
|
+
1080
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"parameters": {},
|
|
111
|
+
"id": "1e90549e-f4d4-46a1-bc9b-617befff2319",
|
|
112
|
+
"name": "No Operation, do nothing",
|
|
113
|
+
"type": "n8n-nodes-base.noOp",
|
|
114
|
+
"typeVersion": 1,
|
|
115
|
+
"position": [
|
|
116
|
+
900,
|
|
117
|
+
360
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"parameters": {},
|
|
122
|
+
"id": "ec07d232-e513-4f09-8cb1-e8e4853bcebc",
|
|
123
|
+
"name": "No Operation, do nothing1",
|
|
124
|
+
"type": "n8n-nodes-base.noOp",
|
|
125
|
+
"typeVersion": 1,
|
|
126
|
+
"position": [
|
|
127
|
+
900,
|
|
128
|
+
720
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"parameters": {},
|
|
133
|
+
"id": "f9839c73-ed5e-4ae0-bc1e-5a1914ac8b55",
|
|
134
|
+
"name": "No Operation, do nothing2",
|
|
135
|
+
"type": "n8n-nodes-base.noOp",
|
|
136
|
+
"typeVersion": 1,
|
|
137
|
+
"position": [
|
|
138
|
+
900,
|
|
139
|
+
1080
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"parameters": {
|
|
144
|
+
"operation": "formatDate",
|
|
145
|
+
"date": "={{ $json.dateMilis }}",
|
|
146
|
+
"format": "yyyy/MM/dd",
|
|
147
|
+
"outputFieldName": "data",
|
|
148
|
+
"options": {
|
|
149
|
+
"includeInputFields": true
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"id": "bfce6276-2de4-4783-bc7f-d82fab23c2af",
|
|
153
|
+
"name": "Date & Time7",
|
|
154
|
+
"type": "n8n-nodes-base.dateTime",
|
|
155
|
+
"typeVersion": 2,
|
|
156
|
+
"position": [
|
|
157
|
+
700,
|
|
158
|
+
500
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"parameters": {
|
|
163
|
+
"operation": "formatDate",
|
|
164
|
+
"date": "={{ $json.dateMilisFloat }}",
|
|
165
|
+
"format": "yyyy/MM/dd",
|
|
166
|
+
"outputFieldName": "data",
|
|
167
|
+
"options": {
|
|
168
|
+
"includeInputFields": true
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"id": "a7aad9c9-20ff-4353-9445-80366fad9431",
|
|
172
|
+
"name": "Date & Time2",
|
|
173
|
+
"type": "n8n-nodes-base.dateTime",
|
|
174
|
+
"typeVersion": 2,
|
|
175
|
+
"position": [
|
|
176
|
+
700,
|
|
177
|
+
860
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"parameters": {
|
|
182
|
+
"operation": "formatDate",
|
|
183
|
+
"date": "={{ $json.dateUnix }}",
|
|
184
|
+
"format": "yyyy/MM/dd",
|
|
185
|
+
"outputFieldName": "data",
|
|
186
|
+
"options": {
|
|
187
|
+
"includeInputFields": true
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"id": "3b9e3ad7-0d00-4598-b796-23bb206e75db",
|
|
191
|
+
"name": "Date & Time3",
|
|
192
|
+
"type": "n8n-nodes-base.dateTime",
|
|
193
|
+
"typeVersion": 2,
|
|
194
|
+
"position": [
|
|
195
|
+
700,
|
|
196
|
+
1240
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"parameters": {},
|
|
201
|
+
"id": "8a3cdde0-b1de-46dc-a8c6-74cc174fd4a1",
|
|
202
|
+
"name": "No Operation, do nothing3",
|
|
203
|
+
"type": "n8n-nodes-base.noOp",
|
|
204
|
+
"typeVersion": 1,
|
|
205
|
+
"position": [
|
|
206
|
+
900,
|
|
207
|
+
1240
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"parameters": {},
|
|
212
|
+
"id": "54b4d584-0874-411b-9c98-8194c0928588",
|
|
213
|
+
"name": "No Operation, do nothing4",
|
|
214
|
+
"type": "n8n-nodes-base.noOp",
|
|
215
|
+
"typeVersion": 1,
|
|
216
|
+
"position": [
|
|
217
|
+
900,
|
|
218
|
+
860
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"parameters": {},
|
|
223
|
+
"id": "4a4e7647-6c6e-4a24-9032-829e5f495337",
|
|
224
|
+
"name": "No Operation, do nothing5",
|
|
225
|
+
"type": "n8n-nodes-base.noOp",
|
|
226
|
+
"typeVersion": 1,
|
|
227
|
+
"position": [
|
|
228
|
+
900,
|
|
229
|
+
500
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"pinData": {
|
|
234
|
+
"No Operation, do nothing2": [
|
|
235
|
+
{
|
|
236
|
+
"json": {
|
|
237
|
+
"data": "2023/05/01"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"No Operation, do nothing1": [
|
|
242
|
+
{
|
|
243
|
+
"json": {
|
|
244
|
+
"data": "2023/05/01"
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"No Operation, do nothing": [
|
|
249
|
+
{
|
|
250
|
+
"json": {
|
|
251
|
+
"data": "2023/05/01"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"No Operation, do nothing5": [
|
|
256
|
+
{
|
|
257
|
+
"json": {
|
|
258
|
+
"dateMilis": 1682918315906,
|
|
259
|
+
"dateMilisFloat": 1682918315.906,
|
|
260
|
+
"dateUnix": 1682918315,
|
|
261
|
+
"dateMilisStr": "1682918315906",
|
|
262
|
+
"dateMilisFloatStr": "1682918315.906",
|
|
263
|
+
"dateUnixStr": "1682918315",
|
|
264
|
+
"data": "2023/05/01"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"No Operation, do nothing4": [
|
|
269
|
+
{
|
|
270
|
+
"json": {
|
|
271
|
+
"dateMilis": 1682918315906,
|
|
272
|
+
"dateMilisFloat": 1682918315.906,
|
|
273
|
+
"dateUnix": 1682918315,
|
|
274
|
+
"dateMilisStr": "1682918315906",
|
|
275
|
+
"dateMilisFloatStr": "1682918315.906",
|
|
276
|
+
"dateUnixStr": "1682918315",
|
|
277
|
+
"data": "2023/05/01"
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
],
|
|
281
|
+
"No Operation, do nothing3": [
|
|
282
|
+
{
|
|
283
|
+
"json": {
|
|
284
|
+
"dateMilis": 1682918315906,
|
|
285
|
+
"dateMilisFloat": 1682918315.906,
|
|
286
|
+
"dateUnix": 1682918315,
|
|
287
|
+
"dateMilisStr": "1682918315906",
|
|
288
|
+
"dateMilisFloatStr": "1682918315.906",
|
|
289
|
+
"dateUnixStr": "1682918315",
|
|
290
|
+
"data": "2023/05/01"
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
"connections": {
|
|
296
|
+
"When clicking \"Execute Workflow\"": {
|
|
297
|
+
"main": [
|
|
298
|
+
[
|
|
299
|
+
{
|
|
300
|
+
"node": "Set",
|
|
301
|
+
"type": "main",
|
|
302
|
+
"index": 0
|
|
303
|
+
}
|
|
304
|
+
]
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
"Set": {
|
|
308
|
+
"main": [
|
|
309
|
+
[
|
|
310
|
+
{
|
|
311
|
+
"node": "Date & Time6",
|
|
312
|
+
"type": "main",
|
|
313
|
+
"index": 0
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"node": "Date & Time",
|
|
317
|
+
"type": "main",
|
|
318
|
+
"index": 0
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"node": "Date & Time1",
|
|
322
|
+
"type": "main",
|
|
323
|
+
"index": 0
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"node": "Date & Time7",
|
|
327
|
+
"type": "main",
|
|
328
|
+
"index": 0
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"node": "Date & Time2",
|
|
332
|
+
"type": "main",
|
|
333
|
+
"index": 0
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"node": "Date & Time3",
|
|
337
|
+
"type": "main",
|
|
338
|
+
"index": 0
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
]
|
|
342
|
+
},
|
|
343
|
+
"Date & Time6": {
|
|
344
|
+
"main": [
|
|
345
|
+
[
|
|
346
|
+
{
|
|
347
|
+
"node": "No Operation, do nothing",
|
|
348
|
+
"type": "main",
|
|
349
|
+
"index": 0
|
|
350
|
+
}
|
|
351
|
+
]
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
"Date & Time1": {
|
|
355
|
+
"main": [
|
|
356
|
+
[
|
|
357
|
+
{
|
|
358
|
+
"node": "No Operation, do nothing2",
|
|
359
|
+
"type": "main",
|
|
360
|
+
"index": 0
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
"Date & Time": {
|
|
366
|
+
"main": [
|
|
367
|
+
[
|
|
368
|
+
{
|
|
369
|
+
"node": "No Operation, do nothing1",
|
|
370
|
+
"type": "main",
|
|
371
|
+
"index": 0
|
|
372
|
+
}
|
|
373
|
+
]
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
"Date & Time3": {
|
|
377
|
+
"main": [
|
|
378
|
+
[
|
|
379
|
+
{
|
|
380
|
+
"node": "No Operation, do nothing3",
|
|
381
|
+
"type": "main",
|
|
382
|
+
"index": 0
|
|
383
|
+
}
|
|
384
|
+
]
|
|
385
|
+
]
|
|
386
|
+
},
|
|
387
|
+
"Date & Time2": {
|
|
388
|
+
"main": [
|
|
389
|
+
[
|
|
390
|
+
{
|
|
391
|
+
"node": "No Operation, do nothing4",
|
|
392
|
+
"type": "main",
|
|
393
|
+
"index": 0
|
|
394
|
+
}
|
|
395
|
+
]
|
|
396
|
+
]
|
|
397
|
+
},
|
|
398
|
+
"Date & Time7": {
|
|
399
|
+
"main": [
|
|
400
|
+
[
|
|
401
|
+
{
|
|
402
|
+
"node": "No Operation, do nothing5",
|
|
403
|
+
"type": "main",
|
|
404
|
+
"index": 0
|
|
405
|
+
}
|
|
406
|
+
]
|
|
407
|
+
]
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
"active": false,
|
|
411
|
+
"settings": {
|
|
412
|
+
"executionOrder": "v1"
|
|
413
|
+
},
|
|
414
|
+
"versionId": "419a6926-5d06-4ba5-b261-410e124996de",
|
|
415
|
+
"id": "hW8KyOyaCN5fGQru",
|
|
416
|
+
"meta": {
|
|
417
|
+
"instanceId": "b888bd11cd1ddbb95450babf3e199556799d999b896f650de768b8370ee50363"
|
|
418
|
+
},
|
|
419
|
+
"tags": []
|
|
420
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare class Discord
|
|
3
|
-
|
|
4
|
-
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
1
|
+
import { VersionedNodeType } from 'n8n-workflow';
|
|
2
|
+
export declare class Discord extends VersionedNodeType {
|
|
3
|
+
constructor();
|
|
5
4
|
}
|
|
@@ -2,248 +2,23 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Discord = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
|
|
5
|
+
const DiscordV1_node_1 = require("./v1/DiscordV1.node");
|
|
6
|
+
const DiscordV2_node_1 = require("./v2/DiscordV2.node");
|
|
7
|
+
class Discord extends n8n_workflow_1.VersionedNodeType {
|
|
6
8
|
constructor() {
|
|
7
|
-
|
|
9
|
+
const baseDescription = {
|
|
8
10
|
displayName: 'Discord',
|
|
9
11
|
name: 'discord',
|
|
10
12
|
icon: 'file:discord.svg',
|
|
11
13
|
group: ['output'],
|
|
12
|
-
|
|
14
|
+
defaultVersion: 2,
|
|
13
15
|
description: 'Sends data to Discord',
|
|
14
|
-
defaults: {
|
|
15
|
-
name: 'Discord',
|
|
16
|
-
},
|
|
17
|
-
inputs: ['main'],
|
|
18
|
-
outputs: ['main'],
|
|
19
|
-
properties: [
|
|
20
|
-
{
|
|
21
|
-
displayName: 'Webhook URL',
|
|
22
|
-
name: 'webhookUri',
|
|
23
|
-
type: 'string',
|
|
24
|
-
required: true,
|
|
25
|
-
default: '',
|
|
26
|
-
placeholder: 'https://discord.com/api/webhooks/ID/TOKEN',
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
displayName: 'Content',
|
|
30
|
-
name: 'text',
|
|
31
|
-
type: 'string',
|
|
32
|
-
typeOptions: {
|
|
33
|
-
maxValue: 2000,
|
|
34
|
-
},
|
|
35
|
-
default: '',
|
|
36
|
-
placeholder: 'Hello World!',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
displayName: 'Additional Fields',
|
|
40
|
-
name: 'options',
|
|
41
|
-
type: 'collection',
|
|
42
|
-
placeholder: 'Add Option',
|
|
43
|
-
default: {},
|
|
44
|
-
options: [
|
|
45
|
-
{
|
|
46
|
-
displayName: 'Allowed Mentions',
|
|
47
|
-
name: 'allowedMentions',
|
|
48
|
-
type: 'json',
|
|
49
|
-
typeOptions: { alwaysOpenEditWindow: true, editor: 'code' },
|
|
50
|
-
default: '',
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
displayName: 'Attachments',
|
|
54
|
-
name: 'attachments',
|
|
55
|
-
type: 'json',
|
|
56
|
-
typeOptions: { alwaysOpenEditWindow: true, editor: 'code' },
|
|
57
|
-
default: '',
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
displayName: 'Avatar URL',
|
|
61
|
-
name: 'avatarUrl',
|
|
62
|
-
type: 'string',
|
|
63
|
-
default: '',
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
displayName: 'Components',
|
|
67
|
-
name: 'components',
|
|
68
|
-
type: 'json',
|
|
69
|
-
typeOptions: { alwaysOpenEditWindow: true, editor: 'code' },
|
|
70
|
-
default: '',
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
displayName: 'Embeds',
|
|
74
|
-
name: 'embeds',
|
|
75
|
-
type: 'json',
|
|
76
|
-
typeOptions: { alwaysOpenEditWindow: true, editor: 'code' },
|
|
77
|
-
default: '',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
displayName: 'Flags',
|
|
81
|
-
name: 'flags',
|
|
82
|
-
type: 'number',
|
|
83
|
-
default: '',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
displayName: 'JSON Payload',
|
|
87
|
-
name: 'payloadJson',
|
|
88
|
-
type: 'json',
|
|
89
|
-
typeOptions: { alwaysOpenEditWindow: true, editor: 'code' },
|
|
90
|
-
default: '',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
displayName: 'Username',
|
|
94
|
-
name: 'username',
|
|
95
|
-
type: 'string',
|
|
96
|
-
default: '',
|
|
97
|
-
placeholder: 'User',
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
displayName: 'TTS',
|
|
101
|
-
name: 'tts',
|
|
102
|
-
type: 'boolean',
|
|
103
|
-
default: false,
|
|
104
|
-
description: 'Whether this message be sent as a Text To Speech message',
|
|
105
|
-
},
|
|
106
|
-
],
|
|
107
|
-
},
|
|
108
|
-
],
|
|
109
16
|
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
if (!webhookUri)
|
|
116
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Webhook uri is required.');
|
|
117
|
-
const items = this.getInputData();
|
|
118
|
-
const length = items.length;
|
|
119
|
-
for (let i = 0; i < length; i++) {
|
|
120
|
-
const body = {};
|
|
121
|
-
const iterationWebhookUri = this.getNodeParameter('webhookUri', i);
|
|
122
|
-
body.content = this.getNodeParameter('text', i);
|
|
123
|
-
const options = this.getNodeParameter('options', i);
|
|
124
|
-
if (!body.content && !options.embeds) {
|
|
125
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Either content or embeds must be set.', {
|
|
126
|
-
itemIndex: i,
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
if (options.embeds) {
|
|
130
|
-
try {
|
|
131
|
-
body.embeds = JSON.parse(options.embeds);
|
|
132
|
-
}
|
|
133
|
-
catch (e) {
|
|
134
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Embeds must be valid JSON.', {
|
|
135
|
-
itemIndex: i,
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
if (!Array.isArray(body.embeds)) {
|
|
139
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Embeds must be an array of embeds.', {
|
|
140
|
-
itemIndex: i,
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
if (options.username) {
|
|
145
|
-
body.username = options.username;
|
|
146
|
-
}
|
|
147
|
-
if (options.components) {
|
|
148
|
-
try {
|
|
149
|
-
body.components = JSON.parse(options.components);
|
|
150
|
-
}
|
|
151
|
-
catch (e) {
|
|
152
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Components must be valid JSON.', {
|
|
153
|
-
itemIndex: i,
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
if (options.allowed_mentions) {
|
|
158
|
-
body.allowed_mentions = (0, n8n_workflow_1.jsonParse)(options.allowed_mentions);
|
|
159
|
-
}
|
|
160
|
-
if (options.avatarUrl) {
|
|
161
|
-
body.avatar_url = options.avatarUrl;
|
|
162
|
-
}
|
|
163
|
-
if (options.flags) {
|
|
164
|
-
body.flags = options.flags;
|
|
165
|
-
}
|
|
166
|
-
if (options.tts) {
|
|
167
|
-
body.tts = options.tts;
|
|
168
|
-
}
|
|
169
|
-
if (options.payloadJson) {
|
|
170
|
-
body.payload_json = (0, n8n_workflow_1.jsonParse)(options.payloadJson);
|
|
171
|
-
}
|
|
172
|
-
if (options.attachments) {
|
|
173
|
-
body.attachments = (0, n8n_workflow_1.jsonParse)(options.attachments);
|
|
174
|
-
}
|
|
175
|
-
if (!body.content)
|
|
176
|
-
delete body.content;
|
|
177
|
-
if (!body.username)
|
|
178
|
-
delete body.username;
|
|
179
|
-
if (!body.avatar_url)
|
|
180
|
-
delete body.avatar_url;
|
|
181
|
-
if (!body.embeds)
|
|
182
|
-
delete body.embeds;
|
|
183
|
-
if (!body.allowed_mentions)
|
|
184
|
-
delete body.allowed_mentions;
|
|
185
|
-
if (!body.flags)
|
|
186
|
-
delete body.flags;
|
|
187
|
-
if (!body.components)
|
|
188
|
-
delete body.components;
|
|
189
|
-
if (!body.payload_json)
|
|
190
|
-
delete body.payload_json;
|
|
191
|
-
if (!body.attachments)
|
|
192
|
-
delete body.attachments;
|
|
193
|
-
let requestOptions;
|
|
194
|
-
if (!body.payload_json) {
|
|
195
|
-
requestOptions = {
|
|
196
|
-
resolveWithFullResponse: true,
|
|
197
|
-
method: 'POST',
|
|
198
|
-
body,
|
|
199
|
-
uri: iterationWebhookUri,
|
|
200
|
-
headers: {
|
|
201
|
-
'content-type': 'application/json; charset=utf-8',
|
|
202
|
-
},
|
|
203
|
-
json: true,
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
else {
|
|
207
|
-
requestOptions = {
|
|
208
|
-
resolveWithFullResponse: true,
|
|
209
|
-
method: 'POST',
|
|
210
|
-
body,
|
|
211
|
-
uri: iterationWebhookUri,
|
|
212
|
-
headers: {
|
|
213
|
-
'content-type': 'multipart/form-data; charset=utf-8',
|
|
214
|
-
},
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
let maxTries = 5;
|
|
218
|
-
let response;
|
|
219
|
-
do {
|
|
220
|
-
try {
|
|
221
|
-
response = await this.helpers.request(requestOptions);
|
|
222
|
-
const resetAfter = response.headers['x-ratelimit-reset-after'] * 1000;
|
|
223
|
-
const remainingRatelimit = response.headers['x-ratelimit-remaining'];
|
|
224
|
-
if (!+remainingRatelimit) {
|
|
225
|
-
await (0, n8n_workflow_1.sleep)(resetAfter !== null && resetAfter !== void 0 ? resetAfter : 1000);
|
|
226
|
-
}
|
|
227
|
-
break;
|
|
228
|
-
}
|
|
229
|
-
catch (error) {
|
|
230
|
-
if (error.statusCode === 429) {
|
|
231
|
-
const retryAfter = ((_a = error.response) === null || _a === void 0 ? void 0 : _a.headers['retry-after']) || 1000;
|
|
232
|
-
await (0, n8n_workflow_1.sleep)(+retryAfter);
|
|
233
|
-
continue;
|
|
234
|
-
}
|
|
235
|
-
throw error;
|
|
236
|
-
}
|
|
237
|
-
} while (--maxTries);
|
|
238
|
-
if (maxTries <= 0) {
|
|
239
|
-
throw new n8n_workflow_1.NodeApiError(this.getNode(), {
|
|
240
|
-
error: 'Could not send Webhook message. Max amount of rate-limit retries reached.',
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray({ success: true }), { itemData: { item: i } });
|
|
244
|
-
returnData.push(...executionData);
|
|
245
|
-
}
|
|
246
|
-
return [returnData];
|
|
17
|
+
const nodeVersions = {
|
|
18
|
+
1: new DiscordV1_node_1.DiscordV1(baseDescription),
|
|
19
|
+
2: new DiscordV2_node_1.DiscordV2(baseDescription),
|
|
20
|
+
};
|
|
21
|
+
super(nodeVersions, baseDescription);
|
|
247
22
|
}
|
|
248
23
|
}
|
|
249
24
|
exports.Discord = Discord;
|