@dynamatix/gb-schemas 1.2.4 → 1.2.6
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-direct-debit.model.d.ts +15 -23
- package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -1
- package/dist/applicants/applicant-direct-debit.model.js +1 -3
- package/dist/applicants/applicant.model.d.ts +36 -36
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +4 -1
- package/dist/applications/application-direct-debit.model.d.ts +520 -65
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.js +92 -16
- 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 +3 -2
- package/dist/applications/index.js +0 -1
- package/dist/applications/solicitor.model.d.ts +46 -49
- package/dist/applications/solicitor.model.d.ts.map +1 -1
- package/dist/applications/solicitor.model.js +105 -26
- package/dist/properties/index.d.ts +1 -0
- package/dist/properties/index.d.ts.map +1 -1
- package/dist/properties/index.js +1 -0
- package/dist/properties/property-potfolio.model.d.ts +1113 -0
- package/dist/properties/property-potfolio.model.d.ts.map +1 -0
- package/dist/properties/property-potfolio.model.js +116 -0
- package/dist/properties/property.model.d.ts +6 -0
- package/dist/properties/property.model.d.ts.map +1 -1
- package/dist/properties/property.model.js +41 -31
- package/dist/shared/index.js +2 -1
- package/dist/users/user.model.d.ts +6 -6
- package/dist/value-objects/pound.d.ts +15 -0
- package/dist/value-objects/pound.d.ts.map +1 -0
- package/dist/value-objects/pound.js +40 -0
- package/package.json +1 -1
|
@@ -1,65 +1,57 @@
|
|
|
1
1
|
import mongoose from 'mongoose';
|
|
2
2
|
declare const applicantDirectDebitSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
3
3
|
timestamps: true;
|
|
4
|
-
toJSON: {
|
|
5
|
-
virtuals: true;
|
|
6
|
-
getters: true;
|
|
7
|
-
};
|
|
8
|
-
toObject: {
|
|
9
|
-
virtuals: true;
|
|
10
|
-
getters: true;
|
|
11
|
-
};
|
|
12
4
|
}, {
|
|
13
5
|
createdAt: NativeDate;
|
|
14
6
|
updatedAt: NativeDate;
|
|
15
7
|
} & {
|
|
8
|
+
isConfirmDeclaration: string;
|
|
16
9
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
17
10
|
addressLine1?: string | null | undefined;
|
|
18
11
|
addressLine2?: string | null | undefined;
|
|
19
|
-
accountNumber?:
|
|
20
|
-
applicants?: string | null | undefined;
|
|
12
|
+
accountNumber?: string | null | undefined;
|
|
21
13
|
branch?: string | null | undefined;
|
|
22
14
|
city?: string | null | undefined;
|
|
23
15
|
contactPostcode?: string | null | undefined;
|
|
24
16
|
institution?: string | null | undefined;
|
|
25
|
-
isConfirmDeclaration?: boolean | null | undefined;
|
|
26
17
|
nameOfAccountHolder?: string | null | undefined;
|
|
27
|
-
sortCode?:
|
|
28
|
-
|
|
18
|
+
sortCode?: string | null | undefined;
|
|
19
|
+
selectedPaymentDay?: string | null | undefined;
|
|
20
|
+
Applicants?: string | null | undefined;
|
|
29
21
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
30
22
|
createdAt: NativeDate;
|
|
31
23
|
updatedAt: NativeDate;
|
|
32
24
|
} & {
|
|
25
|
+
isConfirmDeclaration: string;
|
|
33
26
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
34
27
|
addressLine1?: string | null | undefined;
|
|
35
28
|
addressLine2?: string | null | undefined;
|
|
36
|
-
accountNumber?:
|
|
37
|
-
applicants?: string | null | undefined;
|
|
29
|
+
accountNumber?: string | null | undefined;
|
|
38
30
|
branch?: string | null | undefined;
|
|
39
31
|
city?: string | null | undefined;
|
|
40
32
|
contactPostcode?: string | null | undefined;
|
|
41
33
|
institution?: string | null | undefined;
|
|
42
|
-
isConfirmDeclaration?: boolean | null | undefined;
|
|
43
34
|
nameOfAccountHolder?: string | null | undefined;
|
|
44
|
-
sortCode?:
|
|
45
|
-
|
|
35
|
+
sortCode?: string | null | undefined;
|
|
36
|
+
selectedPaymentDay?: string | null | undefined;
|
|
37
|
+
Applicants?: string | null | undefined;
|
|
46
38
|
}>> & mongoose.FlatRecord<{
|
|
47
39
|
createdAt: NativeDate;
|
|
48
40
|
updatedAt: NativeDate;
|
|
49
41
|
} & {
|
|
42
|
+
isConfirmDeclaration: string;
|
|
50
43
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
51
44
|
addressLine1?: string | null | undefined;
|
|
52
45
|
addressLine2?: string | null | undefined;
|
|
53
|
-
accountNumber?:
|
|
54
|
-
applicants?: string | null | undefined;
|
|
46
|
+
accountNumber?: string | null | undefined;
|
|
55
47
|
branch?: string | null | undefined;
|
|
56
48
|
city?: string | null | undefined;
|
|
57
49
|
contactPostcode?: string | null | undefined;
|
|
58
50
|
institution?: string | null | undefined;
|
|
59
|
-
isConfirmDeclaration?: boolean | null | undefined;
|
|
60
51
|
nameOfAccountHolder?: string | null | undefined;
|
|
61
|
-
sortCode?:
|
|
62
|
-
|
|
52
|
+
sortCode?: string | null | undefined;
|
|
53
|
+
selectedPaymentDay?: string | null | undefined;
|
|
54
|
+
Applicants?: string | null | undefined;
|
|
63
55
|
}> & {
|
|
64
56
|
_id: mongoose.Types.ObjectId;
|
|
65
57
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-direct-debit.model.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"applicant-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-direct-debit.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcR,CAAC;AAEzB,eAAe,0BAA0B,CAAC"}
|
|
@@ -14,6 +14,4 @@ const applicantDirectDebitSchema = new mongoose.Schema({
|
|
|
14
14
|
selectedPaymentDay: { type: String },
|
|
15
15
|
sortCode: { type: String }
|
|
16
16
|
}, { timestamps: true });
|
|
17
|
-
|
|
18
|
-
export default DirectDebitModel;
|
|
19
|
-
export { applicantDirectDebitSchema };
|
|
17
|
+
export default applicantDirectDebitSchema;
|
|
@@ -9,12 +9,12 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
9
9
|
addressLine3: string;
|
|
10
10
|
addressPostCode: string;
|
|
11
11
|
taxJurisdiction: string;
|
|
12
|
+
applicantId: string;
|
|
12
13
|
isUkResident: string;
|
|
13
14
|
email: string;
|
|
14
15
|
firstName: string;
|
|
15
16
|
lastName: string;
|
|
16
17
|
addressCountryLid: mongoose.Types.ObjectId;
|
|
17
|
-
applicantId: string;
|
|
18
18
|
addressMovedDate: string;
|
|
19
19
|
correspondenceAddressCity: string;
|
|
20
20
|
correspondenceAddressCountry: string;
|
|
@@ -218,19 +218,19 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
218
218
|
createdAt: NativeDate;
|
|
219
219
|
updatedAt: NativeDate;
|
|
220
220
|
} & {
|
|
221
|
+
isConfirmDeclaration: string;
|
|
221
222
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
222
223
|
addressLine1?: string | null | undefined;
|
|
223
224
|
addressLine2?: string | null | undefined;
|
|
224
|
-
accountNumber?:
|
|
225
|
-
applicants?: string | null | undefined;
|
|
225
|
+
accountNumber?: string | null | undefined;
|
|
226
226
|
branch?: string | null | undefined;
|
|
227
227
|
city?: string | null | undefined;
|
|
228
228
|
contactPostcode?: string | null | undefined;
|
|
229
229
|
institution?: string | null | undefined;
|
|
230
|
-
isConfirmDeclaration?: boolean | null | undefined;
|
|
231
230
|
nameOfAccountHolder?: string | null | undefined;
|
|
232
|
-
sortCode?:
|
|
233
|
-
|
|
231
|
+
sortCode?: string | null | undefined;
|
|
232
|
+
selectedPaymentDay?: string | null | undefined;
|
|
233
|
+
Applicants?: string | null | undefined;
|
|
234
234
|
}) | null | undefined;
|
|
235
235
|
income?: {
|
|
236
236
|
businessType: string;
|
|
@@ -292,12 +292,12 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
292
292
|
addressLine3: string;
|
|
293
293
|
addressPostCode: string;
|
|
294
294
|
taxJurisdiction: string;
|
|
295
|
+
applicantId: string;
|
|
295
296
|
isUkResident: string;
|
|
296
297
|
email: string;
|
|
297
298
|
firstName: string;
|
|
298
299
|
lastName: string;
|
|
299
300
|
addressCountryLid: mongoose.Types.ObjectId;
|
|
300
|
-
applicantId: string;
|
|
301
301
|
addressMovedDate: string;
|
|
302
302
|
correspondenceAddressCity: string;
|
|
303
303
|
correspondenceAddressCountry: string;
|
|
@@ -501,19 +501,19 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
501
501
|
createdAt: NativeDate;
|
|
502
502
|
updatedAt: NativeDate;
|
|
503
503
|
} & {
|
|
504
|
+
isConfirmDeclaration: string;
|
|
504
505
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
505
506
|
addressLine1?: string | null | undefined;
|
|
506
507
|
addressLine2?: string | null | undefined;
|
|
507
|
-
accountNumber?:
|
|
508
|
-
applicants?: string | null | undefined;
|
|
508
|
+
accountNumber?: string | null | undefined;
|
|
509
509
|
branch?: string | null | undefined;
|
|
510
510
|
city?: string | null | undefined;
|
|
511
511
|
contactPostcode?: string | null | undefined;
|
|
512
512
|
institution?: string | null | undefined;
|
|
513
|
-
isConfirmDeclaration?: boolean | null | undefined;
|
|
514
513
|
nameOfAccountHolder?: string | null | undefined;
|
|
515
|
-
sortCode?:
|
|
516
|
-
|
|
514
|
+
sortCode?: string | null | undefined;
|
|
515
|
+
selectedPaymentDay?: string | null | undefined;
|
|
516
|
+
Applicants?: string | null | undefined;
|
|
517
517
|
}) | null | undefined;
|
|
518
518
|
income?: {
|
|
519
519
|
businessType: string;
|
|
@@ -575,12 +575,12 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
575
575
|
addressLine3: string;
|
|
576
576
|
addressPostCode: string;
|
|
577
577
|
taxJurisdiction: string;
|
|
578
|
+
applicantId: string;
|
|
578
579
|
isUkResident: string;
|
|
579
580
|
email: string;
|
|
580
581
|
firstName: string;
|
|
581
582
|
lastName: string;
|
|
582
583
|
addressCountryLid: mongoose.Types.ObjectId;
|
|
583
|
-
applicantId: string;
|
|
584
584
|
addressMovedDate: string;
|
|
585
585
|
correspondenceAddressCity: string;
|
|
586
586
|
correspondenceAddressCountry: string;
|
|
@@ -784,19 +784,19 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
784
784
|
createdAt: NativeDate;
|
|
785
785
|
updatedAt: NativeDate;
|
|
786
786
|
} & {
|
|
787
|
+
isConfirmDeclaration: string;
|
|
787
788
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
788
789
|
addressLine1?: string | null | undefined;
|
|
789
790
|
addressLine2?: string | null | undefined;
|
|
790
|
-
accountNumber?:
|
|
791
|
-
applicants?: string | null | undefined;
|
|
791
|
+
accountNumber?: string | null | undefined;
|
|
792
792
|
branch?: string | null | undefined;
|
|
793
793
|
city?: string | null | undefined;
|
|
794
794
|
contactPostcode?: string | null | undefined;
|
|
795
795
|
institution?: string | null | undefined;
|
|
796
|
-
isConfirmDeclaration?: boolean | null | undefined;
|
|
797
796
|
nameOfAccountHolder?: string | null | undefined;
|
|
798
|
-
sortCode?:
|
|
799
|
-
|
|
797
|
+
sortCode?: string | null | undefined;
|
|
798
|
+
selectedPaymentDay?: string | null | undefined;
|
|
799
|
+
Applicants?: string | null | undefined;
|
|
800
800
|
}) | null | undefined;
|
|
801
801
|
income?: {
|
|
802
802
|
businessType: string;
|
|
@@ -870,12 +870,12 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
870
870
|
addressLine3: string;
|
|
871
871
|
addressPostCode: string;
|
|
872
872
|
taxJurisdiction: string;
|
|
873
|
+
applicantId: string;
|
|
873
874
|
isUkResident: string;
|
|
874
875
|
email: string;
|
|
875
876
|
firstName: string;
|
|
876
877
|
lastName: string;
|
|
877
878
|
addressCountryLid: mongoose.Types.ObjectId;
|
|
878
|
-
applicantId: string;
|
|
879
879
|
addressMovedDate: string;
|
|
880
880
|
correspondenceAddressCity: string;
|
|
881
881
|
correspondenceAddressCountry: string;
|
|
@@ -1079,19 +1079,19 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
1079
1079
|
createdAt: NativeDate;
|
|
1080
1080
|
updatedAt: NativeDate;
|
|
1081
1081
|
} & {
|
|
1082
|
+
isConfirmDeclaration: string;
|
|
1082
1083
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
1083
1084
|
addressLine1?: string | null | undefined;
|
|
1084
1085
|
addressLine2?: string | null | undefined;
|
|
1085
|
-
accountNumber?:
|
|
1086
|
-
applicants?: string | null | undefined;
|
|
1086
|
+
accountNumber?: string | null | undefined;
|
|
1087
1087
|
branch?: string | null | undefined;
|
|
1088
1088
|
city?: string | null | undefined;
|
|
1089
1089
|
contactPostcode?: string | null | undefined;
|
|
1090
1090
|
institution?: string | null | undefined;
|
|
1091
|
-
isConfirmDeclaration?: boolean | null | undefined;
|
|
1092
1091
|
nameOfAccountHolder?: string | null | undefined;
|
|
1093
|
-
sortCode?:
|
|
1094
|
-
|
|
1092
|
+
sortCode?: string | null | undefined;
|
|
1093
|
+
selectedPaymentDay?: string | null | undefined;
|
|
1094
|
+
Applicants?: string | null | undefined;
|
|
1095
1095
|
}) | null | undefined;
|
|
1096
1096
|
income?: {
|
|
1097
1097
|
businessType: string;
|
|
@@ -1153,12 +1153,12 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
1153
1153
|
addressLine3: string;
|
|
1154
1154
|
addressPostCode: string;
|
|
1155
1155
|
taxJurisdiction: string;
|
|
1156
|
+
applicantId: string;
|
|
1156
1157
|
isUkResident: string;
|
|
1157
1158
|
email: string;
|
|
1158
1159
|
firstName: string;
|
|
1159
1160
|
lastName: string;
|
|
1160
1161
|
addressCountryLid: mongoose.Types.ObjectId;
|
|
1161
|
-
applicantId: string;
|
|
1162
1162
|
addressMovedDate: string;
|
|
1163
1163
|
correspondenceAddressCity: string;
|
|
1164
1164
|
correspondenceAddressCountry: string;
|
|
@@ -1362,19 +1362,19 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
1362
1362
|
createdAt: NativeDate;
|
|
1363
1363
|
updatedAt: NativeDate;
|
|
1364
1364
|
} & {
|
|
1365
|
+
isConfirmDeclaration: string;
|
|
1365
1366
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
1366
1367
|
addressLine1?: string | null | undefined;
|
|
1367
1368
|
addressLine2?: string | null | undefined;
|
|
1368
|
-
accountNumber?:
|
|
1369
|
-
applicants?: string | null | undefined;
|
|
1369
|
+
accountNumber?: string | null | undefined;
|
|
1370
1370
|
branch?: string | null | undefined;
|
|
1371
1371
|
city?: string | null | undefined;
|
|
1372
1372
|
contactPostcode?: string | null | undefined;
|
|
1373
1373
|
institution?: string | null | undefined;
|
|
1374
|
-
isConfirmDeclaration?: boolean | null | undefined;
|
|
1375
1374
|
nameOfAccountHolder?: string | null | undefined;
|
|
1376
|
-
sortCode?:
|
|
1377
|
-
|
|
1375
|
+
sortCode?: string | null | undefined;
|
|
1376
|
+
selectedPaymentDay?: string | null | undefined;
|
|
1377
|
+
Applicants?: string | null | undefined;
|
|
1378
1378
|
}) | null | undefined;
|
|
1379
1379
|
income?: {
|
|
1380
1380
|
businessType: string;
|
|
@@ -1436,12 +1436,12 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
1436
1436
|
addressLine3: string;
|
|
1437
1437
|
addressPostCode: string;
|
|
1438
1438
|
taxJurisdiction: string;
|
|
1439
|
+
applicantId: string;
|
|
1439
1440
|
isUkResident: string;
|
|
1440
1441
|
email: string;
|
|
1441
1442
|
firstName: string;
|
|
1442
1443
|
lastName: string;
|
|
1443
1444
|
addressCountryLid: mongoose.Types.ObjectId;
|
|
1444
|
-
applicantId: string;
|
|
1445
1445
|
addressMovedDate: string;
|
|
1446
1446
|
correspondenceAddressCity: string;
|
|
1447
1447
|
correspondenceAddressCountry: string;
|
|
@@ -1645,19 +1645,19 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
1645
1645
|
createdAt: NativeDate;
|
|
1646
1646
|
updatedAt: NativeDate;
|
|
1647
1647
|
} & {
|
|
1648
|
+
isConfirmDeclaration: string;
|
|
1648
1649
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
1649
1650
|
addressLine1?: string | null | undefined;
|
|
1650
1651
|
addressLine2?: string | null | undefined;
|
|
1651
|
-
accountNumber?:
|
|
1652
|
-
applicants?: string | null | undefined;
|
|
1652
|
+
accountNumber?: string | null | undefined;
|
|
1653
1653
|
branch?: string | null | undefined;
|
|
1654
1654
|
city?: string | null | undefined;
|
|
1655
1655
|
contactPostcode?: string | null | undefined;
|
|
1656
1656
|
institution?: string | null | undefined;
|
|
1657
|
-
isConfirmDeclaration?: boolean | null | undefined;
|
|
1658
1657
|
nameOfAccountHolder?: string | null | undefined;
|
|
1659
|
-
sortCode?:
|
|
1660
|
-
|
|
1658
|
+
sortCode?: string | null | undefined;
|
|
1659
|
+
selectedPaymentDay?: string | null | undefined;
|
|
1660
|
+
Applicants?: string | null | undefined;
|
|
1661
1661
|
}) | null | undefined;
|
|
1662
1662
|
income?: {
|
|
1663
1663
|
businessType: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"applicant.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAqKhC,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA+C,CAAC;AACpE,eAAe,cAAc,CAAC"}
|
|
@@ -6,7 +6,7 @@ import applicantIncomeSourceSchema from "./applicant-income-source.model";
|
|
|
6
6
|
import applicantExpenditureSchema from "./applicant-expenditure.model";
|
|
7
7
|
import applicantEmploymentSchema from "./applicant-employment.model";
|
|
8
8
|
import applicantCommitmentSchema from "./applicant-commitment.model";
|
|
9
|
-
import
|
|
9
|
+
import applicantDirectDebitSchema from "./applicant-direct-debit.model";
|
|
10
10
|
import creditProfileSchema from "./applicant-credit-profile.model";
|
|
11
11
|
import incomeSchema from "./applicant-income.model";
|
|
12
12
|
const applicantSchema = new mongoose.Schema({
|
|
@@ -145,5 +145,8 @@ applicantSchema.virtual('taxPayer').get(function () {
|
|
|
145
145
|
applicantSchema.virtual('vulnerabilityType').get(function () {
|
|
146
146
|
return this.vulnerabilityTypeLids?.map((v) => v.name);
|
|
147
147
|
});
|
|
148
|
+
applicantSchema.virtual('fullName').get(function () {
|
|
149
|
+
return `${this.firstName ?? ''} ${this.lastName ?? ''}`.trim();
|
|
150
|
+
});
|
|
148
151
|
const ApplicantModel = mongoose.model("Applicant", applicantSchema);
|
|
149
152
|
export default ApplicantModel;
|