@dynamatix/gb-schemas 2.3.338 → 2.3.340
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-risk-narrative.model.d.ts +6 -6
- package/dist/applicants/applicant.model.d.ts +6 -6
- package/dist/applications/application-risk-narrative.model.d.ts +48 -36
- package/dist/applications/application-risk-narrative.model.d.ts.map +1 -1
- package/dist/applications/application-risk-narrative.model.js +8 -6
- package/dist/applications/application.model.d.ts +18 -0
- package/dist/applications/application.model.d.ts.map +1 -1
- package/dist/applications/application.model.js +3 -0
- package/package.json +1 -1
|
@@ -28,32 +28,32 @@
|
|
|
28
28
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
29
|
import mongoose from 'mongoose';
|
|
30
30
|
declare const applicantRiskNarrativeSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
31
|
-
call2StatusLid: mongoose.Types.ObjectId;
|
|
32
31
|
statusLid: mongoose.Types.ObjectId;
|
|
32
|
+
call2StatusLid: mongoose.Types.ObjectId;
|
|
33
33
|
docVerificationStatusLid: mongoose.Types.ObjectId;
|
|
34
34
|
link?: string | null | undefined;
|
|
35
|
-
riskRating?: string | null | undefined;
|
|
36
35
|
clientReference?: string | null | undefined;
|
|
36
|
+
riskRating?: string | null | undefined;
|
|
37
37
|
isPoaTaskGenerated?: string | null | undefined;
|
|
38
38
|
riskLevel?: string | null | undefined;
|
|
39
39
|
verificationLinkSentOn?: string | null | undefined;
|
|
40
40
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
41
|
-
call2StatusLid: mongoose.Types.ObjectId;
|
|
42
41
|
statusLid: mongoose.Types.ObjectId;
|
|
42
|
+
call2StatusLid: mongoose.Types.ObjectId;
|
|
43
43
|
docVerificationStatusLid: mongoose.Types.ObjectId;
|
|
44
44
|
link?: string | null | undefined;
|
|
45
|
-
riskRating?: string | null | undefined;
|
|
46
45
|
clientReference?: string | null | undefined;
|
|
46
|
+
riskRating?: string | null | undefined;
|
|
47
47
|
isPoaTaskGenerated?: string | null | undefined;
|
|
48
48
|
riskLevel?: string | null | undefined;
|
|
49
49
|
verificationLinkSentOn?: string | null | undefined;
|
|
50
50
|
}>, {}> & mongoose.FlatRecord<{
|
|
51
|
-
call2StatusLid: mongoose.Types.ObjectId;
|
|
52
51
|
statusLid: mongoose.Types.ObjectId;
|
|
52
|
+
call2StatusLid: mongoose.Types.ObjectId;
|
|
53
53
|
docVerificationStatusLid: mongoose.Types.ObjectId;
|
|
54
54
|
link?: string | null | undefined;
|
|
55
|
-
riskRating?: string | null | undefined;
|
|
56
55
|
clientReference?: string | null | undefined;
|
|
56
|
+
riskRating?: string | null | undefined;
|
|
57
57
|
isPoaTaskGenerated?: string | null | undefined;
|
|
58
58
|
riskLevel?: string | null | undefined;
|
|
59
59
|
verificationLinkSentOn?: string | null | undefined;
|
|
@@ -1221,12 +1221,12 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
1221
1221
|
creditDefaults?: string | null | undefined;
|
|
1222
1222
|
} | null | undefined;
|
|
1223
1223
|
riskNarrative?: {
|
|
1224
|
-
call2StatusLid: mongoose.Types.ObjectId;
|
|
1225
1224
|
statusLid: mongoose.Types.ObjectId;
|
|
1225
|
+
call2StatusLid: mongoose.Types.ObjectId;
|
|
1226
1226
|
docVerificationStatusLid: mongoose.Types.ObjectId;
|
|
1227
1227
|
link?: string | null | undefined;
|
|
1228
|
-
riskRating?: string | null | undefined;
|
|
1229
1228
|
clientReference?: string | null | undefined;
|
|
1229
|
+
riskRating?: string | null | undefined;
|
|
1230
1230
|
isPoaTaskGenerated?: string | null | undefined;
|
|
1231
1231
|
riskLevel?: string | null | undefined;
|
|
1232
1232
|
verificationLinkSentOn?: string | null | undefined;
|
|
@@ -1376,12 +1376,12 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
1376
1376
|
creditDefaults?: string | null | undefined;
|
|
1377
1377
|
} | null | undefined;
|
|
1378
1378
|
riskNarrative?: {
|
|
1379
|
-
call2StatusLid: mongoose.Types.ObjectId;
|
|
1380
1379
|
statusLid: mongoose.Types.ObjectId;
|
|
1380
|
+
call2StatusLid: mongoose.Types.ObjectId;
|
|
1381
1381
|
docVerificationStatusLid: mongoose.Types.ObjectId;
|
|
1382
1382
|
link?: string | null | undefined;
|
|
1383
|
-
riskRating?: string | null | undefined;
|
|
1384
1383
|
clientReference?: string | null | undefined;
|
|
1384
|
+
riskRating?: string | null | undefined;
|
|
1385
1385
|
isPoaTaskGenerated?: string | null | undefined;
|
|
1386
1386
|
riskLevel?: string | null | undefined;
|
|
1387
1387
|
verificationLinkSentOn?: string | null | undefined;
|
|
@@ -1531,12 +1531,12 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
1531
1531
|
creditDefaults?: string | null | undefined;
|
|
1532
1532
|
} | null | undefined;
|
|
1533
1533
|
riskNarrative?: {
|
|
1534
|
-
call2StatusLid: mongoose.Types.ObjectId;
|
|
1535
1534
|
statusLid: mongoose.Types.ObjectId;
|
|
1535
|
+
call2StatusLid: mongoose.Types.ObjectId;
|
|
1536
1536
|
docVerificationStatusLid: mongoose.Types.ObjectId;
|
|
1537
1537
|
link?: string | null | undefined;
|
|
1538
|
-
riskRating?: string | null | undefined;
|
|
1539
1538
|
clientReference?: string | null | undefined;
|
|
1539
|
+
riskRating?: string | null | undefined;
|
|
1540
1540
|
isPoaTaskGenerated?: string | null | undefined;
|
|
1541
1541
|
riskLevel?: string | null | undefined;
|
|
1542
1542
|
verificationLinkSentOn?: string | null | undefined;
|
|
@@ -28,57 +28,69 @@
|
|
|
28
28
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
29
|
import mongoose from 'mongoose';
|
|
30
30
|
declare const ApplicationRiskNarrativeModel: mongoose.Model<{
|
|
31
|
-
|
|
31
|
+
applicationId: mongoose.Types.ObjectId;
|
|
32
|
+
call1StatusLid: mongoose.Types.ObjectId;
|
|
33
|
+
clientReference: string;
|
|
34
|
+
call1RequestedOn: string;
|
|
35
|
+
call2RequestedOn: string;
|
|
36
|
+
rationaleForRiskRating: string;
|
|
37
|
+
retryCount: string;
|
|
38
|
+
riskRating: string;
|
|
32
39
|
statusLid: mongoose.Types.ObjectId;
|
|
33
|
-
call1RequestedOn?: string | null | undefined;
|
|
34
|
-
call2RequestedOn?: string | null | undefined;
|
|
35
|
-
rationaleForRiskRating?: string | null | undefined;
|
|
36
|
-
retryCount?: string | null | undefined;
|
|
37
|
-
riskRating?: string | null | undefined;
|
|
38
40
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
39
|
-
|
|
41
|
+
applicationId: mongoose.Types.ObjectId;
|
|
42
|
+
call1StatusLid: mongoose.Types.ObjectId;
|
|
43
|
+
clientReference: string;
|
|
44
|
+
call1RequestedOn: string;
|
|
45
|
+
call2RequestedOn: string;
|
|
46
|
+
rationaleForRiskRating: string;
|
|
47
|
+
retryCount: string;
|
|
48
|
+
riskRating: string;
|
|
40
49
|
statusLid: mongoose.Types.ObjectId;
|
|
41
|
-
call1RequestedOn?: string | null | undefined;
|
|
42
|
-
call2RequestedOn?: string | null | undefined;
|
|
43
|
-
rationaleForRiskRating?: string | null | undefined;
|
|
44
|
-
retryCount?: string | null | undefined;
|
|
45
|
-
riskRating?: string | null | undefined;
|
|
46
50
|
}, {}> & {
|
|
47
|
-
|
|
51
|
+
applicationId: mongoose.Types.ObjectId;
|
|
52
|
+
call1StatusLid: mongoose.Types.ObjectId;
|
|
53
|
+
clientReference: string;
|
|
54
|
+
call1RequestedOn: string;
|
|
55
|
+
call2RequestedOn: string;
|
|
56
|
+
rationaleForRiskRating: string;
|
|
57
|
+
retryCount: string;
|
|
58
|
+
riskRating: string;
|
|
48
59
|
statusLid: mongoose.Types.ObjectId;
|
|
49
|
-
call1RequestedOn?: string | null | undefined;
|
|
50
|
-
call2RequestedOn?: string | null | undefined;
|
|
51
|
-
rationaleForRiskRating?: string | null | undefined;
|
|
52
|
-
retryCount?: string | null | undefined;
|
|
53
|
-
riskRating?: string | null | undefined;
|
|
54
60
|
} & {
|
|
55
61
|
_id: mongoose.Types.ObjectId;
|
|
56
62
|
} & {
|
|
57
63
|
__v: number;
|
|
58
64
|
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
59
|
-
|
|
65
|
+
applicationId: mongoose.Types.ObjectId;
|
|
66
|
+
call1StatusLid: mongoose.Types.ObjectId;
|
|
67
|
+
clientReference: string;
|
|
68
|
+
call1RequestedOn: string;
|
|
69
|
+
call2RequestedOn: string;
|
|
70
|
+
rationaleForRiskRating: string;
|
|
71
|
+
retryCount: string;
|
|
72
|
+
riskRating: string;
|
|
60
73
|
statusLid: mongoose.Types.ObjectId;
|
|
61
|
-
call1RequestedOn?: string | null | undefined;
|
|
62
|
-
call2RequestedOn?: string | null | undefined;
|
|
63
|
-
rationaleForRiskRating?: string | null | undefined;
|
|
64
|
-
retryCount?: string | null | undefined;
|
|
65
|
-
riskRating?: string | null | undefined;
|
|
66
74
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
67
|
-
|
|
75
|
+
applicationId: mongoose.Types.ObjectId;
|
|
76
|
+
call1StatusLid: mongoose.Types.ObjectId;
|
|
77
|
+
clientReference: string;
|
|
78
|
+
call1RequestedOn: string;
|
|
79
|
+
call2RequestedOn: string;
|
|
80
|
+
rationaleForRiskRating: string;
|
|
81
|
+
retryCount: string;
|
|
82
|
+
riskRating: string;
|
|
68
83
|
statusLid: mongoose.Types.ObjectId;
|
|
69
|
-
call1RequestedOn?: string | null | undefined;
|
|
70
|
-
call2RequestedOn?: string | null | undefined;
|
|
71
|
-
rationaleForRiskRating?: string | null | undefined;
|
|
72
|
-
retryCount?: string | null | undefined;
|
|
73
|
-
riskRating?: string | null | undefined;
|
|
74
84
|
}>, {}> & mongoose.FlatRecord<{
|
|
75
|
-
|
|
85
|
+
applicationId: mongoose.Types.ObjectId;
|
|
86
|
+
call1StatusLid: mongoose.Types.ObjectId;
|
|
87
|
+
clientReference: string;
|
|
88
|
+
call1RequestedOn: string;
|
|
89
|
+
call2RequestedOn: string;
|
|
90
|
+
rationaleForRiskRating: string;
|
|
91
|
+
retryCount: string;
|
|
92
|
+
riskRating: string;
|
|
76
93
|
statusLid: mongoose.Types.ObjectId;
|
|
77
|
-
call1RequestedOn?: string | null | undefined;
|
|
78
|
-
call2RequestedOn?: string | null | undefined;
|
|
79
|
-
rationaleForRiskRating?: string | null | undefined;
|
|
80
|
-
retryCount?: string | null | undefined;
|
|
81
|
-
riskRating?: string | null | undefined;
|
|
82
94
|
}> & {
|
|
83
95
|
_id: mongoose.Types.ObjectId;
|
|
84
96
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-risk-narrative.model.d.ts","sourceRoot":"","sources":["../../applications/application-risk-narrative.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"application-risk-narrative.model.d.ts","sourceRoot":"","sources":["../../applications/application-risk-narrative.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAsBhC,QAAA,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA8E,CAAC;AAClH,eAAe,6BAA6B,CAAC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import mongoose from 'mongoose';
|
|
2
2
|
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
3
|
const applicantionRiskNarrativeSchema = new mongoose.Schema({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true },
|
|
5
|
+
call1StatusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
6
|
+
clientReference: { type: String, default: null },
|
|
7
|
+
call1RequestedOn: { type: String, default: null },
|
|
8
|
+
call2RequestedOn: { type: String, default: null },
|
|
9
|
+
rationaleForRiskRating: { type: String, default: null },
|
|
10
|
+
retryCount: { type: String, default: null },
|
|
11
|
+
riskRating: { type: String, default: null },
|
|
10
12
|
statusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
11
13
|
});
|
|
12
14
|
// Apply workflow plugin to the schema
|
|
@@ -71,6 +71,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
71
71
|
productId: mongoose.Types.ObjectId;
|
|
72
72
|
securityId: mongoose.Types.ObjectId;
|
|
73
73
|
solicitorId: mongoose.Types.ObjectId;
|
|
74
|
+
riskNarrativeId: mongoose.Types.ObjectId;
|
|
74
75
|
directDebitId: mongoose.Types.ObjectId;
|
|
75
76
|
mortgageId: mongoose.Types.ObjectId;
|
|
76
77
|
companyId: mongoose.Types.ObjectId;
|
|
@@ -86,6 +87,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
86
87
|
isReferred: boolean;
|
|
87
88
|
referredByUserId: mongoose.Types.ObjectId;
|
|
88
89
|
referredDate: string;
|
|
90
|
+
referralClearedByUserId: mongoose.Types.ObjectId;
|
|
91
|
+
referralClearedDate: NativeDate;
|
|
89
92
|
brokerTaskCount: number;
|
|
90
93
|
lenderTaskCount: number;
|
|
91
94
|
pendingTaskCountForUser: number;
|
|
@@ -154,6 +157,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
154
157
|
productId: mongoose.Types.ObjectId;
|
|
155
158
|
securityId: mongoose.Types.ObjectId;
|
|
156
159
|
solicitorId: mongoose.Types.ObjectId;
|
|
160
|
+
riskNarrativeId: mongoose.Types.ObjectId;
|
|
157
161
|
directDebitId: mongoose.Types.ObjectId;
|
|
158
162
|
mortgageId: mongoose.Types.ObjectId;
|
|
159
163
|
companyId: mongoose.Types.ObjectId;
|
|
@@ -169,6 +173,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
169
173
|
isReferred: boolean;
|
|
170
174
|
referredByUserId: mongoose.Types.ObjectId;
|
|
171
175
|
referredDate: string;
|
|
176
|
+
referralClearedByUserId: mongoose.Types.ObjectId;
|
|
177
|
+
referralClearedDate: NativeDate;
|
|
172
178
|
brokerTaskCount: number;
|
|
173
179
|
lenderTaskCount: number;
|
|
174
180
|
pendingTaskCountForUser: number;
|
|
@@ -237,6 +243,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
237
243
|
productId: mongoose.Types.ObjectId;
|
|
238
244
|
securityId: mongoose.Types.ObjectId;
|
|
239
245
|
solicitorId: mongoose.Types.ObjectId;
|
|
246
|
+
riskNarrativeId: mongoose.Types.ObjectId;
|
|
240
247
|
directDebitId: mongoose.Types.ObjectId;
|
|
241
248
|
mortgageId: mongoose.Types.ObjectId;
|
|
242
249
|
companyId: mongoose.Types.ObjectId;
|
|
@@ -252,6 +259,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
252
259
|
isReferred: boolean;
|
|
253
260
|
referredByUserId: mongoose.Types.ObjectId;
|
|
254
261
|
referredDate: string;
|
|
262
|
+
referralClearedByUserId: mongoose.Types.ObjectId;
|
|
263
|
+
referralClearedDate: NativeDate;
|
|
255
264
|
brokerTaskCount: number;
|
|
256
265
|
lenderTaskCount: number;
|
|
257
266
|
pendingTaskCountForUser: number;
|
|
@@ -332,6 +341,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
332
341
|
productId: mongoose.Types.ObjectId;
|
|
333
342
|
securityId: mongoose.Types.ObjectId;
|
|
334
343
|
solicitorId: mongoose.Types.ObjectId;
|
|
344
|
+
riskNarrativeId: mongoose.Types.ObjectId;
|
|
335
345
|
directDebitId: mongoose.Types.ObjectId;
|
|
336
346
|
mortgageId: mongoose.Types.ObjectId;
|
|
337
347
|
companyId: mongoose.Types.ObjectId;
|
|
@@ -347,6 +357,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
347
357
|
isReferred: boolean;
|
|
348
358
|
referredByUserId: mongoose.Types.ObjectId;
|
|
349
359
|
referredDate: string;
|
|
360
|
+
referralClearedByUserId: mongoose.Types.ObjectId;
|
|
361
|
+
referralClearedDate: NativeDate;
|
|
350
362
|
brokerTaskCount: number;
|
|
351
363
|
lenderTaskCount: number;
|
|
352
364
|
pendingTaskCountForUser: number;
|
|
@@ -415,6 +427,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
415
427
|
productId: mongoose.Types.ObjectId;
|
|
416
428
|
securityId: mongoose.Types.ObjectId;
|
|
417
429
|
solicitorId: mongoose.Types.ObjectId;
|
|
430
|
+
riskNarrativeId: mongoose.Types.ObjectId;
|
|
418
431
|
directDebitId: mongoose.Types.ObjectId;
|
|
419
432
|
mortgageId: mongoose.Types.ObjectId;
|
|
420
433
|
companyId: mongoose.Types.ObjectId;
|
|
@@ -430,6 +443,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
430
443
|
isReferred: boolean;
|
|
431
444
|
referredByUserId: mongoose.Types.ObjectId;
|
|
432
445
|
referredDate: string;
|
|
446
|
+
referralClearedByUserId: mongoose.Types.ObjectId;
|
|
447
|
+
referralClearedDate: NativeDate;
|
|
433
448
|
brokerTaskCount: number;
|
|
434
449
|
lenderTaskCount: number;
|
|
435
450
|
pendingTaskCountForUser: number;
|
|
@@ -498,6 +513,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
498
513
|
productId: mongoose.Types.ObjectId;
|
|
499
514
|
securityId: mongoose.Types.ObjectId;
|
|
500
515
|
solicitorId: mongoose.Types.ObjectId;
|
|
516
|
+
riskNarrativeId: mongoose.Types.ObjectId;
|
|
501
517
|
directDebitId: mongoose.Types.ObjectId;
|
|
502
518
|
mortgageId: mongoose.Types.ObjectId;
|
|
503
519
|
companyId: mongoose.Types.ObjectId;
|
|
@@ -513,6 +529,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
513
529
|
isReferred: boolean;
|
|
514
530
|
referredByUserId: mongoose.Types.ObjectId;
|
|
515
531
|
referredDate: string;
|
|
532
|
+
referralClearedByUserId: mongoose.Types.ObjectId;
|
|
533
|
+
referralClearedDate: NativeDate;
|
|
516
534
|
brokerTaskCount: number;
|
|
517
535
|
lenderTaskCount: number;
|
|
518
536
|
pendingTaskCountForUser: number;
|
|
@@ -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;AAqQhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmD,CAAC;AAC1E,eAAe,gBAAgB,CAAC"}
|
|
@@ -49,6 +49,7 @@ const applicationSchema = new mongoose.Schema({
|
|
|
49
49
|
product: { type: String },
|
|
50
50
|
securityId: { type: mongoose.Schema.Types.ObjectId, ref: "Security", default: null },
|
|
51
51
|
solicitorId: { type: mongoose.Schema.Types.ObjectId, ref: "Solicitor", default: null },
|
|
52
|
+
riskNarrativeId: { type: mongoose.Schema.Types.ObjectId, ref: "ApplicationRiskNarrative", default: null },
|
|
52
53
|
applicants: [
|
|
53
54
|
{ type: mongoose.Schema.Types.ObjectId, ref: "Applicant", default: null }
|
|
54
55
|
],
|
|
@@ -73,6 +74,8 @@ const applicationSchema = new mongoose.Schema({
|
|
|
73
74
|
isReferred: { type: Boolean, default: false },
|
|
74
75
|
referredByUserId: { type: mongoose.Schema.Types.ObjectId, ref: "User", default: null },
|
|
75
76
|
referredDate: { type: String, default: null },
|
|
77
|
+
referralClearedByUserId: { type: mongoose.Schema.Types.ObjectId, ref: "User", default: null },
|
|
78
|
+
referralClearedDate: { type: Date, default: null },
|
|
76
79
|
brokerTaskCount: {
|
|
77
80
|
type: Number,
|
|
78
81
|
default: 0
|