@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.
- package/assets/js/api/admin.js +12 -0
- package/package.json +1 -1
package/assets/js/api/admin.js
CHANGED
|
@@ -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
|
},
|