UNPKG

@ministryofjustice/hmpps-digital-prison-reporting-frontend

Version:

The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.

24 lines (21 loc) 650 B
import { RestClient } from './restClient.js'; class ProductCollectionClient { restClient; constructor(config) { this.restClient = new RestClient('ProductCollection API', config); } async getProductCollections(token) { return this.restClient.get({ path: `/productCollections`, token, }); } async getProductCollection(token, id) { return this.restClient.get({ path: `/productCollections/${id}`, token, }); } } export { ProductCollectionClient, ProductCollectionClient as default }; //# sourceMappingURL=productCollectionClient.js.map