@dynamatix/gb-schemas 2.3.331 → 2.3.332

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.
Files changed (31) hide show
  1. package/README.md +308 -308
  2. package/dist/applicants/applicant-income-summary.model.d.ts +294 -0
  3. package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -1
  4. package/dist/applicants/applicant-income-summary.model.js +2 -0
  5. package/dist/applicants/applicant-welcome-call.model.d.ts +0 -6
  6. package/dist/applicants/applicant-welcome-call.model.d.ts.map +1 -1
  7. package/dist/applicants/applicant-welcome-call.model.js +9 -14
  8. package/dist/shared/audit-log.model.d.ts +180 -0
  9. package/dist/shared/audit-log.model.d.ts.map +1 -0
  10. package/dist/shared/audit-log.model.js +43 -0
  11. package/dist/shared/document.model.d.ts +180 -0
  12. package/dist/shared/document.model.d.ts.map +1 -0
  13. package/dist/shared/document.model.js +40 -0
  14. package/dist/shared/queue.model.d.ts +180 -0
  15. package/dist/shared/queue.model.d.ts.map +1 -0
  16. package/dist/shared/queue.model.js +42 -0
  17. package/package.json +87 -87
  18. package/dist/applicants/applicant-income-source.model.d.ts +0 -26
  19. package/dist/applicants/applicant-income-source.model.d.ts.map +0 -1
  20. package/dist/applicants/applicant-income.model.d.ts +0 -160
  21. package/dist/applicants/applicant-income.model.d.ts.map +0 -1
  22. package/dist/applicants/applicant-other-income.model.d.ts +0 -85
  23. package/dist/applicants/applicant-other-income.model.d.ts.map +0 -1
  24. package/dist/applications/application-document.model.d.ts +0 -158
  25. package/dist/applications/application-document.model.d.ts.map +0 -1
  26. package/dist/applications/document.model.d.ts +0 -158
  27. package/dist/applications/document.model.d.ts.map +0 -1
  28. package/dist/applications/productfeatures.model.d.ts +0 -368
  29. package/dist/applications/productfeatures.model.d.ts.map +0 -1
  30. package/dist/shared/document-type-model.d.ts +0 -48
  31. package/dist/shared/document-type-model.d.ts.map +0 -1
@@ -620,6 +620,102 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
620
620
  validateAll?: {} | null | undefined;
621
621
  defaultOptions?: unknown;
622
622
  } | null | undefined;
623
+ totalAnnualGrossIncome?: {
624
+ validators: mongoose.Types.DocumentArray<{
625
+ type?: unknown;
626
+ message?: unknown;
627
+ validator?: unknown;
628
+ reason?: unknown;
629
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
630
+ type?: unknown;
631
+ message?: unknown;
632
+ validator?: unknown;
633
+ reason?: unknown;
634
+ }> & {
635
+ type?: unknown;
636
+ message?: unknown;
637
+ validator?: unknown;
638
+ reason?: unknown;
639
+ }>;
640
+ get?: {} | null | undefined;
641
+ schema?: {
642
+ [x: string]: unknown;
643
+ } | null | undefined;
644
+ set?: {} | null | undefined;
645
+ validate?: {} | null | undefined;
646
+ index?: {} | null | undefined;
647
+ default?: {} | null | undefined;
648
+ text?: {} | null | undefined;
649
+ unique?: {} | null | undefined;
650
+ sparse?: {} | null | undefined;
651
+ cast?: {} | null | undefined;
652
+ required?: {} | null | undefined;
653
+ ref?: {} | null | undefined;
654
+ select?: {} | null | undefined;
655
+ immutable?: {} | null | undefined;
656
+ transform?: {} | null | undefined;
657
+ options?: {
658
+ [x: string]: unknown;
659
+ } | null | undefined;
660
+ OptionsConstructor?: {
661
+ [x: string]: unknown;
662
+ } | null | undefined;
663
+ getEmbeddedSchemaType?: {} | null | undefined;
664
+ instance?: unknown;
665
+ isRequired?: unknown;
666
+ path?: unknown;
667
+ toJSONSchema?: {} | null | undefined;
668
+ validateAll?: {} | null | undefined;
669
+ defaultOptions?: unknown;
670
+ } | null | undefined;
671
+ totalAnnualNetIncome?: {
672
+ validators: mongoose.Types.DocumentArray<{
673
+ type?: unknown;
674
+ message?: unknown;
675
+ validator?: unknown;
676
+ reason?: unknown;
677
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
678
+ type?: unknown;
679
+ message?: unknown;
680
+ validator?: unknown;
681
+ reason?: unknown;
682
+ }> & {
683
+ type?: unknown;
684
+ message?: unknown;
685
+ validator?: unknown;
686
+ reason?: unknown;
687
+ }>;
688
+ get?: {} | null | undefined;
689
+ schema?: {
690
+ [x: string]: unknown;
691
+ } | null | undefined;
692
+ set?: {} | null | undefined;
693
+ validate?: {} | null | undefined;
694
+ index?: {} | null | undefined;
695
+ default?: {} | null | undefined;
696
+ text?: {} | null | undefined;
697
+ unique?: {} | null | undefined;
698
+ sparse?: {} | null | undefined;
699
+ cast?: {} | null | undefined;
700
+ required?: {} | null | undefined;
701
+ ref?: {} | null | undefined;
702
+ select?: {} | null | undefined;
703
+ immutable?: {} | null | undefined;
704
+ transform?: {} | null | undefined;
705
+ options?: {
706
+ [x: string]: unknown;
707
+ } | null | undefined;
708
+ OptionsConstructor?: {
709
+ [x: string]: unknown;
710
+ } | null | undefined;
711
+ getEmbeddedSchemaType?: {} | null | undefined;
712
+ instance?: unknown;
713
+ isRequired?: unknown;
714
+ path?: unknown;
715
+ toJSONSchema?: {} | null | undefined;
716
+ validateAll?: {} | null | undefined;
717
+ defaultOptions?: unknown;
718
+ } | null | undefined;
623
719
  }, {}, {}, {}, mongoose.Document<unknown, {}, {
624
720
  applicantId?: mongoose.Types.ObjectId | null | undefined;
625
721
  totalEmploymentGrossIncome?: {
@@ -1212,6 +1308,102 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
1212
1308
  validateAll?: {} | null | undefined;
1213
1309
  defaultOptions?: unknown;
1214
1310
  } | null | undefined;
1311
+ totalAnnualGrossIncome?: {
1312
+ validators: mongoose.Types.DocumentArray<{
1313
+ type?: unknown;
1314
+ message?: unknown;
1315
+ validator?: unknown;
1316
+ reason?: unknown;
1317
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
1318
+ type?: unknown;
1319
+ message?: unknown;
1320
+ validator?: unknown;
1321
+ reason?: unknown;
1322
+ }> & {
1323
+ type?: unknown;
1324
+ message?: unknown;
1325
+ validator?: unknown;
1326
+ reason?: unknown;
1327
+ }>;
1328
+ get?: {} | null | undefined;
1329
+ schema?: {
1330
+ [x: string]: unknown;
1331
+ } | null | undefined;
1332
+ set?: {} | null | undefined;
1333
+ validate?: {} | null | undefined;
1334
+ index?: {} | null | undefined;
1335
+ default?: {} | null | undefined;
1336
+ text?: {} | null | undefined;
1337
+ unique?: {} | null | undefined;
1338
+ sparse?: {} | null | undefined;
1339
+ cast?: {} | null | undefined;
1340
+ required?: {} | null | undefined;
1341
+ ref?: {} | null | undefined;
1342
+ select?: {} | null | undefined;
1343
+ immutable?: {} | null | undefined;
1344
+ transform?: {} | null | undefined;
1345
+ options?: {
1346
+ [x: string]: unknown;
1347
+ } | null | undefined;
1348
+ OptionsConstructor?: {
1349
+ [x: string]: unknown;
1350
+ } | null | undefined;
1351
+ getEmbeddedSchemaType?: {} | null | undefined;
1352
+ instance?: unknown;
1353
+ isRequired?: unknown;
1354
+ path?: unknown;
1355
+ toJSONSchema?: {} | null | undefined;
1356
+ validateAll?: {} | null | undefined;
1357
+ defaultOptions?: unknown;
1358
+ } | null | undefined;
1359
+ totalAnnualNetIncome?: {
1360
+ validators: mongoose.Types.DocumentArray<{
1361
+ type?: unknown;
1362
+ message?: unknown;
1363
+ validator?: unknown;
1364
+ reason?: unknown;
1365
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
1366
+ type?: unknown;
1367
+ message?: unknown;
1368
+ validator?: unknown;
1369
+ reason?: unknown;
1370
+ }> & {
1371
+ type?: unknown;
1372
+ message?: unknown;
1373
+ validator?: unknown;
1374
+ reason?: unknown;
1375
+ }>;
1376
+ get?: {} | null | undefined;
1377
+ schema?: {
1378
+ [x: string]: unknown;
1379
+ } | null | undefined;
1380
+ set?: {} | null | undefined;
1381
+ validate?: {} | null | undefined;
1382
+ index?: {} | null | undefined;
1383
+ default?: {} | null | undefined;
1384
+ text?: {} | null | undefined;
1385
+ unique?: {} | null | undefined;
1386
+ sparse?: {} | null | undefined;
1387
+ cast?: {} | null | undefined;
1388
+ required?: {} | null | undefined;
1389
+ ref?: {} | null | undefined;
1390
+ select?: {} | null | undefined;
1391
+ immutable?: {} | null | undefined;
1392
+ transform?: {} | null | undefined;
1393
+ options?: {
1394
+ [x: string]: unknown;
1395
+ } | null | undefined;
1396
+ OptionsConstructor?: {
1397
+ [x: string]: unknown;
1398
+ } | null | undefined;
1399
+ getEmbeddedSchemaType?: {} | null | undefined;
1400
+ instance?: unknown;
1401
+ isRequired?: unknown;
1402
+ path?: unknown;
1403
+ toJSONSchema?: {} | null | undefined;
1404
+ validateAll?: {} | null | undefined;
1405
+ defaultOptions?: unknown;
1406
+ } | null | undefined;
1215
1407
  }, {}> & {
1216
1408
  applicantId?: mongoose.Types.ObjectId | null | undefined;
1217
1409
  totalEmploymentGrossIncome?: {
@@ -1804,6 +1996,102 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
1804
1996
  validateAll?: {} | null | undefined;
1805
1997
  defaultOptions?: unknown;
1806
1998
  } | null | undefined;
1999
+ totalAnnualGrossIncome?: {
2000
+ validators: mongoose.Types.DocumentArray<{
2001
+ type?: unknown;
2002
+ message?: unknown;
2003
+ validator?: unknown;
2004
+ reason?: unknown;
2005
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
2006
+ type?: unknown;
2007
+ message?: unknown;
2008
+ validator?: unknown;
2009
+ reason?: unknown;
2010
+ }> & {
2011
+ type?: unknown;
2012
+ message?: unknown;
2013
+ validator?: unknown;
2014
+ reason?: unknown;
2015
+ }>;
2016
+ get?: {} | null | undefined;
2017
+ schema?: {
2018
+ [x: string]: unknown;
2019
+ } | null | undefined;
2020
+ set?: {} | null | undefined;
2021
+ validate?: {} | null | undefined;
2022
+ index?: {} | null | undefined;
2023
+ default?: {} | null | undefined;
2024
+ text?: {} | null | undefined;
2025
+ unique?: {} | null | undefined;
2026
+ sparse?: {} | null | undefined;
2027
+ cast?: {} | null | undefined;
2028
+ required?: {} | null | undefined;
2029
+ ref?: {} | null | undefined;
2030
+ select?: {} | null | undefined;
2031
+ immutable?: {} | null | undefined;
2032
+ transform?: {} | null | undefined;
2033
+ options?: {
2034
+ [x: string]: unknown;
2035
+ } | null | undefined;
2036
+ OptionsConstructor?: {
2037
+ [x: string]: unknown;
2038
+ } | null | undefined;
2039
+ getEmbeddedSchemaType?: {} | null | undefined;
2040
+ instance?: unknown;
2041
+ isRequired?: unknown;
2042
+ path?: unknown;
2043
+ toJSONSchema?: {} | null | undefined;
2044
+ validateAll?: {} | null | undefined;
2045
+ defaultOptions?: unknown;
2046
+ } | null | undefined;
2047
+ totalAnnualNetIncome?: {
2048
+ validators: mongoose.Types.DocumentArray<{
2049
+ type?: unknown;
2050
+ message?: unknown;
2051
+ validator?: unknown;
2052
+ reason?: unknown;
2053
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
2054
+ type?: unknown;
2055
+ message?: unknown;
2056
+ validator?: unknown;
2057
+ reason?: unknown;
2058
+ }> & {
2059
+ type?: unknown;
2060
+ message?: unknown;
2061
+ validator?: unknown;
2062
+ reason?: unknown;
2063
+ }>;
2064
+ get?: {} | null | undefined;
2065
+ schema?: {
2066
+ [x: string]: unknown;
2067
+ } | null | undefined;
2068
+ set?: {} | null | undefined;
2069
+ validate?: {} | null | undefined;
2070
+ index?: {} | null | undefined;
2071
+ default?: {} | null | undefined;
2072
+ text?: {} | null | undefined;
2073
+ unique?: {} | null | undefined;
2074
+ sparse?: {} | null | undefined;
2075
+ cast?: {} | null | undefined;
2076
+ required?: {} | null | undefined;
2077
+ ref?: {} | null | undefined;
2078
+ select?: {} | null | undefined;
2079
+ immutable?: {} | null | undefined;
2080
+ transform?: {} | null | undefined;
2081
+ options?: {
2082
+ [x: string]: unknown;
2083
+ } | null | undefined;
2084
+ OptionsConstructor?: {
2085
+ [x: string]: unknown;
2086
+ } | null | undefined;
2087
+ getEmbeddedSchemaType?: {} | null | undefined;
2088
+ instance?: unknown;
2089
+ isRequired?: unknown;
2090
+ path?: unknown;
2091
+ toJSONSchema?: {} | null | undefined;
2092
+ validateAll?: {} | null | undefined;
2093
+ defaultOptions?: unknown;
2094
+ } | null | undefined;
1807
2095
  } & {
1808
2096
  _id: mongoose.Types.ObjectId;
1809
2097
  } & {
@@ -1843,6 +2131,8 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
1843
2131
  isSoleTraderIncomeConfirmed: boolean;
1844
2132
  soleTraderGrossIncome: Pound;
1845
2133
  soleTraderNetIncome: Pound;
2134
+ totalAnnualGrossIncome: Pound;
2135
+ totalAnnualNetIncome: Pound;
1846
2136
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
1847
2137
  applicantId: mongoose.Types.ObjectId;
1848
2138
  totalEmploymentGrossIncome: Pound;
@@ -1871,6 +2161,8 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
1871
2161
  isSoleTraderIncomeConfirmed: boolean;
1872
2162
  soleTraderGrossIncome: Pound;
1873
2163
  soleTraderNetIncome: Pound;
2164
+ totalAnnualGrossIncome: Pound;
2165
+ totalAnnualNetIncome: Pound;
1874
2166
  }>, {}> & mongoose.FlatRecord<{
1875
2167
  applicantId: mongoose.Types.ObjectId;
1876
2168
  totalEmploymentGrossIncome: Pound;
@@ -1899,6 +2191,8 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
1899
2191
  isSoleTraderIncomeConfirmed: boolean;
1900
2192
  soleTraderGrossIncome: Pound;
1901
2193
  soleTraderNetIncome: Pound;
2194
+ totalAnnualGrossIncome: Pound;
2195
+ totalAnnualNetIncome: Pound;
1902
2196
  }> & {
1903
2197
  _id: mongoose.Types.ObjectId;
1904
2198
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"applicant-income-summary.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-income-summary.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AAgD5D,QAAA,MAAM,2BAA2B;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA2E,CAAC;AAE7G,eAAe,2BAA2B,CAAC"}
@@ -30,6 +30,8 @@ const applicantIncomeSummarySchema = new mongoose.Schema({
30
30
  isSoleTraderIncomeConfirmed: { type: Boolean, default: false },
31
31
  soleTraderGrossIncome: { type: Pound, get: formatPound, default: 0.00 },
32
32
  soleTraderNetIncome: { type: Pound, get: formatPound, default: 0.00 },
33
+ totalAnnualGrossIncome: { type: Pound, get: formatPound, default: 0.00 },
34
+ totalAnnualNetIncome: { type: Pound, get: formatPound, default: 0.00 },
33
35
  }, {
34
36
  toJSON: { getters: true },
35
37
  toObject: { getters: true }
@@ -38,7 +38,6 @@ declare const WelcomeCallModel: mongoose.Model<{
38
38
  firstCallAttemptDate: string;
39
39
  callCompletedDate: string;
40
40
  failedCallReason: string;
41
- idvStatus: string;
42
41
  customerDOBStatusLid: mongoose.Types.ObjectId;
43
42
  residentialAddressStatusLid: mongoose.Types.ObjectId;
44
43
  contactNumberStatusLid: mongoose.Types.ObjectId;
@@ -92,7 +91,6 @@ declare const WelcomeCallModel: mongoose.Model<{
92
91
  firstCallAttemptDate: string;
93
92
  callCompletedDate: string;
94
93
  failedCallReason: string;
95
- idvStatus: string;
96
94
  customerDOBStatusLid: mongoose.Types.ObjectId;
97
95
  residentialAddressStatusLid: mongoose.Types.ObjectId;
98
96
  contactNumberStatusLid: mongoose.Types.ObjectId;
@@ -146,7 +144,6 @@ declare const WelcomeCallModel: mongoose.Model<{
146
144
  firstCallAttemptDate: string;
147
145
  callCompletedDate: string;
148
146
  failedCallReason: string;
149
- idvStatus: string;
150
147
  customerDOBStatusLid: mongoose.Types.ObjectId;
151
148
  residentialAddressStatusLid: mongoose.Types.ObjectId;
152
149
  contactNumberStatusLid: mongoose.Types.ObjectId;
@@ -212,7 +209,6 @@ declare const WelcomeCallModel: mongoose.Model<{
212
209
  firstCallAttemptDate: string;
213
210
  callCompletedDate: string;
214
211
  failedCallReason: string;
215
- idvStatus: string;
216
212
  customerDOBStatusLid: mongoose.Types.ObjectId;
217
213
  residentialAddressStatusLid: mongoose.Types.ObjectId;
218
214
  contactNumberStatusLid: mongoose.Types.ObjectId;
@@ -266,7 +262,6 @@ declare const WelcomeCallModel: mongoose.Model<{
266
262
  firstCallAttemptDate: string;
267
263
  callCompletedDate: string;
268
264
  failedCallReason: string;
269
- idvStatus: string;
270
265
  customerDOBStatusLid: mongoose.Types.ObjectId;
271
266
  residentialAddressStatusLid: mongoose.Types.ObjectId;
272
267
  contactNumberStatusLid: mongoose.Types.ObjectId;
@@ -320,7 +315,6 @@ declare const WelcomeCallModel: mongoose.Model<{
320
315
  firstCallAttemptDate: string;
321
316
  callCompletedDate: string;
322
317
  failedCallReason: string;
323
- idvStatus: string;
324
318
  customerDOBStatusLid: mongoose.Types.ObjectId;
325
319
  residentialAddressStatusLid: mongoose.Types.ObjectId;
326
320
  contactNumberStatusLid: mongoose.Types.ObjectId;
@@ -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;AAwuBhC,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;AAmuBhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA4D,CAAC;AAEnF,eAAe,gBAAgB,CAAC"}
@@ -30,11 +30,6 @@ const welcomeCallSchema = new mongoose.Schema({
30
30
  description: "Failed Call Reason",
31
31
  default: null,
32
32
  },
33
- idvStatus: {
34
- type: String,
35
- description: "IDV Status",
36
- default: null
37
- },
38
33
  customerFullNameStatusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
39
34
  customerDOBStatusLid: {
40
35
  type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null
@@ -393,10 +388,10 @@ welcomeCallSchema.virtual('otherApplicantsNameAndDOB').get(function () {
393
388
  const isLast = index === otherApplicants.length - 1;
394
389
  const comma = isLast ? '' : ',';
395
390
  // 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>
391
+ return `
392
+ <div class="applicant-line">
393
+ <span class="readonly-data">${fullFirstName}, ${lastName}, ${formattedDOB}${comma}</span>
394
+ </div>
400
395
  `;
401
396
  }).filter((line) => line && line.trim() !== '');
402
397
  // Join all applicants as HTML (no \n needed)
@@ -676,14 +671,14 @@ welcomeCallSchema.virtual('financeSummaryHtml').get(async function () {
676
671
  application.lendingTypeLid.name === 'BTL';
677
672
  const monthlyRepaymentClass = isBTL ? 'mb-2' : '';
678
673
  // 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>
674
+ let summaryContent = `
675
+ <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>
676
+ <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
677
  <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
678
  // Only show rental income and occupancy for BTL applications
684
679
  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>
680
+ summaryContent += `
681
+ <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
682
  <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
683
  }
689
684
  return summaryContent;
@@ -0,0 +1,180 @@
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 mongoose from "mongoose";
30
+ declare const AuditLogModel: mongoose.Model<{
31
+ name: string;
32
+ action: "read" | "create" | "update" | "delete";
33
+ timestamp: NativeDate;
34
+ recordId: mongoose.Types.ObjectId;
35
+ isSystemGenerated: boolean;
36
+ metadata?: any;
37
+ source?: string | null | undefined;
38
+ oldValue?: any;
39
+ newValue?: any;
40
+ fieldName?: string | null | undefined;
41
+ userId?: mongoose.Types.ObjectId | null | undefined;
42
+ ipAddress?: string | null | undefined;
43
+ userAgent?: string | null | undefined;
44
+ sessionId?: string | null | undefined;
45
+ externalData?: {
46
+ apprivoAuditId?: string | null | undefined;
47
+ syncStatus?: "pending" | "synced" | "failed" | null | undefined;
48
+ syncedAt?: NativeDate | null | undefined;
49
+ externalSystemId?: string | null | undefined;
50
+ } | null | undefined;
51
+ severity?: "low" | "medium" | "high" | "critical" | null | undefined;
52
+ }, {}, {}, {}, mongoose.Document<unknown, {}, {
53
+ name: string;
54
+ action: "read" | "create" | "update" | "delete";
55
+ timestamp: NativeDate;
56
+ recordId: mongoose.Types.ObjectId;
57
+ isSystemGenerated: boolean;
58
+ metadata?: any;
59
+ source?: string | null | undefined;
60
+ oldValue?: any;
61
+ newValue?: any;
62
+ fieldName?: string | null | undefined;
63
+ userId?: mongoose.Types.ObjectId | null | undefined;
64
+ ipAddress?: string | null | undefined;
65
+ userAgent?: string | null | undefined;
66
+ sessionId?: string | null | undefined;
67
+ externalData?: {
68
+ apprivoAuditId?: string | null | undefined;
69
+ syncStatus?: "pending" | "synced" | "failed" | null | undefined;
70
+ syncedAt?: NativeDate | null | undefined;
71
+ externalSystemId?: string | null | undefined;
72
+ } | null | undefined;
73
+ severity?: "low" | "medium" | "high" | "critical" | null | undefined;
74
+ }, {}> & {
75
+ name: string;
76
+ action: "read" | "create" | "update" | "delete";
77
+ timestamp: NativeDate;
78
+ recordId: mongoose.Types.ObjectId;
79
+ isSystemGenerated: boolean;
80
+ metadata?: any;
81
+ source?: string | null | undefined;
82
+ oldValue?: any;
83
+ newValue?: any;
84
+ fieldName?: string | null | undefined;
85
+ userId?: mongoose.Types.ObjectId | null | undefined;
86
+ ipAddress?: string | null | undefined;
87
+ userAgent?: string | null | undefined;
88
+ sessionId?: string | null | undefined;
89
+ externalData?: {
90
+ apprivoAuditId?: string | null | undefined;
91
+ syncStatus?: "pending" | "synced" | "failed" | null | undefined;
92
+ syncedAt?: NativeDate | null | undefined;
93
+ externalSystemId?: string | null | undefined;
94
+ } | null | undefined;
95
+ severity?: "low" | "medium" | "high" | "critical" | null | undefined;
96
+ } & {
97
+ _id: mongoose.Types.ObjectId;
98
+ } & {
99
+ __v: number;
100
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
101
+ timestamps: false;
102
+ toJSON: {
103
+ virtuals: true;
104
+ };
105
+ toObject: {
106
+ virtuals: true;
107
+ };
108
+ }, {
109
+ name: string;
110
+ action: "read" | "create" | "update" | "delete";
111
+ timestamp: NativeDate;
112
+ recordId: mongoose.Types.ObjectId;
113
+ isSystemGenerated: boolean;
114
+ metadata?: any;
115
+ source?: string | null | undefined;
116
+ oldValue?: any;
117
+ newValue?: any;
118
+ fieldName?: string | null | undefined;
119
+ userId?: mongoose.Types.ObjectId | null | undefined;
120
+ ipAddress?: string | null | undefined;
121
+ userAgent?: string | null | undefined;
122
+ sessionId?: string | null | undefined;
123
+ externalData?: {
124
+ apprivoAuditId?: string | null | undefined;
125
+ syncStatus?: "pending" | "synced" | "failed" | null | undefined;
126
+ syncedAt?: NativeDate | null | undefined;
127
+ externalSystemId?: string | null | undefined;
128
+ } | null | undefined;
129
+ severity?: "low" | "medium" | "high" | "critical" | null | undefined;
130
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
131
+ name: string;
132
+ action: "read" | "create" | "update" | "delete";
133
+ timestamp: NativeDate;
134
+ recordId: mongoose.Types.ObjectId;
135
+ isSystemGenerated: boolean;
136
+ metadata?: any;
137
+ source?: string | null | undefined;
138
+ oldValue?: any;
139
+ newValue?: any;
140
+ fieldName?: string | null | undefined;
141
+ userId?: mongoose.Types.ObjectId | null | undefined;
142
+ ipAddress?: string | null | undefined;
143
+ userAgent?: string | null | undefined;
144
+ sessionId?: string | null | undefined;
145
+ externalData?: {
146
+ apprivoAuditId?: string | null | undefined;
147
+ syncStatus?: "pending" | "synced" | "failed" | null | undefined;
148
+ syncedAt?: NativeDate | null | undefined;
149
+ externalSystemId?: string | null | undefined;
150
+ } | null | undefined;
151
+ severity?: "low" | "medium" | "high" | "critical" | null | undefined;
152
+ }>, {}> & mongoose.FlatRecord<{
153
+ name: string;
154
+ action: "read" | "create" | "update" | "delete";
155
+ timestamp: NativeDate;
156
+ recordId: mongoose.Types.ObjectId;
157
+ isSystemGenerated: boolean;
158
+ metadata?: any;
159
+ source?: string | null | undefined;
160
+ oldValue?: any;
161
+ newValue?: any;
162
+ fieldName?: string | null | undefined;
163
+ userId?: mongoose.Types.ObjectId | null | undefined;
164
+ ipAddress?: string | null | undefined;
165
+ userAgent?: string | null | undefined;
166
+ sessionId?: string | null | undefined;
167
+ externalData?: {
168
+ apprivoAuditId?: string | null | undefined;
169
+ syncStatus?: "pending" | "synced" | "failed" | null | undefined;
170
+ syncedAt?: NativeDate | null | undefined;
171
+ externalSystemId?: string | null | undefined;
172
+ } | null | undefined;
173
+ severity?: "low" | "medium" | "high" | "critical" | null | undefined;
174
+ }> & {
175
+ _id: mongoose.Types.ObjectId;
176
+ } & {
177
+ __v: number;
178
+ }>>;
179
+ export default AuditLogModel;
180
+ //# sourceMappingURL=audit-log.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit-log.model.d.ts","sourceRoot":"","sources":["../../shared/audit-log.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA6ChC,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AACjE,eAAe,aAAa,CAAC"}