UNPKG

pancake-client-sdk

Version:
38 lines 938 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ShopResource = void 0; const base_1 = require("./base"); class ShopResource extends base_1.BaseResource { /** * Get list of shops */ async list() { return this.client.get('/shops'); } /** * Get shop by ID */ async getById(shopId) { return this.client.get(`/shops/${shopId}`); } /** * Get basic shop information */ async getBasicInfo(shopId) { return this.client.get(`/shops/${shopId}/basic-info`); } /** * Update shop information */ async update(shopId, data) { return this.client.put(`/shops/${shopId}`, data); } /** * Get shop pages (Facebook, etc.) */ async getPages(shopId) { return this.client.get(`/shops/${shopId}/pages`); } } exports.ShopResource = ShopResource; //# sourceMappingURL=shop.js.map