@@ -272,6 +272,7 @@ 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
+ mainCategory = 'cloud-app'
275
276
}
276
277
277
278
// sort the sources alphabetically
@@ -292,6 +293,7 @@ const updateSources = async () => {
292
293
slug,
293
294
url,
294
295
hidden,
296
+ source_type : mainCategory ,
295
297
description : source . description ,
296
298
logo : {
297
299
url : source . logos . default
@@ -320,14 +322,14 @@ const updateSources = async () => {
320
322
// Create source catalog yaml file
321
323
const options = { noArrayIndent : false } ;
322
324
var todayDate = new Date ( ) . toISOString ( ) . slice ( 0 , 10 ) ;
323
- output = "# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT\n"
325
+ output = "# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT\n"
324
326
output += "# sources last updated " + todayDate + " \n" ;
325
327
output += yaml . safeDump ( { items : sourcesUpdated } , options ) ;
326
328
fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/sources_papi.yml` ) , output ) ;
327
329
328
330
// Create source-category mapping yaml file
329
331
var todayDate = new Date ( ) . toISOString ( ) . slice ( 0 , 10 ) ;
330
- output = "# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT\n"
332
+ output = "# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT\n"
331
333
output += "# source cateogries last updated " + todayDate + " \n" ;
332
334
output += yaml . safeDump ( { items : sourceCategories } , options ) ;
333
335
fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/source_categories_papi.yml` ) , output ) ;
@@ -396,13 +398,13 @@ const updateDestinations = async () => {
396
398
url : destination . logos . mark
397
399
} ,
398
400
methods : destination . supportedMethods ,
399
- components : destination . components ,
400
401
platforms : destination . supportedPlatforms ,
402
+ components : destination . components ,
401
403
browserUnbundlingSupported : destination . supportedFeatures . browserUnbundling ,
402
404
browserUnbundlingPublic : destination . supportedFeatures . browserUnbundlingPublic ,
403
405
replay : destination . supportedFeatures . replay ,
404
- settings ,
405
- connection_modes
406
+ connection_modes ,
407
+ settings
406
408
}
407
409
destinationsUpdated . push ( updatedDestination )
408
410
doesCatalogItemExist ( updatedDestination )
0 commit comments