@dynamatix/gb-schemas 2.14.16 → 2.17.3

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.
@@ -172,7 +172,7 @@ const applicantSchema = new mongoose.Schema({
172
172
  employmentInformationId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant_Employment_Information", default: null },
173
173
  selfEmployedInformationId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant_Self_Employment", default: null },
174
174
  incomeSummaryId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant_Income_Summary", default: null },
175
- expenseONSVersion: { type: String, default: null }
175
+ expenseONSVersion: { type: String, default: null },
176
176
  }, {
177
177
  timestamps: true,
178
178
  toJSON: { virtuals: true, getters: true },
@@ -553,8 +553,6 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
553
553
  institution: string;
554
554
  nameOfAccountHolder: string;
555
555
  sortCode: SortCode;
556
- accountErrorLid: string;
557
- accountStatusLid: string;
558
556
  bankAccountRequired: boolean;
559
557
  accountErrorMessage: string;
560
558
  applicationId?: mongoose.Types.ObjectId | null | undefined;
@@ -569,6 +567,8 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
569
567
  isConfirmDeclaration?: boolean | null | undefined;
570
568
  selectedPaymentDayLid?: mongoose.Types.ObjectId | null | undefined;
571
569
  bankPaymentDayLid?: mongoose.Types.ObjectId | null | undefined;
570
+ accountErrorLid?: mongoose.Types.ObjectId | null | undefined;
571
+ accountStatusLid?: mongoose.Types.ObjectId | null | undefined;
572
572
  bankWizardCheck?: {
573
573
  overrideReason: string;
574
574
  validation?: string | null | undefined;
@@ -601,8 +601,6 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
601
601
  institution: string;
602
602
  nameOfAccountHolder: string;
603
603
  sortCode: SortCode;
604
- accountErrorLid: string;
605
- accountStatusLid: string;
606
604
  bankAccountRequired: boolean;
607
605
  accountErrorMessage: string;
608
606
  applicationId?: mongoose.Types.ObjectId | null | undefined;
@@ -617,6 +615,8 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
617
615
  isConfirmDeclaration?: boolean | null | undefined;
618
616
  selectedPaymentDayLid?: mongoose.Types.ObjectId | null | undefined;
619
617
  bankPaymentDayLid?: mongoose.Types.ObjectId | null | undefined;
618
+ accountErrorLid?: mongoose.Types.ObjectId | null | undefined;
619
+ accountStatusLid?: mongoose.Types.ObjectId | null | undefined;
620
620
  bankWizardCheck?: {
621
621
  overrideReason: string;
622
622
  validation?: string | null | undefined;
@@ -649,8 +649,6 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
649
649
  institution: string;
650
650
  nameOfAccountHolder: string;
651
651
  sortCode: SortCode;
652
- accountErrorLid: string;
653
- accountStatusLid: string;
654
652
  bankAccountRequired: boolean;
655
653
  accountErrorMessage: string;
656
654
  applicationId?: mongoose.Types.ObjectId | null | undefined;
@@ -665,6 +663,8 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
665
663
  isConfirmDeclaration?: boolean | null | undefined;
666
664
  selectedPaymentDayLid?: mongoose.Types.ObjectId | null | undefined;
667
665
  bankPaymentDayLid?: mongoose.Types.ObjectId | null | undefined;
666
+ accountErrorLid?: mongoose.Types.ObjectId | null | undefined;
667
+ accountStatusLid?: mongoose.Types.ObjectId | null | undefined;
668
668
  bankWizardCheck?: {
669
669
  overrideReason: string;
670
670
  validation?: string | null | undefined;
@@ -83,13 +83,13 @@ const applicationDirectDebitSchema = new mongoose.Schema({
83
83
  required: true,
84
84
  },
85
85
  accountErrorLid: {
86
- type: String,
87
- default: "",
86
+ type: mongoose.Schema.Types.ObjectId,
87
+ ref: 'Lookup',
88
88
  description: 'Account error status for algbra (any value)',
89
89
  },
90
90
  accountStatusLid: {
91
- type: String,
92
- default: "",
91
+ type: mongoose.Schema.Types.ObjectId,
92
+ ref: 'Lookup',
93
93
  description: 'Account status for algbra (any value)',
94
94
  },
95
95
  bankAccountRequired: {
@@ -1 +1 @@
1
- {"version":3,"file":"application-euc.model.d.ts","sourceRoot":"","sources":["../../applications/application-euc.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA2ChC,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyD,CAAC;AACnF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"application-euc.model.d.ts","sourceRoot":"","sources":["../../applications/application-euc.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA8ChC,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyD,CAAC;AACnF,eAAe,mBAAmB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import mongoose from "mongoose";
2
2
  import { applyWorkflowPlugin } from "../shared/workflow.plugin";
3
+ import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
3
4
  const applicationEucSchema = new mongoose.Schema({
4
5
  applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true },
5
6
  stressedFinanceRate: { type: Number, default: 0 },
@@ -29,6 +30,7 @@ const applicationEucSchema = new mongoose.Schema({
29
30
  btlCountryOfResidenceUsed: { type: String, default: null },
30
31
  btlOnsMultiplierApplied: { type: Boolean, default: false },
31
32
  });
33
+ applyAuditMiddleware(applicationEucSchema, "ApplicationEUC");
32
34
  // Apply workflow plugin to the schema
33
35
  applyWorkflowPlugin(applicationEucSchema, 'applicationeuc');
34
36
  // Add indexes that exist in database but missing from model
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.14.16",
3
+ "version": "2.17.3",
4
4
  "description": "All the schemas for gatehouse bank back-end .",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",