pancake-client-sdk
Version:
Official TypeScript SDK for Pancake POS API
38 lines • 938 B
JavaScript
;
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