@dynamatix/gb-schemas 1.3.325 → 1.3.327
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-credit-report.model.d.ts +174 -0
- package/dist/applicants/applicant-credit-report.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-report.model.js +11 -0
- package/dist/applicants/applicant-credit-report.type.d.ts +11 -0
- package/dist/applicants/applicant-credit-report.type.d.ts.map +1 -1
- package/dist/applicants/applicant-employment.model.d.ts +63 -63
- package/dist/applicants/applicant-employment.model.js +19 -19
- package/package.json +1 -1
|
@@ -259,16 +259,19 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
259
259
|
} | null | undefined;
|
|
260
260
|
}>;
|
|
261
261
|
electoralLinkedInformations: mongoose.Types.DocumentArray<{
|
|
262
|
+
name: string;
|
|
262
263
|
startDate: string;
|
|
263
264
|
endDate: string;
|
|
264
265
|
nameMatchStatus: string;
|
|
265
266
|
seniority: string;
|
|
266
267
|
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
268
|
+
name: string;
|
|
267
269
|
startDate: string;
|
|
268
270
|
endDate: string;
|
|
269
271
|
nameMatchStatus: string;
|
|
270
272
|
seniority: string;
|
|
271
273
|
}> & {
|
|
274
|
+
name: string;
|
|
272
275
|
startDate: string;
|
|
273
276
|
endDate: string;
|
|
274
277
|
nameMatchStatus: string;
|
|
@@ -330,7 +333,33 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
330
333
|
street1: string;
|
|
331
334
|
} | null | undefined;
|
|
332
335
|
}>;
|
|
336
|
+
previousSearches: mongoose.Types.DocumentArray<{
|
|
337
|
+
name: string;
|
|
338
|
+
dob: string;
|
|
339
|
+
jointApplicant: boolean;
|
|
340
|
+
searchType: string;
|
|
341
|
+
searchDate: string;
|
|
342
|
+
companyType: string;
|
|
343
|
+
optIn: boolean;
|
|
344
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
345
|
+
name: string;
|
|
346
|
+
dob: string;
|
|
347
|
+
jointApplicant: boolean;
|
|
348
|
+
searchType: string;
|
|
349
|
+
searchDate: string;
|
|
350
|
+
companyType: string;
|
|
351
|
+
optIn: boolean;
|
|
352
|
+
}> & {
|
|
353
|
+
name: string;
|
|
354
|
+
dob: string;
|
|
355
|
+
jointApplicant: boolean;
|
|
356
|
+
searchType: string;
|
|
357
|
+
searchDate: string;
|
|
358
|
+
companyType: string;
|
|
359
|
+
optIn: boolean;
|
|
360
|
+
}>;
|
|
333
361
|
electoralInformation?: {
|
|
362
|
+
name: string;
|
|
334
363
|
startDate: string;
|
|
335
364
|
endDate: string;
|
|
336
365
|
nameMatchStatus: string;
|
|
@@ -568,16 +597,19 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
568
597
|
} | null | undefined;
|
|
569
598
|
}>;
|
|
570
599
|
electoralLinkedInformations: mongoose.Types.DocumentArray<{
|
|
600
|
+
name: string;
|
|
571
601
|
startDate: string;
|
|
572
602
|
endDate: string;
|
|
573
603
|
nameMatchStatus: string;
|
|
574
604
|
seniority: string;
|
|
575
605
|
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
606
|
+
name: string;
|
|
576
607
|
startDate: string;
|
|
577
608
|
endDate: string;
|
|
578
609
|
nameMatchStatus: string;
|
|
579
610
|
seniority: string;
|
|
580
611
|
}> & {
|
|
612
|
+
name: string;
|
|
581
613
|
startDate: string;
|
|
582
614
|
endDate: string;
|
|
583
615
|
nameMatchStatus: string;
|
|
@@ -639,7 +671,33 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
639
671
|
street1: string;
|
|
640
672
|
} | null | undefined;
|
|
641
673
|
}>;
|
|
674
|
+
previousSearches: mongoose.Types.DocumentArray<{
|
|
675
|
+
name: string;
|
|
676
|
+
dob: string;
|
|
677
|
+
jointApplicant: boolean;
|
|
678
|
+
searchType: string;
|
|
679
|
+
searchDate: string;
|
|
680
|
+
companyType: string;
|
|
681
|
+
optIn: boolean;
|
|
682
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
683
|
+
name: string;
|
|
684
|
+
dob: string;
|
|
685
|
+
jointApplicant: boolean;
|
|
686
|
+
searchType: string;
|
|
687
|
+
searchDate: string;
|
|
688
|
+
companyType: string;
|
|
689
|
+
optIn: boolean;
|
|
690
|
+
}> & {
|
|
691
|
+
name: string;
|
|
692
|
+
dob: string;
|
|
693
|
+
jointApplicant: boolean;
|
|
694
|
+
searchType: string;
|
|
695
|
+
searchDate: string;
|
|
696
|
+
companyType: string;
|
|
697
|
+
optIn: boolean;
|
|
698
|
+
}>;
|
|
642
699
|
electoralInformation?: {
|
|
700
|
+
name: string;
|
|
643
701
|
startDate: string;
|
|
644
702
|
endDate: string;
|
|
645
703
|
nameMatchStatus: string;
|
|
@@ -877,16 +935,19 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
877
935
|
} | null | undefined;
|
|
878
936
|
}>;
|
|
879
937
|
electoralLinkedInformations: mongoose.Types.DocumentArray<{
|
|
938
|
+
name: string;
|
|
880
939
|
startDate: string;
|
|
881
940
|
endDate: string;
|
|
882
941
|
nameMatchStatus: string;
|
|
883
942
|
seniority: string;
|
|
884
943
|
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
944
|
+
name: string;
|
|
885
945
|
startDate: string;
|
|
886
946
|
endDate: string;
|
|
887
947
|
nameMatchStatus: string;
|
|
888
948
|
seniority: string;
|
|
889
949
|
}> & {
|
|
950
|
+
name: string;
|
|
890
951
|
startDate: string;
|
|
891
952
|
endDate: string;
|
|
892
953
|
nameMatchStatus: string;
|
|
@@ -948,7 +1009,33 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
948
1009
|
street1: string;
|
|
949
1010
|
} | null | undefined;
|
|
950
1011
|
}>;
|
|
1012
|
+
previousSearches: mongoose.Types.DocumentArray<{
|
|
1013
|
+
name: string;
|
|
1014
|
+
dob: string;
|
|
1015
|
+
jointApplicant: boolean;
|
|
1016
|
+
searchType: string;
|
|
1017
|
+
searchDate: string;
|
|
1018
|
+
companyType: string;
|
|
1019
|
+
optIn: boolean;
|
|
1020
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
1021
|
+
name: string;
|
|
1022
|
+
dob: string;
|
|
1023
|
+
jointApplicant: boolean;
|
|
1024
|
+
searchType: string;
|
|
1025
|
+
searchDate: string;
|
|
1026
|
+
companyType: string;
|
|
1027
|
+
optIn: boolean;
|
|
1028
|
+
}> & {
|
|
1029
|
+
name: string;
|
|
1030
|
+
dob: string;
|
|
1031
|
+
jointApplicant: boolean;
|
|
1032
|
+
searchType: string;
|
|
1033
|
+
searchDate: string;
|
|
1034
|
+
companyType: string;
|
|
1035
|
+
optIn: boolean;
|
|
1036
|
+
}>;
|
|
951
1037
|
electoralInformation?: {
|
|
1038
|
+
name: string;
|
|
952
1039
|
startDate: string;
|
|
953
1040
|
endDate: string;
|
|
954
1041
|
nameMatchStatus: string;
|
|
@@ -1190,16 +1277,19 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
1190
1277
|
} | null | undefined;
|
|
1191
1278
|
}>;
|
|
1192
1279
|
electoralLinkedInformations: mongoose.Types.DocumentArray<{
|
|
1280
|
+
name: string;
|
|
1193
1281
|
startDate: string;
|
|
1194
1282
|
endDate: string;
|
|
1195
1283
|
nameMatchStatus: string;
|
|
1196
1284
|
seniority: string;
|
|
1197
1285
|
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
1286
|
+
name: string;
|
|
1198
1287
|
startDate: string;
|
|
1199
1288
|
endDate: string;
|
|
1200
1289
|
nameMatchStatus: string;
|
|
1201
1290
|
seniority: string;
|
|
1202
1291
|
}> & {
|
|
1292
|
+
name: string;
|
|
1203
1293
|
startDate: string;
|
|
1204
1294
|
endDate: string;
|
|
1205
1295
|
nameMatchStatus: string;
|
|
@@ -1261,7 +1351,33 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
1261
1351
|
street1: string;
|
|
1262
1352
|
} | null | undefined;
|
|
1263
1353
|
}>;
|
|
1354
|
+
previousSearches: mongoose.Types.DocumentArray<{
|
|
1355
|
+
name: string;
|
|
1356
|
+
dob: string;
|
|
1357
|
+
jointApplicant: boolean;
|
|
1358
|
+
searchType: string;
|
|
1359
|
+
searchDate: string;
|
|
1360
|
+
companyType: string;
|
|
1361
|
+
optIn: boolean;
|
|
1362
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
1363
|
+
name: string;
|
|
1364
|
+
dob: string;
|
|
1365
|
+
jointApplicant: boolean;
|
|
1366
|
+
searchType: string;
|
|
1367
|
+
searchDate: string;
|
|
1368
|
+
companyType: string;
|
|
1369
|
+
optIn: boolean;
|
|
1370
|
+
}> & {
|
|
1371
|
+
name: string;
|
|
1372
|
+
dob: string;
|
|
1373
|
+
jointApplicant: boolean;
|
|
1374
|
+
searchType: string;
|
|
1375
|
+
searchDate: string;
|
|
1376
|
+
companyType: string;
|
|
1377
|
+
optIn: boolean;
|
|
1378
|
+
}>;
|
|
1264
1379
|
electoralInformation?: {
|
|
1380
|
+
name: string;
|
|
1265
1381
|
startDate: string;
|
|
1266
1382
|
endDate: string;
|
|
1267
1383
|
nameMatchStatus: string;
|
|
@@ -1499,16 +1615,19 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
1499
1615
|
} | null | undefined;
|
|
1500
1616
|
}>;
|
|
1501
1617
|
electoralLinkedInformations: mongoose.Types.DocumentArray<{
|
|
1618
|
+
name: string;
|
|
1502
1619
|
startDate: string;
|
|
1503
1620
|
endDate: string;
|
|
1504
1621
|
nameMatchStatus: string;
|
|
1505
1622
|
seniority: string;
|
|
1506
1623
|
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
1624
|
+
name: string;
|
|
1507
1625
|
startDate: string;
|
|
1508
1626
|
endDate: string;
|
|
1509
1627
|
nameMatchStatus: string;
|
|
1510
1628
|
seniority: string;
|
|
1511
1629
|
}> & {
|
|
1630
|
+
name: string;
|
|
1512
1631
|
startDate: string;
|
|
1513
1632
|
endDate: string;
|
|
1514
1633
|
nameMatchStatus: string;
|
|
@@ -1570,7 +1689,33 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
1570
1689
|
street1: string;
|
|
1571
1690
|
} | null | undefined;
|
|
1572
1691
|
}>;
|
|
1692
|
+
previousSearches: mongoose.Types.DocumentArray<{
|
|
1693
|
+
name: string;
|
|
1694
|
+
dob: string;
|
|
1695
|
+
jointApplicant: boolean;
|
|
1696
|
+
searchType: string;
|
|
1697
|
+
searchDate: string;
|
|
1698
|
+
companyType: string;
|
|
1699
|
+
optIn: boolean;
|
|
1700
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
1701
|
+
name: string;
|
|
1702
|
+
dob: string;
|
|
1703
|
+
jointApplicant: boolean;
|
|
1704
|
+
searchType: string;
|
|
1705
|
+
searchDate: string;
|
|
1706
|
+
companyType: string;
|
|
1707
|
+
optIn: boolean;
|
|
1708
|
+
}> & {
|
|
1709
|
+
name: string;
|
|
1710
|
+
dob: string;
|
|
1711
|
+
jointApplicant: boolean;
|
|
1712
|
+
searchType: string;
|
|
1713
|
+
searchDate: string;
|
|
1714
|
+
companyType: string;
|
|
1715
|
+
optIn: boolean;
|
|
1716
|
+
}>;
|
|
1573
1717
|
electoralInformation?: {
|
|
1718
|
+
name: string;
|
|
1574
1719
|
startDate: string;
|
|
1575
1720
|
endDate: string;
|
|
1576
1721
|
nameMatchStatus: string;
|
|
@@ -1808,16 +1953,19 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
1808
1953
|
} | null | undefined;
|
|
1809
1954
|
}>;
|
|
1810
1955
|
electoralLinkedInformations: mongoose.Types.DocumentArray<{
|
|
1956
|
+
name: string;
|
|
1811
1957
|
startDate: string;
|
|
1812
1958
|
endDate: string;
|
|
1813
1959
|
nameMatchStatus: string;
|
|
1814
1960
|
seniority: string;
|
|
1815
1961
|
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
1962
|
+
name: string;
|
|
1816
1963
|
startDate: string;
|
|
1817
1964
|
endDate: string;
|
|
1818
1965
|
nameMatchStatus: string;
|
|
1819
1966
|
seniority: string;
|
|
1820
1967
|
}> & {
|
|
1968
|
+
name: string;
|
|
1821
1969
|
startDate: string;
|
|
1822
1970
|
endDate: string;
|
|
1823
1971
|
nameMatchStatus: string;
|
|
@@ -1879,7 +2027,33 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
1879
2027
|
street1: string;
|
|
1880
2028
|
} | null | undefined;
|
|
1881
2029
|
}>;
|
|
2030
|
+
previousSearches: mongoose.Types.DocumentArray<{
|
|
2031
|
+
name: string;
|
|
2032
|
+
dob: string;
|
|
2033
|
+
jointApplicant: boolean;
|
|
2034
|
+
searchType: string;
|
|
2035
|
+
searchDate: string;
|
|
2036
|
+
companyType: string;
|
|
2037
|
+
optIn: boolean;
|
|
2038
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
2039
|
+
name: string;
|
|
2040
|
+
dob: string;
|
|
2041
|
+
jointApplicant: boolean;
|
|
2042
|
+
searchType: string;
|
|
2043
|
+
searchDate: string;
|
|
2044
|
+
companyType: string;
|
|
2045
|
+
optIn: boolean;
|
|
2046
|
+
}> & {
|
|
2047
|
+
name: string;
|
|
2048
|
+
dob: string;
|
|
2049
|
+
jointApplicant: boolean;
|
|
2050
|
+
searchType: string;
|
|
2051
|
+
searchDate: string;
|
|
2052
|
+
companyType: string;
|
|
2053
|
+
optIn: boolean;
|
|
2054
|
+
}>;
|
|
1882
2055
|
electoralInformation?: {
|
|
2056
|
+
name: string;
|
|
1883
2057
|
startDate: string;
|
|
1884
2058
|
endDate: string;
|
|
1885
2059
|
nameMatchStatus: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-credit-report.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-credit-report.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"applicant-credit-report.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-credit-report.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA0GhC,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuE,CAAC;AACxG,eAAe,0BAA0B,CAAC"}
|
|
@@ -34,6 +34,7 @@ const associateSchema = new Schema({
|
|
|
34
34
|
dob: { type: String, default: "" },
|
|
35
35
|
}, { _id: false });
|
|
36
36
|
const electoralInformationSchema = new Schema({
|
|
37
|
+
name: { type: String, default: "" },
|
|
37
38
|
nameMatchStatus: { type: String, default: "" },
|
|
38
39
|
seniority: { type: String, default: "" },
|
|
39
40
|
startDate: { type: String, default: "" },
|
|
@@ -59,6 +60,15 @@ const currentAddressData = new Schema({
|
|
|
59
60
|
street1: { type: String, default: "" },
|
|
60
61
|
},
|
|
61
62
|
}, { _id: false });
|
|
63
|
+
const previousSearchesSchema = new Schema({
|
|
64
|
+
name: { type: String, default: "" },
|
|
65
|
+
dob: { type: String, default: "" },
|
|
66
|
+
jointApplicant: { type: Boolean, default: false },
|
|
67
|
+
searchType: { type: String, default: "" },
|
|
68
|
+
searchDate: { type: String, default: "" },
|
|
69
|
+
companyType: { type: String, default: "" },
|
|
70
|
+
optIn: { type: Boolean, default: false },
|
|
71
|
+
}, { _id: false });
|
|
62
72
|
const applicantCreditReportSchema = new Schema({
|
|
63
73
|
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
64
74
|
referenceNumber: { type: String, default: "" },
|
|
@@ -78,6 +88,7 @@ const applicantCreditReportSchema = new Schema({
|
|
|
78
88
|
electoralLinkedInformations: [electoralInformationSchema],
|
|
79
89
|
linkedAddresses: [linkedAddressSchema],
|
|
80
90
|
currentAddresses: [currentAddressData],
|
|
91
|
+
previousSearches: [previousSearchesSchema],
|
|
81
92
|
});
|
|
82
93
|
const ApplicantCreditReportModel = mongoose.model("ApplicantCreditReport", applicantCreditReportSchema);
|
|
83
94
|
export default ApplicantCreditReportModel;
|
|
@@ -62,6 +62,7 @@ interface IAssociate {
|
|
|
62
62
|
dob: string;
|
|
63
63
|
}
|
|
64
64
|
interface IElectoralInformation {
|
|
65
|
+
name: string;
|
|
65
66
|
nameMatchStatus: string;
|
|
66
67
|
seniority: string;
|
|
67
68
|
startDate: string;
|
|
@@ -87,6 +88,15 @@ interface ICurrentAddress {
|
|
|
87
88
|
street1: string;
|
|
88
89
|
};
|
|
89
90
|
}
|
|
91
|
+
interface IPreviousSearches {
|
|
92
|
+
name: string;
|
|
93
|
+
dob: string;
|
|
94
|
+
jointApplicant: boolean;
|
|
95
|
+
searchType: string;
|
|
96
|
+
searchDate: string;
|
|
97
|
+
companyType: string;
|
|
98
|
+
optIn: boolean;
|
|
99
|
+
}
|
|
90
100
|
export default interface IApplicantCreditReport extends IBaseType {
|
|
91
101
|
applicantId: Types.ObjectId;
|
|
92
102
|
referenceNumber: string;
|
|
@@ -106,6 +116,7 @@ export default interface IApplicantCreditReport extends IBaseType {
|
|
|
106
116
|
electoralLinkedInformations: IElectoralInformation[];
|
|
107
117
|
linkedAddresses: ILinkedAddress[];
|
|
108
118
|
currentAddresses: ICurrentAddress[];
|
|
119
|
+
previousSearches: IPreviousSearches[];
|
|
109
120
|
}
|
|
110
121
|
export {};
|
|
111
122
|
//# sourceMappingURL=applicant-credit-report.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-credit-report.type.d.ts","sourceRoot":"","sources":["../../applicants/applicant-credit-report.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;A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AM,EAAE,MAAM,CAAC;KAClB,CAAC;CACL;AAED,UAAU,eAAe;IAErB,OAAO,EAAE;QACL,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC;CACL;AAED,MAAM,CAAC,OAAO,WAAW,sBAAuB,SAAQ,SAAS;IAC7D,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;IAC1C,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;IAC5C,oBAAoB,EAAE,qBAAqB,CAAC;IAC5C,2BAA2B,EAAE,qBAAqB,EAAE,CAAC;IACrD,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,gBAAgB,EAAE,eAAe,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"applicant-credit-report.type.d.ts","sourceRoot":"","sources":["../../applicants/applicant-credit-report.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,UAAU,mBAAmB;IACzB,WAAW,EAAE,MAAM,CA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
|
addressLine2?: unknown;
|
|
38
38
|
addressLine3?: unknown;
|
|
39
39
|
addressCity?: unknown;
|
|
40
|
-
addressCountryLid?:
|
|
40
|
+
addressCountryLid?: unknown;
|
|
41
41
|
contractRemaining?: unknown;
|
|
42
42
|
dateJoined?: unknown;
|
|
43
43
|
disabilityLiving?: {
|
|
@@ -138,9 +138,9 @@ declare const ApplicantEmployment: mongoose.Model<{
|
|
|
138
138
|
validateAll?: {} | null | undefined;
|
|
139
139
|
defaultOptions?: unknown;
|
|
140
140
|
} | null | undefined;
|
|
141
|
-
industryLid?:
|
|
141
|
+
industryLid?: unknown;
|
|
142
142
|
isUnderTerminationNotice?: unknown;
|
|
143
|
-
jobTitleLid?:
|
|
143
|
+
jobTitleLid?: unknown;
|
|
144
144
|
pensionIncome?: {
|
|
145
145
|
validators: mongoose.Types.DocumentArray<{
|
|
146
146
|
type?: unknown;
|
|
@@ -190,7 +190,7 @@ declare const ApplicantEmployment: mongoose.Model<{
|
|
|
190
190
|
defaultOptions?: unknown;
|
|
191
191
|
} | null | undefined;
|
|
192
192
|
previousAddressCity?: unknown;
|
|
193
|
-
previousAddressCountryLid?:
|
|
193
|
+
previousAddressCountryLid?: unknown;
|
|
194
194
|
previousAddressLine1?: unknown;
|
|
195
195
|
previousAddressLine2?: unknown;
|
|
196
196
|
previousAddressLine3?: unknown;
|
|
@@ -261,7 +261,7 @@ declare const ApplicantEmployment: mongoose.Model<{
|
|
|
261
261
|
addressLine2?: unknown;
|
|
262
262
|
addressLine3?: unknown;
|
|
263
263
|
addressCity?: unknown;
|
|
264
|
-
addressCountryLid?:
|
|
264
|
+
addressCountryLid?: unknown;
|
|
265
265
|
contractRemaining?: unknown;
|
|
266
266
|
dateJoined?: unknown;
|
|
267
267
|
disabilityLiving?: {
|
|
@@ -362,9 +362,9 @@ declare const ApplicantEmployment: mongoose.Model<{
|
|
|
362
362
|
validateAll?: {} | null | undefined;
|
|
363
363
|
defaultOptions?: unknown;
|
|
364
364
|
} | null | undefined;
|
|
365
|
-
industryLid?:
|
|
365
|
+
industryLid?: unknown;
|
|
366
366
|
isUnderTerminationNotice?: unknown;
|
|
367
|
-
jobTitleLid?:
|
|
367
|
+
jobTitleLid?: unknown;
|
|
368
368
|
pensionIncome?: {
|
|
369
369
|
validators: mongoose.Types.DocumentArray<{
|
|
370
370
|
type?: unknown;
|
|
@@ -414,7 +414,7 @@ declare const ApplicantEmployment: mongoose.Model<{
|
|
|
414
414
|
defaultOptions?: unknown;
|
|
415
415
|
} | null | undefined;
|
|
416
416
|
previousAddressCity?: unknown;
|
|
417
|
-
previousAddressCountryLid?:
|
|
417
|
+
previousAddressCountryLid?: unknown;
|
|
418
418
|
previousAddressLine1?: unknown;
|
|
419
419
|
previousAddressLine2?: unknown;
|
|
420
420
|
previousAddressLine3?: unknown;
|
|
@@ -485,7 +485,7 @@ declare const ApplicantEmployment: mongoose.Model<{
|
|
|
485
485
|
addressLine2?: unknown;
|
|
486
486
|
addressLine3?: unknown;
|
|
487
487
|
addressCity?: unknown;
|
|
488
|
-
addressCountryLid?:
|
|
488
|
+
addressCountryLid?: unknown;
|
|
489
489
|
contractRemaining?: unknown;
|
|
490
490
|
dateJoined?: unknown;
|
|
491
491
|
disabilityLiving?: {
|
|
@@ -586,9 +586,9 @@ declare const ApplicantEmployment: mongoose.Model<{
|
|
|
586
586
|
validateAll?: {} | null | undefined;
|
|
587
587
|
defaultOptions?: unknown;
|
|
588
588
|
} | null | undefined;
|
|
589
|
-
industryLid?:
|
|
589
|
+
industryLid?: unknown;
|
|
590
590
|
isUnderTerminationNotice?: unknown;
|
|
591
|
-
jobTitleLid?:
|
|
591
|
+
jobTitleLid?: unknown;
|
|
592
592
|
pensionIncome?: {
|
|
593
593
|
validators: mongoose.Types.DocumentArray<{
|
|
594
594
|
type?: unknown;
|
|
@@ -638,7 +638,7 @@ declare const ApplicantEmployment: mongoose.Model<{
|
|
|
638
638
|
defaultOptions?: unknown;
|
|
639
639
|
} | null | undefined;
|
|
640
640
|
previousAddressCity?: unknown;
|
|
641
|
-
previousAddressCountryLid?:
|
|
641
|
+
previousAddressCountryLid?: unknown;
|
|
642
642
|
previousAddressLine1?: unknown;
|
|
643
643
|
previousAddressLine2?: unknown;
|
|
644
644
|
previousAddressLine3?: unknown;
|
|
@@ -713,112 +713,112 @@ declare const ApplicantEmployment: mongoose.Model<{
|
|
|
713
713
|
};
|
|
714
714
|
}, {
|
|
715
715
|
applicantId: mongoose.Types.ObjectId;
|
|
716
|
-
natureOfBusiness: string;
|
|
717
|
-
addressPostCode: string;
|
|
718
|
-
addressLine1: string;
|
|
719
716
|
addressLine2: string;
|
|
720
717
|
addressLine3: string;
|
|
721
718
|
addressCity: string;
|
|
722
|
-
addressCountryLid: mongoose.Types.ObjectId;
|
|
723
719
|
acceptableIncomeLids: mongoose.Types.ObjectId[];
|
|
724
|
-
dateJoined: string;
|
|
725
720
|
disabilityLiving: Pound;
|
|
726
|
-
employerName: string;
|
|
727
721
|
employerTelephone: string;
|
|
728
722
|
housingAllowance: Pound;
|
|
729
|
-
industryLid: mongoose.Types.ObjectId;
|
|
730
723
|
isUnderTerminationNotice: boolean;
|
|
731
|
-
jobTitleLid: mongoose.Types.ObjectId;
|
|
732
724
|
pensionIncome: Pound;
|
|
733
725
|
previousAddressCity: string;
|
|
734
|
-
previousAddressCountryLid: mongoose.Types.ObjectId;
|
|
735
|
-
previousAddressLine1: string;
|
|
736
726
|
previousAddressLine2: string;
|
|
737
727
|
previousAddressLine3: string;
|
|
738
|
-
previousAddressPostCode: string;
|
|
739
728
|
previousBasicGrossIncome: Pound;
|
|
740
|
-
previousDateJoined: string;
|
|
741
|
-
previousDateLeft: string;
|
|
742
|
-
previousEmployerName: string;
|
|
743
729
|
previousEmployerTelephone: string;
|
|
744
|
-
previousJobTitle: string;
|
|
745
|
-
previousNatureOfBusiness: string;
|
|
746
730
|
referenceContact: string;
|
|
747
|
-
referenceContactEmail: string;
|
|
748
731
|
underTerminationNoticeNote: string;
|
|
732
|
+
natureOfBusiness?: string | null | undefined;
|
|
733
|
+
addressPostCode?: string | null | undefined;
|
|
734
|
+
addressLine1?: string | null | undefined;
|
|
735
|
+
addressCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
749
736
|
contractRemaining?: string | null | undefined;
|
|
737
|
+
dateJoined?: string | null | undefined;
|
|
738
|
+
employerName?: string | null | undefined;
|
|
739
|
+
industryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
740
|
+
jobTitleLid?: mongoose.Types.ObjectId | null | undefined;
|
|
741
|
+
previousAddressCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
742
|
+
previousAddressLine1?: string | null | undefined;
|
|
743
|
+
previousAddressPostCode?: string | null | undefined;
|
|
744
|
+
previousDateJoined?: string | null | undefined;
|
|
745
|
+
previousDateLeft?: string | null | undefined;
|
|
746
|
+
previousEmployerName?: string | null | undefined;
|
|
747
|
+
previousJobTitle?: string | null | undefined;
|
|
748
|
+
previousNatureOfBusiness?: string | null | undefined;
|
|
749
|
+
referenceContactEmail?: string | null | undefined;
|
|
750
750
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
751
751
|
applicantId: mongoose.Types.ObjectId;
|
|
752
|
-
natureOfBusiness: string;
|
|
753
|
-
addressPostCode: string;
|
|
754
|
-
addressLine1: string;
|
|
755
752
|
addressLine2: string;
|
|
756
753
|
addressLine3: string;
|
|
757
754
|
addressCity: string;
|
|
758
|
-
addressCountryLid: mongoose.Types.ObjectId;
|
|
759
755
|
acceptableIncomeLids: mongoose.Types.ObjectId[];
|
|
760
|
-
dateJoined: string;
|
|
761
756
|
disabilityLiving: Pound;
|
|
762
|
-
employerName: string;
|
|
763
757
|
employerTelephone: string;
|
|
764
758
|
housingAllowance: Pound;
|
|
765
|
-
industryLid: mongoose.Types.ObjectId;
|
|
766
759
|
isUnderTerminationNotice: boolean;
|
|
767
|
-
jobTitleLid: mongoose.Types.ObjectId;
|
|
768
760
|
pensionIncome: Pound;
|
|
769
761
|
previousAddressCity: string;
|
|
770
|
-
previousAddressCountryLid: mongoose.Types.ObjectId;
|
|
771
|
-
previousAddressLine1: string;
|
|
772
762
|
previousAddressLine2: string;
|
|
773
763
|
previousAddressLine3: string;
|
|
774
|
-
previousAddressPostCode: string;
|
|
775
764
|
previousBasicGrossIncome: Pound;
|
|
776
|
-
previousDateJoined: string;
|
|
777
|
-
previousDateLeft: string;
|
|
778
|
-
previousEmployerName: string;
|
|
779
765
|
previousEmployerTelephone: string;
|
|
780
|
-
previousJobTitle: string;
|
|
781
|
-
previousNatureOfBusiness: string;
|
|
782
766
|
referenceContact: string;
|
|
783
|
-
referenceContactEmail: string;
|
|
784
767
|
underTerminationNoticeNote: string;
|
|
768
|
+
natureOfBusiness?: string | null | undefined;
|
|
769
|
+
addressPostCode?: string | null | undefined;
|
|
770
|
+
addressLine1?: string | null | undefined;
|
|
771
|
+
addressCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
785
772
|
contractRemaining?: string | null | undefined;
|
|
773
|
+
dateJoined?: string | null | undefined;
|
|
774
|
+
employerName?: string | null | undefined;
|
|
775
|
+
industryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
776
|
+
jobTitleLid?: mongoose.Types.ObjectId | null | undefined;
|
|
777
|
+
previousAddressCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
778
|
+
previousAddressLine1?: string | null | undefined;
|
|
779
|
+
previousAddressPostCode?: string | null | undefined;
|
|
780
|
+
previousDateJoined?: string | null | undefined;
|
|
781
|
+
previousDateLeft?: string | null | undefined;
|
|
782
|
+
previousEmployerName?: string | null | undefined;
|
|
783
|
+
previousJobTitle?: string | null | undefined;
|
|
784
|
+
previousNatureOfBusiness?: string | null | undefined;
|
|
785
|
+
referenceContactEmail?: string | null | undefined;
|
|
786
786
|
}>, {}> & mongoose.FlatRecord<{
|
|
787
787
|
applicantId: mongoose.Types.ObjectId;
|
|
788
|
-
natureOfBusiness: string;
|
|
789
|
-
addressPostCode: string;
|
|
790
|
-
addressLine1: string;
|
|
791
788
|
addressLine2: string;
|
|
792
789
|
addressLine3: string;
|
|
793
790
|
addressCity: string;
|
|
794
|
-
addressCountryLid: mongoose.Types.ObjectId;
|
|
795
791
|
acceptableIncomeLids: mongoose.Types.ObjectId[];
|
|
796
|
-
dateJoined: string;
|
|
797
792
|
disabilityLiving: Pound;
|
|
798
|
-
employerName: string;
|
|
799
793
|
employerTelephone: string;
|
|
800
794
|
housingAllowance: Pound;
|
|
801
|
-
industryLid: mongoose.Types.ObjectId;
|
|
802
795
|
isUnderTerminationNotice: boolean;
|
|
803
|
-
jobTitleLid: mongoose.Types.ObjectId;
|
|
804
796
|
pensionIncome: Pound;
|
|
805
797
|
previousAddressCity: string;
|
|
806
|
-
previousAddressCountryLid: mongoose.Types.ObjectId;
|
|
807
|
-
previousAddressLine1: string;
|
|
808
798
|
previousAddressLine2: string;
|
|
809
799
|
previousAddressLine3: string;
|
|
810
|
-
previousAddressPostCode: string;
|
|
811
800
|
previousBasicGrossIncome: Pound;
|
|
812
|
-
previousDateJoined: string;
|
|
813
|
-
previousDateLeft: string;
|
|
814
|
-
previousEmployerName: string;
|
|
815
801
|
previousEmployerTelephone: string;
|
|
816
|
-
previousJobTitle: string;
|
|
817
|
-
previousNatureOfBusiness: string;
|
|
818
802
|
referenceContact: string;
|
|
819
|
-
referenceContactEmail: string;
|
|
820
803
|
underTerminationNoticeNote: string;
|
|
804
|
+
natureOfBusiness?: string | null | undefined;
|
|
805
|
+
addressPostCode?: string | null | undefined;
|
|
806
|
+
addressLine1?: string | null | undefined;
|
|
807
|
+
addressCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
821
808
|
contractRemaining?: string | null | undefined;
|
|
809
|
+
dateJoined?: string | null | undefined;
|
|
810
|
+
employerName?: string | null | undefined;
|
|
811
|
+
industryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
812
|
+
jobTitleLid?: mongoose.Types.ObjectId | null | undefined;
|
|
813
|
+
previousAddressCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
814
|
+
previousAddressLine1?: string | null | undefined;
|
|
815
|
+
previousAddressPostCode?: string | null | undefined;
|
|
816
|
+
previousDateJoined?: string | null | undefined;
|
|
817
|
+
previousDateLeft?: string | null | undefined;
|
|
818
|
+
previousEmployerName?: string | null | undefined;
|
|
819
|
+
previousJobTitle?: string | null | undefined;
|
|
820
|
+
previousNatureOfBusiness?: string | null | undefined;
|
|
821
|
+
referenceContactEmail?: string | null | undefined;
|
|
822
822
|
}> & {
|
|
823
823
|
_id: mongoose.Types.ObjectId;
|
|
824
824
|
} & {
|
|
@@ -2,39 +2,39 @@ import mongoose from "mongoose";
|
|
|
2
2
|
import { Pound, formatPound } from "../value-objects/pound";
|
|
3
3
|
const applicantEmploymentSchema = new mongoose.Schema({
|
|
4
4
|
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
5
|
-
acceptableIncomeLids: [{ type: mongoose.Schema.Types.ObjectId, ref: "Lookup",
|
|
5
|
+
acceptableIncomeLids: [{ type: mongoose.Schema.Types.ObjectId, ref: "Lookup", }],
|
|
6
6
|
addressCity: { type: String, default: null },
|
|
7
|
-
addressCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup",
|
|
8
|
-
addressLine1: { type: String,
|
|
7
|
+
addressCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", },
|
|
8
|
+
addressLine1: { type: String, },
|
|
9
9
|
addressLine2: { type: String, default: null },
|
|
10
10
|
addressLine3: { type: String, default: null },
|
|
11
|
-
addressPostCode: { type: String,
|
|
11
|
+
addressPostCode: { type: String, },
|
|
12
12
|
contractRemaining: { type: String },
|
|
13
|
-
dateJoined: { type: String,
|
|
13
|
+
dateJoined: { type: String, },
|
|
14
14
|
disabilityLiving: { type: Pound, default: 0.00, get: formatPound },
|
|
15
|
-
employerName: { type: String,
|
|
15
|
+
employerName: { type: String, },
|
|
16
16
|
employerTelephone: { type: String, default: null },
|
|
17
17
|
housingAllowance: { type: Pound, default: 0.00, get: formatPound },
|
|
18
|
-
industryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup",
|
|
18
|
+
industryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", },
|
|
19
19
|
isUnderTerminationNotice: { type: Boolean, default: false },
|
|
20
|
-
jobTitleLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup",
|
|
21
|
-
natureOfBusiness: { type: String,
|
|
20
|
+
jobTitleLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", },
|
|
21
|
+
natureOfBusiness: { type: String, },
|
|
22
22
|
pensionIncome: { type: Pound, default: 0.00, get: formatPound },
|
|
23
23
|
previousAddressCity: { type: String, default: null },
|
|
24
|
-
previousAddressCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup",
|
|
25
|
-
previousAddressLine1: { type: String,
|
|
24
|
+
previousAddressCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", },
|
|
25
|
+
previousAddressLine1: { type: String, },
|
|
26
26
|
previousAddressLine2: { type: String, default: null },
|
|
27
27
|
previousAddressLine3: { type: String, default: null },
|
|
28
|
-
previousAddressPostCode: { type: String,
|
|
29
|
-
previousBasicGrossIncome: { type: Pound, default: 0.00,
|
|
30
|
-
previousDateJoined: { type: String,
|
|
31
|
-
previousDateLeft: { type: String,
|
|
32
|
-
previousEmployerName: { type: String,
|
|
28
|
+
previousAddressPostCode: { type: String, },
|
|
29
|
+
previousBasicGrossIncome: { type: Pound, default: 0.00, get: formatPound },
|
|
30
|
+
previousDateJoined: { type: String, },
|
|
31
|
+
previousDateLeft: { type: String, },
|
|
32
|
+
previousEmployerName: { type: String, },
|
|
33
33
|
previousEmployerTelephone: { type: String, default: null },
|
|
34
|
-
previousJobTitle: { type: String,
|
|
35
|
-
previousNatureOfBusiness: { type: String,
|
|
34
|
+
previousJobTitle: { type: String, },
|
|
35
|
+
previousNatureOfBusiness: { type: String, },
|
|
36
36
|
referenceContact: { type: String, default: null },
|
|
37
|
-
referenceContactEmail: { type: String,
|
|
37
|
+
referenceContactEmail: { type: String, },
|
|
38
38
|
underTerminationNoticeNote: { type: String, default: null }
|
|
39
39
|
}, {
|
|
40
40
|
toJSON: { getters: true },
|