@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.
- package/dist/manifest.json +1 -1
- package/dist/release_notes.tmp +3 -3
- package/dist/sc-common-lib.js +30 -5
- package/dist/sc-common-lib.js.map +1 -1
- package/dist/sc-common-lib.umd.cjs +1 -1
- package/dist/sc-common-lib.umd.cjs.map +1 -1
- package/dist/src/catalog/interfaces/i-price-update-data.d.ts +5 -6
- package/dist/src/catalog/interfaces/i-price-update-data.d.ts.map +1 -1
- package/dist/src/catalog/providers/client-price-provider.d.ts.map +1 -1
- package/dist/src/catalog/providers/price-template-provider.d.ts.map +1 -1
- package/dist/src/references/classes/index.d.ts +1 -0
- package/dist/src/references/classes/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/manifest.json
CHANGED
package/dist/release_notes.tmp
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## 1.
|
|
1
|
+
## 1.48.1 (2025-05-07)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### fixed (1 change)
|
|
4
4
|
|
|
5
|
-
- [#11607:
|
|
5
|
+
- [#11607: Исправлена ошибка экспорта типа PriceCoefficient](web_soft/libs/ts/snabcentr-common-lib@79028a88b5842371ea9da66431d670f0bd46c5c5) ([merge request](web_soft/libs/ts/snabcentr-common-lib!79))
|
|
6
6
|
|
package/dist/sc-common-lib.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
4368
|
-
|
|
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,
|