@dynamatix/gb-schemas 1.2.85 → 1.2.86
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-commitment-creditCard.model.d.ts +3 -3
- package/dist/applicants/applicant-commitment-creditCard.model.js +1 -1
- package/dist/applicants/applicant-commitment-loan.model.d.ts +3 -3
- package/dist/applicants/applicant-commitment-loan.model.js +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +3 -3
- package/dist/applicants/applicant-commitment-mortgage.model.js +1 -1
- package/dist/applicants/applicant-employment-income.model.d.ts +6 -6
- package/dist/applicants/applicant-employment-income.model.js +1 -1
- package/dist/applicants/applicant.model.d.ts +94 -6360
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/entities/applicants/applicant-credit-data.entity.d.ts +19 -0
- package/dist/entities/applicants/applicant-credit-data.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-credit-data.entity.js +5 -0
- package/dist/entities/applicants/applicant-credit-profile.entity.d.ts +14 -0
- package/dist/entities/applicants/applicant-credit-profile.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-credit-profile.entity.js +5 -0
- package/dist/entities/applicants/applicant-employment.entity.d.ts +53 -0
- package/dist/entities/applicants/applicant-employment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-employment.entity.js +2 -0
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts +13 -0
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-expenditure.entity.js +2 -0
- package/dist/entities/applicants/applicant-income-source.entity.d.ts +17 -0
- package/dist/entities/applicants/applicant-income-source.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-income-source.entity.js +5 -0
- package/dist/entities/applicants/applicant-income.entity.d.ts +59 -0
- package/dist/entities/applicants/applicant-income.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-income.entity.js +2 -0
- package/dist/entities/applicants/applicant.entity.d.ts +12 -14
- package/dist/entities/applicants/applicant.entity.d.ts.map +1 -1
- package/dist/entities/applicants/index.d.ts +14 -16
- package/dist/entities/applicants/index.d.ts.map +1 -1
- package/dist/entities/applicants/index.js +12 -14
- package/dist/entities/applications/application-credit-profile.entity.d.ts +11 -0
- package/dist/entities/applications/application-credit-profile.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-credit-profile.entity.js +5 -0
- package/dist/entities/applications/index.d.ts +1 -1
- package/dist/entities/applications/index.d.ts.map +1 -1
- package/dist/entities/applications/index.js +1 -1
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts +7 -4
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts.map +1 -1
- package/dist/entities/shared/job-run.entity.d.ts +8 -4
- package/dist/entities/shared/job-run.entity.d.ts.map +1 -1
- package/dist/entities/shared/job-run.model.d.ts +11 -0
- package/dist/entities/shared/job-run.model.d.ts.map +1 -0
- package/dist/entities/shared/job-run.model.js +1 -0
- package/dist/entities/shared/job-setting.entity.d.ts +1 -1
- package/dist/entities/shared/job-setting.entity.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -491,7 +491,7 @@ declare const CreditCardCommitmentModel: mongoose.Model<{
|
|
|
491
491
|
};
|
|
492
492
|
}, {
|
|
493
493
|
isSelected: boolean;
|
|
494
|
-
source: "Broker" | "Credit Report";
|
|
494
|
+
source: "Broker" | "Credit Report" | "Underwriter";
|
|
495
495
|
applicantId: mongoose.Types.ObjectId;
|
|
496
496
|
outstandingBalance: Pound;
|
|
497
497
|
commitmentId: string;
|
|
@@ -503,7 +503,7 @@ declare const CreditCardCommitmentModel: mongoose.Model<{
|
|
|
503
503
|
jointNames?: boolean | null | undefined;
|
|
504
504
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
505
505
|
isSelected: boolean;
|
|
506
|
-
source: "Broker" | "Credit Report";
|
|
506
|
+
source: "Broker" | "Credit Report" | "Underwriter";
|
|
507
507
|
applicantId: mongoose.Types.ObjectId;
|
|
508
508
|
outstandingBalance: Pound;
|
|
509
509
|
commitmentId: string;
|
|
@@ -515,7 +515,7 @@ declare const CreditCardCommitmentModel: mongoose.Model<{
|
|
|
515
515
|
jointNames?: boolean | null | undefined;
|
|
516
516
|
}>> & mongoose.FlatRecord<{
|
|
517
517
|
isSelected: boolean;
|
|
518
|
-
source: "Broker" | "Credit Report";
|
|
518
|
+
source: "Broker" | "Credit Report" | "Underwriter";
|
|
519
519
|
applicantId: mongoose.Types.ObjectId;
|
|
520
520
|
outstandingBalance: Pound;
|
|
521
521
|
commitmentId: string;
|
|
@@ -14,7 +14,7 @@ const creditCardCommitmentSchema = new mongoose.Schema({
|
|
|
14
14
|
},
|
|
15
15
|
source: {
|
|
16
16
|
type: String,
|
|
17
|
-
enum: ["Broker", "Credit Report"],
|
|
17
|
+
enum: ["Broker", "Credit Report", "Underwriter"],
|
|
18
18
|
default: "Broker"
|
|
19
19
|
},
|
|
20
20
|
isSelected: { type: Boolean, default: true }, // mark as selected for summary calculation
|
|
@@ -365,7 +365,7 @@ declare const LoanCommitmentModel: mongoose.Model<{
|
|
|
365
365
|
};
|
|
366
366
|
}, {
|
|
367
367
|
isSelected: boolean;
|
|
368
|
-
source: "Broker" | "Credit Report";
|
|
368
|
+
source: "Broker" | "Credit Report" | "Underwriter";
|
|
369
369
|
applicantId: mongoose.Types.ObjectId;
|
|
370
370
|
outstandingBalance: Pound;
|
|
371
371
|
commitmentId: string;
|
|
@@ -381,7 +381,7 @@ declare const LoanCommitmentModel: mongoose.Model<{
|
|
|
381
381
|
doHaveSharedResponsibility?: boolean | null | undefined;
|
|
382
382
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
383
383
|
isSelected: boolean;
|
|
384
|
-
source: "Broker" | "Credit Report";
|
|
384
|
+
source: "Broker" | "Credit Report" | "Underwriter";
|
|
385
385
|
applicantId: mongoose.Types.ObjectId;
|
|
386
386
|
outstandingBalance: Pound;
|
|
387
387
|
commitmentId: string;
|
|
@@ -397,7 +397,7 @@ declare const LoanCommitmentModel: mongoose.Model<{
|
|
|
397
397
|
doHaveSharedResponsibility?: boolean | null | undefined;
|
|
398
398
|
}>> & mongoose.FlatRecord<{
|
|
399
399
|
isSelected: boolean;
|
|
400
|
-
source: "Broker" | "Credit Report";
|
|
400
|
+
source: "Broker" | "Credit Report" | "Underwriter";
|
|
401
401
|
applicantId: mongoose.Types.ObjectId;
|
|
402
402
|
outstandingBalance: Pound;
|
|
403
403
|
commitmentId: string;
|
|
@@ -18,7 +18,7 @@ const loanCommitmentSchema = new mongoose.Schema({
|
|
|
18
18
|
monthlyPayment: { type: Pound, required: true }, // Monthly payment
|
|
19
19
|
source: {
|
|
20
20
|
type: String,
|
|
21
|
-
enum: ["Broker", "Credit Report"],
|
|
21
|
+
enum: ["Broker", "Credit Report", "Underwriter"],
|
|
22
22
|
default: "Broker"
|
|
23
23
|
},
|
|
24
24
|
isSelected: { type: Boolean, default: true }, // mark as selected for summary calculation
|
|
@@ -404,7 +404,7 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
404
404
|
};
|
|
405
405
|
}, {
|
|
406
406
|
isSelected: boolean;
|
|
407
|
-
source: "Broker" | "Credit Report";
|
|
407
|
+
source: "Broker" | "Credit Report" | "Underwriter";
|
|
408
408
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
409
409
|
fixedTerm: string;
|
|
410
410
|
commitmentId: string;
|
|
@@ -433,7 +433,7 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
433
433
|
chargeTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
434
434
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
435
435
|
isSelected: boolean;
|
|
436
|
-
source: "Broker" | "Credit Report";
|
|
436
|
+
source: "Broker" | "Credit Report" | "Underwriter";
|
|
437
437
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
438
438
|
fixedTerm: string;
|
|
439
439
|
commitmentId: string;
|
|
@@ -462,7 +462,7 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
462
462
|
chargeTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
463
463
|
}>> & mongoose.FlatRecord<{
|
|
464
464
|
isSelected: boolean;
|
|
465
|
-
source: "Broker" | "Credit Report";
|
|
465
|
+
source: "Broker" | "Credit Report" | "Underwriter";
|
|
466
466
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
467
467
|
fixedTerm: string;
|
|
468
468
|
commitmentId: string;
|
|
@@ -31,7 +31,7 @@ const mortgageCommitmentSchema = new mongoose.Schema({
|
|
|
31
31
|
sharedMortgage: { type: String, default: null },
|
|
32
32
|
source: {
|
|
33
33
|
type: String,
|
|
34
|
-
enum: ["Broker", "Credit Report"],
|
|
34
|
+
enum: ["Broker", "Credit Report", "Underwriter"],
|
|
35
35
|
default: "Broker"
|
|
36
36
|
},
|
|
37
37
|
isSelected: { type: Boolean, default: true }, // mark as selected for summary calculation
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
import mongoose from "mongoose";
|
|
28
28
|
import { Pound } from "../value-objects/pound";
|
|
29
29
|
declare const ApplicantEmploymentIncomeModel: mongoose.Model<{
|
|
30
|
-
applicantId?:
|
|
30
|
+
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
31
31
|
amount?: {
|
|
32
32
|
validators: mongoose.Types.DocumentArray<{
|
|
33
33
|
type?: unknown;
|
|
@@ -77,7 +77,7 @@ declare const ApplicantEmploymentIncomeModel: mongoose.Model<{
|
|
|
77
77
|
} | null | undefined;
|
|
78
78
|
incomeTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
79
79
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
80
|
-
applicantId?:
|
|
80
|
+
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
81
81
|
amount?: {
|
|
82
82
|
validators: mongoose.Types.DocumentArray<{
|
|
83
83
|
type?: unknown;
|
|
@@ -127,7 +127,7 @@ declare const ApplicantEmploymentIncomeModel: mongoose.Model<{
|
|
|
127
127
|
} | null | undefined;
|
|
128
128
|
incomeTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
129
129
|
}> & {
|
|
130
|
-
applicantId?:
|
|
130
|
+
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
131
131
|
amount?: {
|
|
132
132
|
validators: mongoose.Types.DocumentArray<{
|
|
133
133
|
type?: unknown;
|
|
@@ -181,15 +181,15 @@ declare const ApplicantEmploymentIncomeModel: mongoose.Model<{
|
|
|
181
181
|
} & {
|
|
182
182
|
__v: number;
|
|
183
183
|
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
184
|
-
applicantId:
|
|
184
|
+
applicantId: mongoose.Types.ObjectId;
|
|
185
185
|
amount: Pound;
|
|
186
186
|
incomeTypeLid: mongoose.Types.ObjectId;
|
|
187
187
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
188
|
-
applicantId:
|
|
188
|
+
applicantId: mongoose.Types.ObjectId;
|
|
189
189
|
amount: Pound;
|
|
190
190
|
incomeTypeLid: mongoose.Types.ObjectId;
|
|
191
191
|
}>> & mongoose.FlatRecord<{
|
|
192
|
-
applicantId:
|
|
192
|
+
applicantId: mongoose.Types.ObjectId;
|
|
193
193
|
amount: Pound;
|
|
194
194
|
incomeTypeLid: mongoose.Types.ObjectId;
|
|
195
195
|
}> & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
2
|
import { Pound } from "../value-objects/pound";
|
|
3
3
|
const applicantEmploymentIncomeSchema = new mongoose.Schema({
|
|
4
|
-
applicantId: { type:
|
|
4
|
+
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
5
5
|
incomeTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
|
|
6
6
|
amount: { type: Pound, required: true },
|
|
7
7
|
});
|