n8n-nodes-base 1.16.0 → 1.17.1

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.
Files changed (297) hide show
  1. package/dist/build.tsbuildinfo +1 -1
  2. package/dist/credentials/AlienVaultApi.credentials.d.ts +5 -0
  3. package/dist/credentials/AlienVaultApi.credentials.js +5 -0
  4. package/dist/credentials/AlienVaultApi.credentials.js.map +1 -1
  5. package/dist/credentials/Auth0ManagementApi.credentials.d.ts +5 -0
  6. package/dist/credentials/Auth0ManagementApi.credentials.js +5 -0
  7. package/dist/credentials/Auth0ManagementApi.credentials.js.map +1 -1
  8. package/dist/credentials/CarbonBlackApi.credentials.d.ts +5 -0
  9. package/dist/credentials/CarbonBlackApi.credentials.js +5 -0
  10. package/dist/credentials/CarbonBlackApi.credentials.js.map +1 -1
  11. package/dist/credentials/CiscoMerakiApi.credentials.d.ts +5 -0
  12. package/dist/credentials/CiscoMerakiApi.credentials.js +5 -0
  13. package/dist/credentials/CiscoMerakiApi.credentials.js.map +1 -1
  14. package/dist/credentials/CiscoSecureEndpointApi.credentials.d.ts +5 -0
  15. package/dist/credentials/CiscoSecureEndpointApi.credentials.js +5 -0
  16. package/dist/credentials/CiscoSecureEndpointApi.credentials.js.map +1 -1
  17. package/dist/credentials/CiscoUmbrellaApi.credentials.d.ts +5 -0
  18. package/dist/credentials/CiscoUmbrellaApi.credentials.js +5 -0
  19. package/dist/credentials/CiscoUmbrellaApi.credentials.js.map +1 -1
  20. package/dist/credentials/CrowdStrikeOAuth2Api.credentials.d.ts +5 -0
  21. package/dist/credentials/CrowdStrikeOAuth2Api.credentials.js +5 -0
  22. package/dist/credentials/CrowdStrikeOAuth2Api.credentials.js.map +1 -1
  23. package/dist/credentials/DiscordBotApi.credentials.d.ts +9 -0
  24. package/dist/credentials/DiscordBotApi.credentials.js +38 -0
  25. package/dist/credentials/DiscordBotApi.credentials.js.map +1 -0
  26. package/dist/credentials/DiscordOAuth2Api.credentials.d.ts +8 -0
  27. package/dist/credentials/DiscordOAuth2Api.credentials.js +57 -0
  28. package/dist/credentials/DiscordOAuth2Api.credentials.js.map +1 -0
  29. package/dist/credentials/DiscordWebhookApi.credentials.d.ts +7 -0
  30. package/dist/credentials/DiscordWebhookApi.credentials.js +25 -0
  31. package/dist/credentials/DiscordWebhookApi.credentials.js.map +1 -0
  32. package/dist/credentials/F5BigIpApi.credentials.d.ts +5 -0
  33. package/dist/credentials/F5BigIpApi.credentials.js +5 -0
  34. package/dist/credentials/F5BigIpApi.credentials.js.map +1 -1
  35. package/dist/credentials/FortiGateApi.credentials.d.ts +5 -0
  36. package/dist/credentials/FortiGateApi.credentials.js +5 -0
  37. package/dist/credentials/FortiGateApi.credentials.js.map +1 -1
  38. package/dist/credentials/HybridAnalysisApi.credentials.d.ts +5 -0
  39. package/dist/credentials/HybridAnalysisApi.credentials.js +5 -0
  40. package/dist/credentials/HybridAnalysisApi.credentials.js.map +1 -1
  41. package/dist/credentials/ImpervaWafApi.credentials.d.ts +5 -0
  42. package/dist/credentials/ImpervaWafApi.credentials.js +5 -0
  43. package/dist/credentials/ImpervaWafApi.credentials.js.map +1 -1
  44. package/dist/credentials/KibanaApi.credentials.d.ts +5 -0
  45. package/dist/credentials/KibanaApi.credentials.js +5 -0
  46. package/dist/credentials/KibanaApi.credentials.js.map +1 -1
  47. package/dist/credentials/MistApi.credentials.d.ts +5 -0
  48. package/dist/credentials/MistApi.credentials.js +5 -0
  49. package/dist/credentials/MistApi.credentials.js.map +1 -1
  50. package/dist/credentials/OktaApi.credentials.d.ts +5 -0
  51. package/dist/credentials/OktaApi.credentials.js +5 -0
  52. package/dist/credentials/OktaApi.credentials.js.map +1 -1
  53. package/dist/credentials/OpenCTIApi.credentials.d.ts +5 -0
  54. package/dist/credentials/OpenCTIApi.credentials.js +5 -0
  55. package/dist/credentials/OpenCTIApi.credentials.js.map +1 -1
  56. package/dist/credentials/QRadarApi.credentials.d.ts +5 -0
  57. package/dist/credentials/QRadarApi.credentials.js +5 -0
  58. package/dist/credentials/QRadarApi.credentials.js.map +1 -1
  59. package/dist/credentials/QualysApi.credentials.d.ts +5 -0
  60. package/dist/credentials/QualysApi.credentials.js +5 -0
  61. package/dist/credentials/QualysApi.credentials.js.map +1 -1
  62. package/dist/credentials/RecordedFutureApi.credentials.d.ts +5 -0
  63. package/dist/credentials/RecordedFutureApi.credentials.js +5 -0
  64. package/dist/credentials/RecordedFutureApi.credentials.js.map +1 -1
  65. package/dist/credentials/SekoiaApi.credentials.d.ts +5 -0
  66. package/dist/credentials/SekoiaApi.credentials.js +5 -0
  67. package/dist/credentials/SekoiaApi.credentials.js.map +1 -1
  68. package/dist/credentials/ShufflerApi.credentials.d.ts +5 -0
  69. package/dist/credentials/ShufflerApi.credentials.js +5 -0
  70. package/dist/credentials/ShufflerApi.credentials.js.map +1 -1
  71. package/dist/credentials/TrellixEpoApi.credentials.d.ts +5 -0
  72. package/dist/credentials/TrellixEpoApi.credentials.js +5 -0
  73. package/dist/credentials/TrellixEpoApi.credentials.js.map +1 -1
  74. package/dist/credentials/TwakeServerApi.credentials.d.ts +6 -0
  75. package/dist/credentials/TwakeServerApi.credentials.js +6 -0
  76. package/dist/credentials/TwakeServerApi.credentials.js.map +1 -1
  77. package/dist/credentials/VenafiTlsProtectCloudApi.credentials.js +17 -1
  78. package/dist/credentials/VenafiTlsProtectCloudApi.credentials.js.map +1 -1
  79. package/dist/credentials/VirusTotalApi.credentials.d.ts +5 -0
  80. package/dist/credentials/VirusTotalApi.credentials.js +6 -1
  81. package/dist/credentials/VirusTotalApi.credentials.js.map +1 -1
  82. package/dist/credentials/ZscalerZiaApi.credentials.d.ts +5 -0
  83. package/dist/credentials/ZscalerZiaApi.credentials.js +5 -0
  84. package/dist/credentials/ZscalerZiaApi.credentials.js.map +1 -1
  85. package/dist/credentials/icons/Twake.png +0 -0
  86. package/dist/known/credentials.json +505 -383
  87. package/dist/methods/defined.json +19 -16
  88. package/dist/methods/referenced.json +25 -22
  89. package/dist/nodes/Brevo/BrevoTrigger.node.js +3 -0
  90. package/dist/nodes/Brevo/BrevoTrigger.node.js.map +1 -1
  91. package/dist/nodes/ClickUp/ClickUp.node.js +1 -1
  92. package/dist/nodes/ClickUp/ClickUp.node.js.map +1 -1
  93. package/dist/nodes/DateTime/DateTime.node.js.map +1 -1
  94. package/dist/nodes/DateTime/V2/AddToDateDescription.js +14 -0
  95. package/dist/nodes/DateTime/V2/AddToDateDescription.js.map +1 -1
  96. package/dist/nodes/DateTime/V2/CurrentDateDescription.js +2 -0
  97. package/dist/nodes/DateTime/V2/CurrentDateDescription.js.map +1 -1
  98. package/dist/nodes/DateTime/V2/DateTimeV2.node.js +109 -99
  99. package/dist/nodes/DateTime/V2/DateTimeV2.node.js.map +1 -1
  100. package/dist/nodes/DateTime/V2/ExtractDateDescription.js +14 -0
  101. package/dist/nodes/DateTime/V2/ExtractDateDescription.js.map +1 -1
  102. package/dist/nodes/DateTime/V2/FormatDateDescription.js +10 -0
  103. package/dist/nodes/DateTime/V2/FormatDateDescription.js.map +1 -1
  104. package/dist/nodes/DateTime/V2/GenericFunctions.d.ts +4 -1
  105. package/dist/nodes/DateTime/V2/GenericFunctions.js +9 -3
  106. package/dist/nodes/DateTime/V2/GenericFunctions.js.map +1 -1
  107. package/dist/nodes/DateTime/V2/GetTimeBetweenDates.js +2 -0
  108. package/dist/nodes/DateTime/V2/GetTimeBetweenDates.js.map +1 -1
  109. package/dist/nodes/DateTime/V2/RoundDateDescription.js +14 -0
  110. package/dist/nodes/DateTime/V2/RoundDateDescription.js.map +1 -1
  111. package/dist/nodes/DateTime/V2/SubtractFromDateDescription.js +14 -0
  112. package/dist/nodes/DateTime/V2/SubtractFromDateDescription.js.map +1 -1
  113. package/dist/nodes/DateTime/V2/common.descriptions.d.ts +2 -0
  114. package/dist/nodes/DateTime/V2/common.descriptions.js +11 -0
  115. package/dist/nodes/DateTime/V2/common.descriptions.js.map +1 -0
  116. package/dist/nodes/DateTime/test/node/workflow.includeInputFields_v2.json +420 -0
  117. package/dist/nodes/DebugHelper/DebugHelper.node.json +2 -1
  118. package/dist/nodes/Discord/Discord.node.d.ts +3 -4
  119. package/dist/nodes/Discord/Discord.node.js +10 -235
  120. package/dist/nodes/Discord/Discord.node.js.map +1 -1
  121. package/dist/nodes/Discord/test/v2/node/channel/create.workflow.json +106 -0
  122. package/dist/nodes/Discord/test/v2/node/channel/deleteChannel.workflow.json +112 -0
  123. package/dist/nodes/Discord/test/v2/node/channel/get.workflow.json +113 -0
  124. package/dist/nodes/Discord/test/v2/node/channel/getAll.workflow.json +191 -0
  125. package/dist/nodes/Discord/test/v2/node/channel/update.workflow.json +126 -0
  126. package/dist/nodes/Discord/test/v2/node/member/getAll.workflow.json +134 -0
  127. package/dist/nodes/Discord/test/v2/node/member/roleAdd.workflow.json +104 -0
  128. package/dist/nodes/Discord/test/v2/node/member/roleRemove.workflow.json +106 -0
  129. package/dist/nodes/Discord/test/v2/node/message/deleteMessage.workflow.json +103 -0
  130. package/dist/nodes/Discord/test/v2/node/message/get.workflow.json +125 -0
  131. package/dist/nodes/Discord/test/v2/node/message/getAll.workflow.json +144 -0
  132. package/dist/nodes/Discord/test/v2/node/message/react.workflow.json +104 -0
  133. package/dist/nodes/Discord/test/v2/node/message/send.workflow.json +155 -0
  134. package/dist/nodes/Discord/test/v2/node/webhook/sendLegacy.workflow.json +141 -0
  135. package/dist/nodes/Discord/v1/DiscordV1.node.d.ts +6 -0
  136. package/dist/nodes/Discord/v1/DiscordV1.node.js +256 -0
  137. package/dist/nodes/Discord/v1/DiscordV1.node.js.map +1 -0
  138. package/dist/nodes/Discord/v1/Interfaces.js.map +1 -0
  139. package/dist/nodes/Discord/v2/DiscordV2.node.d.ts +11 -0
  140. package/dist/nodes/Discord/v2/DiscordV2.node.js +23 -0
  141. package/dist/nodes/Discord/v2/DiscordV2.node.js.map +1 -0
  142. package/dist/nodes/Discord/v2/actions/channel/create.operation.d.ts +25 -0
  143. package/dist/nodes/Discord/v2/actions/channel/create.operation.js +181 -0
  144. package/dist/nodes/Discord/v2/actions/channel/create.operation.js.map +1 -0
  145. package/dist/nodes/Discord/v2/actions/channel/deleteChannel.operation.d.ts +25 -0
  146. package/dist/nodes/Discord/v2/actions/channel/deleteChannel.operation.js +42 -0
  147. package/dist/nodes/Discord/v2/actions/channel/deleteChannel.operation.js.map +1 -0
  148. package/dist/nodes/Discord/v2/actions/channel/get.operation.d.ts +25 -0
  149. package/dist/nodes/Discord/v2/actions/channel/get.operation.js +42 -0
  150. package/dist/nodes/Discord/v2/actions/channel/get.operation.js.map +1 -0
  151. package/dist/nodes/Discord/v2/actions/channel/getAll.operation.d.ts +25 -0
  152. package/dist/nodes/Discord/v2/actions/channel/getAll.operation.js +77 -0
  153. package/dist/nodes/Discord/v2/actions/channel/getAll.operation.js.map +1 -0
  154. package/dist/nodes/Discord/v2/actions/channel/index.d.ts +8 -0
  155. package/dist/nodes/Discord/v2/actions/channel/index.js +99 -0
  156. package/dist/nodes/Discord/v2/actions/channel/index.js.map +1 -0
  157. package/dist/nodes/Discord/v2/actions/channel/update.operation.d.ts +25 -0
  158. package/dist/nodes/Discord/v2/actions/channel/update.operation.js +128 -0
  159. package/dist/nodes/Discord/v2/actions/channel/update.operation.js.map +1 -0
  160. package/dist/nodes/Discord/v2/actions/common.description.d.ts +12 -0
  161. package/dist/nodes/Discord/v2/actions/common.description.js +447 -0
  162. package/dist/nodes/Discord/v2/actions/common.description.js.map +1 -0
  163. package/dist/nodes/Discord/v2/actions/member/getAll.operation.d.ts +25 -0
  164. package/dist/nodes/Discord/v2/actions/member/getAll.operation.js +86 -0
  165. package/dist/nodes/Discord/v2/actions/member/getAll.operation.js.map +1 -0
  166. package/dist/nodes/Discord/v2/actions/member/index.d.ts +6 -0
  167. package/dist/nodes/Discord/v2/actions/member/index.js +81 -0
  168. package/dist/nodes/Discord/v2/actions/member/index.js.map +1 -0
  169. package/dist/nodes/Discord/v2/actions/member/roleAdd.operation.d.ts +25 -0
  170. package/dist/nodes/Discord/v2/actions/member/roleAdd.operation.js +46 -0
  171. package/dist/nodes/Discord/v2/actions/member/roleAdd.operation.js.map +1 -0
  172. package/dist/nodes/Discord/v2/actions/member/roleRemove.operation.d.ts +25 -0
  173. package/dist/nodes/Discord/v2/actions/member/roleRemove.operation.js +46 -0
  174. package/dist/nodes/Discord/v2/actions/member/roleRemove.operation.js.map +1 -0
  175. package/dist/nodes/Discord/v2/actions/message/deleteMessage.operation.d.ts +25 -0
  176. package/dist/nodes/Discord/v2/actions/message/deleteMessage.operation.js +43 -0
  177. package/dist/nodes/Discord/v2/actions/message/deleteMessage.operation.js.map +1 -0
  178. package/dist/nodes/Discord/v2/actions/message/get.operation.d.ts +25 -0
  179. package/dist/nodes/Discord/v2/actions/message/get.operation.js +66 -0
  180. package/dist/nodes/Discord/v2/actions/message/get.operation.js.map +1 -0
  181. package/dist/nodes/Discord/v2/actions/message/getAll.operation.d.ts +25 -0
  182. package/dist/nodes/Discord/v2/actions/message/getAll.operation.js +84 -0
  183. package/dist/nodes/Discord/v2/actions/message/getAll.operation.js.map +1 -0
  184. package/dist/nodes/Discord/v2/actions/message/index.d.ts +8 -0
  185. package/dist/nodes/Discord/v2/actions/message/index.js +99 -0
  186. package/dist/nodes/Discord/v2/actions/message/index.js.map +1 -0
  187. package/dist/nodes/Discord/v2/actions/message/react.operation.d.ts +25 -0
  188. package/dist/nodes/Discord/v2/actions/message/react.operation.js +55 -0
  189. package/dist/nodes/Discord/v2/actions/message/react.operation.js.map +1 -0
  190. package/dist/nodes/Discord/v2/actions/message/send.operation.d.ts +25 -0
  191. package/dist/nodes/Discord/v2/actions/message/send.operation.js +170 -0
  192. package/dist/nodes/Discord/v2/actions/message/send.operation.js.map +1 -0
  193. package/dist/nodes/Discord/v2/actions/node.type.d.ts +9 -0
  194. package/dist/nodes/Discord/v2/actions/node.type.js +3 -0
  195. package/dist/nodes/Discord/v2/actions/node.type.js.map +1 -0
  196. package/dist/nodes/Discord/v2/actions/router.d.ts +2 -0
  197. package/dist/nodes/Discord/v2/actions/router.js +77 -0
  198. package/dist/nodes/Discord/v2/actions/router.js.map +1 -0
  199. package/dist/nodes/Discord/v2/actions/versionDescription.d.ts +2 -0
  200. package/dist/nodes/Discord/v2/actions/versionDescription.js +128 -0
  201. package/dist/nodes/Discord/v2/actions/versionDescription.js.map +1 -0
  202. package/dist/nodes/Discord/v2/actions/webhook/index.d.ts +4 -0
  203. package/dist/nodes/Discord/v2/actions/webhook/index.js +52 -0
  204. package/dist/nodes/Discord/v2/actions/webhook/index.js.map +1 -0
  205. package/dist/nodes/Discord/v2/actions/webhook/sendLegacy.operation.d.ts +25 -0
  206. package/dist/nodes/Discord/v2/actions/webhook/sendLegacy.operation.js +136 -0
  207. package/dist/nodes/Discord/v2/actions/webhook/sendLegacy.operation.js.map +1 -0
  208. package/dist/nodes/Discord/v2/helpers/utils.d.ts +12 -0
  209. package/dist/nodes/Discord/v2/helpers/utils.js +227 -0
  210. package/dist/nodes/Discord/v2/helpers/utils.js.map +1 -0
  211. package/dist/nodes/Discord/v2/methods/index.d.ts +2 -0
  212. package/dist/nodes/Discord/v2/methods/index.js +29 -0
  213. package/dist/nodes/Discord/v2/methods/index.js.map +1 -0
  214. package/dist/nodes/Discord/v2/methods/listSearch.d.ts +6 -0
  215. package/dist/nodes/Discord/v2/methods/listSearch.js +115 -0
  216. package/dist/nodes/Discord/v2/methods/listSearch.js.map +1 -0
  217. package/dist/nodes/Discord/v2/methods/loadOptions.d.ts +2 -0
  218. package/dist/nodes/Discord/v2/methods/loadOptions.js +34 -0
  219. package/dist/nodes/Discord/v2/methods/loadOptions.js.map +1 -0
  220. package/dist/nodes/Discord/v2/transport/discord.api.d.ts +4 -0
  221. package/dist/nodes/Discord/v2/transport/discord.api.js +72 -0
  222. package/dist/nodes/Discord/v2/transport/discord.api.js.map +1 -0
  223. package/dist/nodes/Discord/v2/transport/helpers.d.ts +4 -0
  224. package/dist/nodes/Discord/v2/transport/helpers.js +38 -0
  225. package/dist/nodes/Discord/v2/transport/helpers.js.map +1 -0
  226. package/dist/nodes/Discord/v2/transport/index.d.ts +2 -0
  227. package/dist/nodes/Discord/v2/transport/index.js +19 -0
  228. package/dist/nodes/Discord/v2/transport/index.js.map +1 -0
  229. package/dist/nodes/Discourse/Discourse.node.js +13 -0
  230. package/dist/nodes/Discourse/Discourse.node.js.map +1 -1
  231. package/dist/nodes/Discourse/UserDescription.js +93 -0
  232. package/dist/nodes/Discourse/UserDescription.js.map +1 -1
  233. package/dist/nodes/EmailSend/v2/send.operation.js +3 -0
  234. package/dist/nodes/EmailSend/v2/send.operation.js.map +1 -1
  235. package/dist/nodes/Facebook/FacebookTrigger.node.json +2 -1
  236. package/dist/nodes/Github/GenericFunctions.js +3 -3
  237. package/dist/nodes/Github/GenericFunctions.js.map +1 -1
  238. package/dist/nodes/Gitlab/Gitlab.node.js +15 -4
  239. package/dist/nodes/Gitlab/Gitlab.node.js.map +1 -1
  240. package/dist/nodes/Google/Sheet/GoogleSheets.node.json +1 -1
  241. package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.js +3 -3
  242. package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.js.map +1 -1
  243. package/dist/nodes/Google/Sheet/v2/actions/sheet/append.operation.js +11 -1
  244. package/dist/nodes/Google/Sheet/v2/actions/sheet/append.operation.js.map +1 -1
  245. package/dist/nodes/Google/Sheet/v2/actions/sheet/appendOrUpdate.operation.js +14 -2
  246. package/dist/nodes/Google/Sheet/v2/actions/sheet/appendOrUpdate.operation.js.map +1 -1
  247. package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.d.ts +3 -3
  248. package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js +15 -9
  249. package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js.map +1 -1
  250. package/dist/nodes/Google/Sheet/v2/methods/loadOptions.js +8 -2
  251. package/dist/nodes/Google/Sheet/v2/methods/loadOptions.js.map +1 -1
  252. package/dist/nodes/HaloPSA/GenericFunctions.js +1 -1
  253. package/dist/nodes/HaloPSA/GenericFunctions.js.map +1 -1
  254. package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +10 -9
  255. package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
  256. package/dist/nodes/Hubspot/V2/CompanyDescription.js +1 -1
  257. package/dist/nodes/Hubspot/V2/HubspotV2.node.js +7 -0
  258. package/dist/nodes/Hubspot/V2/HubspotV2.node.js.map +1 -1
  259. package/dist/nodes/Microsoft/Excel/MicrosoftExcel.node.json +1 -1
  260. package/dist/nodes/MoveBinaryData/MoveBinaryData.node.js +18 -15
  261. package/dist/nodes/MoveBinaryData/MoveBinaryData.node.js.map +1 -1
  262. package/dist/nodes/Notion/v2/VersionDescription.js +6 -0
  263. package/dist/nodes/Notion/v2/VersionDescription.js.map +1 -1
  264. package/dist/nodes/Odoo/GenericFunctions.js +3 -3
  265. package/dist/nodes/Odoo/GenericFunctions.js.map +1 -1
  266. package/dist/nodes/OpenAi/ChatDescription.js +1 -1
  267. package/dist/nodes/OpenAi/ChatDescription.js.map +1 -1
  268. package/dist/nodes/OpenAi/ImageDescription.js +148 -0
  269. package/dist/nodes/OpenAi/ImageDescription.js.map +1 -1
  270. package/dist/nodes/OpenAi/TextDescription.js +1 -1
  271. package/dist/nodes/OpenAi/TextDescription.js.map +1 -1
  272. package/dist/nodes/RabbitMQ/GenericFunctions.js +5 -0
  273. package/dist/nodes/RabbitMQ/GenericFunctions.js.map +1 -1
  274. package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js +33 -0
  275. package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js.map +1 -1
  276. package/dist/nodes/SpreadsheetFile/SpreadsheetFile.node.json +1 -1
  277. package/dist/nodes/SpreadsheetFile/test/workflow.utf8.json +91 -0
  278. package/dist/nodes/SpreadsheetFile/v1/SpreadsheetFileV1.node.js +1 -0
  279. package/dist/nodes/SpreadsheetFile/v1/SpreadsheetFileV1.node.js.map +1 -1
  280. package/dist/nodes/StickyNote/StickyNote.node.js +7 -0
  281. package/dist/nodes/StickyNote/StickyNote.node.js.map +1 -1
  282. package/dist/nodes/Telegram/Telegram.node.js +10 -2
  283. package/dist/nodes/Telegram/Telegram.node.js.map +1 -1
  284. package/dist/nodes/Venafi/ProtectCloud/GenericFunctions.js +4 -1
  285. package/dist/nodes/Venafi/ProtectCloud/GenericFunctions.js.map +1 -1
  286. package/dist/types/credentials.json +28 -25
  287. package/dist/types/nodes.json +40 -60
  288. package/dist/utils/descriptions.d.ts +1 -0
  289. package/dist/utils/descriptions.js +25 -1
  290. package/dist/utils/descriptions.js.map +1 -1
  291. package/dist/utils/utilities.d.ts +1 -0
  292. package/dist/utils/utilities.js +10 -2
  293. package/dist/utils/utilities.js.map +1 -1
  294. package/package.json +63 -60
  295. package/dist/nodes/Discord/Interfaces.js.map +0 -1
  296. /package/dist/nodes/Discord/{Interfaces.d.ts → v1/Interfaces.d.ts} +0 -0
  297. /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
+ }
@@ -9,5 +9,6 @@
9
9
  "url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.debughelper/"
10
10
  }
11
11
  ]
12
- }
12
+ },
13
+ "alias": ["Mock", "Sample", "Demo", "Test", "Throw error", "OOM", "Out of Memory", "placeholder"]
13
14
  }
@@ -1,5 +1,4 @@
1
- import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
- export declare class Discord implements INodeType {
3
- description: INodeTypeDescription;
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
- class Discord {
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
- this.description = {
9
+ const baseDescription = {
8
10
  displayName: 'Discord',
9
11
  name: 'discord',
10
12
  icon: 'file:discord.svg',
11
13
  group: ['output'],
12
- version: 1,
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
- async execute() {
112
- var _a;
113
- const returnData = [];
114
- const webhookUri = this.getNodeParameter('webhookUri', 0, '');
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;