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,447 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.filesFixedCollection = exports.embedsFixedCollection = exports.simplifyBoolean = exports.messageIdString = exports.maxResultsNumber = exports.roleMultiOptions = exports.userRLC = exports.categoryRLC = exports.textChannelRLC = exports.channelRLC = exports.guildRLC = void 0;
|
|
4
|
+
const utilities_1 = require("../../../../utils/utilities");
|
|
5
|
+
exports.guildRLC = {
|
|
6
|
+
displayName: 'Server',
|
|
7
|
+
name: 'guildId',
|
|
8
|
+
type: 'resourceLocator',
|
|
9
|
+
default: { mode: 'list', value: '' },
|
|
10
|
+
required: true,
|
|
11
|
+
description: 'Select the server (guild) that your bot is connected to',
|
|
12
|
+
modes: [
|
|
13
|
+
{
|
|
14
|
+
displayName: 'By Name',
|
|
15
|
+
name: 'list',
|
|
16
|
+
type: 'list',
|
|
17
|
+
placeholder: 'e.g. my-server',
|
|
18
|
+
typeOptions: {
|
|
19
|
+
searchListMethod: 'guildSearch',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
displayName: 'By URL',
|
|
24
|
+
name: 'url',
|
|
25
|
+
type: 'string',
|
|
26
|
+
placeholder: 'e.g. https://discord.com/channels/[guild-id]',
|
|
27
|
+
extractValue: {
|
|
28
|
+
type: 'regex',
|
|
29
|
+
regex: 'https:\\/\\/discord.com\\/channels\\/([0-9]+)',
|
|
30
|
+
},
|
|
31
|
+
validation: [
|
|
32
|
+
{
|
|
33
|
+
type: 'regex',
|
|
34
|
+
properties: {
|
|
35
|
+
regex: 'https:\\/\\/discord.com\\/channels\\/([0-9]+)',
|
|
36
|
+
errorMessage: 'Not a valid Discord Server URL',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'By ID',
|
|
43
|
+
name: 'id',
|
|
44
|
+
type: 'string',
|
|
45
|
+
placeholder: 'e.g. 896347036838936576',
|
|
46
|
+
validation: [
|
|
47
|
+
{
|
|
48
|
+
type: 'regex',
|
|
49
|
+
properties: {
|
|
50
|
+
regex: '[0-9]+',
|
|
51
|
+
errorMessage: 'Not a valid Discord Server ID',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
};
|
|
58
|
+
exports.channelRLC = {
|
|
59
|
+
displayName: 'Channel',
|
|
60
|
+
name: 'channelId',
|
|
61
|
+
type: 'resourceLocator',
|
|
62
|
+
default: { mode: 'list', value: '' },
|
|
63
|
+
required: true,
|
|
64
|
+
description: 'Select the channel by name, URL, or ID',
|
|
65
|
+
modes: [
|
|
66
|
+
{
|
|
67
|
+
displayName: 'By Name',
|
|
68
|
+
name: 'list',
|
|
69
|
+
type: 'list',
|
|
70
|
+
placeholder: 'e.g. my-channel',
|
|
71
|
+
typeOptions: {
|
|
72
|
+
searchListMethod: 'channelSearch',
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
displayName: 'By URL',
|
|
77
|
+
name: 'url',
|
|
78
|
+
type: 'string',
|
|
79
|
+
placeholder: 'e.g. https://discord.com/channels/[guild-id]/[channel-id]',
|
|
80
|
+
extractValue: {
|
|
81
|
+
type: 'regex',
|
|
82
|
+
regex: 'https:\\/\\/discord.com\\/channels\\/[0-9]+\\/([0-9]+)',
|
|
83
|
+
},
|
|
84
|
+
validation: [
|
|
85
|
+
{
|
|
86
|
+
type: 'regex',
|
|
87
|
+
properties: {
|
|
88
|
+
regex: 'https:\\/\\/discord.com\\/channels\\/[0-9]+\\/([0-9]+)',
|
|
89
|
+
errorMessage: 'Not a valid Discord Channel URL',
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
displayName: 'By ID',
|
|
96
|
+
name: 'id',
|
|
97
|
+
type: 'string',
|
|
98
|
+
placeholder: 'e.g. 896347036838936576',
|
|
99
|
+
validation: [
|
|
100
|
+
{
|
|
101
|
+
type: 'regex',
|
|
102
|
+
properties: {
|
|
103
|
+
regex: '[0-9]+',
|
|
104
|
+
errorMessage: 'Not a valid Discord Channel ID',
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
};
|
|
111
|
+
exports.textChannelRLC = {
|
|
112
|
+
displayName: 'Channel',
|
|
113
|
+
name: 'channelId',
|
|
114
|
+
type: 'resourceLocator',
|
|
115
|
+
default: { mode: 'list', value: '' },
|
|
116
|
+
required: true,
|
|
117
|
+
description: 'Select the channel by name, URL, or ID',
|
|
118
|
+
modes: [
|
|
119
|
+
{
|
|
120
|
+
displayName: 'By Name',
|
|
121
|
+
name: 'list',
|
|
122
|
+
type: 'list',
|
|
123
|
+
placeholder: 'e.g. my-channel',
|
|
124
|
+
typeOptions: {
|
|
125
|
+
searchListMethod: 'textChannelSearch',
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
displayName: 'By URL',
|
|
130
|
+
name: 'url',
|
|
131
|
+
type: 'string',
|
|
132
|
+
placeholder: 'e.g. https://discord.com/channels/[guild-id]/[channel-id]',
|
|
133
|
+
extractValue: {
|
|
134
|
+
type: 'regex',
|
|
135
|
+
regex: 'https:\\/\\/discord.com\\/channels\\/[0-9]+\\/([0-9]+)',
|
|
136
|
+
},
|
|
137
|
+
validation: [
|
|
138
|
+
{
|
|
139
|
+
type: 'regex',
|
|
140
|
+
properties: {
|
|
141
|
+
regex: 'https:\\/\\/discord.com\\/channels\\/[0-9]+\\/([0-9]+)',
|
|
142
|
+
errorMessage: 'Not a valid Discord Channel URL',
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
displayName: 'By ID',
|
|
149
|
+
name: 'id',
|
|
150
|
+
type: 'string',
|
|
151
|
+
placeholder: 'e.g. 896347036838936576',
|
|
152
|
+
validation: [
|
|
153
|
+
{
|
|
154
|
+
type: 'regex',
|
|
155
|
+
properties: {
|
|
156
|
+
regex: '[0-9]+',
|
|
157
|
+
errorMessage: 'Not a valid Discord Channel ID',
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
};
|
|
164
|
+
exports.categoryRLC = {
|
|
165
|
+
displayName: 'Parent Category',
|
|
166
|
+
name: 'categoryId',
|
|
167
|
+
type: 'resourceLocator',
|
|
168
|
+
default: { mode: 'list', value: '' },
|
|
169
|
+
description: 'The parent category where you want the channel to appear',
|
|
170
|
+
modes: [
|
|
171
|
+
{
|
|
172
|
+
displayName: 'By Name',
|
|
173
|
+
name: 'list',
|
|
174
|
+
type: 'list',
|
|
175
|
+
placeholder: 'e.g. my-channel',
|
|
176
|
+
typeOptions: {
|
|
177
|
+
searchListMethod: 'categorySearch',
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
displayName: 'By URL',
|
|
182
|
+
name: 'url',
|
|
183
|
+
type: 'string',
|
|
184
|
+
placeholder: 'e.g. https://discord.com/channels/[guild-id]/[channel-id]',
|
|
185
|
+
extractValue: {
|
|
186
|
+
type: 'regex',
|
|
187
|
+
regex: 'https:\\/\\/discord.com\\/channels\\/[0-9]+\\/([0-9]+)',
|
|
188
|
+
},
|
|
189
|
+
validation: [
|
|
190
|
+
{
|
|
191
|
+
type: 'regex',
|
|
192
|
+
properties: {
|
|
193
|
+
regex: 'https:\\/\\/discord.com\\/channels\\/[0-9]+\\/([0-9]+)',
|
|
194
|
+
errorMessage: 'Not a valid Discord Category URL',
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
displayName: 'By ID',
|
|
201
|
+
name: 'id',
|
|
202
|
+
type: 'string',
|
|
203
|
+
placeholder: 'e.g. 896347036838936576',
|
|
204
|
+
validation: [
|
|
205
|
+
{
|
|
206
|
+
type: 'regex',
|
|
207
|
+
properties: {
|
|
208
|
+
regex: '[0-9]+',
|
|
209
|
+
errorMessage: 'Not a valid Discord Category ID',
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
};
|
|
216
|
+
exports.userRLC = {
|
|
217
|
+
displayName: 'User',
|
|
218
|
+
name: 'userId',
|
|
219
|
+
type: 'resourceLocator',
|
|
220
|
+
default: { mode: 'list', value: '' },
|
|
221
|
+
description: 'Select the user you want to assign a role to',
|
|
222
|
+
modes: [
|
|
223
|
+
{
|
|
224
|
+
displayName: 'By Name',
|
|
225
|
+
name: 'list',
|
|
226
|
+
type: 'list',
|
|
227
|
+
placeholder: 'e.g. DiscordUser',
|
|
228
|
+
typeOptions: {
|
|
229
|
+
searchListMethod: 'userSearch',
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
displayName: 'By ID',
|
|
234
|
+
name: 'id',
|
|
235
|
+
type: 'string',
|
|
236
|
+
placeholder: 'e.g. 786953432728469534',
|
|
237
|
+
validation: [
|
|
238
|
+
{
|
|
239
|
+
type: 'regex',
|
|
240
|
+
properties: {
|
|
241
|
+
regex: '[0-9]+',
|
|
242
|
+
errorMessage: 'Not a valid User ID',
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
};
|
|
249
|
+
exports.roleMultiOptions = {
|
|
250
|
+
displayName: 'Role',
|
|
251
|
+
name: 'role',
|
|
252
|
+
type: 'multiOptions',
|
|
253
|
+
typeOptions: {
|
|
254
|
+
loadOptionsMethod: 'getRoles',
|
|
255
|
+
loadOptionsDependsOn: ['userId.value', 'guildId.value', 'operation'],
|
|
256
|
+
},
|
|
257
|
+
required: true,
|
|
258
|
+
description: 'Select the roles you want to add to the user',
|
|
259
|
+
default: [],
|
|
260
|
+
};
|
|
261
|
+
exports.maxResultsNumber = {
|
|
262
|
+
displayName: 'Max Results',
|
|
263
|
+
name: 'maxResults',
|
|
264
|
+
type: 'number',
|
|
265
|
+
typeOptions: {
|
|
266
|
+
minValue: 1,
|
|
267
|
+
},
|
|
268
|
+
default: 50,
|
|
269
|
+
description: 'Maximum number of results. Too many results may slow down the query.',
|
|
270
|
+
};
|
|
271
|
+
exports.messageIdString = {
|
|
272
|
+
displayName: 'Message ID',
|
|
273
|
+
name: 'messageId',
|
|
274
|
+
type: 'string',
|
|
275
|
+
default: '',
|
|
276
|
+
required: true,
|
|
277
|
+
description: 'The ID of the message',
|
|
278
|
+
placeholder: 'e.g. 1057576506244726804',
|
|
279
|
+
};
|
|
280
|
+
exports.simplifyBoolean = {
|
|
281
|
+
displayName: 'Simplify',
|
|
282
|
+
name: 'simplify',
|
|
283
|
+
type: 'boolean',
|
|
284
|
+
default: true,
|
|
285
|
+
description: 'Whether to return a simplified version of the response instead of the raw data',
|
|
286
|
+
};
|
|
287
|
+
const embedFields = [
|
|
288
|
+
{
|
|
289
|
+
displayName: 'Description (Required)',
|
|
290
|
+
name: 'description',
|
|
291
|
+
type: 'string',
|
|
292
|
+
default: '',
|
|
293
|
+
description: 'The description of embed',
|
|
294
|
+
placeholder: 'e.g. My description',
|
|
295
|
+
typeOptions: {
|
|
296
|
+
rows: 2,
|
|
297
|
+
},
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
displayName: 'Author',
|
|
301
|
+
name: 'author',
|
|
302
|
+
type: 'string',
|
|
303
|
+
default: '',
|
|
304
|
+
description: 'The name of the author',
|
|
305
|
+
placeholder: 'e.g. John Doe',
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
displayName: 'Color',
|
|
309
|
+
name: 'color',
|
|
310
|
+
type: 'color',
|
|
311
|
+
default: '',
|
|
312
|
+
description: 'Color code of the embed',
|
|
313
|
+
placeholder: 'e.g. 12123432',
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
displayName: 'Timestamp',
|
|
317
|
+
name: 'timestamp',
|
|
318
|
+
type: 'dateTime',
|
|
319
|
+
default: '',
|
|
320
|
+
description: 'The time displayed at the bottom of the embed. Provide in ISO8601 format.',
|
|
321
|
+
placeholder: 'e.g. 2023-02-08 09:30:26',
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
displayName: 'Title',
|
|
325
|
+
name: 'title',
|
|
326
|
+
type: 'string',
|
|
327
|
+
default: '',
|
|
328
|
+
description: 'The title of embed',
|
|
329
|
+
placeholder: "e.g. Embed's title",
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
displayName: 'URL',
|
|
333
|
+
name: 'url',
|
|
334
|
+
type: 'string',
|
|
335
|
+
default: '',
|
|
336
|
+
description: 'The URL where you want to link the embed to',
|
|
337
|
+
placeholder: 'e.g. https://discord.com/',
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
displayName: 'URL Image',
|
|
341
|
+
name: 'image',
|
|
342
|
+
type: 'string',
|
|
343
|
+
default: '',
|
|
344
|
+
description: 'Source URL of image (only supports http(s) and attachments)',
|
|
345
|
+
placeholder: 'e.g. https://example.com/image.png',
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
displayName: 'URL Thumbnail',
|
|
349
|
+
name: 'thumbnail',
|
|
350
|
+
type: 'string',
|
|
351
|
+
default: '',
|
|
352
|
+
description: 'Source URL of thumbnail (only supports http(s) and attachments)',
|
|
353
|
+
placeholder: 'e.g. https://example.com/image.png',
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
displayName: 'URL Video',
|
|
357
|
+
name: 'video',
|
|
358
|
+
type: 'string',
|
|
359
|
+
default: '',
|
|
360
|
+
description: 'Source URL of video',
|
|
361
|
+
placeholder: 'e.g. https://example.com/video.mp4',
|
|
362
|
+
},
|
|
363
|
+
];
|
|
364
|
+
const embedFieldsDescription = (0, utilities_1.updateDisplayOptions)({
|
|
365
|
+
show: {
|
|
366
|
+
inputMethod: ['fields'],
|
|
367
|
+
},
|
|
368
|
+
}, embedFields);
|
|
369
|
+
exports.embedsFixedCollection = {
|
|
370
|
+
displayName: 'Embeds',
|
|
371
|
+
name: 'embeds',
|
|
372
|
+
type: 'fixedCollection',
|
|
373
|
+
placeholder: 'Add Embeds',
|
|
374
|
+
typeOptions: {
|
|
375
|
+
multipleValues: true,
|
|
376
|
+
},
|
|
377
|
+
default: [],
|
|
378
|
+
options: [
|
|
379
|
+
{
|
|
380
|
+
displayName: 'Values',
|
|
381
|
+
name: 'values',
|
|
382
|
+
values: [
|
|
383
|
+
{
|
|
384
|
+
displayName: 'Input Method',
|
|
385
|
+
name: 'inputMethod',
|
|
386
|
+
type: 'options',
|
|
387
|
+
options: [
|
|
388
|
+
{
|
|
389
|
+
name: 'Enter Fields',
|
|
390
|
+
value: 'fields',
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
name: 'Raw JSON',
|
|
394
|
+
value: 'json',
|
|
395
|
+
},
|
|
396
|
+
],
|
|
397
|
+
default: 'fields',
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
displayName: 'Value',
|
|
401
|
+
name: 'json',
|
|
402
|
+
type: 'string',
|
|
403
|
+
default: '={}',
|
|
404
|
+
typeOptions: {
|
|
405
|
+
editor: 'json',
|
|
406
|
+
editorLanguage: 'json',
|
|
407
|
+
rows: 2,
|
|
408
|
+
},
|
|
409
|
+
displayOptions: {
|
|
410
|
+
show: {
|
|
411
|
+
inputMethod: ['json'],
|
|
412
|
+
},
|
|
413
|
+
},
|
|
414
|
+
},
|
|
415
|
+
...embedFieldsDescription,
|
|
416
|
+
],
|
|
417
|
+
},
|
|
418
|
+
],
|
|
419
|
+
};
|
|
420
|
+
exports.filesFixedCollection = {
|
|
421
|
+
displayName: 'Files',
|
|
422
|
+
name: 'files',
|
|
423
|
+
type: 'fixedCollection',
|
|
424
|
+
placeholder: 'Add Files',
|
|
425
|
+
typeOptions: {
|
|
426
|
+
multipleValues: true,
|
|
427
|
+
},
|
|
428
|
+
default: [],
|
|
429
|
+
options: [
|
|
430
|
+
{
|
|
431
|
+
displayName: 'Values',
|
|
432
|
+
name: 'values',
|
|
433
|
+
values: [
|
|
434
|
+
{
|
|
435
|
+
displayName: 'Input Data Field Name',
|
|
436
|
+
name: 'inputFieldName',
|
|
437
|
+
type: 'string',
|
|
438
|
+
default: 'data',
|
|
439
|
+
description: 'The contents of the file being sent with the message',
|
|
440
|
+
placeholder: 'e.g. data',
|
|
441
|
+
hint: 'The name of the input field containing the binary file data to be sent',
|
|
442
|
+
},
|
|
443
|
+
],
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
};
|
|
447
|
+
//# sourceMappingURL=common.description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.description.js","sourceRoot":"","sources":["../../../../../nodes/Discord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AM,EAAE;gBACP;oBACC,WAAW,EAAE,cAAc;oBAC3B,IAAI,EAAE,aAAa;oBACnB,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,cAAc;4BACpB,KAAK,EAAE,QAAQ;yBACf;wBACD;4BACC,IAAI,EAAE,UAAU;4BAChB,KAAK,EAAE,MAAM;yBACb;qBACD;oBACD,OAAO,EAAE,QAAQ;iBACjB;gBACD;oBACC,WAAW,EAAE,OAAO;oBACpB,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,KAAK;oBACd,WAAW,EAAE;wBACZ,MAAM,EAAE,MAAM;wBACd,cAAc,EAAE,MAAM;wBACtB,IAAI,EAAE,CAAC;qBACP;oBACD,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,WAAW,EAAE,CAAC,MAAM,CAAC;yBACrB;qBACD;iBACD;gBACD,GAAG,sBAAsB;aACzB;SACD;KACD;CACD,CAAC;AAIW,QAAA,oBAAoB,GAAoB;IACpD,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE;QACZ,cAAc,EAAE,IAAI;KACpB;IACD,OAAO,EAAE,EAAE;IACX,OAAO,EAAE;QACR;YACC,WAAW,EAAE,QAAQ;YACrB,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE;gBACP;oBACC,WAAW,EAAE,uBAAuB;oBACpC,IAAI,EAAE,gBAAgB;oBACtB,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,MAAM;oBACf,WAAW,EAAE,sDAAsD;oBACnE,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,wEAAwE;iBAC9E;aACD;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const description: {
|
|
3
|
+
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
4
|
+
displayName: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: import("n8n-workflow").NodePropertyTypes;
|
|
7
|
+
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
|
|
8
|
+
default: import("n8n-workflow").NodeParameterValueType;
|
|
9
|
+
description?: string | undefined;
|
|
10
|
+
hint?: string | undefined;
|
|
11
|
+
options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
|
|
12
|
+
placeholder?: string | undefined;
|
|
13
|
+
isNodeSetting?: boolean | undefined;
|
|
14
|
+
noDataExpression?: boolean | undefined;
|
|
15
|
+
required?: boolean | undefined;
|
|
16
|
+
routing?: import("n8n-workflow").INodePropertyRouting | undefined;
|
|
17
|
+
credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
|
|
18
|
+
extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
|
|
19
|
+
modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
|
|
20
|
+
requiresDataPath?: "single" | "multiple" | undefined;
|
|
21
|
+
doNotInherit?: boolean | undefined;
|
|
22
|
+
validateType?: import("n8n-workflow").FieldType | undefined;
|
|
23
|
+
ignoreValidationDuringExecution?: boolean | undefined;
|
|
24
|
+
}[];
|
|
25
|
+
export declare function execute(this: IExecuteFunctions, guildId: string): Promise<INodeExecutionData[]>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.execute = exports.description = void 0;
|
|
4
|
+
const utilities_1 = require("../../../../../utils/utilities");
|
|
5
|
+
const utils_1 = require("../../helpers/utils");
|
|
6
|
+
const transport_1 = require("../../transport");
|
|
7
|
+
const common_description_1 = require("../common.description");
|
|
8
|
+
const descriptions_1 = require("../../../../../utils/descriptions");
|
|
9
|
+
const properties = [
|
|
10
|
+
...descriptions_1.returnAllOrLimit,
|
|
11
|
+
{
|
|
12
|
+
displayName: 'After',
|
|
13
|
+
name: 'after',
|
|
14
|
+
type: 'string',
|
|
15
|
+
default: '',
|
|
16
|
+
placeholder: 'e.g. 786953432728469534',
|
|
17
|
+
description: 'The ID of the user after which to return the members',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Options',
|
|
21
|
+
name: 'options',
|
|
22
|
+
type: 'collection',
|
|
23
|
+
placeholder: 'Add Option',
|
|
24
|
+
default: {},
|
|
25
|
+
options: [common_description_1.simplifyBoolean],
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
const displayOptions = {
|
|
29
|
+
show: {
|
|
30
|
+
resource: ['member'],
|
|
31
|
+
operation: ['getAll'],
|
|
32
|
+
},
|
|
33
|
+
hide: {
|
|
34
|
+
authentication: ['webhook'],
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
|
|
38
|
+
async function execute(guildId) {
|
|
39
|
+
const returnData = [];
|
|
40
|
+
const returnAll = this.getNodeParameter('returnAll', 0, false);
|
|
41
|
+
const after = this.getNodeParameter('after', 0);
|
|
42
|
+
const qs = {};
|
|
43
|
+
if (!returnAll) {
|
|
44
|
+
const limit = this.getNodeParameter('limit', 0);
|
|
45
|
+
qs.limit = limit;
|
|
46
|
+
}
|
|
47
|
+
if (after) {
|
|
48
|
+
qs.after = after;
|
|
49
|
+
}
|
|
50
|
+
let response = [];
|
|
51
|
+
try {
|
|
52
|
+
if (!returnAll) {
|
|
53
|
+
const limit = this.getNodeParameter('limit', 0);
|
|
54
|
+
qs.limit = limit;
|
|
55
|
+
response = await transport_1.discordApiRequest.call(this, 'GET', `/guilds/${guildId}/members`, undefined, qs);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
let responseData;
|
|
59
|
+
qs.limit = 100;
|
|
60
|
+
do {
|
|
61
|
+
responseData = await transport_1.discordApiRequest.call(this, 'GET', `/guilds/${guildId}/members`, undefined, qs);
|
|
62
|
+
if (!(responseData === null || responseData === void 0 ? void 0 : responseData.length))
|
|
63
|
+
break;
|
|
64
|
+
qs.after = responseData[responseData.length - 1].user.id;
|
|
65
|
+
response.push(...responseData);
|
|
66
|
+
} while (responseData.length);
|
|
67
|
+
}
|
|
68
|
+
const simplify = this.getNodeParameter('options.simplify', 0, false);
|
|
69
|
+
if (simplify) {
|
|
70
|
+
const simplifyResponse = (0, utils_1.createSimplifyFunction)(['user', 'roles', 'permissions']);
|
|
71
|
+
response = response.map(simplifyResponse);
|
|
72
|
+
}
|
|
73
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: 0 } });
|
|
74
|
+
returnData.push(...executionData);
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
const err = utils_1.parseDiscordError.call(this, error);
|
|
78
|
+
if (this.continueOnFail()) {
|
|
79
|
+
returnData.push(...utils_1.prepareErrorData.call(this, err, 0));
|
|
80
|
+
}
|
|
81
|
+
throw err;
|
|
82
|
+
}
|
|
83
|
+
return returnData;
|
|
84
|
+
}
|
|
85
|
+
exports.execute = execute;
|
|
86
|
+
//# sourceMappingURL=getAll.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../../nodes/Discord/v2/actions/member/getAll.operation.ts"],"names":[],"mappings":";;;AAMA,8DAAsE;AACtE,+CAAkG;AAClG,+CAAoD;AACpD,8DAAwD;AACxD,oEAAqE;AAErE,MAAM,UAAU,GAAsB;IACrC,GAAG,+BAAgB;IACnB;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yBAAyB;QACtC,WAAW,EAAE,sDAAsD;KACnE;IACD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CAAC,cAAc,EAAE,EAAE;YAC1B,UAAU,CAAC,IAAI,CAAC,GAAG,wBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;SACxD;QAED,MAAM,GAAG,CAAC;KACV;IAED,OAAO,UAAU,CAAC;AACnB,CAAC;AA5ED,0BA4EC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
import * as getAll from './getAll.operation';
|
|
3
|
+
import * as roleAdd from './roleAdd.operation';
|
|
4
|
+
import * as roleRemove from './roleRemove.operation';
|
|
5
|
+
export { getAll, roleAdd, roleRemove };
|
|
6
|
+
export declare const description: INodeProperties[];
|
|
@@ -0,0 +1,81 @@
|
|
|
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.description = exports.roleRemove = exports.roleAdd = exports.getAll = void 0;
|
|
27
|
+
const getAll = __importStar(require("./getAll.operation"));
|
|
28
|
+
exports.getAll = getAll;
|
|
29
|
+
const roleAdd = __importStar(require("./roleAdd.operation"));
|
|
30
|
+
exports.roleAdd = roleAdd;
|
|
31
|
+
const roleRemove = __importStar(require("./roleRemove.operation"));
|
|
32
|
+
exports.roleRemove = roleRemove;
|
|
33
|
+
const common_description_1 = require("../common.description");
|
|
34
|
+
exports.description = [
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Operation',
|
|
37
|
+
name: 'operation',
|
|
38
|
+
type: 'options',
|
|
39
|
+
noDataExpression: true,
|
|
40
|
+
displayOptions: {
|
|
41
|
+
show: {
|
|
42
|
+
resource: ['member'],
|
|
43
|
+
authentication: ['botToken', 'oAuth2'],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
options: [
|
|
47
|
+
{
|
|
48
|
+
name: 'Get Many',
|
|
49
|
+
value: 'getAll',
|
|
50
|
+
description: 'Retrieve the members of a server',
|
|
51
|
+
action: 'Get many members',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'Role Add',
|
|
55
|
+
value: 'roleAdd',
|
|
56
|
+
description: 'Add a role to a member',
|
|
57
|
+
action: 'Add a role to a member',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'Role Remove',
|
|
61
|
+
value: 'roleRemove',
|
|
62
|
+
description: 'Remove a role from a member',
|
|
63
|
+
action: 'Remove a role from a member',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
default: 'getAll',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
...common_description_1.guildRLC,
|
|
70
|
+
displayOptions: {
|
|
71
|
+
show: {
|
|
72
|
+
resource: ['member'],
|
|
73
|
+
authentication: ['botToken', 'oAuth2'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
...getAll.description,
|
|
78
|
+
...roleAdd.description,
|
|
79
|
+
...roleRemove.description,
|
|
80
|
+
];
|
|
81
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/Discord/v2/actions/member/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,2DAA6C;AAKpC,wBAAM;AAJf,6DAA+C;AAI9B,0BAAO;AAHxB,mEAAqD;AAG3B,gCAAU;AAFpC,8DAAiD;AAIpC,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,cAAc,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;aACtC;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kCAAkC;gBAC/C,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,wBAAwB;gBACrC,MAAM,EAAE,wBAAwB;aAChC;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,6BAA6B;gBAC1C,MAAM,EAAE,6BAA6B;aACrC;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD;QACC,GAAG,6BAAQ;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,cAAc,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;aACtC;SACD;KACD;IACD,GAAG,MAAM,CAAC,WAAW;IACrB,GAAG,OAAO,CAAC,WAAW;IACtB,GAAG,UAAU,CAAC,WAAW;CACzB,CAAC"}
|