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.

29 lines (24 loc) 769 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var restClient = require('./restClient.js'); class ProductCollectionClient { restClient; constructor(config) { this.restClient = new restClient.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, }); } } exports.ProductCollectionClient = ProductCollectionClient; exports.default = ProductCollectionClient; //# sourceMappingURL=productCollectionClient.js.map