This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/main by this push:
new d7bfa60d Google Mail Source: Expose Kamelet data type information
(#2037)
d7bfa60d is described below
commit d7bfa60decc335d2dc487cc9b7cec169b8956e0f
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon May 13 09:40:16 2024 +0200
Google Mail Source: Expose Kamelet data type information (#2037)
Signed-off-by: Andrea Cosentino <[email protected]>
---
kamelets/google-mail-source.kamelet.yaml | 62 +++++++++++++++++++++-
.../kamelets/google-mail-source.kamelet.yaml | 62 +++++++++++++++++++++-
2 files changed, 120 insertions(+), 4 deletions(-)
diff --git a/kamelets/google-mail-source.kamelet.yaml
b/kamelets/google-mail-source.kamelet.yaml
index 0ebb5b27..27493e93 100644
--- a/kamelets/google-mail-source.kamelet.yaml
+++ b/kamelets/google-mail-source.kamelet.yaml
@@ -98,9 +98,67 @@ spec:
type: string
example: "is:unread -category:(promotions OR social)"
default: "is:unread"
- types:
+ dataTypes:
out:
- mediaType: application/json
+ default: json
+ headers:
+ CamelGoogleMailId:
+ title: Camel Google Mail Id
+ description: The ID of the message
+ type: string
+ CamelGoogleMailStreamTo:
+ title: Camel Google Mail To Address
+ description: The recipient of the message
+ type: string
+ CamelGoogleMailStreamFrom:
+ title: Camel Google Mail From Address
+ description: The emitter of the message
+ type: string
+ CamelGoogleMailStreamCc:
+ title: Camel Google Mail Cc
+ description: The carbon copy of the message
+ type: string
+ CamelGoogleMailStreamBcc:
+ title: Camel Google Mail Bcc
+ description: The blind carbon cpoy of the message
+ type: string
+ CamelGoogleMailStreamSubject:
+ title: Camel Google Mail Subject
+ description: The subject of the message
+ type: string
+ types:
+ json:
+ format: "application-json"
+ description: |-
+ Json representation of a Google Mail event object.
+ mediaType: application/json
+ cloudevents:
+ format: "google-mail-stream:application-cloudevents"
+ description: |-
+ Output data type represents Google Mail Streams response as
CloudEvent V1. The data type sets Camel specific CloudEvent headers on the
exchange with
+ respective data from the Mail 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.google.mail.stream.consume"
+ type: string
+ CamelCloudEventSource:
+ title: CloudEvent Source
+ description: The event source. By default, the Mail From with
prefix "google.mail.stream.".
+ type: string
+ CamelCloudEventSubject:
+ title: CloudEvent Subject
+ description: The event subject. The Calendar event type.
+ type: string
+ CamelCloudEventTime:
+ title: CloudEvent Time
+ description: The exchange creation timestamp as event time.
+ type: string
dependencies:
- "camel:jackson"
- "camel:kamelet"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/google-mail-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/google-mail-source.kamelet.yaml
index 0ebb5b27..27493e93 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/google-mail-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/google-mail-source.kamelet.yaml
@@ -98,9 +98,67 @@ spec:
type: string
example: "is:unread -category:(promotions OR social)"
default: "is:unread"
- types:
+ dataTypes:
out:
- mediaType: application/json
+ default: json
+ headers:
+ CamelGoogleMailId:
+ title: Camel Google Mail Id
+ description: The ID of the message
+ type: string
+ CamelGoogleMailStreamTo:
+ title: Camel Google Mail To Address
+ description: The recipient of the message
+ type: string
+ CamelGoogleMailStreamFrom:
+ title: Camel Google Mail From Address
+ description: The emitter of the message
+ type: string
+ CamelGoogleMailStreamCc:
+ title: Camel Google Mail Cc
+ description: The carbon copy of the message
+ type: string
+ CamelGoogleMailStreamBcc:
+ title: Camel Google Mail Bcc
+ description: The blind carbon cpoy of the message
+ type: string
+ CamelGoogleMailStreamSubject:
+ title: Camel Google Mail Subject
+ description: The subject of the message
+ type: string
+ types:
+ json:
+ format: "application-json"
+ description: |-
+ Json representation of a Google Mail event object.
+ mediaType: application/json
+ cloudevents:
+ format: "google-mail-stream:application-cloudevents"
+ description: |-
+ Output data type represents Google Mail Streams response as
CloudEvent V1. The data type sets Camel specific CloudEvent headers on the
exchange with
+ respective data from the Mail 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.google.mail.stream.consume"
+ type: string
+ CamelCloudEventSource:
+ title: CloudEvent Source
+ description: The event source. By default, the Mail From with
prefix "google.mail.stream.".
+ type: string
+ CamelCloudEventSubject:
+ title: CloudEvent Subject
+ description: The event subject. The Calendar event type.
+ type: string
+ CamelCloudEventTime:
+ title: CloudEvent Time
+ description: The exchange creation timestamp as event time.
+ type: string
dependencies:
- "camel:jackson"
- "camel:kamelet"