Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CategoryClient

Index

Constructors

Properties

client: HttpClient

Methods

  • Creates a category.

    Parameters

    Returns Promise<Response<Category>>

    A response of created category.

  • delete(categoryId: number): Promise<void>
  • Deletes a category by id.

    Parameters

    • categoryId: number

      category id

    Returns Promise<void>

  • Gets category detail by id.

    Parameters

    • categoryId: number

      category id

    Returns Promise<Response<Category>>

    A response of category detail.

  • list(params: { more?: boolean; sort?: string[] }): Promise<Response<Category[]>>
  • Lists all categories.

    Parameters

    • params: { more?: boolean; sort?: string[] }

      parameter for queries

      • Optional more?: boolean
      • Optional sort?: string[]

    Returns Promise<Response<Category[]>>

    A response of all categories.

  • List all categories as tree.

    Parameters

    • sort: string[]

      sort option for queries, value is category field

    Returns Promise<Response<CategoryTree[]>>

    A response of all categories.

  • Updates category by id

    Parameters

    • categoryId: number

      category id

    • params: CategoryParam

      category update parameter

    Returns Promise<Response<Category>>

    A response of updated category.

  • Updates category in batch

    Parameters

    Returns Promise<Response<Category[]>>

Generated using TypeDoc