@common_ch/common 1.0.85 → 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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import mongoose from 'mongoose';
|
|
2
2
|
import { AiDoc } from './ai';
|
|
3
|
+
import { PlanTypeEnum } from '../../events/types_/plan';
|
|
3
4
|
export declare enum PlanStatusEnum {
|
|
4
5
|
active = "active",
|
|
5
6
|
deactive = "deactive"
|
|
@@ -12,6 +13,7 @@ export interface PlanAttrs {
|
|
|
12
13
|
_id?: string;
|
|
13
14
|
price: string;
|
|
14
15
|
name: string;
|
|
16
|
+
type: PlanTypeEnum;
|
|
15
17
|
limitOfRequest: number;
|
|
16
18
|
limitUploadFiles: number;
|
|
17
19
|
ais: AiDoc[];
|
|
@@ -29,6 +31,7 @@ export interface PlanDoc extends mongoose.Document {
|
|
|
29
31
|
_id: string;
|
|
30
32
|
price: string;
|
|
31
33
|
name: string;
|
|
34
|
+
type: PlanTypeEnum;
|
|
32
35
|
limitOfRequest: number;
|
|
33
36
|
limitUploadFiles: number;
|
|
34
37
|
ais: AiDoc[];
|
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,
|