pancake-client-sdk
Version:
Official TypeScript SDK for Pancake POS API
27 lines (26 loc) • 706 B
TypeScript
import { Shop, ShopBasicInfo, UpdateShopRequest, ShopListResponse } from '../types/shop';
import { BaseResource } from './base';
export declare class ShopResource extends BaseResource {
/**
* Get list of shops
*/
list(): Promise<ShopListResponse>;
/**
* Get shop by ID
*/
getById(shopId: string): Promise<Shop>;
/**
* Get basic shop information
*/
getBasicInfo(shopId: string): Promise<ShopBasicInfo>;
/**
* Update shop information
*/
update(shopId: string, data: UpdateShopRequest): Promise<Shop>;
/**
* Get shop pages (Facebook, etc.)
*/
getPages(shopId: string): Promise<{
pages: Shop['pages'];
}>;
}