@dynamatix/gb-schemas 2.3.346 → 2.3.348

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.
@@ -129,8 +129,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
129
129
  } | null | undefined;
130
130
  applicationId?: unknown;
131
131
  applicantId?: unknown;
132
+ pageValidFlag?: unknown;
132
133
  addressLine1?: unknown;
133
134
  addressLine2?: unknown;
135
+ primaryApplicantId?: unknown;
134
136
  accountNumber?: unknown;
135
137
  branch?: unknown;
136
138
  city?: unknown;
@@ -292,8 +294,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
292
294
  } | null | undefined;
293
295
  applicationId?: unknown;
294
296
  applicantId?: unknown;
297
+ pageValidFlag?: unknown;
295
298
  addressLine1?: unknown;
296
299
  addressLine2?: unknown;
300
+ primaryApplicantId?: unknown;
297
301
  accountNumber?: unknown;
298
302
  branch?: unknown;
299
303
  city?: unknown;
@@ -455,8 +459,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
455
459
  } | null | undefined;
456
460
  applicationId?: unknown;
457
461
  applicantId?: unknown;
462
+ pageValidFlag?: unknown;
458
463
  addressLine1?: unknown;
459
464
  addressLine2?: unknown;
465
+ primaryApplicantId?: unknown;
460
466
  accountNumber?: unknown;
461
467
  branch?: unknown;
462
468
  city?: unknown;
@@ -536,6 +542,7 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
536
542
  createdAt: NativeDate;
537
543
  updatedAt: NativeDate;
538
544
  } & {
545
+ pageValidFlag: boolean;
539
546
  branch: string;
540
547
  institution: string;
541
548
  nameOfAccountHolder: string;
@@ -548,6 +555,7 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
548
555
  applicantId?: mongoose.Types.ObjectId | null | undefined;
549
556
  addressLine1?: string | null | undefined;
550
557
  addressLine2?: string | null | undefined;
558
+ primaryApplicantId?: mongoose.Types.ObjectId | null | undefined;
551
559
  accountNumber?: AccountNumber | null | undefined;
552
560
  city?: string | null | undefined;
553
561
  contactPostcode?: string | null | undefined;
@@ -565,6 +573,7 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
565
573
  createdAt: NativeDate;
566
574
  updatedAt: NativeDate;
567
575
  } & {
576
+ pageValidFlag: boolean;
568
577
  branch: string;
569
578
  institution: string;
570
579
  nameOfAccountHolder: string;
@@ -577,6 +586,7 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
577
586
  applicantId?: mongoose.Types.ObjectId | null | undefined;
578
587
  addressLine1?: string | null | undefined;
579
588
  addressLine2?: string | null | undefined;
589
+ primaryApplicantId?: mongoose.Types.ObjectId | null | undefined;
580
590
  accountNumber?: AccountNumber | null | undefined;
581
591
  city?: string | null | undefined;
582
592
  contactPostcode?: string | null | undefined;
@@ -594,6 +604,7 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
594
604
  createdAt: NativeDate;
595
605
  updatedAt: NativeDate;
596
606
  } & {
607
+ pageValidFlag: boolean;
597
608
  branch: string;
598
609
  institution: string;
599
610
  nameOfAccountHolder: string;
@@ -606,6 +617,7 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
606
617
  applicantId?: mongoose.Types.ObjectId | null | undefined;
607
618
  addressLine1?: string | null | undefined;
608
619
  addressLine2?: string | null | undefined;
620
+ primaryApplicantId?: mongoose.Types.ObjectId | null | undefined;
609
621
  accountNumber?: AccountNumber | null | undefined;
610
622
  city?: string | null | undefined;
611
623
  contactPostcode?: string | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"application-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applications/application-direct-debit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAqIhE,QAAA,MAAM,2BAA2B;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0E,CAAC;AAC5G,eAAe,2BAA2B,CAAC"}
@@ -8,6 +8,12 @@ const applicationDirectDebitSchema = new mongoose.Schema({
8
8
  ref: 'Application',
9
9
  description: 'Reference to the application this direct debit belongs to',
10
10
  },
11
+ pageValidFlag: { type: Boolean, default: false },
12
+ primaryApplicantId: {
13
+ type: mongoose.Schema.Types.ObjectId,
14
+ ref: 'Applicant',
15
+ description: 'Reference to the primary applicant',
16
+ },
11
17
  accountNumber: {
12
18
  type: AccountNumber,
13
19
  isRequired: true,
@@ -28,8 +28,18 @@
28
28
  /// <reference types="mongoose/types/inferrawdoctype" />
29
29
  import { Types } from "mongoose";
30
30
  import { IBaseType } from "../types/base.types";
31
+ export interface IBankWizardCheck {
32
+ nameAndDobMatch?: string;
33
+ addressMatch?: string;
34
+ ddCapable?: string;
35
+ validation?: string;
36
+ status?: string;
37
+ failedMessage?: string;
38
+ }
31
39
  export default interface IApplicationDirectDebit extends IBaseType {
32
40
  applicationId?: Types.ObjectId;
41
+ pageValidFlag?: boolean;
42
+ primaryApplicantId?: Types.ObjectId;
33
43
  accountNumber: string;
34
44
  addressLine1?: string;
35
45
  addressLine2?: string;
@@ -46,6 +56,7 @@ export default interface IApplicationDirectDebit extends IBaseType {
46
56
  accountStatusLid?: Types.ObjectId | null;
47
57
  bankAccountRequired?: boolean;
48
58
  accountErrorMessage?: string;
59
+ bankWizardCheck?: IBankWizardCheck;
49
60
  selectedPaymentDay?: string;
50
61
  applicants?: string;
51
62
  }
@@ -1 +1 @@
1
- {"version":3,"file":"application-direct-debit.type.d.ts","sourceRoot":"","sources":["../../applications/application-direct-debit.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,CAAC,OAAO,WAAW,uBAAwB,SAAQ,SAAS;IAChE,aAAa,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACxC,gBAAgB,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAG7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
1
+ {"version":3,"file":"application-direct-debit.type.d.ts","sourceRoot":"","sources":["../../applications/application-direct-debit.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,uBAAwB,SAAQ,SAAS;IAChE,aAAa,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACxC,gBAAgB,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,gBAAgB,CAAC;IAGnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -29,12 +29,13 @@
29
29
  import mongoose from "mongoose";
30
30
  declare const ApplicationEucModel: mongoose.Model<{
31
31
  result: any;
32
+ version: number;
32
33
  applicationId: mongoose.Types.ObjectId;
33
34
  stressedFinanceRate: number;
34
35
  stressedFinancePayment: number;
35
36
  stressTestSurplusIncome: number;
36
- minFSCRRequirements: number;
37
- fscrRequirements: number;
37
+ minFSCRRequirementAmount: number;
38
+ fscrRequirementAmount: number;
38
39
  disposableIncome: number;
39
40
  ftv: number;
40
41
  monthlyPayment: number;
@@ -44,14 +45,16 @@ declare const ApplicationEucModel: mongoose.Model<{
44
45
  netMonthlyIncome: number;
45
46
  topUpAmount: number;
46
47
  remainingSurplusIncome: number;
48
+ isFscrAcceptable: boolean;
47
49
  }, {}, {}, {}, mongoose.Document<unknown, {}, {
48
50
  result: any;
51
+ version: number;
49
52
  applicationId: mongoose.Types.ObjectId;
50
53
  stressedFinanceRate: number;
51
54
  stressedFinancePayment: number;
52
55
  stressTestSurplusIncome: number;
53
- minFSCRRequirements: number;
54
- fscrRequirements: number;
56
+ minFSCRRequirementAmount: number;
57
+ fscrRequirementAmount: number;
55
58
  disposableIncome: number;
56
59
  ftv: number;
57
60
  monthlyPayment: number;
@@ -61,14 +64,16 @@ declare const ApplicationEucModel: mongoose.Model<{
61
64
  netMonthlyIncome: number;
62
65
  topUpAmount: number;
63
66
  remainingSurplusIncome: number;
67
+ isFscrAcceptable: boolean;
64
68
  }, {}> & {
65
69
  result: any;
70
+ version: number;
66
71
  applicationId: mongoose.Types.ObjectId;
67
72
  stressedFinanceRate: number;
68
73
  stressedFinancePayment: number;
69
74
  stressTestSurplusIncome: number;
70
- minFSCRRequirements: number;
71
- fscrRequirements: number;
75
+ minFSCRRequirementAmount: number;
76
+ fscrRequirementAmount: number;
72
77
  disposableIncome: number;
73
78
  ftv: number;
74
79
  monthlyPayment: number;
@@ -78,18 +83,20 @@ declare const ApplicationEucModel: mongoose.Model<{
78
83
  netMonthlyIncome: number;
79
84
  topUpAmount: number;
80
85
  remainingSurplusIncome: number;
86
+ isFscrAcceptable: boolean;
81
87
  } & {
82
88
  _id: mongoose.Types.ObjectId;
83
89
  } & {
84
90
  __v: number;
85
91
  }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
86
92
  result: any;
93
+ version: number;
87
94
  applicationId: mongoose.Types.ObjectId;
88
95
  stressedFinanceRate: number;
89
96
  stressedFinancePayment: number;
90
97
  stressTestSurplusIncome: number;
91
- minFSCRRequirements: number;
92
- fscrRequirements: number;
98
+ minFSCRRequirementAmount: number;
99
+ fscrRequirementAmount: number;
93
100
  disposableIncome: number;
94
101
  ftv: number;
95
102
  monthlyPayment: number;
@@ -99,14 +106,16 @@ declare const ApplicationEucModel: mongoose.Model<{
99
106
  netMonthlyIncome: number;
100
107
  topUpAmount: number;
101
108
  remainingSurplusIncome: number;
109
+ isFscrAcceptable: boolean;
102
110
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
103
111
  result: any;
112
+ version: number;
104
113
  applicationId: mongoose.Types.ObjectId;
105
114
  stressedFinanceRate: number;
106
115
  stressedFinancePayment: number;
107
116
  stressTestSurplusIncome: number;
108
- minFSCRRequirements: number;
109
- fscrRequirements: number;
117
+ minFSCRRequirementAmount: number;
118
+ fscrRequirementAmount: number;
110
119
  disposableIncome: number;
111
120
  ftv: number;
112
121
  monthlyPayment: number;
@@ -116,14 +125,16 @@ declare const ApplicationEucModel: mongoose.Model<{
116
125
  netMonthlyIncome: number;
117
126
  topUpAmount: number;
118
127
  remainingSurplusIncome: number;
128
+ isFscrAcceptable: boolean;
119
129
  }>, {}> & mongoose.FlatRecord<{
120
130
  result: any;
131
+ version: number;
121
132
  applicationId: mongoose.Types.ObjectId;
122
133
  stressedFinanceRate: number;
123
134
  stressedFinancePayment: number;
124
135
  stressTestSurplusIncome: number;
125
- minFSCRRequirements: number;
126
- fscrRequirements: number;
136
+ minFSCRRequirementAmount: number;
137
+ fscrRequirementAmount: number;
127
138
  disposableIncome: number;
128
139
  ftv: number;
129
140
  monthlyPayment: number;
@@ -133,6 +144,7 @@ declare const ApplicationEucModel: mongoose.Model<{
133
144
  netMonthlyIncome: number;
134
145
  topUpAmount: number;
135
146
  remainingSurplusIncome: number;
147
+ isFscrAcceptable: boolean;
136
148
  }> & {
137
149
  _id: mongoose.Types.ObjectId;
138
150
  } & {
@@ -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;AAgChC,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;AAkChC,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyD,CAAC;AACnF,eAAe,mBAAmB,CAAC"}
@@ -5,8 +5,8 @@ const applicationEucSchema = new mongoose.Schema({
5
5
  stressedFinanceRate: { type: Number, default: 0 },
6
6
  stressedFinancePayment: { type: Number, default: 0 },
7
7
  stressTestSurplusIncome: { type: Number, default: 0 },
8
- minFSCRRequirements: { type: Number, default: 0 },
9
- fscrRequirements: { type: Number, default: 0 },
8
+ minFSCRRequirementAmount: { type: Number, default: 0 },
9
+ fscrRequirementAmount: { type: Number, default: 0 },
10
10
  disposableIncome: { type: Number, default: 0 },
11
11
  ftv: { type: Number, default: 0 },
12
12
  monthlyPayment: { type: Number, default: 0 },
@@ -16,6 +16,8 @@ const applicationEucSchema = new mongoose.Schema({
16
16
  netMonthlyIncome: { type: Number, default: 0 },
17
17
  topUpAmount: { type: Number, default: 0 },
18
18
  remainingSurplusIncome: { type: Number, default: 0 },
19
+ version: { type: Number, default: 0 },
20
+ isFscrAcceptable: { type: Boolean, default: false },
19
21
  result: { type: mongoose.Schema.Types.Mixed, default: null }
20
22
  });
21
23
  // Apply workflow plugin to the schema
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.3.346",
3
+ "version": "2.3.348",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",