@snabcentr/common-lib 1.94.0 → 1.94.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 -4
- package/dist/sc-common-lib.js +41 -41
- 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/user/enums/user-type-enum.d.ts +4 -0
- package/dist/src/user/enums/user-type-enum.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/manifest.json
CHANGED
package/dist/release_notes.tmp
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
## 1.94.
|
|
1
|
+
## 1.94.2 (2026-08-18)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
- [#13692: Добавлены модель фильтра категории и метод получения списка доступных...](web_soft/libs/ts/snabcentr-common-lib@41c69193518088243d84e6053473f3766f86bfbe) ([merge request](web_soft/libs/ts/snabcentr-common-lib!219))
|
|
3
|
+
No changes.
|
|
6
4
|
|
package/dist/sc-common-lib.js
CHANGED
|
@@ -6,7 +6,7 @@ import { merge as De, isNil as A, isEmpty as ce, noop as a, mapValues as dr, isA
|
|
|
6
6
|
import { objectToCamel as or, objectToSnake as fr } from "ts-case-convert";
|
|
7
7
|
import { defineStore as K } from "pinia";
|
|
8
8
|
import { ref as v, markRaw as pt, computed as b } from "vue";
|
|
9
|
-
import { isAfter as yr, parseISO as D, startOfToday as Ze, format as N, endOfMonth as d, addMonths as k, differenceInCalendarMonths as ht, startOfMonth as x, getDate as vr, getDaysInMonth as gt, endOfDay as q, startOfDay as se, setDate as mt, startOfWeek as G, addWeeks as er, differenceInCalendarDays as
|
|
9
|
+
import { isAfter as yr, parseISO as D, startOfToday as Ze, format as N, endOfMonth as d, addMonths as k, differenceInCalendarMonths as ht, startOfMonth as x, getDate as vr, getDaysInMonth as gt, endOfDay as q, startOfDay as se, setDate as mt, startOfWeek as G, addWeeks as er, differenceInCalendarDays as Ue, addDays as Y, addBusinessDays as ft, startOfYear as ee, endOfYear as ye, endOfWeek as ve, endOfTomorrow as yt, startOfTomorrow as vt, endOfYesterday as wt, startOfYesterday as at, endOfToday as Ct, startOfQuarter as we, endOfQuarter as $e, subDays as Me, addYears as Fe, addQuarters as Be, subYears as je, subQuarters as Ge, subMonths as Ye, subWeeks as wr, addSeconds as Dt } from "date-fns";
|
|
10
10
|
import Rt, { CanceledError as Pt } from "axios";
|
|
11
11
|
class z {
|
|
12
12
|
/**
|
|
@@ -631,7 +631,7 @@ class I extends pe {
|
|
|
631
631
|
this.name = (e == null ? void 0 : e.name) ?? "";
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
class
|
|
634
|
+
class H extends I {
|
|
635
635
|
/**
|
|
636
636
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
637
637
|
*
|
|
@@ -682,7 +682,7 @@ class kt extends I {
|
|
|
682
682
|
* Дата и время удаления.
|
|
683
683
|
*/
|
|
684
684
|
t(this, "deletedAt");
|
|
685
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? D(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new
|
|
685
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? D(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new H(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? D(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
class Lr extends I {
|
|
@@ -847,7 +847,7 @@ class It {
|
|
|
847
847
|
this.warehouse = new Ae(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
|
-
class
|
|
850
|
+
class U extends I {
|
|
851
851
|
/**
|
|
852
852
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
853
853
|
*
|
|
@@ -1065,7 +1065,7 @@ class L extends dt {
|
|
|
1065
1065
|
* Список коэффициентов цен на продукт.
|
|
1066
1066
|
*/
|
|
1067
1067
|
t(this, "priceCoefficients");
|
|
1068
|
-
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Cr(e.unit) : new Cr(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new
|
|
1068
|
+
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Cr(e.unit) : new Cr(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new U(e.currency) : new U(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = C(e == null ? void 0 : e.costDate) ? D(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((p) => new It(p))) ?? [], this.type = "product";
|
|
1069
1069
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
|
|
1070
1070
|
s && (this.category = new rr({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new rr(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new xt(p, O().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((p) => new cr(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
1071
1071
|
}
|
|
@@ -1211,7 +1211,7 @@ class Nr extends pe {
|
|
|
1211
1211
|
* @inheritDoc
|
|
1212
1212
|
*/
|
|
1213
1213
|
t(this, "creatorUser");
|
|
1214
|
-
this.product = new E(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.currency = e.currency ? new
|
|
1214
|
+
this.product = new E(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.currency = e.currency ? new U(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && ct(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creatorUser = e.creatorUser && new H(e.creatorUser);
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
1217
|
let Lt = class extends Nr {
|
|
@@ -1258,7 +1258,7 @@ let Lt = class extends Nr {
|
|
|
1258
1258
|
* @inheritDoc
|
|
1259
1259
|
*/
|
|
1260
1260
|
t(this, "currency");
|
|
1261
|
-
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 = W(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new
|
|
1261
|
+
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 = W(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new U(e.currency);
|
|
1262
1262
|
}
|
|
1263
1263
|
};
|
|
1264
1264
|
class ke {
|
|
@@ -1685,7 +1685,7 @@ class as extends h {
|
|
|
1685
1685
|
return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
|
-
var Ot = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Ot || {}), _t = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(_t || {}),
|
|
1688
|
+
var Ot = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Ot || {}), _t = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(_t || {}), Hr = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(Hr || {});
|
|
1689
1689
|
class F extends he {
|
|
1690
1690
|
/**
|
|
1691
1691
|
* Инициализирует экземпляр класса {@link Category}.
|
|
@@ -1706,7 +1706,7 @@ class F extends he {
|
|
|
1706
1706
|
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new F(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new L(o));
|
|
1707
1707
|
}
|
|
1708
1708
|
}
|
|
1709
|
-
class
|
|
1709
|
+
class Ur {
|
|
1710
1710
|
/**
|
|
1711
1711
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1712
1712
|
*
|
|
@@ -1754,7 +1754,7 @@ class pr extends I {
|
|
|
1754
1754
|
* @inheritDoc
|
|
1755
1755
|
*/
|
|
1756
1756
|
t(this, "isRegionalDirector");
|
|
1757
|
-
this.salesDirection = e != null && e.salesDirection ? new M(e.salesDirection) : new M(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new
|
|
1757
|
+
this.salesDirection = e != null && e.salesDirection ? new M(e.salesDirection) : new M(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new Ur(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
1760
|
class hr extends R {
|
|
@@ -1926,7 +1926,7 @@ class gr extends I {
|
|
|
1926
1926
|
* @inheritDoc
|
|
1927
1927
|
*/
|
|
1928
1928
|
t(this, "curatedDirection");
|
|
1929
|
-
this.photo = e.photo, this.contacts = new
|
|
1929
|
+
this.photo = e.photo, this.contacts = new Ur(e.contacts), this.curatedDirection = new hr(e.curatedDirection);
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
1932
1932
|
class le extends R {
|
|
@@ -2333,7 +2333,7 @@ class Rr {
|
|
|
2333
2333
|
this.category = new he(r == null ? void 0 : r.category), this.property = new ne(r == null ? void 0 : r.property), this.settings = new Nt(r == null ? void 0 : r.settings);
|
|
2334
2334
|
}
|
|
2335
2335
|
}
|
|
2336
|
-
class
|
|
2336
|
+
class Ht {
|
|
2337
2337
|
/**
|
|
2338
2338
|
* Инициализирует экземпляр класса {@link CategoryFilterValue}.
|
|
2339
2339
|
*
|
|
@@ -2351,7 +2351,7 @@ class Ut {
|
|
|
2351
2351
|
this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "";
|
|
2352
2352
|
}
|
|
2353
2353
|
}
|
|
2354
|
-
class
|
|
2354
|
+
class Ut {
|
|
2355
2355
|
/**
|
|
2356
2356
|
* Инициализирует экземпляр класса {@link CategoryFilter}.
|
|
2357
2357
|
*
|
|
@@ -2394,7 +2394,7 @@ class Ht {
|
|
|
2394
2394
|
*/
|
|
2395
2395
|
t(this, "max");
|
|
2396
2396
|
var e;
|
|
2397
|
-
this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ??
|
|
2397
|
+
this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? Hr.Checkbox, this.ord = (r == null ? void 0 : r.ord) ?? 0, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.values = ((e = r == null ? void 0 : r.values) == null ? void 0 : e.map((s) => new Ht(s))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
|
|
2398
2398
|
}
|
|
2399
2399
|
}
|
|
2400
2400
|
class Ds extends h {
|
|
@@ -3704,7 +3704,7 @@ class Is extends qe {
|
|
|
3704
3704
|
return this.get(
|
|
3705
3705
|
`/internal/catalog/categories/${r}/filters`,
|
|
3706
3706
|
{ recursively: e },
|
|
3707
|
-
(s) => s.data.map((i) => new
|
|
3707
|
+
(s) => s.data.map((i) => new Ut(i))
|
|
3708
3708
|
);
|
|
3709
3709
|
}
|
|
3710
3710
|
/**
|
|
@@ -3866,8 +3866,8 @@ class tr extends pe {
|
|
|
3866
3866
|
/**
|
|
3867
3867
|
* Данные о валюте.
|
|
3868
3868
|
*/
|
|
3869
|
-
t(this, "currency", new
|
|
3870
|
-
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new
|
|
3869
|
+
t(this, "currency", new U());
|
|
3870
|
+
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new U(e.currency));
|
|
3871
3871
|
}
|
|
3872
3872
|
}
|
|
3873
3873
|
class sr extends I {
|
|
@@ -3989,7 +3989,7 @@ class Gr extends I {
|
|
|
3989
3989
|
*/
|
|
3990
3990
|
t(this, "updater");
|
|
3991
3991
|
if (e) {
|
|
3992
|
-
if (this.opf = new V(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : e.createdAt, this.creator = e.creator ? new
|
|
3992
|
+
if (this.opf = new V(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : e.createdAt, this.creator = e.creator ? new H(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? D(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new H(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new ue(e.partnerGroup)), e.contacts) {
|
|
3993
3993
|
const s = [];
|
|
3994
3994
|
e.contacts.forEach((i) => {
|
|
3995
3995
|
s.push(new J(i));
|
|
@@ -4437,7 +4437,7 @@ class Jr extends pe {
|
|
|
4437
4437
|
* @inheritDoc
|
|
4438
4438
|
*/
|
|
4439
4439
|
t(this, "isApproved1c");
|
|
4440
|
-
this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new
|
|
4440
|
+
this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new H(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
4441
4441
|
}
|
|
4442
4442
|
}
|
|
4443
4443
|
class Gt extends I {
|
|
@@ -5471,7 +5471,7 @@ class y {
|
|
|
5471
5471
|
* @param shiftWeeks Смещение в неделях, может быть отрицательным.
|
|
5472
5472
|
*/
|
|
5473
5473
|
static weekTillSameWeekday(r, e) {
|
|
5474
|
-
const s = G(er(r, e), { weekStartsOn: 1 }), i =
|
|
5474
|
+
const s = G(er(r, e), { weekStartsOn: 1 }), i = Ue(r, G(r, { weekStartsOn: 1 }));
|
|
5475
5475
|
return { from: s, to: q(Y(s, i)) };
|
|
5476
5476
|
}
|
|
5477
5477
|
/**
|
|
@@ -5482,7 +5482,7 @@ class y {
|
|
|
5482
5482
|
* @param shift Смещение в декадах, может быть отрицательным.
|
|
5483
5483
|
*/
|
|
5484
5484
|
static decadeTillSameDayNumber(r, e) {
|
|
5485
|
-
const [s] = y.shiftedDecadeBounds(r, 0), i =
|
|
5485
|
+
const [s] = y.shiftedDecadeBounds(r, 0), i = Ue(r, s) + 1, [o, c] = y.shiftedDecadeBounds(r, e), u = Ue(c, o) + 1;
|
|
5486
5486
|
return { from: o, to: q(Y(o, Math.min(i, u) - 1)) };
|
|
5487
5487
|
}
|
|
5488
5488
|
/**
|
|
@@ -5499,7 +5499,7 @@ class y {
|
|
|
5499
5499
|
return [g, m];
|
|
5500
5500
|
}
|
|
5501
5501
|
}
|
|
5502
|
-
class
|
|
5502
|
+
class Hs {
|
|
5503
5503
|
/**
|
|
5504
5504
|
* Возвращает предустановленные диапазоны дат.
|
|
5505
5505
|
*
|
|
@@ -5642,7 +5642,7 @@ class Us {
|
|
|
5642
5642
|
};
|
|
5643
5643
|
}
|
|
5644
5644
|
}
|
|
5645
|
-
const
|
|
5645
|
+
const Us = [
|
|
5646
5646
|
{ key: "day", label: "День" },
|
|
5647
5647
|
{ key: "week", label: "Неделя" },
|
|
5648
5648
|
{ key: "decade", label: "Декада" },
|
|
@@ -5843,7 +5843,7 @@ class Kr extends Jr {
|
|
|
5843
5843
|
date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? D(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
|
|
5844
5844
|
address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new Le(e.delivery.address) : void 0,
|
|
5845
5845
|
warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new Ae(e.delivery.warehouse) : void 0
|
|
5846
|
-
}, this.attachedUser = e != null && e.attachedUser ? new
|
|
5846
|
+
}, this.attachedUser = e != null && e.attachedUser ? new H(e == null ? void 0 : e.attachedUser) : void 0, this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new M(e == null ? void 0 : e.salesDirection), this.pendingAt = C(e == null ? void 0 : e.pendingAt) ? D(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = C(e == null ? void 0 : e.processedAt) ? D(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
|
|
5847
5847
|
}
|
|
5848
5848
|
}
|
|
5849
5849
|
class Xr extends R {
|
|
@@ -5955,7 +5955,7 @@ class js extends Qr {
|
|
|
5955
5955
|
* @inheritDoc
|
|
5956
5956
|
*/
|
|
5957
5957
|
t(this, "onlyMyRegions");
|
|
5958
|
-
this.attachedUsers = (s = e == null ? void 0 : e.attachedUsers) == null ? void 0 : s.map((u) => "isActive" in u ? new Se(u) : new Xr(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new ge(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new T(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new
|
|
5958
|
+
this.attachedUsers = (s = e == null ? void 0 : e.attachedUsers) == null ? void 0 : s.map((u) => "isActive" in u ? new Se(u) : new Xr(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new ge(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new T(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new H(e.creator) : void 0, this.deliveryDate = new T(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new _e(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isApproved1c = e == null ? void 0 : e.isApproved1c, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.pendingAt = new T(e == null ? void 0 : e.pendingAt), this.processedAt = new T(e == null ? void 0 : e.processedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new M(u)), this.status = e == null ? void 0 : e.status, this.deliveryType = e != null && e.deliveryType ? new j(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Zr(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new Ae(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
|
|
5959
5959
|
}
|
|
5960
5960
|
/**
|
|
5961
5961
|
* @inheritDoc
|
|
@@ -6055,7 +6055,7 @@ class Qt extends Nr {
|
|
|
6055
6055
|
* @inheritDoc
|
|
6056
6056
|
*/
|
|
6057
6057
|
t(this, "currency");
|
|
6058
|
-
this.product = new E(e.product), this.currency = new
|
|
6058
|
+
this.product = new E(e.product), this.currency = new U(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;
|
|
6059
6059
|
}
|
|
6060
6060
|
}
|
|
6061
6061
|
class Je extends Kr {
|
|
@@ -6377,7 +6377,7 @@ class Jt {
|
|
|
6377
6377
|
* @inheritDoc
|
|
6378
6378
|
*/
|
|
6379
6379
|
t(this, "currency");
|
|
6380
|
-
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? D(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new Re(r.product) : void 0, this.client = r.client ? new
|
|
6380
|
+
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? D(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new Re(r.product) : void 0, this.client = r.client ? new H(r.client) : void 0, this.executor = r.executor ? new H(r.executor) : void 0, this.currency = r.currency ? new U(r.currency) : void 0;
|
|
6381
6381
|
}
|
|
6382
6382
|
}
|
|
6383
6383
|
class Vt extends Re {
|
|
@@ -6551,7 +6551,7 @@ class $ extends be {
|
|
|
6551
6551
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
6552
6552
|
*/
|
|
6553
6553
|
getCurrency() {
|
|
6554
|
-
return this.getTypedDataArrayRequester(
|
|
6554
|
+
return this.getTypedDataArrayRequester(U, "/public/references/currency", !0);
|
|
6555
6555
|
}
|
|
6556
6556
|
/**
|
|
6557
6557
|
* Возвращает {@link Promise} для получения справочника данных
|
|
@@ -6664,7 +6664,7 @@ class $ extends be {
|
|
|
6664
6664
|
}
|
|
6665
6665
|
}
|
|
6666
6666
|
const S = K("common.references_private", () => {
|
|
6667
|
-
const n = v({}), r = v(void 0), e = v(void 0), s = v(void 0), i = v(void 0), o = v(void 0), c = v(void 0), u = v(void 0), p = v(void 0), g = v(void 0), m = v(void 0), w = v(void 0), me = v(void 0), fe = v(void 0), X = v(void 0), Z = v(void 0), Ne = v(void 0),
|
|
6667
|
+
const n = v({}), r = v(void 0), e = v(void 0), s = v(void 0), i = v(void 0), o = v(void 0), c = v(void 0), u = v(void 0), p = v(void 0), g = v(void 0), m = v(void 0), w = v(void 0), me = v(void 0), fe = v(void 0), X = v(void 0), Z = v(void 0), Ne = v(void 0), He = v(void 0), l = v(void 0);
|
|
6668
6668
|
return {
|
|
6669
6669
|
/**
|
|
6670
6670
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -6737,7 +6737,7 @@ const S = K("common.references_private", () => {
|
|
|
6737
6737
|
/**
|
|
6738
6738
|
* Справочник типов свойств.
|
|
6739
6739
|
*/
|
|
6740
|
-
propertyTypesReference:
|
|
6740
|
+
propertyTypesReference: He,
|
|
6741
6741
|
/**
|
|
6742
6742
|
* Справочник коэффициентов цен.
|
|
6743
6743
|
*/
|
|
@@ -6829,7 +6829,7 @@ const S = K("common.references_private", () => {
|
|
|
6829
6829
|
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance($).getPropertyTypes().then((f) => {
|
|
6830
6830
|
l.propertyTypesReference = f;
|
|
6831
6831
|
}).catch(a)), l.propertyTypesReference;
|
|
6832
|
-
}),
|
|
6832
|
+
}), He = b(() => {
|
|
6833
6833
|
const l = S();
|
|
6834
6834
|
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance($).getPriceCoefficients().then((f) => {
|
|
6835
6835
|
l.priceCoefficientsReference = f;
|
|
@@ -6907,7 +6907,7 @@ const S = K("common.references_private", () => {
|
|
|
6907
6907
|
/**
|
|
6908
6908
|
* Справочник коэффициентов цен.
|
|
6909
6909
|
*/
|
|
6910
|
-
priceCoefficientsReference:
|
|
6910
|
+
priceCoefficientsReference: He
|
|
6911
6911
|
};
|
|
6912
6912
|
});
|
|
6913
6913
|
class ss {
|
|
@@ -7049,7 +7049,7 @@ class Ks extends h {
|
|
|
7049
7049
|
});
|
|
7050
7050
|
}
|
|
7051
7051
|
}
|
|
7052
|
-
var is = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(is || {});
|
|
7052
|
+
var is = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))(is || {});
|
|
7053
7053
|
class ns extends Br {
|
|
7054
7054
|
/**
|
|
7055
7055
|
* Инициализирует экземпляр класса {@link User}.
|
|
@@ -7162,9 +7162,9 @@ export {
|
|
|
7162
7162
|
Ds as CatalogProvider,
|
|
7163
7163
|
qr as CatalogableItem,
|
|
7164
7164
|
F as Category,
|
|
7165
|
-
|
|
7165
|
+
Ut as CategoryFilter,
|
|
7166
7166
|
Rr as CategoryFilterSetting,
|
|
7167
|
-
|
|
7167
|
+
Ht as CategoryFilterValue,
|
|
7168
7168
|
Dr as CategoryPricingRule,
|
|
7169
7169
|
zr as ChannelPrimaryInterest,
|
|
7170
7170
|
Es as City,
|
|
@@ -7185,7 +7185,7 @@ export {
|
|
|
7185
7185
|
_s as ConfiguratorProvider,
|
|
7186
7186
|
Wt as ConfiguratorsEnum,
|
|
7187
7187
|
sr as Contact,
|
|
7188
|
-
|
|
7188
|
+
Ur as ContactLinks,
|
|
7189
7189
|
J as ContactPerson,
|
|
7190
7190
|
Yt as ContactPersonRelated,
|
|
7191
7191
|
Zt as ContactPosition,
|
|
@@ -7200,9 +7200,9 @@ export {
|
|
|
7200
7200
|
le as Country,
|
|
7201
7201
|
hr as CuratedDirection,
|
|
7202
7202
|
gr as Curator,
|
|
7203
|
-
|
|
7203
|
+
U as Currency,
|
|
7204
7204
|
Ks as DataSuggestionProvider,
|
|
7205
|
-
|
|
7205
|
+
Hs as DateTimeProvider,
|
|
7206
7206
|
jt as DeletableNamedIdentity,
|
|
7207
7207
|
Le as DeliveryAddress,
|
|
7208
7208
|
j as DeliveryType,
|
|
@@ -7264,7 +7264,7 @@ export {
|
|
|
7264
7264
|
bs as ProductCategoryDataProvider,
|
|
7265
7265
|
Ts as ProductDataProvider,
|
|
7266
7266
|
ts as ProductFileType,
|
|
7267
|
-
|
|
7267
|
+
Hr as ProductFilterTypeEnum,
|
|
7268
7268
|
cr as ProductPriceCoefficient,
|
|
7269
7269
|
Vt as ProductPriceHistory,
|
|
7270
7270
|
Cr as ProductUnit,
|
|
@@ -7280,7 +7280,7 @@ export {
|
|
|
7280
7280
|
$ as ReferenceDataProvider,
|
|
7281
7281
|
Pe as Region,
|
|
7282
7282
|
et as ResourceType,
|
|
7283
|
-
|
|
7283
|
+
Us as STANDARD_PERIOD_GROUPS,
|
|
7284
7284
|
Ms as STANDARD_PERIOD_SECTIONS,
|
|
7285
7285
|
M as SalesDirection,
|
|
7286
7286
|
At as SentryConfig,
|
|
@@ -7302,7 +7302,7 @@ export {
|
|
|
7302
7302
|
Br as UserCommonInfo,
|
|
7303
7303
|
os as UserDataProvider,
|
|
7304
7304
|
Mr as UserPricingRole,
|
|
7305
|
-
|
|
7305
|
+
H as UserShortInfo,
|
|
7306
7306
|
is as UserTypeEnum,
|
|
7307
7307
|
Os as VersionConfig,
|
|
7308
7308
|
Ae as Warehouse,
|