@lancom/shared 0.0.200 → 0.0.202
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 +1 -1
- package/assets/js/api/index.js +3 -0
- package/package.json +1 -1
package/assets/js/api/admin.js
CHANGED
|
@@ -321,7 +321,7 @@ export default {
|
|
|
321
321
|
return _delete(`admin/quotes/${id}`);
|
|
322
322
|
},
|
|
323
323
|
generateDuplicateQuoteCode(quote) {
|
|
324
|
-
return _get(`admin/
|
|
324
|
+
return _get(`admin/quotes/${quote}/duplicate-code`);
|
|
325
325
|
},
|
|
326
326
|
async fetchProductBrands() {
|
|
327
327
|
return sortByName(await _get('admin/brands'));
|
package/assets/js/api/index.js
CHANGED
|
@@ -124,6 +124,9 @@ const api = {
|
|
|
124
124
|
saveQuoteRequest(quote, shop) {
|
|
125
125
|
return quote._id ? _put(`shop/${shop}/quotes/${quote._id}`, quote) : _post(`shop/${shop}/quotes`, quote);
|
|
126
126
|
},
|
|
127
|
+
generateQuotePDF(id, option) {
|
|
128
|
+
return _get(`quotes/${id}/option/${option}/pdf`);
|
|
129
|
+
},
|
|
127
130
|
addQuoteQuestion(quote, shop, data) {
|
|
128
131
|
return _post(`shop/${shop}/quotes/${quote._id}/questions`, data);
|
|
129
132
|
},
|