shuttlepro-shared 1.1.62 → 1.1.63
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.
- package/models/DescriptionTemplate.js +22 -0
- package/models.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const mongoose = require("mongoose");
|
|
2
|
+
const { Schema } = mongoose;
|
|
3
|
+
const DescriptionTemplateSchema = new Schema(
|
|
4
|
+
{
|
|
5
|
+
name: { type: String, default: "" },
|
|
6
|
+
subject: { type: String, default: "" },
|
|
7
|
+
format: { type: String, default: "" },
|
|
8
|
+
workspaceId: { type: String, default: "" },
|
|
9
|
+
businessId: { type: String, default: "" },
|
|
10
|
+
integrationId: { type: String, default: "" },
|
|
11
|
+
type: { type: String, default: "" },
|
|
12
|
+
body: {},
|
|
13
|
+
arbitraryValues: {},
|
|
14
|
+
moduleType: { type: String, default: "" },
|
|
15
|
+
},
|
|
16
|
+
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
17
|
+
);
|
|
18
|
+
const DescriptionTemplate =
|
|
19
|
+
mongoose.models.DescriptionTemplate ||
|
|
20
|
+
mongoose.model("DescriptionTemplate", DescriptionTemplateSchema);
|
|
21
|
+
|
|
22
|
+
module.exports = DescriptionTemplate;
|
package/models.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const Website = require("./models/Website");
|
|
2
|
+
const DescriptionTemplate = require("./models/DescriptionTemplate");
|
|
2
3
|
const ProductQueue = require("./models/ProductQueue");
|
|
3
4
|
const ColumnPreference = require("./models/ColumnPreference");
|
|
4
5
|
const UserPermission = require("./models/UserPermission");
|
|
@@ -70,4 +71,5 @@ module.exports = {
|
|
|
70
71
|
Workspace,
|
|
71
72
|
StatusType,
|
|
72
73
|
Card,
|
|
74
|
+
DescriptionTemplate,
|
|
73
75
|
};
|