UNPKG

shopee-client

Version:
50 lines (48 loc) 1.99 kB
import BaseModule from "../BaseModule"; import PaginationRequest from "./request/PaginationRequest"; import GetCategoryReponse, { Category } from "./response/getCategoryResponse"; import AddCategoryRequest from "./request/AddCategoryRequest"; import AddCategoryResponse from "./response/AddCategoryResponse"; import DeleteCategoryRequest from "./request/DeleteCategoryRequest"; import DeleteCategoryResponse from "./response/DeleteCategoryResponse"; import AddItemResponse from "./response/AddItemResponse"; import GetItemsRequest from "./request/GetItemsRequest"; import GetItemsResponse from "./response/GetItemsResponse"; import DeleteItemRequest from "./request/DeleteItemRequest"; import DeleteItemResponse from "./response/DeleteItemResponse"; import AddItemRequest from "./request/AddItemRequest"; export default class CategoryModule extends BaseModule { /** * Use this call to get list of in-shop categories. */ getCategory(request: PaginationRequest): Promise<GetCategoryReponse>; /** * Use this call to add a new collecion */ addCategory(request: AddCategoryRequest): Promise<AddCategoryResponse>; /** * Use this call to delete a existing collecion * @param request */ deleteCategory(request: DeleteCategoryRequest): Promise<DeleteCategoryResponse>; /** * Use this call to update a existing collecion * @param request */ updateCategory(request: Category): Promise<DeleteCategoryResponse>; /** * Use this call to add items list to certain shop_category * @param request */ addItems(request: AddItemRequest): Promise<AddItemResponse>; /** * Use this call to get items list of certain shop_category * @param request */ getItems(request: GetItemsRequest): Promise<GetItemsResponse>; /** * Use this call to get items list of certain shop_category * @param request */ deleteItems(request: DeleteItemRequest): Promise<DeleteItemResponse>; }