Skip to content

Commit 5b5c2c1

Browse files
committed
update sources, add url
1 parent 8db7367 commit 5b5c2c1

File tree

3 files changed

+73
-862
lines changed

3 files changed

+73
-862
lines changed

scripts/papi.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -276,25 +276,29 @@ const updateSources = async () => {
276276
sources.forEach(source => {
277277
let slug = slugify(source.name)
278278
let settings = source.options
279-
let mainCategory = source.categories[0] ? source.categories[0].toLowerCase : ''
279+
let mainCategory = source.categories[0] ? source.categories[0].toLowerCase() : ''
280+
281+
if (libraryCategories.includes(mainCategory)) {
282+
url = `connections/sources/catalog/libraries/${mainCategory}/${slug}`
283+
} else {
284+
url = `connections/sources/catalog/cloud-apps/${slug}`
285+
}
280286

281287
settings.sort((a, b) => {
282288
if(a.name < b.name) { return -1; }
283289
if(a.name > b.name) { return 1; }
284290
return 0;
285291
})
286292

293+
// console.log(slug, mainCategory)
287294

288-
if (libraryCategories.includes(mainCategory)) {
289-
url = `connections/sources/catalog/libraries/${mainCategory}/${slug}`
290-
} else {
291-
url = `connections/sources/catalog/cloud-apps/${slug}`
292-
}
295+
293296

294297

295298
let updatedSource = {
296299
display_name: source.name,
297300
slug,
301+
url,
298302
description: source.description,
299303
logo: {
300304
url: source.logos.default
@@ -495,6 +499,6 @@ const updateWarehouses = async () => {
495499

496500
}
497501

498-
updateDestinations()
502+
//updateDestinations()
499503
updateSources()
500504
// updateWarehouses()

src/_data/catalog/destinations.yml

Lines changed: 62 additions & 193 deletions
Original file line numberDiff line numberDiff line change
@@ -5246,6 +5246,67 @@ items:
52465246
summary: accepts device-mode data only from Analytics.js.
52475247
cmode_type: device-only
52485248
case: '2'
5249+
- display_name: Crisp
5250+
name: Crisp
5251+
slug: crisp
5252+
hidden: false
5253+
url: connections/destinations/catalog/crisp
5254+
previous_names:
5255+
- Crisp
5256+
website: 'https://crisp.chat'
5257+
status: PUBLIC
5258+
categories:
5259+
- CRM
5260+
- Customer Success
5261+
- Email Marketing
5262+
- Marketing Automation
5263+
logo:
5264+
url: >-
5265+
https://public-segment-devcenter-production.s3.amazonaws.com/db6f4c77-470b-429c-b77a-77b1228ade63.svg
5266+
mark:
5267+
url: >-
5268+
https://public-segment-devcenter-production.s3.amazonaws.com/45cad587-47d4-4ada-a09d-c730242af27e.svg
5269+
methods:
5270+
track: true
5271+
pageview: false
5272+
identify: true
5273+
group: false
5274+
alias: false
5275+
components:
5276+
- code: 'https://github.com/baptistejamin/analytics.js-integration-crisp'
5277+
type: browser
5278+
platforms:
5279+
browser: true
5280+
mobile: true
5281+
server: true
5282+
browserUnbundlingSupported: false
5283+
browserUnbundlingPublic: false
5284+
replay: false
5285+
settings:
5286+
- name: apiKey
5287+
type: string
5288+
defaultValue: ''
5289+
description: >-
5290+
The API key is autoset when linking Crisp with Segment. Click "Connect to
5291+
Segment" in the Crisp plugins section
5292+
required: true
5293+
- name: websiteId
5294+
type: string
5295+
defaultValue: ''
5296+
description: ''
5297+
required: true
5298+
connection_modes:
5299+
device:
5300+
web: true
5301+
mobile: false
5302+
server: false
5303+
cloud:
5304+
web: false
5305+
mobile: false
5306+
server: false
5307+
summary: accepts device-mode data only from Analytics.js.
5308+
cmode_type: device-only
5309+
case: '2'
52495310
- display_name: Criteo App & Web Events
52505311
name: Criteo App & Web Events
52515312
slug: criteo-app-web-events
@@ -13046,81 +13107,6 @@ items:
1304613107
Cloud Mode or send track events from one of our server side libraries. Use
1304713108
these fields to map your Segment track event names to Marketo Custom
1304813109
Activities. We'll only send events that you specify.
13049-
<<<<<<< HEAD
13050-
=======
13051-
settings:
13052-
- name: marketoActivityId
13053-
display_name: Marketo Custom Activity ID
13054-
type: STRING
13055-
deprecated: false
13056-
required: true
13057-
string_validators:
13058-
regexp: '^[0-9]+$'
13059-
description: Enter the Marketo Custom Activity ID. This must be an Integer.
13060-
settings: []
13061-
- name: segmentProperty
13062-
display_name: Marketo Fields
13063-
type: MIXED
13064-
deprecated: false
13065-
required: false
13066-
description: Map your Segment properties to the Marketo Activity Fields
13067-
settings:
13068-
- name: marketoAttributeType
13069-
display_name: Marketo Field Type
13070-
type: SELECT
13071-
deprecated: false
13072-
required: true
13073-
select_validators:
13074-
select_options:
13075-
- string
13076-
- boolean
13077-
- number
13078-
- date
13079-
description: Enter the Marketo Field type.
13080-
settings: []
13081-
- name: primaryKey
13082-
display_name: Set as Primary Key
13083-
type: BOOLEAN
13084-
deprecated: false
13085-
required: false
13086-
description: Mark this property as the Primary field in Marketo.
13087-
settings: []
13088-
- name: segmentProperty
13089-
display_name: Segment Property Name
13090-
type: STRING
13091-
deprecated: false
13092-
required: true
13093-
string_validators:
13094-
regexp: ''
13095-
description: >-
13096-
Enter the Segment Property Name. This is case sensitive so make sure
13097-
the name matches exactly how you are passing it in your .track() call.
13098-
settings: []
13099-
- name: marketoAttributeName
13100-
display_name: Marketo Field Name
13101-
type: STRING
13102-
deprecated: false
13103-
required: true
13104-
string_validators:
13105-
regexp: ''
13106-
description: >-
13107-
Enter the Marketo Field name. Make sure to copy and paste the exact
13108-
API Name for your field as it appears in Marketo.
13109-
settings: []
13110-
- name: event
13111-
display_name: Segment Event Name
13112-
type: STRING
13113-
deprecated: false
13114-
required: true
13115-
string_validators:
13116-
regexp: ''
13117-
description: Enter the Segment Event Name.
13118-
settings: []
13119-
- name: traits
13120-
display_name: Marketo Custom Fields
13121-
type: MIXED
13122-
deprecated: false
13123-
>>>>>>> master
1312413110
required: false
1312513111
- name: privateKey
1312613112
type: string
@@ -17116,124 +17102,7 @@ items:
1711617102
description: >-
1711717103
Use these fields to map your Segment event names to Responsys Supplemental
1711817104
Tables. We'll only send events and properties that you specify.
17119-
<<<<<<< HEAD
17120-
required: false
17121-
=======
17122-
settings:
17123-
- name: columns
17124-
display_name: Columns
17125-
type: MIXED
17126-
deprecated: false
17127-
required: false
17128-
description: Map your Segment properties to Responsys Columns
17129-
settings:
17130-
- name: fieldName
17131-
display_name: Responsys Column Name
17132-
type: STRING
17133-
deprecated: false
17134-
required: true
17135-
string_validators:
17136-
regexp: ''
17137-
description: Enter the Responsys column name.
17138-
settings: []
17139-
- name: fieldType
17140-
display_name: Responsys Column Type
17141-
type: SELECT
17142-
deprecated: false
17143-
required: true
17144-
select_validators:
17145-
select_options:
17146-
- CHAR
17147-
- STR25
17148-
- STR100
17149-
- STR500
17150-
- STR4000
17151-
- Number
17152-
- INTEGER
17153-
- TIMESTAMP
17154-
description: Enter the Responsys column type.
17155-
settings: []
17156-
- name: primaryKey
17157-
display_name: Set as Primary Key
17158-
type: BOOLEAN
17159-
deprecated: false
17160-
required: false
17161-
description: Mark this property as a Primary Key in Responsys.
17162-
settings: []
17163-
- name: columns
17164-
display_name: Segment Property Name
17165-
type: STRING
17166-
deprecated: false
17167-
required: true
17168-
string_validators:
17169-
regexp: ''
17170-
description: Enter the Segment Property Name.
17171-
settings: []
17172-
- name: mapEmail
17173-
display_name: Map Email
17174-
type: BOOLEAN
17175-
deprecated: false
17176-
required: false
17177-
description: >-
17178-
Check this box if you want to automatically create and or map Segment's
17179-
`email` property (in `context.traits.email` or `properties.email`) as a
17180-
column in Responsys. Highly **recommended** if you are calling
17181-
`.identify()` with an `email` trait for anonymous users without
17182-
`userId`s.
17183-
settings: []
17184-
- name: mapUserId
17185-
display_name: Map Segment UserId
17186-
type: BOOLEAN
17187-
deprecated: false
17188-
required: false
17189-
description: >-
17190-
Check this box if you want to automatically create and or map Segment's
17191-
`userId` field as a column in Responsys. Highly **recommended** if you
17192-
want to connect records in your Profile Lists/Extension Tables with
17193-
records in this Supplemental Table.
17194-
settings: []
17195-
- name: folderName
17196-
display_name: Responsys Folder Name
17197-
type: STRING
17198-
deprecated: false
17199-
required: true
17200-
string_validators:
17201-
regexp: ''
17202-
description: >-
17203-
Optional. Enter a Responsys Folder Name where this Supplemental exists
17204-
or where you'd like one to be created. If this input is left blank, we
17205-
will fallback on the default Folder Name you've provided at the top
17206-
level settings.
17207-
settings: []
17208-
- name: suppName
17209-
display_name: Responsys Supplemental Table Name
17210-
type: STRING
17211-
deprecated: false
17212-
required: true
17213-
string_validators:
17214-
regexp: ''
17215-
description: Enter a Responsys Supplemental Table Name.
17216-
settings: []
17217-
- name: event
17218-
display_name: Segment Event Name
17219-
type: STRING
17220-
deprecated: false
17221-
required: true
17222-
string_validators:
17223-
regexp: ''
17224-
description: Enter the Segment Event Name.
17225-
settings: []
17226-
- name: useSegmentMsgId
17227-
display_name: Use Segment Message ID
17228-
type: BOOLEAN
17229-
deprecated: false
17230-
required: false
17231-
description: >-
17232-
Use Segment's `messageId` as one of the four Primary Keys to easily
17233-
ensure that you do not overwrite historical records in your Supplemental
17234-
Tables.
17235-
settings: []
17236-
>>>>>>> master
17105+
required: false
1723717106
- name: folderName
1723817107
type: string
1723917108
defaultValue: ''

0 commit comments

Comments
 (0)