@dynamatix/gb-schemas 2.3.247 → 2.3.248

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.
@@ -40,7 +40,6 @@ declare const WelcomeCallModel: mongoose.Model<{
40
40
  firstCallAttemptDate: string;
41
41
  callCompletedDate: string;
42
42
  failedCallReason: string;
43
- customerFullNameStatusLid: mongoose.Types.ObjectId;
44
43
  customerDOBStatusLid: mongoose.Types.ObjectId;
45
44
  residentialAddressStatusLid: mongoose.Types.ObjectId;
46
45
  contactNumberStatusLid: mongoose.Types.ObjectId;
@@ -79,6 +78,7 @@ declare const WelcomeCallModel: mongoose.Model<{
79
78
  customerQuestions: string;
80
79
  underwriterName: string;
81
80
  failedCallDate: string;
81
+ customerFullNameStatusLid?: unknown;
82
82
  }, {}, {}, {}, mongoose.Document<unknown, {}, {
83
83
  createdAt: NativeDate;
84
84
  updatedAt: NativeDate;
@@ -92,7 +92,6 @@ declare const WelcomeCallModel: mongoose.Model<{
92
92
  firstCallAttemptDate: string;
93
93
  callCompletedDate: string;
94
94
  failedCallReason: string;
95
- customerFullNameStatusLid: mongoose.Types.ObjectId;
96
95
  customerDOBStatusLid: mongoose.Types.ObjectId;
97
96
  residentialAddressStatusLid: mongoose.Types.ObjectId;
98
97
  contactNumberStatusLid: mongoose.Types.ObjectId;
@@ -131,6 +130,7 @@ declare const WelcomeCallModel: mongoose.Model<{
131
130
  customerQuestions: string;
132
131
  underwriterName: string;
133
132
  failedCallDate: string;
133
+ customerFullNameStatusLid?: unknown;
134
134
  }, {}> & {
135
135
  createdAt: NativeDate;
136
136
  updatedAt: NativeDate;
@@ -144,7 +144,6 @@ declare const WelcomeCallModel: mongoose.Model<{
144
144
  firstCallAttemptDate: string;
145
145
  callCompletedDate: string;
146
146
  failedCallReason: string;
147
- customerFullNameStatusLid: mongoose.Types.ObjectId;
148
147
  customerDOBStatusLid: mongoose.Types.ObjectId;
149
148
  residentialAddressStatusLid: mongoose.Types.ObjectId;
150
149
  contactNumberStatusLid: mongoose.Types.ObjectId;
@@ -183,6 +182,7 @@ declare const WelcomeCallModel: mongoose.Model<{
183
182
  customerQuestions: string;
184
183
  underwriterName: string;
185
184
  failedCallDate: string;
185
+ customerFullNameStatusLid?: unknown;
186
186
  } & {
187
187
  _id: mongoose.Types.ObjectId;
188
188
  } & {
@@ -208,7 +208,6 @@ declare const WelcomeCallModel: mongoose.Model<{
208
208
  firstCallAttemptDate: string;
209
209
  callCompletedDate: string;
210
210
  failedCallReason: string;
211
- customerFullNameStatusLid: mongoose.Types.ObjectId;
212
211
  customerDOBStatusLid: mongoose.Types.ObjectId;
213
212
  residentialAddressStatusLid: mongoose.Types.ObjectId;
214
213
  contactNumberStatusLid: mongoose.Types.ObjectId;
@@ -247,6 +246,7 @@ declare const WelcomeCallModel: mongoose.Model<{
247
246
  customerQuestions: string;
248
247
  underwriterName: string;
249
248
  failedCallDate: string;
249
+ customerFullNameStatusLid?: unknown;
250
250
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
251
251
  createdAt: NativeDate;
252
252
  updatedAt: NativeDate;
@@ -260,7 +260,6 @@ declare const WelcomeCallModel: mongoose.Model<{
260
260
  firstCallAttemptDate: string;
261
261
  callCompletedDate: string;
262
262
  failedCallReason: string;
263
- customerFullNameStatusLid: mongoose.Types.ObjectId;
264
263
  customerDOBStatusLid: mongoose.Types.ObjectId;
265
264
  residentialAddressStatusLid: mongoose.Types.ObjectId;
266
265
  contactNumberStatusLid: mongoose.Types.ObjectId;
@@ -299,6 +298,7 @@ declare const WelcomeCallModel: mongoose.Model<{
299
298
  customerQuestions: string;
300
299
  underwriterName: string;
301
300
  failedCallDate: string;
301
+ customerFullNameStatusLid?: unknown;
302
302
  }>, {}> & mongoose.FlatRecord<{
303
303
  createdAt: NativeDate;
304
304
  updatedAt: NativeDate;
@@ -312,7 +312,6 @@ declare const WelcomeCallModel: mongoose.Model<{
312
312
  firstCallAttemptDate: string;
313
313
  callCompletedDate: string;
314
314
  failedCallReason: string;
315
- customerFullNameStatusLid: mongoose.Types.ObjectId;
316
315
  customerDOBStatusLid: mongoose.Types.ObjectId;
317
316
  residentialAddressStatusLid: mongoose.Types.ObjectId;
318
317
  contactNumberStatusLid: mongoose.Types.ObjectId;
@@ -351,6 +350,7 @@ declare const WelcomeCallModel: mongoose.Model<{
351
350
  customerQuestions: string;
352
351
  underwriterName: string;
353
352
  failedCallDate: string;
353
+ customerFullNameStatusLid?: unknown;
354
354
  }> & {
355
355
  _id: mongoose.Types.ObjectId;
356
356
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"applicant-welcome-call.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-welcome-call.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAwYhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA4D,CAAC;AAEnF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"applicant-welcome-call.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-welcome-call.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAqYhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA4D,CAAC;AAEnF,eAAe,gBAAgB,CAAC"}
@@ -29,10 +29,7 @@ const welcomeCallSchema = new mongoose.Schema({
29
29
  description: "Failed Call Reason",
30
30
  default: null,
31
31
  },
32
- customerFullNameStatusLid: {
33
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
34
- description: "Ask the applicant to confirm the account holder and name of bank"
35
- },
32
+ customerFullNameStatusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
36
33
  customerDOBStatusLid: {
37
34
  type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null
38
35
  },
@@ -304,14 +301,14 @@ welcomeCallSchema.virtual('accountHolderAndBank').get(function () {
304
301
  const application = this.applicantId.applicationId;
305
302
  let accountHolderName = '';
306
303
  let institutionName = '';
307
- // Get solicitor information
308
- if (application && application.solicitorId && typeof application.solicitorId === 'object') {
309
- const solicitor = application.solicitorId;
310
- if (solicitor.nameOfAccountHolder) {
311
- accountHolderName = solicitor.nameOfAccountHolder;
304
+ // Get direct debit information
305
+ if (application && application.directDebitId && typeof application.directDebitId === 'object') {
306
+ const directDebit = application.directDebitId;
307
+ if (directDebit.nameOfAccountHolder) {
308
+ accountHolderName = directDebit.nameOfAccountHolder;
312
309
  }
313
- if (solicitor.institution) {
314
- institutionName = solicitor.institution;
310
+ if (directDebit.institution) {
311
+ institutionName = directDebit.institution;
315
312
  }
316
313
  }
317
314
  // Combine in format "account holder / institution"
@@ -93,6 +93,7 @@ declare const ApplicationModel: mongoose.Model<{
93
93
  mortgageId?: mongoose.Types.ObjectId | null | undefined;
94
94
  companyId?: mongoose.Types.ObjectId | null | undefined;
95
95
  valuationId?: mongoose.Types.ObjectId | null | undefined;
96
+ valuationReportId?: mongoose.Types.ObjectId | null | undefined;
96
97
  }, {}, {}, {}, mongoose.Document<unknown, {}, {
97
98
  createdAt: NativeDate;
98
99
  updatedAt: NativeDate;
@@ -159,6 +160,7 @@ declare const ApplicationModel: mongoose.Model<{
159
160
  mortgageId?: mongoose.Types.ObjectId | null | undefined;
160
161
  companyId?: mongoose.Types.ObjectId | null | undefined;
161
162
  valuationId?: mongoose.Types.ObjectId | null | undefined;
163
+ valuationReportId?: mongoose.Types.ObjectId | null | undefined;
162
164
  }, {}> & {
163
165
  createdAt: NativeDate;
164
166
  updatedAt: NativeDate;
@@ -225,6 +227,7 @@ declare const ApplicationModel: mongoose.Model<{
225
227
  mortgageId?: mongoose.Types.ObjectId | null | undefined;
226
228
  companyId?: mongoose.Types.ObjectId | null | undefined;
227
229
  valuationId?: mongoose.Types.ObjectId | null | undefined;
230
+ valuationReportId?: mongoose.Types.ObjectId | null | undefined;
228
231
  } & {
229
232
  _id: mongoose.Types.ObjectId;
230
233
  } & {
@@ -303,6 +306,7 @@ declare const ApplicationModel: mongoose.Model<{
303
306
  mortgageId?: mongoose.Types.ObjectId | null | undefined;
304
307
  companyId?: mongoose.Types.ObjectId | null | undefined;
305
308
  valuationId?: mongoose.Types.ObjectId | null | undefined;
309
+ valuationReportId?: mongoose.Types.ObjectId | null | undefined;
306
310
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
307
311
  createdAt: NativeDate;
308
312
  updatedAt: NativeDate;
@@ -369,6 +373,7 @@ declare const ApplicationModel: mongoose.Model<{
369
373
  mortgageId?: mongoose.Types.ObjectId | null | undefined;
370
374
  companyId?: mongoose.Types.ObjectId | null | undefined;
371
375
  valuationId?: mongoose.Types.ObjectId | null | undefined;
376
+ valuationReportId?: mongoose.Types.ObjectId | null | undefined;
372
377
  }>, {}> & mongoose.FlatRecord<{
373
378
  createdAt: NativeDate;
374
379
  updatedAt: NativeDate;
@@ -435,6 +440,7 @@ declare const ApplicationModel: mongoose.Model<{
435
440
  mortgageId?: mongoose.Types.ObjectId | null | undefined;
436
441
  companyId?: mongoose.Types.ObjectId | null | undefined;
437
442
  valuationId?: mongoose.Types.ObjectId | null | undefined;
443
+ valuationReportId?: mongoose.Types.ObjectId | null | undefined;
438
444
  }> & {
439
445
  _id: mongoose.Types.ObjectId;
440
446
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"application.model.d.ts","sourceRoot":"","sources":["../../applications/application.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAgOhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmD,CAAC;AAC1E,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"application.model.d.ts","sourceRoot":"","sources":["../../applications/application.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAiOhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmD,CAAC;AAC1E,eAAe,gBAAgB,CAAC"}
@@ -55,6 +55,7 @@ const applicationSchema = new mongoose.Schema({
55
55
  currentApprivoAuditId: Number,
56
56
  propertyIds: [{ type: mongoose.Schema.Types.ObjectId, ref: "Property" }],
57
57
  valuationId: { type: mongoose.Schema.Types.ObjectId, ref: "ApplicationValuation" },
58
+ valuationReportId: { type: mongoose.Schema.Types.ObjectId, ref: "ApplicationValuationReport" },
58
59
  brokerTaskCount: {
59
60
  type: Number,
60
61
  default: 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.3.247",
3
+ "version": "2.3.248",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",