@snabcentr/common-lib 1.65.1 → 1.65.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/release_notes.tmp +20 -2
- package/dist/sc-common-lib.js +185 -153
- 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 +4 -0
- package/dist/src/clients/interfaces/i-clients-list-filters.d.ts.map +1 -1
- package/dist/src/managers/classes/manager.d.ts +5 -0
- package/dist/src/managers/classes/manager.d.ts.map +1 -1
- package/dist/src/managers/interfaces/i-manager.d.ts +5 -0
- package/dist/src/managers/interfaces/i-manager.d.ts.map +1 -1
- package/dist/src/user/classes/index.d.ts +1 -0
- package/dist/src/user/classes/index.d.ts.map +1 -1
- package/dist/src/user/classes/user-pricing-role.d.ts +26 -0
- package/dist/src/user/classes/user-pricing-role.d.ts.map +1 -0
- package/dist/src/user/interfaces/i-user-pricing-role.d.ts +19 -0
- package/dist/src/user/interfaces/i-user-pricing-role.d.ts.map +1 -0
- package/dist/src/user/interfaces/index.d.ts +1 -0
- package/dist/src/user/interfaces/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -110,7 +110,7 @@ class ue {
|
|
|
110
110
|
return new ue(Ie(je(r)));
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
class
|
|
113
|
+
class Dt extends ue {
|
|
114
114
|
/**
|
|
115
115
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
116
116
|
*
|
|
@@ -178,7 +178,7 @@ class B {
|
|
|
178
178
|
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : U(this.id);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
class
|
|
181
|
+
class $ extends B {
|
|
182
182
|
/**
|
|
183
183
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
184
184
|
*
|
|
@@ -193,7 +193,7 @@ class a extends B {
|
|
|
193
193
|
this.name = (e == null ? void 0 : e.name) ?? "";
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
class Je extends
|
|
196
|
+
class Je extends $ {
|
|
197
197
|
/**
|
|
198
198
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
199
199
|
*
|
|
@@ -259,7 +259,7 @@ class ne extends ae {
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
var Ke = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Ke || {});
|
|
262
|
-
class w extends
|
|
262
|
+
class w extends $ {
|
|
263
263
|
/**
|
|
264
264
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
265
265
|
*
|
|
@@ -422,7 +422,7 @@ const W = class W {
|
|
|
422
422
|
* Конфигурация приложения.
|
|
423
423
|
*/
|
|
424
424
|
t(W, "config");
|
|
425
|
-
let
|
|
425
|
+
let a = W;
|
|
426
426
|
class kr extends Je {
|
|
427
427
|
/**
|
|
428
428
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
@@ -548,14 +548,14 @@ class b extends kr {
|
|
|
548
548
|
t(this, "priceCoefficients");
|
|
549
549
|
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = f(e == null ? void 0 : e.costDate) ? y(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 xr(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
|
|
550
550
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
|
|
551
|
-
s && (this.category = new ae({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new ae(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new dr(p,
|
|
551
|
+
s && (this.category = new ae({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new ae(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new dr(p, a.getConfig().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 Le(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
552
552
|
}
|
|
553
553
|
/**
|
|
554
554
|
* Возвращает признак, что это измеряемый товар.
|
|
555
555
|
*/
|
|
556
556
|
getIsMeasurable() {
|
|
557
557
|
var s;
|
|
558
|
-
const e = (s =
|
|
558
|
+
const e = (s = a.getConfig().catalog) == null ? void 0 : s.products.units;
|
|
559
559
|
return [...(e == null ? void 0 : e.linear) ?? ["пог.м.", "м."], ...(e == null ? void 0 : e.square) ?? ["м2"]].includes(this.unit);
|
|
560
560
|
}
|
|
561
561
|
/**
|
|
@@ -809,7 +809,7 @@ class Mr {
|
|
|
809
809
|
this.date = f(r == null ? void 0 : r.date) ? y(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
|
-
class
|
|
812
|
+
class $t {
|
|
813
813
|
/**
|
|
814
814
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
815
815
|
*
|
|
@@ -899,7 +899,7 @@ const _ = class _ {
|
|
|
899
899
|
* Возвращает базовый URL путь для выполнения запросов.
|
|
900
900
|
*/
|
|
901
901
|
// eslint-disable-next-line class-methods-use-this
|
|
902
|
-
t(this, "getBaseUrl", () => `${
|
|
902
|
+
t(this, "getBaseUrl", () => `${a.getConfig().http.portalApiUrl}/api`);
|
|
903
903
|
/**
|
|
904
904
|
* Возвращает токен доступа к системе.
|
|
905
905
|
*/
|
|
@@ -907,7 +907,7 @@ const _ = class _ {
|
|
|
907
907
|
t(this, "getAccessToken", () => {
|
|
908
908
|
var s, i;
|
|
909
909
|
let r;
|
|
910
|
-
const e =
|
|
910
|
+
const e = a.getConfig();
|
|
911
911
|
return (s = e.devMode) != null && s.authBearerToken && (r = (i = e.devMode) == null ? void 0 : i.authBearerToken), Promise.resolve(r);
|
|
912
912
|
});
|
|
913
913
|
/**
|
|
@@ -959,10 +959,10 @@ const _ = class _ {
|
|
|
959
959
|
*/
|
|
960
960
|
// eslint-disable-next-line class-methods-use-this
|
|
961
961
|
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Ie(r.data)), r));
|
|
962
|
-
const r =
|
|
962
|
+
const r = a.getConfig().version;
|
|
963
963
|
this.defaultInstanceNotificationErrorResponseHandler = _.baseDefaultNotificationErrorResponseHandler, this.httpClient = Lr.create({
|
|
964
964
|
headers: {
|
|
965
|
-
"APP-VERSION": `${r.name} (${r.version}, ${z(r.date,
|
|
965
|
+
"APP-VERSION": `${r.name} (${r.version}, ${z(r.date, a.getConfig().dateFormats.uiDate)})`,
|
|
966
966
|
Accept: "application/json",
|
|
967
967
|
"Content-Type": "application/json"
|
|
968
968
|
}
|
|
@@ -1090,7 +1090,7 @@ t(_, "instances", {}), /**
|
|
|
1090
1090
|
*/
|
|
1091
1091
|
t(_, "baseDefaultNotificationErrorResponseHandler", m);
|
|
1092
1092
|
let h = _;
|
|
1093
|
-
class
|
|
1093
|
+
class at extends h {
|
|
1094
1094
|
/**
|
|
1095
1095
|
* Возвращает содержимое корзины указанного клиента.
|
|
1096
1096
|
*
|
|
@@ -1214,7 +1214,7 @@ class q extends ne {
|
|
|
1214
1214
|
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new q(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new b(o));
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
|
-
class Ye extends
|
|
1217
|
+
class Ye extends $ {
|
|
1218
1218
|
/**
|
|
1219
1219
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1220
1220
|
*
|
|
@@ -1244,7 +1244,7 @@ class Hr extends Ye {
|
|
|
1244
1244
|
this.deletedAt = f(e == null ? void 0 : e.deletedAt) ? y(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
|
-
class
|
|
1247
|
+
class Tt {
|
|
1248
1248
|
/**
|
|
1249
1249
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
1250
1250
|
*
|
|
@@ -1278,7 +1278,7 @@ class at {
|
|
|
1278
1278
|
);
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
|
-
class G extends
|
|
1281
|
+
class G extends $ {
|
|
1282
1282
|
/**
|
|
1283
1283
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
1284
1284
|
*
|
|
@@ -1293,7 +1293,7 @@ class G extends a {
|
|
|
1293
1293
|
this.type = e == null ? void 0 : e.type;
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
class zr extends
|
|
1296
|
+
class zr extends $ {
|
|
1297
1297
|
/**
|
|
1298
1298
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1299
1299
|
*
|
|
@@ -1410,7 +1410,7 @@ class jr {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
class S extends w {
|
|
1412
1412
|
}
|
|
1413
|
-
class re extends
|
|
1413
|
+
class re extends $ {
|
|
1414
1414
|
/**
|
|
1415
1415
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1416
1416
|
*
|
|
@@ -1437,6 +1437,29 @@ class re extends a {
|
|
|
1437
1437
|
e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new jr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
1440
|
+
class Wr extends $ {
|
|
1441
|
+
/**
|
|
1442
|
+
* Инициализирует экземпляр класса {@link IUserPricingRole}.
|
|
1443
|
+
*
|
|
1444
|
+
* @param data Данные для первоначальной инициализации.
|
|
1445
|
+
*/
|
|
1446
|
+
constructor(e) {
|
|
1447
|
+
super(e);
|
|
1448
|
+
/**
|
|
1449
|
+
* @inheritDoc
|
|
1450
|
+
*/
|
|
1451
|
+
t(this, "description");
|
|
1452
|
+
/**
|
|
1453
|
+
* @inheritDoc
|
|
1454
|
+
*/
|
|
1455
|
+
t(this, "canChangeLowCost");
|
|
1456
|
+
/**
|
|
1457
|
+
* @inheritDoc
|
|
1458
|
+
*/
|
|
1459
|
+
t(this, "parentRoleId");
|
|
1460
|
+
this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1440
1463
|
class Ce extends re {
|
|
1441
1464
|
/**
|
|
1442
1465
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
@@ -1465,10 +1488,14 @@ class Ce extends re {
|
|
|
1465
1488
|
* Идентификатор супервайзера.
|
|
1466
1489
|
*/
|
|
1467
1490
|
t(this, "supervisorId");
|
|
1468
|
-
|
|
1491
|
+
/**
|
|
1492
|
+
* Данные роли ценообразования менеджера.
|
|
1493
|
+
*/
|
|
1494
|
+
t(this, "pricingRole");
|
|
1495
|
+
this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new Wr(e.pricingRole) : void 0;
|
|
1469
1496
|
}
|
|
1470
1497
|
}
|
|
1471
|
-
class
|
|
1498
|
+
class Er extends ne {
|
|
1472
1499
|
/**
|
|
1473
1500
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1474
1501
|
*
|
|
@@ -1499,7 +1526,7 @@ class Wr extends ne {
|
|
|
1499
1526
|
this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new Ce(e.manager) : void 0;
|
|
1500
1527
|
}
|
|
1501
1528
|
}
|
|
1502
|
-
class pe extends
|
|
1529
|
+
class pe extends Er {
|
|
1503
1530
|
/**
|
|
1504
1531
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1505
1532
|
*
|
|
@@ -1584,7 +1611,7 @@ class de extends w {
|
|
|
1584
1611
|
e && (this.region = new te(e.region));
|
|
1585
1612
|
}
|
|
1586
1613
|
}
|
|
1587
|
-
class Ze extends
|
|
1614
|
+
class Ze extends $ {
|
|
1588
1615
|
/**
|
|
1589
1616
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1590
1617
|
*
|
|
@@ -1712,7 +1739,7 @@ class Re extends Xe {
|
|
|
1712
1739
|
}
|
|
1713
1740
|
class er extends w {
|
|
1714
1741
|
}
|
|
1715
|
-
class Z extends
|
|
1742
|
+
class Z extends $ {
|
|
1716
1743
|
/**
|
|
1717
1744
|
* Инициализирует экземпляр класса {@link Property}.
|
|
1718
1745
|
*
|
|
@@ -1772,7 +1799,7 @@ class N {
|
|
|
1772
1799
|
this.from = f(r == null ? void 0 : r.from) ? y(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = f(r == null ? void 0 : r.to) ? y(r.to) : (r == null ? void 0 : r.to) ?? null;
|
|
1773
1800
|
}
|
|
1774
1801
|
}
|
|
1775
|
-
class
|
|
1802
|
+
class bt {
|
|
1776
1803
|
/**
|
|
1777
1804
|
* Инициализирует экземпляр класса {@link TemplatesListFilters}.
|
|
1778
1805
|
*
|
|
@@ -1836,15 +1863,15 @@ class Tt {
|
|
|
1836
1863
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
|
|
1837
1864
|
}
|
|
1838
1865
|
}
|
|
1839
|
-
class
|
|
1866
|
+
class Vr extends w {
|
|
1840
1867
|
}
|
|
1841
1868
|
class rr extends w {
|
|
1842
1869
|
}
|
|
1843
|
-
class
|
|
1870
|
+
class _t extends w {
|
|
1844
1871
|
}
|
|
1845
|
-
class
|
|
1872
|
+
class Jr extends w {
|
|
1846
1873
|
}
|
|
1847
|
-
class he extends
|
|
1874
|
+
class he extends $ {
|
|
1848
1875
|
/**
|
|
1849
1876
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
1850
1877
|
*
|
|
@@ -1877,16 +1904,16 @@ class M extends w {
|
|
|
1877
1904
|
});
|
|
1878
1905
|
}
|
|
1879
1906
|
}
|
|
1880
|
-
class Jr extends w {
|
|
1881
|
-
}
|
|
1882
1907
|
class Kr extends w {
|
|
1883
1908
|
}
|
|
1884
|
-
class Y extends w {
|
|
1885
|
-
}
|
|
1886
1909
|
class Qr extends w {
|
|
1887
1910
|
}
|
|
1911
|
+
class Y extends w {
|
|
1912
|
+
}
|
|
1888
1913
|
class Yr extends w {
|
|
1889
1914
|
}
|
|
1915
|
+
class Xr extends w {
|
|
1916
|
+
}
|
|
1890
1917
|
class tr extends w {
|
|
1891
1918
|
}
|
|
1892
1919
|
class sr extends w {
|
|
@@ -1901,7 +1928,7 @@ const E = class E extends h {
|
|
|
1901
1928
|
* Время кэширования данных ответов на запросы (секунд).
|
|
1902
1929
|
*/
|
|
1903
1930
|
t(this, "responseDataCacheTimeout");
|
|
1904
|
-
this.responseDataCacheTimeout =
|
|
1931
|
+
this.responseDataCacheTimeout = a.getConfig().http.responseDataCacheTimeout;
|
|
1905
1932
|
}
|
|
1906
1933
|
/**
|
|
1907
1934
|
* Возвращает кэшированные данные.
|
|
@@ -1959,7 +1986,7 @@ class A extends se {
|
|
|
1959
1986
|
* и использовать в случае аналогичных запросов.
|
|
1960
1987
|
*/
|
|
1961
1988
|
getReference(r, e = !1) {
|
|
1962
|
-
return this.getTypedDataArrayRequester(
|
|
1989
|
+
return this.getTypedDataArrayRequester(Vr, `/internal/references/${r}`, e);
|
|
1963
1990
|
}
|
|
1964
1991
|
/**
|
|
1965
1992
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
@@ -1972,7 +1999,7 @@ class A extends se {
|
|
|
1972
1999
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
1973
2000
|
*/
|
|
1974
2001
|
getContactPositions() {
|
|
1975
|
-
return this.getTypedDataArrayRequester(
|
|
2002
|
+
return this.getTypedDataArrayRequester(Jr, "/internal/references/contact-position", !0);
|
|
1976
2003
|
}
|
|
1977
2004
|
/**
|
|
1978
2005
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
@@ -1997,19 +2024,19 @@ class A extends se {
|
|
|
1997
2024
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
1998
2025
|
*/
|
|
1999
2026
|
getOrderPaymentStatuses() {
|
|
2000
|
-
return this.getTypedDataArrayRequester(
|
|
2027
|
+
return this.getTypedDataArrayRequester(Kr, "/public/references/order-payment-status", !0);
|
|
2001
2028
|
}
|
|
2002
2029
|
/**
|
|
2003
2030
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
2004
2031
|
*/
|
|
2005
2032
|
getOrderStatuses() {
|
|
2006
|
-
return this.getTypedDataArrayRequester(
|
|
2033
|
+
return this.getTypedDataArrayRequester(Qr, "/public/references/order-status", !0);
|
|
2007
2034
|
}
|
|
2008
2035
|
/**
|
|
2009
2036
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
2010
2037
|
*/
|
|
2011
2038
|
getPaymentTypes() {
|
|
2012
|
-
return this.getTypedDataArrayRequester(
|
|
2039
|
+
return this.getTypedDataArrayRequester(Yr, "/public/references/payment-type", !0);
|
|
2013
2040
|
}
|
|
2014
2041
|
/**
|
|
2015
2042
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
@@ -2081,11 +2108,11 @@ class A extends se {
|
|
|
2081
2108
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
2082
2109
|
*/
|
|
2083
2110
|
getProductFileType() {
|
|
2084
|
-
return this.getTypedDataArrayRequester(
|
|
2111
|
+
return this.getTypedDataArrayRequester(Xr, "/public/references/product-file-type", !0);
|
|
2085
2112
|
}
|
|
2086
2113
|
}
|
|
2087
|
-
var
|
|
2088
|
-
class
|
|
2114
|
+
var Zr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Zr || {});
|
|
2115
|
+
class et extends Ze {
|
|
2089
2116
|
/**
|
|
2090
2117
|
* Инициализирует экземпляр класса {@link User}.
|
|
2091
2118
|
*
|
|
@@ -2108,16 +2135,16 @@ class Zr extends Ze {
|
|
|
2108
2135
|
this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo;
|
|
2109
2136
|
}
|
|
2110
2137
|
}
|
|
2111
|
-
class
|
|
2138
|
+
class rt extends h {
|
|
2112
2139
|
/**
|
|
2113
2140
|
* Возвращает данные о текущем пользователе.
|
|
2114
2141
|
*/
|
|
2115
2142
|
// eslint-disable-next-line class-methods-use-this
|
|
2116
2143
|
getCurrentUser() {
|
|
2117
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
2144
|
+
return this.get("/internal/users/info", {}, (r) => new et(r.data));
|
|
2118
2145
|
}
|
|
2119
2146
|
}
|
|
2120
|
-
class
|
|
2147
|
+
class tt {
|
|
2121
2148
|
/**
|
|
2122
2149
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
2123
2150
|
*
|
|
@@ -2181,7 +2208,7 @@ class qe {
|
|
|
2181
2208
|
r != null && r.products && (this.products = r.products.map((e) => new b(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new q(e)));
|
|
2182
2209
|
}
|
|
2183
2210
|
}
|
|
2184
|
-
class ee extends
|
|
2211
|
+
class ee extends $ {
|
|
2185
2212
|
/**
|
|
2186
2213
|
* Инициализирует экземпляр класса {@link PricingRole}.
|
|
2187
2214
|
*
|
|
@@ -2238,7 +2265,7 @@ class Ue {
|
|
|
2238
2265
|
this.role = new ee(r == null ? void 0 : r.role), this.category = new ne(r == null ? void 0 : r.category), this.minCoefficient = new ye(r == null ? void 0 : r.minCoefficient);
|
|
2239
2266
|
}
|
|
2240
2267
|
}
|
|
2241
|
-
class
|
|
2268
|
+
class St extends h {
|
|
2242
2269
|
/**
|
|
2243
2270
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
2244
2271
|
*
|
|
@@ -2265,11 +2292,11 @@ class _t extends h {
|
|
|
2265
2292
|
*/
|
|
2266
2293
|
// eslint-disable-next-line class-methods-use-this
|
|
2267
2294
|
getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
|
|
2268
|
-
let c = `${
|
|
2295
|
+
let c = `${a.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
|
|
2269
2296
|
return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
|
|
2270
2297
|
}
|
|
2271
2298
|
}
|
|
2272
|
-
class
|
|
2299
|
+
class It extends h {
|
|
2273
2300
|
/**
|
|
2274
2301
|
* Импортирует цены клиента из CSV файла.
|
|
2275
2302
|
*
|
|
@@ -2468,7 +2495,7 @@ class St extends h {
|
|
|
2468
2495
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2469
2496
|
}
|
|
2470
2497
|
}
|
|
2471
|
-
class
|
|
2498
|
+
class Lt extends h {
|
|
2472
2499
|
/**
|
|
2473
2500
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2474
2501
|
*
|
|
@@ -2503,7 +2530,7 @@ class It extends h {
|
|
|
2503
2530
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_attach
|
|
2504
2531
|
*/
|
|
2505
2532
|
attachTemplate(r, e, s) {
|
|
2506
|
-
const i =
|
|
2533
|
+
const i = a.getConfig().dateFormats.api;
|
|
2507
2534
|
return this.post(
|
|
2508
2535
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
2509
2536
|
s && {
|
|
@@ -2537,7 +2564,7 @@ class It extends h {
|
|
|
2537
2564
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_change
|
|
2538
2565
|
*/
|
|
2539
2566
|
changeTemplate(r, e, s, i) {
|
|
2540
|
-
const o =
|
|
2567
|
+
const o = a.getConfig().dateFormats.api;
|
|
2541
2568
|
return this.patch(
|
|
2542
2569
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
2543
2570
|
i && {
|
|
@@ -2560,7 +2587,7 @@ class It extends h {
|
|
|
2560
2587
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2561
2588
|
}
|
|
2562
2589
|
}
|
|
2563
|
-
class
|
|
2590
|
+
class xt extends h {
|
|
2564
2591
|
/**
|
|
2565
2592
|
* Возвращает список данных о корневых категориях.
|
|
2566
2593
|
*
|
|
@@ -2652,7 +2679,7 @@ class Lt extends h {
|
|
|
2652
2679
|
});
|
|
2653
2680
|
}
|
|
2654
2681
|
}
|
|
2655
|
-
class
|
|
2682
|
+
class kt extends h {
|
|
2656
2683
|
/**
|
|
2657
2684
|
* Возвращает данные об указанном продукте.
|
|
2658
2685
|
*
|
|
@@ -2696,7 +2723,7 @@ class xt extends h {
|
|
|
2696
2723
|
*/
|
|
2697
2724
|
getProductPriceHistory(r, e) {
|
|
2698
2725
|
const s = {};
|
|
2699
|
-
return U(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => le(i.data, (o) => new
|
|
2726
|
+
return U(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => le(i.data, (o) => new tt(o)));
|
|
2700
2727
|
}
|
|
2701
2728
|
/**
|
|
2702
2729
|
* Выполняет публичный поиск данных о продуктах по терму.
|
|
@@ -2714,7 +2741,7 @@ class xt extends h {
|
|
|
2714
2741
|
});
|
|
2715
2742
|
}
|
|
2716
2743
|
}
|
|
2717
|
-
class
|
|
2744
|
+
class dt extends h {
|
|
2718
2745
|
/**
|
|
2719
2746
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2720
2747
|
*
|
|
@@ -2776,7 +2803,7 @@ class kt extends h {
|
|
|
2776
2803
|
);
|
|
2777
2804
|
}
|
|
2778
2805
|
}
|
|
2779
|
-
class
|
|
2806
|
+
class Nt extends h {
|
|
2780
2807
|
/**
|
|
2781
2808
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2782
2809
|
*
|
|
@@ -2829,7 +2856,7 @@ class Ge {
|
|
|
2829
2856
|
field: this.field,
|
|
2830
2857
|
op: this.op
|
|
2831
2858
|
};
|
|
2832
|
-
return r.value = Cr(this.value) ? z(this.value,
|
|
2859
|
+
return r.value = Cr(this.value) ? z(this.value, a.getConfig().dateFormats.api) : this.value, r;
|
|
2833
2860
|
}
|
|
2834
2861
|
}
|
|
2835
2862
|
class ie {
|
|
@@ -2887,7 +2914,7 @@ class ve extends h {
|
|
|
2887
2914
|
return e && (p.filters = JSON.stringify((e instanceof ie ? e : new ie(e)).toPrimitive())), Se(s) || (p.sort = Ee(s) ? s : [s]), o && (p = { ...p, ...o }), this.get(r, p, c, u);
|
|
2888
2915
|
}
|
|
2889
2916
|
}
|
|
2890
|
-
class
|
|
2917
|
+
class Ot extends ve {
|
|
2891
2918
|
/**
|
|
2892
2919
|
* Возвращает список шаблонов прайс-листа.
|
|
2893
2920
|
*
|
|
@@ -3091,7 +3118,7 @@ class Nt extends ve {
|
|
|
3091
3118
|
);
|
|
3092
3119
|
}
|
|
3093
3120
|
}
|
|
3094
|
-
class
|
|
3121
|
+
class qt extends h {
|
|
3095
3122
|
/**
|
|
3096
3123
|
* Возвращает список ролей ценообразования.
|
|
3097
3124
|
*
|
|
@@ -3171,7 +3198,7 @@ class Ot extends h {
|
|
|
3171
3198
|
);
|
|
3172
3199
|
}
|
|
3173
3200
|
}
|
|
3174
|
-
class
|
|
3201
|
+
class Ut extends ve {
|
|
3175
3202
|
/**
|
|
3176
3203
|
* Возвращает пагинированный список свойств.
|
|
3177
3204
|
*
|
|
@@ -3543,7 +3570,7 @@ class qt extends ve {
|
|
|
3543
3570
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
3544
3571
|
}
|
|
3545
3572
|
}
|
|
3546
|
-
class
|
|
3573
|
+
class Gt extends h {
|
|
3547
3574
|
/**
|
|
3548
3575
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
3549
3576
|
*
|
|
@@ -3606,7 +3633,7 @@ function Me(n, r, e) {
|
|
|
3606
3633
|
return !1;
|
|
3607
3634
|
}), s;
|
|
3608
3635
|
}
|
|
3609
|
-
var
|
|
3636
|
+
var st = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n))(st || {});
|
|
3610
3637
|
class Te extends B {
|
|
3611
3638
|
/**
|
|
3612
3639
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
@@ -3638,7 +3665,7 @@ class Te extends B {
|
|
|
3638
3665
|
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new he(e.currency));
|
|
3639
3666
|
}
|
|
3640
3667
|
}
|
|
3641
|
-
class be extends
|
|
3668
|
+
class be extends $ {
|
|
3642
3669
|
/**
|
|
3643
3670
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3644
3671
|
*
|
|
@@ -3692,7 +3719,7 @@ class F extends be {
|
|
|
3692
3719
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = f(e == null ? void 0 : e.deletedAt) ? y(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
3693
3720
|
}
|
|
3694
3721
|
}
|
|
3695
|
-
class ir extends
|
|
3722
|
+
class ir extends $ {
|
|
3696
3723
|
/**
|
|
3697
3724
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3698
3725
|
*
|
|
@@ -3765,7 +3792,7 @@ class ir extends a {
|
|
|
3765
3792
|
}
|
|
3766
3793
|
}
|
|
3767
3794
|
}
|
|
3768
|
-
class
|
|
3795
|
+
class it extends ir {
|
|
3769
3796
|
/**
|
|
3770
3797
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3771
3798
|
*
|
|
@@ -3833,7 +3860,7 @@ class or extends nr {
|
|
|
3833
3860
|
e && (this.kpp = e.kpp ?? "");
|
|
3834
3861
|
}
|
|
3835
3862
|
}
|
|
3836
|
-
class
|
|
3863
|
+
class nt extends or {
|
|
3837
3864
|
/**
|
|
3838
3865
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3839
3866
|
*
|
|
@@ -3869,9 +3896,9 @@ class ge {
|
|
|
3869
3896
|
case T.UlR:
|
|
3870
3897
|
return new or(r);
|
|
3871
3898
|
case T.UlNr:
|
|
3872
|
-
return new
|
|
3899
|
+
return new nt(r);
|
|
3873
3900
|
default:
|
|
3874
|
-
return new
|
|
3901
|
+
return new it(r);
|
|
3875
3902
|
}
|
|
3876
3903
|
}
|
|
3877
3904
|
}
|
|
@@ -3890,7 +3917,7 @@ class Ae extends B {
|
|
|
3890
3917
|
this.isPrimary = e.isPrimary;
|
|
3891
3918
|
}
|
|
3892
3919
|
}
|
|
3893
|
-
class
|
|
3920
|
+
class ot extends F {
|
|
3894
3921
|
/**
|
|
3895
3922
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3896
3923
|
*
|
|
@@ -4015,7 +4042,7 @@ class Fe extends oe {
|
|
|
4015
4042
|
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ge.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Y(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new F(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new me(u))) ?? [], this.channelPrimaryInterest = new rr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new sr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new J(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new we(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
4016
4043
|
}
|
|
4017
4044
|
}
|
|
4018
|
-
class
|
|
4045
|
+
class Mt {
|
|
4019
4046
|
/**
|
|
4020
4047
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
4021
4048
|
*
|
|
@@ -4078,6 +4105,10 @@ class Gt {
|
|
|
4078
4105
|
* Данные о менеджерах клиентов.
|
|
4079
4106
|
*/
|
|
4080
4107
|
t(this, "managers");
|
|
4108
|
+
/**
|
|
4109
|
+
* Признак того, что наличие менеджера у клиента является обязательным.
|
|
4110
|
+
*/
|
|
4111
|
+
t(this, "isManagerRequired");
|
|
4081
4112
|
/**
|
|
4082
4113
|
* Направления продаж.
|
|
4083
4114
|
*/
|
|
@@ -4208,7 +4239,7 @@ class cr extends B {
|
|
|
4208
4239
|
this.createdAt = f(e == null ? void 0 : e.createdAt) ? y(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new G(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
4209
4240
|
}
|
|
4210
4241
|
}
|
|
4211
|
-
class
|
|
4242
|
+
class ct extends $ {
|
|
4212
4243
|
/**
|
|
4213
4244
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
4214
4245
|
*
|
|
@@ -4244,7 +4275,7 @@ class ot extends a {
|
|
|
4244
4275
|
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new cr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new Y(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new J(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new re(o)));
|
|
4245
4276
|
}
|
|
4246
4277
|
}
|
|
4247
|
-
class
|
|
4278
|
+
class lt {
|
|
4248
4279
|
/**
|
|
4249
4280
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
4250
4281
|
*
|
|
@@ -4262,7 +4293,7 @@ class ct {
|
|
|
4262
4293
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4263
4294
|
}
|
|
4264
4295
|
}
|
|
4265
|
-
class
|
|
4296
|
+
class Ft extends lt {
|
|
4266
4297
|
/**
|
|
4267
4298
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4268
4299
|
*
|
|
@@ -4293,7 +4324,7 @@ class Mt extends ct {
|
|
|
4293
4324
|
this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
|
|
4294
4325
|
}
|
|
4295
4326
|
}
|
|
4296
|
-
class
|
|
4327
|
+
class Bt {
|
|
4297
4328
|
/**
|
|
4298
4329
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
4299
4330
|
*
|
|
@@ -4311,7 +4342,7 @@ class Ft {
|
|
|
4311
4342
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4312
4343
|
}
|
|
4313
4344
|
}
|
|
4314
|
-
class
|
|
4345
|
+
class Ht extends ve {
|
|
4315
4346
|
/**
|
|
4316
4347
|
* Возвращает данные об указанном клиенте.
|
|
4317
4348
|
*
|
|
@@ -4361,7 +4392,7 @@ class Bt extends ve {
|
|
|
4361
4392
|
const s = r.map((i) => i.id);
|
|
4362
4393
|
return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
|
|
4363
4394
|
let o = [];
|
|
4364
|
-
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new
|
|
4395
|
+
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new ct(c))), o;
|
|
4365
4396
|
});
|
|
4366
4397
|
}
|
|
4367
4398
|
/**
|
|
@@ -4373,7 +4404,7 @@ class Bt extends ve {
|
|
|
4373
4404
|
getAllClientContacts(r) {
|
|
4374
4405
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
4375
4406
|
let s = [];
|
|
4376
|
-
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new
|
|
4407
|
+
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new ot(i))), s;
|
|
4377
4408
|
});
|
|
4378
4409
|
}
|
|
4379
4410
|
/**
|
|
@@ -5038,7 +5069,7 @@ class Bt extends ve {
|
|
|
5038
5069
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
5039
5070
|
}
|
|
5040
5071
|
}
|
|
5041
|
-
class
|
|
5072
|
+
class zt extends h {
|
|
5042
5073
|
/**
|
|
5043
5074
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
5044
5075
|
*
|
|
@@ -5052,7 +5083,7 @@ class Ht extends h {
|
|
|
5052
5083
|
});
|
|
5053
5084
|
}
|
|
5054
5085
|
}
|
|
5055
|
-
class
|
|
5086
|
+
class jt extends h {
|
|
5056
5087
|
/**
|
|
5057
5088
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
5058
5089
|
*
|
|
@@ -5123,7 +5154,7 @@ class zt extends h {
|
|
|
5123
5154
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
|
|
5124
5155
|
}
|
|
5125
5156
|
}
|
|
5126
|
-
class
|
|
5157
|
+
class Wt {
|
|
5127
5158
|
/**
|
|
5128
5159
|
* Возвращает диапазон дат по умолчанию.
|
|
5129
5160
|
*/
|
|
@@ -5179,7 +5210,7 @@ const V = class V {
|
|
|
5179
5210
|
*/
|
|
5180
5211
|
t(V, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5181
5212
|
let Be = V;
|
|
5182
|
-
class
|
|
5213
|
+
class Et {
|
|
5183
5214
|
/**
|
|
5184
5215
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5185
5216
|
*/
|
|
@@ -5195,7 +5226,7 @@ class Wt {
|
|
|
5195
5226
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5196
5227
|
}
|
|
5197
5228
|
}
|
|
5198
|
-
class
|
|
5229
|
+
class ut extends se {
|
|
5199
5230
|
/**
|
|
5200
5231
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5201
5232
|
*/
|
|
@@ -5268,7 +5299,7 @@ class lr extends cr {
|
|
|
5268
5299
|
}, this.attachedUser = new G(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.pendingAt = f(e == null ? void 0 : e.pendingAt) ? y(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = f(e == null ? void 0 : e.processedAt) ? y(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;
|
|
5269
5300
|
}
|
|
5270
5301
|
}
|
|
5271
|
-
class
|
|
5302
|
+
class pt extends B {
|
|
5272
5303
|
/**
|
|
5273
5304
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
5274
5305
|
*
|
|
@@ -5351,7 +5382,7 @@ class ut extends B {
|
|
|
5351
5382
|
this.product = new K(e.product), this.quantity = e.quantity, this.currency = e.currency, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.cost = e.cost, this.costRub = e.costRub, this.marker = e.marker, this.height = e.height, this.length = e.length, this.width = e.width, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams, this.sawing = e.sawing;
|
|
5352
5383
|
}
|
|
5353
5384
|
}
|
|
5354
|
-
class
|
|
5385
|
+
class ht extends lr {
|
|
5355
5386
|
/**
|
|
5356
5387
|
* Инициализирует экземпляр класса {@link Order}.
|
|
5357
5388
|
*
|
|
@@ -5391,10 +5422,10 @@ class pt extends lr {
|
|
|
5391
5422
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
5392
5423
|
*/
|
|
5393
5424
|
t(this, "isAllowProcessingWithoutPayment");
|
|
5394
|
-
this.products = (e.products ?? []).map((s) => new
|
|
5425
|
+
this.products = (e.products ?? []).map((s) => new pt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ge.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
5395
5426
|
}
|
|
5396
5427
|
}
|
|
5397
|
-
class
|
|
5428
|
+
class Vt extends ve {
|
|
5398
5429
|
/**
|
|
5399
5430
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
5400
5431
|
*
|
|
@@ -5425,7 +5456,7 @@ class Et extends ve {
|
|
|
5425
5456
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
5426
5457
|
*/
|
|
5427
5458
|
getOrder(r) {
|
|
5428
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
5459
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new ht(e.data));
|
|
5429
5460
|
}
|
|
5430
5461
|
}
|
|
5431
5462
|
class De {
|
|
@@ -5475,7 +5506,7 @@ const $e = (n) => {
|
|
|
5475
5506
|
const r = {};
|
|
5476
5507
|
return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
|
|
5477
5508
|
};
|
|
5478
|
-
class
|
|
5509
|
+
class Jt extends h {
|
|
5479
5510
|
/**
|
|
5480
5511
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
5481
5512
|
*
|
|
@@ -5536,7 +5567,7 @@ class Vt extends h {
|
|
|
5536
5567
|
);
|
|
5537
5568
|
}
|
|
5538
5569
|
}
|
|
5539
|
-
class
|
|
5570
|
+
class gt {
|
|
5540
5571
|
/**
|
|
5541
5572
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
5542
5573
|
*
|
|
@@ -5590,10 +5621,10 @@ class ze {
|
|
|
5590
5621
|
*/
|
|
5591
5622
|
t(this, "meta");
|
|
5592
5623
|
var e;
|
|
5593
|
-
this.resourceType = new tr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new
|
|
5624
|
+
this.resourceType = new tr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new gt(s))) ?? [];
|
|
5594
5625
|
}
|
|
5595
5626
|
}
|
|
5596
|
-
class
|
|
5627
|
+
class Kt extends h {
|
|
5597
5628
|
/**
|
|
5598
5629
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
5599
5630
|
*
|
|
@@ -5700,7 +5731,7 @@ const P = fe("__references_private", () => {
|
|
|
5700
5731
|
*/
|
|
5701
5732
|
priceCoefficientsReference: l
|
|
5702
5733
|
};
|
|
5703
|
-
}),
|
|
5734
|
+
}), Qt = fe("references", () => {
|
|
5704
5735
|
const n = v(() => {
|
|
5705
5736
|
const l = P();
|
|
5706
5737
|
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(A).getChannelPrimaryInterest().then((g) => {
|
|
@@ -5768,7 +5799,7 @@ const P = fe("__references_private", () => {
|
|
|
5768
5799
|
}).catch(m)), l.deliveryTypeReference;
|
|
5769
5800
|
}), x = v(() => {
|
|
5770
5801
|
const l = P();
|
|
5771
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(
|
|
5802
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(ut).getManagers().then((g) => {
|
|
5772
5803
|
l.managersList = g;
|
|
5773
5804
|
}).catch(m)), l.managersList;
|
|
5774
5805
|
}), k = v(() => {
|
|
@@ -5857,7 +5888,7 @@ const P = fe("__references_private", () => {
|
|
|
5857
5888
|
*/
|
|
5858
5889
|
priceCoefficientsReference: O
|
|
5859
5890
|
};
|
|
5860
|
-
}),
|
|
5891
|
+
}), mt = fe("__user_state_private", () => {
|
|
5861
5892
|
const n = C({}), r = C(void 0);
|
|
5862
5893
|
return {
|
|
5863
5894
|
/**
|
|
@@ -5869,18 +5900,18 @@ const P = fe("__references_private", () => {
|
|
|
5869
5900
|
*/
|
|
5870
5901
|
currentUser: r
|
|
5871
5902
|
};
|
|
5872
|
-
}),
|
|
5903
|
+
}), Yt = fe("user_state", () => ({
|
|
5873
5904
|
/**
|
|
5874
5905
|
* Данные о текущем пользователе.
|
|
5875
5906
|
*/
|
|
5876
5907
|
currentUser: v(() => {
|
|
5877
|
-
const r =
|
|
5878
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(
|
|
5908
|
+
const r = mt();
|
|
5909
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(rt).getCurrentUser().then((e) => {
|
|
5879
5910
|
r.currentUser = e;
|
|
5880
5911
|
}).catch(m).finally(m)), r.currentUser;
|
|
5881
5912
|
})
|
|
5882
5913
|
}));
|
|
5883
|
-
class
|
|
5914
|
+
class Xt extends h {
|
|
5884
5915
|
/**
|
|
5885
5916
|
* Возвращает подсказки по адресам.
|
|
5886
5917
|
*
|
|
@@ -5927,7 +5958,7 @@ class Yt extends h {
|
|
|
5927
5958
|
});
|
|
5928
5959
|
}
|
|
5929
5960
|
}
|
|
5930
|
-
class
|
|
5961
|
+
class Zt {
|
|
5931
5962
|
/**
|
|
5932
5963
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
5933
5964
|
*
|
|
@@ -5951,63 +5982,63 @@ class Xt {
|
|
|
5951
5982
|
}
|
|
5952
5983
|
}
|
|
5953
5984
|
export {
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5985
|
+
Vr as AnyReference,
|
|
5986
|
+
$t as AppBaseConfig,
|
|
5987
|
+
a as AppConfigProvider,
|
|
5957
5988
|
Te as BankAccount,
|
|
5958
5989
|
ve as BasePaginationProvider,
|
|
5959
5990
|
Fr as CalculationTypeEnum,
|
|
5960
5991
|
ce as Cart,
|
|
5961
5992
|
Or as CartItem,
|
|
5962
5993
|
Nr as CartItemBase,
|
|
5963
|
-
|
|
5964
|
-
|
|
5994
|
+
at as CartProvider,
|
|
5995
|
+
St as CatalogProvider,
|
|
5965
5996
|
Je as CatalogableItem,
|
|
5966
5997
|
q as Category,
|
|
5967
5998
|
Ue as CategoryPricingRule,
|
|
5968
5999
|
rr as ChannelPrimaryInterest,
|
|
5969
|
-
|
|
6000
|
+
_t as City,
|
|
5970
6001
|
de as CityWithRegionAndCountry,
|
|
5971
6002
|
Fe as Client,
|
|
5972
|
-
|
|
6003
|
+
ct as ClientAdditionalData,
|
|
5973
6004
|
pe as ClientCategory,
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
6005
|
+
Ht as ClientDataProvider,
|
|
6006
|
+
It as ClientPriceProvider,
|
|
6007
|
+
Lt as ClientPriceTemplateProvider,
|
|
5977
6008
|
K as ClientProduct,
|
|
5978
|
-
|
|
5979
|
-
|
|
6009
|
+
dt as ClientProductCategoryDataProvider,
|
|
6010
|
+
Nt as ClientProductDataProvider,
|
|
5980
6011
|
oe as ClientShortInfo,
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
6012
|
+
st as ClientsAdditionalDataRequestTypeEnum,
|
|
6013
|
+
Mt as ClientsListFilters,
|
|
6014
|
+
jt as ConfiguratorProvider,
|
|
5984
6015
|
be as Contact,
|
|
5985
6016
|
jr as ContactLinks,
|
|
5986
6017
|
F as ContactPerson,
|
|
5987
|
-
|
|
5988
|
-
|
|
6018
|
+
ot as ContactPersonRelated,
|
|
6019
|
+
Jr as ContactPosition,
|
|
5989
6020
|
Ae as ContactRelation,
|
|
5990
6021
|
ir as ContragentBase,
|
|
5991
6022
|
ge as ContragentFactory,
|
|
5992
6023
|
nr as ContragentIc,
|
|
5993
|
-
|
|
5994
|
-
|
|
6024
|
+
it as ContragentPerson,
|
|
6025
|
+
nt as ContragentUlNr,
|
|
5995
6026
|
or as ContragentUlR,
|
|
5996
6027
|
ke as CostSourceEnum,
|
|
5997
6028
|
Q as Country,
|
|
5998
6029
|
he as Currency,
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6030
|
+
Xt as DataSuggestionProvider,
|
|
6031
|
+
Ft as DataTablePagination,
|
|
6032
|
+
lt as DataTablePaginationRequestParams,
|
|
6033
|
+
Bt as DataTableSortRequestParams,
|
|
6034
|
+
Wt as DateTimeProvider,
|
|
6004
6035
|
Hr as DeletableNamedIdentity,
|
|
6005
6036
|
me as DeliveryAddress,
|
|
6006
6037
|
J as DeliveryType,
|
|
6007
|
-
|
|
6038
|
+
Dt as DetailedJwtPayload,
|
|
6008
6039
|
qr as DeviceTypeResolutionConfig,
|
|
6009
6040
|
zr as DiscountShortInfo,
|
|
6010
|
-
|
|
6041
|
+
Zt as FieldValidationResultData,
|
|
6011
6042
|
ie as FilterGroup,
|
|
6012
6043
|
Ge as FilterItem,
|
|
6013
6044
|
Ne as FilterOpEnum,
|
|
@@ -6021,24 +6052,24 @@ export {
|
|
|
6021
6052
|
ue as JwtPayload,
|
|
6022
6053
|
Ce as Manager,
|
|
6023
6054
|
re as ManagerCommon,
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6055
|
+
Et as ManagerDataFactory,
|
|
6056
|
+
ut as ManagerDataProvider,
|
|
6057
|
+
gt as MetaTagItem,
|
|
6058
|
+
$ as NamedIdentity,
|
|
6028
6059
|
M as Opf,
|
|
6029
6060
|
T as OpfEnum,
|
|
6030
|
-
|
|
6061
|
+
ht as Order,
|
|
6031
6062
|
lr as OrderInfo,
|
|
6032
|
-
|
|
6033
|
-
|
|
6063
|
+
Kr as OrderPaymentStatus,
|
|
6064
|
+
pt as OrderProduct,
|
|
6034
6065
|
cr as OrderShortInfo,
|
|
6035
|
-
|
|
6036
|
-
|
|
6066
|
+
Qr as OrderStatus,
|
|
6067
|
+
Vt as OrdersDataProvider,
|
|
6037
6068
|
Y as PartnerGroup,
|
|
6038
|
-
|
|
6039
|
-
|
|
6069
|
+
Yr as PaymentType,
|
|
6070
|
+
Tt as PreferencesStorageProvider,
|
|
6040
6071
|
De as PriceAnalyze,
|
|
6041
|
-
|
|
6072
|
+
Jt as PriceAnalyzeProvider,
|
|
6042
6073
|
ye as PriceCoefficient,
|
|
6043
6074
|
Ke as PriceCoefficientEnum,
|
|
6044
6075
|
j as PriceTemplate,
|
|
@@ -6046,22 +6077,22 @@ export {
|
|
|
6046
6077
|
X as PriceTemplateClient,
|
|
6047
6078
|
Xe as PriceTemplateICatalogableItem,
|
|
6048
6079
|
Re as PriceTemplateProduct,
|
|
6049
|
-
|
|
6080
|
+
Ot as PriceTemplateProvider,
|
|
6050
6081
|
ee as PricingRole,
|
|
6051
|
-
|
|
6082
|
+
qt as PricingRoleProvider,
|
|
6052
6083
|
ae as PrimaryCatalogableItem,
|
|
6053
6084
|
b as Product,
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6085
|
+
xt as ProductCategoryDataProvider,
|
|
6086
|
+
kt as ProductDataProvider,
|
|
6087
|
+
Xr as ProductFileType,
|
|
6057
6088
|
Le as ProductPriceCoefficient,
|
|
6058
|
-
|
|
6059
|
-
|
|
6089
|
+
tt as ProductPriceHistory,
|
|
6090
|
+
Ut as PropertiesProvider,
|
|
6060
6091
|
Z as Property,
|
|
6061
6092
|
er as PropertyType,
|
|
6062
6093
|
Br as PropertyTypeEnum,
|
|
6063
6094
|
H as PropertyValue,
|
|
6064
|
-
|
|
6095
|
+
Gt as RecommendationsDataProvider,
|
|
6065
6096
|
qe as RecommendationsList,
|
|
6066
6097
|
w as Reference,
|
|
6067
6098
|
A as ReferenceDataProvider,
|
|
@@ -6070,23 +6101,24 @@ export {
|
|
|
6070
6101
|
S as SalesDirection,
|
|
6071
6102
|
Gr as SentryConfig,
|
|
6072
6103
|
ze as Seo,
|
|
6073
|
-
|
|
6104
|
+
Kt as SeoDataProvider,
|
|
6074
6105
|
sr as SourcePrimaryInterest,
|
|
6075
6106
|
xr as StockCount,
|
|
6076
|
-
|
|
6107
|
+
bt as TemplatesListFilters,
|
|
6077
6108
|
xe as TypedInstanceFactory,
|
|
6078
6109
|
Be as UnitsHelper,
|
|
6079
|
-
|
|
6110
|
+
zt as UnknownClientDataProvider,
|
|
6080
6111
|
Ye as UpdatableNamedIdentity,
|
|
6081
|
-
|
|
6112
|
+
et as User,
|
|
6082
6113
|
Ze as UserCommonInfo,
|
|
6083
|
-
|
|
6114
|
+
rt as UserDataProvider,
|
|
6115
|
+
Wr as UserPricingRole,
|
|
6084
6116
|
G as UserShortInfo,
|
|
6085
|
-
|
|
6117
|
+
Zr as UserTypeEnum,
|
|
6086
6118
|
Mr as VersionConfig,
|
|
6087
6119
|
we as Warehouse,
|
|
6088
6120
|
Me as findCatalogItemByIdRecursive,
|
|
6089
|
-
|
|
6090
|
-
|
|
6121
|
+
Qt as useReferencesStore,
|
|
6122
|
+
Yt as useUserStateStore
|
|
6091
6123
|
};
|
|
6092
6124
|
//# sourceMappingURL=sc-common-lib.js.map
|