n8n-nodes-base 0.232.1 → 0.234.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.
Files changed (416) hide show
  1. package/dist/build.tsbuildinfo +1 -1
  2. package/dist/credentials/{SendInBlueApi.credentials.d.ts → BrevoApi.credentials.d.ts} +1 -1
  3. package/dist/credentials/{SendInBlueApi.credentials.js → BrevoApi.credentials.js} +7 -7
  4. package/dist/credentials/BrevoApi.credentials.js.map +1 -0
  5. package/dist/credentials/CrowdDevApi.credentials.d.ts +9 -0
  6. package/dist/credentials/CrowdDevApi.credentials.js +62 -0
  7. package/dist/credentials/CrowdDevApi.credentials.js.map +1 -0
  8. package/dist/credentials/GoogleDriveOAuth2Api.credentials.js +6 -0
  9. package/dist/credentials/GoogleDriveOAuth2Api.credentials.js.map +1 -1
  10. package/dist/credentials/HttpCustomAuth.credentials.d.ts +9 -0
  11. package/dist/credentials/HttpCustomAuth.credentials.js +25 -0
  12. package/dist/credentials/HttpCustomAuth.credentials.js.map +1 -0
  13. package/dist/credentials/TwitterOAuth1Api.credentials.js +6 -0
  14. package/dist/credentials/TwitterOAuth1Api.credentials.js.map +1 -1
  15. package/dist/credentials/TwitterOAuth2Api.credentials.d.ts +8 -0
  16. package/dist/credentials/TwitterOAuth2Api.credentials.js +73 -0
  17. package/dist/credentials/TwitterOAuth2Api.credentials.js.map +1 -0
  18. package/dist/known/credentials.json +35 -11
  19. package/dist/known/nodes.json +16 -8
  20. package/dist/nodes/{SendInBlue → Brevo}/AttributeDescription.js +1 -1
  21. package/dist/nodes/Brevo/AttributeDescription.js.map +1 -0
  22. package/dist/nodes/{SendInBlue/SendInBlue.node.d.ts → Brevo/Brevo.node.d.ts} +1 -1
  23. package/dist/nodes/{SendInBlue/SendInBlue.node.js → Brevo/Brevo.node.js} +9 -9
  24. package/dist/nodes/Brevo/Brevo.node.js.map +1 -0
  25. package/dist/nodes/{SendInBlue/SendInBlue.node.json → Brevo/Brevo.node.json} +5 -4
  26. package/dist/nodes/{SendInBlue/SendInBlueTrigger.node.d.ts → Brevo/BrevoTrigger.node.d.ts} +1 -1
  27. package/dist/nodes/{SendInBlue/SendInBlueTrigger.node.js → Brevo/BrevoTrigger.node.js} +11 -11
  28. package/dist/nodes/Brevo/BrevoTrigger.node.js.map +1 -0
  29. package/dist/nodes/{SendInBlue/SendInBlueTrigger.node.json → Brevo/BrevoTrigger.node.json} +5 -4
  30. package/dist/nodes/Brevo/ContactDescription.js.map +1 -0
  31. package/dist/nodes/{SendInBlue → Brevo}/EmailDescription.js +10 -10
  32. package/dist/nodes/Brevo/EmailDescription.js.map +1 -0
  33. package/dist/nodes/{SendInBlue → Brevo}/GenericFunctions.d.ts +2 -2
  34. package/dist/nodes/{SendInBlue → Brevo}/GenericFunctions.js +14 -14
  35. package/dist/nodes/Brevo/GenericFunctions.js.map +1 -0
  36. package/dist/nodes/Brevo/SenderDescrition.js.map +1 -0
  37. package/dist/nodes/Brevo/brevo.svg +4 -0
  38. package/dist/nodes/CompareDatasets/GenericFunctions.js.map +1 -1
  39. package/dist/nodes/CrateDb/CrateDb.node.js +5 -2
  40. package/dist/nodes/CrateDb/CrateDb.node.js.map +1 -1
  41. package/dist/nodes/CrowdDev/CrowdDev.node.d.ts +4 -0
  42. package/dist/nodes/CrowdDev/CrowdDev.node.js +36 -0
  43. package/dist/nodes/CrowdDev/CrowdDev.node.js.map +1 -0
  44. package/dist/nodes/CrowdDev/CrowdDev.node.json +18 -0
  45. package/dist/nodes/CrowdDev/CrowdDevTrigger.node.d.ts +12 -0
  46. package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js +145 -0
  47. package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js.map +1 -0
  48. package/dist/nodes/CrowdDev/CrowdDevTrigger.node.json +18 -0
  49. package/dist/nodes/CrowdDev/GenericFunctions.d.ts +7 -0
  50. package/dist/nodes/CrowdDev/GenericFunctions.js +157 -0
  51. package/dist/nodes/CrowdDev/GenericFunctions.js.map +1 -0
  52. package/dist/nodes/CrowdDev/crowdDev.svg +15 -0
  53. package/dist/nodes/CrowdDev/descriptions/activityFields.d.ts +4 -0
  54. package/dist/nodes/CrowdDev/descriptions/activityFields.js +180 -0
  55. package/dist/nodes/CrowdDev/descriptions/activityFields.js.map +1 -0
  56. package/dist/nodes/CrowdDev/descriptions/automationFields.d.ts +4 -0
  57. package/dist/nodes/CrowdDev/descriptions/automationFields.js +126 -0
  58. package/dist/nodes/CrowdDev/descriptions/automationFields.js.map +1 -0
  59. package/dist/nodes/CrowdDev/descriptions/index.d.ts +2 -0
  60. package/dist/nodes/CrowdDev/descriptions/index.js +26 -0
  61. package/dist/nodes/CrowdDev/descriptions/index.js.map +1 -0
  62. package/dist/nodes/CrowdDev/descriptions/memberFields.d.ts +4 -0
  63. package/dist/nodes/CrowdDev/descriptions/memberFields.js +291 -0
  64. package/dist/nodes/CrowdDev/descriptions/memberFields.js.map +1 -0
  65. package/dist/nodes/CrowdDev/descriptions/noteFields.d.ts +4 -0
  66. package/dist/nodes/CrowdDev/descriptions/noteFields.js +90 -0
  67. package/dist/nodes/CrowdDev/descriptions/noteFields.js.map +1 -0
  68. package/dist/nodes/CrowdDev/descriptions/organizationFields.d.ts +4 -0
  69. package/dist/nodes/CrowdDev/descriptions/organizationFields.js +146 -0
  70. package/dist/nodes/CrowdDev/descriptions/organizationFields.js.map +1 -0
  71. package/dist/nodes/CrowdDev/descriptions/resources.d.ts +2 -0
  72. package/dist/nodes/CrowdDev/descriptions/resources.js +38 -0
  73. package/dist/nodes/CrowdDev/descriptions/resources.js.map +1 -0
  74. package/dist/nodes/CrowdDev/descriptions/shared.d.ts +2 -0
  75. package/dist/nodes/CrowdDev/descriptions/shared.js +29 -0
  76. package/dist/nodes/CrowdDev/descriptions/shared.js.map +1 -0
  77. package/dist/nodes/CrowdDev/descriptions/taskFields.d.ts +4 -0
  78. package/dist/nodes/CrowdDev/descriptions/taskFields.js +159 -0
  79. package/dist/nodes/CrowdDev/descriptions/taskFields.js.map +1 -0
  80. package/dist/nodes/CrowdDev/descriptions/utils.d.ts +5 -0
  81. package/dist/nodes/CrowdDev/descriptions/utils.js +55 -0
  82. package/dist/nodes/CrowdDev/descriptions/utils.js.map +1 -0
  83. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js +8 -0
  84. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js.map +1 -1
  85. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js +8 -0
  86. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js.map +1 -1
  87. package/dist/nodes/EmailSend/v2/send.operation.js.map +1 -1
  88. package/dist/nodes/Google/Analytics/v1/GoogleAnalyticsV1.node.js.map +1 -1
  89. package/dist/nodes/Google/BigQuery/v1/GoogleBigQueryV1.node.js.map +1 -1
  90. package/dist/nodes/Google/BigQuery/v2/actions/database/executeQuery.operation.js +6 -1
  91. package/dist/nodes/Google/BigQuery/v2/actions/database/executeQuery.operation.js.map +1 -1
  92. package/dist/nodes/Google/BigQuery/v2/actions/database/insert.operation.js.map +1 -1
  93. package/dist/nodes/Google/Drive/GoogleDrive.node.d.ts +3 -12
  94. package/dist/nodes/Google/Drive/GoogleDrive.node.js +10 -2301
  95. package/dist/nodes/Google/Drive/GoogleDrive.node.js.map +1 -1
  96. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.d.ts +1 -1
  97. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js +2 -2
  98. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js.map +1 -1
  99. package/dist/nodes/Google/Drive/test/v2/node/helpers.d.ts +3 -0
  100. package/dist/nodes/Google/Drive/test/v2/node/helpers.js +34 -0
  101. package/dist/nodes/Google/Drive/test/v2/node/helpers.js.map +1 -0
  102. package/dist/nodes/Google/Drive/{GenericFunctions.js → v1/GenericFunctions.js} +1 -1
  103. package/dist/nodes/Google/Drive/v1/GenericFunctions.js.map +1 -0
  104. package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.d.ts +14 -0
  105. package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js +2324 -0
  106. package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js.map +1 -0
  107. package/dist/nodes/Google/Drive/v1/SearchFunctions.js.map +1 -0
  108. package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.d.ts +10 -0
  109. package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.js +20 -0
  110. package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.js.map +1 -0
  111. package/dist/nodes/Google/Drive/v2/actions/common.descriptions.d.ts +19 -0
  112. package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js +598 -0
  113. package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js.map +1 -0
  114. package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.d.ts +8 -0
  115. package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.js +88 -0
  116. package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.js.map +1 -0
  117. package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.d.ts +23 -0
  118. package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.js +235 -0
  119. package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.js.map +1 -0
  120. package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.d.ts +23 -0
  121. package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.js +31 -0
  122. package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.js.map +1 -0
  123. package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.d.ts +23 -0
  124. package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.js +50 -0
  125. package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.js.map +1 -0
  126. package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.d.ts +23 -0
  127. package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.js +81 -0
  128. package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.js.map +1 -0
  129. package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.d.ts +23 -0
  130. package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.js +100 -0
  131. package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.js.map +1 -0
  132. package/dist/nodes/Google/Drive/v2/actions/file/File.resource.d.ts +11 -0
  133. package/dist/nodes/Google/Drive/v2/actions/file/File.resource.js +115 -0
  134. package/dist/nodes/Google/Drive/v2/actions/file/File.resource.js.map +1 -0
  135. package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.d.ts +23 -0
  136. package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.js +104 -0
  137. package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.js.map +1 -0
  138. package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.d.ts +23 -0
  139. package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.js +134 -0
  140. package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.js.map +1 -0
  141. package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.d.ts +23 -0
  142. package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.js +57 -0
  143. package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.js.map +1 -0
  144. package/dist/nodes/Google/Drive/v2/actions/file/download.operation.d.ts +23 -0
  145. package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js +218 -0
  146. package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js.map +1 -0
  147. package/dist/nodes/Google/Drive/v2/actions/file/move.operation.d.ts +23 -0
  148. package/dist/nodes/Google/Drive/v2/actions/file/move.operation.js +60 -0
  149. package/dist/nodes/Google/Drive/v2/actions/file/move.operation.js.map +1 -0
  150. package/dist/nodes/Google/Drive/v2/actions/file/share.operation.d.ts +23 -0
  151. package/dist/nodes/Google/Drive/v2/actions/file/share.operation.js +43 -0
  152. package/dist/nodes/Google/Drive/v2/actions/file/share.operation.js.map +1 -0
  153. package/dist/nodes/Google/Drive/v2/actions/file/update.operation.d.ts +23 -0
  154. package/dist/nodes/Google/Drive/v2/actions/file/update.operation.js +221 -0
  155. package/dist/nodes/Google/Drive/v2/actions/file/update.operation.js.map +1 -0
  156. package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.d.ts +23 -0
  157. package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js +135 -0
  158. package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js.map +1 -0
  159. package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.d.ts +4 -0
  160. package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.js +52 -0
  161. package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.js.map +1 -0
  162. package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.d.ts +23 -0
  163. package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.js +335 -0
  164. package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.js.map +1 -0
  165. package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.d.ts +6 -0
  166. package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.js +70 -0
  167. package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.js.map +1 -0
  168. package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.d.ts +23 -0
  169. package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.js +92 -0
  170. package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.js.map +1 -0
  171. package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.d.ts +23 -0
  172. package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.js +59 -0
  173. package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.js.map +1 -0
  174. package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.d.ts +23 -0
  175. package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.js +43 -0
  176. package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.js.map +1 -0
  177. package/dist/nodes/Google/Drive/v2/actions/node.type.d.ts +9 -0
  178. package/dist/nodes/Google/Drive/v2/actions/node.type.js +3 -0
  179. package/dist/nodes/Google/Drive/v2/actions/node.type.js.map +1 -0
  180. package/dist/nodes/Google/Drive/v2/actions/router.d.ts +2 -0
  181. package/dist/nodes/Google/Drive/v2/actions/router.js +76 -0
  182. package/dist/nodes/Google/Drive/v2/actions/router.js.map +1 -0
  183. package/dist/nodes/Google/Drive/v2/actions/versionDescription.d.ts +2 -0
  184. package/dist/nodes/Google/Drive/v2/actions/versionDescription.js +112 -0
  185. package/dist/nodes/Google/Drive/v2/actions/versionDescription.js.map +1 -0
  186. package/dist/nodes/Google/Drive/v2/helpers/interfaces.d.ts +34 -0
  187. package/dist/nodes/Google/Drive/v2/helpers/interfaces.js +26 -0
  188. package/dist/nodes/Google/Drive/v2/helpers/interfaces.js.map +1 -0
  189. package/dist/nodes/Google/Drive/v2/helpers/utils.d.ts +15 -0
  190. package/dist/nodes/Google/Drive/v2/helpers/utils.js +104 -0
  191. package/dist/nodes/Google/Drive/v2/helpers/utils.js.map +1 -0
  192. package/dist/nodes/Google/Drive/v2/methods/index.d.ts +1 -0
  193. package/dist/nodes/Google/Drive/v2/methods/index.js +28 -0
  194. package/dist/nodes/Google/Drive/v2/methods/index.js.map +1 -0
  195. package/dist/nodes/Google/Drive/v2/methods/listSearch.d.ts +6 -0
  196. package/dist/nodes/Google/Drive/v2/methods/listSearch.js +144 -0
  197. package/dist/nodes/Google/Drive/v2/methods/listSearch.js.map +1 -0
  198. package/dist/nodes/Google/Drive/v2/transport/index.d.ts +4 -0
  199. package/dist/nodes/Google/Drive/v2/transport/index.js +68 -0
  200. package/dist/nodes/Google/Drive/v2/transport/index.js.map +1 -0
  201. package/dist/nodes/Google/Gmail/v1/GmailV1.node.js.map +1 -1
  202. package/dist/nodes/GraphQL/GraphQL.node.js +32 -0
  203. package/dist/nodes/GraphQL/GraphQL.node.js.map +1 -1
  204. package/dist/nodes/Html/Html.node.js +2 -1
  205. package/dist/nodes/Html/Html.node.js.map +1 -1
  206. package/dist/nodes/Html/utils.d.ts +0 -1
  207. package/dist/nodes/Html/utils.js +1 -15
  208. package/dist/nodes/Html/utils.js.map +1 -1
  209. package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.js +6 -0
  210. package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.js.map +1 -1
  211. package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.js +6 -0
  212. package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.js.map +1 -1
  213. package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +28 -0
  214. package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
  215. package/dist/nodes/ItemLists/ItemLists.node.js +3 -1
  216. package/dist/nodes/ItemLists/ItemLists.node.js.map +1 -1
  217. package/dist/nodes/ItemLists/V3/ItemListsV3.node.d.ts +6 -0
  218. package/dist/nodes/ItemLists/V3/ItemListsV3.node.js +18 -0
  219. package/dist/nodes/ItemLists/V3/ItemListsV3.node.js.map +1 -0
  220. package/dist/nodes/ItemLists/V3/actions/common.descriptions.d.ts +2 -0
  221. package/dist/nodes/ItemLists/V3/actions/common.descriptions.js +11 -0
  222. package/dist/nodes/ItemLists/V3/actions/common.descriptions.js.map +1 -0
  223. package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.d.ts +23 -0
  224. package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js +303 -0
  225. package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js.map +1 -0
  226. package/dist/nodes/ItemLists/V3/actions/itemList/index.d.ts +9 -0
  227. package/dist/nodes/ItemLists/V3/actions/itemList/index.js +97 -0
  228. package/dist/nodes/ItemLists/V3/actions/itemList/index.js.map +1 -0
  229. package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.d.ts +23 -0
  230. package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js +57 -0
  231. package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js.map +1 -0
  232. package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.d.ts +23 -0
  233. package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js +204 -0
  234. package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js.map +1 -0
  235. package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.d.ts +23 -0
  236. package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js +262 -0
  237. package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js.map +1 -0
  238. package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.d.ts +23 -0
  239. package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js +183 -0
  240. package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js.map +1 -0
  241. package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.d.ts +23 -0
  242. package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js +491 -0
  243. package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js.map +1 -0
  244. package/dist/nodes/ItemLists/V3/actions/node.type.d.ts +6 -0
  245. package/dist/nodes/ItemLists/V3/actions/node.type.js +3 -0
  246. package/dist/nodes/ItemLists/V3/actions/node.type.js.map +1 -0
  247. package/dist/nodes/ItemLists/V3/actions/router.d.ts +2 -0
  248. package/dist/nodes/ItemLists/V3/actions/router.js +53 -0
  249. package/dist/nodes/ItemLists/V3/actions/router.js.map +1 -0
  250. package/dist/nodes/ItemLists/V3/actions/versionDescription.d.ts +2 -0
  251. package/dist/nodes/ItemLists/V3/actions/versionDescription.js +58 -0
  252. package/dist/nodes/ItemLists/V3/actions/versionDescription.js.map +1 -0
  253. package/dist/nodes/ItemLists/V3/helpers/utils.d.ts +5 -0
  254. package/dist/nodes/ItemLists/V3/helpers/utils.js +57 -0
  255. package/dist/nodes/ItemLists/V3/helpers/utils.js.map +1 -0
  256. package/dist/nodes/ItemLists/test/node/workflow.update_3.json +606 -0
  257. package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js +8 -0
  258. package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js.map +1 -1
  259. package/dist/nodes/MQTT/MqttTrigger.node.js +9 -0
  260. package/dist/nodes/MQTT/MqttTrigger.node.js.map +1 -1
  261. package/dist/nodes/Matrix/GenericFunctions.js +8 -2
  262. package/dist/nodes/Matrix/GenericFunctions.js.map +1 -1
  263. package/dist/nodes/Matrix/MediaDescription.js +23 -1
  264. package/dist/nodes/Matrix/MediaDescription.js.map +1 -1
  265. package/dist/nodes/Merge/v1/MergeV1.node.js.map +1 -1
  266. package/dist/nodes/Merge/v2/GenericFunctions.js.map +1 -1
  267. package/dist/nodes/Microsoft/Excel/v2/actions/table/addTable.operation.js.map +1 -1
  268. package/dist/nodes/Microsoft/Excel/v2/actions/table/append.operation.js.map +1 -1
  269. package/dist/nodes/Microsoft/Excel/v2/actions/table/convertToRange.operation.js.map +1 -1
  270. package/dist/nodes/Microsoft/Excel/v2/actions/table/deleteTable.operation.js.map +1 -1
  271. package/dist/nodes/Microsoft/Excel/v2/actions/table/getColumns.operation.js.map +1 -1
  272. package/dist/nodes/Microsoft/Excel/v2/actions/table/getRows.operation.js.map +1 -1
  273. package/dist/nodes/Microsoft/Excel/v2/actions/table/lookup.operation.js.map +1 -1
  274. package/dist/nodes/Microsoft/Excel/v2/actions/workbook/addWorksheet.operation.js.map +1 -1
  275. package/dist/nodes/Microsoft/Excel/v2/actions/workbook/deleteWorkbook.operation.js.map +1 -1
  276. package/dist/nodes/Microsoft/Excel/v2/actions/workbook/getAll.operation.js.map +1 -1
  277. package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/append.operation.js.map +1 -1
  278. package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/clear.operation.js.map +1 -1
  279. package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/deleteWorksheet.operation.js.map +1 -1
  280. package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/getAll.operation.js.map +1 -1
  281. package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/readRows.operation.js.map +1 -1
  282. package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/update.operation.js.map +1 -1
  283. package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/upsert.operation.js.map +1 -1
  284. package/dist/nodes/Microsoft/Excel/v2/helpers/utils.js.map +1 -1
  285. package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js +6 -2
  286. package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js.map +1 -1
  287. package/dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js +7 -0
  288. package/dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js.map +1 -1
  289. package/dist/nodes/Microsoft/ToDo/TaskDescription.js +7 -0
  290. package/dist/nodes/Microsoft/ToDo/TaskDescription.js.map +1 -1
  291. package/dist/nodes/MySql/v1/MySqlV1.node.js +2 -1
  292. package/dist/nodes/MySql/v1/MySqlV1.node.js.map +1 -1
  293. package/dist/nodes/MySql/v2/actions/database/deleteTable.operation.js.map +1 -1
  294. package/dist/nodes/MySql/v2/actions/database/executeQuery.operation.js +6 -2
  295. package/dist/nodes/MySql/v2/actions/database/executeQuery.operation.js.map +1 -1
  296. package/dist/nodes/MySql/v2/actions/database/insert.operation.js.map +1 -1
  297. package/dist/nodes/MySql/v2/actions/database/select.operation.js.map +1 -1
  298. package/dist/nodes/MySql/v2/actions/database/update.operation.js.map +1 -1
  299. package/dist/nodes/MySql/v2/actions/database/upsert.operation.js.map +1 -1
  300. package/dist/nodes/Notion/DatabasePageDescription.js +41 -0
  301. package/dist/nodes/Notion/DatabasePageDescription.js.map +1 -1
  302. package/dist/nodes/Notion/v2/NotionV2.node.js +9 -0
  303. package/dist/nodes/Notion/v2/NotionV2.node.js.map +1 -1
  304. package/dist/nodes/Postgres/PostgresTrigger.node.js +9 -0
  305. package/dist/nodes/Postgres/PostgresTrigger.node.js.map +1 -1
  306. package/dist/nodes/Postgres/v1/PostgresV1.node.js +2 -1
  307. package/dist/nodes/Postgres/v1/PostgresV1.node.js.map +1 -1
  308. package/dist/nodes/Postgres/v1/genericFunctions.d.ts +4 -1
  309. package/dist/nodes/Postgres/v1/genericFunctions.js +11 -3
  310. package/dist/nodes/Postgres/v1/genericFunctions.js.map +1 -1
  311. package/dist/nodes/Postgres/v2/actions/database/deleteTable.operation.js.map +1 -1
  312. package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js +7 -3
  313. package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js.map +1 -1
  314. package/dist/nodes/Postgres/v2/actions/database/insert.operation.js.map +1 -1
  315. package/dist/nodes/Postgres/v2/actions/database/select.operation.js.map +1 -1
  316. package/dist/nodes/Postgres/v2/actions/database/update.operation.js.map +1 -1
  317. package/dist/nodes/Postgres/v2/actions/database/upsert.operation.js.map +1 -1
  318. package/dist/nodes/QuestDb/QuestDb.node.js +6 -2
  319. package/dist/nodes/QuestDb/QuestDb.node.js.map +1 -1
  320. package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js +9 -0
  321. package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js.map +1 -1
  322. package/dist/nodes/Slack/V1/SlackV1.node.js.map +1 -1
  323. package/dist/nodes/Snowflake/Snowflake.node.js +6 -1
  324. package/dist/nodes/Snowflake/Snowflake.node.js.map +1 -1
  325. package/dist/nodes/SseTrigger/SseTrigger.node.js +8 -0
  326. package/dist/nodes/SseTrigger/SseTrigger.node.js.map +1 -1
  327. package/dist/nodes/Strava/ActivityDescription.js +7 -0
  328. package/dist/nodes/Strava/ActivityDescription.js.map +1 -1
  329. package/dist/nodes/Strava/Strava.node.js +0 -6
  330. package/dist/nodes/Strava/Strava.node.js.map +1 -1
  331. package/dist/nodes/TimescaleDb/TimescaleDb.node.js +5 -2
  332. package/dist/nodes/TimescaleDb/TimescaleDb.node.js.map +1 -1
  333. package/dist/nodes/Twitter/Twitter.node.d.ts +3 -9
  334. package/dist/nodes/Twitter/Twitter.node.js +12 -224
  335. package/dist/nodes/Twitter/Twitter.node.js.map +1 -1
  336. package/dist/nodes/Twitter/Twitter.node.json +2 -1
  337. package/dist/nodes/Twitter/V1/DirectMessageDescription.js.map +1 -0
  338. package/dist/nodes/Twitter/V1/GenericFunctions.js.map +1 -0
  339. package/dist/nodes/Twitter/V1/TweetDescription.js.map +1 -0
  340. package/dist/nodes/Twitter/V1/TweetInterface.js.map +1 -0
  341. package/dist/nodes/Twitter/V1/TwitterV1.node.d.ts +11 -0
  342. package/dist/nodes/Twitter/V1/TwitterV1.node.js +235 -0
  343. package/dist/nodes/Twitter/V1/TwitterV1.node.js.map +1 -0
  344. package/dist/nodes/Twitter/V2/DirectMessageDescription.d.ts +3 -0
  345. package/dist/nodes/Twitter/V2/DirectMessageDescription.js +100 -0
  346. package/dist/nodes/Twitter/V2/DirectMessageDescription.js.map +1 -0
  347. package/dist/nodes/Twitter/V2/GenericFunctions.d.ts +5 -0
  348. package/dist/nodes/Twitter/V2/GenericFunctions.js +88 -0
  349. package/dist/nodes/Twitter/V2/GenericFunctions.js.map +1 -0
  350. package/dist/nodes/Twitter/V2/ListDescription.d.ts +3 -0
  351. package/dist/nodes/Twitter/V2/ListDescription.js +92 -0
  352. package/dist/nodes/Twitter/V2/ListDescription.js.map +1 -0
  353. package/dist/nodes/Twitter/V2/TweetDescription.d.ts +3 -0
  354. package/dist/nodes/Twitter/V2/TweetDescription.js +452 -0
  355. package/dist/nodes/Twitter/V2/TweetDescription.js.map +1 -0
  356. package/dist/nodes/Twitter/V2/TweetInterface.d.ts +23 -0
  357. package/dist/nodes/Twitter/V2/TweetInterface.js +3 -0
  358. package/dist/nodes/Twitter/V2/TweetInterface.js.map +1 -0
  359. package/dist/nodes/Twitter/V2/TwitterV2.node.d.ts +11 -0
  360. package/dist/nodes/Twitter/V2/TwitterV2.node.js +245 -0
  361. package/dist/nodes/Twitter/V2/TwitterV2.node.js.map +1 -0
  362. package/dist/nodes/Twitter/V2/UserDescription.d.ts +3 -0
  363. package/dist/nodes/Twitter/V2/UserDescription.js +76 -0
  364. package/dist/nodes/Twitter/V2/UserDescription.js.map +1 -0
  365. package/dist/nodes/Twitter/test/Workflow_Twitter_UnitTest.json +284 -0
  366. package/dist/nodes/Wait/Wait.node.d.ts +7 -4
  367. package/dist/nodes/Wait/Wait.node.js +77 -499
  368. package/dist/nodes/Wait/Wait.node.js.map +1 -1
  369. package/dist/nodes/Webhook/Webhook.node.d.ts +8 -3
  370. package/dist/nodes/Webhook/Webhook.node.js +148 -460
  371. package/dist/nodes/Webhook/Webhook.node.js.map +1 -1
  372. package/dist/nodes/Webhook/description.d.ts +10 -0
  373. package/dist/nodes/Webhook/description.js +325 -0
  374. package/dist/nodes/Webhook/description.js.map +1 -0
  375. package/dist/nodes/Webhook/error.d.ts +4 -0
  376. package/dist/nodes/Webhook/error.js +20 -0
  377. package/dist/nodes/Webhook/error.js.map +1 -0
  378. package/dist/package.json +10 -5
  379. package/dist/types/credentials.json +6 -3
  380. package/dist/types/nodes.json +46 -40
  381. package/dist/utils/utilities.d.ts +1 -0
  382. package/dist/utils/utilities.js +15 -1
  383. package/dist/utils/utilities.js.map +1 -1
  384. package/package.json +12 -7
  385. package/dist/credentials/SendInBlueApi.credentials.js.map +0 -1
  386. package/dist/nodes/Google/Drive/GenericFunctions.js.map +0 -1
  387. package/dist/nodes/Google/Drive/SearchFunctions.js.map +0 -1
  388. package/dist/nodes/SendInBlue/AttributeDescription.js.map +0 -1
  389. package/dist/nodes/SendInBlue/ContactDescription.js.map +0 -1
  390. package/dist/nodes/SendInBlue/EmailDescription.js.map +0 -1
  391. package/dist/nodes/SendInBlue/GenericFunctions.js.map +0 -1
  392. package/dist/nodes/SendInBlue/SendInBlue.node.js.map +0 -1
  393. package/dist/nodes/SendInBlue/SendInBlueTrigger.node.js.map +0 -1
  394. package/dist/nodes/SendInBlue/SenderDescrition.js.map +0 -1
  395. package/dist/nodes/SendInBlue/sendinblue.svg +0 -20
  396. package/dist/nodes/Twitter/DirectMessageDescription.js.map +0 -1
  397. package/dist/nodes/Twitter/GenericFunctions.js.map +0 -1
  398. package/dist/nodes/Twitter/TweetDescription.js.map +0 -1
  399. package/dist/nodes/Twitter/TweetInterface.js.map +0 -1
  400. /package/dist/nodes/{SendInBlue → Brevo}/AttributeDescription.d.ts +0 -0
  401. /package/dist/nodes/{SendInBlue → Brevo}/ContactDescription.d.ts +0 -0
  402. /package/dist/nodes/{SendInBlue → Brevo}/ContactDescription.js +0 -0
  403. /package/dist/nodes/{SendInBlue → Brevo}/EmailDescription.d.ts +0 -0
  404. /package/dist/nodes/{SendInBlue → Brevo}/SenderDescrition.d.ts +0 -0
  405. /package/dist/nodes/{SendInBlue → Brevo}/SenderDescrition.js +0 -0
  406. /package/dist/nodes/Google/Drive/{GenericFunctions.d.ts → v1/GenericFunctions.d.ts} +0 -0
  407. /package/dist/nodes/Google/Drive/{SearchFunctions.d.ts → v1/SearchFunctions.d.ts} +0 -0
  408. /package/dist/nodes/Google/Drive/{SearchFunctions.js → v1/SearchFunctions.js} +0 -0
  409. /package/dist/nodes/Twitter/{DirectMessageDescription.d.ts → V1/DirectMessageDescription.d.ts} +0 -0
  410. /package/dist/nodes/Twitter/{DirectMessageDescription.js → V1/DirectMessageDescription.js} +0 -0
  411. /package/dist/nodes/Twitter/{GenericFunctions.d.ts → V1/GenericFunctions.d.ts} +0 -0
  412. /package/dist/nodes/Twitter/{GenericFunctions.js → V1/GenericFunctions.js} +0 -0
  413. /package/dist/nodes/Twitter/{TweetDescription.d.ts → V1/TweetDescription.d.ts} +0 -0
  414. /package/dist/nodes/Twitter/{TweetDescription.js → V1/TweetDescription.js} +0 -0
  415. /package/dist/nodes/Twitter/{TweetInterface.d.ts → V1/TweetInterface.d.ts} +0 -0
  416. /package/dist/nodes/Twitter/{TweetInterface.js → V1/TweetInterface.js} +0 -0
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.directMessageFields = exports.directMessageOperations = void 0;
4
+ exports.directMessageOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['directMessage'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Create',
18
+ value: 'create',
19
+ description: 'Send a direct message to a user',
20
+ action: 'Create Direct Message',
21
+ },
22
+ ],
23
+ default: 'create',
24
+ },
25
+ ];
26
+ exports.directMessageFields = [
27
+ {
28
+ displayName: 'User',
29
+ name: 'user',
30
+ type: 'resourceLocator',
31
+ default: { mode: 'username', value: '' },
32
+ required: true,
33
+ description: 'The user you want to send the message to',
34
+ displayOptions: {
35
+ show: {
36
+ operation: ['create'],
37
+ resource: ['directMessage'],
38
+ },
39
+ },
40
+ modes: [
41
+ {
42
+ displayName: 'By Username',
43
+ name: 'username',
44
+ type: 'string',
45
+ validation: [],
46
+ placeholder: 'e.g. n8n',
47
+ url: '',
48
+ },
49
+ {
50
+ displayName: 'By ID',
51
+ name: 'id',
52
+ type: 'string',
53
+ validation: [],
54
+ placeholder: 'e.g. 1068479892537384960',
55
+ url: '',
56
+ },
57
+ ],
58
+ },
59
+ {
60
+ displayName: 'Text',
61
+ name: 'text',
62
+ type: 'string',
63
+ required: true,
64
+ default: '',
65
+ typeOptions: {
66
+ rows: 2,
67
+ },
68
+ displayOptions: {
69
+ show: {
70
+ operation: ['create'],
71
+ resource: ['directMessage'],
72
+ },
73
+ },
74
+ description: 'The text of the direct message. URL encoding is required. Max length of 10,000 characters.',
75
+ },
76
+ {
77
+ displayName: 'Additional Fields',
78
+ name: 'additionalFields',
79
+ type: 'collection',
80
+ placeholder: 'Add Field',
81
+ default: {},
82
+ displayOptions: {
83
+ show: {
84
+ operation: ['create'],
85
+ resource: ['directMessage'],
86
+ },
87
+ },
88
+ options: [
89
+ {
90
+ displayName: 'Attachment ID',
91
+ name: 'attachments',
92
+ type: 'string',
93
+ default: '',
94
+ placeholder: '1664279886239010824',
95
+ description: 'The attachment ID to associate with the message',
96
+ },
97
+ ],
98
+ },
99
+ ];
100
+ //# sourceMappingURL=DirectMessageDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DirectMessageDescription.js","sourceRoot":"","sources":["../../../../nodes/Twitter/V2/DirectMessageDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAsB;IACzD;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,eAAe,CAAC;aAC3B;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iCAAiC;gBAC9C,MAAM,EAAE,uBAAuB;aAC/B;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAEW,QAAA,mBAAmB,GAAsB;IAIrD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,EAAE;QACxC,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,0CAA0C;QACvD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,QAAQ,EAAE,CAAC,eAAe,CAAC;aAC3B;SACD;QACD,KAAK,EAAE;YACN;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,EAAE;gBACd,WAAW,EAAE,UAAU;gBACvB,GAAG,EAAE,EAAE;aACP;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,EAAE;gBACd,WAAW,EAAE,0BAA0B;gBACvC,GAAG,EAAE,EAAE;aACP;SACD;KACD;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE;YACZ,IAAI,EAAE,CAAC;SACP;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,QAAQ,EAAE,CAAC,eAAe,CAAC;aAC3B;SACD;QACD,WAAW,EACV,4FAA4F;KAC7F;IACD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,QAAQ,EAAE,CAAC,eAAe,CAAC;aAC3B;SACD;QACD,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,qBAAqB;gBAClC,WAAW,EAAE,iDAAiD;aAC9D;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { IDataObject, IExecuteFunctions, IExecuteSingleFunctions, IHookFunctions, ILoadOptionsFunctions, INodeParameterResourceLocator } from 'n8n-workflow';
2
+ export declare function twitterApiRequest(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IHookFunctions, method: string, resource: string, body?: IDataObject, qs?: IDataObject, fullOutput?: boolean, uri?: string, option?: IDataObject): Promise<any>;
3
+ export declare function twitterApiRequestAllItems(this: IExecuteFunctions | ILoadOptionsFunctions, propertyName: string, method: string, endpoint: string, body?: IDataObject, query?: IDataObject): Promise<IDataObject[]>;
4
+ export declare function returnId(tweetId: INodeParameterResourceLocator): string;
5
+ export declare function returnIdFromUsername(this: IExecuteFunctions, usernameRlc: INodeParameterResourceLocator): Promise<string>;
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.returnIdFromUsername = exports.returnId = exports.twitterApiRequestAllItems = exports.twitterApiRequest = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ async function twitterApiRequest(method, resource, body = {}, qs = {}, fullOutput, uri, option = {}) {
6
+ var _a, _b;
7
+ let options = {
8
+ method,
9
+ body,
10
+ qs,
11
+ url: uri || `https://api.twitter.com/2${resource}`,
12
+ json: true,
13
+ };
14
+ try {
15
+ if (Object.keys(option).length !== 0) {
16
+ options = Object.assign({}, options, option);
17
+ }
18
+ if (Object.keys(body).length === 0) {
19
+ delete options.body;
20
+ }
21
+ if (Object.keys(qs).length === 0) {
22
+ delete options.qs;
23
+ }
24
+ if (fullOutput) {
25
+ return await this.helpers.requestOAuth2.call(this, 'twitterOAuth2Api', options);
26
+ }
27
+ else {
28
+ const { data } = await this.helpers.requestOAuth2.call(this, 'twitterOAuth2Api', options);
29
+ return data;
30
+ }
31
+ }
32
+ catch (error) {
33
+ if (((_a = error.error) === null || _a === void 0 ? void 0 : _a.required_enrollment) === 'Appropriate Level of API Access') {
34
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'The operation requires Twitter Api to be either Basic or Pro.');
35
+ }
36
+ else if (error.errors && ((_b = error.error) === null || _b === void 0 ? void 0 : _b.errors[0].message.includes('must be '))) {
37
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), error.error.errors[0].message);
38
+ }
39
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
40
+ }
41
+ }
42
+ exports.twitterApiRequest = twitterApiRequest;
43
+ async function twitterApiRequestAllItems(propertyName, method, endpoint, body = {}, query = {}) {
44
+ const returnData = [];
45
+ let responseData;
46
+ query.max_results = 10;
47
+ do {
48
+ responseData = await twitterApiRequest.call(this, method, endpoint, body, query, true);
49
+ query.next_token = responseData.meta.next_token;
50
+ returnData.push.apply(returnData, responseData[propertyName]);
51
+ } while (responseData.meta.next_token);
52
+ return returnData;
53
+ }
54
+ exports.twitterApiRequestAllItems = twitterApiRequestAllItems;
55
+ function returnId(tweetId) {
56
+ if (tweetId.mode === 'id') {
57
+ return tweetId.value;
58
+ }
59
+ else if (tweetId.mode === 'url') {
60
+ const value = tweetId.value;
61
+ const tweetIdMatch = value.includes('lists')
62
+ ? value.match(/^https?:\/\/twitter\.com\/(?:#!\/)?(\w+)\/list(s)?\/(\d+)$/)
63
+ : value.match(/^https?:\/\/twitter\.com\/(?:#!\/)?(\w+)\/status(es)?\/(\d+)$/);
64
+ return tweetIdMatch === null || tweetIdMatch === void 0 ? void 0 : tweetIdMatch[3];
65
+ }
66
+ else {
67
+ throw new Error(`The mode ${tweetId.mode} is not valid!`);
68
+ }
69
+ }
70
+ exports.returnId = returnId;
71
+ async function returnIdFromUsername(usernameRlc) {
72
+ usernameRlc.value = usernameRlc.value.includes('@')
73
+ ? usernameRlc.value.replace('@', '')
74
+ : usernameRlc.value;
75
+ if (usernameRlc.mode === 'username' ||
76
+ (usernameRlc.mode === 'name' && this.getNode().parameters.list !== undefined)) {
77
+ const user = (await twitterApiRequest.call(this, 'GET', `/users/by/username/${usernameRlc.value}`, {}));
78
+ return user.id;
79
+ }
80
+ else if (this.getNode().parameters.list === undefined) {
81
+ const list = (await twitterApiRequest.call(this, 'GET', `/list/by/name/${usernameRlc.value}`, {}));
82
+ return list.id;
83
+ }
84
+ else
85
+ throw new Error(`The username mode ${usernameRlc.mode} is not valid!`);
86
+ }
87
+ exports.returnIdFromUsername = returnIdFromUsername;
88
+ //# sourceMappingURL=GenericFunctions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericFunctions.js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CACF,CAAmB,CAAC;QACrB,OAAO,IAAI,CAAC,EAAE,CAAC;KACf;;QAAM,MAAM,IAAI,KAAK,CAAC,qBAAqB,WAAW,CAAC,IAAI,gBAAgB,CAAC,CAAC;AAC/E,CAAC;AA3BD,oDA2BC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const listOperations: INodeProperties[];
3
+ export declare const listFields: INodeProperties[];
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listFields = exports.listOperations = void 0;
4
+ exports.listOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['list'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Add Member',
18
+ value: 'add',
19
+ description: 'Add a member to a list',
20
+ action: 'Add Member to List',
21
+ },
22
+ ],
23
+ default: 'add',
24
+ },
25
+ ];
26
+ exports.listFields = [
27
+ {
28
+ displayName: 'List',
29
+ name: 'list',
30
+ type: 'resourceLocator',
31
+ default: { mode: 'id', value: '' },
32
+ required: true,
33
+ description: 'The list you want to add the user to',
34
+ displayOptions: {
35
+ show: {
36
+ operation: ['add'],
37
+ resource: ['list'],
38
+ },
39
+ },
40
+ modes: [
41
+ {
42
+ displayName: 'By ID',
43
+ name: 'id',
44
+ type: 'string',
45
+ validation: [],
46
+ placeholder: 'e.g. 99923132',
47
+ url: '',
48
+ },
49
+ {
50
+ displayName: 'By URL',
51
+ name: 'url',
52
+ type: 'string',
53
+ validation: [],
54
+ placeholder: 'e.g. https://twitter.com/i/lists/99923132',
55
+ url: '',
56
+ },
57
+ ],
58
+ },
59
+ {
60
+ displayName: 'User',
61
+ name: 'user',
62
+ type: 'resourceLocator',
63
+ default: { mode: 'username', value: '' },
64
+ required: true,
65
+ description: 'The user you want to add to the list',
66
+ displayOptions: {
67
+ show: {
68
+ operation: ['add'],
69
+ resource: ['list'],
70
+ },
71
+ },
72
+ modes: [
73
+ {
74
+ displayName: 'By Username',
75
+ name: 'username',
76
+ type: 'string',
77
+ validation: [],
78
+ placeholder: 'e.g. n8n',
79
+ url: '',
80
+ },
81
+ {
82
+ displayName: 'By ID',
83
+ name: 'id',
84
+ type: 'string',
85
+ validation: [],
86
+ placeholder: 'e.g. 1068479892537384960',
87
+ url: '',
88
+ },
89
+ ],
90
+ },
91
+ ];
92
+ //# sourceMappingURL=ListDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListDescription.js","sourceRoot":"","sources":["../../../../nodes/Twitter/V2/ListDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAsB;IAChD;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,MAAM,CAAC;aAClB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,wBAAwB;gBACrC,MAAM,EAAE,oBAAoB;aAC5B;SACD;QACD,OAAO,EAAE,KAAK;KACd;CACD,CAAC;AAEW,QAAA,UAAU,GAAsB;IAI5C;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;QAClC,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,sCAAsC;QACnD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,KAAK,CAAC;gBAClB,QAAQ,EAAE,CAAC,MAAM,CAAC;aAClB;SACD;QACD,KAAK,EAAE;YACN;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,EAAE;gBACd,WAAW,EAAE,eAAe;gBAC5B,GAAG,EAAE,EAAE;aACP;YACD;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,EAAE;gBACd,WAAW,EAAE,2CAA2C;gBACxD,GAAG,EAAE,EAAE;aACP;SACD;KACD;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,EAAE;QACxC,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,sCAAsC;QACnD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,KAAK,CAAC;gBAClB,QAAQ,EAAE,CAAC,MAAM,CAAC;aAClB;SACD;QACD,KAAK,EAAE;YACN;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,EAAE;gBACd,WAAW,EAAE,UAAU;gBACvB,GAAG,EAAE,EAAE;aACP;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,EAAE;gBACd,WAAW,EAAE,0BAA0B;gBACvC,GAAG,EAAE,EAAE;aACP;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const tweetOperations: INodeProperties[];
3
+ export declare const tweetFields: INodeProperties[];