fetchCategoryItems

Function

Fetch the categorySchema for all the categories, including the ones with 0 count, then recursively collet all the child categories on the deepest level.

  • fetchCategoryItems(orgId: string, hubRequestOptions: IHubRequestOptions) : Promise<IUiSchemaComboboxItem[]>

Parameters

Parameter Type Default Notes
orgId Required string

The organization id

hubRequestOptions Required IHubRequestOptions

The hub request options

Returns

a nested structure of categories

Promise<IUiSchemaComboboxItem[]>

Function defined in common/src/core/schemas/internal/fetchCategoryItems.ts:14