getCategoryItems

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.

  • getCategoryItems(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/getCategoryItems.ts:14