@snabcentr/common-lib 1.55.0 → 1.56.0

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.
@@ -1,7 +1,7 @@
1
1
  var tr = Object.defineProperty;
2
2
  var sr = (n, r, e) => r in n ? tr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
3
  var t = (n, r, e) => sr(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { constant as ir, isUndefined as nr, isString as m, cloneDeep as or, noop as y, toLower as cr, map as ne, forEach as lr, isNil as Ge, isDate as pr, isFunction as Me, isEmpty as ur } from "lodash-es";
4
+ import { constant as ir, isUndefined as nr, isString as m, cloneDeep as or, noop as y, toLower as cr, map as oe, forEach as lr, isNil as de, isDate as pr, isFunction as Me, isEmpty as ur } from "lodash-es";
5
5
  import { parseISO as f, format as z, addSeconds as hr, isAfter as gr, startOfToday as Fe, addBusinessDays as mr, endOfTomorrow as fr, startOfTomorrow as yr, endOfYesterday as wr, startOfYesterday as Cr, endOfToday as vr, endOfDay as Pr, startOfDay as Rr } from "date-fns";
6
6
  import Dr from "axios";
7
7
  import { objectToSnake as Ie, objectToCamel as $r } from "ts-case-convert";
@@ -84,7 +84,7 @@ class De extends He {
84
84
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
85
85
  }
86
86
  }
87
- class te extends De {
87
+ class se extends De {
88
88
  /**
89
89
  * Инициализирует экземпляр класса {@link BaseCategory}.
90
90
  *
@@ -104,7 +104,11 @@ class te extends De {
104
104
  * Список свойств. Число свойств в объекте не ограничено.
105
105
  */
106
106
  t(this, "properties");
107
- this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category";
107
+ /**
108
+ * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
109
+ */
110
+ t(this, "currencyRates");
111
+ this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e == null ? void 0 : e.currencyRates;
108
112
  }
109
113
  }
110
114
  var ze = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(ze || {});
@@ -447,7 +451,7 @@ class _r extends F {
447
451
  * Признак того, что позиция является дополнительной продажей.
448
452
  */
449
453
  t(this, "isAdditionalSale");
450
- this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new te(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && or(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
454
+ this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new se(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && or(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
451
455
  }
452
456
  }
453
457
  class ar extends _r {
@@ -500,7 +504,7 @@ class ar extends _r {
500
504
  this.currency = 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;
501
505
  }
502
506
  }
503
- class ie {
507
+ class ne {
504
508
  /**
505
509
  * Инициализирует экземпляр класса {@link Cart}.
506
510
  *
@@ -724,7 +728,7 @@ class ae {
724
728
  return new r(e);
725
729
  }
726
730
  }
727
- const a = class a {
731
+ const S = class S {
728
732
  /**
729
733
  * Инициализирует экземпляр класса {@link HttpRequester}.
730
734
  *
@@ -745,7 +749,7 @@ const a = class a {
745
749
  */
746
750
  t(this, "defaultInstanceNotificationErrorResponseHandler", y);
747
751
  const s = T.getConfig().version;
748
- this.defaultInstanceNotificationErrorResponseHandler = a.baseDefaultNotificationErrorResponseHandler, this.httpClient = Dr.create({
752
+ this.defaultInstanceNotificationErrorResponseHandler = S.baseDefaultNotificationErrorResponseHandler, this.httpClient = Dr.create({
749
753
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
750
754
  baseURL: r,
751
755
  headers: {
@@ -760,7 +764,7 @@ const a = class a {
760
764
  ), this.httpClient.interceptors.response.use(
761
765
  (i) => (i.data && (i.data = $r(i.data)), i),
762
766
  // Возвращаем изменённую структуру сообщения об ошибке.
763
- (i) => a.convertHttpErrorResponse(i)
767
+ (i) => S.convertHttpErrorResponse(i)
764
768
  );
765
769
  }
766
770
  /**
@@ -769,7 +773,7 @@ const a = class a {
769
773
  * @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
770
774
  */
771
775
  static setBaseDefaultNotificationErrorResponseHandler(r) {
772
- a.baseDefaultNotificationErrorResponseHandler = r;
776
+ S.baseDefaultNotificationErrorResponseHandler = r;
773
777
  }
774
778
  /**
775
779
  * Возвращает экземпляр объекта текущего класса.
@@ -777,7 +781,7 @@ const a = class a {
777
781
  * @param type Тип данных, которыми оперирует метод.
778
782
  */
779
783
  static getInstance(r) {
780
- return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = ae.simpleInstanceInitializer(r)), a.instances[r.name];
784
+ return Object.prototype.hasOwnProperty.call(S.instances, r.name) || (S.instances[r.name] = ae.simpleInstanceInitializer(r)), S.instances[r.name];
781
785
  }
782
786
  /**
783
787
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -872,15 +876,15 @@ const a = class a {
872
876
  * Экземпляр объекта текущего класса.
873
877
  */
874
878
  // eslint-disable-next-line no-use-before-define
875
- t(a, "instances", {}), /**
879
+ t(S, "instances", {}), /**
876
880
  * Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
877
881
  *
878
882
  * Параметры:
879
883
  * - error Данные об ошибке.
880
884
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
881
885
  */
882
- t(a, "baseDefaultNotificationErrorResponseHandler", y);
883
- let $e = a;
886
+ t(S, "baseDefaultNotificationErrorResponseHandler", y);
887
+ let $e = S;
884
888
  const j = class j extends $e {
885
889
  /**
886
890
  * Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
@@ -961,7 +965,7 @@ class ft extends u {
961
965
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
962
966
  */
963
967
  getCart(r) {
964
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ie(e.data));
968
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ne(e.data));
965
969
  }
966
970
  /**
967
971
  * Удаляет всё содержимое корзины.
@@ -999,7 +1003,7 @@ class ft extends u {
999
1003
  isAdditionalSale: e.isAdditionalSale,
1000
1004
  ...e.configuratorParams
1001
1005
  },
1002
- (i) => new ie(i.data),
1006
+ (i) => new ne(i.data),
1003
1007
  s
1004
1008
  );
1005
1009
  }
@@ -1029,7 +1033,7 @@ class ft extends u {
1029
1033
  isAdditionalSale: e.isAdditionalSale,
1030
1034
  ...e.configuratorParams
1031
1035
  },
1032
- (i) => new ie(i.data),
1036
+ (i) => new ne(i.data),
1033
1037
  s
1034
1038
  );
1035
1039
  }
@@ -1052,11 +1056,11 @@ class ft extends u {
1052
1056
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
1053
1057
  */
1054
1058
  addCartItemFromCSV(r) {
1055
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new ie(e.data));
1059
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new ne(e.data));
1056
1060
  }
1057
1061
  }
1058
1062
  var kr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(kr || {}), Se = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Se || {}), Nr = /* @__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))(Nr || {});
1059
- class q extends te {
1063
+ class q extends se {
1060
1064
  /**
1061
1065
  * Инициализирует экземпляр класса {@link Category}.
1062
1066
  *
@@ -1253,7 +1257,7 @@ class J extends _ {
1253
1257
  this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Se.Product, this.discount = e != null && e.discount ? new Ur(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new B(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;
1254
1258
  }
1255
1259
  }
1256
- class dr {
1260
+ class Gr {
1257
1261
  /**
1258
1262
  * Инициализирует экземпляр класса {@link ContactLinks}.
1259
1263
  *
@@ -1271,9 +1275,9 @@ class dr {
1271
1275
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1272
1276
  }
1273
1277
  }
1274
- class S extends w {
1278
+ class a extends w {
1275
1279
  }
1276
- class oe extends D {
1280
+ class ee extends D {
1277
1281
  /**
1278
1282
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1279
1283
  *
@@ -1284,7 +1288,7 @@ class oe extends D {
1284
1288
  /**
1285
1289
  * Направление продаж.
1286
1290
  */
1287
- t(this, "salesDirection", new S());
1291
+ t(this, "salesDirection", new a());
1288
1292
  /**
1289
1293
  * URI путь к фотографии пользователя.
1290
1294
  */
@@ -1297,10 +1301,10 @@ class oe extends D {
1297
1301
  * Признак того, что менеджер является основным для клиента.
1298
1302
  */
1299
1303
  t(this, "isDefault");
1300
- e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new dr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1304
+ e && (this.salesDirection = new a(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Gr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1301
1305
  }
1302
1306
  }
1303
- class ye extends oe {
1307
+ class ye extends ee {
1304
1308
  /**
1305
1309
  * Инициализирует экземпляр класса {@link Manager}.
1306
1310
  *
@@ -1331,7 +1335,7 @@ class ye extends oe {
1331
1335
  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;
1332
1336
  }
1333
1337
  }
1334
- class Gr extends te {
1338
+ class dr extends se {
1335
1339
  /**
1336
1340
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1337
1341
  *
@@ -1362,7 +1366,7 @@ class Gr extends te {
1362
1366
  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 ye(e.manager) : void 0;
1363
1367
  }
1364
1368
  }
1365
- class ce extends Gr {
1369
+ class ce extends dr {
1366
1370
  /**
1367
1371
  * Инициализирует экземпляр класса {@link ClientCategory}.
1368
1372
  *
@@ -1412,12 +1416,12 @@ class Ce extends je {
1412
1416
  * Базовые данные о продукте.
1413
1417
  */
1414
1418
  t(this, "productCategory");
1415
- this.productCategory = new te(e == null ? void 0 : e.productCategory);
1419
+ this.productCategory = new se(e == null ? void 0 : e.productCategory);
1416
1420
  }
1417
1421
  }
1418
1422
  class Q extends w {
1419
1423
  }
1420
- class ee extends w {
1424
+ class re extends w {
1421
1425
  /**
1422
1426
  * Инициализирует экземпляр класса {@link Region}.
1423
1427
  *
@@ -1443,8 +1447,8 @@ class le extends w {
1443
1447
  /**
1444
1448
  * Данные о регионе, в котором расположен город.
1445
1449
  */
1446
- t(this, "region", new ee());
1447
- e && (this.region = new ee(e.region));
1450
+ t(this, "region", new re());
1451
+ e && (this.region = new re(e.region));
1448
1452
  }
1449
1453
  }
1450
1454
  class Ve extends D {
@@ -1483,10 +1487,10 @@ class Ve extends D {
1483
1487
  * Признак активности учетной записи пользователя.
1484
1488
  */
1485
1489
  t(this, "isActive");
1486
- this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new S(e.salesDirection) : void 0, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = m(e == null ? void 0 : e.lastLoginAt) ? f(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1490
+ this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new a(e.salesDirection) : void 0, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = m(e == null ? void 0 : e.lastLoginAt) ? f(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1487
1491
  }
1488
1492
  }
1489
- class se extends Ve {
1493
+ class ie extends Ve {
1490
1494
  /**
1491
1495
  * Инициализирует экземпляр класса {@link Client}.
1492
1496
  *
@@ -1528,7 +1532,7 @@ class se extends Ve {
1528
1532
  * Список менеджеров клиента.
1529
1533
  */
1530
1534
  t(this, "managers");
1531
- this.salesDirection = new S(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 le(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((i) => new oe(i))) ?? [];
1535
+ this.salesDirection = new a(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 le(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((i) => new ee(i))) ?? [];
1532
1536
  }
1533
1537
  }
1534
1538
  class Y extends F {
@@ -1555,7 +1559,7 @@ class Y extends F {
1555
1559
  * Данные шаблона прайс-листа.
1556
1560
  */
1557
1561
  t(this, "priceTemplate");
1558
- this.startAt = m(e == null ? void 0 : e.startAt) ? f(e.startAt) : (e == null ? void 0 : e.startAt) ?? /* @__PURE__ */ new Date(), this.endAt = m(e == null ? void 0 : e.endAt) ? f(e.endAt) : (e == null ? void 0 : e.endAt) ?? /* @__PURE__ */ new Date(), this.client = new se(e == null ? void 0 : e.client), this.priceTemplate = new B(e == null ? void 0 : e.priceTemplate);
1562
+ this.startAt = m(e == null ? void 0 : e.startAt) ? f(e.startAt) : (e == null ? void 0 : e.startAt) ?? /* @__PURE__ */ new Date(), this.endAt = m(e == null ? void 0 : e.endAt) ? f(e.endAt) : (e == null ? void 0 : e.endAt) ?? /* @__PURE__ */ new Date(), this.client = new ie(e == null ? void 0 : e.client), this.priceTemplate = new B(e == null ? void 0 : e.priceTemplate);
1559
1563
  }
1560
1564
  }
1561
1565
  class ve extends je {
@@ -1645,12 +1649,12 @@ class pe extends D {
1645
1649
  }
1646
1650
  }
1647
1651
  var b = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(b || {});
1648
- class d extends w {
1652
+ class G extends w {
1649
1653
  /**
1650
1654
  * Возвращает сгенерированную запись-описание физического лица.
1651
1655
  */
1652
1656
  static generatePersonItem() {
1653
- return new d({
1657
+ return new G({
1654
1658
  id: 1,
1655
1659
  guid: "",
1656
1660
  slug: b.Person,
@@ -1662,7 +1666,7 @@ class Hr extends w {
1662
1666
  }
1663
1667
  class zr extends w {
1664
1668
  }
1665
- class G extends w {
1669
+ class d extends w {
1666
1670
  }
1667
1671
  class Br extends w {
1668
1672
  }
@@ -1707,13 +1711,13 @@ class R extends u {
1707
1711
  * групп партнеров (направлений деятельности).
1708
1712
  */
1709
1713
  getPartnerGroup() {
1710
- return this.getTypedDataArrayRequester(G, "/internal/references/partner-group", !0);
1714
+ return this.getTypedDataArrayRequester(d, "/internal/references/partner-group", !0);
1711
1715
  }
1712
1716
  /**
1713
1717
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
1714
1718
  */
1715
1719
  getOpf() {
1716
- return this.getTypedDataArrayRequester(d, "/public/references/opf", !0);
1720
+ return this.getTypedDataArrayRequester(G, "/public/references/opf", !0);
1717
1721
  }
1718
1722
  /**
1719
1723
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
@@ -1743,7 +1747,7 @@ class R extends u {
1743
1747
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
1744
1748
  */
1745
1749
  getSalesDirections() {
1746
- return this.getTypedDataArrayRequester(S, "/public/references/sales-direction", !0);
1750
+ return this.getTypedDataArrayRequester(a, "/public/references/sales-direction", !0);
1747
1751
  }
1748
1752
  /**
1749
1753
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
@@ -1765,7 +1769,7 @@ class R extends u {
1765
1769
  * @param term Терм поиска.
1766
1770
  */
1767
1771
  searchRegion(r) {
1768
- return this.getTypedDataArrayRequester(ee, `/internal/references/region-with-country/search?term=${r}`);
1772
+ return this.getTypedDataArrayRequester(re, `/internal/references/region-with-country/search?term=${r}`);
1769
1773
  }
1770
1774
  /**
1771
1775
  * Выполняет поиск данных о странах по терму в названии.
@@ -1957,7 +1961,7 @@ class ke {
1957
1961
  * Минимальный коэффициент цены.
1958
1962
  */
1959
1963
  t(this, "minCoefficient");
1960
- this.role = new Z(r == null ? void 0 : r.role), this.category = new te(r == null ? void 0 : r.category), this.minCoefficient = new me(r == null ? void 0 : r.minCoefficient);
1964
+ this.role = new Z(r == null ? void 0 : r.role), this.category = new se(r == null ? void 0 : r.category), this.minCoefficient = new me(r == null ? void 0 : r.minCoefficient);
1961
1965
  }
1962
1966
  }
1963
1967
  class Pe {
@@ -1987,7 +1991,7 @@ class Pe {
1987
1991
  * Источник клиентской цены.
1988
1992
  */
1989
1993
  t(this, "source");
1990
- this.client = new se(r == null ? void 0 : r.client), this.product = new _(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) ?? Se.Product;
1994
+ this.client = new ie(r == null ? void 0 : r.client), this.product = new _(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) ?? Se.Product;
1991
1995
  }
1992
1996
  }
1993
1997
  class Ct extends u {
@@ -2370,7 +2374,7 @@ class Rt extends u {
2370
2374
  showHidden: s,
2371
2375
  withPriceCoefficients: e
2372
2376
  },
2373
- (i) => ne(i.data, (o) => new _(o))
2377
+ (i) => oe(i.data, (o) => new _(o))
2374
2378
  );
2375
2379
  }
2376
2380
  /**
@@ -2433,7 +2437,7 @@ class Dt extends u {
2433
2437
  return this.get(
2434
2438
  `/internal/catalog/products/${r}/coefficients`,
2435
2439
  {},
2436
- (e) => ne(e.data, (s) => new _e(s))
2440
+ (e) => oe(e.data, (s) => new _e(s))
2437
2441
  );
2438
2442
  }
2439
2443
  /**
@@ -2446,7 +2450,7 @@ class Dt extends u {
2446
2450
  */
2447
2451
  getProductPriceHistory(r, e) {
2448
2452
  const s = {};
2449
- return Ge(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ne(i.data, (o) => new Jr(o)));
2453
+ return de(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => oe(i.data, (o) => new Jr(o)));
2450
2454
  }
2451
2455
  /**
2452
2456
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -2522,7 +2526,7 @@ class $t extends u {
2522
2526
  showHidden: i,
2523
2527
  withPriceCoefficients: s
2524
2528
  },
2525
- (o) => ne(o.data, (l) => new J(l))
2529
+ (o) => oe(o.data, (l) => new J(l))
2526
2530
  );
2527
2531
  }
2528
2532
  }
@@ -2582,7 +2586,7 @@ class Ne {
2582
2586
  return r.value = pr(this.value) ? z(this.value, T.getConfig().dateFormats.api) : this.value, r;
2583
2587
  }
2584
2588
  }
2585
- class re {
2589
+ class te {
2586
2590
  /**
2587
2591
  * Инициализирует экземпляр класса {@link FilterGroup}.
2588
2592
  *
@@ -2602,7 +2606,7 @@ class re {
2602
2606
  */
2603
2607
  t(this, "groups");
2604
2608
  var e, s;
2605
- 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 Ne(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new re(i))) ?? [];
2609
+ 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 Ne(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new te(i))) ?? [];
2606
2610
  }
2607
2611
  /**
2608
2612
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2613,7 +2617,7 @@ class re {
2613
2617
  return {
2614
2618
  groupOp: this.groupOp,
2615
2619
  filters: this.filters.map((r) => r instanceof Ne && Me(r.toPrimitive) ? r.toPrimitive() : r),
2616
- groups: this.groups.map((r) => r instanceof re ? r.toPrimitive() : r)
2620
+ groups: this.groups.map((r) => r instanceof te ? r.toPrimitive() : r)
2617
2621
  };
2618
2622
  }
2619
2623
  }
@@ -2634,7 +2638,7 @@ class we extends u {
2634
2638
  page: (i == null ? void 0 : i.page) ?? 1,
2635
2639
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2636
2640
  };
2637
- return e && (g.filters = JSON.stringify((e instanceof re ? e : new re(e)).toPrimitive())), ur(s) || (g.sort = s), o && (g = { ...g, ...o }), this.get(r, g, l, p);
2641
+ return e && (g.filters = JSON.stringify((e instanceof te ? e : new te(e)).toPrimitive())), ur(s) || (g.sort = s), o && (g = { ...g, ...o }), this.get(r, g, l, p);
2638
2642
  }
2639
2643
  }
2640
2644
  class Tt extends we {
@@ -3470,19 +3474,19 @@ class Ye extends D {
3470
3474
  /**
3471
3475
  * Данные о менеджере.
3472
3476
  */
3473
- t(this, "manager", new oe());
3477
+ t(this, "manager", new ee());
3474
3478
  /**
3475
3479
  * Данные об организационно-правовой форме.
3476
3480
  */
3477
- t(this, "opf", d.generatePersonItem());
3481
+ t(this, "opf", G.generatePersonItem());
3478
3482
  /**
3479
3483
  * Направление продаж.
3480
3484
  */
3481
- t(this, "salesDirection", new S());
3485
+ t(this, "salesDirection", new a());
3482
3486
  /**
3483
3487
  * Группа партнеров (направление деятельности).
3484
3488
  */
3485
- t(this, "partnerGroup", new G());
3489
+ t(this, "partnerGroup", new d());
3486
3490
  /**
3487
3491
  * Список контактных лиц контрагента.
3488
3492
  */
@@ -3516,7 +3520,7 @@ class Ye extends D {
3516
3520
  */
3517
3521
  t(this, "updater");
3518
3522
  if (e) {
3519
- if (this.opf = new d(e.opf), this.salesDirection = new S(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e.createdAt, this.creator = e.creator ? new U(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new U(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new G(e.partnerGroup)), e.manager && (this.manager = new oe(e.manager)), e.contacts) {
3523
+ if (this.opf = new G(e.opf), this.salesDirection = new a(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e.createdAt, this.creator = e.creator ? new U(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new U(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new d(e.partnerGroup)), e.manager && (this.manager = new ee(e.manager)), e.contacts) {
3520
3524
  const s = [];
3521
3525
  e.contacts.forEach((i) => {
3522
3526
  s.push(new M(i));
@@ -3724,7 +3728,7 @@ class he extends qr {
3724
3728
  this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Be(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new M(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3725
3729
  }
3726
3730
  }
3727
- class qe extends se {
3731
+ class qe extends ie {
3728
3732
  /**
3729
3733
  * Инициализирует экземпляр класса {@link Client}.
3730
3734
  *
@@ -3778,7 +3782,7 @@ class qe extends se {
3778
3782
  * Дополнительные данные о клиенте.
3779
3783
  */
3780
3784
  t(this, "extraData");
3781
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => ue.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new G(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new M(p))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((p) => new he(p))) ?? [], this.channelPrimaryInterest = new Je(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ee(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(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 fe(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3785
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => ue.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new d(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new M(p))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((p) => new he(p))) ?? [], this.channelPrimaryInterest = new Je(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ee(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(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 fe(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3782
3786
  }
3783
3787
  }
3784
3788
  class E {
@@ -3891,7 +3895,7 @@ class Lt {
3891
3895
  */
3892
3896
  t(this, "lastOrder");
3893
3897
  var e, s, i;
3894
- this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.city = new le(r == null ? void 0 : r.city), this.region = new ee(r == null ? void 0 : r.region), this.country = new Q(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new E(r == null ? void 0 : r.createdAt), this.lastLoginDate = new E(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((o) => new ye(o)) : [], this.salesDirection = new S(r == null ? void 0 : r.salesDirection), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new d(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new K(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroup = new G(r == null ? void 0 : r.partnerGroup), this.contact = new be(r == null ? void 0 : r.contact), this.lastOrder = {
3898
+ this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.city = new le(r == null ? void 0 : r.city), this.region = new re(r == null ? void 0 : r.region), this.country = new Q(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new E(r == null ? void 0 : r.createdAt), this.lastLoginDate = new E(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((o) => new ye(o)) : [], this.salesDirection = new a(r == null ? void 0 : r.salesDirection), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new G(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new K(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroup = new d(r == null ? void 0 : r.partnerGroup), this.contact = new be(r == null ? void 0 : r.contact), this.lastOrder = {
3895
3899
  createdAt: new E((e = r == null ? void 0 : r.lastOrder) == null ? void 0 : e.createdAt),
3896
3900
  creator: (s = r == null ? void 0 : r.lastOrder) == null ? void 0 : s.creator,
3897
3901
  isApproved: (i = r == null ? void 0 : r.lastOrder) == null ? void 0 : i.isApproved
@@ -3917,7 +3921,7 @@ class Lt {
3917
3921
  this.city = new le();
3918
3922
  break;
3919
3923
  case "region":
3920
- this.region = new ee();
3924
+ this.region = new re();
3921
3925
  break;
3922
3926
  case "isActive":
3923
3927
  this.isActive = !0;
@@ -3938,16 +3942,16 @@ class Lt {
3938
3942
  this.managers = [];
3939
3943
  break;
3940
3944
  case "salesDirection":
3941
- this.salesDirection = new S();
3945
+ this.salesDirection = new a();
3942
3946
  break;
3943
3947
  case "contragentType":
3944
- this.contragentType = new d();
3948
+ this.contragentType = new G();
3945
3949
  break;
3946
3950
  case "preferredDeliveryType":
3947
3951
  this.preferredDeliveryType = new K();
3948
3952
  break;
3949
3953
  case "partnerGroup":
3950
- this.partnerGroup = new G();
3954
+ this.partnerGroup = new d();
3951
3955
  break;
3952
3956
  case "contact":
3953
3957
  this.contact = new be();
@@ -3965,7 +3969,7 @@ class Lt {
3965
3969
  return Object.keys(this).forEach((l) => {
3966
3970
  const p = this[l];
3967
3971
  // eslint-disable-next-line prettier/prettier
3968
- Ge(p) || m(p) && p.trim().length === 0 || Me(p.isNewRec) && p.isNewRec() || (r[l] = p);
3972
+ de(p) || m(p) && p.trim().length === 0 || Me(p.isNewRec) && p.isNewRec() || (r[l] = p);
3969
3973
  }), !((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.lastLoginDate) != null && i.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
3970
3974
  }
3971
3975
  }
@@ -3992,228 +3996,7 @@ class er extends F {
3992
3996
  this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new U(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
3993
3997
  }
3994
3998
  }
3995
- class rr extends er {
3996
- /**
3997
- * Инициализирует экземпляр класса {@link OrderInfo}.
3998
- *
3999
- * @param data Данные для первоначальной инициализации.
4000
- */
4001
- constructor(e) {
4002
- var s, i, o, l, p, g, $, A;
4003
- super(e);
4004
- /**
4005
- * Краткие данные о клиенте.
4006
- */
4007
- t(this, "client");
4008
- /**
4009
- * Данные об оплате заказа.
4010
- */
4011
- t(this, "payment");
4012
- /**
4013
- * Данные о доставке заказа.
4014
- */
4015
- t(this, "delivery");
4016
- /**
4017
- * Краткие данные о пользователе, за которым закреплен заказ.
4018
- */
4019
- t(this, "attachedUser");
4020
- /**
4021
- * Идентификатор статуса заказа.
4022
- */
4023
- t(this, "status");
4024
- /**
4025
- * Направление продаж заказа.
4026
- */
4027
- t(this, "salesDirection");
4028
- /**
4029
- * Дата и время начала обработки заказа.
4030
- */
4031
- t(this, "pendingAt");
4032
- /**
4033
- * Дата и время завершения обработки заказа.
4034
- */
4035
- t(this, "processedAt");
4036
- /**
4037
- * Признак того, что заказ создан из товаров, которые имеют признак "Под заказ".
4038
- */
4039
- t(this, "isOnOrder");
4040
- /**
4041
- * Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
4042
- */
4043
- t(this, "isNotInStock");
4044
- this.client = new se(e == null ? void 0 : e.client), this.payment = {
4045
- type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
4046
- status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
4047
- onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
4048
- }, this.delivery = {
4049
- type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
4050
- date: m((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? f(e.delivery.date) : ((g = e == null ? void 0 : e.delivery) == null ? void 0 : g.date) ?? /* @__PURE__ */ new Date(),
4051
- address: ($ = e == null ? void 0 : e.delivery) != null && $.address ? new he(e.delivery.address) : void 0,
4052
- warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new fe(e.delivery.warehouse) : void 0
4053
- }, this.attachedUser = new U(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 = m(e == null ? void 0 : e.pendingAt) ? f(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = m(e == null ? void 0 : e.processedAt) ? f(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;
4054
- }
4055
- }
4056
- class Zr extends F {
4057
- /**
4058
- * Инициализирует экземпляр класса {@link OrderProduct}.
4059
- *
4060
- * @param data Данные для первоначальной инициализации.
4061
- */
4062
- constructor(e) {
4063
- super(e);
4064
- /**
4065
- * Данные о продукте.
4066
- */
4067
- t(this, "product");
4068
- /**
4069
- * Количество товара/услуги.
4070
- */
4071
- t(this, "quantity");
4072
- /**
4073
- * Валюта товара или услуги.
4074
- */
4075
- t(this, "currency");
4076
- /**
4077
- * Стоимость единицы товара или услуги в валюте.
4078
- */
4079
- t(this, "costOne");
4080
- /**
4081
- * Стоимость единицы товара или услуги в рублях.
4082
- */
4083
- t(this, "costOneRub");
4084
- /**
4085
- * Итоговая стоимость товара или услуги в валюте.
4086
- */
4087
- t(this, "cost");
4088
- /**
4089
- * Итоговая стоимость товара или услуги в рублях.
4090
- */
4091
- t(this, "costRub");
4092
- /**
4093
- * Описание позиции.
4094
- */
4095
- t(this, "marker");
4096
- /**
4097
- * Высота товара.
4098
- */
4099
- t(this, "height");
4100
- /**
4101
- * Длина товара.
4102
- */
4103
- t(this, "length");
4104
- /**
4105
- * Ширина товара.
4106
- */
4107
- t(this, "width");
4108
- /**
4109
- * Идентификатор логической группы товаров/услуг.
4110
- */
4111
- t(this, "logicGroupId");
4112
- /**
4113
- * Направление продаж.
4114
- */
4115
- t(this, "salesDirection");
4116
- /**
4117
- * URL изображения со спецификацией.
4118
- */
4119
- t(this, "specificationImgUrl");
4120
- /**
4121
- * Название (slug) конфигуратора.
4122
- */
4123
- t(this, "configurator");
4124
- /**
4125
- * Параметры введенные в конфигуратор, при добавлении позиции в корзину.
4126
- */
4127
- t(this, "configuratorParams");
4128
- /**
4129
- * Вариант продольного распила.
4130
- *
4131
- * В качестве значения указывается ширина продукта,
4132
- * а в качестве ключа указывается код продукта,
4133
- * который соответствует указанной ширине. Количество не ограничено.
4134
- */
4135
- t(this, "sawing");
4136
- this.product = new J(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;
4137
- }
4138
- }
4139
- class et extends rr {
4140
- /**
4141
- * Инициализирует экземпляр класса {@link Order}.
4142
- *
4143
- * @param data Данные для первоначальной инициализации.
4144
- */
4145
- constructor(e) {
4146
- super(e);
4147
- /**
4148
- * Список продуктов заказа.
4149
- */
4150
- t(this, "products");
4151
- /**
4152
- * Список счетов заказа.
4153
- */
4154
- t(this, "invoices");
4155
- /**
4156
- * Комментарий клиента к заказу.
4157
- */
4158
- t(this, "comment");
4159
- /**
4160
- * Изображение, прикрепленное к заказу клиентом во время создания.
4161
- */
4162
- t(this, "image");
4163
- /**
4164
- * Данные о контрагенте.
4165
- */
4166
- t(this, "contragent");
4167
- /**
4168
- * Штрих-код заказа.
4169
- */
4170
- t(this, "barcode");
4171
- /**
4172
- * Данные об источнике заказа.
4173
- */
4174
- t(this, "orderSource");
4175
- /**
4176
- * Признак, что разрешена передача заказа в работу без оплаты.
4177
- */
4178
- t(this, "isAllowProcessingWithoutPayment");
4179
- this.products = (e.products ?? []).map((s) => new Zr(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ue.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
4180
- }
4181
- }
4182
- class It extends we {
4183
- /**
4184
- * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
4185
- *
4186
- * @param filters Параметры фильтрации данных.
4187
- * @param sortParams Параметры сортировки.
4188
- * @param paginationParams Параметры пагинации.
4189
- *
4190
- * @see /doc/api/internal#/Заказы/api_internal_orders_get_list
4191
- */
4192
- getOrders(r, e, s) {
4193
- return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
4194
- const o = { ...i.data };
4195
- return o.data = o.data.map((l) => new rr(l)), o;
4196
- });
4197
- }
4198
- /**
4199
- * Возвращает данные о количестве и сумме заказов клиента помесячно, с возможностью ограничения периода.
4200
- *
4201
- * @param clientId Идентификатор клиента для которого необходимо вернуть данные.
4202
- * @param period Период, за который запрашивается статистика.
4203
- */
4204
- getClientOrderStatistics(r, e) {
4205
- return this.get(`/internal/clients/${r}/orders/statistics`, e ? { period: e } : {});
4206
- }
4207
- /**
4208
- * Возвращает данные заказа с указанным идентификатором.
4209
- *
4210
- * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
4211
- */
4212
- getOrder(r) {
4213
- return this.get(`/internal/orders/${r}`, {}, (e) => new et(e.data));
4214
- }
4215
- }
4216
- class rt extends D {
3999
+ class Zr extends D {
4217
4000
  /**
4218
4001
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4219
4002
  *
@@ -4238,10 +4021,18 @@ class rt extends D {
4238
4021
  * Данные о последнем заказе клиента.
4239
4022
  */
4240
4023
  t(this, "lastOrder");
4241
- (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new er(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new G(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType));
4024
+ /**
4025
+ * Направление продаж.
4026
+ */
4027
+ t(this, "salesDirection");
4028
+ /**
4029
+ * Список менеджеров.
4030
+ */
4031
+ t(this, "managers");
4032
+ (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new er(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new d(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new a(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new ee(o)));
4242
4033
  }
4243
4034
  }
4244
- class tt {
4035
+ class et {
4245
4036
  /**
4246
4037
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4247
4038
  *
@@ -4259,7 +4050,7 @@ class tt {
4259
4050
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4260
4051
  }
4261
4052
  }
4262
- class xt extends tt {
4053
+ class It extends et {
4263
4054
  /**
4264
4055
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4265
4056
  *
@@ -4290,7 +4081,7 @@ class xt extends tt {
4290
4081
  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;
4291
4082
  }
4292
4083
  }
4293
- class kt {
4084
+ class xt {
4294
4085
  /**
4295
4086
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4296
4087
  *
@@ -4308,7 +4099,7 @@ class kt {
4308
4099
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4309
4100
  }
4310
4101
  }
4311
- class Nt extends we {
4102
+ class kt extends we {
4312
4103
  /**
4313
4104
  * Возвращает данные об указанном клиенте.
4314
4105
  *
@@ -4331,7 +4122,7 @@ class Nt extends we {
4331
4122
  getClientsList(r, e, s, i) {
4332
4123
  return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
4333
4124
  const l = { ...o.data };
4334
- return l.data = l.data.map((p) => new se(p)), l;
4125
+ return l.data = l.data.map((p) => new ie(p)), l;
4335
4126
  });
4336
4127
  }
4337
4128
  /**
@@ -4358,7 +4149,7 @@ class Nt extends we {
4358
4149
  const s = r.map((i) => i.id);
4359
4150
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4360
4151
  let o = [];
4361
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((l) => new rt(l))), o;
4152
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((l) => new Zr(l))), o;
4362
4153
  });
4363
4154
  }
4364
4155
  /**
@@ -5035,7 +4826,7 @@ class Nt extends we {
5035
4826
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5036
4827
  }
5037
4828
  }
5038
- class Ot extends u {
4829
+ class Nt extends u {
5039
4830
  /**
5040
4831
  * Выполняет проверку занят ли указанный номер телефона.
5041
4832
  *
@@ -5049,7 +4840,7 @@ class Ot extends u {
5049
4840
  });
5050
4841
  }
5051
4842
  }
5052
- class qt extends u {
4843
+ class Ot extends u {
5053
4844
  /**
5054
4845
  * Возвращает настройки указанного конфигуратора для указанной категории.
5055
4846
  *
@@ -5120,7 +4911,7 @@ class qt extends u {
5120
4911
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
5121
4912
  }
5122
4913
  }
5123
- class Ut {
4914
+ class qt {
5124
4915
  /**
5125
4916
  * Возвращает диапазон дат по умолчанию.
5126
4917
  */
@@ -5176,7 +4967,7 @@ const V = class V {
5176
4967
  */
5177
4968
  t(V, "linearValues", ["пог.м.", "м.", "м2"]);
5178
4969
  let Ue = V;
5179
- class dt {
4970
+ class Ut {
5180
4971
  /**
5181
4972
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5182
4973
  */
@@ -5192,7 +4983,7 @@ class dt {
5192
4983
  return r.id === 0 && r.guid === "-undefined-";
5193
4984
  }
5194
4985
  }
5195
- class st extends u {
4986
+ class rt extends u {
5196
4987
  /**
5197
4988
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5198
4989
  */
@@ -5204,6 +4995,227 @@ class st extends u {
5204
4995
  });
5205
4996
  }
5206
4997
  }
4998
+ class rr extends er {
4999
+ /**
5000
+ * Инициализирует экземпляр класса {@link OrderInfo}.
5001
+ *
5002
+ * @param data Данные для первоначальной инициализации.
5003
+ */
5004
+ constructor(e) {
5005
+ var s, i, o, l, p, g, $, A;
5006
+ super(e);
5007
+ /**
5008
+ * Краткие данные о клиенте.
5009
+ */
5010
+ t(this, "client");
5011
+ /**
5012
+ * Данные об оплате заказа.
5013
+ */
5014
+ t(this, "payment");
5015
+ /**
5016
+ * Данные о доставке заказа.
5017
+ */
5018
+ t(this, "delivery");
5019
+ /**
5020
+ * Краткие данные о пользователе, за которым закреплен заказ.
5021
+ */
5022
+ t(this, "attachedUser");
5023
+ /**
5024
+ * Идентификатор статуса заказа.
5025
+ */
5026
+ t(this, "status");
5027
+ /**
5028
+ * Направление продаж заказа.
5029
+ */
5030
+ t(this, "salesDirection");
5031
+ /**
5032
+ * Дата и время начала обработки заказа.
5033
+ */
5034
+ t(this, "pendingAt");
5035
+ /**
5036
+ * Дата и время завершения обработки заказа.
5037
+ */
5038
+ t(this, "processedAt");
5039
+ /**
5040
+ * Признак того, что заказ создан из товаров, которые имеют признак "Под заказ".
5041
+ */
5042
+ t(this, "isOnOrder");
5043
+ /**
5044
+ * Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
5045
+ */
5046
+ t(this, "isNotInStock");
5047
+ this.client = new ie(e == null ? void 0 : e.client), this.payment = {
5048
+ type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
5049
+ status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
5050
+ onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5051
+ }, this.delivery = {
5052
+ type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
5053
+ date: m((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? f(e.delivery.date) : ((g = e == null ? void 0 : e.delivery) == null ? void 0 : g.date) ?? /* @__PURE__ */ new Date(),
5054
+ address: ($ = e == null ? void 0 : e.delivery) != null && $.address ? new he(e.delivery.address) : void 0,
5055
+ warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new fe(e.delivery.warehouse) : void 0
5056
+ }, this.attachedUser = new U(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new a(e == null ? void 0 : e.salesDirection), this.pendingAt = m(e == null ? void 0 : e.pendingAt) ? f(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = m(e == null ? void 0 : e.processedAt) ? f(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;
5057
+ }
5058
+ }
5059
+ class tt extends F {
5060
+ /**
5061
+ * Инициализирует экземпляр класса {@link OrderProduct}.
5062
+ *
5063
+ * @param data Данные для первоначальной инициализации.
5064
+ */
5065
+ constructor(e) {
5066
+ super(e);
5067
+ /**
5068
+ * Данные о продукте.
5069
+ */
5070
+ t(this, "product");
5071
+ /**
5072
+ * Количество товара/услуги.
5073
+ */
5074
+ t(this, "quantity");
5075
+ /**
5076
+ * Валюта товара или услуги.
5077
+ */
5078
+ t(this, "currency");
5079
+ /**
5080
+ * Стоимость единицы товара или услуги в валюте.
5081
+ */
5082
+ t(this, "costOne");
5083
+ /**
5084
+ * Стоимость единицы товара или услуги в рублях.
5085
+ */
5086
+ t(this, "costOneRub");
5087
+ /**
5088
+ * Итоговая стоимость товара или услуги в валюте.
5089
+ */
5090
+ t(this, "cost");
5091
+ /**
5092
+ * Итоговая стоимость товара или услуги в рублях.
5093
+ */
5094
+ t(this, "costRub");
5095
+ /**
5096
+ * Описание позиции.
5097
+ */
5098
+ t(this, "marker");
5099
+ /**
5100
+ * Высота товара.
5101
+ */
5102
+ t(this, "height");
5103
+ /**
5104
+ * Длина товара.
5105
+ */
5106
+ t(this, "length");
5107
+ /**
5108
+ * Ширина товара.
5109
+ */
5110
+ t(this, "width");
5111
+ /**
5112
+ * Идентификатор логической группы товаров/услуг.
5113
+ */
5114
+ t(this, "logicGroupId");
5115
+ /**
5116
+ * Направление продаж.
5117
+ */
5118
+ t(this, "salesDirection");
5119
+ /**
5120
+ * URL изображения со спецификацией.
5121
+ */
5122
+ t(this, "specificationImgUrl");
5123
+ /**
5124
+ * Название (slug) конфигуратора.
5125
+ */
5126
+ t(this, "configurator");
5127
+ /**
5128
+ * Параметры введенные в конфигуратор, при добавлении позиции в корзину.
5129
+ */
5130
+ t(this, "configuratorParams");
5131
+ /**
5132
+ * Вариант продольного распила.
5133
+ *
5134
+ * В качестве значения указывается ширина продукта,
5135
+ * а в качестве ключа указывается код продукта,
5136
+ * который соответствует указанной ширине. Количество не ограничено.
5137
+ */
5138
+ t(this, "sawing");
5139
+ this.product = new J(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;
5140
+ }
5141
+ }
5142
+ class st extends rr {
5143
+ /**
5144
+ * Инициализирует экземпляр класса {@link Order}.
5145
+ *
5146
+ * @param data Данные для первоначальной инициализации.
5147
+ */
5148
+ constructor(e) {
5149
+ super(e);
5150
+ /**
5151
+ * Список продуктов заказа.
5152
+ */
5153
+ t(this, "products");
5154
+ /**
5155
+ * Список счетов заказа.
5156
+ */
5157
+ t(this, "invoices");
5158
+ /**
5159
+ * Комментарий клиента к заказу.
5160
+ */
5161
+ t(this, "comment");
5162
+ /**
5163
+ * Изображение, прикрепленное к заказу клиентом во время создания.
5164
+ */
5165
+ t(this, "image");
5166
+ /**
5167
+ * Данные о контрагенте.
5168
+ */
5169
+ t(this, "contragent");
5170
+ /**
5171
+ * Штрих-код заказа.
5172
+ */
5173
+ t(this, "barcode");
5174
+ /**
5175
+ * Данные об источнике заказа.
5176
+ */
5177
+ t(this, "orderSource");
5178
+ /**
5179
+ * Признак, что разрешена передача заказа в работу без оплаты.
5180
+ */
5181
+ t(this, "isAllowProcessingWithoutPayment");
5182
+ this.products = (e.products ?? []).map((s) => new tt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ue.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5183
+ }
5184
+ }
5185
+ class Gt extends we {
5186
+ /**
5187
+ * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5188
+ *
5189
+ * @param filters Параметры фильтрации данных.
5190
+ * @param sortParams Параметры сортировки.
5191
+ * @param paginationParams Параметры пагинации.
5192
+ *
5193
+ * @see /doc/api/internal#/Заказы/api_internal_orders_get_list
5194
+ */
5195
+ getOrders(r, e, s) {
5196
+ return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5197
+ const o = { ...i.data };
5198
+ return o.data = o.data.map((l) => new rr(l)), o;
5199
+ });
5200
+ }
5201
+ /**
5202
+ * Возвращает данные о количестве и сумме заказов клиента помесячно, с возможностью ограничения периода.
5203
+ *
5204
+ * @param clientId Идентификатор клиента для которого необходимо вернуть данные.
5205
+ * @param period Период, за который запрашивается статистика.
5206
+ */
5207
+ getClientOrderStatistics(r, e) {
5208
+ return this.get(`/internal/clients/${r}/orders/statistics`, e ? { period: e } : {});
5209
+ }
5210
+ /**
5211
+ * Возвращает данные заказа с указанным идентификатором.
5212
+ *
5213
+ * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5214
+ */
5215
+ getOrder(r) {
5216
+ return this.get(`/internal/orders/${r}`, {}, (e) => new st(e.data));
5217
+ }
5218
+ }
5207
5219
  class it {
5208
5220
  /**
5209
5221
  * Инициализирует экземпляр класса {@link MetaTagItem}.
@@ -5222,7 +5234,7 @@ class it {
5222
5234
  this.name = r.name, this.content = r.content;
5223
5235
  }
5224
5236
  }
5225
- class de {
5237
+ class Ge {
5226
5238
  /**
5227
5239
  * Инициализирует экземпляр класса {@link Seo}.
5228
5240
  *
@@ -5261,7 +5273,7 @@ class de {
5261
5273
  this.resourceType = new Qe(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 it(s))) ?? [];
5262
5274
  }
5263
5275
  }
5264
- class Gt extends u {
5276
+ class dt extends u {
5265
5277
  /**
5266
5278
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5267
5279
  *
@@ -5269,7 +5281,7 @@ class Gt extends u {
5269
5281
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
5270
5282
  */
5271
5283
  getResourceSeoData(r, e) {
5272
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new de(s.data));
5284
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new Ge(s.data));
5273
5285
  }
5274
5286
  /**
5275
5287
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -5280,7 +5292,7 @@ class Gt extends u {
5280
5292
  * в случае ошибок в запросах.
5281
5293
  */
5282
5294
  saveResourceSeoData(r, e = {}) {
5283
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new de(s.data), e);
5295
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new Ge(s.data), e);
5284
5296
  }
5285
5297
  /**
5286
5298
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -5436,7 +5448,7 @@ const P = ge("__references_private", () => {
5436
5448
  }).catch(y)), c.deliveryTypeReference;
5437
5449
  }), x = v(() => {
5438
5450
  const c = P();
5439
- return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(st).getManagers().then((h) => {
5451
+ return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(rt).getManagers().then((h) => {
5440
5452
  c.managersList = h;
5441
5453
  }).catch(y)), c.managersList;
5442
5454
  }), k = v(() => {
@@ -5625,7 +5637,7 @@ export {
5625
5637
  Te as BankAccount,
5626
5638
  we as BasePaginationProvider,
5627
5639
  kr as CalculationTypeEnum,
5628
- ie as Cart,
5640
+ ne as Cart,
5629
5641
  ar as CartItem,
5630
5642
  _r as CartItemBase,
5631
5643
  ft as CartProvider,
@@ -5637,20 +5649,20 @@ export {
5637
5649
  wt as City,
5638
5650
  le as CityWithRegionAndCountry,
5639
5651
  qe as Client,
5640
- rt as ClientAdditionalData,
5652
+ Zr as ClientAdditionalData,
5641
5653
  ce as ClientCategory,
5642
- Nt as ClientDataProvider,
5654
+ kt as ClientDataProvider,
5643
5655
  vt as ClientPriceProvider,
5644
5656
  Pt as ClientPriceTemplateProvider,
5645
5657
  J as ClientProduct,
5646
5658
  $t as ClientProductCategoryDataProvider,
5647
5659
  At as ClientProductDataProvider,
5648
- se as ClientShortInfo,
5660
+ ie as ClientShortInfo,
5649
5661
  Qr as ClientsAdditionalDataRequestTypeEnum,
5650
5662
  Lt as ClientsListFilters,
5651
- qt as ConfiguratorProvider,
5663
+ Ot as ConfiguratorProvider,
5652
5664
  be as Contact,
5653
- dr as ContactLinks,
5665
+ Gr as ContactLinks,
5654
5666
  M as ContactPerson,
5655
5667
  Xr as ContactPersonRelated,
5656
5668
  Fr as ContactPosition,
@@ -5665,17 +5677,17 @@ export {
5665
5677
  Q as Country,
5666
5678
  pe as Currency,
5667
5679
  Ht as DataSuggestionProvider,
5668
- xt as DataTablePagination,
5669
- tt as DataTablePaginationRequestParams,
5670
- kt as DataTableSortRequestParams,
5671
- Ut as DateTimeProvider,
5680
+ It as DataTablePagination,
5681
+ et as DataTablePaginationRequestParams,
5682
+ xt as DataTableSortRequestParams,
5683
+ qt as DateTimeProvider,
5672
5684
  qr as DeletableNamedIdentity,
5673
5685
  he as DeliveryAddress,
5674
5686
  K as DeliveryType,
5675
5687
  Sr as DeviceTypeResolutionConfig,
5676
5688
  Ur as DiscountShortInfo,
5677
5689
  zt as FieldValidationResultData,
5678
- re as FilterGroup,
5690
+ te as FilterGroup,
5679
5691
  Ne as FilterItem,
5680
5692
  Le as FilterOpEnum,
5681
5693
  Be as GeoCoordinates,
@@ -5687,21 +5699,21 @@ export {
5687
5699
  F as Identity,
5688
5700
  br as Image,
5689
5701
  ye as Manager,
5690
- oe as ManagerCommon,
5691
- dt as ManagerDataFactory,
5692
- st as ManagerDataProvider,
5702
+ ee as ManagerCommon,
5703
+ Ut as ManagerDataFactory,
5704
+ rt as ManagerDataProvider,
5693
5705
  it as MetaTagItem,
5694
5706
  D as NamedIdentity,
5695
- d as Opf,
5707
+ G as Opf,
5696
5708
  b as OpfEnum,
5697
- et as Order,
5709
+ st as Order,
5698
5710
  rr as OrderInfo,
5699
5711
  Hr as OrderPaymentStatus,
5700
- Zr as OrderProduct,
5712
+ tt as OrderProduct,
5701
5713
  er as OrderShortInfo,
5702
5714
  zr as OrderStatus,
5703
- It as OrdersDataProvider,
5704
- G as PartnerGroup,
5715
+ Gt as OrdersDataProvider,
5716
+ d as PartnerGroup,
5705
5717
  Br as PaymentType,
5706
5718
  yt as PreferencesStorageProvider,
5707
5719
  Pe as PriceAnalyze,
@@ -5732,17 +5744,17 @@ export {
5732
5744
  xe as RecommendationsList,
5733
5745
  w as Reference,
5734
5746
  R as ReferenceDataProvider,
5735
- ee as Region,
5747
+ re as Region,
5736
5748
  Qe as ResourceType,
5737
- S as SalesDirection,
5749
+ a as SalesDirection,
5738
5750
  Ir as SentryConfig,
5739
- de as Seo,
5740
- Gt as SeoDataProvider,
5751
+ Ge as Seo,
5752
+ dt as SeoDataProvider,
5741
5753
  Ee as SourcePrimaryInterest,
5742
5754
  Ar as StockCount,
5743
5755
  ae as TypedInstanceFactory,
5744
5756
  Ue as UnitsHelper,
5745
- Ot as UnknownClientDataProvider,
5757
+ Nt as UnknownClientDataProvider,
5746
5758
  We as UpdatableNamedIdentity,
5747
5759
  Vr as User,
5748
5760
  Ve as UserCommonInfo,