@common_ch/common 1.0.86 → 1.0.87
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.
package/build/models/app/plan.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
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
|
+
const plan_1 = require("../../events/types_/plan");
|
|
9
10
|
var PlanStatusEnum;
|
|
10
11
|
(function (PlanStatusEnum) {
|
|
11
12
|
PlanStatusEnum["active"] = "active";
|
|
@@ -48,6 +49,11 @@ const planSchema = new mongoose_1.default.Schema({
|
|
|
48
49
|
enum: PlanStatusEnum,
|
|
49
50
|
default: PlanStatusEnum.active,
|
|
50
51
|
},
|
|
52
|
+
type: {
|
|
53
|
+
type: String,
|
|
54
|
+
enum: plan_1.PlanTypeEnum,
|
|
55
|
+
default: plan_1.PlanTypeEnum.public,
|
|
56
|
+
},
|
|
51
57
|
typePay: {
|
|
52
58
|
type: String,
|
|
53
59
|
enum: TypePayEnum,
|