Skip to content

Commit b961902

Browse files
committed
Merge branch 'master' into engage-messaging
2 parents 895d191 + fd8f3c5 commit b961902

File tree

43 files changed

+2555
-75
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2555
-75
lines changed

scripts/catalog_papi.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ const getConnectionModes = (destination) => {
206206
if (item.status === 'PUBLIC_BETA') {
207207
betaFlag = 'beta: true\n'
208208
}
209-
content =`---\ntitle: '${item.display_name} Destination'\nhidden: true\n${betaFlag}---\n`
209+
content =`---\ntitle: '${item.display_name} Destination'\nhidden: true\npublished: false\n${betaFlag}---\n`
210210
}
211211
fs.mkdirSync(docsPath)
212212
fs.writeFileSync(`${docsPath}/index.md`, content)
@@ -259,9 +259,6 @@ const updateSources = async () => {
259259
const hiddenSources = [
260260
'amp',
261261
'factual-engine',
262-
'kotlin-android',
263-
'kotlin',
264-
'swift-ios'
265262
]
266263

267264
sources.forEach(source => {
@@ -368,6 +365,18 @@ const updateDestinations = async () => {
368365

369366
destinations.forEach(destination => {
370367
let slug = slugify(destination.name)
368+
369+
// Flip the slug of Actions destinations
370+
const actionsDests = [
371+
'amplitude-actions',
372+
'slack-actions'
373+
]
374+
375+
if (actionsDests.includes(slug)) {
376+
const newSlug = slug.split('-')
377+
slug = newSlug[1]+'-'+newSlug[0]
378+
}
379+
371380
let url = `connections/destinations/catalog/${slug}`
372381

373382
let tempCategories = [destination.categories]
@@ -394,7 +403,7 @@ const updateDestinations = async () => {
394403
const clonedObj = clone(object);
395404
const targetKey = clonedObj[key];
396405
delete clonedObj[key];
397-
406+
398407
clonedObj[newKey] = targetKey;
399408
return clonedObj;
400409
};

src/_data/actions/slack.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
actions:
2+
- action: Post Message
3+
blurb: Post Message sends a message to the specified Slack workspace and channel when the associated trigger criteria are met.
4+
fields:
5+
- name: Webhook URL (required)
6+
description: The webhook provided by Slack to connect with the desired workspace.
7+
default:
8+
- name: Message (required)
9+
description: The message that will post to the specified channel. Use a mix of [Slack's formatting](https://api.slack.com/reference/surfaces/formatting){:target="_blank"}, and event variables.
10+
default:
11+
- name: channel
12+
description: The channel within the connected workspace. Do not include the `#` character. For example, use `general`, not `#general`.
13+
default:
14+
- name: User
15+
description: The sender of the posted message.
16+
default: Segment
17+
- name: Icon URL
18+
description: The URL of the image that appears next to the User.
19+
default: https://logo.clearbit.com/segment.com
20+
config:
21+
- category: Connection Settings
22+
settings:
23+
- name: Event Channels
24+
configurable: true
25+
location:
26+
notes: In Slack (Actions), events and channels are set per subscription.
27+
- name: Identify Template
28+
configurable: true
29+
location:
30+
notes: In Slack (Actions), you do not need a specific template for Identifying users. Use the Messages field to write your message, and add data from the event.
31+
- name: Event Template
32+
configurable: true
33+
location:
34+
notes: In Slack (Actions), you do not need a specific template for specific Events. Use the Filter and Messages field to specify the incoming event, and write your message with data from the event.
35+
- name: Incoming Webhook URL
36+
configurable: true
37+
location:
38+
notes: Available as a subscription-level setting on the Post Message action.
39+
- name: Whitelisted Traits
40+
configurable: true
41+
location:
42+
notes: Use the Messages field in the Post Message action to create your message with any traits from an incoming Identify call.
43+

src/_data/catalog/destination_categories.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT
2-
# destination categories last updated 2021-09-08
2+
# destination categories last updated 2021-09-16
33
items:
44
- display_name: A/B Testing
55
slug: a-b-testing

0 commit comments

Comments
 (0)