You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/03/25 09:18:01 UTC

(camel-kamelets) branch 1945 created (now 4c17ddb1)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch 1945
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


      at 4c17ddb1 Slack Source: Expose Kamelet data type information

This branch includes the following new commits:

     new 4c17ddb1 Slack Source: Expose Kamelet data type information

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel-kamelets) 01/01: Slack Source: Expose Kamelet data type information

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 1945
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 4c17ddb1b7966683d89251349d8097ed8df14207
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Mar 25 10:17:41 2024 +0100

    Slack Source: Expose Kamelet data type information
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/slack-source.kamelet.yaml                 | 36 ++++++++++++++++++++++
 .../resources/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 96c744ec..7fe8829e 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 96c744ec..7fe8829e 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