@@ -29,7 +29,7 @@ const slugify = (displayName) => {
29
29
let override = slugOverrides [ key ] . override
30
30
31
31
if ( slug == original ) {
32
- console . log ( original + " -> " + override )
32
+ console . log ( original + " -> " + override )
33
33
slug = override
34
34
}
35
35
}
@@ -308,7 +308,7 @@ const updateSources = async () => {
308
308
} , options ) ;
309
309
fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/source_categories.yml` ) , output ) ;
310
310
311
-
311
+
312
312
// output = "# AUTOGENERATED LIST OF CONNECTIONS THAT SUPPORT REGIONAL\n"
313
313
// output += "# Last updated " + todayDate + " \n";
314
314
output = yaml . dump ( {
@@ -342,8 +342,8 @@ const updateDestinations = async () => {
342
342
return 0 ;
343
343
} )
344
344
345
- const regionalDestinationEndpoints = regionalSupport . destinations . endpoint
346
- const regionalDestinationRegions = regionalSupport . destinations . region
345
+ const regionalDestinationEndpoints = regionalSupport . destinations . endpoint
346
+ const regionalDestinationRegions = regionalSupport . destinations . region
347
347
348
348
349
349
destinations . forEach ( destination => {
@@ -359,7 +359,7 @@ const updateDestinations = async () => {
359
359
if ( regionalDestinationRegions . includes ( slug ) ) {
360
360
regions . push ( 'eu' )
361
361
}
362
-
362
+
363
363
364
364
let url = `connections/destinations/catalog/${ slug } `
365
365
@@ -405,6 +405,13 @@ const updateDestinations = async () => {
405
405
return clonedObj ;
406
406
} ;
407
407
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
+ }
408
415
destination . supportedMethods = renameKey ( destination . supportedMethods , 'pageview' , 'page' )
409
416
410
417
let updatedDestination = {
@@ -498,7 +505,7 @@ const updateDestinations = async () => {
498
505
} , {
499
506
noArrayIndent : false
500
507
} )
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 ) ;
502
509
console . log ( "destinations done" )
503
510
}
504
511
@@ -585,10 +592,9 @@ const updateWarehouses = async () => {
585
592
} , {
586
593
noArrayIndent : false
587
594
} )
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 ) ;
589
596
console . log ( "warehouses done" )
590
597
}
591
598
updateWarehouses ( )
592
599
updateSources ( )
593
600
updateDestinations ( )
594
-
0 commit comments