@snabcentr/common-lib 1.45.0 → 1.45.1

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-scnb0KZ6dvGAmeciO+yrbUlm0SOpDTPUs9fNclFjUgs6xGGF5A2f1lkJmbTOR83A"
7
+ "integrity": "sha384-KAt3Ci+bzQlQfBniKbXVr1evjmkwbz6AjzwQc8GAmd4YSIkheYroJXRF5ujXUybn"
8
8
  }
9
9
  }
@@ -1,6 +1,6 @@
1
- ## 1.45.0 (2025-04-28)
1
+ ## 1.45.1 (2025-04-28)
2
2
 
3
- ### changed (1 change)
3
+ ### fixed (1 change)
4
4
 
5
- - [#11455: Доработана конфигурация URL-адресов](web_soft/libs/ts/snabcentr-common-lib@159cfc307c0b9871dd41c438453a60222f8f8595) ([merge request](web_soft/libs/ts/snabcentr-common-lib!71))
5
+ - [#11455: Исправлена ошибка сохранения изображения категории](web_soft/libs/ts/snabcentr-common-lib@23f363a9a05bc373e8250213b8a8c52c5db9848b) ([merge request](web_soft/libs/ts/snabcentr-common-lib!72))
6
6
 
@@ -1216,7 +1216,7 @@ class ue extends x {
1216
1216
  this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ne.Product, this.discount = e != null && e.discount ? new Sr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new _r(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;
1217
1217
  }
1218
1218
  }
1219
- class Lr {
1219
+ class ar {
1220
1220
  /**
1221
1221
  * Инициализирует экземпляр класса {@link ContactLinks}.
1222
1222
  *
@@ -1260,7 +1260,7 @@ class ee extends P {
1260
1260
  * Признак того, что менеджер является основным для клиента.
1261
1261
  */
1262
1262
  s(this, "isDefault");
1263
- e && (this.salesDirection = new T(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Lr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1263
+ e && (this.salesDirection = new T(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new ar(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1264
1264
  }
1265
1265
  }
1266
1266
  class pe extends ee {
@@ -1294,7 +1294,7 @@ class pe extends ee {
1294
1294
  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;
1295
1295
  }
1296
1296
  }
1297
- class ar extends ce {
1297
+ class Lr extends ce {
1298
1298
  /**
1299
1299
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1300
1300
  *
@@ -1325,7 +1325,7 @@ class ar extends ce {
1325
1325
  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 pe(e.manager) : void 0;
1326
1326
  }
1327
1327
  }
1328
- class re extends ar {
1328
+ class re extends Lr {
1329
1329
  /**
1330
1330
  * Инициализирует экземпляр класса {@link ClientCategory}.
1331
1331
  *
@@ -2539,7 +2539,7 @@ class fs extends Ae {
2539
2539
  * @see /doc/api/internal#/operations/api_internal_catalog_categories_image_save
2540
2540
  */
2541
2541
  updateCategoryImage(r, e) {
2542
- return this.post(`/internal/catalog/categories/${r}/image`, e);
2542
+ return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
2543
2543
  }
2544
2544
  }
2545
2545
  class ys extends p {
@@ -3766,7 +3766,7 @@ class Ds extends Ae {
3766
3766
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
3767
3767
  */
3768
3768
  createContragentClientData(r, e, t = {}) {
3769
- var g, C, A, S, _, L, a, I;
3769
+ var g, C, A, S, _, a, L, I;
3770
3770
  let n;
3771
3771
  const o = e, l = e, u = e;
3772
3772
  switch (e.opf.slug) {
@@ -3813,7 +3813,7 @@ class Ds extends Ae {
3813
3813
  name: u.name,
3814
3814
  alternative_name: u.alternativeName,
3815
3815
  partner_group_id: (_ = u.partnerGroup) == null ? void 0 : _.id,
3816
- manager_id: (L = u.manager) == null ? void 0 : L.id,
3816
+ manager_id: (a = u.manager) == null ? void 0 : a.id,
3817
3817
  comment: u.comment,
3818
3818
  inn: u.inn,
3819
3819
  kpp: u.kpp,
@@ -3834,7 +3834,7 @@ class Ds extends Ae {
3834
3834
  opf: e.opf.slug,
3835
3835
  name: e.name,
3836
3836
  alternative_name: e.alternativeName,
3837
- partner_group_id: (a = e.partnerGroup) == null ? void 0 : a.id,
3837
+ partner_group_id: (L = e.partnerGroup) == null ? void 0 : L.id,
3838
3838
  manager_id: (I = e.manager) == null ? void 0 : I.id,
3839
3839
  comment: e.comment
3840
3840
  };
@@ -3858,7 +3858,7 @@ class Ds extends Ae {
3858
3858
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
3859
3859
  */
3860
3860
  updateContragentClientData(r, e, t = {}) {
3861
- var g, C, A, S, _, L, a, I;
3861
+ var g, C, A, S, _, a, L, I;
3862
3862
  let n;
3863
3863
  const o = e, l = e, u = e;
3864
3864
  switch (e.opf.slug) {
@@ -3905,7 +3905,7 @@ class Ds extends Ae {
3905
3905
  name: u.name,
3906
3906
  alternative_name: u.alternativeName,
3907
3907
  partner_group_id: (_ = u.partnerGroup) == null ? void 0 : _.id,
3908
- manager_id: (L = u.manager) == null ? void 0 : L.id,
3908
+ manager_id: (a = u.manager) == null ? void 0 : a.id,
3909
3909
  comment: u.comment,
3910
3910
  inn: u.inn,
3911
3911
  kpp: u.kpp,
@@ -3926,7 +3926,7 @@ class Ds extends Ae {
3926
3926
  opf: e.opf.slug,
3927
3927
  name: e.name,
3928
3928
  alternative_name: e.alternativeName,
3929
- partner_group_id: (a = e.partnerGroup) == null ? void 0 : a.id,
3929
+ partner_group_id: (L = e.partnerGroup) == null ? void 0 : L.id,
3930
3930
  manager_id: (I = e.manager) == null ? void 0 : I.id,
3931
3931
  comment: e.comment
3932
3932
  };
@@ -4442,7 +4442,7 @@ const z = class z {
4442
4442
  * Список единиц измерения линейной величины.
4443
4443
  */
4444
4444
  s(z, "linearValues", ["пог.м.", "м.", "м2"]);
4445
- let Le = z;
4445
+ let ae = z;
4446
4446
  class bs {
4447
4447
  /**
4448
4448
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
@@ -4489,7 +4489,7 @@ class Jr {
4489
4489
  this.name = r.name, this.content = r.content;
4490
4490
  }
4491
4491
  }
4492
- class ae {
4492
+ class Le {
4493
4493
  /**
4494
4494
  * Инициализирует экземпляр класса {@link Seo}.
4495
4495
  *
@@ -4536,7 +4536,7 @@ class Ts extends p {
4536
4536
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
4537
4537
  */
4538
4538
  getResourceSeoData(r, e) {
4539
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new ae(t.data));
4539
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new Le(t.data));
4540
4540
  }
4541
4541
  /**
4542
4542
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -4547,7 +4547,7 @@ class Ts extends p {
4547
4547
  * в случае ошибок в запросах.
4548
4548
  */
4549
4549
  saveResourceSeoData(r, e = {}) {
4550
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new ae(t.data), e);
4550
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new Le(t.data), e);
4551
4551
  }
4552
4552
  /**
4553
4553
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -4560,7 +4560,7 @@ class Ts extends p {
4560
4560
  }
4561
4561
  }
4562
4562
  const v = oe("__references_private", () => {
4563
- const i = y({}), r = y(void 0), e = y(void 0), t = y(void 0), n = y(void 0), o = y(void 0), l = y(void 0), u = y(void 0), g = y(void 0), C = y(void 0), A = y(void 0), S = y(void 0), _ = y(void 0), L = y(void 0), a = y(void 0), I = y(void 0), d = y(void 0), c = y(void 0);
4563
+ const i = y({}), r = y(void 0), e = y(void 0), t = y(void 0), n = y(void 0), o = y(void 0), l = y(void 0), u = y(void 0), g = y(void 0), C = y(void 0), A = y(void 0), S = y(void 0), _ = y(void 0), a = y(void 0), L = y(void 0), I = y(void 0), d = y(void 0), c = y(void 0);
4564
4564
  return {
4565
4565
  /**
4566
4566
  * Список загружаемых/загруженных на данный момент значений.
@@ -4617,11 +4617,11 @@ const v = oe("__references_private", () => {
4617
4617
  /**
4618
4618
  * Справочник направлений продаж.
4619
4619
  */
4620
- salesDirectionsReference: L,
4620
+ salesDirectionsReference: a,
4621
4621
  /**
4622
4622
  * Справочник источников первичного интереса.
4623
4623
  */
4624
- sourcePrimaryInterestReference: a,
4624
+ sourcePrimaryInterestReference: L,
4625
4625
  /**
4626
4626
  * Справочник складов.
4627
4627
  */
@@ -4701,12 +4701,12 @@ const v = oe("__references_private", () => {
4701
4701
  return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, p.getInstance(R).getDeliveryTypes().then((h) => {
4702
4702
  c.deliveryTypeReference = h;
4703
4703
  }).catch(m)), c.deliveryTypeReference;
4704
- }), L = w(() => {
4704
+ }), a = w(() => {
4705
4705
  const c = v();
4706
4706
  return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, p.getInstance(Kr).getManagers().then((h) => {
4707
4707
  c.managersList = h;
4708
4708
  }).catch(m)), c.managersList;
4709
- }), a = w(() => {
4709
+ }), L = w(() => {
4710
4710
  const c = v();
4711
4711
  return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, p.getInstance(R).getWarehouses().then((h) => {
4712
4712
  c.warehousesReference = h;
@@ -4778,11 +4778,11 @@ const v = oe("__references_private", () => {
4778
4778
  /**
4779
4779
  * Список менеджеров.
4780
4780
  */
4781
- managersList: L,
4781
+ managersList: a,
4782
4782
  /**
4783
4783
  * Справочник складов.
4784
4784
  */
4785
- warehousesReference: a,
4785
+ warehousesReference: L,
4786
4786
  /**
4787
4787
  * Справочник типов свойств.
4788
4788
  */
@@ -4815,7 +4815,7 @@ const v = oe("__references_private", () => {
4815
4815
  }).catch(m).finally(m)), r.currentUser;
4816
4816
  })
4817
4817
  }));
4818
- class Ls extends p {
4818
+ class as extends p {
4819
4819
  /**
4820
4820
  * Возвращает подсказки по адресам.
4821
4821
  *
@@ -4862,7 +4862,7 @@ class Ls extends p {
4862
4862
  });
4863
4863
  }
4864
4864
  }
4865
- class as {
4865
+ class Ls {
4866
4866
  /**
4867
4867
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
4868
4868
  *
@@ -4914,7 +4914,7 @@ export {
4914
4914
  ws as ClientsListFilters,
4915
4915
  As as ConfiguratorProvider,
4916
4916
  ve as Contact,
4917
- Lr as ContactLinks,
4917
+ ar as ContactLinks,
4918
4918
  H as ContactPerson,
4919
4919
  Wr as ContactPersonRelated,
4920
4920
  xr as ContactPosition,
@@ -4928,7 +4928,7 @@ export {
4928
4928
  Ne as CostSourceEnum,
4929
4929
  E as Country,
4930
4930
  te as Currency,
4931
- Ls as DataSuggestionProvider,
4931
+ as as DataSuggestionProvider,
4932
4932
  vs as DataTablePagination,
4933
4933
  Er as DataTablePaginationRequestParams,
4934
4934
  Rs as DataTableSortRequestParams,
@@ -4938,7 +4938,7 @@ export {
4938
4938
  V as DeliveryType,
4939
4939
  Rr as DeviceTypeResolutionConfig,
4940
4940
  Sr as DiscountShortInfo,
4941
- as as FieldValidationResultData,
4941
+ Ls as FieldValidationResultData,
4942
4942
  je as FilterOpEnum,
4943
4943
  ke as GeoCoordinates,
4944
4944
  yr as HiddenCatalogableItem,
@@ -4990,12 +4990,12 @@ export {
4990
4990
  qe as ResourceType,
4991
4991
  T as SalesDirection,
4992
4992
  Pr as SentryConfig,
4993
- ae as Seo,
4993
+ Le as Seo,
4994
4994
  Ts as SeoDataProvider,
4995
4995
  Ge as SourcePrimaryInterest,
4996
4996
  fr as StockCount,
4997
4997
  Pe as TypedInstanceFactory,
4998
- Le as UnitsHelper,
4998
+ ae as UnitsHelper,
4999
4999
  Ps as UnknownClientDataProvider,
5000
5000
  Oe as UpdatableNamedIdentity,
5001
5001
  qr as User,