n8n-nodes-base 2.32.3 → 2.33.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 (597) hide show
  1. package/dist/cjs/build.tsbuildinfo +1 -1
  2. package/dist/credentials/AzureStorageOAuth2Api.credentials.d.ts.map +1 -1
  3. package/dist/credentials/AzureStorageOAuth2Api.credentials.js +31 -1
  4. package/dist/credentials/AzureStorageOAuth2Api.credentials.js.map +1 -1
  5. package/dist/credentials/DatabricksOAuth2Api.credentials.js +4 -4
  6. package/dist/credentials/DatabricksOAuth2Api.credentials.js.map +1 -1
  7. package/dist/credentials/GSuiteAdminOAuth2Api.credentials.d.ts.map +1 -1
  8. package/dist/credentials/GSuiteAdminOAuth2Api.credentials.js +31 -1
  9. package/dist/credentials/GSuiteAdminOAuth2Api.credentials.js.map +1 -1
  10. package/dist/credentials/GmailOAuth2Api.credentials.d.ts.map +1 -1
  11. package/dist/credentials/GmailOAuth2Api.credentials.js +31 -1
  12. package/dist/credentials/GmailOAuth2Api.credentials.js.map +1 -1
  13. package/dist/credentials/GoogleAdsOAuth2Api.credentials.d.ts.map +1 -1
  14. package/dist/credentials/GoogleAdsOAuth2Api.credentials.js +31 -1
  15. package/dist/credentials/GoogleAdsOAuth2Api.credentials.js.map +1 -1
  16. package/dist/credentials/GoogleAnalyticsOAuth2Api.credentials.d.ts.map +1 -1
  17. package/dist/credentials/GoogleAnalyticsOAuth2Api.credentials.js +31 -1
  18. package/dist/credentials/GoogleAnalyticsOAuth2Api.credentials.js.map +1 -1
  19. package/dist/credentials/GoogleBooksOAuth2Api.credentials.d.ts.map +1 -1
  20. package/dist/credentials/GoogleBooksOAuth2Api.credentials.js +31 -1
  21. package/dist/credentials/GoogleBooksOAuth2Api.credentials.js.map +1 -1
  22. package/dist/credentials/GoogleBusinessProfileOAuth2Api.credentials.d.ts.map +1 -1
  23. package/dist/credentials/GoogleBusinessProfileOAuth2Api.credentials.js +31 -1
  24. package/dist/credentials/GoogleBusinessProfileOAuth2Api.credentials.js.map +1 -1
  25. package/dist/credentials/GoogleChatOAuth2Api.credentials.d.ts.map +1 -1
  26. package/dist/credentials/GoogleChatOAuth2Api.credentials.js +31 -1
  27. package/dist/credentials/GoogleChatOAuth2Api.credentials.js.map +1 -1
  28. package/dist/credentials/GoogleCloudNaturalLanguageOAuth2Api.credentials.d.ts.map +1 -1
  29. package/dist/credentials/GoogleCloudNaturalLanguageOAuth2Api.credentials.js +31 -1
  30. package/dist/credentials/GoogleCloudNaturalLanguageOAuth2Api.credentials.js.map +1 -1
  31. package/dist/credentials/GoogleContactsOAuth2Api.credentials.d.ts.map +1 -1
  32. package/dist/credentials/GoogleContactsOAuth2Api.credentials.js +31 -1
  33. package/dist/credentials/GoogleContactsOAuth2Api.credentials.js.map +1 -1
  34. package/dist/credentials/GoogleDocsOAuth2Api.credentials.d.ts.map +1 -1
  35. package/dist/credentials/GoogleDocsOAuth2Api.credentials.js +31 -1
  36. package/dist/credentials/GoogleDocsOAuth2Api.credentials.js.map +1 -1
  37. package/dist/credentials/GoogleDriveOAuth2Api.credentials.d.ts.map +1 -1
  38. package/dist/credentials/GoogleDriveOAuth2Api.credentials.js +31 -1
  39. package/dist/credentials/GoogleDriveOAuth2Api.credentials.js.map +1 -1
  40. package/dist/credentials/GoogleFirebaseCloudFirestoreOAuth2Api.credentials.d.ts.map +1 -1
  41. package/dist/credentials/GoogleFirebaseCloudFirestoreOAuth2Api.credentials.js +31 -1
  42. package/dist/credentials/GoogleFirebaseCloudFirestoreOAuth2Api.credentials.js.map +1 -1
  43. package/dist/credentials/GoogleFirebaseRealtimeDatabaseOAuth2Api.credentials.d.ts.map +1 -1
  44. package/dist/credentials/GoogleFirebaseRealtimeDatabaseOAuth2Api.credentials.js +31 -1
  45. package/dist/credentials/GoogleFirebaseRealtimeDatabaseOAuth2Api.credentials.js.map +1 -1
  46. package/dist/credentials/GooglePerspectiveOAuth2Api.credentials.d.ts.map +1 -1
  47. package/dist/credentials/GooglePerspectiveOAuth2Api.credentials.js +31 -1
  48. package/dist/credentials/GooglePerspectiveOAuth2Api.credentials.js.map +1 -1
  49. package/dist/credentials/GoogleSheetsTriggerOAuth2Api.credentials.d.ts.map +1 -1
  50. package/dist/credentials/GoogleSheetsTriggerOAuth2Api.credentials.js +31 -1
  51. package/dist/credentials/GoogleSheetsTriggerOAuth2Api.credentials.js.map +1 -1
  52. package/dist/credentials/GoogleSlidesOAuth2Api.credentials.d.ts.map +1 -1
  53. package/dist/credentials/GoogleSlidesOAuth2Api.credentials.js +31 -1
  54. package/dist/credentials/GoogleSlidesOAuth2Api.credentials.js.map +1 -1
  55. package/dist/credentials/GoogleTasksOAuth2Api.credentials.d.ts.map +1 -1
  56. package/dist/credentials/GoogleTasksOAuth2Api.credentials.js +31 -1
  57. package/dist/credentials/GoogleTasksOAuth2Api.credentials.js.map +1 -1
  58. package/dist/credentials/GoogleTranslateOAuth2Api.credentials.d.ts.map +1 -1
  59. package/dist/credentials/GoogleTranslateOAuth2Api.credentials.js +31 -1
  60. package/dist/credentials/GoogleTranslateOAuth2Api.credentials.js.map +1 -1
  61. package/dist/credentials/MicrosoftAzureMonitorOAuth2Api.credentials.d.ts.map +1 -1
  62. package/dist/credentials/MicrosoftAzureMonitorOAuth2Api.credentials.js +34 -1
  63. package/dist/credentials/MicrosoftAzureMonitorOAuth2Api.credentials.js.map +1 -1
  64. package/dist/credentials/MicrosoftDynamicsOAuth2Api.credentials.d.ts.map +1 -1
  65. package/dist/credentials/MicrosoftDynamicsOAuth2Api.credentials.js +34 -1
  66. package/dist/credentials/MicrosoftDynamicsOAuth2Api.credentials.js.map +1 -1
  67. package/dist/credentials/MicrosoftGraphSecurityOAuth2Api.credentials.d.ts.map +1 -1
  68. package/dist/credentials/MicrosoftGraphSecurityOAuth2Api.credentials.js +32 -1
  69. package/dist/credentials/MicrosoftGraphSecurityOAuth2Api.credentials.js.map +1 -1
  70. package/dist/credentials/N8nApi.credentials.js +1 -1
  71. package/dist/credentials/N8nApi.credentials.js.map +1 -1
  72. package/dist/credentials/YouTubeOAuth2Api.credentials.d.ts.map +1 -1
  73. package/dist/credentials/YouTubeOAuth2Api.credentials.js +31 -1
  74. package/dist/credentials/YouTubeOAuth2Api.credentials.js.map +1 -1
  75. package/dist/known/nodes.json +4 -0
  76. package/dist/methods/defined.json +5 -0
  77. package/dist/methods/referenced.json +5 -0
  78. package/dist/node-definitions/.nodes-hash +1 -1
  79. package/dist/node-definitions/index.ts +8 -0
  80. package/dist/node-definitions/nodes/n8n-nodes-base/amqp/v1.ts +1 -1
  81. package/dist/node-definitions/nodes/n8n-nodes-base/amqpTrigger/v1.ts +8 -8
  82. package/dist/node-definitions/nodes/n8n-nodes-base/baserow/v1/resource_row/operation_get_all.schema.js +1 -1
  83. package/dist/node-definitions/nodes/n8n-nodes-base/baserow/v1/resource_row/operation_get_all.ts +6 -1
  84. package/dist/node-definitions/nodes/n8n-nodes-base/baserow/v11/resource_row/operation_get_all.schema.js +1 -1
  85. package/dist/node-definitions/nodes/n8n-nodes-base/baserow/v11/resource_row/operation_get_all.ts +6 -1
  86. package/dist/node-definitions/nodes/n8n-nodes-base/e2eTestPollingTrigger/index.ts +12 -0
  87. package/dist/node-definitions/nodes/n8n-nodes-base/e2eTestPollingTrigger/v1.schema.js +25 -0
  88. package/dist/node-definitions/nodes/n8n-nodes-base/e2eTestPollingTrigger/v1.ts +73 -0
  89. package/dist/node-definitions/nodes/n8n-nodes-base/gmail/v2/resource_message/operation_get.ts +1 -0
  90. package/dist/node-definitions/nodes/n8n-nodes-base/gmail/v2/resource_message/operation_get_all.ts +1 -0
  91. package/dist/node-definitions/nodes/n8n-nodes-base/gmail/v2/resource_message/operation_send_and_wait.schema.js +0 -3
  92. package/dist/node-definitions/nodes/n8n-nodes-base/gmail/v2/resource_message/operation_send_and_wait.ts +0 -33
  93. package/dist/node-definitions/nodes/n8n-nodes-base/gmail/v2/resource_thread/operation_get.ts +1 -0
  94. package/dist/node-definitions/nodes/n8n-nodes-base/gmail/v21/resource_message/operation_get.ts +1 -0
  95. package/dist/node-definitions/nodes/n8n-nodes-base/gmail/v21/resource_message/operation_get_all.ts +1 -0
  96. package/dist/node-definitions/nodes/n8n-nodes-base/gmail/v21/resource_message/operation_send_and_wait.schema.js +0 -3
  97. package/dist/node-definitions/nodes/n8n-nodes-base/gmail/v21/resource_message/operation_send_and_wait.ts +0 -33
  98. package/dist/node-definitions/nodes/n8n-nodes-base/gmail/v21/resource_thread/operation_get.ts +1 -0
  99. package/dist/node-definitions/nodes/n8n-nodes-base/gmail/v22/resource_message/operation_get.ts +1 -0
  100. package/dist/node-definitions/nodes/n8n-nodes-base/gmail/v22/resource_message/operation_get_all.ts +1 -0
  101. package/dist/node-definitions/nodes/n8n-nodes-base/gmail/v22/resource_message/operation_send_and_wait.schema.js +0 -3
  102. package/dist/node-definitions/nodes/n8n-nodes-base/gmail/v22/resource_message/operation_send_and_wait.ts +0 -33
  103. package/dist/node-definitions/nodes/n8n-nodes-base/gmail/v22/resource_thread/operation_get.ts +1 -0
  104. package/dist/node-definitions/nodes/n8n-nodes-base/gmailTrigger/v1.ts +1 -1
  105. package/dist/node-definitions/nodes/n8n-nodes-base/gmailTrigger/v11.ts +1 -1
  106. package/dist/node-definitions/nodes/n8n-nodes-base/gmailTrigger/v12.ts +1 -1
  107. package/dist/node-definitions/nodes/n8n-nodes-base/gmailTrigger/v13.ts +1 -1
  108. package/dist/node-definitions/nodes/n8n-nodes-base/gmailTrigger/v14.ts +1 -1
  109. package/dist/node-definitions/nodes/n8n-nodes-base/googleAnalytics/v2/resource_report/operation_get.ts +2 -2
  110. package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/index.ts +3 -1
  111. package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v45.schema.js +56 -0
  112. package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v45.ts +425 -0
  113. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/index.ts +12 -0
  114. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/index.schema.js +24 -0
  115. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/index.ts +18 -0
  116. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/index.schema.js +34 -0
  117. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/index.ts +33 -0
  118. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_append.schema.js +31 -0
  119. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_append.ts +100 -0
  120. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_convert_to_range.schema.js +27 -0
  121. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_convert_to_range.ts +53 -0
  122. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_create.schema.js +29 -0
  123. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_create.ts +62 -0
  124. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_delete_table.schema.js +27 -0
  125. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_delete_table.ts +53 -0
  126. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_get_all.schema.js +28 -0
  127. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_get_all.ts +61 -0
  128. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_get_columns.schema.js +32 -0
  129. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_get_columns.ts +85 -0
  130. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_get_rows.schema.js +32 -0
  131. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_get_rows.ts +85 -0
  132. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_lookup.schema.js +30 -0
  133. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_table/operation_lookup.ts +71 -0
  134. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_workbook/index.schema.js +24 -0
  135. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_workbook/index.ts +18 -0
  136. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_workbook/operation_add_worksheet.schema.js +26 -0
  137. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_workbook/operation_add_worksheet.ts +50 -0
  138. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_workbook/operation_delete_workbook.schema.js +25 -0
  139. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_workbook/operation_delete_workbook.ts +41 -0
  140. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_workbook/operation_get_all.schema.js +28 -0
  141. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_workbook/operation_get_all.ts +59 -0
  142. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/index.schema.js +32 -0
  143. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/index.ts +30 -0
  144. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/operation_append.schema.js +30 -0
  145. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/operation_append.ts +89 -0
  146. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/operation_clear.schema.js +29 -0
  147. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/operation_clear.ts +63 -0
  148. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/operation_delete_worksheet.schema.js +26 -0
  149. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/operation_delete_worksheet.ts +47 -0
  150. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/operation_get_all.schema.js +28 -0
  151. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/operation_get_all.ts +61 -0
  152. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/operation_read_rows.schema.js +31 -0
  153. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/operation_read_rows.ts +91 -0
  154. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/operation_update.schema.js +34 -0
  155. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/operation_update.ts +123 -0
  156. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/operation_upsert.schema.js +33 -0
  157. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftExcelSharePoint/v1/resource_worksheet/operation_upsert.ts +116 -0
  158. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftOutlook/v2/resource_event/operation_create.ts +2 -2
  159. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSql/index.ts +3 -1
  160. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSql/v12.schema.js +30 -0
  161. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSql/v12.ts +63 -0
  162. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/index.ts +3 -1
  163. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/index.schema.js +22 -0
  164. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/index.ts +15 -0
  165. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/index.schema.js +32 -0
  166. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/index.ts +30 -0
  167. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/operation_aggregate.schema.js +23 -0
  168. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/operation_aggregate.ts +30 -0
  169. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/operation_delete.schema.js +23 -0
  170. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/operation_delete.ts +30 -0
  171. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/operation_find.schema.js +24 -0
  172. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/operation_find.ts +52 -0
  173. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/operation_find_one_and_replace.schema.js +26 -0
  174. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/operation_find_one_and_replace.ts +52 -0
  175. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/operation_find_one_and_update.schema.js +26 -0
  176. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/operation_find_one_and_update.ts +52 -0
  177. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/operation_insert.schema.js +24 -0
  178. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/operation_insert.ts +42 -0
  179. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/operation_update.schema.js +26 -0
  180. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_document/operation_update.ts +52 -0
  181. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_search_indexes/index.schema.js +26 -0
  182. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_search_indexes/index.ts +21 -0
  183. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_search_indexes/operation_create_search_index.schema.js +25 -0
  184. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_search_indexes/operation_create_search_index.ts +39 -0
  185. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_search_indexes/operation_drop_search_index.schema.js +23 -0
  186. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_search_indexes/operation_drop_search_index.ts +28 -0
  187. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_search_indexes/operation_list_search_indexes.schema.js +23 -0
  188. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_search_indexes/operation_list_search_indexes.ts +28 -0
  189. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_search_indexes/operation_update_search_index.schema.js +24 -0
  190. package/dist/node-definitions/nodes/n8n-nodes-base/mongoDb/v14/resource_search_indexes/operation_update_search_index.ts +34 -0
  191. package/dist/node-definitions/nodes/n8n-nodes-base/oracleDatabase/index.ts +3 -1
  192. package/dist/node-definitions/nodes/n8n-nodes-base/oracleDatabase/v11.schema.js +36 -0
  193. package/dist/node-definitions/nodes/n8n-nodes-base/oracleDatabase/v11.ts +262 -0
  194. package/dist/node-definitions/nodes/n8n-nodes-base/scheduleTrigger/v1.schema.js +1 -0
  195. package/dist/node-definitions/nodes/n8n-nodes-base/scheduleTrigger/v1.ts +6 -1
  196. package/dist/node-definitions/nodes/n8n-nodes-base/scheduleTrigger/v11.schema.js +1 -0
  197. package/dist/node-definitions/nodes/n8n-nodes-base/scheduleTrigger/v11.ts +6 -1
  198. package/dist/node-definitions/nodes/n8n-nodes-base/scheduleTrigger/v12.schema.js +1 -0
  199. package/dist/node-definitions/nodes/n8n-nodes-base/scheduleTrigger/v12.ts +6 -1
  200. package/dist/node-definitions/nodes/n8n-nodes-base/scheduleTrigger/v13.schema.js +1 -0
  201. package/dist/node-definitions/nodes/n8n-nodes-base/scheduleTrigger/v13.ts +6 -1
  202. package/dist/node-definitions/nodes/n8n-nodes-base/slack/v2/resource_message/operation_send_and_wait.schema.js +3 -1
  203. package/dist/node-definitions/nodes/n8n-nodes-base/slack/v2/resource_message/operation_send_and_wait.ts +25 -13
  204. package/dist/node-definitions/nodes/n8n-nodes-base/slack/v21/resource_message/operation_send_and_wait.schema.js +3 -1
  205. package/dist/node-definitions/nodes/n8n-nodes-base/slack/v21/resource_message/operation_send_and_wait.ts +25 -13
  206. package/dist/node-definitions/nodes/n8n-nodes-base/slack/v22/resource_message/operation_send_and_wait.schema.js +3 -1
  207. package/dist/node-definitions/nodes/n8n-nodes-base/slack/v22/resource_message/operation_send_and_wait.ts +25 -13
  208. package/dist/node-definitions/nodes/n8n-nodes-base/slack/v23/resource_message/operation_send_and_wait.schema.js +3 -1
  209. package/dist/node-definitions/nodes/n8n-nodes-base/slack/v23/resource_message/operation_send_and_wait.ts +25 -13
  210. package/dist/node-definitions/nodes/n8n-nodes-base/slack/v24/resource_message/operation_send_and_wait.schema.js +3 -1
  211. package/dist/node-definitions/nodes/n8n-nodes-base/slack/v24/resource_message/operation_send_and_wait.ts +25 -13
  212. package/dist/node-definitions/nodes/n8n-nodes-base/slack/v25/resource_message/operation_send_and_wait.schema.js +3 -1
  213. package/dist/node-definitions/nodes/n8n-nodes-base/slack/v25/resource_message/operation_send_and_wait.ts +25 -13
  214. package/dist/node-definitions/nodes/n8n-nodes-base/snowflake/index.ts +3 -1
  215. package/dist/node-definitions/nodes/n8n-nodes-base/snowflake/v11.schema.js +30 -0
  216. package/dist/node-definitions/nodes/n8n-nodes-base/snowflake/v11.ts +59 -0
  217. package/dist/node-definitions/nodes/n8n-nodes-base/telegram/v1/resource_message/operation_send_and_wait.schema.js +4 -2
  218. package/dist/node-definitions/nodes/n8n-nodes-base/telegram/v1/resource_message/operation_send_and_wait.ts +23 -24
  219. package/dist/node-definitions/nodes/n8n-nodes-base/telegram/v11/resource_message/operation_send_and_wait.schema.js +4 -2
  220. package/dist/node-definitions/nodes/n8n-nodes-base/telegram/v11/resource_message/operation_send_and_wait.ts +23 -24
  221. package/dist/node-definitions/nodes/n8n-nodes-base/telegram/v12/resource_message/operation_send_and_wait.schema.js +4 -2
  222. package/dist/node-definitions/nodes/n8n-nodes-base/telegram/v12/resource_message/operation_send_and_wait.ts +23 -24
  223. package/dist/nodes/Airtable/v2/helpers/utils.d.ts +7 -0
  224. package/dist/nodes/Airtable/v2/helpers/utils.d.ts.map +1 -1
  225. package/dist/nodes/Airtable/v2/helpers/utils.js +22 -2
  226. package/dist/nodes/Airtable/v2/helpers/utils.js.map +1 -1
  227. package/dist/nodes/Amqp/Amqp.node.js +1 -1
  228. package/dist/nodes/Amqp/AmqpTrigger.node.d.ts.map +1 -1
  229. package/dist/nodes/Amqp/AmqpTrigger.node.js +45 -26
  230. package/dist/nodes/Amqp/AmqpTrigger.node.js.map +1 -1
  231. package/dist/nodes/Amqp/helpers/handleMessage.d.ts +0 -2
  232. package/dist/nodes/Amqp/helpers/handleMessage.d.ts.map +1 -1
  233. package/dist/nodes/Amqp/helpers/handleMessage.js +0 -5
  234. package/dist/nodes/Amqp/helpers/handleMessage.js.map +1 -1
  235. package/dist/nodes/Baserow/Baserow.node.d.ts.map +1 -1
  236. package/dist/nodes/Baserow/Baserow.node.js +3 -2
  237. package/dist/nodes/Baserow/Baserow.node.js.map +1 -1
  238. package/dist/nodes/Baserow/GenericFunctions.d.ts +10 -0
  239. package/dist/nodes/Baserow/GenericFunctions.d.ts.map +1 -1
  240. package/dist/nodes/Baserow/GenericFunctions.js +98 -1
  241. package/dist/nodes/Baserow/GenericFunctions.js.map +1 -1
  242. package/dist/nodes/Baserow/OperationDescription.d.ts.map +1 -1
  243. package/dist/nodes/Baserow/OperationDescription.js +46 -28
  244. package/dist/nodes/Baserow/OperationDescription.js.map +1 -1
  245. package/dist/nodes/Baserow/types.d.ts +1 -0
  246. package/dist/nodes/Baserow/types.d.ts.map +1 -1
  247. package/dist/nodes/E2eTest/E2eTestPollingTrigger.node.d.ts +6 -0
  248. package/dist/nodes/E2eTest/E2eTestPollingTrigger.node.d.ts.map +1 -0
  249. package/dist/nodes/E2eTest/E2eTestPollingTrigger.node.js +50 -0
  250. package/dist/nodes/E2eTest/E2eTestPollingTrigger.node.js.map +1 -0
  251. package/dist/nodes/E2eTest/E2eTestPollingTrigger.node.json +18 -0
  252. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.d.ts.map +1 -1
  253. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.js +1 -0
  254. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.js.map +1 -1
  255. package/dist/nodes/Form/Form.node.d.ts.map +1 -1
  256. package/dist/nodes/Form/Form.node.js +3 -7
  257. package/dist/nodes/Form/Form.node.js.map +1 -1
  258. package/dist/nodes/Form/utils/formCompletionUtils.d.ts.map +1 -1
  259. package/dist/nodes/Form/utils/formCompletionUtils.js +4 -3
  260. package/dist/nodes/Form/utils/formCompletionUtils.js.map +1 -1
  261. package/dist/nodes/Form/utils/formNodeUtils.d.ts.map +1 -1
  262. package/dist/nodes/Form/utils/formNodeUtils.js +6 -4
  263. package/dist/nodes/Form/utils/formNodeUtils.js.map +1 -1
  264. package/dist/nodes/Form/utils/utils.d.ts +1 -0
  265. package/dist/nodes/Form/utils/utils.d.ts.map +1 -1
  266. package/dist/nodes/Form/utils/utils.js +5 -2
  267. package/dist/nodes/Form/utils/utils.js.map +1 -1
  268. package/dist/nodes/Google/Gmail/GmailTrigger.node.d.ts.map +1 -1
  269. package/dist/nodes/Google/Gmail/GmailTrigger.node.js +3 -1
  270. package/dist/nodes/Google/Gmail/GmailTrigger.node.js.map +1 -1
  271. package/dist/nodes/Google/Gmail/utils/descriptions.d.ts +5 -0
  272. package/dist/nodes/Google/Gmail/utils/descriptions.d.ts.map +1 -0
  273. package/dist/nodes/Google/Gmail/utils/descriptions.js +12 -0
  274. package/dist/nodes/Google/Gmail/utils/descriptions.js.map +1 -0
  275. package/dist/nodes/Google/Gmail/v2/GmailV2.node.d.ts.map +1 -1
  276. package/dist/nodes/Google/Gmail/v2/GmailV2.node.js +4 -7
  277. package/dist/nodes/Google/Gmail/v2/GmailV2.node.js.map +1 -1
  278. package/dist/nodes/Google/Gmail/v2/MessageDescription.d.ts.map +1 -1
  279. package/dist/nodes/Google/Gmail/v2/MessageDescription.js +13 -0
  280. package/dist/nodes/Google/Gmail/v2/MessageDescription.js.map +1 -1
  281. package/dist/nodes/Google/Gmail/v2/ThreadDescription.d.ts.map +1 -1
  282. package/dist/nodes/Google/Gmail/v2/ThreadDescription.js +7 -0
  283. package/dist/nodes/Google/Gmail/v2/ThreadDescription.js.map +1 -1
  284. package/dist/nodes/Google/Sheet/v2/methods/loadOptions.d.ts.map +1 -1
  285. package/dist/nodes/Google/Sheet/v2/methods/loadOptions.js +5 -2
  286. package/dist/nodes/Google/Sheet/v2/methods/loadOptions.js.map +1 -1
  287. package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.d.ts.map +1 -1
  288. package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.js +4 -1
  289. package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.js.map +1 -1
  290. package/dist/nodes/HttpRequest/HttpRequest.node.d.ts.map +1 -1
  291. package/dist/nodes/HttpRequest/HttpRequest.node.js +2 -1
  292. package/dist/nodes/HttpRequest/HttpRequest.node.js.map +1 -1
  293. package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.d.ts.map +1 -1
  294. package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +8 -2
  295. package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
  296. package/dist/nodes/HttpRequest/V3/utils/error-details.d.ts +3 -0
  297. package/dist/nodes/HttpRequest/V3/utils/error-details.d.ts.map +1 -0
  298. package/dist/nodes/HttpRequest/V3/utils/error-details.js +62 -0
  299. package/dist/nodes/HttpRequest/V3/utils/error-details.js.map +1 -0
  300. package/dist/nodes/MessageAnAgent/MessageAnAgent.node.d.ts.map +1 -1
  301. package/dist/nodes/MessageAnAgent/MessageAnAgent.node.js +4 -1
  302. package/dist/nodes/MessageAnAgent/MessageAnAgent.node.js.map +1 -1
  303. package/dist/nodes/MessageAnAgent/generateSchemaFromExample.d.ts +8 -0
  304. package/dist/nodes/MessageAnAgent/generateSchemaFromExample.d.ts.map +1 -0
  305. package/dist/nodes/MessageAnAgent/generateSchemaFromExample.js +40 -0
  306. package/dist/nodes/MessageAnAgent/generateSchemaFromExample.js.map +1 -0
  307. package/dist/nodes/MessageAnAgent/shared.d.ts +2 -5
  308. package/dist/nodes/MessageAnAgent/shared.d.ts.map +1 -1
  309. package/dist/nodes/MessageAnAgent/shared.js +128 -20
  310. package/dist/nodes/MessageAnAgent/shared.js.map +1 -1
  311. package/dist/nodes/MessageAnAgent/v2/MessageAnAgentV2.node.d.ts.map +1 -1
  312. package/dist/nodes/MessageAnAgent/v2/MessageAnAgentV2.node.js +4 -1
  313. package/dist/nodes/MessageAnAgent/v2/MessageAnAgentV2.node.js.map +1 -1
  314. package/dist/nodes/Microsoft/ExcelSharePoint/MicrosoftExcelSharePoint.node.d.ts +6 -0
  315. package/dist/nodes/Microsoft/ExcelSharePoint/MicrosoftExcelSharePoint.node.d.ts.map +1 -1
  316. package/dist/nodes/Microsoft/ExcelSharePoint/MicrosoftExcelSharePoint.node.js +106 -4
  317. package/dist/nodes/Microsoft/ExcelSharePoint/MicrosoftExcelSharePoint.node.js.map +1 -1
  318. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/append.operation.d.ts +31 -0
  319. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/append.operation.d.ts.map +1 -0
  320. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/append.operation.js +212 -0
  321. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/append.operation.js.map +1 -0
  322. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/convertToRange.operation.d.ts +31 -0
  323. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/convertToRange.operation.d.ts.map +1 -0
  324. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/convertToRange.operation.js +26 -0
  325. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/convertToRange.operation.js.map +1 -0
  326. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/create.operation.d.ts +31 -0
  327. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/create.operation.d.ts.map +1 -0
  328. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/create.operation.js +82 -0
  329. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/create.operation.js.map +1 -0
  330. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/deleteTable.operation.d.ts +31 -0
  331. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/deleteTable.operation.d.ts.map +1 -0
  332. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/deleteTable.operation.js +27 -0
  333. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/deleteTable.operation.js.map +1 -0
  334. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/getAll.operation.d.ts.map +1 -1
  335. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/getAll.operation.js +1 -23
  336. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/getAll.operation.js.map +1 -1
  337. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/getColumns.operation.d.ts +31 -0
  338. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/getColumns.operation.d.ts.map +1 -0
  339. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/getColumns.operation.js +43 -0
  340. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/getColumns.operation.js.map +1 -0
  341. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/getRows.operation.d.ts +31 -0
  342. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/getRows.operation.d.ts.map +1 -0
  343. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/getRows.operation.js +43 -0
  344. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/getRows.operation.js.map +1 -0
  345. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/lookup.operation.d.ts +31 -0
  346. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/lookup.operation.d.ts.map +1 -0
  347. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/lookup.operation.js +76 -0
  348. package/dist/nodes/Microsoft/ExcelSharePoint/actions/table/lookup.operation.js.map +1 -0
  349. package/dist/nodes/Microsoft/ExcelSharePoint/actions/workbook/Workbook.resource.d.ts +2 -1
  350. package/dist/nodes/Microsoft/ExcelSharePoint/actions/workbook/Workbook.resource.d.ts.map +1 -1
  351. package/dist/nodes/Microsoft/ExcelSharePoint/actions/workbook/Workbook.resource.js +10 -1
  352. package/dist/nodes/Microsoft/ExcelSharePoint/actions/workbook/Workbook.resource.js.map +1 -1
  353. package/dist/nodes/Microsoft/ExcelSharePoint/actions/workbook/getAll.operation.d.ts +31 -0
  354. package/dist/nodes/Microsoft/ExcelSharePoint/actions/workbook/getAll.operation.d.ts.map +1 -0
  355. package/dist/nodes/Microsoft/ExcelSharePoint/actions/workbook/getAll.operation.js +65 -0
  356. package/dist/nodes/Microsoft/ExcelSharePoint/actions/workbook/getAll.operation.js.map +1 -0
  357. package/dist/nodes/Microsoft/ExcelSharePoint/actions/worksheet/update.operation.d.ts +31 -0
  358. package/dist/nodes/Microsoft/ExcelSharePoint/actions/worksheet/update.operation.d.ts.map +1 -0
  359. package/dist/nodes/Microsoft/ExcelSharePoint/actions/worksheet/update.operation.js +206 -0
  360. package/dist/nodes/Microsoft/ExcelSharePoint/actions/worksheet/update.operation.js.map +1 -0
  361. package/dist/nodes/Microsoft/ExcelSharePoint/actions/worksheet/upsert.operation.d.ts +31 -0
  362. package/dist/nodes/Microsoft/ExcelSharePoint/actions/worksheet/upsert.operation.d.ts.map +1 -0
  363. package/dist/nodes/Microsoft/ExcelSharePoint/actions/worksheet/upsert.operation.js +176 -0
  364. package/dist/nodes/Microsoft/ExcelSharePoint/actions/worksheet/upsert.operation.js.map +1 -0
  365. package/dist/nodes/Microsoft/ExcelSharePoint/descriptions/common.descriptions.d.ts +2 -0
  366. package/dist/nodes/Microsoft/ExcelSharePoint/descriptions/common.descriptions.d.ts.map +1 -1
  367. package/dist/nodes/Microsoft/ExcelSharePoint/descriptions/common.descriptions.js +92 -6
  368. package/dist/nodes/Microsoft/ExcelSharePoint/descriptions/common.descriptions.js.map +1 -1
  369. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/constants.d.ts.map +1 -1
  370. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/constants.js +40 -0
  371. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/constants.js.map +1 -1
  372. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/matchUpdate.d.ts +10 -0
  373. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/matchUpdate.d.ts.map +1 -0
  374. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/matchUpdate.js +128 -0
  375. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/matchUpdate.js.map +1 -0
  376. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/tableRead.d.ts +9 -0
  377. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/tableRead.d.ts.map +1 -0
  378. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/tableRead.js +26 -0
  379. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/tableRead.js.map +1 -0
  380. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/utils.d.ts +3 -1
  381. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/utils.d.ts.map +1 -1
  382. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/utils.js +39 -0
  383. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/utils.js.map +1 -1
  384. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/workbookSearch.d.ts +11 -0
  385. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/workbookSearch.d.ts.map +1 -0
  386. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/workbookSearch.js +16 -0
  387. package/dist/nodes/Microsoft/ExcelSharePoint/helpers/workbookSearch.js.map +1 -0
  388. package/dist/nodes/Microsoft/ExcelSharePoint/methods/index.d.ts +8 -1
  389. package/dist/nodes/Microsoft/ExcelSharePoint/methods/index.d.ts.map +1 -1
  390. package/dist/nodes/Microsoft/ExcelSharePoint/methods/index.js +8 -1
  391. package/dist/nodes/Microsoft/ExcelSharePoint/methods/index.js.map +1 -1
  392. package/dist/nodes/Microsoft/ExcelSharePoint/methods/listSearch.d.ts +1 -0
  393. package/dist/nodes/Microsoft/ExcelSharePoint/methods/listSearch.d.ts.map +1 -1
  394. package/dist/nodes/Microsoft/ExcelSharePoint/methods/listSearch.js +27 -0
  395. package/dist/nodes/Microsoft/ExcelSharePoint/methods/listSearch.js.map +1 -1
  396. package/dist/nodes/Microsoft/ExcelSharePoint/methods/loadOptions.d.ts +5 -0
  397. package/dist/nodes/Microsoft/ExcelSharePoint/methods/loadOptions.d.ts.map +1 -0
  398. package/dist/nodes/Microsoft/ExcelSharePoint/methods/loadOptions.js +45 -0
  399. package/dist/nodes/Microsoft/ExcelSharePoint/methods/loadOptions.js.map +1 -0
  400. package/dist/nodes/Microsoft/SharePoint/v2/MicrosoftSharePointV2.node.d.ts +2 -0
  401. package/dist/nodes/Microsoft/SharePoint/v2/MicrosoftSharePointV2.node.d.ts.map +1 -1
  402. package/dist/nodes/Microsoft/SharePoint/v2/actions/file/download.operation.d.ts +31 -0
  403. package/dist/nodes/Microsoft/SharePoint/v2/actions/file/download.operation.d.ts.map +1 -0
  404. package/dist/nodes/Microsoft/SharePoint/v2/actions/file/download.operation.js +105 -0
  405. package/dist/nodes/Microsoft/SharePoint/v2/actions/file/download.operation.js.map +1 -0
  406. package/dist/nodes/Microsoft/SharePoint/v2/actions/file/index.d.ts +3 -1
  407. package/dist/nodes/Microsoft/SharePoint/v2/actions/file/index.d.ts.map +1 -1
  408. package/dist/nodes/Microsoft/SharePoint/v2/actions/file/index.js +19 -1
  409. package/dist/nodes/Microsoft/SharePoint/v2/actions/file/index.js.map +1 -1
  410. package/dist/nodes/Microsoft/SharePoint/v2/actions/file/update.operation.d.ts +31 -0
  411. package/dist/nodes/Microsoft/SharePoint/v2/actions/file/update.operation.d.ts.map +1 -0
  412. package/dist/nodes/Microsoft/SharePoint/v2/actions/file/update.operation.js +126 -0
  413. package/dist/nodes/Microsoft/SharePoint/v2/actions/file/update.operation.js.map +1 -0
  414. package/dist/nodes/Microsoft/SharePoint/v2/actions/file/upload.operation.d.ts.map +1 -1
  415. package/dist/nodes/Microsoft/SharePoint/v2/actions/file/upload.operation.js +5 -20
  416. package/dist/nodes/Microsoft/SharePoint/v2/actions/file/upload.operation.js.map +1 -1
  417. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/create.operation.d.ts +31 -0
  418. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/create.operation.d.ts.map +1 -0
  419. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/create.operation.js +50 -0
  420. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/create.operation.js.map +1 -0
  421. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/delete.operation.d.ts +31 -0
  422. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/delete.operation.d.ts.map +1 -0
  423. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/delete.operation.js +52 -0
  424. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/delete.operation.js.map +1 -0
  425. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/get.operation.d.ts +31 -0
  426. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/get.operation.d.ts.map +1 -0
  427. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/get.operation.js +67 -0
  428. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/get.operation.js.map +1 -0
  429. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/getAll.operation.d.ts +31 -0
  430. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/getAll.operation.d.ts.map +1 -0
  431. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/getAll.operation.js +119 -0
  432. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/getAll.operation.js.map +1 -0
  433. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/index.d.ts +10 -0
  434. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/index.d.ts.map +1 -0
  435. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/index.js +107 -0
  436. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/index.js.map +1 -0
  437. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/update.operation.d.ts +31 -0
  438. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/update.operation.d.ts.map +1 -0
  439. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/update.operation.js +57 -0
  440. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/update.operation.js.map +1 -0
  441. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/upsert.operation.d.ts +31 -0
  442. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/upsert.operation.d.ts.map +1 -0
  443. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/upsert.operation.js +90 -0
  444. package/dist/nodes/Microsoft/SharePoint/v2/actions/item/upsert.operation.js.map +1 -0
  445. package/dist/nodes/Microsoft/SharePoint/v2/actions/node.type.d.ts +2 -1
  446. package/dist/nodes/Microsoft/SharePoint/v2/actions/node.type.d.ts.map +1 -1
  447. package/dist/nodes/Microsoft/SharePoint/v2/actions/router.d.ts.map +1 -1
  448. package/dist/nodes/Microsoft/SharePoint/v2/actions/router.js +16 -1
  449. package/dist/nodes/Microsoft/SharePoint/v2/actions/router.js.map +1 -1
  450. package/dist/nodes/Microsoft/SharePoint/v2/actions/versionDescription.d.ts.map +1 -1
  451. package/dist/nodes/Microsoft/SharePoint/v2/actions/versionDescription.js +9 -0
  452. package/dist/nodes/Microsoft/SharePoint/v2/actions/versionDescription.js.map +1 -1
  453. package/dist/nodes/Microsoft/SharePoint/v2/file/index.d.ts +8 -0
  454. package/dist/nodes/Microsoft/SharePoint/v2/file/index.d.ts.map +1 -0
  455. package/dist/nodes/Microsoft/SharePoint/v2/file/index.js +69 -0
  456. package/dist/nodes/Microsoft/SharePoint/v2/file/index.js.map +1 -0
  457. package/dist/nodes/Microsoft/SharePoint/v2/folder/index.d.ts +8 -0
  458. package/dist/nodes/Microsoft/SharePoint/v2/folder/index.d.ts.map +1 -1
  459. package/dist/nodes/Microsoft/SharePoint/v2/folder/index.js +20 -35
  460. package/dist/nodes/Microsoft/SharePoint/v2/folder/index.js.map +1 -1
  461. package/dist/nodes/Microsoft/SharePoint/v2/helpers/graphSearch.d.ts +36 -0
  462. package/dist/nodes/Microsoft/SharePoint/v2/helpers/graphSearch.d.ts.map +1 -0
  463. package/dist/nodes/Microsoft/SharePoint/v2/helpers/graphSearch.js +51 -0
  464. package/dist/nodes/Microsoft/SharePoint/v2/helpers/graphSearch.js.map +1 -0
  465. package/dist/nodes/Microsoft/SharePoint/v2/helpers/utils.d.ts +40 -1
  466. package/dist/nodes/Microsoft/SharePoint/v2/helpers/utils.d.ts.map +1 -1
  467. package/dist/nodes/Microsoft/SharePoint/v2/helpers/utils.js +99 -1
  468. package/dist/nodes/Microsoft/SharePoint/v2/helpers/utils.js.map +1 -1
  469. package/dist/nodes/Microsoft/SharePoint/v2/item/index.d.ts +50 -0
  470. package/dist/nodes/Microsoft/SharePoint/v2/item/index.d.ts.map +1 -0
  471. package/dist/nodes/Microsoft/SharePoint/v2/item/index.js +194 -0
  472. package/dist/nodes/Microsoft/SharePoint/v2/item/index.js.map +1 -0
  473. package/dist/nodes/Microsoft/SharePoint/v2/list/columns.d.ts.map +1 -1
  474. package/dist/nodes/Microsoft/SharePoint/v2/list/columns.js +16 -9
  475. package/dist/nodes/Microsoft/SharePoint/v2/list/columns.js.map +1 -1
  476. package/dist/nodes/Microsoft/SharePoint/v2/list/index.d.ts.map +1 -1
  477. package/dist/nodes/Microsoft/SharePoint/v2/list/index.js +3 -0
  478. package/dist/nodes/Microsoft/SharePoint/v2/list/index.js.map +1 -1
  479. package/dist/nodes/Microsoft/SharePoint/v2/methods/index.d.ts +4 -0
  480. package/dist/nodes/Microsoft/SharePoint/v2/methods/index.d.ts.map +1 -1
  481. package/dist/nodes/Microsoft/SharePoint/v2/methods/index.js +4 -0
  482. package/dist/nodes/Microsoft/SharePoint/v2/methods/index.js.map +1 -1
  483. package/dist/nodes/Microsoft/SharePoint/v2/transport/index.d.ts +1 -1
  484. package/dist/nodes/Microsoft/SharePoint/v2/transport/index.d.ts.map +1 -1
  485. package/dist/nodes/Microsoft/SharePoint/v2/transport/index.js +44 -3
  486. package/dist/nodes/Microsoft/SharePoint/v2/transport/index.js.map +1 -1
  487. package/dist/nodes/Microsoft/Sql/GenericFunctions.d.ts +2 -2
  488. package/dist/nodes/Microsoft/Sql/GenericFunctions.d.ts.map +1 -1
  489. package/dist/nodes/Microsoft/Sql/GenericFunctions.js +15 -1
  490. package/dist/nodes/Microsoft/Sql/GenericFunctions.js.map +1 -1
  491. package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.d.ts.map +1 -1
  492. package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js +2 -2
  493. package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js.map +1 -1
  494. package/dist/nodes/Microsoft/Teams/v1/GenericFunctions.d.ts +1 -1
  495. package/dist/nodes/Microsoft/Teams/v1/GenericFunctions.d.ts.map +1 -1
  496. package/dist/nodes/Microsoft/Teams/v1/GenericFunctions.js +5 -5
  497. package/dist/nodes/Microsoft/Teams/v1/GenericFunctions.js.map +1 -1
  498. package/dist/nodes/Microsoft/Teams/v1/MicrosoftTeamsV1.node.d.ts.map +1 -1
  499. package/dist/nodes/Microsoft/Teams/v1/MicrosoftTeamsV1.node.js +13 -16
  500. package/dist/nodes/Microsoft/Teams/v1/MicrosoftTeamsV1.node.js.map +1 -1
  501. package/dist/nodes/Microsoft/Teams/v2/actions/channel/getAll.operation.js +2 -2
  502. package/dist/nodes/Microsoft/Teams/v2/actions/channel/getAll.operation.js.map +1 -1
  503. package/dist/nodes/Microsoft/Teams/v2/actions/channelMessage/getAll.operation.d.ts.map +1 -1
  504. package/dist/nodes/Microsoft/Teams/v2/actions/channelMessage/getAll.operation.js +1 -2
  505. package/dist/nodes/Microsoft/Teams/v2/actions/channelMessage/getAll.operation.js.map +1 -1
  506. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/getAll.operation.d.ts.map +1 -1
  507. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/getAll.operation.js +1 -2
  508. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/getAll.operation.js.map +1 -1
  509. package/dist/nodes/Microsoft/Teams/v2/actions/task/getAll.operation.d.ts.map +1 -1
  510. package/dist/nodes/Microsoft/Teams/v2/actions/task/getAll.operation.js +4 -4
  511. package/dist/nodes/Microsoft/Teams/v2/actions/task/getAll.operation.js.map +1 -1
  512. package/dist/nodes/Microsoft/Teams/v2/transport/index.d.ts +1 -1
  513. package/dist/nodes/Microsoft/Teams/v2/transport/index.d.ts.map +1 -1
  514. package/dist/nodes/Microsoft/Teams/v2/transport/index.js +5 -5
  515. package/dist/nodes/Microsoft/Teams/v2/transport/index.js.map +1 -1
  516. package/dist/nodes/MongoDb/GenericFunctions.d.ts +2 -1
  517. package/dist/nodes/MongoDb/GenericFunctions.d.ts.map +1 -1
  518. package/dist/nodes/MongoDb/GenericFunctions.js +22 -0
  519. package/dist/nodes/MongoDb/GenericFunctions.js.map +1 -1
  520. package/dist/nodes/MongoDb/MongoDb.node.d.ts.map +1 -1
  521. package/dist/nodes/MongoDb/MongoDb.node.js +4 -1
  522. package/dist/nodes/MongoDb/MongoDb.node.js.map +1 -1
  523. package/dist/nodes/Notion/shared/GenericFunctions.d.ts +3 -3
  524. package/dist/nodes/Notion/shared/GenericFunctions.d.ts.map +1 -1
  525. package/dist/nodes/Notion/v2/methods/loadOptions.d.ts.map +1 -1
  526. package/dist/nodes/Notion/v2/methods/loadOptions.js +5 -1
  527. package/dist/nodes/Notion/v2/methods/loadOptions.js.map +1 -1
  528. package/dist/nodes/Notion/v3/methods/loadOptions.d.ts.map +1 -1
  529. package/dist/nodes/Notion/v3/methods/loadOptions.js +5 -1
  530. package/dist/nodes/Notion/v3/methods/loadOptions.js.map +1 -1
  531. package/dist/nodes/Oracle/Sql/actions/versionDescription.js +1 -1
  532. package/dist/nodes/Oracle/Sql/actions/versionDescription.js.map +1 -1
  533. package/dist/nodes/Oracle/Sql/helpers/utils.d.ts.map +1 -1
  534. package/dist/nodes/Oracle/Sql/helpers/utils.js +53 -13
  535. package/dist/nodes/Oracle/Sql/helpers/utils.js.map +1 -1
  536. package/dist/nodes/Schedule/ScheduleTrigger.node.d.ts.map +1 -1
  537. package/dist/nodes/Schedule/ScheduleTrigger.node.js +13 -1
  538. package/dist/nodes/Schedule/ScheduleTrigger.node.js.map +1 -1
  539. package/dist/nodes/Slack/V2/GenericFunctions.d.ts.map +1 -1
  540. package/dist/nodes/Slack/V2/GenericFunctions.js +11 -3
  541. package/dist/nodes/Slack/V2/GenericFunctions.js.map +1 -1
  542. package/dist/nodes/Slack/V2/MessageDescription.d.ts +3 -0
  543. package/dist/nodes/Slack/V2/MessageDescription.d.ts.map +1 -1
  544. package/dist/nodes/Slack/V2/MessageDescription.js +52 -2
  545. package/dist/nodes/Slack/V2/MessageDescription.js.map +1 -1
  546. package/dist/nodes/Slack/V2/SlackHitlWebhook.d.ts.map +1 -1
  547. package/dist/nodes/Slack/V2/SlackHitlWebhook.js +14 -10
  548. package/dist/nodes/Slack/V2/SlackHitlWebhook.js.map +1 -1
  549. package/dist/nodes/Slack/V2/SlackV2.node.d.ts +1 -1
  550. package/dist/nodes/Slack/V2/SlackV2.node.d.ts.map +1 -1
  551. package/dist/nodes/Slack/V2/SlackV2.node.js +16 -5
  552. package/dist/nodes/Slack/V2/SlackV2.node.js.map +1 -1
  553. package/dist/nodes/Snowflake/GenericFunctions.d.ts +3 -1
  554. package/dist/nodes/Snowflake/GenericFunctions.d.ts.map +1 -1
  555. package/dist/nodes/Snowflake/GenericFunctions.js +25 -1
  556. package/dist/nodes/Snowflake/GenericFunctions.js.map +1 -1
  557. package/dist/nodes/Snowflake/Snowflake.node.d.ts.map +1 -1
  558. package/dist/nodes/Snowflake/Snowflake.node.js +4 -3
  559. package/dist/nodes/Snowflake/Snowflake.node.js.map +1 -1
  560. package/dist/nodes/Telegram/hitl/descriptions.d.ts.map +1 -1
  561. package/dist/nodes/Telegram/hitl/descriptions.js +48 -30
  562. package/dist/nodes/Telegram/hitl/descriptions.js.map +1 -1
  563. package/dist/nodes/Telegram/hitl/webhook.d.ts.map +1 -1
  564. package/dist/nodes/Telegram/hitl/webhook.js +3 -4
  565. package/dist/nodes/Telegram/hitl/webhook.js.map +1 -1
  566. package/dist/nodes/Wordpress/Wordpress.node.d.ts.map +1 -1
  567. package/dist/nodes/Wordpress/Wordpress.node.js +6 -0
  568. package/dist/nodes/Wordpress/Wordpress.node.js.map +1 -1
  569. package/dist/types/credentials.json +25 -25
  570. package/dist/types/nodes.json +22 -21
  571. package/dist/utils/binary.d.ts +11 -1
  572. package/dist/utils/binary.d.ts.map +1 -1
  573. package/dist/utils/binary.js +21 -0
  574. package/dist/utils/binary.js.map +1 -1
  575. package/dist/utils/sendAndWait/descriptions.d.ts +0 -7
  576. package/dist/utils/sendAndWait/descriptions.d.ts.map +1 -1
  577. package/dist/utils/sendAndWait/descriptions.js +1 -19
  578. package/dist/utils/sendAndWait/descriptions.js.map +1 -1
  579. package/dist/utils/sendAndWait/email-templates.d.ts +0 -7
  580. package/dist/utils/sendAndWait/email-templates.d.ts.map +1 -1
  581. package/dist/utils/sendAndWait/email-templates.js +1 -59
  582. package/dist/utils/sendAndWait/email-templates.js.map +1 -1
  583. package/dist/utils/sendAndWait/utils.d.ts.map +1 -1
  584. package/dist/utils/sendAndWait/utils.js +2 -14
  585. package/dist/utils/sendAndWait/utils.js.map +1 -1
  586. package/dist/utils/workflowInputsResourceMapping/GenericFunctions.d.ts.map +1 -1
  587. package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js +3 -1
  588. package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js.map +1 -1
  589. package/package.json +13 -12
  590. package/dist/nodes/Google/Gmail/v2/hitl/descriptions.d.ts +0 -16
  591. package/dist/nodes/Google/Gmail/v2/hitl/descriptions.d.ts.map +0 -1
  592. package/dist/nodes/Google/Gmail/v2/hitl/descriptions.js +0 -86
  593. package/dist/nodes/Google/Gmail/v2/hitl/descriptions.js.map +0 -1
  594. package/dist/nodes/Google/Gmail/v2/hitl/email.d.ts +0 -11
  595. package/dist/nodes/Google/Gmail/v2/hitl/email.d.ts.map +0 -1
  596. package/dist/nodes/Google/Gmail/v2/hitl/email.js +0 -69
  597. package/dist/nodes/Google/Gmail/v2/hitl/email.js.map +0 -1
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fileRLC = void 0;
4
+ exports.getFiles = getFiles;
5
+ const n8n_workflow_1 = require("n8n-workflow");
6
+ const graphSearch_1 = require("../helpers/graphSearch");
7
+ const site_1 = require("../site");
8
+ // The whole file-selection piece lives here — the field and the search behind
9
+ // it — mirroring the site and folder modules.
10
+ exports.fileRLC = {
11
+ displayName: 'File',
12
+ name: 'file',
13
+ type: 'resourceLocator',
14
+ required: true,
15
+ default: { mode: 'list', value: '' },
16
+ description: 'The file to operate on',
17
+ typeOptions: {
18
+ // Re-fetch the file list whenever the chosen site or folder changes
19
+ loadOptionsDependsOn: ['site.value', 'folder.value'],
20
+ },
21
+ modes: [
22
+ {
23
+ displayName: 'From List',
24
+ name: 'list',
25
+ type: 'list',
26
+ typeOptions: {
27
+ searchListMethod: 'getFiles',
28
+ searchable: true,
29
+ },
30
+ },
31
+ {
32
+ displayName: 'By ID',
33
+ name: 'id',
34
+ type: 'string',
35
+ placeholder: 'e.g. 01SPEVVYELNAJ4S3XKNBBIEUJZOWXGE64U',
36
+ },
37
+ ],
38
+ };
39
+ /**
40
+ * Lists the files in the chosen folder. The typed filter is applied to the
41
+ * fetched results, walking further pages when needed.
42
+ */
43
+ async function getFiles(filter, paginationToken) {
44
+ let endpoint = '';
45
+ if (!paginationToken) {
46
+ // resolveSiteId validates the site field itself, including the empty case
47
+ const siteId = await site_1.resolveSiteId.call(this, 0);
48
+ const folderId = this.getNodeParameter('folder', undefined, { extractValue: true }).trim();
49
+ if (folderId === '') {
50
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), "The 'Parent Folder' parameter is empty", {
51
+ description: 'Choose a folder before selecting a file.',
52
+ });
53
+ }
54
+ endpoint = `/v1.0/sites/${encodeURIComponent(siteId)}/drive/items/${encodeURIComponent(folderId)}/children`;
55
+ }
56
+ return await graphSearch_1.searchDriveItems.call(this, {
57
+ endpoint,
58
+ qs: {
59
+ $select: 'id,name,file',
60
+ // `file` isn't a documented filterable property, so the reply is
61
+ // re-checked by `keep`; when honored this just trims the payload
62
+ $filter: 'file ne null',
63
+ },
64
+ keep: (item) => Boolean(item.file),
65
+ filter,
66
+ paginationToken,
67
+ });
68
+ }
69
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/Microsoft/SharePoint/v2/file/index.ts"],"names":[],"mappings":";;;;AACA,+CAAkD;AAElD,wDAA0D;AAC1D,kCAAwC;AAExC,8EAA8E;A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AAC,QAAQ,CAAC,WAAW,CAAC;IAC7G,CAAC;IAED,OAAO,MAAM,8BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QACxC,QAAQ;QACR,EAAE,EAAE;YACH,OAAO,EAAE,cAAc;YACvB,iEAAiE;YACjE,iEAAiE;YACjE,OAAO,EAAE,cAAc;SACvB;QACD,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;QAClC,MAAM;QACN,eAAe;KACf,CAAC,CAAC;AACJ,CAAC"}
@@ -1,4 +1,12 @@
1
1
  import type { ILoadOptionsFunctions, INodeListSearchResult, INodeProperties } from 'n8n-workflow';
2
+ /** Hide gate: file fields stay hidden until a folder is chosen. */
3
+ export declare const untilFolderSelected: {
4
+ folder: string[];
5
+ };
2
6
  export declare const folderRLC: INodeProperties;
7
+ /**
8
+ * Lists the folders of the chosen site's default document library. The typed
9
+ * filter is applied to the fetched results, walking further pages when needed.
10
+ */
3
11
  export declare function getFolders(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
4
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../nodes/Microsoft/SharePoint/v2/folder/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAKlG,eAAO,MAAM,SAAS,EAAE,eA2BvB,CAAC;AAYF,wBAAsB,UAAU,CAC/B,IAAI,EAAE,qBAAqB,EAC3B,MAAM,CAAC,EAAE,MAAM,EACf,eAAe,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,qBAAqB,CAAC,CA0ChC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../nodes/Microsoft/SharePoint/v2/folder/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAKlG,mEAAmE;AACnE,eAAO,MAAM,mBAAmB;IAAK,MAAM;CAAQ,CAAC;AAEpD,eAAO,MAAM,SAAS,EAAE,eA2BvB,CAAC;AAEF;;;GAGG;AACH,wBAAsB,UAAU,CAC/B,IAAI,EAAE,qBAAqB,EAC3B,MAAM,CAAC,EAAE,MAAM,EACf,eAAe,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,qBAAqB,CAAC,CAehC"}
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.folderRLC = void 0;
3
+ exports.folderRLC = exports.untilFolderSelected = void 0;
4
4
  exports.getFolders = getFolders;
5
+ const graphSearch_1 = require("../helpers/graphSearch");
5
6
  const site_1 = require("../site");
6
- const transport_1 = require("../transport");
7
+ /** Hide gate: file fields stay hidden until a folder is chosen. */
8
+ exports.untilFolderSelected = { folder: [''] };
7
9
  exports.folderRLC = {
8
10
  displayName: 'Parent Folder',
9
11
  name: 'folder',
@@ -32,40 +34,23 @@ exports.folderRLC = {
32
34
  },
33
35
  ],
34
36
  };
35
- // A drive page can yield nothing to show (files-only, or no filter match); those pages are
36
- // walked here in one call the editor would otherwise re-request per empty page — capped
37
- // so a single dropdown request can't crawl an arbitrarily large drive
38
- const SEARCH_PAGE_LIMIT = 10;
37
+ /**
38
+ * Lists the folders of the chosen site's default document library. The typed
39
+ * filter is applied to the fetched results, walking further pages when needed.
40
+ */
39
41
  async function getFolders(filter, paginationToken) {
40
42
  const siteId = paginationToken ? '' : await site_1.resolveSiteId.call(this, 0);
41
- const filterLower = filter?.toLowerCase();
42
- const results = [];
43
- let nextToken = paginationToken;
44
- let pagesLeft = SEARCH_PAGE_LIMIT;
45
- do {
46
- const response = nextToken
47
- ? (await transport_1.microsoftApiRequest.call(this, 'GET', '', {}, {}, nextToken))
48
- : (await transport_1.microsoftApiRequest.call(this, 'GET', `/v1.0/sites/${encodeURIComponent(siteId)}/drive/items`, {}, {
49
- $select: 'id,name,folder',
50
- // Graph rejects this enumeration without a $filter but ignores this
51
- // one, so it must stay; the reply is re-checked below
52
- $filter: 'folder ne null',
53
- }));
54
- for (const item of response.value ?? []) {
55
- if (!item.id || !item.folder)
56
- continue;
57
- if (filterLower && !(item.name ?? '').toLowerCase().includes(filterLower))
58
- continue;
59
- results.push({
60
- name: item.name ?? String(item.id),
61
- value: String(item.id),
62
- });
63
- }
64
- nextToken = response['@odata.nextLink'];
65
- pagesLeft -= 1;
66
- } while (nextToken !== undefined &&
67
- pagesLeft > 0 &&
68
- (filterLower !== undefined || results.length === 0));
69
- return { results, paginationToken: nextToken };
43
+ return await graphSearch_1.searchDriveItems.call(this, {
44
+ endpoint: `/v1.0/sites/${encodeURIComponent(siteId)}/drive/items`,
45
+ qs: {
46
+ $select: 'id,name,folder',
47
+ // `folder` isn't a documented filterable property, so the reply is
48
+ // re-checked by `keep`; when honored this just trims the payload
49
+ $filter: 'folder ne null',
50
+ },
51
+ keep: (item) => Boolean(item.folder),
52
+ filter,
53
+ paginationToken,
54
+ });
70
55
  }
71
56
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/Microsoft/SharePoint/v2/folder/index.ts"],"names":[],"mappings":";;;;AAEA,kCAAwC;AACxC,4CAAmD;AAEtC,QAAA,SAAS,GAAoB;IACzC,WAAW,EAAE,eAAe;IAC5B,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,iBAAiB;IACvB,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;IACpC,WAAW,EAAE,sEAAsE;IACnF,WAAW,EAAE;QACZ,oBAAoB,EAAE,CAAC,YAAY,CAAC;KACpC;IACD,KAAK,EAAE;QACN;YACC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,MAAM;YACZ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;gBACZ,gBAAgB,EAAE,YAAY;gBAC9B,UAAU,EAAE,IAAI;aAChB;SACD;QACD;YACC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uEAAuE;SACpF;KACD;CACD,CAAC;AAEF;;;GAGG;AACI,KAAK,qBAEX,MAAe,EACf,eAAwB;IAExB,MAAM,MAAM,GAAG,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,oBAAa,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAExE,OAAO,MAAM,8BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QACxC,QAAQ,EAAE,eAAe,kBAAkB,CAAC,MAAM,CAAC,cAAc;QACjE,EAAE,EAAE;YACH,OAAO,EAAE,gBAAgB;YACzB,mEAAmE;YACnE,iEAAiE;YACjE,OAAO,EAAE,gBAAgB;SACzB;QACD,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;QACpC,MAAM;QACN,eAAe;KACf,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,36 @@
1
+ import type { IDataObject, ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow';
2
+ export declare const SEARCH_PAGE_LIMIT = 10;
3
+ export type CollectionSearchOptions<T> = {
4
+ /** First-page resource path; ignored once `paginationToken` is set. */
5
+ endpoint: string;
6
+ qs: IDataObject;
7
+ toResult: (item: T) => {
8
+ name: string;
9
+ value: string;
10
+ } | null;
11
+ filter?: string;
12
+ paginationToken?: string;
13
+ };
14
+ /**
15
+ * Pages through a Graph collection, mapping each entry via `toResult` (return
16
+ * `null` to drop it) and filtering on the produced label — Graph can't
17
+ * substring-filter these collections server-side.
18
+ */
19
+ export declare function searchGraphCollection<T>(this: ILoadOptionsFunctions, options: CollectionSearchOptions<T>): Promise<INodeListSearchResult>;
20
+ type DriveItem = {
21
+ id?: string;
22
+ name?: string;
23
+ folder?: unknown;
24
+ file?: unknown;
25
+ };
26
+ /** Drive-items wrapper over `searchGraphCollection`, labelling each by file name. */
27
+ export declare function searchDriveItems(this: ILoadOptionsFunctions, options: {
28
+ /** First-page resource path; ignored once `paginationToken` is set. */
29
+ endpoint: string;
30
+ qs: IDataObject;
31
+ keep: (item: DriveItem) => boolean;
32
+ filter?: string;
33
+ paginationToken?: string;
34
+ }): Promise<INodeListSearchResult>;
35
+ export {};
36
+ //# sourceMappingURL=graphSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphSearch.d.ts","sourceRoot":"","sources":["../../../../../../nodes/Microsoft/SharePoint/v2/helpers/graphSearch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAM9F,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI;IACxC,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,WAAW,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC9D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,CAAC,EAC5C,IAAI,EAAE,qBAAqB,EAC3B,OAAO,EAAE,uBAAuB,CAAC,CAAC,CAAC,GACjC,OAAO,CAAC,qBAAqB,CAAC,CAyChC;AAED,KAAK,SAAS,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAElF,qFAAqF;AACrF,wBAAsB,gBAAgB,CACrC,IAAI,EAAE,qBAAqB,EAC3B,OAAO,EAAE;IACR,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,WAAW,CAAC;IAChB,IAAI,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,OAAO,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB,GACC,OAAO,CAAC,qBAAqB,CAAC,CAehC"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SEARCH_PAGE_LIMIT = void 0;
4
+ exports.searchGraphCollection = searchGraphCollection;
5
+ exports.searchDriveItems = searchDriveItems;
6
+ const transport_1 = require("../transport");
7
+ // Caps how many pages a single dropdown request walks looking for matches.
8
+ exports.SEARCH_PAGE_LIMIT = 10;
9
+ /**
10
+ * Pages through a Graph collection, mapping each entry via `toResult` (return
11
+ * `null` to drop it) and filtering on the produced label — Graph can't
12
+ * substring-filter these collections server-side.
13
+ */
14
+ async function searchGraphCollection(options) {
15
+ const filterLower = options.filter?.toLowerCase();
16
+ // Kept in the API's order — the editor concatenates pages.
17
+ const results = [];
18
+ let nextToken = options.paginationToken;
19
+ let pagesLeft = exports.SEARCH_PAGE_LIMIT;
20
+ do {
21
+ const response = nextToken
22
+ ? (await transport_1.microsoftApiRequest.call(this, 'GET', '', {}, {}, nextToken))
23
+ : (await transport_1.microsoftApiRequest.call(this, 'GET', options.endpoint, {}, options.qs));
24
+ for (const item of response.value ?? []) {
25
+ const result = options.toResult(item);
26
+ if (!result)
27
+ continue;
28
+ if (filterLower && !result.name.toLowerCase().includes(filterLower))
29
+ continue;
30
+ results.push(result);
31
+ }
32
+ nextToken = response['@odata.nextLink'];
33
+ pagesLeft -= 1;
34
+ } while (nextToken !== undefined &&
35
+ pagesLeft > 0 &&
36
+ (filterLower !== undefined || results.length === 0));
37
+ return { results, paginationToken: nextToken };
38
+ }
39
+ /** Drive-items wrapper over `searchGraphCollection`, labelling each by file name. */
40
+ async function searchDriveItems(options) {
41
+ return await searchGraphCollection.call(this, {
42
+ endpoint: options.endpoint,
43
+ qs: options.qs,
44
+ filter: options.filter,
45
+ paginationToken: options.paginationToken,
46
+ toResult: (item) => item.id && options.keep(item)
47
+ ? { name: item.name ?? String(item.id), value: String(item.id) }
48
+ : null,
49
+ });
50
+ }
51
+ //# sourceMappingURL=graphSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphSearch.js","sourceRoot":"","sources":["../../../../../../nodes/Microsoft/SharePoint/v2/helpers/graphSearch.ts"],"names":[],"mappings":";;;;;AAGA,4CAAmD;AAEnD,2EAA2E;AAC9D,QAAA,iBAAiB,GAAG,EAAE,CAAC;AAWpC;;;;GAIG;AACI,KAAK,gCAEX,OAAmC;IAEnC,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC;IAClD,2DAA2D;IAC3D,MAAM,OAAO,GAAqC,EAAE,CAAC;IACrD,IAAI,SAAS,GAAG,OAAO,CAAC,eAAe,CAAC;IACxC,IAAI,SAAS,GAAG,QAAA,iBAAiB,CAAC;IAElC,GAAG,CAAC;QACH,MAAM,QAAQ,GAAG,SAAS;YACzB,CAAC,CAAE,CAAC,MAAM,+BAAmB,CAAC,IAAI,CAChC,IAAI,EACJ,KAAK,EACL,EAAE,EACF,EAAE,EACF,EAAE,EACF,SAAS,CACT,CAAyB;YAC3B,CAAC,CAAE,CAAC,MAAM,+BAAmB,CAAC,IAAI,CAChC,IAAI,EACJ,KAAK,EACL,OAAO,CAAC,QAAQ,EAChB,EAAE,EACF,OAAO,CAAC,EAAE,CACV,CAAyB,CAAC;QAE7B,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC;YACzC,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACtC,IAAI,CAAC,MAAM;gBAAE,SAAS;YACtB,IAAI,WAAW,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC;gBAAE,SAAS;YAC9E,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtB,CAAC;QAED,SAAS,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAC;QACxC,SAAS,IAAI,CAAC,CAAC;IAChB,CAAC,QACA,SAAS,KAAK,SAAS;QACvB,SAAS,GAAG,CAAC;QACb,CAAC,WAAW,KAAK,SAAS,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,EAClD;IAEF,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,CAAC;AAChD,CAAC;AAID,qFAAqF;AAC9E,KAAK,2BAEX,OAOC;IAED,OAAO,MAAM,qBAAqB,CAAC,IAAI,CAIrC,IAAI,EAAE;QACP,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,EAAE,EAAE,OAAO,CAAC,EAAE;QACd,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,eAAe,EAAE,OAAO,CAAC,eAAe;QACxC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAClB,IAAI,CAAC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;YAC5B,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAChE,CAAC,CAAC,IAAI;KACR,CAAC,CAAC;AACJ,CAAC"}
@@ -1,14 +1,53 @@
1
- import type { INode } from 'n8n-workflow';
1
+ import type { IDataObject, IExecuteFunctions, INode } from 'n8n-workflow';
2
+ import { NodeOperationError } from 'n8n-workflow';
2
3
  /** v1's Simplify $select list — the exact trimmed fields v2 keeps returning; Get Many reuses it. */
3
4
  export declare const LIST_SIMPLIFY_SELECT = "id,name,displayName,description,createdDateTime,lastModifiedDateTime,webUrl";
5
+ /** v1's item Simplify request shape — the trimmed top-level fields v2 keeps returning. */
6
+ export declare const ITEM_SIMPLIFY_SELECT = "id,createdDateTime,lastModifiedDateTime,webUrl";
7
+ export declare const ITEM_SIMPLIFY_EXPAND = "fields($select=Title)";
8
+ /** Match v1's simplifyItemPostReceive exactly: only these annotation keys are stripped. */
9
+ export declare function simplifyItem(item: IDataObject): IDataObject;
10
+ /**
11
+ * Validates and trims a value used verbatim as a URL path segment. Rejects
12
+ * empty, `.` and `..`, which would address a different resource than intended.
13
+ */
14
+ export declare function assertPathSegment(node: INode, value: string, paramName: string): string;
4
15
  /** Shape shared by every Graph collection reply a listSearch method here consumes. */
5
16
  export type GraphSearchReply<T> = {
6
17
  '@odata.nextLink'?: string;
7
18
  value?: T[];
8
19
  };
20
+ /**
21
+ * Builds a `fields/{column} eq '{value}'` OData $filter clause. The value is
22
+ * always compared as a quoted string literal, where the only special character
23
+ * is the single quote, escaped by doubling; URL encoding is the transport's job.
24
+ */
25
+ export declare const odataFieldEqualsClause: (column: string, value: unknown) => string;
26
+ /** SharePoint refuses to filter on non-indexed columns without this opt-in. */
27
+ export declare const NON_INDEXED_QUERY_HEADERS: IDataObject;
28
+ /** Graph rejects hyperlink field writes without this (see list/columns.ts). */
29
+ export declare const HYPERLINK_WRITE_HEADERS: IDataObject;
30
+ /**
31
+ * Translates Graph's list-view-threshold failure (a non-indexed $filter on a
32
+ * >5,000-item list) into an error naming the filtered column(s); the run must
33
+ * never return a silent partial result. Returns `undefined` for other errors.
34
+ */
35
+ export declare function nonIndexedFilterThresholdError(node: INode, error: unknown, filter: string): NodeOperationError | undefined;
36
+ /** Graph's unique-constraint rejection names no column; point the user at the mapper. */
37
+ export declare function addUniqueConstraintHint(error: unknown): void;
9
38
  /** Characters SharePoint forbids in file names; Graph rejects them with a misleading 400. */
10
39
  export declare const SHAREPOINT_ILLEGAL_FILE_NAME_CHARS: string[];
11
40
  /** Graph's cap for a single-request `PUT …:/content` upload; larger files need an upload session. */
12
41
  export declare const MAX_SIMPLE_UPLOAD_BYTES: number;
13
42
  export declare function validateSharePointFileName(node: INode, fileName: string | undefined, itemIndex: number): asserts fileName is string;
43
+ /**
44
+ * Asserts the input binary exists, enforces the simple-upload size cap, and
45
+ * returns the payload with its content type. Out-of-process binary data is
46
+ * size-checked from its metadata — oversized files are rejected without ever
47
+ * being read.
48
+ */
49
+ export declare function getUploadBufferWithinCap(ctx: IExecuteFunctions, itemIndex: number, binaryPropertyName: string): Promise<{
50
+ body: Buffer;
51
+ contentType: string;
52
+ }>;
14
53
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../nodes/Microsoft/SharePoint/v2/helpers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAG1C,oGAAoG;AACpG,eAAO,MAAM,oBAAoB,gFAC6C,CAAC;AAE/E,sFAAsF;AACtF,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAAE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAA;CAAE,CAAC;AAE9E,6FAA6F;AAC7F,eAAO,MAAM,kCAAkC,UAAiD,CAAC;AAEjG,qGAAqG;AACrG,eAAO,MAAM,uBAAuB,QAAoB,CAAC;AAEzD,wBAAgB,0BAA0B,CACzC,IAAI,EAAE,KAAK,EACX,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,SAAS,EAAE,MAAM,GACf,OAAO,CAAC,QAAQ,IAAI,MAAM,CAoB5B"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../nodes/Microsoft/SharePoint/v2/helpers/utils.ts"],"names":[],"m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ACX,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,SAAS,EAAE,MAAM,GACf,OAAO,CAAC,QAAQ,IAAI,MAAM,CAoB5B;AAED;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC7C,GAAG,EAAE,iBAAiB,EACtB,SAAS,EAAE,MAAM,EACjB,kBAAkB,EAAE,MAAM,GACxB,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CA2BhD"}
@@ -1,10 +1,80 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MAX_SIMPLE_UPLOAD_BYTES = exports.SHAREPOINT_ILLEGAL_FILE_NAME_CHARS = exports.LIST_SIMPLIFY_SELECT = void 0;
3
+ exports.MAX_SIMPLE_UPLOAD_BYTES = exports.SHAREPOINT_ILLEGAL_FILE_NAME_CHARS = exports.HYPERLINK_WRITE_HEADERS = exports.NON_INDEXED_QUERY_HEADERS = exports.odataFieldEqualsClause = exports.ITEM_SIMPLIFY_EXPAND = exports.ITEM_SIMPLIFY_SELECT = exports.LIST_SIMPLIFY_SELECT = void 0;
4
+ exports.simplifyItem = simplifyItem;
5
+ exports.assertPathSegment = assertPathSegment;
6
+ exports.nonIndexedFilterThresholdError = nonIndexedFilterThresholdError;
7
+ exports.addUniqueConstraintHint = addUniqueConstraintHint;
4
8
  exports.validateSharePointFileName = validateSharePointFileName;
9
+ exports.getUploadBufferWithinCap = getUploadBufferWithinCap;
5
10
  const n8n_workflow_1 = require("n8n-workflow");
6
11
  /** v1's Simplify $select list — the exact trimmed fields v2 keeps returning; Get Many reuses it. */
7
12
  exports.LIST_SIMPLIFY_SELECT = 'id,name,displayName,description,createdDateTime,lastModifiedDateTime,webUrl';
13
+ /** v1's item Simplify request shape — the trimmed top-level fields v2 keeps returning. */
14
+ exports.ITEM_SIMPLIFY_SELECT = 'id,createdDateTime,lastModifiedDateTime,webUrl';
15
+ // Not v1's `fields(select=Title)`: through this request stack Graph only accepts
16
+ // the nested option $-prefixed, else it rejects the whole query as unparseable.
17
+ exports.ITEM_SIMPLIFY_EXPAND = 'fields($select=Title)';
18
+ /** Match v1's simplifyItemPostReceive exactly: only these annotation keys are stripped. */
19
+ function simplifyItem(item) {
20
+ delete item['@odata.context'];
21
+ delete item['@odata.etag'];
22
+ delete item['fields@odata.navigationLink'];
23
+ delete item.fields?.['@odata.etag'];
24
+ return item;
25
+ }
26
+ /**
27
+ * Validates and trims a value used verbatim as a URL path segment. Rejects
28
+ * empty, `.` and `..`, which would address a different resource than intended.
29
+ */
30
+ function assertPathSegment(node, value, paramName) {
31
+ const trimmed = value.trim();
32
+ if (trimmed === '') {
33
+ throw new n8n_workflow_1.NodeOperationError(node, `The '${paramName}' parameter is empty`, {
34
+ description: `Set the ${paramName.toLowerCase()} and try again.`,
35
+ });
36
+ }
37
+ if (trimmed === '.' || trimmed === '..') {
38
+ throw new n8n_workflow_1.NodeOperationError(node, `The '${paramName}' value '${trimmed}' is not valid`, {
39
+ description: `Set a specific ${paramName.toLowerCase()} and try again.`,
40
+ });
41
+ }
42
+ return trimmed;
43
+ }
44
+ /**
45
+ * Builds a `fields/{column} eq '{value}'` OData $filter clause. The value is
46
+ * always compared as a quoted string literal, where the only special character
47
+ * is the single quote, escaped by doubling; URL encoding is the transport's job.
48
+ */
49
+ const odataFieldEqualsClause = (column, value) => `fields/${column} eq '${String(value ?? '').replaceAll("'", "''")}'`;
50
+ exports.odataFieldEqualsClause = odataFieldEqualsClause;
51
+ /** SharePoint refuses to filter on non-indexed columns without this opt-in. */
52
+ exports.NON_INDEXED_QUERY_HEADERS = {
53
+ Prefer: 'HonorNonIndexedQueriesWarningMayFailRandomly',
54
+ };
55
+ /** Graph rejects hyperlink field writes without this (see list/columns.ts). */
56
+ exports.HYPERLINK_WRITE_HEADERS = { Prefer: 'apiversion=2.1' };
57
+ /**
58
+ * Translates Graph's list-view-threshold failure (a non-indexed $filter on a
59
+ * >5,000-item list) into an error naming the filtered column(s); the run must
60
+ * never return a silent partial result. Returns `undefined` for other errors.
61
+ */
62
+ function nonIndexedFilterThresholdError(node, error, filter) {
63
+ if (filter === '' || !(error instanceof n8n_workflow_1.NodeApiError) || !/threshold/i.test(error.message)) {
64
+ return undefined;
65
+ }
66
+ const columns = [...filter.matchAll(/fields\/(\w+)/g)].map((match) => match[1]);
67
+ const subject = columns.length > 0 ? `column(s) '${columns.join("', '")}'` : 'this filter';
68
+ return new n8n_workflow_1.NodeOperationError(node, `SharePoint could not finish filtering on ${subject}: large lists can only be filtered on indexed columns`, {
69
+ description: 'Add an index to the column in SharePoint (List settings → Indexed columns) or filter on an indexed column, then try again.',
70
+ });
71
+ }
72
+ /** Graph's unique-constraint rejection names no column; point the user at the mapper. */
73
+ function addUniqueConstraintHint(error) {
74
+ if (error instanceof n8n_workflow_1.NodeApiError && error.message.includes('unique constraints')) {
75
+ error.description = "Double-check the value(s) in 'Columns' and try again";
76
+ }
77
+ }
8
78
  /** Characters SharePoint forbids in file names; Graph rejects them with a misleading 400. */
9
79
  exports.SHAREPOINT_ILLEGAL_FILE_NAME_CHARS = ['"', '*', ':', '<', '>', '?', '/', '\\', '|'];
10
80
  /** Graph's cap for a single-request `PUT …:/content` upload; larger files need an upload session. */
@@ -24,4 +94,32 @@ function validateSharePointFileName(node, fileName, itemIndex) {
24
94
  });
25
95
  }
26
96
  }
97
+ /**
98
+ * Asserts the input binary exists, enforces the simple-upload size cap, and
99
+ * returns the payload with its content type. Out-of-process binary data is
100
+ * size-checked from its metadata — oversized files are rejected without ever
101
+ * being read.
102
+ */
103
+ async function getUploadBufferWithinCap(ctx, itemIndex, binaryPropertyName) {
104
+ const binaryData = ctx.helpers.assertBinaryData(itemIndex, binaryPropertyName);
105
+ let body;
106
+ let fileSize;
107
+ if (binaryData.id) {
108
+ ({ fileSize } = await ctx.helpers.getBinaryMetadata(binaryData.id));
109
+ }
110
+ else {
111
+ body = Buffer.from(binaryData.data, n8n_workflow_1.BINARY_ENCODING);
112
+ fileSize = body.byteLength;
113
+ }
114
+ if (fileSize > exports.MAX_SIMPLE_UPLOAD_BYTES) {
115
+ // Ceil so a just-over-the-cap file never reads as "250 MB is larger than 250 MB"
116
+ const sizeMb = Math.ceil(fileSize / (1024 * 1024));
117
+ throw new n8n_workflow_1.NodeOperationError(ctx.getNode(), `The file is ${sizeMb} MB, which is larger than the 250 MB limit for SharePoint uploads`, {
118
+ itemIndex,
119
+ description: 'Files over 250 MB need to be uploaded in pieces, which this operation does not support yet.',
120
+ });
121
+ }
122
+ body ??= await ctx.helpers.getBinaryDataBuffer(itemIndex, binaryPropertyName);
123
+ return { body, contentType: binaryData.mimeType ?? 'application/octet-stream' };
124
+ }
27
125
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../nodes/Microsoft/SharePoint/v2/helpers/utils.ts"],"names":[],"mappings":";;;;AACA,+CAAkD;AAElD,oGAAoG;AACvF,QAAA,oBAAoB,GAChC,6EAA6E,CAAC;AAK/E,6FAA6F;AAChF,QAAA,kCAAkC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;AAEjG,qGAAqG;AACxF,QAAA,uBAAuB,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;AAEzD,oCACC,IAAW,EACX,QAA4B,EAC5B,SAAiB;IAEjB,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACtD,MAAM,IAAI,iCAAkB,CAAC,IAAI,EAAE,wBAAwB,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,MAAM,YAAY,GAAG,QAAA,kCAAkC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC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AAC,QAAQ,IAAI,0BAA0B,EAAE,CAAC;AACjF,CAAC"}
@@ -0,0 +1,50 @@
1
+ import type { IDataObject, IExecuteFunctions, ILoadOptionsFunctions, INodeListSearchResult, INodeProperties, ResourceMapperField } from 'n8n-workflow';
2
+ /** Keeps the item field hidden until a list is chosen. */
3
+ export declare const untilListSelected: {
4
+ list: string[];
5
+ };
6
+ export declare const itemRLC: INodeProperties;
7
+ /** Searches a list's items by label, paging through when a filter is typed. */
8
+ export declare function getItems(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
9
+ /**
10
+ * Returns the id of every item whose columns match the given values. Each
11
+ * caller decides what the count means: Update requires exactly one, Create or
12
+ * Update maps one→update / none→create / many→error (a deliberate divergence
13
+ * from v1, which created on many). Values are always compared as quoted
14
+ * strings, exactly like v1's filter.
15
+ */
16
+ export declare function lookupItemIdByColumns(this: IExecuteFunctions | ILoadOptionsFunctions, siteId: string, listIdOrTitle: string, matchingColumns: string[], values: IDataObject): Promise<string[]>;
17
+ /**
18
+ * Resolves the item id(s) an item operation should act on: the `id` matching
19
+ * column when chosen (update only), otherwise the columns lookup. No try/catch —
20
+ * a failed lookup propagates so it can never become a silent create.
21
+ */
22
+ export declare function resolveMatchedItemIds(this: IExecuteFunctions, siteId: string, listIdOrTitle: string, matchingColumns: string[], values: IDataObject): Promise<string[]>;
23
+ /**
24
+ * Resolves the resource mapper into the item's effective column values — from
25
+ * the input JSON in auto-map mode (schema-unknown keys dropped), otherwise
26
+ * from the mapper's own value. The mapper's shipped default is `{ value: null }`
27
+ * and the `{}` fallback only covers undefined — coalesce so
28
+ * create-with-server-defaults survives.
29
+ */
30
+ export declare function resolveItemMapperValues(this: IExecuteFunctions, i: number): IDataObject;
31
+ /**
32
+ * Builds the body for a fields write from the resolved column values. The `id`
33
+ * entry identifies the item and is never a field; hyperlink columns arrive as
34
+ * two mapper fields (`{name}.Url`/`{name}.Description`, see list/columns.ts)
35
+ * and are folded back into SharePoint's two-part shape. `hasHyperlink` tells
36
+ * the caller whether the write needs the `Prefer: apiversion=2.1` header.
37
+ */
38
+ export declare function buildItemFieldsPayload(value: IDataObject, schema: ResourceMapperField[] | undefined): {
39
+ fields: IDataObject;
40
+ hasHyperlink: boolean;
41
+ };
42
+ /**
43
+ * Writes the mapped fields to an existing item, then re-reads it. The write goes
44
+ * to the documented /fields route (v1's `{ fields }`-wrapper PATCH on the item
45
+ * itself isn't a documented Graph route); that route replies with only the
46
+ * fieldValueSet, but v1 returned the full listItem envelope, so the GET re-read
47
+ * keeps the output identical.
48
+ */
49
+ export declare function updateItemFields(this: IExecuteFunctions, siteId: string, listIdOrTitle: string, itemId: string, value: IDataObject, schema: ResourceMapperField[]): Promise<IDataObject>;
50
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../nodes/Microsoft/SharePoint/v2/item/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,MAAM,cAAc,CAAC;AAetB,0DAA0D;AAC1D,eAAO,MAAM,iBAAiB;IAAK,IAAI;CAAQ,CAAC;AAEhD,eAAO,MAAM,OAAO,EAAE,eA2BrB,CAAC;AAKF,+EAA+E;AAC/E,wBAAsB,QAAQ,CAC7B,IAAI,EAAE,qBAAqB,EAC3B,MAAM,CAAC,EAAE,MAAM,EACf,eAAe,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,qBAAqB,CAAC,CA4BhC;AAID;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CAC1C,IAAI,EAAE,iBAAiB,GAAG,qBAAqB,EAC/C,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,MAAM,EAAE,EACzB,MAAM,EAAE,WAAW,GACjB,OAAO,CAAC,MAAM,EAAE,CAAC,CA6BnB;AAED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