fetchOrgCategories
Fetch the categorySchema for all the categories in an org, including the ones with 0 count, then recursively construct an array of fully qualified category paths.
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
orgId Required | string |
The organization id |
|
hubRequestOptions Required | IHubRequestOptions |
The hub request options |
Returns
a flat array of category paths (e.g. ["/Categories/Category1", "/Categories/Category1/Subcategory1", ...])
Promise<string[]>
Function defined in common/src/core/schemas/internal/categories/fetchOrgCategories.ts:13