@nguyentrungkien/shared 1.1.8 → 2.0.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.
@@ -8,3 +8,11 @@ export declare enum ShippingStatus {
8
8
  RETURNED = "RETURNED",// Đã hoàn hàng (returned)
9
9
  CANCELED = "CANCELED"
10
10
  }
11
+ export declare enum ShippingProvider {
12
+ GHN = "GHN",// Giao hàng nhanh (GHN)
13
+ GHTK = "GHTK",// Giao hàng tiết kiệm (GHTK)
14
+ VIETTEL_POST = "VIETTEL_POST",//Viettel Post
15
+ VN_POST = "VN_POST",// VNPost / EMS
16
+ J_T_EXPRESS = "J_T_EXPRESS",// J&T Express
17
+ INTERNAL = "INTERNAL"
18
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShippingStatus = void 0;
3
+ exports.ShippingProvider = exports.ShippingStatus = void 0;
4
4
  var ShippingStatus;
5
5
  (function (ShippingStatus) {
6
6
  ShippingStatus["PENDING"] = "PENDING";
@@ -12,3 +12,12 @@ var ShippingStatus;
12
12
  ShippingStatus["RETURNED"] = "RETURNED";
13
13
  ShippingStatus["CANCELED"] = "CANCELED";
14
14
  })(ShippingStatus || (exports.ShippingStatus = ShippingStatus = {}));
15
+ var ShippingProvider;
16
+ (function (ShippingProvider) {
17
+ ShippingProvider["GHN"] = "GHN";
18
+ ShippingProvider["GHTK"] = "GHTK";
19
+ ShippingProvider["VIETTEL_POST"] = "VIETTEL_POST";
20
+ ShippingProvider["VN_POST"] = "VN_POST";
21
+ ShippingProvider["J_T_EXPRESS"] = "J_T_EXPRESS";
22
+ ShippingProvider["INTERNAL"] = "INTERNAL";
23
+ })(ShippingProvider || (exports.ShippingProvider = ShippingProvider = {}));
@@ -24,3 +24,23 @@ export declare const getShippingStatus: {
24
24
  text: string;
25
25
  };
26
26
  };
27
+ export declare const getShippingProvider: {
28
+ GHN: {
29
+ text: string;
30
+ };
31
+ GHTK: {
32
+ text: string;
33
+ };
34
+ INTERNAL: {
35
+ text: string;
36
+ };
37
+ J_T_EXPRESS: {
38
+ text: string;
39
+ };
40
+ VIETTEL_POST: {
41
+ text: string;
42
+ };
43
+ VN_POST: {
44
+ text: string;
45
+ };
46
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getShippingStatus = void 0;
3
+ exports.getShippingProvider = exports.getShippingStatus = void 0;
4
4
  const shipping_enum_1 = require("../enums/shipping.enum");
5
5
  exports.getShippingStatus = {
6
6
  [shipping_enum_1.ShippingStatus.PENDING]: {
@@ -28,3 +28,23 @@ exports.getShippingStatus = {
28
28
  text: "Đã hủy giao hàng",
29
29
  },
30
30
  };
31
+ exports.getShippingProvider = {
32
+ [shipping_enum_1.ShippingProvider.GHN]: {
33
+ text: "Giao hàng nhanh",
34
+ },
35
+ [shipping_enum_1.ShippingProvider.GHTK]: {
36
+ text: "Giao hàng tiết kiệm",
37
+ },
38
+ [shipping_enum_1.ShippingProvider.INTERNAL]: {
39
+ text: "Nội bộ giao hàng",
40
+ },
41
+ [shipping_enum_1.ShippingProvider.J_T_EXPRESS]: {
42
+ text: "J&T_Express",
43
+ },
44
+ [shipping_enum_1.ShippingProvider.VIETTEL_POST]: {
45
+ text: "Viettel Post",
46
+ },
47
+ [shipping_enum_1.ShippingProvider.VN_POST]: {
48
+ text: "Vn Post",
49
+ },
50
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nguyentrungkien/shared",
3
- "version": "1.1.8",
3
+ "version": "2.0.0",
4
4
  "description": "shared enum & types",
5
5
  "license": "ISC",
6
6
  "author": "nguyentrungkien04921@gmail.com",