@lancom/shared 0.0.441 → 0.0.442
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 +6 -0
- package/package.json +1 -1
package/assets/js/api/admin.js
CHANGED
|
@@ -323,6 +323,12 @@ export default {
|
|
|
323
323
|
removeProduct(id) {
|
|
324
324
|
return _delete(`admin/products/${id}`);
|
|
325
325
|
},
|
|
326
|
+
importProductJson(productData) {
|
|
327
|
+
return _post('admin/products/import-json', productData);
|
|
328
|
+
},
|
|
329
|
+
importProductImagesJson(productId, images) {
|
|
330
|
+
return _post(`admin/products/${productId}/import-images-json`, { images });
|
|
331
|
+
},
|
|
326
332
|
fetchProductsKits(params) {
|
|
327
333
|
return _get('admin/products-kit', params);
|
|
328
334
|
},
|