Skip to content

Commit 6ead3ab

Browse files
committed
Merge branch 'charity-docs' of https://github.com/segmentio/segment-docs into charity-docs
2 parents 032df93 + b012080 commit 6ead3ab

File tree

151 files changed

+3930
-5601
lines changed

Some content is hidden

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

151 files changed

+3930
-5601
lines changed

.github/styles/Vocab/Docs/accept.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ https
7474
HTTPS
7575
Hubspot
7676
incrementality
77+
Innovid
7778
ios
7879
iOS
7980
Iterable
@@ -112,6 +113,7 @@ Okta
112113
Omnichannel
113114
onboarding
114115
Optimizely
116+
Outfunnel
115117
param(:?s)
116118
Pardot
117119
Passcode

scripts/catalog_papi.js

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ const updateSources = async () => {
336336
const updateDestinations = async () => {
337337
let destinations = []
338338
let destinationsUpdated = []
339-
let regionalDestinationsUpdated = []
340339
let destinationCategories = []
341340
let categories = new Set()
342341
let nextPageToken = "MA=="
@@ -357,25 +356,23 @@ const updateDestinations = async () => {
357356
return 0;
358357
})
359358

360-
const regionalDestinationEndpoints = regionalSupport.destinations.endpoint
361-
const regionalDestinationRegions = regionalSupport.destinations.region
362-
363359

364360
destinations.forEach(destination => {
365-
let endpoints = ['us']
366-
let regions = ['us']
361+
let endpoints = []
362+
let regions = []
367363

368364
let slug = slugify(destination.name)
369-
370-
if (regionalDestinationEndpoints.includes(slug)) {
371-
endpoints.push('eu')
365+
366+
if (typeof destination.supportedRegions != "undefined") {
367+
regions = destination.supportedRegions
368+
} else {
369+
regions.push('us-west-2','eu-west-1')
372370
}
373-
374-
if (regionalDestinationRegions.includes(slug)) {
375-
regions.push('eu')
371+
if (typeof destination.regionEndpoints != "undefined"){
372+
endpoints = destination.regionEndpoints
373+
} else {
374+
endpoints.push('US')
376375
}
377-
378-
379376
let url = `connections/destinations/catalog/${slug}`
380377

381378
let tempCategories = [destination.categories]
@@ -463,16 +460,6 @@ const updateDestinations = async () => {
463460
doesCatalogItemExist(updatedDestination)
464461
tempCategories.reduce((s, e) => s.add(e), categories)
465462

466-
let updatedRegionalDestination = {
467-
id: destination.id,
468-
display_name: destination.name,
469-
slug,
470-
url,
471-
regions,
472-
endpoints
473-
}
474-
475-
regionalDestinationsUpdated.push(updatedRegionalDestination)
476463
})
477464

478465

@@ -514,13 +501,6 @@ const updateDestinations = async () => {
514501
}, options);
515502
fs.writeFileSync(path.resolve(__dirname, `../src/_data/catalog/destination_categories.yml`), output);
516503

517-
// Append regional destinations to regional file
518-
output = yaml.dump({
519-
destinations: regionalDestinationsUpdated
520-
}, {
521-
noArrayIndent: false
522-
})
523-
fs.appendFileSync(path.resolve(__dirname, `../src/_data/catalog/regional-supported.yml`), output);
524504
console.log("destinations done")
525505
}
526506

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 2023-03-14
2+
# destination categories last updated 2023-03-28
33
items:
44
- display_name: A/B Testing
55
slug: a-b-testing

0 commit comments

Comments
 (0)