n8n-nodes-base 1.92.0 → 1.93.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js +0 -9
  2. package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js.map +1 -1
  3. package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js +13 -0
  4. package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js.map +1 -1
  5. package/dist/credentials/Snowflake.credentials.js +46 -2
  6. package/dist/credentials/Snowflake.credentials.js.map +1 -1
  7. package/dist/known/credentials.json +10 -1
  8. package/dist/known/nodes.json +20 -0
  9. package/dist/methods/defined.json +6 -0
  10. package/dist/methods/referenced.json +3 -0
  11. package/dist/nodes/Aws/IAM/AwsIam.node.js +95 -0
  12. package/dist/nodes/Aws/IAM/AwsIam.node.js.map +1 -0
  13. package/dist/nodes/Aws/IAM/AwsIam.node.json +18 -0
  14. package/dist/nodes/Aws/IAM/AwsIam.svg +18 -0
  15. package/dist/nodes/Aws/IAM/descriptions/common.js +188 -0
  16. package/dist/nodes/Aws/IAM/descriptions/common.js.map +1 -0
  17. package/dist/nodes/Aws/IAM/descriptions/group/Group.resource.js +175 -0
  18. package/dist/nodes/Aws/IAM/descriptions/group/Group.resource.js.map +1 -0
  19. package/dist/nodes/Aws/IAM/descriptions/group/create.operation.js +66 -0
  20. package/dist/nodes/Aws/IAM/descriptions/group/create.operation.js.map +1 -0
  21. package/dist/nodes/Aws/IAM/descriptions/group/delete.operation.js +43 -0
  22. package/dist/nodes/Aws/IAM/descriptions/group/delete.operation.js.map +1 -0
  23. package/dist/nodes/Aws/IAM/descriptions/group/get.operation.js +50 -0
  24. package/dist/nodes/Aws/IAM/descriptions/group/get.operation.js.map +1 -0
  25. package/dist/nodes/Aws/IAM/descriptions/group/getAll.operation.js +47 -0
  26. package/dist/nodes/Aws/IAM/descriptions/group/getAll.operation.js.map +1 -0
  27. package/dist/nodes/Aws/IAM/descriptions/group/update.operation.js +70 -0
  28. package/dist/nodes/Aws/IAM/descriptions/group/update.operation.js.map +1 -0
  29. package/dist/nodes/Aws/IAM/descriptions/index.js +42 -0
  30. package/dist/nodes/Aws/IAM/descriptions/index.js.map +1 -0
  31. package/dist/nodes/Aws/IAM/descriptions/user/User.resource.js +231 -0
  32. package/dist/nodes/Aws/IAM/descriptions/user/User.resource.js.map +1 -0
  33. package/dist/nodes/Aws/IAM/descriptions/user/addToGroup.operation.js +47 -0
  34. package/dist/nodes/Aws/IAM/descriptions/user/addToGroup.operation.js.map +1 -0
  35. package/dist/nodes/Aws/IAM/descriptions/user/create.operation.js +118 -0
  36. package/dist/nodes/Aws/IAM/descriptions/user/create.operation.js.map +1 -0
  37. package/dist/nodes/Aws/IAM/descriptions/user/delete.operation.js +43 -0
  38. package/dist/nodes/Aws/IAM/descriptions/user/delete.operation.js.map +1 -0
  39. package/dist/nodes/Aws/IAM/descriptions/user/get.operation.js +43 -0
  40. package/dist/nodes/Aws/IAM/descriptions/user/get.operation.js.map +1 -0
  41. package/dist/nodes/Aws/IAM/descriptions/user/getAll.operation.js +66 -0
  42. package/dist/nodes/Aws/IAM/descriptions/user/getAll.operation.js.map +1 -0
  43. package/dist/nodes/Aws/IAM/descriptions/user/removeFromGroup.operation.js +74 -0
  44. package/dist/nodes/Aws/IAM/descriptions/user/removeFromGroup.operation.js.map +1 -0
  45. package/dist/nodes/Aws/IAM/descriptions/user/update.operation.js +68 -0
  46. package/dist/nodes/Aws/IAM/descriptions/user/update.operation.js.map +1 -0
  47. package/dist/nodes/Aws/IAM/helpers/constants.js +47 -0
  48. package/dist/nodes/Aws/IAM/helpers/constants.js.map +1 -0
  49. package/dist/nodes/Aws/IAM/helpers/errorHandler.js +90 -0
  50. package/dist/nodes/Aws/IAM/helpers/errorHandler.js.map +1 -0
  51. package/dist/nodes/Aws/IAM/helpers/types.js +17 -0
  52. package/dist/nodes/Aws/IAM/helpers/types.js.map +1 -0
  53. package/dist/nodes/Aws/IAM/helpers/utils.js +279 -0
  54. package/dist/nodes/Aws/IAM/helpers/utils.js.map +1 -0
  55. package/dist/nodes/Aws/IAM/methods/index.js +39 -0
  56. package/dist/nodes/Aws/IAM/methods/index.js.map +1 -0
  57. package/dist/nodes/Aws/IAM/methods/listSearch.js +132 -0
  58. package/dist/nodes/Aws/IAM/methods/listSearch.js.map +1 -0
  59. package/dist/nodes/Aws/IAM/transport/index.js +64 -0
  60. package/dist/nodes/Aws/IAM/transport/index.js.map +1 -0
  61. package/dist/nodes/Cron/Cron.node.js +1 -1
  62. package/dist/nodes/Cron/Cron.node.js.map +1 -1
  63. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js +2 -2
  64. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js.map +1 -1
  65. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js +2 -2
  66. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js.map +1 -1
  67. package/dist/nodes/Evaluation/Evaluation/Description.node.js +146 -0
  68. package/dist/nodes/Evaluation/Evaluation/Description.node.js.map +1 -0
  69. package/dist/nodes/Evaluation/Evaluation/Evaluation.node.ee.js +117 -0
  70. package/dist/nodes/Evaluation/Evaluation/Evaluation.node.ee.js.map +1 -0
  71. package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js +187 -0
  72. package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js.map +1 -0
  73. package/dist/nodes/Evaluation/methods/index.js +42 -0
  74. package/dist/nodes/Evaluation/methods/index.js.map +1 -0
  75. package/dist/nodes/Evaluation/methods/loadOptions.js +40 -0
  76. package/dist/nodes/Evaluation/methods/loadOptions.js.map +1 -0
  77. package/dist/nodes/Evaluation/utils/evaluationTriggerUtils.js +119 -0
  78. package/dist/nodes/Evaluation/utils/evaluationTriggerUtils.js.map +1 -0
  79. package/dist/nodes/Evaluation/utils/evaluationUtils.js +171 -0
  80. package/dist/nodes/Evaluation/utils/evaluationUtils.js.map +1 -0
  81. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js +4 -3
  82. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js.map +1 -1
  83. package/dist/nodes/Form/common.descriptions.js +2 -2
  84. package/dist/nodes/Form/common.descriptions.js.map +1 -1
  85. package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js +113 -107
  86. package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js.map +1 -1
  87. package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js +52 -106
  88. package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js.map +1 -1
  89. package/dist/nodes/Google/Sheet/v2/actions/utils/readOperation.js +97 -0
  90. package/dist/nodes/Google/Sheet/v2/actions/utils/readOperation.js.map +1 -0
  91. package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js +20 -17
  92. package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js.map +1 -1
  93. package/dist/nodes/Google/YouTube/YouTube.node.js +4 -2
  94. package/dist/nodes/Google/YouTube/YouTube.node.js.map +1 -1
  95. package/dist/nodes/Interval/Interval.node.js +1 -1
  96. package/dist/nodes/Interval/Interval.node.js.map +1 -1
  97. package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js +2 -2
  98. package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js.map +1 -1
  99. package/dist/nodes/MQTT/MqttTrigger.node.js +2 -2
  100. package/dist/nodes/MQTT/MqttTrigger.node.js.map +1 -1
  101. package/dist/nodes/ManualTrigger/ManualTrigger.node.js +1 -1
  102. package/dist/nodes/ManualTrigger/ManualTrigger.node.js.map +1 -1
  103. package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js +93 -0
  104. package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js.map +1 -0
  105. package/dist/nodes/Microsoft/SharePoint/MicrosoftSharepoint.node.json +18 -0
  106. package/dist/nodes/Microsoft/SharePoint/descriptions/common.descriptions.js +190 -0
  107. package/dist/nodes/Microsoft/SharePoint/descriptions/common.descriptions.js.map +1 -0
  108. package/dist/nodes/Microsoft/SharePoint/descriptions/file/File.resource.js +108 -0
  109. package/dist/nodes/Microsoft/SharePoint/descriptions/file/File.resource.js.map +1 -0
  110. package/dist/nodes/Microsoft/SharePoint/descriptions/file/download.operation.js +62 -0
  111. package/dist/nodes/Microsoft/SharePoint/descriptions/file/download.operation.js.map +1 -0
  112. package/dist/nodes/Microsoft/SharePoint/descriptions/file/update.operation.js +129 -0
  113. package/dist/nodes/Microsoft/SharePoint/descriptions/file/update.operation.js.map +1 -0
  114. package/dist/nodes/Microsoft/SharePoint/descriptions/file/upload.operation.js +77 -0
  115. package/dist/nodes/Microsoft/SharePoint/descriptions/file/upload.operation.js.map +1 -0
  116. package/dist/nodes/Microsoft/SharePoint/descriptions/index.js +45 -0
  117. package/dist/nodes/Microsoft/SharePoint/descriptions/index.js.map +1 -0
  118. package/dist/nodes/Microsoft/SharePoint/descriptions/item/Item.resource.js +175 -0
  119. package/dist/nodes/Microsoft/SharePoint/descriptions/item/Item.resource.js.map +1 -0
  120. package/dist/nodes/Microsoft/SharePoint/descriptions/item/create.operation.js +100 -0
  121. package/dist/nodes/Microsoft/SharePoint/descriptions/item/create.operation.js.map +1 -0
  122. package/dist/nodes/Microsoft/SharePoint/descriptions/item/delete.operation.js +62 -0
  123. package/dist/nodes/Microsoft/SharePoint/descriptions/item/delete.operation.js.map +1 -0
  124. package/dist/nodes/Microsoft/SharePoint/descriptions/item/get.operation.js +83 -0
  125. package/dist/nodes/Microsoft/SharePoint/descriptions/item/get.operation.js.map +1 -0
  126. package/dist/nodes/Microsoft/SharePoint/descriptions/item/getAll.operation.js +203 -0
  127. package/dist/nodes/Microsoft/SharePoint/descriptions/item/getAll.operation.js.map +1 -0
  128. package/dist/nodes/Microsoft/SharePoint/descriptions/item/update.operation.js +100 -0
  129. package/dist/nodes/Microsoft/SharePoint/descriptions/item/update.operation.js.map +1 -0
  130. package/dist/nodes/Microsoft/SharePoint/descriptions/item/upsert.operation.js +100 -0
  131. package/dist/nodes/Microsoft/SharePoint/descriptions/item/upsert.operation.js.map +1 -0
  132. package/dist/nodes/Microsoft/SharePoint/descriptions/list/List.resource.js +99 -0
  133. package/dist/nodes/Microsoft/SharePoint/descriptions/list/List.resource.js.map +1 -0
  134. package/dist/nodes/Microsoft/SharePoint/descriptions/list/get.operation.js +65 -0
  135. package/dist/nodes/Microsoft/SharePoint/descriptions/list/get.operation.js.map +1 -0
  136. package/dist/nodes/Microsoft/SharePoint/descriptions/list/getAll.operation.js +105 -0
  137. package/dist/nodes/Microsoft/SharePoint/descriptions/list/getAll.operation.js.map +1 -0
  138. package/dist/nodes/Microsoft/SharePoint/helpers/interfaces.js +17 -0
  139. package/dist/nodes/Microsoft/SharePoint/helpers/interfaces.js.map +1 -0
  140. package/dist/nodes/Microsoft/SharePoint/helpers/utils.js +252 -0
  141. package/dist/nodes/Microsoft/SharePoint/helpers/utils.js.map +1 -0
  142. package/dist/nodes/Microsoft/SharePoint/methods/index.js +42 -0
  143. package/dist/nodes/Microsoft/SharePoint/methods/index.js.map +1 -0
  144. package/dist/nodes/Microsoft/SharePoint/methods/listSearch.js +222 -0
  145. package/dist/nodes/Microsoft/SharePoint/methods/listSearch.js.map +1 -0
  146. package/dist/nodes/Microsoft/SharePoint/methods/resourceMapping.js +104 -0
  147. package/dist/nodes/Microsoft/SharePoint/methods/resourceMapping.js.map +1 -0
  148. package/dist/nodes/Microsoft/SharePoint/test/credentials.js +54 -0
  149. package/dist/nodes/Microsoft/SharePoint/test/credentials.js.map +1 -0
  150. package/dist/nodes/Microsoft/SharePoint/transport/index.js +46 -0
  151. package/dist/nodes/Microsoft/SharePoint/transport/index.js.map +1 -0
  152. package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js +387 -0
  153. package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js.map +1 -0
  154. package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.json +18 -0
  155. package/dist/nodes/Microsoft/Teams/v2/helpers/types.js +17 -0
  156. package/dist/nodes/Microsoft/Teams/v2/helpers/types.js.map +1 -0
  157. package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js +147 -0
  158. package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js.map +1 -0
  159. package/dist/nodes/Microsoft/Teams/v2/transport/index.js.map +1 -1
  160. package/dist/nodes/PostBin/BinDescription.js +1 -1
  161. package/dist/nodes/PostBin/BinDescription.js.map +1 -1
  162. package/dist/nodes/PostBin/GenericFunctions.js +5 -5
  163. package/dist/nodes/PostBin/GenericFunctions.js.map +1 -1
  164. package/dist/nodes/PostBin/PostBin.node.js +1 -1
  165. package/dist/nodes/PostBin/PostBin.node.js.map +1 -1
  166. package/dist/nodes/PostBin/RequestDescription.js +2 -2
  167. package/dist/nodes/PostBin/RequestDescription.js.map +1 -1
  168. package/dist/nodes/Postgres/PostgresTrigger.node.js +2 -2
  169. package/dist/nodes/Postgres/PostgresTrigger.node.js.map +1 -1
  170. package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js +2 -2
  171. package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js.map +1 -1
  172. package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js +8 -3
  173. package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js.map +1 -1
  174. package/dist/nodes/RespondToWebhook/utils.js +43 -0
  175. package/dist/nodes/RespondToWebhook/utils.js.map +1 -0
  176. package/dist/nodes/Schedule/ScheduleTrigger.node.js +1 -1
  177. package/dist/nodes/Schedule/ScheduleTrigger.node.js.map +1 -1
  178. package/dist/nodes/Snowflake/GenericFunctions.js +34 -2
  179. package/dist/nodes/Snowflake/GenericFunctions.js.map +1 -1
  180. package/dist/nodes/Snowflake/Snowflake.node.js +5 -7
  181. package/dist/nodes/Snowflake/Snowflake.node.js.map +1 -1
  182. package/dist/nodes/SseTrigger/SseTrigger.node.js +2 -2
  183. package/dist/nodes/SseTrigger/SseTrigger.node.js.map +1 -1
  184. package/dist/types/credentials.json +6 -6
  185. package/dist/types/nodes.json +22 -17
  186. package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js +12 -2
  187. package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js.map +1 -1
  188. package/package.json +13 -9
  189. /package/dist/{credentials/icons/SharePoint.svg → nodes/Microsoft/SharePoint/microsoftSharePoint.svg} +0 -0
@@ -40,6 +40,15 @@ var import_n8n_workflow = require("n8n-workflow");
40
40
  var import_constants = require("./constants");
41
41
  const SUPPORTED_TYPES = import_constants.TYPE_OPTIONS.map((x) => x.value);
42
42
  function parseJsonSchema(schema) {
43
+ if (schema.type !== "object") {
44
+ if (schema.type === void 0) {
45
+ return "Invalid JSON schema. Missing key `type` in schema";
46
+ }
47
+ if (Array.isArray(schema.type)) {
48
+ return `Invalid JSON schema type. Only object type is supported, but got an array of types: ${schema.type.join(", ")}`;
49
+ }
50
+ return `Invalid JSON schema type. Only object type is supported, but got ${schema.type}`;
51
+ }
43
52
  if (!schema?.properties) {
44
53
  return "Invalid JSON schema. Missing key `properties` in schema";
45
54
  }
@@ -130,10 +139,11 @@ function getCurrentWorkflowInputData() {
130
139
  return inputData;
131
140
  } else {
132
141
  const removedKeys = new Set(schema.filter((x) => x.removed).map((x) => x.displayName));
133
- const filteredInputData = inputData.map((item, index) => ({
142
+ const filteredInputData = inputData.map(({ json, binary }, index) => ({
134
143
  index,
135
144
  pairedItem: { item: index },
136
- json: import_lodash.default.pickBy(item.json, (_v, key) => !removedKeys.has(key))
145
+ json: import_lodash.default.pickBy(json, (_v, key) => !removedKeys.has(key)),
146
+ binary
137
147
  }));
138
148
  return filteredInputData;
139
149
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../utils/workflowInputsResourceMapping/GenericFunctions.ts"],"sourcesContent":["import { json as generateSchemaFromExample, type SchemaObject } from 'generate-schema';\nimport type { JSONSchema7 } from 'json-schema';\nimport _ from 'lodash';\nimport type {\n\tFieldValueOption,\n\tFieldType,\n\tIWorkflowNodeContext,\n\tINodeExecutionData,\n\tIDataObject,\n\tResourceMapperField,\n\tILocalLoadOptionsFunctions,\n\tWorkflowInputsData,\n\tIExecuteFunctions,\n\tISupplyDataFunctions,\n} from 'n8n-workflow';\nimport { jsonParse, NodeOperationError, EXECUTE_WORKFLOW_TRIGGER_NODE_TYPE } from 'n8n-workflow';\n\nimport {\n\tJSON_EXAMPLE,\n\tINPUT_SOURCE,\n\tWORKFLOW_INPUTS,\n\tVALUES,\n\tTYPE_OPTIONS,\n\tPASSTHROUGH,\n} from './constants';\n\nconst SUPPORTED_TYPES = TYPE_OPTIONS.map((x) => x.value);\n\nfunction parseJsonSchema(schema: JSONSchema7): FieldValueOption[] | string {\n\tif (!schema?.properties) {\n\t\treturn 'Invalid JSON schema. Missing key `properties` in schema';\n\t}\n\n\tif (typeof schema.properties !== 'object') {\n\t\treturn 'Invalid JSON schema. Key `properties` is not an object';\n\t}\n\n\tconst result: FieldValueOption[] = [];\n\tfor (const [name, v] of Object.entries(schema.properties)) {\n\t\tif (typeof v !== 'object') {\n\t\t\treturn `Invalid JSON schema. Value for property '${name}' is not an object`;\n\t\t}\n\n\t\tconst type = v?.type;\n\n\t\tif (type === 'null') {\n\t\t\tresult.push({ name, type: 'any' });\n\t\t} else if (Array.isArray(type)) {\n\t\t\t// Schema allows an array of types, but we don't\n\t\t\treturn `Invalid JSON schema. Array of types for property '${name}' is not supported by n8n. Either provide a single type or use type 'any' to allow any type`;\n\t\t} else if (typeof type !== 'string') {\n\t\t\treturn `Invalid JSON schema. Unexpected non-string type ${type} for property '${name}'`;\n\t\t} else if (!SUPPORTED_TYPES.includes(type as never)) {\n\t\t\treturn `Invalid JSON schema. Unsupported type ${type} for property '${name}'. Supported types are ${JSON.stringify(SUPPORTED_TYPES, null, 1)}`;\n\t\t} else {\n\t\t\tresult.push({ name, type: type as FieldType });\n\t\t}\n\t}\n\treturn result;\n}\n\nfunction parseJsonExample(context: IWorkflowNodeContext): JSONSchema7 {\n\tconst jsonString = context.getNodeParameter(JSON_EXAMPLE, 0, '') as string;\n\tconst json = jsonParse<SchemaObject>(jsonString);\n\n\treturn generateSchemaFromExample(json) as JSONSchema7;\n}\n\nexport function getFieldEntries(context: IWorkflowNodeContext): {\n\tdataMode: WorkflowInputsData['dataMode'];\n\tfields: FieldValueOption[];\n\tsubworkflowInfo?: WorkflowInputsData['subworkflowInfo'];\n} {\n\tconst inputSource = context.getNodeParameter(INPUT_SOURCE, 0, PASSTHROUGH);\n\tlet result: FieldValueOption[] | string = 'Internal Error: Invalid input source';\n\ttry {\n\t\tif (inputSource === WORKFLOW_INPUTS) {\n\t\t\tresult = context.getNodeParameter(\n\t\t\t\t`${WORKFLOW_INPUTS}.${VALUES}`,\n\t\t\t\t0,\n\t\t\t\t[],\n\t\t\t) as FieldValueOption[];\n\t\t} else if (inputSource === JSON_EXAMPLE) {\n\t\t\tconst schema = parseJsonExample(context);\n\t\t\tresult = parseJsonSchema(schema);\n\t\t} else if (inputSource === PASSTHROUGH) {\n\t\t\tresult = [];\n\t\t}\n\t} catch (e: unknown) {\n\t\tresult =\n\t\t\te && typeof e === 'object' && 'message' in e && typeof e.message === 'string'\n\t\t\t\t? e.message\n\t\t\t\t: `Unknown error occurred: ${JSON.stringify(e)}`;\n\t}\n\n\tif (Array.isArray(result)) {\n\t\tconst dataMode = String(inputSource);\n\t\tconst workflow = context.getWorkflow();\n\t\tconst node = context.getNode();\n\t\treturn {\n\t\t\tfields: result,\n\t\t\tdataMode,\n\t\t\tsubworkflowInfo: { workflowId: workflow.id, triggerId: node.id },\n\t\t};\n\t}\n\tthrow new NodeOperationError(context.getNode(), result);\n}\n\nexport function getWorkflowInputValues(\n\tthis: IExecuteFunctions | ISupplyDataFunctions,\n): INodeExecutionData[] {\n\tconst inputData = this.getInputData();\n\n\treturn inputData.map(({ json, binary }, itemIndex) => {\n\t\tconst itemFieldValues = this.getNodeParameter(\n\t\t\t'workflowInputs.value',\n\t\t\titemIndex,\n\t\t\t{},\n\t\t) as IDataObject;\n\n\t\treturn {\n\t\t\tjson: {\n\t\t\t\t...json,\n\t\t\t\t...itemFieldValues,\n\t\t\t},\n\t\t\tindex: itemIndex,\n\t\t\tpairedItem: {\n\t\t\t\titem: itemIndex,\n\t\t\t},\n\t\t\tbinary,\n\t\t};\n\t});\n}\n\nexport function getCurrentWorkflowInputData(this: IExecuteFunctions | ISupplyDataFunctions) {\n\tconst inputData: INodeExecutionData[] = getWorkflowInputValues.call(this);\n\n\tconst schema = this.getNodeParameter('workflowInputs.schema', 0, []) as ResourceMapperField[];\n\n\tif (schema.length === 0) {\n\t\treturn inputData;\n\t} else {\n\t\tconst removedKeys = new Set(schema.filter((x) => x.removed).map((x) => x.displayName));\n\n\t\tconst filteredInputData: INodeExecutionData[] = inputData.map((item, index) => ({\n\t\t\tindex,\n\t\t\tpairedItem: { item: index },\n\t\t\tjson: _.pickBy(item.json, (_v, key) => !removedKeys.has(key)),\n\t\t}));\n\n\t\treturn filteredInputData;\n\t}\n}\n\nexport async function loadWorkflowInputMappings(\n\tthis: ILocalLoadOptionsFunctions,\n): Promise<WorkflowInputsData> {\n\tconst nodeLoadContext = await this.getWorkflowNodeContext(EXECUTE_WORKFLOW_TRIGGER_NODE_TYPE);\n\tlet fields: ResourceMapperField[] = [];\n\tlet dataMode: string = PASSTHROUGH;\n\tlet subworkflowInfo: { workflowId?: string; triggerId?: string } | undefined;\n\n\tif (nodeLoadContext) {\n\t\tconst fieldValues = getFieldEntries(nodeLoadContext);\n\t\tdataMode = fieldValues.dataMode;\n\t\tsubworkflowInfo = fieldValues.subworkflowInfo;\n\n\t\tfields = fieldValues.fields.map((currentWorkflowInput) => {\n\t\t\tconst field: ResourceMapperField = {\n\t\t\t\tid: currentWorkflowInput.name,\n\t\t\t\tdisplayName: currentWorkflowInput.name,\n\t\t\t\trequired: false,\n\t\t\t\tdefaultMatch: false,\n\t\t\t\tdisplay: true,\n\t\t\t\tcanBeUsedToMatch: true,\n\t\t\t};\n\n\t\t\tif (currentWorkflowInput.type !== 'any') {\n\t\t\t\tfield.type = currentWorkflowInput.type;\n\t\t\t}\n\n\t\t\treturn field;\n\t\t});\n\t}\n\treturn { fields, dataMode, subworkflowInfo };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAqE;AAErE,oBAAc;AAad,0BAAkF;AAElF,uBAOO;AAEP,MAAM,kBAAkB,8BAAa,IAAI,CAAC,MAAM,EAAE,KAAK;AAEvD,SAAS,gBAAgB,QAAkD;AAC1E,MAAI,CAAC,QAAQ,YAAY;AACxB,WAAO;AAAA,EACR;AAEA,MAAI,OAAO,OAAO,eAAe,UAAU;AAC1C,WAAO;AAAA,EACR;AAEA,QAAM,SAA6B,CAAC;AACpC,aAAW,CAAC,MAAM,CAAC,KAAK,OAAO,QAAQ,OAAO,UAAU,GAAG;AAC1D,QAAI,OAAO,MAAM,UAAU;AAC1B,aAAO,4CAA4C,IAAI;AAAA,IACxD;AAEA,UAAM,OAAO,GAAG;AAEhB,QAAI,SAAS,QAAQ;AACpB,aAAO,KAAK,EAAE,MAAM,MAAM,MAAM,CAAC;AAAA,IAClC,WAAW,MAAM,QAAQ,IAAI,GAAG;AAE/B,aAAO,qDAAqD,IAAI;AAAA,IACjE,WAAW,OAAO,SAAS,UAAU;AACpC,aAAO,mDAAmD,IAAI,kBAAkB,IAAI;AAAA,IACrF,WAAW,CAAC,gBAAgB,SAAS,IAAa,GAAG;AACpD,aAAO,yCAAyC,IAAI,kBAAkB,IAAI,0BAA0B,KAAK,UAAU,iBAAiB,MAAM,CAAC,CAAC;AAAA,IAC7I,OAAO;AACN,aAAO,KAAK,EAAE,MAAM,KAAwB,CAAC;AAAA,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,CAAC;AAAA,EACF;AACA,SAAO,EAAE,QAAQ,UAAU,gBAAgB;AAC5C;","names":["generateSchemaFromExample","_"]}
1
+ {"version":3,"sources":["../../../utils/workflowInputsResourceMapping/GenericFunctions.ts"],"sourcesContent":["import { json as generateSchemaFromExample, type SchemaObject } from 'generate-schema';\nimport type { JSONSchema7 } from 'json-schema';\nimport _ from 'lodash';\nimport type {\n\tFieldValueOption,\n\tFieldType,\n\tIWorkflowNodeContext,\n\tINodeExecutionData,\n\tIDataObject,\n\tResourceMapperField,\n\tILocalLoadOptionsFunctions,\n\tWorkflowInputsData,\n\tIExecuteFunctions,\n\tISupplyDataFunctions,\n} from 'n8n-workflow';\nimport { jsonParse, NodeOperationError, EXECUTE_WORKFLOW_TRIGGER_NODE_TYPE } from 'n8n-workflow';\n\nimport {\n\tJSON_EXAMPLE,\n\tINPUT_SOURCE,\n\tWORKFLOW_INPUTS,\n\tVALUES,\n\tTYPE_OPTIONS,\n\tPASSTHROUGH,\n} from './constants';\n\nconst SUPPORTED_TYPES = TYPE_OPTIONS.map((x) => x.value);\n\nfunction parseJsonSchema(schema: JSONSchema7): FieldValueOption[] | string {\n\tif (schema.type !== 'object') {\n\t\tif (schema.type === undefined) {\n\t\t\treturn 'Invalid JSON schema. Missing key `type` in schema';\n\t\t}\n\n\t\tif (Array.isArray(schema.type)) {\n\t\t\treturn `Invalid JSON schema type. Only object type is supported, but got an array of types: ${schema.type.join(', ')}`;\n\t\t}\n\n\t\treturn `Invalid JSON schema type. Only object type is supported, but got ${schema.type}`;\n\t}\n\n\tif (!schema?.properties) {\n\t\treturn 'Invalid JSON schema. Missing key `properties` in schema';\n\t}\n\n\tif (typeof schema.properties !== 'object') {\n\t\treturn 'Invalid JSON schema. Key `properties` is not an object';\n\t}\n\n\tconst result: FieldValueOption[] = [];\n\tfor (const [name, v] of Object.entries(schema.properties)) {\n\t\tif (typeof v !== 'object') {\n\t\t\treturn `Invalid JSON schema. Value for property '${name}' is not an object`;\n\t\t}\n\n\t\tconst type = v?.type;\n\n\t\tif (type === 'null') {\n\t\t\tresult.push({ name, type: 'any' });\n\t\t} else if (Array.isArray(type)) {\n\t\t\t// Schema allows an array of types, but we don't\n\t\t\treturn `Invalid JSON schema. Array of types for property '${name}' is not supported by n8n. Either provide a single type or use type 'any' to allow any type`;\n\t\t} else if (typeof type !== 'string') {\n\t\t\treturn `Invalid JSON schema. Unexpected non-string type ${type} for property '${name}'`;\n\t\t} else if (!SUPPORTED_TYPES.includes(type as never)) {\n\t\t\treturn `Invalid JSON schema. Unsupported type ${type} for property '${name}'. Supported types are ${JSON.stringify(SUPPORTED_TYPES, null, 1)}`;\n\t\t} else {\n\t\t\tresult.push({ name, type: type as FieldType });\n\t\t}\n\t}\n\treturn result;\n}\n\nfunction parseJsonExample(context: IWorkflowNodeContext): JSONSchema7 {\n\tconst jsonString = context.getNodeParameter(JSON_EXAMPLE, 0, '') as string;\n\tconst json = jsonParse<SchemaObject>(jsonString);\n\n\treturn generateSchemaFromExample(json) as JSONSchema7;\n}\n\nexport function getFieldEntries(context: IWorkflowNodeContext): {\n\tdataMode: WorkflowInputsData['dataMode'];\n\tfields: FieldValueOption[];\n\tsubworkflowInfo?: WorkflowInputsData['subworkflowInfo'];\n} {\n\tconst inputSource = context.getNodeParameter(INPUT_SOURCE, 0, PASSTHROUGH);\n\tlet result: FieldValueOption[] | string = 'Internal Error: Invalid input source';\n\ttry {\n\t\tif (inputSource === WORKFLOW_INPUTS) {\n\t\t\tresult = context.getNodeParameter(\n\t\t\t\t`${WORKFLOW_INPUTS}.${VALUES}`,\n\t\t\t\t0,\n\t\t\t\t[],\n\t\t\t) as FieldValueOption[];\n\t\t} else if (inputSource === JSON_EXAMPLE) {\n\t\t\tconst schema = parseJsonExample(context);\n\t\t\tresult = parseJsonSchema(schema);\n\t\t} else if (inputSource === PASSTHROUGH) {\n\t\t\tresult = [];\n\t\t}\n\t} catch (e: unknown) {\n\t\tresult =\n\t\t\te && typeof e === 'object' && 'message' in e && typeof e.message === 'string'\n\t\t\t\t? e.message\n\t\t\t\t: `Unknown error occurred: ${JSON.stringify(e)}`;\n\t}\n\n\tif (Array.isArray(result)) {\n\t\tconst dataMode = String(inputSource);\n\t\tconst workflow = context.getWorkflow();\n\t\tconst node = context.getNode();\n\t\treturn {\n\t\t\tfields: result,\n\t\t\tdataMode,\n\t\t\tsubworkflowInfo: { workflowId: workflow.id, triggerId: node.id },\n\t\t};\n\t}\n\tthrow new NodeOperationError(context.getNode(), result);\n}\n\nexport function getWorkflowInputValues(\n\tthis: IExecuteFunctions | ISupplyDataFunctions,\n): INodeExecutionData[] {\n\tconst inputData = this.getInputData();\n\n\treturn inputData.map(({ json, binary }, itemIndex) => {\n\t\tconst itemFieldValues = this.getNodeParameter(\n\t\t\t'workflowInputs.value',\n\t\t\titemIndex,\n\t\t\t{},\n\t\t) as IDataObject;\n\n\t\treturn {\n\t\t\tjson: {\n\t\t\t\t...json,\n\t\t\t\t...itemFieldValues,\n\t\t\t},\n\t\t\tindex: itemIndex,\n\t\t\tpairedItem: {\n\t\t\t\titem: itemIndex,\n\t\t\t},\n\t\t\tbinary,\n\t\t};\n\t});\n}\n\nexport function getCurrentWorkflowInputData(this: IExecuteFunctions | ISupplyDataFunctions) {\n\tconst inputData: INodeExecutionData[] = getWorkflowInputValues.call(this);\n\n\tconst schema = this.getNodeParameter('workflowInputs.schema', 0, []) as ResourceMapperField[];\n\n\tif (schema.length === 0) {\n\t\treturn inputData;\n\t} else {\n\t\tconst removedKeys = new Set(schema.filter((x) => x.removed).map((x) => x.displayName));\n\n\t\tconst filteredInputData: INodeExecutionData[] = inputData.map(({ json, binary }, index) => ({\n\t\t\tindex,\n\t\t\tpairedItem: { item: index },\n\t\t\tjson: _.pickBy(json, (_v, key) => !removedKeys.has(key)),\n\t\t\tbinary,\n\t\t}));\n\n\t\treturn filteredInputData;\n\t}\n}\n\nexport async function loadWorkflowInputMappings(\n\tthis: ILocalLoadOptionsFunctions,\n): Promise<WorkflowInputsData> {\n\tconst nodeLoadContext = await this.getWorkflowNodeContext(EXECUTE_WORKFLOW_TRIGGER_NODE_TYPE);\n\tlet fields: ResourceMapperField[] = [];\n\tlet dataMode: string = PASSTHROUGH;\n\tlet subworkflowInfo: { workflowId?: string; triggerId?: string } | undefined;\n\n\tif (nodeLoadContext) {\n\t\tconst fieldValues = getFieldEntries(nodeLoadContext);\n\t\tdataMode = fieldValues.dataMode;\n\t\tsubworkflowInfo = fieldValues.subworkflowInfo;\n\n\t\tfields = fieldValues.fields.map((currentWorkflowInput) => {\n\t\t\tconst field: ResourceMapperField = {\n\t\t\t\tid: currentWorkflowInput.name,\n\t\t\t\tdisplayName: currentWorkflowInput.name,\n\t\t\t\trequired: false,\n\t\t\t\tdefaultMatch: false,\n\t\t\t\tdisplay: true,\n\t\t\t\tcanBeUsedToMatch: true,\n\t\t\t};\n\n\t\t\tif (currentWorkflowInput.type !== 'any') {\n\t\t\t\tfield.type = currentWorkflowInput.type;\n\t\t\t}\n\n\t\t\treturn field;\n\t\t});\n\t}\n\treturn { fields, dataMode, subworkflowInfo };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAqE;AAErE,oBAAc;AAad,0BAAkF;AAElF,uBAOO;AAEP,MAAM,kBAAkB,8BAAa,IAAI,CAAC,MAAM,EAAE,KAAK;AAEvD,SAAS,gBAAgB,QAAkD;AAC1E,MAAI,OAAO,SAAS,UAAU;AAC7B,QAAI,OAAO,SAAS,QAAW;AAC9B,aAAO;AAAA,IACR;AAEA,QAAI,MAAM,QAAQ,OAAO,IAAI,GAAG;AAC/B,aAAO,uFAAuF,OAAO,KAAK,KAAK,IAAI,CAAC;AAAA,IACrH;AAEA,WAAO,oEAAoE,OAAO,IAAI;AAAA,EACvF;AAEA,MAAI,CAAC,QAAQ,YAAY;AACxB,WAAO;AAAA,EACR;AAEA,MAAI,OAAO,OAAO,eAAe,UAAU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AAA,MAC1B,MAAM,cAAAC,QAAE,OAAO,MAAM,CAAC,IAAI,QAAQ,CAAC,YAAY,IAAI,GAAG,CAAC;AAAA,MACvD;AAAA,IACD,EAAE;AAEF,WAAO;AAAA,EACR;AACD;AAEA,eAAsB,4BAES;AAC9B,QAAM,kBAAkB,MAAM,KAAK,uBAAuB,sDAAkC;AAC5F,MAAI,SAAgC,CAAC;AACrC,MAAI,WAAmB;AACvB,MAAI;AAEJ,MAAI,iBAAiB;AACpB,UAAM,cAAc,gBAAgB,eAAe;AACnD,eAAW,YAAY;AACvB,sBAAkB,YAAY;AAE9B,aAAS,YAAY,OAAO,IAAI,CAAC,yBAAyB;AACzD,YAAM,QAA6B;AAAA,QAClC,IAAI,qBAAqB;AAAA,QACzB,aAAa,qBAAqB;AAAA,QAClC,UAAU;AAAA,QACV,cAAc;AAAA,QACd,SAAS;AAAA,QACT,kBAAkB;AAAA,MACnB;AAEA,UAAI,qBAAqB,SAAS,OAAO;AACxC,cAAM,OAAO,qBAAqB;AAAA,MACnC;AAEA,aAAO;AAAA,IACR,CAAC;AAAA,EACF;AACA,SAAO,EAAE,QAAQ,UAAU,gBAAgB;AAC5C;","names":["generateSchemaFromExample","_"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-base",
3
- "version": "1.92.0",
3
+ "version": "1.93.0",
4
4
  "description": "Base nodes of n8n",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -424,6 +424,7 @@
424
424
  "dist/nodes/Aws/Comprehend/AwsComprehend.node.js",
425
425
  "dist/nodes/Aws/DynamoDB/AwsDynamoDB.node.js",
426
426
  "dist/nodes/Aws/ELB/AwsElb.node.js",
427
+ "dist/nodes/Aws/IAM/AwsIam.node.js",
427
428
  "dist/nodes/Aws/Rekognition/AwsRekognition.node.js",
428
429
  "dist/nodes/Aws/S3/AwsS3.node.js",
429
430
  "dist/nodes/Aws/SES/AwsSes.node.js",
@@ -495,6 +496,8 @@
495
496
  "dist/nodes/Emelia/EmeliaTrigger.node.js",
496
497
  "dist/nodes/ERPNext/ERPNext.node.js",
497
498
  "dist/nodes/ErrorTrigger/ErrorTrigger.node.js",
499
+ "dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js",
500
+ "dist/nodes/Evaluation/Evaluation/Evaluation.node.ee.js",
498
501
  "dist/nodes/Eventbrite/EventbriteTrigger.node.js",
499
502
  "dist/nodes/ExecuteCommand/ExecuteCommand.node.js",
500
503
  "dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.js",
@@ -640,9 +643,11 @@
640
643
  "dist/nodes/Microsoft/OneDrive/MicrosoftOneDriveTrigger.node.js",
641
644
  "dist/nodes/Microsoft/Outlook/MicrosoftOutlook.node.js",
642
645
  "dist/nodes/Microsoft/Outlook/MicrosoftOutlookTrigger.node.js",
646
+ "dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js",
643
647
  "dist/nodes/Microsoft/Sql/MicrosoftSql.node.js",
644
648
  "dist/nodes/Microsoft/Storage/AzureStorage.node.js",
645
649
  "dist/nodes/Microsoft/Teams/MicrosoftTeams.node.js",
650
+ "dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js",
646
651
  "dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js",
647
652
  "dist/nodes/Mindee/Mindee.node.js",
648
653
  "dist/nodes/Misp/Misp.node.js",
@@ -850,21 +855,20 @@
850
855
  "@types/rfc2047": "^2.0.1",
851
856
  "@types/sanitize-html": "^2.11.0",
852
857
  "@types/showdown": "^1.9.4",
853
- "@types/snowflake-sdk": "^1.6.24",
854
858
  "@types/ssh2-sftp-client": "^5.1.0",
855
859
  "@types/uuid": "^10.0.0",
856
860
  "@types/xml2js": "^0.4.14",
857
861
  "eslint-plugin-n8n-nodes-base": "^1.16.3",
858
862
  "@n8n/typescript-config": "1.2.0",
859
- "n8n-core": "1.92.0"
863
+ "n8n-core": "1.93.0"
860
864
  },
861
865
  "dependencies": {
862
- "@aws-sdk/client-sso-oidc": "3.666.0",
866
+ "@aws-sdk/client-sso-oidc": "3.808.0",
863
867
  "@kafkajs/confluent-schema-registry": "3.8.0",
864
868
  "@mozilla/readability": "0.6.0",
865
869
  "@n8n/vm2": "3.9.25",
866
870
  "alasql": "4.4.0",
867
- "amqplib": "0.10.3",
871
+ "amqplib": "0.10.6",
868
872
  "aws4": "1.11.0",
869
873
  "basic-auth": "2.0.1",
870
874
  "change-case": "4.1.2",
@@ -917,7 +921,7 @@
917
921
  "semver": "7.5.4",
918
922
  "showdown": "2.1.0",
919
923
  "simple-git": "3.17.0",
920
- "snowflake-sdk": "1.12.0",
924
+ "snowflake-sdk": "2.1.0",
921
925
  "ssh2-sftp-client": "7.2.3",
922
926
  "tmp-promise": "3.0.3",
923
927
  "ts-ics": "1.2.2",
@@ -925,10 +929,10 @@
925
929
  "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz",
926
930
  "xml2js": "0.6.2",
927
931
  "xmlhttprequest-ssl": "3.1.0",
928
- "@n8n/config": "1.39.0",
932
+ "@n8n/config": "1.40.0",
929
933
  "@n8n/di": "0.5.0",
930
- "n8n-workflow": "1.91.0",
931
- "@n8n/imap": "0.9.0"
934
+ "@n8n/imap": "0.9.0",
935
+ "n8n-workflow": "1.92.0"
932
936
  },
933
937
  "license": "SEE LICENSE IN LICENSE.md",
934
938
  "homepage": "https://n8n.io",