@dynamatix/gb-schemas 0.6.0 → 0.6.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,7 +2,7 @@ import mongoose from "mongoose";
2
2
 
3
3
  const ApprivoSyncJourneySchema = new mongoose.Schema({
4
4
  applicationId: { type: String, required: true },
5
- milestoneLid: { type: String, required: true },
5
+ milestoneLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
6
6
  mileStoneStatus: {
7
7
  type: String,
8
8
  enum: ['Completed', 'Errored', 'Not Applicable'],
@@ -28,6 +28,8 @@ const checklistSchema = new mongoose.Schema({
28
28
  },
29
29
  {timestamps: true});
30
30
 
31
+ checklistSchema.index({ checkDescription: 'text', source: 'text' });
32
+
31
33
  const CheckListModel = mongoose.model("CheckList", checklistSchema);
32
34
 
33
35
  export default CheckListModel;