@dynamatix/gb-schemas 2.3.399 → 2.3.400

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.
@@ -28,7 +28,6 @@
28
28
  /// <reference types="mongoose/types/inferrawdoctype" />
29
29
  import mongoose from "mongoose";
30
30
  declare const ApplicationEucModel: mongoose.Model<{
31
- result: any;
32
31
  version: number;
33
32
  applicationId: mongoose.Types.ObjectId;
34
33
  stressedFinanceRate: number;
@@ -46,8 +45,13 @@ declare const ApplicationEucModel: mongoose.Model<{
46
45
  topUpAmount: number;
47
46
  remainingSurplusIncome: number;
48
47
  isRemainingSurplusPassed: boolean;
48
+ productBeingUsed: string;
49
+ incomeExpenditureSummary: string;
50
+ applicationSummary: string;
51
+ versionDate: string;
52
+ creditExpenditure: number;
53
+ householdExpenditure: number;
49
54
  }, {}, {}, {}, mongoose.Document<unknown, {}, {
50
- result: any;
51
55
  version: number;
52
56
  applicationId: mongoose.Types.ObjectId;
53
57
  stressedFinanceRate: number;
@@ -65,8 +69,13 @@ declare const ApplicationEucModel: mongoose.Model<{
65
69
  topUpAmount: number;
66
70
  remainingSurplusIncome: number;
67
71
  isRemainingSurplusPassed: boolean;
72
+ productBeingUsed: string;
73
+ incomeExpenditureSummary: string;
74
+ applicationSummary: string;
75
+ versionDate: string;
76
+ creditExpenditure: number;
77
+ householdExpenditure: number;
68
78
  }, {}> & {
69
- result: any;
70
79
  version: number;
71
80
  applicationId: mongoose.Types.ObjectId;
72
81
  stressedFinanceRate: number;
@@ -84,12 +93,17 @@ declare const ApplicationEucModel: mongoose.Model<{
84
93
  topUpAmount: number;
85
94
  remainingSurplusIncome: number;
86
95
  isRemainingSurplusPassed: boolean;
96
+ productBeingUsed: string;
97
+ incomeExpenditureSummary: string;
98
+ applicationSummary: string;
99
+ versionDate: string;
100
+ creditExpenditure: number;
101
+ householdExpenditure: number;
87
102
  } & {
88
103
  _id: mongoose.Types.ObjectId;
89
104
  } & {
90
105
  __v: number;
91
106
  }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
92
- result: any;
93
107
  version: number;
94
108
  applicationId: mongoose.Types.ObjectId;
95
109
  stressedFinanceRate: number;
@@ -107,8 +121,13 @@ declare const ApplicationEucModel: mongoose.Model<{
107
121
  topUpAmount: number;
108
122
  remainingSurplusIncome: number;
109
123
  isRemainingSurplusPassed: boolean;
124
+ productBeingUsed: string;
125
+ incomeExpenditureSummary: string;
126
+ applicationSummary: string;
127
+ versionDate: string;
128
+ creditExpenditure: number;
129
+ householdExpenditure: number;
110
130
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
111
- result: any;
112
131
  version: number;
113
132
  applicationId: mongoose.Types.ObjectId;
114
133
  stressedFinanceRate: number;
@@ -126,8 +145,13 @@ declare const ApplicationEucModel: mongoose.Model<{
126
145
  topUpAmount: number;
127
146
  remainingSurplusIncome: number;
128
147
  isRemainingSurplusPassed: boolean;
148
+ productBeingUsed: string;
149
+ incomeExpenditureSummary: string;
150
+ applicationSummary: string;
151
+ versionDate: string;
152
+ creditExpenditure: number;
153
+ householdExpenditure: number;
129
154
  }>, {}> & mongoose.FlatRecord<{
130
- result: any;
131
155
  version: number;
132
156
  applicationId: mongoose.Types.ObjectId;
133
157
  stressedFinanceRate: number;
@@ -145,6 +169,12 @@ declare const ApplicationEucModel: mongoose.Model<{
145
169
  topUpAmount: number;
146
170
  remainingSurplusIncome: number;
147
171
  isRemainingSurplusPassed: boolean;
172
+ productBeingUsed: string;
173
+ incomeExpenditureSummary: string;
174
+ applicationSummary: string;
175
+ versionDate: string;
176
+ creditExpenditure: number;
177
+ householdExpenditure: number;
148
178
  }> & {
149
179
  _id: mongoose.Types.ObjectId;
150
180
  } & {
@@ -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;AAkChC,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;AAuChC,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyD,CAAC;AACnF,eAAe,mBAAmB,CAAC"}
@@ -18,7 +18,12 @@ const applicationEucSchema = new mongoose.Schema({
18
18
  remainingSurplusIncome: { type: Number, default: 0 },
19
19
  version: { type: Number, default: 0 },
20
20
  isRemainingSurplusPassed: { type: Boolean, default: true },
21
- result: { type: mongoose.Schema.Types.Mixed, default: null }
21
+ productBeingUsed: { type: String, default: null },
22
+ incomeExpenditureSummary: { type: String, default: null },
23
+ applicationSummary: { type: String, default: null },
24
+ versionDate: { type: String, default: null },
25
+ creditExpenditure: { type: Number, default: 0 },
26
+ householdExpenditure: { type: Number, default: 0 },
22
27
  });
23
28
  // Apply workflow plugin to the schema
24
29
  applyWorkflowPlugin(applicationEucSchema, 'applicationeuc');
@@ -0,0 +1,56 @@
1
+ /// <reference path="../value-objects/pound.d.ts" />
2
+ /// <reference path="../value-objects/account-number.d.ts" />
3
+ /// <reference path="../value-objects/sort-code.d.ts" />
4
+ /// <reference types="mongoose/types/aggregate" />
5
+ /// <reference types="mongoose/types/callback" />
6
+ /// <reference types="mongoose/types/collection" />
7
+ /// <reference types="mongoose/types/connection" />
8
+ /// <reference types="mongoose/types/cursor" />
9
+ /// <reference types="mongoose/types/document" />
10
+ /// <reference types="mongoose/types/error" />
11
+ /// <reference types="mongoose/types/expressions" />
12
+ /// <reference types="mongoose/types/helpers" />
13
+ /// <reference types="mongoose/types/middlewares" />
14
+ /// <reference types="mongoose/types/indexes" />
15
+ /// <reference types="mongoose/types/models" />
16
+ /// <reference types="mongoose/types/mongooseoptions" />
17
+ /// <reference types="mongoose/types/pipelinestage" />
18
+ /// <reference types="mongoose/types/populate" />
19
+ /// <reference types="mongoose/types/query" />
20
+ /// <reference types="mongoose/types/schemaoptions" />
21
+ /// <reference types="mongoose/types/session" />
22
+ /// <reference types="mongoose/types/types" />
23
+ /// <reference types="mongoose/types/utility" />
24
+ /// <reference types="mongoose/types/validation" />
25
+ /// <reference types="mongoose/types/virtuals" />
26
+ /// <reference types="mongoose/types/schematypes" />
27
+ /// <reference types="mongoose/types/inferschematype" />
28
+ /// <reference types="mongoose/types/inferrawdoctype" />
29
+ import { IBaseType } from "../types/base.types";
30
+ import { Types } from "mongoose";
31
+ export default interface IApplicationEuc extends IBaseType {
32
+ applicationId: Types.ObjectId;
33
+ stressedFinanceRate: number;
34
+ stressedFinancePayment: number;
35
+ stressTestSurplusIncome: number;
36
+ minFSCRRequirement: number;
37
+ fscrRequirement: number;
38
+ disposableIncome: number;
39
+ ftv: number;
40
+ monthlyPayment: number;
41
+ fcr: number;
42
+ fscrAcceptable: string;
43
+ grossMonthlyIncome: number;
44
+ netMonthlyIncome: number;
45
+ topUpAmount: number;
46
+ remainingSurplusIncome: number;
47
+ version: number;
48
+ isRemainingSurplusPassed: boolean;
49
+ productBeingUsed: string;
50
+ incomeExpenditureSummary: string;
51
+ applicationSummary: string;
52
+ versionDate: string;
53
+ creditExpenditure: number;
54
+ householdExpenditure: number;
55
+ }
56
+ //# sourceMappingURL=application-euc.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-euc.type.d.ts","sourceRoot":"","sources":["../../applications/application-euc.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,CAAC,OAAO,WAAW,eAAgB,SAAQ,SAAS;IACtD,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC9B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,uBAAuB,EAAE,MAAM,CAAC;IAChC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,wBAAwB,EAAE,OAAO,CAAC;IAClC,gBAAgB,EAAG,MAAM,CAAC;IAC1B,wBAAwB,EAAG,MAAM,CAAC;IAClC,kBAAkB,EAAG,MAAM,CAAC;IAC5B,WAAW,EAAG,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;CAChC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -25,6 +25,7 @@ export { default as ApplicationFieldConfigModel } from './application-fieldconfi
25
25
  export { default as MortgageModel } from './application-mortgage.model';
26
26
  export { default as ApplicationProductFeaturesModel } from './application-productfeatures.model';
27
27
  export { default as ApplicationEucModel } from './application-euc.model';
28
+ export { default as ApplicationEuc } from './application-euc.type';
28
29
  export { default as ApplicationsTaskModel } from './applications-task.model';
29
30
  export { default as ApplicationProductType } from './application-product.type';
30
31
  export { default as ApplicationProductFeaturesType } from './application-productfeatures.type';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../applications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AACzF,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,OAA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OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACpG,OAAO,EAAE,OAAO,IAAI,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,qCAAqC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.3.399",
3
+ "version": "2.3.400",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",