@snabcentr/common-lib 1.90.1 → 1.90.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/release_notes.tmp +2 -2
- package/dist/sc-common-lib.js +46 -42
- 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/clients/classes/clients-list-filters.d.ts +4 -0
- package/dist/src/clients/classes/clients-list-filters.d.ts.map +1 -1
- package/dist/src/clients/interfaces/i-clients-list-filters.d.ts +5 -0
- package/dist/src/clients/interfaces/i-clients-list-filters.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/manifest.json
CHANGED
package/dist/release_notes.tmp
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## 1.90.
|
|
1
|
+
## 1.90.2 (2026-06-09)
|
|
2
2
|
|
|
3
3
|
### added (1 change)
|
|
4
4
|
|
|
5
|
-
- [#
|
|
5
|
+
- [#13197: Добавлен признак учёта клиентов подчинённых менеджеров в фильтры списка клиентов](web_soft/libs/ts/snabcentr-common-lib@dfa6da05189d34968ba2dd029fac26aab44b6756) ([merge request](web_soft/libs/ts/snabcentr-common-lib!195))
|
|
6
6
|
|
package/dist/sc-common-lib.js
CHANGED
|
@@ -6,7 +6,7 @@ import { merge as ce, isNil as T, isEmpty as Y, noop as w, mapValues as nr, isAr
|
|
|
6
6
|
import { objectToCamel as He, objectToSnake as Je } from "ts-case-convert";
|
|
7
7
|
import { defineStore as z } from "pinia";
|
|
8
8
|
import { ref as y, markRaw as Hr, computed as A } from "vue";
|
|
9
|
-
import { isAfter as Ee, parseISO as C, startOfToday as Oe, format as U, addSeconds as Fr, addBusinessDays as
|
|
9
|
+
import { isAfter as Ee, parseISO as C, startOfToday as Oe, format as U, addSeconds as Fr, addBusinessDays as Mr, endOfTomorrow as jr, startOfTomorrow as Gr, endOfYesterday as Br, startOfYesterday as zr, endOfToday as Wr, endOfDay as Jr, startOfDay as Er } from "date-fns";
|
|
10
10
|
import Vr, { CanceledError as Kr } from "axios";
|
|
11
11
|
class F {
|
|
12
12
|
/**
|
|
@@ -111,7 +111,7 @@ class F {
|
|
|
111
111
|
return s.resourceAccess = e.resource_access, s;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class jt extends F {
|
|
115
115
|
/**
|
|
116
116
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
117
117
|
*
|
|
@@ -868,7 +868,7 @@ class Re extends R {
|
|
|
868
868
|
return { id: -2, slug: pr.Retail, name: "Розн. цена", guid: "", isNewRec: Or(!0) };
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
|
-
class
|
|
871
|
+
class Me {
|
|
872
872
|
/**
|
|
873
873
|
* Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
|
|
874
874
|
*
|
|
@@ -1101,7 +1101,7 @@ class I extends st {
|
|
|
1101
1101
|
t(this, "priceCoefficients");
|
|
1102
1102
|
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Ke(e.unit) : new Ke(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new x(e.currency) : new x(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = v(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((h) => new nt(h))) ?? [], this.type = "product";
|
|
1103
1103
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
|
|
1104
|
-
s && (this.category = new _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new _e(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new tt(h, L().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new
|
|
1104
|
+
s && (this.category = new _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new _e(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new tt(h, L().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new Me(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
1105
1105
|
}
|
|
1106
1106
|
/**
|
|
1107
1107
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -1122,8 +1122,8 @@ class I extends st {
|
|
|
1122
1122
|
return this.retailCostRub ?? this.costRub;
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
|
-
var
|
|
1126
|
-
class
|
|
1125
|
+
var je = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(je || {});
|
|
1126
|
+
class M extends I {
|
|
1127
1127
|
/**
|
|
1128
1128
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1129
1129
|
*
|
|
@@ -1159,7 +1159,7 @@ class j extends I {
|
|
|
1159
1159
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1160
1160
|
*/
|
|
1161
1161
|
t(this, "isFavorite");
|
|
1162
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ??
|
|
1162
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? je.Product, this.discount = e != null && e.discount ? new it(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new K(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
1165
|
class me extends _e {
|
|
@@ -1245,7 +1245,7 @@ class gr extends ee {
|
|
|
1245
1245
|
* @inheritDoc
|
|
1246
1246
|
*/
|
|
1247
1247
|
t(this, "creatorUser");
|
|
1248
|
-
this.product = new
|
|
1248
|
+
this.product = new M(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new me(), this.currency = e.currency ? new x(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && qr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creatorUser = e.creatorUser && new d(e.creatorUser);
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
1251
|
let ot = class extends gr {
|
|
@@ -1741,7 +1741,7 @@ class mr {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
class O extends R {
|
|
1743
1743
|
}
|
|
1744
|
-
class
|
|
1744
|
+
class Ge extends k {
|
|
1745
1745
|
/**
|
|
1746
1746
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1747
1747
|
*
|
|
@@ -1797,7 +1797,7 @@ class ut extends k {
|
|
|
1797
1797
|
this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
1800
|
-
class Pe extends
|
|
1800
|
+
class Pe extends Ge {
|
|
1801
1801
|
/**
|
|
1802
1802
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1803
1803
|
*
|
|
@@ -1885,7 +1885,7 @@ class we extends pt {
|
|
|
1885
1885
|
* Список продуктов категории.
|
|
1886
1886
|
*/
|
|
1887
1887
|
t(this, "products");
|
|
1888
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new we(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new
|
|
1888
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new we(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new M(o));
|
|
1889
1889
|
}
|
|
1890
1890
|
}
|
|
1891
1891
|
class fr {
|
|
@@ -2061,7 +2061,7 @@ class re extends yr {
|
|
|
2061
2061
|
* @inheritDoc
|
|
2062
2062
|
*/
|
|
2063
2063
|
t(this, "curators");
|
|
2064
|
-
this.salesDirection = new O(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new Ae(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new
|
|
2064
|
+
this.salesDirection = new O(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new Ae(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new Ge(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new ze(o))) ?? void 0;
|
|
2065
2065
|
}
|
|
2066
2066
|
}
|
|
2067
2067
|
class ie extends ee {
|
|
@@ -2444,7 +2444,7 @@ class Jt extends p {
|
|
|
2444
2444
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2445
2445
|
increase_percent: s.value
|
|
2446
2446
|
},
|
|
2447
|
-
(o) => new
|
|
2447
|
+
(o) => new M(o.data)
|
|
2448
2448
|
);
|
|
2449
2449
|
}
|
|
2450
2450
|
/**
|
|
@@ -2456,7 +2456,7 @@ class Jt extends p {
|
|
|
2456
2456
|
* @see /doc/api/internal#/operations/api_internal_client_price_products_remove
|
|
2457
2457
|
*/
|
|
2458
2458
|
removeProductPrice(r, e) {
|
|
2459
|
-
return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new
|
|
2459
|
+
return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new M(s.data));
|
|
2460
2460
|
}
|
|
2461
2461
|
/**
|
|
2462
2462
|
* Добавляет указанный продукт в список товаров для дополнительных продаж.
|
|
@@ -2684,7 +2684,7 @@ class Vt extends p {
|
|
|
2684
2684
|
getCategoryProductsCoefficients(r) {
|
|
2685
2685
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2686
2686
|
const { data: s } = e;
|
|
2687
|
-
return Ur(s, (i) => i.map((o) => new
|
|
2687
|
+
return Ur(s, (i) => i.map((o) => new Me(o))), s;
|
|
2688
2688
|
});
|
|
2689
2689
|
}
|
|
2690
2690
|
/**
|
|
@@ -2734,7 +2734,7 @@ class Kt extends p {
|
|
|
2734
2734
|
return this.get(
|
|
2735
2735
|
`/internal/catalog/products/${r}/coefficients`,
|
|
2736
2736
|
{},
|
|
2737
|
-
(e) => he(e.data, (s) => new
|
|
2737
|
+
(e) => he(e.data, (s) => new Me(s))
|
|
2738
2738
|
);
|
|
2739
2739
|
}
|
|
2740
2740
|
/**
|
|
@@ -2811,7 +2811,7 @@ class Qt extends p {
|
|
|
2811
2811
|
showHidden: i,
|
|
2812
2812
|
withPriceCoefficients: s
|
|
2813
2813
|
},
|
|
2814
|
-
(o) => he(o.data, (c) => new
|
|
2814
|
+
(o) => he(o.data, (c) => new M(c))
|
|
2815
2815
|
);
|
|
2816
2816
|
}
|
|
2817
2817
|
}
|
|
@@ -2832,7 +2832,7 @@ class Yt extends p {
|
|
|
2832
2832
|
clientId: e,
|
|
2833
2833
|
withPriceCoefficients: s
|
|
2834
2834
|
},
|
|
2835
|
-
(i) => new
|
|
2835
|
+
(i) => new M(i.data)
|
|
2836
2836
|
);
|
|
2837
2837
|
}
|
|
2838
2838
|
}
|
|
@@ -2871,7 +2871,7 @@ class Ye {
|
|
|
2871
2871
|
return r.value = xe(this.value) ? U(this.value, L().config.dateFormats.api) : this.value, r;
|
|
2872
2872
|
}
|
|
2873
2873
|
}
|
|
2874
|
-
class
|
|
2874
|
+
class j {
|
|
2875
2875
|
/**
|
|
2876
2876
|
* Инициализирует экземпляр класса {@link FilterGroup}.
|
|
2877
2877
|
*
|
|
@@ -2891,7 +2891,7 @@ class G {
|
|
|
2891
2891
|
*/
|
|
2892
2892
|
t(this, "groups");
|
|
2893
2893
|
var e, s;
|
|
2894
|
-
this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Ye(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new
|
|
2894
|
+
this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Ye(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new j(i))) ?? [];
|
|
2895
2895
|
}
|
|
2896
2896
|
/**
|
|
2897
2897
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -2902,7 +2902,7 @@ class G {
|
|
|
2902
2902
|
return {
|
|
2903
2903
|
groupOp: this.groupOp,
|
|
2904
2904
|
filters: this.filters.map((r) => r instanceof Ye && Ue(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2905
|
-
groups: this.groups.map((r) => r instanceof
|
|
2905
|
+
groups: this.groups.map((r) => r instanceof j ? r.toPrimitive() : r)
|
|
2906
2906
|
};
|
|
2907
2907
|
}
|
|
2908
2908
|
}
|
|
@@ -2924,7 +2924,7 @@ class De extends p {
|
|
|
2924
2924
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2925
2925
|
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2926
2926
|
};
|
|
2927
|
-
return e && (m.filters = JSON.stringify((e instanceof
|
|
2927
|
+
return e && (m.filters = JSON.stringify((e instanceof j ? e : new j(e)).toPrimitive())), Y(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, h);
|
|
2928
2928
|
}
|
|
2929
2929
|
}
|
|
2930
2930
|
class Xt extends De {
|
|
@@ -3684,12 +3684,12 @@ class ts extends R {
|
|
|
3684
3684
|
}
|
|
3685
3685
|
class mt extends R {
|
|
3686
3686
|
}
|
|
3687
|
-
class
|
|
3687
|
+
class G extends R {
|
|
3688
3688
|
/**
|
|
3689
3689
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
3690
3690
|
*/
|
|
3691
3691
|
static generatePersonItem() {
|
|
3692
|
-
return new
|
|
3692
|
+
return new G({
|
|
3693
3693
|
id: 1,
|
|
3694
3694
|
guid: "",
|
|
3695
3695
|
slug: q.Person,
|
|
@@ -3829,7 +3829,7 @@ class Dr extends k {
|
|
|
3829
3829
|
/**
|
|
3830
3830
|
* Данные об организационно-правовой форме.
|
|
3831
3831
|
*/
|
|
3832
|
-
t(this, "opf",
|
|
3832
|
+
t(this, "opf", G.generatePersonItem());
|
|
3833
3833
|
/**
|
|
3834
3834
|
* Группа партнеров (направление деятельности).
|
|
3835
3835
|
*/
|
|
@@ -3867,7 +3867,7 @@ class Dr extends k {
|
|
|
3867
3867
|
*/
|
|
3868
3868
|
t(this, "updater");
|
|
3869
3869
|
if (e) {
|
|
3870
|
-
if (this.opf = new
|
|
3870
|
+
if (this.opf = new G(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new d(e.creator) : void 0, this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new d(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Z(e.partnerGroup)), e.contacts) {
|
|
3871
3871
|
const s = [];
|
|
3872
3872
|
e.contacts.forEach((i) => {
|
|
3873
3873
|
s.push(new B(i));
|
|
@@ -4207,6 +4207,10 @@ class is extends br {
|
|
|
4207
4207
|
* @inheritDoc
|
|
4208
4208
|
*/
|
|
4209
4209
|
t(this, "managers");
|
|
4210
|
+
/**
|
|
4211
|
+
* @inheritDoc
|
|
4212
|
+
*/
|
|
4213
|
+
t(this, "includeSubordinateManagers");
|
|
4210
4214
|
/**
|
|
4211
4215
|
* @inheritDoc
|
|
4212
4216
|
*/
|
|
@@ -4243,7 +4247,7 @@ class is extends br {
|
|
|
4243
4247
|
* @inheritDoc
|
|
4244
4248
|
*/
|
|
4245
4249
|
t(this, "lastOrder");
|
|
4246
|
-
this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new Ae(D)), this.region = new ue(e == null ? void 0 : e.region), this.country = new X(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new S(e == null ? void 0 : e.createdAt), this.lastLoginDate = new S(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((D) => new Pe(D))) ?? [], this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new ze(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new O(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new
|
|
4250
|
+
this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new Ae(D)), this.region = new ue(e == null ? void 0 : e.region), this.country = new X(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new S(e == null ? void 0 : e.createdAt), this.lastLoginDate = new S(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((D) => new Pe(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new ze(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new O(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new G(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new N(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new Z(D)), this.contact = new Ne(e == null ? void 0 : e.contact), this.lastOrder = {
|
|
4247
4251
|
createdAt: new S((h = e == null ? void 0 : e.lastOrder) == null ? void 0 : h.createdAt),
|
|
4248
4252
|
creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
|
|
4249
4253
|
isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
|
|
@@ -4282,7 +4286,7 @@ class is extends br {
|
|
|
4282
4286
|
this.salesDirections = [];
|
|
4283
4287
|
break;
|
|
4284
4288
|
case "contragentType":
|
|
4285
|
-
this.contragentType = new
|
|
4289
|
+
this.contragentType = new G();
|
|
4286
4290
|
break;
|
|
4287
4291
|
case "preferredDeliveryType":
|
|
4288
4292
|
this.preferredDeliveryType = new N();
|
|
@@ -4368,7 +4372,7 @@ class Pt extends k {
|
|
|
4368
4372
|
* @inheritDoc
|
|
4369
4373
|
*/
|
|
4370
4374
|
t(this, "curators");
|
|
4371
|
-
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new B(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Sr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new N(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new O(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new
|
|
4375
|
+
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new B(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Sr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new N(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new O(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Ge(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new ze(u))) ?? void 0;
|
|
4372
4376
|
}
|
|
4373
4377
|
}
|
|
4374
4378
|
class At {
|
|
@@ -5318,13 +5322,13 @@ class ps {
|
|
|
5318
5322
|
* Возвращает диапазон дат по умолчанию.
|
|
5319
5323
|
*/
|
|
5320
5324
|
static defaultDateRanges() {
|
|
5321
|
-
const r =
|
|
5325
|
+
const r = Mr(/* @__PURE__ */ new Date(), 1);
|
|
5322
5326
|
return {
|
|
5323
5327
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5324
5328
|
nextWorkingDay: { label: "Следующий рабочий день", from: Er(r), to: Jr(r) },
|
|
5325
5329
|
today: { label: "Сегодня", from: Oe(), to: Wr() },
|
|
5326
5330
|
yesterday: { label: "Вчера", from: zr(), to: Br() },
|
|
5327
|
-
tomorrow: { label: "Завтра", from:
|
|
5331
|
+
tomorrow: { label: "Завтра", from: Gr(), to: jr() }
|
|
5328
5332
|
};
|
|
5329
5333
|
}
|
|
5330
5334
|
}
|
|
@@ -5505,7 +5509,7 @@ class b extends pe {
|
|
|
5505
5509
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
5506
5510
|
*/
|
|
5507
5511
|
getOpf() {
|
|
5508
|
-
return this.getTypedDataArrayRequester(
|
|
5512
|
+
return this.getTypedDataArrayRequester(G, "/public/references/opf", !0);
|
|
5509
5513
|
}
|
|
5510
5514
|
/**
|
|
5511
5515
|
* Возвращает {@link Promise} для получения справочника операторов.
|
|
@@ -6056,7 +6060,7 @@ class bt extends gr {
|
|
|
6056
6060
|
* @inheritDoc
|
|
6057
6061
|
*/
|
|
6058
6062
|
t(this, "currency");
|
|
6059
|
-
this.product = new
|
|
6063
|
+
this.product = new M(e.product), this.currency = new x(e.currency), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = e.sawing;
|
|
6060
6064
|
}
|
|
6061
6065
|
}
|
|
6062
6066
|
class Le extends Ir {
|
|
@@ -6139,7 +6143,7 @@ class ys extends De {
|
|
|
6139
6143
|
getOrdersCount(r, e = void 0) {
|
|
6140
6144
|
return this.get(
|
|
6141
6145
|
"/internal/orders/count",
|
|
6142
|
-
r ? { filters: JSON.stringify((r instanceof
|
|
6146
|
+
r ? { filters: JSON.stringify((r instanceof j ? r : new j(r)).toPrimitive()) } : {},
|
|
6143
6147
|
void 0,
|
|
6144
6148
|
void 0,
|
|
6145
6149
|
e
|
|
@@ -6250,7 +6254,7 @@ class ae {
|
|
|
6250
6254
|
* Источник клиентской цены.
|
|
6251
6255
|
*/
|
|
6252
6256
|
t(this, "source");
|
|
6253
|
-
this.client = new re(r == null ? void 0 : r.client), this.product = new I(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ??
|
|
6257
|
+
this.client = new re(r == null ? void 0 : r.client), this.product = new I(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? je.Product;
|
|
6254
6258
|
}
|
|
6255
6259
|
}
|
|
6256
6260
|
const de = (n) => {
|
|
@@ -6741,7 +6745,7 @@ export {
|
|
|
6741
6745
|
a as ClientDataProvider,
|
|
6742
6746
|
Jt as ClientPriceProvider,
|
|
6743
6747
|
Et as ClientPriceTemplateProvider,
|
|
6744
|
-
|
|
6748
|
+
M as ClientProduct,
|
|
6745
6749
|
Qt as ClientProductCategoryDataProvider,
|
|
6746
6750
|
Yt as ClientProductDataProvider,
|
|
6747
6751
|
re as ClientShortInfo,
|
|
@@ -6762,7 +6766,7 @@ export {
|
|
|
6762
6766
|
vt as ContragentPerson,
|
|
6763
6767
|
Ct as ContragentUlNr,
|
|
6764
6768
|
$r as ContragentUlR,
|
|
6765
|
-
|
|
6769
|
+
je as CostSourceEnum,
|
|
6766
6770
|
X as Country,
|
|
6767
6771
|
Be as CuratedDirection,
|
|
6768
6772
|
ze as Curator,
|
|
@@ -6775,11 +6779,11 @@ export {
|
|
|
6775
6779
|
rt as DeletableNamedIdentity,
|
|
6776
6780
|
Ce as DeliveryAddress,
|
|
6777
6781
|
N as DeliveryType,
|
|
6778
|
-
|
|
6782
|
+
jt as DetailedJwtPayload,
|
|
6779
6783
|
Qr as DeviceTypeResolutionConfig,
|
|
6780
6784
|
it as DiscountShortInfo,
|
|
6781
6785
|
Ts as FieldValidationResultData,
|
|
6782
|
-
|
|
6786
|
+
j as FilterGroup,
|
|
6783
6787
|
Ye as FilterItem,
|
|
6784
6788
|
We as FilterOpEnum,
|
|
6785
6789
|
hr as GeoCoordinates,
|
|
@@ -6791,13 +6795,13 @@ export {
|
|
|
6791
6795
|
tt as Image,
|
|
6792
6796
|
F as JwtPayload,
|
|
6793
6797
|
Pe as Manager,
|
|
6794
|
-
|
|
6798
|
+
Ge as ManagerCommon,
|
|
6795
6799
|
gs as ManagerDataFactory,
|
|
6796
6800
|
Tt as ManagerDataProvider,
|
|
6797
6801
|
It as MetaTagItem,
|
|
6798
6802
|
k as NamedIdentity,
|
|
6799
6803
|
Cr as Operator,
|
|
6800
|
-
|
|
6804
|
+
G as Opf,
|
|
6801
6805
|
q as OpfEnum,
|
|
6802
6806
|
Le as Order,
|
|
6803
6807
|
Ir as OrderInfo,
|
|
@@ -6832,7 +6836,7 @@ export {
|
|
|
6832
6836
|
Vt as ProductCategoryDataProvider,
|
|
6833
6837
|
Kt as ProductDataProvider,
|
|
6834
6838
|
wt as ProductFileType,
|
|
6835
|
-
|
|
6839
|
+
Me as ProductPriceCoefficient,
|
|
6836
6840
|
kt as ProductPriceHistory,
|
|
6837
6841
|
Ke as ProductUnit,
|
|
6838
6842
|
es as PropertiesProvider,
|