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,60 @@
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 removeFromGroup_operation_exports = {};
20
+ __export(removeFromGroup_operation_exports, {
21
+ description: () => description
22
+ });
23
+ module.exports = __toCommonJS(removeFromGroup_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.userResourceLocator,
33
+ description: "Select the user you want to remove from the group"
34
+ },
35
+ {
36
+ ...import_common.groupResourceLocator,
37
+ description: "Select the group you want to remove the user from",
38
+ modes: import_common.groupResourceLocator.modes?.map(
39
+ (mode) => mode.name === "list" ? {
40
+ ...mode,
41
+ typeOptions: {
42
+ ...mode.typeOptions,
43
+ searchListMethod: "searchGroupsForUser"
44
+ }
45
+ } : mode
46
+ )
47
+ }
48
+ ];
49
+ const displayOptions = {
50
+ show: {
51
+ resource: ["user"],
52
+ operation: ["removeFromGroup"]
53
+ }
54
+ };
55
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
56
+ // Annotate the CommonJS export names for ESM import in node:
57
+ 0 && (module.exports = {
58
+ description
59
+ });
60
+ //# sourceMappingURL=removeFromGroup.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Aws/Cognito/descriptions/user/removeFromGroup.operation.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\nimport { updateDisplayOptions } from 'n8n-workflow';\n\nimport {\n\tgroupResourceLocator,\n\tuserPoolResourceLocator,\n\tuserResourceLocator,\n} 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...userResourceLocator,\n\t\tdescription: 'Select the user you want to remove from the group',\n\t},\n\t{\n\t\t...groupResourceLocator,\n\t\tdescription: 'Select the group you want to remove the user from',\n\t\tmodes: groupResourceLocator.modes?.map((mode) =>\n\t\t\tmode.name === 'list'\n\t\t\t\t? {\n\t\t\t\t\t\t...mode,\n\t\t\t\t\t\ttypeOptions: {\n\t\t\t\t\t\t\t...mode.typeOptions,\n\t\t\t\t\t\t\tsearchListMethod: 'searchGroupsForUser',\n\t\t\t\t\t\t},\n\t\t\t\t\t}\n\t\t\t\t: mode,\n\t\t),\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['user'],\n\t\toperation: ['removeFromGroup'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAAqC;AAErC,oBAIO;AAEP,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,GAAG;AAAA,IACH,aAAa;AAAA,IACb,OAAO,mCAAqB,OAAO;AAAA,MAAI,CAAC,SACvC,KAAK,SAAS,SACX;AAAA,QACA,GAAG;AAAA,QACH,aAAa;AAAA,UACZ,GAAG,KAAK;AAAA,UACR,kBAAkB;AAAA,QACnB;AAAA,MACD,IACC;AAAA,IACJ;AAAA,EACD;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,MAAM;AAAA,IACjB,WAAW,CAAC,iBAAiB;AAAA,EAC9B;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
@@ -0,0 +1,189 @@
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
+ import_common.userResourceLocator,
33
+ {
34
+ displayName: "User Attributes",
35
+ name: "userAttributes",
36
+ type: "fixedCollection",
37
+ placeholder: "Add Attribute",
38
+ default: {
39
+ attributes: []
40
+ },
41
+ required: true,
42
+ description: "Attributes to update for the user",
43
+ typeOptions: {
44
+ multipleValues: true
45
+ },
46
+ routing: {
47
+ send: {
48
+ preSend: [import_utils.preSendAttributes]
49
+ }
50
+ },
51
+ options: [
52
+ {
53
+ displayName: "Attributes",
54
+ name: "attributes",
55
+ values: [
56
+ {
57
+ displayName: "Attribute Type",
58
+ name: "attributeType",
59
+ type: "options",
60
+ default: "standard",
61
+ options: [
62
+ {
63
+ name: "Standard Attribute",
64
+ value: "standard"
65
+ },
66
+ {
67
+ name: "Custom Attribute",
68
+ value: "custom"
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ displayName: "Standard Attribute",
74
+ name: "standardName",
75
+ type: "options",
76
+ default: "address",
77
+ options: [
78
+ {
79
+ name: "Address",
80
+ value: "address"
81
+ },
82
+ {
83
+ name: "Birthdate",
84
+ value: "birthdate"
85
+ },
86
+ {
87
+ name: "Email",
88
+ value: "email"
89
+ },
90
+ {
91
+ name: "Family Name",
92
+ value: "family_name"
93
+ },
94
+ {
95
+ name: "Gender",
96
+ value: "gender"
97
+ },
98
+ {
99
+ name: "Given Name",
100
+ value: "given_name"
101
+ },
102
+ {
103
+ name: "Locale",
104
+ value: "locale"
105
+ },
106
+ {
107
+ name: "Middle Name",
108
+ value: "middle_name"
109
+ },
110
+ {
111
+ name: "Name",
112
+ value: "name"
113
+ },
114
+ {
115
+ name: "Nickname",
116
+ value: "nickname"
117
+ },
118
+ {
119
+ name: "Phone Number",
120
+ value: "phone_number"
121
+ },
122
+ {
123
+ name: "Preferred Username",
124
+ value: "preferred_username"
125
+ },
126
+ {
127
+ name: "Profile Picture",
128
+ value: "profilepicture"
129
+ },
130
+ {
131
+ name: "Updated At",
132
+ value: "updated_at"
133
+ },
134
+ {
135
+ name: "User Sub",
136
+ value: "sub"
137
+ },
138
+ {
139
+ name: "Website",
140
+ value: "website"
141
+ },
142
+ {
143
+ name: "Zone Info",
144
+ value: "zoneinfo"
145
+ }
146
+ ],
147
+ displayOptions: {
148
+ show: {
149
+ attributeType: ["standard"]
150
+ }
151
+ }
152
+ },
153
+ {
154
+ displayName: "Custom Attribute Name",
155
+ name: "customName",
156
+ type: "string",
157
+ default: "",
158
+ placeholder: "custom:myAttribute",
159
+ description: 'The name of the custom attribute (must start with "custom:")',
160
+ displayOptions: {
161
+ show: {
162
+ attributeType: ["custom"]
163
+ }
164
+ }
165
+ },
166
+ {
167
+ displayName: "Value",
168
+ name: "value",
169
+ type: "string",
170
+ default: "",
171
+ description: "The value of the attribute"
172
+ }
173
+ ]
174
+ }
175
+ ]
176
+ }
177
+ ];
178
+ const displayOptions = {
179
+ show: {
180
+ resource: ["user"],
181
+ operation: ["update"]
182
+ }
183
+ };
184
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
185
+ // Annotate the CommonJS export names for ESM import in node:
186
+ 0 && (module.exports = {
187
+ description
188
+ });
189
+ //# sourceMappingURL=update.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Aws/Cognito/descriptions/user/update.operation.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\nimport { updateDisplayOptions } from 'n8n-workflow';\n\nimport { preSendAttributes } from '../../helpers/utils';\nimport { userPoolResourceLocator, userResourceLocator } 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\tuserResourceLocator,\n\t{\n\t\tdisplayName: 'User Attributes',\n\t\tname: 'userAttributes',\n\t\ttype: 'fixedCollection',\n\t\tplaceholder: 'Add Attribute',\n\t\tdefault: {\n\t\t\tattributes: [],\n\t\t},\n\t\trequired: true,\n\t\tdescription: 'Attributes to update for the user',\n\t\ttypeOptions: {\n\t\t\tmultipleValues: true,\n\t\t},\n\t\trouting: {\n\t\t\tsend: {\n\t\t\t\tpreSend: [preSendAttributes],\n\t\t\t},\n\t\t},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tdisplayName: 'Attributes',\n\t\t\t\tname: 'attributes',\n\t\t\t\tvalues: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Attribute Type',\n\t\t\t\t\t\tname: 'attributeType',\n\t\t\t\t\t\ttype: 'options',\n\t\t\t\t\t\tdefault: 'standard',\n\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Standard Attribute',\n\t\t\t\t\t\t\t\tvalue: 'standard',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Custom Attribute',\n\t\t\t\t\t\t\t\tvalue: 'custom',\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\t{\n\t\t\t\t\t\tdisplayName: 'Standard Attribute',\n\t\t\t\t\t\tname: 'standardName',\n\t\t\t\t\t\ttype: 'options',\n\t\t\t\t\t\tdefault: 'address',\n\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Address',\n\t\t\t\t\t\t\t\tvalue: 'address',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Birthdate',\n\t\t\t\t\t\t\t\tvalue: 'birthdate',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Email',\n\t\t\t\t\t\t\t\tvalue: 'email',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Family Name',\n\t\t\t\t\t\t\t\tvalue: 'family_name',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Gender',\n\t\t\t\t\t\t\t\tvalue: 'gender',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Given Name',\n\t\t\t\t\t\t\t\tvalue: 'given_name',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Locale',\n\t\t\t\t\t\t\t\tvalue: 'locale',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Middle Name',\n\t\t\t\t\t\t\t\tvalue: 'middle_name',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Name',\n\t\t\t\t\t\t\t\tvalue: 'name',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Nickname',\n\t\t\t\t\t\t\t\tvalue: 'nickname',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Phone Number',\n\t\t\t\t\t\t\t\tvalue: 'phone_number',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Preferred Username',\n\t\t\t\t\t\t\t\tvalue: 'preferred_username',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Profile Picture',\n\t\t\t\t\t\t\t\tvalue: 'profilepicture',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Updated At',\n\t\t\t\t\t\t\t\tvalue: 'updated_at',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'User Sub',\n\t\t\t\t\t\t\t\tvalue: 'sub',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Website',\n\t\t\t\t\t\t\t\tvalue: 'website',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Zone Info',\n\t\t\t\t\t\t\t\tvalue: 'zoneinfo',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\tattributeType: ['standard'],\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\t{\n\t\t\t\t\t\tdisplayName: 'Custom Attribute Name',\n\t\t\t\t\t\tname: 'customName',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\tplaceholder: 'custom:myAttribute',\n\t\t\t\t\t\tdescription: 'The name of the custom attribute (must start with \"custom:\")',\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\tattributeType: ['custom'],\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\t{\n\t\t\t\t\t\tdisplayName: 'Value',\n\t\t\t\t\t\tname: 'value',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\tdescription: 'The value of the attribute',\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: ['update'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":"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","names":[]}
@@ -0,0 +1,81 @@
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 UserPool_resource_exports = {};
30
+ __export(UserPool_resource_exports, {
31
+ description: () => description
32
+ });
33
+ module.exports = __toCommonJS(UserPool_resource_exports);
34
+ var get = __toESM(require("./get.operation"));
35
+ var import_utils = require("../../helpers/utils");
36
+ const description = [
37
+ {
38
+ displayName: "Operation",
39
+ name: "operation",
40
+ type: "options",
41
+ noDataExpression: true,
42
+ displayOptions: {
43
+ show: {
44
+ resource: ["userPool"]
45
+ }
46
+ },
47
+ options: [
48
+ {
49
+ name: "Get",
50
+ value: "get",
51
+ action: "Get user pool",
52
+ routing: {
53
+ request: {
54
+ method: "POST",
55
+ headers: {
56
+ "X-Amz-Target": "AWSCognitoIdentityProviderService.DescribeUserPool"
57
+ }
58
+ },
59
+ output: {
60
+ postReceive: [
61
+ import_utils.simplifyUserPool,
62
+ {
63
+ type: "rootProperty",
64
+ properties: {
65
+ property: "UserPool"
66
+ }
67
+ }
68
+ ]
69
+ }
70
+ }
71
+ }
72
+ ],
73
+ default: "get"
74
+ },
75
+ ...get.description
76
+ ];
77
+ // Annotate the CommonJS export names for ESM import in node:
78
+ 0 && (module.exports = {
79
+ description
80
+ });
81
+ //# sourceMappingURL=UserPool.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Aws/Cognito/descriptions/userPool/UserPool.resource.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\n\nimport * as get from './get.operation';\nimport { simplifyUserPool } from '../../helpers/utils';\n\nexport const description: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'Operation',\n\t\tname: 'operation',\n\t\ttype: 'options',\n\t\tnoDataExpression: true,\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['userPool'],\n\t\t\t},\n\t\t},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tname: 'Get',\n\t\t\t\tvalue: 'get',\n\t\t\t\taction: 'Get user pool',\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.DescribeUserPool',\n\t\t\t\t\t\t},\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\tsimplifyUserPool,\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: 'UserPool',\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},\n\t\t],\n\t\tdefault: 'get',\n\t},\n\n\t...get.description,\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,UAAqB;AACrB,mBAAiC;AAE1B,MAAM,cAAiC;AAAA,EAC7C;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,MAAM;AAAA,IACN,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,MACf,MAAM;AAAA,QACL,UAAU,CAAC,UAAU;AAAA,MACtB;AAAA,IACD;AAAA,IACA,SAAS;AAAA,MACR;AAAA,QACC,MAAM;AAAA,QACN,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,SAAS;AAAA,UACR,SAAS;AAAA,YACR,QAAQ;AAAA,YACR,SAAS;AAAA,cACR,gBAAgB;AAAA,YACjB;AAAA,UACD;AAAA,UACA,QAAQ;AAAA,YACP,aAAa;AAAA,cACZ;AAAA,cACA;AAAA,gBACC,MAAM;AAAA,gBACN,YAAY;AAAA,kBACX,UAAU;AAAA,gBACX;AAAA,cACD;AAAA,YACD;AAAA,UACD;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,IACA,SAAS;AAAA,EACV;AAAA,EAEA,GAAG,IAAI;AACR;","names":[]}
@@ -0,0 +1,50 @@
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 retrieve"
30
+ },
31
+ {
32
+ displayName: "Simplify",
33
+ name: "simple",
34
+ type: "boolean",
35
+ default: true,
36
+ description: "Whether to return a simplified version of the response instead of the raw data"
37
+ }
38
+ ];
39
+ const displayOptions = {
40
+ show: {
41
+ resource: ["userPool"],
42
+ operation: ["get"]
43
+ }
44
+ };
45
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
46
+ // Annotate the CommonJS export names for ESM import in node:
47
+ 0 && (module.exports = {
48
+ description
49
+ });
50
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Aws/Cognito/descriptions/userPool/get.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 retrieve',\n\t},\n\t{\n\t\tdisplayName: 'Simplify',\n\t\tname: 'simple',\n\t\ttype: 'boolean',\n\t\tdefault: true,\n\t\tdescription: 'Whether to return a simplified version of the response instead of the raw data',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['userPool'],\n\t\toperation: ['get'],\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,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,EACd;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,UAAU;AAAA,IACrB,WAAW,CAAC,KAAK;AAAA,EAClB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var constants_exports = {};
20
+ __export(constants_exports, {
21
+ ERROR_MESSAGES: () => ERROR_MESSAGES,
22
+ HeaderConstants: () => HeaderConstants
23
+ });
24
+ module.exports = __toCommonJS(constants_exports);
25
+ const HeaderConstants = {
26
+ AUTHORIZATION: "authorization",
27
+ X_MS_CONTINUATION: "x-ms-continuation",
28
+ X_MS_COSMOS_OFFER_AUTOPILOT_SETTING: "x-ms-cosmos-offer-autopilot-setting",
29
+ X_MS_DOCUMENTDB_IS_UPSERT: "x-ms-documentdb-is-upsert",
30
+ X_MS_DOCUMENTDB_PARTITIONKEY: "x-ms-documentdb-partitionkey",
31
+ X_MS_MAX_ITEM_COUNT: "x-ms-max-item-count",
32
+ X_MS_OFFER_THROUGHPUT: "x-ms-offer-throughput"
33
+ };
34
+ const ERROR_MESSAGES = {
35
+ ResourceNotFound: {
36
+ Group: {
37
+ delete: {
38
+ message: "The group you are trying to delete could not be found.",
39
+ description: 'Adjust the "Group" parameter setting to delete the group correctly.'
40
+ },
41
+ get: {
42
+ message: "The group you are trying to retrieve could not be found.",
43
+ description: 'Adjust the "Group" parameter setting to retrieve the group correctly.'
44
+ },
45
+ update: {
46
+ message: "The group you are trying to update could not be found.",
47
+ description: 'Adjust the "Group" parameter setting to update the group correctly.'
48
+ }
49
+ },
50
+ User: {
51
+ delete: {
52
+ message: "The user are trying to retrieve could not be found.",
53
+ description: 'Adjust the "User" parameter setting to delete the user correctly.'
54
+ },
55
+ get: {
56
+ message: "The user you are trying to retrieve could not be found.",
57
+ description: 'Adjust the "User" parameter setting to retrieve the user correctly.'
58
+ },
59
+ update: {
60
+ message: "The user you are trying to update could not be found.",
61
+ description: 'Adjust the "User" parameter setting to update the user correctly.'
62
+ }
63
+ }
64
+ },
65
+ EntityAlreadyExists: {
66
+ Group: {
67
+ message: "The group you are trying to create already exists.",
68
+ description: 'Adjust the "Group Name" parameter setting to create the group correctly.'
69
+ },
70
+ User: {
71
+ message: "The user you are trying to create already exists.",
72
+ description: 'Adjust the "User Name" parameter setting to create the user correctly.'
73
+ }
74
+ },
75
+ UserGroup: {
76
+ add: {
77
+ message: "The user/group you are trying to add could not be found.",
78
+ description: 'Adjust the "User" and "Group" parameters to add the user to the group correctly.'
79
+ },
80
+ remove: {
81
+ message: "The user/group you are trying to remove could not be found.",
82
+ description: 'Adjust the "User" and "Group" parameters to remove the user from the group correctly.'
83
+ }
84
+ }
85
+ };
86
+ // Annotate the CommonJS export names for ESM import in node:
87
+ 0 && (module.exports = {
88
+ ERROR_MESSAGES,
89
+ HeaderConstants
90
+ });
91
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Aws/Cognito/helpers/constants.ts"],"sourcesContent":["export const HeaderConstants = {\n\tAUTHORIZATION: 'authorization',\n\tX_MS_CONTINUATION: 'x-ms-continuation',\n\tX_MS_COSMOS_OFFER_AUTOPILOT_SETTING: 'x-ms-cosmos-offer-autopilot-setting',\n\tX_MS_DOCUMENTDB_IS_UPSERT: 'x-ms-documentdb-is-upsert',\n\tX_MS_DOCUMENTDB_PARTITIONKEY: 'x-ms-documentdb-partitionkey',\n\tX_MS_MAX_ITEM_COUNT: 'x-ms-max-item-count',\n\tX_MS_OFFER_THROUGHPUT: 'x-ms-offer-throughput',\n};\n\nexport const ERROR_MESSAGES = {\n\tResourceNotFound: {\n\t\tGroup: {\n\t\t\tdelete: {\n\t\t\t\tmessage: 'The group you are trying to delete could not be found.',\n\t\t\t\tdescription: 'Adjust the \"Group\" parameter setting to delete the group correctly.',\n\t\t\t},\n\t\t\tget: {\n\t\t\t\tmessage: 'The group you are trying to retrieve could not be found.',\n\t\t\t\tdescription: 'Adjust the \"Group\" parameter setting to retrieve the group correctly.',\n\t\t\t},\n\t\t\tupdate: {\n\t\t\t\tmessage: 'The group you are trying to update could not be found.',\n\t\t\t\tdescription: 'Adjust the \"Group\" parameter setting to update the group correctly.',\n\t\t\t},\n\t\t},\n\t\tUser: {\n\t\t\tdelete: {\n\t\t\t\tmessage: 'The user are trying to retrieve could not be found.',\n\t\t\t\tdescription: 'Adjust the \"User\" parameter setting to delete the user correctly.',\n\t\t\t},\n\t\t\tget: {\n\t\t\t\tmessage: 'The user you are trying to retrieve could not be found.',\n\t\t\t\tdescription: 'Adjust the \"User\" parameter setting to retrieve the user correctly.',\n\t\t\t},\n\t\t\tupdate: {\n\t\t\t\tmessage: 'The user you are trying to update could not be found.',\n\t\t\t\tdescription: 'Adjust the \"User\" parameter setting to update the user correctly.',\n\t\t\t},\n\t\t},\n\t},\n\tEntityAlreadyExists: {\n\t\tGroup: {\n\t\t\tmessage: 'The group you are trying to create already exists.',\n\t\t\tdescription: 'Adjust the \"Group Name\" parameter setting to create the group correctly.',\n\t\t},\n\t\tUser: {\n\t\t\tmessage: 'The user you are trying to create already exists.',\n\t\t\tdescription: 'Adjust the \"User Name\" parameter setting to create the user correctly.',\n\t\t},\n\t},\n\tUserGroup: {\n\t\tadd: {\n\t\t\tmessage: 'The user/group you are trying to add could not be found.',\n\t\t\tdescription:\n\t\t\t\t'Adjust the \"User\" and \"Group\" parameters to add the user to the group correctly.',\n\t\t},\n\t\tremove: {\n\t\t\tmessage: 'The user/group you are trying to remove could not be found.',\n\t\t\tdescription:\n\t\t\t\t'Adjust the \"User\" and \"Group\" parameters to remove the user from the group correctly.',\n\t\t},\n\t},\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,kBAAkB;AAAA,EAC9B,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,qCAAqC;AAAA,EACrC,2BAA2B;AAAA,EAC3B,8BAA8B;AAAA,EAC9B,qBAAqB;AAAA,EACrB,uBAAuB;AACxB;AAEO,MAAM,iBAAiB;AAAA,EAC7B,kBAAkB;AAAA,IACjB,OAAO;AAAA,MACN,QAAQ;AAAA,QACP,SAAS;AAAA,QACT,aAAa;AAAA,MACd;AAAA,MACA,KAAK;AAAA,QACJ,SAAS;AAAA,QACT,aAAa;AAAA,MACd;AAAA,MACA,QAAQ;AAAA,QACP,SAAS;AAAA,QACT,aAAa;AAAA,MACd;AAAA,IACD;AAAA,IACA,MAAM;AAAA,MACL,QAAQ;AAAA,QACP,SAAS;AAAA,QACT,aAAa;AAAA,MACd;AAAA,MACA,KAAK;AAAA,QACJ,SAAS;AAAA,QACT,aAAa;AAAA,MACd;AAAA,MACA,QAAQ;AAAA,QACP,SAAS;AAAA,QACT,aAAa;AAAA,MACd;AAAA,IACD;AAAA,EACD;AAAA,EACA,qBAAqB;AAAA,IACpB,OAAO;AAAA,MACN,SAAS;AAAA,MACT,aAAa;AAAA,IACd;AAAA,IACA,MAAM;AAAA,MACL,SAAS;AAAA,MACT,aAAa;AAAA,IACd;AAAA,EACD;AAAA,EACA,WAAW;AAAA,IACV,KAAK;AAAA,MACJ,SAAS;AAAA,MACT,aACC;AAAA,IACF;AAAA,IACA,QAAQ;AAAA,MACP,SAAS;AAAA,MACT,aACC;AAAA,IACF;AAAA,EACD;AACD;","names":[]}
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var errorHandler_exports = {};
20
+ __export(errorHandler_exports, {
21
+ handleError: () => handleError
22
+ });
23
+ module.exports = __toCommonJS(errorHandler_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_constants = require("./constants");
26
+ function mapErrorToResponse(errorType, resource, operation, inputValue) {
27
+ const op = operation;
28
+ const nameLabel = resource.charAt(0).toUpperCase() + resource.slice(1);
29
+ const valuePart = inputValue ? ` "${inputValue}"` : "";
30
+ const notFoundMessage = (base, suffix) => ({
31
+ ...base,
32
+ message: `${nameLabel}${valuePart} ${suffix}`
33
+ });
34
+ const isNotFound = [
35
+ "UserNotFoundException",
36
+ "ResourceNotFoundException",
37
+ "NoSuchEntity"
38
+ ].includes(errorType);
39
+ const isExists = [
40
+ "UsernameExistsException",
41
+ "EntityAlreadyExists",
42
+ "GroupExistsException"
43
+ ].includes(errorType);
44
+ if (isNotFound) {
45
+ if (resource === "user") {
46
+ if (operation === "addToGroup") {
47
+ return notFoundMessage(import_constants.ERROR_MESSAGES.UserGroup.add, "not found while adding to group.");
48
+ }
49
+ if (operation === "removeFromGroup") {
50
+ return notFoundMessage(
51
+ import_constants.ERROR_MESSAGES.UserGroup.remove,
52
+ "not found while removing from group."
53
+ );
54
+ }
55
+ return notFoundMessage(import_constants.ERROR_MESSAGES.ResourceNotFound.User[op], "not found.");
56
+ }
57
+ if (resource === "group") {
58
+ return notFoundMessage(import_constants.ERROR_MESSAGES.ResourceNotFound.Group[op], "not found.");
59
+ }
60
+ }
61
+ if (isExists) {
62
+ const existsMessage = `${nameLabel}${valuePart} already exists.`;
63
+ if (resource === "user") {
64
+ return { ...import_constants.ERROR_MESSAGES.EntityAlreadyExists.User, message: existsMessage };
65
+ }
66
+ if (resource === "group") {
67
+ return { ...import_constants.ERROR_MESSAGES.EntityAlreadyExists.Group, message: existsMessage };
68
+ }
69
+ }
70
+ return void 0;
71
+ }
72
+ async function handleError(data, response) {
73
+ const statusCode = String(response.statusCode);
74
+ if (!statusCode.startsWith("4") && !statusCode.startsWith("5")) {
75
+ return data;
76
+ }
77
+ const resource = this.getNodeParameter("resource");
78
+ const operation = this.getNodeParameter("operation");
79
+ let inputValue;
80
+ if (operation === "create") {
81
+ if (resource === "user") {
82
+ inputValue = this.getNodeParameter("newUserName", "");
83
+ } else if (resource === "group") {
84
+ inputValue = this.getNodeParameter("newGroupName", "");
85
+ }
86
+ } else {
87
+ inputValue = this.getNodeParameter(resource, "", { extractValue: true });
88
+ }
89
+ const responseBody = response.body;
90
+ const errorType = responseBody.__type ?? response.headers?.["x-amzn-errortype"];
91
+ const errorMessage = responseBody.message ?? response.headers?.["x-amzn-errormessage"];
92
+ if (!errorType) {
93
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), response);
94
+ }
95
+ const specificError = mapErrorToResponse(errorType, resource, operation, inputValue);
96
+ throw new import_n8n_workflow.NodeApiError(
97
+ this.getNode(),
98
+ response,
99
+ specificError ?? {
100
+ message: errorType,
101
+ description: errorMessage
102
+ }
103
+ );
104
+ }
105
+ // Annotate the CommonJS export names for ESM import in node:
106
+ 0 && (module.exports = {
107
+ handleError
108
+ });
109
+ //# sourceMappingURL=errorHandler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Aws/Cognito/helpers/errorHandler.ts"],"sourcesContent":["import type {\n\tJsonObject,\n\tIExecuteSingleFunctions,\n\tIN8nHttpFullResponse,\n\tINodeExecutionData,\n} from 'n8n-workflow';\nimport { NodeApiError } from 'n8n-workflow';\n\nimport { ERROR_MESSAGES } from './constants';\nimport type { AwsError, ErrorMessage } from './interfaces';\n\nfunction mapErrorToResponse(\n\terrorType: string,\n\tresource: string,\n\toperation: string,\n\tinputValue?: string,\n): ErrorMessage | undefined {\n\tconst op = operation as keyof typeof ERROR_MESSAGES.ResourceNotFound.User;\n\tconst nameLabel = resource.charAt(0).toUpperCase() + resource.slice(1);\n\tconst valuePart = inputValue ? ` \"${inputValue}\"` : '';\n\n\tconst notFoundMessage = (base: ErrorMessage, suffix: string): ErrorMessage => ({\n\t\t...base,\n\t\tmessage: `${nameLabel}${valuePart} ${suffix}`,\n\t});\n\n\tconst isNotFound = [\n\t\t'UserNotFoundException',\n\t\t'ResourceNotFoundException',\n\t\t'NoSuchEntity',\n\t].includes(errorType);\n\n\tconst isExists = [\n\t\t'UsernameExistsException',\n\t\t'EntityAlreadyExists',\n\t\t'GroupExistsException',\n\t].includes(errorType);\n\n\tif (isNotFound) {\n\t\tif (resource === 'user') {\n\t\t\tif (operation === 'addToGroup') {\n\t\t\t\treturn notFoundMessage(ERROR_MESSAGES.UserGroup.add, 'not found while adding to group.');\n\t\t\t}\n\t\t\tif (operation === 'removeFromGroup') {\n\t\t\t\treturn notFoundMessage(\n\t\t\t\t\tERROR_MESSAGES.UserGroup.remove,\n\t\t\t\t\t'not found while removing from group.',\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn notFoundMessage(ERROR_MESSAGES.ResourceNotFound.User[op], 'not found.');\n\t\t}\n\n\t\tif (resource === 'group') {\n\t\t\treturn notFoundMessage(ERROR_MESSAGES.ResourceNotFound.Group[op], 'not found.');\n\t\t}\n\t}\n\n\tif (isExists) {\n\t\tconst existsMessage = `${nameLabel}${valuePart} already exists.`;\n\n\t\tif (resource === 'user') {\n\t\t\treturn { ...ERROR_MESSAGES.EntityAlreadyExists.User, message: existsMessage };\n\t\t}\n\t\tif (resource === 'group') {\n\t\t\treturn { ...ERROR_MESSAGES.EntityAlreadyExists.Group, message: existsMessage };\n\t\t}\n\t}\n\n\treturn undefined;\n}\n\nexport async function handleError(\n\tthis: IExecuteSingleFunctions,\n\tdata: INodeExecutionData[],\n\tresponse: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tconst statusCode = String(response.statusCode);\n\n\tif (!statusCode.startsWith('4') && !statusCode.startsWith('5')) {\n\t\treturn data;\n\t}\n\n\tconst resource = this.getNodeParameter('resource') as string;\n\tconst operation = this.getNodeParameter('operation') as string;\n\n\tlet inputValue: string | undefined;\n\n\tif (operation === 'create') {\n\t\tif (resource === 'user') {\n\t\t\tinputValue = this.getNodeParameter('newUserName', '') as string;\n\t\t} else if (resource === 'group') {\n\t\t\tinputValue = this.getNodeParameter('newGroupName', '') as string;\n\t\t}\n\t} else {\n\t\tinputValue = this.getNodeParameter(resource, '', { extractValue: true }) as string;\n\t}\n\n\tconst responseBody = response.body as AwsError;\n\tconst errorType = (responseBody.__type ?? response.headers?.['x-amzn-errortype']) as string;\n\tconst errorMessage = (responseBody.message ??\n\t\tresponse.headers?.['x-amzn-errormessage']) as string;\n\n\tif (!errorType) {\n\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject);\n\t}\n\n\tconst specificError = mapErrorToResponse(errorType, resource, operation, inputValue);\n\n\tthrow new NodeApiError(\n\t\tthis.getNode(),\n\t\tresponse as unknown as JsonObject,\n\t\tspecificError ?? {\n\t\t\tmessage: errorType,\n\t\t\tdescription: errorMessage,\n\t\t},\n\t);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,0BAA6B;AAE7B,uBAA+B;AAG/B,SAAS,mBACR,WACA,UACA,WACA,YAC2B;AAC3B,QAAM,KAAK;AACX,QAAM,YAAY,SAAS,OAAO,CAAC,EAAE,YAAY,IAAI,SAAS,MAAM,CAAC;AACrE,QAAM,YAAY,aAAa,KAAK,UAAU,MAAM;AAEpD,QAAM,kBAAkB,CAAC,MAAoB,YAAkC;AAAA,IAC9E,GAAG;AAAA,IACH,SAAS,GAAG,SAAS,GAAG,SAAS,IAAI,MAAM;AAAA,EAC5C;AAEA,QAAM,aAAa;AAAA,IAClB;AAAA,IACA;AAAA,IACA;AAAA,EACD,EAAE,SAAS,SAAS;AAEpB,QAAM,WAAW;AAAA,IAChB;AAAA,IACA;AAAA,IACA;AAAA,EACD,EAAE,SAAS,SAAS;AAEpB,MAAI,YAAY;AACf,QAAI,aAAa,QAAQ;AACxB,UAAI,cAAc,cAAc;AAC/B,eAAO,gBAAgB,gCAAe,UAAU,KAAK,kCAAkC;AAAA,MACxF;AACA,UAAI,cAAc,mBAAmB;AACpC,eAAO;AAAA,UACN,gCAAe,UAAU;AAAA,UACzB;AAAA,QACD;AAAA,MACD;AACA,aAAO,gBAAgB,gCAAe,iBAAiB,KAAK,EAAE,GAAG,YAAY;AAAA,IAC9E;AAEA,QAAI,aAAa,SAAS;AACzB,aAAO,gBAAgB,gCAAe,iBAAiB,MAAM,EAAE,GAAG,YAAY;AAAA,IAC/E;AAAA,EACD;AAEA,MAAI,UAAU;AACb,UAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS;AAE9C,QAAI,aAAa,QAAQ;AACxB,aAAO,EAAE,GAAG,gCAAe,oBAAoB,MAAM,SAAS,cAAc;AAAA,IAC7E;AACA,QAAI,aAAa,SAAS;AACzB,aAAO,EAAE,GAAG,gCAAe,oBAAoB,OAAO,SAAS,cAAc;AAAA,IAC9E;AAAA,EACD;AAEA,SAAO;AACR;AAEA,eAAsB,YAErB,MACA,UACgC;AAChC,QAAM,aAAa,OAAO,SAAS,UAAU;AAE7C,MAAI,CAAC,WAAW,WAAW,GAAG,KAAK,CAAC,WAAW,WAAW,GAAG,GAAG;AAC/D,WAAO;AAAA,EACR;AAEA,QAAM,WAAW,KAAK,iBAAiB,UAAU;AACjD,QAAM,YAAY,KAAK,iBAAiB,WAAW;AAEnD,MAAI;AAEJ,MAAI,cAAc,UAAU;AAC3B,QAAI,aAAa,QAAQ;AACxB,mBAAa,KAAK,iBAAiB,eAAe,EAAE;AAAA,IACrD,WAAW,aAAa,SAAS;AAChC,mBAAa,KAAK,iBAAiB,gBAAgB,EAAE;AAAA,IACtD;AAAA,EACD,OAAO;AACN,iBAAa,KAAK,iBAAiB,UAAU,IAAI,EAAE,cAAc,KAAK,CAAC;AAAA,EACxE;AAEA,QAAM,eAAe,SAAS;AAC9B,QAAM,YAAa,aAAa,UAAU,SAAS,UAAU,kBAAkB;AAC/E,QAAM,eAAgB,aAAa,WAClC,SAAS,UAAU,qBAAqB;AAEzC,MAAI,CAAC,WAAW;AACf,UAAM,IAAI,iCAAa,KAAK,QAAQ,GAAG,QAAiC;AAAA,EACzE;AAEA,QAAM,gBAAgB,mBAAmB,WAAW,UAAU,WAAW,UAAU;AAEnF,QAAM,IAAI;AAAA,IACT,KAAK,QAAQ;AAAA,IACb;AAAA,IACA,iBAAiB;AAAA,MAChB,SAAS;AAAA,MACT,aAAa;AAAA,IACd;AAAA,EACD;AACD;","names":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var interfaces_exports = {};
16
+ module.exports = __toCommonJS(interfaces_exports);
17
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Aws/Cognito/helpers/interfaces.ts"],"sourcesContent":["import type { IDataObject } from 'n8n-workflow';\n\nexport interface IUserAttribute {\n\tName: string;\n\tValue: string;\n}\n\nexport interface IUser {\n\tUsername: string;\n\tEnabled: boolean;\n\tUserCreateDate: string;\n\tUserLastModifiedDate: string;\n\tUserStatus: string;\n\tAttributes?: IUserAttribute[];\n}\n\nexport interface IGroup {\n\tGroupName: string;\n}\n\nexport interface IListUsersResponse {\n\tUsers: IUser[];\n\tNextToken?: string;\n}\n\nexport interface IListGroupsResponse {\n\tGroups: IGroup[];\n\tNextToken?: string;\n}\n\nexport interface IGroupWithUserResponse extends IGroup {\n\tUsers: IUser[];\n}\n\nexport interface IUserAttributeInput {\n\tattributeType: string;\n\tstandardName: string;\n\tcustomName: string;\n\tvalue: string;\n}\n\nexport interface IUserPool {\n\tId: string;\n\tName: string;\n\tUsernameAttributes?: string[];\n\tAccountRecoverySetting?: IDataObject;\n\tAdminCreateUserConfig?: IDataObject;\n\tEmailConfiguration?: IDataObject;\n\tLambdaConfig?: IDataObject;\n\tPolicies?: IDataObject;\n\tSchemaAttributes?: IDataObject;\n\tUserAttributeUpdateSettings?: IDataObject;\n\tUserPoolTags?: IDataObject;\n\tUserPoolTier?: string;\n\tVerificationMessageTemplate?: IDataObject;\n}\n\nexport interface Filters {\n\tfilter?: {\n\t\tattribute?: string;\n\t\tvalue?: string;\n\t};\n}\n\nexport interface AwsError {\n\t__type?: string;\n\tmessage?: string;\n}\n\nexport interface ErrorMessage {\n\tmessage: string;\n\tdescription: string;\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}