n8n-nodes-base 2.34.2 → 2.35.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/DiscordBotApi.credentials.d.ts.map +1 -1
- package/dist/credentials/DiscordBotApi.credentials.js +17 -0
- package/dist/credentials/DiscordBotApi.credentials.js.map +1 -1
- package/dist/credentials/SlackOAuth2Api.credentials.d.ts.map +1 -1
- package/dist/credentials/SlackOAuth2Api.credentials.js +9 -0
- package/dist/credentials/SlackOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/TwitterOAuth2Api.credentials.js +2 -2
- package/dist/credentials/TwitterOAuth2Api.credentials.js.map +1 -1
- package/dist/known/credentials.json +2 -1
- package/dist/known/nodes.json +4 -0
- package/dist/node-definitions/.nodes-hash +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v1/mode_each.ts +40 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v1/mode_once.ts +40 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v11/mode_each.ts +40 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v11/mode_once.ts +40 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v12/mode_each.ts +41 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v12/mode_once.ts +41 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v13/mode_each.ts +41 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v13/mode_once.ts +41 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/github/v1/resource_workflow/operation_dispatch_and_wait.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/github/v1/resource_workflow/operation_dispatch_and_wait.ts +33 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/github/v11/resource_workflow/operation_dispatch_and_wait.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/github/v11/resource_workflow/operation_dispatch_and_wait.ts +33 -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/httpRequest/v2.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v2.ts +3 -2
- package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v3.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v3.ts +8 -7
- package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v4.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v4.ts +8 -7
- package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v41.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v41.ts +8 -7
- package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v42.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v42.ts +8 -7
- package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v43.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v43.ts +8 -7
- package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v44.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v44.ts +8 -7
- package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v45.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/httpRequest/v45.ts +8 -7
- package/dist/node-definitions/nodes/n8n-nodes-base/kafka/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/kafka/v2.schema.js +35 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/kafka/v2.ts +100 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/kafkaTrigger/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/kafkaTrigger/v2.schema.js +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/kafkaTrigger/v2.ts +124 -0
- 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/salesforceTrigger/v1.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/salesforceTrigger/v1.ts +6 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/salesforceTrigger/v11.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/salesforceTrigger/v11.ts +6 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v2/resource_message/operation_search.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v2/resource_message/operation_search.ts +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v21/resource_message/operation_search.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v21/resource_message/operation_search.ts +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v22/resource_message/operation_search.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v22/resource_message/operation_search.ts +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v23/resource_message/operation_search.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v23/resource_message/operation_search.ts +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v24/resource_message/operation_search.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v24/resource_message/operation_search.ts +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v25/resource_message/operation_search.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v25/resource_message/operation_search.ts +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v26/resource_message/operation_search.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v26/resource_message/operation_search.ts +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/index.schema.js +32 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/index.ts +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/index.schema.js +52 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/index.ts +60 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_archive.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_archive.ts +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_close.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_close.ts +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_create.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_create.ts +32 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_get.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_get.ts +39 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_get_all.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_get_all.ts +48 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_history.schema.js +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_history.ts +56 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_invite.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_invite.ts +35 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_join.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_join.ts +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_kick.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_kick.ts +34 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_leave.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_leave.ts +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_member.schema.js +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_member.ts +45 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_open.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_open.ts +41 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_rename.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_rename.ts +33 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_replies.schema.js +27 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_replies.ts +60 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_set_purpose.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_set_purpose.ts +33 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_set_topic.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_set_topic.ts +33 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_unarchive.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_channel/operation_unarchive.ts +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_file/index.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_file/index.ts +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_file/operation_get.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_file/operation_get.ts +27 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_file/operation_get_all.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_file/operation_get_all.ts +62 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_file/operation_upload.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_file/operation_upload.ts +56 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/index.schema.js +36 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/index.ts +36 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_delete.schema.js +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_delete.ts +44 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_delete_scheduled.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_delete_scheduled.ts +32 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_get_many_scheduled.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_get_many_scheduled.ts +50 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_get_permalink.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_get_permalink.ts +32 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_post.schema.js +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_post.ts +237 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_schedule.schema.js +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_schedule.ts +241 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_search.schema.js +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_search.ts +98 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_send_and_wait.schema.js +36 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_send_and_wait.ts +341 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_update.schema.js +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_message/operation_update.ts +72 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_reaction/index.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_reaction/index.ts +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_reaction/operation_add.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_reaction/operation_add.ts +37 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_reaction/operation_get.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_reaction/operation_get.ts +33 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_reaction/operation_remove.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_reaction/operation_remove.ts +37 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_star/index.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_star/index.ts +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_star/operation_add.schema.js +27 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_star/operation_add.ts +53 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_star/operation_delete.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_star/operation_delete.ts +42 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_star/operation_get_all.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_star/operation_get_all.ts +34 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user/index.schema.js +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user/index.ts +27 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user/operation_get_all.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user/operation_get_all.ts +34 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user/operation_get_presence.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user/operation_get_presence.ts +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user/operation_get_profile.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user/operation_get_profile.ts +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user/operation_info.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user/operation_info.ts +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user/operation_lookup_by_email.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user/operation_lookup_by_email.ts +27 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user/operation_update_profile.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user/operation_update_profile.ts +78 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/index.schema.js +32 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/index.ts +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/operation_create.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/operation_create.ts +48 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/operation_disable.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/operation_disable.ts +36 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/operation_enable.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/operation_enable.ts +36 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/operation_get_all.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/operation_get_all.ts +52 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/operation_get_users.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/operation_get_users.ts +36 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/operation_update.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/operation_update.ts +50 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/operation_update_users.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/slack/v27/resource_user_group/operation_update_users.ts +42 -0
- package/dist/nodes/Confluence/Confluence.node.d.ts +6 -0
- package/dist/nodes/Confluence/Confluence.node.d.ts.map +1 -0
- package/dist/nodes/Confluence/Confluence.node.js +13 -0
- package/dist/nodes/Confluence/Confluence.node.js.map +1 -0
- package/dist/nodes/Confluence/Confluence.node.json +18 -0
- package/dist/nodes/Confluence/actions/description.d.ts +3 -0
- package/dist/nodes/Confluence/actions/description.d.ts.map +1 -0
- package/dist/nodes/Confluence/actions/description.js +28 -0
- package/dist/nodes/Confluence/actions/description.js.map +1 -0
- package/dist/nodes/Confluence/actions/router.d.ts +9 -0
- package/dist/nodes/Confluence/actions/router.d.ts.map +1 -0
- package/dist/nodes/Confluence/actions/router.js +15 -0
- package/dist/nodes/Confluence/actions/router.js.map +1 -0
- package/dist/nodes/Confluence/confluence.svg +1 -0
- package/dist/nodes/Confluence/transport/index.d.ts +20 -0
- package/dist/nodes/Confluence/transport/index.d.ts.map +1 -0
- package/dist/nodes/Confluence/transport/index.js +117 -0
- package/dist/nodes/Confluence/transport/index.js.map +1 -0
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.d.ts.map +1 -1
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.js +48 -0
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.js.map +1 -1
- package/dist/nodes/Form/interfaces.d.ts +1 -0
- package/dist/nodes/Form/interfaces.d.ts.map +1 -1
- package/dist/nodes/Form/interfaces.js.map +1 -1
- package/dist/nodes/Form/utils/utils.d.ts +4 -2
- package/dist/nodes/Form/utils/utils.d.ts.map +1 -1
- package/dist/nodes/Form/utils/utils.js +125 -2
- package/dist/nodes/Form/utils/utils.js.map +1 -1
- package/dist/nodes/Function/Function.node.d.ts.map +1 -1
- package/dist/nodes/Function/Function.node.js +7 -1
- package/dist/nodes/Function/Function.node.js.map +1 -1
- package/dist/nodes/FunctionItem/FunctionItem.node.d.ts.map +1 -1
- package/dist/nodes/FunctionItem/FunctionItem.node.js +7 -1
- package/dist/nodes/FunctionItem/FunctionItem.node.js.map +1 -1
- package/dist/nodes/Github/Github.node.d.ts.map +1 -1
- package/dist/nodes/Github/Github.node.js +25 -1
- package/dist/nodes/Github/Github.node.js.map +1 -1
- package/dist/nodes/HttpRequest/V3/Description.js +5 -5
- package/dist/nodes/HttpRequest/V3/Description.js.map +1 -1
- package/dist/nodes/Kafka/Kafka.node.d.ts +3 -9
- package/dist/nodes/Kafka/Kafka.node.d.ts.map +1 -1
- package/dist/nodes/Kafka/Kafka.node.js +17 -382
- package/dist/nodes/Kafka/Kafka.node.js.map +1 -1
- package/dist/nodes/Kafka/KafkaTrigger.node.d.ts +3 -4
- package/dist/nodes/Kafka/KafkaTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Kafka/KafkaTrigger.node.js +18 -452
- package/dist/nodes/Kafka/KafkaTrigger.node.js.map +1 -1
- package/dist/nodes/Kafka/utils.d.ts +62 -1
- package/dist/nodes/Kafka/utils.d.ts.map +1 -1
- package/dist/nodes/Kafka/utils.js +151 -16
- package/dist/nodes/Kafka/utils.js.map +1 -1
- package/dist/nodes/Kafka/v1/KafkaTriggerV1.node.d.ts +7 -0
- package/dist/nodes/Kafka/v1/KafkaTriggerV1.node.d.ts.map +1 -0
- package/dist/nodes/Kafka/v1/KafkaTriggerV1.node.js +480 -0
- package/dist/nodes/Kafka/v1/KafkaTriggerV1.node.js.map +1 -0
- package/dist/nodes/Kafka/v1/KafkaV1.node.d.ts +12 -0
- package/dist/nodes/Kafka/v1/KafkaV1.node.d.ts.map +1 -0
- package/dist/nodes/Kafka/v1/KafkaV1.node.js +397 -0
- package/dist/nodes/Kafka/v1/KafkaV1.node.js.map +1 -0
- package/dist/nodes/Kafka/v2/KafkaTriggerV2.node.d.ts +7 -0
- package/dist/nodes/Kafka/v2/KafkaTriggerV2.node.d.ts.map +1 -0
- package/dist/nodes/Kafka/v2/KafkaTriggerV2.node.js +101 -0
- package/dist/nodes/Kafka/v2/KafkaTriggerV2.node.js.map +1 -0
- package/dist/nodes/Kafka/v2/KafkaTriggerV2Description.d.ts +3 -0
- package/dist/nodes/Kafka/v2/KafkaTriggerV2Description.d.ts.map +1 -0
- package/dist/nodes/Kafka/v2/KafkaTriggerV2Description.js +291 -0
- package/dist/nodes/Kafka/v2/KafkaTriggerV2Description.js.map +1 -0
- package/dist/nodes/Kafka/v2/KafkaV2.node.d.ts +7 -0
- package/dist/nodes/Kafka/v2/KafkaV2.node.d.ts.map +1 -0
- package/dist/nodes/Kafka/v2/KafkaV2.node.js +386 -0
- package/dist/nodes/Kafka/v2/KafkaV2.node.js.map +1 -0
- package/dist/nodes/Kafka/v2/TriggerSettings.d.ts +109 -0
- package/dist/nodes/Kafka/v2/TriggerSettings.d.ts.map +1 -0
- package/dist/nodes/Kafka/v2/TriggerSettings.js +273 -0
- package/dist/nodes/Kafka/v2/TriggerSettings.js.map +1 -0
- package/dist/nodes/Kafka/v2/consumer/ConsumeTopic.d.ts +51 -0
- package/dist/nodes/Kafka/v2/consumer/ConsumeTopic.d.ts.map +1 -0
- package/dist/nodes/Kafka/v2/consumer/ConsumeTopic.js +189 -0
- package/dist/nodes/Kafka/v2/consumer/ConsumeTopic.js.map +1 -0
- package/dist/nodes/Kafka/v2/consumer/DataEmitter.d.ts +45 -0
- package/dist/nodes/Kafka/v2/consumer/DataEmitter.d.ts.map +1 -0
- package/dist/nodes/Kafka/v2/consumer/DataEmitter.js +153 -0
- package/dist/nodes/Kafka/v2/consumer/DataEmitter.js.map +1 -0
- package/dist/nodes/Kafka/v2/consumer/MessageParser.d.ts +23 -0
- package/dist/nodes/Kafka/v2/consumer/MessageParser.d.ts.map +1 -0
- package/dist/nodes/Kafka/v2/consumer/MessageParser.js +100 -0
- package/dist/nodes/Kafka/v2/consumer/MessageParser.js.map +1 -0
- package/dist/nodes/Kafka/v2/consumer/index.d.ts +7 -0
- package/dist/nodes/Kafka/v2/consumer/index.d.ts.map +1 -0
- package/dist/nodes/Kafka/v2/consumer/index.js +13 -0
- package/dist/nodes/Kafka/v2/consumer/index.js.map +1 -0
- package/dist/nodes/Kafka/v2/transport/LibraryLogger.d.ts +18 -0
- package/dist/nodes/Kafka/v2/transport/LibraryLogger.d.ts.map +1 -0
- package/dist/nodes/Kafka/v2/transport/LibraryLogger.js +94 -0
- package/dist/nodes/Kafka/v2/transport/LibraryLogger.js.map +1 -0
- package/dist/nodes/Kafka/v2/transport/client.d.ts +20 -0
- package/dist/nodes/Kafka/v2/transport/client.d.ts.map +1 -0
- package/dist/nodes/Kafka/v2/transport/client.js +36 -0
- package/dist/nodes/Kafka/v2/transport/client.js.map +1 -0
- package/dist/nodes/Kafka/v2/transport/config.d.ts +13 -0
- package/dist/nodes/Kafka/v2/transport/config.d.ts.map +1 -0
- package/dist/nodes/Kafka/v2/transport/config.js +57 -0
- package/dist/nodes/Kafka/v2/transport/config.js.map +1 -0
- package/dist/nodes/Kafka/v2/transport/consumer.d.ts +66 -0
- package/dist/nodes/Kafka/v2/transport/consumer.d.ts.map +1 -0
- package/dist/nodes/Kafka/v2/transport/consumer.js +48 -0
- package/dist/nodes/Kafka/v2/transport/consumer.js.map +1 -0
- package/dist/nodes/Kafka/v2/transport/index.d.ts +6 -0
- package/dist/nodes/Kafka/v2/transport/index.d.ts.map +1 -0
- package/dist/nodes/Kafka/v2/transport/index.js +16 -0
- package/dist/nodes/Kafka/v2/transport/index.js.map +1 -0
- package/dist/nodes/Kafka/v2/transport/producer.d.ts +9 -0
- package/dist/nodes/Kafka/v2/transport/producer.d.ts.map +1 -0
- package/dist/nodes/Kafka/v2/transport/producer.js +18 -0
- package/dist/nodes/Kafka/v2/transport/producer.js.map +1 -0
- package/dist/nodes/Merge/Merge.node.json +1 -1
- package/dist/nodes/Microsoft/SharePoint/v2/file/index.d.ts.map +1 -1
- package/dist/nodes/Microsoft/SharePoint/v2/file/index.js +0 -3
- package/dist/nodes/Microsoft/SharePoint/v2/file/index.js.map +1 -1
- package/dist/nodes/Microsoft/SharePoint/v2/site/index.d.ts.map +1 -1
- package/dist/nodes/Microsoft/SharePoint/v2/site/index.js +10 -8
- package/dist/nodes/Microsoft/SharePoint/v2/site/index.js.map +1 -1
- package/dist/nodes/Notion/shared/GenericFunctions.d.ts +3 -3
- package/dist/nodes/Notion/shared/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Salesforce/SalesforceTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Salesforce/SalesforceTrigger.node.js +31 -0
- package/dist/nodes/Salesforce/SalesforceTrigger.node.js.map +1 -1
- package/dist/nodes/Schedule/GenericFunctions.d.ts +2 -1
- package/dist/nodes/Schedule/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Schedule/GenericFunctions.js +43 -0
- package/dist/nodes/Schedule/GenericFunctions.js.map +1 -1
- package/dist/nodes/Schedule/ScheduleTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Schedule/ScheduleTrigger.node.js +2 -1
- package/dist/nodes/Schedule/ScheduleTrigger.node.js.map +1 -1
- package/dist/nodes/Schedule/SchedulerInterface.d.ts +15 -1
- package/dist/nodes/Schedule/SchedulerInterface.d.ts.map +1 -1
- package/dist/nodes/Slack/Slack.node.d.ts.map +1 -1
- package/dist/nodes/Slack/Slack.node.js +2 -1
- package/dist/nodes/Slack/Slack.node.js.map +1 -1
- package/dist/nodes/Slack/V2/GenericFunctions.d.ts +12 -0
- package/dist/nodes/Slack/V2/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Slack/V2/GenericFunctions.js +80 -19
- package/dist/nodes/Slack/V2/GenericFunctions.js.map +1 -1
- package/dist/nodes/Slack/V2/MessageDescription.d.ts.map +1 -1
- package/dist/nodes/Slack/V2/MessageDescription.js +137 -0
- package/dist/nodes/Slack/V2/MessageDescription.js.map +1 -1
- package/dist/nodes/Slack/V2/SlackHitlWebhook.d.ts +1 -1
- package/dist/nodes/Slack/V2/SlackV2.node.d.ts.map +1 -1
- package/dist/nodes/Slack/V2/SlackV2.node.js +64 -17
- package/dist/nodes/Slack/V2/SlackV2.node.js.map +1 -1
- package/dist/nodes/Slack/__schema__/v2.7.0/message/search.json +75 -0
- package/dist/nodes/Twitter/V2/GenericFunctions.js +1 -1
- package/dist/nodes/Twitter/V2/GenericFunctions.js.map +1 -1
- package/dist/nodes/Webhook/description.d.ts.map +1 -1
- package/dist/nodes/Webhook/description.js +15 -9
- package/dist/nodes/Webhook/description.js.map +1 -1
- package/dist/types/credentials.json +4 -4
- package/dist/types/nodes.json +18 -15
- package/package.json +14 -12
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kafka Trigger Node - Version 2
|
|
3
|
+
* Consume messages from a Kafka topic
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export interface KafkaTriggerV2Params {
|
|
8
|
+
/**
|
|
9
|
+
* Name of the queue of topic to consume from
|
|
10
|
+
*/
|
|
11
|
+
topic: string | Expression<string>;
|
|
12
|
+
/**
|
|
13
|
+
* ID of the consumer group
|
|
14
|
+
*/
|
|
15
|
+
groupId: string | Expression<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Select on which condition the offsets should be resolved. In the manual mode, when execution started by clicking on Execute Workflow or Execute Step button, offsets are always resolved immediately after message received.
|
|
18
|
+
* @default onCompletion
|
|
19
|
+
*/
|
|
20
|
+
resolveOffset?: 'onCompletion' | 'onSuccess' | 'onStatus' | 'immediately' | Expression<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Allowed Statuses
|
|
23
|
+
* @displayOptions.show { resolveOffset: ["onStatus"] }
|
|
24
|
+
* @default ["success"]
|
|
25
|
+
*/
|
|
26
|
+
allowedStatuses?: Array<'canceled' | 'crashed' | 'error' | 'new' | 'running' | 'success' | 'unknown' | 'waiting'>;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to use Confluent Schema Registry
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
useSchemaRegistry?: boolean | Expression<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* URL of the schema registry. Only used when no Schema Registry credential is selected.
|
|
34
|
+
* @displayOptions.show { useSchemaRegistry: [true] }
|
|
35
|
+
*/
|
|
36
|
+
schemaRegistryUrl?: string | Expression<string>;
|
|
37
|
+
options?: {
|
|
38
|
+
/** The consumer will commit offsets after a given period, for example, five seconds
|
|
39
|
+
* @hint Value in milliseconds
|
|
40
|
+
* @default 0
|
|
41
|
+
*/
|
|
42
|
+
autoCommitInterval?: number | Expression<number>;
|
|
43
|
+
/** Number of messages to process in each batch, when set to 1, message-by-message processing is enabled
|
|
44
|
+
* @default 1
|
|
45
|
+
*/
|
|
46
|
+
batchSize?: number | Expression<number>;
|
|
47
|
+
/** Maximum amount of data the server should return for a fetch request. In bytes. Default is 1MB. Higher values allow fetching more messages at once.
|
|
48
|
+
* @default 1048576
|
|
49
|
+
*/
|
|
50
|
+
fetchMaxBytes?: number | Expression<number>;
|
|
51
|
+
/** Minimum amount of data the server should return for a fetch request. In bytes. Server will wait up to fetchMaxWaitTime for this amount to accumulate.
|
|
52
|
+
* @default 1
|
|
53
|
+
*/
|
|
54
|
+
fetchMinBytes?: number | Expression<number>;
|
|
55
|
+
/** Controls how often the consumer sends heartbeats to the broker to indicate it is still alive. Must be lower than Session Timeout. Recommended value is approximately one third of the Session Timeout (for example: 10s heartbeat with 30s session timeout).
|
|
56
|
+
* @hint Value in milliseconds. Lowered automatically if it is more than a third of the Session Timeout.
|
|
57
|
+
* @default 10000
|
|
58
|
+
*/
|
|
59
|
+
heartbeatInterval?: number | Expression<number>;
|
|
60
|
+
/** The maximum number of unacknowledged requests the client will send on a single connection
|
|
61
|
+
* @default 1
|
|
62
|
+
*/
|
|
63
|
+
maxInFlightRequests?: number | Expression<number>;
|
|
64
|
+
/** Whether to read message from beginning
|
|
65
|
+
* @default true
|
|
66
|
+
*/
|
|
67
|
+
fromBeginning?: boolean | Expression<boolean>;
|
|
68
|
+
/** Whether to try to parse the message to an object
|
|
69
|
+
* @default false
|
|
70
|
+
*/
|
|
71
|
+
jsonParseMessage?: boolean | Expression<boolean>;
|
|
72
|
+
/** Whether to keep message value as binary data for downstream processing (e.g., Avro deserialization)
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
keepBinaryData?: boolean | Expression<boolean>;
|
|
76
|
+
/** Number of Kafka partitions to process in parallel. Controls how many partitions are processed concurrently by the consumer.
|
|
77
|
+
* @hint Set to 0 to process all partitions sequentially
|
|
78
|
+
* @default 0
|
|
79
|
+
*/
|
|
80
|
+
partitionsConsumedConcurrently?: number | Expression<number>;
|
|
81
|
+
/** Whether to return only the message property
|
|
82
|
+
* @displayOptions.show { jsonParseMessage: [true] }
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
85
|
+
onlyMessage?: boolean | Expression<boolean>;
|
|
86
|
+
/** Whether to return the headers received from Kafka
|
|
87
|
+
* @default false
|
|
88
|
+
*/
|
|
89
|
+
returnHeaders?: boolean | Expression<boolean>;
|
|
90
|
+
/** How long one batch may take to process before the consumer is dropped from its group. Only used when the workflow has no execution timeout of its own, since that timeout is the real deadline and takes precedence.
|
|
91
|
+
* @hint Value in milliseconds
|
|
92
|
+
* @default 600000
|
|
93
|
+
*/
|
|
94
|
+
rebalanceTimeout?: number | Expression<number>;
|
|
95
|
+
/** Delay in milliseconds before retrying after a failed offset resolution. This prevents rapid retry loops that could overwhelm the Kafka broker.
|
|
96
|
+
* @hint Value in milliseconds
|
|
97
|
+
* @displayOptions.hide { /resolveOffset: ["immediately"] }
|
|
98
|
+
* @default 5000
|
|
99
|
+
*/
|
|
100
|
+
errorRetryDelay?: number | Expression<number>;
|
|
101
|
+
/** Timeout in milliseconds used to detect failures. Has to be higher than Heartbeat Interval. During the workflow execution heartbeat will be sent periodically to keep the session alive with configured Heartbeat Interval.
|
|
102
|
+
* @hint Value in milliseconds. Lowering this below three times the Heartbeat Interval will lower the heartbeat to match.
|
|
103
|
+
* @default 30000
|
|
104
|
+
*/
|
|
105
|
+
sessionTimeout?: number | Expression<number>;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface KafkaTriggerV2Credentials {
|
|
110
|
+
kafka: CredentialReference;
|
|
111
|
+
schemaRegistryApi?: CredentialReference;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
interface KafkaTriggerV2NodeBase {
|
|
115
|
+
type: 'n8n-nodes-base.kafkaTrigger';
|
|
116
|
+
version: 2;
|
|
117
|
+
isTrigger: true;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type KafkaTriggerV2ParamsNode = KafkaTriggerV2NodeBase & {
|
|
121
|
+
config: NodeConfig<KafkaTriggerV2Params> & { credentials?: KafkaTriggerV2Credentials };
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export type KafkaTriggerV2Node = KafkaTriggerV2ParamsNode;
|
|
@@ -33,12 +33,12 @@ export type MicrosoftOutlookV2EventCreateParams = {
|
|
|
33
33
|
subject: string | Expression<string>;
|
|
34
34
|
/**
|
|
35
35
|
* Start
|
|
36
|
-
* @default 2026-08-
|
|
36
|
+
* @default 2026-08-11T07:19:53.238+00:00
|
|
37
37
|
*/
|
|
38
38
|
startDateTime?: string | Expression<string>;
|
|
39
39
|
/**
|
|
40
40
|
* End
|
|
41
|
-
* @default 2026-08-
|
|
41
|
+
* @default 2026-08-11T07:49:53.238+00:00
|
|
42
42
|
*/
|
|
43
43
|
endDateTime?: string | Expression<string>;
|
|
44
44
|
/**
|
|
@@ -15,6 +15,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
15
15
|
// Parameters schema
|
|
16
16
|
const parametersSchema = z.object({
|
|
17
17
|
pollTimes: z.object({ item: z.array(z.object({ mode: z.union([z.literal('everyMinute'), z.literal('everyHour'), z.literal('everyDay'), z.literal('everyWeek'), z.literal('everyMonth'), z.literal('everyX'), z.literal('custom'), expressionSchema]).optional(), hour: numberOrExpression.optional(), minute: numberOrExpression.optional(), dayOfMonth: numberOrExpression.optional(), weekday: z.union([z.literal('1'), z.literal('2'), z.literal('3'), z.literal('4'), z.literal('5'), z.literal('6'), z.literal('0'), expressionSchema]).optional(), cronExpression: stringOrExpression.optional(), value: numberOrExpression.optional(), unit: z.union([z.literal('minutes'), z.literal('hours'), expressionSchema]).optional() })).optional() }).optional(),
|
|
18
|
+
authentication: z.union([z.literal('oAuth2'), z.literal('jwt'), expressionSchema]).optional(),
|
|
18
19
|
triggerOn: z.union([z.literal('accountCreated'), z.literal('accountUpdated'), z.literal('attachmentCreated'), z.literal('attachmentUpdated'), z.literal('caseCreated'), z.literal('caseUpdated'), z.literal('contactCreated'), z.literal('contactUpdated'), z.literal('customObjectCreated'), z.literal('customObjectUpdated'), z.literal('leadCreated'), z.literal('leadUpdated'), z.literal('opportunityCreated'), z.literal('opportunityUpdated'), z.literal('taskCreated'), z.literal('taskUpdated'), z.literal('userCreated'), z.literal('userUpdated'), expressionSchema]).optional(),
|
|
19
20
|
customObject: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"show":{"triggerOn":["customObjectUpdated","customObjectCreated"]}}, defaults: {"triggerOn":""} }),
|
|
20
21
|
});
|
|
@@ -54,6 +54,11 @@ export interface SalesforceTriggerV1Params {
|
|
|
54
54
|
unit?: 'minutes' | 'hours' | Expression<string>;
|
|
55
55
|
}>;
|
|
56
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* OAuth Authorization Flow
|
|
59
|
+
* @default oAuth2
|
|
60
|
+
*/
|
|
61
|
+
authentication?: 'oAuth2' | 'jwt' | Expression<string>;
|
|
57
62
|
/**
|
|
58
63
|
* Which Salesforce event should trigger the node
|
|
59
64
|
*/
|
|
@@ -68,6 +73,7 @@ export interface SalesforceTriggerV1Params {
|
|
|
68
73
|
|
|
69
74
|
export interface SalesforceTriggerV1Credentials {
|
|
70
75
|
salesforceOAuth2Api: CredentialReference;
|
|
76
|
+
salesforceJwtApi: CredentialReference;
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
interface SalesforceTriggerV1NodeBase {
|
|
@@ -15,6 +15,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
15
15
|
// Parameters schema
|
|
16
16
|
const parametersSchema = z.object({
|
|
17
17
|
pollTimes: z.object({ item: z.array(z.object({ mode: z.union([z.literal('everyMinute'), z.literal('everyHour'), z.literal('everyDay'), z.literal('everyWeek'), z.literal('everyMonth'), z.literal('everyX'), z.literal('custom'), expressionSchema]).optional(), hour: numberOrExpression.optional(), minute: numberOrExpression.optional(), dayOfMonth: numberOrExpression.optional(), weekday: z.union([z.literal('1'), z.literal('2'), z.literal('3'), z.literal('4'), z.literal('5'), z.literal('6'), z.literal('0'), expressionSchema]).optional(), cronExpression: stringOrExpression.optional(), value: numberOrExpression.optional(), unit: z.union([z.literal('minutes'), z.literal('hours'), expressionSchema]).optional() })).optional() }).optional(),
|
|
18
|
+
authentication: z.union([z.literal('oAuth2'), z.literal('jwt'), expressionSchema]).optional(),
|
|
18
19
|
triggerOn: z.union([z.literal('accountCreated'), z.literal('accountUpdated'), z.literal('attachmentCreated'), z.literal('attachmentUpdated'), z.literal('caseCreated'), z.literal('caseUpdated'), z.literal('contactCreated'), z.literal('contactUpdated'), z.literal('customObjectCreated'), z.literal('customObjectUpdated'), z.literal('leadCreated'), z.literal('leadUpdated'), z.literal('opportunityCreated'), z.literal('opportunityUpdated'), z.literal('taskCreated'), z.literal('taskUpdated'), z.literal('userCreated'), z.literal('userUpdated'), expressionSchema]).optional(),
|
|
19
20
|
customObject: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"show":{"triggerOn":["customObjectUpdated","customObjectCreated"]}}, defaults: {"triggerOn":""} }),
|
|
20
21
|
});
|
|
@@ -54,6 +54,11 @@ export interface SalesforceTriggerV11Params {
|
|
|
54
54
|
unit?: 'minutes' | 'hours' | Expression<string>;
|
|
55
55
|
}>;
|
|
56
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* OAuth Authorization Flow
|
|
59
|
+
* @default oAuth2
|
|
60
|
+
*/
|
|
61
|
+
authentication?: 'oAuth2' | 'jwt' | Expression<string>;
|
|
57
62
|
/**
|
|
58
63
|
* Which Salesforce event should trigger the node
|
|
59
64
|
*/
|
|
@@ -68,6 +73,7 @@ export interface SalesforceTriggerV11Params {
|
|
|
68
73
|
|
|
69
74
|
export interface SalesforceTriggerV11Credentials {
|
|
70
75
|
salesforceOAuth2Api: CredentialReference;
|
|
76
|
+
salesforceJwtApi: CredentialReference;
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
interface SalesforceTriggerV11NodeBase {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Re-exports all version-specific types and provides combined union type.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import type { SlackV27Node } from './v27';
|
|
7
8
|
import type { SlackV26Node } from './v26';
|
|
8
9
|
import type { SlackV25Node } from './v25';
|
|
9
10
|
import type { SlackV24Node } from './v24';
|
|
@@ -13,6 +14,7 @@ import type { SlackV21Node } from './v21';
|
|
|
13
14
|
import type { SlackV2Node } from './v2';
|
|
14
15
|
import type { SlackV1Node } from './v1';
|
|
15
16
|
|
|
17
|
+
export * from './v27';
|
|
16
18
|
export * from './v26';
|
|
17
19
|
export * from './v25';
|
|
18
20
|
export * from './v24';
|
|
@@ -23,4 +25,4 @@ export * from './v2';
|
|
|
23
25
|
export * from './v1';
|
|
24
26
|
|
|
25
27
|
// Combined union type for all versions
|
|
26
|
-
export type SlackNode = SlackV26Node | SlackV25Node | SlackV24Node | SlackV23Node | SlackV22Node | SlackV21Node | SlackV2Node | SlackV1Node;
|
|
28
|
+
export type SlackNode = SlackV27Node | SlackV26Node | SlackV25Node | SlackV24Node | SlackV23Node | SlackV22Node | SlackV21Node | SlackV2Node | SlackV1Node;
|
|
@@ -21,7 +21,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
21
21
|
sort: z.union([z.literal('desc'), z.literal('asc'), z.literal('relevance'), expressionSchema]).optional(),
|
|
22
22
|
returnAll: booleanOrExpression.optional(),
|
|
23
23
|
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"returnAll":[false]}}, defaults: {"returnAll":false} }),
|
|
24
|
-
options: z.object({ searchChannel: z.array(z.string()).optional() }).optional(),
|
|
24
|
+
options: z.object({ after: stringOrExpression.optional(), before: stringOrExpression.optional(), channelTypes: z.array(z.union([z.literal('public_channel'), z.literal('private_channel'), z.literal('mpim'), z.literal('im')])).optional(), includeArchivedChannels: booleanOrExpression.optional(), includeBots: booleanOrExpression.optional(), includeMessageBlocks: booleanOrExpression.optional(), keywordSearchOnly: booleanOrExpression.optional(), searchChannel: z.array(z.string()).optional() }).optional(),
|
|
25
25
|
}).optional(),
|
|
26
26
|
});
|
|
27
27
|
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/slack/v2/resource_message/operation_search.ts
CHANGED
|
@@ -38,6 +38,32 @@ export type SlackV2MessageSearchParams = {
|
|
|
38
38
|
* @default {}
|
|
39
39
|
*/
|
|
40
40
|
options?: {
|
|
41
|
+
/** Only return messages sent after this date
|
|
42
|
+
*/
|
|
43
|
+
after?: string | Expression<string>;
|
|
44
|
+
/** Only return messages sent before this date
|
|
45
|
+
*/
|
|
46
|
+
before?: string | Expression<string>;
|
|
47
|
+
/** Which kinds of conversation to search in
|
|
48
|
+
* @default ["public_channel","private_channel","mpim","im"]
|
|
49
|
+
*/
|
|
50
|
+
channelTypes?: Array<'public_channel' | 'private_channel' | 'mpim' | 'im'>;
|
|
51
|
+
/** Whether to include archived channels in the results
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
includeArchivedChannels?: boolean | Expression<boolean>;
|
|
55
|
+
/** Whether to include messages sent by bots
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
includeBots?: boolean | Expression<boolean>;
|
|
59
|
+
/** Whether to return the rich text blocks of each message alongside its text
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
includeMessageBlocks?: boolean | Expression<boolean>;
|
|
63
|
+
/** Whether to match keywords only. By default Slack also returns semantically similar messages.
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
keywordSearchOnly?: boolean | Expression<boolean>;
|
|
41
67
|
/** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
|
|
42
68
|
* @loadOptionsMethod getChannelsName
|
|
43
69
|
* @default []
|
|
@@ -21,7 +21,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
21
21
|
sort: z.union([z.literal('desc'), z.literal('asc'), z.literal('relevance'), expressionSchema]).optional(),
|
|
22
22
|
returnAll: booleanOrExpression.optional(),
|
|
23
23
|
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"returnAll":[false]}}, defaults: {"returnAll":false} }),
|
|
24
|
-
options: z.object({ searchChannel: z.array(z.string()).optional() }).optional(),
|
|
24
|
+
options: z.object({ after: stringOrExpression.optional(), before: stringOrExpression.optional(), channelTypes: z.array(z.union([z.literal('public_channel'), z.literal('private_channel'), z.literal('mpim'), z.literal('im')])).optional(), includeArchivedChannels: booleanOrExpression.optional(), includeBots: booleanOrExpression.optional(), includeMessageBlocks: booleanOrExpression.optional(), keywordSearchOnly: booleanOrExpression.optional(), searchChannel: z.array(z.string()).optional() }).optional(),
|
|
25
25
|
}).optional(),
|
|
26
26
|
});
|
|
27
27
|
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/slack/v21/resource_message/operation_search.ts
CHANGED
|
@@ -38,6 +38,32 @@ export type SlackV21MessageSearchParams = {
|
|
|
38
38
|
* @default {}
|
|
39
39
|
*/
|
|
40
40
|
options?: {
|
|
41
|
+
/** Only return messages sent after this date
|
|
42
|
+
*/
|
|
43
|
+
after?: string | Expression<string>;
|
|
44
|
+
/** Only return messages sent before this date
|
|
45
|
+
*/
|
|
46
|
+
before?: string | Expression<string>;
|
|
47
|
+
/** Which kinds of conversation to search in
|
|
48
|
+
* @default ["public_channel","private_channel","mpim","im"]
|
|
49
|
+
*/
|
|
50
|
+
channelTypes?: Array<'public_channel' | 'private_channel' | 'mpim' | 'im'>;
|
|
51
|
+
/** Whether to include archived channels in the results
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
includeArchivedChannels?: boolean | Expression<boolean>;
|
|
55
|
+
/** Whether to include messages sent by bots
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
includeBots?: boolean | Expression<boolean>;
|
|
59
|
+
/** Whether to return the rich text blocks of each message alongside its text
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
includeMessageBlocks?: boolean | Expression<boolean>;
|
|
63
|
+
/** Whether to match keywords only. By default Slack also returns semantically similar messages.
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
keywordSearchOnly?: boolean | Expression<boolean>;
|
|
41
67
|
/** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
|
|
42
68
|
* @loadOptionsMethod getChannelsName
|
|
43
69
|
* @default []
|
|
@@ -21,7 +21,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
21
21
|
sort: z.union([z.literal('desc'), z.literal('asc'), z.literal('relevance'), expressionSchema]).optional(),
|
|
22
22
|
returnAll: booleanOrExpression.optional(),
|
|
23
23
|
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"returnAll":[false]}}, defaults: {"returnAll":false} }),
|
|
24
|
-
options: z.object({ searchChannel: z.array(z.string()).optional() }).optional(),
|
|
24
|
+
options: z.object({ after: stringOrExpression.optional(), before: stringOrExpression.optional(), channelTypes: z.array(z.union([z.literal('public_channel'), z.literal('private_channel'), z.literal('mpim'), z.literal('im')])).optional(), includeArchivedChannels: booleanOrExpression.optional(), includeBots: booleanOrExpression.optional(), includeMessageBlocks: booleanOrExpression.optional(), keywordSearchOnly: booleanOrExpression.optional(), searchChannel: z.array(z.string()).optional() }).optional(),
|
|
25
25
|
}).optional(),
|
|
26
26
|
});
|
|
27
27
|
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/slack/v22/resource_message/operation_search.ts
CHANGED
|
@@ -38,6 +38,32 @@ export type SlackV22MessageSearchParams = {
|
|
|
38
38
|
* @default {}
|
|
39
39
|
*/
|
|
40
40
|
options?: {
|
|
41
|
+
/** Only return messages sent after this date
|
|
42
|
+
*/
|
|
43
|
+
after?: string | Expression<string>;
|
|
44
|
+
/** Only return messages sent before this date
|
|
45
|
+
*/
|
|
46
|
+
before?: string | Expression<string>;
|
|
47
|
+
/** Which kinds of conversation to search in
|
|
48
|
+
* @default ["public_channel","private_channel","mpim","im"]
|
|
49
|
+
*/
|
|
50
|
+
channelTypes?: Array<'public_channel' | 'private_channel' | 'mpim' | 'im'>;
|
|
51
|
+
/** Whether to include archived channels in the results
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
includeArchivedChannels?: boolean | Expression<boolean>;
|
|
55
|
+
/** Whether to include messages sent by bots
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
includeBots?: boolean | Expression<boolean>;
|
|
59
|
+
/** Whether to return the rich text blocks of each message alongside its text
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
includeMessageBlocks?: boolean | Expression<boolean>;
|
|
63
|
+
/** Whether to match keywords only. By default Slack also returns semantically similar messages.
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
keywordSearchOnly?: boolean | Expression<boolean>;
|
|
41
67
|
/** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
|
|
42
68
|
* @loadOptionsMethod getChannelsName
|
|
43
69
|
* @default []
|
|
@@ -21,7 +21,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
21
21
|
sort: z.union([z.literal('desc'), z.literal('asc'), z.literal('relevance'), expressionSchema]).optional(),
|
|
22
22
|
returnAll: booleanOrExpression.optional(),
|
|
23
23
|
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"returnAll":[false]}}, defaults: {"returnAll":false} }),
|
|
24
|
-
options: z.object({ searchChannel: z.array(z.string()).optional() }).optional(),
|
|
24
|
+
options: z.object({ after: stringOrExpression.optional(), before: stringOrExpression.optional(), channelTypes: z.array(z.union([z.literal('public_channel'), z.literal('private_channel'), z.literal('mpim'), z.literal('im')])).optional(), includeArchivedChannels: booleanOrExpression.optional(), includeBots: booleanOrExpression.optional(), includeMessageBlocks: booleanOrExpression.optional(), keywordSearchOnly: booleanOrExpression.optional(), searchChannel: z.array(z.string()).optional() }).optional(),
|
|
25
25
|
}).optional(),
|
|
26
26
|
});
|
|
27
27
|
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/slack/v23/resource_message/operation_search.ts
CHANGED
|
@@ -38,6 +38,32 @@ export type SlackV23MessageSearchParams = {
|
|
|
38
38
|
* @default {}
|
|
39
39
|
*/
|
|
40
40
|
options?: {
|
|
41
|
+
/** Only return messages sent after this date
|
|
42
|
+
*/
|
|
43
|
+
after?: string | Expression<string>;
|
|
44
|
+
/** Only return messages sent before this date
|
|
45
|
+
*/
|
|
46
|
+
before?: string | Expression<string>;
|
|
47
|
+
/** Which kinds of conversation to search in
|
|
48
|
+
* @default ["public_channel","private_channel","mpim","im"]
|
|
49
|
+
*/
|
|
50
|
+
channelTypes?: Array<'public_channel' | 'private_channel' | 'mpim' | 'im'>;
|
|
51
|
+
/** Whether to include archived channels in the results
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
includeArchivedChannels?: boolean | Expression<boolean>;
|
|
55
|
+
/** Whether to include messages sent by bots
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
includeBots?: boolean | Expression<boolean>;
|
|
59
|
+
/** Whether to return the rich text blocks of each message alongside its text
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
includeMessageBlocks?: boolean | Expression<boolean>;
|
|
63
|
+
/** Whether to match keywords only. By default Slack also returns semantically similar messages.
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
keywordSearchOnly?: boolean | Expression<boolean>;
|
|
41
67
|
/** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
|
|
42
68
|
* @loadOptionsMethod getChannelsName
|
|
43
69
|
* @default []
|
|
@@ -21,7 +21,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
21
21
|
sort: z.union([z.literal('desc'), z.literal('asc'), z.literal('relevance'), expressionSchema]).optional(),
|
|
22
22
|
returnAll: booleanOrExpression.optional(),
|
|
23
23
|
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"returnAll":[false]}}, defaults: {"returnAll":false} }),
|
|
24
|
-
options: z.object({ searchChannel: z.array(z.string()).optional() }).optional(),
|
|
24
|
+
options: z.object({ after: stringOrExpression.optional(), before: stringOrExpression.optional(), channelTypes: z.array(z.union([z.literal('public_channel'), z.literal('private_channel'), z.literal('mpim'), z.literal('im')])).optional(), includeArchivedChannels: booleanOrExpression.optional(), includeBots: booleanOrExpression.optional(), includeMessageBlocks: booleanOrExpression.optional(), keywordSearchOnly: booleanOrExpression.optional(), searchChannel: z.array(z.string()).optional() }).optional(),
|
|
25
25
|
}).optional(),
|
|
26
26
|
});
|
|
27
27
|
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/slack/v24/resource_message/operation_search.ts
CHANGED
|
@@ -38,6 +38,32 @@ export type SlackV24MessageSearchParams = {
|
|
|
38
38
|
* @default {}
|
|
39
39
|
*/
|
|
40
40
|
options?: {
|
|
41
|
+
/** Only return messages sent after this date
|
|
42
|
+
*/
|
|
43
|
+
after?: string | Expression<string>;
|
|
44
|
+
/** Only return messages sent before this date
|
|
45
|
+
*/
|
|
46
|
+
before?: string | Expression<string>;
|
|
47
|
+
/** Which kinds of conversation to search in
|
|
48
|
+
* @default ["public_channel","private_channel","mpim","im"]
|
|
49
|
+
*/
|
|
50
|
+
channelTypes?: Array<'public_channel' | 'private_channel' | 'mpim' | 'im'>;
|
|
51
|
+
/** Whether to include archived channels in the results
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
includeArchivedChannels?: boolean | Expression<boolean>;
|
|
55
|
+
/** Whether to include messages sent by bots
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
includeBots?: boolean | Expression<boolean>;
|
|
59
|
+
/** Whether to return the rich text blocks of each message alongside its text
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
includeMessageBlocks?: boolean | Expression<boolean>;
|
|
63
|
+
/** Whether to match keywords only. By default Slack also returns semantically similar messages.
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
keywordSearchOnly?: boolean | Expression<boolean>;
|
|
41
67
|
/** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
|
|
42
68
|
* @loadOptionsMethod getChannelsName
|
|
43
69
|
* @default []
|
|
@@ -21,7 +21,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
21
21
|
sort: z.union([z.literal('desc'), z.literal('asc'), z.literal('relevance'), expressionSchema]).optional(),
|
|
22
22
|
returnAll: booleanOrExpression.optional(),
|
|
23
23
|
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"returnAll":[false]}}, defaults: {"returnAll":false} }),
|
|
24
|
-
options: z.object({ searchChannel: z.array(z.string()).optional() }).optional(),
|
|
24
|
+
options: z.object({ after: stringOrExpression.optional(), before: stringOrExpression.optional(), channelTypes: z.array(z.union([z.literal('public_channel'), z.literal('private_channel'), z.literal('mpim'), z.literal('im')])).optional(), includeArchivedChannels: booleanOrExpression.optional(), includeBots: booleanOrExpression.optional(), includeMessageBlocks: booleanOrExpression.optional(), keywordSearchOnly: booleanOrExpression.optional(), searchChannel: z.array(z.string()).optional() }).optional(),
|
|
25
25
|
}).optional(),
|
|
26
26
|
});
|
|
27
27
|
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/slack/v25/resource_message/operation_search.ts
CHANGED
|
@@ -38,6 +38,32 @@ export type SlackV25MessageSearchParams = {
|
|
|
38
38
|
* @default {}
|
|
39
39
|
*/
|
|
40
40
|
options?: {
|
|
41
|
+
/** Only return messages sent after this date
|
|
42
|
+
*/
|
|
43
|
+
after?: string | Expression<string>;
|
|
44
|
+
/** Only return messages sent before this date
|
|
45
|
+
*/
|
|
46
|
+
before?: string | Expression<string>;
|
|
47
|
+
/** Which kinds of conversation to search in
|
|
48
|
+
* @default ["public_channel","private_channel","mpim","im"]
|
|
49
|
+
*/
|
|
50
|
+
channelTypes?: Array<'public_channel' | 'private_channel' | 'mpim' | 'im'>;
|
|
51
|
+
/** Whether to include archived channels in the results
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
includeArchivedChannels?: boolean | Expression<boolean>;
|
|
55
|
+
/** Whether to include messages sent by bots
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
includeBots?: boolean | Expression<boolean>;
|
|
59
|
+
/** Whether to return the rich text blocks of each message alongside its text
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
includeMessageBlocks?: boolean | Expression<boolean>;
|
|
63
|
+
/** Whether to match keywords only. By default Slack also returns semantically similar messages.
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
keywordSearchOnly?: boolean | Expression<boolean>;
|
|
41
67
|
/** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
|
|
42
68
|
* @loadOptionsMethod getChannelsName
|
|
43
69
|
* @default []
|
|
@@ -21,7 +21,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
21
21
|
sort: z.union([z.literal('desc'), z.literal('asc'), z.literal('relevance'), expressionSchema]).optional(),
|
|
22
22
|
returnAll: booleanOrExpression.optional(),
|
|
23
23
|
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"returnAll":[false]}}, defaults: {"returnAll":false} }),
|
|
24
|
-
options: z.object({ searchChannel: z.array(z.string()).optional() }).optional(),
|
|
24
|
+
options: z.object({ after: stringOrExpression.optional(), before: stringOrExpression.optional(), channelTypes: z.array(z.union([z.literal('public_channel'), z.literal('private_channel'), z.literal('mpim'), z.literal('im')])).optional(), includeArchivedChannels: booleanOrExpression.optional(), includeBots: booleanOrExpression.optional(), includeMessageBlocks: booleanOrExpression.optional(), keywordSearchOnly: booleanOrExpression.optional(), searchChannel: z.array(z.string()).optional() }).optional(),
|
|
25
25
|
}).optional(),
|
|
26
26
|
});
|
|
27
27
|
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/slack/v26/resource_message/operation_search.ts
CHANGED
|
@@ -38,6 +38,32 @@ export type SlackV26MessageSearchParams = {
|
|
|
38
38
|
* @default {}
|
|
39
39
|
*/
|
|
40
40
|
options?: {
|
|
41
|
+
/** Only return messages sent after this date
|
|
42
|
+
*/
|
|
43
|
+
after?: string | Expression<string>;
|
|
44
|
+
/** Only return messages sent before this date
|
|
45
|
+
*/
|
|
46
|
+
before?: string | Expression<string>;
|
|
47
|
+
/** Which kinds of conversation to search in
|
|
48
|
+
* @default ["public_channel","private_channel","mpim","im"]
|
|
49
|
+
*/
|
|
50
|
+
channelTypes?: Array<'public_channel' | 'private_channel' | 'mpim' | 'im'>;
|
|
51
|
+
/** Whether to include archived channels in the results
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
includeArchivedChannels?: boolean | Expression<boolean>;
|
|
55
|
+
/** Whether to include messages sent by bots
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
includeBots?: boolean | Expression<boolean>;
|
|
59
|
+
/** Whether to return the rich text blocks of each message alongside its text
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
includeMessageBlocks?: boolean | Expression<boolean>;
|
|
63
|
+
/** Whether to match keywords only. By default Slack also returns semantically similar messages.
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
keywordSearchOnly?: boolean | Expression<boolean>;
|
|
41
67
|
/** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
|
|
42
68
|
* @loadOptionsMethod getChannelsName
|
|
43
69
|
* @default []
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slack Node - Version 2.7 - Zod Schema Factory
|
|
3
|
+
* Exports a factory that unions all discriminator schemas.
|
|
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 getChannelSchema = require('./resource_channel/index.schema');
|
|
12
|
+
const getFileSchema = require('./resource_file/index.schema');
|
|
13
|
+
const getMessageSchema = require('./resource_message/index.schema');
|
|
14
|
+
const getReactionSchema = require('./resource_reaction/index.schema');
|
|
15
|
+
const getStarSchema = require('./resource_star/index.schema');
|
|
16
|
+
const getUserSchema = require('./resource_user/index.schema');
|
|
17
|
+
const getUserGroupSchema = require('./resource_user_group/index.schema');
|
|
18
|
+
|
|
19
|
+
module.exports = function getSchema(helpers) {
|
|
20
|
+
const { parameters, z } = helpers;
|
|
21
|
+
// Apply discriminator default if not set
|
|
22
|
+
const effectiveParams = parameters.resource === undefined ? { ...parameters, resource: 'message' } : parameters;
|
|
23
|
+
return z.union([
|
|
24
|
+
getChannelSchema({ ...helpers, parameters: effectiveParams }),
|
|
25
|
+
getFileSchema({ ...helpers, parameters: effectiveParams }),
|
|
26
|
+
getMessageSchema({ ...helpers, parameters: effectiveParams }),
|
|
27
|
+
getReactionSchema({ ...helpers, parameters: effectiveParams }),
|
|
28
|
+
getStarSchema({ ...helpers, parameters: effectiveParams }),
|
|
29
|
+
getUserSchema({ ...helpers, parameters: effectiveParams }),
|
|
30
|
+
getUserGroupSchema({ ...helpers, parameters: effectiveParams }),
|
|
31
|
+
]);
|
|
32
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slack Node - Version 2.7
|
|
3
|
+
* Re-exports all discriminator combinations.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { SlackV27ChannelNode } from './resource_channel';
|
|
7
|
+
import type { SlackV27FileNode } from './resource_file';
|
|
8
|
+
import type { SlackV27MessageNode } from './resource_message';
|
|
9
|
+
import type { SlackV27ReactionNode } from './resource_reaction';
|
|
10
|
+
import type { SlackV27StarNode } from './resource_star';
|
|
11
|
+
import type { SlackV27UserNode } from './resource_user';
|
|
12
|
+
import type { SlackV27UserGroupNode } from './resource_user_group';
|
|
13
|
+
|
|
14
|
+
export * from './resource_channel';
|
|
15
|
+
export * from './resource_file';
|
|
16
|
+
export * from './resource_message';
|
|
17
|
+
export * from './resource_reaction';
|
|
18
|
+
export * from './resource_star';
|
|
19
|
+
export * from './resource_user';
|
|
20
|
+
export * from './resource_user_group';
|
|
21
|
+
|
|
22
|
+
export type SlackV27Node =
|
|
23
|
+
| SlackV27ChannelNode
|
|
24
|
+
| SlackV27FileNode
|
|
25
|
+
| SlackV27MessageNode
|
|
26
|
+
| SlackV27ReactionNode
|
|
27
|
+
| SlackV27StarNode
|
|
28
|
+
| SlackV27UserNode
|
|
29
|
+
| SlackV27UserGroupNode
|
|
30
|
+
;
|