UNPKG

pancake-client-sdk

Version:
18 lines 554 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BaseResource = void 0; class BaseResource { constructor(client) { this.client = client; this.shopId = client.shopId; } getShopPath(path, shopId) { const effectiveShopId = shopId || this.shopId; if (!effectiveShopId) { throw new Error('Shop ID is required but not provided'); } return `/shops/${effectiveShopId}${path}`; } } exports.BaseResource = BaseResource; //# sourceMappingURL=base.js.map