@dynamatix/gb-schemas 2.17.7 → 2.17.10

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.
@@ -0,0 +1,44 @@
1
+ /// <reference path="../value-objects/pound.d.ts" />
2
+ /// <reference path="../value-objects/account-number.d.ts" />
3
+ /// <reference path="../value-objects/sort-code.d.ts" />
4
+ /// <reference types="mongoose/types/aggregate" />
5
+ /// <reference types="mongoose/types/callback" />
6
+ /// <reference types="mongoose/types/collection" />
7
+ /// <reference types="mongoose/types/connection" />
8
+ /// <reference types="mongoose/types/cursor" />
9
+ /// <reference types="mongoose/types/document" />
10
+ /// <reference types="mongoose/types/error" />
11
+ /// <reference types="mongoose/types/expressions" />
12
+ /// <reference types="mongoose/types/helpers" />
13
+ /// <reference types="mongoose/types/middlewares" />
14
+ /// <reference types="mongoose/types/indexes" />
15
+ /// <reference types="mongoose/types/models" />
16
+ /// <reference types="mongoose/types/mongooseoptions" />
17
+ /// <reference types="mongoose/types/pipelinestage" />
18
+ /// <reference types="mongoose/types/populate" />
19
+ /// <reference types="mongoose/types/query" />
20
+ /// <reference types="mongoose/types/schemaoptions" />
21
+ /// <reference types="mongoose/types/session" />
22
+ /// <reference types="mongoose/types/types" />
23
+ /// <reference types="mongoose/types/utility" />
24
+ /// <reference types="mongoose/types/validation" />
25
+ /// <reference types="mongoose/types/virtuals" />
26
+ /// <reference types="mongoose/types/schematypes" />
27
+ /// <reference types="mongoose/types/inferschematype" />
28
+ /// <reference types="mongoose/types/inferrawdoctype" />
29
+ import { Types } from "mongoose";
30
+ import { IBaseType } from "../types/base.types";
31
+ export default interface IApplicantPropertyIncome extends IBaseType {
32
+ applicantId: Types.ObjectId;
33
+ yearEnd1: number;
34
+ netProfitAfterTax1: number;
35
+ netProfit1: number;
36
+ yearEnd2: number;
37
+ netProfitAfterTax2: number;
38
+ netProfit2: number;
39
+ yearEnd3: number;
40
+ netProfitAfterTax3: number;
41
+ netProfit3: number;
42
+ incomeSourceId?: string | null;
43
+ }
44
+ //# sourceMappingURL=applicant-property-income.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicant-property-income.type.d.ts","sourceRoot":"","sources":["../../applicants/applicant-property-income.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,CAAC,OAAO,WAAW,wBAAyB,SAAQ,SAAS;IAC/D,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -75,42 +75,6 @@ declare const WelcomeCallModel: mongoose.Model<{
75
75
  underwriterName: string;
76
76
  failedCallDate: string;
77
77
  isAlgbraAccountRequested: boolean;
78
- shariahAwarenessLid: mongoose.Types.ObjectId;
79
- shariahUnderstandingLid: mongoose.Types.ObjectId;
80
- shariahExplanationProvidedLid: mongoose.Types.ObjectId;
81
- cuPropertyTypeLid: mongoose.Types.ObjectId;
82
- cuBedroomsLid: mongoose.Types.ObjectId;
83
- cuSecurityAddressLid: mongoose.Types.ObjectId;
84
- cuNewBuildLid: mongoose.Types.ObjectId;
85
- cuPropertyDetailsOutcomeLid: mongoose.Types.ObjectId;
86
- cuPurposeFinanceTypeLid: mongoose.Types.ObjectId;
87
- cuPurposeProposedTenantsLid: mongoose.Types.ObjectId;
88
- cuPurposeOutcomeLid: mongoose.Types.ObjectId;
89
- cuFsPurchasePriceLid: mongoose.Types.ObjectId;
90
- cuFsFinanceAmountLid: mongoose.Types.ObjectId;
91
- cuFsDepositLid: mongoose.Types.ObjectId;
92
- cuFsExistingProviderLid: mongoose.Types.ObjectId;
93
- cuFsOutstandingBalanceLid: mongoose.Types.ObjectId;
94
- cuFsRefinancePurposeLid: mongoose.Types.ObjectId;
95
- cuFsCapitalRaisingLid: mongoose.Types.ObjectId;
96
- cuFsBulletPaymentLid: mongoose.Types.ObjectId;
97
- cuFsOutcomeLid: mongoose.Types.ObjectId;
98
- cuRepaymentTypeLid: mongoose.Types.ObjectId;
99
- cuExitStrategyLid: mongoose.Types.ObjectId;
100
- cuRepaymentOutcomeLid: mongoose.Types.ObjectId;
101
- cuPrProductLid: mongoose.Types.ObjectId;
102
- cuPrFinanceTermLid: mongoose.Types.ObjectId;
103
- cuPrMonthlyPaymentLid: mongoose.Types.ObjectId;
104
- cuPrInitialRateLid: mongoose.Types.ObjectId;
105
- cuPrReversionRateLid: mongoose.Types.ObjectId;
106
- cuPrRentalIncomeLid: mongoose.Types.ObjectId;
107
- cuPrOutcomeLid: mongoose.Types.ObjectId;
108
- cuRisksOutcomeLid: mongoose.Types.ObjectId;
109
- vulnerabilityCommunicationAdjustments: string;
110
- underwriterQuestion: string;
111
- customerResponse: string;
112
- confirmUnderstandingQuestions: string;
113
- proceedDecisionLid: mongoose.Types.ObjectId;
114
78
  applicationId?: mongoose.Types.ObjectId | null | undefined;
115
79
  lendingTypeLid?: mongoose.Types.ObjectId | null | undefined;
116
80
  purchaseTypeLid?: mongoose.Types.ObjectId | null | undefined;
@@ -167,42 +131,6 @@ declare const WelcomeCallModel: mongoose.Model<{
167
131
  underwriterName: string;
168
132
  failedCallDate: string;
169
133
  isAlgbraAccountRequested: boolean;
170
- shariahAwarenessLid: mongoose.Types.ObjectId;
171
- shariahUnderstandingLid: mongoose.Types.ObjectId;
172
- shariahExplanationProvidedLid: mongoose.Types.ObjectId;
173
- cuPropertyTypeLid: mongoose.Types.ObjectId;
174
- cuBedroomsLid: mongoose.Types.ObjectId;
175
- cuSecurityAddressLid: mongoose.Types.ObjectId;
176
- cuNewBuildLid: mongoose.Types.ObjectId;
177
- cuPropertyDetailsOutcomeLid: mongoose.Types.ObjectId;
178
- cuPurposeFinanceTypeLid: mongoose.Types.ObjectId;
179
- cuPurposeProposedTenantsLid: mongoose.Types.ObjectId;
180
- cuPurposeOutcomeLid: mongoose.Types.ObjectId;
181
- cuFsPurchasePriceLid: mongoose.Types.ObjectId;
182
- cuFsFinanceAmountLid: mongoose.Types.ObjectId;
183
- cuFsDepositLid: mongoose.Types.ObjectId;
184
- cuFsExistingProviderLid: mongoose.Types.ObjectId;
185
- cuFsOutstandingBalanceLid: mongoose.Types.ObjectId;
186
- cuFsRefinancePurposeLid: mongoose.Types.ObjectId;
187
- cuFsCapitalRaisingLid: mongoose.Types.ObjectId;
188
- cuFsBulletPaymentLid: mongoose.Types.ObjectId;
189
- cuFsOutcomeLid: mongoose.Types.ObjectId;
190
- cuRepaymentTypeLid: mongoose.Types.ObjectId;
191
- cuExitStrategyLid: mongoose.Types.ObjectId;
192
- cuRepaymentOutcomeLid: mongoose.Types.ObjectId;
193
- cuPrProductLid: mongoose.Types.ObjectId;
194
- cuPrFinanceTermLid: mongoose.Types.ObjectId;
195
- cuPrMonthlyPaymentLid: mongoose.Types.ObjectId;
196
- cuPrInitialRateLid: mongoose.Types.ObjectId;
197
- cuPrReversionRateLid: mongoose.Types.ObjectId;
198
- cuPrRentalIncomeLid: mongoose.Types.ObjectId;
199
- cuPrOutcomeLid: mongoose.Types.ObjectId;
200
- cuRisksOutcomeLid: mongoose.Types.ObjectId;
201
- vulnerabilityCommunicationAdjustments: string;
202
- underwriterQuestion: string;
203
- customerResponse: string;
204
- confirmUnderstandingQuestions: string;
205
- proceedDecisionLid: mongoose.Types.ObjectId;
206
134
  applicationId?: mongoose.Types.ObjectId | null | undefined;
207
135
  lendingTypeLid?: mongoose.Types.ObjectId | null | undefined;
208
136
  purchaseTypeLid?: mongoose.Types.ObjectId | null | undefined;
@@ -259,42 +187,6 @@ declare const WelcomeCallModel: mongoose.Model<{
259
187
  underwriterName: string;
260
188
  failedCallDate: string;
261
189
  isAlgbraAccountRequested: boolean;
262
- shariahAwarenessLid: mongoose.Types.ObjectId;
263
- shariahUnderstandingLid: mongoose.Types.ObjectId;
264
- shariahExplanationProvidedLid: mongoose.Types.ObjectId;
265
- cuPropertyTypeLid: mongoose.Types.ObjectId;
266
- cuBedroomsLid: mongoose.Types.ObjectId;
267
- cuSecurityAddressLid: mongoose.Types.ObjectId;
268
- cuNewBuildLid: mongoose.Types.ObjectId;
269
- cuPropertyDetailsOutcomeLid: mongoose.Types.ObjectId;
270
- cuPurposeFinanceTypeLid: mongoose.Types.ObjectId;
271
- cuPurposeProposedTenantsLid: mongoose.Types.ObjectId;
272
- cuPurposeOutcomeLid: mongoose.Types.ObjectId;
273
- cuFsPurchasePriceLid: mongoose.Types.ObjectId;
274
- cuFsFinanceAmountLid: mongoose.Types.ObjectId;
275
- cuFsDepositLid: mongoose.Types.ObjectId;
276
- cuFsExistingProviderLid: mongoose.Types.ObjectId;
277
- cuFsOutstandingBalanceLid: mongoose.Types.ObjectId;
278
- cuFsRefinancePurposeLid: mongoose.Types.ObjectId;
279
- cuFsCapitalRaisingLid: mongoose.Types.ObjectId;
280
- cuFsBulletPaymentLid: mongoose.Types.ObjectId;
281
- cuFsOutcomeLid: mongoose.Types.ObjectId;
282
- cuRepaymentTypeLid: mongoose.Types.ObjectId;
283
- cuExitStrategyLid: mongoose.Types.ObjectId;
284
- cuRepaymentOutcomeLid: mongoose.Types.ObjectId;
285
- cuPrProductLid: mongoose.Types.ObjectId;
286
- cuPrFinanceTermLid: mongoose.Types.ObjectId;
287
- cuPrMonthlyPaymentLid: mongoose.Types.ObjectId;
288
- cuPrInitialRateLid: mongoose.Types.ObjectId;
289
- cuPrReversionRateLid: mongoose.Types.ObjectId;
290
- cuPrRentalIncomeLid: mongoose.Types.ObjectId;
291
- cuPrOutcomeLid: mongoose.Types.ObjectId;
292
- cuRisksOutcomeLid: mongoose.Types.ObjectId;
293
- vulnerabilityCommunicationAdjustments: string;
294
- underwriterQuestion: string;
295
- customerResponse: string;
296
- confirmUnderstandingQuestions: string;
297
- proceedDecisionLid: mongoose.Types.ObjectId;
298
190
  applicationId?: mongoose.Types.ObjectId | null | undefined;
299
191
  lendingTypeLid?: mongoose.Types.ObjectId | null | undefined;
300
192
  purchaseTypeLid?: mongoose.Types.ObjectId | null | undefined;
@@ -363,42 +255,6 @@ declare const WelcomeCallModel: mongoose.Model<{
363
255
  underwriterName: string;
364
256
  failedCallDate: string;
365
257
  isAlgbraAccountRequested: boolean;
366
- shariahAwarenessLid: mongoose.Types.ObjectId;
367
- shariahUnderstandingLid: mongoose.Types.ObjectId;
368
- shariahExplanationProvidedLid: mongoose.Types.ObjectId;
369
- cuPropertyTypeLid: mongoose.Types.ObjectId;
370
- cuBedroomsLid: mongoose.Types.ObjectId;
371
- cuSecurityAddressLid: mongoose.Types.ObjectId;
372
- cuNewBuildLid: mongoose.Types.ObjectId;
373
- cuPropertyDetailsOutcomeLid: mongoose.Types.ObjectId;
374
- cuPurposeFinanceTypeLid: mongoose.Types.ObjectId;
375
- cuPurposeProposedTenantsLid: mongoose.Types.ObjectId;
376
- cuPurposeOutcomeLid: mongoose.Types.ObjectId;
377
- cuFsPurchasePriceLid: mongoose.Types.ObjectId;
378
- cuFsFinanceAmountLid: mongoose.Types.ObjectId;
379
- cuFsDepositLid: mongoose.Types.ObjectId;
380
- cuFsExistingProviderLid: mongoose.Types.ObjectId;
381
- cuFsOutstandingBalanceLid: mongoose.Types.ObjectId;
382
- cuFsRefinancePurposeLid: mongoose.Types.ObjectId;
383
- cuFsCapitalRaisingLid: mongoose.Types.ObjectId;
384
- cuFsBulletPaymentLid: mongoose.Types.ObjectId;
385
- cuFsOutcomeLid: mongoose.Types.ObjectId;
386
- cuRepaymentTypeLid: mongoose.Types.ObjectId;
387
- cuExitStrategyLid: mongoose.Types.ObjectId;
388
- cuRepaymentOutcomeLid: mongoose.Types.ObjectId;
389
- cuPrProductLid: mongoose.Types.ObjectId;
390
- cuPrFinanceTermLid: mongoose.Types.ObjectId;
391
- cuPrMonthlyPaymentLid: mongoose.Types.ObjectId;
392
- cuPrInitialRateLid: mongoose.Types.ObjectId;
393
- cuPrReversionRateLid: mongoose.Types.ObjectId;
394
- cuPrRentalIncomeLid: mongoose.Types.ObjectId;
395
- cuPrOutcomeLid: mongoose.Types.ObjectId;
396
- cuRisksOutcomeLid: mongoose.Types.ObjectId;
397
- vulnerabilityCommunicationAdjustments: string;
398
- underwriterQuestion: string;
399
- customerResponse: string;
400
- confirmUnderstandingQuestions: string;
401
- proceedDecisionLid: mongoose.Types.ObjectId;
402
258
  applicationId?: mongoose.Types.ObjectId | null | undefined;
403
259
  lendingTypeLid?: mongoose.Types.ObjectId | null | undefined;
404
260
  purchaseTypeLid?: mongoose.Types.ObjectId | null | undefined;
@@ -455,42 +311,6 @@ declare const WelcomeCallModel: mongoose.Model<{
455
311
  underwriterName: string;
456
312
  failedCallDate: string;
457
313
  isAlgbraAccountRequested: boolean;
458
- shariahAwarenessLid: mongoose.Types.ObjectId;
459
- shariahUnderstandingLid: mongoose.Types.ObjectId;
460
- shariahExplanationProvidedLid: mongoose.Types.ObjectId;
461
- cuPropertyTypeLid: mongoose.Types.ObjectId;
462
- cuBedroomsLid: mongoose.Types.ObjectId;
463
- cuSecurityAddressLid: mongoose.Types.ObjectId;
464
- cuNewBuildLid: mongoose.Types.ObjectId;
465
- cuPropertyDetailsOutcomeLid: mongoose.Types.ObjectId;
466
- cuPurposeFinanceTypeLid: mongoose.Types.ObjectId;
467
- cuPurposeProposedTenantsLid: mongoose.Types.ObjectId;
468
- cuPurposeOutcomeLid: mongoose.Types.ObjectId;
469
- cuFsPurchasePriceLid: mongoose.Types.ObjectId;
470
- cuFsFinanceAmountLid: mongoose.Types.ObjectId;
471
- cuFsDepositLid: mongoose.Types.ObjectId;
472
- cuFsExistingProviderLid: mongoose.Types.ObjectId;
473
- cuFsOutstandingBalanceLid: mongoose.Types.ObjectId;
474
- cuFsRefinancePurposeLid: mongoose.Types.ObjectId;
475
- cuFsCapitalRaisingLid: mongoose.Types.ObjectId;
476
- cuFsBulletPaymentLid: mongoose.Types.ObjectId;
477
- cuFsOutcomeLid: mongoose.Types.ObjectId;
478
- cuRepaymentTypeLid: mongoose.Types.ObjectId;
479
- cuExitStrategyLid: mongoose.Types.ObjectId;
480
- cuRepaymentOutcomeLid: mongoose.Types.ObjectId;
481
- cuPrProductLid: mongoose.Types.ObjectId;
482
- cuPrFinanceTermLid: mongoose.Types.ObjectId;
483
- cuPrMonthlyPaymentLid: mongoose.Types.ObjectId;
484
- cuPrInitialRateLid: mongoose.Types.ObjectId;
485
- cuPrReversionRateLid: mongoose.Types.ObjectId;
486
- cuPrRentalIncomeLid: mongoose.Types.ObjectId;
487
- cuPrOutcomeLid: mongoose.Types.ObjectId;
488
- cuRisksOutcomeLid: mongoose.Types.ObjectId;
489
- vulnerabilityCommunicationAdjustments: string;
490
- underwriterQuestion: string;
491
- customerResponse: string;
492
- confirmUnderstandingQuestions: string;
493
- proceedDecisionLid: mongoose.Types.ObjectId;
494
314
  applicationId?: mongoose.Types.ObjectId | null | undefined;
495
315
  lendingTypeLid?: mongoose.Types.ObjectId | null | undefined;
496
316
  purchaseTypeLid?: mongoose.Types.ObjectId | null | undefined;
@@ -547,42 +367,6 @@ declare const WelcomeCallModel: mongoose.Model<{
547
367
  underwriterName: string;
548
368
  failedCallDate: string;
549
369
  isAlgbraAccountRequested: boolean;
550
- shariahAwarenessLid: mongoose.Types.ObjectId;
551
- shariahUnderstandingLid: mongoose.Types.ObjectId;
552
- shariahExplanationProvidedLid: mongoose.Types.ObjectId;
553
- cuPropertyTypeLid: mongoose.Types.ObjectId;
554
- cuBedroomsLid: mongoose.Types.ObjectId;
555
- cuSecurityAddressLid: mongoose.Types.ObjectId;
556
- cuNewBuildLid: mongoose.Types.ObjectId;
557
- cuPropertyDetailsOutcomeLid: mongoose.Types.ObjectId;
558
- cuPurposeFinanceTypeLid: mongoose.Types.ObjectId;
559
- cuPurposeProposedTenantsLid: mongoose.Types.ObjectId;
560
- cuPurposeOutcomeLid: mongoose.Types.ObjectId;
561
- cuFsPurchasePriceLid: mongoose.Types.ObjectId;
562
- cuFsFinanceAmountLid: mongoose.Types.ObjectId;
563
- cuFsDepositLid: mongoose.Types.ObjectId;
564
- cuFsExistingProviderLid: mongoose.Types.ObjectId;
565
- cuFsOutstandingBalanceLid: mongoose.Types.ObjectId;
566
- cuFsRefinancePurposeLid: mongoose.Types.ObjectId;
567
- cuFsCapitalRaisingLid: mongoose.Types.ObjectId;
568
- cuFsBulletPaymentLid: mongoose.Types.ObjectId;
569
- cuFsOutcomeLid: mongoose.Types.ObjectId;
570
- cuRepaymentTypeLid: mongoose.Types.ObjectId;
571
- cuExitStrategyLid: mongoose.Types.ObjectId;
572
- cuRepaymentOutcomeLid: mongoose.Types.ObjectId;
573
- cuPrProductLid: mongoose.Types.ObjectId;
574
- cuPrFinanceTermLid: mongoose.Types.ObjectId;
575
- cuPrMonthlyPaymentLid: mongoose.Types.ObjectId;
576
- cuPrInitialRateLid: mongoose.Types.ObjectId;
577
- cuPrReversionRateLid: mongoose.Types.ObjectId;
578
- cuPrRentalIncomeLid: mongoose.Types.ObjectId;
579
- cuPrOutcomeLid: mongoose.Types.ObjectId;
580
- cuRisksOutcomeLid: mongoose.Types.ObjectId;
581
- vulnerabilityCommunicationAdjustments: string;
582
- underwriterQuestion: string;
583
- customerResponse: string;
584
- confirmUnderstandingQuestions: string;
585
- proceedDecisionLid: mongoose.Types.ObjectId;
586
370
  applicationId?: mongoose.Types.ObjectId | null | undefined;
587
371
  lendingTypeLid?: mongoose.Types.ObjectId | null | undefined;
588
372
  purchaseTypeLid?: mongoose.Types.ObjectId | null | undefined;
@@ -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;AA44BhC,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;AAkvBhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA4D,CAAC;AAEnF,eAAe,gBAAgB,CAAC"}
@@ -216,160 +216,6 @@ const welcomeCallSchema = new mongoose.Schema({
216
216
  default: false,
217
217
  description: "if Algbra bank account has been requested"
218
218
  },
219
- // ─── Shariah section (WC Restructure CR) ──────────────────────────────
220
- shariahAwarenessLid: {
221
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
222
- description: "Shariah Awareness — has broker explained Shariah finance to customer (Yes/No)"
223
- },
224
- shariahUnderstandingLid: {
225
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
226
- description: "Shariah Understanding — customer explanation of Shariah finance (Good/Limited/None)"
227
- },
228
- shariahExplanationProvidedLid: {
229
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
230
- description: "Shariah Explanation — was standard explanation read to customer (Provided/Not Provided)"
231
- },
232
- // ─── Customer Understanding — Property Details ────────────────────────
233
- cuPropertyTypeLid: {
234
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
235
- description: "CU Property Details — Property Type response (Covered/Prompted/Incorrect)"
236
- },
237
- cuBedroomsLid: {
238
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
239
- description: "CU Property Details — Number of Bedrooms response"
240
- },
241
- cuSecurityAddressLid: {
242
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
243
- description: "CU Property Details — Security Address response"
244
- },
245
- cuNewBuildLid: {
246
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
247
- description: "CU Property Details — New Build response"
248
- },
249
- cuPropertyDetailsOutcomeLid: {
250
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
251
- description: "CU Property Details — sub-section overall outcome (Covered/Prompted/Incorrect)"
252
- },
253
- // ─── Customer Understanding — Purpose ─────────────────────────────────
254
- cuPurposeFinanceTypeLid: {
255
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
256
- description: "CU Purpose — Finance Type response"
257
- },
258
- cuPurposeProposedTenantsLid: {
259
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
260
- description: "CU Purpose — Proposed Tenants response (BTL only)"
261
- },
262
- cuPurposeOutcomeLid: {
263
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
264
- description: "CU Purpose — sub-section overall outcome"
265
- },
266
- // ─── Customer Understanding — Finance & Structure ─────────────────────
267
- cuFsPurchasePriceLid: {
268
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
269
- description: "CU Finance & Structure — Purchase Price/Estimated Value response"
270
- },
271
- cuFsFinanceAmountLid: {
272
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
273
- description: "CU Finance & Structure — Finance Amount response"
274
- },
275
- cuFsDepositLid: {
276
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
277
- description: "CU Finance & Structure — Deposit response (purchase only)"
278
- },
279
- cuFsExistingProviderLid: {
280
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
281
- description: "CU Finance & Structure — Existing Finance Provider response (refi only)"
282
- },
283
- cuFsOutstandingBalanceLid: {
284
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
285
- description: "CU Finance & Structure — Outstanding Balance response (refi only)"
286
- },
287
- cuFsRefinancePurposeLid: {
288
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
289
- description: "CU Finance & Structure — Purpose of Refinance response (refi only)"
290
- },
291
- cuFsCapitalRaisingLid: {
292
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
293
- description: "CU Finance & Structure — Capital Raising response (HPP refi only)"
294
- },
295
- cuFsBulletPaymentLid: {
296
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
297
- description: "CU Finance & Structure — Bullet Payment response (Rent only)"
298
- },
299
- cuFsOutcomeLid: {
300
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
301
- description: "CU Finance & Structure — sub-section overall outcome"
302
- },
303
- // ─── Customer Understanding — Repayment Type ──────────────────────────
304
- cuRepaymentTypeLid: {
305
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
306
- description: "CU Repayment Type — Repayment Type response"
307
- },
308
- cuExitStrategyLid: {
309
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
310
- description: "CU Repayment Type — Exit Strategy response (BTL Rent Only)"
311
- },
312
- cuRepaymentOutcomeLid: {
313
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
314
- description: "CU Repayment Type — sub-section overall outcome"
315
- },
316
- // ─── Customer Understanding — Payments & Rate ─────────────────────────
317
- cuPrProductLid: {
318
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
319
- description: "CU Payments & Rate — Product response"
320
- },
321
- cuPrFinanceTermLid: {
322
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
323
- description: "CU Payments & Rate — Finance Term response"
324
- },
325
- cuPrMonthlyPaymentLid: {
326
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
327
- description: "CU Payments & Rate — Monthly Payment response"
328
- },
329
- cuPrInitialRateLid: {
330
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
331
- description: "CU Payments & Rate — Initial Rate response"
332
- },
333
- cuPrReversionRateLid: {
334
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
335
- description: "CU Payments & Rate — Reversion Rate response"
336
- },
337
- cuPrRentalIncomeLid: {
338
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
339
- description: "CU Payments & Rate — Rental Income response (BTL only)"
340
- },
341
- cuPrOutcomeLid: {
342
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
343
- description: "CU Payments & Rate — sub-section overall outcome"
344
- },
345
- // ─── Customer Understanding — Risks ───────────────────────────────────
346
- cuRisksOutcomeLid: {
347
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
348
- description: "CU Risks — sub-section overall outcome"
349
- },
350
- // ─── Vulnerability — second free-text (WC Restructure CR) ─────────────
351
- vulnerabilityCommunicationAdjustments: {
352
- type: String, default: null,
353
- description: "Vulnerability Q2 — anything that may make communicating with us more difficult"
354
- },
355
- // ─── Underwriting — split into Question / Response ────────────────────
356
- underwriterQuestion: {
357
- type: String, default: null,
358
- description: "Underwriting Questions — Underwriter Question (left free-text)"
359
- },
360
- customerResponse: {
361
- type: String, default: null,
362
- description: "Underwriting Questions — Customer Response (right free-text)"
363
- },
364
- // ─── Confirm Understanding section (WC Restructure CR) ────────────────
365
- confirmUnderstandingQuestions: {
366
- type: String, default: null,
367
- description: "Confirm Understanding — anything unclear / other questions (free text)"
368
- },
369
- proceedDecisionLid: {
370
- type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null,
371
- description: "Confirm Understanding — Happy to Proceed / Not Happy to Proceed"
372
- },
373
219
  isActive: {
374
220
  type: Boolean,
375
221
  default: true,
@@ -12,6 +12,7 @@ export { default as ApplicantAdditionalIncomeModel } from './applicant-additiona
12
12
  export { default as ApplicantUKTaxCreditsModel } from './applicant-uk-tax-credits.model';
13
13
  export { default as ApplicantEmploymentModel } from './applicant-employment.model';
14
14
  export { default as ApplicantPropertyIncomeModel } from './applicant-property-income.model';
15
+ export { default as ApplicantPropertyIncomeType } from './applicant-property-income.type';
15
16
  export { default as ApplicantSoleTraderIncomeModel } from './applicant-sole-trader-income.model';
16
17
  export { default as ApplicantSelfEmployedIncomeModel } from './applicant-self-employed-income.model';
17
18
  export { default as ApplicantSelfEmploymentModel } from './applicant-self-employment.model';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../applicants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAEhG,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAErG,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAC7F,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE1F,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AACrG,OAAO,EAAE,OAAO,IAAI,4BA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oose.Types.ObjectId;
76
76
  solicitorId: mongoose.Types.ObjectId;
77
77
  riskNarrativeId: mongoose.Types.ObjectId;
78
+ isRiskNarrativeSynced: boolean;
78
79
  directDebitId: mongoose.Types.ObjectId;
79
80
  mortgageId: mongoose.Types.ObjectId;
80
81
  companyId: mongoose.Types.ObjectId;
@@ -173,6 +174,7 @@ declare const ApplicationModel: mongoose.Model<{
173
174
  securityId: mongoose.Types.ObjectId;
174
175
  solicitorId: mongoose.Types.ObjectId;
175
176
  riskNarrativeId: mongoose.Types.ObjectId;
177
+ isRiskNarrativeSynced: boolean;
176
178
  directDebitId: mongoose.Types.ObjectId;
177
179
  mortgageId: mongoose.Types.ObjectId;
178
180
  companyId: mongoose.Types.ObjectId;
@@ -271,6 +273,7 @@ declare const ApplicationModel: mongoose.Model<{
271
273
  securityId: mongoose.Types.ObjectId;
272
274
  solicitorId: mongoose.Types.ObjectId;
273
275
  riskNarrativeId: mongoose.Types.ObjectId;
276
+ isRiskNarrativeSynced: boolean;
274
277
  directDebitId: mongoose.Types.ObjectId;
275
278
  mortgageId: mongoose.Types.ObjectId;
276
279
  companyId: mongoose.Types.ObjectId;
@@ -381,6 +384,7 @@ declare const ApplicationModel: mongoose.Model<{
381
384
  securityId: mongoose.Types.ObjectId;
382
385
  solicitorId: mongoose.Types.ObjectId;
383
386
  riskNarrativeId: mongoose.Types.ObjectId;
387
+ isRiskNarrativeSynced: boolean;
384
388
  directDebitId: mongoose.Types.ObjectId;
385
389
  mortgageId: mongoose.Types.ObjectId;
386
390
  companyId: mongoose.Types.ObjectId;
@@ -479,6 +483,7 @@ declare const ApplicationModel: mongoose.Model<{
479
483
  securityId: mongoose.Types.ObjectId;
480
484
  solicitorId: mongoose.Types.ObjectId;
481
485
  riskNarrativeId: mongoose.Types.ObjectId;
486
+ isRiskNarrativeSynced: boolean;
482
487
  directDebitId: mongoose.Types.ObjectId;
483
488
  mortgageId: mongoose.Types.ObjectId;
484
489
  companyId: mongoose.Types.ObjectId;
@@ -577,6 +582,7 @@ declare const ApplicationModel: mongoose.Model<{
577
582
  securityId: mongoose.Types.ObjectId;
578
583
  solicitorId: mongoose.Types.ObjectId;
579
584
  riskNarrativeId: mongoose.Types.ObjectId;
585
+ isRiskNarrativeSynced: boolean;
580
586
  directDebitId: mongoose.Types.ObjectId;
581
587
  mortgageId: mongoose.Types.ObjectId;
582
588
  companyId: mongoose.Types.ObjectId;
@@ -1 +1 @@
1
- {"version":3,"file":"application.model.d.ts","sourceRoot":"","sources":["../../applications/application.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAiRhC,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;AAwRhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmD,CAAC;AAC1E,eAAe,gBAAgB,CAAC"}
@@ -60,6 +60,13 @@ const applicationSchema = new mongoose.Schema({
60
60
  statusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
61
61
  call2StatusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
62
62
  },
63
+ // Flag for a requested RiskNarrative Call 2. Owned by Catura and never mapped from Apprivo.
64
+ // Deliberately top-level, not inside `riskNarrative`: the background sync replaces that whole
65
+ // sub-document, which would wipe anything stored within it.
66
+ // null = never requested, false = awaiting a final Call2Status, true = final status received.
67
+ // The default MUST stay null: the fetch-risk-narrative job queries for an explicit false, and
68
+ // defaulting to false would mark every existing application as awaiting and sync them all.
69
+ isRiskNarrativeSynced: { type: Boolean, default: null },
63
70
  applicants: [
64
71
  { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", default: null }
65
72
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.17.7",
3
+ "version": "2.17.10",
4
4
  "description": "All the schemas for gatehouse bank back-end .",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",