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,157 @@
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 listSearch_exports = {};
20
+ __export(listSearch_exports, {
21
+ searchGroups: () => searchGroups,
22
+ searchGroupsForUser: () => searchGroupsForUser,
23
+ searchUserPools: () => searchUserPools,
24
+ searchUsers: () => searchUsers
25
+ });
26
+ module.exports = __toCommonJS(listSearch_exports);
27
+ var import_n8n_workflow = require("n8n-workflow");
28
+ var import_utils = require("../helpers/utils");
29
+ var import_transport = require("../transport");
30
+ function formatResults(items, filter) {
31
+ return items.map(({ id, name }) => ({
32
+ name: String(name).replace(/ /g, ""),
33
+ value: String(id)
34
+ })).filter(({ name }) => !filter || name.toLowerCase().includes(filter.toLowerCase())).sort((a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase()));
35
+ }
36
+ async function searchGroups(filter, paginationToken) {
37
+ const userPoolId = this.getNodeParameter("userPool", void 0, {
38
+ extractValue: true
39
+ });
40
+ if (!userPoolId) {
41
+ throw new import_n8n_workflow.NodeOperationError(this.getNode(), "User Pool ID is required to search groups");
42
+ }
43
+ const responseData = await import_transport.awsApiRequest.call(
44
+ this,
45
+ "POST",
46
+ "ListGroups",
47
+ JSON.stringify({ UserPoolId: userPoolId, Limit: 50, NextToken: paginationToken })
48
+ );
49
+ const groups = responseData.Groups;
50
+ const groupsMapped = groups.map(({ GroupName }) => ({
51
+ id: GroupName,
52
+ name: GroupName
53
+ }));
54
+ const formattedResults = formatResults(groupsMapped, filter);
55
+ return { results: formattedResults, paginationToken: responseData.NextToken };
56
+ }
57
+ async function searchGroupsForUser(filter) {
58
+ const userPoolId = this.getNodeParameter("userPool", void 0, {
59
+ extractValue: true
60
+ });
61
+ const inputUser = this.getNodeParameter("user", void 0, {
62
+ extractValue: true
63
+ });
64
+ if (!userPoolId || !inputUser) {
65
+ return { results: [] };
66
+ }
67
+ const userPool = await import_utils.getUserPool.call(this, userPoolId);
68
+ const usernameAttributes = userPool.UsernameAttributes ?? [];
69
+ const isEmailAuth = usernameAttributes.includes("email");
70
+ const isPhoneAuth = usernameAttributes.includes("phone_number");
71
+ const isEmailOrPhone = isEmailAuth || isPhoneAuth;
72
+ const userName = await import_utils.getUserNameFromExistingUsers.call(
73
+ this,
74
+ inputUser,
75
+ userPoolId,
76
+ isEmailOrPhone
77
+ );
78
+ if (!userName) {
79
+ return { results: [] };
80
+ }
81
+ const groups = await import_transport.awsApiRequestAllItems.call(
82
+ this,
83
+ "POST",
84
+ "AdminListGroupsForUser",
85
+ {
86
+ Username: userName,
87
+ UserPoolId: userPoolId
88
+ },
89
+ "Groups"
90
+ );
91
+ const resultGroups = groups.filter((group) => !filter || group.GroupName.toLowerCase().includes(filter.toLowerCase())).map((group) => ({
92
+ name: group.GroupName,
93
+ value: group.GroupName
94
+ })).sort((a, b) => a.name.localeCompare(b.name));
95
+ return { results: resultGroups };
96
+ }
97
+ async function searchUsers(filter, paginationToken) {
98
+ const userPoolId = this.getNodeParameter("userPool", void 0, { extractValue: true });
99
+ if (!userPoolId) {
100
+ throw new import_n8n_workflow.NodeOperationError(this.getNode(), "User Pool ID is required to search users");
101
+ }
102
+ const userPoolData = await import_transport.awsApiRequest.call(
103
+ this,
104
+ "POST",
105
+ "DescribeUserPool",
106
+ JSON.stringify({ UserPoolId: userPoolId })
107
+ );
108
+ const userPool = userPoolData.UserPool;
109
+ const usernameAttributes = userPool.UsernameAttributes;
110
+ const responseData = await import_transport.awsApiRequest.call(
111
+ this,
112
+ "POST",
113
+ "ListUsers",
114
+ JSON.stringify({
115
+ UserPoolId: userPoolId,
116
+ Limit: 50,
117
+ NextToken: paginationToken
118
+ })
119
+ );
120
+ const users = responseData.Users;
121
+ if (!users.length) {
122
+ return { results: [] };
123
+ }
124
+ const userResults = users.map((user) => {
125
+ const attributes = user.Attributes ?? [];
126
+ const username = user.Username;
127
+ const email = attributes.find((attr) => attr.Name === "email")?.Value ?? "";
128
+ const phoneNumber = attributes.find((attr) => attr.Name === "phone_number")?.Value ?? "";
129
+ const sub = attributes.find((attr) => attr.Name === "sub")?.Value ?? "";
130
+ const name = usernameAttributes?.includes("email") ? email : usernameAttributes?.includes("phone_number") ? phoneNumber : username;
131
+ return { id: sub, name, value: sub };
132
+ });
133
+ return { results: formatResults(userResults, filter), paginationToken: responseData.NextToken };
134
+ }
135
+ async function searchUserPools(filter, paginationToken) {
136
+ const responseData = await import_transport.awsApiRequest.call(
137
+ this,
138
+ "POST",
139
+ "ListUserPools",
140
+ JSON.stringify({ Limit: 50, NextToken: paginationToken })
141
+ );
142
+ const userPools = responseData.UserPools;
143
+ const userPoolsMapped = userPools.map((userPool) => ({
144
+ id: userPool.Id,
145
+ name: userPool.Name
146
+ }));
147
+ const formattedResults = formatResults(userPoolsMapped, filter);
148
+ return { results: formattedResults, paginationToken: responseData.NextToken };
149
+ }
150
+ // Annotate the CommonJS export names for ESM import in node:
151
+ 0 && (module.exports = {
152
+ searchGroups,
153
+ searchGroupsForUser,
154
+ searchUserPools,
155
+ searchUsers
156
+ });
157
+ //# sourceMappingURL=listSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Aws/Cognito/methods/listSearch.ts"],"sourcesContent":["import type {\n\tIDataObject,\n\tIExecuteSingleFunctions,\n\tILoadOptionsFunctions,\n\tINodeListSearchItems,\n\tINodeListSearchResult,\n} from 'n8n-workflow';\nimport { NodeOperationError } from 'n8n-workflow';\n\nimport type { IGroup, IUser, IUserAttribute, IUserPool } from '../helpers/interfaces';\nimport { getUserNameFromExistingUsers, getUserPool } from '../helpers/utils';\nimport { awsApiRequest, awsApiRequestAllItems } from '../transport';\n\nfunction formatResults(items: IDataObject[], filter?: string): INodeListSearchItems[] {\n\treturn items\n\t\t.map(({ id, name }) => ({\n\t\t\tname: String(name).replace(/ /g, ''),\n\t\t\tvalue: String(id),\n\t\t}))\n\t\t.filter(({ name }) => !filter || name.toLowerCase().includes(filter.toLowerCase()))\n\t\t.sort((a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase()));\n}\n\nexport async function searchGroups(\n\tthis: ILoadOptionsFunctions,\n\tfilter?: string,\n\tpaginationToken?: string,\n): Promise<INodeListSearchResult> {\n\tconst userPoolId = this.getNodeParameter('userPool', undefined, {\n\t\textractValue: true,\n\t}) as string;\n\tif (!userPoolId) {\n\t\tthrow new NodeOperationError(this.getNode(), 'User Pool ID is required to search groups');\n\t}\n\n\tconst responseData = (await awsApiRequest.call(\n\t\tthis,\n\t\t'POST',\n\t\t'ListGroups',\n\t\tJSON.stringify({ UserPoolId: userPoolId, Limit: 50, NextToken: paginationToken }),\n\t)) as IDataObject;\n\n\tconst groups = responseData.Groups as IDataObject[];\n\n\tconst groupsMapped = groups.map(({ GroupName }) => ({\n\t\tid: GroupName,\n\t\tname: GroupName,\n\t}));\n\n\tconst formattedResults = formatResults(groupsMapped, filter);\n\n\treturn { results: formattedResults, paginationToken: responseData.NextToken };\n}\n\nexport async function searchGroupsForUser(\n\tthis: ILoadOptionsFunctions,\n\tfilter?: string,\n): Promise<INodeListSearchResult> {\n\tconst userPoolId = this.getNodeParameter('userPool', undefined, {\n\t\textractValue: true,\n\t}) as string;\n\tconst inputUser = this.getNodeParameter('user', undefined, {\n\t\textractValue: true,\n\t}) as string;\n\n\tif (!userPoolId || !inputUser) {\n\t\treturn { results: [] };\n\t}\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 userName = await getUserNameFromExistingUsers.call(\n\t\tthis,\n\t\tinputUser,\n\t\tuserPoolId,\n\t\tisEmailOrPhone,\n\t);\n\n\tif (!userName) {\n\t\treturn { results: [] };\n\t}\n\n\tconst groups = (await awsApiRequestAllItems.call(\n\t\tthis,\n\t\t'POST',\n\t\t'AdminListGroupsForUser',\n\t\t{\n\t\t\tUsername: userName,\n\t\t\tUserPoolId: userPoolId,\n\t\t},\n\t\t'Groups',\n\t)) as unknown as IGroup[];\n\n\tconst resultGroups = groups\n\t\t.filter((group) => !filter || group.GroupName.toLowerCase().includes(filter.toLowerCase()))\n\t\t.map((group) => ({\n\t\t\tname: group.GroupName,\n\t\t\tvalue: group.GroupName,\n\t\t}))\n\t\t.sort((a, b) => a.name.localeCompare(b.name));\n\n\treturn { results: resultGroups };\n}\n\nexport async function searchUsers(\n\tthis: IExecuteSingleFunctions | ILoadOptionsFunctions,\n\tfilter?: string,\n\tpaginationToken?: string,\n): Promise<INodeListSearchResult> {\n\tconst userPoolId = this.getNodeParameter('userPool', undefined, { extractValue: true }) as string;\n\n\tif (!userPoolId) {\n\t\tthrow new NodeOperationError(this.getNode(), 'User Pool ID is required to search users');\n\t}\n\n\tconst userPoolData = (await awsApiRequest.call(\n\t\tthis,\n\t\t'POST',\n\t\t'DescribeUserPool',\n\t\tJSON.stringify({ UserPoolId: userPoolId }),\n\t)) as IDataObject;\n\n\tconst userPool = userPoolData.UserPool as IUserPool;\n\tconst usernameAttributes = userPool.UsernameAttributes;\n\n\tconst responseData = (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\tLimit: 50,\n\t\t\tNextToken: paginationToken,\n\t\t}),\n\t)) as IDataObject;\n\n\tconst users = responseData.Users as IUser[];\n\n\tif (!users.length) {\n\t\treturn { results: [] };\n\t}\n\n\tconst userResults = users.map((user) => {\n\t\tconst attributes: IUserAttribute[] = user.Attributes ?? [];\n\t\tconst username = user.Username;\n\n\t\tconst email = attributes.find((attr) => attr.Name === 'email')?.Value ?? '';\n\t\tconst phoneNumber = attributes.find((attr) => attr.Name === 'phone_number')?.Value ?? '';\n\t\tconst sub = attributes.find((attr) => attr.Name === 'sub')?.Value ?? '';\n\n\t\tconst name = usernameAttributes?.includes('email')\n\t\t\t? email\n\t\t\t: usernameAttributes?.includes('phone_number')\n\t\t\t\t? phoneNumber\n\t\t\t\t: username;\n\n\t\treturn { id: sub, name, value: sub };\n\t});\n\n\treturn { results: formatResults(userResults, filter), paginationToken: responseData.NextToken };\n}\n\nexport async function searchUserPools(\n\tthis: ILoadOptionsFunctions,\n\tfilter?: string,\n\tpaginationToken?: string,\n): Promise<INodeListSearchResult> {\n\tconst responseData = (await awsApiRequest.call(\n\t\tthis,\n\t\t'POST',\n\t\t'ListUserPools',\n\t\tJSON.stringify({ Limit: 50, NextToken: paginationToken }),\n\t)) as IDataObject;\n\n\tconst userPools = responseData.UserPools as IUserPool[];\n\n\tconst userPoolsMapped = userPools.map((userPool) => ({\n\t\tid: userPool.Id,\n\t\tname: userPool.Name,\n\t}));\n\n\tconst formattedResults = formatResults(userPoolsMapped, filter);\n\n\treturn { results: formattedResults, paginationToken: responseData.NextToken };\n}\n"],"mappings":"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","names":[]}
@@ -0,0 +1,72 @@
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 transport_exports = {};
20
+ __export(transport_exports, {
21
+ awsApiRequest: () => awsApiRequest,
22
+ awsApiRequestAllItems: () => awsApiRequestAllItems
23
+ });
24
+ module.exports = __toCommonJS(transport_exports);
25
+ async function awsApiRequest(method, action, body) {
26
+ const credentialsType = "aws";
27
+ const credentials = await this.getCredentials(credentialsType);
28
+ const requestOptions = {
29
+ url: "",
30
+ method,
31
+ body,
32
+ headers: {
33
+ "Content-Type": "application/x-amz-json-1.1",
34
+ "X-Amz-Target": `AWSCognitoIdentityProviderService.${action}`
35
+ },
36
+ qs: {
37
+ service: "cognito-idp",
38
+ _region: credentials.region
39
+ }
40
+ };
41
+ return await this.helpers.httpRequestWithAuthentication.call(
42
+ this,
43
+ credentialsType,
44
+ requestOptions
45
+ );
46
+ }
47
+ async function awsApiRequestAllItems(method, action, body, propertyName) {
48
+ const returnData = [];
49
+ let nextToken;
50
+ do {
51
+ const requestBody = {
52
+ ...body,
53
+ ...nextToken ? { NextToken: nextToken } : {}
54
+ };
55
+ const response = await awsApiRequest.call(
56
+ this,
57
+ method,
58
+ action,
59
+ JSON.stringify(requestBody)
60
+ );
61
+ const items = response[propertyName] ?? [];
62
+ returnData.push(...items);
63
+ nextToken = response.NextToken;
64
+ } while (nextToken);
65
+ return returnData;
66
+ }
67
+ // Annotate the CommonJS export names for ESM import in node:
68
+ 0 && (module.exports = {
69
+ awsApiRequest,
70
+ awsApiRequestAllItems
71
+ });
72
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Aws/Cognito/transport/index.ts"],"sourcesContent":["import type {\n\tILoadOptionsFunctions,\n\tIPollFunctions,\n\tIHttpRequestOptions,\n\tIExecuteSingleFunctions,\n\tIDataObject,\n\tIHttpRequestMethods,\n} from 'n8n-workflow';\n\nimport type { AwsCredentialsType } from '../../../../credentials/Aws.credentials';\n\nexport async function awsApiRequest(\n\tthis: ILoadOptionsFunctions | IPollFunctions | IExecuteSingleFunctions,\n\tmethod: IHttpRequestMethods,\n\taction: string,\n\tbody: string,\n): Promise<any> {\n\tconst credentialsType = 'aws';\n\tconst credentials = await this.getCredentials<AwsCredentialsType>(credentialsType);\n\n\tconst requestOptions: IHttpRequestOptions = {\n\t\turl: '',\n\t\tmethod,\n\t\tbody,\n\t\theaders: {\n\t\t\t'Content-Type': 'application/x-amz-json-1.1',\n\t\t\t'X-Amz-Target': `AWSCognitoIdentityProviderService.${action}`,\n\t\t},\n\t\tqs: {\n\t\t\tservice: 'cognito-idp',\n\t\t\t_region: credentials.region,\n\t\t},\n\t};\n\n\treturn await this.helpers.httpRequestWithAuthentication.call(\n\t\tthis,\n\t\tcredentialsType,\n\t\trequestOptions,\n\t);\n}\n\nexport async function awsApiRequestAllItems(\n\tthis: ILoadOptionsFunctions | IPollFunctions | IExecuteSingleFunctions,\n\tmethod: IHttpRequestMethods,\n\taction: string,\n\tbody: IDataObject,\n\tpropertyName: string,\n): Promise<IDataObject[]> {\n\tconst returnData: IDataObject[] = [];\n\tlet nextToken: string | undefined;\n\n\tdo {\n\t\tconst requestBody: IDataObject = {\n\t\t\t...body,\n\t\t\t...(nextToken ? { NextToken: nextToken } : {}),\n\t\t};\n\n\t\tconst response = (await awsApiRequest.call(\n\t\t\tthis,\n\t\t\tmethod,\n\t\t\taction,\n\t\t\tJSON.stringify(requestBody),\n\t\t)) as IDataObject;\n\n\t\tconst items = (response[propertyName] ?? []) as IDataObject[];\n\t\treturnData.push(...items);\n\n\t\tnextToken = response.NextToken as string | undefined;\n\t} while (nextToken);\n\n\treturn returnData;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWA,eAAsB,cAErB,QACA,QACA,MACe;AACf,QAAM,kBAAkB;AACxB,QAAM,cAAc,MAAM,KAAK,eAAmC,eAAe;AAEjF,QAAM,iBAAsC;AAAA,IAC3C,KAAK;AAAA,IACL;AAAA,IACA;AAAA,IACA,SAAS;AAAA,MACR,gBAAgB;AAAA,MAChB,gBAAgB,qCAAqC,MAAM;AAAA,IAC5D;AAAA,IACA,IAAI;AAAA,MACH,SAAS;AAAA,MACT,SAAS,YAAY;AAAA,IACtB;AAAA,EACD;AAEA,SAAO,MAAM,KAAK,QAAQ,8BAA8B;AAAA,IACvD;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACD;AAEA,eAAsB,sBAErB,QACA,QACA,MACA,cACyB;AACzB,QAAM,aAA4B,CAAC;AACnC,MAAI;AAEJ,KAAG;AACF,UAAM,cAA2B;AAAA,MAChC,GAAG;AAAA,MACH,GAAI,YAAY,EAAE,WAAW,UAAU,IAAI,CAAC;AAAA,IAC7C;AAEA,UAAM,WAAY,MAAM,cAAc;AAAA,MACrC;AAAA,MACA;AAAA,MACA;AAAA,MACA,KAAK,UAAU,WAAW;AAAA,IAC3B;AAEA,UAAM,QAAS,SAAS,YAAY,KAAK,CAAC;AAC1C,eAAW,KAAK,GAAG,KAAK;AAExB,gBAAY,SAAS;AAAA,EACtB,SAAS;AAET,SAAO;AACR;","names":[]}
@@ -0,0 +1,95 @@
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 AwsIam_node_exports = {};
20
+ __export(AwsIam_node_exports, {
21
+ AwsIam: () => AwsIam
22
+ });
23
+ module.exports = __toCommonJS(AwsIam_node_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_descriptions = require("./descriptions");
26
+ var import_constants = require("./helpers/constants");
27
+ var import_utils = require("./helpers/utils");
28
+ var import_listSearch = require("./methods/listSearch");
29
+ class AwsIam {
30
+ constructor() {
31
+ this.description = {
32
+ displayName: "AWS IAM",
33
+ name: "awsIam",
34
+ icon: "file:AwsIam.svg",
35
+ group: ["output"],
36
+ version: 1,
37
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
38
+ description: "Interacts with Amazon IAM",
39
+ defaults: { name: "AWS IAM" },
40
+ inputs: [import_n8n_workflow.NodeConnectionTypes.Main],
41
+ outputs: [import_n8n_workflow.NodeConnectionTypes.Main],
42
+ credentials: [
43
+ {
44
+ name: "aws",
45
+ required: true
46
+ }
47
+ ],
48
+ requestDefaults: {
49
+ baseURL: import_constants.BASE_URL,
50
+ json: true,
51
+ headers: {
52
+ "Content-Type": "application/x-www-form-urlencoded"
53
+ }
54
+ },
55
+ properties: [
56
+ {
57
+ displayName: "Resource",
58
+ name: "resource",
59
+ type: "options",
60
+ noDataExpression: true,
61
+ default: "user",
62
+ options: [
63
+ {
64
+ name: "User",
65
+ value: "user"
66
+ },
67
+ {
68
+ name: "Group",
69
+ value: "group"
70
+ }
71
+ ],
72
+ routing: {
73
+ send: {
74
+ preSend: [import_utils.encodeBodyAsFormUrlEncoded]
75
+ }
76
+ }
77
+ },
78
+ ...import_descriptions.user.description,
79
+ ...import_descriptions.group.description
80
+ ]
81
+ };
82
+ this.methods = {
83
+ listSearch: {
84
+ searchGroups: import_listSearch.searchGroups,
85
+ searchUsers: import_listSearch.searchUsers,
86
+ searchGroupsForUser: import_listSearch.searchGroupsForUser
87
+ }
88
+ };
89
+ }
90
+ }
91
+ // Annotate the CommonJS export names for ESM import in node:
92
+ 0 && (module.exports = {
93
+ AwsIam
94
+ });
95
+ //# sourceMappingURL=AwsIam.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../nodes/Aws/IAM/AwsIam.node.ts"],"sourcesContent":["import type { INodeType, INodeTypeDescription } from 'n8n-workflow';\nimport { NodeConnectionTypes } from 'n8n-workflow';\n\nimport { user, group } from './descriptions';\nimport { BASE_URL } from './helpers/constants';\nimport { encodeBodyAsFormUrlEncoded } from './helpers/utils';\nimport { searchGroups, searchUsers, searchGroupsForUser } from './methods/listSearch';\n\nexport class AwsIam implements INodeType {\n\tdescription: INodeTypeDescription = {\n\t\tdisplayName: 'AWS IAM',\n\t\tname: 'awsIam',\n\t\ticon: 'file:AwsIam.svg',\n\t\tgroup: ['output'],\n\t\tversion: 1,\n\t\tsubtitle: '={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}',\n\t\tdescription: 'Interacts with Amazon IAM',\n\t\tdefaults: { name: 'AWS IAM' },\n\t\tinputs: [NodeConnectionTypes.Main],\n\t\toutputs: [NodeConnectionTypes.Main],\n\t\tcredentials: [\n\t\t\t{\n\t\t\t\tname: 'aws',\n\t\t\t\trequired: true,\n\t\t\t},\n\t\t],\n\t\trequestDefaults: {\n\t\t\tbaseURL: BASE_URL,\n\t\t\tjson: true,\n\t\t\theaders: {\n\t\t\t\t'Content-Type': 'application/x-www-form-urlencoded',\n\t\t\t},\n\t\t},\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tdisplayName: 'Resource',\n\t\t\t\tname: 'resource',\n\t\t\t\ttype: 'options',\n\t\t\t\tnoDataExpression: true,\n\t\t\t\tdefault: 'user',\n\t\t\t\toptions: [\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'User',\n\t\t\t\t\t\tvalue: 'user',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'Group',\n\t\t\t\t\t\tvalue: 'group',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\trouting: {\n\t\t\t\t\tsend: {\n\t\t\t\t\t\tpreSend: [encodeBodyAsFormUrlEncoded],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t...user.description,\n\t\t\t...group.description,\n\t\t],\n\t};\n\n\tmethods = {\n\t\tlistSearch: {\n\t\t\tsearchGroups,\n\t\t\tsearchUsers,\n\t\t\tsearchGroupsForUser,\n\t\t},\n\t};\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAAoC;AAEpC,0BAA4B;AAC5B,uBAAyB;AACzB,mBAA2C;AAC3C,wBAA+D;AAExD,MAAM,OAA4B;AAAA,EAAlC;AACN,uBAAoC;AAAA,MACnC,aAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,OAAO,CAAC,QAAQ;AAAA,MAChB,SAAS;AAAA,MACT,UAAU;AAAA,MACV,aAAa;AAAA,MACb,UAAU,EAAE,MAAM,UAAU;AAAA,MAC5B,QAAQ,CAAC,wCAAoB,IAAI;AAAA,MACjC,SAAS,CAAC,wCAAoB,IAAI;AAAA,MAClC,aAAa;AAAA,QACZ;AAAA,UACC,MAAM;AAAA,UACN,UAAU;AAAA,QACX;AAAA,MACD;AAAA,MACA,iBAAiB;AAAA,QAChB,SAAS;AAAA,QACT,MAAM;AAAA,QACN,SAAS;AAAA,UACR,gBAAgB;AAAA,QACjB;AAAA,MACD;AAAA,MACA,YAAY;AAAA,QACX;AAAA,UACC,aAAa;AAAA,UACb,MAAM;AAAA,UACN,MAAM;AAAA,UACN,kBAAkB;AAAA,UAClB,SAAS;AAAA,UACT,SAAS;AAAA,YACR;AAAA,cACC,MAAM;AAAA,cACN,OAAO;AAAA,YACR;AAAA,YACA;AAAA,cACC,MAAM;AAAA,cACN,OAAO;AAAA,YACR;AAAA,UACD;AAAA,UACA,SAAS;AAAA,YACR,MAAM;AAAA,cACL,SAAS,CAAC,uCAA0B;AAAA,YACrC;AAAA,UACD;AAAA,QACD;AAAA,QACA,GAAG,yBAAK;AAAA,QACR,GAAG,0BAAM;AAAA,MACV;AAAA,IACD;AAEA,mBAAU;AAAA,MACT,YAAY;AAAA,QACX;AAAA,QACA;AAAA,QACA;AAAA,MACD;AAAA,IACD;AAAA;AACD;","names":[]}
@@ -0,0 +1,18 @@
1
+ {
2
+ "node": "n8n-nodes-base.awsiam",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Development"],
6
+ "resources": {
7
+ "credentialDocumentation": [
8
+ {
9
+ "url": "https://docs.n8n.io/integrations/builtin/credentials/aws/"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.awsiam/"
15
+ }
16
+ ]
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="80px" height="80px" viewBox="0 0 80 80" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 64 (93537) - https://sketch.com -->
4
+ <title>Icon-Architecture/64/Arch_AWS-Identity-and-Access-Management_64</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs>
7
+ <linearGradient x1="0%" y1="100%" x2="100%" y2="0%" id="linearGradient-1">
8
+ <stop stop-color="#BD0816" offset="0%"></stop>
9
+ <stop stop-color="#FF5252" offset="100%"></stop>
10
+ </linearGradient>
11
+ </defs>
12
+ <g id="Icon-Architecture/64/Arch_AWS-Identity-and-Access-Management_64" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
13
+ <g id="Icon-Architecture-BG/64/Security-Identity-Compliance" fill="url(#linearGradient-1)">
14
+ <rect id="Rectangle" x="0" y="0" width="80" height="80"></rect>
15
+ </g>
16
+ <path d="M14,59 L66,59 L66,21 L14,21 L14,59 Z M68,20 L68,60 C68,60.552 67.553,61 67,61 L13,61 C12.447,61 12,60.552 12,60 L12,20 C12,19.448 12.447,19 13,19 L67,19 C67.553,19 68,19.448 68,20 L68,20 Z M44,48 L59,48 L59,46 L44,46 L44,48 Z M57,42 L62,42 L62,40 L57,40 L57,42 Z M44,42 L52,42 L52,40 L44,40 L44,42 Z M29,46 C29,45.449 28.552,45 28,45 C27.448,45 27,45.449 27,46 C27,46.551 27.448,47 28,47 C28.552,47 29,46.551 29,46 L29,46 Z M31,46 C31,47.302 30.161,48.401 29,48.816 L29,51 L27,51 L27,48.815 C25.839,48.401 25,47.302 25,46 C25,44.346 26.346,43 28,43 C29.654,43 31,44.346 31,46 L31,46 Z M19,53.993 L36.994,54 L36.996,50 L33,50 L33,48 L36.996,48 L36.998,45 L33,45 L33,43 L36.999,43 L37,40.007 L19.006,40 L19,53.993 Z M22,38.001 L34,38.006 L34,31 C34.001,28.697 31.197,26.677 28,26.675 L27.996,26.675 C24.804,26.675 22.004,28.696 22.002,31 L22,38.001 Z M17,54.992 L17.006,39 C17.006,38.734 17.111,38.48 17.299,38.292 C17.486,38.105 17.741,38 18.006,38 L20,38.001 L20.002,31 C20.004,27.512 23.59,24.675 27.996,24.675 L28,24.675 C32.412,24.677 36.001,27.515 36,31 L36,38.007 L38,38.008 C38.553,38.008 39,38.456 39,39.008 L38.994,55 C38.994,55.266 38.889,55.52 38.701,55.708 C38.514,55.895 38.259,56 37.994,56 L18,55.992 C17.447,55.992 17,55.544 17,54.992 L17,54.992 Z M60,36 L62,36 L62,34 L60,34 L60,36 Z M44,36 L55,36 L55,34 L44,34 L44,36 Z" id="AWS-Identity-and-Access-Management_Icon_64_Squid" fill="#FFFFFF"></path>
17
+ </g>
18
+ </svg>
@@ -0,0 +1,188 @@
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 common_exports = {};
20
+ __export(common_exports, {
21
+ groupLocator: () => groupLocator,
22
+ groupNameParameter: () => groupNameParameter,
23
+ paginationParameters: () => paginationParameters,
24
+ pathParameter: () => pathParameter,
25
+ userLocator: () => userLocator,
26
+ userNameParameter: () => userNameParameter
27
+ });
28
+ module.exports = __toCommonJS(common_exports);
29
+ var import_utils = require("../helpers/utils");
30
+ const paginationParameters = [
31
+ {
32
+ displayName: "Return All",
33
+ name: "returnAll",
34
+ type: "boolean",
35
+ default: false,
36
+ description: "Whether to return all results or only up to a given limit"
37
+ },
38
+ {
39
+ displayName: "Limit",
40
+ name: "limit",
41
+ default: 100,
42
+ type: "number",
43
+ validateType: "number",
44
+ typeOptions: {
45
+ minValue: 1
46
+ },
47
+ description: "Max number of results to return",
48
+ displayOptions: {
49
+ hide: {
50
+ returnAll: [true]
51
+ }
52
+ },
53
+ routing: {
54
+ send: {
55
+ property: "MaxItems",
56
+ type: "body",
57
+ value: "={{ $value }}"
58
+ }
59
+ }
60
+ }
61
+ ];
62
+ const userLocator = {
63
+ displayName: "User",
64
+ name: "user",
65
+ required: true,
66
+ type: "resourceLocator",
67
+ default: {
68
+ mode: "list",
69
+ value: ""
70
+ },
71
+ modes: [
72
+ {
73
+ displayName: "From list",
74
+ name: "list",
75
+ type: "list",
76
+ typeOptions: {
77
+ searchListMethod: "searchUsers",
78
+ searchable: true
79
+ }
80
+ },
81
+ {
82
+ displayName: "By Name",
83
+ name: "userName",
84
+ type: "string",
85
+ placeholder: "e.g. Admins",
86
+ hint: "Enter the user name",
87
+ validation: [
88
+ {
89
+ type: "regex",
90
+ properties: {
91
+ regex: "^[\\w+=,.@-]+$",
92
+ errorMessage: "The user name must follow the allowed pattern"
93
+ }
94
+ }
95
+ ]
96
+ }
97
+ ]
98
+ };
99
+ const groupLocator = {
100
+ displayName: "Group",
101
+ name: "group",
102
+ required: true,
103
+ type: "resourceLocator",
104
+ default: {
105
+ mode: "list",
106
+ value: ""
107
+ },
108
+ modes: [
109
+ {
110
+ displayName: "From list",
111
+ name: "list",
112
+ type: "list",
113
+ typeOptions: {
114
+ searchListMethod: "searchGroups",
115
+ searchable: true
116
+ }
117
+ },
118
+ {
119
+ displayName: "By Name",
120
+ name: "groupName",
121
+ type: "string",
122
+ placeholder: "e.g. Admins",
123
+ hint: "Enter the group name",
124
+ validation: [
125
+ {
126
+ type: "regex",
127
+ properties: {
128
+ regex: "^[\\w+=,.@-]+$",
129
+ errorMessage: "The group name must follow the allowed pattern."
130
+ }
131
+ }
132
+ ]
133
+ }
134
+ ]
135
+ };
136
+ const pathParameter = {
137
+ displayName: "Path",
138
+ name: "path",
139
+ type: "string",
140
+ validateType: "string",
141
+ default: "/"
142
+ };
143
+ const groupNameParameter = {
144
+ displayName: "Group Name",
145
+ name: "groupName",
146
+ required: true,
147
+ type: "string",
148
+ validateType: "string",
149
+ typeOptions: {
150
+ maxLength: 128,
151
+ regex: "^[+=,.@\\-_A-Za-z0-9]+$"
152
+ },
153
+ default: "",
154
+ placeholder: "e.g. GroupName",
155
+ routing: {
156
+ send: {
157
+ preSend: [import_utils.validateName]
158
+ }
159
+ }
160
+ };
161
+ const userNameParameter = {
162
+ displayName: "User Name",
163
+ name: "userName",
164
+ required: true,
165
+ type: "string",
166
+ validateType: "string",
167
+ default: "",
168
+ placeholder: "e.g. JohnSmith",
169
+ typeOptions: {
170
+ maxLength: 64,
171
+ regex: "^[A-Za-z0-9+=,\\.@_-]+$"
172
+ },
173
+ routing: {
174
+ send: {
175
+ preSend: [import_utils.validateName]
176
+ }
177
+ }
178
+ };
179
+ // Annotate the CommonJS export names for ESM import in node:
180
+ 0 && (module.exports = {
181
+ groupLocator,
182
+ groupNameParameter,
183
+ paginationParameters,
184
+ pathParameter,
185
+ userLocator,
186
+ userNameParameter
187
+ });
188
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Aws/IAM/descriptions/common.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\n\nimport { validateName } from '../helpers/utils';\n\nexport const paginationParameters: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'Return All',\n\t\tname: 'returnAll',\n\t\ttype: 'boolean',\n\t\tdefault: false,\n\t\tdescription: 'Whether to return all results or only up to a given limit',\n\t},\n\t{\n\t\tdisplayName: 'Limit',\n\t\tname: 'limit',\n\t\tdefault: 100,\n\t\ttype: 'number',\n\t\tvalidateType: 'number',\n\t\ttypeOptions: {\n\t\t\tminValue: 1,\n\t\t},\n\t\tdescription: 'Max number of results to return',\n\t\tdisplayOptions: {\n\t\t\thide: {\n\t\t\t\treturnAll: [true],\n\t\t\t},\n\t\t},\n\t\trouting: {\n\t\t\tsend: {\n\t\t\t\tproperty: 'MaxItems',\n\t\t\t\ttype: 'body',\n\t\t\t\tvalue: '={{ $value }}',\n\t\t\t},\n\t\t},\n\t},\n];\n\nexport const userLocator: INodeProperties = {\n\tdisplayName: 'User',\n\tname: 'user',\n\trequired: true,\n\ttype: 'resourceLocator',\n\tdefault: {\n\t\tmode: 'list',\n\t\tvalue: '',\n\t},\n\tmodes: [\n\t\t{\n\t\t\tdisplayName: 'From list',\n\t\t\tname: 'list',\n\t\t\ttype: 'list',\n\t\t\ttypeOptions: {\n\t\t\t\tsearchListMethod: 'searchUsers',\n\t\t\t\tsearchable: true,\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tdisplayName: 'By Name',\n\t\t\tname: 'userName',\n\t\t\ttype: 'string',\n\t\t\tplaceholder: 'e.g. Admins',\n\t\t\thint: 'Enter the user name',\n\t\t\tvalidation: [\n\t\t\t\t{\n\t\t\t\t\ttype: 'regex',\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tregex: '^[\\\\w+=,.@-]+$',\n\t\t\t\t\t\terrorMessage: 'The user name must follow the allowed pattern',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t],\n};\n\nexport const groupLocator: INodeProperties = {\n\tdisplayName: 'Group',\n\tname: 'group',\n\trequired: true,\n\ttype: 'resourceLocator',\n\tdefault: {\n\t\tmode: 'list',\n\t\tvalue: '',\n\t},\n\tmodes: [\n\t\t{\n\t\t\tdisplayName: 'From list',\n\t\t\tname: 'list',\n\t\t\ttype: 'list',\n\t\t\ttypeOptions: {\n\t\t\t\tsearchListMethod: 'searchGroups',\n\t\t\t\tsearchable: true,\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tdisplayName: 'By Name',\n\t\t\tname: 'groupName',\n\t\t\ttype: 'string',\n\t\t\tplaceholder: 'e.g. Admins',\n\t\t\thint: 'Enter the group name',\n\t\t\tvalidation: [\n\t\t\t\t{\n\t\t\t\t\ttype: 'regex',\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tregex: '^[\\\\w+=,.@-]+$',\n\t\t\t\t\t\terrorMessage: 'The group name must follow the allowed pattern.',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t],\n};\n\nexport const pathParameter: INodeProperties = {\n\tdisplayName: 'Path',\n\tname: 'path',\n\ttype: 'string',\n\tvalidateType: 'string',\n\tdefault: '/',\n};\n\nexport const groupNameParameter: INodeProperties = {\n\tdisplayName: 'Group Name',\n\tname: 'groupName',\n\trequired: true,\n\ttype: 'string',\n\tvalidateType: 'string',\n\ttypeOptions: {\n\t\tmaxLength: 128,\n\t\tregex: '^[+=,.@\\\\-_A-Za-z0-9]+$',\n\t},\n\tdefault: '',\n\tplaceholder: 'e.g. GroupName',\n\trouting: {\n\t\tsend: {\n\t\t\tpreSend: [validateName],\n\t\t},\n\t},\n};\n\nexport const userNameParameter: INodeProperties = {\n\tdisplayName: 'User Name',\n\tname: 'userName',\n\trequired: true,\n\ttype: 'string',\n\tvalidateType: 'string',\n\tdefault: '',\n\tplaceholder: 'e.g. JohnSmith',\n\ttypeOptions: {\n\t\tmaxLength: 64,\n\t\tregex: '^[A-Za-z0-9+=,\\\\.@_-]+$',\n\t},\n\trouting: {\n\t\tsend: {\n\t\t\tpreSend: [validateName],\n\t\t},\n\t},\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,mBAA6B;AAEtB,MAAM,uBAA0C;AAAA,EACtD;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,EACd;AAAA,EACA;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,cAAc;AAAA,IACd,aAAa;AAAA,MACZ,UAAU;AAAA,IACX;AAAA,IACA,aAAa;AAAA,IACb,gBAAgB;AAAA,MACf,MAAM;AAAA,QACL,WAAW,CAAC,IAAI;AAAA,MACjB;AAAA,IACD;AAAA,IACA,SAAS;AAAA,MACR,MAAM;AAAA,QACL,UAAU;AAAA,QACV,MAAM;AAAA,QACN,OAAO;AAAA,MACR;AAAA,IACD;AAAA,EACD;AACD;AAEO,MAAM,cAA+B;AAAA,EAC3C,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,SAAS;AAAA,IACR,MAAM;AAAA,IACN,OAAO;AAAA,EACR;AAAA,EACA,OAAO;AAAA,IACN;AAAA,MACC,aAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,QACZ,kBAAkB;AAAA,QAClB,YAAY;AAAA,MACb;AAAA,IACD;AAAA,IACA;AAAA,MACC,aAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,MACb,MAAM;AAAA,MACN,YAAY;AAAA,QACX;AAAA,UACC,MAAM;AAAA,UACN,YAAY;AAAA,YACX,OAAO;AAAA,YACP,cAAc;AAAA,UACf;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD;AAEO,MAAM,eAAgC;AAAA,EAC5C,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,SAAS;AAAA,IACR,MAAM;AAAA,IACN,OAAO;AAAA,EACR;AAAA,EACA,OAAO;AAAA,IACN;AAAA,MACC,aAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,QACZ,kBAAkB;AAAA,QAClB,YAAY;AAAA,MACb;AAAA,IACD;AAAA,IACA;AAAA,MACC,aAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,MACb,MAAM;AAAA,MACN,YAAY;AAAA,QACX;AAAA,UACC,MAAM;AAAA,UACN,YAAY;AAAA,YACX,OAAO;AAAA,YACP,cAAc;AAAA,UACf;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD;AAEO,MAAM,gBAAiC;AAAA,EAC7C,aAAa;AAAA,EACb,MAAM;AAAA,EACN,MAAM;AAAA,EACN,cAAc;AAAA,EACd,SAAS;AACV;AAEO,MAAM,qBAAsC;AAAA,EAClD,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,cAAc;AAAA,EACd,aAAa;AAAA,IACZ,WAAW;AAAA,IACX,OAAO;AAAA,EACR;AAAA,EACA,SAAS;AAAA,EACT,aAAa;AAAA,EACb,SAAS;AAAA,IACR,MAAM;AAAA,MACL,SAAS,CAAC,yBAAY;AAAA,IACvB;AAAA,EACD;AACD;AAEO,MAAM,oBAAqC;AAAA,EACjD,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,cAAc;AAAA,EACd,SAAS;AAAA,EACT,aAAa;AAAA,EACb,aAAa;AAAA,IACZ,WAAW;AAAA,IACX,OAAO;AAAA,EACR;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,MACL,SAAS,CAAC,yBAAY;AAAA,IACvB;AAAA,EACD;AACD;","names":[]}