@dynamatix/gb-schemas 0.3.8 → 0.3.9

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.
@@ -1,6 +1,10 @@
1
1
  import mongoose from "mongoose";
2
2
 
3
3
  const applicationAuditSchema = new mongoose.Schema({
4
+ applicationId: {
5
+ type: mongoose.Schema.Types.ObjectId, ref: "Application",
6
+ required: true
7
+ },
4
8
  auditId: {
5
9
  type: Number,
6
10
  required: true
@@ -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
+
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "All the schemas for gatehouse bank back-end.",
5
5
  "main": "index.js",
6
6
  "scripts": {