@snabcentr/common-lib 1.54.1 → 1.55.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.
@@ -4,6 +4,6 @@
4
4
  "name": "public-api",
5
5
  "src": "src/public-api.ts",
6
6
  "isEntry": true,
7
- "integrity": "sha384-QcbvizLwetXUeQ+H+ZhvcXk5Zw5Xc7U2Ers5QMZVK/SVzKNg7y7obnBUAhZPPipL"
7
+ "integrity": "sha384-avvDQIS2KcitZ7UdKDgIheXHUQuEsE6g5At+WxyEFdYLTj6vuaOT7pKu9QA8rcI7"
8
8
  }
9
9
  }
@@ -1,6 +1,6 @@
1
- ## 1.54.1 (2025-06-03)
1
+ ## 1.55.0 (2025-06-03)
2
2
 
3
- ### fixed (1 change)
3
+ ### changed (1 change)
4
4
 
5
- - [#9917: Исправлена ошибка сборки](web_soft/libs/ts/snabcentr-common-lib@8f9541cf041ea806458f45e6ef4918df863f2159) ([merge request](web_soft/libs/ts/snabcentr-common-lib!94))
5
+ - [#11607: Доработан механизм получения дополнительных данных о клиентах](web_soft/libs/ts/snabcentr-common-lib@bfa06f98e22f535c55ada1203aa6e8c4904043c7) ([merge request](web_soft/libs/ts/snabcentr-common-lib!95))
6
6
 
@@ -183,7 +183,7 @@ class Be {
183
183
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
184
184
  }
185
185
  }
186
- class E extends w {
186
+ class K extends w {
187
187
  }
188
188
  class fe extends w {
189
189
  /**
@@ -214,7 +214,7 @@ class fe extends w {
214
214
  * Координаты склада.
215
215
  */
216
216
  t(this, "coordinates");
217
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new E(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Be(e == null ? void 0 : e.coordinates);
217
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Be(e == null ? void 0 : e.coordinates);
218
218
  }
219
219
  }
220
220
  class Ar {
@@ -1141,7 +1141,7 @@ class yt {
1141
1141
  );
1142
1142
  }
1143
1143
  }
1144
- class d extends D {
1144
+ class U extends D {
1145
1145
  /**
1146
1146
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1147
1147
  *
@@ -1156,7 +1156,7 @@ class d extends D {
1156
1156
  this.type = e == null ? void 0 : e.type;
1157
1157
  }
1158
1158
  }
1159
- class dr extends D {
1159
+ class Ur extends D {
1160
1160
  /**
1161
1161
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1162
1162
  *
@@ -1192,7 +1192,7 @@ class dr extends D {
1192
1192
  * Дата и время удаления.
1193
1193
  */
1194
1194
  t(this, "deletedAt");
1195
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = m(e == null ? void 0 : e.publishedAt) ? f(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new d(e == null ? void 0 : e.owner), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1195
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = m(e == null ? void 0 : e.publishedAt) ? f(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new U(e == null ? void 0 : e.owner), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1196
1196
  }
1197
1197
  }
1198
1198
  class B extends We {
@@ -1214,7 +1214,7 @@ class B extends We {
1214
1214
  this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
1215
1215
  }
1216
1216
  }
1217
- class K extends _ {
1217
+ class J extends _ {
1218
1218
  /**
1219
1219
  * Инициализирует экземпляр класса {@link ClientProduct}.
1220
1220
  *
@@ -1250,10 +1250,10 @@ class K extends _ {
1250
1250
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1251
1251
  */
1252
1252
  t(this, "isFavorite");
1253
- 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 dr(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;
1253
+ 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
1254
  }
1255
1255
  }
1256
- class Ur {
1256
+ class dr {
1257
1257
  /**
1258
1258
  * Инициализирует экземпляр класса {@link ContactLinks}.
1259
1259
  *
@@ -1297,7 +1297,7 @@ class oe extends D {
1297
1297
  * Признак того, что менеджер является основным для клиента.
1298
1298
  */
1299
1299
  t(this, "isDefault");
1300
- e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Ur(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.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));
1301
1301
  }
1302
1302
  }
1303
1303
  class ye extends oe {
@@ -1379,7 +1379,7 @@ class ce extends Gr {
1379
1379
  * Список продуктов категории.
1380
1380
  */
1381
1381
  t(this, "products");
1382
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ce(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new K(o));
1382
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ce(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new J(o));
1383
1383
  }
1384
1384
  }
1385
1385
  class je {
@@ -1415,7 +1415,7 @@ class Ce extends je {
1415
1415
  this.productCategory = new te(e == null ? void 0 : e.productCategory);
1416
1416
  }
1417
1417
  }
1418
- class J extends w {
1418
+ class Q extends w {
1419
1419
  }
1420
1420
  class ee extends w {
1421
1421
  /**
@@ -1428,8 +1428,8 @@ class ee extends w {
1428
1428
  /**
1429
1429
  * Данные о стране, в которой расположен регион.
1430
1430
  */
1431
- t(this, "country", new J());
1432
- e && (this.country = new J(e.country));
1431
+ t(this, "country", new Q());
1432
+ e && (this.country = new Q(e.country));
1433
1433
  }
1434
1434
  }
1435
1435
  class le extends w {
@@ -1573,7 +1573,7 @@ class ve extends je {
1573
1573
  this.product = new _(e == null ? void 0 : e.product);
1574
1574
  }
1575
1575
  }
1576
- class Ee extends w {
1576
+ class Ke extends w {
1577
1577
  }
1578
1578
  class X extends D {
1579
1579
  /**
@@ -1595,7 +1595,7 @@ class X extends D {
1595
1595
  * Дополнительные метаданные свойства.
1596
1596
  */
1597
1597
  t(this, "metadata");
1598
- this.type = new Ee(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1598
+ this.type = new Ke(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1599
1599
  }
1600
1600
  }
1601
1601
  class H {
@@ -1619,7 +1619,7 @@ class H {
1619
1619
  }
1620
1620
  class Mr extends w {
1621
1621
  }
1622
- class Ke extends w {
1622
+ class Je extends w {
1623
1623
  }
1624
1624
  class wt extends w {
1625
1625
  }
@@ -1645,12 +1645,12 @@ class pe extends D {
1645
1645
  }
1646
1646
  }
1647
1647
  var b = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(b || {});
1648
- class U extends w {
1648
+ class d extends w {
1649
1649
  /**
1650
1650
  * Возвращает сгенерированную запись-описание физического лица.
1651
1651
  */
1652
1652
  static generatePersonItem() {
1653
- return new U({
1653
+ return new d({
1654
1654
  id: 1,
1655
1655
  guid: "",
1656
1656
  slug: b.Person,
@@ -1668,10 +1668,10 @@ class Br extends w {
1668
1668
  }
1669
1669
  class Wr extends w {
1670
1670
  }
1671
- class Je extends w {
1672
- }
1673
1671
  class Qe extends w {
1674
1672
  }
1673
+ class Ee extends w {
1674
+ }
1675
1675
  class R extends u {
1676
1676
  /**
1677
1677
  * Возвращает {@link Promise} для получения данных указанного справочника.
@@ -1688,7 +1688,7 @@ class R extends u {
1688
1688
  * первичного интереса.
1689
1689
  */
1690
1690
  getChannelPrimaryInterest() {
1691
- return this.getTypedDataArrayRequester(Ke, "/internal/references/channel-primary-interest", !0);
1691
+ return this.getTypedDataArrayRequester(Je, "/internal/references/channel-primary-interest", !0);
1692
1692
  }
1693
1693
  /**
1694
1694
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
@@ -1713,7 +1713,7 @@ class R extends u {
1713
1713
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
1714
1714
  */
1715
1715
  getOpf() {
1716
- return this.getTypedDataArrayRequester(U, "/public/references/opf", !0);
1716
+ return this.getTypedDataArrayRequester(d, "/public/references/opf", !0);
1717
1717
  }
1718
1718
  /**
1719
1719
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
@@ -1737,7 +1737,7 @@ class R extends u {
1737
1737
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
1738
1738
  */
1739
1739
  getResourceTypes() {
1740
- return this.getTypedDataArrayRequester(Je, "/internal/references/resource-type", !0);
1740
+ return this.getTypedDataArrayRequester(Qe, "/internal/references/resource-type", !0);
1741
1741
  }
1742
1742
  /**
1743
1743
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -1749,7 +1749,7 @@ class R extends u {
1749
1749
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
1750
1750
  */
1751
1751
  getSourcePrimaryInterest() {
1752
- return this.getTypedDataArrayRequester(Qe, "/internal/references/source-primary-interest", !0);
1752
+ return this.getTypedDataArrayRequester(Ee, "/internal/references/source-primary-interest", !0);
1753
1753
  }
1754
1754
  /**
1755
1755
  * Выполняет поиск данных о городах по терму в названии.
@@ -1773,13 +1773,13 @@ class R extends u {
1773
1773
  * @param term Терм поиска.
1774
1774
  */
1775
1775
  searchCountry(r) {
1776
- return this.getTypedDataArrayRequester(J, `/internal/references/country/search?term=${r}`);
1776
+ return this.getTypedDataArrayRequester(Q, `/internal/references/country/search?term=${r}`);
1777
1777
  }
1778
1778
  /**
1779
1779
  * Возвращает {@link Promise} для получения справочника типов доставки.
1780
1780
  */
1781
1781
  getDeliveryTypes() {
1782
- return this.getTypedDataArrayRequester(E, "/internal/references/delivery-type", !0);
1782
+ return this.getTypedDataArrayRequester(K, "/internal/references/delivery-type", !0);
1783
1783
  }
1784
1784
  /**
1785
1785
  * Возвращает {@link Promise} для получения справочника складов.
@@ -1791,7 +1791,7 @@ class R extends u {
1791
1791
  * Возвращает {@link Promise} для получения справочника типов свойств.
1792
1792
  */
1793
1793
  getPropertyTypes() {
1794
- return this.getTypedDataArrayRequester(Ee, "/internal/references/property-type", !0);
1794
+ return this.getTypedDataArrayRequester(Ke, "/internal/references/property-type", !0);
1795
1795
  }
1796
1796
  /**
1797
1797
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -1830,7 +1830,7 @@ class Vr extends Ve {
1830
1830
  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;
1831
1831
  }
1832
1832
  }
1833
- class Er extends u {
1833
+ class Kr extends u {
1834
1834
  /**
1835
1835
  * Возвращает данные о текущем пользователе.
1836
1836
  */
@@ -1839,7 +1839,7 @@ class Er extends u {
1839
1839
  return this.get("/internal/users/info", {}, (r) => new Vr(r.data));
1840
1840
  }
1841
1841
  }
1842
- class Kr {
1842
+ class Jr {
1843
1843
  /**
1844
1844
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
1845
1845
  *
@@ -1882,7 +1882,7 @@ class Kr {
1882
1882
  * Данные о валюте.
1883
1883
  */
1884
1884
  t(this, "currency");
1885
- this.cost = r.cost, this.costDate = m(r.costDate) ? f(r.costDate) : r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new d(r.client) : void 0, this.executor = r.executor ? new d(r.executor) : void 0, this.currency = r.currency ? new pe(r.currency) : void 0;
1885
+ this.cost = r.cost, this.costDate = m(r.costDate) ? f(r.costDate) : r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new U(r.client) : void 0, this.executor = r.executor ? new U(r.executor) : void 0, this.currency = r.currency ? new pe(r.currency) : void 0;
1886
1886
  }
1887
1887
  }
1888
1888
  class xe {
@@ -2145,7 +2145,7 @@ class vt extends u {
2145
2145
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2146
2146
  increase_percent: s.value
2147
2147
  },
2148
- (o) => new K(o.data)
2148
+ (o) => new J(o.data)
2149
2149
  );
2150
2150
  }
2151
2151
  /**
@@ -2157,7 +2157,7 @@ class vt extends u {
2157
2157
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
2158
2158
  */
2159
2159
  removeProductPrice(r, e) {
2160
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new K(s.data));
2160
+ return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new J(s.data));
2161
2161
  }
2162
2162
  /**
2163
2163
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -2446,7 +2446,7 @@ class Dt extends u {
2446
2446
  */
2447
2447
  getProductPriceHistory(r, e) {
2448
2448
  const s = {};
2449
- return Ge(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ne(i.data, (o) => new Kr(o)));
2449
+ return Ge(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ne(i.data, (o) => new Jr(o)));
2450
2450
  }
2451
2451
  /**
2452
2452
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -2522,7 +2522,7 @@ class $t extends u {
2522
2522
  showHidden: i,
2523
2523
  withPriceCoefficients: s
2524
2524
  },
2525
- (o) => ne(o.data, (l) => new K(l))
2525
+ (o) => ne(o.data, (l) => new J(l))
2526
2526
  );
2527
2527
  }
2528
2528
  }
@@ -2543,7 +2543,7 @@ class At extends u {
2543
2543
  clientId: e,
2544
2544
  withPriceCoefficients: s
2545
2545
  },
2546
- (i) => new K(i.data)
2546
+ (i) => new J(i.data)
2547
2547
  );
2548
2548
  }
2549
2549
  }
@@ -3372,7 +3372,7 @@ class St extends u {
3372
3372
  );
3373
3373
  }
3374
3374
  }
3375
- var Jr = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n))(Jr || {});
3375
+ var Qr = /* @__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))(Qr || {});
3376
3376
  class Te extends F {
3377
3377
  /**
3378
3378
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -3474,7 +3474,7 @@ class Ye extends D {
3474
3474
  /**
3475
3475
  * Данные об организационно-правовой форме.
3476
3476
  */
3477
- t(this, "opf", U.generatePersonItem());
3477
+ t(this, "opf", d.generatePersonItem());
3478
3478
  /**
3479
3479
  * Направление продаж.
3480
3480
  */
@@ -3516,7 +3516,7 @@ class Ye extends D {
3516
3516
  */
3517
3517
  t(this, "updater");
3518
3518
  if (e) {
3519
- if (this.opf = new U(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 d(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new d(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new G(e.partnerGroup)), e.manager && (this.manager = new oe(e.manager)), e.contacts) {
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) {
3520
3520
  const s = [];
3521
3521
  e.contacts.forEach((i) => {
3522
3522
  s.push(new M(i));
@@ -3531,7 +3531,7 @@ class Ye extends D {
3531
3531
  }
3532
3532
  }
3533
3533
  }
3534
- class Qr extends Ye {
3534
+ class Er extends Ye {
3535
3535
  /**
3536
3536
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3537
3537
  *
@@ -3610,7 +3610,7 @@ class Yr extends Ze {
3610
3610
  /**
3611
3611
  * Страна регистрации юридического лица нерезидента.
3612
3612
  */
3613
- t(this, "registrationCountry", new J());
3613
+ t(this, "registrationCountry", new Q());
3614
3614
  /**
3615
3615
  * Регистрационный номер юридического лица нерезидента.
3616
3616
  */
@@ -3619,7 +3619,7 @@ class Yr extends Ze {
3619
3619
  * Налоговый номер юридического лица нерезидента.
3620
3620
  */
3621
3621
  t(this, "taxNumber", "");
3622
- e && (this.registrationCountry = new J(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3622
+ e && (this.registrationCountry = new Q(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3623
3623
  }
3624
3624
  }
3625
3625
  class ue {
@@ -3637,7 +3637,7 @@ class ue {
3637
3637
  case b.UlNr:
3638
3638
  return new Yr(r);
3639
3639
  default:
3640
- return new Qr(r);
3640
+ return new Er(r);
3641
3641
  }
3642
3642
  }
3643
3643
  }
@@ -3778,10 +3778,10 @@ class qe extends se {
3778
3778
  * Дополнительные данные о клиенте.
3779
3779
  */
3780
3780
  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 Ke(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Qe(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new E(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) ?? {};
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) ?? {};
3782
3782
  }
3783
3783
  }
3784
- class Q {
3784
+ class E {
3785
3785
  /**
3786
3786
  * Инициализирует экземпляр класса {@link DatePeriod}.
3787
3787
  *
@@ -3849,11 +3849,11 @@ class Lt {
3849
3849
  /**
3850
3850
  * Период регистрации.
3851
3851
  */
3852
- t(this, "createdAt", new Q());
3852
+ t(this, "createdAt", new E());
3853
3853
  /**
3854
3854
  * Период последнего входа.
3855
3855
  */
3856
- t(this, "lastLoginDate", new Q());
3856
+ t(this, "lastLoginDate", new E());
3857
3857
  /**
3858
3858
  * Признак того, что в указанный период последнего входа, клиентом был сделан заказ.
3859
3859
  */
@@ -3891,8 +3891,8 @@ class Lt {
3891
3891
  */
3892
3892
  t(this, "lastOrder");
3893
3893
  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 J(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 Q(r == null ? void 0 : r.createdAt), this.lastLoginDate = new Q(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 U(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new E(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 = {
3895
- createdAt: new Q((e = r == null ? void 0 : r.lastOrder) == null ? void 0 : e.createdAt),
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 = {
3895
+ createdAt: new E((e = r == null ? void 0 : r.lastOrder) == null ? void 0 : e.createdAt),
3896
3896
  creator: (s = r == null ? void 0 : r.lastOrder) == null ? void 0 : s.creator,
3897
3897
  isApproved: (i = r == null ? void 0 : r.lastOrder) == null ? void 0 : i.isApproved
3898
3898
  };
@@ -3941,10 +3941,10 @@ class Lt {
3941
3941
  this.salesDirection = new S();
3942
3942
  break;
3943
3943
  case "contragentType":
3944
- this.contragentType = new U();
3944
+ this.contragentType = new d();
3945
3945
  break;
3946
3946
  case "preferredDeliveryType":
3947
- this.preferredDeliveryType = new E();
3947
+ this.preferredDeliveryType = new K();
3948
3948
  break;
3949
3949
  case "partnerGroup":
3950
3950
  this.partnerGroup = new G();
@@ -3989,7 +3989,7 @@ class er extends F {
3989
3989
  * Признак того, что заказ подтвержден в 1С.
3990
3990
  */
3991
3991
  t(this, "isApproved1c");
3992
- this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new d(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
3992
+ 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
3993
  }
3994
3994
  }
3995
3995
  class rr extends er {
@@ -4050,7 +4050,7 @@ class rr extends er {
4050
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
4051
  address: ($ = e == null ? void 0 : e.delivery) != null && $.address ? new he(e.delivery.address) : void 0,
4052
4052
  warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new fe(e.delivery.warehouse) : void 0
4053
- }, this.attachedUser = new d(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;
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
4054
  }
4055
4055
  }
4056
4056
  class Zr extends F {
@@ -4133,7 +4133,7 @@ class Zr extends F {
4133
4133
  * который соответствует указанной ширине. Количество не ограничено.
4134
4134
  */
4135
4135
  t(this, "sawing");
4136
- 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;
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
4137
  }
4138
4138
  }
4139
4139
  class et extends rr {
@@ -4238,7 +4238,7 @@ class rt extends D {
4238
4238
  * Данные о последнем заказе клиента.
4239
4239
  */
4240
4240
  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 E(e.preferredDeliveryType));
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));
4242
4242
  }
4243
4243
  }
4244
4244
  class tt {
@@ -4350,14 +4350,15 @@ class Nt extends we {
4350
4350
  /**
4351
4351
  * Возвращает дополнительные данные об указанных клиентах.
4352
4352
  *
4353
- * @param ids Список идентификаторов для которых необходимо вернуть дополнительные данные.
4353
+ * @param clients Список данных о клиентах, для которых необходимо получить дополнительные данные.
4354
4354
  * @param dataTypes Список данных которые необходимо вернуть.
4355
4355
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_additional_data_for_clients_list
4356
4356
  */
4357
4357
  getAdditionalClientsData(r, e) {
4358
- return this.post("/internal/clients/additional-data", { clients: r, requested_data_types: e }, (s) => {
4359
- let i = [];
4360
- return (s == null ? void 0 : s.data.length) > 0 && (i = s.data.map((o) => new rt(o))), i;
4358
+ const s = r.map((i) => i.id);
4359
+ return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4360
+ let o = [];
4361
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((l) => new rt(l))), o;
4361
4362
  });
4362
4363
  }
4363
4364
  /**
@@ -5119,7 +5120,7 @@ class qt extends u {
5119
5120
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
5120
5121
  }
5121
5122
  }
5122
- class dt {
5123
+ class Ut {
5123
5124
  /**
5124
5125
  * Возвращает диапазон дат по умолчанию.
5125
5126
  */
@@ -5174,8 +5175,8 @@ const V = class V {
5174
5175
  * Список единиц измерения линейной величины.
5175
5176
  */
5176
5177
  t(V, "linearValues", ["пог.м.", "м.", "м2"]);
5177
- let de = V;
5178
- class Ut {
5178
+ let Ue = V;
5179
+ class dt {
5179
5180
  /**
5180
5181
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5181
5182
  */
@@ -5221,7 +5222,7 @@ class it {
5221
5222
  this.name = r.name, this.content = r.content;
5222
5223
  }
5223
5224
  }
5224
- class Ue {
5225
+ class de {
5225
5226
  /**
5226
5227
  * Инициализирует экземпляр класса {@link Seo}.
5227
5228
  *
@@ -5257,7 +5258,7 @@ class Ue {
5257
5258
  */
5258
5259
  t(this, "meta");
5259
5260
  var e;
5260
- this.resourceType = new Je(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))) ?? [];
5261
+ 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))) ?? [];
5261
5262
  }
5262
5263
  }
5263
5264
  class Gt extends u {
@@ -5268,7 +5269,7 @@ class Gt extends u {
5268
5269
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
5269
5270
  */
5270
5271
  getResourceSeoData(r, e) {
5271
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new Ue(s.data));
5272
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new de(s.data));
5272
5273
  }
5273
5274
  /**
5274
5275
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -5279,7 +5280,7 @@ class Gt extends u {
5279
5280
  * в случае ошибок в запросах.
5280
5281
  */
5281
5282
  saveResourceSeoData(r, e = {}) {
5282
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new Ue(s.data), e);
5283
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new de(s.data), e);
5283
5284
  }
5284
5285
  /**
5285
5286
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -5542,7 +5543,7 @@ const P = ge("__references_private", () => {
5542
5543
  */
5543
5544
  currentUser: v(() => {
5544
5545
  const r = nt();
5545
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Er).getCurrentUser().then((e) => {
5546
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Kr).getCurrentUser().then((e) => {
5546
5547
  r.currentUser = e;
5547
5548
  }).catch(y).finally(y)), r.currentUser;
5548
5549
  })
@@ -5632,7 +5633,7 @@ export {
5632
5633
  He as CatalogableItem,
5633
5634
  q as Category,
5634
5635
  ke as CategoryPricingRule,
5635
- Ke as ChannelPrimaryInterest,
5636
+ Je as ChannelPrimaryInterest,
5636
5637
  wt as City,
5637
5638
  le as CityWithRegionAndCountry,
5638
5639
  qe as Client,
@@ -5641,15 +5642,15 @@ export {
5641
5642
  Nt as ClientDataProvider,
5642
5643
  vt as ClientPriceProvider,
5643
5644
  Pt as ClientPriceTemplateProvider,
5644
- K as ClientProduct,
5645
+ J as ClientProduct,
5645
5646
  $t as ClientProductCategoryDataProvider,
5646
5647
  At as ClientProductDataProvider,
5647
5648
  se as ClientShortInfo,
5648
- Jr as ClientsAdditionalDataRequestTypeEnum,
5649
+ Qr as ClientsAdditionalDataRequestTypeEnum,
5649
5650
  Lt as ClientsListFilters,
5650
5651
  qt as ConfiguratorProvider,
5651
5652
  be as Contact,
5652
- Ur as ContactLinks,
5653
+ dr as ContactLinks,
5653
5654
  M as ContactPerson,
5654
5655
  Xr as ContactPersonRelated,
5655
5656
  Fr as ContactPosition,
@@ -5657,22 +5658,22 @@ export {
5657
5658
  Ye as ContragentBase,
5658
5659
  ue as ContragentFactory,
5659
5660
  Xe as ContragentIc,
5660
- Qr as ContragentPerson,
5661
+ Er as ContragentPerson,
5661
5662
  Yr as ContragentUlNr,
5662
5663
  Ze as ContragentUlR,
5663
5664
  Se as CostSourceEnum,
5664
- J as Country,
5665
+ Q as Country,
5665
5666
  pe as Currency,
5666
5667
  Ht as DataSuggestionProvider,
5667
5668
  xt as DataTablePagination,
5668
5669
  tt as DataTablePaginationRequestParams,
5669
5670
  kt as DataTableSortRequestParams,
5670
- dt as DateTimeProvider,
5671
+ Ut as DateTimeProvider,
5671
5672
  qr as DeletableNamedIdentity,
5672
5673
  he as DeliveryAddress,
5673
- E as DeliveryType,
5674
+ K as DeliveryType,
5674
5675
  Sr as DeviceTypeResolutionConfig,
5675
- dr as DiscountShortInfo,
5676
+ Ur as DiscountShortInfo,
5676
5677
  zt as FieldValidationResultData,
5677
5678
  re as FilterGroup,
5678
5679
  Ne as FilterItem,
@@ -5687,11 +5688,11 @@ export {
5687
5688
  br as Image,
5688
5689
  ye as Manager,
5689
5690
  oe as ManagerCommon,
5690
- Ut as ManagerDataFactory,
5691
+ dt as ManagerDataFactory,
5691
5692
  st as ManagerDataProvider,
5692
5693
  it as MetaTagItem,
5693
5694
  D as NamedIdentity,
5694
- U as Opf,
5695
+ d as Opf,
5695
5696
  b as OpfEnum,
5696
5697
  et as Order,
5697
5698
  rr as OrderInfo,
@@ -5721,10 +5722,10 @@ export {
5721
5722
  Dt as ProductDataProvider,
5722
5723
  Wr as ProductFileType,
5723
5724
  _e as ProductPriceCoefficient,
5724
- Kr as ProductPriceHistory,
5725
+ Jr as ProductPriceHistory,
5725
5726
  _t as PropertiesProvider,
5726
5727
  X as Property,
5727
- Ee as PropertyType,
5728
+ Ke as PropertyType,
5728
5729
  Nr as PropertyTypeEnum,
5729
5730
  H as PropertyValue,
5730
5731
  at as RecommendationsDataProvider,
@@ -5732,21 +5733,21 @@ export {
5732
5733
  w as Reference,
5733
5734
  R as ReferenceDataProvider,
5734
5735
  ee as Region,
5735
- Je as ResourceType,
5736
+ Qe as ResourceType,
5736
5737
  S as SalesDirection,
5737
5738
  Ir as SentryConfig,
5738
- Ue as Seo,
5739
+ de as Seo,
5739
5740
  Gt as SeoDataProvider,
5740
- Qe as SourcePrimaryInterest,
5741
+ Ee as SourcePrimaryInterest,
5741
5742
  Ar as StockCount,
5742
5743
  ae as TypedInstanceFactory,
5743
- de as UnitsHelper,
5744
+ Ue as UnitsHelper,
5744
5745
  Ot as UnknownClientDataProvider,
5745
5746
  We as UpdatableNamedIdentity,
5746
5747
  Vr as User,
5747
5748
  Ve as UserCommonInfo,
5748
- Er as UserDataProvider,
5749
- d as UserShortInfo,
5749
+ Kr as UserDataProvider,
5750
+ U as UserShortInfo,
5750
5751
  jr as UserTypeEnum,
5751
5752
  xr as VersionConfig,
5752
5753
  fe as Warehouse,