@common_ch/common 1.0.62 → 1.0.63

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,6 +4,10 @@ export declare enum PlanStatusEnum {
4
4
  active = "active",
5
5
  deactive = "deactive"
6
6
  }
7
+ export declare enum TypePayEnum {
8
+ year = "Year",
9
+ season = "season"
10
+ }
7
11
  export interface PlanAttrs {
8
12
  _id?: string;
9
13
  price: string;
@@ -13,6 +17,7 @@ export interface PlanAttrs {
13
17
  ais: AiDoc[];
14
18
  description?: string;
15
19
  status?: PlanStatusEnum;
20
+ typePay?: TypePayEnum;
16
21
  version?: number;
17
22
  createdAt?: number;
18
23
  updatedAt?: number;
@@ -29,6 +34,7 @@ export interface PlanDoc extends mongoose.Document {
29
34
  ais: AiDoc[];
30
35
  description?: string;
31
36
  status?: PlanStatusEnum;
37
+ typePay?: TypePayEnum;
32
38
  version: number;
33
39
  createdAt?: number;
34
40
  updatedAt?: number;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Plan = exports.PlanStatusEnum = void 0;
6
+ exports.Plan = exports.TypePayEnum = exports.PlanStatusEnum = void 0;
7
7
  const mongoose_1 = __importDefault(require("mongoose"));
8
8
  const mongoose_update_if_current_1 = require("mongoose-update-if-current");
9
9
  var PlanStatusEnum;
@@ -11,6 +11,11 @@ var PlanStatusEnum;
11
11
  PlanStatusEnum["active"] = "active";
12
12
  PlanStatusEnum["deactive"] = "deactive";
13
13
  })(PlanStatusEnum || (exports.PlanStatusEnum = PlanStatusEnum = {}));
14
+ var TypePayEnum;
15
+ (function (TypePayEnum) {
16
+ TypePayEnum["year"] = "Year";
17
+ TypePayEnum["season"] = "season";
18
+ })(TypePayEnum || (exports.TypePayEnum = TypePayEnum = {}));
14
19
  const planSchema = new mongoose_1.default.Schema({
15
20
  price: {
16
21
  type: String,
@@ -43,6 +48,12 @@ const planSchema = new mongoose_1.default.Schema({
43
48
  enum: PlanStatusEnum,
44
49
  default: PlanStatusEnum.active,
45
50
  },
51
+ typePay: {
52
+ type: String,
53
+ enum: TypePayEnum,
54
+ required: false,
55
+ default: TypePayEnum.season,
56
+ },
46
57
  createdAt: {
47
58
  type: mongoose_1.default.Schema.Types.Date,
48
59
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common_ch/common",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [