n8n-nodes-base 1.92.0 → 1.94.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 (274) hide show
  1. package/dist/credentials/AirtopApi.credentials.js +2 -1
  2. package/dist/credentials/AirtopApi.credentials.js.map +1 -1
  3. package/dist/credentials/JinaAiApi.credentials.js +1 -1
  4. package/dist/credentials/JinaAiApi.credentials.js.map +1 -1
  5. package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js +0 -9
  6. package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js.map +1 -1
  7. package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js +13 -0
  8. package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js.map +1 -1
  9. package/dist/credentials/Snowflake.credentials.js +46 -2
  10. package/dist/credentials/Snowflake.credentials.js.map +1 -1
  11. package/dist/known/credentials.json +10 -1
  12. package/dist/known/nodes.json +20 -4
  13. package/dist/methods/defined.json +6 -0
  14. package/dist/methods/referenced.json +3 -0
  15. package/dist/nodes/Airtop/Airtop.node.js +14 -8
  16. package/dist/nodes/Airtop/Airtop.node.js.map +1 -1
  17. package/dist/nodes/Airtop/GenericFunctions.js +87 -15
  18. package/dist/nodes/Airtop/GenericFunctions.js.map +1 -1
  19. package/dist/nodes/Airtop/actions/common/fields.js +9 -0
  20. package/dist/nodes/Airtop/actions/common/fields.js.map +1 -1
  21. package/dist/nodes/Airtop/actions/common/output.utils.js +79 -0
  22. package/dist/nodes/Airtop/actions/common/output.utils.js.map +1 -0
  23. package/dist/nodes/Airtop/actions/common/session.utils.js +2 -2
  24. package/dist/nodes/Airtop/actions/common/session.utils.js.map +1 -1
  25. package/dist/nodes/Airtop/actions/extraction/getPaginated.operation.js +13 -4
  26. package/dist/nodes/Airtop/actions/extraction/getPaginated.operation.js.map +1 -1
  27. package/dist/nodes/Airtop/actions/extraction/query.operation.js +21 -3
  28. package/dist/nodes/Airtop/actions/extraction/query.operation.js.map +1 -1
  29. package/dist/nodes/Airtop/actions/extraction/scrape.operation.js +2 -1
  30. package/dist/nodes/Airtop/actions/extraction/scrape.operation.js.map +1 -1
  31. package/dist/nodes/Airtop/actions/file/File.resource.js +104 -0
  32. package/dist/nodes/Airtop/actions/file/File.resource.js.map +1 -0
  33. package/dist/nodes/Airtop/actions/file/delete.operation.js +60 -0
  34. package/dist/nodes/Airtop/actions/file/delete.operation.js.map +1 -0
  35. package/dist/nodes/Airtop/actions/file/get.operation.js +91 -0
  36. package/dist/nodes/Airtop/actions/file/get.operation.js.map +1 -0
  37. package/dist/nodes/Airtop/actions/file/getMany.operation.js +100 -0
  38. package/dist/nodes/Airtop/actions/file/getMany.operation.js.map +1 -0
  39. package/dist/nodes/Airtop/actions/file/helpers.js +199 -0
  40. package/dist/nodes/Airtop/actions/file/helpers.js.map +1 -0
  41. package/dist/nodes/Airtop/actions/file/load.operation.js +85 -0
  42. package/dist/nodes/Airtop/actions/file/load.operation.js.map +1 -0
  43. package/dist/nodes/Airtop/actions/file/upload.operation.js +186 -0
  44. package/dist/nodes/Airtop/actions/file/upload.operation.js.map +1 -0
  45. package/dist/nodes/Airtop/actions/interaction/Interaction.resource.js +22 -1
  46. package/dist/nodes/Airtop/actions/interaction/Interaction.resource.js.map +1 -1
  47. package/dist/nodes/Airtop/actions/interaction/fill.operation.js +89 -0
  48. package/dist/nodes/Airtop/actions/interaction/fill.operation.js.map +1 -0
  49. package/dist/nodes/Airtop/actions/interaction/scroll.operation.js +219 -0
  50. package/dist/nodes/Airtop/actions/interaction/scroll.operation.js.map +1 -0
  51. package/dist/nodes/Airtop/actions/node.type.js.map +1 -1
  52. package/dist/nodes/Airtop/actions/router.js +13 -4
  53. package/dist/nodes/Airtop/actions/router.js.map +1 -1
  54. package/dist/nodes/Airtop/actions/session/create.operation.js +85 -32
  55. package/dist/nodes/Airtop/actions/session/create.operation.js.map +1 -1
  56. package/dist/nodes/Airtop/actions/window/Window.resource.js +2 -1
  57. package/dist/nodes/Airtop/actions/window/Window.resource.js.map +1 -1
  58. package/dist/nodes/Airtop/actions/window/create.operation.js +1 -1
  59. package/dist/nodes/Airtop/actions/window/create.operation.js.map +1 -1
  60. package/dist/nodes/Airtop/actions/window/takeScreenshot.operation.js +26 -3
  61. package/dist/nodes/Airtop/actions/window/takeScreenshot.operation.js.map +1 -1
  62. package/dist/nodes/Airtop/constants.js +38 -5
  63. package/dist/nodes/Airtop/constants.js.map +1 -1
  64. package/dist/nodes/Airtop/countries.js +1026 -0
  65. package/dist/nodes/Airtop/countries.js.map +1 -0
  66. package/dist/nodes/Airtop/transport/index.js +6 -3
  67. package/dist/nodes/Airtop/transport/index.js.map +1 -1
  68. package/dist/nodes/Airtop/transport/types.js.map +1 -1
  69. package/dist/nodes/Aws/IAM/AwsIam.node.js +95 -0
  70. package/dist/nodes/Aws/IAM/AwsIam.node.js.map +1 -0
  71. package/dist/nodes/Aws/IAM/AwsIam.node.json +18 -0
  72. package/dist/nodes/Aws/IAM/AwsIam.svg +18 -0
  73. package/dist/nodes/Aws/IAM/descriptions/common.js +188 -0
  74. package/dist/nodes/Aws/IAM/descriptions/common.js.map +1 -0
  75. package/dist/nodes/Aws/IAM/descriptions/group/Group.resource.js +175 -0
  76. package/dist/nodes/Aws/IAM/descriptions/group/Group.resource.js.map +1 -0
  77. package/dist/nodes/Aws/IAM/descriptions/group/create.operation.js +66 -0
  78. package/dist/nodes/Aws/IAM/descriptions/group/create.operation.js.map +1 -0
  79. package/dist/nodes/Aws/IAM/descriptions/group/delete.operation.js +43 -0
  80. package/dist/nodes/Aws/IAM/descriptions/group/delete.operation.js.map +1 -0
  81. package/dist/nodes/Aws/IAM/descriptions/group/get.operation.js +50 -0
  82. package/dist/nodes/Aws/IAM/descriptions/group/get.operation.js.map +1 -0
  83. package/dist/nodes/Aws/IAM/descriptions/group/getAll.operation.js +47 -0
  84. package/dist/nodes/Aws/IAM/descriptions/group/getAll.operation.js.map +1 -0
  85. package/dist/nodes/Aws/IAM/descriptions/group/update.operation.js +70 -0
  86. package/dist/nodes/Aws/IAM/descriptions/group/update.operation.js.map +1 -0
  87. package/dist/nodes/Aws/IAM/descriptions/index.js +42 -0
  88. package/dist/nodes/Aws/IAM/descriptions/index.js.map +1 -0
  89. package/dist/nodes/Aws/IAM/descriptions/user/User.resource.js +231 -0
  90. package/dist/nodes/Aws/IAM/descriptions/user/User.resource.js.map +1 -0
  91. package/dist/nodes/Aws/IAM/descriptions/user/addToGroup.operation.js +47 -0
  92. package/dist/nodes/Aws/IAM/descriptions/user/addToGroup.operation.js.map +1 -0
  93. package/dist/nodes/Aws/IAM/descriptions/user/create.operation.js +118 -0
  94. package/dist/nodes/Aws/IAM/descriptions/user/create.operation.js.map +1 -0
  95. package/dist/nodes/Aws/IAM/descriptions/user/delete.operation.js +43 -0
  96. package/dist/nodes/Aws/IAM/descriptions/user/delete.operation.js.map +1 -0
  97. package/dist/nodes/Aws/IAM/descriptions/user/get.operation.js +43 -0
  98. package/dist/nodes/Aws/IAM/descriptions/user/get.operation.js.map +1 -0
  99. package/dist/nodes/Aws/IAM/descriptions/user/getAll.operation.js +66 -0
  100. package/dist/nodes/Aws/IAM/descriptions/user/getAll.operation.js.map +1 -0
  101. package/dist/nodes/Aws/IAM/descriptions/user/removeFromGroup.operation.js +74 -0
  102. package/dist/nodes/Aws/IAM/descriptions/user/removeFromGroup.operation.js.map +1 -0
  103. package/dist/nodes/Aws/IAM/descriptions/user/update.operation.js +68 -0
  104. package/dist/nodes/Aws/IAM/descriptions/user/update.operation.js.map +1 -0
  105. package/dist/nodes/Aws/IAM/helpers/constants.js +47 -0
  106. package/dist/nodes/Aws/IAM/helpers/constants.js.map +1 -0
  107. package/dist/nodes/Aws/IAM/helpers/errorHandler.js +90 -0
  108. package/dist/nodes/Aws/IAM/helpers/errorHandler.js.map +1 -0
  109. package/dist/nodes/Aws/IAM/helpers/types.js +17 -0
  110. package/dist/nodes/Aws/IAM/helpers/types.js.map +1 -0
  111. package/dist/nodes/Aws/IAM/helpers/utils.js +279 -0
  112. package/dist/nodes/Aws/IAM/helpers/utils.js.map +1 -0
  113. package/dist/nodes/Aws/IAM/methods/index.js +39 -0
  114. package/dist/nodes/Aws/IAM/methods/index.js.map +1 -0
  115. package/dist/nodes/Aws/IAM/methods/listSearch.js +132 -0
  116. package/dist/nodes/Aws/IAM/methods/listSearch.js.map +1 -0
  117. package/dist/nodes/Aws/IAM/transport/index.js +64 -0
  118. package/dist/nodes/Aws/IAM/transport/index.js.map +1 -0
  119. package/dist/nodes/Cron/Cron.node.js +1 -1
  120. package/dist/nodes/Cron/Cron.node.js.map +1 -1
  121. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js +2 -2
  122. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js.map +1 -1
  123. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js +2 -2
  124. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js.map +1 -1
  125. package/dist/nodes/Evaluation/Evaluation/Description.node.js +146 -0
  126. package/dist/nodes/Evaluation/Evaluation/Description.node.js.map +1 -0
  127. package/dist/nodes/Evaluation/Evaluation/Evaluation.node.ee.js +117 -0
  128. package/dist/nodes/Evaluation/Evaluation/Evaluation.node.ee.js.map +1 -0
  129. package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js +187 -0
  130. package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js.map +1 -0
  131. package/dist/nodes/Evaluation/methods/index.js +42 -0
  132. package/dist/nodes/Evaluation/methods/index.js.map +1 -0
  133. package/dist/nodes/Evaluation/methods/loadOptions.js +40 -0
  134. package/dist/nodes/Evaluation/methods/loadOptions.js.map +1 -0
  135. package/dist/nodes/Evaluation/utils/evaluationTriggerUtils.js +119 -0
  136. package/dist/nodes/Evaluation/utils/evaluationTriggerUtils.js.map +1 -0
  137. package/dist/nodes/Evaluation/utils/evaluationUtils.js +171 -0
  138. package/dist/nodes/Evaluation/utils/evaluationUtils.js.map +1 -0
  139. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js +4 -3
  140. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js.map +1 -1
  141. package/dist/nodes/Form/common.descriptions.js +2 -2
  142. package/dist/nodes/Form/common.descriptions.js.map +1 -1
  143. package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js +4 -1
  144. package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js.map +1 -1
  145. package/dist/nodes/Google/Firebase/CloudFirestore/GenericFunctions.js +1 -2
  146. package/dist/nodes/Google/Firebase/CloudFirestore/GenericFunctions.js.map +1 -1
  147. package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js +113 -107
  148. package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js.map +1 -1
  149. package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js +52 -106
  150. package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js.map +1 -1
  151. package/dist/nodes/Google/Sheet/v2/actions/utils/readOperation.js +97 -0
  152. package/dist/nodes/Google/Sheet/v2/actions/utils/readOperation.js.map +1 -0
  153. package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js +20 -17
  154. package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js.map +1 -1
  155. package/dist/nodes/Google/YouTube/YouTube.node.js +4 -2
  156. package/dist/nodes/Google/YouTube/YouTube.node.js.map +1 -1
  157. package/dist/nodes/HttpRequest/GenericFunctions.js +1 -1
  158. package/dist/nodes/HttpRequest/GenericFunctions.js.map +1 -1
  159. package/dist/nodes/Interval/Interval.node.js +1 -1
  160. package/dist/nodes/Interval/Interval.node.js.map +1 -1
  161. package/dist/nodes/Jira/Jira.node.js +34 -15
  162. package/dist/nodes/Jira/Jira.node.js.map +1 -1
  163. package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js +2 -2
  164. package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js.map +1 -1
  165. package/dist/nodes/MQTT/MqttTrigger.node.js +2 -2
  166. package/dist/nodes/MQTT/MqttTrigger.node.js.map +1 -1
  167. package/dist/nodes/ManualTrigger/ManualTrigger.node.js +1 -1
  168. package/dist/nodes/ManualTrigger/ManualTrigger.node.js.map +1 -1
  169. package/dist/nodes/Merge/Merge.node.js +3 -2
  170. package/dist/nodes/Merge/Merge.node.js.map +1 -1
  171. package/dist/nodes/Merge/v3/actions/mode/combineBySql.js +42 -4
  172. package/dist/nodes/Merge/v3/actions/mode/combineBySql.js.map +1 -1
  173. package/dist/nodes/Merge/v3/actions/versionDescription.js +1 -1
  174. package/dist/nodes/Merge/v3/actions/versionDescription.js.map +1 -1
  175. package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js +93 -0
  176. package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js.map +1 -0
  177. package/dist/nodes/Microsoft/SharePoint/MicrosoftSharepoint.node.json +18 -0
  178. package/dist/nodes/Microsoft/SharePoint/descriptions/common.descriptions.js +190 -0
  179. package/dist/nodes/Microsoft/SharePoint/descriptions/common.descriptions.js.map +1 -0
  180. package/dist/nodes/Microsoft/SharePoint/descriptions/file/File.resource.js +108 -0
  181. package/dist/nodes/Microsoft/SharePoint/descriptions/file/File.resource.js.map +1 -0
  182. package/dist/nodes/Microsoft/SharePoint/descriptions/file/download.operation.js +62 -0
  183. package/dist/nodes/Microsoft/SharePoint/descriptions/file/download.operation.js.map +1 -0
  184. package/dist/nodes/Microsoft/SharePoint/descriptions/file/update.operation.js +129 -0
  185. package/dist/nodes/Microsoft/SharePoint/descriptions/file/update.operation.js.map +1 -0
  186. package/dist/nodes/Microsoft/SharePoint/descriptions/file/upload.operation.js +77 -0
  187. package/dist/nodes/Microsoft/SharePoint/descriptions/file/upload.operation.js.map +1 -0
  188. package/dist/nodes/Microsoft/SharePoint/descriptions/index.js +45 -0
  189. package/dist/nodes/Microsoft/SharePoint/descriptions/index.js.map +1 -0
  190. package/dist/nodes/Microsoft/SharePoint/descriptions/item/Item.resource.js +175 -0
  191. package/dist/nodes/Microsoft/SharePoint/descriptions/item/Item.resource.js.map +1 -0
  192. package/dist/nodes/Microsoft/SharePoint/descriptions/item/create.operation.js +100 -0
  193. package/dist/nodes/Microsoft/SharePoint/descriptions/item/create.operation.js.map +1 -0
  194. package/dist/nodes/Microsoft/SharePoint/descriptions/item/delete.operation.js +62 -0
  195. package/dist/nodes/Microsoft/SharePoint/descriptions/item/delete.operation.js.map +1 -0
  196. package/dist/nodes/Microsoft/SharePoint/descriptions/item/get.operation.js +83 -0
  197. package/dist/nodes/Microsoft/SharePoint/descriptions/item/get.operation.js.map +1 -0
  198. package/dist/nodes/Microsoft/SharePoint/descriptions/item/getAll.operation.js +203 -0
  199. package/dist/nodes/Microsoft/SharePoint/descriptions/item/getAll.operation.js.map +1 -0
  200. package/dist/nodes/Microsoft/SharePoint/descriptions/item/update.operation.js +100 -0
  201. package/dist/nodes/Microsoft/SharePoint/descriptions/item/update.operation.js.map +1 -0
  202. package/dist/nodes/Microsoft/SharePoint/descriptions/item/upsert.operation.js +100 -0
  203. package/dist/nodes/Microsoft/SharePoint/descriptions/item/upsert.operation.js.map +1 -0
  204. package/dist/nodes/Microsoft/SharePoint/descriptions/list/List.resource.js +99 -0
  205. package/dist/nodes/Microsoft/SharePoint/descriptions/list/List.resource.js.map +1 -0
  206. package/dist/nodes/Microsoft/SharePoint/descriptions/list/get.operation.js +65 -0
  207. package/dist/nodes/Microsoft/SharePoint/descriptions/list/get.operation.js.map +1 -0
  208. package/dist/nodes/Microsoft/SharePoint/descriptions/list/getAll.operation.js +105 -0
  209. package/dist/nodes/Microsoft/SharePoint/descriptions/list/getAll.operation.js.map +1 -0
  210. package/dist/nodes/Microsoft/SharePoint/helpers/interfaces.js +17 -0
  211. package/dist/nodes/Microsoft/SharePoint/helpers/interfaces.js.map +1 -0
  212. package/dist/nodes/Microsoft/SharePoint/helpers/utils.js +252 -0
  213. package/dist/nodes/Microsoft/SharePoint/helpers/utils.js.map +1 -0
  214. package/dist/nodes/Microsoft/SharePoint/methods/index.js +42 -0
  215. package/dist/nodes/Microsoft/SharePoint/methods/index.js.map +1 -0
  216. package/dist/nodes/Microsoft/SharePoint/methods/listSearch.js +222 -0
  217. package/dist/nodes/Microsoft/SharePoint/methods/listSearch.js.map +1 -0
  218. package/dist/nodes/Microsoft/SharePoint/methods/resourceMapping.js +104 -0
  219. package/dist/nodes/Microsoft/SharePoint/methods/resourceMapping.js.map +1 -0
  220. package/dist/nodes/Microsoft/SharePoint/test/credentials.js +54 -0
  221. package/dist/nodes/Microsoft/SharePoint/test/credentials.js.map +1 -0
  222. package/dist/nodes/Microsoft/SharePoint/transport/index.js +46 -0
  223. package/dist/nodes/Microsoft/SharePoint/transport/index.js.map +1 -0
  224. package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js +387 -0
  225. package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js.map +1 -0
  226. package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.json +18 -0
  227. package/dist/nodes/Microsoft/Teams/v2/helpers/types.js +17 -0
  228. package/dist/nodes/Microsoft/Teams/v2/helpers/types.js.map +1 -0
  229. package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js +147 -0
  230. package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js.map +1 -0
  231. package/dist/nodes/Microsoft/Teams/v2/transport/index.js.map +1 -1
  232. package/dist/nodes/MongoDb/GenericFunctions.js +9 -2
  233. package/dist/nodes/MongoDb/GenericFunctions.js.map +1 -1
  234. package/dist/nodes/MongoDb/MongoDb.node.js +25 -5
  235. package/dist/nodes/MongoDb/MongoDb.node.js.map +1 -1
  236. package/dist/nodes/PostBin/BinDescription.js +1 -1
  237. package/dist/nodes/PostBin/BinDescription.js.map +1 -1
  238. package/dist/nodes/PostBin/GenericFunctions.js +5 -5
  239. package/dist/nodes/PostBin/GenericFunctions.js.map +1 -1
  240. package/dist/nodes/PostBin/PostBin.node.js +1 -1
  241. package/dist/nodes/PostBin/PostBin.node.js.map +1 -1
  242. package/dist/nodes/PostBin/RequestDescription.js +2 -2
  243. package/dist/nodes/PostBin/RequestDescription.js.map +1 -1
  244. package/dist/nodes/Postgres/PostgresTrigger.node.js +2 -2
  245. package/dist/nodes/Postgres/PostgresTrigger.node.js.map +1 -1
  246. package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js +2 -2
  247. package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js.map +1 -1
  248. package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js +8 -3
  249. package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js.map +1 -1
  250. package/dist/nodes/RespondToWebhook/utils.js +43 -0
  251. package/dist/nodes/RespondToWebhook/utils.js.map +1 -0
  252. package/dist/nodes/Schedule/ScheduleTrigger.node.js +1 -1
  253. package/dist/nodes/Schedule/ScheduleTrigger.node.js.map +1 -1
  254. package/dist/nodes/Snowflake/GenericFunctions.js +34 -2
  255. package/dist/nodes/Snowflake/GenericFunctions.js.map +1 -1
  256. package/dist/nodes/Snowflake/Snowflake.node.js +5 -7
  257. package/dist/nodes/Snowflake/Snowflake.node.js.map +1 -1
  258. package/dist/nodes/SseTrigger/SseTrigger.node.js +2 -2
  259. package/dist/nodes/SseTrigger/SseTrigger.node.js.map +1 -1
  260. package/dist/nodes/Telegram/Telegram.node.js +5 -1
  261. package/dist/nodes/Telegram/Telegram.node.js.map +1 -1
  262. package/dist/nodes/Transform/Summarize/utils.js +2 -1
  263. package/dist/nodes/Transform/Summarize/utils.js.map +1 -1
  264. package/dist/test/setup.js +1 -0
  265. package/dist/test/setup.js.map +1 -1
  266. package/dist/types/credentials.json +7 -7
  267. package/dist/types/nodes.json +27 -23
  268. package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js +12 -2
  269. package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js.map +1 -1
  270. package/package.json +15 -12
  271. package/dist/nodes/EvaluationMetrics/EvaluationMetrics.node.js +0 -119
  272. package/dist/nodes/EvaluationMetrics/EvaluationMetrics.node.js.map +0 -1
  273. package/dist/nodes/EvaluationMetrics/EvaluationMetrics.node.json +0 -14
  274. /package/dist/{credentials/icons/SharePoint.svg → nodes/Microsoft/SharePoint/microsoftSharePoint.svg} +0 -0
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var List_resource_exports = {};
30
+ __export(List_resource_exports, {
31
+ description: () => description
32
+ });
33
+ module.exports = __toCommonJS(List_resource_exports);
34
+ var get = __toESM(require("./get.operation"));
35
+ var getAll = __toESM(require("./getAll.operation"));
36
+ var import_utils = require("../../helpers/utils");
37
+ const description = [
38
+ {
39
+ displayName: "Operation",
40
+ name: "operation",
41
+ type: "options",
42
+ noDataExpression: true,
43
+ displayOptions: {
44
+ show: {
45
+ resource: ["list"]
46
+ }
47
+ },
48
+ options: [
49
+ {
50
+ name: "Get",
51
+ value: "get",
52
+ description: "Retrieve details of a single list",
53
+ routing: {
54
+ request: {
55
+ ignoreHttpStatusErrors: true,
56
+ method: "GET",
57
+ url: '=/sites/{{ $parameter["site"] }}/lists/{{ $parameter["list"] }}'
58
+ },
59
+ output: {
60
+ postReceive: [import_utils.handleErrorPostReceive, import_utils.simplifyListPostReceive]
61
+ }
62
+ },
63
+ action: "Get list"
64
+ },
65
+ {
66
+ name: "Get Many",
67
+ value: "getAll",
68
+ description: "Retrieve a list of lists",
69
+ routing: {
70
+ request: {
71
+ method: "GET",
72
+ url: '=/sites/{{ $parameter["site"] }}/lists'
73
+ },
74
+ output: {
75
+ postReceive: [
76
+ import_utils.handleErrorPostReceive,
77
+ {
78
+ type: "rootProperty",
79
+ properties: {
80
+ property: "value"
81
+ }
82
+ },
83
+ import_utils.simplifyListPostReceive
84
+ ]
85
+ }
86
+ },
87
+ action: "Get many lists"
88
+ }
89
+ ],
90
+ default: "getAll"
91
+ },
92
+ ...get.description,
93
+ ...getAll.description
94
+ ];
95
+ // Annotate the CommonJS export names for ESM import in node:
96
+ 0 && (module.exports = {
97
+ description
98
+ });
99
+ //# sourceMappingURL=List.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Microsoft/SharePoint/descriptions/list/List.resource.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\n\nimport * as get from './get.operation';\nimport * as getAll from './getAll.operation';\nimport { handleErrorPostReceive, simplifyListPostReceive } from '../../helpers/utils';\n\nexport const description: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'Operation',\n\t\tname: 'operation',\n\t\ttype: 'options',\n\t\tnoDataExpression: true,\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['list'],\n\t\t\t},\n\t\t},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tname: 'Get',\n\t\t\t\tvalue: 'get',\n\t\t\t\tdescription: 'Retrieve details of a single list',\n\t\t\t\trouting: {\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tignoreHttpStatusErrors: true,\n\t\t\t\t\t\tmethod: 'GET',\n\t\t\t\t\t\turl: '=/sites/{{ $parameter[\"site\"] }}/lists/{{ $parameter[\"list\"] }}',\n\t\t\t\t\t},\n\t\t\t\t\toutput: {\n\t\t\t\t\t\tpostReceive: [handleErrorPostReceive, simplifyListPostReceive],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\taction: 'Get list',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Get Many',\n\t\t\t\tvalue: 'getAll',\n\t\t\t\tdescription: 'Retrieve a list of lists',\n\t\t\t\trouting: {\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'GET',\n\t\t\t\t\t\turl: '=/sites/{{ $parameter[\"site\"] }}/lists',\n\t\t\t\t\t},\n\t\t\t\t\toutput: {\n\t\t\t\t\t\tpostReceive: [\n\t\t\t\t\t\t\thandleErrorPostReceive,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'rootProperty',\n\t\t\t\t\t\t\t\tproperties: {\n\t\t\t\t\t\t\t\t\tproperty: 'value',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsimplifyListPostReceive,\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\taction: 'Get many lists',\n\t\t\t},\n\t\t],\n\t\tdefault: 'getAll',\n\t},\n\n\t...get.description,\n\t...getAll.description,\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,UAAqB;AACrB,aAAwB;AACxB,mBAAgE;AAEzD,MAAM,cAAiC;AAAA,EAC7C;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,MAAM;AAAA,IACN,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,MACf,MAAM;AAAA,QACL,UAAU,CAAC,MAAM;AAAA,MAClB;AAAA,IACD;AAAA,IACA,SAAS;AAAA,MACR;AAAA,QACC,MAAM;AAAA,QACN,OAAO;AAAA,QACP,aAAa;AAAA,QACb,SAAS;AAAA,UACR,SAAS;AAAA,YACR,wBAAwB;AAAA,YACxB,QAAQ;AAAA,YACR,KAAK;AAAA,UACN;AAAA,UACA,QAAQ;AAAA,YACP,aAAa,CAAC,qCAAwB,oCAAuB;AAAA,UAC9D;AAAA,QACD;AAAA,QACA,QAAQ;AAAA,MACT;AAAA,MACA;AAAA,QACC,MAAM;AAAA,QACN,OAAO;AAAA,QACP,aAAa;AAAA,QACb,SAAS;AAAA,UACR,SAAS;AAAA,YACR,QAAQ;AAAA,YACR,KAAK;AAAA,UACN;AAAA,UACA,QAAQ;AAAA,YACP,aAAa;AAAA,cACZ;AAAA,cACA;AAAA,gBACC,MAAM;AAAA,gBACN,YAAY;AAAA,kBACX,UAAU;AAAA,gBACX;AAAA,cACD;AAAA,cACA;AAAA,YACD;AAAA,UACD;AAAA,QACD;AAAA,QACA,QAAQ;AAAA,MACT;AAAA,IACD;AAAA,IACA,SAAS;AAAA,EACV;AAAA,EAEA,GAAG,IAAI;AAAA,EACP,GAAG,OAAO;AACX;","names":[]}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var get_operation_exports = {};
20
+ __export(get_operation_exports, {
21
+ description: () => description
22
+ });
23
+ module.exports = __toCommonJS(get_operation_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_common = require("../common.descriptions");
26
+ const properties = [
27
+ {
28
+ ...import_common.siteRLC,
29
+ description: "Select the site to retrieve lists from"
30
+ },
31
+ {
32
+ ...import_common.listRLC,
33
+ description: "Select the list you want to retrieve",
34
+ displayOptions: {
35
+ hide: {
36
+ ...import_common.untilSiteSelected
37
+ }
38
+ }
39
+ },
40
+ {
41
+ displayName: "Simplify",
42
+ name: "simplify",
43
+ default: true,
44
+ routing: {
45
+ send: {
46
+ property: "$select",
47
+ type: "query",
48
+ value: '={{ $value ? "id,name,displayName,description,createdDateTime,lastModifiedDateTime,webUrl" : undefined }}'
49
+ }
50
+ },
51
+ type: "boolean"
52
+ }
53
+ ];
54
+ const displayOptions = {
55
+ show: {
56
+ resource: ["list"],
57
+ operation: ["get"]
58
+ }
59
+ };
60
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
61
+ // Annotate the CommonJS export names for ESM import in node:
62
+ 0 && (module.exports = {
63
+ description
64
+ });
65
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Microsoft/SharePoint/descriptions/list/get.operation.ts"],"sourcesContent":["import { updateDisplayOptions, type INodeProperties } from 'n8n-workflow';\n\nimport { listRLC, siteRLC, untilSiteSelected } from '../common.descriptions';\n\nconst properties: INodeProperties[] = [\n\t{\n\t\t...siteRLC,\n\t\tdescription: 'Select the site to retrieve lists from',\n\t},\n\t{\n\t\t...listRLC,\n\t\tdescription: 'Select the list you want to retrieve',\n\t\tdisplayOptions: {\n\t\t\thide: {\n\t\t\t\t...untilSiteSelected,\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Simplify',\n\t\tname: 'simplify',\n\t\tdefault: true,\n\t\trouting: {\n\t\t\tsend: {\n\t\t\t\tproperty: '$select',\n\t\t\t\ttype: 'query',\n\t\t\t\tvalue:\n\t\t\t\t\t'={{ $value ? \"id,name,displayName,description,createdDateTime,lastModifiedDateTime,webUrl\" : undefined }}',\n\t\t\t},\n\t\t},\n\t\ttype: 'boolean',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['list'],\n\t\toperation: ['get'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA2D;AAE3D,oBAAoD;AAEpD,MAAM,aAAgC;AAAA,EACrC;AAAA,IACC,GAAG;AAAA,IACH,aAAa;AAAA,EACd;AAAA,EACA;AAAA,IACC,GAAG;AAAA,IACH,aAAa;AAAA,IACb,gBAAgB;AAAA,MACf,MAAM;AAAA,QACL,GAAG;AAAA,MACJ;AAAA,IACD;AAAA,EACD;AAAA,EACA;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,SAAS;AAAA,MACR,MAAM;AAAA,QACL,UAAU;AAAA,QACV,MAAM;AAAA,QACN,OACC;AAAA,MACF;AAAA,IACD;AAAA,IACA,MAAM;AAAA,EACP;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,MAAM;AAAA,IACjB,WAAW,CAAC,KAAK;AAAA,EAClB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var getAll_operation_exports = {};
20
+ __export(getAll_operation_exports, {
21
+ description: () => description
22
+ });
23
+ module.exports = __toCommonJS(getAll_operation_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_common = require("../common.descriptions");
26
+ const properties = [
27
+ {
28
+ ...import_common.siteRLC,
29
+ description: "Select the site to retrieve lists from"
30
+ },
31
+ {
32
+ displayName: "Return All",
33
+ name: "returnAll",
34
+ default: false,
35
+ description: "Whether to return all results or only up to a given limit",
36
+ routing: {
37
+ send: {
38
+ paginate: "={{ $value }}"
39
+ },
40
+ operations: {
41
+ pagination: {
42
+ type: "generic",
43
+ properties: {
44
+ continue: '={{ !!$response.body?.["@odata.nextLink"] }}',
45
+ request: {
46
+ url: '={{ $response.body?.["@odata.nextLink"] ?? $request.url }}',
47
+ qs: {
48
+ $select: '={{ !!$response.body?.["@odata.nextLink"] ? undefined : $request.qs?.$select }}'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ },
55
+ type: "boolean"
56
+ },
57
+ {
58
+ displayName: "Limit",
59
+ name: "limit",
60
+ default: 50,
61
+ description: "Max number of results to return",
62
+ displayOptions: {
63
+ show: {
64
+ returnAll: [false]
65
+ }
66
+ },
67
+ routing: {
68
+ send: {
69
+ property: "$top",
70
+ type: "query",
71
+ value: "={{ $value }}"
72
+ }
73
+ },
74
+ type: "number",
75
+ typeOptions: {
76
+ minValue: 1
77
+ },
78
+ validateType: "number"
79
+ },
80
+ {
81
+ displayName: "Simplify",
82
+ name: "simplify",
83
+ default: true,
84
+ routing: {
85
+ send: {
86
+ property: "$select",
87
+ type: "query",
88
+ value: '={{ $value ? "id,name,displayName,description,createdDateTime,lastModifiedDateTime,webUrl" : undefined }}'
89
+ }
90
+ },
91
+ type: "boolean"
92
+ }
93
+ ];
94
+ const displayOptions = {
95
+ show: {
96
+ resource: ["list"],
97
+ operation: ["getAll"]
98
+ }
99
+ };
100
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
101
+ // Annotate the CommonJS export names for ESM import in node:
102
+ 0 && (module.exports = {
103
+ description
104
+ });
105
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Microsoft/SharePoint/descriptions/list/getAll.operation.ts"],"sourcesContent":["import { updateDisplayOptions, type INodeProperties } from 'n8n-workflow';\n\nimport { siteRLC } from '../common.descriptions';\n\nconst properties: INodeProperties[] = [\n\t{\n\t\t...siteRLC,\n\t\tdescription: 'Select the site to retrieve lists from',\n\t},\n\t{\n\t\tdisplayName: 'Return All',\n\t\tname: 'returnAll',\n\t\tdefault: false,\n\t\tdescription: 'Whether to return all results or only up to a given limit',\n\t\trouting: {\n\t\t\tsend: {\n\t\t\t\tpaginate: '={{ $value }}',\n\t\t\t},\n\t\t\toperations: {\n\t\t\t\tpagination: {\n\t\t\t\t\ttype: 'generic',\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tcontinue: '={{ !!$response.body?.[\"@odata.nextLink\"] }}',\n\t\t\t\t\t\trequest: {\n\t\t\t\t\t\t\turl: '={{ $response.body?.[\"@odata.nextLink\"] ?? $request.url }}',\n\t\t\t\t\t\t\tqs: {\n\t\t\t\t\t\t\t\t$select:\n\t\t\t\t\t\t\t\t\t'={{ !!$response.body?.[\"@odata.nextLink\"] ? undefined : $request.qs?.$select }}',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\ttype: 'boolean',\n\t},\n\t{\n\t\tdisplayName: 'Limit',\n\t\tname: 'limit',\n\t\tdefault: 50,\n\t\tdescription: 'Max number of results to return',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\treturnAll: [false],\n\t\t\t},\n\t\t},\n\t\trouting: {\n\t\t\tsend: {\n\t\t\t\tproperty: '$top',\n\t\t\t\ttype: 'query',\n\t\t\t\tvalue: '={{ $value }}',\n\t\t\t},\n\t\t},\n\t\ttype: 'number',\n\t\ttypeOptions: {\n\t\t\tminValue: 1,\n\t\t},\n\t\tvalidateType: 'number',\n\t},\n\t{\n\t\tdisplayName: 'Simplify',\n\t\tname: 'simplify',\n\t\tdefault: true,\n\t\trouting: {\n\t\t\tsend: {\n\t\t\t\tproperty: '$select',\n\t\t\t\ttype: 'query',\n\t\t\t\tvalue:\n\t\t\t\t\t'={{ $value ? \"id,name,displayName,description,createdDateTime,lastModifiedDateTime,webUrl\" : undefined }}',\n\t\t\t},\n\t\t},\n\t\ttype: 'boolean',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['list'],\n\t\toperation: ['getAll'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA2D;AAE3D,oBAAwB;AAExB,MAAM,aAAgC;AAAA,EACrC;AAAA,IACC,GAAG;AAAA,IACH,aAAa;AAAA,EACd;AAAA,EACA;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,IACb,SAAS;AAAA,MACR,MAAM;AAAA,QACL,UAAU;AAAA,MACX;AAAA,MACA,YAAY;AAAA,QACX,YAAY;AAAA,UACX,MAAM;AAAA,UACN,YAAY;AAAA,YACX,UAAU;AAAA,YACV,SAAS;AAAA,cACR,KAAK;AAAA,cACL,IAAI;AAAA,gBACH,SACC;AAAA,cACF;AAAA,YACD;AAAA,UACD;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,IACA,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,IACb,gBAAgB;AAAA,MACf,MAAM;AAAA,QACL,WAAW,CAAC,KAAK;AAAA,MAClB;AAAA,IACD;AAAA,IACA,SAAS;AAAA,MACR,MAAM;AAAA,QACL,UAAU;AAAA,QACV,MAAM;AAAA,QACN,OAAO;AAAA,MACR;AAAA,IACD;AAAA,IACA,MAAM;AAAA,IACN,aAAa;AAAA,MACZ,UAAU;AAAA,IACX;AAAA,IACA,cAAc;AAAA,EACf;AAAA,EACA;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,SAAS;AAAA,MACR,MAAM;AAAA,QACL,UAAU;AAAA,QACV,MAAM;AAAA,QACN,OACC;AAAA,MACF;AAAA,IACD;AAAA,IACA,MAAM;AAAA,EACP;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,MAAM;AAAA,IACjB,WAAW,CAAC,QAAQ;AAAA,EACrB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var interfaces_exports = {};
16
+ module.exports = __toCommonJS(interfaces_exports);
17
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Microsoft/SharePoint/helpers/interfaces.ts"],"sourcesContent":["import type { IDataObject } from 'n8n-workflow';\n\nexport interface IListColumnType {\n\tid: string;\n\thidden: boolean;\n\tname: string;\n\tdisplayName: string;\n\treadOnly: boolean;\n\trequired: boolean;\n\ttype: string;\n\tenforceUniqueValues: boolean;\n\tchoice?: {\n\t\tchoices: string[];\n\t};\n}\n\nexport interface IDriveItem {\n\tid: string;\n\tname: string;\n\tfile?: IDataObject;\n\tfolder?: IDataObject;\n}\n\nexport interface IListItem {\n\tid: string;\n\tfields: {\n\t\tTitle: string;\n\t};\n}\n\nexport interface IList {\n\tid: string;\n\tdisplayName: string;\n}\n\nexport interface ISite {\n\tid: string;\n\ttitle: string;\n}\n\nexport interface IErrorResponse {\n\terror: {\n\t\tcode: string;\n\t\tmessage: string;\n\t};\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1,252 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var utils_exports = {};
20
+ __export(utils_exports, {
21
+ downloadFilePostReceive: () => downloadFilePostReceive,
22
+ handleErrorPostReceive: () => handleErrorPostReceive,
23
+ itemColumnsPreSend: () => itemColumnsPreSend,
24
+ itemGetAllFieldsPreSend: () => itemGetAllFieldsPreSend,
25
+ simplifyItemPostReceive: () => simplifyItemPostReceive,
26
+ simplifyListPostReceive: () => simplifyListPostReceive,
27
+ uploadFilePreSend: () => uploadFilePreSend
28
+ });
29
+ module.exports = __toCommonJS(utils_exports);
30
+ var import_n8n_workflow = require("n8n-workflow");
31
+ var import_transport = require("../transport");
32
+ async function simplifyItemPostReceive(items, _response) {
33
+ if (items.length === 0) {
34
+ return items;
35
+ }
36
+ const simplify = this.getNodeParameter("simplify");
37
+ if (simplify) {
38
+ for (const item of items) {
39
+ delete item.json["@odata.context"];
40
+ delete item.json["@odata.etag"];
41
+ delete item.json["fields@odata.navigationLink"];
42
+ delete item.json.fields?.["@odata.etag"];
43
+ }
44
+ }
45
+ return items;
46
+ }
47
+ async function simplifyListPostReceive(items, _response) {
48
+ if (items.length === 0) {
49
+ return items;
50
+ }
51
+ const simplify = this.getNodeParameter("simplify");
52
+ if (simplify) {
53
+ for (const item of items) {
54
+ delete item.json["@odata.context"];
55
+ delete item.json["@odata.etag"];
56
+ }
57
+ }
58
+ return items;
59
+ }
60
+ async function downloadFilePostReceive(_items, response) {
61
+ let fileName;
62
+ if (response.headers["content-disposition"]) {
63
+ let fileNameMatch = /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(
64
+ response.headers["content-disposition"]
65
+ );
66
+ fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : void 0;
67
+ if (fileName) {
68
+ fileName = decodeURIComponent(fileName);
69
+ } else {
70
+ fileNameMatch = /filename="?([^"]*?)"?(;|$)/g.exec(
71
+ response.headers["content-disposition"]
72
+ );
73
+ fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : void 0;
74
+ }
75
+ }
76
+ const newItem = {
77
+ json: {},
78
+ binary: {
79
+ data: await this.helpers.prepareBinaryData(
80
+ response.body,
81
+ fileName,
82
+ response.headers["content-type"]
83
+ )
84
+ }
85
+ };
86
+ return [newItem];
87
+ }
88
+ async function uploadFilePreSend(requestOptions) {
89
+ const binaryProperty = this.getNodeParameter("fileContents");
90
+ this.helpers.assertBinaryData(binaryProperty);
91
+ const binaryDataBuffer = await this.helpers.getBinaryDataBuffer(binaryProperty);
92
+ requestOptions.body = binaryDataBuffer;
93
+ return requestOptions;
94
+ }
95
+ async function itemGetAllFieldsPreSend(requestOptions) {
96
+ const fields = this.getNodeParameter("options.fields");
97
+ requestOptions.qs ??= {};
98
+ if (fields.some((x) => x === "fields")) {
99
+ requestOptions.qs.$expand = "fields";
100
+ }
101
+ requestOptions.qs.$select = fields.map((x) => x);
102
+ return requestOptions;
103
+ }
104
+ async function itemColumnsPreSend(requestOptions) {
105
+ const mapperValue = this.getNodeParameter("columns");
106
+ const operation = this.getNodeParameter("operation");
107
+ if (["upsert", "update"].includes(operation) && mapperValue.matchingColumns?.length > 0) {
108
+ if (!mapperValue.matchingColumns.includes("id")) {
109
+ const site = this.getNodeParameter("site", void 0, { extractValue: true });
110
+ const list = this.getNodeParameter("list", void 0, { extractValue: true });
111
+ const response = await import_transport.microsoftSharePointApiRequest.call(
112
+ this,
113
+ "GET",
114
+ `/sites/${site}/lists/${list}/items`,
115
+ {},
116
+ {
117
+ $filter: mapperValue.matchingColumns.map((x) => `fields/${x} eq '${mapperValue.value[x]}'`).join(" and")
118
+ },
119
+ {
120
+ Prefer: "HonorNonIndexedQueriesWarningMayFailRandomly"
121
+ }
122
+ );
123
+ if (response.value?.length === 1) {
124
+ mapperValue.matchingColumns.push("id");
125
+ mapperValue.value ??= {};
126
+ mapperValue.value.id = response.value[0].id;
127
+ }
128
+ }
129
+ if (operation === "upsert") {
130
+ if (mapperValue.matchingColumns.includes("id")) {
131
+ if (!mapperValue.value?.id) {
132
+ throw new import_n8n_workflow.NodeOperationError(
133
+ this.getNode(),
134
+ "The column(s) don't match any existing item",
135
+ {
136
+ description: "Double-check the value(s) for the columns to match and try again"
137
+ }
138
+ );
139
+ }
140
+ requestOptions.url += "/" + mapperValue.value.id;
141
+ delete mapperValue.value.id;
142
+ requestOptions.method = "PATCH";
143
+ }
144
+ } else if (operation === "update") {
145
+ if (mapperValue.matchingColumns.includes("id") && mapperValue.value?.id) {
146
+ requestOptions.url += "/" + mapperValue.value.id;
147
+ delete mapperValue.value.id;
148
+ } else {
149
+ throw new import_n8n_workflow.NodeOperationError(
150
+ this.getNode(),
151
+ "The column(s) don't match any existing item",
152
+ {
153
+ description: "Double-check the value(s) for the columns to match and try again"
154
+ }
155
+ );
156
+ }
157
+ }
158
+ }
159
+ const fields = {};
160
+ for (const [key, value] of Object.entries(mapperValue.value ?? {})) {
161
+ if (mapperValue.schema.find((x) => x.id === key)?.type === "url") {
162
+ fields[key] = {
163
+ Description: value,
164
+ Url: value
165
+ };
166
+ } else {
167
+ fields[key] = value;
168
+ }
169
+ }
170
+ requestOptions.body ??= {};
171
+ requestOptions.body.fields = fields;
172
+ return requestOptions;
173
+ }
174
+ async function handleErrorPostReceive(data, response) {
175
+ if (String(response.statusCode).startsWith("4") || String(response.statusCode).startsWith("5")) {
176
+ const resource = this.getNodeParameter("resource");
177
+ const operation = this.getNodeParameter("operation");
178
+ if (resource === "file" && operation === "download" && Buffer.isBuffer(response.body)) {
179
+ response.body = (0, import_n8n_workflow.jsonParse)(response.body.toString());
180
+ }
181
+ const error = response.body?.error ?? {};
182
+ if (resource === "file") {
183
+ if (operation === "download") {
184
+ } else if (operation === "update") {
185
+ } else if (operation === "upload") {
186
+ }
187
+ } else if (resource === "item") {
188
+ if (operation === "create") {
189
+ if (error.code === "invalidRequest") {
190
+ if (error.message === "One or more fields with unique constraints already has the provided value.") {
191
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
192
+ message: "One or more fields with unique constraints already has the provided value",
193
+ description: "Double-check the value(s) in 'Values to Send' and try again"
194
+ });
195
+ } else {
196
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
197
+ message: error.message,
198
+ description: "Double-check the value(s) in 'Values to Send' and try again"
199
+ });
200
+ }
201
+ }
202
+ } else if (operation === "delete") {
203
+ } else if (operation === "get") {
204
+ } else if (operation === "getAll") {
205
+ } else if (operation === "update") {
206
+ if (error.code === "invalidRequest") {
207
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
208
+ message: error.message,
209
+ description: "Double-check the value(s) in 'Values to Update' and try again"
210
+ });
211
+ }
212
+ } else if (operation === "upsert") {
213
+ if (error.code === "invalidRequest") {
214
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
215
+ message: error.message,
216
+ description: "Double-check the value(s) in 'Values to Send' and try again"
217
+ });
218
+ }
219
+ }
220
+ } else if (resource === "list") {
221
+ if (operation === "get") {
222
+ } else if (operation === "getAll") {
223
+ }
224
+ }
225
+ if (error.code === "itemNotFound") {
226
+ if (error.message.includes("list item")) {
227
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
228
+ message: "The required item doesn't match any existing one",
229
+ description: "Double-check the value in the parameter 'Item' and try again"
230
+ });
231
+ } else if (error.message.includes("list")) {
232
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
233
+ message: "The required list doesn't match any existing one",
234
+ description: "Double-check the value in the parameter 'List' and try again"
235
+ });
236
+ }
237
+ }
238
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), response);
239
+ }
240
+ return data;
241
+ }
242
+ // Annotate the CommonJS export names for ESM import in node:
243
+ 0 && (module.exports = {
244
+ downloadFilePostReceive,
245
+ handleErrorPostReceive,
246
+ itemColumnsPreSend,
247
+ itemGetAllFieldsPreSend,
248
+ simplifyItemPostReceive,
249
+ simplifyListPostReceive,
250
+ uploadFilePreSend
251
+ });
252
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Microsoft/SharePoint/helpers/utils.ts"],"sourcesContent":["import type {\n\tIDataObject,\n\tIExecuteSingleFunctions,\n\tIHttpRequestOptions,\n\tIN8nHttpFullResponse,\n\tINodeExecutionData,\n\tJsonObject,\n\tResourceMapperValue,\n} from 'n8n-workflow';\nimport { jsonParse, NodeApiError, NodeOperationError } from 'n8n-workflow';\n\nimport type { IErrorResponse } from './interfaces';\nimport { microsoftSharePointApiRequest } from '../transport';\n\nexport async function simplifyItemPostReceive(\n\tthis: IExecuteSingleFunctions,\n\titems: INodeExecutionData[],\n\t_response: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tif (items.length === 0) {\n\t\treturn items;\n\t}\n\n\tconst simplify = this.getNodeParameter('simplify') as boolean;\n\tif (simplify) {\n\t\tfor (const item of items) {\n\t\t\tdelete item.json['@odata.context'];\n\t\t\tdelete item.json['@odata.etag'];\n\t\t\tdelete item.json['fields@odata.navigationLink'];\n\t\t\tdelete (item.json.fields as IDataObject)?.['@odata.etag'];\n\t\t}\n\t}\n\n\treturn items;\n}\n\nexport async function simplifyListPostReceive(\n\tthis: IExecuteSingleFunctions,\n\titems: INodeExecutionData[],\n\t_response: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tif (items.length === 0) {\n\t\treturn items;\n\t}\n\n\tconst simplify = this.getNodeParameter('simplify') as boolean;\n\tif (simplify) {\n\t\tfor (const item of items) {\n\t\t\tdelete item.json['@odata.context'];\n\t\t\tdelete item.json['@odata.etag'];\n\t\t}\n\t}\n\n\treturn items;\n}\n\nexport async function downloadFilePostReceive(\n\tthis: IExecuteSingleFunctions,\n\t_items: INodeExecutionData[],\n\tresponse: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tlet fileName: string | undefined;\n\tif (response.headers['content-disposition']) {\n\t\tlet fileNameMatch = /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(\n\t\t\tresponse.headers['content-disposition'] as string,\n\t\t);\n\t\tfileName =\n\t\t\tfileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\n\t\tif (fileName) {\n\t\t\tfileName = decodeURIComponent(fileName);\n\t\t} else {\n\t\t\tfileNameMatch = /filename=\"?([^\"]*?)\"?(;|$)/g.exec(\n\t\t\t\tresponse.headers['content-disposition'] as string,\n\t\t\t);\n\t\t\tfileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\n\t\t}\n\t}\n\n\tconst newItem: INodeExecutionData = {\n\t\tjson: {},\n\t\tbinary: {\n\t\t\tdata: await this.helpers.prepareBinaryData(\n\t\t\t\tresponse.body as Buffer,\n\t\t\t\tfileName,\n\t\t\t\tresponse.headers['content-type'] as string,\n\t\t\t),\n\t\t},\n\t};\n\n\treturn [newItem];\n}\n\nexport async function uploadFilePreSend(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst binaryProperty = this.getNodeParameter('fileContents') as string;\n\tthis.helpers.assertBinaryData(binaryProperty);\n\tconst binaryDataBuffer = await this.helpers.getBinaryDataBuffer(binaryProperty);\n\trequestOptions.body = binaryDataBuffer;\n\treturn requestOptions;\n}\n\nexport async function itemGetAllFieldsPreSend(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst fields = this.getNodeParameter('options.fields') as string[];\n\trequestOptions.qs ??= {};\n\tif (fields.some((x) => x === 'fields')) {\n\t\trequestOptions.qs.$expand = 'fields';\n\t}\n\trequestOptions.qs.$select = fields.map((x) => x);\n\treturn requestOptions;\n}\n\nexport async function itemColumnsPreSend(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst mapperValue = this.getNodeParameter('columns') as ResourceMapperValue;\n\tconst operation = this.getNodeParameter('operation') as string;\n\n\tif (['upsert', 'update'].includes(operation) && mapperValue.matchingColumns?.length > 0) {\n\t\tif (!mapperValue.matchingColumns.includes('id')) {\n\t\t\tconst site = this.getNodeParameter('site', undefined, { extractValue: true }) as string;\n\t\t\tconst list = this.getNodeParameter('list', undefined, { extractValue: true }) as string;\n\n\t\t\tconst response = await microsoftSharePointApiRequest.call(\n\t\t\t\tthis,\n\t\t\t\t'GET',\n\t\t\t\t`/sites/${site}/lists/${list}/items`,\n\t\t\t\t{},\n\t\t\t\t{\n\t\t\t\t\t$filter: mapperValue.matchingColumns\n\t\t\t\t\t\t.map((x) => `fields/${x} eq '${mapperValue.value![x]}'`)\n\t\t\t\t\t\t.join(' and'),\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tPrefer: 'HonorNonIndexedQueriesWarningMayFailRandomly',\n\t\t\t\t},\n\t\t\t);\n\t\t\tif (response.value?.length === 1) {\n\t\t\t\tmapperValue.matchingColumns.push('id');\n\t\t\t\tmapperValue.value ??= {};\n\t\t\t\tmapperValue.value.id = response.value[0].id;\n\t\t\t}\n\t\t}\n\n\t\tif (operation === 'upsert') {\n\t\t\tif (mapperValue.matchingColumns.includes('id')) {\n\t\t\t\tif (!mapperValue.value?.id) {\n\t\t\t\t\tthrow new NodeOperationError(\n\t\t\t\t\t\tthis.getNode(),\n\t\t\t\t\t\t\"The column(s) don't match any existing item\",\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdescription: 'Double-check the value(s) for the columns to match and try again',\n\t\t\t\t\t\t},\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\trequestOptions.url += '/' + mapperValue.value.id;\n\t\t\t\tdelete mapperValue.value.id;\n\t\t\t\trequestOptions.method = 'PATCH';\n\t\t\t}\n\t\t} else if (operation === 'update') {\n\t\t\tif (mapperValue.matchingColumns.includes('id') && mapperValue.value?.id) {\n\t\t\t\trequestOptions.url += '/' + mapperValue.value.id;\n\t\t\t\tdelete mapperValue.value.id;\n\t\t\t} else {\n\t\t\t\tthrow new NodeOperationError(\n\t\t\t\t\tthis.getNode(),\n\t\t\t\t\t\"The column(s) don't match any existing item\",\n\t\t\t\t\t{\n\t\t\t\t\t\tdescription: 'Double-check the value(s) for the columns to match and try again',\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tconst fields = {} as IDataObject;\n\tfor (const [key, value] of Object.entries(mapperValue.value ?? {})) {\n\t\tif (mapperValue.schema.find((x) => x.id === key)?.type === 'url') {\n\t\t\tfields[key] = {\n\t\t\t\tDescription: value,\n\t\t\t\tUrl: value,\n\t\t\t};\n\t\t} else {\n\t\t\tfields[key] = value;\n\t\t}\n\t}\n\trequestOptions.body ??= {};\n\t(requestOptions.body as IDataObject).fields = fields;\n\n\treturn requestOptions;\n}\n\nexport async function handleErrorPostReceive(\n\tthis: IExecuteSingleFunctions,\n\tdata: INodeExecutionData[],\n\tresponse: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tif (String(response.statusCode).startsWith('4') || String(response.statusCode).startsWith('5')) {\n\t\tconst resource = this.getNodeParameter('resource') as string;\n\t\tconst operation = this.getNodeParameter('operation') as string;\n\n\t\tif (resource === 'file' && operation === 'download' && Buffer.isBuffer(response.body)) {\n\t\t\tresponse.body = jsonParse((response.body as Buffer).toString());\n\t\t}\n\t\tconst error = (response.body as IErrorResponse)?.error ?? {};\n\n\t\tif (resource === 'file') {\n\t\t\tif (operation === 'download') {\n\t\t\t} else if (operation === 'update') {\n\t\t\t} else if (operation === 'upload') {\n\t\t\t}\n\t\t} else if (resource === 'item') {\n\t\t\tif (operation === 'create') {\n\t\t\t\tif (error.code === 'invalidRequest') {\n\t\t\t\t\tif (\n\t\t\t\t\t\terror.message ===\n\t\t\t\t\t\t'One or more fields with unique constraints already has the provided value.'\n\t\t\t\t\t) {\n\t\t\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\t\t\tmessage: 'One or more fields with unique constraints already has the provided value',\n\t\t\t\t\t\t\tdescription: \"Double-check the value(s) in 'Values to Send' and try again\",\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\t\t\tmessage: error.message,\n\t\t\t\t\t\t\tdescription: \"Double-check the value(s) in 'Values to Send' and try again\",\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (operation === 'delete') {\n\t\t\t} else if (operation === 'get') {\n\t\t\t} else if (operation === 'getAll') {\n\t\t\t} else if (operation === 'update') {\n\t\t\t\tif (error.code === 'invalidRequest') {\n\t\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\t\tmessage: error.message,\n\t\t\t\t\t\tdescription: \"Double-check the value(s) in 'Values to Update' and try again\",\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} else if (operation === 'upsert') {\n\t\t\t\tif (error.code === 'invalidRequest') {\n\t\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\t\tmessage: error.message,\n\t\t\t\t\t\tdescription: \"Double-check the value(s) in 'Values to Send' and try again\",\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (resource === 'list') {\n\t\t\tif (operation === 'get') {\n\t\t\t} else if (operation === 'getAll') {\n\t\t\t}\n\t\t}\n\n\t\tif (error.code === 'itemNotFound') {\n\t\t\tif (error.message.includes('list item')) {\n\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\tmessage: \"The required item doesn't match any existing one\",\n\t\t\t\t\tdescription: \"Double-check the value in the parameter 'Item' and try again\",\n\t\t\t\t});\n\t\t\t} else if (error.message.includes('list')) {\n\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\tmessage: \"The required list doesn't match any existing one\",\n\t\t\t\t\tdescription: \"Double-check the value in the parameter 'List' and try again\",\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject);\n\t}\n\n\treturn data;\n}\n"],"mappings":"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","names":[]}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var methods_exports = {};
30
+ __export(methods_exports, {
31
+ listSearch: () => listSearch,
32
+ resourceMapping: () => resourceMapping
33
+ });
34
+ module.exports = __toCommonJS(methods_exports);
35
+ var listSearch = __toESM(require("./listSearch"));
36
+ var resourceMapping = __toESM(require("./resourceMapping"));
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ listSearch,
40
+ resourceMapping
41
+ });
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Microsoft/SharePoint/methods/index.ts"],"sourcesContent":["export * as listSearch from './listSearch';\nexport * as resourceMapping from './resourceMapping';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAA4B;AAC5B,sBAAiC;","names":[]}