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
commit d39d75c6b5244e253f7434f1ca50b50b78ab5a5a Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Wed May 5 21:36:03 2021 +0200 Group shouldn't be a label, it is an annotation --- salesforce-source.kamelet.yaml | 87 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/salesforce-source.kamelet.yaml b/salesforce-source.kamelet.yaml new file mode 100644 index 0000000..d65b7eb --- /dev/null +++ b/salesforce-source.kamelet.yaml @@ -0,0 +1,87 @@ +apiVersion: camel.apache.org/v1alpha1 +kind: Kamelet +metadata: + name: salesforce-source + annotations: + camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZpZXdCb3g9IjAgMCA0OCA0OCIgdmVyc2lvbj0iMS4xIj48ZyBpZD0ic3VyZmFjZTEiPjxwYXRoIGQ9Ik0zNi41IDEyYy0xLjMyNCAwLTIuNTkuMjU4LTMuNzU4LjcwM0E3Ljk5NCA3Ljk5NCAwIDAgMCAyNiA5Yy0yLjEwNSAwLTQuMDIuODItNS40NDUgMi4xNTJBOS40NjggOS40NjggMCAwIDAgMTMuNSA4QzguMjU0IDggNCAxMi4yNTQgNCAxNy41YzAgLj [...] + camel.apache.org/provider: "Apache Software Foundation" + camel.apache.org/kamelet.group: "Salesforce" + labels: + camel.apache.org/kamelet.type: "source" +spec: + definition: + title: "Salesforce Source" + description: |- + Receive updates from Salesforce. + required: + - query + - topicName + - clientId + - clientSecret + - userName + - password + type: object + properties: + query: + title: Query + description: The query to execute on Salesforce + type: string + example: SELECT Id, Name, Email, Phone FROM Contact + topicName: + title: Topic Name + description: The name of the topic/channel to use + type: string + example: ContactTopic + loginUrl: + title: Login URL + description: The Salesforce instance login URL + type: string + default: https://login.salesforce.com + clientId: + title: Consumer Key + description: The Salesforce application consumer key + type: string + clientSecret: + title: Consumer Secret + description: The Salesforce application consumer secret + type: string + format: password + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:password + userName: + title: Username + description: The Salesforce username + type: string + password: + title: Password + description: The Salesforce user password + type: string + format: password + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:password + types: + out: + mediaType: application/json + dependencies: + - "camel:jackson" + - "camel:salesforce" + flow: + from: + uri: "kamelet-reify:salesforce:{{topicName}}" + parameters: + clientId: "{{clientId}}" + clientSecret: "{{clientSecret}}" + userName: "{{userName}}" + password: "{{password}}" + notifyForFields: "ALL" + updateTopic: "true" + notifyForOperationCreate: "true" + notifyForOperationUpdate: "false" + notifyForOperationDelete: "false" + notifyForOperationUndelete: "false" + sObjectQuery: "{{query}}" + loginUrl: "{{loginUrl}}" + steps: + - marshal: + json: {} + - to: "kamelet:sink"