Skip to content

Commit 6cdb910

Browse files
authored
Merge branch 'master' into subscription-SQL
2 parents fb1bc7c + 6fb4396 commit 6cdb910

File tree

42 files changed

+2604
-913
lines changed

Some content is hidden

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

42 files changed

+2604
-913
lines changed

scripts/catalog_papi.js

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const slugify = (displayName) => {
2929
let override = slugOverrides[key].override
3030

3131
if (slug == original) {
32-
console.log(original+" -> "+override)
32+
console.log(original + " -> " + override)
3333
slug = override
3434
}
3535
}
@@ -308,7 +308,7 @@ const updateSources = async () => {
308308
}, options);
309309
fs.writeFileSync(path.resolve(__dirname, `../src/_data/catalog/source_categories.yml`), output);
310310

311-
311+
312312
// output = "# AUTOGENERATED LIST OF CONNECTIONS THAT SUPPORT REGIONAL\n"
313313
// output += "# Last updated " + todayDate + " \n";
314314
output = yaml.dump({
@@ -342,8 +342,8 @@ const updateDestinations = async () => {
342342
return 0;
343343
})
344344

345-
const regionalDestinationEndpoints= regionalSupport.destinations.endpoint
346-
const regionalDestinationRegions= regionalSupport.destinations.region
345+
const regionalDestinationEndpoints = regionalSupport.destinations.endpoint
346+
const regionalDestinationRegions = regionalSupport.destinations.region
347347

348348

349349
destinations.forEach(destination => {
@@ -359,7 +359,7 @@ const updateDestinations = async () => {
359359
if (regionalDestinationRegions.includes(slug)) {
360360
regions.push('eu')
361361
}
362-
362+
363363

364364
let url = `connections/destinations/catalog/${slug}`
365365

@@ -405,6 +405,13 @@ const updateDestinations = async () => {
405405
return clonedObj;
406406
};
407407

408+
409+
// Force screen method into supportedMethods object
410+
destination.supportedMethods.screen = false
411+
// Set it true for LiveLike, per request
412+
if (destination.id == '63e42b47479274407b671071') {
413+
destination.supportedMethods.screen = true
414+
}
408415
destination.supportedMethods = renameKey(destination.supportedMethods, 'pageview', 'page')
409416

410417
let updatedDestination = {
@@ -498,7 +505,7 @@ const updateDestinations = async () => {
498505
}, {
499506
noArrayIndent: false
500507
})
501-
fs.appendFileSync(path.resolve(__dirname,`../src/_data/catalog/regional-supported.yml`),output);
508+
fs.appendFileSync(path.resolve(__dirname, `../src/_data/catalog/regional-supported.yml`), output);
502509
console.log("destinations done")
503510
}
504511

@@ -585,10 +592,9 @@ const updateWarehouses = async () => {
585592
}, {
586593
noArrayIndent: false
587594
})
588-
fs.writeFileSync(path.resolve(__dirname,`../src/_data/catalog/regional-supported.yml`),output);
595+
fs.writeFileSync(path.resolve(__dirname, `../src/_data/catalog/regional-supported.yml`), output);
589596
console.log("warehouses done")
590597
}
591598
updateWarehouses()
592599
updateSources()
593600
updateDestinations()
594-

scripts/private-destination.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ const getDestinationData = async (id) => {
7070
let actions = destination.actions
7171
let presets = destination.presets
7272

73-
73+
// Force screen method into supportedMethods object
74+
destination.supportedMethods.screen = false
75+
// Set it true for LiveLike, per request
76+
if (destination.id == '63e42b47479274407b671071'){
77+
destination.supportedMethods.screen = true
78+
}
7479

7580
let updatePrivateDest = {
7681
id: destination.id,

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

0 commit comments

Comments
 (0)