biz-slide-core 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
package/entity/index.js
CHANGED
@@ -23,4 +23,5 @@ __exportStar(require("./slide-layout.entity"), exports);
|
|
23
23
|
__exportStar(require("./slide.entity"), exports);
|
24
24
|
__exportStar(require("./socket.entity"), exports);
|
25
25
|
__exportStar(require("./template.entity"), exports);
|
26
|
+
__exportStar(require("./template-type.entity"), exports);
|
26
27
|
__exportStar(require("./user.entity"), exports);
|
package/entity/ppt.entity.js
CHANGED
@@ -2,13 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PPTModel = void 0;
|
4
4
|
var mongoose_1 = require("mongoose");
|
5
|
-
var questionSchema = new mongoose_1.Schema({
|
6
|
-
question: { type: String },
|
7
|
-
answer: { type: String }
|
8
|
-
}, {
|
9
|
-
timestamps: false,
|
10
|
-
_id: false
|
11
|
-
});
|
12
5
|
var PPTSchema = new mongoose_1.Schema({
|
13
6
|
createdAt: { type: Date, default: Date.now() },
|
14
7
|
updatedAt: { type: Date, default: Date.now() },
|
@@ -19,7 +12,7 @@ var PPTSchema = new mongoose_1.Schema({
|
|
19
12
|
userId: { type: String, default: null },
|
20
13
|
template_type: { type: String, default: null },
|
21
14
|
systemGeneratedtopics: { type: [String], default: [], _id: false },
|
22
|
-
questions: [
|
15
|
+
questions: { type: [String], default: [], _id: false },
|
23
16
|
colors: { type: [String], default: [], _id: false },
|
24
17
|
prompt: { type: String, default: null },
|
25
18
|
templateRef: { type: mongoose_1.Schema.Types.ObjectId, ref: 'template' },
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.TemplateTypeModel = void 0;
|
4
|
+
var mongoose_1 = require("mongoose");
|
5
|
+
var questionSchema = new mongoose_1.Schema({
|
6
|
+
question: { type: String },
|
7
|
+
systemMessage: { type: String },
|
8
|
+
}, {
|
9
|
+
timestamps: false,
|
10
|
+
_id: false
|
11
|
+
});
|
12
|
+
var TemplateTypeSchema = new mongoose_1.Schema({
|
13
|
+
name: { type: String, default: "", required: true },
|
14
|
+
questions: [questionSchema],
|
15
|
+
predefineSystemMessage: { type: String, default: "" },
|
16
|
+
createdAt: { type: Date, default: Date.now() },
|
17
|
+
updatedAt: { type: Date, default: Date.now() },
|
18
|
+
deletedAt: { type: Date, default: null },
|
19
|
+
}, {
|
20
|
+
timestamps: true,
|
21
|
+
});
|
22
|
+
exports.TemplateTypeModel = (0, mongoose_1.model)("template-type", TemplateTypeSchema);
|
@@ -4,7 +4,7 @@ exports.TemplateModel = void 0;
|
|
4
4
|
var mongoose_1 = require("mongoose");
|
5
5
|
var TemplateSchema = new mongoose_1.Schema({
|
6
6
|
name: { type: String, default: "", required: true },
|
7
|
-
template_type: { type:
|
7
|
+
template_type: { type: mongoose_1.Schema.Types.ObjectId, ref: "template-type" },
|
8
8
|
createdAt: { type: Date, default: Date.now() },
|
9
9
|
updatedAt: { type: Date, default: Date.now() },
|
10
10
|
deletedAt: { type: Date, default: null },
|