@dynamatix/gb-schemas 2.3.250 → 2.3.252
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.
|
@@ -31,11 +31,8 @@ declare const WelcomeCallModel: mongoose.Model<{
|
|
|
31
31
|
createdAt: NativeDate;
|
|
32
32
|
updatedAt: NativeDate;
|
|
33
33
|
} & {
|
|
34
|
-
applicationId: mongoose.Types.ObjectId;
|
|
35
34
|
applicantId: mongoose.Types.ObjectId;
|
|
36
35
|
applicantName: string;
|
|
37
|
-
lendingTypeLid: mongoose.Types.ObjectId;
|
|
38
|
-
purchaseTypeLid: mongoose.Types.ObjectId;
|
|
39
36
|
bepReference: string;
|
|
40
37
|
firstCallAttemptDate: string;
|
|
41
38
|
callCompletedDate: string;
|
|
@@ -67,27 +64,27 @@ declare const WelcomeCallModel: mongoose.Model<{
|
|
|
67
64
|
financeSummaryStatusLid: mongoose.Types.ObjectId;
|
|
68
65
|
ShahriahFinanceSummaryStatusLid: mongoose.Types.ObjectId;
|
|
69
66
|
isNextStepsStatus: boolean;
|
|
70
|
-
customerEnglishabilityStatusLid: mongoose.Types.ObjectId;
|
|
71
|
-
brokerNameStatusLid: mongoose.Types.ObjectId;
|
|
72
67
|
accountHolderNameStatusLid: mongoose.Types.ObjectId;
|
|
73
68
|
repaymentAmountStatusLid: mongoose.Types.ObjectId;
|
|
74
69
|
propertyReside: string;
|
|
75
70
|
FinanceTypeStatusLid: mongoose.Types.ObjectId;
|
|
76
|
-
customerSufficientStatusLid: mongoose.Types.ObjectId;
|
|
77
|
-
knowledgeOfApplicationStatusLid: mongoose.Types.ObjectId;
|
|
78
71
|
customerQuestions: string;
|
|
79
72
|
underwriterName: string;
|
|
80
73
|
failedCallDate: string;
|
|
74
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
75
|
+
lendingTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
76
|
+
purchaseTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
77
|
+
customerEnglishabilityStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
78
|
+
brokerNameStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
79
|
+
customerSufficientStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
80
|
+
knowledgeOfApplicationStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
81
81
|
customerFullNameStatusLid?: unknown;
|
|
82
82
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
83
83
|
createdAt: NativeDate;
|
|
84
84
|
updatedAt: NativeDate;
|
|
85
85
|
} & {
|
|
86
|
-
applicationId: mongoose.Types.ObjectId;
|
|
87
86
|
applicantId: mongoose.Types.ObjectId;
|
|
88
87
|
applicantName: string;
|
|
89
|
-
lendingTypeLid: mongoose.Types.ObjectId;
|
|
90
|
-
purchaseTypeLid: mongoose.Types.ObjectId;
|
|
91
88
|
bepReference: string;
|
|
92
89
|
firstCallAttemptDate: string;
|
|
93
90
|
callCompletedDate: string;
|
|
@@ -119,27 +116,27 @@ declare const WelcomeCallModel: mongoose.Model<{
|
|
|
119
116
|
financeSummaryStatusLid: mongoose.Types.ObjectId;
|
|
120
117
|
ShahriahFinanceSummaryStatusLid: mongoose.Types.ObjectId;
|
|
121
118
|
isNextStepsStatus: boolean;
|
|
122
|
-
customerEnglishabilityStatusLid: mongoose.Types.ObjectId;
|
|
123
|
-
brokerNameStatusLid: mongoose.Types.ObjectId;
|
|
124
119
|
accountHolderNameStatusLid: mongoose.Types.ObjectId;
|
|
125
120
|
repaymentAmountStatusLid: mongoose.Types.ObjectId;
|
|
126
121
|
propertyReside: string;
|
|
127
122
|
FinanceTypeStatusLid: mongoose.Types.ObjectId;
|
|
128
|
-
customerSufficientStatusLid: mongoose.Types.ObjectId;
|
|
129
|
-
knowledgeOfApplicationStatusLid: mongoose.Types.ObjectId;
|
|
130
123
|
customerQuestions: string;
|
|
131
124
|
underwriterName: string;
|
|
132
125
|
failedCallDate: string;
|
|
126
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
127
|
+
lendingTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
128
|
+
purchaseTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
129
|
+
customerEnglishabilityStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
130
|
+
brokerNameStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
131
|
+
customerSufficientStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
132
|
+
knowledgeOfApplicationStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
133
133
|
customerFullNameStatusLid?: unknown;
|
|
134
134
|
}, {}> & {
|
|
135
135
|
createdAt: NativeDate;
|
|
136
136
|
updatedAt: NativeDate;
|
|
137
137
|
} & {
|
|
138
|
-
applicationId: mongoose.Types.ObjectId;
|
|
139
138
|
applicantId: mongoose.Types.ObjectId;
|
|
140
139
|
applicantName: string;
|
|
141
|
-
lendingTypeLid: mongoose.Types.ObjectId;
|
|
142
|
-
purchaseTypeLid: mongoose.Types.ObjectId;
|
|
143
140
|
bepReference: string;
|
|
144
141
|
firstCallAttemptDate: string;
|
|
145
142
|
callCompletedDate: string;
|
|
@@ -171,17 +168,20 @@ declare const WelcomeCallModel: mongoose.Model<{
|
|
|
171
168
|
financeSummaryStatusLid: mongoose.Types.ObjectId;
|
|
172
169
|
ShahriahFinanceSummaryStatusLid: mongoose.Types.ObjectId;
|
|
173
170
|
isNextStepsStatus: boolean;
|
|
174
|
-
customerEnglishabilityStatusLid: mongoose.Types.ObjectId;
|
|
175
|
-
brokerNameStatusLid: mongoose.Types.ObjectId;
|
|
176
171
|
accountHolderNameStatusLid: mongoose.Types.ObjectId;
|
|
177
172
|
repaymentAmountStatusLid: mongoose.Types.ObjectId;
|
|
178
173
|
propertyReside: string;
|
|
179
174
|
FinanceTypeStatusLid: mongoose.Types.ObjectId;
|
|
180
|
-
customerSufficientStatusLid: mongoose.Types.ObjectId;
|
|
181
|
-
knowledgeOfApplicationStatusLid: mongoose.Types.ObjectId;
|
|
182
175
|
customerQuestions: string;
|
|
183
176
|
underwriterName: string;
|
|
184
177
|
failedCallDate: string;
|
|
178
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
179
|
+
lendingTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
180
|
+
purchaseTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
181
|
+
customerEnglishabilityStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
182
|
+
brokerNameStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
183
|
+
customerSufficientStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
184
|
+
knowledgeOfApplicationStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
185
185
|
customerFullNameStatusLid?: unknown;
|
|
186
186
|
} & {
|
|
187
187
|
_id: mongoose.Types.ObjectId;
|
|
@@ -199,11 +199,8 @@ declare const WelcomeCallModel: mongoose.Model<{
|
|
|
199
199
|
createdAt: NativeDate;
|
|
200
200
|
updatedAt: NativeDate;
|
|
201
201
|
} & {
|
|
202
|
-
applicationId: mongoose.Types.ObjectId;
|
|
203
202
|
applicantId: mongoose.Types.ObjectId;
|
|
204
203
|
applicantName: string;
|
|
205
|
-
lendingTypeLid: mongoose.Types.ObjectId;
|
|
206
|
-
purchaseTypeLid: mongoose.Types.ObjectId;
|
|
207
204
|
bepReference: string;
|
|
208
205
|
firstCallAttemptDate: string;
|
|
209
206
|
callCompletedDate: string;
|
|
@@ -235,27 +232,27 @@ declare const WelcomeCallModel: mongoose.Model<{
|
|
|
235
232
|
financeSummaryStatusLid: mongoose.Types.ObjectId;
|
|
236
233
|
ShahriahFinanceSummaryStatusLid: mongoose.Types.ObjectId;
|
|
237
234
|
isNextStepsStatus: boolean;
|
|
238
|
-
customerEnglishabilityStatusLid: mongoose.Types.ObjectId;
|
|
239
|
-
brokerNameStatusLid: mongoose.Types.ObjectId;
|
|
240
235
|
accountHolderNameStatusLid: mongoose.Types.ObjectId;
|
|
241
236
|
repaymentAmountStatusLid: mongoose.Types.ObjectId;
|
|
242
237
|
propertyReside: string;
|
|
243
238
|
FinanceTypeStatusLid: mongoose.Types.ObjectId;
|
|
244
|
-
customerSufficientStatusLid: mongoose.Types.ObjectId;
|
|
245
|
-
knowledgeOfApplicationStatusLid: mongoose.Types.ObjectId;
|
|
246
239
|
customerQuestions: string;
|
|
247
240
|
underwriterName: string;
|
|
248
241
|
failedCallDate: string;
|
|
242
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
243
|
+
lendingTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
244
|
+
purchaseTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
245
|
+
customerEnglishabilityStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
246
|
+
brokerNameStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
247
|
+
customerSufficientStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
248
|
+
knowledgeOfApplicationStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
249
249
|
customerFullNameStatusLid?: unknown;
|
|
250
250
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
251
251
|
createdAt: NativeDate;
|
|
252
252
|
updatedAt: NativeDate;
|
|
253
253
|
} & {
|
|
254
|
-
applicationId: mongoose.Types.ObjectId;
|
|
255
254
|
applicantId: mongoose.Types.ObjectId;
|
|
256
255
|
applicantName: string;
|
|
257
|
-
lendingTypeLid: mongoose.Types.ObjectId;
|
|
258
|
-
purchaseTypeLid: mongoose.Types.ObjectId;
|
|
259
256
|
bepReference: string;
|
|
260
257
|
firstCallAttemptDate: string;
|
|
261
258
|
callCompletedDate: string;
|
|
@@ -287,27 +284,27 @@ declare const WelcomeCallModel: mongoose.Model<{
|
|
|
287
284
|
financeSummaryStatusLid: mongoose.Types.ObjectId;
|
|
288
285
|
ShahriahFinanceSummaryStatusLid: mongoose.Types.ObjectId;
|
|
289
286
|
isNextStepsStatus: boolean;
|
|
290
|
-
customerEnglishabilityStatusLid: mongoose.Types.ObjectId;
|
|
291
|
-
brokerNameStatusLid: mongoose.Types.ObjectId;
|
|
292
287
|
accountHolderNameStatusLid: mongoose.Types.ObjectId;
|
|
293
288
|
repaymentAmountStatusLid: mongoose.Types.ObjectId;
|
|
294
289
|
propertyReside: string;
|
|
295
290
|
FinanceTypeStatusLid: mongoose.Types.ObjectId;
|
|
296
|
-
customerSufficientStatusLid: mongoose.Types.ObjectId;
|
|
297
|
-
knowledgeOfApplicationStatusLid: mongoose.Types.ObjectId;
|
|
298
291
|
customerQuestions: string;
|
|
299
292
|
underwriterName: string;
|
|
300
293
|
failedCallDate: string;
|
|
294
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
295
|
+
lendingTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
296
|
+
purchaseTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
297
|
+
customerEnglishabilityStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
298
|
+
brokerNameStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
299
|
+
customerSufficientStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
300
|
+
knowledgeOfApplicationStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
301
301
|
customerFullNameStatusLid?: unknown;
|
|
302
302
|
}>, {}> & mongoose.FlatRecord<{
|
|
303
303
|
createdAt: NativeDate;
|
|
304
304
|
updatedAt: NativeDate;
|
|
305
305
|
} & {
|
|
306
|
-
applicationId: mongoose.Types.ObjectId;
|
|
307
306
|
applicantId: mongoose.Types.ObjectId;
|
|
308
307
|
applicantName: string;
|
|
309
|
-
lendingTypeLid: mongoose.Types.ObjectId;
|
|
310
|
-
purchaseTypeLid: mongoose.Types.ObjectId;
|
|
311
308
|
bepReference: string;
|
|
312
309
|
firstCallAttemptDate: string;
|
|
313
310
|
callCompletedDate: string;
|
|
@@ -339,17 +336,20 @@ declare const WelcomeCallModel: mongoose.Model<{
|
|
|
339
336
|
financeSummaryStatusLid: mongoose.Types.ObjectId;
|
|
340
337
|
ShahriahFinanceSummaryStatusLid: mongoose.Types.ObjectId;
|
|
341
338
|
isNextStepsStatus: boolean;
|
|
342
|
-
customerEnglishabilityStatusLid: mongoose.Types.ObjectId;
|
|
343
|
-
brokerNameStatusLid: mongoose.Types.ObjectId;
|
|
344
339
|
accountHolderNameStatusLid: mongoose.Types.ObjectId;
|
|
345
340
|
repaymentAmountStatusLid: mongoose.Types.ObjectId;
|
|
346
341
|
propertyReside: string;
|
|
347
342
|
FinanceTypeStatusLid: mongoose.Types.ObjectId;
|
|
348
|
-
customerSufficientStatusLid: mongoose.Types.ObjectId;
|
|
349
|
-
knowledgeOfApplicationStatusLid: mongoose.Types.ObjectId;
|
|
350
343
|
customerQuestions: string;
|
|
351
344
|
underwriterName: string;
|
|
352
345
|
failedCallDate: string;
|
|
346
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
347
|
+
lendingTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
348
|
+
purchaseTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
349
|
+
customerEnglishabilityStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
350
|
+
brokerNameStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
351
|
+
customerSufficientStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
352
|
+
knowledgeOfApplicationStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
353
353
|
customerFullNameStatusLid?: unknown;
|
|
354
354
|
}> & {
|
|
355
355
|
_id: mongoose.Types.ObjectId;
|
|
@@ -3,7 +3,7 @@ import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
|
3
3
|
// Welcome Call Schema
|
|
4
4
|
const welcomeCallSchema = new mongoose.Schema({
|
|
5
5
|
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
6
|
-
applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required:
|
|
6
|
+
applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required: false },
|
|
7
7
|
bepReference: {
|
|
8
8
|
type: String,
|
|
9
9
|
description: "BEP reference",
|
|
@@ -132,23 +132,23 @@ const welcomeCallSchema = new mongoose.Schema({
|
|
|
132
132
|
purchaseTypeLid: {
|
|
133
133
|
type: mongoose.Schema.Types.ObjectId,
|
|
134
134
|
ref: "Lookup",
|
|
135
|
-
required:
|
|
135
|
+
required: false
|
|
136
136
|
},
|
|
137
137
|
lendingTypeLid: {
|
|
138
138
|
type: mongoose.Schema.Types.ObjectId,
|
|
139
139
|
ref: "Lookup",
|
|
140
|
-
required:
|
|
140
|
+
required: false
|
|
141
141
|
},
|
|
142
142
|
customerEnglishabilityStatusLid: {
|
|
143
143
|
type: mongoose.Schema.Types.ObjectId,
|
|
144
144
|
ref: "Lookup",
|
|
145
|
-
required:
|
|
145
|
+
required: false,
|
|
146
146
|
description: "Customer's levele of English speaking ability"
|
|
147
147
|
},
|
|
148
148
|
brokerNameStatusLid: {
|
|
149
149
|
type: mongoose.Schema.Types.ObjectId,
|
|
150
150
|
ref: "Lookup",
|
|
151
|
-
required:
|
|
151
|
+
required: false,
|
|
152
152
|
description: "ask applicant to confirm the broker name"
|
|
153
153
|
},
|
|
154
154
|
accountHolderNameStatusLid: {
|
|
@@ -175,13 +175,13 @@ const welcomeCallSchema = new mongoose.Schema({
|
|
|
175
175
|
customerSufficientStatusLid: {
|
|
176
176
|
type: mongoose.Schema.Types.ObjectId,
|
|
177
177
|
ref: "Lookup",
|
|
178
|
-
required:
|
|
178
|
+
required: false,
|
|
179
179
|
description: "customer sufficiently aware of application details",
|
|
180
180
|
},
|
|
181
181
|
knowledgeOfApplicationStatusLid: {
|
|
182
182
|
type: mongoose.Schema.Types.ObjectId,
|
|
183
183
|
ref: "Lookup",
|
|
184
|
-
required:
|
|
184
|
+
required: false,
|
|
185
185
|
description: "applicant knowledge of application details",
|
|
186
186
|
},
|
|
187
187
|
customerQuestions: {
|
|
@@ -68,7 +68,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
68
68
|
isMandateRequested: boolean;
|
|
69
69
|
isMandateApproved: boolean;
|
|
70
70
|
mandateReviewComments: string;
|
|
71
|
-
|
|
71
|
+
mandateRequestedDate: string;
|
|
72
72
|
mandateReviewedDate: string;
|
|
73
73
|
brokerTaskCount: number;
|
|
74
74
|
lenderTaskCount: number;
|
|
@@ -99,8 +99,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
99
99
|
companyId?: mongoose.Types.ObjectId | null | undefined;
|
|
100
100
|
valuationId?: mongoose.Types.ObjectId | null | undefined;
|
|
101
101
|
valuationReportId?: mongoose.Types.ObjectId | null | undefined;
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
mandateRequestedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
103
|
+
mandateReviewedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
104
104
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
105
105
|
createdAt: NativeDate;
|
|
106
106
|
updatedAt: NativeDate;
|
|
@@ -142,7 +142,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
142
142
|
isMandateRequested: boolean;
|
|
143
143
|
isMandateApproved: boolean;
|
|
144
144
|
mandateReviewComments: string;
|
|
145
|
-
|
|
145
|
+
mandateRequestedDate: string;
|
|
146
146
|
mandateReviewedDate: string;
|
|
147
147
|
brokerTaskCount: number;
|
|
148
148
|
lenderTaskCount: number;
|
|
@@ -173,8 +173,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
173
173
|
companyId?: mongoose.Types.ObjectId | null | undefined;
|
|
174
174
|
valuationId?: mongoose.Types.ObjectId | null | undefined;
|
|
175
175
|
valuationReportId?: mongoose.Types.ObjectId | null | undefined;
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
mandateRequestedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
177
|
+
mandateReviewedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
178
178
|
}, {}> & {
|
|
179
179
|
createdAt: NativeDate;
|
|
180
180
|
updatedAt: NativeDate;
|
|
@@ -216,7 +216,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
216
216
|
isMandateRequested: boolean;
|
|
217
217
|
isMandateApproved: boolean;
|
|
218
218
|
mandateReviewComments: string;
|
|
219
|
-
|
|
219
|
+
mandateRequestedDate: string;
|
|
220
220
|
mandateReviewedDate: string;
|
|
221
221
|
brokerTaskCount: number;
|
|
222
222
|
lenderTaskCount: number;
|
|
@@ -247,8 +247,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
247
247
|
companyId?: mongoose.Types.ObjectId | null | undefined;
|
|
248
248
|
valuationId?: mongoose.Types.ObjectId | null | undefined;
|
|
249
249
|
valuationReportId?: mongoose.Types.ObjectId | null | undefined;
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
mandateRequestedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
251
|
+
mandateReviewedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
252
252
|
} & {
|
|
253
253
|
_id: mongoose.Types.ObjectId;
|
|
254
254
|
} & {
|
|
@@ -302,7 +302,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
302
302
|
isMandateRequested: boolean;
|
|
303
303
|
isMandateApproved: boolean;
|
|
304
304
|
mandateReviewComments: string;
|
|
305
|
-
|
|
305
|
+
mandateRequestedDate: string;
|
|
306
306
|
mandateReviewedDate: string;
|
|
307
307
|
brokerTaskCount: number;
|
|
308
308
|
lenderTaskCount: number;
|
|
@@ -333,8 +333,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
333
333
|
companyId?: mongoose.Types.ObjectId | null | undefined;
|
|
334
334
|
valuationId?: mongoose.Types.ObjectId | null | undefined;
|
|
335
335
|
valuationReportId?: mongoose.Types.ObjectId | null | undefined;
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
mandateRequestedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
337
|
+
mandateReviewedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
338
338
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
339
339
|
createdAt: NativeDate;
|
|
340
340
|
updatedAt: NativeDate;
|
|
@@ -376,7 +376,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
376
376
|
isMandateRequested: boolean;
|
|
377
377
|
isMandateApproved: boolean;
|
|
378
378
|
mandateReviewComments: string;
|
|
379
|
-
|
|
379
|
+
mandateRequestedDate: string;
|
|
380
380
|
mandateReviewedDate: string;
|
|
381
381
|
brokerTaskCount: number;
|
|
382
382
|
lenderTaskCount: number;
|
|
@@ -407,8 +407,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
407
407
|
companyId?: mongoose.Types.ObjectId | null | undefined;
|
|
408
408
|
valuationId?: mongoose.Types.ObjectId | null | undefined;
|
|
409
409
|
valuationReportId?: mongoose.Types.ObjectId | null | undefined;
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
mandateRequestedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
411
|
+
mandateReviewedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
412
412
|
}>, {}> & mongoose.FlatRecord<{
|
|
413
413
|
createdAt: NativeDate;
|
|
414
414
|
updatedAt: NativeDate;
|
|
@@ -450,7 +450,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
450
450
|
isMandateRequested: boolean;
|
|
451
451
|
isMandateApproved: boolean;
|
|
452
452
|
mandateReviewComments: string;
|
|
453
|
-
|
|
453
|
+
mandateRequestedDate: string;
|
|
454
454
|
mandateReviewedDate: string;
|
|
455
455
|
brokerTaskCount: number;
|
|
456
456
|
lenderTaskCount: number;
|
|
@@ -481,8 +481,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
481
481
|
companyId?: mongoose.Types.ObjectId | null | undefined;
|
|
482
482
|
valuationId?: mongoose.Types.ObjectId | null | undefined;
|
|
483
483
|
valuationReportId?: mongoose.Types.ObjectId | null | undefined;
|
|
484
|
-
|
|
485
|
-
|
|
484
|
+
mandateRequestedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
485
|
+
mandateReviewedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
486
486
|
}> & {
|
|
487
487
|
_id: mongoose.Types.ObjectId;
|
|
488
488
|
} & {
|
|
@@ -59,9 +59,9 @@ const applicationSchema = new mongoose.Schema({
|
|
|
59
59
|
isMandateRequested: { type: Boolean, default: false },
|
|
60
60
|
isMandateApproved: { type: Boolean, default: null },
|
|
61
61
|
mandateReviewComments: { type: String, default: "" },
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
mandateRequestedByUserId: { type: mongoose.Schema.Types.ObjectId, ref: "User" },
|
|
63
|
+
mandateRequestedDate: { type: String, default: null },
|
|
64
|
+
mandateReviewedByUserId: { type: mongoose.Schema.Types.ObjectId, ref: "User" },
|
|
65
65
|
mandateReviewedDate: { type: String, default: null },
|
|
66
66
|
brokerTaskCount: {
|
|
67
67
|
type: Number,
|