@dynamatix/gb-schemas 2.3.262 → 2.3.263

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.
@@ -34,7 +34,6 @@ declare const applicantDirectDebitSchema: mongoose.Schema<any, mongoose.Model<an
34
34
  updatedAt: NativeDate;
35
35
  } & {
36
36
  isConfirmDeclaration: string;
37
- applicationId?: mongoose.Types.ObjectId | null | undefined;
38
37
  addressLine1?: string | null | undefined;
39
38
  addressLine2?: string | null | undefined;
40
39
  accountNumber?: string | null | undefined;
@@ -51,7 +50,6 @@ declare const applicantDirectDebitSchema: mongoose.Schema<any, mongoose.Model<an
51
50
  updatedAt: NativeDate;
52
51
  } & {
53
52
  isConfirmDeclaration: string;
54
- applicationId?: mongoose.Types.ObjectId | null | undefined;
55
53
  addressLine1?: string | null | undefined;
56
54
  addressLine2?: string | null | undefined;
57
55
  accountNumber?: string | null | undefined;
@@ -68,7 +66,6 @@ declare const applicantDirectDebitSchema: mongoose.Schema<any, mongoose.Model<an
68
66
  updatedAt: NativeDate;
69
67
  } & {
70
68
  isConfirmDeclaration: string;
71
- applicationId?: mongoose.Types.ObjectId | null | undefined;
72
69
  addressLine1?: string | null | undefined;
73
70
  addressLine2?: string | null | undefined;
74
71
  accountNumber?: string | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"applicant-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-direct-debit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcR,CAAC;AAEzB,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"applicant-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-direct-debit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaR,CAAC;AAEzB,eAAe,0BAA0B,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import mongoose from 'mongoose';
2
2
  const applicantDirectDebitSchema = new mongoose.Schema({
3
- applicationId: { type: mongoose.Schema.Types.ObjectId, ref: 'Application' },
4
3
  accountNumber: { type: String },
5
4
  addressLine1: { type: String },
6
5
  addressLine2: { type: String },
@@ -1 +1 @@
1
- {"version":3,"file":"applicant-welcome-call.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-welcome-call.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAoiBhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA4D,CAAC;AAEnF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"applicant-welcome-call.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-welcome-call.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA8hBhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA4D,CAAC;AAEnF,eAAe,gBAAgB,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
  // Welcome Call Schema
4
5
  const welcomeCallSchema = new mongoose.Schema({
5
6
  applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
@@ -497,6 +498,7 @@ welcomeCallSchema.virtual('initialRatePercentage').get(function () {
497
498
  }
498
499
  return null;
499
500
  });
501
+ applyAuditMiddleware(welcomeCallSchema, "ApplicantWelcomeCall");
500
502
  // Apply workflow plugin to the schema
501
503
  applyWorkflowPlugin(welcomeCallSchema, 'applicantwelcomecall');
502
504
  const WelcomeCallModel = mongoose.model('ApplicantWelcomeCall', welcomeCallSchema);
@@ -1236,7 +1236,6 @@ declare const ApplicantModel: mongoose.Model<{
1236
1236
  updatedAt: NativeDate;
1237
1237
  } & {
1238
1238
  isConfirmDeclaration: string;
1239
- applicationId?: mongoose.Types.ObjectId | null | undefined;
1240
1239
  addressLine1?: string | null | undefined;
1241
1240
  addressLine2?: string | null | undefined;
1242
1241
  accountNumber?: string | null | undefined;
@@ -1392,7 +1391,6 @@ declare const ApplicantModel: mongoose.Model<{
1392
1391
  updatedAt: NativeDate;
1393
1392
  } & {
1394
1393
  isConfirmDeclaration: string;
1395
- applicationId?: mongoose.Types.ObjectId | null | undefined;
1396
1394
  addressLine1?: string | null | undefined;
1397
1395
  addressLine2?: string | null | undefined;
1398
1396
  accountNumber?: string | null | undefined;
@@ -1548,7 +1546,6 @@ declare const ApplicantModel: mongoose.Model<{
1548
1546
  updatedAt: NativeDate;
1549
1547
  } & {
1550
1548
  isConfirmDeclaration: string;
1551
- applicationId?: mongoose.Types.ObjectId | null | undefined;
1552
1549
  addressLine1?: string | null | undefined;
1553
1550
  addressLine2?: string | null | undefined;
1554
1551
  accountNumber?: string | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"applicant.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAOhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AAuQ5D,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA+C,CAAC;AACpE,eAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.3.262",
3
+ "version": "2.3.263",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",