n8n-nodes-base 1.92.0 → 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 (189) hide show
  1. package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js +0 -9
  2. package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js.map +1 -1
  3. package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js +13 -0
  4. package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js.map +1 -1
  5. package/dist/credentials/Snowflake.credentials.js +46 -2
  6. package/dist/credentials/Snowflake.credentials.js.map +1 -1
  7. package/dist/known/credentials.json +10 -1
  8. package/dist/known/nodes.json +20 -0
  9. package/dist/methods/defined.json +6 -0
  10. package/dist/methods/referenced.json +3 -0
  11. package/dist/nodes/Aws/IAM/AwsIam.node.js +95 -0
  12. package/dist/nodes/Aws/IAM/AwsIam.node.js.map +1 -0
  13. package/dist/nodes/Aws/IAM/AwsIam.node.json +18 -0
  14. package/dist/nodes/Aws/IAM/AwsIam.svg +18 -0
  15. package/dist/nodes/Aws/IAM/descriptions/common.js +188 -0
  16. package/dist/nodes/Aws/IAM/descriptions/common.js.map +1 -0
  17. package/dist/nodes/Aws/IAM/descriptions/group/Group.resource.js +175 -0
  18. package/dist/nodes/Aws/IAM/descriptions/group/Group.resource.js.map +1 -0
  19. package/dist/nodes/Aws/IAM/descriptions/group/create.operation.js +66 -0
  20. package/dist/nodes/Aws/IAM/descriptions/group/create.operation.js.map +1 -0
  21. package/dist/nodes/Aws/IAM/descriptions/group/delete.operation.js +43 -0
  22. package/dist/nodes/Aws/IAM/descriptions/group/delete.operation.js.map +1 -0
  23. package/dist/nodes/Aws/IAM/descriptions/group/get.operation.js +50 -0
  24. package/dist/nodes/Aws/IAM/descriptions/group/get.operation.js.map +1 -0
  25. package/dist/nodes/Aws/IAM/descriptions/group/getAll.operation.js +47 -0
  26. package/dist/nodes/Aws/IAM/descriptions/group/getAll.operation.js.map +1 -0
  27. package/dist/nodes/Aws/IAM/descriptions/group/update.operation.js +70 -0
  28. package/dist/nodes/Aws/IAM/descriptions/group/update.operation.js.map +1 -0
  29. package/dist/nodes/Aws/IAM/descriptions/index.js +42 -0
  30. package/dist/nodes/Aws/IAM/descriptions/index.js.map +1 -0
  31. package/dist/nodes/Aws/IAM/descriptions/user/User.resource.js +231 -0
  32. package/dist/nodes/Aws/IAM/descriptions/user/User.resource.js.map +1 -0
  33. package/dist/nodes/Aws/IAM/descriptions/user/addToGroup.operation.js +47 -0
  34. package/dist/nodes/Aws/IAM/descriptions/user/addToGroup.operation.js.map +1 -0
  35. package/dist/nodes/Aws/IAM/descriptions/user/create.operation.js +118 -0
  36. package/dist/nodes/Aws/IAM/descriptions/user/create.operation.js.map +1 -0
  37. package/dist/nodes/Aws/IAM/descriptions/user/delete.operation.js +43 -0
  38. package/dist/nodes/Aws/IAM/descriptions/user/delete.operation.js.map +1 -0
  39. package/dist/nodes/Aws/IAM/descriptions/user/get.operation.js +43 -0
  40. package/dist/nodes/Aws/IAM/descriptions/user/get.operation.js.map +1 -0
  41. package/dist/nodes/Aws/IAM/descriptions/user/getAll.operation.js +66 -0
  42. package/dist/nodes/Aws/IAM/descriptions/user/getAll.operation.js.map +1 -0
  43. package/dist/nodes/Aws/IAM/descriptions/user/removeFromGroup.operation.js +74 -0
  44. package/dist/nodes/Aws/IAM/descriptions/user/removeFromGroup.operation.js.map +1 -0
  45. package/dist/nodes/Aws/IAM/descriptions/user/update.operation.js +68 -0
  46. package/dist/nodes/Aws/IAM/descriptions/user/update.operation.js.map +1 -0
  47. package/dist/nodes/Aws/IAM/helpers/constants.js +47 -0
  48. package/dist/nodes/Aws/IAM/helpers/constants.js.map +1 -0
  49. package/dist/nodes/Aws/IAM/helpers/errorHandler.js +90 -0
  50. package/dist/nodes/Aws/IAM/helpers/errorHandler.js.map +1 -0
  51. package/dist/nodes/Aws/IAM/helpers/types.js +17 -0
  52. package/dist/nodes/Aws/IAM/helpers/types.js.map +1 -0
  53. package/dist/nodes/Aws/IAM/helpers/utils.js +279 -0
  54. package/dist/nodes/Aws/IAM/helpers/utils.js.map +1 -0
  55. package/dist/nodes/Aws/IAM/methods/index.js +39 -0
  56. package/dist/nodes/Aws/IAM/methods/index.js.map +1 -0
  57. package/dist/nodes/Aws/IAM/methods/listSearch.js +132 -0
  58. package/dist/nodes/Aws/IAM/methods/listSearch.js.map +1 -0
  59. package/dist/nodes/Aws/IAM/transport/index.js +64 -0
  60. package/dist/nodes/Aws/IAM/transport/index.js.map +1 -0
  61. package/dist/nodes/Cron/Cron.node.js +1 -1
  62. package/dist/nodes/Cron/Cron.node.js.map +1 -1
  63. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js +2 -2
  64. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js.map +1 -1
  65. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js +2 -2
  66. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js.map +1 -1
  67. package/dist/nodes/Evaluation/Evaluation/Description.node.js +146 -0
  68. package/dist/nodes/Evaluation/Evaluation/Description.node.js.map +1 -0
  69. package/dist/nodes/Evaluation/Evaluation/Evaluation.node.ee.js +117 -0
  70. package/dist/nodes/Evaluation/Evaluation/Evaluation.node.ee.js.map +1 -0
  71. package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js +187 -0
  72. package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js.map +1 -0
  73. package/dist/nodes/Evaluation/methods/index.js +42 -0
  74. package/dist/nodes/Evaluation/methods/index.js.map +1 -0
  75. package/dist/nodes/Evaluation/methods/loadOptions.js +40 -0
  76. package/dist/nodes/Evaluation/methods/loadOptions.js.map +1 -0
  77. package/dist/nodes/Evaluation/utils/evaluationTriggerUtils.js +119 -0
  78. package/dist/nodes/Evaluation/utils/evaluationTriggerUtils.js.map +1 -0
  79. package/dist/nodes/Evaluation/utils/evaluationUtils.js +171 -0
  80. package/dist/nodes/Evaluation/utils/evaluationUtils.js.map +1 -0
  81. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js +4 -3
  82. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js.map +1 -1
  83. package/dist/nodes/Form/common.descriptions.js +2 -2
  84. package/dist/nodes/Form/common.descriptions.js.map +1 -1
  85. package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js +113 -107
  86. package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js.map +1 -1
  87. package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js +52 -106
  88. package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js.map +1 -1
  89. package/dist/nodes/Google/Sheet/v2/actions/utils/readOperation.js +97 -0
  90. package/dist/nodes/Google/Sheet/v2/actions/utils/readOperation.js.map +1 -0
  91. package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js +20 -17
  92. package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js.map +1 -1
  93. package/dist/nodes/Google/YouTube/YouTube.node.js +4 -2
  94. package/dist/nodes/Google/YouTube/YouTube.node.js.map +1 -1
  95. package/dist/nodes/Interval/Interval.node.js +1 -1
  96. package/dist/nodes/Interval/Interval.node.js.map +1 -1
  97. package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js +2 -2
  98. package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js.map +1 -1
  99. package/dist/nodes/MQTT/MqttTrigger.node.js +2 -2
  100. package/dist/nodes/MQTT/MqttTrigger.node.js.map +1 -1
  101. package/dist/nodes/ManualTrigger/ManualTrigger.node.js +1 -1
  102. package/dist/nodes/ManualTrigger/ManualTrigger.node.js.map +1 -1
  103. package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js +93 -0
  104. package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js.map +1 -0
  105. package/dist/nodes/Microsoft/SharePoint/MicrosoftSharepoint.node.json +18 -0
  106. package/dist/nodes/Microsoft/SharePoint/descriptions/common.descriptions.js +190 -0
  107. package/dist/nodes/Microsoft/SharePoint/descriptions/common.descriptions.js.map +1 -0
  108. package/dist/nodes/Microsoft/SharePoint/descriptions/file/File.resource.js +108 -0
  109. package/dist/nodes/Microsoft/SharePoint/descriptions/file/File.resource.js.map +1 -0
  110. package/dist/nodes/Microsoft/SharePoint/descriptions/file/download.operation.js +62 -0
  111. package/dist/nodes/Microsoft/SharePoint/descriptions/file/download.operation.js.map +1 -0
  112. package/dist/nodes/Microsoft/SharePoint/descriptions/file/update.operation.js +129 -0
  113. package/dist/nodes/Microsoft/SharePoint/descriptions/file/update.operation.js.map +1 -0
  114. package/dist/nodes/Microsoft/SharePoint/descriptions/file/upload.operation.js +77 -0
  115. package/dist/nodes/Microsoft/SharePoint/descriptions/file/upload.operation.js.map +1 -0
  116. package/dist/nodes/Microsoft/SharePoint/descriptions/index.js +45 -0
  117. package/dist/nodes/Microsoft/SharePoint/descriptions/index.js.map +1 -0
  118. package/dist/nodes/Microsoft/SharePoint/descriptions/item/Item.resource.js +175 -0
  119. package/dist/nodes/Microsoft/SharePoint/descriptions/item/Item.resource.js.map +1 -0
  120. package/dist/nodes/Microsoft/SharePoint/descriptions/item/create.operation.js +100 -0
  121. package/dist/nodes/Microsoft/SharePoint/descriptions/item/create.operation.js.map +1 -0
  122. package/dist/nodes/Microsoft/SharePoint/descriptions/item/delete.operation.js +62 -0
  123. package/dist/nodes/Microsoft/SharePoint/descriptions/item/delete.operation.js.map +1 -0
  124. package/dist/nodes/Microsoft/SharePoint/descriptions/item/get.operation.js +83 -0
  125. package/dist/nodes/Microsoft/SharePoint/descriptions/item/get.operation.js.map +1 -0
  126. package/dist/nodes/Microsoft/SharePoint/descriptions/item/getAll.operation.js +203 -0
  127. package/dist/nodes/Microsoft/SharePoint/descriptions/item/getAll.operation.js.map +1 -0
  128. package/dist/nodes/Microsoft/SharePoint/descriptions/item/update.operation.js +100 -0
  129. package/dist/nodes/Microsoft/SharePoint/descriptions/item/update.operation.js.map +1 -0
  130. package/dist/nodes/Microsoft/SharePoint/descriptions/item/upsert.operation.js +100 -0
  131. package/dist/nodes/Microsoft/SharePoint/descriptions/item/upsert.operation.js.map +1 -0
  132. package/dist/nodes/Microsoft/SharePoint/descriptions/list/List.resource.js +99 -0
  133. package/dist/nodes/Microsoft/SharePoint/descriptions/list/List.resource.js.map +1 -0
  134. package/dist/nodes/Microsoft/SharePoint/descriptions/list/get.operation.js +65 -0
  135. package/dist/nodes/Microsoft/SharePoint/descriptions/list/get.operation.js.map +1 -0
  136. package/dist/nodes/Microsoft/SharePoint/descriptions/list/getAll.operation.js +105 -0
  137. package/dist/nodes/Microsoft/SharePoint/descriptions/list/getAll.operation.js.map +1 -0
  138. package/dist/nodes/Microsoft/SharePoint/helpers/interfaces.js +17 -0
  139. package/dist/nodes/Microsoft/SharePoint/helpers/interfaces.js.map +1 -0
  140. package/dist/nodes/Microsoft/SharePoint/helpers/utils.js +252 -0
  141. package/dist/nodes/Microsoft/SharePoint/helpers/utils.js.map +1 -0
  142. package/dist/nodes/Microsoft/SharePoint/methods/index.js +42 -0
  143. package/dist/nodes/Microsoft/SharePoint/methods/index.js.map +1 -0
  144. package/dist/nodes/Microsoft/SharePoint/methods/listSearch.js +222 -0
  145. package/dist/nodes/Microsoft/SharePoint/methods/listSearch.js.map +1 -0
  146. package/dist/nodes/Microsoft/SharePoint/methods/resourceMapping.js +104 -0
  147. package/dist/nodes/Microsoft/SharePoint/methods/resourceMapping.js.map +1 -0
  148. package/dist/nodes/Microsoft/SharePoint/test/credentials.js +54 -0
  149. package/dist/nodes/Microsoft/SharePoint/test/credentials.js.map +1 -0
  150. package/dist/nodes/Microsoft/SharePoint/transport/index.js +46 -0
  151. package/dist/nodes/Microsoft/SharePoint/transport/index.js.map +1 -0
  152. package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js +387 -0
  153. package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js.map +1 -0
  154. package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.json +18 -0
  155. package/dist/nodes/Microsoft/Teams/v2/helpers/types.js +17 -0
  156. package/dist/nodes/Microsoft/Teams/v2/helpers/types.js.map +1 -0
  157. package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js +147 -0
  158. package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js.map +1 -0
  159. package/dist/nodes/Microsoft/Teams/v2/transport/index.js.map +1 -1
  160. package/dist/nodes/PostBin/BinDescription.js +1 -1
  161. package/dist/nodes/PostBin/BinDescription.js.map +1 -1
  162. package/dist/nodes/PostBin/GenericFunctions.js +5 -5
  163. package/dist/nodes/PostBin/GenericFunctions.js.map +1 -1
  164. package/dist/nodes/PostBin/PostBin.node.js +1 -1
  165. package/dist/nodes/PostBin/PostBin.node.js.map +1 -1
  166. package/dist/nodes/PostBin/RequestDescription.js +2 -2
  167. package/dist/nodes/PostBin/RequestDescription.js.map +1 -1
  168. package/dist/nodes/Postgres/PostgresTrigger.node.js +2 -2
  169. package/dist/nodes/Postgres/PostgresTrigger.node.js.map +1 -1
  170. package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js +2 -2
  171. package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js.map +1 -1
  172. package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js +8 -3
  173. package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js.map +1 -1
  174. package/dist/nodes/RespondToWebhook/utils.js +43 -0
  175. package/dist/nodes/RespondToWebhook/utils.js.map +1 -0
  176. package/dist/nodes/Schedule/ScheduleTrigger.node.js +1 -1
  177. package/dist/nodes/Schedule/ScheduleTrigger.node.js.map +1 -1
  178. package/dist/nodes/Snowflake/GenericFunctions.js +34 -2
  179. package/dist/nodes/Snowflake/GenericFunctions.js.map +1 -1
  180. package/dist/nodes/Snowflake/Snowflake.node.js +5 -7
  181. package/dist/nodes/Snowflake/Snowflake.node.js.map +1 -1
  182. package/dist/nodes/SseTrigger/SseTrigger.node.js +2 -2
  183. package/dist/nodes/SseTrigger/SseTrigger.node.js.map +1 -1
  184. package/dist/types/credentials.json +6 -6
  185. package/dist/types/nodes.json +22 -17
  186. package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js +12 -2
  187. package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js.map +1 -1
  188. package/package.json +13 -9
  189. /package/dist/{credentials/icons/SharePoint.svg → nodes/Microsoft/SharePoint/microsoftSharePoint.svg} +0 -0
@@ -0,0 +1,231 @@
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 User_resource_exports = {};
30
+ __export(User_resource_exports, {
31
+ description: () => description
32
+ });
33
+ module.exports = __toCommonJS(User_resource_exports);
34
+ var addToGroup = __toESM(require("./addToGroup.operation"));
35
+ var create = __toESM(require("./create.operation"));
36
+ var del = __toESM(require("./delete.operation"));
37
+ var get = __toESM(require("./get.operation"));
38
+ var getAll = __toESM(require("./getAll.operation"));
39
+ var removeFromGroup = __toESM(require("./removeFromGroup.operation"));
40
+ var update = __toESM(require("./update.operation"));
41
+ var import_constants = require("../../helpers/constants");
42
+ var import_errorHandler = require("../../helpers/errorHandler");
43
+ var import_utils = require("../../helpers/utils");
44
+ const description = [
45
+ {
46
+ displayName: "Operation",
47
+ name: "operation",
48
+ type: "options",
49
+ noDataExpression: true,
50
+ default: "getAll",
51
+ displayOptions: {
52
+ show: {
53
+ resource: ["user"]
54
+ }
55
+ },
56
+ options: [
57
+ {
58
+ name: "Add to Group",
59
+ value: "addToGroup",
60
+ description: "Add an existing user to a group",
61
+ action: "Add user to group",
62
+ routing: {
63
+ request: {
64
+ method: "POST",
65
+ url: "",
66
+ body: {
67
+ Action: "AddUserToGroup",
68
+ Version: import_constants.CURRENT_VERSION,
69
+ UserName: '={{ $parameter["user"] }}',
70
+ GroupName: '={{ $parameter["group"] }}'
71
+ },
72
+ ignoreHttpStatusErrors: true
73
+ },
74
+ output: {
75
+ postReceive: [import_errorHandler.handleError]
76
+ }
77
+ }
78
+ },
79
+ {
80
+ name: "Create",
81
+ value: "create",
82
+ description: "Create a new user",
83
+ action: "Create user",
84
+ routing: {
85
+ request: {
86
+ method: "POST",
87
+ url: "",
88
+ body: {
89
+ Action: "CreateUser",
90
+ Version: import_constants.CURRENT_VERSION,
91
+ UserName: '={{ $parameter["userName"] }}'
92
+ },
93
+ ignoreHttpStatusErrors: true
94
+ },
95
+ output: {
96
+ postReceive: [import_errorHandler.handleError]
97
+ }
98
+ }
99
+ },
100
+ {
101
+ name: "Delete",
102
+ value: "delete",
103
+ description: "Delete a user",
104
+ action: "Delete user",
105
+ routing: {
106
+ send: {
107
+ preSend: [import_utils.removeUserFromGroups]
108
+ },
109
+ request: {
110
+ method: "POST",
111
+ url: "",
112
+ body: {
113
+ Action: "DeleteUser",
114
+ Version: import_constants.CURRENT_VERSION,
115
+ UserName: '={{ $parameter["user"] }}'
116
+ },
117
+ ignoreHttpStatusErrors: true
118
+ },
119
+ output: {
120
+ postReceive: [import_errorHandler.handleError]
121
+ }
122
+ }
123
+ },
124
+ {
125
+ name: "Get",
126
+ value: "get",
127
+ description: "Retrieve a user",
128
+ action: "Get user",
129
+ routing: {
130
+ request: {
131
+ method: "POST",
132
+ url: "",
133
+ body: {
134
+ Action: "GetUser",
135
+ Version: import_constants.CURRENT_VERSION,
136
+ UserName: '={{ $parameter["user"] }}'
137
+ },
138
+ ignoreHttpStatusErrors: true
139
+ },
140
+ output: {
141
+ postReceive: [
142
+ {
143
+ type: "rootProperty",
144
+ properties: {
145
+ property: "GetUserResponse.GetUserResult.User"
146
+ }
147
+ },
148
+ import_errorHandler.handleError
149
+ ]
150
+ }
151
+ }
152
+ },
153
+ {
154
+ name: "Get Many",
155
+ value: "getAll",
156
+ description: "Retrieve a list of users",
157
+ routing: {
158
+ request: {
159
+ method: "POST",
160
+ url: "",
161
+ body: {
162
+ Action: "ListUsers",
163
+ Version: import_constants.CURRENT_VERSION
164
+ },
165
+ ignoreHttpStatusErrors: true
166
+ },
167
+ output: {
168
+ postReceive: [import_errorHandler.handleError, import_utils.simplifyGetAllUsersResponse]
169
+ }
170
+ },
171
+ action: "Get many users"
172
+ },
173
+ {
174
+ name: "Remove From Group",
175
+ value: "removeFromGroup",
176
+ description: "Remove a user from a group",
177
+ action: "Remove user from group",
178
+ routing: {
179
+ request: {
180
+ method: "POST",
181
+ url: "",
182
+ body: {
183
+ Action: "RemoveUserFromGroup",
184
+ Version: import_constants.CURRENT_VERSION,
185
+ UserName: '={{ $parameter["user"] }}',
186
+ GroupName: '={{ $parameter["group"] }}'
187
+ },
188
+ ignoreHttpStatusErrors: true
189
+ },
190
+ output: {
191
+ postReceive: [import_errorHandler.handleError]
192
+ }
193
+ }
194
+ },
195
+ {
196
+ name: "Update",
197
+ value: "update",
198
+ description: "Update a user",
199
+ action: "Update user",
200
+ routing: {
201
+ request: {
202
+ method: "POST",
203
+ url: "",
204
+ body: {
205
+ Action: "UpdateUser",
206
+ Version: import_constants.CURRENT_VERSION,
207
+ NewUserName: '={{ $parameter["userName"] }}',
208
+ UserName: '={{ $parameter["user"] }}'
209
+ },
210
+ ignoreHttpStatusErrors: true
211
+ },
212
+ output: {
213
+ postReceive: [import_errorHandler.handleError]
214
+ }
215
+ }
216
+ }
217
+ ]
218
+ },
219
+ ...addToGroup.description,
220
+ ...create.description,
221
+ ...del.description,
222
+ ...get.description,
223
+ ...getAll.description,
224
+ ...update.description,
225
+ ...removeFromGroup.description
226
+ ];
227
+ // Annotate the CommonJS export names for ESM import in node:
228
+ 0 && (module.exports = {
229
+ description
230
+ });
231
+ //# sourceMappingURL=User.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Aws/IAM/descriptions/user/User.resource.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\n\nimport * as addToGroup from './addToGroup.operation';\nimport * as create from './create.operation';\nimport * as del from './delete.operation';\nimport * as get from './get.operation';\nimport * as getAll from './getAll.operation';\nimport * as removeFromGroup from './removeFromGroup.operation';\nimport * as update from './update.operation';\nimport { CURRENT_VERSION } from '../../helpers/constants';\nimport { handleError } from '../../helpers/errorHandler';\nimport { removeUserFromGroups, simplifyGetAllUsersResponse } from '../../helpers/utils';\n\nexport const description: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'Operation',\n\t\tname: 'operation',\n\t\ttype: 'options',\n\t\tnoDataExpression: true,\n\t\tdefault: 'getAll',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['user'],\n\t\t\t},\n\t\t},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tname: 'Add to Group',\n\t\t\t\tvalue: 'addToGroup',\n\t\t\t\tdescription: 'Add an existing user to a group',\n\t\t\t\taction: 'Add user to group',\n\t\t\t\trouting: {\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\turl: '',\n\t\t\t\t\t\tbody: {\n\t\t\t\t\t\t\tAction: 'AddUserToGroup',\n\t\t\t\t\t\t\tVersion: CURRENT_VERSION,\n\t\t\t\t\t\t\tUserName: '={{ $parameter[\"user\"] }}',\n\t\t\t\t\t\t\tGroupName: '={{ $parameter[\"group\"] }}',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tignoreHttpStatusErrors: true,\n\t\t\t\t\t},\n\t\t\t\t\toutput: {\n\t\t\t\t\t\tpostReceive: [handleError],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Create',\n\t\t\t\tvalue: 'create',\n\t\t\t\tdescription: 'Create a new user',\n\t\t\t\taction: 'Create user',\n\t\t\t\trouting: {\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\turl: '',\n\t\t\t\t\t\tbody: {\n\t\t\t\t\t\t\tAction: 'CreateUser',\n\t\t\t\t\t\t\tVersion: CURRENT_VERSION,\n\t\t\t\t\t\t\tUserName: '={{ $parameter[\"userName\"] }}',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tignoreHttpStatusErrors: true,\n\t\t\t\t\t},\n\t\t\t\t\toutput: {\n\t\t\t\t\t\tpostReceive: [handleError],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Delete',\n\t\t\t\tvalue: 'delete',\n\t\t\t\tdescription: 'Delete a user',\n\t\t\t\taction: 'Delete user',\n\t\t\t\trouting: {\n\t\t\t\t\tsend: {\n\t\t\t\t\t\tpreSend: [removeUserFromGroups],\n\t\t\t\t\t},\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\turl: '',\n\t\t\t\t\t\tbody: {\n\t\t\t\t\t\t\tAction: 'DeleteUser',\n\t\t\t\t\t\t\tVersion: CURRENT_VERSION,\n\t\t\t\t\t\t\tUserName: '={{ $parameter[\"user\"] }}',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tignoreHttpStatusErrors: true,\n\t\t\t\t\t},\n\t\t\t\t\toutput: {\n\t\t\t\t\t\tpostReceive: [handleError],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Get',\n\t\t\t\tvalue: 'get',\n\t\t\t\tdescription: 'Retrieve a user',\n\t\t\t\taction: 'Get user',\n\t\t\t\trouting: {\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\turl: '',\n\t\t\t\t\t\tbody: {\n\t\t\t\t\t\t\tAction: 'GetUser',\n\t\t\t\t\t\t\tVersion: CURRENT_VERSION,\n\t\t\t\t\t\t\tUserName: '={{ $parameter[\"user\"] }}',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tignoreHttpStatusErrors: true,\n\t\t\t\t\t},\n\t\t\t\t\toutput: {\n\t\t\t\t\t\tpostReceive: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'rootProperty',\n\t\t\t\t\t\t\t\tproperties: {\n\t\t\t\t\t\t\t\t\tproperty: 'GetUserResponse.GetUserResult.User',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\thandleError,\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Get Many',\n\t\t\t\tvalue: 'getAll',\n\t\t\t\tdescription: 'Retrieve a list of users',\n\t\t\t\trouting: {\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\turl: '',\n\t\t\t\t\t\tbody: {\n\t\t\t\t\t\t\tAction: 'ListUsers',\n\t\t\t\t\t\t\tVersion: CURRENT_VERSION,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tignoreHttpStatusErrors: true,\n\t\t\t\t\t},\n\t\t\t\t\toutput: {\n\t\t\t\t\t\tpostReceive: [handleError, simplifyGetAllUsersResponse],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\taction: 'Get many users',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Remove From Group',\n\t\t\t\tvalue: 'removeFromGroup',\n\t\t\t\tdescription: 'Remove a user from a group',\n\t\t\t\taction: 'Remove user from group',\n\t\t\t\trouting: {\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\turl: '',\n\t\t\t\t\t\tbody: {\n\t\t\t\t\t\t\tAction: 'RemoveUserFromGroup',\n\t\t\t\t\t\t\tVersion: CURRENT_VERSION,\n\t\t\t\t\t\t\tUserName: '={{ $parameter[\"user\"] }}',\n\t\t\t\t\t\t\tGroupName: '={{ $parameter[\"group\"] }}',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tignoreHttpStatusErrors: true,\n\t\t\t\t\t},\n\t\t\t\t\toutput: {\n\t\t\t\t\t\tpostReceive: [handleError],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Update',\n\t\t\t\tvalue: 'update',\n\t\t\t\tdescription: 'Update a user',\n\t\t\t\taction: 'Update user',\n\t\t\t\trouting: {\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\turl: '',\n\t\t\t\t\t\tbody: {\n\t\t\t\t\t\t\tAction: 'UpdateUser',\n\t\t\t\t\t\t\tVersion: CURRENT_VERSION,\n\t\t\t\t\t\t\tNewUserName: '={{ $parameter[\"userName\"] }}',\n\t\t\t\t\t\t\tUserName: '={{ $parameter[\"user\"] }}',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tignoreHttpStatusErrors: true,\n\t\t\t\t\t},\n\t\t\t\t\toutput: {\n\t\t\t\t\t\tpostReceive: [handleError],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t},\n\n\t...addToGroup.description,\n\t...create.description,\n\t...del.description,\n\t...get.description,\n\t...getAll.description,\n\t...update.description,\n\t...removeFromGroup.description,\n];\n"],"mappings":"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","names":[]}
@@ -0,0 +1,47 @@
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 addToGroup_operation_exports = {};
20
+ __export(addToGroup_operation_exports, {
21
+ description: () => description
22
+ });
23
+ module.exports = __toCommonJS(addToGroup_operation_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_common = require("../common");
26
+ const properties = [
27
+ {
28
+ ...import_common.userLocator,
29
+ description: "Select the user you want to add to the group"
30
+ },
31
+ {
32
+ ...import_common.groupLocator,
33
+ description: "Select the group you want to add the user to"
34
+ }
35
+ ];
36
+ const displayOptions = {
37
+ show: {
38
+ resource: ["user"],
39
+ operation: ["addToGroup"]
40
+ }
41
+ };
42
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
43
+ // Annotate the CommonJS export names for ESM import in node:
44
+ 0 && (module.exports = {
45
+ description
46
+ });
47
+ //# sourceMappingURL=addToGroup.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Aws/IAM/descriptions/user/addToGroup.operation.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\nimport { updateDisplayOptions } from 'n8n-workflow';\n\nimport { groupLocator, userLocator } from '../common';\n\nconst properties: INodeProperties[] = [\n\t{\n\t\t...userLocator,\n\t\tdescription: 'Select the user you want to add to the group',\n\t},\n\t{\n\t\t...groupLocator,\n\t\tdescription: 'Select the group you want to add the user to',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['user'],\n\t\toperation: ['addToGroup'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAAqC;AAErC,oBAA0C;AAE1C,MAAM,aAAgC;AAAA,EACrC;AAAA,IACC,GAAG;AAAA,IACH,aAAa;AAAA,EACd;AAAA,EACA;AAAA,IACC,GAAG;AAAA,IACH,aAAa;AAAA,EACd;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,MAAM;AAAA,IACjB,WAAW,CAAC,YAAY;AAAA,EACzB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
@@ -0,0 +1,118 @@
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 create_operation_exports = {};
20
+ __export(create_operation_exports, {
21
+ description: () => description
22
+ });
23
+ module.exports = __toCommonJS(create_operation_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_utils = require("../../helpers/utils");
26
+ var import_common = require("../common");
27
+ const properties = [
28
+ {
29
+ ...import_common.userNameParameter,
30
+ description: "The username of the new user to create",
31
+ placeholder: "e.g. UserName"
32
+ },
33
+ {
34
+ displayName: "Additional Fields",
35
+ name: "additionalFields",
36
+ type: "collection",
37
+ placeholder: "Add Option",
38
+ default: {},
39
+ options: [
40
+ {
41
+ ...import_common.pathParameter,
42
+ description: "The path for the user name",
43
+ placeholder: "e.g. /division_abc/subdivision_xyz/",
44
+ routing: {
45
+ send: {
46
+ preSend: [import_utils.validatePath],
47
+ property: "Path",
48
+ type: "query"
49
+ }
50
+ }
51
+ },
52
+ {
53
+ displayName: "Permissions Boundary",
54
+ name: "permissionsBoundary",
55
+ default: "",
56
+ description: "The ARN of the managed policy that is used to set the permissions boundary for the user",
57
+ placeholder: "e.g. arn:aws:iam::123456789012:policy/ExampleBoundaryPolicy",
58
+ type: "string",
59
+ validateType: "string",
60
+ routing: {
61
+ send: {
62
+ preSend: [import_utils.validatePermissionsBoundary]
63
+ }
64
+ }
65
+ },
66
+ {
67
+ displayName: "Tags",
68
+ name: "tags",
69
+ type: "fixedCollection",
70
+ description: "A list of tags that you want to attach to the new user",
71
+ default: [],
72
+ placeholder: "Add Tag",
73
+ typeOptions: {
74
+ multipleValues: true
75
+ },
76
+ options: [
77
+ {
78
+ name: "tags",
79
+ displayName: "Tag",
80
+ values: [
81
+ {
82
+ displayName: "Key",
83
+ name: "key",
84
+ type: "string",
85
+ default: "",
86
+ placeholder: "e.g., Department"
87
+ },
88
+ {
89
+ displayName: "Value",
90
+ name: "value",
91
+ type: "string",
92
+ default: "",
93
+ placeholder: "e.g., Engineering"
94
+ }
95
+ ]
96
+ }
97
+ ],
98
+ routing: {
99
+ send: {
100
+ preSend: [import_utils.preprocessTags]
101
+ }
102
+ }
103
+ }
104
+ ]
105
+ }
106
+ ];
107
+ const displayOptions = {
108
+ show: {
109
+ resource: ["user"],
110
+ operation: ["create"]
111
+ }
112
+ };
113
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
114
+ // Annotate the CommonJS export names for ESM import in node:
115
+ 0 && (module.exports = {
116
+ description
117
+ });
118
+ //# sourceMappingURL=create.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Aws/IAM/descriptions/user/create.operation.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\nimport { updateDisplayOptions } from 'n8n-workflow';\n\nimport { preprocessTags, validatePath, validatePermissionsBoundary } from '../../helpers/utils';\nimport { pathParameter, userNameParameter } from '../common';\n\nconst properties: INodeProperties[] = [\n\t{\n\t\t...userNameParameter,\n\t\tdescription: 'The username of the new user to create',\n\t\tplaceholder: 'e.g. UserName',\n\t},\n\t{\n\t\tdisplayName: 'Additional Fields',\n\t\tname: 'additionalFields',\n\t\ttype: 'collection',\n\t\tplaceholder: 'Add Option',\n\t\tdefault: {},\n\t\toptions: [\n\t\t\t{\n\t\t\t\t...pathParameter,\n\t\t\t\tdescription: 'The path for the user name',\n\t\t\t\tplaceholder: 'e.g. /division_abc/subdivision_xyz/',\n\t\t\t\trouting: {\n\t\t\t\t\tsend: {\n\t\t\t\t\t\tpreSend: [validatePath],\n\t\t\t\t\t\tproperty: 'Path',\n\t\t\t\t\t\ttype: 'query',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Permissions Boundary',\n\t\t\t\tname: 'permissionsBoundary',\n\t\t\t\tdefault: '',\n\t\t\t\tdescription:\n\t\t\t\t\t'The ARN of the managed policy that is used to set the permissions boundary for the user',\n\t\t\t\tplaceholder: 'e.g. arn:aws:iam::123456789012:policy/ExampleBoundaryPolicy',\n\t\t\t\ttype: 'string',\n\t\t\t\tvalidateType: 'string',\n\t\t\t\trouting: {\n\t\t\t\t\tsend: {\n\t\t\t\t\t\tpreSend: [validatePermissionsBoundary],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Tags',\n\t\t\t\tname: 'tags',\n\t\t\t\ttype: 'fixedCollection',\n\t\t\t\tdescription: 'A list of tags that you want to attach to the new user',\n\t\t\t\tdefault: [],\n\t\t\t\tplaceholder: 'Add Tag',\n\t\t\t\ttypeOptions: {\n\t\t\t\t\tmultipleValues: true,\n\t\t\t\t},\n\t\t\t\toptions: [\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'tags',\n\t\t\t\t\t\tdisplayName: 'Tag',\n\t\t\t\t\t\tvalues: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName: 'Key',\n\t\t\t\t\t\t\t\tname: 'key',\n\t\t\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\t\t\tplaceholder: 'e.g., Department',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName: 'Value',\n\t\t\t\t\t\t\t\tname: 'value',\n\t\t\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\t\t\tplaceholder: 'e.g., Engineering',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\trouting: {\n\t\t\t\t\tsend: {\n\t\t\t\t\t\tpreSend: [preprocessTags],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['user'],\n\t\toperation: ['create'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAAqC;AAErC,mBAA0E;AAC1E,oBAAiD;AAEjD,MAAM,aAAgC;AAAA,EACrC;AAAA,IACC,GAAG;AAAA,IACH,aAAa;AAAA,IACb,aAAa;AAAA,EACd;AAAA,EACA;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,MAAM;AAAA,IACN,aAAa;AAAA,IACb,SAAS,CAAC;AAAA,IACV,SAAS;AAAA,MACR;AAAA,QACC,GAAG;AAAA,QACH,aAAa;AAAA,QACb,aAAa;AAAA,QACb,SAAS;AAAA,UACR,MAAM;AAAA,YACL,SAAS,CAAC,yBAAY;AAAA,YACtB,UAAU;AAAA,YACV,MAAM;AAAA,UACP;AAAA,QACD;AAAA,MACD;AAAA,MACA;AAAA,QACC,aAAa;AAAA,QACb,MAAM;AAAA,QACN,SAAS;AAAA,QACT,aACC;AAAA,QACD,aAAa;AAAA,QACb,MAAM;AAAA,QACN,cAAc;AAAA,QACd,SAAS;AAAA,UACR,MAAM;AAAA,YACL,SAAS,CAAC,wCAA2B;AAAA,UACtC;AAAA,QACD;AAAA,MACD;AAAA,MACA;AAAA,QACC,aAAa;AAAA,QACb,MAAM;AAAA,QACN,MAAM;AAAA,QACN,aAAa;AAAA,QACb,SAAS,CAAC;AAAA,QACV,aAAa;AAAA,QACb,aAAa;AAAA,UACZ,gBAAgB;AAAA,QACjB;AAAA,QACA,SAAS;AAAA,UACR;AAAA,YACC,MAAM;AAAA,YACN,aAAa;AAAA,YACb,QAAQ;AAAA,cACP;AAAA,gBACC,aAAa;AAAA,gBACb,MAAM;AAAA,gBACN,MAAM;AAAA,gBACN,SAAS;AAAA,gBACT,aAAa;AAAA,cACd;AAAA,cACA;AAAA,gBACC,aAAa;AAAA,gBACb,MAAM;AAAA,gBACN,MAAM;AAAA,gBACN,SAAS;AAAA,gBACT,aAAa;AAAA,cACd;AAAA,YACD;AAAA,UACD;AAAA,QACD;AAAA,QACA,SAAS;AAAA,UACR,MAAM;AAAA,YACL,SAAS,CAAC,2BAAc;AAAA,UACzB;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,MAAM;AAAA,IACjB,WAAW,CAAC,QAAQ;AAAA,EACrB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
@@ -0,0 +1,43 @@
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 delete_operation_exports = {};
20
+ __export(delete_operation_exports, {
21
+ description: () => description
22
+ });
23
+ module.exports = __toCommonJS(delete_operation_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_common = require("../common");
26
+ const properties = [
27
+ {
28
+ ...import_common.userLocator,
29
+ description: "Select the user you want to delete"
30
+ }
31
+ ];
32
+ const displayOptions = {
33
+ show: {
34
+ resource: ["user"],
35
+ operation: ["delete"]
36
+ }
37
+ };
38
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
39
+ // Annotate the CommonJS export names for ESM import in node:
40
+ 0 && (module.exports = {
41
+ description
42
+ });
43
+ //# sourceMappingURL=delete.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Aws/IAM/descriptions/user/delete.operation.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\nimport { updateDisplayOptions } from 'n8n-workflow';\n\nimport { userLocator } from '../common';\n\nconst properties: INodeProperties[] = [\n\t{\n\t\t...userLocator,\n\t\tdescription: 'Select the user you want to delete',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['user'],\n\t\toperation: ['delete'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAAqC;AAErC,oBAA4B;AAE5B,MAAM,aAAgC;AAAA,EACrC;AAAA,IACC,GAAG;AAAA,IACH,aAAa;AAAA,EACd;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,MAAM;AAAA,IACjB,WAAW,CAAC,QAAQ;AAAA,EACrB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var get_operation_exports = {};
20
+ __export(get_operation_exports, {
21
+ description: () => description
22
+ });
23
+ module.exports = __toCommonJS(get_operation_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_common = require("../common");
26
+ const properties = [
27
+ {
28
+ ...import_common.userLocator,
29
+ description: "Select the user you want to retrieve"
30
+ }
31
+ ];
32
+ const displayOptions = {
33
+ show: {
34
+ resource: ["user"],
35
+ operation: ["get"]
36
+ }
37
+ };
38
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
39
+ // Annotate the CommonJS export names for ESM import in node:
40
+ 0 && (module.exports = {
41
+ description
42
+ });
43
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Aws/IAM/descriptions/user/get.operation.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\nimport { updateDisplayOptions } from 'n8n-workflow';\n\nimport { userLocator } from '../common';\n\nconst properties: INodeProperties[] = [\n\t{\n\t\t...userLocator,\n\t\tdescription: 'Select the user you want to retrieve',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['user'],\n\t\toperation: ['get'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAAqC;AAErC,oBAA4B;AAE5B,MAAM,aAAgC;AAAA,EACrC;AAAA,IACC,GAAG;AAAA,IACH,aAAa;AAAA,EACd;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,MAAM;AAAA,IACjB,WAAW,CAAC,KAAK;AAAA,EAClB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var getAll_operation_exports = {};
20
+ __export(getAll_operation_exports, {
21
+ description: () => description
22
+ });
23
+ module.exports = __toCommonJS(getAll_operation_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_utils = require("../../helpers/utils");
26
+ var import_common = require("../common");
27
+ const properties = [
28
+ ...import_common.paginationParameters,
29
+ {
30
+ displayName: "Additional Fields",
31
+ name: "additionalFields",
32
+ type: "collection",
33
+ placeholder: "Add Field",
34
+ default: {},
35
+ options: [
36
+ {
37
+ displayName: "Path Prefix",
38
+ name: "pathPrefix",
39
+ type: "string",
40
+ validateType: "string",
41
+ default: "/",
42
+ description: "The path prefix for filtering the results",
43
+ placeholder: "e.g. /division_abc/subdivision_xyz/",
44
+ routing: {
45
+ send: {
46
+ preSend: [import_utils.validateUserPath],
47
+ property: "PathPrefix",
48
+ value: "={{ $value }}"
49
+ }
50
+ }
51
+ }
52
+ ]
53
+ }
54
+ ];
55
+ const displayOptions = {
56
+ show: {
57
+ resource: ["user"],
58
+ operation: ["getAll"]
59
+ }
60
+ };
61
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
62
+ // Annotate the CommonJS export names for ESM import in node:
63
+ 0 && (module.exports = {
64
+ description
65
+ });
66
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Aws/IAM/descriptions/user/getAll.operation.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\nimport { updateDisplayOptions } from 'n8n-workflow';\n\nimport { validateUserPath } from '../../helpers/utils';\nimport { paginationParameters } from '../common';\n\nconst properties: INodeProperties[] = [\n\t...paginationParameters,\n\t{\n\t\tdisplayName: 'Additional Fields',\n\t\tname: 'additionalFields',\n\t\ttype: 'collection',\n\t\tplaceholder: 'Add Field',\n\t\tdefault: {},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tdisplayName: 'Path Prefix',\n\t\t\t\tname: 'pathPrefix',\n\t\t\t\ttype: 'string',\n\t\t\t\tvalidateType: 'string',\n\t\t\t\tdefault: '/',\n\t\t\t\tdescription: 'The path prefix for filtering the results',\n\t\t\t\tplaceholder: 'e.g. /division_abc/subdivision_xyz/',\n\t\t\t\trouting: {\n\t\t\t\t\tsend: {\n\t\t\t\t\t\tpreSend: [validateUserPath],\n\t\t\t\t\t\tproperty: 'PathPrefix',\n\t\t\t\t\t\tvalue: '={{ $value }}',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['user'],\n\t\toperation: ['getAll'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAAqC;AAErC,mBAAiC;AACjC,oBAAqC;AAErC,MAAM,aAAgC;AAAA,EACrC,GAAG;AAAA,EACH;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,MAAM;AAAA,IACN,aAAa;AAAA,IACb,SAAS,CAAC;AAAA,IACV,SAAS;AAAA,MACR;AAAA,QACC,aAAa;AAAA,QACb,MAAM;AAAA,QACN,MAAM;AAAA,QACN,cAAc;AAAA,QACd,SAAS;AAAA,QACT,aAAa;AAAA,QACb,aAAa;AAAA,QACb,SAAS;AAAA,UACR,MAAM;AAAA,YACL,SAAS,CAAC,6BAAgB;AAAA,YAC1B,UAAU;AAAA,YACV,OAAO;AAAA,UACR;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,MAAM;AAAA,IACjB,WAAW,CAAC,QAAQ;AAAA,EACrB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}