@nguyentrungkien/shared 2.0.22 → 2.0.24

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,3 +4,4 @@ export declare enum flashSaleStatus {
4
4
  ENDED = "ENDED",
5
5
  CANCELLED = "CANCELLED"
6
6
  }
7
+ //# sourceMappingURL=flashsale.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flashsale.enum.d.ts","sourceRoot":"","sources":["../../src/enums/flashsale.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,SAAS,cAAc;CACxB"}
@@ -1 +1,7 @@
1
- export {};
1
+ export * from "./user-role.enum.js";
2
+ export * from "./order.enum.js";
3
+ export * from "./payment.enum.js";
4
+ export * from "./shipping.enum.js";
5
+ export * from "./vouccher.enum.js";
6
+ export * from "./flashsale.enum.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
@@ -1,7 +1,6 @@
1
- export {};
2
- // export * from "./user-role.enum";
3
- // export * from "./order.enum";
4
- // export * from "./payment.enum";
5
- // export * from "./shipping.enum";
6
- // export * from "./vouccher.enum";
7
- // export * from "./flashsale.enum";
1
+ export * from "./user-role.enum.js";
2
+ export * from "./order.enum.js";
3
+ export * from "./payment.enum.js";
4
+ export * from "./shipping.enum.js";
5
+ export * from "./vouccher.enum.js";
6
+ export * from "./flashsale.enum.js";
@@ -18,3 +18,4 @@ export declare enum CancelReasonType {
18
18
  WRONG_ADDRESS = "WRONG_ADDRESS",// Sai địa chỉ
19
19
  OTHER = "OTHER"
20
20
  }
21
+ //# sourceMappingURL=order.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order.enum.d.ts","sourceRoot":"","sources":["../../src/enums/order.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;CACxB;AAED,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,oBAAY,gBAAgB;IAC1B,cAAc,mBAAmB,CAAE,QAAQ;IAC3C,kBAAkB,uBAAuB,CAAE,sBAAsB;IACjE,gBAAgB,qBAAqB,CAAE,WAAW;IAClD,aAAa,kBAAkB,CAAE,cAAc;IAC/C,KAAK,UAAU;CAChB"}
@@ -12,3 +12,4 @@ export declare const PaymentStatusLabel: {
12
12
  CANCELLED: string;
13
13
  REFUNDED: string;
14
14
  };
15
+ //# sourceMappingURL=payment.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment.enum.d.ts","sourceRoot":"","sources":["../../src/enums/payment.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,OAAO,YAAY,CAAE,iBAAiB;IACtC,OAAO,YAAY,CAAE,wBAAwB;IAC7C,MAAM,WAAW,CAAE,uBAAuB;IAC1C,SAAS,cAAc,CAAE,UAAU;IACnC,QAAQ,aAAa;CACtB;AAED,eAAO,MAAM,kBAAkB;;;;;;CAM9B,CAAC"}
@@ -16,3 +16,4 @@ export declare enum ShippingProvider {
16
16
  J_T_EXPRESS = "J_T_EXPRESS",// J&T Express
17
17
  INTERNAL = "INTERNAL"
18
18
  }
19
+ //# sourceMappingURL=shipping.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shipping.enum.d.ts","sourceRoot":"","sources":["../../src/enums/shipping.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,OAAO,YAAY,CAAE,sBAAsB;IAC3C,SAAS,cAAc,CAAE,0BAA0B;IACnD,UAAU,eAAe,CAAE,+BAA+B;IAC1D,gBAAgB,qBAAqB,CAAE,oCAAoC;IAC3E,SAAS,cAAc,CAAE,8BAA8B;IACvD,MAAM,WAAW,CAAE,yBAAyB;IAC5C,QAAQ,aAAa,CAAE,0BAA0B;IACjD,QAAQ,aAAa;CACtB;AAED,oBAAY,gBAAgB;IAC1B,GAAG,QAAQ,CAAE,wBAAwB;IACrC,IAAI,SAAS,CAAE,8BAA8B;IAC7C,YAAY,iBAAiB,CAAE,cAAc;IAC7C,OAAO,YAAY,CAAE,kBAAkB;IACvC,WAAW,gBAAgB,CAAE,gBAAgB;IAC7C,QAAQ,aAAa;CACtB"}
@@ -30,3 +30,4 @@ export declare enum DeleteReason {
30
30
  ACCOUNT_ISSUE = "ACCOUNT_ISSUE",// Gặp vấn đề với tài khoản
31
31
  OTHER = "OTHER"
32
32
  }
33
+ //# sourceMappingURL=user-role.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-role.enum.d.ts","sourceRoot":"","sources":["../../src/enums/user-role.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,oBAAY,MAAM;IAChB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,oBAAY,WAAW;IACrB,MAAM,WAAW,CAAE,WAAW;IAC9B,SAAS,cAAc,CAAE,gBAAgB;IACzC,QAAQ,aAAa,CAAE,WAAW;IAClC,QAAQ,aAAa;CACtB;AAED,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,OAAO,YAAY;CACpB;AAED,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,oBAAY,YAAY;IACtB,SAAS,cAAc,CAAE,wBAAwB;IACjD,gBAAgB,qBAAqB,CAAE,4BAA4B;IACnE,wBAAwB,6BAA6B,CAAE,4BAA4B;IACnF,aAAa,kBAAkB,CAAE,2BAA2B;IAC5D,KAAK,UAAU;CAChB"}
@@ -6,3 +6,4 @@ export declare enum VoucherType {
6
6
  "PERCENT" = "PERCENT",
7
7
  "FIXED" = "FIXED"
8
8
  }
9
+ //# sourceMappingURL=vouccher.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vouccher.enum.d.ts","sourceRoot":"","sources":["../../src/enums/vouccher.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,QAAQ,WAAW;IACnB,UAAU,aAAa;CACxB;AAED,oBAAY,WAAW;IACrB,SAAS,YAAY;IACrB,OAAO,UAAU;CAClB"}
package/dist/index.d.ts CHANGED
@@ -1,9 +1,3 @@
1
- export * from "./enums/flashsale.enum.js";
2
- export * from "./enums/order.enum.js";
3
- export * from "./enums/payment.enum.js";
4
- export * from "./enums/shipping.enum.js";
5
- export * from "./enums/user-role.enum.js";
6
- export * from "./enums/vouccher.enum.js";
7
- export * from "./types/user.types.js";
8
- export * from "./types/order.types.js";
9
- export * from "./types/shipping.types.js";
1
+ export * from "./enums/index.js";
2
+ export * from "./types/index.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -1,9 +1,2 @@
1
- export * from "./enums/flashsale.enum.js";
2
- export * from "./enums/order.enum.js";
3
- export * from "./enums/payment.enum.js";
4
- export * from "./enums/shipping.enum.js";
5
- export * from "./enums/user-role.enum.js";
6
- export * from "./enums/vouccher.enum.js";
7
- export * from "./types/user.types.js";
8
- export * from "./types/order.types.js";
9
- export * from "./types/shipping.types.js";
1
+ export * from "./enums/index.js";
2
+ export * from "./types/index.js";
@@ -1 +1,4 @@
1
- export {};
1
+ export * from "./user.types.js";
2
+ export * from "./order.types.js";
3
+ export * from "./shipping.types.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
@@ -1,4 +1,3 @@
1
- export {};
2
- // export * from "./user.types";
3
- // export * from "./order.types";
4
- // export * from "./shipping.types";
1
+ export * from "./user.types.js";
2
+ export * from "./order.types.js";
3
+ export * from "./shipping.types.js";
@@ -9,3 +9,4 @@ export declare const getPaymentMethod: {
9
9
  text: string;
10
10
  };
11
11
  };
12
+ //# sourceMappingURL=order.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order.types.d.ts","sourceRoot":"","sources":["../../src/types/order.types.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;;;CAU5B,CAAC"}
@@ -44,3 +44,4 @@ export declare const getShippingProvider: {
44
44
  text: string;
45
45
  };
46
46
  };
47
+ //# sourceMappingURL=shipping.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shipping.types.d.ts","sourceRoot":"","sources":["../../src/types/shipping.types.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;CAyB7B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;CAmB/B,CAAC"}
@@ -15,3 +15,4 @@ export interface StatusConfigRes {
15
15
  borderColor: string;
16
16
  }
17
17
  export declare const getStatusConfig: (status: OrderStatus) => StatusConfigRes;
18
+ //# sourceMappingURL=user.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.types.d.ts","sourceRoot":"","sources":["../../src/types/user.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,IAAI,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,eAAe,GAAI,QAAQ,WAAW,KAAG,eAoDrD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nguyentrungkien/shared",
3
- "version": "2.0.22",
3
+ "version": "2.0.24",
4
4
  "description": "shared enum & types",
5
5
  "license": "ISC",
6
6
  "type": "module",
@@ -26,5 +26,25 @@
26
26
  "devDependencies": {
27
27
  "typescript": "^5.9.2"
28
28
  },
29
- "dependencies": {}
29
+ "dependencies": {},
30
+ "exports": {
31
+ ".": {
32
+ "import": {
33
+ "types": "./dist/esm/index.d.ts",
34
+ "default": "./dist/esm/index.js"
35
+ },
36
+ "require": {
37
+ "types": "./dist/cjs/index.d.ts",
38
+ "default": "./dist/cjs/index.js"
39
+ }
40
+ },
41
+ "./enums": {
42
+ "import": "./dist/esm/enums/index.js",
43
+ "require": "./dist/cjs/enums/index.js"
44
+ },
45
+ "./types": {
46
+ "import": "./dist/esm/types/index.js",
47
+ "require": "./dist/cjs/types/index.js"
48
+ }
49
+ }
30
50
  }