@dynamatix/gb-schemas 2.3.340 → 2.3.342
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/README.md +308 -308
- package/dist/applicants/applicant-risk-narrative.model.d.ts +3 -3
- package/dist/applicants/applicant-welcome-call.model.js +9 -9
- package/dist/applicants/applicant.model.d.ts +3 -3
- package/dist/applications/application-offer.model.d.ts +80 -8
- package/dist/applications/application-offer.model.d.ts.map +1 -1
- package/dist/applications/application-offer.model.js +39 -4
- package/dist/applications/application-offer.type.d.ts +46 -0
- package/dist/applications/application-offer.type.d.ts.map +1 -0
- package/dist/applications/application-offer.type.js +1 -0
- package/dist/applications/application-risk-narrative.model.d.ts +6 -6
- package/dist/applications/application-risk-narrative.model.js +1 -1
- package/dist/applications/application.model.d.ts +6 -0
- package/dist/applications/application.model.d.ts.map +1 -1
- package/dist/applications/application.model.js +1 -0
- package/dist/applications/index.d.ts +3 -0
- package/dist/applications/index.d.ts.map +1 -1
- package/dist/applications/index.js +1 -0
- package/dist/applications/solicitor.model.d.ts.map +1 -1
- package/dist/applications/solicitor.model.js +3 -0
- package/dist/applications/solicitor.type.d.ts +56 -0
- package/dist/applications/solicitor.type.d.ts.map +1 -0
- package/dist/applications/solicitor.type.js +1 -0
- package/dist/shared/audit-log.model.d.ts +180 -0
- package/dist/shared/audit-log.model.d.ts.map +1 -0
- package/dist/shared/audit-log.model.js +43 -0
- package/dist/shared/document.model.d.ts +180 -0
- package/dist/shared/document.model.d.ts.map +1 -0
- package/dist/shared/document.model.js +40 -0
- package/dist/shared/queue.model.d.ts +180 -0
- package/dist/shared/queue.model.d.ts.map +1 -0
- package/dist/shared/queue.model.js +42 -0
- package/package.json +87 -87
- package/dist/applicants/applicant-income-source.model.d.ts +0 -26
- package/dist/applicants/applicant-income-source.model.d.ts.map +0 -1
- package/dist/applicants/applicant-income.model.d.ts +0 -160
- package/dist/applicants/applicant-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-other-income.model.d.ts +0 -85
- package/dist/applicants/applicant-other-income.model.d.ts.map +0 -1
- package/dist/applications/application-document.model.d.ts +0 -158
- package/dist/applications/application-document.model.d.ts.map +0 -1
- package/dist/applications/document.model.d.ts +0 -158
- package/dist/applications/document.model.d.ts.map +0 -1
- package/dist/applications/productfeatures.model.d.ts +0 -368
- package/dist/applications/productfeatures.model.d.ts.map +0 -1
- package/dist/shared/document-type-model.d.ts +0 -48
- package/dist/shared/document-type-model.d.ts.map +0 -1
|
@@ -393,10 +393,10 @@ welcomeCallSchema.virtual('otherApplicantsNameAndDOB').get(function () {
|
|
|
393
393
|
const isLast = index === otherApplicants.length - 1;
|
|
394
394
|
const comma = isLast ? '' : ',';
|
|
395
395
|
// Format as an HTML line (with bold labels and inline values)
|
|
396
|
-
return `
|
|
397
|
-
<div class="applicant-line">
|
|
398
|
-
<span class="readonly-data">${fullFirstName}, ${lastName}, ${formattedDOB}${comma}</span>
|
|
399
|
-
</div>
|
|
396
|
+
return `
|
|
397
|
+
<div class="applicant-line">
|
|
398
|
+
<span class="readonly-data">${fullFirstName}, ${lastName}, ${formattedDOB}${comma}</span>
|
|
399
|
+
</div>
|
|
400
400
|
`;
|
|
401
401
|
}).filter((line) => line && line.trim() !== '');
|
|
402
402
|
// Join all applicants as HTML (no \n needed)
|
|
@@ -676,14 +676,14 @@ welcomeCallSchema.virtual('financeSummaryHtml').get(async function () {
|
|
|
676
676
|
application.lendingTypeLid.name === 'BTL';
|
|
677
677
|
const monthlyRepaymentClass = isBTL ? 'mb-2' : '';
|
|
678
678
|
// Create HTML content
|
|
679
|
-
let summaryContent = `
|
|
680
|
-
<div class="flex align-items-center mb-2"><p class="text-bold m-0 readonly-data">Product:</p> <span class="readonly-data ml-2">${product}</span></div>
|
|
681
|
-
<div class="flex align-items-center mb-2"><p class="text-bold m-0 readonly-data">Finance Term:</p> <span class="readonly-data ml-2">${financeTerm}</span></div>
|
|
679
|
+
let summaryContent = `
|
|
680
|
+
<div class="flex align-items-center mb-2"><p class="text-bold m-0 readonly-data">Product:</p> <span class="readonly-data ml-2">${product}</span></div>
|
|
681
|
+
<div class="flex align-items-center mb-2"><p class="text-bold m-0 readonly-data">Finance Term:</p> <span class="readonly-data ml-2">${financeTerm}</span></div>
|
|
682
682
|
<div class="flex align-items-center ${monthlyRepaymentClass}"><p class="text-bold m-0 readonly-data">Monthly Repayment:</p> <span class="readonly-data ml-2">${monthlyRepayment}</span></div>`;
|
|
683
683
|
// Only show rental income and occupancy for BTL applications
|
|
684
684
|
if (isBTL) {
|
|
685
|
-
summaryContent += `
|
|
686
|
-
<div class="flex align-items-center mb-2"><p class="text-bold m-0 readonly-data">Rental Income:</p> <span class="readonly-data ml-2">${rentalIncome}</span></div>
|
|
685
|
+
summaryContent += `
|
|
686
|
+
<div class="flex align-items-center mb-2"><p class="text-bold m-0 readonly-data">Rental Income:</p> <span class="readonly-data ml-2">${rentalIncome}</span></div>
|
|
687
687
|
<div class="flex align-items-center"><p class="text-bold m-0 readonly-data">Occupancy:</p> <span class="readonly-data ml-2">${occupancy}</span></div>`;
|
|
688
688
|
}
|
|
689
689
|
return summaryContent;
|
|
@@ -1221,8 +1221,8 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
1221
1221
|
creditDefaults?: string | null | undefined;
|
|
1222
1222
|
} | null | undefined;
|
|
1223
1223
|
riskNarrative?: {
|
|
1224
|
-
statusLid: mongoose.Types.ObjectId;
|
|
1225
1224
|
call2StatusLid: mongoose.Types.ObjectId;
|
|
1225
|
+
statusLid: mongoose.Types.ObjectId;
|
|
1226
1226
|
docVerificationStatusLid: mongoose.Types.ObjectId;
|
|
1227
1227
|
link?: string | null | undefined;
|
|
1228
1228
|
clientReference?: string | null | undefined;
|
|
@@ -1376,8 +1376,8 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
1376
1376
|
creditDefaults?: string | null | undefined;
|
|
1377
1377
|
} | null | undefined;
|
|
1378
1378
|
riskNarrative?: {
|
|
1379
|
-
statusLid: mongoose.Types.ObjectId;
|
|
1380
1379
|
call2StatusLid: mongoose.Types.ObjectId;
|
|
1380
|
+
statusLid: mongoose.Types.ObjectId;
|
|
1381
1381
|
docVerificationStatusLid: mongoose.Types.ObjectId;
|
|
1382
1382
|
link?: string | null | undefined;
|
|
1383
1383
|
clientReference?: string | null | undefined;
|
|
@@ -1531,8 +1531,8 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
1531
1531
|
creditDefaults?: string | null | undefined;
|
|
1532
1532
|
} | null | undefined;
|
|
1533
1533
|
riskNarrative?: {
|
|
1534
|
-
statusLid: mongoose.Types.ObjectId;
|
|
1535
1534
|
call2StatusLid: mongoose.Types.ObjectId;
|
|
1535
|
+
statusLid: mongoose.Types.ObjectId;
|
|
1536
1536
|
docVerificationStatusLid: mongoose.Types.ObjectId;
|
|
1537
1537
|
link?: string | null | undefined;
|
|
1538
1538
|
clientReference?: string | null | undefined;
|
|
@@ -27,26 +27,98 @@
|
|
|
27
27
|
/// <reference types="mongoose/types/inferschematype" />
|
|
28
28
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
29
|
import mongoose from "mongoose";
|
|
30
|
-
declare const
|
|
31
|
-
|
|
30
|
+
declare const ApplicationOfferModel: mongoose.Model<{
|
|
31
|
+
applicationId: mongoose.Types.ObjectId;
|
|
32
|
+
offerStatusLid: mongoose.Types.ObjectId;
|
|
33
|
+
bankSolicitorLid: mongoose.Types.ObjectId;
|
|
34
|
+
offerConditionLids: mongoose.Types.ObjectId[];
|
|
35
|
+
customOfferConditions: string[];
|
|
36
|
+
isOfferConditionConfirmed: boolean;
|
|
37
|
+
offerConditionConfirmedAt: NativeDate;
|
|
38
|
+
offerGeneratedAt: NativeDate;
|
|
39
|
+
isOfferGenerated: boolean;
|
|
40
|
+
isOfferReviewed: boolean;
|
|
41
|
+
isOfferReviewConfirmed: boolean;
|
|
42
|
+
isReviewMandateConfirmed: boolean;
|
|
43
|
+
isOfferIssuedConfirmed: boolean;
|
|
32
44
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
33
|
-
|
|
45
|
+
applicationId: mongoose.Types.ObjectId;
|
|
46
|
+
offerStatusLid: mongoose.Types.ObjectId;
|
|
47
|
+
bankSolicitorLid: mongoose.Types.ObjectId;
|
|
48
|
+
offerConditionLids: mongoose.Types.ObjectId[];
|
|
49
|
+
customOfferConditions: string[];
|
|
50
|
+
isOfferConditionConfirmed: boolean;
|
|
51
|
+
offerConditionConfirmedAt: NativeDate;
|
|
52
|
+
offerGeneratedAt: NativeDate;
|
|
53
|
+
isOfferGenerated: boolean;
|
|
54
|
+
isOfferReviewed: boolean;
|
|
55
|
+
isOfferReviewConfirmed: boolean;
|
|
56
|
+
isReviewMandateConfirmed: boolean;
|
|
57
|
+
isOfferIssuedConfirmed: boolean;
|
|
34
58
|
}, {}> & {
|
|
35
|
-
|
|
59
|
+
applicationId: mongoose.Types.ObjectId;
|
|
60
|
+
offerStatusLid: mongoose.Types.ObjectId;
|
|
61
|
+
bankSolicitorLid: mongoose.Types.ObjectId;
|
|
62
|
+
offerConditionLids: mongoose.Types.ObjectId[];
|
|
63
|
+
customOfferConditions: string[];
|
|
64
|
+
isOfferConditionConfirmed: boolean;
|
|
65
|
+
offerConditionConfirmedAt: NativeDate;
|
|
66
|
+
offerGeneratedAt: NativeDate;
|
|
67
|
+
isOfferGenerated: boolean;
|
|
68
|
+
isOfferReviewed: boolean;
|
|
69
|
+
isOfferReviewConfirmed: boolean;
|
|
70
|
+
isReviewMandateConfirmed: boolean;
|
|
71
|
+
isOfferIssuedConfirmed: boolean;
|
|
36
72
|
} & {
|
|
37
73
|
_id: mongoose.Types.ObjectId;
|
|
38
74
|
} & {
|
|
39
75
|
__v: number;
|
|
40
76
|
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
41
|
-
|
|
77
|
+
applicationId: mongoose.Types.ObjectId;
|
|
78
|
+
offerStatusLid: mongoose.Types.ObjectId;
|
|
79
|
+
bankSolicitorLid: mongoose.Types.ObjectId;
|
|
80
|
+
offerConditionLids: mongoose.Types.ObjectId[];
|
|
81
|
+
customOfferConditions: string[];
|
|
82
|
+
isOfferConditionConfirmed: boolean;
|
|
83
|
+
offerConditionConfirmedAt: NativeDate;
|
|
84
|
+
offerGeneratedAt: NativeDate;
|
|
85
|
+
isOfferGenerated: boolean;
|
|
86
|
+
isOfferReviewed: boolean;
|
|
87
|
+
isOfferReviewConfirmed: boolean;
|
|
88
|
+
isReviewMandateConfirmed: boolean;
|
|
89
|
+
isOfferIssuedConfirmed: boolean;
|
|
42
90
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
43
|
-
|
|
91
|
+
applicationId: mongoose.Types.ObjectId;
|
|
92
|
+
offerStatusLid: mongoose.Types.ObjectId;
|
|
93
|
+
bankSolicitorLid: mongoose.Types.ObjectId;
|
|
94
|
+
offerConditionLids: mongoose.Types.ObjectId[];
|
|
95
|
+
customOfferConditions: string[];
|
|
96
|
+
isOfferConditionConfirmed: boolean;
|
|
97
|
+
offerConditionConfirmedAt: NativeDate;
|
|
98
|
+
offerGeneratedAt: NativeDate;
|
|
99
|
+
isOfferGenerated: boolean;
|
|
100
|
+
isOfferReviewed: boolean;
|
|
101
|
+
isOfferReviewConfirmed: boolean;
|
|
102
|
+
isReviewMandateConfirmed: boolean;
|
|
103
|
+
isOfferIssuedConfirmed: boolean;
|
|
44
104
|
}>, {}> & mongoose.FlatRecord<{
|
|
45
|
-
|
|
105
|
+
applicationId: mongoose.Types.ObjectId;
|
|
106
|
+
offerStatusLid: mongoose.Types.ObjectId;
|
|
107
|
+
bankSolicitorLid: mongoose.Types.ObjectId;
|
|
108
|
+
offerConditionLids: mongoose.Types.ObjectId[];
|
|
109
|
+
customOfferConditions: string[];
|
|
110
|
+
isOfferConditionConfirmed: boolean;
|
|
111
|
+
offerConditionConfirmedAt: NativeDate;
|
|
112
|
+
offerGeneratedAt: NativeDate;
|
|
113
|
+
isOfferGenerated: boolean;
|
|
114
|
+
isOfferReviewed: boolean;
|
|
115
|
+
isOfferReviewConfirmed: boolean;
|
|
116
|
+
isReviewMandateConfirmed: boolean;
|
|
117
|
+
isOfferIssuedConfirmed: boolean;
|
|
46
118
|
}> & {
|
|
47
119
|
_id: mongoose.Types.ObjectId;
|
|
48
120
|
} & {
|
|
49
121
|
__v: number;
|
|
50
122
|
}>>;
|
|
51
|
-
export default
|
|
123
|
+
export default ApplicationOfferModel;
|
|
52
124
|
//# sourceMappingURL=application-offer.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-offer.model.d.ts","sourceRoot":"","sources":["../../applications/application-offer.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"application-offer.model.d.ts","sourceRoot":"","sources":["../../applications/application-offer.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA+ChC,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAkD,CAAC;AAC9E,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,9 +1,44 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
+
import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
|
|
2
3
|
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
4
|
const offerSchema = new mongoose.Schema({
|
|
4
|
-
|
|
5
|
+
applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application",
|
|
6
|
+
required: true,
|
|
7
|
+
},
|
|
8
|
+
offerStatusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup",
|
|
9
|
+
default: null,
|
|
10
|
+
description: "Object id for lookup group OfferStatus",
|
|
11
|
+
},
|
|
12
|
+
// Bank Solicitor section
|
|
13
|
+
bankSolicitorLid: { type: mongoose.Schema.Types.ObjectId, ref: "lookup",
|
|
14
|
+
default: null,
|
|
15
|
+
description: "Lookup ID for lookup group BankSolicitor",
|
|
16
|
+
},
|
|
17
|
+
// Offer condition section
|
|
18
|
+
offerConditionLids: { type: [mongoose.Schema.Types.ObjectId], ref: "Lookup",
|
|
19
|
+
default: null,
|
|
20
|
+
description: "Array of object ids for lookup group OfferCondition",
|
|
21
|
+
},
|
|
22
|
+
customOfferConditions: { type: [String],
|
|
23
|
+
default: null,
|
|
24
|
+
description: "Array of strings for custom offer conditions",
|
|
25
|
+
},
|
|
26
|
+
isOfferConditionConfirmed: { type: Boolean, default: false },
|
|
27
|
+
offerConditionConfirmedAt: { type: Date, default: null }, // if offer generated date is after condition confirm date, then we can have regeneration of offer
|
|
28
|
+
// Offer generation section
|
|
29
|
+
offerGeneratedAt: { type: Date, default: null },
|
|
30
|
+
isOfferGenerated: { type: Boolean, default: false },
|
|
31
|
+
// Offer review section
|
|
32
|
+
isOfferReviewed: { type: Boolean, default: false },
|
|
33
|
+
isOfferReviewConfirmed: { type: Boolean, default: false },
|
|
34
|
+
// Review mandate section
|
|
35
|
+
isReviewMandateConfirmed: { type: Boolean, default: false },
|
|
36
|
+
// Offer issued section
|
|
37
|
+
isOfferIssuedConfirmed: { type: Boolean, default: false },
|
|
5
38
|
});
|
|
39
|
+
// Apply audit middleware to the schema
|
|
40
|
+
applyAuditMiddleware(offerSchema, "ApplicationOffer");
|
|
6
41
|
// Apply workflow plugin to the schema
|
|
7
|
-
applyWorkflowPlugin(offerSchema, '
|
|
8
|
-
const
|
|
9
|
-
export default
|
|
42
|
+
applyWorkflowPlugin(offerSchema, 'applicationoffer');
|
|
43
|
+
const ApplicationOfferModel = mongoose.model("ApplicationOffer", offerSchema);
|
|
44
|
+
export default ApplicationOfferModel;
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
import { IBaseType } from "../types/base.types";
|
|
31
|
+
export default interface IApplicationOffer extends IBaseType {
|
|
32
|
+
applicationId: Types.ObjectId;
|
|
33
|
+
offerStatusLid?: Types.ObjectId | null;
|
|
34
|
+
bankSolicitorLid?: Types.ObjectId | null;
|
|
35
|
+
offerConditionLids?: Types.ObjectId[] | null;
|
|
36
|
+
customOfferConditions?: string[] | null;
|
|
37
|
+
isOfferConditionConfirmed: boolean;
|
|
38
|
+
offerConditionConfirmedAt?: Date | null;
|
|
39
|
+
offerGeneratedAt?: Date | null;
|
|
40
|
+
isOfferGenerated: boolean;
|
|
41
|
+
isOfferReviewed: boolean;
|
|
42
|
+
isOfferReviewConfirmed: boolean;
|
|
43
|
+
isReviewMandateConfirmed: boolean;
|
|
44
|
+
isOfferIssuedConfirmed: boolean;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=application-offer.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-offer.type.d.ts","sourceRoot":"","sources":["../../applications/application-offer.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,iBAAkB,SAAQ,SAAS;IAC1D,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC9B,cAAc,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvC,gBAAgB,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IAEzC,kBAAkB,CAAC,EAAE,KAAK,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC;IAC7C,qBAAqB,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACxC,yBAAyB,EAAE,OAAO,CAAC;IACnC,yBAAyB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAExC,gBAAgB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAE1B,eAAe,EAAE,OAAO,CAAC;IACzB,sBAAsB,EAAE,OAAO,CAAC;IAEhC,wBAAwB,EAAE,OAAO,CAAC;IAElC,sBAAsB,EAAE,OAAO,CAAC;CACjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
import mongoose from 'mongoose';
|
|
30
30
|
declare const ApplicationRiskNarrativeModel: mongoose.Model<{
|
|
31
31
|
applicationId: mongoose.Types.ObjectId;
|
|
32
|
-
|
|
32
|
+
call2StatusLid: mongoose.Types.ObjectId;
|
|
33
33
|
clientReference: string;
|
|
34
34
|
call1RequestedOn: string;
|
|
35
35
|
call2RequestedOn: string;
|
|
@@ -39,7 +39,7 @@ declare const ApplicationRiskNarrativeModel: mongoose.Model<{
|
|
|
39
39
|
statusLid: mongoose.Types.ObjectId;
|
|
40
40
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
41
41
|
applicationId: mongoose.Types.ObjectId;
|
|
42
|
-
|
|
42
|
+
call2StatusLid: mongoose.Types.ObjectId;
|
|
43
43
|
clientReference: string;
|
|
44
44
|
call1RequestedOn: string;
|
|
45
45
|
call2RequestedOn: string;
|
|
@@ -49,7 +49,7 @@ declare const ApplicationRiskNarrativeModel: mongoose.Model<{
|
|
|
49
49
|
statusLid: mongoose.Types.ObjectId;
|
|
50
50
|
}, {}> & {
|
|
51
51
|
applicationId: mongoose.Types.ObjectId;
|
|
52
|
-
|
|
52
|
+
call2StatusLid: mongoose.Types.ObjectId;
|
|
53
53
|
clientReference: string;
|
|
54
54
|
call1RequestedOn: string;
|
|
55
55
|
call2RequestedOn: string;
|
|
@@ -63,7 +63,7 @@ declare const ApplicationRiskNarrativeModel: mongoose.Model<{
|
|
|
63
63
|
__v: number;
|
|
64
64
|
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
65
65
|
applicationId: mongoose.Types.ObjectId;
|
|
66
|
-
|
|
66
|
+
call2StatusLid: mongoose.Types.ObjectId;
|
|
67
67
|
clientReference: string;
|
|
68
68
|
call1RequestedOn: string;
|
|
69
69
|
call2RequestedOn: string;
|
|
@@ -73,7 +73,7 @@ declare const ApplicationRiskNarrativeModel: mongoose.Model<{
|
|
|
73
73
|
statusLid: mongoose.Types.ObjectId;
|
|
74
74
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
75
75
|
applicationId: mongoose.Types.ObjectId;
|
|
76
|
-
|
|
76
|
+
call2StatusLid: mongoose.Types.ObjectId;
|
|
77
77
|
clientReference: string;
|
|
78
78
|
call1RequestedOn: string;
|
|
79
79
|
call2RequestedOn: string;
|
|
@@ -83,7 +83,7 @@ declare const ApplicationRiskNarrativeModel: mongoose.Model<{
|
|
|
83
83
|
statusLid: mongoose.Types.ObjectId;
|
|
84
84
|
}>, {}> & mongoose.FlatRecord<{
|
|
85
85
|
applicationId: mongoose.Types.ObjectId;
|
|
86
|
-
|
|
86
|
+
call2StatusLid: mongoose.Types.ObjectId;
|
|
87
87
|
clientReference: string;
|
|
88
88
|
call1RequestedOn: string;
|
|
89
89
|
call2RequestedOn: string;
|
|
@@ -2,7 +2,7 @@ import mongoose from 'mongoose';
|
|
|
2
2
|
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
3
|
const applicantionRiskNarrativeSchema = new mongoose.Schema({
|
|
4
4
|
applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true },
|
|
5
|
-
|
|
5
|
+
call2StatusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
6
6
|
clientReference: { type: String, default: null },
|
|
7
7
|
call1RequestedOn: { type: String, default: null },
|
|
8
8
|
call2RequestedOn: { type: String, default: null },
|
|
@@ -75,6 +75,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
75
75
|
directDebitId: mongoose.Types.ObjectId;
|
|
76
76
|
mortgageId: mongoose.Types.ObjectId;
|
|
77
77
|
companyId: mongoose.Types.ObjectId;
|
|
78
|
+
offerId: mongoose.Types.ObjectId;
|
|
78
79
|
newAuditRecordsCount: number;
|
|
79
80
|
propertyIds: mongoose.Types.ObjectId[];
|
|
80
81
|
isMandateRequested: boolean;
|
|
@@ -161,6 +162,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
161
162
|
directDebitId: mongoose.Types.ObjectId;
|
|
162
163
|
mortgageId: mongoose.Types.ObjectId;
|
|
163
164
|
companyId: mongoose.Types.ObjectId;
|
|
165
|
+
offerId: mongoose.Types.ObjectId;
|
|
164
166
|
newAuditRecordsCount: number;
|
|
165
167
|
propertyIds: mongoose.Types.ObjectId[];
|
|
166
168
|
isMandateRequested: boolean;
|
|
@@ -247,6 +249,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
247
249
|
directDebitId: mongoose.Types.ObjectId;
|
|
248
250
|
mortgageId: mongoose.Types.ObjectId;
|
|
249
251
|
companyId: mongoose.Types.ObjectId;
|
|
252
|
+
offerId: mongoose.Types.ObjectId;
|
|
250
253
|
newAuditRecordsCount: number;
|
|
251
254
|
propertyIds: mongoose.Types.ObjectId[];
|
|
252
255
|
isMandateRequested: boolean;
|
|
@@ -345,6 +348,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
345
348
|
directDebitId: mongoose.Types.ObjectId;
|
|
346
349
|
mortgageId: mongoose.Types.ObjectId;
|
|
347
350
|
companyId: mongoose.Types.ObjectId;
|
|
351
|
+
offerId: mongoose.Types.ObjectId;
|
|
348
352
|
newAuditRecordsCount: number;
|
|
349
353
|
propertyIds: mongoose.Types.ObjectId[];
|
|
350
354
|
isMandateRequested: boolean;
|
|
@@ -431,6 +435,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
431
435
|
directDebitId: mongoose.Types.ObjectId;
|
|
432
436
|
mortgageId: mongoose.Types.ObjectId;
|
|
433
437
|
companyId: mongoose.Types.ObjectId;
|
|
438
|
+
offerId: mongoose.Types.ObjectId;
|
|
434
439
|
newAuditRecordsCount: number;
|
|
435
440
|
propertyIds: mongoose.Types.ObjectId[];
|
|
436
441
|
isMandateRequested: boolean;
|
|
@@ -517,6 +522,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
517
522
|
directDebitId: mongoose.Types.ObjectId;
|
|
518
523
|
mortgageId: mongoose.Types.ObjectId;
|
|
519
524
|
companyId: mongoose.Types.ObjectId;
|
|
525
|
+
offerId: mongoose.Types.ObjectId;
|
|
520
526
|
newAuditRecordsCount: number;
|
|
521
527
|
propertyIds: mongoose.Types.ObjectId[];
|
|
522
528
|
isMandateRequested: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.model.d.ts","sourceRoot":"","sources":["../../applications/application.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"application.model.d.ts","sourceRoot":"","sources":["../../applications/application.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAsQhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmD,CAAC;AAC1E,eAAe,gBAAgB,CAAC"}
|
|
@@ -59,6 +59,7 @@ const applicationSchema = new mongoose.Schema({
|
|
|
59
59
|
creditProfile: creditProfileSchema,
|
|
60
60
|
mortgageId: { type: mongoose.Schema.Types.ObjectId, ref: "Mortgage", default: null },
|
|
61
61
|
companyId: { type: mongoose.Schema.Types.ObjectId, ref: "ApplicationCompany", default: null },
|
|
62
|
+
offerId: { type: mongoose.Schema.Types.ObjectId, ref: "ApplicationOffer", default: null },
|
|
62
63
|
newAuditRecordsCount: { type: Number, default: 0 }, // Ensure it is a Number
|
|
63
64
|
currentApprivoAuditId: Number,
|
|
64
65
|
propertyIds: [{ type: mongoose.Schema.Types.ObjectId, ref: "Property" }],
|
|
@@ -12,11 +12,14 @@ export { default as ApplicationMortgageType } from './application-mortgage.type'
|
|
|
12
12
|
export { default as ApplicationOnboardingModel } from './application-onboarding.model';
|
|
13
13
|
export { default as ApplicationRationaleModel } from './application-rationale.model';
|
|
14
14
|
export { default as ApplicationRationaleType } from './application-rationale.type';
|
|
15
|
+
export { default as ApplicationOfferModel } from './application-offer.model';
|
|
16
|
+
export { default as ApplicationOfferType } from './application-offer.type';
|
|
15
17
|
export { default as ApplicationValuationModel } from './application-valuation.model';
|
|
16
18
|
export { default as ApplicationValuationType } from './application-valuation.type';
|
|
17
19
|
export { default as BrokerModel } from './broker.model';
|
|
18
20
|
export { default as ProductModel } from './application-product.model';
|
|
19
21
|
export { default as SolicitorModel } from './solicitor.model';
|
|
22
|
+
export { default as SolicitorType } from './solicitor.type';
|
|
20
23
|
export { default as ApplicationRiskNarrativeModel } from './application-risk-narrative.model';
|
|
21
24
|
export { default as ApplicationFieldConfigModel } from './application-fieldconfig.model';
|
|
22
25
|
export { default as MortgageModel } from './application-mortgage.model';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3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M,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,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"}
|
|
@@ -8,6 +8,7 @@ export { default as ApplicationDirectDebitModel } from './application-direct-deb
|
|
|
8
8
|
export { default as ApplicationMortgageModel } from './application-mortgage.model';
|
|
9
9
|
export { default as ApplicationOnboardingModel } from './application-onboarding.model';
|
|
10
10
|
export { default as ApplicationRationaleModel } from './application-rationale.model';
|
|
11
|
+
export { default as ApplicationOfferModel } from './application-offer.model';
|
|
11
12
|
export { default as ApplicationValuationModel } from './application-valuation.model';
|
|
12
13
|
export { default as BrokerModel } from './broker.model';
|
|
13
14
|
export { default as ProductModel } from './application-product.model';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solicitor.model.d.ts","sourceRoot":"","sources":["../../applications/solicitor.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"solicitor.model.d.ts","sourceRoot":"","sources":["../../applications/solicitor.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AA8HhE,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA+C,CAAC;AACpE,eAAe,cAAc,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
+
import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
|
|
2
3
|
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
4
|
import { SortCode } from "../value-objects/sort-code";
|
|
4
5
|
import { AccountNumber } from "../value-objects/account-number";
|
|
@@ -112,6 +113,8 @@ const virtualCountry = solicitorSchema.virtual('addressCountry', {
|
|
|
112
113
|
justOne: true
|
|
113
114
|
});
|
|
114
115
|
virtualCountry.description = 'Populated lookup value for the solicitor\'s address country';
|
|
116
|
+
// Apply audit middleware to the schema
|
|
117
|
+
applyAuditMiddleware(solicitorSchema, "Solicitor");
|
|
115
118
|
// Apply workflow plugin to the schema
|
|
116
119
|
applyWorkflowPlugin(solicitorSchema, 'solicitor');
|
|
117
120
|
const SolicitorModel = mongoose.model("Solicitor", solicitorSchema);
|
|
@@ -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 { Types } from "mongoose";
|
|
30
|
+
import { IBaseType } from "../types/base.types";
|
|
31
|
+
export default interface ISolicitor extends IBaseType {
|
|
32
|
+
applicationId: Types.ObjectId;
|
|
33
|
+
pageValidFlag: boolean;
|
|
34
|
+
accountNumber?: string;
|
|
35
|
+
addressCity?: string;
|
|
36
|
+
addressCountryLid?: Types.ObjectId;
|
|
37
|
+
addressLine1?: string;
|
|
38
|
+
addressLine2?: string;
|
|
39
|
+
addressLine3?: string;
|
|
40
|
+
addressPostCode?: string;
|
|
41
|
+
bankAddressLine1?: string;
|
|
42
|
+
bankAddressLine2?: string;
|
|
43
|
+
bankBranch?: string;
|
|
44
|
+
bankCity?: string;
|
|
45
|
+
contactPostcode?: string;
|
|
46
|
+
email?: string;
|
|
47
|
+
institution?: string;
|
|
48
|
+
nameOfAccountHolder?: string;
|
|
49
|
+
nameOfFirm?: string;
|
|
50
|
+
signatory?: string;
|
|
51
|
+
solicitorActing?: string;
|
|
52
|
+
sortCode?: string;
|
|
53
|
+
telephone?: string;
|
|
54
|
+
addressCountry?: any;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=solicitor.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solicitor.type.d.ts","sourceRoot":"","sources":["../../applications/solicitor.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,UAAW,SAAQ,SAAS;IACnD,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC9B,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,cAAc,CAAC,EAAE,GAAG,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|