@lancom/shared 0.0.126 → 0.0.127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -278,6 +278,18 @@ export default {
278
278
  removeSupplier(id) {
279
279
  return _delete(`admin/suppliers/${id}`);
280
280
  },
281
+ async fetchDecorators(params) {
282
+ return sortByName(await _get('admin/decorators', params));
283
+ },
284
+ fetchDecoratorById(id) {
285
+ return _get(`admin/decorators/${id}`);
286
+ },
287
+ saveDecorator(decorator) {
288
+ return decorator._id ? _put(`admin/decorators/${decorator._id}`, decorator) : _post('admin/decorators', decorator);
289
+ },
290
+ removeDecorator(id) {
291
+ return _delete(`admin/decorators/${id}`);
292
+ },
281
293
  async fetchWarehouses(params) {
282
294
  return sortByName(await _get('admin/warehouse', params));
283
295
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.126",
3
+ "version": "0.0.127",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {