@dynamatix/gb-schemas 1.3.235 → 1.3.237
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.
- package/dist/applicants/applicant-pension-income.model.js +3 -3
- package/dist/applications/application-rationale.model.d.ts +6 -6
- package/dist/applications/application-rationale.model.js +1 -1
- package/dist/applications/application-rationale.type.d.ts +44 -0
- package/dist/applications/application-rationale.type.d.ts.map +1 -0
- package/dist/applications/application-rationale.type.js +1 -0
- package/dist/applications/index.d.ts +1 -0
- package/dist/applications/index.d.ts.map +1 -1
- package/dist/applications/index.js +1 -0
- package/package.json +1 -1
|
@@ -6,9 +6,9 @@ const applicantPensionIncomSchema = new mongoose.Schema({
|
|
|
6
6
|
ref: "Applicant",
|
|
7
7
|
required: true
|
|
8
8
|
},
|
|
9
|
-
monthlyPrivatePension: { type: Pound, default: 0.00,
|
|
10
|
-
monthlyStatePension: { type: Pound, default: 0.00,
|
|
11
|
-
monthlyPensionIncome: { type: Pound, default: 0.00,
|
|
9
|
+
monthlyPrivatePension: { type: Pound, default: 0.00, get: formatPound },
|
|
10
|
+
monthlyStatePension: { type: Pound, default: 0.00, get: formatPound },
|
|
11
|
+
monthlyPensionIncome: { type: Pound, default: 0.00, get: formatPound },
|
|
12
12
|
});
|
|
13
13
|
applicantPensionIncomSchema.virtual('applicationType').get(function () {
|
|
14
14
|
return this.applicantId?.applicationTypeLid instanceof mongoose.Types.ObjectId
|
|
@@ -32,7 +32,7 @@ declare const ApplicationRationaleModel: mongoose.Model<{
|
|
|
32
32
|
rationaleTypeLid: mongoose.Types.ObjectId;
|
|
33
33
|
generatedText: string;
|
|
34
34
|
isConfirmed: boolean;
|
|
35
|
-
|
|
35
|
+
comment?: {
|
|
36
36
|
text: string;
|
|
37
37
|
createdBy: string;
|
|
38
38
|
timestamp: NativeDate;
|
|
@@ -44,7 +44,7 @@ declare const ApplicationRationaleModel: mongoose.Model<{
|
|
|
44
44
|
rationaleTypeLid: mongoose.Types.ObjectId;
|
|
45
45
|
generatedText: string;
|
|
46
46
|
isConfirmed: boolean;
|
|
47
|
-
|
|
47
|
+
comment?: {
|
|
48
48
|
text: string;
|
|
49
49
|
createdBy: string;
|
|
50
50
|
timestamp: NativeDate;
|
|
@@ -56,7 +56,7 @@ declare const ApplicationRationaleModel: mongoose.Model<{
|
|
|
56
56
|
rationaleTypeLid: mongoose.Types.ObjectId;
|
|
57
57
|
generatedText: string;
|
|
58
58
|
isConfirmed: boolean;
|
|
59
|
-
|
|
59
|
+
comment?: {
|
|
60
60
|
text: string;
|
|
61
61
|
createdBy: string;
|
|
62
62
|
timestamp: NativeDate;
|
|
@@ -72,7 +72,7 @@ declare const ApplicationRationaleModel: mongoose.Model<{
|
|
|
72
72
|
rationaleTypeLid: mongoose.Types.ObjectId;
|
|
73
73
|
generatedText: string;
|
|
74
74
|
isConfirmed: boolean;
|
|
75
|
-
|
|
75
|
+
comment?: {
|
|
76
76
|
text: string;
|
|
77
77
|
createdBy: string;
|
|
78
78
|
timestamp: NativeDate;
|
|
@@ -84,7 +84,7 @@ declare const ApplicationRationaleModel: mongoose.Model<{
|
|
|
84
84
|
rationaleTypeLid: mongoose.Types.ObjectId;
|
|
85
85
|
generatedText: string;
|
|
86
86
|
isConfirmed: boolean;
|
|
87
|
-
|
|
87
|
+
comment?: {
|
|
88
88
|
text: string;
|
|
89
89
|
createdBy: string;
|
|
90
90
|
timestamp: NativeDate;
|
|
@@ -96,7 +96,7 @@ declare const ApplicationRationaleModel: mongoose.Model<{
|
|
|
96
96
|
rationaleTypeLid: mongoose.Types.ObjectId;
|
|
97
97
|
generatedText: string;
|
|
98
98
|
isConfirmed: boolean;
|
|
99
|
-
|
|
99
|
+
comment?: {
|
|
100
100
|
text: string;
|
|
101
101
|
createdBy: string;
|
|
102
102
|
timestamp: NativeDate;
|
|
@@ -10,7 +10,7 @@ const rationaleSchema = new mongoose.Schema({
|
|
|
10
10
|
applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true },
|
|
11
11
|
rationaleTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
12
12
|
generatedText: { type: String, default: "" },
|
|
13
|
-
|
|
13
|
+
comment: commentSchema,
|
|
14
14
|
isConfirmed: { type: Boolean, default: false },
|
|
15
15
|
});
|
|
16
16
|
// Static method to generate text with anchor tags for each rationale type
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { Types } from "mongoose";
|
|
30
|
+
export interface IComment {
|
|
31
|
+
text: string;
|
|
32
|
+
applicantId?: Types.ObjectId;
|
|
33
|
+
timestamp?: Date;
|
|
34
|
+
createdBy: string;
|
|
35
|
+
updatedBy: string;
|
|
36
|
+
}
|
|
37
|
+
export interface IApplicationRationale {
|
|
38
|
+
applicationId: Types.ObjectId;
|
|
39
|
+
rationaleTypeLid?: Types.ObjectId | null;
|
|
40
|
+
generatedText?: string;
|
|
41
|
+
comments: IComment;
|
|
42
|
+
isConfirmed?: boolean;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=application-rationale.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-rationale.type.d.ts","sourceRoot":"","sources":["../../applications/application-rationale.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,WAAW,QAAQ;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC7B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IAClC,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC9B,gBAAgB,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -20,4 +20,5 @@ export { default as MortgageModel } from './application-mortgage.model';
|
|
|
20
20
|
export { default as ApplicationProductFeaturesModel } from './application-productfeatures.model';
|
|
21
21
|
export { default as ApplicationEucModel } from './application-euc.model';
|
|
22
22
|
export { default as ApplicationsTaskModel } from './applications-task.model';
|
|
23
|
+
export * from './application-rationale.type';
|
|
23
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,2BAA2B,
|
|
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,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AACzF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACnF,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,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AACrF,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,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACnF,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,kBAAkB,CAAC;AAC5D,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,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,cAAc,8BAA8B,CAAC"}
|
|
@@ -20,3 +20,4 @@ export { default as MortgageModel } from './application-mortgage.model';
|
|
|
20
20
|
export { default as ApplicationProductFeaturesModel } from './application-productfeatures.model';
|
|
21
21
|
export { default as ApplicationEucModel } from './application-euc.model';
|
|
22
22
|
export { default as ApplicationsTaskModel } from './applications-task.model';
|
|
23
|
+
export * from './application-rationale.type';
|