@artisan-commerce/types 0.14.0-canary.44 → 0.14.0-canary.47

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.
Files changed (2) hide show
  1. package/dist/bundle.d.ts +7 -1
  2. package/package.json +4 -4
package/dist/bundle.d.ts CHANGED
@@ -829,6 +829,8 @@ interface ProductPrices {
829
829
  NORMAL: PriceCategory;
830
830
  /** Points price category, see {@link PriceCategory} */
831
831
  POINTS: PriceCategory;
832
+ /** Suggested price category, see {@link PriceCategory} */
833
+ SUGGESTED: PriceCategory;
832
834
  }
833
835
  /**
834
836
  * Price category attributes.
@@ -855,6 +857,10 @@ interface PriceCategory {
855
857
  discountNetPrice: number;
856
858
  /** Total discounts applied to the price category */
857
859
  discount: number;
860
+ /** Sale percentage value */
861
+ salePercentage: number;
862
+ /** Sale price before value */
863
+ priceBeforeSale: number;
858
864
  }
859
865
  /**
860
866
  * Price category tax attributes.
@@ -908,7 +914,7 @@ type ProductType = "PRODUCT" | "MODIFIER";
908
914
  * @typedef PriceCategoryType
909
915
  * @since 0.1.0
910
916
  **/
911
- type PriceCategoryType = "NORMAL" | "POINTS";
917
+ type PriceCategoryType = "NORMAL" | "POINTS" | "SUGGESTED";
912
918
  /**
913
919
  * Tax's possible values.
914
920
  *
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@artisan-commerce/types",
3
3
  "description": "Artisn's types and interfaces library",
4
4
  "type": "module",
5
- "version": "0.14.0-canary.44",
5
+ "version": "0.14.0-canary.47",
6
6
  "types": "./dist/bundle.d.ts",
7
7
  "files": [
8
8
  "dist"
@@ -24,17 +24,17 @@
24
24
  },
25
25
  "author": "Luis Eduardo Andrade",
26
26
  "license": "MIT",
27
- "gitHead": "3c92488c824df82adb39b272b9e389bb7d30443c",
27
+ "gitHead": "31a5315d6416ef7c087483b2633e3082a93d93c7",
28
28
  "nx": {
29
29
  "targets": {
30
30
  "build": {
31
31
  "outputs": [
32
- "./dist"
32
+ "{projectRoot}/dist"
33
33
  ]
34
34
  },
35
35
  "compile": {
36
36
  "outputs": [
37
- "./dist"
37
+ "{projectRoot}/dist"
38
38
  ]
39
39
  }
40
40
  }