initCatalogOnEntityCreate
Initializes an returns a catalog to persist on Hub item entity upon creation based on user-configured options.
Initializes an returns a catalog to persist on Hub item entity upon creation based on user-configured options.
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
entity Required | IHubItemEntity |
Hub item entity |
|
catalogSetup Required | ICatalogSetup |
options for initializing the catalog |
|
context Required | IArcGISContext |
contextual portal & auth information |
Returns
Property | Type | Notes |
---|---|---|
number |
Schema Version |
|
Optional | IHubCollection[] |
Collections within the Catalog |
Optional | ICatalogDisplayConfig |
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/initCatalogOnEntityCreate.ts:16