biz-slide-core 1.2.33 → 1.2.35

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.
@@ -12,6 +12,7 @@ var layerSchema = new mongoose_1.Schema({
12
12
  });
13
13
  var SlideSchema = new mongoose_1.Schema({
14
14
  name: { type: String, default: "", required: true },
15
+ alias: { type: [String], default: [], _id: false },
15
16
  postfix: { type: String, default: "" },
16
17
  rules: { type: String, default: "" },
17
18
  layers: [layerSchema],
@@ -18,14 +18,21 @@ var layoutsSchema = new mongoose_1.Schema({
18
18
  timestamps: false,
19
19
  _id: false
20
20
  });
21
+ var systemSchema = new mongoose_1.Schema({
22
+ systemMessage: { type: String },
23
+ userMessage: { type: String },
24
+ }, {
25
+ timestamps: false,
26
+ _id: false
27
+ });
21
28
  var TemplateTypeSchema = new mongoose_1.Schema({
22
29
  name: { type: String, default: "", required: true },
23
30
  questions: [questionSchema],
24
31
  predefineSystemMessage: { type: String, default: "" },
25
32
  layouts: [layoutsSchema],
26
33
  suggestionPrompts: { type: [String], default: [], _id: false },
27
- topicSystemPrompt: { type: String, default: "" },
28
- layoutSystemPrompt: { type: String, default: "" },
34
+ topicPrompt: systemSchema,
35
+ layoutPrompt: systemSchema,
29
36
  deletedAt: { type: Date, default: null },
30
37
  }, {
31
38
  timestamps: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-slide-core",
3
- "version": "1.2.33",
3
+ "version": "1.2.35",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {