@snabcentr/common-lib 2.7.4 → 2.7.5

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-/CKrSyx8rIVMSh1gOqhL3k3wfdBxK7yEyouNZ+QMkn1eBx+X3EhAJvczw0qkmlnt"
7
+ "integrity": "sha384-6PH+xT1k0S5wlePBiEUDsiBw1miqThb1Rs6ub6B9QK87ylVVsOYFsbyqfZiM56KZ"
8
8
  }
9
9
  }
@@ -1,4 +1,6 @@
1
- ## 2.7.4 (2026-06-05)
1
+ ## 2.7.5 (2026-06-09)
2
2
 
3
- No changes.
3
+ ### added (1 change)
4
+
5
+ - [#13197: Добавлен признак учёта клиентов подчинённых менеджеров в фильтры списка клиентов](web_soft/libs/ts/snabcentr-common-lib@dfa6da05189d34968ba2dd029fac26aab44b6756) ([merge request](web_soft/libs/ts/snabcentr-common-lib!195))
4
6
 
@@ -5,10 +5,10 @@ import { jwtDecode as nr } from "jwt-decode";
5
5
  import { merge as pe, isNil as A, isEmpty as X, noop as v, mapValues as or, isArray as H, every as xr, split as Or, isString as C, constant as qr, toUpper as Nr, cloneDeep as Ur, toLower as Fr, isFunction as Fe, map as fe, forEach as Hr, isDate as xe, omitBy as cr, isObject as lr } from "lodash-es";
6
6
  import { objectToCamel as He, objectToSnake as Ee } from "ts-case-convert";
7
7
  import { defineStore as W } from "pinia";
8
- import { ref as y, markRaw as jr, computed as P } from "vue";
9
- import { isAfter as Ve, parseISO as R, startOfToday as Oe, format as k, addSeconds as Gr, addBusinessDays as Mr, endOfTomorrow as Br, startOfTomorrow as zr, endOfYesterday as Wr, startOfYesterday as Jr, endOfToday as Er, endOfDay as Vr, startOfDay as Kr } from "date-fns";
8
+ import { ref as y, markRaw as Mr, computed as P } from "vue";
9
+ import { isAfter as Ve, parseISO as R, startOfToday as Oe, format as k, addSeconds as jr, addBusinessDays as Gr, endOfTomorrow as Br, startOfTomorrow as zr, endOfYesterday as Wr, startOfYesterday as Jr, endOfToday as Er, endOfDay as Vr, startOfDay as Kr } from "date-fns";
10
10
  import Qr, { CanceledError as Yr } from "axios";
11
- class j {
11
+ class M {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
14
14
  *
@@ -107,11 +107,11 @@ class j {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = nr(r), s = new j(He(e));
110
+ const e = nr(r), s = new M(He(e));
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class zt extends j {
114
+ class zt extends M {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -151,7 +151,7 @@ class zt extends j {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- return new j(He(nr(e)));
154
+ return new M(He(nr(e)));
155
155
  }
156
156
  }
157
157
  class Xr {
@@ -470,7 +470,7 @@ class ve {
470
470
  }
471
471
  function Ke(i) {
472
472
  try {
473
- const r = j.getJwtPayload(i);
473
+ const r = M.getJwtPayload(i);
474
474
  return new Date(r.exp * 1e3);
475
475
  } catch {
476
476
  return;
@@ -489,10 +489,10 @@ const V = W("common.auth_state_private", () => {
489
489
  const c = (u = d().config.devMode) == null ? void 0 : u.initAuthBearerToken;
490
490
  return c ? Promise.resolve(c) : void 0;
491
491
  })()
492
- ), r = y(void 0), e = y(void 0), s = jr(/* @__PURE__ */ new Map());
492
+ ), r = y(void 0), e = y(void 0), s = Mr(/* @__PURE__ */ new Map());
493
493
  function n() {
494
494
  e.value = void 0, A(i.value) || i.value.then((o) => {
495
- const c = j.getJwtPayload(o);
495
+ const c = M.getJwtPayload(o);
496
496
  e.value = c.exp * 1e3 > Date.now() ? or(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
497
497
  }).catch(v);
498
498
  }
@@ -543,7 +543,7 @@ const V = W("common.auth_state_private", () => {
543
543
  function n(o) {
544
544
  const c = V();
545
545
  !A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((m) => {
546
- const f = j.getJwtPayload(m);
546
+ const f = M.getJwtPayload(m);
547
547
  c.userPermissions = f.exp * 1e3 > Date.now() ? or(f.resourceAccess, (D) => (D == null ? void 0 : D.roles) ?? []) : void 0;
548
548
  }).catch(v);
549
549
  const u = H(o) ? o.join(" && ") : o;
@@ -767,7 +767,7 @@ class qe extends hr {
767
767
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
768
768
  }
769
769
  }
770
- class je {
770
+ class Me {
771
771
  /**
772
772
  * Инициализирует экземпляр указанного класса.
773
773
  *
@@ -868,7 +868,7 @@ class Re extends w {
868
868
  return { id: -2, slug: gr.Retail, name: "Розн. цена", guid: "", isNewRec: qr(!0) };
869
869
  }
870
870
  }
871
- class Ge {
871
+ class je {
872
872
  /**
873
873
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
874
874
  *
@@ -1101,7 +1101,7 @@ class L extends it {
1101
1101
  t(this, "priceCoefficients");
1102
1102
  this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Qe(e.unit) : new Qe(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new O(e.currency) : new O(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = C(e == null ? void 0 : e.costDate) ? R(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((h) => new ot(h))) ?? [], this.type = "product";
1103
1103
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
1104
- s && (this.category = new qe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new qe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new st(h, d().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new Ge(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1104
+ s && (this.category = new qe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new qe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new st(h, d().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new je(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1105
1105
  }
1106
1106
  /**
1107
1107
  * Возвращает признак, что это измеряемый товар.
@@ -1122,8 +1122,8 @@ class L extends it {
1122
1122
  return this.retailCostRub ?? this.costRub;
1123
1123
  }
1124
1124
  }
1125
- var Me = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Me || {});
1126
- class G extends L {
1125
+ var Ge = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Ge || {});
1126
+ class j extends L {
1127
1127
  /**
1128
1128
  * Инициализирует экземпляр класса {@link ClientProduct}.
1129
1129
  *
@@ -1159,7 +1159,7 @@ class G extends L {
1159
1159
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1160
1160
  */
1161
1161
  t(this, "isFavorite");
1162
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Me.Product, this.discount = e != null && e.discount ? new nt(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Q(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;
1162
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new nt(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Q(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1163
1163
  }
1164
1164
  }
1165
1165
  class we extends qe {
@@ -1265,7 +1265,7 @@ class fr extends re {
1265
1265
  * @inheritDoc
1266
1266
  */
1267
1267
  t(this, "replacementId");
1268
- this.product = new G(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new we(), this.currency = e.currency ? new O(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Ur(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new _(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
1268
+ this.product = new j(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new we(), this.currency = e.currency ? new O(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Ur(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new _(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
1269
1269
  }
1270
1270
  }
1271
1271
  let ct = class extends fr {
@@ -1492,7 +1492,7 @@ const a = class a {
1492
1492
  * @param type Тип данных, которыми оперирует метод.
1493
1493
  */
1494
1494
  static getInstance(r) {
1495
- return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = je.simpleInstanceInitializer(r)), a.instances[r.name];
1495
+ return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = Me.simpleInstanceInitializer(r)), a.instances[r.name];
1496
1496
  }
1497
1497
  /**
1498
1498
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1905,7 +1905,7 @@ class ae extends ht {
1905
1905
  * Список продуктов категории.
1906
1906
  */
1907
1907
  t(this, "products");
1908
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ae(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new G(o));
1908
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ae(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new j(o));
1909
1909
  }
1910
1910
  }
1911
1911
  class wr {
@@ -2464,7 +2464,7 @@ class Kt extends p {
2464
2464
  price_coefficient_id: (n = s.coefficient) == null ? void 0 : n.id,
2465
2465
  increase_percent: s.value
2466
2466
  },
2467
- (o) => new G(o.data)
2467
+ (o) => new j(o.data)
2468
2468
  );
2469
2469
  }
2470
2470
  /**
@@ -2476,7 +2476,7 @@ class Kt extends p {
2476
2476
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
2477
2477
  */
2478
2478
  removeProductPrice(r, e) {
2479
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new G(s.data));
2479
+ return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new j(s.data));
2480
2480
  }
2481
2481
  /**
2482
2482
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -2704,7 +2704,7 @@ class Yt extends p {
2704
2704
  getCategoryProductsCoefficients(r) {
2705
2705
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2706
2706
  const { data: s } = e;
2707
- return Hr(s, (n) => n.map((o) => new Ge(o))), s;
2707
+ return Hr(s, (n) => n.map((o) => new je(o))), s;
2708
2708
  });
2709
2709
  }
2710
2710
  /**
@@ -2754,7 +2754,7 @@ class Xt extends p {
2754
2754
  return this.get(
2755
2755
  `/internal/catalog/products/${r}/coefficients`,
2756
2756
  {},
2757
- (e) => fe(e.data, (s) => new Ge(s))
2757
+ (e) => fe(e.data, (s) => new je(s))
2758
2758
  );
2759
2759
  }
2760
2760
  /**
@@ -2831,7 +2831,7 @@ class Zt extends p {
2831
2831
  showHidden: n,
2832
2832
  withPriceCoefficients: s
2833
2833
  },
2834
- (o) => fe(o.data, (c) => new G(c))
2834
+ (o) => fe(o.data, (c) => new j(c))
2835
2835
  );
2836
2836
  }
2837
2837
  }
@@ -2852,7 +2852,7 @@ class es extends p {
2852
2852
  clientId: e,
2853
2853
  withPriceCoefficients: s
2854
2854
  },
2855
- (n) => new G(n.data)
2855
+ (n) => new j(n.data)
2856
2856
  );
2857
2857
  }
2858
2858
  }
@@ -2891,7 +2891,7 @@ class Xe {
2891
2891
  return r.value = xe(this.value) ? k(this.value, d().config.dateFormats.api) : this.value, r;
2892
2892
  }
2893
2893
  }
2894
- class M {
2894
+ class G {
2895
2895
  /**
2896
2896
  * Инициализирует экземпляр класса {@link FilterGroup}.
2897
2897
  *
@@ -2911,7 +2911,7 @@ class M {
2911
2911
  */
2912
2912
  t(this, "groups");
2913
2913
  var e, s;
2914
- this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((n) => new Xe(n))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((n) => new M(n))) ?? [];
2914
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((n) => new Xe(n))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((n) => new G(n))) ?? [];
2915
2915
  }
2916
2916
  /**
2917
2917
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2922,7 +2922,7 @@ class M {
2922
2922
  return {
2923
2923
  groupOp: this.groupOp,
2924
2924
  filters: this.filters.map((r) => r instanceof Xe && Fe(r.toPrimitive) ? r.toPrimitive() : r),
2925
- groups: this.groups.map((r) => r instanceof M ? r.toPrimitive() : r)
2925
+ groups: this.groups.map((r) => r instanceof G ? r.toPrimitive() : r)
2926
2926
  };
2927
2927
  }
2928
2928
  }
@@ -2944,7 +2944,7 @@ class Ae extends p {
2944
2944
  page: (n == null ? void 0 : n.page) ?? 1,
2945
2945
  perPage: (n == null ? void 0 : n.pageSize) ?? 10
2946
2946
  };
2947
- return e && (m.filters = JSON.stringify((e instanceof M ? e : new M(e)).toPrimitive())), X(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, h);
2947
+ return e && (m.filters = JSON.stringify((e instanceof G ? e : new G(e)).toPrimitive())), X(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, h);
2948
2948
  }
2949
2949
  }
2950
2950
  class rs extends Ae {
@@ -4223,6 +4223,10 @@ class cs extends Sr {
4223
4223
  * @inheritDoc
4224
4224
  */
4225
4225
  t(this, "managers");
4226
+ /**
4227
+ * @inheritDoc
4228
+ */
4229
+ t(this, "includeSubordinateManagers");
4226
4230
  /**
4227
4231
  * @inheritDoc
4228
4232
  */
@@ -4259,7 +4263,7 @@ class cs extends Sr {
4259
4263
  * @inheritDoc
4260
4264
  */
4261
4265
  t(this, "lastOrder");
4262
- this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new De(D)), this.region = new ge(e == null ? void 0 : e.region), this.country = new Z(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new b(e == null ? void 0 : e.createdAt), this.lastLoginDate = new b(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((n = e == null ? void 0 : e.managers) == null ? void 0 : n.map((D) => new Pe(D))) ?? [], this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new We(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new q(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new B(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new F(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new ee(D)), this.contact = new Ue(e == null ? void 0 : e.contact), this.lastOrder = {
4266
+ this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new De(D)), this.region = new ge(e == null ? void 0 : e.region), this.country = new Z(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new b(e == null ? void 0 : e.createdAt), this.lastLoginDate = new b(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((n = e == null ? void 0 : e.managers) == null ? void 0 : n.map((D) => new Pe(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new We(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new q(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new B(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new F(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new ee(D)), this.contact = new Ue(e == null ? void 0 : e.contact), this.lastOrder = {
4263
4267
  createdAt: new b((h = e == null ? void 0 : e.lastOrder) == null ? void 0 : h.createdAt),
4264
4268
  creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
4265
4269
  isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
@@ -5183,7 +5187,7 @@ const Y = class Y extends p {
5183
5187
  */
5184
5188
  cacheResponse(e, s) {
5185
5189
  Y.responseDataCache.set(e, {
5186
- validTo: Gr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5190
+ validTo: jr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5187
5191
  val: s
5188
5192
  });
5189
5193
  }
@@ -5200,7 +5204,7 @@ const Y = class Y extends p {
5200
5204
  getTypedDataArrayRequester(e, s, n = !1, o = {}) {
5201
5205
  const c = s + (X(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = n ? Y.getCachedResponse(c) : void 0;
5202
5206
  return u ? Promise.resolve(u) : this.get(s, o).then((h) => {
5203
- const m = h.map((f) => je.instanceInitializer(e, f));
5207
+ const m = h.map((f) => Me.instanceInitializer(e, f));
5204
5208
  return n && m && this.cacheResponse(s, m), m;
5205
5209
  });
5206
5210
  }
@@ -5343,7 +5347,7 @@ class ms {
5343
5347
  * Возвращает диапазон дат по умолчанию.
5344
5348
  */
5345
5349
  static defaultDateRanges() {
5346
- const r = Mr(/* @__PURE__ */ new Date(), 1);
5350
+ const r = Gr(/* @__PURE__ */ new Date(), 1);
5347
5351
  return {
5348
5352
  // 'Следующий рабочий день' - это значение по-умолчанию
5349
5353
  nextWorkingDay: { label: "Следующий рабочий день", from: Kr(r), to: Vr(r) },
@@ -5409,7 +5413,7 @@ class At extends me {
5409
5413
  const r = "/internal/managers", e = me.getCachedResponse(r);
5410
5414
  if (e)
5411
5415
  return e;
5412
- const n = (await this.get(r)).data.map((o) => je.instanceInitializer(Pe, o));
5416
+ const n = (await this.get(r)).data.map((o) => Me.instanceInitializer(Pe, o));
5413
5417
  return this.cacheResponse(r, n), n;
5414
5418
  }
5415
5419
  }
@@ -6151,7 +6155,7 @@ class St extends fr {
6151
6155
  * Продукт, которым заменена текущая запись.
6152
6156
  */
6153
6157
  t(this, "replacement");
6154
- this.product = new G(e.product), this.currency = new O(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, s && (this.replacement = s, this.quantity !== s.quantity && this.changedFields.push("quantity"), this.length !== s.length && this.changedFields.push("length"));
6158
+ this.product = new j(e.product), this.currency = new O(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, s && (this.replacement = s, this.quantity !== s.quantity && this.changedFields.push("quantity"), this.length !== s.length && this.changedFields.push("length"));
6155
6159
  }
6156
6160
  }
6157
6161
  class I extends kr {
@@ -6285,7 +6289,7 @@ class Cs extends Ae {
6285
6289
  getOrdersCount(r, e = void 0) {
6286
6290
  return this.get(
6287
6291
  "/internal/orders/count",
6288
- r ? { filters: JSON.stringify((r instanceof M ? r : new M(r)).toPrimitive()) } : {},
6292
+ r ? { filters: JSON.stringify((r instanceof G ? r : new G(r)).toPrimitive()) } : {},
6289
6293
  void 0,
6290
6294
  void 0,
6291
6295
  e
@@ -6588,7 +6592,7 @@ class Le {
6588
6592
  * Источник клиентской цены.
6589
6593
  */
6590
6594
  t(this, "source");
6591
- this.client = new te(r == null ? void 0 : r.client), this.product = new L(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) ?? Me.Product;
6595
+ this.client = new te(r == null ? void 0 : r.client), this.product = new L(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) ?? Ge.Product;
6592
6596
  }
6593
6597
  }
6594
6598
  const _e = (i) => {
@@ -7079,7 +7083,7 @@ export {
7079
7083
  x as ClientDataProvider,
7080
7084
  Kt as ClientPriceProvider,
7081
7085
  Qt as ClientPriceTemplateProvider,
7082
- G as ClientProduct,
7086
+ j as ClientProduct,
7083
7087
  Zt as ClientProductCategoryDataProvider,
7084
7088
  es as ClientProductDataProvider,
7085
7089
  te as ClientShortInfo,
@@ -7100,7 +7104,7 @@ export {
7100
7104
  vt as ContragentPerson,
7101
7105
  at as ContragentUlNr,
7102
7106
  br as ContragentUlR,
7103
- Me as CostSourceEnum,
7107
+ Ge as CostSourceEnum,
7104
7108
  Z as Country,
7105
7109
  ze as CuratedDirection,
7106
7110
  We as Curator,
@@ -7117,7 +7121,7 @@ export {
7117
7121
  Xr as DeviceTypeResolutionConfig,
7118
7122
  nt as DiscountShortInfo,
7119
7123
  Ss as FieldValidationResultData,
7120
- M as FilterGroup,
7124
+ G as FilterGroup,
7121
7125
  Xe as FilterItem,
7122
7126
  Je as FilterOpEnum,
7123
7127
  mr as GeoCoordinates,
@@ -7127,7 +7131,7 @@ export {
7127
7131
  p as HttpRequester,
7128
7132
  re as Identity,
7129
7133
  st as Image,
7130
- j as JwtPayload,
7134
+ M as JwtPayload,
7131
7135
  Pe as Manager,
7132
7136
  Be as ManagerCommon,
7133
7137
  ys as ManagerDataFactory,
@@ -7174,7 +7178,7 @@ export {
7174
7178
  Yt as ProductCategoryDataProvider,
7175
7179
  Xt as ProductDataProvider,
7176
7180
  wt as ProductFileType,
7177
- Ge as ProductPriceCoefficient,
7181
+ je as ProductPriceCoefficient,
7178
7182
  kt as ProductPriceHistory,
7179
7183
  Qe as ProductUnit,
7180
7184
  ss as PropertiesProvider,
@@ -7197,7 +7201,7 @@ export {
7197
7201
  ot as StockCount,
7198
7202
  is as TemplateProductCategoryDataProvider,
7199
7203
  Et as TemplatesListFilters,
7200
- je as TypedInstanceFactory,
7204
+ Me as TypedInstanceFactory,
7201
7205
  Ir as UnitsHelper,
7202
7206
  ps as UnknownClientDataProvider,
7203
7207
  ur as UpdatableNamedIdentity,