@nguyentrungkien/shared 2.0.4 → 2.0.7

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.
@@ -2,3 +2,4 @@ export * from "./user-role.enum";
2
2
  export * from "./order.enum";
3
3
  export * from "./payment.enum";
4
4
  export * from "./shipping.enum";
5
+ export * from "./vouccher.enum";
@@ -18,3 +18,4 @@ __exportStar(require("./user-role.enum"), exports);
18
18
  __exportStar(require("./order.enum"), exports);
19
19
  __exportStar(require("./payment.enum"), exports);
20
20
  __exportStar(require("./shipping.enum"), exports);
21
+ __exportStar(require("./vouccher.enum"), exports);
@@ -0,0 +1,8 @@
1
+ export declare enum VoucherStatus {
2
+ "ACTIVE" = "ACTIVE",
3
+ "INACTIVE" = "INACTIVE"
4
+ }
5
+ export declare enum VoucherType {
6
+ "PERCENT" = "PERCENT",
7
+ "FIXED" = "FIXED"
8
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VoucherType = exports.VoucherStatus = void 0;
4
+ var VoucherStatus;
5
+ (function (VoucherStatus) {
6
+ VoucherStatus["ACTIVE"] = "ACTIVE";
7
+ VoucherStatus["INACTIVE"] = "INACTIVE";
8
+ })(VoucherStatus || (exports.VoucherStatus = VoucherStatus = {}));
9
+ var VoucherType;
10
+ (function (VoucherType) {
11
+ VoucherType["PERCENT"] = "PERCENT";
12
+ VoucherType["FIXED"] = "FIXED";
13
+ })(VoucherType || (exports.VoucherType = VoucherType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nguyentrungkien/shared",
3
- "version": "2.0.4",
3
+ "version": "2.0.7",
4
4
  "description": "shared enum & types",
5
5
  "license": "ISC",
6
6
  "author": "nguyentrungkien04921@gmail.com",
@@ -18,12 +18,13 @@
18
18
  "dist"
19
19
  ],
20
20
  "scripts": {
21
- "test": "echo \"Error: no test specified\" && exit 1",
22
- "build": "tsc",
23
- "watch": "tsc --watch"
21
+ "build": "tsc"
22
+ },
23
+ "peerDependencies": {
24
+ "@nestjs/common": "^10.0.0",
25
+ "rxjs": "^7.8.0"
24
26
  },
25
27
  "devDependencies": {
26
28
  "typescript": "^5.9.2"
27
- },
28
- "dependencies": {}
29
+ }
29
30
  }