Skip to content

Commit 1b720ef

Browse files
author
markzegarelli
authored
Merge pull request #1544 from segmentio/catalog-fixes
Destination C-Modes fixes
2 parents 6a1173e + da03b2e commit 1b720ef

File tree

11 files changed

+67
-22
lines changed

11 files changed

+67
-22
lines changed

Gemfile.lock

100644100755
File mode changed.

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 PLATFORM API. DO NOT EDIT
2-
# destination categories last updated 2021-05-07
2+
# destination categories last updated 2021-05-17
33
items:
44
- display_name: Email Marketing
55
slug: email-marketing

src/_data/catalog/destinations.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT
2-
# destination data last updated 2021-05-14
2+
# destination data last updated 2021-05-17
33
items:
44
- display_name: ActiveCampaign
55
slug: activecampaign
@@ -3698,6 +3698,7 @@ items:
36983698
- eu
36993699
- us06
37003700
- us08
3701+
- us05
37013702
description: 'Choose your Appboy Gateway (ie. US 01, US 02, EU 01, etc.).'
37023703
settings: []
37033704
- name: automaticallyDisplayMessages
@@ -14549,13 +14550,6 @@ items:
1454914550
required: false
1455014551
description: Map your Segment properties to the Marketo Activity Fields
1455114552
settings:
14552-
- name: primaryKey
14553-
display_name: Set as Primary Key
14554-
type: BOOLEAN
14555-
deprecated: false
14556-
required: false
14557-
description: Mark this property as the Primary field in Marketo.
14558-
settings: []
1455914553
- name: segmentProperty
1456014554
display_name: Segment Property Name
1456114555
type: STRING
@@ -14591,6 +14585,13 @@ items:
1459114585
- date
1459214586
description: Enter the Marketo Field type.
1459314587
settings: []
14588+
- name: primaryKey
14589+
display_name: Set as Primary Key
14590+
type: BOOLEAN
14591+
deprecated: false
14592+
required: false
14593+
description: Mark this property as the Primary field in Marketo.
14594+
settings: []
1459414595
- name: event
1459514596
display_name: Segment Event Name
1459614597
type: STRING
@@ -19136,6 +19137,15 @@ items:
1913619137
required: false
1913719138
description: Map your Segment properties to Responsys Columns
1913819139
settings:
19140+
- name: columns
19141+
display_name: Segment Property Name
19142+
type: STRING
19143+
deprecated: false
19144+
required: true
19145+
string_validators:
19146+
regexp: ''
19147+
description: Enter the Segment Property Name.
19148+
settings: []
1913919149
- name: fieldName
1914019150
display_name: Responsys Column Name
1914119151
type: STRING
@@ -19169,15 +19179,6 @@ items:
1916919179
required: false
1917019180
description: Mark this property as a Primary Key in Responsys.
1917119181
settings: []
19172-
- name: columns
19173-
display_name: Segment Property Name
19174-
type: STRING
19175-
deprecated: false
19176-
required: true
19177-
string_validators:
19178-
regexp: ''
19179-
description: Enter the Segment Property Name.
19180-
settings: []
1918119182
- name: mapEmail
1918219183
display_name: Map Email
1918319184
type: BOOLEAN

src/_data/catalog/overrides.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
items:
2+
- slug: hubspot
3+
components:
4+
- type: WEB
5+
- type: CLOUD
6+
connection_modes:
7+
device:
8+
web: true
9+
mobile: false
10+
server: false
11+
cloud:
12+
web: false
13+
mobile: true
14+
server: true
15+
summary: >-
16+
accepts data from any Segment mobile or server source in cloud mode.
17+
It does not accept data from a web source, and does not offer device-mode connections.
18+
cmode_type: mixed
19+
case: '6'
20+
- slug: iterable
21+
components:
22+
- type: WEB
23+
- type: CLOUD
24+
connection_modes:
25+
device:
26+
web: false
27+
mobile: false
28+
server: false
29+
cloud:
30+
web: true
31+
mobile: true
32+
server: true
33+
summary: >-
34+
accepts cloud-mode data from all Segment source types. It does not offer device-mode connections.
35+
cmode_type: mixed
36+
case: '5'

src/_data/catalog/source_categories.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT
2-
# source cateogries last updated 2021-05-14
2+
# source cateogries last updated 2021-05-17
33
items:
44
- display_name: Server
55
slug: server

src/_data/catalog/sources.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT
2-
# sources last updated 2021-05-14
2+
# sources last updated 2021-05-17
33
items:
44
- display_name: .NET
55
slug: net

src/_includes/content/connection-modes.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<!-- in the file we're pulling from the API, "name" corresponds with the path to the yml blob for a specific destination.-->
22
{% assign currentSlug = page.url | split: "/" | last %}
3+
{% if page.cmode-override %}
4+
{% assign currentIntegration = site.data.catalog.overrides.items | where: "slug", currentSlug | first %}
5+
{% else %}
36
{% assign currentIntegration = site.data.catalog.destinations.items | where: "slug", currentSlug | first %}
7+
{% endif %}
8+
49
{% assign connectionModes = currentIntegration.connection_modes %}
510

611
{% if currentIntegration.components.size > 0 %}
@@ -10,7 +15,6 @@ components -> how do we send data
1015
platforms -> what data do we recognize-->
1116

1217

13-
1418
Before you start, make sure {{ currentIntegration.display_name }} supports the source type and connection mode you've chosen to implement. You can learn more about [connection modes here](https://segment.com/docs/connections/destinations/#connection-modes).
1519

1620
<table>

src/_includes/content/destination-dossier.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ <h4>{{ destinationInfo.display_name }} quick info </h4>
2626
{% endif %}
2727

2828
{% unless destinationInfo.connection_modes.case == "0"%}
29+
{% if page.cmode-override %}
30+
{% assign destinationInfo = site.data.catalog.overrides.items % | where: "slug", thisDestination | first %}
31+
{% endif %}
2932
<p>
3033
{{ destinationInfo.display_name }} {{ destinationInfo.connection_modes.summary }} {% if destinationInfo.connection_modes.case == "mixed" %} {{destinationInfo.display_name}} accepts device-mode data from {% if destinationInfo.connection_modes.device.mobile and destinationInfo.connection_modes.device.web %} mobile and web{% elsif destinationInfo.connection_modes.device.mobile %} mobile{% elsif destinationInfo.connection_modes.device.web %} web{% endif %} sources.{% endif %} {% if destinationInfo.browserUnbundlingSupported %} You can change the {{destinationInfo.display_name}} connection mode for Analytics.js sources from the destination settings in the Segment web app.
3134
{% endif %}

src/connections/destinations/catalog/hubspot/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
rewrite: true
33
title: HubSpot Destination
44
hide-personas-partial: true
5+
cmode-override: true
56
---
67

78
[HubSpot](https://www.hubspot.com/) is an inbound marketing and sales platform that helps companies attract visitors, convert leads, and close customers. The `analytics.js` HubSpot Destination is open-source. You can browse the code [on GitHub](https://github.com/segment-integrations/analytics.js-integration-hubspot).

src/connections/destinations/catalog/iterable/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Iterable Destination
33
hide-personas-partial: true
4+
cmode-override: true
45
---
56

67
When you enable the Iterable destination from the Segment app, your data starts flowing into Iterable, where it can trigger workflows and make data available for analytics. You can find your Iterable API key by going to Destinations → API Keys inside the Iterable app.

0 commit comments

Comments
 (0)