biz-slide-core 1.2.43 → 1.2.45

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,6 +16,7 @@ var PPTSchema = new mongoose_1.Schema({
16
16
  questions: { type: [String], default: [], _id: false },
17
17
  colors: { type: [String], default: [], _id: false },
18
18
  prompt: { type: String, default: null },
19
+ additionalPrompt: { type: String, default: null },
19
20
  templateId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'template' },
20
21
  hasError: { type: Boolean, default: false },
21
22
  slideRefs: { type: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'ppt-slide' }], default: [], _id: false },
@@ -23,7 +24,9 @@ var PPTSchema = new mongoose_1.Schema({
23
24
  noOfSlides: { type: Number, default: null },
24
25
  trackIP: { type: String, default: null },
25
26
  sessionId: { type: String, default: null },
26
- fileCreateCount: { type: Number, default: 0 }
27
+ fileCreateCount: { type: Number, default: 0 },
28
+ language: { type: String, default: "English" },
29
+ hasUploadFile: { type: Boolean, default: false }
27
30
  }, {
28
31
  timestamps: true,
29
32
  });
@@ -2,13 +2,23 @@
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
+ caption: { type: String },
16
+ question: { type: String },
17
+ placeholder: { type: String },
18
+ language: {
19
+ type: Map,
20
+ of: questionLanguageSchema
21
+ }
12
22
  }, {
13
23
  timestamps: false,
14
24
  _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.45",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {