n8n-nodes-base 0.234.0 → 1.0.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 (346) hide show
  1. package/dist/build.tsbuildinfo +1 -1
  2. package/dist/credentials/GoogleDriveOAuth2Api.credentials.js +0 -6
  3. package/dist/credentials/GoogleDriveOAuth2Api.credentials.js.map +1 -1
  4. package/dist/credentials/{BrevoApi.credentials.d.ts → SendInBlueApi.credentials.d.ts} +1 -1
  5. package/dist/credentials/{BrevoApi.credentials.js → SendInBlueApi.credentials.js} +7 -7
  6. package/dist/credentials/SendInBlueApi.credentials.js.map +1 -0
  7. package/dist/credentials/TwitterOAuth1Api.credentials.js +0 -6
  8. package/dist/credentials/TwitterOAuth1Api.credentials.js.map +1 -1
  9. package/dist/known/credentials.json +11 -35
  10. package/dist/known/nodes.json +8 -16
  11. package/dist/nodes/Code/Code.node.js +1 -2
  12. package/dist/nodes/Code/Code.node.js.map +1 -1
  13. package/dist/nodes/CompareDatasets/CompareDatasets.node.js +2 -1
  14. package/dist/nodes/CompareDatasets/CompareDatasets.node.js.map +1 -1
  15. package/dist/nodes/CompareDatasets/test/node/workflow.compareDatasets.forceInputNodeExecution.json +211 -0
  16. package/dist/nodes/Google/Drive/{v1/GenericFunctions.js → GenericFunctions.js} +1 -1
  17. package/dist/nodes/Google/Drive/GenericFunctions.js.map +1 -0
  18. package/dist/nodes/Google/Drive/GoogleDrive.node.d.ts +12 -3
  19. package/dist/nodes/Google/Drive/GoogleDrive.node.js +2301 -10
  20. package/dist/nodes/Google/Drive/GoogleDrive.node.js.map +1 -1
  21. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.d.ts +1 -1
  22. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js +2 -2
  23. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js.map +1 -1
  24. package/dist/nodes/Google/Drive/SearchFunctions.js.map +1 -0
  25. package/dist/nodes/GraphQL/GraphQL.node.js +0 -32
  26. package/dist/nodes/GraphQL/GraphQL.node.js.map +1 -1
  27. package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +0 -22
  28. package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
  29. package/dist/nodes/ItemLists/ItemLists.node.js +1 -3
  30. package/dist/nodes/ItemLists/ItemLists.node.js.map +1 -1
  31. package/dist/nodes/Matrix/GenericFunctions.js +2 -8
  32. package/dist/nodes/Matrix/GenericFunctions.js.map +1 -1
  33. package/dist/nodes/Matrix/MediaDescription.js +1 -23
  34. package/dist/nodes/Matrix/MediaDescription.js.map +1 -1
  35. package/dist/nodes/Merge/Merge.node.js +1 -0
  36. package/dist/nodes/Merge/Merge.node.js.map +1 -1
  37. package/dist/nodes/Merge/test/node/workflow.mixed.forceInputNodeExecution.json +2440 -0
  38. package/dist/nodes/Merge/test/node/workflow.mixed.not.forceInputNodeExecution.json +2378 -0
  39. package/dist/nodes/Merge/v2/MergeV2.node.js +21 -1
  40. package/dist/nodes/Merge/v2/MergeV2.node.js.map +1 -1
  41. package/dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js +0 -7
  42. package/dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js.map +1 -1
  43. package/dist/nodes/Microsoft/ToDo/TaskDescription.js +0 -7
  44. package/dist/nodes/Microsoft/ToDo/TaskDescription.js.map +1 -1
  45. package/dist/nodes/Notion/DatabasePageDescription.js +0 -41
  46. package/dist/nodes/Notion/DatabasePageDescription.js.map +1 -1
  47. package/dist/nodes/Notion/v2/NotionV2.node.js +0 -9
  48. package/dist/nodes/Notion/v2/NotionV2.node.js.map +1 -1
  49. package/dist/nodes/Salesforce/ContactDescription.js +3 -3
  50. package/dist/nodes/Salesforce/ContactDescription.js.map +1 -1
  51. package/dist/nodes/{Brevo → SendInBlue}/AttributeDescription.js +1 -1
  52. package/dist/nodes/SendInBlue/AttributeDescription.js.map +1 -0
  53. package/dist/nodes/SendInBlue/ContactDescription.js.map +1 -0
  54. package/dist/nodes/{Brevo → SendInBlue}/EmailDescription.js +10 -10
  55. package/dist/nodes/SendInBlue/EmailDescription.js.map +1 -0
  56. package/dist/nodes/{Brevo → SendInBlue}/GenericFunctions.d.ts +2 -2
  57. package/dist/nodes/{Brevo → SendInBlue}/GenericFunctions.js +14 -14
  58. package/dist/nodes/SendInBlue/GenericFunctions.js.map +1 -0
  59. package/dist/nodes/{Brevo/Brevo.node.d.ts → SendInBlue/SendInBlue.node.d.ts} +1 -1
  60. package/dist/nodes/{Brevo/Brevo.node.js → SendInBlue/SendInBlue.node.js} +9 -9
  61. package/dist/nodes/SendInBlue/SendInBlue.node.js.map +1 -0
  62. package/dist/nodes/{Brevo/Brevo.node.json → SendInBlue/SendInBlue.node.json} +4 -5
  63. package/dist/nodes/{Brevo/BrevoTrigger.node.d.ts → SendInBlue/SendInBlueTrigger.node.d.ts} +1 -1
  64. package/dist/nodes/{Brevo/BrevoTrigger.node.js → SendInBlue/SendInBlueTrigger.node.js} +11 -11
  65. package/dist/nodes/SendInBlue/SendInBlueTrigger.node.js.map +1 -0
  66. package/dist/nodes/{Brevo/BrevoTrigger.node.json → SendInBlue/SendInBlueTrigger.node.json} +4 -5
  67. package/dist/nodes/SendInBlue/SenderDescrition.js.map +1 -0
  68. package/dist/nodes/SendInBlue/sendinblue.svg +20 -0
  69. package/dist/nodes/Strava/ActivityDescription.js +0 -7
  70. package/dist/nodes/Strava/ActivityDescription.js.map +1 -1
  71. package/dist/nodes/Strava/Strava.node.js +6 -0
  72. package/dist/nodes/Strava/Strava.node.js.map +1 -1
  73. package/dist/nodes/Twitter/DirectMessageDescription.js.map +1 -0
  74. package/dist/nodes/Twitter/GenericFunctions.js.map +1 -0
  75. package/dist/nodes/Twitter/TweetDescription.js.map +1 -0
  76. package/dist/nodes/Twitter/TweetInterface.js.map +1 -0
  77. package/dist/nodes/Twitter/Twitter.node.d.ts +9 -3
  78. package/dist/nodes/Twitter/Twitter.node.js +224 -12
  79. package/dist/nodes/Twitter/Twitter.node.js.map +1 -1
  80. package/dist/nodes/Twitter/Twitter.node.json +1 -2
  81. package/dist/nodes/Wait/Wait.node.d.ts +4 -7
  82. package/dist/nodes/Wait/Wait.node.js +499 -77
  83. package/dist/nodes/Wait/Wait.node.js.map +1 -1
  84. package/dist/nodes/Webhook/Webhook.node.d.ts +3 -8
  85. package/dist/nodes/Webhook/Webhook.node.js +460 -148
  86. package/dist/nodes/Webhook/Webhook.node.js.map +1 -1
  87. package/dist/types/credentials.json +3 -6
  88. package/dist/types/nodes.json +21 -26
  89. package/package.json +6 -12
  90. package/dist/credentials/BrevoApi.credentials.js.map +0 -1
  91. package/dist/credentials/CrowdDevApi.credentials.d.ts +0 -9
  92. package/dist/credentials/CrowdDevApi.credentials.js +0 -62
  93. package/dist/credentials/CrowdDevApi.credentials.js.map +0 -1
  94. package/dist/credentials/HttpCustomAuth.credentials.d.ts +0 -9
  95. package/dist/credentials/HttpCustomAuth.credentials.js +0 -25
  96. package/dist/credentials/HttpCustomAuth.credentials.js.map +0 -1
  97. package/dist/credentials/TwitterOAuth2Api.credentials.d.ts +0 -8
  98. package/dist/credentials/TwitterOAuth2Api.credentials.js +0 -73
  99. package/dist/credentials/TwitterOAuth2Api.credentials.js.map +0 -1
  100. package/dist/nodes/Brevo/AttributeDescription.js.map +0 -1
  101. package/dist/nodes/Brevo/Brevo.node.js.map +0 -1
  102. package/dist/nodes/Brevo/BrevoTrigger.node.js.map +0 -1
  103. package/dist/nodes/Brevo/ContactDescription.js.map +0 -1
  104. package/dist/nodes/Brevo/EmailDescription.js.map +0 -1
  105. package/dist/nodes/Brevo/GenericFunctions.js.map +0 -1
  106. package/dist/nodes/Brevo/SenderDescrition.js.map +0 -1
  107. package/dist/nodes/Brevo/brevo.svg +0 -4
  108. package/dist/nodes/CrowdDev/CrowdDev.node.d.ts +0 -4
  109. package/dist/nodes/CrowdDev/CrowdDev.node.js +0 -36
  110. package/dist/nodes/CrowdDev/CrowdDev.node.js.map +0 -1
  111. package/dist/nodes/CrowdDev/CrowdDev.node.json +0 -18
  112. package/dist/nodes/CrowdDev/CrowdDevTrigger.node.d.ts +0 -12
  113. package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js +0 -145
  114. package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js.map +0 -1
  115. package/dist/nodes/CrowdDev/CrowdDevTrigger.node.json +0 -18
  116. package/dist/nodes/CrowdDev/GenericFunctions.d.ts +0 -7
  117. package/dist/nodes/CrowdDev/GenericFunctions.js +0 -157
  118. package/dist/nodes/CrowdDev/GenericFunctions.js.map +0 -1
  119. package/dist/nodes/CrowdDev/crowdDev.svg +0 -15
  120. package/dist/nodes/CrowdDev/descriptions/activityFields.d.ts +0 -4
  121. package/dist/nodes/CrowdDev/descriptions/activityFields.js +0 -180
  122. package/dist/nodes/CrowdDev/descriptions/activityFields.js.map +0 -1
  123. package/dist/nodes/CrowdDev/descriptions/automationFields.d.ts +0 -4
  124. package/dist/nodes/CrowdDev/descriptions/automationFields.js +0 -126
  125. package/dist/nodes/CrowdDev/descriptions/automationFields.js.map +0 -1
  126. package/dist/nodes/CrowdDev/descriptions/index.d.ts +0 -2
  127. package/dist/nodes/CrowdDev/descriptions/index.js +0 -26
  128. package/dist/nodes/CrowdDev/descriptions/index.js.map +0 -1
  129. package/dist/nodes/CrowdDev/descriptions/memberFields.d.ts +0 -4
  130. package/dist/nodes/CrowdDev/descriptions/memberFields.js +0 -291
  131. package/dist/nodes/CrowdDev/descriptions/memberFields.js.map +0 -1
  132. package/dist/nodes/CrowdDev/descriptions/noteFields.d.ts +0 -4
  133. package/dist/nodes/CrowdDev/descriptions/noteFields.js +0 -90
  134. package/dist/nodes/CrowdDev/descriptions/noteFields.js.map +0 -1
  135. package/dist/nodes/CrowdDev/descriptions/organizationFields.d.ts +0 -4
  136. package/dist/nodes/CrowdDev/descriptions/organizationFields.js +0 -146
  137. package/dist/nodes/CrowdDev/descriptions/organizationFields.js.map +0 -1
  138. package/dist/nodes/CrowdDev/descriptions/resources.d.ts +0 -2
  139. package/dist/nodes/CrowdDev/descriptions/resources.js +0 -38
  140. package/dist/nodes/CrowdDev/descriptions/resources.js.map +0 -1
  141. package/dist/nodes/CrowdDev/descriptions/shared.d.ts +0 -2
  142. package/dist/nodes/CrowdDev/descriptions/shared.js +0 -29
  143. package/dist/nodes/CrowdDev/descriptions/shared.js.map +0 -1
  144. package/dist/nodes/CrowdDev/descriptions/taskFields.d.ts +0 -4
  145. package/dist/nodes/CrowdDev/descriptions/taskFields.js +0 -159
  146. package/dist/nodes/CrowdDev/descriptions/taskFields.js.map +0 -1
  147. package/dist/nodes/CrowdDev/descriptions/utils.d.ts +0 -5
  148. package/dist/nodes/CrowdDev/descriptions/utils.js +0 -55
  149. package/dist/nodes/CrowdDev/descriptions/utils.js.map +0 -1
  150. package/dist/nodes/Google/Drive/test/v2/node/helpers.d.ts +0 -3
  151. package/dist/nodes/Google/Drive/test/v2/node/helpers.js +0 -34
  152. package/dist/nodes/Google/Drive/test/v2/node/helpers.js.map +0 -1
  153. package/dist/nodes/Google/Drive/v1/GenericFunctions.js.map +0 -1
  154. package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.d.ts +0 -14
  155. package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js +0 -2324
  156. package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js.map +0 -1
  157. package/dist/nodes/Google/Drive/v1/SearchFunctions.js.map +0 -1
  158. package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.d.ts +0 -10
  159. package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.js +0 -20
  160. package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.js.map +0 -1
  161. package/dist/nodes/Google/Drive/v2/actions/common.descriptions.d.ts +0 -19
  162. package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js +0 -598
  163. package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js.map +0 -1
  164. package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.d.ts +0 -8
  165. package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.js +0 -88
  166. package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.js.map +0 -1
  167. package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.d.ts +0 -23
  168. package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.js +0 -235
  169. package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.js.map +0 -1
  170. package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.d.ts +0 -23
  171. package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.js +0 -31
  172. package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.js.map +0 -1
  173. package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.d.ts +0 -23
  174. package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.js +0 -50
  175. package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.js.map +0 -1
  176. package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.d.ts +0 -23
  177. package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.js +0 -81
  178. package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.js.map +0 -1
  179. package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.d.ts +0 -23
  180. package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.js +0 -100
  181. package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.js.map +0 -1
  182. package/dist/nodes/Google/Drive/v2/actions/file/File.resource.d.ts +0 -11
  183. package/dist/nodes/Google/Drive/v2/actions/file/File.resource.js +0 -115
  184. package/dist/nodes/Google/Drive/v2/actions/file/File.resource.js.map +0 -1
  185. package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.d.ts +0 -23
  186. package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.js +0 -104
  187. package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.js.map +0 -1
  188. package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.d.ts +0 -23
  189. package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.js +0 -134
  190. package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.js.map +0 -1
  191. package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.d.ts +0 -23
  192. package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.js +0 -57
  193. package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.js.map +0 -1
  194. package/dist/nodes/Google/Drive/v2/actions/file/download.operation.d.ts +0 -23
  195. package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js +0 -218
  196. package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js.map +0 -1
  197. package/dist/nodes/Google/Drive/v2/actions/file/move.operation.d.ts +0 -23
  198. package/dist/nodes/Google/Drive/v2/actions/file/move.operation.js +0 -60
  199. package/dist/nodes/Google/Drive/v2/actions/file/move.operation.js.map +0 -1
  200. package/dist/nodes/Google/Drive/v2/actions/file/share.operation.d.ts +0 -23
  201. package/dist/nodes/Google/Drive/v2/actions/file/share.operation.js +0 -43
  202. package/dist/nodes/Google/Drive/v2/actions/file/share.operation.js.map +0 -1
  203. package/dist/nodes/Google/Drive/v2/actions/file/update.operation.d.ts +0 -23
  204. package/dist/nodes/Google/Drive/v2/actions/file/update.operation.js +0 -221
  205. package/dist/nodes/Google/Drive/v2/actions/file/update.operation.js.map +0 -1
  206. package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.d.ts +0 -23
  207. package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js +0 -135
  208. package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js.map +0 -1
  209. package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.d.ts +0 -4
  210. package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.js +0 -52
  211. package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.js.map +0 -1
  212. package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.d.ts +0 -23
  213. package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.js +0 -335
  214. package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.js.map +0 -1
  215. package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.d.ts +0 -6
  216. package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.js +0 -70
  217. package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.js.map +0 -1
  218. package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.d.ts +0 -23
  219. package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.js +0 -92
  220. package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.js.map +0 -1
  221. package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.d.ts +0 -23
  222. package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.js +0 -59
  223. package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.js.map +0 -1
  224. package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.d.ts +0 -23
  225. package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.js +0 -43
  226. package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.js.map +0 -1
  227. package/dist/nodes/Google/Drive/v2/actions/node.type.d.ts +0 -9
  228. package/dist/nodes/Google/Drive/v2/actions/node.type.js +0 -3
  229. package/dist/nodes/Google/Drive/v2/actions/node.type.js.map +0 -1
  230. package/dist/nodes/Google/Drive/v2/actions/router.d.ts +0 -2
  231. package/dist/nodes/Google/Drive/v2/actions/router.js +0 -76
  232. package/dist/nodes/Google/Drive/v2/actions/router.js.map +0 -1
  233. package/dist/nodes/Google/Drive/v2/actions/versionDescription.d.ts +0 -2
  234. package/dist/nodes/Google/Drive/v2/actions/versionDescription.js +0 -112
  235. package/dist/nodes/Google/Drive/v2/actions/versionDescription.js.map +0 -1
  236. package/dist/nodes/Google/Drive/v2/helpers/interfaces.d.ts +0 -34
  237. package/dist/nodes/Google/Drive/v2/helpers/interfaces.js +0 -26
  238. package/dist/nodes/Google/Drive/v2/helpers/interfaces.js.map +0 -1
  239. package/dist/nodes/Google/Drive/v2/helpers/utils.d.ts +0 -15
  240. package/dist/nodes/Google/Drive/v2/helpers/utils.js +0 -104
  241. package/dist/nodes/Google/Drive/v2/helpers/utils.js.map +0 -1
  242. package/dist/nodes/Google/Drive/v2/methods/index.d.ts +0 -1
  243. package/dist/nodes/Google/Drive/v2/methods/index.js +0 -28
  244. package/dist/nodes/Google/Drive/v2/methods/index.js.map +0 -1
  245. package/dist/nodes/Google/Drive/v2/methods/listSearch.d.ts +0 -6
  246. package/dist/nodes/Google/Drive/v2/methods/listSearch.js +0 -144
  247. package/dist/nodes/Google/Drive/v2/methods/listSearch.js.map +0 -1
  248. package/dist/nodes/Google/Drive/v2/transport/index.d.ts +0 -4
  249. package/dist/nodes/Google/Drive/v2/transport/index.js +0 -68
  250. package/dist/nodes/Google/Drive/v2/transport/index.js.map +0 -1
  251. package/dist/nodes/ItemLists/V3/ItemListsV3.node.d.ts +0 -6
  252. package/dist/nodes/ItemLists/V3/ItemListsV3.node.js +0 -18
  253. package/dist/nodes/ItemLists/V3/ItemListsV3.node.js.map +0 -1
  254. package/dist/nodes/ItemLists/V3/actions/common.descriptions.d.ts +0 -2
  255. package/dist/nodes/ItemLists/V3/actions/common.descriptions.js +0 -11
  256. package/dist/nodes/ItemLists/V3/actions/common.descriptions.js.map +0 -1
  257. package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.d.ts +0 -23
  258. package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js +0 -303
  259. package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js.map +0 -1
  260. package/dist/nodes/ItemLists/V3/actions/itemList/index.d.ts +0 -9
  261. package/dist/nodes/ItemLists/V3/actions/itemList/index.js +0 -97
  262. package/dist/nodes/ItemLists/V3/actions/itemList/index.js.map +0 -1
  263. package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.d.ts +0 -23
  264. package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js +0 -57
  265. package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js.map +0 -1
  266. package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.d.ts +0 -23
  267. package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js +0 -204
  268. package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js.map +0 -1
  269. package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.d.ts +0 -23
  270. package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js +0 -262
  271. package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js.map +0 -1
  272. package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.d.ts +0 -23
  273. package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js +0 -183
  274. package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js.map +0 -1
  275. package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.d.ts +0 -23
  276. package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js +0 -491
  277. package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js.map +0 -1
  278. package/dist/nodes/ItemLists/V3/actions/node.type.d.ts +0 -6
  279. package/dist/nodes/ItemLists/V3/actions/node.type.js +0 -3
  280. package/dist/nodes/ItemLists/V3/actions/node.type.js.map +0 -1
  281. package/dist/nodes/ItemLists/V3/actions/router.d.ts +0 -2
  282. package/dist/nodes/ItemLists/V3/actions/router.js +0 -53
  283. package/dist/nodes/ItemLists/V3/actions/router.js.map +0 -1
  284. package/dist/nodes/ItemLists/V3/actions/versionDescription.d.ts +0 -2
  285. package/dist/nodes/ItemLists/V3/actions/versionDescription.js +0 -58
  286. package/dist/nodes/ItemLists/V3/actions/versionDescription.js.map +0 -1
  287. package/dist/nodes/ItemLists/V3/helpers/utils.d.ts +0 -5
  288. package/dist/nodes/ItemLists/V3/helpers/utils.js +0 -57
  289. package/dist/nodes/ItemLists/V3/helpers/utils.js.map +0 -1
  290. package/dist/nodes/ItemLists/test/node/workflow.update_3.json +0 -606
  291. package/dist/nodes/Twitter/V1/DirectMessageDescription.js.map +0 -1
  292. package/dist/nodes/Twitter/V1/GenericFunctions.js.map +0 -1
  293. package/dist/nodes/Twitter/V1/TweetDescription.js.map +0 -1
  294. package/dist/nodes/Twitter/V1/TweetInterface.js.map +0 -1
  295. package/dist/nodes/Twitter/V1/TwitterV1.node.d.ts +0 -11
  296. package/dist/nodes/Twitter/V1/TwitterV1.node.js +0 -235
  297. package/dist/nodes/Twitter/V1/TwitterV1.node.js.map +0 -1
  298. package/dist/nodes/Twitter/V2/DirectMessageDescription.d.ts +0 -3
  299. package/dist/nodes/Twitter/V2/DirectMessageDescription.js +0 -100
  300. package/dist/nodes/Twitter/V2/DirectMessageDescription.js.map +0 -1
  301. package/dist/nodes/Twitter/V2/GenericFunctions.d.ts +0 -5
  302. package/dist/nodes/Twitter/V2/GenericFunctions.js +0 -88
  303. package/dist/nodes/Twitter/V2/GenericFunctions.js.map +0 -1
  304. package/dist/nodes/Twitter/V2/ListDescription.d.ts +0 -3
  305. package/dist/nodes/Twitter/V2/ListDescription.js +0 -92
  306. package/dist/nodes/Twitter/V2/ListDescription.js.map +0 -1
  307. package/dist/nodes/Twitter/V2/TweetDescription.d.ts +0 -3
  308. package/dist/nodes/Twitter/V2/TweetDescription.js +0 -452
  309. package/dist/nodes/Twitter/V2/TweetDescription.js.map +0 -1
  310. package/dist/nodes/Twitter/V2/TweetInterface.d.ts +0 -23
  311. package/dist/nodes/Twitter/V2/TweetInterface.js +0 -3
  312. package/dist/nodes/Twitter/V2/TweetInterface.js.map +0 -1
  313. package/dist/nodes/Twitter/V2/TwitterV2.node.d.ts +0 -11
  314. package/dist/nodes/Twitter/V2/TwitterV2.node.js +0 -245
  315. package/dist/nodes/Twitter/V2/TwitterV2.node.js.map +0 -1
  316. package/dist/nodes/Twitter/V2/UserDescription.d.ts +0 -3
  317. package/dist/nodes/Twitter/V2/UserDescription.js +0 -76
  318. package/dist/nodes/Twitter/V2/UserDescription.js.map +0 -1
  319. package/dist/nodes/Twitter/test/Workflow_Twitter_UnitTest.json +0 -284
  320. package/dist/nodes/Webhook/description.d.ts +0 -10
  321. package/dist/nodes/Webhook/description.js +0 -325
  322. package/dist/nodes/Webhook/description.js.map +0 -1
  323. package/dist/nodes/Webhook/error.d.ts +0 -4
  324. package/dist/nodes/Webhook/error.js +0 -20
  325. package/dist/nodes/Webhook/error.js.map +0 -1
  326. package/dist/package.json +0 -850
  327. package/dist/utils/constants.d.ts +0 -1
  328. package/dist/utils/constants.js +0 -7
  329. package/dist/utils/constants.js.map +0 -1
  330. /package/dist/nodes/Google/Drive/{v1/GenericFunctions.d.ts → GenericFunctions.d.ts} +0 -0
  331. /package/dist/nodes/Google/Drive/{v1/SearchFunctions.d.ts → SearchFunctions.d.ts} +0 -0
  332. /package/dist/nodes/Google/Drive/{v1/SearchFunctions.js → SearchFunctions.js} +0 -0
  333. /package/dist/nodes/{Brevo → SendInBlue}/AttributeDescription.d.ts +0 -0
  334. /package/dist/nodes/{Brevo → SendInBlue}/ContactDescription.d.ts +0 -0
  335. /package/dist/nodes/{Brevo → SendInBlue}/ContactDescription.js +0 -0
  336. /package/dist/nodes/{Brevo → SendInBlue}/EmailDescription.d.ts +0 -0
  337. /package/dist/nodes/{Brevo → SendInBlue}/SenderDescrition.d.ts +0 -0
  338. /package/dist/nodes/{Brevo → SendInBlue}/SenderDescrition.js +0 -0
  339. /package/dist/nodes/Twitter/{V1/DirectMessageDescription.d.ts → DirectMessageDescription.d.ts} +0 -0
  340. /package/dist/nodes/Twitter/{V1/DirectMessageDescription.js → DirectMessageDescription.js} +0 -0
  341. /package/dist/nodes/Twitter/{V1/GenericFunctions.d.ts → GenericFunctions.d.ts} +0 -0
  342. /package/dist/nodes/Twitter/{V1/GenericFunctions.js → GenericFunctions.js} +0 -0
  343. /package/dist/nodes/Twitter/{V1/TweetDescription.d.ts → TweetDescription.d.ts} +0 -0
  344. /package/dist/nodes/Twitter/{V1/TweetDescription.js → TweetDescription.js} +0 -0
  345. /package/dist/nodes/Twitter/{V1/TweetInterface.d.ts → TweetInterface.d.ts} +0 -0
  346. /package/dist/nodes/Twitter/{V1/TweetInterface.js → TweetInterface.js} +0 -0
@@ -1,100 +0,0 @@
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 transport_1 = require("../../transport");
6
- const common_descriptions_1 = require("../common.descriptions");
7
- const properties = [
8
- {
9
- ...common_descriptions_1.sharedDriveRLC,
10
- description: 'The shared drive to update',
11
- },
12
- {
13
- displayName: 'Update Fields',
14
- name: 'options',
15
- type: 'collection',
16
- placeholder: 'Add Option',
17
- default: {},
18
- displayOptions: {
19
- show: {
20
- operation: ['update'],
21
- resource: ['drive'],
22
- },
23
- },
24
- options: [
25
- {
26
- displayName: 'Color RGB',
27
- name: 'colorRgb',
28
- type: 'color',
29
- default: '',
30
- description: 'The color of this shared drive as an RGB hex string',
31
- },
32
- {
33
- displayName: 'Name',
34
- name: 'name',
35
- type: 'string',
36
- default: '',
37
- description: 'The updated name of the shared drive',
38
- },
39
- {
40
- displayName: 'Restrictions',
41
- name: 'restrictions',
42
- type: 'collection',
43
- placeholder: 'Add Field',
44
- default: {},
45
- options: [
46
- {
47
- displayName: 'Admin Managed Restrictions',
48
- name: 'adminManagedRestrictions',
49
- type: 'boolean',
50
- default: false,
51
- description: 'Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.',
52
- },
53
- {
54
- displayName: 'Copy Requires Writer Permission',
55
- name: 'copyRequiresWriterPermission',
56
- type: 'boolean',
57
- default: false,
58
- description: 'Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.',
59
- },
60
- {
61
- displayName: 'Domain Users Only',
62
- name: 'domainUsersOnly',
63
- type: 'boolean',
64
- default: false,
65
- description: 'Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.',
66
- },
67
- {
68
- displayName: 'Drive Members Only',
69
- name: 'driveMembersOnly',
70
- type: 'boolean',
71
- default: false,
72
- description: 'Whether access to items inside this shared drive is restricted to its members',
73
- },
74
- ],
75
- },
76
- ],
77
- },
78
- ];
79
- const displayOptions = {
80
- show: {
81
- resource: ['drive'],
82
- operation: ['update'],
83
- },
84
- };
85
- exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
86
- async function execute(i) {
87
- const returnData = [];
88
- const options = this.getNodeParameter('options', i, {});
89
- const driveId = this.getNodeParameter('driveId', i, undefined, {
90
- extractValue: true,
91
- });
92
- const body = {};
93
- Object.assign(body, options);
94
- const response = await transport_1.googleApiRequest.call(this, 'PATCH', `/drive/v3/drives/${driveId}`, body);
95
- const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
96
- returnData.push(...executionData);
97
- return returnData;
98
- }
99
- exports.execute = execute;
100
- //# sourceMappingURL=update.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/drive/update.operation.ts"],"names":[],"mappings":";;;AAGA,iEAAyE;AACzE,+CAAmD;AACnD,gEAAwD;AAExD,MAAM,UAAU,GAAsB;IACrC;QACC,GAAG,oCAAc;QACjB,WAAW,EAAE,4BAA4B;KACzC;IACD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,QAA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,GAAG,IAAA,gCAAoB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AAErE,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC/D,MAAM,UAAU,GAAyB,EAAE,CAAC;IAC5C,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAExD,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE;QAC9D,YAAY,EAAE,IAAI;KAClB,CAAW,CAAC;IAEb,MAAM,IAAI,GAAgB,EAAE,CAAC;IAE7B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE7B,MAAM,QAAQ,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,oBAAoB,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;IAEjG,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC5D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAyB,CAAC,EACvD,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;IAEF,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;IAElC,OAAO,UAAU,CAAC;AACnB,CAAC;AAtBD,0BAsBC"}
@@ -1,11 +0,0 @@
1
- import type { INodeProperties } from 'n8n-workflow';
2
- import * as copy from './copy.operation';
3
- import * as createFromText from './createFromText.operation';
4
- import * as deleteFile from './deleteFile.operation';
5
- import * as download from './download.operation';
6
- import * as move from './move.operation';
7
- import * as share from './share.operation';
8
- import * as update from './update.operation';
9
- import * as upload from './upload.operation';
10
- export { copy, createFromText, deleteFile, download, move, share, update, upload };
11
- export declare const description: INodeProperties[];
@@ -1,115 +0,0 @@
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.upload = exports.update = exports.share = exports.move = exports.download = exports.deleteFile = exports.createFromText = exports.copy = void 0;
27
- const copy = __importStar(require("./copy.operation"));
28
- exports.copy = copy;
29
- const createFromText = __importStar(require("./createFromText.operation"));
30
- exports.createFromText = createFromText;
31
- const deleteFile = __importStar(require("./deleteFile.operation"));
32
- exports.deleteFile = deleteFile;
33
- const download = __importStar(require("./download.operation"));
34
- exports.download = download;
35
- const move = __importStar(require("./move.operation"));
36
- exports.move = move;
37
- const share = __importStar(require("./share.operation"));
38
- exports.share = share;
39
- const update = __importStar(require("./update.operation"));
40
- exports.update = update;
41
- const upload = __importStar(require("./upload.operation"));
42
- exports.upload = upload;
43
- exports.description = [
44
- {
45
- displayName: 'Operation',
46
- name: 'operation',
47
- type: 'options',
48
- noDataExpression: true,
49
- displayOptions: {
50
- show: {
51
- resource: ['file'],
52
- },
53
- },
54
- options: [
55
- {
56
- name: 'Copy',
57
- value: 'copy',
58
- description: 'Create a copy of an existing file',
59
- action: 'Copy file',
60
- },
61
- {
62
- name: 'Create From Text',
63
- value: 'createFromText',
64
- description: 'Create a file from a provided text',
65
- action: 'Create file from text',
66
- },
67
- {
68
- name: 'Delete',
69
- value: 'deleteFile',
70
- description: 'Permanently delete a file',
71
- action: 'Delete a file',
72
- },
73
- {
74
- name: 'Download',
75
- value: 'download',
76
- description: 'Download a file',
77
- action: 'Download file',
78
- },
79
- {
80
- name: 'Move',
81
- value: 'move',
82
- description: 'Move a file to another folder',
83
- action: 'Move file',
84
- },
85
- {
86
- name: 'Share',
87
- value: 'share',
88
- description: 'Add sharing permissions to a file',
89
- action: 'Share file',
90
- },
91
- {
92
- name: 'Update',
93
- value: 'update',
94
- description: 'Update a file',
95
- action: 'Update file',
96
- },
97
- {
98
- name: 'Upload',
99
- value: 'upload',
100
- description: 'Upload an existing file to Google Drive',
101
- action: 'Upload file',
102
- },
103
- ],
104
- default: 'upload',
105
- },
106
- ...copy.description,
107
- ...deleteFile.description,
108
- ...createFromText.description,
109
- ...download.description,
110
- ...move.description,
111
- ...share.description,
112
- ...update.description,
113
- ...upload.description,
114
- ];
115
- //# sourceMappingURL=File.resource.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"File.resource.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/file/File.resource.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uDAAyC;AAShC,oBAAI;AARb,2EAA6D;AAQ9C,wCAAc;AAP7B,mEAAqD;AAOtB,gCAAU;AANzC,+DAAiD;AAMN,4BAAQ;AALnD,uDAAyC;AAKY,oBAAI;AAJzD,yDAA2C;AAIgB,sBAAK;AAHhE,2DAA6C;AAGqB,wBAAM;AAFxE,2DAA6C;AAE6B,wBAAM;AAEnE,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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G,MAAM,CAAC,WAAW;CACrB,CAAC"}
@@ -1,23 +0,0 @@
1
- import type { IExecuteFunctions } from 'n8n-core';
2
- import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
3
- export declare const description: {
4
- displayOptions: import("n8n-workflow").IDisplayOptions;
5
- displayName: string;
6
- name: string;
7
- type: import("n8n-workflow").NodePropertyTypes;
8
- typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
9
- default: import("n8n-workflow").NodeParameterValueType;
10
- description?: string | undefined;
11
- hint?: string | undefined;
12
- options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
13
- placeholder?: string | undefined;
14
- isNodeSetting?: boolean | undefined;
15
- noDataExpression?: boolean | undefined;
16
- required?: boolean | undefined;
17
- routing?: import("n8n-workflow").INodePropertyRouting | undefined;
18
- credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
19
- extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
20
- modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
21
- requiresDataPath?: "single" | "multiple" | undefined;
22
- }[];
23
- export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
@@ -1,104 +0,0 @@
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 transport_1 = require("../../transport");
6
- const common_descriptions_1 = require("../common.descriptions");
7
- const utils_1 = require("../../helpers/utils");
8
- const properties = [
9
- {
10
- ...common_descriptions_1.fileRLC,
11
- description: 'The file to copy',
12
- },
13
- {
14
- displayName: 'File Name',
15
- name: 'name',
16
- type: 'string',
17
- default: '',
18
- placeholder: 'e.g. My File',
19
- description: 'The name of the new file. If not set, “Copy of {original file name}” will be used.',
20
- },
21
- {
22
- displayName: 'Copy In The Same Folder',
23
- name: 'sameFolder',
24
- type: 'boolean',
25
- default: true,
26
- description: 'Whether to copy the file in the same folder as the original file',
27
- },
28
- {
29
- ...common_descriptions_1.driveRLC,
30
- displayName: 'Parent Drive',
31
- description: 'The drive where to save the copied file',
32
- displayOptions: { show: { sameFolder: [false] } },
33
- },
34
- {
35
- ...common_descriptions_1.folderRLC,
36
- displayName: 'Parent Folder',
37
- description: 'The folder where to save the copied file',
38
- displayOptions: { show: { sameFolder: [false] } },
39
- },
40
- {
41
- displayName: 'Options',
42
- name: 'options',
43
- type: 'collection',
44
- placeholder: 'Add Option',
45
- default: {},
46
- options: [
47
- {
48
- displayName: 'Copy Requires Writer Permission',
49
- name: 'copyRequiresWriterPermission',
50
- type: 'boolean',
51
- default: false,
52
- description: 'Whether the options to copy, print, or download this file, should be disabled for readers and commenters',
53
- },
54
- {
55
- displayName: 'Description',
56
- name: 'description',
57
- type: 'string',
58
- default: '',
59
- description: 'A short description of the file',
60
- },
61
- ],
62
- },
63
- ];
64
- const displayOptions = {
65
- show: {
66
- resource: ['file'],
67
- operation: ['copy'],
68
- },
69
- };
70
- exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
71
- async function execute(i) {
72
- const file = this.getNodeParameter('fileId', i);
73
- const fileId = file.value;
74
- const options = this.getNodeParameter('options', i, {});
75
- let name = this.getNodeParameter('name', i);
76
- name = name ? name : `Copy of ${file.cachedResultName}`;
77
- const copyRequiresWriterPermission = options.copyRequiresWriterPermission || false;
78
- const qs = {
79
- includeItemsFromAllDrives: true,
80
- supportsAllDrives: true,
81
- spaces: 'appDataFolder, drive',
82
- corpora: 'allDrives',
83
- };
84
- const parents = [];
85
- const sameFolder = this.getNodeParameter('sameFolder', i);
86
- if (!sameFolder) {
87
- const driveId = this.getNodeParameter('driveId', i, undefined, {
88
- extractValue: true,
89
- });
90
- const folderId = this.getNodeParameter('folderId', i, undefined, {
91
- extractValue: true,
92
- });
93
- parents.push((0, utils_1.setParentFolder)(folderId, driveId));
94
- }
95
- const body = { copyRequiresWriterPermission, parents, name };
96
- if (options.description) {
97
- body.description = options.description;
98
- }
99
- const response = await transport_1.googleApiRequest.call(this, 'POST', `/drive/v3/files/${fileId}/copy`, body, qs);
100
- const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
101
- return executionData;
102
- }
103
- exports.execute = execute;
104
- //# sourceMappingURL=copy.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"copy.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/file/copy.operation.ts"],"names":[],"mappings":";;;AAQA,iEAAyE;AACzE,+CAAmD;AACnD,gEAAsE;AACtE,+CAAsD;AAEtD,MAAM,UAAU,GAAsB;IACrC;QACC,GAAG,6BAAO;QACV,WAAW,EAAE,kBAAkB;KAC/B;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,cAAc;QAC3B,WAAW,EACV,oFAAoF;KACrF;IACD;QACC,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,kEAAkE;KAC/E;IACD;QACC,GAAG,8BAAQ;QACX,WAAW,EAAE,cAAc;QAC3B,WAAW,EAAE,yCAAyC;QACtD,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE;KACjD;IACD;QACC,GAAG,+BAAS;QACZ,WAAW,EAAE,eAAe;QAC5B,WAAW,EAAE,0CAA0C;QACvD,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE;KACjD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,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AAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAY,CAAC;IAErE,IAAI,CAAC,UAAU,EAAE;QAChB,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE;YAC9D,YAAY,EAAE,IAAI;SAClB,CAAW,CAAC;QAEb,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;YAChE,YAAY,EAAE,IAAI;SAClB,CAAW,CAAC;QAEb,OAAO,CAAC,IAAI,CAAC,IAAA,uBAAe,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;KACjD;IAED,MAAM,IAAI,GAAgB,EAAE,4BAA4B,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAE1E,IAAI,OAAO,CAAC,WAAW,EAAE;QACxB,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;KACvC;IAED,MAAM,QAAQ,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAC3C,IAAI,EACJ,MAAM,EACN,mBAAmB,MAAM,OAAO,EAChC,IAAI,EACJ,EAAE,CACF,CAAC;IAEF,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC5D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAyB,CAAC,EACvD,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;IAEF,OAAO,aAAa,CAAC;AACtB,CAAC;AAtDD,0BAsDC"}
@@ -1,23 +0,0 @@
1
- import type { IExecuteFunctions } from 'n8n-core';
2
- import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
3
- export declare const description: {
4
- displayOptions: import("n8n-workflow").IDisplayOptions;
5
- displayName: string;
6
- name: string;
7
- type: import("n8n-workflow").NodePropertyTypes;
8
- typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
9
- default: import("n8n-workflow").NodeParameterValueType;
10
- description?: string | undefined;
11
- hint?: string | undefined;
12
- options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
13
- placeholder?: string | undefined;
14
- isNodeSetting?: boolean | undefined;
15
- noDataExpression?: boolean | undefined;
16
- required?: boolean | undefined;
17
- routing?: import("n8n-workflow").INodePropertyRouting | undefined;
18
- credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
19
- extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
20
- modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
21
- requiresDataPath?: "single" | "multiple" | undefined;
22
- }[];
23
- export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
@@ -1,134 +0,0 @@
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 common_descriptions_1 = require("../common.descriptions");
6
- const transport_1 = require("../../transport");
7
- const utils_1 = require("../../helpers/utils");
8
- const properties = [
9
- {
10
- displayName: 'File Content',
11
- name: 'content',
12
- type: 'string',
13
- default: '',
14
- typeOptions: {
15
- rows: 2,
16
- },
17
- description: 'The text to create the file with',
18
- },
19
- {
20
- displayName: 'File Name',
21
- name: 'name',
22
- type: 'string',
23
- default: '',
24
- placeholder: 'e.g. My New File',
25
- description: "The name of the file you want to create. If not specified, 'Untitled' will be used.",
26
- },
27
- {
28
- ...common_descriptions_1.driveRLC,
29
- displayName: 'Parent Drive',
30
- required: false,
31
- description: 'The drive where to create the new file',
32
- },
33
- {
34
- ...common_descriptions_1.folderRLC,
35
- displayName: 'Parent Folder',
36
- required: false,
37
- description: 'The folder where to create the new file',
38
- },
39
- {
40
- displayName: 'Options',
41
- name: 'options',
42
- type: 'collection',
43
- placeholder: 'Add Option',
44
- default: {},
45
- options: [
46
- ...common_descriptions_1.updateCommonOptions,
47
- {
48
- displayName: 'Convert to Google Document',
49
- name: 'convertToGoogleDocument',
50
- type: 'boolean',
51
- default: false,
52
- description: 'Whether to create a Google Document (instead of the .txt default format)',
53
- hint: 'Google Docs API has to be enabled in the <a href="https://console.developers.google.com/apis/library/docs.googleapis.com" target="_blank">Google API Console</a>.',
54
- },
55
- ],
56
- },
57
- ];
58
- const displayOptions = {
59
- show: {
60
- resource: ['file'],
61
- operation: ['createFromText'],
62
- },
63
- };
64
- exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
65
- async function execute(i) {
66
- const name = this.getNodeParameter('name', i) || 'Untitled';
67
- const options = this.getNodeParameter('options', i, {});
68
- const convertToGoogleDocument = options.convertToGoogleDocument || false;
69
- const mimeType = convertToGoogleDocument ? "application/vnd.google-apps.document" : 'text/plain';
70
- const driveId = this.getNodeParameter('driveId', i, undefined, {
71
- extractValue: true,
72
- });
73
- const folderId = this.getNodeParameter('folderId', i, undefined, {
74
- extractValue: true,
75
- });
76
- const bodyParameters = (0, utils_1.setFileProperties)({
77
- name,
78
- parents: [(0, utils_1.setParentFolder)(folderId, driveId)],
79
- mimeType,
80
- }, options);
81
- const boundary = 'XXXXXX';
82
- const qs = (0, utils_1.setUpdateCommonParams)({
83
- includeItemsFromAllDrives: true,
84
- supportsAllDrives: true,
85
- spaces: 'appDataFolder, drive',
86
- corpora: 'allDrives',
87
- }, options);
88
- let response;
89
- if (convertToGoogleDocument) {
90
- const document = await transport_1.googleApiRequest.call(this, 'POST', '/drive/v3/files', bodyParameters, qs);
91
- const text = this.getNodeParameter('content', i, '');
92
- const body = {
93
- requests: [
94
- {
95
- insertText: {
96
- text,
97
- endOfSegmentLocation: {
98
- segmentId: '',
99
- },
100
- },
101
- },
102
- ],
103
- };
104
- const updateResponse = await transport_1.googleApiRequest.call(this, 'POST', '', body, undefined, `https://docs.googleapis.com/v1/documents/${document.id}:batchUpdate`);
105
- response = { id: updateResponse.documentId };
106
- }
107
- else {
108
- const content = Buffer.from(this.getNodeParameter('content', i, ''), 'utf8');
109
- const contentLength = content.byteLength;
110
- const body = `
111
- \n--${boundary}\
112
- \nContent-Type: application/json; charset=UTF-8\
113
- \n\n${JSON.stringify(bodyParameters)}\
114
- \n--${boundary}\
115
- \nContent-Type: text/plain\
116
- \nContent-Transfer-Encoding: base64\
117
- \n\n${content}\
118
- \n--${boundary}--`;
119
- const responseData = await transport_1.googleApiRequest.call(this, 'POST', '/upload/drive/v3/files', body, {
120
- uploadType: 'multipart',
121
- ...qs,
122
- }, undefined, {
123
- headers: {
124
- 'Content-Type': `multipart/related; boundary=${boundary}`,
125
- 'Content-Length': contentLength,
126
- },
127
- });
128
- response = { id: responseData.id };
129
- }
130
- const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
131
- return executionData;
132
- }
133
- exports.execute = execute;
134
- //# sourceMappingURL=createFromText.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createFromText.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/file/createFromText.operation.ts"],"names":[],"mappings":";;;AAGA,iEAAyE;AACzE,gEAAkF;AAClF,+CAAmD;AAEnD,+CAAgG;AAEhG,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE;YACZ,IAAI,EAAE,CAAC;SACP;QACD,WAAW,EAAE,kCAAkC;KAC/C;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kBAAkB;QAC/B,WAAW,EACV,qFAAqF;KACtF;IACD;QACC,GAAG,8BAAQ;QACX,WAAW,EAAE,cAAc;QAC3B,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,wCA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CAAW,EAAE,MAAM,CAAC,CAAC;QACvF,MAAM,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC;QAEzC,MAAM,IAAI,GAAG;QACP,QAAQ;;QAER,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC;QAC9B,QAAQ;;;QAGR,OAAO;QACP,QAAQ,IAAI,CAAC;QAEnB,MAAM,YAAY,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAC/C,IAAI,EACJ,MAAM,EACN,wBAAwB,EACxB,IAAI,EACJ;YACC,UAAU,EAAE,WAAW;YACvB,GAAG,EAAE;SACL,EACD,SAAS,EACT;YACC,OAAO,EAAE;gBACR,cAAc,EAAE,+BAA+B,QAAQ,EAAE;gBACzD,gBAAgB,EAAE,aAAa;aAC/B;SACD,CACD,CAAC;QAEF,QAAQ,GAAG,EAAE,EAAE,EAAE,YAAY,CAAC,EAAE,EAAE,CAAC;KACnC;IAED,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC5D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAuB,CAAC,EACrD,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;IAEF,OAAO,aAAa,CAAC;AACtB,CAAC;AAhHD,0BAgHC"}
@@ -1,23 +0,0 @@
1
- import type { IExecuteFunctions } from 'n8n-core';
2
- import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
3
- export declare const description: {
4
- displayOptions: import("n8n-workflow").IDisplayOptions;
5
- displayName: string;
6
- name: string;
7
- type: import("n8n-workflow").NodePropertyTypes;
8
- typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
9
- default: import("n8n-workflow").NodeParameterValueType;
10
- description?: string | undefined;
11
- hint?: string | undefined;
12
- options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
13
- placeholder?: string | undefined;
14
- isNodeSetting?: boolean | undefined;
15
- noDataExpression?: boolean | undefined;
16
- required?: boolean | undefined;
17
- routing?: import("n8n-workflow").INodePropertyRouting | undefined;
18
- credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
19
- extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
20
- modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
21
- requiresDataPath?: "single" | "multiple" | undefined;
22
- }[];
23
- export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
@@ -1,57 +0,0 @@
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 transport_1 = require("../../transport");
6
- const common_descriptions_1 = require("../common.descriptions");
7
- const properties = [
8
- {
9
- ...common_descriptions_1.fileRLC,
10
- description: 'The file to delete',
11
- },
12
- {
13
- displayName: 'Options',
14
- name: 'options',
15
- type: 'collection',
16
- placeholder: 'Add Option',
17
- default: {},
18
- options: [
19
- {
20
- displayName: 'Delete Permanently',
21
- name: 'deletePermanently',
22
- type: 'boolean',
23
- default: false,
24
- description: 'Whether to delete the file immediately. If false, the file will be moved to the trash.',
25
- },
26
- ],
27
- },
28
- ];
29
- const displayOptions = {
30
- show: {
31
- resource: ['file'],
32
- operation: ['deleteFile'],
33
- },
34
- };
35
- exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
36
- async function execute(i) {
37
- const fileId = this.getNodeParameter('fileId', i, undefined, {
38
- extractValue: true,
39
- });
40
- const deletePermanently = this.getNodeParameter('options.deletePermanently', i, false);
41
- const qs = {
42
- supportsAllDrives: true,
43
- };
44
- if (deletePermanently) {
45
- await transport_1.googleApiRequest.call(this, 'DELETE', `/drive/v3/files/${fileId}`, undefined, qs);
46
- }
47
- else {
48
- await transport_1.googleApiRequest.call(this, 'PATCH', `/drive/v3/files/${fileId}`, { trashed: true }, qs);
49
- }
50
- const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray({
51
- id: fileId,
52
- success: true,
53
- }), { itemData: { item: i } });
54
- return executionData;
55
- }
56
- exports.execute = execute;
57
- //# sourceMappingURL=deleteFile.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deleteFile.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/file/deleteFile.operation.ts"],"names":[],"mappings":";;;AAGA,iEAAyE;AACzE,+CAAmD;AACnD,gEAAiD;AAEjD,MAAM,UAAU,GAAsB;IACrC;QACC,GAAG,6BAAO;QACV,WAAW,EAAE,oBAAoB;KACjC;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,oBAAoB;gBACjC,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EACV,wFAAwF;aACzF;SACD;KACD;CACD,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,MAAM,CAAC;QAClB,SAAS,EAAE,CAAC,YAAY,CAAC;KACzB;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,gCAAoB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AAErE,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC/D,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE;QAC5D,YAAY,EAAE,IAAI;KAClB,CAAW,CAAC;IAEb,MAAM,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,2BAA2B,EAAE,CAAC,EAAE,KAAK,CAAY,CAAC;IAElG,MAAM,EAAE,GAAG;QACV,iBAAiB,EAAE,IAAI;KACvB,CAAC;IAEF,IAAI,iBAAiB,EAAE;QACtB,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,mBAAmB,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;KACxF;SAAM;QACN,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAmB,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;KAC/F;IAED,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC5D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC;QAC5B,EAAE,EAAE,MAAM;QACV,OAAO,EAAE,IAAI;KACb,CAAC,EACF,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;IAEF,OAAO,aAAa,CAAC;AACtB,CAAC;AA1BD,0BA0BC"}
@@ -1,23 +0,0 @@
1
- import type { IExecuteFunctions } from 'n8n-core';
2
- import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
3
- export declare const description: {
4
- displayOptions: import("n8n-workflow").IDisplayOptions;
5
- displayName: string;
6
- name: string;
7
- type: import("n8n-workflow").NodePropertyTypes;
8
- typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
9
- default: import("n8n-workflow").NodeParameterValueType;
10
- description?: string | undefined;
11
- hint?: string | undefined;
12
- options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
13
- placeholder?: string | undefined;
14
- isNodeSetting?: boolean | undefined;
15
- noDataExpression?: boolean | undefined;
16
- required?: boolean | undefined;
17
- routing?: import("n8n-workflow").INodePropertyRouting | undefined;
18
- credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
19
- extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
20
- modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
21
- requiresDataPath?: "single" | "multiple" | undefined;
22
- }[];
23
- export declare function execute(this: IExecuteFunctions, i: number, item: INodeExecutionData): Promise<INodeExecutionData[]>;