@dynamatix/gb-schemas 0.5.18 → 0.6.0

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.5.18",
3
+ "version": "0.6.0",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,17 @@
1
+ import mongoose from "mongoose";
2
+
3
+ const ApprivoSyncJourneySchema = new mongoose.Schema({
4
+ applicationId: { type: String, required: true },
5
+ milestoneLid: { type: String, required: true },
6
+ mileStoneStatus: {
7
+ type: String,
8
+ enum: ['Completed', 'Errored', 'Not Applicable'],
9
+ required: true
10
+ },
11
+ error: { type: String, default: null },
12
+ isFirstPull: { type: Boolean, required: true },
13
+ timestamp: { type: Date, default: Date.now }
14
+ }, {timestamps: true});
15
+
16
+ const ApprivoSyncJourneyModel = mongoose.model('ApprivoSyncJourney', ApprivoSyncJourneySchema);
17
+ export default ApprivoSyncJourneyModel;
package/shared/index.js CHANGED
@@ -5,4 +5,5 @@ export { default as SystemParameterModel } from './system-parameter.model.js';
5
5
  export { default as AlertModel} from './alert.model.js';
6
6
  export { default as CheckListModel } from './checklist.model.js'
7
7
  export { default as JobSettingModel } from './job-setting.model.js'
8
- export { default as TaskModel} from './task.model.js';
8
+ export { default as TaskModel} from './task.model.js';
9
+ export { default as ApprivoSyncJourneyModel } from './apprivo-sync-journey.model.js';