n8n-nodes-base 1.91.1 → 1.93.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 (330) hide show
  1. package/dist/credentials/Aws.credentials.js +0 -2
  2. package/dist/credentials/Aws.credentials.js.map +1 -1
  3. package/dist/credentials/JinaAiApi.credentials.js +61 -0
  4. package/dist/credentials/JinaAiApi.credentials.js.map +1 -0
  5. package/dist/credentials/MicrosoftAzureCosmosDbSharedKeyApi.credentials.js +1 -1
  6. package/dist/credentials/MicrosoftAzureCosmosDbSharedKeyApi.credentials.js.map +1 -1
  7. package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js +0 -9
  8. package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js.map +1 -1
  9. package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js +13 -0
  10. package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js.map +1 -1
  11. package/dist/credentials/Snowflake.credentials.js +46 -2
  12. package/dist/credentials/Snowflake.credentials.js.map +1 -1
  13. package/dist/known/credentials.json +18 -1
  14. package/dist/known/nodes.json +28 -0
  15. package/dist/methods/defined.json +6 -0
  16. package/dist/methods/referenced.json +3 -0
  17. package/dist/nodes/Affinity/__schema__/v1.0.0/listEntry/getAll.json +1 -4
  18. package/dist/nodes/Airtop/__schema__/v1.0.0/extraction/query.json +47 -0
  19. package/dist/nodes/Aws/Cognito/AwsCognito.node.js +102 -0
  20. package/dist/nodes/Aws/Cognito/AwsCognito.node.js.map +1 -0
  21. package/dist/nodes/Aws/Cognito/AwsCognito.node.json +18 -0
  22. package/dist/nodes/Aws/Cognito/cognito.svg +1 -0
  23. package/dist/nodes/Aws/Cognito/descriptions/common.description.js +160 -0
  24. package/dist/nodes/Aws/Cognito/descriptions/common.description.js.map +1 -0
  25. package/dist/nodes/Aws/Cognito/descriptions/group/Group.resource.js +189 -0
  26. package/dist/nodes/Aws/Cognito/descriptions/group/Group.resource.js.map +1 -0
  27. package/dist/nodes/Aws/Cognito/descriptions/group/create.operation.js +126 -0
  28. package/dist/nodes/Aws/Cognito/descriptions/group/create.operation.js.map +1 -0
  29. package/dist/nodes/Aws/Cognito/descriptions/group/delete.operation.js +47 -0
  30. package/dist/nodes/Aws/Cognito/descriptions/group/delete.operation.js.map +1 -0
  31. package/dist/nodes/Aws/Cognito/descriptions/group/get.operation.js +54 -0
  32. package/dist/nodes/Aws/Cognito/descriptions/group/get.operation.js.map +1 -0
  33. package/dist/nodes/Aws/Cognito/descriptions/group/getAll.operation.js +95 -0
  34. package/dist/nodes/Aws/Cognito/descriptions/group/getAll.operation.js.map +1 -0
  35. package/dist/nodes/Aws/Cognito/descriptions/group/update.operation.js +120 -0
  36. package/dist/nodes/Aws/Cognito/descriptions/group/update.operation.js.map +1 -0
  37. package/dist/nodes/Aws/Cognito/descriptions/index.js +45 -0
  38. package/dist/nodes/Aws/Cognito/descriptions/index.js.map +1 -0
  39. package/dist/nodes/Aws/Cognito/descriptions/user/User.resource.js +263 -0
  40. package/dist/nodes/Aws/Cognito/descriptions/user/User.resource.js.map +1 -0
  41. package/dist/nodes/Aws/Cognito/descriptions/user/addToGroup.operation.js +51 -0
  42. package/dist/nodes/Aws/Cognito/descriptions/user/addToGroup.operation.js.map +1 -0
  43. package/dist/nodes/Aws/Cognito/descriptions/user/create.operation.js +299 -0
  44. package/dist/nodes/Aws/Cognito/descriptions/user/create.operation.js.map +1 -0
  45. package/dist/nodes/Aws/Cognito/descriptions/user/delete.operation.js +47 -0
  46. package/dist/nodes/Aws/Cognito/descriptions/user/delete.operation.js.map +1 -0
  47. package/dist/nodes/Aws/Cognito/descriptions/user/get.operation.js +54 -0
  48. package/dist/nodes/Aws/Cognito/descriptions/user/get.operation.js.map +1 -0
  49. package/dist/nodes/Aws/Cognito/descriptions/user/getAll.operation.js +187 -0
  50. package/dist/nodes/Aws/Cognito/descriptions/user/getAll.operation.js.map +1 -0
  51. package/dist/nodes/Aws/Cognito/descriptions/user/removeFromGroup.operation.js +60 -0
  52. package/dist/nodes/Aws/Cognito/descriptions/user/removeFromGroup.operation.js.map +1 -0
  53. package/dist/nodes/Aws/Cognito/descriptions/user/update.operation.js +189 -0
  54. package/dist/nodes/Aws/Cognito/descriptions/user/update.operation.js.map +1 -0
  55. package/dist/nodes/Aws/Cognito/descriptions/userPool/UserPool.resource.js +81 -0
  56. package/dist/nodes/Aws/Cognito/descriptions/userPool/UserPool.resource.js.map +1 -0
  57. package/dist/nodes/Aws/Cognito/descriptions/userPool/get.operation.js +50 -0
  58. package/dist/nodes/Aws/Cognito/descriptions/userPool/get.operation.js.map +1 -0
  59. package/dist/nodes/Aws/Cognito/helpers/constants.js +91 -0
  60. package/dist/nodes/Aws/Cognito/helpers/constants.js.map +1 -0
  61. package/dist/nodes/Aws/Cognito/helpers/errorHandler.js +109 -0
  62. package/dist/nodes/Aws/Cognito/helpers/errorHandler.js.map +1 -0
  63. package/dist/nodes/Aws/Cognito/helpers/interfaces.js +17 -0
  64. package/dist/nodes/Aws/Cognito/helpers/interfaces.js.map +1 -0
  65. package/dist/nodes/Aws/Cognito/helpers/utils.js +318 -0
  66. package/dist/nodes/Aws/Cognito/helpers/utils.js.map +1 -0
  67. package/dist/nodes/Aws/Cognito/methods/index.js +39 -0
  68. package/dist/nodes/Aws/Cognito/methods/index.js.map +1 -0
  69. package/dist/nodes/Aws/Cognito/methods/listSearch.js +157 -0
  70. package/dist/nodes/Aws/Cognito/methods/listSearch.js.map +1 -0
  71. package/dist/nodes/Aws/Cognito/transport/index.js +72 -0
  72. package/dist/nodes/Aws/Cognito/transport/index.js.map +1 -0
  73. package/dist/nodes/Aws/IAM/AwsIam.node.js +95 -0
  74. package/dist/nodes/Aws/IAM/AwsIam.node.js.map +1 -0
  75. package/dist/nodes/Aws/IAM/AwsIam.node.json +18 -0
  76. package/dist/nodes/Aws/IAM/AwsIam.svg +18 -0
  77. package/dist/nodes/Aws/IAM/descriptions/common.js +188 -0
  78. package/dist/nodes/Aws/IAM/descriptions/common.js.map +1 -0
  79. package/dist/nodes/Aws/IAM/descriptions/group/Group.resource.js +175 -0
  80. package/dist/nodes/Aws/IAM/descriptions/group/Group.resource.js.map +1 -0
  81. package/dist/nodes/Aws/IAM/descriptions/group/create.operation.js +66 -0
  82. package/dist/nodes/Aws/IAM/descriptions/group/create.operation.js.map +1 -0
  83. package/dist/nodes/Aws/IAM/descriptions/group/delete.operation.js +43 -0
  84. package/dist/nodes/Aws/IAM/descriptions/group/delete.operation.js.map +1 -0
  85. package/dist/nodes/Aws/IAM/descriptions/group/get.operation.js +50 -0
  86. package/dist/nodes/Aws/IAM/descriptions/group/get.operation.js.map +1 -0
  87. package/dist/nodes/Aws/IAM/descriptions/group/getAll.operation.js +47 -0
  88. package/dist/nodes/Aws/IAM/descriptions/group/getAll.operation.js.map +1 -0
  89. package/dist/nodes/Aws/IAM/descriptions/group/update.operation.js +70 -0
  90. package/dist/nodes/Aws/IAM/descriptions/group/update.operation.js.map +1 -0
  91. package/dist/nodes/Aws/IAM/descriptions/index.js +42 -0
  92. package/dist/nodes/Aws/IAM/descriptions/index.js.map +1 -0
  93. package/dist/nodes/Aws/IAM/descriptions/user/User.resource.js +231 -0
  94. package/dist/nodes/Aws/IAM/descriptions/user/User.resource.js.map +1 -0
  95. package/dist/nodes/Aws/IAM/descriptions/user/addToGroup.operation.js +47 -0
  96. package/dist/nodes/Aws/IAM/descriptions/user/addToGroup.operation.js.map +1 -0
  97. package/dist/nodes/Aws/IAM/descriptions/user/create.operation.js +118 -0
  98. package/dist/nodes/Aws/IAM/descriptions/user/create.operation.js.map +1 -0
  99. package/dist/nodes/Aws/IAM/descriptions/user/delete.operation.js +43 -0
  100. package/dist/nodes/Aws/IAM/descriptions/user/delete.operation.js.map +1 -0
  101. package/dist/nodes/Aws/IAM/descriptions/user/get.operation.js +43 -0
  102. package/dist/nodes/Aws/IAM/descriptions/user/get.operation.js.map +1 -0
  103. package/dist/nodes/Aws/IAM/descriptions/user/getAll.operation.js +66 -0
  104. package/dist/nodes/Aws/IAM/descriptions/user/getAll.operation.js.map +1 -0
  105. package/dist/nodes/Aws/IAM/descriptions/user/removeFromGroup.operation.js +74 -0
  106. package/dist/nodes/Aws/IAM/descriptions/user/removeFromGroup.operation.js.map +1 -0
  107. package/dist/nodes/Aws/IAM/descriptions/user/update.operation.js +68 -0
  108. package/dist/nodes/Aws/IAM/descriptions/user/update.operation.js.map +1 -0
  109. package/dist/nodes/Aws/IAM/helpers/constants.js +47 -0
  110. package/dist/nodes/Aws/IAM/helpers/constants.js.map +1 -0
  111. package/dist/nodes/Aws/IAM/helpers/errorHandler.js +90 -0
  112. package/dist/nodes/Aws/IAM/helpers/errorHandler.js.map +1 -0
  113. package/dist/nodes/Aws/IAM/helpers/types.js +17 -0
  114. package/dist/nodes/Aws/IAM/helpers/types.js.map +1 -0
  115. package/dist/nodes/Aws/IAM/helpers/utils.js +279 -0
  116. package/dist/nodes/Aws/IAM/helpers/utils.js.map +1 -0
  117. package/dist/nodes/Aws/IAM/methods/index.js +39 -0
  118. package/dist/nodes/Aws/IAM/methods/index.js.map +1 -0
  119. package/dist/nodes/Aws/IAM/methods/listSearch.js +132 -0
  120. package/dist/nodes/Aws/IAM/methods/listSearch.js.map +1 -0
  121. package/dist/nodes/Aws/IAM/transport/index.js +64 -0
  122. package/dist/nodes/Aws/IAM/transport/index.js.map +1 -0
  123. package/dist/nodes/Aws/S3/__schema__/v2.0.0/file/getAll.json +1 -7
  124. package/dist/nodes/BambooHr/__schema__/v1.0.0/employee/get.json +10 -1
  125. package/dist/nodes/Cron/Cron.node.js +1 -1
  126. package/dist/nodes/Cron/Cron.node.js.map +1 -1
  127. package/dist/nodes/Dropcontact/__schema__/v1.0.0/contact/enrich.json +7 -15
  128. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js +2 -2
  129. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js.map +1 -1
  130. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js +2 -2
  131. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js.map +1 -1
  132. package/dist/nodes/EmailSend/__schema__/v2.1.0/email/send.json +7 -1
  133. package/dist/nodes/Evaluation/Evaluation/Description.node.js +146 -0
  134. package/dist/nodes/Evaluation/Evaluation/Description.node.js.map +1 -0
  135. package/dist/nodes/Evaluation/Evaluation/Evaluation.node.ee.js +117 -0
  136. package/dist/nodes/Evaluation/Evaluation/Evaluation.node.ee.js.map +1 -0
  137. package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js +187 -0
  138. package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js.map +1 -0
  139. package/dist/nodes/Evaluation/methods/index.js +42 -0
  140. package/dist/nodes/Evaluation/methods/index.js.map +1 -0
  141. package/dist/nodes/Evaluation/methods/loadOptions.js +40 -0
  142. package/dist/nodes/Evaluation/methods/loadOptions.js.map +1 -0
  143. package/dist/nodes/Evaluation/utils/evaluationTriggerUtils.js +119 -0
  144. package/dist/nodes/Evaluation/utils/evaluationTriggerUtils.js.map +1 -0
  145. package/dist/nodes/Evaluation/utils/evaluationUtils.js +171 -0
  146. package/dist/nodes/Evaluation/utils/evaluationUtils.js.map +1 -0
  147. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js +4 -3
  148. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js.map +1 -1
  149. package/dist/nodes/Form/common.descriptions.js +2 -2
  150. package/dist/nodes/Form/common.descriptions.js.map +1 -1
  151. package/dist/nodes/Github/__schema__/v1.1.0/file/list.json +44 -0
  152. package/dist/nodes/Gitlab/__schema__/v1.0.0/file/get.json +1 -4
  153. package/dist/nodes/Google/BusinessProfile/__schema__/v1.0.0/review/getAll.json +1 -12
  154. package/dist/nodes/Google/Calendar/__schema__/v1.3.0/event/getAll.json +4 -7
  155. package/dist/nodes/Google/Contacts/__schema__/v1.0.0/contact/getAll.json +1 -12
  156. package/dist/nodes/Google/Drive/__schema__/v3.0.0/file/download.json +9 -0
  157. package/dist/nodes/Google/Firebase/CloudFirestore/__schema__/v1.1.0/document/query.json +7 -1
  158. package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/addLabels.json +1 -13
  159. package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/get.json +7 -1
  160. package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/getAll.json +29 -113
  161. package/dist/nodes/Google/Gmail/__schema__/v2.1.0/thread/get.json +1 -60
  162. package/dist/nodes/Google/Sheet/GoogleSheets.node.js +3 -2
  163. package/dist/nodes/Google/Sheet/GoogleSheets.node.js.map +1 -1
  164. package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js +113 -107
  165. package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js.map +1 -1
  166. package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js +52 -105
  167. package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js.map +1 -1
  168. package/dist/nodes/Google/Sheet/v2/actions/utils/readOperation.js +97 -0
  169. package/dist/nodes/Google/Sheet/v2/actions/utils/readOperation.js.map +1 -0
  170. package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js +21 -18
  171. package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js.map +1 -1
  172. package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js +4 -0
  173. package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js.map +1 -1
  174. package/dist/nodes/Google/Task/__schema__/v1.0.0/task/getAll.json +1 -4
  175. package/dist/nodes/Google/YouTube/YouTube.node.js +4 -2
  176. package/dist/nodes/Google/YouTube/YouTube.node.js.map +1 -1
  177. package/dist/nodes/Google/YouTube/__schema__/v1.0.0/video/get.json +35 -1
  178. package/dist/nodes/Hubspot/__schema__/v2.1.0/company/getAll.json +4 -1
  179. package/dist/nodes/Hubspot/__schema__/v2.1.0/contact/search.json +1 -4
  180. package/dist/nodes/Hubspot/__schema__/v2.1.0/deal/getAll.json +45 -11
  181. package/dist/nodes/Hubspot/__schema__/v2.1.0/deal/search.json +2 -5
  182. package/dist/nodes/Hubspot/__schema__/v2.1.0/ticket/get.json +4 -4
  183. package/dist/nodes/Interval/Interval.node.js +1 -1
  184. package/dist/nodes/Interval/Interval.node.js.map +1 -1
  185. package/dist/nodes/ItemLists/__schema__/v3.0.0/itemList/limit.json +4 -1
  186. package/dist/nodes/JinaAI/JinaAi.node.js +486 -0
  187. package/dist/nodes/JinaAI/JinaAi.node.js.map +1 -0
  188. package/dist/nodes/JinaAI/JinaAi.node.json +18 -0
  189. package/dist/nodes/JinaAI/jinaAi.dark.svg +6 -0
  190. package/dist/nodes/JinaAI/jinaAi.svg +6 -0
  191. package/dist/nodes/Jira/__schema__/v1.0.0/issue/get.json +259 -1
  192. package/dist/nodes/Jira/__schema__/v1.0.0/issue/getAll.json +57 -37
  193. package/dist/nodes/Linear/__schema__/v1.0.0/issue/getAll.json +1 -12
  194. package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js +2 -2
  195. package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js.map +1 -1
  196. package/dist/nodes/MQTT/MqttTrigger.node.js +2 -2
  197. package/dist/nodes/MQTT/MqttTrigger.node.js.map +1 -1
  198. package/dist/nodes/ManualTrigger/ManualTrigger.node.js +1 -1
  199. package/dist/nodes/ManualTrigger/ManualTrigger.node.js.map +1 -1
  200. package/dist/nodes/Microsoft/AzureCosmosDb/AzureCosmosDb.node.json +2 -2
  201. package/dist/nodes/Microsoft/Entra/MicrosoftEntra.node.js +2 -2
  202. package/dist/nodes/Microsoft/Entra/MicrosoftEntra.node.js.map +1 -1
  203. package/dist/nodes/Microsoft/Entra/__schema__/v1.0.0/user/getAll.json +1 -7
  204. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/event/getAll.json +4 -1
  205. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/folderMessage/getAll.json +8 -47
  206. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/get.json +124 -1
  207. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/getAll.json +40 -20
  208. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/sendAndWait.json +12 -11
  209. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/messageAttachment/get.json +13 -1
  210. package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js +93 -0
  211. package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js.map +1 -0
  212. package/dist/nodes/Microsoft/SharePoint/MicrosoftSharepoint.node.json +18 -0
  213. package/dist/nodes/Microsoft/SharePoint/descriptions/common.descriptions.js +190 -0
  214. package/dist/nodes/Microsoft/SharePoint/descriptions/common.descriptions.js.map +1 -0
  215. package/dist/nodes/Microsoft/SharePoint/descriptions/file/File.resource.js +108 -0
  216. package/dist/nodes/Microsoft/SharePoint/descriptions/file/File.resource.js.map +1 -0
  217. package/dist/nodes/Microsoft/SharePoint/descriptions/file/download.operation.js +62 -0
  218. package/dist/nodes/Microsoft/SharePoint/descriptions/file/download.operation.js.map +1 -0
  219. package/dist/nodes/Microsoft/SharePoint/descriptions/file/update.operation.js +129 -0
  220. package/dist/nodes/Microsoft/SharePoint/descriptions/file/update.operation.js.map +1 -0
  221. package/dist/nodes/Microsoft/SharePoint/descriptions/file/upload.operation.js +77 -0
  222. package/dist/nodes/Microsoft/SharePoint/descriptions/file/upload.operation.js.map +1 -0
  223. package/dist/nodes/Microsoft/SharePoint/descriptions/index.js +45 -0
  224. package/dist/nodes/Microsoft/SharePoint/descriptions/index.js.map +1 -0
  225. package/dist/nodes/Microsoft/SharePoint/descriptions/item/Item.resource.js +175 -0
  226. package/dist/nodes/Microsoft/SharePoint/descriptions/item/Item.resource.js.map +1 -0
  227. package/dist/nodes/Microsoft/SharePoint/descriptions/item/create.operation.js +100 -0
  228. package/dist/nodes/Microsoft/SharePoint/descriptions/item/create.operation.js.map +1 -0
  229. package/dist/nodes/Microsoft/SharePoint/descriptions/item/delete.operation.js +62 -0
  230. package/dist/nodes/Microsoft/SharePoint/descriptions/item/delete.operation.js.map +1 -0
  231. package/dist/nodes/Microsoft/SharePoint/descriptions/item/get.operation.js +83 -0
  232. package/dist/nodes/Microsoft/SharePoint/descriptions/item/get.operation.js.map +1 -0
  233. package/dist/nodes/Microsoft/SharePoint/descriptions/item/getAll.operation.js +203 -0
  234. package/dist/nodes/Microsoft/SharePoint/descriptions/item/getAll.operation.js.map +1 -0
  235. package/dist/nodes/Microsoft/SharePoint/descriptions/item/update.operation.js +100 -0
  236. package/dist/nodes/Microsoft/SharePoint/descriptions/item/update.operation.js.map +1 -0
  237. package/dist/nodes/Microsoft/SharePoint/descriptions/item/upsert.operation.js +100 -0
  238. package/dist/nodes/Microsoft/SharePoint/descriptions/item/upsert.operation.js.map +1 -0
  239. package/dist/nodes/Microsoft/SharePoint/descriptions/list/List.resource.js +99 -0
  240. package/dist/nodes/Microsoft/SharePoint/descriptions/list/List.resource.js.map +1 -0
  241. package/dist/nodes/Microsoft/SharePoint/descriptions/list/get.operation.js +65 -0
  242. package/dist/nodes/Microsoft/SharePoint/descriptions/list/get.operation.js.map +1 -0
  243. package/dist/nodes/Microsoft/SharePoint/descriptions/list/getAll.operation.js +105 -0
  244. package/dist/nodes/Microsoft/SharePoint/descriptions/list/getAll.operation.js.map +1 -0
  245. package/dist/nodes/Microsoft/SharePoint/helpers/interfaces.js +17 -0
  246. package/dist/nodes/Microsoft/SharePoint/helpers/interfaces.js.map +1 -0
  247. package/dist/nodes/Microsoft/SharePoint/helpers/utils.js +252 -0
  248. package/dist/nodes/Microsoft/SharePoint/helpers/utils.js.map +1 -0
  249. package/dist/nodes/Microsoft/SharePoint/methods/index.js +42 -0
  250. package/dist/nodes/Microsoft/SharePoint/methods/index.js.map +1 -0
  251. package/dist/nodes/Microsoft/SharePoint/methods/listSearch.js +222 -0
  252. package/dist/nodes/Microsoft/SharePoint/methods/listSearch.js.map +1 -0
  253. package/dist/nodes/Microsoft/SharePoint/methods/resourceMapping.js +104 -0
  254. package/dist/nodes/Microsoft/SharePoint/methods/resourceMapping.js.map +1 -0
  255. package/dist/nodes/Microsoft/SharePoint/test/credentials.js +54 -0
  256. package/dist/nodes/Microsoft/SharePoint/test/credentials.js.map +1 -0
  257. package/dist/nodes/Microsoft/SharePoint/transport/index.js +46 -0
  258. package/dist/nodes/Microsoft/SharePoint/transport/index.js.map +1 -0
  259. package/dist/nodes/Microsoft/Storage/__schema__/v1.0.0/blob/getAll.json +44 -0
  260. package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js +387 -0
  261. package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js.map +1 -0
  262. package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.json +18 -0
  263. package/dist/nodes/Microsoft/Teams/__schema__/v2.0.0/channel/getAll.json +1 -4
  264. package/dist/nodes/Microsoft/Teams/v2/helpers/types.js +17 -0
  265. package/dist/nodes/Microsoft/Teams/v2/helpers/types.js.map +1 -0
  266. package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js +147 -0
  267. package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js.map +1 -0
  268. package/dist/nodes/Microsoft/Teams/v2/transport/index.js.map +1 -1
  269. package/dist/nodes/Microsoft/ToDo/__schema__/v1.0.0/task/getAll.json +21 -5
  270. package/dist/nodes/Notion/__schema__/v2.2.0/database/get.json +149 -2
  271. package/dist/nodes/Odoo/__schema__/v1.0.0/contact/getAll.json +10 -1
  272. package/dist/nodes/Odoo/__schema__/v1.0.0/custom/getAll.json +1 -4
  273. package/dist/nodes/Odoo/__schema__/v1.0.0/opportunity/getAll.json +49 -1
  274. package/dist/nodes/OpenAi/__schema__/v1.1.0/chat/complete.json +1 -29
  275. package/dist/nodes/Pipedrive/__schema__/v1.0.0/organization/search.json +20 -25
  276. package/dist/nodes/Pipedrive/__schema__/v1.0.0/person/search.json +1 -18
  277. package/dist/nodes/Plivo/__schema__/v1.0.0/call/make.json +15 -0
  278. package/dist/nodes/PostBin/BinDescription.js +1 -1
  279. package/dist/nodes/PostBin/BinDescription.js.map +1 -1
  280. package/dist/nodes/PostBin/GenericFunctions.js +5 -5
  281. package/dist/nodes/PostBin/GenericFunctions.js.map +1 -1
  282. package/dist/nodes/PostBin/PostBin.node.js +1 -1
  283. package/dist/nodes/PostBin/PostBin.node.js.map +1 -1
  284. package/dist/nodes/PostBin/RequestDescription.js +2 -2
  285. package/dist/nodes/PostBin/RequestDescription.js.map +1 -1
  286. package/dist/nodes/Postgres/PostgresTrigger.node.js +2 -2
  287. package/dist/nodes/Postgres/PostgresTrigger.node.js.map +1 -1
  288. package/dist/nodes/QuickBooks/__schema__/v1.0.0/transaction/getReport.json +1 -4
  289. package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js +2 -2
  290. package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js.map +1 -1
  291. package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js +8 -3
  292. package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js.map +1 -1
  293. package/dist/nodes/RespondToWebhook/utils.js +43 -0
  294. package/dist/nodes/RespondToWebhook/utils.js.map +1 -0
  295. package/dist/nodes/Salesforce/__schema__/v1.0.0/customObject/getAll.json +2 -2
  296. package/dist/nodes/Salesforce/__schema__/v1.0.0/opportunity/getAll.json +5 -2
  297. package/dist/nodes/Salesforce/__schema__/v1.0.0/task/getAll.json +4 -1
  298. package/dist/nodes/Schedule/ScheduleTrigger.node.js +1 -1
  299. package/dist/nodes/Schedule/ScheduleTrigger.node.js.map +1 -1
  300. package/dist/nodes/SeaTable/__schema__/v2.0.0/row/list.json +30 -0
  301. package/dist/nodes/ServiceNow/__schema__/v1.0.0/tableRecord/getAll.json +1 -4
  302. package/dist/nodes/Slack/__schema__/v2.3.0/channel/history.json +49 -3
  303. package/dist/nodes/Slack/__schema__/v2.3.0/message/post.json +4 -1
  304. package/dist/nodes/Snowflake/GenericFunctions.js +34 -2
  305. package/dist/nodes/Snowflake/GenericFunctions.js.map +1 -1
  306. package/dist/nodes/Snowflake/Snowflake.node.js +5 -7
  307. package/dist/nodes/Snowflake/Snowflake.node.js.map +1 -1
  308. package/dist/nodes/SseTrigger/SseTrigger.node.js +2 -2
  309. package/dist/nodes/SseTrigger/SseTrigger.node.js.map +1 -1
  310. package/dist/nodes/Ssh/__schema__/v1.0.0/command/execute.json +4 -1
  311. package/dist/nodes/Strapi/__schema__/v1.0.0/entry/get.json +32 -0
  312. package/dist/nodes/Strapi/__schema__/v1.0.0/entry/getAll.json +1 -4
  313. package/dist/nodes/Telegram/__schema__/v1.2.0/chat/get.json +27 -1
  314. package/dist/nodes/Telegram/__schema__/v1.2.0/chat/member.json +7 -1
  315. package/dist/nodes/Telegram/__schema__/v1.2.0/message/sendMessage.json +1 -4
  316. package/dist/nodes/Telegram/__schema__/v1.2.0/message/sendPhoto.json +4 -1
  317. package/dist/nodes/Trello/__schema__/v1.0.0/list/getAll.json +7 -1
  318. package/dist/nodes/Trello/__schema__/v1.0.0/list/getCards.json +13 -1
  319. package/dist/nodes/Wordpress/PageDescription.js +0 -17
  320. package/dist/nodes/Wordpress/PageDescription.js.map +1 -1
  321. package/dist/nodes/Wordpress/__schema__/v1.0.0/post/get.json +7 -1
  322. package/dist/nodes/Zoho/__schema__/v1.0.0/contact/getAll.json +15 -16
  323. package/dist/nodes/Zoho/__schema__/v1.0.0/lead/getAll.json +1 -122
  324. package/dist/nodes/Zoom/__schema__/v1.0.0/meeting/getAll.json +1 -4
  325. package/dist/types/credentials.json +8 -7
  326. package/dist/types/nodes.json +29 -22
  327. package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js +12 -2
  328. package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js.map +1 -1
  329. package/package.json +16 -9
  330. /package/dist/{credentials/icons/SharePoint.svg → nodes/Microsoft/SharePoint/microsoftSharePoint.svg} +0 -0
@@ -0,0 +1,91 @@
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 constants_exports = {};
20
+ __export(constants_exports, {
21
+ ERROR_MESSAGES: () => ERROR_MESSAGES,
22
+ HeaderConstants: () => HeaderConstants
23
+ });
24
+ module.exports = __toCommonJS(constants_exports);
25
+ const HeaderConstants = {
26
+ AUTHORIZATION: "authorization",
27
+ X_MS_CONTINUATION: "x-ms-continuation",
28
+ X_MS_COSMOS_OFFER_AUTOPILOT_SETTING: "x-ms-cosmos-offer-autopilot-setting",
29
+ X_MS_DOCUMENTDB_IS_UPSERT: "x-ms-documentdb-is-upsert",
30
+ X_MS_DOCUMENTDB_PARTITIONKEY: "x-ms-documentdb-partitionkey",
31
+ X_MS_MAX_ITEM_COUNT: "x-ms-max-item-count",
32
+ X_MS_OFFER_THROUGHPUT: "x-ms-offer-throughput"
33
+ };
34
+ const ERROR_MESSAGES = {
35
+ ResourceNotFound: {
36
+ Group: {
37
+ delete: {
38
+ message: "The group you are trying to delete could not be found.",
39
+ description: 'Adjust the "Group" parameter setting to delete the group correctly.'
40
+ },
41
+ get: {
42
+ message: "The group you are trying to retrieve could not be found.",
43
+ description: 'Adjust the "Group" parameter setting to retrieve the group correctly.'
44
+ },
45
+ update: {
46
+ message: "The group you are trying to update could not be found.",
47
+ description: 'Adjust the "Group" parameter setting to update the group correctly.'
48
+ }
49
+ },
50
+ User: {
51
+ delete: {
52
+ message: "The user are trying to retrieve could not be found.",
53
+ description: 'Adjust the "User" parameter setting to delete the user correctly.'
54
+ },
55
+ get: {
56
+ message: "The user you are trying to retrieve could not be found.",
57
+ description: 'Adjust the "User" parameter setting to retrieve the user correctly.'
58
+ },
59
+ update: {
60
+ message: "The user you are trying to update could not be found.",
61
+ description: 'Adjust the "User" parameter setting to update the user correctly.'
62
+ }
63
+ }
64
+ },
65
+ EntityAlreadyExists: {
66
+ Group: {
67
+ message: "The group you are trying to create already exists.",
68
+ description: 'Adjust the "Group Name" parameter setting to create the group correctly.'
69
+ },
70
+ User: {
71
+ message: "The user you are trying to create already exists.",
72
+ description: 'Adjust the "User Name" parameter setting to create the user correctly.'
73
+ }
74
+ },
75
+ UserGroup: {
76
+ add: {
77
+ message: "The user/group you are trying to add could not be found.",
78
+ description: 'Adjust the "User" and "Group" parameters to add the user to the group correctly.'
79
+ },
80
+ remove: {
81
+ message: "The user/group you are trying to remove could not be found.",
82
+ description: 'Adjust the "User" and "Group" parameters to remove the user from the group correctly.'
83
+ }
84
+ }
85
+ };
86
+ // Annotate the CommonJS export names for ESM import in node:
87
+ 0 && (module.exports = {
88
+ ERROR_MESSAGES,
89
+ HeaderConstants
90
+ });
91
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Aws/Cognito/helpers/constants.ts"],"sourcesContent":["export const HeaderConstants = {\n\tAUTHORIZATION: 'authorization',\n\tX_MS_CONTINUATION: 'x-ms-continuation',\n\tX_MS_COSMOS_OFFER_AUTOPILOT_SETTING: 'x-ms-cosmos-offer-autopilot-setting',\n\tX_MS_DOCUMENTDB_IS_UPSERT: 'x-ms-documentdb-is-upsert',\n\tX_MS_DOCUMENTDB_PARTITIONKEY: 'x-ms-documentdb-partitionkey',\n\tX_MS_MAX_ITEM_COUNT: 'x-ms-max-item-count',\n\tX_MS_OFFER_THROUGHPUT: 'x-ms-offer-throughput',\n};\n\nexport const ERROR_MESSAGES = {\n\tResourceNotFound: {\n\t\tGroup: {\n\t\t\tdelete: {\n\t\t\t\tmessage: 'The group you are trying to delete could not be found.',\n\t\t\t\tdescription: 'Adjust the \"Group\" parameter setting to delete the group correctly.',\n\t\t\t},\n\t\t\tget: {\n\t\t\t\tmessage: 'The group you are trying to retrieve could not be found.',\n\t\t\t\tdescription: 'Adjust the \"Group\" parameter setting to retrieve the group correctly.',\n\t\t\t},\n\t\t\tupdate: {\n\t\t\t\tmessage: 'The group you are trying to update could not be found.',\n\t\t\t\tdescription: 'Adjust the \"Group\" parameter setting to update the group correctly.',\n\t\t\t},\n\t\t},\n\t\tUser: {\n\t\t\tdelete: {\n\t\t\t\tmessage: 'The user are trying to retrieve could not be found.',\n\t\t\t\tdescription: 'Adjust the \"User\" parameter setting to delete the user correctly.',\n\t\t\t},\n\t\t\tget: {\n\t\t\t\tmessage: 'The user you are trying to retrieve could not be found.',\n\t\t\t\tdescription: 'Adjust the \"User\" parameter setting to retrieve the user correctly.',\n\t\t\t},\n\t\t\tupdate: {\n\t\t\t\tmessage: 'The user you are trying to update could not be found.',\n\t\t\t\tdescription: 'Adjust the \"User\" parameter setting to update the user correctly.',\n\t\t\t},\n\t\t},\n\t},\n\tEntityAlreadyExists: {\n\t\tGroup: {\n\t\t\tmessage: 'The group you are trying to create already exists.',\n\t\t\tdescription: 'Adjust the \"Group Name\" parameter setting to create the group correctly.',\n\t\t},\n\t\tUser: {\n\t\t\tmessage: 'The user you are trying to create already exists.',\n\t\t\tdescription: 'Adjust the \"User Name\" parameter setting to create the user correctly.',\n\t\t},\n\t},\n\tUserGroup: {\n\t\tadd: {\n\t\t\tmessage: 'The user/group you are trying to add could not be found.',\n\t\t\tdescription:\n\t\t\t\t'Adjust the \"User\" and \"Group\" parameters to add the user to the group correctly.',\n\t\t},\n\t\tremove: {\n\t\t\tmessage: 'The user/group you are trying to remove could not be found.',\n\t\t\tdescription:\n\t\t\t\t'Adjust the \"User\" and \"Group\" parameters to remove the user from the group correctly.',\n\t\t},\n\t},\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,kBAAkB;AAAA,EAC9B,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,qCAAqC;AAAA,EACrC,2BAA2B;AAAA,EAC3B,8BAA8B;AAAA,EAC9B,qBAAqB;AAAA,EACrB,uBAAuB;AACxB;AAEO,MAAM,iBAAiB;AAAA,EAC7B,kBAAkB;AAAA,IACjB,OAAO;AAAA,MACN,QAAQ;AAAA,QACP,SAAS;AAAA,QACT,aAAa;AAAA,MACd;AAAA,MACA,KAAK;AAAA,QACJ,SAAS;AAAA,QACT,aAAa;AAAA,MACd;AAAA,MACA,QAAQ;AAAA,QACP,SAAS;AAAA,QACT,aAAa;AAAA,MACd;AAAA,IACD;AAAA,IACA,MAAM;AAAA,MACL,QAAQ;AAAA,QACP,SAAS;AAAA,QACT,aAAa;AAAA,MACd;AAAA,MACA,KAAK;AAAA,QACJ,SAAS;AAAA,QACT,aAAa;AAAA,MACd;AAAA,MACA,QAAQ;AAAA,QACP,SAAS;AAAA,QACT,aAAa;AAAA,MACd;AAAA,IACD;AAAA,EACD;AAAA,EACA,qBAAqB;AAAA,IACpB,OAAO;AAAA,MACN,SAAS;AAAA,MACT,aAAa;AAAA,IACd;AAAA,IACA,MAAM;AAAA,MACL,SAAS;AAAA,MACT,aAAa;AAAA,IACd;AAAA,EACD;AAAA,EACA,WAAW;AAAA,IACV,KAAK;AAAA,MACJ,SAAS;AAAA,MACT,aACC;AAAA,IACF;AAAA,IACA,QAAQ;AAAA,MACP,SAAS;AAAA,MACT,aACC;AAAA,IACF;AAAA,EACD;AACD;","names":[]}
@@ -0,0 +1,109 @@
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 errorHandler_exports = {};
20
+ __export(errorHandler_exports, {
21
+ handleError: () => handleError
22
+ });
23
+ module.exports = __toCommonJS(errorHandler_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_constants = require("./constants");
26
+ function mapErrorToResponse(errorType, resource, operation, inputValue) {
27
+ const op = operation;
28
+ const nameLabel = resource.charAt(0).toUpperCase() + resource.slice(1);
29
+ const valuePart = inputValue ? ` "${inputValue}"` : "";
30
+ const notFoundMessage = (base, suffix) => ({
31
+ ...base,
32
+ message: `${nameLabel}${valuePart} ${suffix}`
33
+ });
34
+ const isNotFound = [
35
+ "UserNotFoundException",
36
+ "ResourceNotFoundException",
37
+ "NoSuchEntity"
38
+ ].includes(errorType);
39
+ const isExists = [
40
+ "UsernameExistsException",
41
+ "EntityAlreadyExists",
42
+ "GroupExistsException"
43
+ ].includes(errorType);
44
+ if (isNotFound) {
45
+ if (resource === "user") {
46
+ if (operation === "addToGroup") {
47
+ return notFoundMessage(import_constants.ERROR_MESSAGES.UserGroup.add, "not found while adding to group.");
48
+ }
49
+ if (operation === "removeFromGroup") {
50
+ return notFoundMessage(
51
+ import_constants.ERROR_MESSAGES.UserGroup.remove,
52
+ "not found while removing from group."
53
+ );
54
+ }
55
+ return notFoundMessage(import_constants.ERROR_MESSAGES.ResourceNotFound.User[op], "not found.");
56
+ }
57
+ if (resource === "group") {
58
+ return notFoundMessage(import_constants.ERROR_MESSAGES.ResourceNotFound.Group[op], "not found.");
59
+ }
60
+ }
61
+ if (isExists) {
62
+ const existsMessage = `${nameLabel}${valuePart} already exists.`;
63
+ if (resource === "user") {
64
+ return { ...import_constants.ERROR_MESSAGES.EntityAlreadyExists.User, message: existsMessage };
65
+ }
66
+ if (resource === "group") {
67
+ return { ...import_constants.ERROR_MESSAGES.EntityAlreadyExists.Group, message: existsMessage };
68
+ }
69
+ }
70
+ return void 0;
71
+ }
72
+ async function handleError(data, response) {
73
+ const statusCode = String(response.statusCode);
74
+ if (!statusCode.startsWith("4") && !statusCode.startsWith("5")) {
75
+ return data;
76
+ }
77
+ const resource = this.getNodeParameter("resource");
78
+ const operation = this.getNodeParameter("operation");
79
+ let inputValue;
80
+ if (operation === "create") {
81
+ if (resource === "user") {
82
+ inputValue = this.getNodeParameter("newUserName", "");
83
+ } else if (resource === "group") {
84
+ inputValue = this.getNodeParameter("newGroupName", "");
85
+ }
86
+ } else {
87
+ inputValue = this.getNodeParameter(resource, "", { extractValue: true });
88
+ }
89
+ const responseBody = response.body;
90
+ const errorType = responseBody.__type ?? response.headers?.["x-amzn-errortype"];
91
+ const errorMessage = responseBody.message ?? response.headers?.["x-amzn-errormessage"];
92
+ if (!errorType) {
93
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), response);
94
+ }
95
+ const specificError = mapErrorToResponse(errorType, resource, operation, inputValue);
96
+ throw new import_n8n_workflow.NodeApiError(
97
+ this.getNode(),
98
+ response,
99
+ specificError ?? {
100
+ message: errorType,
101
+ description: errorMessage
102
+ }
103
+ );
104
+ }
105
+ // Annotate the CommonJS export names for ESM import in node:
106
+ 0 && (module.exports = {
107
+ handleError
108
+ });
109
+ //# sourceMappingURL=errorHandler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Aws/Cognito/helpers/errorHandler.ts"],"sourcesContent":["import type {\n\tJsonObject,\n\tIExecuteSingleFunctions,\n\tIN8nHttpFullResponse,\n\tINodeExecutionData,\n} from 'n8n-workflow';\nimport { NodeApiError } from 'n8n-workflow';\n\nimport { ERROR_MESSAGES } from './constants';\nimport type { AwsError, ErrorMessage } from './interfaces';\n\nfunction mapErrorToResponse(\n\terrorType: string,\n\tresource: string,\n\toperation: string,\n\tinputValue?: string,\n): ErrorMessage | undefined {\n\tconst op = operation as keyof typeof ERROR_MESSAGES.ResourceNotFound.User;\n\tconst nameLabel = resource.charAt(0).toUpperCase() + resource.slice(1);\n\tconst valuePart = inputValue ? ` \"${inputValue}\"` : '';\n\n\tconst notFoundMessage = (base: ErrorMessage, suffix: string): ErrorMessage => ({\n\t\t...base,\n\t\tmessage: `${nameLabel}${valuePart} ${suffix}`,\n\t});\n\n\tconst isNotFound = [\n\t\t'UserNotFoundException',\n\t\t'ResourceNotFoundException',\n\t\t'NoSuchEntity',\n\t].includes(errorType);\n\n\tconst isExists = [\n\t\t'UsernameExistsException',\n\t\t'EntityAlreadyExists',\n\t\t'GroupExistsException',\n\t].includes(errorType);\n\n\tif (isNotFound) {\n\t\tif (resource === 'user') {\n\t\t\tif (operation === 'addToGroup') {\n\t\t\t\treturn notFoundMessage(ERROR_MESSAGES.UserGroup.add, 'not found while adding to group.');\n\t\t\t}\n\t\t\tif (operation === 'removeFromGroup') {\n\t\t\t\treturn notFoundMessage(\n\t\t\t\t\tERROR_MESSAGES.UserGroup.remove,\n\t\t\t\t\t'not found while removing from group.',\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn notFoundMessage(ERROR_MESSAGES.ResourceNotFound.User[op], 'not found.');\n\t\t}\n\n\t\tif (resource === 'group') {\n\t\t\treturn notFoundMessage(ERROR_MESSAGES.ResourceNotFound.Group[op], 'not found.');\n\t\t}\n\t}\n\n\tif (isExists) {\n\t\tconst existsMessage = `${nameLabel}${valuePart} already exists.`;\n\n\t\tif (resource === 'user') {\n\t\t\treturn { ...ERROR_MESSAGES.EntityAlreadyExists.User, message: existsMessage };\n\t\t}\n\t\tif (resource === 'group') {\n\t\t\treturn { ...ERROR_MESSAGES.EntityAlreadyExists.Group, message: existsMessage };\n\t\t}\n\t}\n\n\treturn undefined;\n}\n\nexport async function handleError(\n\tthis: IExecuteSingleFunctions,\n\tdata: INodeExecutionData[],\n\tresponse: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tconst statusCode = String(response.statusCode);\n\n\tif (!statusCode.startsWith('4') && !statusCode.startsWith('5')) {\n\t\treturn data;\n\t}\n\n\tconst resource = this.getNodeParameter('resource') as string;\n\tconst operation = this.getNodeParameter('operation') as string;\n\n\tlet inputValue: string | undefined;\n\n\tif (operation === 'create') {\n\t\tif (resource === 'user') {\n\t\t\tinputValue = this.getNodeParameter('newUserName', '') as string;\n\t\t} else if (resource === 'group') {\n\t\t\tinputValue = this.getNodeParameter('newGroupName', '') as string;\n\t\t}\n\t} else {\n\t\tinputValue = this.getNodeParameter(resource, '', { extractValue: true }) as string;\n\t}\n\n\tconst responseBody = response.body as AwsError;\n\tconst errorType = (responseBody.__type ?? response.headers?.['x-amzn-errortype']) as string;\n\tconst errorMessage = (responseBody.message ??\n\t\tresponse.headers?.['x-amzn-errormessage']) as string;\n\n\tif (!errorType) {\n\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject);\n\t}\n\n\tconst specificError = mapErrorToResponse(errorType, resource, operation, inputValue);\n\n\tthrow new NodeApiError(\n\t\tthis.getNode(),\n\t\tresponse as unknown as JsonObject,\n\t\tspecificError ?? {\n\t\t\tmessage: errorType,\n\t\t\tdescription: errorMessage,\n\t\t},\n\t);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,0BAA6B;AAE7B,uBAA+B;AAG/B,SAAS,mBACR,WACA,UACA,WACA,YAC2B;AAC3B,QAAM,KAAK;AACX,QAAM,YAAY,SAAS,O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,QAAM,WAAW,KAAK,iBAAiB,UAAU;AACjD,QAAM,YAAY,KAAK,iBAAiB,WAAW;AAEnD,MAAI;AAEJ,MAAI,cAAc,UAAU;AAC3B,QAAI,aAAa,QAAQ;AACxB,mBAAa,KAAK,iBAAiB,eAAe,EAAE;AAAA,IACrD,WAAW,aAAa,SAAS;AAChC,mBAAa,KAAK,iBAAiB,gBAAgB,EAAE;AAAA,IACtD;AAAA,EACD,OAAO;AACN,iBAAa,KAAK,iBAAiB,UAAU,IAAI,EAAE,cAAc,KAAK,CAAC;AAAA,EACxE;AAEA,QAAM,eAAe,SAAS;AAC9B,QAAM,YAAa,aAAa,UAAU,SAAS,UAAU,kBAAkB;AAC/E,QAAM,eAAgB,aAAa,WAClC,SAAS,UAAU,qBAAqB;AAEzC,MAAI,CAAC,WAAW;AACf,UAAM,IAAI,iCAAa,KAAK,QAAQ,GAAG,QAAiC;AAAA,EACzE;AAEA,QAAM,gBAAgB,mBAAmB,WAAW,UAAU,WAAW,UAAU;AAEnF,QAAM,IAAI;AAAA,IACT,KAAK,QAAQ;AAAA,IACb;AAAA,IACA,iBAAiB;AAAA,MAChB,SAAS;AAAA,MACT,aAAa;AAAA,IACd;AAAA,EACD;AACD;","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/Aws/Cognito/helpers/interfaces.ts"],"sourcesContent":["import type { IDataObject } from 'n8n-workflow';\n\nexport interface IUserAttribute {\n\tName: string;\n\tValue: string;\n}\n\nexport interface IUser {\n\tUsername: string;\n\tEnabled: boolean;\n\tUserCreateDate: string;\n\tUserLastModifiedDate: string;\n\tUserStatus: string;\n\tAttributes?: IUserAttribute[];\n}\n\nexport interface IGroup {\n\tGroupName: string;\n}\n\nexport interface IListUsersResponse {\n\tUsers: IUser[];\n\tNextToken?: string;\n}\n\nexport interface IListGroupsResponse {\n\tGroups: IGroup[];\n\tNextToken?: string;\n}\n\nexport interface IGroupWithUserResponse extends IGroup {\n\tUsers: IUser[];\n}\n\nexport interface IUserAttributeInput {\n\tattributeType: string;\n\tstandardName: string;\n\tcustomName: string;\n\tvalue: string;\n}\n\nexport interface IUserPool {\n\tId: string;\n\tName: string;\n\tUsernameAttributes?: string[];\n\tAccountRecoverySetting?: IDataObject;\n\tAdminCreateUserConfig?: IDataObject;\n\tEmailConfiguration?: IDataObject;\n\tLambdaConfig?: IDataObject;\n\tPolicies?: IDataObject;\n\tSchemaAttributes?: IDataObject;\n\tUserAttributeUpdateSettings?: IDataObject;\n\tUserPoolTags?: IDataObject;\n\tUserPoolTier?: string;\n\tVerificationMessageTemplate?: IDataObject;\n}\n\nexport interface Filters {\n\tfilter?: {\n\t\tattribute?: string;\n\t\tvalue?: string;\n\t};\n}\n\nexport interface AwsError {\n\t__type?: string;\n\tmessage?: string;\n}\n\nexport interface ErrorMessage {\n\tmessage: string;\n\tdescription: string;\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1,318 @@
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
+ getUserNameFromExistingUsers: () => getUserNameFromExistingUsers,
22
+ getUserPool: () => getUserPool,
23
+ getUsersInGroup: () => getUsersInGroup,
24
+ preSendAttributes: () => preSendAttributes,
25
+ preSendDesiredDeliveryMediums: () => preSendDesiredDeliveryMediums,
26
+ preSendStringifyBody: () => preSendStringifyBody,
27
+ preSendUserFields: () => preSendUserFields,
28
+ processGroup: () => processGroup,
29
+ simplifyUser: () => simplifyUser,
30
+ simplifyUserPool: () => simplifyUserPool,
31
+ validateArn: () => validateArn
32
+ });
33
+ module.exports = __toCommonJS(utils_exports);
34
+ var import_n8n_workflow = require("n8n-workflow");
35
+ var import_transport = require("../transport");
36
+ const validateEmail = (email) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
37
+ const validatePhoneNumber = (phone) => /^\+[0-9]\d{1,14}$/.test(phone);
38
+ async function preSendStringifyBody(requestOptions) {
39
+ if (requestOptions.body) {
40
+ requestOptions.body = JSON.stringify(requestOptions.body);
41
+ }
42
+ return requestOptions;
43
+ }
44
+ async function getUserPool(userPoolId) {
45
+ if (!userPoolId) {
46
+ throw new import_n8n_workflow.NodeOperationError(this.getNode(), "User Pool ID is required");
47
+ }
48
+ const response = await import_transport.awsApiRequest.call(
49
+ this,
50
+ "POST",
51
+ "DescribeUserPool",
52
+ JSON.stringify({ UserPoolId: userPoolId })
53
+ );
54
+ if (!response?.UserPool) {
55
+ throw new import_n8n_workflow.NodeOperationError(this.getNode(), "User Pool not found in response");
56
+ }
57
+ return response.UserPool;
58
+ }
59
+ async function getUsersInGroup(groupName, userPoolId) {
60
+ if (!userPoolId) {
61
+ throw new import_n8n_workflow.NodeOperationError(this.getNode(), "User Pool ID is required");
62
+ }
63
+ const requestBody = {
64
+ UserPoolId: userPoolId,
65
+ GroupName: groupName
66
+ };
67
+ const allUsers = await import_transport.awsApiRequestAllItems.call(
68
+ this,
69
+ "POST",
70
+ "ListUsersInGroup",
71
+ requestBody,
72
+ "Users"
73
+ );
74
+ return allUsers;
75
+ }
76
+ async function getUserNameFromExistingUsers(userName, userPoolId, isEmailOrPhone) {
77
+ if (isEmailOrPhone) {
78
+ return userName;
79
+ }
80
+ const usersResponse = await import_transport.awsApiRequest.call(
81
+ this,
82
+ "POST",
83
+ "ListUsers",
84
+ JSON.stringify({
85
+ UserPoolId: userPoolId,
86
+ Filter: `sub = "${userName}"`
87
+ })
88
+ );
89
+ const username = usersResponse.Users && usersResponse.Users.length > 0 ? usersResponse.Users[0].Username : void 0;
90
+ return username;
91
+ }
92
+ async function preSendUserFields(requestOptions) {
93
+ const operation = this.getNodeParameter("operation");
94
+ const userPoolId = this.getNodeParameter("userPool", void 0, {
95
+ extractValue: true
96
+ });
97
+ const userPool = await getUserPool.call(this, userPoolId);
98
+ const usernameAttributes = userPool.UsernameAttributes ?? [];
99
+ const isEmailAuth = usernameAttributes.includes("email");
100
+ const isPhoneAuth = usernameAttributes.includes("phone_number");
101
+ const isEmailOrPhone = isEmailAuth || isPhoneAuth;
102
+ const getValidatedNewUserName = () => {
103
+ const newUsername = this.getNodeParameter("newUserName");
104
+ if (isEmailAuth && !validateEmail(newUsername)) {
105
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), {
106
+ message: "Invalid email format",
107
+ description: "Please provide a valid email (e.g., name@gmail.com)"
108
+ });
109
+ }
110
+ if (isPhoneAuth && !validatePhoneNumber(newUsername)) {
111
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), {
112
+ message: "Invalid phone number format",
113
+ description: "Please provide a valid phone number (e.g., +14155552671)"
114
+ });
115
+ }
116
+ return newUsername;
117
+ };
118
+ const finalUserName = operation === "create" ? getValidatedNewUserName() : await getUserNameFromExistingUsers.call(
119
+ this,
120
+ this.getNodeParameter("user", void 0, { extractValue: true }),
121
+ userPoolId,
122
+ isEmailOrPhone
123
+ );
124
+ const body = (0, import_n8n_workflow.jsonParse)(String(requestOptions.body), {
125
+ acceptJSObject: true,
126
+ errorMessage: "Invalid request body. Request body must be valid JSON."
127
+ });
128
+ return {
129
+ ...requestOptions,
130
+ body: JSON.stringify({
131
+ ...body,
132
+ ...finalUserName ? { Username: finalUserName } : {}
133
+ })
134
+ };
135
+ }
136
+ async function processGroup(items, response) {
137
+ const userPoolId = this.getNodeParameter("userPool", void 0, {
138
+ extractValue: true
139
+ });
140
+ const includeUsers = this.getNodeParameter("includeUsers");
141
+ const body = response.body;
142
+ if (body.Group) {
143
+ const group = body.Group;
144
+ if (!includeUsers) {
145
+ return this.helpers.returnJsonArray({ ...group });
146
+ }
147
+ const users = await getUsersInGroup.call(this, group.GroupName, userPoolId);
148
+ return this.helpers.returnJsonArray({ ...group, Users: users });
149
+ }
150
+ const groups = response.body.Groups ?? [];
151
+ if (!includeUsers) {
152
+ return items;
153
+ }
154
+ const processedGroups = [];
155
+ for (const group of groups) {
156
+ const users = await getUsersInGroup.call(this, group.GroupName, userPoolId);
157
+ processedGroups.push({
158
+ ...group,
159
+ Users: users
160
+ });
161
+ }
162
+ return items.map((item) => ({ json: { ...item.json, Groups: processedGroups } }));
163
+ }
164
+ async function validateArn(requestOptions) {
165
+ const arn = this.getNodeParameter("additionalFields.arn", "");
166
+ const arnRegex = /^arn:[-.\w+=/,@]+:[-.\w+=/,@]+:([-.\w+=/,@]*)?:[0-9]+:[-.\w+=/,@]+(:[-.\w+=/,@]+)?(:[-.\w+=/,@]+)?$/;
167
+ if (!arnRegex.test(arn)) {
168
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), {
169
+ message: "Invalid ARN format",
170
+ description: "Please provide a valid AWS ARN (e.g., arn:aws:iam::123456789012:role/GroupRole)."
171
+ });
172
+ }
173
+ return requestOptions;
174
+ }
175
+ async function simplifyUserPool(items, _response) {
176
+ const simple = this.getNodeParameter("simple");
177
+ if (!simple) {
178
+ return items;
179
+ }
180
+ return items.map((item) => {
181
+ const data = item.json?.UserPool;
182
+ if (!data) {
183
+ return;
184
+ }
185
+ const {
186
+ AccountRecoverySetting,
187
+ AdminCreateUserConfig,
188
+ EmailConfiguration,
189
+ LambdaConfig,
190
+ Policies,
191
+ SchemaAttributes,
192
+ UserAttributeUpdateSettings,
193
+ UserPoolTags,
194
+ UserPoolTier,
195
+ VerificationMessageTemplate,
196
+ ...selectedData
197
+ } = data;
198
+ return { json: { UserPool: { ...selectedData } } };
199
+ }).filter(Boolean);
200
+ }
201
+ async function simplifyUser(items, _response) {
202
+ const simple = this.getNodeParameter("simple");
203
+ if (!simple) {
204
+ return items;
205
+ }
206
+ return items.map((item) => {
207
+ const data = item.json;
208
+ if (!data) {
209
+ return;
210
+ }
211
+ if (Array.isArray(data.Users)) {
212
+ const users = data.Users;
213
+ const simplifiedUsers = users.map((user) => {
214
+ const attributesArray = user.Attributes ?? [];
215
+ const userAttributes = Object.fromEntries(
216
+ attributesArray.filter(({ Name }) => Name?.trim()).map(({ Name, Value }) => [Name, Value ?? ""])
217
+ );
218
+ const { Attributes, ...rest } = user;
219
+ return { ...rest, ...userAttributes };
220
+ });
221
+ return { json: { ...data, Users: simplifiedUsers } };
222
+ }
223
+ if (Array.isArray(data.UserAttributes)) {
224
+ const attributesArray = data.UserAttributes;
225
+ const userAttributes = Object.fromEntries(
226
+ attributesArray.filter(({ Name }) => Name?.trim()).map(({ Name, Value }) => [Name, Value ?? ""])
227
+ );
228
+ const { UserAttributes, ...rest } = data;
229
+ return { json: { ...rest, ...userAttributes } };
230
+ }
231
+ return item;
232
+ }).filter(Boolean);
233
+ }
234
+ async function preSendAttributes(requestOptions) {
235
+ const operation = this.getNodeParameter("operation", 0);
236
+ const parameterName = operation === "create" ? "additionalFields.userAttributes.attributes" : "userAttributes.attributes";
237
+ const attributes = this.getNodeParameter(parameterName, []);
238
+ if (operation === "update" && (!attributes || attributes.length === 0)) {
239
+ throw new import_n8n_workflow.NodeOperationError(this.getNode(), "No user attributes provided", {
240
+ description: "At least one user attribute must be provided for the update operation."
241
+ });
242
+ }
243
+ if (operation === "create") {
244
+ const hasEmail = attributes.some((a) => a.standardName === "email");
245
+ const hasEmailVerified = attributes.some(
246
+ (a) => a.standardName === "email_verified" && a.value === "true"
247
+ );
248
+ if (hasEmailVerified && !hasEmail) {
249
+ throw new import_n8n_workflow.NodeOperationError(this.getNode(), 'Missing required "email" attribute', {
250
+ description: '"email_verified" is set to true, but the corresponding "email" attribute is not provided.'
251
+ });
252
+ }
253
+ const hasPhone = attributes.some((a) => a.standardName === "phone_number");
254
+ const hasPhoneVerified = attributes.some(
255
+ (a) => a.standardName === "phone_number_verified" && a.value === "true"
256
+ );
257
+ if (hasPhoneVerified && !hasPhone) {
258
+ throw new import_n8n_workflow.NodeOperationError(this.getNode(), 'Missing required "phone_number" attribute', {
259
+ description: '"phone_number_verified" is set to true, but the corresponding "phone_number" attribute is not provided.'
260
+ });
261
+ }
262
+ }
263
+ const body = (0, import_n8n_workflow.jsonParse)(String(requestOptions.body), {
264
+ acceptJSObject: true,
265
+ errorMessage: "Invalid request body. Request body must be valid JSON."
266
+ });
267
+ body.UserAttributes = attributes.map(({ attributeType, standardName, customName, value }) => {
268
+ if (!value || !attributeType || !(standardName ?? customName)) {
269
+ throw new import_n8n_workflow.NodeOperationError(this.getNode(), "Invalid User Attribute", {
270
+ description: "Each attribute must have a valid name and value."
271
+ });
272
+ }
273
+ const attributeName = attributeType === "standard" ? standardName : `custom:${customName?.startsWith("custom:") ? customName : customName}`;
274
+ return { Name: attributeName, Value: value };
275
+ });
276
+ requestOptions.body = JSON.stringify(body);
277
+ return requestOptions;
278
+ }
279
+ async function preSendDesiredDeliveryMediums(requestOptions) {
280
+ const desiredDeliveryMediums = this.getNodeParameter(
281
+ "additionalFields.desiredDeliveryMediums",
282
+ []
283
+ );
284
+ const attributes = this.getNodeParameter(
285
+ "additionalFields.userAttributes.attributes",
286
+ []
287
+ );
288
+ const hasEmail = attributes.some((attr) => attr.standardName === "email" && !!attr.value?.trim());
289
+ const hasPhone = attributes.some(
290
+ (attr) => attr.standardName === "phone_number" && !!attr.value?.trim()
291
+ );
292
+ if (desiredDeliveryMediums.includes("EMAIL") && !hasEmail) {
293
+ throw new import_n8n_workflow.NodeOperationError(this.getNode(), 'Missing required "email" attribute', {
294
+ description: "Email is selected as a delivery medium but no email attribute is provided."
295
+ });
296
+ }
297
+ if (desiredDeliveryMediums.includes("SMS") && !hasPhone) {
298
+ throw new import_n8n_workflow.NodeOperationError(this.getNode(), 'Missing required "phone_number" attribute', {
299
+ description: "SMS is selected as a delivery medium but no phone_number attribute is provided."
300
+ });
301
+ }
302
+ return requestOptions;
303
+ }
304
+ // Annotate the CommonJS export names for ESM import in node:
305
+ 0 && (module.exports = {
306
+ getUserNameFromExistingUsers,
307
+ getUserPool,
308
+ getUsersInGroup,
309
+ preSendAttributes,
310
+ preSendDesiredDeliveryMediums,
311
+ preSendStringifyBody,
312
+ preSendUserFields,
313
+ processGroup,
314
+ simplifyUser,
315
+ simplifyUserPool,
316
+ validateArn
317
+ });
318
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Aws/Cognito/helpers/utils.ts"],"sourcesContent":["import type {\n\tIHttpRequestOptions,\n\tILoadOptionsFunctions,\n\tIDataObject,\n\tIExecuteSingleFunctions,\n\tIN8nHttpFullResponse,\n\tINodeExecutionData,\n} from 'n8n-workflow';\nimport { jsonParse, NodeApiError, NodeOperationError } from 'n8n-workflow';\n\nimport type {\n\tIGroup,\n\tIGroupWithUserResponse,\n\tIListGroupsResponse,\n\tIUser,\n\tIUserAttribute,\n\tIUserAttributeInput,\n\tIUserPool,\n} from './interfaces';\nimport { awsApiRequest, awsApiRequestAllItems } from '../transport';\n\nconst validateEmail = (email: string): boolean => /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email);\nconst validatePhoneNumber = (phone: string): boolean => /^\\+[0-9]\\d{1,14}$/.test(phone);\n\nexport async function preSendStringifyBody(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tif (requestOptions.body) {\n\t\trequestOptions.body = JSON.stringify(requestOptions.body);\n\t}\n\treturn requestOptions;\n}\n\nexport async function getUserPool(\n\tthis: IExecuteSingleFunctions | ILoadOptionsFunctions,\n\tuserPoolId: string,\n): Promise<IUserPool> {\n\tif (!userPoolId) {\n\t\tthrow new NodeOperationError(this.getNode(), 'User Pool ID is required');\n\t}\n\n\tconst response = (await awsApiRequest.call(\n\t\tthis,\n\t\t'POST',\n\t\t'DescribeUserPool',\n\t\tJSON.stringify({ UserPoolId: userPoolId }),\n\t)) as { UserPool: IUserPool };\n\n\tif (!response?.UserPool) {\n\t\tthrow new NodeOperationError(this.getNode(), 'User Pool not found in response');\n\t}\n\n\treturn response.UserPool;\n}\n\nexport async function getUsersInGroup(\n\tthis: IExecuteSingleFunctions | ILoadOptionsFunctions,\n\tgroupName: string,\n\tuserPoolId: string,\n): Promise<IUser[]> {\n\tif (!userPoolId) {\n\t\tthrow new NodeOperationError(this.getNode(), 'User Pool ID is required');\n\t}\n\n\tconst requestBody: IDataObject = {\n\t\tUserPoolId: userPoolId,\n\t\tGroupName: groupName,\n\t};\n\n\tconst allUsers = (await awsApiRequestAllItems.call(\n\t\tthis,\n\t\t'POST',\n\t\t'ListUsersInGroup',\n\t\trequestBody,\n\t\t'Users',\n\t)) as unknown as IUser[];\n\n\treturn allUsers;\n}\n\nexport async function getUserNameFromExistingUsers(\n\tthis: IExecuteSingleFunctions | ILoadOptionsFunctions,\n\tuserName: string,\n\tuserPoolId: string,\n\tisEmailOrPhone: boolean,\n): Promise<string | undefined> {\n\tif (isEmailOrPhone) {\n\t\treturn userName;\n\t}\n\n\tconst usersResponse = (await awsApiRequest.call(\n\t\tthis,\n\t\t'POST',\n\t\t'ListUsers',\n\t\tJSON.stringify({\n\t\t\tUserPoolId: userPoolId,\n\t\t\tFilter: `sub = \"${userName}\"`,\n\t\t}),\n\t)) as { Users: IUser[] };\n\n\tconst username =\n\t\tusersResponse.Users && usersResponse.Users.length > 0\n\t\t\t? usersResponse.Users[0].Username\n\t\t\t: undefined;\n\n\treturn username;\n}\n\nexport async function preSendUserFields(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst operation = this.getNodeParameter('operation') as string;\n\tconst userPoolId = this.getNodeParameter('userPool', undefined, {\n\t\textractValue: true,\n\t}) as string;\n\n\tconst userPool = await getUserPool.call(this, userPoolId);\n\n\tconst usernameAttributes = userPool.UsernameAttributes ?? [];\n\tconst isEmailAuth = usernameAttributes.includes('email');\n\tconst isPhoneAuth = usernameAttributes.includes('phone_number');\n\tconst isEmailOrPhone = isEmailAuth || isPhoneAuth;\n\n\tconst getValidatedNewUserName = (): string => {\n\t\tconst newUsername = this.getNodeParameter('newUserName') as string;\n\n\t\tif (isEmailAuth && !validateEmail(newUsername)) {\n\t\t\tthrow new NodeApiError(this.getNode(), {\n\t\t\t\tmessage: 'Invalid email format',\n\t\t\t\tdescription: 'Please provide a valid email (e.g., name@gmail.com)',\n\t\t\t});\n\t\t}\n\t\tif (isPhoneAuth && !validatePhoneNumber(newUsername)) {\n\t\t\tthrow new NodeApiError(this.getNode(), {\n\t\t\t\tmessage: 'Invalid phone number format',\n\t\t\t\tdescription: 'Please provide a valid phone number (e.g., +14155552671)',\n\t\t\t});\n\t\t}\n\n\t\treturn newUsername;\n\t};\n\n\tconst finalUserName =\n\t\toperation === 'create'\n\t\t\t? getValidatedNewUserName()\n\t\t\t: await getUserNameFromExistingUsers.call(\n\t\t\t\t\tthis,\n\t\t\t\t\tthis.getNodeParameter('user', undefined, { extractValue: true }) as string,\n\t\t\t\t\tuserPoolId,\n\t\t\t\t\tisEmailOrPhone,\n\t\t\t\t);\n\n\tconst body = jsonParse<IDataObject>(String(requestOptions.body), {\n\t\tacceptJSObject: true,\n\t\terrorMessage: 'Invalid request body. Request body must be valid JSON.',\n\t});\n\n\treturn {\n\t\t...requestOptions,\n\t\tbody: JSON.stringify({\n\t\t\t...body,\n\t\t\t...(finalUserName ? { Username: finalUserName } : {}),\n\t\t}),\n\t};\n}\n\nexport async function processGroup(\n\tthis: IExecuteSingleFunctions,\n\titems: INodeExecutionData[],\n\tresponse: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tconst userPoolId = this.getNodeParameter('userPool', undefined, {\n\t\textractValue: true,\n\t}) as string;\n\tconst includeUsers = this.getNodeParameter('includeUsers') as boolean;\n\tconst body = response.body as IDataObject;\n\n\tif (body.Group) {\n\t\tconst group = body.Group as IGroup;\n\n\t\tif (!includeUsers) {\n\t\t\treturn this.helpers.returnJsonArray({ ...group });\n\t\t}\n\n\t\tconst users = await getUsersInGroup.call(this, group.GroupName, userPoolId);\n\t\treturn this.helpers.returnJsonArray({ ...group, Users: users });\n\t}\n\n\tconst groups = (response.body as IListGroupsResponse).Groups ?? [];\n\n\tif (!includeUsers) {\n\t\treturn items;\n\t}\n\n\tconst processedGroups: IGroupWithUserResponse[] = [];\n\tfor (const group of groups) {\n\t\tconst users = await getUsersInGroup.call(this, group.GroupName, userPoolId);\n\t\tprocessedGroups.push({\n\t\t\t...group,\n\t\t\tUsers: users,\n\t\t});\n\t}\n\n\treturn items.map((item) => ({ json: { ...item.json, Groups: processedGroups } }));\n}\n\nexport async function validateArn(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst arn = this.getNodeParameter('additionalFields.arn', '') as string;\n\tconst arnRegex =\n\t\t/^arn:[-.\\w+=/,@]+:[-.\\w+=/,@]+:([-.\\w+=/,@]*)?:[0-9]+:[-.\\w+=/,@]+(:[-.\\w+=/,@]+)?(:[-.\\w+=/,@]+)?$/;\n\n\tif (!arnRegex.test(arn)) {\n\t\tthrow new NodeApiError(this.getNode(), {\n\t\t\tmessage: 'Invalid ARN format',\n\t\t\tdescription:\n\t\t\t\t'Please provide a valid AWS ARN (e.g., arn:aws:iam::123456789012:role/GroupRole).',\n\t\t});\n\t}\n\n\treturn requestOptions;\n}\n\nexport async function simplifyUserPool(\n\tthis: IExecuteSingleFunctions,\n\titems: INodeExecutionData[],\n\t_response: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tconst simple = this.getNodeParameter('simple') as boolean;\n\n\tif (!simple) {\n\t\treturn items;\n\t}\n\n\treturn items\n\t\t.map((item) => {\n\t\t\tconst data = item.json?.UserPool as IUserPool;\n\n\t\t\tif (!data) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst {\n\t\t\t\tAccountRecoverySetting,\n\t\t\t\tAdminCreateUserConfig,\n\t\t\t\tEmailConfiguration,\n\t\t\t\tLambdaConfig,\n\t\t\t\tPolicies,\n\t\t\t\tSchemaAttributes,\n\t\t\t\tUserAttributeUpdateSettings,\n\t\t\t\tUserPoolTags,\n\t\t\t\tUserPoolTier,\n\t\t\t\tVerificationMessageTemplate,\n\t\t\t\t...selectedData\n\t\t\t} = data;\n\n\t\t\treturn { json: { UserPool: { ...selectedData } } };\n\t\t})\n\t\t.filter(Boolean) as INodeExecutionData[];\n}\n\nexport async function simplifyUser(\n\tthis: IExecuteSingleFunctions,\n\titems: INodeExecutionData[],\n\t_response: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tconst simple = this.getNodeParameter('simple') as boolean;\n\n\tif (!simple) {\n\t\treturn items;\n\t}\n\n\treturn items\n\t\t.map((item) => {\n\t\t\tconst data = item.json;\n\n\t\t\tif (!data) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (Array.isArray(data.Users)) {\n\t\t\t\tconst users = data.Users as IUser[];\n\n\t\t\t\tconst simplifiedUsers = users.map((user) => {\n\t\t\t\t\tconst attributesArray = user.Attributes ?? [];\n\n\t\t\t\t\tconst userAttributes = Object.fromEntries(\n\t\t\t\t\t\tattributesArray\n\t\t\t\t\t\t\t.filter(({ Name }) => Name?.trim())\n\t\t\t\t\t\t\t.map(({ Name, Value }) => [Name, Value ?? '']),\n\t\t\t\t\t);\n\n\t\t\t\t\tconst { Attributes, ...rest } = user;\n\t\t\t\t\treturn { ...rest, ...userAttributes };\n\t\t\t\t});\n\n\t\t\t\treturn { json: { ...data, Users: simplifiedUsers } };\n\t\t\t}\n\n\t\t\tif (Array.isArray(data.UserAttributes)) {\n\t\t\t\tconst attributesArray = data.UserAttributes as IUserAttribute[];\n\n\t\t\t\tconst userAttributes = Object.fromEntries(\n\t\t\t\t\tattributesArray\n\t\t\t\t\t\t.filter(({ Name }) => Name?.trim())\n\t\t\t\t\t\t.map(({ Name, Value }) => [Name, Value ?? '']),\n\t\t\t\t);\n\n\t\t\t\tconst { UserAttributes, ...rest } = data;\n\t\t\t\treturn { json: { ...rest, ...userAttributes } };\n\t\t\t}\n\n\t\t\treturn item;\n\t\t})\n\t\t.filter(Boolean) as INodeExecutionData[];\n}\n\nexport async function preSendAttributes(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst operation = this.getNodeParameter('operation', 0) as string;\n\n\tconst parameterName =\n\t\toperation === 'create'\n\t\t\t? 'additionalFields.userAttributes.attributes'\n\t\t\t: 'userAttributes.attributes';\n\tconst attributes = this.getNodeParameter(parameterName, []) as IUserAttributeInput[];\n\n\tif (operation === 'update' && (!attributes || attributes.length === 0)) {\n\t\tthrow new NodeOperationError(this.getNode(), 'No user attributes provided', {\n\t\t\tdescription: 'At least one user attribute must be provided for the update operation.',\n\t\t});\n\t}\n\n\tif (operation === 'create') {\n\t\tconst hasEmail = attributes.some((a) => a.standardName === 'email');\n\t\tconst hasEmailVerified = attributes.some(\n\t\t\t(a) => a.standardName === 'email_verified' && a.value === 'true',\n\t\t);\n\n\t\tif (hasEmailVerified && !hasEmail) {\n\t\t\tthrow new NodeOperationError(this.getNode(), 'Missing required \"email\" attribute', {\n\t\t\t\tdescription:\n\t\t\t\t\t'\"email_verified\" is set to true, but the corresponding \"email\" attribute is not provided.',\n\t\t\t});\n\t\t}\n\n\t\tconst hasPhone = attributes.some((a) => a.standardName === 'phone_number');\n\t\tconst hasPhoneVerified = attributes.some(\n\t\t\t(a) => a.standardName === 'phone_number_verified' && a.value === 'true',\n\t\t);\n\n\t\tif (hasPhoneVerified && !hasPhone) {\n\t\t\tthrow new NodeOperationError(this.getNode(), 'Missing required \"phone_number\" attribute', {\n\t\t\t\tdescription:\n\t\t\t\t\t'\"phone_number_verified\" is set to true, but the corresponding \"phone_number\" attribute is not provided.',\n\t\t\t});\n\t\t}\n\t}\n\n\tconst body = jsonParse<IDataObject>(String(requestOptions.body), {\n\t\tacceptJSObject: true,\n\t\terrorMessage: 'Invalid request body. Request body must be valid JSON.',\n\t});\n\n\tbody.UserAttributes = attributes.map(({ attributeType, standardName, customName, value }) => {\n\t\tif (!value || !attributeType || !(standardName ?? customName)) {\n\t\t\tthrow new NodeOperationError(this.getNode(), 'Invalid User Attribute', {\n\t\t\t\tdescription: 'Each attribute must have a valid name and value.',\n\t\t\t});\n\t\t}\n\n\t\tconst attributeName =\n\t\t\tattributeType === 'standard'\n\t\t\t\t? standardName\n\t\t\t\t: `custom:${customName?.startsWith('custom:') ? customName : customName}`;\n\n\t\treturn { Name: attributeName, Value: value };\n\t});\n\n\trequestOptions.body = JSON.stringify(body);\n\n\treturn requestOptions;\n}\n\nexport async function preSendDesiredDeliveryMediums(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst desiredDeliveryMediums = this.getNodeParameter(\n\t\t'additionalFields.desiredDeliveryMediums',\n\t\t[],\n\t) as string[];\n\n\tconst attributes = this.getNodeParameter(\n\t\t'additionalFields.userAttributes.attributes',\n\t\t[],\n\t) as IUserAttributeInput[];\n\n\tconst hasEmail = attributes.some((attr) => attr.standardName === 'email' && !!attr.value?.trim());\n\tconst hasPhone = attributes.some(\n\t\t(attr) => attr.standardName === 'phone_number' && !!attr.value?.trim(),\n\t);\n\n\tif (desiredDeliveryMediums.includes('EMAIL') && !hasEmail) {\n\t\tthrow new NodeOperationError(this.getNode(), 'Missing required \"email\" attribute', {\n\t\t\tdescription: 'Email is selected as a delivery medium but no email attribute is provided.',\n\t\t});\n\t}\n\n\tif (desiredDeliveryMediums.includes('SMS') && !hasPhone) {\n\t\tthrow new NodeOperationError(this.getNode(), 'Missing required \"phone_number\" attribute', {\n\t\t\tdescription:\n\t\t\t\t'SMS is selected as a delivery medium but no phone_number attribute is provided.',\n\t\t});\n\t}\n\n\treturn requestOptions;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,0BAA4D;AAW5D,uBAAqD;AAErD,MAAM,gBAAgB,CAAC,UAA2B,6BAA6B,KAAK,KAAK;AACzF,MAAM,sBAAsB,CAAC,UAA2B,oBAAoB,KAAK,KAAK;AAEtF,eAAsB,qBAErB,gBAC+B;AAC/B,MAAI,eAAe,MAAM;AACxB,mBAAe,OAAO,KAAK,UAAU,eAAe,IAAI;AAAA,EACzD;AACA,SAAO;AACR;AAEA,eAAsB,YAErB,YACqB;AACrB,MAAI,CAAC,YAAY;AAChB,UAAM,IAAI,uCAAmB,KAAK,QAAQ,GAAG,0BAA0B;AAAA,EACxE;AAEA,QAAM,WAAY,MAAM,+BAAc;AAA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E,WAAO,EAAE,MAAM,eAAe,OAAO,MAAM;AAAA,EAC5C,CAAC;AAED,iBAAe,OAAO,KAAK,UAAU,IAAI;AAEzC,SAAO;AACR;AAEA,eAAsB,8BAErB,gBAC+B;AAC/B,QAAM,yBAAyB,KAAK;AAAA,IACnC;AAAA,IACA,CAAC;AAAA,EACF;AAEA,QAAM,aAAa,KAAK;AAAA,IACvB;AAAA,IACA,CAAC;AAAA,EACF;AAEA,QAAM,WAAW,WAAW,KAAK,CAAC,SAAS,KAAK,iBAAiB,WAAW,CAAC,CAAC,KAAK,OAAO,KAAK,CAAC;AAChG,QAAM,WAAW,WAAW;AAAA,IAC3B,CAAC,SAAS,KAAK,iBAAiB,kBAAkB,CAAC,CAAC,KAAK,OAAO,KAAK;AAAA,EACtE;AAEA,MAAI,uBAAuB,SAAS,OAAO,KAAK,CAAC,UAAU;AAC1D,UAAM,IAAI,uCAAmB,KAAK,QAAQ,GAAG,sCAAsC;AAAA,MAClF,aAAa;AAAA,IACd,CAAC;AAAA,EACF;AAEA,MAAI,uBAAuB,SAAS,KAAK,KAAK,CAAC,UAAU;AACxD,UAAM,IAAI,uCAAmB,KAAK,QAAQ,GAAG,6CAA6C;AAAA,MACzF,aACC;AAAA,IACF,CAAC;AAAA,EACF;AAEA,SAAO;AACR;","names":[]}
@@ -0,0 +1,39 @@
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
+ });
33
+ module.exports = __toCommonJS(methods_exports);
34
+ var listSearch = __toESM(require("./listSearch"));
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ listSearch
38
+ });
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Aws/Cognito/methods/index.ts"],"sourcesContent":["export * as listSearch from './listSearch';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAA4B;","names":[]}