n8n-nodes-base 2.40.2 → 2.41.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.
- package/dist/cjs/build.tsbuildinfo +1 -1
- package/dist/credentials/ClearbitApi.credentials.d.ts.map +1 -1
- package/dist/credentials/ClearbitApi.credentials.js +1 -0
- package/dist/credentials/ClearbitApi.credentials.js.map +1 -1
- package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.d.ts.map +1 -1
- package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js +1 -0
- package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/MondayComApi.credentials.js +1 -1
- package/dist/credentials/NotionApi.credentials.d.ts.map +1 -1
- package/dist/credentials/NotionApi.credentials.js +1 -0
- package/dist/credentials/NotionApi.credentials.js.map +1 -1
- package/dist/credentials/SlackApi.credentials.d.ts.map +1 -1
- package/dist/credentials/SlackApi.credentials.js +1 -0
- package/dist/credentials/SlackApi.credentials.js.map +1 -1
- package/dist/credentials/SlackOAuth2Api.credentials.js +1 -1
- package/dist/credentials/SlackOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/TelegramApi.credentials.d.ts.map +1 -1
- package/dist/credentials/TelegramApi.credentials.js +1 -0
- package/dist/credentials/TelegramApi.credentials.js.map +1 -1
- package/dist/credentials/common/aws/utils.d.ts +5 -1
- package/dist/credentials/common/aws/utils.d.ts.map +1 -1
- package/dist/credentials/common/aws/utils.js +6 -4
- package/dist/credentials/common/aws/utils.js.map +1 -1
- package/dist/known/credentials.json +4 -2
- package/dist/known/nodes.json +4 -0
- package/dist/node-definitions/.nodes-hash +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/emailReadImap/v2.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/emailReadImap/v21.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/emailReadImap/v22.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v1/mode_each.ts +0 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v1/mode_once.ts +0 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v11/mode_each.ts +0 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v11/mode_once.ts +0 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v12/mode_each.ts +0 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v12/mode_once.ts +0 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v13/mode_each.ts +0 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v13/mode_once.ts +0 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v14/index.schema.js +22 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v14/index.ts +15 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v14/mode_each.schema.js +27 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v14/mode_each.ts +99 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v14/mode_once.schema.js +27 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v14/mode_once.ts +99 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/googleAnalytics/v2/resource_report/operation_get.ts +2 -2
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftOutlook/v2/resource_event/operation_create.ts +2 -2
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/index.schema.js +2 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/index.ts +3 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_channel_message/operation_create.schema.js +2 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_channel_message/operation_create.ts +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_channel_message/operation_reply.schema.js +2 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_channel_message/operation_reply.ts +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/index.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/index.ts +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/operation_create.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/operation_create.ts +73 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/operation_get.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/operation_get.ts +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/operation_get_all.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/operation_get_all.ts +37 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat_message/operation_create.schema.js +2 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat_message/operation_create.ts +20 -0
- package/dist/nodes/Databricks/Databricks.node.d.ts.map +1 -1
- package/dist/nodes/Databricks/Databricks.node.js +3 -36
- package/dist/nodes/Databricks/Databricks.node.js.map +1 -1
- package/dist/nodes/Databricks/DatabricksTrigger.node.d.ts +6 -0
- package/dist/nodes/Databricks/DatabricksTrigger.node.d.ts.map +1 -0
- package/dist/nodes/Databricks/DatabricksTrigger.node.js +30 -0
- package/dist/nodes/Databricks/DatabricksTrigger.node.js.map +1 -0
- package/dist/nodes/Databricks/DatabricksTrigger.node.json +18 -0
- package/dist/nodes/Databricks/actions/helpers.d.ts +14 -15
- package/dist/nodes/Databricks/actions/helpers.d.ts.map +1 -1
- package/dist/nodes/Databricks/actions/helpers.js +72 -31
- package/dist/nodes/Databricks/actions/helpers.js.map +1 -1
- package/dist/nodes/Databricks/actions/interfaces.d.ts +75 -12
- package/dist/nodes/Databricks/actions/interfaces.d.ts.map +1 -1
- package/dist/nodes/Databricks/actions/job/Job.resource.d.ts +3 -0
- package/dist/nodes/Databricks/actions/job/Job.resource.d.ts.map +1 -1
- package/dist/nodes/Databricks/actions/job/Job.resource.js +4 -1
- package/dist/nodes/Databricks/actions/job/Job.resource.js.map +1 -1
- package/dist/nodes/Databricks/actions/job/getJob.operation.d.ts +3 -0
- package/dist/nodes/Databricks/actions/job/getJob.operation.d.ts.map +1 -0
- package/dist/nodes/Databricks/actions/job/getJob.operation.js +41 -0
- package/dist/nodes/Databricks/actions/job/getJob.operation.js.map +1 -0
- package/dist/nodes/Databricks/actions/job/getRun.operation.d.ts +3 -0
- package/dist/nodes/Databricks/actions/job/getRun.operation.d.ts.map +1 -0
- package/dist/nodes/Databricks/actions/job/getRun.operation.js +36 -0
- package/dist/nodes/Databricks/actions/job/getRun.operation.js.map +1 -0
- package/dist/nodes/Databricks/actions/job/getRunOutput.operation.d.ts +3 -0
- package/dist/nodes/Databricks/actions/job/getRunOutput.operation.d.ts.map +1 -0
- package/dist/nodes/Databricks/actions/job/getRunOutput.operation.js +61 -0
- package/dist/nodes/Databricks/actions/job/getRunOutput.operation.js.map +1 -0
- package/dist/nodes/Databricks/actions/job/run.operation.d.ts.map +1 -1
- package/dist/nodes/Databricks/actions/job/run.operation.js +8 -38
- package/dist/nodes/Databricks/actions/job/run.operation.js.map +1 -1
- package/dist/nodes/Databricks/actions/job/runState.d.ts +11 -0
- package/dist/nodes/Databricks/actions/job/runState.d.ts.map +1 -0
- package/dist/nodes/Databricks/actions/job/runState.js +30 -0
- package/dist/nodes/Databricks/actions/job/runState.js.map +1 -0
- package/dist/nodes/Databricks/actions/router.js +1 -1
- package/dist/nodes/Databricks/actions/router.js.map +1 -1
- package/dist/nodes/Databricks/authentication.d.ts +4 -0
- package/dist/nodes/Databricks/authentication.d.ts.map +1 -0
- package/dist/nodes/Databricks/authentication.js +40 -0
- package/dist/nodes/Databricks/authentication.js.map +1 -0
- package/dist/nodes/Databricks/constants.d.ts +3 -0
- package/dist/nodes/Databricks/constants.d.ts.map +1 -1
- package/dist/nodes/Databricks/constants.js +4 -1
- package/dist/nodes/Databricks/constants.js.map +1 -1
- package/dist/nodes/Databricks/methods/listSearch.d.ts +1 -0
- package/dist/nodes/Databricks/methods/listSearch.d.ts.map +1 -1
- package/dist/nodes/Databricks/methods/listSearch.js +53 -15
- package/dist/nodes/Databricks/methods/listSearch.js.map +1 -1
- package/dist/nodes/Databricks/resources/job/operations.d.ts.map +1 -1
- package/dist/nodes/Databricks/resources/job/operations.js +18 -0
- package/dist/nodes/Databricks/resources/job/operations.js.map +1 -1
- package/dist/nodes/Databricks/resources/job/parameters.d.ts.map +1 -1
- package/dist/nodes/Databricks/resources/job/parameters.js +51 -2
- package/dist/nodes/Databricks/resources/job/parameters.js.map +1 -1
- package/dist/nodes/Databricks/transport/index.d.ts +4 -0
- package/dist/nodes/Databricks/transport/index.d.ts.map +1 -0
- package/dist/nodes/Databricks/transport/index.js +16 -0
- package/dist/nodes/Databricks/transport/index.js.map +1 -0
- package/dist/nodes/Databricks/transport/jobRuns.d.ts +16 -0
- package/dist/nodes/Databricks/transport/jobRuns.d.ts.map +1 -0
- package/dist/nodes/Databricks/transport/jobRuns.js +55 -0
- package/dist/nodes/Databricks/transport/jobRuns.js.map +1 -0
- package/dist/nodes/Databricks/transport/pagination.d.ts +13 -0
- package/dist/nodes/Databricks/transport/pagination.d.ts.map +1 -0
- package/dist/nodes/Databricks/transport/pagination.js +28 -0
- package/dist/nodes/Databricks/transport/pagination.js.map +1 -0
- package/dist/nodes/Databricks/transport/pipelineEvents.d.ts +68 -0
- package/dist/nodes/Databricks/transport/pipelineEvents.d.ts.map +1 -0
- package/dist/nodes/Databricks/transport/pipelineEvents.js +88 -0
- package/dist/nodes/Databricks/transport/pipelineEvents.js.map +1 -0
- package/dist/nodes/EmailReadImap/search-criteria.d.ts +9 -0
- package/dist/nodes/EmailReadImap/search-criteria.d.ts.map +1 -0
- package/dist/nodes/EmailReadImap/search-criteria.js +254 -0
- package/dist/nodes/EmailReadImap/search-criteria.js.map +1 -0
- package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.d.ts +1 -3
- package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.d.ts.map +1 -1
- package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js +59 -64
- package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js.map +1 -1
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.d.ts.map +1 -1
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js +16 -5
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js.map +1 -1
- package/dist/nodes/EmailReadImap/v2/utils.d.ts +2 -1
- package/dist/nodes/EmailReadImap/v2/utils.d.ts.map +1 -1
- package/dist/nodes/EmailReadImap/v2/utils.js +32 -38
- package/dist/nodes/EmailReadImap/v2/utils.js.map +1 -1
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.d.ts.map +1 -1
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.js +48 -42
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.js.map +1 -1
- package/dist/nodes/Form/v1/FormTriggerV1.node.d.ts +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/channelMessage/create.operation.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/channelMessage/create.operation.js +13 -11
- package/dist/nodes/Microsoft/Teams/v2/actions/channelMessage/create.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/channelMessage/reply.operation.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/channelMessage/reply.operation.js +5 -3
- package/dist/nodes/Microsoft/Teams/v2/actions/channelMessage/reply.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/create.operation.d.ts +31 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/create.operation.d.ts.map +1 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/create.operation.js +225 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/create.operation.js.map +1 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/get.operation.d.ts +31 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/get.operation.d.ts.map +1 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/get.operation.js +37 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/get.operation.js.map +1 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/getAll.operation.d.ts +31 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/getAll.operation.d.ts.map +1 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/getAll.operation.js +43 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/getAll.operation.js.map +1 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/index.d.ts +7 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/index.d.ts.map +1 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/index.js +96 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/index.js.map +1 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/sharedGuard.d.ts +10 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/sharedGuard.d.ts.map +1 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/sharedGuard.js +20 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chat/sharedGuard.js.map +1 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/create.operation.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/create.operation.js +9 -12
- package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/create.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/get.operation.js +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/get.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/getAll.operation.js +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/getAll.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/messageActions.js +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/messageActions.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/sendAndWait.operation.js +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/sendAndWait.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/sharedGuard.d.ts +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/sharedGuard.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/sharedGuard.js +2 -2
- package/dist/nodes/Microsoft/Teams/v2/actions/node.type.d.ts +1 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/node.type.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/router.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/router.js +25 -0
- package/dist/nodes/Microsoft/Teams/v2/actions/router.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/versionDescription.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/versionDescription.js +7 -1
- package/dist/nodes/Microsoft/Teams/v2/actions/versionDescription.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/descriptions/common.description.d.ts +22 -3
- package/dist/nodes/Microsoft/Teams/v2/descriptions/common.description.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/descriptions/common.description.js +93 -4
- package/dist/nodes/Microsoft/Teams/v2/descriptions/common.description.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/descriptions/rlc.description.d.ts +6 -0
- package/dist/nodes/Microsoft/Teams/v2/descriptions/rlc.description.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/descriptions/rlc.description.js +53 -1
- package/dist/nodes/Microsoft/Teams/v2/descriptions/rlc.description.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils.d.ts +38 -14
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils.js +268 -65
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/methods/listSearch.d.ts +6 -0
- package/dist/nodes/Microsoft/Teams/v2/methods/listSearch.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/methods/listSearch.js +51 -0
- package/dist/nodes/Microsoft/Teams/v2/methods/listSearch.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/transport/index.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/transport/index.js.map +1 -1
- package/dist/nodes/MondayCom/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/MondayCom/GenericFunctions.js +22 -6
- package/dist/nodes/MondayCom/GenericFunctions.js.map +1 -1
- package/dist/nodes/MondayCom/MondayCom.node.d.ts.map +1 -1
- package/dist/nodes/MondayCom/MondayCom.node.js +41 -37
- package/dist/nodes/MondayCom/MondayCom.node.js.map +1 -1
- package/dist/nodes/S3/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/S3/GenericFunctions.js +4 -0
- package/dist/nodes/S3/GenericFunctions.js.map +1 -1
- package/dist/nodes/Slack/V2/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Slack/V2/GenericFunctions.js +3 -0
- package/dist/nodes/Slack/V2/GenericFunctions.js.map +1 -1
- package/dist/nodes/Telegram/GenericFunctions.d.ts +1 -1
- package/dist/nodes/TheHiveProject/helpers/constants.d.ts +1 -1
- package/dist/types/credentials.json +9 -9
- package/dist/types/nodes.json +7 -6
- package/dist/utils/microsoft/transport.d.ts.map +1 -1
- package/dist/utils/microsoft/transport.js +23 -4
- package/dist/utils/microsoft/transport.js.map +1 -1
- package/package.json +16 -14
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execute Sub-workflow Node - Version 1.4
|
|
3
|
+
* Discriminator: mode=each
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// Helper types for special n8n fields
|
|
8
|
+
type ResourceMapperField = { id?: string; displayName?: string; required?: boolean; defaultMatch?: boolean; display?: boolean; type?: string; canBeUsedToMatch?: boolean; [key: string]: unknown };
|
|
9
|
+
type ResourceMapperCommon = { matchingColumns?: string[]; cachedResultName?: string; [key: string]: unknown };
|
|
10
|
+
type ResourceMapperValue = ResourceMapperCommon & { mappingMode: string; value?: null | Record<string, unknown>; schema?: ResourceMapperField[] };
|
|
11
|
+
|
|
12
|
+
/** Call the sub-workflow individually for each item */
|
|
13
|
+
export type ExecuteWorkflowV14EachParams = {
|
|
14
|
+
/**
|
|
15
|
+
* <patterns>
|
|
16
|
+
* These workflowInputs patterns apply to Execute Workflow node versions 1.2 and newer.
|
|
17
|
+
* <pattern title="Child accepts all data">
|
|
18
|
+
* Omit workflowInputs from parameters.
|
|
19
|
+
* </pattern>
|
|
20
|
+
* <pattern title="Child declares inputs">
|
|
21
|
+
* workflowInputs: {
|
|
22
|
+
* mappingMode: 'defineBelow',
|
|
23
|
+
* value: {
|
|
24
|
+
* orderId: expr('{{ $json.id }}'),
|
|
25
|
+
* amount: expr('{{ $json.total }}'),
|
|
26
|
+
* },
|
|
27
|
+
* matchingColumns: [],
|
|
28
|
+
* schema: [
|
|
29
|
+
* {
|
|
30
|
+
* id: 'orderId',
|
|
31
|
+
* displayName: 'orderId',
|
|
32
|
+
* required: false,
|
|
33
|
+
* defaultMatch: false,
|
|
34
|
+
* display: true,
|
|
35
|
+
* canBeUsedToMatch: true,
|
|
36
|
+
* type: 'string',
|
|
37
|
+
* },
|
|
38
|
+
* {
|
|
39
|
+
* id: 'amount',
|
|
40
|
+
* displayName: 'amount',
|
|
41
|
+
* required: false,
|
|
42
|
+
* defaultMatch: false,
|
|
43
|
+
* display: true,
|
|
44
|
+
* canBeUsedToMatch: true,
|
|
45
|
+
* type: 'number',
|
|
46
|
+
* },
|
|
47
|
+
* ],
|
|
48
|
+
* attemptToConvertTypes: false,
|
|
49
|
+
* }
|
|
50
|
+
* </pattern>
|
|
51
|
+
* </patterns>
|
|
52
|
+
*/
|
|
53
|
+
mode: 'each';
|
|
54
|
+
/**
|
|
55
|
+
* Where to get the workflow to execute from
|
|
56
|
+
* @default database
|
|
57
|
+
*/
|
|
58
|
+
source?: 'database' | 'parameter' | Expression<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Workflow
|
|
61
|
+
* @displayOptions.show { source: ["database"] }
|
|
62
|
+
*/
|
|
63
|
+
workflowId?: { __rl: true; mode: 'list' | 'id'; value: string | number; cachedResultName?: string; cachedResultUrl?: string } | Expression<string>;
|
|
64
|
+
/**
|
|
65
|
+
* The path to local JSON workflow file to execute
|
|
66
|
+
* @displayOptions.show { source: ["localFile"] }
|
|
67
|
+
*/
|
|
68
|
+
workflowPath: string | Expression<string>;
|
|
69
|
+
/**
|
|
70
|
+
* The workflow JSON code to execute
|
|
71
|
+
* @displayOptions.show { source: ["parameter"] }
|
|
72
|
+
*/
|
|
73
|
+
workflowJson?: IDataObject | string | Expression<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The URL from which to load the workflow from
|
|
76
|
+
* @displayOptions.show { source: ["url"] }
|
|
77
|
+
*/
|
|
78
|
+
workflowUrl: string | Expression<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Workflow Inputs
|
|
81
|
+
* @builderHint The default { mappingMode: 'defineBelow', value: null } is only a temporary UI initialization state and must never be emitted in a workflow. Omit workflowInputs when the selected sub-workflow's trigger is set to 'Accept all data'. When the trigger declares inputs, pass the full Resource Mapper object and make the value and schema fields exactly match the declared input names and types.
|
|
82
|
+
* @displayOptions.show { source: ["database"] }
|
|
83
|
+
* @displayOptions.hide { workflowId: [""] }
|
|
84
|
+
* @default {"mappingMode":"defineBelow","value":null}
|
|
85
|
+
*/
|
|
86
|
+
workflowInputs?: ResourceMapperValue;
|
|
87
|
+
options?: {
|
|
88
|
+
/** Whether the main workflow should wait for the sub-workflow to complete its execution before proceeding
|
|
89
|
+
* @default true
|
|
90
|
+
*/
|
|
91
|
+
waitForSubWorkflow?: boolean | Expression<boolean>;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export type ExecuteWorkflowV14EachNode = {
|
|
96
|
+
type: 'n8n-nodes-base.executeWorkflow';
|
|
97
|
+
version: 1.4;
|
|
98
|
+
config: NodeConfig<ExecuteWorkflowV14EachParams>;
|
|
99
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execute Sub-workflow Node - Version 1.4 - Zod Schema
|
|
3
|
+
* Discriminator: mode=once
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
mode: z.literal('once').default('once'),
|
|
18
|
+
source: z.union([z.literal('database'), z.literal('parameter'), expressionSchema]).optional(),
|
|
19
|
+
workflowId: resolveSchema({ parameters, schema: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]), required: false, displayOptions: {"show":{"source":["database"]}}, defaults: {"source":"database"} }),
|
|
20
|
+
workflowPath: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"show":{"source":["localFile"]}}, defaults: {"source":"database"} }),
|
|
21
|
+
workflowJson: resolveSchema({ parameters, schema: z.union([iDataObjectSchema, z.string()]), required: false, displayOptions: {"show":{"source":["parameter"]}}, defaults: {"source":"database"} }),
|
|
22
|
+
workflowUrl: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"show":{"source":["url"]}}, defaults: {"source":"database"} }),
|
|
23
|
+
workflowInputs: resolveSchema({ parameters, schema: resourceMapperValueSchema, required: false, displayOptions: {"show":{"source":["database"]},"hide":{"workflowId":[""]}}, defaults: {"source":"database","workflowId":""} }),
|
|
24
|
+
options: z.object({ waitForSubWorkflow: booleanOrExpression.optional() }).optional(),
|
|
25
|
+
}).optional(),
|
|
26
|
+
});
|
|
27
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execute Sub-workflow Node - Version 1.4
|
|
3
|
+
* Discriminator: mode=once
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// Helper types for special n8n fields
|
|
8
|
+
type ResourceMapperField = { id?: string; displayName?: string; required?: boolean; defaultMatch?: boolean; display?: boolean; type?: string; canBeUsedToMatch?: boolean; [key: string]: unknown };
|
|
9
|
+
type ResourceMapperCommon = { matchingColumns?: string[]; cachedResultName?: string; [key: string]: unknown };
|
|
10
|
+
type ResourceMapperValue = ResourceMapperCommon & { mappingMode: string; value?: null | Record<string, unknown>; schema?: ResourceMapperField[] };
|
|
11
|
+
|
|
12
|
+
/** Pass all items into a single execution of the sub-workflow */
|
|
13
|
+
export type ExecuteWorkflowV14OnceParams = {
|
|
14
|
+
/**
|
|
15
|
+
* <patterns>
|
|
16
|
+
* These workflowInputs patterns apply to Execute Workflow node versions 1.2 and newer.
|
|
17
|
+
* <pattern title="Child accepts all data">
|
|
18
|
+
* Omit workflowInputs from parameters.
|
|
19
|
+
* </pattern>
|
|
20
|
+
* <pattern title="Child declares inputs">
|
|
21
|
+
* workflowInputs: {
|
|
22
|
+
* mappingMode: 'defineBelow',
|
|
23
|
+
* value: {
|
|
24
|
+
* orderId: expr('{{ $json.id }}'),
|
|
25
|
+
* amount: expr('{{ $json.total }}'),
|
|
26
|
+
* },
|
|
27
|
+
* matchingColumns: [],
|
|
28
|
+
* schema: [
|
|
29
|
+
* {
|
|
30
|
+
* id: 'orderId',
|
|
31
|
+
* displayName: 'orderId',
|
|
32
|
+
* required: false,
|
|
33
|
+
* defaultMatch: false,
|
|
34
|
+
* display: true,
|
|
35
|
+
* canBeUsedToMatch: true,
|
|
36
|
+
* type: 'string',
|
|
37
|
+
* },
|
|
38
|
+
* {
|
|
39
|
+
* id: 'amount',
|
|
40
|
+
* displayName: 'amount',
|
|
41
|
+
* required: false,
|
|
42
|
+
* defaultMatch: false,
|
|
43
|
+
* display: true,
|
|
44
|
+
* canBeUsedToMatch: true,
|
|
45
|
+
* type: 'number',
|
|
46
|
+
* },
|
|
47
|
+
* ],
|
|
48
|
+
* attemptToConvertTypes: false,
|
|
49
|
+
* }
|
|
50
|
+
* </pattern>
|
|
51
|
+
* </patterns>
|
|
52
|
+
*/
|
|
53
|
+
mode: 'once';
|
|
54
|
+
/**
|
|
55
|
+
* Where to get the workflow to execute from
|
|
56
|
+
* @default database
|
|
57
|
+
*/
|
|
58
|
+
source?: 'database' | 'parameter' | Expression<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Workflow
|
|
61
|
+
* @displayOptions.show { source: ["database"] }
|
|
62
|
+
*/
|
|
63
|
+
workflowId?: { __rl: true; mode: 'list' | 'id'; value: string | number; cachedResultName?: string; cachedResultUrl?: string } | Expression<string>;
|
|
64
|
+
/**
|
|
65
|
+
* The path to local JSON workflow file to execute
|
|
66
|
+
* @displayOptions.show { source: ["localFile"] }
|
|
67
|
+
*/
|
|
68
|
+
workflowPath: string | Expression<string>;
|
|
69
|
+
/**
|
|
70
|
+
* The workflow JSON code to execute
|
|
71
|
+
* @displayOptions.show { source: ["parameter"] }
|
|
72
|
+
*/
|
|
73
|
+
workflowJson?: IDataObject | string | Expression<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The URL from which to load the workflow from
|
|
76
|
+
* @displayOptions.show { source: ["url"] }
|
|
77
|
+
*/
|
|
78
|
+
workflowUrl: string | Expression<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Workflow Inputs
|
|
81
|
+
* @builderHint The default { mappingMode: 'defineBelow', value: null } is only a temporary UI initialization state and must never be emitted in a workflow. Omit workflowInputs when the selected sub-workflow's trigger is set to 'Accept all data'. When the trigger declares inputs, pass the full Resource Mapper object and make the value and schema fields exactly match the declared input names and types.
|
|
82
|
+
* @displayOptions.show { source: ["database"] }
|
|
83
|
+
* @displayOptions.hide { workflowId: [""] }
|
|
84
|
+
* @default {"mappingMode":"defineBelow","value":null}
|
|
85
|
+
*/
|
|
86
|
+
workflowInputs?: ResourceMapperValue;
|
|
87
|
+
options?: {
|
|
88
|
+
/** Whether the main workflow should wait for the sub-workflow to complete its execution before proceeding
|
|
89
|
+
* @default true
|
|
90
|
+
*/
|
|
91
|
+
waitForSubWorkflow?: boolean | Expression<boolean>;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export type ExecuteWorkflowV14OnceNode = {
|
|
96
|
+
type: 'n8n-nodes-base.executeWorkflow';
|
|
97
|
+
version: 1.4;
|
|
98
|
+
config: NodeConfig<ExecuteWorkflowV14OnceParams>;
|
|
99
|
+
};
|
|
@@ -34,13 +34,13 @@ export type GoogleAnalyticsV2ReportGetParams = {
|
|
|
34
34
|
/**
|
|
35
35
|
* Start
|
|
36
36
|
* @displayOptions.show { dateRange: ["custom"], propertyType: ["ga4"] }
|
|
37
|
-
* @default 2026-09-
|
|
37
|
+
* @default 2026-09-14T00:00:00.000+00:00
|
|
38
38
|
*/
|
|
39
39
|
startDate?: string | Expression<string>;
|
|
40
40
|
/**
|
|
41
41
|
* End
|
|
42
42
|
* @displayOptions.show { dateRange: ["custom"], propertyType: ["ga4"] }
|
|
43
|
-
* @default 2026-09-
|
|
43
|
+
* @default 2026-09-21T00:00:00.000+00:00
|
|
44
44
|
*/
|
|
45
45
|
endDate?: string | Expression<string>;
|
|
46
46
|
/**
|
|
@@ -33,12 +33,12 @@ export type MicrosoftOutlookV2EventCreateParams = {
|
|
|
33
33
|
subject: string | Expression<string>;
|
|
34
34
|
/**
|
|
35
35
|
* Start
|
|
36
|
-
* @default 2026-09-
|
|
36
|
+
* @default 2026-09-22T07:21:42.991+00:00
|
|
37
37
|
*/
|
|
38
38
|
startDateTime?: string | Expression<string>;
|
|
39
39
|
/**
|
|
40
40
|
* End
|
|
41
|
-
* @default 2026-09-
|
|
41
|
+
* @default 2026-09-22T07:51:42.991+00:00
|
|
42
42
|
*/
|
|
43
43
|
endDateTime?: string | Expression<string>;
|
|
44
44
|
/**
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
const getChannelSchema = require('./resource_channel/index.schema');
|
|
12
12
|
const getChannelMessageSchema = require('./resource_channel_message/index.schema');
|
|
13
|
+
const getChatSchema = require('./resource_chat/index.schema');
|
|
13
14
|
const getChatMemberSchema = require('./resource_chat_member/index.schema');
|
|
14
15
|
const getChatMessageSchema = require('./resource_chat_message/index.schema');
|
|
15
16
|
const getOnlineMeetingSchema = require('./resource_online_meeting/index.schema');
|
|
@@ -22,6 +23,7 @@ module.exports = function getSchema(helpers) {
|
|
|
22
23
|
return z.union([
|
|
23
24
|
getChannelSchema({ ...helpers, parameters: effectiveParams }),
|
|
24
25
|
getChannelMessageSchema({ ...helpers, parameters: effectiveParams }),
|
|
26
|
+
getChatSchema({ ...helpers, parameters: effectiveParams }),
|
|
25
27
|
getChatMemberSchema({ ...helpers, parameters: effectiveParams }),
|
|
26
28
|
getChatMessageSchema({ ...helpers, parameters: effectiveParams }),
|
|
27
29
|
getOnlineMeetingSchema({ ...helpers, parameters: effectiveParams }),
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import type { MicrosoftTeamsV2ChannelNode } from './resource_channel';
|
|
7
7
|
import type { MicrosoftTeamsV2ChannelMessageNode } from './resource_channel_message';
|
|
8
|
+
import type { MicrosoftTeamsV2ChatNode } from './resource_chat';
|
|
8
9
|
import type { MicrosoftTeamsV2ChatMemberNode } from './resource_chat_member';
|
|
9
10
|
import type { MicrosoftTeamsV2ChatMessageNode } from './resource_chat_message';
|
|
10
11
|
import type { MicrosoftTeamsV2OnlineMeetingNode } from './resource_online_meeting';
|
|
@@ -12,6 +13,7 @@ import type { MicrosoftTeamsV2TaskNode } from './resource_task';
|
|
|
12
13
|
|
|
13
14
|
export * from './resource_channel';
|
|
14
15
|
export * from './resource_channel_message';
|
|
16
|
+
export * from './resource_chat';
|
|
15
17
|
export * from './resource_chat_member';
|
|
16
18
|
export * from './resource_chat_message';
|
|
17
19
|
export * from './resource_online_meeting';
|
|
@@ -20,6 +22,7 @@ export * from './resource_task';
|
|
|
20
22
|
export type MicrosoftTeamsV2Node =
|
|
21
23
|
| MicrosoftTeamsV2ChannelNode
|
|
22
24
|
| MicrosoftTeamsV2ChannelMessageNode
|
|
25
|
+
| MicrosoftTeamsV2ChatNode
|
|
23
26
|
| MicrosoftTeamsV2ChatMemberNode
|
|
24
27
|
| MicrosoftTeamsV2ChatMessageNode
|
|
25
28
|
| MicrosoftTeamsV2OnlineMeetingNode
|
|
@@ -21,7 +21,8 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
21
21
|
channelId: resolveSchema({ parameters, schema: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
|
|
22
22
|
contentType: resolveSchema({ parameters, schema: z.union([z.literal('text'), z.literal('html'), expressionSchema]), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
|
|
23
23
|
message: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
|
|
24
|
-
|
|
24
|
+
mentions: resolveSchema({ parameters, schema: z.object({ mention: z.array(z.object({ mentionType: z.union([z.literal('user'), z.literal('tag')]).optional(), userId: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional(), tagId: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional() })).optional() }), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
|
|
25
|
+
options: resolveSchema({ parameters, schema: z.object({ includeLinkToWorkflow: booleanOrExpression.optional(), mentionPlacement: z.union([z.literal('start'), z.literal('end'), expressionSchema]).optional(), makeReply: stringOrExpression.optional() }), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
|
|
25
26
|
}).optional(),
|
|
26
27
|
});
|
|
27
28
|
};
|
|
@@ -40,6 +40,33 @@ export type MicrosoftTeamsV2ChannelMessageCreateParams = {
|
|
|
40
40
|
* @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
|
|
41
41
|
*/
|
|
42
42
|
message: string | Expression<string>;
|
|
43
|
+
/**
|
|
44
|
+
* People or team tags to @mention. A team tag notifies everyone who carries it. The Mention Placement option decides whether the tokens go before or after the message text, and adding a mention makes the message render as HTML even when Content Type is Text.
|
|
45
|
+
* @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
|
|
46
|
+
* @default {}
|
|
47
|
+
*/
|
|
48
|
+
mentions?: {
|
|
49
|
+
/** Mention
|
|
50
|
+
*/
|
|
51
|
+
mention?: Array<{
|
|
52
|
+
/** Mention Type
|
|
53
|
+
* @default user
|
|
54
|
+
*/
|
|
55
|
+
mentionType?: 'user' | 'tag';
|
|
56
|
+
/** Select the user from the list or by ID. Guest users must be given by their object ID, not by their user principal name.
|
|
57
|
+
* @searchListMethod getUsers
|
|
58
|
+
* @displayOptions.show { mentionType: ["user"] }
|
|
59
|
+
* @default {"mode":"list","value":""}
|
|
60
|
+
*/
|
|
61
|
+
userId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
62
|
+
/** Select a tag from the team, or enter its ID
|
|
63
|
+
* @searchListMethod getTags
|
|
64
|
+
* @displayOptions.show { mentionType: ["tag"] }
|
|
65
|
+
* @default {"mode":"list","value":""}
|
|
66
|
+
*/
|
|
67
|
+
tagId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
68
|
+
}>;
|
|
69
|
+
};
|
|
43
70
|
/**
|
|
44
71
|
* Options
|
|
45
72
|
* @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
|
|
@@ -50,6 +77,10 @@ export type MicrosoftTeamsV2ChannelMessageCreateParams = {
|
|
|
50
77
|
* @default true
|
|
51
78
|
*/
|
|
52
79
|
includeLinkToWorkflow?: boolean | Expression<boolean>;
|
|
80
|
+
/** Whether the mentions go before or after the message text. A mention makes the message render as HTML, even if Content Type is Text.
|
|
81
|
+
* @default start
|
|
82
|
+
*/
|
|
83
|
+
mentionPlacement?: 'start' | 'end' | Expression<string>;
|
|
53
84
|
/** An optional ID of the message you want to reply to. The message ID is the number before "?tenantId" in the message URL. The Reply operation does the same thing and is easier to find.
|
|
54
85
|
*/
|
|
55
86
|
makeReply?: string | Expression<string>;
|
|
@@ -22,7 +22,8 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
22
22
|
messageId: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
|
|
23
23
|
contentType: resolveSchema({ parameters, schema: z.union([z.literal('text'), z.literal('html'), expressionSchema]), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
|
|
24
24
|
message: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
|
|
25
|
-
|
|
25
|
+
mentions: resolveSchema({ parameters, schema: z.object({ mention: z.array(z.object({ mentionType: z.union([z.literal('user'), z.literal('tag')]).optional(), userId: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional(), tagId: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional() })).optional() }), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
|
|
26
|
+
options: resolveSchema({ parameters, schema: z.object({ includeLinkToWorkflow: booleanOrExpression.optional(), mentionPlacement: z.union([z.literal('start'), z.literal('end'), expressionSchema]).optional() }), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
|
|
26
27
|
}).optional(),
|
|
27
28
|
});
|
|
28
29
|
};
|
|
@@ -45,6 +45,33 @@ export type MicrosoftTeamsV2ChannelMessageReplyParams = {
|
|
|
45
45
|
* @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
|
|
46
46
|
*/
|
|
47
47
|
message: string | Expression<string>;
|
|
48
|
+
/**
|
|
49
|
+
* People or team tags to @mention. A team tag notifies everyone who carries it. The Mention Placement option decides whether the tokens go before or after the message text, and adding a mention makes the message render as HTML even when Content Type is Text.
|
|
50
|
+
* @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
|
|
51
|
+
* @default {}
|
|
52
|
+
*/
|
|
53
|
+
mentions?: {
|
|
54
|
+
/** Mention
|
|
55
|
+
*/
|
|
56
|
+
mention?: Array<{
|
|
57
|
+
/** Mention Type
|
|
58
|
+
* @default user
|
|
59
|
+
*/
|
|
60
|
+
mentionType?: 'user' | 'tag';
|
|
61
|
+
/** Select the user from the list or by ID. Guest users must be given by their object ID, not by their user principal name.
|
|
62
|
+
* @searchListMethod getUsers
|
|
63
|
+
* @displayOptions.show { mentionType: ["user"] }
|
|
64
|
+
* @default {"mode":"list","value":""}
|
|
65
|
+
*/
|
|
66
|
+
userId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
67
|
+
/** Select a tag from the team, or enter its ID
|
|
68
|
+
* @searchListMethod getTags
|
|
69
|
+
* @displayOptions.show { mentionType: ["tag"] }
|
|
70
|
+
* @default {"mode":"list","value":""}
|
|
71
|
+
*/
|
|
72
|
+
tagId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
73
|
+
}>;
|
|
74
|
+
};
|
|
48
75
|
/**
|
|
49
76
|
* Options
|
|
50
77
|
* @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
|
|
@@ -55,6 +82,10 @@ export type MicrosoftTeamsV2ChannelMessageReplyParams = {
|
|
|
55
82
|
* @default true
|
|
56
83
|
*/
|
|
57
84
|
includeLinkToWorkflow?: boolean | Expression<boolean>;
|
|
85
|
+
/** Whether the mentions go before or after the message text. A mention makes the message render as HTML, even if Content Type is Text.
|
|
86
|
+
* @default start
|
|
87
|
+
*/
|
|
88
|
+
mentionPlacement?: 'start' | 'end' | Expression<string>;
|
|
58
89
|
};
|
|
59
90
|
};
|
|
60
91
|
|
package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/index.schema.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft Teams - Chat Resource - Zod Schema Factory
|
|
3
|
+
* Exports a factory that unions all operation schemas for this resource.
|
|
4
|
+
*
|
|
5
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
6
|
+
* by the schema-validator, not imported from external files.
|
|
7
|
+
*
|
|
8
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const getCreateSchema = require('./operation_create.schema');
|
|
12
|
+
const getGetSchema = require('./operation_get.schema');
|
|
13
|
+
const getGetAllSchema = require('./operation_get_all.schema');
|
|
14
|
+
|
|
15
|
+
module.exports = function getSchema(helpers) {
|
|
16
|
+
const { parameters, z } = helpers;
|
|
17
|
+
// Apply operation default if not set
|
|
18
|
+
const effectiveParams = parameters.operation === undefined ? { ...parameters, operation: 'create' } : parameters;
|
|
19
|
+
return z.union([
|
|
20
|
+
getCreateSchema({ ...helpers, parameters: effectiveParams }),
|
|
21
|
+
getGetSchema({ ...helpers, parameters: effectiveParams }),
|
|
22
|
+
getGetAllSchema({ ...helpers, parameters: effectiveParams }),
|
|
23
|
+
]);
|
|
24
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft Teams - Chat Resource
|
|
3
|
+
* Re-exports all operation types for this resource.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { MicrosoftTeamsV2ChatCreateNode } from './operation_create';
|
|
7
|
+
import type { MicrosoftTeamsV2ChatGetNode } from './operation_get';
|
|
8
|
+
import type { MicrosoftTeamsV2ChatGetAllNode } from './operation_get_all';
|
|
9
|
+
|
|
10
|
+
export * from './operation_create';
|
|
11
|
+
export * from './operation_get';
|
|
12
|
+
export * from './operation_get_all';
|
|
13
|
+
|
|
14
|
+
export type MicrosoftTeamsV2ChatNode =
|
|
15
|
+
| MicrosoftTeamsV2ChatCreateNode
|
|
16
|
+
| MicrosoftTeamsV2ChatGetNode
|
|
17
|
+
| MicrosoftTeamsV2ChatGetAllNode
|
|
18
|
+
;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft Teams Node - Version 2 - Zod Schema
|
|
3
|
+
* Discriminator: resource=chat, operation=create
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('chat'),
|
|
18
|
+
operation: z.literal('create').default('create'),
|
|
19
|
+
authentication: z.union([z.literal('microsoftTeamsOAuth2Api'), z.literal('microsoftOAuth2Api'), z.literal('microsoftEntraServicePrincipalApi')]).optional(),
|
|
20
|
+
chatType: resolveSchema({ parameters, schema: z.union([z.literal('group'), z.literal('oneOnOne'), expressionSchema]), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
|
|
21
|
+
members: resolveSchema({ parameters, schema: z.object({ member: z.array(z.object({ userId: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional(), role: z.union([z.literal('guest'), z.literal('owner'), expressionSchema]).optional(), tenantId: stringOrExpression.optional() })).min(1) }), required: true, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
|
|
22
|
+
topic: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"chatType":["group"]},"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}}, defaults: {"chatType":"oneOnOne"} }),
|
|
23
|
+
}).optional(),
|
|
24
|
+
});
|
|
25
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft Teams Node - Version 2
|
|
3
|
+
* Discriminator: resource=chat, operation=create
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
microsoftTeamsOAuth2Api: CredentialReference;
|
|
9
|
+
microsoftOAuth2Api: CredentialReference;
|
|
10
|
+
microsoftEntraServicePrincipalApi: CredentialReference;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** Create a channel */
|
|
14
|
+
export type MicrosoftTeamsV2ChatCreateParams = {
|
|
15
|
+
resource: 'chat';
|
|
16
|
+
operation: 'create';
|
|
17
|
+
authentication?: 'microsoftTeamsOAuth2Api' | 'microsoftOAuth2Api' | 'microsoftEntraServicePrincipalApi';
|
|
18
|
+
/**
|
|
19
|
+
* Whether to create a chat with one other person or a group chat
|
|
20
|
+
* @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
|
|
21
|
+
* @default oneOnOne
|
|
22
|
+
*/
|
|
23
|
+
chatType?: 'group' | 'oneOnOne' | Expression<string>;
|
|
24
|
+
/**
|
|
25
|
+
* The other people to add to the chat. You are added automatically.
|
|
26
|
+
* @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
|
|
27
|
+
* @default {}
|
|
28
|
+
*/
|
|
29
|
+
members: {
|
|
30
|
+
/** Participant
|
|
31
|
+
* @minItems 1
|
|
32
|
+
*/
|
|
33
|
+
member: [{
|
|
34
|
+
/** Select the user from the list or by ID. Guest users must be given by their object ID, not by their user principal name.
|
|
35
|
+
* @searchListMethod getUsers
|
|
36
|
+
* @default {"mode":"list","value":""}
|
|
37
|
+
*/
|
|
38
|
+
userId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
39
|
+
/** The role to give this participant. In-tenant guest accounts must use Guest. All other accounts use Owner.
|
|
40
|
+
* @default owner
|
|
41
|
+
*/
|
|
42
|
+
role?: 'guest' | 'owner' | Expression<string>;
|
|
43
|
+
/** Only for a user from another organization. Give that user as a user object ID, not an email address. Leave this empty for a user in your own tenant.
|
|
44
|
+
*/
|
|
45
|
+
tenantId?: string | Expression<string>;
|
|
46
|
+
}, ...Array<{
|
|
47
|
+
/** Select the user from the list or by ID. Guest users must be given by their object ID, not by their user principal name.
|
|
48
|
+
* @searchListMethod getUsers
|
|
49
|
+
* @default {"mode":"list","value":""}
|
|
50
|
+
*/
|
|
51
|
+
userId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
52
|
+
/** The role to give this participant. In-tenant guest accounts must use Guest. All other accounts use Owner.
|
|
53
|
+
* @default owner
|
|
54
|
+
*/
|
|
55
|
+
role?: 'guest' | 'owner' | Expression<string>;
|
|
56
|
+
/** Only for a user from another organization. Give that user as a user object ID, not an email address. Leave this empty for a user in your own tenant.
|
|
57
|
+
*/
|
|
58
|
+
tenantId?: string | Expression<string>;
|
|
59
|
+
}>];
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* The name of the group chat, shown to all members
|
|
63
|
+
* @displayOptions.show { chatType: ["group"] }
|
|
64
|
+
* @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
|
|
65
|
+
*/
|
|
66
|
+
topic?: string | Expression<string>;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export type MicrosoftTeamsV2ChatCreateNode = {
|
|
70
|
+
type: 'n8n-nodes-base.microsoftTeams';
|
|
71
|
+
version: 2;
|
|
72
|
+
config: NodeConfig<MicrosoftTeamsV2ChatCreateParams> & { credentials?: Credentials };
|
|
73
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft Teams Node - Version 2 - Zod Schema
|
|
3
|
+
* Discriminator: resource=chat, operation=get
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('chat'),
|
|
18
|
+
operation: z.literal('get'),
|
|
19
|
+
authentication: z.union([z.literal('microsoftTeamsOAuth2Api'), z.literal('microsoftOAuth2Api'), z.literal('microsoftEntraServicePrincipalApi')]).optional(),
|
|
20
|
+
chatId: resolveSchema({ parameters, schema: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
|
|
21
|
+
}).optional(),
|
|
22
|
+
});
|
|
23
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/operation_get.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft Teams Node - Version 2
|
|
3
|
+
* Discriminator: resource=chat, operation=get
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
microsoftTeamsOAuth2Api: CredentialReference;
|
|
9
|
+
microsoftOAuth2Api: CredentialReference;
|
|
10
|
+
microsoftEntraServicePrincipalApi: CredentialReference;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** Get a channel */
|
|
14
|
+
export type MicrosoftTeamsV2ChatGetParams = {
|
|
15
|
+
resource: 'chat';
|
|
16
|
+
operation: 'get';
|
|
17
|
+
authentication?: 'microsoftTeamsOAuth2Api' | 'microsoftOAuth2Api' | 'microsoftEntraServicePrincipalApi';
|
|
18
|
+
/**
|
|
19
|
+
* Select the chat from the list, by URL, or by ID (find the chat ID after "conversations/" in the URL)
|
|
20
|
+
* @searchListMethod getChats
|
|
21
|
+
* @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
|
|
22
|
+
* @default {"mode":"list","value":""}
|
|
23
|
+
*/
|
|
24
|
+
chatId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type MicrosoftTeamsV2ChatGetNode = {
|
|
28
|
+
type: 'n8n-nodes-base.microsoftTeams';
|
|
29
|
+
version: 2;
|
|
30
|
+
config: NodeConfig<MicrosoftTeamsV2ChatGetParams> & { credentials?: Credentials };
|
|
31
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft Teams Node - Version 2 - Zod Schema
|
|
3
|
+
* Discriminator: resource=chat, operation=getAll
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('chat'),
|
|
18
|
+
operation: z.literal('getAll'),
|
|
19
|
+
authentication: z.union([z.literal('microsoftTeamsOAuth2Api'), z.literal('microsoftOAuth2Api'), z.literal('microsoftEntraServicePrincipalApi')]).optional(),
|
|
20
|
+
returnAll: resolveSchema({ parameters, schema: booleanOrExpression, required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
|
|
21
|
+
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"returnAll":[false]},"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}}, defaults: {"returnAll":false} }),
|
|
22
|
+
}).optional(),
|
|
23
|
+
});
|
|
24
|
+
};
|