@dynamatix/gb-schemas 1.2.136 → 1.2.138

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.
@@ -1 +1 @@
1
- {"version":3,"file":"application-mortgage.model.d.ts","sourceRoot":"","sources":["../../applications/application-mortgage.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AA+S/C,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AAEjE,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"application-mortgage.model.d.ts","sourceRoot":"","sources":["../../applications/application-mortgage.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AA2R/C,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AAEjE,eAAe,aAAa,CAAC"}
@@ -24,39 +24,33 @@ const mortgageSchema = new mongoose.Schema({
24
24
  },
25
25
  purposeOfMortgage: {
26
26
  type: String,
27
- required: true,
28
27
  maxlength: 50,
29
28
  description: "Purpose of the mortgage (e.g., purchase, refinance)",
30
29
  },
31
30
  depositComeFromLids: {
32
31
  type: [mongoose.Schema.Types.ObjectId],
33
32
  ref: "Lookup",
34
- required: true,
35
33
  default: null,
36
34
  description: "Where the deposit for the mortgage will come from",
37
35
  },
38
36
  ifOtherDetails: {
39
37
  type: String,
40
38
  maxlength: 50,
41
- required: true,
42
39
  description: "Details if the deposit comes from 'Other'",
43
40
  },
44
41
  purchasePrice: {
45
42
  type: Pound,
46
- required: true,
47
43
  description: "Purchase price of the property",
48
44
  },
49
45
  repaymentTypeLid: {
50
46
  type: mongoose.Schema.Types.ObjectId,
51
47
  ref: "Lookup",
52
- required: true,
53
48
  default: null,
54
49
  description: "Lookup ID representing the type of repayment (e.g., interest-only, repayment)",
55
50
  },
56
51
  exitStrategyLid: {
57
52
  type: mongoose.Schema.Types.ObjectId,
58
53
  ref: "Lookup",
59
- required: true,
60
54
  default: null,
61
55
  description: "Lookup ID representing the Exit strategy for the mortgage)",
62
56
  },
@@ -67,77 +61,64 @@ const mortgageSchema = new mongoose.Schema({
67
61
  },
68
62
  purchaseDate: {
69
63
  type: String,
70
- required: true,
71
64
  default: null,
72
65
  description: "Purchase date of the property",
73
66
  },
74
67
  estimatedValue: {
75
68
  type: Pound,
76
- required: true,
77
69
  description: "Estimated value of the property",
78
70
  },
79
71
  loanRequired: {
80
72
  type: Pound,
81
- required: true,
82
73
  description: "Amount of finance required",
83
74
  },
84
75
  monthlyRentalIncome: {
85
76
  type: Pound,
86
- required: true,
87
77
  description: "Monthly rental income from the property",
88
78
  },
89
79
  outstandingBalance: {
90
80
  type: Pound,
91
- required: true,
92
81
  description: "Outstanding balance on the existing mortgage",
93
82
  },
94
83
  fundRaisedFor: {
95
84
  type: String,
96
85
  maxlength: 250,
97
- required: true,
98
86
  description: "What the funds raised will be used for",
99
87
  },
100
88
  sourceOfFundsLid: {
101
89
  type: mongoose.Schema.Types.ObjectId,
102
90
  ref: "Lookup",
103
- required: true,
104
91
  default: null,
105
92
  description: "Lookup ID representing the Main source of income for monthly finance payments",
106
93
  },
107
94
  sourceOfFundDetails: {
108
95
  type: String,
109
96
  maxlength: 50,
110
- required: true,
111
97
  description: "Additional details if the source of funds is 'Other'",
112
98
  },
113
99
  propertyValuationDetails: {
114
100
  type: String,
115
101
  maxlength: 35,
116
- required: true,
117
102
  description: "Details on who to contact for property valuation",
118
103
  },
119
104
  telephoneNumber: {
120
105
  type: String,
121
106
  maxlength: 15,
122
- required: true,
123
107
  description: "Contact number for property valuation",
124
108
  },
125
109
  isDistressedSale: {
126
110
  type: Boolean,
127
111
  default: false,
128
- required: true,
129
112
  description: "Indicates if this is a distressed sale",
130
113
  },
131
114
  isPurchasedBelowMarketValue: {
132
115
  type: Boolean,
133
116
  default: false,
134
- required: true,
135
117
  description: "Indicates if the property is purchased below market value",
136
118
  },
137
119
  isPurchasedAsSale: {
138
120
  type: Boolean,
139
121
  default: false,
140
- required: true,
141
122
  description: "Indicates if the property is purchased as a sale and rent back",
142
123
  },
143
124
  isReadyToSell: {
@@ -173,7 +154,6 @@ const mortgageSchema = new mongoose.Schema({
173
154
  leaseTypeLid: {
174
155
  type: mongoose.Schema.Types.ObjectId,
175
156
  ref: "Lookup",
176
- required: true,
177
157
  default: null,
178
158
  description: "Lease type for the property",
179
159
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "1.2.136",
3
+ "version": "1.2.138",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",