@snabcentr/common-lib 1.86.1 → 1.87.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-se99vc1lgBG3bV/DBJMsnoq0WY5ShFLtCevMohDJNOwbnHeQ1HMFZH90PnqEWYcU"
7
+ "integrity": "sha384-BcR2SS+LHGfSvSXjXTvQDue1xIZ94cWkF+vHciroOEr/DgXmEsV/RoZ6ggedkFtm"
8
8
  }
9
9
  }
@@ -1,5 +1,5 @@
1
- var Ir = Object.defineProperty;
2
- var Lr = (n, r, e) => r in n ? Ir(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
1
+ var ar = Object.defineProperty;
2
+ var Lr = (n, r, e) => r in n ? ar(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
3
  var t = (n, r, e) => Lr(n, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { jwtDecode as ir } from "jwt-decode";
5
5
  import { merge as ne, isNil as T, isEmpty as Q, noop as w, mapValues as nr, isArray as H, every as dr, split as xr, isString as v, constant as Or, toUpper as _r, cloneDeep as qr, toLower as Nr, isFunction as Ue, map as he, forEach as Ur, isDate as xe, omitBy as or, isObject as cr } from "lodash-es";
@@ -336,7 +336,7 @@ class et {
336
336
  };
337
337
  }
338
338
  }
339
- const I = B("common.config", () => {
339
+ const a = B("common.config", () => {
340
340
  const n = y(new et());
341
341
  return {
342
342
  /**
@@ -486,7 +486,7 @@ const J = B("common.auth_state_private", () => {
486
486
  );
487
487
  if (o)
488
488
  return Promise.resolve(o);
489
- const c = (u = I().config.devMode) == null ? void 0 : u.initAuthBearerToken;
489
+ const c = (u = a().config.devMode) == null ? void 0 : u.initAuthBearerToken;
490
490
  return c ? Promise.resolve(c) : void 0;
491
491
  })()
492
492
  ), r = y(void 0), e = y(void 0), s = Hr(/* @__PURE__ */ new Map());
@@ -970,7 +970,7 @@ class Ke extends k {
970
970
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
971
971
  }
972
972
  }
973
- class a extends st {
973
+ class I extends st {
974
974
  /**
975
975
  * Инициализирует экземпляр класса {@link Product}.
976
976
  *
@@ -1049,7 +1049,7 @@ class a extends st {
1049
1049
  t(this, "priceCoefficients");
1050
1050
  this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Ke(e.unit) : new Ke(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new x(e.currency) : new x(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = v(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((h) => new nt(h))) ?? [], this.type = "product";
1051
1051
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
1052
- s && (this.category = new _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new _e(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new tt(h, I().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 Fe(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1052
+ s && (this.category = new _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new _e(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new tt(h, a().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 Fe(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1053
1053
  }
1054
1054
  /**
1055
1055
  * Возвращает признак, что это измеряемый товар.
@@ -1071,7 +1071,7 @@ class a extends st {
1071
1071
  }
1072
1072
  }
1073
1073
  var Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {});
1074
- class F extends a {
1074
+ class F extends I {
1075
1075
  /**
1076
1076
  * Инициализирует экземпляр класса {@link ClientProduct}.
1077
1077
  *
@@ -1277,7 +1277,7 @@ const P = class P {
1277
1277
  /**
1278
1278
  * Базовый URL путь для выполнения запросов.
1279
1279
  */
1280
- t(this, "baseUrl", `${I().config.http.portalApiUrl}/api`);
1280
+ t(this, "baseUrl", `${a().config.http.portalApiUrl}/api`);
1281
1281
  /**
1282
1282
  * Обработчик ошибок выполнения запросов текущего экземпляра класса.
1283
1283
  *
@@ -1666,7 +1666,7 @@ class _ extends ge {
1666
1666
  * Список продуктов категории.
1667
1667
  */
1668
1668
  t(this, "products");
1669
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new _(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new a(o));
1669
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new _(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
1670
1670
  }
1671
1671
  }
1672
1672
  class gr {
@@ -2051,7 +2051,7 @@ class ke extends mr {
2051
2051
  * Базовые данные о продукте.
2052
2052
  */
2053
2053
  t(this, "product");
2054
- this.product = new a(e == null ? void 0 : e.product);
2054
+ this.product = new I(e == null ? void 0 : e.product);
2055
2055
  }
2056
2056
  }
2057
2057
  class yr extends R {
@@ -2264,7 +2264,7 @@ class Wt extends p {
2264
2264
  */
2265
2265
  // eslint-disable-next-line class-methods-use-this
2266
2266
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2267
- let c = `${I().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2267
+ let c = `${a().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2268
2268
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2269
2269
  }
2270
2270
  }
@@ -2502,7 +2502,7 @@ class Et extends p {
2502
2502
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2503
2503
  */
2504
2504
  attachTemplate(r, e, s) {
2505
- const i = I().config.dateFormats.api;
2505
+ const i = a().config.dateFormats.api;
2506
2506
  return this.post(
2507
2507
  `/internal/clients/${r}/price/templates/${e}`,
2508
2508
  s && {
@@ -2536,7 +2536,7 @@ class Et extends p {
2536
2536
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2537
2537
  */
2538
2538
  changeTemplate(r, e, s, i) {
2539
- const o = I().config.dateFormats.api;
2539
+ const o = a().config.dateFormats.api;
2540
2540
  return this.patch(
2541
2541
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2542
2542
  i && {
@@ -2619,7 +2619,7 @@ class Vt extends p {
2619
2619
  showHidden: s,
2620
2620
  withPriceCoefficients: e
2621
2621
  },
2622
- (i) => he(i.data, (o) => new a(o))
2622
+ (i) => he(i.data, (o) => new I(o))
2623
2623
  );
2624
2624
  }
2625
2625
  /**
@@ -2661,7 +2661,7 @@ class Kt extends p {
2661
2661
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
2662
2662
  */
2663
2663
  getProductData(r, e = !1) {
2664
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new a(s.data));
2664
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new I(s.data));
2665
2665
  }
2666
2666
  /**
2667
2667
  * Возвращает публичные данные об указанном продукте.
@@ -2669,7 +2669,7 @@ class Kt extends p {
2669
2669
  * @param productId Идентификатор продукта.
2670
2670
  */
2671
2671
  getPublicProductData(r) {
2672
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new a(e.data));
2672
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new I(e.data));
2673
2673
  }
2674
2674
  /**
2675
2675
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -2694,7 +2694,7 @@ class Kt extends p {
2694
2694
  publicSimpleSearch(r, e = 10) {
2695
2695
  return new Promise((s, i) => {
2696
2696
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2697
- s(o.products.map((c) => new a(c)));
2697
+ s(o.products.map((c) => new I(c)));
2698
2698
  }).catch((o) => {
2699
2699
  i(o);
2700
2700
  });
@@ -2816,7 +2816,7 @@ class Ye {
2816
2816
  field: this.field,
2817
2817
  op: this.op
2818
2818
  };
2819
- return r.value = xe(this.value) ? U(this.value, I().config.dateFormats.api) : this.value, r;
2819
+ return r.value = xe(this.value) ? U(this.value, a().config.dateFormats.api) : this.value, r;
2820
2820
  }
2821
2821
  }
2822
2822
  class le {
@@ -3589,7 +3589,7 @@ class rs extends p {
3589
3589
  showHidden: i,
3590
3590
  withPriceCoefficients: s
3591
3591
  },
3592
- (o) => he(o.data, (c) => new a(c))
3592
+ (o) => he(o.data, (c) => new I(c))
3593
3593
  );
3594
3594
  }
3595
3595
  }
@@ -3973,7 +3973,7 @@ class ve {
3973
3973
  }
3974
3974
  }
3975
3975
  }
3976
- class ae extends Z {
3976
+ class Ie extends Z {
3977
3977
  /**
3978
3978
  * Инициализирует экземпляр класса {@link ContactRelation}.
3979
3979
  *
@@ -4013,7 +4013,7 @@ class Rt extends M {
4013
4013
  */
4014
4014
  addresses: []
4015
4015
  });
4016
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new ae(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new ae(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new ae(s))));
4016
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Ie(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Ie(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Ie(s))));
4017
4017
  }
4018
4018
  }
4019
4019
  class Ce extends rt {
@@ -4224,7 +4224,7 @@ class ss extends br {
4224
4224
  * @inheritDoc
4225
4225
  */
4226
4226
  t(this, "lastOrder");
4227
- 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 Ae(D)), this.region = new ce(e == null ? void 0 : e.region), this.country = new Y(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 S(e == null ? void 0 : e.createdAt), this.lastLoginDate = new S(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((D) => new Pe(D))) ?? [], this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new ze(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new O(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new G(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = new N(e == null ? void 0 : e.preferredDeliveryType), this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new X(D)), this.contact = new Ne(e == null ? void 0 : e.contact), this.lastOrder = {
4227
+ 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 Ae(D)), this.region = new ce(e == null ? void 0 : e.region), this.country = new Y(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 S(e == null ? void 0 : e.createdAt), this.lastLoginDate = new S(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((D) => new Pe(D))) ?? [], this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new ze(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new O(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new G(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new N(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new X(D)), this.contact = new Ne(e == null ? void 0 : e.contact), this.lastOrder = {
4228
4228
  createdAt: new S((h = e == null ? void 0 : e.lastOrder) == null ? void 0 : h.createdAt),
4229
4229
  creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
4230
4230
  isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
@@ -5117,7 +5117,7 @@ const K = class K extends p {
5117
5117
  * Время кэширования данных ответов на запросы (секунд).
5118
5118
  */
5119
5119
  t(this, "responseDataCacheTimeout");
5120
- this.responseDataCacheTimeout = I().config.http.responseDataCacheTimeout;
5120
+ this.responseDataCacheTimeout = a().config.http.responseDataCacheTimeout;
5121
5121
  }
5122
5122
  /**
5123
5123
  * Возвращает кэшированные данные.
@@ -5233,7 +5233,7 @@ class ls extends p {
5233
5233
  const o = this.get(
5234
5234
  `internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
5235
5235
  { params: s, client_id: e },
5236
- (u) => new a(u.data)
5236
+ (u) => new I(u.data)
5237
5237
  );
5238
5238
  return o.catch((u) => {
5239
5239
  this.errorResponseHandler(u, i);
@@ -5369,7 +5369,7 @@ class Tt extends pe {
5369
5369
  return this.cacheResponse(r, i), i;
5370
5370
  }
5371
5371
  }
5372
- class ar extends Sr {
5372
+ class Ir extends Sr {
5373
5373
  /**
5374
5374
  * Инициализирует экземпляр класса {@link OrderInfo}.
5375
5375
  *
@@ -6028,7 +6028,7 @@ class bt extends hr {
6028
6028
  this.product = new F(e.product), this.currency = new x(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;
6029
6029
  }
6030
6030
  }
6031
- class Ie extends ar {
6031
+ class ae extends Ir {
6032
6032
  /**
6033
6033
  * Инициализирует экземпляр класса {@link Order}.
6034
6034
  *
@@ -6086,12 +6086,12 @@ class fs extends De {
6086
6086
  return this.getPaginated(
6087
6087
  "/internal/orders",
6088
6088
  r,
6089
- e ? [e] : void 0,
6089
+ e,
6090
6090
  s,
6091
6091
  {},
6092
6092
  (o) => {
6093
6093
  const c = { ...o.data };
6094
- return c.data = c.data.map((u) => new ar(u)), c;
6094
+ return c.data = c.data.map((u) => new Ir(u)), c;
6095
6095
  },
6096
6096
  void 0,
6097
6097
  i
@@ -6112,7 +6112,7 @@ class fs extends De {
6112
6112
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
6113
6113
  */
6114
6114
  getOrder(r) {
6115
- return this.get(`/internal/orders/${r}`, {}, (e) => new Ie(e.data));
6115
+ return this.get(`/internal/orders/${r}`, {}, (e) => new ae(e.data));
6116
6116
  }
6117
6117
  /**
6118
6118
  * Добавляет продукт в заказ и возвращает обновлённые данные заказа.
@@ -6140,7 +6140,7 @@ class fs extends De {
6140
6140
  is_additional_sale: e.isAdditionalSale,
6141
6141
  ...e.configuratorParams
6142
6142
  },
6143
- (i) => new Ie(i.data),
6143
+ (i) => new ae(i.data),
6144
6144
  s
6145
6145
  );
6146
6146
  }
@@ -6170,7 +6170,7 @@ class fs extends De {
6170
6170
  marker: s.marker,
6171
6171
  ...s.configuratorParams
6172
6172
  },
6173
- (o) => new Ie(o.data),
6173
+ (o) => new ae(o.data),
6174
6174
  i
6175
6175
  );
6176
6176
  }
@@ -6202,7 +6202,7 @@ class Le {
6202
6202
  * Источник клиентской цены.
6203
6203
  */
6204
6204
  t(this, "source");
6205
- this.client = new me(r == null ? void 0 : r.client), this.product = new a(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;
6205
+ this.client = new me(r == null ? void 0 : r.client), this.product = new I(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;
6206
6206
  }
6207
6207
  }
6208
6208
  const de = (n) => {
@@ -6358,7 +6358,7 @@ class ws extends p {
6358
6358
  */
6359
6359
  getProductPriceHistory(r) {
6360
6360
  var o, c, u, h, m;
6361
- const e = I().config.dateFormats.api, s = or(
6361
+ const e = a().config.dateFormats.api, s = or(
6362
6362
  ne(r, {
6363
6363
  costDate: {
6364
6364
  from: xe((o = r.costDate) == null ? void 0 : o.from) ? U(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
@@ -6436,7 +6436,7 @@ class vs extends p {
6436
6436
  });
6437
6437
  }
6438
6438
  }
6439
- class at {
6439
+ class It {
6440
6440
  /**
6441
6441
  * Инициализирует экземпляр класса {@link MetaTagItem}.
6442
6442
  *
@@ -6494,7 +6494,7 @@ class sr {
6494
6494
  */
6495
6495
  t(this, "tags");
6496
6496
  var e;
6497
- this.resourceType = new Rr(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 at(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
6497
+ this.resourceType = new Rr(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))) ?? [], this.tags = r == null ? void 0 : r.tags;
6498
6498
  }
6499
6499
  }
6500
6500
  class Cs extends p {
@@ -6575,7 +6575,7 @@ class Rs extends p {
6575
6575
  });
6576
6576
  }
6577
6577
  }
6578
- var It = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(It || {});
6578
+ var at = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(at || {});
6579
6579
  class Lt extends fr {
6580
6580
  /**
6581
6581
  * Инициализирует экземпляр класса {@link User}.
@@ -6604,7 +6604,7 @@ class Ps extends p {
6604
6604
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
6605
6605
  */
6606
6606
  constructor() {
6607
- super(), this.baseUrl = `${I().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6607
+ super(), this.baseUrl = `${a().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6608
6608
  }
6609
6609
  /**
6610
6610
  * Функция для получения обновленных токенов доступа.
@@ -6707,7 +6707,7 @@ export {
6707
6707
  M as ContactPerson,
6708
6708
  Rt as ContactPersonRelated,
6709
6709
  mt as ContactPosition,
6710
- ae as ContactRelation,
6710
+ Ie as ContactRelation,
6711
6711
  Dr as ContragentBase,
6712
6712
  ve as ContragentFactory,
6713
6713
  Tr as ContragentIc,
@@ -6746,13 +6746,13 @@ export {
6746
6746
  Me as ManagerCommon,
6747
6747
  hs as ManagerDataFactory,
6748
6748
  Tt as ManagerDataProvider,
6749
- at as MetaTagItem,
6749
+ It as MetaTagItem,
6750
6750
  k as NamedIdentity,
6751
6751
  vr as Operator,
6752
6752
  G as Opf,
6753
6753
  q as OpfEnum,
6754
- Ie as Order,
6755
- ar as OrderInfo,
6754
+ ae as Order,
6755
+ Ir as OrderInfo,
6756
6756
  bt as OrderItem,
6757
6757
  hr as OrderItemBase,
6758
6758
  ft as OrderPaymentStatus,
@@ -6780,7 +6780,7 @@ export {
6780
6780
  ie as PricingRole,
6781
6781
  Zt as PricingRoleProvider,
6782
6782
  _e as PrimaryCatalogableItem,
6783
- a as Product,
6783
+ I as Product,
6784
6784
  Vt as ProductCategoryDataProvider,
6785
6785
  Kt as ProductDataProvider,
6786
6786
  wt as ProductFileType,
@@ -6816,7 +6816,7 @@ export {
6816
6816
  dt as UserDataProvider,
6817
6817
  ut as UserPricingRole,
6818
6818
  d as UserShortInfo,
6819
- It as UserTypeEnum,
6819
+ at as UserTypeEnum,
6820
6820
  cs as VersionConfig,
6821
6821
  ue as Warehouse,
6822
6822
  Zr as WebSocketConfig,
@@ -6824,7 +6824,7 @@ export {
6824
6824
  Ze as flattenCatalogItems,
6825
6825
  ps as pluralize,
6826
6826
  be as useAuthStateStore,
6827
- I as useBaseConfigStateStore,
6827
+ a as useBaseConfigStateStore,
6828
6828
  gs as useReferencesStore,
6829
6829
  As as useUserStateStore
6830
6830
  };