@dynamatix/cat-shared 0.0.126 → 0.0.127
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/document.model.js
CHANGED
|
@@ -57,13 +57,18 @@ const documentSchema = new mongoose.Schema({
|
|
|
57
57
|
required: false,
|
|
58
58
|
default: {}
|
|
59
59
|
},
|
|
60
|
-
aliasName
|
|
61
|
-
type
|
|
60
|
+
aliasName: {
|
|
61
|
+
type: String,
|
|
62
62
|
default: ""
|
|
63
63
|
}
|
|
64
64
|
}, {
|
|
65
65
|
timestamps: false
|
|
66
66
|
});
|
|
67
67
|
|
|
68
|
+
documentSchema.index({
|
|
69
|
+
contextId: 1, externalDocumentId: 1, "externalData.checkFlowId": 1,
|
|
70
|
+
"externalData.instanceId": 1,
|
|
71
|
+
"externalData.isMainDocument": 1
|
|
72
|
+
});
|
|
68
73
|
const DocumentModel = mongoose.models.Document || mongoose.model("Document", documentSchema);
|
|
69
74
|
export default DocumentModel;
|
|
@@ -172,7 +172,8 @@ const formfieldSchema = new mongoose.Schema({
|
|
|
172
172
|
shouldfilterOptionsAfterDelete: {
|
|
173
173
|
type: Boolean,
|
|
174
174
|
default: false
|
|
175
|
-
}
|
|
175
|
+
},
|
|
176
|
+
computedExpression: String,
|
|
176
177
|
}, { timestamps: true, _id: false });
|
|
177
178
|
|
|
178
179
|
const formConfigurationSchema = new mongoose.Schema({
|