@dynamatix/gb-schemas 1.2.12 → 1.2.13
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.
|
@@ -4,7 +4,7 @@ declare const PropertyModel: mongoose.Model<{
|
|
|
4
4
|
createdAt: NativeDate;
|
|
5
5
|
updatedAt: NativeDate;
|
|
6
6
|
} & {
|
|
7
|
-
applicationId?:
|
|
7
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
8
8
|
createdAt?: {
|
|
9
9
|
toJSON?: {} | null | undefined;
|
|
10
10
|
[Symbol.toPrimitive]?: {} | null | undefined;
|
|
@@ -345,11 +345,12 @@ declare const PropertyModel: mongoose.Model<{
|
|
|
345
345
|
otherOwnershipParties?: unknown;
|
|
346
346
|
postcode?: unknown;
|
|
347
347
|
remainingTerm?: unknown;
|
|
348
|
+
portfolioFile?: unknown;
|
|
348
349
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
349
350
|
createdAt: NativeDate;
|
|
350
351
|
updatedAt: NativeDate;
|
|
351
352
|
} & {
|
|
352
|
-
applicationId?:
|
|
353
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
353
354
|
createdAt?: {
|
|
354
355
|
toJSON?: {} | null | undefined;
|
|
355
356
|
[Symbol.toPrimitive]?: {} | null | undefined;
|
|
@@ -690,11 +691,12 @@ declare const PropertyModel: mongoose.Model<{
|
|
|
690
691
|
otherOwnershipParties?: unknown;
|
|
691
692
|
postcode?: unknown;
|
|
692
693
|
remainingTerm?: unknown;
|
|
694
|
+
portfolioFile?: unknown;
|
|
693
695
|
}> & {
|
|
694
696
|
createdAt: NativeDate;
|
|
695
697
|
updatedAt: NativeDate;
|
|
696
698
|
} & {
|
|
697
|
-
applicationId?:
|
|
699
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
698
700
|
createdAt?: {
|
|
699
701
|
toJSON?: {} | null | undefined;
|
|
700
702
|
[Symbol.toPrimitive]?: {} | null | undefined;
|
|
@@ -1035,6 +1037,7 @@ declare const PropertyModel: mongoose.Model<{
|
|
|
1035
1037
|
otherOwnershipParties?: unknown;
|
|
1036
1038
|
postcode?: unknown;
|
|
1037
1039
|
remainingTerm?: unknown;
|
|
1040
|
+
portfolioFile?: unknown;
|
|
1038
1041
|
} & {
|
|
1039
1042
|
_id: mongoose.Types.ObjectId;
|
|
1040
1043
|
} & {
|
|
@@ -1051,6 +1054,7 @@ declare const PropertyModel: mongoose.Model<{
|
|
|
1051
1054
|
createdAt: NativeDate;
|
|
1052
1055
|
updatedAt: NativeDate;
|
|
1053
1056
|
} & {
|
|
1057
|
+
applicationId: mongoose.Types.ObjectId;
|
|
1054
1058
|
addressLine1: string;
|
|
1055
1059
|
propertyId: string;
|
|
1056
1060
|
countryLid: mongoose.Types.ObjectId;
|
|
@@ -1062,16 +1066,17 @@ declare const PropertyModel: mongoose.Model<{
|
|
|
1062
1066
|
outstandingBalance: Pound;
|
|
1063
1067
|
postcode: string;
|
|
1064
1068
|
remainingTerm: number;
|
|
1065
|
-
applicationId?: unknown;
|
|
1066
1069
|
addressLine2?: string | null | undefined;
|
|
1067
1070
|
addressLine3?: string | null | undefined;
|
|
1068
1071
|
city?: string | null | undefined;
|
|
1069
1072
|
associatedLoanParties?: string | null | undefined;
|
|
1070
1073
|
otherOwnershipParties?: string | null | undefined;
|
|
1074
|
+
portfolioFile?: string | null | undefined;
|
|
1071
1075
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
1072
1076
|
createdAt: NativeDate;
|
|
1073
1077
|
updatedAt: NativeDate;
|
|
1074
1078
|
} & {
|
|
1079
|
+
applicationId: mongoose.Types.ObjectId;
|
|
1075
1080
|
addressLine1: string;
|
|
1076
1081
|
propertyId: string;
|
|
1077
1082
|
countryLid: mongoose.Types.ObjectId;
|
|
@@ -1083,16 +1088,17 @@ declare const PropertyModel: mongoose.Model<{
|
|
|
1083
1088
|
outstandingBalance: Pound;
|
|
1084
1089
|
postcode: string;
|
|
1085
1090
|
remainingTerm: number;
|
|
1086
|
-
applicationId?: unknown;
|
|
1087
1091
|
addressLine2?: string | null | undefined;
|
|
1088
1092
|
addressLine3?: string | null | undefined;
|
|
1089
1093
|
city?: string | null | undefined;
|
|
1090
1094
|
associatedLoanParties?: string | null | undefined;
|
|
1091
1095
|
otherOwnershipParties?: string | null | undefined;
|
|
1096
|
+
portfolioFile?: string | null | undefined;
|
|
1092
1097
|
}>> & mongoose.FlatRecord<{
|
|
1093
1098
|
createdAt: NativeDate;
|
|
1094
1099
|
updatedAt: NativeDate;
|
|
1095
1100
|
} & {
|
|
1101
|
+
applicationId: mongoose.Types.ObjectId;
|
|
1096
1102
|
addressLine1: string;
|
|
1097
1103
|
propertyId: string;
|
|
1098
1104
|
countryLid: mongoose.Types.ObjectId;
|
|
@@ -1104,12 +1110,12 @@ declare const PropertyModel: mongoose.Model<{
|
|
|
1104
1110
|
outstandingBalance: Pound;
|
|
1105
1111
|
postcode: string;
|
|
1106
1112
|
remainingTerm: number;
|
|
1107
|
-
applicationId?: unknown;
|
|
1108
1113
|
addressLine2?: string | null | undefined;
|
|
1109
1114
|
addressLine3?: string | null | undefined;
|
|
1110
1115
|
city?: string | null | undefined;
|
|
1111
1116
|
associatedLoanParties?: string | null | undefined;
|
|
1112
1117
|
otherOwnershipParties?: string | null | undefined;
|
|
1118
|
+
portfolioFile?: string | null | undefined;
|
|
1113
1119
|
}> & {
|
|
1114
1120
|
_id: mongoose.Types.ObjectId;
|
|
1115
1121
|
} & {
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"property.model.d.ts","sourceRoot":"","sources":["../../properties/property.model.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AACjE,eAAe,aAAa,CAAC"}
|
|
@@ -3,7 +3,8 @@ import { Pound } from '../value-objects/pound';
|
|
|
3
3
|
const propertySchema = new mongoose.Schema({
|
|
4
4
|
applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application",
|
|
5
5
|
description: "Unique identifier for the application",
|
|
6
|
-
required: true
|
|
6
|
+
required: true
|
|
7
|
+
},
|
|
7
8
|
propertyId: {
|
|
8
9
|
type: String,
|
|
9
10
|
required: true,
|
|
@@ -99,6 +100,11 @@ const propertySchema = new mongoose.Schema({
|
|
|
99
100
|
max: 4,
|
|
100
101
|
description: "The remaining term of the loan in years"
|
|
101
102
|
},
|
|
103
|
+
portfolioFile: {
|
|
104
|
+
type: String,
|
|
105
|
+
required: false,
|
|
106
|
+
description: "File containing the portfolio details"
|
|
107
|
+
}
|
|
102
108
|
}, {
|
|
103
109
|
timestamps: true,
|
|
104
110
|
toJSON: { virtuals: true },
|