@snabcentr/common-lib 4.0.1 → 4.0.2
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/dist/manifest.json +1 -1
- package/dist/sc-common-lib.js +7 -0
- package/dist/sc-common-lib.js.map +1 -1
- package/dist/sc-common-lib.umd.cjs +1 -1
- package/dist/sc-common-lib.umd.cjs.map +1 -1
- package/dist/src/offers/providers/offers-data-provider.d.ts +9 -0
- package/dist/src/offers/providers/offers-data-provider.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/manifest.json
CHANGED
package/dist/sc-common-lib.js
CHANGED
|
@@ -2640,6 +2640,13 @@ var Gn = class e {
|
|
|
2640
2640
|
deleteOfferProduct(e, t) {
|
|
2641
2641
|
return this.delete(`/internal/orders/offers/${e}/products/${t}`, (e) => new Q(e.data));
|
|
2642
2642
|
}
|
|
2643
|
+
deleteOfferProducts(e, t) {
|
|
2644
|
+
return this.request({
|
|
2645
|
+
method: "DELETE",
|
|
2646
|
+
url: `/internal/orders/offers/${e}/products`,
|
|
2647
|
+
data: { items: t }
|
|
2648
|
+
}, (e) => new Q(e.data));
|
|
2649
|
+
}
|
|
2643
2650
|
getOfferHtml(e, t) {
|
|
2644
2651
|
return this.get(`/internal/orders/offers/${e}/view`, t ? { recipientText: t } : {}, (e) => new Blob([e.data], { type: "text/html" }));
|
|
2645
2652
|
}
|