@@ -95,7 +95,7 @@ const getConnectionModes = (destination) => {
95
95
connectionModes . cloud . web = true
96
96
}
97
97
break
98
-
98
+
99
99
}
100
100
} )
101
101
// summarize connection modes in plain english.
@@ -206,7 +206,7 @@ const getConnectionModes = (destination) => {
206
206
if ( item . status === 'PUBLIC_BETA' ) {
207
207
betaFlag = 'beta: true\n'
208
208
}
209
- content = `---\ntitle: '${ item . display_name } Destination'\nhidden: true\n${ betaFlag } --- %} `
209
+ content = `---\ntitle: '${ item . display_name } Destination'\nhidden: true\n${ betaFlag } ---\n `
210
210
}
211
211
fs . mkdirSync ( docsPath )
212
212
fs . writeFileSync ( `${ docsPath } /index.md` , content )
@@ -272,8 +272,8 @@ const updateSources = async () => {
272
272
url = `connections/sources/catalog/libraries/${ mainCategory } /${ slug } `
273
273
} else {
274
274
url = `connections/sources/catalog/cloud-apps/${ slug } `
275
- }
276
-
275
+ }
276
+
277
277
// sort the sources alphabetically
278
278
settings . sort ( ( a , b ) => {
279
279
if ( a . name < b . name ) { return - 1 ; }
@@ -285,7 +285,7 @@ const updateSources = async () => {
285
285
if ( hiddenSources . includes ( slug ) ) {
286
286
hidden = true
287
287
}
288
-
288
+
289
289
// create the catalog metadata
290
290
let updatedSource = {
291
291
display_name : source . name ,
@@ -316,21 +316,21 @@ const updateSources = async () => {
316
316
} )
317
317
} )
318
318
319
-
319
+
320
320
// Create source catalog yaml file
321
321
const options = { noArrayIndent : false } ;
322
322
var todayDate = new Date ( ) . toISOString ( ) . slice ( 0 , 10 ) ;
323
323
output = "# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT\n"
324
324
output += "# sources last updated " + todayDate + " \n" ;
325
325
output += yaml . safeDump ( { items : sourcesUpdated } , options ) ;
326
- fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/sources .yml` ) , output ) ;
326
+ fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/sources_papi .yml` ) , output ) ;
327
327
328
328
// Create source-category mapping yaml file
329
329
var todayDate = new Date ( ) . toISOString ( ) . slice ( 0 , 10 ) ;
330
330
output = "# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT\n"
331
331
output += "# source cateogries last updated " + todayDate + " \n" ;
332
332
output += yaml . safeDump ( { items : sourceCategories } , options ) ;
333
- fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/source_categories .yml` ) , output ) ;
333
+ fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/source_categories_papi .yml` ) , output ) ;
334
334
335
335
336
336
@@ -359,7 +359,7 @@ const updateDestinations = async () => {
359
359
destinations . forEach ( destination => {
360
360
let slug = slugify ( destination . name )
361
361
let url = `connections/destinations/catalog/${ slug } `
362
-
362
+
363
363
let tempCategories = [ destination . categories ]
364
364
tempCategories = tempCategories . filter ( category => category != '' )
365
365
tempCategories = tempCategories . flat ( )
@@ -371,7 +371,7 @@ const updateDestinations = async () => {
371
371
browserUnbundlingPublic : destination . supportedFeatures . browserUnbundlingPublic ,
372
372
methods : destination . supportedMethods
373
373
} )
374
-
374
+
375
375
let settings = destination . options
376
376
settings . sort ( ( a , b ) => {
377
377
if ( a . name < b . name ) { return - 1 ; }
@@ -409,7 +409,7 @@ const updateDestinations = async () => {
409
409
410
410
tempCategories . reduce ( ( s , e ) => s . add ( e ) , categories )
411
411
} )
412
-
412
+
413
413
414
414
415
415
const destinationArray = Array . from ( categories )
@@ -428,14 +428,14 @@ const updateDestinations = async () => {
428
428
var todayDate = new Date ( ) . toISOString ( ) . slice ( 0 , 10 ) ;
429
429
output += "# destination data last updated " + todayDate + " \n" ;
430
430
output += yaml . safeDump ( { items : destinationsUpdated } , options ) ;
431
- fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/destinations .yml` ) , output ) ;
431
+ fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/destinations_papi .yml` ) , output ) ;
432
432
433
433
// Create destination-category mapping yaml file
434
434
output = "# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT\n"
435
435
var todayDate = new Date ( ) . toISOString ( ) . slice ( 0 , 10 ) ;
436
436
output += "# destination categories last updated " + todayDate + " \n" ;
437
437
output += yaml . safeDump ( { items : destinationCategories } , options ) ;
438
- fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/destination_categories .yml` ) , output ) ;
438
+ fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/destination_categories_papi .yml` ) , output ) ;
439
439
}
440
440
441
441
const updateWarehouses = async ( ) => {
@@ -492,6 +492,6 @@ const updateWarehouses = async () => {
492
492
493
493
}
494
494
495
- // updateDestinations()
495
+ updateDestinations ( )
496
496
updateSources ( )
497
- // updateWarehouses()
497
+ updateWarehouses ( )
0 commit comments