@dynamatix/gb-schemas 1.2.16 → 1.2.18

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,88 @@
1
+ import mongoose from "mongoose";
2
+ import { Pound } from "../value-objects/pound";
3
+ declare const residenceCommitmentSchema: 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
+ pageValidFlag: boolean;
12
+ fixedTerm: string;
13
+ lenderName: string;
14
+ outstandingBalance: Pound;
15
+ monthlyPayment: Pound;
16
+ doHaveSharedResponsibility: boolean;
17
+ sharedMortgage: string;
18
+ startDate: string;
19
+ propertyValue: Pound;
20
+ mortgageTypeLid: mongoose.Types.ObjectId;
21
+ originalLoanAmount: Pound;
22
+ furtherAdvances: boolean;
23
+ furtherAdvanceDetails: string;
24
+ accountUptoDate: boolean;
25
+ accountUptoDateFailDetails: string;
26
+ accountInArrears: boolean;
27
+ accountInArrearsDetails: string;
28
+ financeTypeHppLid: mongoose.Types.ObjectId;
29
+ hppRepaymentTypeLid: mongoose.Types.ObjectId;
30
+ mortgageRate: number;
31
+ remainingTermMonth: number;
32
+ financeHomeTypeLid: mongoose.Types.ObjectId;
33
+ chargeTypeLid: mongoose.Types.ObjectId;
34
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
35
+ pageValidFlag: boolean;
36
+ fixedTerm: string;
37
+ lenderName: string;
38
+ outstandingBalance: Pound;
39
+ monthlyPayment: Pound;
40
+ doHaveSharedResponsibility: boolean;
41
+ sharedMortgage: string;
42
+ startDate: string;
43
+ propertyValue: Pound;
44
+ mortgageTypeLid: mongoose.Types.ObjectId;
45
+ originalLoanAmount: Pound;
46
+ furtherAdvances: boolean;
47
+ furtherAdvanceDetails: string;
48
+ accountUptoDate: boolean;
49
+ accountUptoDateFailDetails: string;
50
+ accountInArrears: boolean;
51
+ accountInArrearsDetails: string;
52
+ financeTypeHppLid: mongoose.Types.ObjectId;
53
+ hppRepaymentTypeLid: mongoose.Types.ObjectId;
54
+ mortgageRate: number;
55
+ remainingTermMonth: number;
56
+ financeHomeTypeLid: mongoose.Types.ObjectId;
57
+ chargeTypeLid: mongoose.Types.ObjectId;
58
+ }>> & mongoose.FlatRecord<{
59
+ pageValidFlag: boolean;
60
+ fixedTerm: string;
61
+ lenderName: string;
62
+ outstandingBalance: Pound;
63
+ monthlyPayment: Pound;
64
+ doHaveSharedResponsibility: boolean;
65
+ sharedMortgage: string;
66
+ startDate: string;
67
+ propertyValue: Pound;
68
+ mortgageTypeLid: mongoose.Types.ObjectId;
69
+ originalLoanAmount: Pound;
70
+ furtherAdvances: boolean;
71
+ furtherAdvanceDetails: string;
72
+ accountUptoDate: boolean;
73
+ accountUptoDateFailDetails: string;
74
+ accountInArrears: boolean;
75
+ accountInArrearsDetails: string;
76
+ financeTypeHppLid: mongoose.Types.ObjectId;
77
+ hppRepaymentTypeLid: mongoose.Types.ObjectId;
78
+ mortgageRate: number;
79
+ remainingTermMonth: number;
80
+ financeHomeTypeLid: mongoose.Types.ObjectId;
81
+ chargeTypeLid: mongoose.Types.ObjectId;
82
+ }> & {
83
+ _id: mongoose.Types.ObjectId;
84
+ } & {
85
+ __v: number;
86
+ }>;
87
+ export default residenceCommitmentSchema;
88
+ //# sourceMappingURL=applicant-commitment-residence.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicant-commitment-residence.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-residence.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2C7B,CAAC;AAEH,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,47 @@
1
+ import mongoose from "mongoose";
2
+ import { Pound } from "../value-objects/pound";
3
+ const residenceCommitmentSchema = new mongoose.Schema({
4
+ pageValidFlag: { type: Boolean, default: false },
5
+ financeTypeHppLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
6
+ lenderName: { type: String, required: true },
7
+ propertyValue: { type: Pound, required: true },
8
+ hppRepaymentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
9
+ mortgageTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
10
+ fixedTerm: { type: String, required: true },
11
+ originalLoanAmount: { type: Pound, required: true },
12
+ outstandingBalance: { type: Pound, required: true },
13
+ startDate: { type: String, required: true },
14
+ mortgageRate: { type: Number, required: true },
15
+ remainingTermMonth: { type: Number, required: true },
16
+ financeHomeTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
17
+ chargeTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
18
+ monthlyPayment: { type: Pound, required: true },
19
+ furtherAdvances: {
20
+ type: Boolean,
21
+ required: true,
22
+ get: (v) => v ? "Yes" : "No"
23
+ },
24
+ furtherAdvanceDetails: { type: String, required: true },
25
+ accountUptoDate: {
26
+ type: Boolean,
27
+ required: true,
28
+ get: (v) => v ? "Yes" : "No"
29
+ },
30
+ accountUptoDateFailDetails: { type: String, required: true },
31
+ accountInArrears: {
32
+ type: Boolean,
33
+ required: true,
34
+ get: (v) => v ? "Yes" : "No"
35
+ },
36
+ accountInArrearsDetails: { type: String, required: true },
37
+ doHaveSharedResponsibility: {
38
+ type: Boolean,
39
+ required: true,
40
+ get: (v) => v ? "Yes" : "No"
41
+ },
42
+ sharedMortgage: { type: String, required: true }
43
+ }, {
44
+ toJSON: { getters: true },
45
+ toObject: { getters: true }
46
+ });
47
+ export default residenceCommitmentSchema;
@@ -344,7 +344,7 @@ declare const PropertyModel: mongoose.Model<{
344
344
  defaultOptions?: unknown;
345
345
  } | null | undefined;
346
346
  otherOwnershipParties?: unknown;
347
- postcode?: unknown;
347
+ postCode?: unknown;
348
348
  portfolioFile?: unknown;
349
349
  }, {}, {}, {}, mongoose.Document<unknown, {}, {
350
350
  createdAt: NativeDate;
@@ -690,7 +690,7 @@ declare const PropertyModel: mongoose.Model<{
690
690
  defaultOptions?: unknown;
691
691
  } | null | undefined;
692
692
  otherOwnershipParties?: unknown;
693
- postcode?: unknown;
693
+ postCode?: unknown;
694
694
  portfolioFile?: unknown;
695
695
  }> & {
696
696
  createdAt: NativeDate;
@@ -1036,7 +1036,7 @@ declare const PropertyModel: mongoose.Model<{
1036
1036
  defaultOptions?: unknown;
1037
1037
  } | null | undefined;
1038
1038
  otherOwnershipParties?: unknown;
1039
- postcode?: unknown;
1039
+ postCode?: unknown;
1040
1040
  portfolioFile?: unknown;
1041
1041
  } & {
1042
1042
  _id: mongoose.Types.ObjectId;
@@ -1065,7 +1065,7 @@ declare const PropertyModel: mongoose.Model<{
1065
1065
  monthlyRent: Pound;
1066
1066
  monthlyRepayment: Pound;
1067
1067
  originalLoanBalance: Pound;
1068
- postcode: string;
1068
+ postCode: string;
1069
1069
  addressLine2?: string | null | undefined;
1070
1070
  addressLine3?: string | null | undefined;
1071
1071
  city?: string | null | undefined;
@@ -1087,7 +1087,7 @@ declare const PropertyModel: mongoose.Model<{
1087
1087
  monthlyRent: Pound;
1088
1088
  monthlyRepayment: Pound;
1089
1089
  originalLoanBalance: Pound;
1090
- postcode: string;
1090
+ postCode: string;
1091
1091
  addressLine2?: string | null | undefined;
1092
1092
  addressLine3?: string | null | undefined;
1093
1093
  city?: string | null | undefined;
@@ -1109,7 +1109,7 @@ declare const PropertyModel: mongoose.Model<{
1109
1109
  monthlyRent: Pound;
1110
1110
  monthlyRepayment: Pound;
1111
1111
  originalLoanBalance: Pound;
1112
- postcode: string;
1112
+ postCode: string;
1113
1113
  addressLine2?: string | null | undefined;
1114
1114
  addressLine3?: string | null | undefined;
1115
1115
  city?: string | null | undefined;
@@ -88,11 +88,11 @@ const propertySchema = new mongoose.Schema({
88
88
  maxLength: 500,
89
89
  description: "Other parties that own the property"
90
90
  },
91
- postcode: {
91
+ postCode: {
92
92
  type: String,
93
93
  required: true,
94
94
  maxLength: 50,
95
- description: "The postcode for the property"
95
+ description: "The postCode for the property"
96
96
  },
97
97
  remainingTerm: {
98
98
  type: Number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "1.2.16",
3
+ "version": "1.2.18",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",