biz-slide-core 1.2.42 → 1.2.44

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,9 @@ var PPTSchema = new mongoose_1.Schema({
22
22
  version: { type: String, default: null },
23
23
  noOfSlides: { type: Number, default: null },
24
24
  trackIP: { type: String, default: null },
25
- sessionId: { type: String, default: null }
25
+ sessionId: { type: String, default: null },
26
+ fileCreateCount: { type: Number, default: 0 },
27
+ language: { type: String, default: "English" },
26
28
  }, {
27
29
  timestamps: true,
28
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
- var questionSchema = new mongoose_1.Schema({
5
+ // Define the nested schema for language
6
+ var questionLanguageSchema = new mongoose_1.Schema({
6
7
  question: { type: String },
7
- systemMessage: { type: String },
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
- caption: { type: String }
14
+ systemMessage: { type: String },
15
+ language: {
16
+ type: Map,
17
+ of: questionLanguageSchema
18
+ }
12
19
  }, {
13
20
  timestamps: false,
14
21
  _id: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-slide-core",
3
- "version": "1.2.42",
3
+ "version": "1.2.44",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {