From 4c17ddb1b7966683d89251349d8097ed8df14207 Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Mon, 25 Mar 2024 10:17:41 +0100 Subject: [PATCH] Slack Source: Expose Kamelet data type information Signed-off-by: Andrea Cosentino --- kamelets/slack-source.kamelet.yaml | 36 +++++++++++++++++++ .../kamelets/slack-source.kamelet.yaml | 36 +++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/kamelets/slack-source.kamelet.yaml b/kamelets/slack-source.kamelet.yaml index 96c744ec8..7fe8829ea 100644 --- a/kamelets/slack-source.kamelet.yaml +++ b/kamelets/slack-source.kamelet.yaml @@ -60,6 +60,42 @@ spec: description: Create exchanges in natural order (oldest to newest) or not. type: boolean default: false + dataTypes: + out: + default: json + headers: + types: + json: + format: "application-json" + description: Json mapping of a Slack API Message + mediaType: application/json + cloudevents: + format: "slack:application-cloudevents" + description: |- + Output data type represents Azure Storage Blob get blob response as CloudEvent V1. The data type sets Camel specific CloudEvent headers on the exchange with + respective data from the Azure container and its derived object. + headers: + CamelCloudEventID: + title: CloudEvent ID + description: The Camel exchange id set as event id + type: string + CamelCloudEventType: + title: CloudEvent Type + description: The event type + default: "org.apache.camel.event.slack.consume" + type: string + CamelCloudEventSource: + title: CloudEvent Source + description: The event source. By default, the Slack App Id with prefix "slack.". + type: string + CamelCloudEventSubject: + title: CloudEvent Subject + description: The event subject. The Slack Channel name. + type: string + CamelCloudEventTime: + title: CloudEvent Time + description: The exchange creation timestamp as event time. + type: string types: out: mediaType: application/json diff --git a/library/camel-kamelets/src/main/resources/kamelets/slack-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/slack-source.kamelet.yaml index 96c744ec8..7fe8829ea 100644 --- a/library/camel-kamelets/src/main/resources/kamelets/slack-source.kamelet.yaml +++ b/library/camel-kamelets/src/main/resources/kamelets/slack-source.kamelet.yaml @@ -60,6 +60,42 @@ spec: description: Create exchanges in natural order (oldest to newest) or not. type: boolean default: false + dataTypes: + out: + default: json + headers: + types: + json: + format: "application-json" + description: Json mapping of a Slack API Message + mediaType: application/json + cloudevents: + format: "slack:application-cloudevents" + description: |- + Output data type represents Azure Storage Blob get blob response as CloudEvent V1. The data type sets Camel specific CloudEvent headers on the exchange with + respective data from the Azure container and its derived object. + headers: + CamelCloudEventID: + title: CloudEvent ID + description: The Camel exchange id set as event id + type: string + CamelCloudEventType: + title: CloudEvent Type + description: The event type + default: "org.apache.camel.event.slack.consume" + type: string + CamelCloudEventSource: + title: CloudEvent Source + description: The event source. By default, the Slack App Id with prefix "slack.". + type: string + CamelCloudEventSubject: + title: CloudEvent Subject + description: The event subject. The Slack Channel name. + type: string + CamelCloudEventTime: + title: CloudEvent Time + description: The exchange creation timestamp as event time. + type: string types: out: mediaType: application/json