buildCatalog
Build an IHubCatalog definition JSON object based on a well-known catalog name, scope filters, and collections
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
i18nScope Required | string |
i18n scope for the catalog title |
|
catalogName Required | string |
well known catalog name |
|
filters Required | IFilter[] |
filters to build the catalog scope |
|
collections Required | IHubCollection[] |
collections to include in the catalog |
|
targetEntity Required | EntityType |
target entity type for the catalog |
|
title Optional | string |
optional title override for the catalog |
Returns
Property | Type | Notes |
---|---|---|
number |
Schema Version |
|
Optional | IHubCollection[] |
Collections within the Catalog |
Optional | IGalleryDisplayConfig |
Optional display configuration to control a catalog's appearance in the UI |
Optional | string |
Optional Emoji to show in the UI |
Optional |
{
|
Hashes to verify the integrity of the catalog Only verified when the catalog is loaded into the editor If the hashes do not match, the catalog will not be loaded and the user will simply have the option to reset the catalog |
Optional | ICatalogScope |
Filter defines the "scopes" of the Catalog, on a per entity type basis |
Optional | string |
Title for the Gallery |
Optional | CatalogType |
Function defined in common/src/search/_internal/buildCatalog.ts:15