@snabcentr/common-lib 4.0.1 → 4.0.3
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 +12 -1
- 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/dist/src/orders/classes/orders-list-filters.d.ts +5 -1
- package/dist/src/orders/classes/orders-list-filters.d.ts.map +1 -1
- package/dist/src/orders/interfaces/i-orders-list-filters.d.ts +5 -1
- package/dist/src/orders/interfaces/i-orders-list-filters.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
|
}
|
|
@@ -2699,9 +2706,10 @@ var Gn = class e {
|
|
|
2699
2706
|
warehouses;
|
|
2700
2707
|
isLargeOrder;
|
|
2701
2708
|
isToProcess;
|
|
2709
|
+
userRegions;
|
|
2702
2710
|
onlyMyRegions;
|
|
2703
2711
|
constructor(e) {
|
|
2704
|
-
super(), this.attachedUsers = e?.attachedUsers?.map((e) => "isActive" in e ? new te(e) : new re(e)), this.clientSearchTerm = e?.clientSearchTerm, this.client = e?.client ? new W(e.client) : void 0, this.contragent = e?.contragent, this.createdAt = new P(e?.createdAt), this.creator = e?.creator ? new I(e.creator) : void 0, this.deliveryDate = new P(e?.deliveryDate), this.deliveryAddressSearch = e?.deliveryAddressSearch, this.clientCities = e?.clientCities?.map((e) => new t(e)), this.id = e?.id, this.isApproved = e?.isApproved, this.isNotInStock = e?.isNotInStock, this.isOnOrder = e?.isOnOrder, this.isLargeOrder = e?.isLargeOrder, this.attachedAt = new P(e?.attachedAt), this.salesDirections = e?.salesDirections?.map((e) => new m(e)), this.status = e?.status, this.statusDetail = e?.statusDetail, this.deliveryType = e?.deliveryType ? new s(e.deliveryType) : void 0, this.paymentType = e?.paymentType ? new oe(e.paymentType) : void 0, this.warehouses = e?.warehouses?.map((e) => new ge(e)), this.isToProcess = e?.isToProcess;
|
|
2712
|
+
super(), this.attachedUsers = e?.attachedUsers?.map((e) => "isActive" in e ? new te(e) : new re(e)), this.clientSearchTerm = e?.clientSearchTerm, this.client = e?.client ? new W(e.client) : void 0, this.contragent = e?.contragent, this.createdAt = new P(e?.createdAt), this.creator = e?.creator ? new I(e.creator) : void 0, this.deliveryDate = new P(e?.deliveryDate), this.deliveryAddressSearch = e?.deliveryAddressSearch, this.clientCities = e?.clientCities?.map((e) => new t(e)), this.id = e?.id, this.isApproved = e?.isApproved, this.isNotInStock = e?.isNotInStock, this.isOnOrder = e?.isOnOrder, this.isLargeOrder = e?.isLargeOrder, this.attachedAt = new P(e?.attachedAt), this.salesDirections = e?.salesDirections?.map((e) => new m(e)), this.status = e?.status, this.statusDetail = e?.statusDetail, this.deliveryType = e?.deliveryType ? new s(e.deliveryType) : void 0, this.paymentType = e?.paymentType ? new oe(e.paymentType) : void 0, this.warehouses = e?.warehouses?.map((e) => new ge(e)), this.isToProcess = e?.isToProcess, this.userRegions = e?.userRegions?.map((e) => new he(e));
|
|
2705
2713
|
}
|
|
2706
2714
|
resetFilterValue(e) {
|
|
2707
2715
|
switch (e) {
|
|
@@ -2734,6 +2742,9 @@ var Gn = class e {
|
|
|
2734
2742
|
case "warehouses":
|
|
2735
2743
|
this.warehouses = [];
|
|
2736
2744
|
break;
|
|
2745
|
+
case "userRegions":
|
|
2746
|
+
this.userRegions = [];
|
|
2747
|
+
break;
|
|
2737
2748
|
default: this[e] = void 0;
|
|
2738
2749
|
}
|
|
2739
2750
|
return this;
|