@dynamatix/gb-schemas 2.3.254 → 2.3.256
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/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-company-model.js +3 -0
- package/dist/applications/application-valuation-report.model.d.ts +1440 -1188
- package/dist/applications/application-valuation-report.model.d.ts.map +1 -1
- package/dist/applications/application-valuation-report.model.js +244 -174
- package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-catalogue.model.js +3 -0
- package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-definitions.model.js +3 -0
- package/dist/product-catalogues/product-variant.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-variant.model.js +3 -0
- package/dist/properties/property.model.d.ts.map +1 -1
- package/dist/properties/property.model.js +3 -0
- package/dist/properties/security.model.d.ts.map +1 -1
- package/dist/properties/security.model.js +3 -0
- package/dist/shared/workflow.middleware.js +1 -0
- package/dist/shared/workflow.service.d.ts.map +1 -1
- package/dist/shared/workflow.service.js +1 -0
- package/dist/users/tasks.model.d.ts.map +1 -1
- package/dist/users/tasks.model.js +4 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-company-model.d.ts","sourceRoot":"","sources":["../../applications/application-company-model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAe,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"application-company-model.d.ts","sourceRoot":"","sources":["../../applications/application-company-model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAe,MAAM,0BAA0B,CAAA;AAkJ7D,QAAA,MAAM,uBAAuB;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAsD,CAAC;AACpF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
2
|
import { Pound, formatPound } from "./../value-objects/pound";
|
|
3
3
|
import { AccountNumber } from "../value-objects/account-number";
|
|
4
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
4
5
|
const ApplicantShareholdingSchema = new mongoose.Schema({
|
|
5
6
|
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true, default: null },
|
|
6
7
|
applicantName: { type: String, default: "" },
|
|
@@ -119,5 +120,7 @@ const virtualApplicationType = companySchema.virtual('applicationType', {
|
|
|
119
120
|
options: { select: 'label' }
|
|
120
121
|
});
|
|
121
122
|
virtualApplicationType.description = 'Populated lookup value for application type';
|
|
123
|
+
// Apply workflow plugin to the schema
|
|
124
|
+
applyWorkflowPlugin(companySchema, 'applicationcompany');
|
|
122
125
|
const ApplicationCompanyModel = mongoose.model("ApplicationCompany", companySchema);
|
|
123
126
|
export default ApplicationCompanyModel;
|