biz-slide-core 1.2.43 → 1.2.44

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.
@@ -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
- 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.43",
3
+ "version": "1.2.44",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {