@snabcentr/common-lib 1.47.0 → 1.48.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-ctCd/dT7fmPzuIGmd2Pu2Ns1+FpShTso+gOyFOWkab/QYa1/Ajvust4CLaJlP7rG"
7
+ "integrity": "sha384-3D6GrZ8AqnMYeB+/CRek2Rnd8XB3bJeO9o1zEitLk/Gkvv9TVUSjm++ISrD6zpHB"
8
8
  }
9
9
  }
@@ -1,6 +1,6 @@
1
- ## 1.47.0 (2025-05-07)
1
+ ## 1.48.1 (2025-05-07)
2
2
 
3
- ### added (1 change)
3
+ ### fixed (1 change)
4
4
 
5
- - [#11607: Добавлены дополнительные данные для возможности представления значения розничной цены](web_soft/libs/ts/snabcentr-common-lib@5c57096959bd40212f25fe34df3318058130766e) ([merge request](web_soft/libs/ts/snabcentr-common-lib!76))
5
+ - [#11607: Исправлена ошибка экспорта типа PriceCoefficient](web_soft/libs/ts/snabcentr-common-lib@79028a88b5842371ea9da66431d670f0bd46c5c5) ([merge request](web_soft/libs/ts/snabcentr-common-lib!79))
6
6
 
@@ -3728,7 +3728,11 @@ class $t extends u {
3728
3728
  * @see /doc/api/internal#/operations/api_internal_client_price_category_update
3729
3729
  */
3730
3730
  updateCategoryPrices(r, e, s) {
3731
- return this.patch(`/internal/clients/${r}/price/categories/${e}`, s);
3731
+ var i;
3732
+ return this.patch(`/internal/clients/${r}/price/categories/${e}`, {
3733
+ price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
3734
+ increase_percent: s.value
3735
+ });
3732
3736
  }
3733
3737
  /**
3734
3738
  * Удаляет клиентские цены на продукты категории.
@@ -3819,7 +3823,15 @@ class $t extends u {
3819
3823
  * @see /doc/api/internal#/operations/api_internal_client_price_products_update
3820
3824
  */
3821
3825
  updateProductPrice(r, e, s) {
3822
- return this.patch(`/internal/clients/${r}/price/products/${e}`, s, (i) => new J(i.data));
3826
+ var i;
3827
+ return this.patch(
3828
+ `/internal/clients/${r}/price/products/${e}`,
3829
+ {
3830
+ price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
3831
+ increase_percent: s.value
3832
+ },
3833
+ (o) => new J(o.data)
3834
+ );
3823
3835
  }
3824
3836
  /**
3825
3837
  * Удаляет удаляет клиентскую цену на продукт.
@@ -4310,7 +4322,15 @@ class St extends we {
4310
4322
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_save
4311
4323
  */
4312
4324
  saveProductTemplatePrice(r, e, s) {
4313
- return this.post(`/internal/price/templates/${r}/products/${e}`, s, (i) => new Pe(i.data));
4325
+ var i;
4326
+ return this.post(
4327
+ `/internal/price/templates/${r}/products/${e}`,
4328
+ {
4329
+ price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
4330
+ increase_percent: s.value
4331
+ },
4332
+ (o) => new Pe(o.data)
4333
+ );
4314
4334
  }
4315
4335
  /**
4316
4336
  * Удаляет данные о цене на продукт в шаблоне прайс-листа.
@@ -4362,10 +4382,14 @@ class St extends we {
4362
4382
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_save
4363
4383
  */
4364
4384
  saveCategoryTemplatePrice(r, e, s) {
4385
+ var i;
4365
4386
  return this.post(
4366
4387
  `/internal/price/templates/${r}/categories/${e}`,
4367
- s,
4368
- (i) => new ve(i.data)
4388
+ {
4389
+ price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
4390
+ increase_percent: s.value
4391
+ },
4392
+ (o) => new ve(o.data)
4369
4393
  );
4370
4394
  }
4371
4395
  /**
@@ -5592,6 +5616,7 @@ export {
5592
5616
  mt as PreferencesStorageProvider,
5593
5617
  ae as PriceAnalyze,
5594
5618
  It as PriceAnalyzeProvider,
5619
+ me as PriceCoefficient,
5595
5620
  Ge as PriceCoefficientEnum,
5596
5621
  B as PriceTemplate,
5597
5622
  ve as PriceTemplateCategory,