@dynamatix/gb-schemas 0.0.2 → 0.0.3
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.
- package/applicants/index.js +1 -0
- package/applications/application-checklist-Item.model.js +2 -2
- package/applications/application-company-model.js +2 -2
- package/applications/application-credit-profile.model.js +2 -2
- package/applications/application-mortgage.model.js +2 -1
- package/applications/application-onboarding.model.js +2 -2
- package/applications/{application-rational.model.js → application-rationale.model.js} +2 -2
- package/applications/application-valuation.model.js +2 -2
- package/applications/application.model.js +1 -2
- package/applications/index.js +13 -0
- package/applications/productfeatures.model.js +1 -1
- package/index.js +4 -0
- package/package.json +5 -1
- package/properties/index.js +1 -0
- package/shared/index.js +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {default as ApplicantModel} from './applicant.model.js';
|
|
@@ -43,5 +43,5 @@ const checkListItemSchema = new mongoose.Schema({
|
|
|
43
43
|
valuationSurveyorDetails: { type: String, default: "" }
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
const
|
|
47
|
-
export default
|
|
46
|
+
const ApplicationCheckListModel = mongoose.model("ApplicationCheckList", checkListItemSchema);
|
|
47
|
+
export default ApplicationCheckListModel;
|
|
@@ -25,5 +25,5 @@ const companySchema = new mongoose.Schema({
|
|
|
25
25
|
yearEnd2: { type: Number }, // e.g., 2022
|
|
26
26
|
yearEnd3: { type: Number } // e.g., 2023
|
|
27
27
|
});
|
|
28
|
-
const
|
|
29
|
-
export default
|
|
28
|
+
const ApplicationCompanyModel = mongoose.model("ApplicationCompany", companySchema);
|
|
29
|
+
export default ApplicationCompanyModel;
|
|
@@ -10,5 +10,5 @@ const creditProfileSchema = new mongoose.Schema({
|
|
|
10
10
|
companyDefaultsInLastYearNo: { type: Boolean, default: false },
|
|
11
11
|
companyDefaultsInLastYearYes: { type: String, default: "" }
|
|
12
12
|
});
|
|
13
|
-
const
|
|
14
|
-
export default
|
|
13
|
+
const ApplicationCreditProfileModel = mongoose.model("ApplicationCreditProfile", creditProfileSchema);
|
|
14
|
+
export default ApplicationCreditProfileModel;
|
|
@@ -28,4 +28,5 @@ const mortgageSchema = new mongoose.Schema({
|
|
|
28
28
|
vendorsName: { type: String, default: "" }
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
const ApplicationMortgageModel = mongoose.model("ApplicationMortgage", mortgageSchema);
|
|
32
|
+
export default ApplicationMortgageModel;
|
|
@@ -6,5 +6,5 @@ const onboardingSchema = new mongoose.Schema({
|
|
|
6
6
|
statusDate: { type: Date },
|
|
7
7
|
warnings: { type: String, default: "" }
|
|
8
8
|
});
|
|
9
|
-
const
|
|
10
|
-
export default
|
|
9
|
+
const ApplicationOnboardingModel = mongoose.model("ApplicationOnboarding", onboardingSchema);
|
|
10
|
+
export default ApplicationOnboardingModel;
|
|
@@ -16,5 +16,5 @@ const rationaleSchema = new mongoose.Schema({
|
|
|
16
16
|
securityDescription: { type: String, default: "" },
|
|
17
17
|
securityStatusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }
|
|
18
18
|
});
|
|
19
|
-
const
|
|
20
|
-
export default
|
|
19
|
+
const ApplicationRationaleModel = mongoose.model("ApplicationRationale", rationaleSchema);
|
|
20
|
+
export default ApplicationRationaleModel;
|
|
@@ -13,5 +13,5 @@ const valuationSchema = new mongoose.Schema({
|
|
|
13
13
|
valuerNotes: { type: String, default: "" },
|
|
14
14
|
version: { type: String, default: "" }
|
|
15
15
|
});
|
|
16
|
-
const
|
|
17
|
-
export default
|
|
16
|
+
const ApplicationValuationModel = mongoose.model("ApplicationValuation", valuationSchema);
|
|
17
|
+
export default ApplicationValuationModel;
|
|
@@ -59,8 +59,7 @@ const applicationSchema = new mongoose.Schema(
|
|
|
59
59
|
isValuationFeePaid: { type: Boolean, required: true },
|
|
60
60
|
isActive: { type: Boolean, default: false },
|
|
61
61
|
isUkResident: { type: Boolean, default: true },
|
|
62
|
-
riskRating: { type: String }
|
|
63
|
-
mortgage: mortgageSchema
|
|
62
|
+
riskRating: { type: String }
|
|
64
63
|
},
|
|
65
64
|
{ timestamps: true }
|
|
66
65
|
);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { default as ApplicationModel } from './application.model.js';
|
|
2
|
+
export { default as ApplicationAuditModel } from './application-audit.model.js';
|
|
3
|
+
export { default as ApplicationCheckListModel } from './application-checklist-Item.model.js';
|
|
4
|
+
export { default as ApplicationCompanyModel } from './application-company-model.js';
|
|
5
|
+
export { default as ApplicationNoteModel } from './application-note.model.js';
|
|
6
|
+
export { default as ApplicationCreditProfileModel } from './application-credit-profile.model.js';
|
|
7
|
+
export { default as ApplicationMortgageModel } from './application-mortgage.model.js';
|
|
8
|
+
export { default as ApplicationOnboardingModel } from './application-onboarding.model.js';
|
|
9
|
+
export { default as ApplicationRationaleModel } from './application-rationale.model.js';
|
|
10
|
+
export { default as ApplicationValuationModel } from './application-valuation.model.js';
|
|
11
|
+
export { default as BrokerModel } from './broker.model.js';
|
|
12
|
+
export { default as ProductFeaturesModel } from './productfeatures.model.js';
|
|
13
|
+
export { default as SolicitorModel } from './solicitor.model.js';
|
|
@@ -96,5 +96,5 @@ const productFeaturesSchema = new mongoose.Schema({
|
|
|
96
96
|
calculations: calculationsSchema
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
-
const ProductFeaturesModel = mongoose.model("
|
|
99
|
+
const ProductFeaturesModel = mongoose.model("ProductFeature", productFeaturesSchema);
|
|
100
100
|
export default ProductFeaturesModel;
|
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamatix/gb-schemas",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "All the schemas for gatehouse bank back-end.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -19,5 +19,9 @@
|
|
|
19
19
|
"homepage": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas#readme",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"mongoose": "^8.9.5"
|
|
22
|
+
},
|
|
23
|
+
"exports":{
|
|
24
|
+
"./applications": "./applications/index.js",
|
|
25
|
+
"./shared": "./shared/index.js"
|
|
22
26
|
}
|
|
23
27
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PropertyModel } from './property.model.js';
|
package/shared/index.js
ADDED