Interface ICategoryService

Represents a service for managing categories. Extends the IAppRemoteService interface with the ICategory type.

Hierarchy

Properties

db: Dexie
moduleName: string

Methods

  • Retrieves multiple entities with optional pagination and filtering.

    Parameters

    • params: any

      [UNUSED PARAMETER, KEPT FOR POSSIBLE FUTURE USE] Filtering parameters.

    • options: {
          page?: number;
          pageSize?: number;
      }

      Query options including pagination.

      • Optional page?: number
      • Optional pageSize?: number

    Returns Promise<{
        count: number;
        list: ICategory[];
        page: number;
        pageSize: number;
    }>

    An object containing the retrieved entities and total count.

  • Removes a subcategory from a category.

    Parameters

    • category: ICategory

      The category to remove the subcategory from.

    • subcategoryUid: string

      The unique identifier of the subcategory to remove.

    Returns Promise<ICategory>

    A promise that resolves to the updated category.

Generated using TypeDoc