@dynamatix/gb-schemas 0.3.8 → 0.3.10
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.
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const applicantionRiskNarrativeSchema = new mongoose.Schema({
|
|
4
|
+
call1RequestedOn: { type: String },
|
|
5
|
+
call2RequestedOn: { type: String },
|
|
6
|
+
call2StatusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
7
|
+
rationaleForRiskRating: { type: String },
|
|
8
|
+
retryCount: { type: String },
|
|
9
|
+
riskRating: { type: String },
|
|
10
|
+
statusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
const ApplicationRiskNarrativeModel = mongoose.model('ApplicationRiskNarrative', applicantionRiskNarrativeSchema);
|
|
15
|
+
export default ApplicationRiskNarrativeModel;
|
|
16
|
+
|
package/applications/index.js
CHANGED
|
@@ -13,3 +13,4 @@ export { default as BrokerModel } from './broker.model.js';
|
|
|
13
13
|
export { default as ProductFeaturesModel } from './productfeatures.model.js';
|
|
14
14
|
export { default as SolicitorModel } from './solicitor.model.js';
|
|
15
15
|
export { default as ApplicationDocumentModel } from './application-document.model.js';
|
|
16
|
+
export { default as ApplicationRiskNarrativeModel } from './application-risk-narrative.model.js';
|
package/package.json
CHANGED
package/shared/index.js
CHANGED
|
@@ -3,4 +3,5 @@ export { default as LookupGroupModel } from './lookup-group.model.js';
|
|
|
3
3
|
export { default as LookupModel } from './lookup.model.js';
|
|
4
4
|
export { default as SystemParameterModel } from './system-parameter.model.js';
|
|
5
5
|
export { default as AlertModel} from './alert.model.js';
|
|
6
|
-
export { default as CheckListModel } from './checklist.model.js'
|
|
6
|
+
export { default as CheckListModel } from './checklist.model.js'
|
|
7
|
+
export { default as JobSettingModel } from './job-setting.model.js'
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
|
|
3
|
+
const jobSettingSchema = new mongoose.Schema({
|
|
4
|
+
enabled: { type: Boolean, default: true },
|
|
5
|
+
schedule: {
|
|
6
|
+
FrequencyInHours: { type: Number, default: 2 }
|
|
7
|
+
},
|
|
8
|
+
jobParams: { type: [mongoose.Schema.Types.Mixed]}
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const JobSettingModel = mongoose.model("Job_Setting", jobSettingSchema);
|
|
12
|
+
|
|
13
|
+
export default JobSettingModel;
|