@lambdacurry/medusa-plugins-sdk
Version:
32 lines • 905 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.StoreProductReviewsResource = void 0;
class StoreProductReviewsResource {
client;
constructor(client) {
this.client = client;
}
async upsert(data, headers) {
return this.client.fetch(`/store/product-reviews`, {
method: 'POST',
body: data,
headers,
});
}
async list(query, headers) {
return this.client.fetch(`/store/product-reviews`, {
method: 'GET',
query,
headers,
});
}
async listStats(query, headers) {
return this.client.fetch(`/store/product-review-stats`, {
method: 'GET',
query,
headers,
});
}
}
exports.StoreProductReviewsResource = StoreProductReviewsResource;
//# sourceMappingURL=store-product-reviews.js.map