@snabcentr/common-lib 1.46.0 → 1.47.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.
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Перечисление возможных типов вычисления цены.
3
+ */
4
+ export declare enum CalculationTypeEnum {
5
+ /**
6
+ * Вычисление исходя из стоимости М2.
7
+ */
8
+ m2Cost = "m2Cost",
9
+ /**
10
+ * Вычисление на основе процента.
11
+ */
12
+ percent = "percent",
13
+ /**
14
+ * Вычисление на основе значения.
15
+ */
16
+ value = "value"
17
+ }
18
+ //# sourceMappingURL=calculation-type-enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calculation-type-enum.d.ts","sourceRoot":"","sources":["../../../../src/catalog/enums/calculation-type-enum.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,mBAAmB;IAC3B;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,KAAK,UAAU;CAClB"}
@@ -1,3 +1,4 @@
1
+ export * from './calculation-type-enum';
1
2
  export * from './cost-source-enum';
2
3
  export * from './property-type-enum';
3
4
  export * from './price-coefficient-enum';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/catalog/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/catalog/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC"}
@@ -21,6 +21,10 @@ export declare enum PriceCoefficientEnum {
21
21
  /**
22
22
  * Коэффициент K4
23
23
  */
24
- K4 = "k4"
24
+ K4 = "k4",
25
+ /**
26
+ * Розничная цена.
27
+ */
28
+ Retail = "retail"
25
29
  }
26
30
  //# sourceMappingURL=price-coefficient-enum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"price-coefficient-enum.d.ts","sourceRoot":"","sources":["../../../../src/catalog/enums/price-coefficient-enum.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,oBAAoB;IAC5B;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,EAAE,OAAO;CACZ"}
1
+ {"version":3,"file":"price-coefficient-enum.d.ts","sourceRoot":"","sources":["../../../../src/catalog/enums/price-coefficient-enum.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,oBAAoB;IAC5B;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,MAAM,WAAW;CACpB"}
@@ -1,9 +1,14 @@
1
1
  import { PriceCoefficientEnum } from '../../catalog/enums/price-coefficient-enum';
2
2
  import { IPriceCoefficient } from '../interfaces/i-price-coefficient';
3
3
  import { Reference } from '../../system/classes/reference';
4
+ import { IReference } from '../../system/interfaces/i-reference';
4
5
  /**
5
6
  * Данные о коэффициенте цены.
6
7
  */
7
8
  export declare class PriceCoefficient extends Reference<IPriceCoefficient, PriceCoefficientEnum> implements IPriceCoefficient {
9
+ /**
10
+ * Возвращает значение справочника коэффициента розничной цены.
11
+ */
12
+ static getRetailPriceCoefficient(): IReference;
8
13
  }
9
14
  //# sourceMappingURL=price-coefficient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"price-coefficient.d.ts","sourceRoot":"","sources":["../../../../src/references/classes/price-coefficient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,SAAS,CAAC,iBAAiB,EAAE,oBAAoB,CAAE,YAAW,iBAAiB;CAAG"}
1
+ {"version":3,"file":"price-coefficient.d.ts","sourceRoot":"","sources":["../../../../src/references/classes/price-coefficient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAG/D;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,SAAS,CAAC,iBAAiB,EAAE,oBAAoB,CAAE,YAAW,iBAAiB;IACjH;;OAEG;WACW,yBAAyB,IAAI,UAAU;CAGxD"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "keywords": [],
5
5
  "author": "Sergey S. Smirnov <dev@snabcentr.com>",
6
6
  "type": "module",
7
- "version": "1.46.0",
7
+ "version": "1.47.0",
8
8
  "license": "ISC",
9
9
  "scripts": {
10
10
  "dev": "vite",