Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: onboard courier destination #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/components/destination/destinationList/COURIER.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"title": "Connection Settings",
"fields": [
{
"type": "textInput",
"label": "API Key",
"value": "apiKey",
"inputFieldType": "password",
"secret": true,
"footerNote": "Your API Key",
"regexErrorMessage": "Invalid API Key",
"required": true,
"placeholder": "e.g: pk_prod_1BR12G4ZH94WNXMYFCTZR8ES62GP"
}
]
}
]
5 changes: 2 additions & 3 deletions src/components/destination/destinationList/dst.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const destinationList = {
CLEVERTAP: require('./CLEVERTAP.json'),
CLICKHOUSE: require('./CLICKHOUSE.json'),
CONFLUENT_CLOUD: require('./CONFLUENT_CLOUD.json'),
COURIER: require('./COURIER.json'),
CRITEO: require('./CRITEO.json'),
CUSTOMERIO: require('./CUSTOMERIO.json'),
DELIGHTED: require('./DELIGHTED.json'),
Expand Down Expand Up @@ -105,6 +106,4 @@ const destinationList = {
ZENDESK: require('./ZENDESK.json'),
};

export {
destinationList
}
export { destinationList };
Original file line number Diff line number Diff line change
Expand Up @@ -3489,5 +3489,22 @@
}
]
}
],
"COURIER": [
{
"title": "Connection credentials",
"fields": [
{
"type": "textInput",
"label": "Courier API Key",
"value": "apiKey",
"inputFieldType": "password",
"regex": ".*",
"required": true,
"placeholder": "e.g: pk_prod_1BR12G4ZH94WNXMYFCTZR8ES62GP",
"secret": true
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Courier

Courier is an API and web studio for development teams to manage all product-triggered communications (email, chat, in-app, SMS, push, etc.) in one place.

### Get More Out of Courier With RudderStack

RudderStack now supports Courier as a destination to seamlessly send your event data in real-time.

### Useful Links

[Courier Website][]
[Documentation and Setup guide][]
[View on GitHub][]

[//]: # "These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen. Thanks SO - http://stackoverflow.com/questions/4823468/store-comments-in-markdown-syntax"
[courier website]: https://www.courier.com
[documentation and setup guide]: https://docs.rudderstack.com/destinations/courier
[view on github]: https://github.com/rudderlabs/rudder-transformer/tree/master/v0/destinations/courier
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const markdown = {
CLICKHOUSE: raw('./CLICKHOUSE.md'),
COMSCORE: raw('./COMSCORE.md'),
CONFLUENT_CLOUD: raw('./CONFLUENT_CLOUD.md'),
COURIER: raw('./COURIER.md'),
CRITEO: raw('./CRITEO.md'),
CUSTOMERIO: raw('./CUSTOMERIO.md'),
DELIGHTED: raw('./DELIGHTED.md'),
Expand Down
5 changes: 4 additions & 1 deletion src/components/icons/destinationIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ import { ReactComponent as SENDGRID } from '@svg/sendgrid.svg';
import { ReactComponent as SENTRY } from '@svg/sentry.svg';
import { ReactComponent as SNAP_PIXEL } from '@svg/snap_pixel.svg';
import { ReactComponent as TRENGO } from '@svg/trengo.svg';
import { ReactComponent as COURIER } from '@svg/courier.svg';

import theme from '@css/theme';

Expand Down Expand Up @@ -301,7 +302,7 @@ const DestinationIcon = (props: any) => {
case 'pinterest_tag':
return <PINTEREST_TAG width={width} height={height} />;
case 'pendo':
return <PENDO width={width} height={height} />
return <PENDO width={width} height={height} />;
case 'twitter_ads':
return <TWITTER width={width} height={height} />;
case 'taplytics':
Expand All @@ -328,6 +329,8 @@ const DestinationIcon = (props: any) => {
return <APPCENTER width={width} height={height} />;
case 'active_campaign':
return <ACTIVE_CAMPAIGN width={width} height={height} />;
case 'courier':
return <COURIER width={width} height={height} />;
default:
break;
}
Expand Down
5 changes: 5 additions & 0 deletions src/icons/svg/courier.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 32 additions & 1 deletion src/stores/destinations.json
Original file line number Diff line number Diff line change
Expand Up @@ -2776,5 +2776,36 @@
"displayName": "Trengo",
"createdAt": "2019-09-02T08:08:05.613Z",
"updatedAt": "2021-10-20T18:06:26.219Z"
},
{
"config": {
"destConfig": {
"defaultConfig": [
"apiKey"
]
},
"secretKeys": [
"apiKey"
],
"excludeKeys": [],
"includeKeys": [],
"transformAt": "processor",
"supportedSourceTypes": [
"android",
"ios",
"web",
"unity",
"amp",
"cloud",
"reactnative"
],
"saveDestinationResponse": false
},
"responseRules": null,
"id": "1zlRBmGgUoB9FLKzbJPP6F6QWQv",
"name": "COURIER",
"displayName": "Courier",
"createdAt": "2023-02-03T21:56:28.114Z",
"updatedAt": "2023-02-03T21:56:28.114Z"
}
]
]