biz-slide-core 1.2.43 → 1.2.44
Sign up to get free protection for your applications and to get access to all the features.
package/entity/ppt.entity.js
CHANGED
@@ -23,7 +23,8 @@ var PPTSchema = new mongoose_1.Schema({
|
|
23
23
|
noOfSlides: { type: Number, default: null },
|
24
24
|
trackIP: { type: String, default: null },
|
25
25
|
sessionId: { type: String, default: null },
|
26
|
-
fileCreateCount: { type: Number, default: 0 }
|
26
|
+
fileCreateCount: { type: Number, default: 0 },
|
27
|
+
language: { type: String, default: "English" },
|
27
28
|
}, {
|
28
29
|
timestamps: true,
|
29
30
|
});
|
@@ -2,13 +2,20 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.TemplateTypeModel = void 0;
|
4
4
|
var mongoose_1 = require("mongoose");
|
5
|
-
|
5
|
+
// Define the nested schema for language
|
6
|
+
var questionLanguageSchema = new mongoose_1.Schema({
|
6
7
|
question: { type: String },
|
7
|
-
|
8
|
-
keyId: { type: String },
|
8
|
+
caption: { type: String },
|
9
9
|
placeholder: { type: String },
|
10
|
+
}, { _id: false }); // _id: false to prevent automatic creation of _id for subdocuments
|
11
|
+
var questionSchema = new mongoose_1.Schema({
|
12
|
+
keyId: { type: String },
|
10
13
|
answerKeyName: { type: String },
|
11
|
-
|
14
|
+
systemMessage: { type: String },
|
15
|
+
language: {
|
16
|
+
type: Map,
|
17
|
+
of: questionLanguageSchema
|
18
|
+
}
|
12
19
|
}, {
|
13
20
|
timestamps: false,
|
14
21
|
_id: false
|