@dynamatix/gb-schemas 1.2.61 → 1.2.63

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.
@@ -182,53 +182,7 @@ declare const MortgageModel: mongoose.Model<{
182
182
  repaymentTypeLid?: mongoose.Types.ObjectId | null | undefined;
183
183
  exitStrategyLid?: mongoose.Types.ObjectId | null | undefined;
184
184
  isCapitalRaise?: unknown;
185
- purchaseDate?: {
186
- toJSON?: {} | null | undefined;
187
- [Symbol.toPrimitive]?: {} | null | undefined;
188
- toString?: {} | null | undefined;
189
- toLocaleString?: {} | null | undefined;
190
- valueOf?: {} | null | undefined;
191
- toDateString?: {} | null | undefined;
192
- toTimeString?: {} | null | undefined;
193
- toLocaleDateString?: {} | null | undefined;
194
- toLocaleTimeString?: {} | null | undefined;
195
- getTime?: {} | null | undefined;
196
- getFullYear?: {} | null | undefined;
197
- getUTCFullYear?: {} | null | undefined;
198
- getMonth?: {} | null | undefined;
199
- getUTCMonth?: {} | null | undefined;
200
- getDate?: {} | null | undefined;
201
- getUTCDate?: {} | null | undefined;
202
- getDay?: {} | null | undefined;
203
- getUTCDay?: {} | null | undefined;
204
- getHours?: {} | null | undefined;
205
- getUTCHours?: {} | null | undefined;
206
- getMinutes?: {} | null | undefined;
207
- getUTCMinutes?: {} | null | undefined;
208
- getSeconds?: {} | null | undefined;
209
- getUTCSeconds?: {} | null | undefined;
210
- getMilliseconds?: {} | null | undefined;
211
- getUTCMilliseconds?: {} | null | undefined;
212
- getTimezoneOffset?: {} | null | undefined;
213
- setTime?: {} | null | undefined;
214
- setMilliseconds?: {} | null | undefined;
215
- setUTCMilliseconds?: {} | null | undefined;
216
- setSeconds?: {} | null | undefined;
217
- setUTCSeconds?: {} | null | undefined;
218
- setMinutes?: {} | null | undefined;
219
- setUTCMinutes?: {} | null | undefined;
220
- setHours?: {} | null | undefined;
221
- setUTCHours?: {} | null | undefined;
222
- setDate?: {} | null | undefined;
223
- setUTCDate?: {} | null | undefined;
224
- setMonth?: {} | null | undefined;
225
- setUTCMonth?: {} | null | undefined;
226
- setFullYear?: {} | null | undefined;
227
- setUTCFullYear?: {} | null | undefined;
228
- toUTCString?: {} | null | undefined;
229
- toISOString?: {} | null | undefined;
230
- getVarDate?: {} | null | undefined;
231
- } | null | undefined;
185
+ purchaseDate?: unknown;
232
186
  estimatedValue?: {
233
187
  validators: mongoose.Types.DocumentArray<{
234
188
  type?: unknown;
@@ -587,53 +541,7 @@ declare const MortgageModel: mongoose.Model<{
587
541
  repaymentTypeLid?: mongoose.Types.ObjectId | null | undefined;
588
542
  exitStrategyLid?: mongoose.Types.ObjectId | null | undefined;
589
543
  isCapitalRaise?: unknown;
590
- purchaseDate?: {
591
- toJSON?: {} | null | undefined;
592
- [Symbol.toPrimitive]?: {} | null | undefined;
593
- toString?: {} | null | undefined;
594
- toLocaleString?: {} | null | undefined;
595
- valueOf?: {} | null | undefined;
596
- toDateString?: {} | null | undefined;
597
- toTimeString?: {} | null | undefined;
598
- toLocaleDateString?: {} | null | undefined;
599
- toLocaleTimeString?: {} | null | undefined;
600
- getTime?: {} | null | undefined;
601
- getFullYear?: {} | null | undefined;
602
- getUTCFullYear?: {} | null | undefined;
603
- getMonth?: {} | null | undefined;
604
- getUTCMonth?: {} | null | undefined;
605
- getDate?: {} | null | undefined;
606
- getUTCDate?: {} | null | undefined;
607
- getDay?: {} | null | undefined;
608
- getUTCDay?: {} | null | undefined;
609
- getHours?: {} | null | undefined;
610
- getUTCHours?: {} | null | undefined;
611
- getMinutes?: {} | null | undefined;
612
- getUTCMinutes?: {} | null | undefined;
613
- getSeconds?: {} | null | undefined;
614
- getUTCSeconds?: {} | null | undefined;
615
- getMilliseconds?: {} | null | undefined;
616
- getUTCMilliseconds?: {} | null | undefined;
617
- getTimezoneOffset?: {} | null | undefined;
618
- setTime?: {} | null | undefined;
619
- setMilliseconds?: {} | null | undefined;
620
- setUTCMilliseconds?: {} | null | undefined;
621
- setSeconds?: {} | null | undefined;
622
- setUTCSeconds?: {} | null | undefined;
623
- setMinutes?: {} | null | undefined;
624
- setUTCMinutes?: {} | null | undefined;
625
- setHours?: {} | null | undefined;
626
- setUTCHours?: {} | null | undefined;
627
- setDate?: {} | null | undefined;
628
- setUTCDate?: {} | null | undefined;
629
- setMonth?: {} | null | undefined;
630
- setUTCMonth?: {} | null | undefined;
631
- setFullYear?: {} | null | undefined;
632
- setUTCFullYear?: {} | null | undefined;
633
- toUTCString?: {} | null | undefined;
634
- toISOString?: {} | null | undefined;
635
- getVarDate?: {} | null | undefined;
636
- } | null | undefined;
544
+ purchaseDate?: unknown;
637
545
  estimatedValue?: {
638
546
  validators: mongoose.Types.DocumentArray<{
639
547
  type?: unknown;
@@ -992,53 +900,7 @@ declare const MortgageModel: mongoose.Model<{
992
900
  repaymentTypeLid?: mongoose.Types.ObjectId | null | undefined;
993
901
  exitStrategyLid?: mongoose.Types.ObjectId | null | undefined;
994
902
  isCapitalRaise?: unknown;
995
- purchaseDate?: {
996
- toJSON?: {} | null | undefined;
997
- [Symbol.toPrimitive]?: {} | null | undefined;
998
- toString?: {} | null | undefined;
999
- toLocaleString?: {} | null | undefined;
1000
- valueOf?: {} | null | undefined;
1001
- toDateString?: {} | null | undefined;
1002
- toTimeString?: {} | null | undefined;
1003
- toLocaleDateString?: {} | null | undefined;
1004
- toLocaleTimeString?: {} | null | undefined;
1005
- getTime?: {} | null | undefined;
1006
- getFullYear?: {} | null | undefined;
1007
- getUTCFullYear?: {} | null | undefined;
1008
- getMonth?: {} | null | undefined;
1009
- getUTCMonth?: {} | null | undefined;
1010
- getDate?: {} | null | undefined;
1011
- getUTCDate?: {} | null | undefined;
1012
- getDay?: {} | null | undefined;
1013
- getUTCDay?: {} | null | undefined;
1014
- getHours?: {} | null | undefined;
1015
- getUTCHours?: {} | null | undefined;
1016
- getMinutes?: {} | null | undefined;
1017
- getUTCMinutes?: {} | null | undefined;
1018
- getSeconds?: {} | null | undefined;
1019
- getUTCSeconds?: {} | null | undefined;
1020
- getMilliseconds?: {} | null | undefined;
1021
- getUTCMilliseconds?: {} | null | undefined;
1022
- getTimezoneOffset?: {} | null | undefined;
1023
- setTime?: {} | null | undefined;
1024
- setMilliseconds?: {} | null | undefined;
1025
- setUTCMilliseconds?: {} | null | undefined;
1026
- setSeconds?: {} | null | undefined;
1027
- setUTCSeconds?: {} | null | undefined;
1028
- setMinutes?: {} | null | undefined;
1029
- setUTCMinutes?: {} | null | undefined;
1030
- setHours?: {} | null | undefined;
1031
- setUTCHours?: {} | null | undefined;
1032
- setDate?: {} | null | undefined;
1033
- setUTCDate?: {} | null | undefined;
1034
- setMonth?: {} | null | undefined;
1035
- setUTCMonth?: {} | null | undefined;
1036
- setFullYear?: {} | null | undefined;
1037
- setUTCFullYear?: {} | null | undefined;
1038
- toUTCString?: {} | null | undefined;
1039
- toISOString?: {} | null | undefined;
1040
- getVarDate?: {} | null | undefined;
1041
- } | null | undefined;
903
+ purchaseDate?: unknown;
1042
904
  estimatedValue?: {
1043
905
  validators: mongoose.Types.DocumentArray<{
1044
906
  type?: unknown;
@@ -1267,7 +1129,7 @@ declare const MortgageModel: mongoose.Model<{
1267
1129
  repaymentTypeLid: mongoose.Types.ObjectId;
1268
1130
  exitStrategyLid: mongoose.Types.ObjectId;
1269
1131
  isCapitalRaise: boolean;
1270
- purchaseDate: NativeDate;
1132
+ purchaseDate: string;
1271
1133
  estimatedValue: Pound;
1272
1134
  loanRequired: Pound;
1273
1135
  monthlyRentalIncome: Pound;
@@ -1302,7 +1164,7 @@ declare const MortgageModel: mongoose.Model<{
1302
1164
  repaymentTypeLid: mongoose.Types.ObjectId;
1303
1165
  exitStrategyLid: mongoose.Types.ObjectId;
1304
1166
  isCapitalRaise: boolean;
1305
- purchaseDate: NativeDate;
1167
+ purchaseDate: string;
1306
1168
  estimatedValue: Pound;
1307
1169
  loanRequired: Pound;
1308
1170
  monthlyRentalIncome: Pound;
@@ -1337,7 +1199,7 @@ declare const MortgageModel: mongoose.Model<{
1337
1199
  repaymentTypeLid: mongoose.Types.ObjectId;
1338
1200
  exitStrategyLid: mongoose.Types.ObjectId;
1339
1201
  isCapitalRaise: boolean;
1340
- purchaseDate: NativeDate;
1202
+ purchaseDate: string;
1341
1203
  estimatedValue: Pound;
1342
1204
  loanRequired: Pound;
1343
1205
  monthlyRentalIncome: Pound;
@@ -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;AA4R/C,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AAEjE,eAAe,aAAa,CAAC"}
@@ -205,6 +205,7 @@ declare const ApplicationModel: mongoose.Model<{
205
205
  companyAnyVoluntaryEnforcedPossessionYes: string;
206
206
  companyAnyVoluntaryEnforcedPossessionNo: string;
207
207
  } | null | undefined;
208
+ currentApprivoAuditId?: number | null | undefined;
208
209
  assignedToUserId?: mongoose.Types.ObjectId | null | undefined;
209
210
  lastUpdated?: string | null | undefined;
210
211
  submittedDate?: string | null | undefined;
@@ -393,6 +394,7 @@ declare const ApplicationModel: mongoose.Model<{
393
394
  companyAnyVoluntaryEnforcedPossessionYes: string;
394
395
  companyAnyVoluntaryEnforcedPossessionNo: string;
395
396
  } | null | undefined;
397
+ currentApprivoAuditId?: number | null | undefined;
396
398
  assignedToUserId?: mongoose.Types.ObjectId | null | undefined;
397
399
  lastUpdated?: string | null | undefined;
398
400
  submittedDate?: string | null | undefined;
@@ -581,6 +583,7 @@ declare const ApplicationModel: mongoose.Model<{
581
583
  companyAnyVoluntaryEnforcedPossessionYes: string;
582
584
  companyAnyVoluntaryEnforcedPossessionNo: string;
583
585
  } | null | undefined;
586
+ currentApprivoAuditId?: number | null | undefined;
584
587
  assignedToUserId?: mongoose.Types.ObjectId | null | undefined;
585
588
  lastUpdated?: string | null | undefined;
586
589
  submittedDate?: string | null | undefined;
@@ -781,6 +784,7 @@ declare const ApplicationModel: mongoose.Model<{
781
784
  companyAnyVoluntaryEnforcedPossessionYes: string;
782
785
  companyAnyVoluntaryEnforcedPossessionNo: string;
783
786
  } | null | undefined;
787
+ currentApprivoAuditId?: number | null | undefined;
784
788
  assignedToUserId?: mongoose.Types.ObjectId | null | undefined;
785
789
  lastUpdated?: string | null | undefined;
786
790
  submittedDate?: string | null | undefined;
@@ -969,6 +973,7 @@ declare const ApplicationModel: mongoose.Model<{
969
973
  companyAnyVoluntaryEnforcedPossessionYes: string;
970
974
  companyAnyVoluntaryEnforcedPossessionNo: string;
971
975
  } | null | undefined;
976
+ currentApprivoAuditId?: number | null | undefined;
972
977
  assignedToUserId?: mongoose.Types.ObjectId | null | undefined;
973
978
  lastUpdated?: string | null | undefined;
974
979
  submittedDate?: string | null | undefined;
@@ -1157,6 +1162,7 @@ declare const ApplicationModel: mongoose.Model<{
1157
1162
  companyAnyVoluntaryEnforcedPossessionYes: string;
1158
1163
  companyAnyVoluntaryEnforcedPossessionNo: string;
1159
1164
  } | null | undefined;
1165
+ currentApprivoAuditId?: number | null | undefined;
1160
1166
  assignedToUserId?: mongoose.Types.ObjectId | null | undefined;
1161
1167
  lastUpdated?: string | null | undefined;
1162
1168
  submittedDate?: string | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"application.model.d.ts","sourceRoot":"","sources":["../../applications/application.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA8KhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ema({
62
62
  companyId: { type: mongoose.Schema.Types.ObjectId, ref: "ApplicationCompany" },
63
63
  rationaleId: { type: mongoose.Schema.Types.ObjectId, ref: "ApplicationRationale" },
64
64
  newAuditRecordsCount: { type: String, default: 0 }, // Ensure it is a Number
65
+ currentApprivoAuditId: Number,
65
66
  propertyIds: [{ type: mongoose.Schema.Types.ObjectId, ref: "Property" }]
66
67
  }, {
67
68
  timestamps: true,
@@ -1 +1 @@
1
- {"version":3,"file":"property.model.d.ts","sourceRoot":"","sources":["../../properties/property.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAuI/C,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AACjE,eAAe,aAAa,CAAC"}
@@ -128,5 +128,17 @@ propertySchema.virtual('stressedRCR').get(function () {
128
128
  const stressedRCR = (monthlyRentValue / monthlyRepaymentValue) * 100;
129
129
  return stressedRCR.toFixed(2);
130
130
  });
131
+ // virtual property 'applicationType'
132
+ propertySchema.virtual('applicationType').get(function () {
133
+ return this.applicationId?.applicationTypeLid instanceof mongoose.Types.ObjectId
134
+ ? null
135
+ : this.applicationId?.applicationTypeLid?.name || null;
136
+ });
137
+ // virtual property 'lendingType'
138
+ propertySchema.virtual('lendingType').get(function () {
139
+ return this.applicationId?.lendingTypeLid instanceof mongoose.Types.ObjectId
140
+ ? null
141
+ : this.applicationId?.lendingTypeLid?.name || null;
142
+ });
131
143
  const PropertyModel = mongoose.model('Property', propertySchema);
132
144
  export default PropertyModel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "1.2.61",
3
+ "version": "1.2.63",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",