n8n-nodes-base 1.91.1 → 1.92.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 (150) 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/known/credentials.json +8 -0
  8. package/dist/known/nodes.json +8 -0
  9. package/dist/nodes/Affinity/__schema__/v1.0.0/listEntry/getAll.json +1 -4
  10. package/dist/nodes/Airtop/__schema__/v1.0.0/extraction/query.json +47 -0
  11. package/dist/nodes/Aws/Cognito/AwsCognito.node.js +102 -0
  12. package/dist/nodes/Aws/Cognito/AwsCognito.node.js.map +1 -0
  13. package/dist/nodes/Aws/Cognito/AwsCognito.node.json +18 -0
  14. package/dist/nodes/Aws/Cognito/cognito.svg +1 -0
  15. package/dist/nodes/Aws/Cognito/descriptions/common.description.js +160 -0
  16. package/dist/nodes/Aws/Cognito/descriptions/common.description.js.map +1 -0
  17. package/dist/nodes/Aws/Cognito/descriptions/group/Group.resource.js +189 -0
  18. package/dist/nodes/Aws/Cognito/descriptions/group/Group.resource.js.map +1 -0
  19. package/dist/nodes/Aws/Cognito/descriptions/group/create.operation.js +126 -0
  20. package/dist/nodes/Aws/Cognito/descriptions/group/create.operation.js.map +1 -0
  21. package/dist/nodes/Aws/Cognito/descriptions/group/delete.operation.js +47 -0
  22. package/dist/nodes/Aws/Cognito/descriptions/group/delete.operation.js.map +1 -0
  23. package/dist/nodes/Aws/Cognito/descriptions/group/get.operation.js +54 -0
  24. package/dist/nodes/Aws/Cognito/descriptions/group/get.operation.js.map +1 -0
  25. package/dist/nodes/Aws/Cognito/descriptions/group/getAll.operation.js +95 -0
  26. package/dist/nodes/Aws/Cognito/descriptions/group/getAll.operation.js.map +1 -0
  27. package/dist/nodes/Aws/Cognito/descriptions/group/update.operation.js +120 -0
  28. package/dist/nodes/Aws/Cognito/descriptions/group/update.operation.js.map +1 -0
  29. package/dist/nodes/Aws/Cognito/descriptions/index.js +45 -0
  30. package/dist/nodes/Aws/Cognito/descriptions/index.js.map +1 -0
  31. package/dist/nodes/Aws/Cognito/descriptions/user/User.resource.js +263 -0
  32. package/dist/nodes/Aws/Cognito/descriptions/user/User.resource.js.map +1 -0
  33. package/dist/nodes/Aws/Cognito/descriptions/user/addToGroup.operation.js +51 -0
  34. package/dist/nodes/Aws/Cognito/descriptions/user/addToGroup.operation.js.map +1 -0
  35. package/dist/nodes/Aws/Cognito/descriptions/user/create.operation.js +299 -0
  36. package/dist/nodes/Aws/Cognito/descriptions/user/create.operation.js.map +1 -0
  37. package/dist/nodes/Aws/Cognito/descriptions/user/delete.operation.js +47 -0
  38. package/dist/nodes/Aws/Cognito/descriptions/user/delete.operation.js.map +1 -0
  39. package/dist/nodes/Aws/Cognito/descriptions/user/get.operation.js +54 -0
  40. package/dist/nodes/Aws/Cognito/descriptions/user/get.operation.js.map +1 -0
  41. package/dist/nodes/Aws/Cognito/descriptions/user/getAll.operation.js +187 -0
  42. package/dist/nodes/Aws/Cognito/descriptions/user/getAll.operation.js.map +1 -0
  43. package/dist/nodes/Aws/Cognito/descriptions/user/removeFromGroup.operation.js +60 -0
  44. package/dist/nodes/Aws/Cognito/descriptions/user/removeFromGroup.operation.js.map +1 -0
  45. package/dist/nodes/Aws/Cognito/descriptions/user/update.operation.js +189 -0
  46. package/dist/nodes/Aws/Cognito/descriptions/user/update.operation.js.map +1 -0
  47. package/dist/nodes/Aws/Cognito/descriptions/userPool/UserPool.resource.js +81 -0
  48. package/dist/nodes/Aws/Cognito/descriptions/userPool/UserPool.resource.js.map +1 -0
  49. package/dist/nodes/Aws/Cognito/descriptions/userPool/get.operation.js +50 -0
  50. package/dist/nodes/Aws/Cognito/descriptions/userPool/get.operation.js.map +1 -0
  51. package/dist/nodes/Aws/Cognito/helpers/constants.js +91 -0
  52. package/dist/nodes/Aws/Cognito/helpers/constants.js.map +1 -0
  53. package/dist/nodes/Aws/Cognito/helpers/errorHandler.js +109 -0
  54. package/dist/nodes/Aws/Cognito/helpers/errorHandler.js.map +1 -0
  55. package/dist/nodes/Aws/Cognito/helpers/interfaces.js +17 -0
  56. package/dist/nodes/Aws/Cognito/helpers/interfaces.js.map +1 -0
  57. package/dist/nodes/Aws/Cognito/helpers/utils.js +318 -0
  58. package/dist/nodes/Aws/Cognito/helpers/utils.js.map +1 -0
  59. package/dist/nodes/Aws/Cognito/methods/index.js +39 -0
  60. package/dist/nodes/Aws/Cognito/methods/index.js.map +1 -0
  61. package/dist/nodes/Aws/Cognito/methods/listSearch.js +157 -0
  62. package/dist/nodes/Aws/Cognito/methods/listSearch.js.map +1 -0
  63. package/dist/nodes/Aws/Cognito/transport/index.js +72 -0
  64. package/dist/nodes/Aws/Cognito/transport/index.js.map +1 -0
  65. package/dist/nodes/Aws/S3/__schema__/v2.0.0/file/getAll.json +1 -7
  66. package/dist/nodes/BambooHr/__schema__/v1.0.0/employee/get.json +10 -1
  67. package/dist/nodes/Dropcontact/__schema__/v1.0.0/contact/enrich.json +7 -15
  68. package/dist/nodes/EmailSend/__schema__/v2.1.0/email/send.json +7 -1
  69. package/dist/nodes/Github/__schema__/v1.1.0/file/list.json +44 -0
  70. package/dist/nodes/Gitlab/__schema__/v1.0.0/file/get.json +1 -4
  71. package/dist/nodes/Google/BusinessProfile/__schema__/v1.0.0/review/getAll.json +1 -12
  72. package/dist/nodes/Google/Calendar/__schema__/v1.3.0/event/getAll.json +4 -7
  73. package/dist/nodes/Google/Contacts/__schema__/v1.0.0/contact/getAll.json +1 -12
  74. package/dist/nodes/Google/Drive/__schema__/v3.0.0/file/download.json +9 -0
  75. package/dist/nodes/Google/Firebase/CloudFirestore/__schema__/v1.1.0/document/query.json +7 -1
  76. package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/addLabels.json +1 -13
  77. package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/get.json +7 -1
  78. package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/getAll.json +29 -113
  79. package/dist/nodes/Google/Gmail/__schema__/v2.1.0/thread/get.json +1 -60
  80. package/dist/nodes/Google/Sheet/GoogleSheets.node.js +3 -2
  81. package/dist/nodes/Google/Sheet/GoogleSheets.node.js.map +1 -1
  82. package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js +2 -1
  83. package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js.map +1 -1
  84. package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js +1 -1
  85. package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js.map +1 -1
  86. package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js +4 -0
  87. package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js.map +1 -1
  88. package/dist/nodes/Google/Task/__schema__/v1.0.0/task/getAll.json +1 -4
  89. package/dist/nodes/Google/YouTube/__schema__/v1.0.0/video/get.json +35 -1
  90. package/dist/nodes/Hubspot/__schema__/v2.1.0/company/getAll.json +4 -1
  91. package/dist/nodes/Hubspot/__schema__/v2.1.0/contact/search.json +1 -4
  92. package/dist/nodes/Hubspot/__schema__/v2.1.0/deal/getAll.json +45 -11
  93. package/dist/nodes/Hubspot/__schema__/v2.1.0/deal/search.json +2 -5
  94. package/dist/nodes/Hubspot/__schema__/v2.1.0/ticket/get.json +4 -4
  95. package/dist/nodes/ItemLists/__schema__/v3.0.0/itemList/limit.json +4 -1
  96. package/dist/nodes/JinaAI/JinaAi.node.js +486 -0
  97. package/dist/nodes/JinaAI/JinaAi.node.js.map +1 -0
  98. package/dist/nodes/JinaAI/JinaAi.node.json +18 -0
  99. package/dist/nodes/JinaAI/jinaAi.dark.svg +6 -0
  100. package/dist/nodes/JinaAI/jinaAi.svg +6 -0
  101. package/dist/nodes/Jira/__schema__/v1.0.0/issue/get.json +259 -1
  102. package/dist/nodes/Jira/__schema__/v1.0.0/issue/getAll.json +57 -37
  103. package/dist/nodes/Linear/__schema__/v1.0.0/issue/getAll.json +1 -12
  104. package/dist/nodes/Microsoft/AzureCosmosDb/AzureCosmosDb.node.json +2 -2
  105. package/dist/nodes/Microsoft/Entra/MicrosoftEntra.node.js +2 -2
  106. package/dist/nodes/Microsoft/Entra/MicrosoftEntra.node.js.map +1 -1
  107. package/dist/nodes/Microsoft/Entra/__schema__/v1.0.0/user/getAll.json +1 -7
  108. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/event/getAll.json +4 -1
  109. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/folderMessage/getAll.json +8 -47
  110. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/get.json +124 -1
  111. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/getAll.json +40 -20
  112. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/sendAndWait.json +12 -11
  113. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/messageAttachment/get.json +13 -1
  114. package/dist/nodes/Microsoft/Storage/__schema__/v1.0.0/blob/getAll.json +44 -0
  115. package/dist/nodes/Microsoft/Teams/__schema__/v2.0.0/channel/getAll.json +1 -4
  116. package/dist/nodes/Microsoft/ToDo/__schema__/v1.0.0/task/getAll.json +21 -5
  117. package/dist/nodes/Notion/__schema__/v2.2.0/database/get.json +149 -2
  118. package/dist/nodes/Odoo/__schema__/v1.0.0/contact/getAll.json +10 -1
  119. package/dist/nodes/Odoo/__schema__/v1.0.0/custom/getAll.json +1 -4
  120. package/dist/nodes/Odoo/__schema__/v1.0.0/opportunity/getAll.json +49 -1
  121. package/dist/nodes/OpenAi/__schema__/v1.1.0/chat/complete.json +1 -29
  122. package/dist/nodes/Pipedrive/__schema__/v1.0.0/organization/search.json +20 -25
  123. package/dist/nodes/Pipedrive/__schema__/v1.0.0/person/search.json +1 -18
  124. package/dist/nodes/Plivo/__schema__/v1.0.0/call/make.json +15 -0
  125. package/dist/nodes/QuickBooks/__schema__/v1.0.0/transaction/getReport.json +1 -4
  126. package/dist/nodes/Salesforce/__schema__/v1.0.0/customObject/getAll.json +2 -2
  127. package/dist/nodes/Salesforce/__schema__/v1.0.0/opportunity/getAll.json +5 -2
  128. package/dist/nodes/Salesforce/__schema__/v1.0.0/task/getAll.json +4 -1
  129. package/dist/nodes/SeaTable/__schema__/v2.0.0/row/list.json +30 -0
  130. package/dist/nodes/ServiceNow/__schema__/v1.0.0/tableRecord/getAll.json +1 -4
  131. package/dist/nodes/Slack/__schema__/v2.3.0/channel/history.json +49 -3
  132. package/dist/nodes/Slack/__schema__/v2.3.0/message/post.json +4 -1
  133. package/dist/nodes/Ssh/__schema__/v1.0.0/command/execute.json +4 -1
  134. package/dist/nodes/Strapi/__schema__/v1.0.0/entry/get.json +32 -0
  135. package/dist/nodes/Strapi/__schema__/v1.0.0/entry/getAll.json +1 -4
  136. package/dist/nodes/Telegram/__schema__/v1.2.0/chat/get.json +27 -1
  137. package/dist/nodes/Telegram/__schema__/v1.2.0/chat/member.json +7 -1
  138. package/dist/nodes/Telegram/__schema__/v1.2.0/message/sendMessage.json +1 -4
  139. package/dist/nodes/Telegram/__schema__/v1.2.0/message/sendPhoto.json +4 -1
  140. package/dist/nodes/Trello/__schema__/v1.0.0/list/getAll.json +7 -1
  141. package/dist/nodes/Trello/__schema__/v1.0.0/list/getCards.json +13 -1
  142. package/dist/nodes/Wordpress/PageDescription.js +0 -17
  143. package/dist/nodes/Wordpress/PageDescription.js.map +1 -1
  144. package/dist/nodes/Wordpress/__schema__/v1.0.0/post/get.json +7 -1
  145. package/dist/nodes/Zoho/__schema__/v1.0.0/contact/getAll.json +15 -16
  146. package/dist/nodes/Zoho/__schema__/v1.0.0/lead/getAll.json +1 -122
  147. package/dist/nodes/Zoom/__schema__/v1.0.0/meeting/getAll.json +1 -4
  148. package/dist/types/credentials.json +3 -2
  149. package/dist/types/nodes.json +9 -7
  150. package/package.json +9 -6
@@ -0,0 +1,189 @@
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 Group_resource_exports = {};
30
+ __export(Group_resource_exports, {
31
+ description: () => description
32
+ });
33
+ module.exports = __toCommonJS(Group_resource_exports);
34
+ var create = __toESM(require("./create.operation"));
35
+ var del = __toESM(require("./delete.operation"));
36
+ var get = __toESM(require("./get.operation"));
37
+ var getAll = __toESM(require("./getAll.operation"));
38
+ var update = __toESM(require("./update.operation"));
39
+ var import_errorHandler = require("../../helpers/errorHandler");
40
+ var import_utils = require("../../helpers/utils");
41
+ const description = [
42
+ {
43
+ displayName: "Operation",
44
+ name: "operation",
45
+ type: "options",
46
+ noDataExpression: true,
47
+ default: "getAll",
48
+ displayOptions: {
49
+ show: {
50
+ resource: ["group"]
51
+ }
52
+ },
53
+ options: [
54
+ {
55
+ name: "Create",
56
+ value: "create",
57
+ description: "Create a new group",
58
+ routing: {
59
+ request: {
60
+ method: "POST",
61
+ headers: {
62
+ "X-Amz-Target": "AWSCognitoIdentityProviderService.CreateGroup"
63
+ },
64
+ ignoreHttpStatusErrors: true
65
+ },
66
+ output: {
67
+ postReceive: [
68
+ import_errorHandler.handleError,
69
+ {
70
+ type: "rootProperty",
71
+ properties: {
72
+ property: "Group"
73
+ }
74
+ }
75
+ ]
76
+ }
77
+ },
78
+ action: "Create group"
79
+ },
80
+ {
81
+ name: "Delete",
82
+ value: "delete",
83
+ description: "Delete an existing group",
84
+ routing: {
85
+ request: {
86
+ method: "POST",
87
+ headers: {
88
+ "X-Amz-Target": "AWSCognitoIdentityProviderService.DeleteGroup"
89
+ },
90
+ ignoreHttpStatusErrors: true
91
+ },
92
+ output: {
93
+ postReceive: [
94
+ import_errorHandler.handleError,
95
+ {
96
+ type: "set",
97
+ properties: {
98
+ value: '={{ { "deleted": true } }}'
99
+ }
100
+ }
101
+ ]
102
+ }
103
+ },
104
+ action: "Delete group"
105
+ },
106
+ {
107
+ name: "Get",
108
+ value: "get",
109
+ description: "Retrieve details of an existing group",
110
+ routing: {
111
+ request: {
112
+ method: "POST",
113
+ headers: {
114
+ "X-Amz-Target": "AWSCognitoIdentityProviderService.GetGroup"
115
+ },
116
+ ignoreHttpStatusErrors: true
117
+ },
118
+ output: {
119
+ postReceive: [import_errorHandler.handleError, import_utils.processGroup]
120
+ }
121
+ },
122
+ action: "Get group"
123
+ },
124
+ {
125
+ name: "Get Many",
126
+ value: "getAll",
127
+ description: "Retrieve a list of groups",
128
+ routing: {
129
+ request: {
130
+ method: "POST",
131
+ headers: {
132
+ "X-Amz-Target": "AWSCognitoIdentityProviderService.ListGroups"
133
+ },
134
+ ignoreHttpStatusErrors: true
135
+ },
136
+ output: {
137
+ postReceive: [
138
+ import_errorHandler.handleError,
139
+ import_utils.processGroup,
140
+ {
141
+ type: "rootProperty",
142
+ properties: {
143
+ property: "Groups"
144
+ }
145
+ }
146
+ ]
147
+ }
148
+ },
149
+ action: "Get many groups"
150
+ },
151
+ {
152
+ name: "Update",
153
+ value: "update",
154
+ description: "Update an existing group",
155
+ routing: {
156
+ request: {
157
+ method: "POST",
158
+ headers: {
159
+ "X-Amz-Target": "AWSCognitoIdentityProviderService.UpdateGroup"
160
+ },
161
+ ignoreHttpStatusErrors: true
162
+ },
163
+ output: {
164
+ postReceive: [
165
+ import_errorHandler.handleError,
166
+ {
167
+ type: "set",
168
+ properties: {
169
+ value: '={{ { "updated": true } }}'
170
+ }
171
+ }
172
+ ]
173
+ }
174
+ },
175
+ action: "Update group"
176
+ }
177
+ ]
178
+ },
179
+ ...create.description,
180
+ ...del.description,
181
+ ...get.description,
182
+ ...getAll.description,
183
+ ...update.description
184
+ ];
185
+ // Annotate the CommonJS export names for ESM import in node:
186
+ 0 && (module.exports = {
187
+ description
188
+ });
189
+ //# sourceMappingURL=Group.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Aws/Cognito/descriptions/group/Group.resource.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\n\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 update from './update.operation';\nimport { handleError } from '../../helpers/errorHandler';\nimport { processGroup } 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: ['group'],\n\t\t\t},\n\t\t},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tname: 'Create',\n\t\t\t\tvalue: 'create',\n\t\t\t\tdescription: 'Create a new 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\theaders: {\n\t\t\t\t\t\t\t'X-Amz-Target': 'AWSCognitoIdentityProviderService.CreateGroup',\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\thandleError,\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: 'Group',\n\t\t\t\t\t\t\t\t},\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\taction: 'Create group',\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 an existing 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\theaders: {\n\t\t\t\t\t\t\t'X-Amz-Target': 'AWSCognitoIdentityProviderService.DeleteGroup',\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\thandleError,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'set',\n\t\t\t\t\t\t\t\tproperties: {\n\t\t\t\t\t\t\t\t\tvalue: '={{ { \"deleted\": true } }}',\n\t\t\t\t\t\t\t\t},\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\taction: 'Delete group',\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 details of an existing 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\theaders: {\n\t\t\t\t\t\t\t'X-Amz-Target': 'AWSCognitoIdentityProviderService.GetGroup',\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, processGroup],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\taction: 'Get group',\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 groups',\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\theaders: {\n\t\t\t\t\t\t\t'X-Amz-Target': 'AWSCognitoIdentityProviderService.ListGroups',\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\thandleError,\n\t\t\t\t\t\t\tprocessGroup,\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: 'Groups',\n\t\t\t\t\t\t\t\t},\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\taction: 'Get many groups',\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 an existing 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\theaders: {\n\t\t\t\t\t\t\t'X-Amz-Target': 'AWSCognitoIdentityProviderService.UpdateGroup',\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\thandleError,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'set',\n\t\t\t\t\t\t\t\tproperties: {\n\t\t\t\t\t\t\t\t\tvalue: '={{ { \"updated\": true } }}',\n\t\t\t\t\t\t\t\t},\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\taction: 'Update group',\n\t\t\t},\n\t\t],\n\t},\n\n\t...create.description,\n\t...del.description,\n\t...get.description,\n\t...getAll.description,\n\t...update.description,\n];\n"],"mappings":"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","names":[]}
@@ -0,0 +1,126 @@
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.description");
27
+ const properties = [
28
+ {
29
+ ...import_common.userPoolResourceLocator,
30
+ description: "Select the user pool to use"
31
+ },
32
+ {
33
+ displayName: "Group Name",
34
+ name: "newGroupName",
35
+ default: "",
36
+ placeholder: "e.g. MyNewGroup",
37
+ description: "The name of the new group to create",
38
+ required: true,
39
+ type: "string",
40
+ validateType: "string",
41
+ routing: {
42
+ send: {
43
+ property: "GroupName",
44
+ type: "body",
45
+ preSend: [
46
+ async function(requestOptions) {
47
+ const newGroupName = this.getNodeParameter("newGroupName", "");
48
+ const groupNameRegex = /^[\p{L}\p{M}\p{S}\p{N}\p{P}]+$/u;
49
+ if (!groupNameRegex.test(newGroupName)) {
50
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), {
51
+ message: "Invalid format for Group Name",
52
+ description: "Group Name should not contain spaces."
53
+ });
54
+ }
55
+ return requestOptions;
56
+ }
57
+ ]
58
+ }
59
+ }
60
+ },
61
+ {
62
+ displayName: "Additional Fields",
63
+ name: "additionalFields",
64
+ default: {},
65
+ options: [
66
+ {
67
+ displayName: "Description",
68
+ name: "description",
69
+ default: "",
70
+ placeholder: "e.g. New group description",
71
+ description: "A description for the new group",
72
+ type: "string",
73
+ routing: {
74
+ send: {
75
+ type: "body",
76
+ property: "Description"
77
+ }
78
+ }
79
+ },
80
+ {
81
+ displayName: "Precedence",
82
+ name: "precedence",
83
+ default: "",
84
+ placeholder: "e.g. 10",
85
+ description: "Precedence value for the group. Lower values indicate higher priority.",
86
+ type: "number",
87
+ routing: {
88
+ send: {
89
+ type: "body",
90
+ property: "Precedence"
91
+ }
92
+ },
93
+ validateType: "number"
94
+ },
95
+ {
96
+ displayName: "Role ARN",
97
+ name: "arn",
98
+ default: "",
99
+ placeholder: "e.g. arn:aws:iam::123456789012:role/GroupRole",
100
+ description: "The role ARN for the group, used for setting claims in tokens",
101
+ type: "string",
102
+ routing: {
103
+ send: {
104
+ type: "body",
105
+ property: "Arn",
106
+ preSend: [import_utils.validateArn]
107
+ }
108
+ }
109
+ }
110
+ ],
111
+ placeholder: "Add Option",
112
+ type: "collection"
113
+ }
114
+ ];
115
+ const displayOptions = {
116
+ show: {
117
+ resource: ["group"],
118
+ operation: ["create"]
119
+ }
120
+ };
121
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
122
+ // Annotate the CommonJS export names for ESM import in node:
123
+ 0 && (module.exports = {
124
+ description
125
+ });
126
+ //# sourceMappingURL=create.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Aws/Cognito/descriptions/group/create.operation.ts"],"sourcesContent":["import type { IExecuteSingleFunctions, IHttpRequestOptions, INodeProperties } from 'n8n-workflow';\nimport { NodeApiError, updateDisplayOptions } from 'n8n-workflow';\n\nimport { validateArn } from '../../helpers/utils';\nimport { userPoolResourceLocator } from '../common.description';\n\nconst properties: INodeProperties[] = [\n\t{\n\t\t...userPoolResourceLocator,\n\t\tdescription: 'Select the user pool to use',\n\t},\n\t{\n\t\tdisplayName: 'Group Name',\n\t\tname: 'newGroupName',\n\t\tdefault: '',\n\t\tplaceholder: 'e.g. MyNewGroup',\n\t\tdescription: 'The name of the new group to create',\n\t\trequired: true,\n\t\ttype: 'string',\n\t\tvalidateType: 'string',\n\t\trouting: {\n\t\t\tsend: {\n\t\t\t\tproperty: 'GroupName',\n\t\t\t\ttype: 'body',\n\t\t\t\tpreSend: [\n\t\t\t\t\tasync function (\n\t\t\t\t\t\tthis: IExecuteSingleFunctions,\n\t\t\t\t\t\trequestOptions: IHttpRequestOptions,\n\t\t\t\t\t): Promise<IHttpRequestOptions> {\n\t\t\t\t\t\tconst newGroupName = this.getNodeParameter('newGroupName', '') as string;\n\t\t\t\t\t\tconst groupNameRegex = /^[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+$/u;\n\t\t\t\t\t\tif (!groupNameRegex.test(newGroupName)) {\n\t\t\t\t\t\t\tthrow new NodeApiError(this.getNode(), {\n\t\t\t\t\t\t\t\tmessage: 'Invalid format for Group Name',\n\t\t\t\t\t\t\t\tdescription: 'Group Name should not contain spaces.',\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn requestOptions;\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Additional Fields',\n\t\tname: 'additionalFields',\n\t\tdefault: {},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tdisplayName: 'Description',\n\t\t\t\tname: 'description',\n\t\t\t\tdefault: '',\n\t\t\t\tplaceholder: 'e.g. New group description',\n\t\t\t\tdescription: 'A description for the new group',\n\t\t\t\ttype: 'string',\n\t\t\t\trouting: {\n\t\t\t\t\tsend: {\n\t\t\t\t\t\ttype: 'body',\n\t\t\t\t\t\tproperty: 'Description',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Precedence',\n\t\t\t\tname: 'precedence',\n\t\t\t\tdefault: '',\n\t\t\t\tplaceholder: 'e.g. 10',\n\t\t\t\tdescription: 'Precedence value for the group. Lower values indicate higher priority.',\n\t\t\t\ttype: 'number',\n\t\t\t\trouting: {\n\t\t\t\t\tsend: {\n\t\t\t\t\t\ttype: 'body',\n\t\t\t\t\t\tproperty: 'Precedence',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tvalidateType: 'number',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Role ARN',\n\t\t\t\tname: 'arn',\n\t\t\t\tdefault: '',\n\t\t\t\tplaceholder: 'e.g. arn:aws:iam::123456789012:role/GroupRole',\n\t\t\t\tdescription: 'The role ARN for the group, used for setting claims in tokens',\n\t\t\t\ttype: 'string',\n\t\t\t\trouting: {\n\t\t\t\t\tsend: {\n\t\t\t\t\t\ttype: 'body',\n\t\t\t\t\t\tproperty: 'Arn',\n\t\t\t\t\t\tpreSend: [validateArn],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t\tplaceholder: 'Add Option',\n\t\ttype: 'collection',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['group'],\n\t\toperation: ['create'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAAmD;AAEnD,mBAA4B;AAC5B,oBAAwC;AAExC,MAAM,aAAgC;AAAA,EACrC;AAAA,IACC,GAAG;AAAA,IACH,aAAa;AAAA,EACd;AAAA,EACA;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAU;AAAA,IACV,MAAM;AAAA,IACN,cAAc;AAAA,IACd,SAAS;AAAA,MACR,MAAM;AAAA,QACL,UAAU;AAAA,QACV,MAAM;AAAA,QACN,SAAS;AAAA,UACR,eAEC,gBAC+B;AAC/B,kBAAM,eAAe,KAAK,iBAAiB,gBAAgB,EAAE;AAC7D,kBAAM,iBAAiB;AACvB,gBAAI,CAAC,eAAe,KAAK,YAAY,GAAG;AACvC,oBAAM,IAAI,iCAAa,KAAK,QAAQ,GAAG;AAAA,gBACtC,SAAS;AAAA,gBACT,aAAa;AAAA,cACd,CAAC;AAAA,YACF;AACA,mBAAO;AAAA,UACR;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IACV,SAAS;AAAA,MACR;AAAA,QACC,aAAa;AAAA,QACb,MAAM;AAAA,QACN,SAAS;AAAA,QACT,aAAa;AAAA,QACb,aAAa;AAAA,QACb,MAAM;AAAA,QACN,SAAS;AAAA,UACR,MAAM;AAAA,YACL,MAAM;AAAA,YACN,UAAU;AAAA,UACX;AAAA,QACD;AAAA,MACD;AAAA,MACA;AAAA,QACC,aAAa;AAAA,QACb,MAAM;AAAA,QACN,SAAS;AAAA,QACT,aAAa;AAAA,QACb,aAAa;AAAA,QACb,MAAM;AAAA,QACN,SAAS;AAAA,UACR,MAAM;AAAA,YACL,MAAM;AAAA,YACN,UAAU;AAAA,UACX;AAAA,QACD;AAAA,QACA,cAAc;AAAA,MACf;AAAA,MACA;AAAA,QACC,aAAa;AAAA,QACb,MAAM;AAAA,QACN,SAAS;AAAA,QACT,aAAa;AAAA,QACb,aAAa;AAAA,QACb,MAAM;AAAA,QACN,SAAS;AAAA,UACR,MAAM;AAAA,YACL,MAAM;AAAA,YACN,UAAU;AAAA,YACV,SAAS,CAAC,wBAAW;AAAA,UACtB;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,IACA,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,OAAO;AAAA,IAClB,WAAW,CAAC,QAAQ;AAAA,EACrB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","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 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.description");
26
+ const properties = [
27
+ {
28
+ ...import_common.userPoolResourceLocator,
29
+ description: "Select the user pool to use"
30
+ },
31
+ {
32
+ ...import_common.groupResourceLocator,
33
+ description: "Select the group you want to delete"
34
+ }
35
+ ];
36
+ const displayOptions = {
37
+ show: {
38
+ resource: ["group"],
39
+ operation: ["delete"]
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=delete.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Aws/Cognito/descriptions/group/delete.operation.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\nimport { updateDisplayOptions } from 'n8n-workflow';\n\nimport { groupResourceLocator, userPoolResourceLocator } from '../common.description';\n\nconst properties: INodeProperties[] = [\n\t{\n\t\t...userPoolResourceLocator,\n\t\tdescription: 'Select the user pool to use',\n\t},\n\t{\n\t\t...groupResourceLocator,\n\t\tdescription: 'Select the group you want to delete',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['group'],\n\t\toperation: ['delete'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAAqC;AAErC,oBAA8D;AAE9D,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,OAAO;AAAA,IAClB,WAAW,CAAC,QAAQ;AAAA,EACrB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
@@ -0,0 +1,54 @@
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.description");
26
+ const properties = [
27
+ {
28
+ ...import_common.userPoolResourceLocator,
29
+ description: "Select the user pool to use"
30
+ },
31
+ {
32
+ ...import_common.groupResourceLocator,
33
+ description: "Select the group you want to retrieve"
34
+ },
35
+ {
36
+ displayName: "Include Users",
37
+ name: "includeUsers",
38
+ type: "boolean",
39
+ default: false,
40
+ description: "Whether to include a list of users in the group"
41
+ }
42
+ ];
43
+ const displayOptions = {
44
+ show: {
45
+ resource: ["group"],
46
+ operation: ["get"]
47
+ }
48
+ };
49
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
50
+ // Annotate the CommonJS export names for ESM import in node:
51
+ 0 && (module.exports = {
52
+ description
53
+ });
54
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Aws/Cognito/descriptions/group/get.operation.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\nimport { updateDisplayOptions } from 'n8n-workflow';\n\nimport { groupResourceLocator, userPoolResourceLocator } from '../common.description';\n\nconst properties: INodeProperties[] = [\n\t{\n\t\t...userPoolResourceLocator,\n\t\tdescription: 'Select the user pool to use',\n\t},\n\t{\n\t\t...groupResourceLocator,\n\t\tdescription: 'Select the group you want to retrieve',\n\t},\n\t{\n\t\tdisplayName: 'Include Users',\n\t\tname: 'includeUsers',\n\t\ttype: 'boolean',\n\t\tdefault: false,\n\t\tdescription: 'Whether to include a list of users in the group',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['group'],\n\t\toperation: ['get'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAAqC;AAErC,oBAA8D;AAE9D,MAAM,aAAgC;AAAA,EACrC;AAAA,IACC,GAAG;AAAA,IACH,aAAa;AAAA,EACd;AAAA,EACA;AAAA,IACC,GAAG;AAAA,IACH,aAAa;AAAA,EACd;AAAA,EACA;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,EACd;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,OAAO;AAAA,IAClB,WAAW,CAAC,KAAK;AAAA,EAClB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","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 getAll_operation_exports = {};
20
+ __export(getAll_operation_exports, {
21
+ description: () => description
22
+ });
23
+ module.exports = __toCommonJS(getAll_operation_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_common = require("../common.description");
26
+ const properties = [
27
+ {
28
+ ...import_common.userPoolResourceLocator,
29
+ description: "Select the user pool to use"
30
+ },
31
+ {
32
+ displayName: "Return All",
33
+ name: "returnAll",
34
+ default: false,
35
+ description: "Whether to return all results or only up to a given limit",
36
+ type: "boolean",
37
+ routing: {
38
+ operations: {
39
+ pagination: {
40
+ type: "generic",
41
+ properties: {
42
+ continue: "={{ !!$response.body?.NextToken }}",
43
+ request: {
44
+ body: {
45
+ NextToken: "={{ $response.body?.NextToken }}"
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ },
53
+ {
54
+ displayName: "Limit",
55
+ name: "limit",
56
+ required: true,
57
+ type: "number",
58
+ typeOptions: {
59
+ minValue: 1,
60
+ maxValue: 60
61
+ },
62
+ default: 50,
63
+ description: "Max number of results to return",
64
+ displayOptions: {
65
+ show: {
66
+ returnAll: [false]
67
+ }
68
+ },
69
+ routing: {
70
+ send: {
71
+ type: "body",
72
+ property: "Limit"
73
+ }
74
+ }
75
+ },
76
+ {
77
+ displayName: "Include Users",
78
+ name: "includeUsers",
79
+ type: "boolean",
80
+ default: false,
81
+ description: "Whether to include a list of users in the group"
82
+ }
83
+ ];
84
+ const displayOptions = {
85
+ show: {
86
+ resource: ["group"],
87
+ operation: ["getAll"]
88
+ }
89
+ };
90
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
91
+ // Annotate the CommonJS export names for ESM import in node:
92
+ 0 && (module.exports = {
93
+ description
94
+ });
95
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Aws/Cognito/descriptions/group/getAll.operation.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\nimport { updateDisplayOptions } from 'n8n-workflow';\n\nimport { userPoolResourceLocator } from '../common.description';\n\nconst properties: INodeProperties[] = [\n\t{\n\t\t...userPoolResourceLocator,\n\t\tdescription: 'Select the user pool to use',\n\t},\n\t{\n\t\tdisplayName: 'Return All',\n\t\tname: 'returnAll',\n\t\tdefault: false,\n\t\tdescription: 'Whether to return all results or only up to a given limit',\n\t\ttype: 'boolean',\n\t\trouting: {\n\t\t\toperations: {\n\t\t\t\tpagination: {\n\t\t\t\t\ttype: 'generic',\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tcontinue: '={{ !!$response.body?.NextToken }}',\n\t\t\t\t\t\trequest: {\n\t\t\t\t\t\t\tbody: {\n\t\t\t\t\t\t\t\tNextToken: '={{ $response.body?.NextToken }}',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Limit',\n\t\tname: 'limit',\n\t\trequired: true,\n\t\ttype: 'number',\n\t\ttypeOptions: {\n\t\t\tminValue: 1,\n\t\t\tmaxValue: 60,\n\t\t},\n\t\tdefault: 50,\n\t\tdescription: 'Max number of results to return',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\treturnAll: [false],\n\t\t\t},\n\t\t},\n\t\trouting: {\n\t\t\tsend: {\n\t\t\t\ttype: 'body',\n\t\t\t\tproperty: 'Limit',\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Include Users',\n\t\tname: 'includeUsers',\n\t\ttype: 'boolean',\n\t\tdefault: false,\n\t\tdescription: 'Whether to include a list of users in the group',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['group'],\n\t\toperation: ['getAll'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAAqC;AAErC,oBAAwC;AAExC,MAAM,aAAgC;AAAA,EACrC;AAAA,IACC,GAAG;AAAA,IACH,aAAa;AAAA,EACd;AAAA,EACA;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,MACR,YAAY;AAAA,QACX,YAAY;AAAA,UACX,MAAM;AAAA,UACN,YAAY;AAAA,YACX,UAAU;AAAA,YACV,SAAS;AAAA,cACR,MAAM;AAAA,gBACL,WAAW;AAAA,cACZ;AAAA,YACD;AAAA,UACD;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,aAAa;AAAA,MACZ,UAAU;AAAA,MACV,UAAU;AAAA,IACX;AAAA,IACA,SAAS;AAAA,IACT,aAAa;AAAA,IACb,gBAAgB;AAAA,MACf,MAAM;AAAA,QACL,WAAW,CAAC,KAAK;AAAA,MAClB;AAAA,IACD;AAAA,IACA,SAAS;AAAA,MACR,MAAM;AAAA,QACL,MAAM;AAAA,QACN,UAAU;AAAA,MACX;AAAA,IACD;AAAA,EACD;AAAA,EACA;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,EACd;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,OAAO;AAAA,IAClB,WAAW,CAAC,QAAQ;AAAA,EACrB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
@@ -0,0 +1,120 @@
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 update_operation_exports = {};
20
+ __export(update_operation_exports, {
21
+ description: () => description
22
+ });
23
+ module.exports = __toCommonJS(update_operation_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_utils = require("../../helpers/utils");
26
+ var import_common = require("../common.description");
27
+ const properties = [
28
+ {
29
+ ...import_common.userPoolResourceLocator,
30
+ description: "Select the user pool to use"
31
+ },
32
+ {
33
+ ...import_common.groupResourceLocator,
34
+ description: "Select the group you want to update"
35
+ },
36
+ {
37
+ displayName: "Additional Fields",
38
+ name: "additionalFields",
39
+ placeholder: "Add Option",
40
+ type: "collection",
41
+ default: {},
42
+ routing: {
43
+ send: {
44
+ preSend: [
45
+ async function(requestOptions) {
46
+ const additionalFields = this.getNodeParameter("additionalFields", {});
47
+ const arn = additionalFields.arn;
48
+ const description2 = additionalFields.description;
49
+ const precedence = additionalFields.precedence;
50
+ if (!description2 && !precedence && !arn) {
51
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), {
52
+ message: "At least one field must be provided for update.",
53
+ description: "Please provide a value for Description, Precedence, or Role ARN."
54
+ });
55
+ }
56
+ return requestOptions;
57
+ }
58
+ ]
59
+ }
60
+ },
61
+ options: [
62
+ {
63
+ displayName: "Description",
64
+ name: "description",
65
+ default: "",
66
+ placeholder: "e.g. Updated group description",
67
+ description: "A new description for the group",
68
+ type: "string",
69
+ routing: {
70
+ send: {
71
+ type: "body",
72
+ property: "Description"
73
+ }
74
+ }
75
+ },
76
+ {
77
+ displayName: "Precedence",
78
+ name: "precedence",
79
+ default: "",
80
+ placeholder: "e.g. 10",
81
+ description: "The new precedence value for the group. Lower values indicate higher priority.",
82
+ type: "number",
83
+ routing: {
84
+ send: {
85
+ type: "body",
86
+ property: "Precedence"
87
+ }
88
+ },
89
+ validateType: "number"
90
+ },
91
+ {
92
+ displayName: "Role ARN",
93
+ name: "arn",
94
+ default: "",
95
+ placeholder: "e.g. arn:aws:iam::123456789012:role/GroupRole",
96
+ description: "A new role Amazon Resource Name (ARN) for the group. Used for setting claims in tokens.",
97
+ type: "string",
98
+ routing: {
99
+ send: {
100
+ type: "body",
101
+ property: "Arn",
102
+ preSend: [import_utils.validateArn]
103
+ }
104
+ }
105
+ }
106
+ ]
107
+ }
108
+ ];
109
+ const displayOptions = {
110
+ show: {
111
+ resource: ["group"],
112
+ operation: ["update"]
113
+ }
114
+ };
115
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
116
+ // Annotate the CommonJS export names for ESM import in node:
117
+ 0 && (module.exports = {
118
+ description
119
+ });
120
+ //# sourceMappingURL=update.operation.js.map