@dynamatix/gb-schemas 1.2.13 → 1.2.15

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.
Files changed (40) hide show
  1. package/dist/applicants/applicant-commitment-creditCard.model.d.ts +43 -0
  2. package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -0
  3. package/dist/applicants/applicant-commitment-creditCard.model.js +20 -0
  4. package/dist/applicants/applicant-commitment-loan.model.d.ts +55 -0
  5. package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -0
  6. package/dist/applicants/applicant-commitment-loan.model.js +24 -0
  7. package/dist/applicants/applicant-commitment-mortgage.model.d.ts +76 -0
  8. package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -0
  9. package/dist/applicants/applicant-commitment-mortgage.model.js +43 -0
  10. package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +46 -0
  11. package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -0
  12. package/dist/applicants/applicant-commitment-secureLoan.model.js +21 -0
  13. package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +43 -0
  14. package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -0
  15. package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +20 -0
  16. package/dist/applicants/applicant-commitment.model.d.ts +5954 -16
  17. package/dist/applicants/applicant-commitment.model.d.ts.map +1 -1
  18. package/dist/applicants/applicant-commitment.model.js +13 -5
  19. package/dist/applicants/applicant-employment.model.d.ts +132 -124
  20. package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
  21. package/dist/applicants/applicant-employment.model.js +51 -43
  22. package/dist/applicants/applicant-expenditure.model.d.ts +54 -19
  23. package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
  24. package/dist/applicants/applicant-expenditure.model.js +19 -6
  25. package/dist/applicants/applicant-income.model.d.ts +69 -61
  26. package/dist/applicants/applicant-income.model.d.ts.map +1 -1
  27. package/dist/applicants/applicant-income.model.js +55 -43
  28. package/dist/applicants/applicant-other-income.model.d.ts +75 -58
  29. package/dist/applicants/applicant-other-income.model.d.ts.map +1 -1
  30. package/dist/applicants/applicant-other-income.model.js +46 -19
  31. package/dist/applicants/applicant-property-income.model.d.ts +49 -0
  32. package/dist/applicants/applicant-property-income.model.d.ts.map +1 -0
  33. package/dist/applicants/applicant-property-income.model.js +21 -0
  34. package/dist/applicants/applicant.model.d.ts +14370 -1332
  35. package/dist/applicants/applicant.model.d.ts.map +1 -1
  36. package/dist/applicants/applicant.model.js +132 -51
  37. package/dist/properties/property.model.d.ts +36 -36
  38. package/dist/properties/security.model.d.ts.map +1 -1
  39. package/dist/properties/security.model.js +12 -0
  40. package/package.json +1 -1
@@ -0,0 +1,43 @@
1
+ import mongoose from "mongoose";
2
+ import { Pound } from "../value-objects/pound";
3
+ declare const creditCardCommitmentSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
4
+ toJSON: {
5
+ getters: true;
6
+ };
7
+ toObject: {
8
+ getters: true;
9
+ };
10
+ }, {
11
+ commitmentTypeLid: mongoose.Types.ObjectId;
12
+ lenderName: string;
13
+ creditLimit: Pound;
14
+ outstandingBalance: Pound;
15
+ creditCardRepaymentTypeLid: mongoose.Types.ObjectId;
16
+ monthlyPayment: Pound;
17
+ jointNames: boolean;
18
+ commitmentId?: string | null | undefined;
19
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
20
+ commitmentTypeLid: mongoose.Types.ObjectId;
21
+ lenderName: string;
22
+ creditLimit: Pound;
23
+ outstandingBalance: Pound;
24
+ creditCardRepaymentTypeLid: mongoose.Types.ObjectId;
25
+ monthlyPayment: Pound;
26
+ jointNames: boolean;
27
+ commitmentId?: string | null | undefined;
28
+ }>> & mongoose.FlatRecord<{
29
+ commitmentTypeLid: mongoose.Types.ObjectId;
30
+ lenderName: string;
31
+ creditLimit: Pound;
32
+ outstandingBalance: Pound;
33
+ creditCardRepaymentTypeLid: mongoose.Types.ObjectId;
34
+ monthlyPayment: Pound;
35
+ jointNames: boolean;
36
+ commitmentId?: string | null | undefined;
37
+ }> & {
38
+ _id: mongoose.Types.ObjectId;
39
+ } & {
40
+ __v: number;
41
+ }>;
42
+ export default creditCardCommitmentSchema;
43
+ //# sourceMappingURL=applicant-commitment-creditCard.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicant-commitment-creditCard.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-creditCard.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgB9B,CAAC;AAEH,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,20 @@
1
+ import mongoose from "mongoose";
2
+ import { Pound } from "../value-objects/pound";
3
+ const creditCardCommitmentSchema = new mongoose.Schema({
4
+ commitmentId: String,
5
+ commitmentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
6
+ lenderName: { type: String, required: true },
7
+ creditLimit: { type: Pound, required: true },
8
+ outstandingBalance: { type: Pound, required: true },
9
+ creditCardRepaymentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
10
+ monthlyPayment: { type: Pound, required: true },
11
+ jointNames: {
12
+ type: Boolean,
13
+ required: true,
14
+ get: (v) => v ? "Yes" : "No"
15
+ }
16
+ }, {
17
+ toJSON: { getters: true },
18
+ toObject: { getters: true }
19
+ });
20
+ export default creditCardCommitmentSchema;
@@ -0,0 +1,55 @@
1
+ import mongoose from "mongoose";
2
+ import { Pound } from "../value-objects/pound";
3
+ declare const loanCommitmentSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
4
+ toJSON: {
5
+ getters: true;
6
+ };
7
+ toObject: {
8
+ getters: true;
9
+ };
10
+ }, {
11
+ commitmentTypeLid: mongoose.Types.ObjectId;
12
+ lenderName: string;
13
+ outstandingBalance: Pound;
14
+ monthlyPayment: Pound;
15
+ loanTypeLid: mongoose.Types.ObjectId;
16
+ securityDetails: string;
17
+ purpose: string;
18
+ doHaveSharedResponsibility: boolean;
19
+ sharedMortgage: string;
20
+ remainingTerm: string;
21
+ startDate: string;
22
+ commitmentId?: string | null | undefined;
23
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
24
+ commitmentTypeLid: mongoose.Types.ObjectId;
25
+ lenderName: string;
26
+ outstandingBalance: Pound;
27
+ monthlyPayment: Pound;
28
+ loanTypeLid: mongoose.Types.ObjectId;
29
+ securityDetails: string;
30
+ purpose: string;
31
+ doHaveSharedResponsibility: boolean;
32
+ sharedMortgage: string;
33
+ remainingTerm: string;
34
+ startDate: string;
35
+ commitmentId?: string | null | undefined;
36
+ }>> & mongoose.FlatRecord<{
37
+ commitmentTypeLid: mongoose.Types.ObjectId;
38
+ lenderName: string;
39
+ outstandingBalance: Pound;
40
+ monthlyPayment: Pound;
41
+ loanTypeLid: mongoose.Types.ObjectId;
42
+ securityDetails: string;
43
+ purpose: string;
44
+ doHaveSharedResponsibility: boolean;
45
+ sharedMortgage: string;
46
+ remainingTerm: string;
47
+ startDate: string;
48
+ commitmentId?: string | null | undefined;
49
+ }> & {
50
+ _id: mongoose.Types.ObjectId;
51
+ } & {
52
+ __v: number;
53
+ }>;
54
+ export default loanCommitmentSchema;
55
+ //# sourceMappingURL=applicant-commitment-loan.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicant-commitment-loan.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-loan.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBxB,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import mongoose from "mongoose";
2
+ import { Pound } from "../value-objects/pound";
3
+ const loanCommitmentSchema = new mongoose.Schema({
4
+ commitmentId: String,
5
+ commitmentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
6
+ lenderName: { type: String, required: true },
7
+ loanTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
8
+ securityDetails: { type: String, required: true },
9
+ purpose: { type: String, default: null },
10
+ doHaveSharedResponsibility: {
11
+ type: Boolean,
12
+ required: true,
13
+ get: (v) => v ? "Yes" : "No"
14
+ },
15
+ sharedMortgage: { type: String, required: true },
16
+ remainingTerm: { type: String, default: null },
17
+ startDate: { type: String, required: true },
18
+ outstandingBalance: { type: Pound, required: true },
19
+ monthlyPayment: { type: Pound, required: true }
20
+ }, {
21
+ toJSON: { getters: true },
22
+ toObject: { getters: true }
23
+ });
24
+ export default loanCommitmentSchema;
@@ -0,0 +1,76 @@
1
+ import mongoose from "mongoose";
2
+ import { Pound } from "../value-objects/pound";
3
+ declare const mortgageCommitmentSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
4
+ toJSON: {
5
+ getters: true;
6
+ };
7
+ toObject: {
8
+ getters: true;
9
+ };
10
+ }, {
11
+ repaymentTypeLid: mongoose.Types.ObjectId;
12
+ fixedTerm: string;
13
+ commitmentTypeLid: mongoose.Types.ObjectId;
14
+ lenderName: string;
15
+ outstandingBalance: Pound;
16
+ monthlyPayment: Pound;
17
+ doHaveSharedResponsibility: boolean;
18
+ sharedMortgage: string;
19
+ startDate: string;
20
+ propertyValue: Pound;
21
+ mortgageTypeLid: mongoose.Types.ObjectId;
22
+ originalLoanAmount: Pound;
23
+ furtherAdvances: boolean;
24
+ furtherAdvanceDetails: string;
25
+ accountUptoDate: boolean;
26
+ accountUptoDateFailDetails: string;
27
+ accountInArrears: boolean;
28
+ accountInArrearsDetails: string;
29
+ commitmentId?: string | null | undefined;
30
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
31
+ repaymentTypeLid: mongoose.Types.ObjectId;
32
+ fixedTerm: string;
33
+ commitmentTypeLid: mongoose.Types.ObjectId;
34
+ lenderName: string;
35
+ outstandingBalance: Pound;
36
+ monthlyPayment: Pound;
37
+ doHaveSharedResponsibility: boolean;
38
+ sharedMortgage: string;
39
+ startDate: string;
40
+ propertyValue: Pound;
41
+ mortgageTypeLid: mongoose.Types.ObjectId;
42
+ originalLoanAmount: Pound;
43
+ furtherAdvances: boolean;
44
+ furtherAdvanceDetails: string;
45
+ accountUptoDate: boolean;
46
+ accountUptoDateFailDetails: string;
47
+ accountInArrears: boolean;
48
+ accountInArrearsDetails: string;
49
+ commitmentId?: string | null | undefined;
50
+ }>> & mongoose.FlatRecord<{
51
+ repaymentTypeLid: mongoose.Types.ObjectId;
52
+ fixedTerm: string;
53
+ commitmentTypeLid: mongoose.Types.ObjectId;
54
+ lenderName: string;
55
+ outstandingBalance: Pound;
56
+ monthlyPayment: Pound;
57
+ doHaveSharedResponsibility: boolean;
58
+ sharedMortgage: string;
59
+ startDate: string;
60
+ propertyValue: Pound;
61
+ mortgageTypeLid: mongoose.Types.ObjectId;
62
+ originalLoanAmount: Pound;
63
+ furtherAdvances: boolean;
64
+ furtherAdvanceDetails: string;
65
+ accountUptoDate: boolean;
66
+ accountUptoDateFailDetails: string;
67
+ accountInArrears: boolean;
68
+ accountInArrearsDetails: string;
69
+ commitmentId?: string | null | undefined;
70
+ }> & {
71
+ _id: mongoose.Types.ObjectId;
72
+ } & {
73
+ __v: number;
74
+ }>;
75
+ export default mortgageCommitmentSchema;
76
+ //# sourceMappingURL=applicant-commitment-mortgage.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicant-commitment-mortgage.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-mortgage.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuC5B,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,43 @@
1
+ import mongoose from "mongoose";
2
+ import { Pound } from "../value-objects/pound";
3
+ const mortgageCommitmentSchema = new mongoose.Schema({
4
+ lenderName: { type: String, required: true },
5
+ propertyValue: { type: Pound, required: true },
6
+ repaymentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
7
+ mortgageTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
8
+ fixedTerm: { type: String, required: true },
9
+ originalLoanAmount: { type: Pound, required: true },
10
+ outstandingBalance: { type: Pound, required: true },
11
+ startDate: { type: String, required: true },
12
+ monthlyPayment: { type: Pound, required: true },
13
+ commitmentId: String,
14
+ commitmentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
15
+ furtherAdvances: {
16
+ type: Boolean,
17
+ required: true,
18
+ get: (v) => v ? "Yes" : "No"
19
+ },
20
+ furtherAdvanceDetails: { type: String, required: true },
21
+ accountUptoDate: {
22
+ type: Boolean,
23
+ required: true,
24
+ get: (v) => v ? "Yes" : "No"
25
+ },
26
+ accountUptoDateFailDetails: { type: String, required: true },
27
+ accountInArrears: {
28
+ type: Boolean,
29
+ required: true,
30
+ get: (v) => v ? "Yes" : "No"
31
+ },
32
+ accountInArrearsDetails: { type: String, required: true },
33
+ doHaveSharedResponsibility: {
34
+ type: Boolean,
35
+ required: true,
36
+ get: (v) => v ? "Yes" : "No"
37
+ },
38
+ sharedMortgage: { type: String, required: true }
39
+ }, {
40
+ toJSON: { getters: true },
41
+ toObject: { getters: true }
42
+ });
43
+ export default mortgageCommitmentSchema;
@@ -0,0 +1,46 @@
1
+ import mongoose from "mongoose";
2
+ import { Pound } from "../value-objects/pound";
3
+ declare const securedLoanCommitmentSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
4
+ toJSON: {
5
+ getters: true;
6
+ };
7
+ toObject: {
8
+ getters: true;
9
+ };
10
+ }, {
11
+ lenderName: string;
12
+ outstandingBalance: Pound;
13
+ monthlyPayment: Pound;
14
+ securityDetails: string;
15
+ purpose: string;
16
+ doHaveSharedResponsibility: boolean;
17
+ sharedMortgage: string;
18
+ remainingTerm: string;
19
+ startDate: string;
20
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
21
+ lenderName: string;
22
+ outstandingBalance: Pound;
23
+ monthlyPayment: Pound;
24
+ securityDetails: string;
25
+ purpose: string;
26
+ doHaveSharedResponsibility: boolean;
27
+ sharedMortgage: string;
28
+ remainingTerm: string;
29
+ startDate: string;
30
+ }>> & mongoose.FlatRecord<{
31
+ lenderName: string;
32
+ outstandingBalance: Pound;
33
+ monthlyPayment: Pound;
34
+ securityDetails: string;
35
+ purpose: string;
36
+ doHaveSharedResponsibility: boolean;
37
+ sharedMortgage: string;
38
+ remainingTerm: string;
39
+ startDate: string;
40
+ }> & {
41
+ _id: mongoose.Types.ObjectId;
42
+ } & {
43
+ __v: number;
44
+ }>;
45
+ export default securedLoanCommitmentSchema;
46
+ //# sourceMappingURL=applicant-commitment-secureLoan.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicant-commitment-secureLoan.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-secureLoan.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB/B,CAAC;AAEH,eAAe,2BAA2B,CAAC"}
@@ -0,0 +1,21 @@
1
+ import mongoose from "mongoose";
2
+ import { Pound } from "../value-objects/pound";
3
+ const securedLoanCommitmentSchema = new mongoose.Schema({
4
+ lenderName: { type: String, required: true },
5
+ securityDetails: { type: String, required: true },
6
+ purpose: { type: String, required: true },
7
+ doHaveSharedResponsibility: {
8
+ type: Boolean,
9
+ required: true,
10
+ get: (v) => v ? "Yes" : "No"
11
+ },
12
+ sharedMortgage: { type: String, required: true },
13
+ remainingTerm: { type: String, default: null },
14
+ startDate: { type: String, required: true },
15
+ outstandingBalance: { type: Pound, required: true },
16
+ monthlyPayment: { type: Pound, required: true }
17
+ }, {
18
+ toJSON: { getters: true },
19
+ toObject: { getters: true }
20
+ });
21
+ export default securedLoanCommitmentSchema;
@@ -0,0 +1,43 @@
1
+ import mongoose from "mongoose";
2
+ import { Pound } from "../value-objects/pound";
3
+ declare const unsecuredLoanCommitmentSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
4
+ toJSON: {
5
+ getters: true;
6
+ };
7
+ toObject: {
8
+ getters: true;
9
+ };
10
+ }, {
11
+ lenderName: string;
12
+ outstandingBalance: Pound;
13
+ monthlyPayment: Pound;
14
+ purpose: string;
15
+ doHaveSharedResponsibility: boolean;
16
+ sharedMortgage: string;
17
+ remainingTerm: string;
18
+ startDate: string;
19
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
20
+ lenderName: string;
21
+ outstandingBalance: Pound;
22
+ monthlyPayment: Pound;
23
+ purpose: string;
24
+ doHaveSharedResponsibility: boolean;
25
+ sharedMortgage: string;
26
+ remainingTerm: string;
27
+ startDate: string;
28
+ }>> & mongoose.FlatRecord<{
29
+ lenderName: string;
30
+ outstandingBalance: Pound;
31
+ monthlyPayment: Pound;
32
+ purpose: string;
33
+ doHaveSharedResponsibility: boolean;
34
+ sharedMortgage: string;
35
+ remainingTerm: string;
36
+ startDate: string;
37
+ }> & {
38
+ _id: mongoose.Types.ObjectId;
39
+ } & {
40
+ __v: number;
41
+ }>;
42
+ export default unsecuredLoanCommitmentSchema;
43
+ //# sourceMappingURL=applicant-commitment-unsecuredLoan.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicant-commitment-unsecuredLoan.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-unsecuredLoan.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,QAAA,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBjC,CAAC;AAEH,eAAe,6BAA6B,CAAC"}
@@ -0,0 +1,20 @@
1
+ import mongoose from "mongoose";
2
+ import { Pound } from "../value-objects/pound";
3
+ const unsecuredLoanCommitmentSchema = new mongoose.Schema({
4
+ lenderName: { type: String, required: true },
5
+ purpose: { type: String, required: true },
6
+ doHaveSharedResponsibility: {
7
+ type: Boolean,
8
+ required: true,
9
+ get: (v) => v ? "Yes" : "No"
10
+ },
11
+ sharedMortgage: { type: String, required: true },
12
+ remainingTerm: { type: String, default: null },
13
+ startDate: { type: String, required: true },
14
+ outstandingBalance: { type: Pound, required: true },
15
+ monthlyPayment: { type: Pound, required: true }
16
+ }, {
17
+ toJSON: { getters: true },
18
+ toObject: { getters: true }
19
+ });
20
+ export default unsecuredLoanCommitmentSchema;