@dynamatix/gb-schemas 2.3.237 → 2.3.238
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/README.md +309 -0
- package/dist/applicants/applicant-additional-income.model.d.ts +13 -12
- package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-additional-income.model.js +3 -0
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts +19 -18
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-creditCard.model.js +3 -0
- package/dist/applicants/applicant-commitment-loan.model.d.ts +19 -18
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-loan.model.js +3 -0
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +19 -18
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.js +3 -0
- package/dist/applicants/applicant-commitment-residence.model.d.ts +31 -30
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-residence.model.js +3 -0
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +19 -18
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.js +3 -0
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +19 -18
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +3 -0
- package/dist/applicants/applicant-credit-data.model.d.ts +3 -3
- package/dist/applicants/applicant-credit-report.model.d.ts +3754 -0
- package/dist/applicants/{applicant-income.model.d.ts.map → applicant-credit-report.model.d.ts.map} +1 -1
- package/dist/applicants/applicant-credit-report.model.js +116 -0
- package/dist/applicants/applicant-credit-report.type.d.ts +140 -0
- package/dist/applicants/applicant-credit-report.type.d.ts.map +1 -0
- package/dist/applicants/applicant-credit-report.type.js +1 -0
- package/dist/applicants/applicant-employment-income.model.d.ts +7 -6
- package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment-income.model.js +3 -0
- package/dist/applicants/applicant-employment.model.d.ts +88 -87
- package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment.model.js +19 -19
- package/dist/applicants/applicant-expenditure.model.d.ts +7 -0
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.js +77 -0
- package/dist/applicants/applicant-expenditure.type.d.ts +42 -0
- package/dist/applicants/applicant-expenditure.type.d.ts.map +1 -0
- package/dist/applicants/applicant-expenditure.type.js +1 -0
- package/dist/applicants/applicant-income-settings.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income-settings.model.js +3 -0
- package/dist/applicants/applicant-income-settings.type.d.ts +40 -0
- package/dist/applicants/applicant-income-settings.type.d.ts.map +1 -0
- package/dist/applicants/applicant-income-settings.type.js +1 -0
- package/dist/applicants/applicant-income-summary.model.d.ts +73 -72
- package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income-summary.model.js +3 -0
- package/dist/applicants/applicant-income-summary.type.d.ts +60 -0
- package/dist/applicants/applicant-income-summary.type.d.ts.map +1 -0
- package/dist/applicants/applicant-income-summary.type.js +1 -0
- package/dist/applicants/applicant-pension-income.model.d.ts +19 -18
- package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-pension-income.model.js +3 -0
- package/dist/applicants/applicant-pension-income.type.d.ts +40 -0
- package/dist/applicants/applicant-pension-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-pension-income.type.js +1 -0
- package/dist/applicants/applicant-property-income.model.d.ts +37 -36
- package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-property-income.model.js +3 -0
- package/dist/applicants/applicant-self-employed-income.model.d.ts +7 -6
- package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.js +3 -0
- package/dist/applicants/applicant-self-employed-income.type.d.ts +37 -0
- package/dist/applicants/applicant-self-employed-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-self-employed-income.type.js +1 -0
- package/dist/applicants/applicant-self-employment.model.d.ts +6 -6
- package/dist/applicants/applicant-self-employment.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employment.model.js +4 -1
- package/dist/applicants/applicant-sole-trader-income.model.d.ts +7 -6
- package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-sole-trader-income.model.js +3 -0
- package/dist/applicants/applicant-sole-trader-income.type.d.ts +37 -0
- package/dist/applicants/applicant-sole-trader-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-sole-trader-income.type.js +1 -0
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts +19 -18
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -1
- package/dist/applicants/applicant-uk-tax-credits.model.js +3 -0
- package/dist/applicants/applicant-uk-tax-credits.type.d.ts +39 -0
- package/dist/applicants/applicant-uk-tax-credits.type.d.ts.map +1 -0
- package/dist/applicants/applicant-uk-tax-credits.type.js +1 -0
- package/dist/applicants/applicant-welcome-call.model.d.ts +288 -0
- package/dist/applicants/applicant-welcome-call.model.d.ts.map +1 -0
- package/dist/applicants/applicant-welcome-call.model.js +263 -0
- package/dist/applicants/applicant-welcome-call.type.d.ts +66 -0
- package/dist/applicants/applicant-welcome-call.type.d.ts.map +1 -0
- package/dist/applicants/applicant-welcome-call.type.js +1 -0
- package/dist/applicants/applicant.model.d.ts +49 -42
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +5 -1
- package/dist/applicants/applicant.type.d.ts +158 -0
- package/dist/applicants/applicant.type.d.ts.map +1 -0
- package/dist/applicants/applicant.type.js +1 -0
- package/dist/applicants/index.d.ts +14 -0
- package/dist/applicants/index.d.ts.map +1 -1
- package/dist/applicants/index.js +2 -0
- package/dist/applications/application-audit.model.d.ts +6 -6
- package/dist/applications/application-audit.model.d.ts.map +1 -1
- package/dist/applications/application-audit.model.js +3 -0
- package/dist/applications/application-checklist-Item.model.d.ts +6 -0
- package/dist/applications/application-checklist-Item.model.d.ts.map +1 -1
- package/dist/applications/application-checklist-Item.model.js +4 -0
- package/dist/applications/application-company-model.d.ts +64 -57
- package/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-company-model.js +1 -0
- package/dist/applications/application-direct-debit.model.d.ts +29 -27
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.js +3 -0
- package/dist/applications/application-euc.model.d.ts.map +1 -1
- package/dist/applications/application-euc.model.js +3 -0
- package/dist/applications/application-fieldconfig.model.d.ts.map +1 -1
- package/dist/applications/application-fieldconfig.model.js +3 -0
- package/dist/applications/application-legal.model.d.ts.map +1 -1
- package/dist/applications/application-legal.model.js +3 -0
- package/dist/applications/application-mortgage.model.d.ts +1 -0
- package/dist/applications/application-mortgage.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.js +3 -0
- package/dist/applications/application-mortgage.type.d.ts +76 -0
- package/dist/applications/application-mortgage.type.d.ts.map +1 -0
- package/dist/applications/application-mortgage.type.js +1 -0
- package/dist/applications/application-note.model.d.ts +36 -24
- package/dist/applications/application-note.model.d.ts.map +1 -1
- package/dist/applications/application-note.model.js +12 -3
- package/dist/applications/application-note.type.d.ts +55 -0
- package/dist/applications/application-note.type.d.ts.map +1 -0
- package/dist/applications/application-note.type.js +1 -0
- package/dist/applications/application-offer.model.d.ts.map +1 -1
- package/dist/applications/application-offer.model.js +3 -0
- package/dist/applications/application-onboarding.model.d.ts.map +1 -1
- package/dist/applications/application-onboarding.model.js +3 -0
- package/dist/applications/application-product.model.d.ts +77 -13
- package/dist/applications/application-product.model.d.ts.map +1 -1
- package/dist/applications/application-product.model.js +16 -3
- package/dist/applications/application-product.type.d.ts +58 -0
- package/dist/applications/application-product.type.d.ts.map +1 -0
- package/dist/applications/application-product.type.js +1 -0
- package/dist/applications/application-productfeatures.model.d.ts +12 -6
- package/dist/applications/application-productfeatures.model.d.ts.map +1 -1
- package/dist/applications/application-productfeatures.model.js +5 -1
- package/dist/applications/application-productfeatures.type.d.ts +125 -0
- package/dist/applications/application-productfeatures.type.d.ts.map +1 -0
- package/dist/applications/application-productfeatures.type.js +1 -0
- package/dist/applications/application-rationale.model.d.ts +6 -12
- package/dist/applications/application-rationale.model.d.ts.map +1 -1
- package/dist/applications/application-rationale.model.js +11 -20
- package/dist/applications/application-rationale.type.d.ts +7 -7
- package/dist/applications/application-rationale.type.d.ts.map +1 -1
- package/dist/applications/application-risk-narrative.model.d.ts.map +1 -1
- package/dist/applications/application-risk-narrative.model.js +3 -0
- package/dist/applications/application-valuation-report.model.d.ts +1246 -0
- package/dist/applications/application-valuation-report.model.d.ts.map +1 -0
- package/dist/applications/application-valuation-report.model.js +269 -0
- package/dist/applications/application-valuation-report.type.d.ts +108 -0
- package/dist/applications/application-valuation-report.type.d.ts.map +1 -0
- package/dist/applications/application-valuation-report.type.js +1 -0
- package/dist/applications/application-valuation.model.d.ts +695 -18
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.js +33 -7
- package/dist/applications/application-valuation.type.d.ts +54 -0
- package/dist/applications/application-valuation.type.d.ts.map +1 -0
- package/dist/applications/application-valuation.type.js +1 -0
- package/dist/applications/application.model.d.ts +36 -30
- package/dist/applications/application.model.d.ts.map +1 -1
- package/dist/applications/application.model.js +17 -4
- package/dist/applications/applications-task.model.d.ts +171 -67
- package/dist/applications/applications-task.model.d.ts.map +1 -1
- package/dist/applications/applications-task.model.js +36 -45
- package/dist/applications/applications-task.type.d.ts +57 -0
- package/dist/applications/applications-task.type.d.ts.map +1 -0
- package/dist/applications/applications-task.type.js +1 -0
- package/dist/applications/broker.model.d.ts.map +1 -1
- package/dist/applications/broker.model.js +3 -0
- package/dist/applications/index.d.ts +10 -3
- package/dist/applications/index.d.ts.map +1 -1
- package/dist/applications/index.js +2 -3
- package/dist/applications/solicitor.model.d.ts +2 -0
- package/dist/applications/solicitor.model.d.ts.map +1 -1
- package/dist/applications/solicitor.model.js +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/product-catalogues/index.d.ts +3 -0
- package/dist/product-catalogues/index.d.ts.map +1 -1
- package/dist/product-catalogues/product-catalogue.type.d.ts +15 -0
- package/dist/product-catalogues/product-catalogue.type.d.ts.map +1 -0
- package/dist/product-catalogues/product-catalogue.type.js +1 -0
- package/dist/product-catalogues/product-definitions.type.d.ts +53 -0
- package/dist/product-catalogues/product-definitions.type.d.ts.map +1 -0
- package/dist/product-catalogues/product-definitions.type.js +1 -0
- package/dist/product-catalogues/product-variant.type.d.ts +38 -0
- package/dist/product-catalogues/product-variant.type.d.ts.map +1 -0
- package/dist/product-catalogues/product-variant.type.js +1 -0
- package/dist/properties/property.model.d.ts +52 -51
- package/dist/properties/property.model.d.ts.map +1 -1
- package/dist/properties/property.model.js +1 -2
- package/dist/properties/security.model.d.ts +6 -0
- package/dist/properties/security.model.d.ts.map +1 -1
- package/dist/properties/security.model.js +1 -0
- package/dist/shared/alert.model.d.ts +12 -12
- package/dist/shared/api-log.model.d.ts +118 -0
- package/dist/shared/api-log.model.d.ts.map +1 -0
- package/dist/shared/api-log.model.js +21 -0
- package/dist/shared/apprivo-sync-journey.model.d.ts +6 -6
- package/dist/shared/checklist.model.d.ts +6 -6
- package/dist/shared/index.d.ts +5 -1
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +4 -1
- package/dist/shared/job-setting.model.d.ts +6 -6
- package/dist/shared/lookup-group.model.d.ts +25 -25
- package/dist/shared/lookup-group.model.d.ts.map +1 -1
- package/dist/shared/lookup-group.model.js +3 -0
- package/dist/shared/schema-doc.model.d.ts +6 -6
- package/dist/shared/system-parameter.model.d.ts +6 -6
- package/dist/shared/task-document.model.d.ts +6 -6
- package/dist/shared/task.model.d.ts +6 -6
- package/dist/shared/{document-type-model.d.ts → webhook-event.model.d.ts} +6 -45
- package/dist/shared/webhook-event.model.d.ts.map +1 -0
- package/dist/shared/webhook-event.model.js +53 -0
- package/dist/shared/webhook-event.type.d.ts +15 -0
- package/dist/shared/webhook-event.type.d.ts.map +1 -0
- package/dist/shared/webhook-event.type.js +1 -0
- package/dist/shared/workflow-trigger.model.d.ts +32 -0
- package/dist/shared/workflow-trigger.model.d.ts.map +1 -0
- package/dist/shared/workflow-trigger.model.js +45 -0
- package/dist/shared/workflow-trigger.type.d.ts +59 -0
- package/dist/shared/workflow-trigger.type.d.ts.map +1 -0
- package/dist/shared/workflow-trigger.type.js +1 -0
- package/dist/shared/workflow.init.d.ts +21 -0
- package/dist/shared/workflow.init.d.ts.map +1 -0
- package/dist/shared/workflow.init.js +41 -0
- package/dist/shared/workflow.middleware.d.ts +107 -0
- package/dist/shared/workflow.middleware.d.ts.map +1 -0
- package/dist/shared/workflow.middleware.js +230 -0
- package/dist/shared/workflow.plugin.d.ts +46 -0
- package/dist/shared/workflow.plugin.d.ts.map +1 -0
- package/dist/shared/workflow.plugin.js +102 -0
- package/dist/shared/workflow.service.d.ts +39 -0
- package/dist/shared/workflow.service.d.ts.map +1 -0
- package/dist/shared/workflow.service.js +115 -0
- package/dist/value-objects/pound.d.ts.map +1 -1
- package/package.json +14 -3
- package/dist/applicants/applicant-income.model.d.ts +0 -2558
- package/dist/applicants/applicant-income.model.js +0 -82
- package/dist/applications/application-document.model.d.ts +0 -186
- package/dist/applications/application-document.model.d.ts.map +0 -1
- package/dist/applications/application-document.model.js +0 -35
- package/dist/applications/document.model.d.ts +0 -186
- package/dist/applications/document.model.d.ts.map +0 -1
- package/dist/applications/document.model.js +0 -35
- package/dist/shared/document-type-model.d.ts.map +0 -1
- package/dist/shared/document-type-model.js +0 -10
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
1
2
|
/// <reference path="../value-objects/account-number.d.ts" />
|
|
2
3
|
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
3
4
|
/// <reference types="mongoose/types/aggregate" />
|
|
@@ -52,14 +53,14 @@ declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
|
52
53
|
} | null | undefined;
|
|
53
54
|
set?: {} | null | undefined;
|
|
54
55
|
validate?: {} | null | undefined;
|
|
56
|
+
index?: {} | null | undefined;
|
|
55
57
|
default?: {} | null | undefined;
|
|
56
58
|
text?: {} | null | undefined;
|
|
57
59
|
unique?: {} | null | undefined;
|
|
58
|
-
index?: {} | null | undefined;
|
|
59
60
|
sparse?: {} | null | undefined;
|
|
61
|
+
cast?: {} | null | undefined;
|
|
60
62
|
required?: {} | null | undefined;
|
|
61
63
|
ref?: {} | null | undefined;
|
|
62
|
-
cast?: {} | null | undefined;
|
|
63
64
|
select?: {} | null | undefined;
|
|
64
65
|
immutable?: {} | null | undefined;
|
|
65
66
|
transform?: {} | null | undefined;
|
|
@@ -103,14 +104,14 @@ declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
|
103
104
|
} | null | undefined;
|
|
104
105
|
set?: {} | null | undefined;
|
|
105
106
|
validate?: {} | null | undefined;
|
|
107
|
+
index?: {} | null | undefined;
|
|
106
108
|
default?: {} | null | undefined;
|
|
107
109
|
text?: {} | null | undefined;
|
|
108
110
|
unique?: {} | null | undefined;
|
|
109
|
-
index?: {} | null | undefined;
|
|
110
111
|
sparse?: {} | null | undefined;
|
|
112
|
+
cast?: {} | null | undefined;
|
|
111
113
|
required?: {} | null | undefined;
|
|
112
114
|
ref?: {} | null | undefined;
|
|
113
|
-
cast?: {} | null | undefined;
|
|
114
115
|
select?: {} | null | undefined;
|
|
115
116
|
immutable?: {} | null | undefined;
|
|
116
117
|
transform?: {} | null | undefined;
|
|
@@ -154,14 +155,14 @@ declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
|
154
155
|
} | null | undefined;
|
|
155
156
|
set?: {} | null | undefined;
|
|
156
157
|
validate?: {} | null | undefined;
|
|
158
|
+
index?: {} | null | undefined;
|
|
157
159
|
default?: {} | null | undefined;
|
|
158
160
|
text?: {} | null | undefined;
|
|
159
161
|
unique?: {} | null | undefined;
|
|
160
|
-
index?: {} | null | undefined;
|
|
161
162
|
sparse?: {} | null | undefined;
|
|
163
|
+
cast?: {} | null | undefined;
|
|
162
164
|
required?: {} | null | undefined;
|
|
163
165
|
ref?: {} | null | undefined;
|
|
164
|
-
cast?: {} | null | undefined;
|
|
165
166
|
select?: {} | null | undefined;
|
|
166
167
|
immutable?: {} | null | undefined;
|
|
167
168
|
transform?: {} | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-self-employed-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-self-employed-income.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"applicant-self-employed-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-self-employed-income.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AAuB5D,QAAA,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6E,CAAC;AAEpH,eAAe,gCAAgC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
2
3
|
import { Pound, formatPound } from "../value-objects/pound";
|
|
3
4
|
import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
|
|
4
5
|
const selfEmployedIncomeSchema = new mongoose.Schema({
|
|
@@ -15,5 +16,7 @@ selfEmployedIncomeSchema.virtual('incomeSourceId').get(function () {
|
|
|
15
16
|
: this.applicantId?.incomeSourceId?.incomeFromEmployment || null;
|
|
16
17
|
});
|
|
17
18
|
applyAuditMiddleware(selfEmployedIncomeSchema, "Applicant_Self_Employed_Income");
|
|
19
|
+
// Apply workflow plugin to the schema
|
|
20
|
+
applyWorkflowPlugin(selfEmployedIncomeSchema, 'applicant_self_employed_income');
|
|
18
21
|
const ApplicantSelfEmployedIncomeModel = mongoose.model("Applicant_Self_Employed_Income", selfEmployedIncomeSchema);
|
|
19
22
|
export default ApplicantSelfEmployedIncomeModel;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
5
|
+
/// <reference types="mongoose/types/callback" />
|
|
6
|
+
/// <reference types="mongoose/types/collection" />
|
|
7
|
+
/// <reference types="mongoose/types/connection" />
|
|
8
|
+
/// <reference types="mongoose/types/cursor" />
|
|
9
|
+
/// <reference types="mongoose/types/document" />
|
|
10
|
+
/// <reference types="mongoose/types/error" />
|
|
11
|
+
/// <reference types="mongoose/types/expressions" />
|
|
12
|
+
/// <reference types="mongoose/types/helpers" />
|
|
13
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
14
|
+
/// <reference types="mongoose/types/indexes" />
|
|
15
|
+
/// <reference types="mongoose/types/models" />
|
|
16
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
17
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
18
|
+
/// <reference types="mongoose/types/populate" />
|
|
19
|
+
/// <reference types="mongoose/types/query" />
|
|
20
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
21
|
+
/// <reference types="mongoose/types/session" />
|
|
22
|
+
/// <reference types="mongoose/types/types" />
|
|
23
|
+
/// <reference types="mongoose/types/utility" />
|
|
24
|
+
/// <reference types="mongoose/types/validation" />
|
|
25
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
26
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
27
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
28
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
|
+
import { Types } from "mongoose";
|
|
30
|
+
import { IBaseType } from "../types/base.types";
|
|
31
|
+
export default interface IApplicantSelfEmployedIncome extends IBaseType {
|
|
32
|
+
applicantId: Types.ObjectId;
|
|
33
|
+
incomeSourceLid: Types.ObjectId;
|
|
34
|
+
amount: number;
|
|
35
|
+
incomeSourceId?: string | null;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=applicant-self-employed-income.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-self-employed-income.type.d.ts","sourceRoot":"","sources":["../../applicants/applicant-self-employed-income.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,CAAC,OAAO,WAAW,4BAA6B,SAAQ,SAAS;IACnE,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC5B,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
import mongoose from "mongoose";
|
|
30
30
|
declare const ApplicantSelfEmploymentModel: mongoose.Model<{
|
|
31
31
|
applicantId: mongoose.Types.ObjectId;
|
|
32
|
-
industryLid: mongoose.Types.ObjectId;
|
|
33
32
|
accountantsCity: string;
|
|
34
33
|
businessCity: string;
|
|
35
34
|
doYouHaveAccountant: boolean;
|
|
@@ -37,6 +36,7 @@ declare const ApplicantSelfEmploymentModel: mongoose.Model<{
|
|
|
37
36
|
registeredCity: string;
|
|
38
37
|
businessTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
39
38
|
natureOfBusiness?: string | null | undefined;
|
|
39
|
+
industryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
40
40
|
accountantsAddressLine1?: string | null | undefined;
|
|
41
41
|
accountantsAddressLine2?: string | null | undefined;
|
|
42
42
|
accountantsAddressLine3?: string | null | undefined;
|
|
@@ -66,7 +66,6 @@ declare const ApplicantSelfEmploymentModel: mongoose.Model<{
|
|
|
66
66
|
selfEmployedDate?: string | null | undefined;
|
|
67
67
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
68
68
|
applicantId: mongoose.Types.ObjectId;
|
|
69
|
-
industryLid: mongoose.Types.ObjectId;
|
|
70
69
|
accountantsCity: string;
|
|
71
70
|
businessCity: string;
|
|
72
71
|
doYouHaveAccountant: boolean;
|
|
@@ -74,6 +73,7 @@ declare const ApplicantSelfEmploymentModel: mongoose.Model<{
|
|
|
74
73
|
registeredCity: string;
|
|
75
74
|
businessTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
76
75
|
natureOfBusiness?: string | null | undefined;
|
|
76
|
+
industryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
77
77
|
accountantsAddressLine1?: string | null | undefined;
|
|
78
78
|
accountantsAddressLine2?: string | null | undefined;
|
|
79
79
|
accountantsAddressLine3?: string | null | undefined;
|
|
@@ -103,7 +103,6 @@ declare const ApplicantSelfEmploymentModel: mongoose.Model<{
|
|
|
103
103
|
selfEmployedDate?: string | null | undefined;
|
|
104
104
|
}, {}> & {
|
|
105
105
|
applicantId: mongoose.Types.ObjectId;
|
|
106
|
-
industryLid: mongoose.Types.ObjectId;
|
|
107
106
|
accountantsCity: string;
|
|
108
107
|
businessCity: string;
|
|
109
108
|
doYouHaveAccountant: boolean;
|
|
@@ -111,6 +110,7 @@ declare const ApplicantSelfEmploymentModel: mongoose.Model<{
|
|
|
111
110
|
registeredCity: string;
|
|
112
111
|
businessTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
113
112
|
natureOfBusiness?: string | null | undefined;
|
|
113
|
+
industryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
114
114
|
accountantsAddressLine1?: string | null | undefined;
|
|
115
115
|
accountantsAddressLine2?: string | null | undefined;
|
|
116
116
|
accountantsAddressLine3?: string | null | undefined;
|
|
@@ -151,7 +151,6 @@ declare const ApplicantSelfEmploymentModel: mongoose.Model<{
|
|
|
151
151
|
};
|
|
152
152
|
}, {
|
|
153
153
|
applicantId: mongoose.Types.ObjectId;
|
|
154
|
-
industryLid: mongoose.Types.ObjectId;
|
|
155
154
|
accountantsCity: string;
|
|
156
155
|
businessCity: string;
|
|
157
156
|
doYouHaveAccountant: boolean;
|
|
@@ -159,6 +158,7 @@ declare const ApplicantSelfEmploymentModel: mongoose.Model<{
|
|
|
159
158
|
registeredCity: string;
|
|
160
159
|
businessTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
161
160
|
natureOfBusiness?: string | null | undefined;
|
|
161
|
+
industryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
162
162
|
accountantsAddressLine1?: string | null | undefined;
|
|
163
163
|
accountantsAddressLine2?: string | null | undefined;
|
|
164
164
|
accountantsAddressLine3?: string | null | undefined;
|
|
@@ -188,7 +188,6 @@ declare const ApplicantSelfEmploymentModel: mongoose.Model<{
|
|
|
188
188
|
selfEmployedDate?: string | null | undefined;
|
|
189
189
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
190
190
|
applicantId: mongoose.Types.ObjectId;
|
|
191
|
-
industryLid: mongoose.Types.ObjectId;
|
|
192
191
|
accountantsCity: string;
|
|
193
192
|
businessCity: string;
|
|
194
193
|
doYouHaveAccountant: boolean;
|
|
@@ -196,6 +195,7 @@ declare const ApplicantSelfEmploymentModel: mongoose.Model<{
|
|
|
196
195
|
registeredCity: string;
|
|
197
196
|
businessTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
198
197
|
natureOfBusiness?: string | null | undefined;
|
|
198
|
+
industryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
199
199
|
accountantsAddressLine1?: string | null | undefined;
|
|
200
200
|
accountantsAddressLine2?: string | null | undefined;
|
|
201
201
|
accountantsAddressLine3?: string | null | undefined;
|
|
@@ -225,7 +225,6 @@ declare const ApplicantSelfEmploymentModel: mongoose.Model<{
|
|
|
225
225
|
selfEmployedDate?: string | null | undefined;
|
|
226
226
|
}>, {}> & mongoose.FlatRecord<{
|
|
227
227
|
applicantId: mongoose.Types.ObjectId;
|
|
228
|
-
industryLid: mongoose.Types.ObjectId;
|
|
229
228
|
accountantsCity: string;
|
|
230
229
|
businessCity: string;
|
|
231
230
|
doYouHaveAccountant: boolean;
|
|
@@ -233,6 +232,7 @@ declare const ApplicantSelfEmploymentModel: mongoose.Model<{
|
|
|
233
232
|
registeredCity: string;
|
|
234
233
|
businessTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
235
234
|
natureOfBusiness?: string | null | undefined;
|
|
235
|
+
industryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
236
236
|
accountantsAddressLine1?: string | null | undefined;
|
|
237
237
|
accountantsAddressLine2?: string | null | undefined;
|
|
238
238
|
accountantsAddressLine3?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-self-employment.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-self-employment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"applicant-self-employment.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-self-employment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA2DhC,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6E,CAAC;AAEhH,eAAe,4BAA4B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
2
3
|
const applicantSelfEmploymentSchema = new mongoose.Schema({
|
|
3
4
|
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
4
5
|
accountantsAddressLine1: { type: String, },
|
|
@@ -41,10 +42,12 @@ const applicantSelfEmploymentSchema = new mongoose.Schema({
|
|
|
41
42
|
registeredPostCode: { type: String, },
|
|
42
43
|
registeredTelephone: { type: String, },
|
|
43
44
|
selfEmployedDate: { type: String, },
|
|
44
|
-
industryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required:
|
|
45
|
+
industryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: false },
|
|
45
46
|
}, {
|
|
46
47
|
toJSON: { getters: true },
|
|
47
48
|
toObject: { getters: true }
|
|
48
49
|
});
|
|
50
|
+
// Apply workflow plugin to the schema
|
|
51
|
+
applyWorkflowPlugin(applicantSelfEmploymentSchema, 'applicant_self_employment');
|
|
49
52
|
const ApplicantSelfEmploymentModel = mongoose.model("Applicant_Self_Employment", applicantSelfEmploymentSchema);
|
|
50
53
|
export default ApplicantSelfEmploymentModel;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
1
2
|
/// <reference path="../value-objects/account-number.d.ts" />
|
|
2
3
|
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
3
4
|
/// <reference types="mongoose/types/aggregate" />
|
|
@@ -52,14 +53,14 @@ declare const ApplicantSoleTraderIncomeModel: mongoose.Model<{
|
|
|
52
53
|
} | null | undefined;
|
|
53
54
|
set?: {} | null | undefined;
|
|
54
55
|
validate?: {} | null | undefined;
|
|
56
|
+
index?: {} | null | undefined;
|
|
55
57
|
default?: {} | null | undefined;
|
|
56
58
|
text?: {} | null | undefined;
|
|
57
59
|
unique?: {} | null | undefined;
|
|
58
|
-
index?: {} | null | undefined;
|
|
59
60
|
sparse?: {} | null | undefined;
|
|
61
|
+
cast?: {} | null | undefined;
|
|
60
62
|
required?: {} | null | undefined;
|
|
61
63
|
ref?: {} | null | undefined;
|
|
62
|
-
cast?: {} | null | undefined;
|
|
63
64
|
select?: {} | null | undefined;
|
|
64
65
|
immutable?: {} | null | undefined;
|
|
65
66
|
transform?: {} | null | undefined;
|
|
@@ -103,14 +104,14 @@ declare const ApplicantSoleTraderIncomeModel: mongoose.Model<{
|
|
|
103
104
|
} | null | undefined;
|
|
104
105
|
set?: {} | null | undefined;
|
|
105
106
|
validate?: {} | null | undefined;
|
|
107
|
+
index?: {} | null | undefined;
|
|
106
108
|
default?: {} | null | undefined;
|
|
107
109
|
text?: {} | null | undefined;
|
|
108
110
|
unique?: {} | null | undefined;
|
|
109
|
-
index?: {} | null | undefined;
|
|
110
111
|
sparse?: {} | null | undefined;
|
|
112
|
+
cast?: {} | null | undefined;
|
|
111
113
|
required?: {} | null | undefined;
|
|
112
114
|
ref?: {} | null | undefined;
|
|
113
|
-
cast?: {} | null | undefined;
|
|
114
115
|
select?: {} | null | undefined;
|
|
115
116
|
immutable?: {} | null | undefined;
|
|
116
117
|
transform?: {} | null | undefined;
|
|
@@ -154,14 +155,14 @@ declare const ApplicantSoleTraderIncomeModel: mongoose.Model<{
|
|
|
154
155
|
} | null | undefined;
|
|
155
156
|
set?: {} | null | undefined;
|
|
156
157
|
validate?: {} | null | undefined;
|
|
158
|
+
index?: {} | null | undefined;
|
|
157
159
|
default?: {} | null | undefined;
|
|
158
160
|
text?: {} | null | undefined;
|
|
159
161
|
unique?: {} | null | undefined;
|
|
160
|
-
index?: {} | null | undefined;
|
|
161
162
|
sparse?: {} | null | undefined;
|
|
163
|
+
cast?: {} | null | undefined;
|
|
162
164
|
required?: {} | null | undefined;
|
|
163
165
|
ref?: {} | null | undefined;
|
|
164
|
-
cast?: {} | null | undefined;
|
|
165
166
|
select?: {} | null | undefined;
|
|
166
167
|
immutable?: {} | null | undefined;
|
|
167
168
|
transform?: {} | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-sole-trader-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-sole-trader-income.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"applicant-sole-trader-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-sole-trader-income.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AAsB5D,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyE,CAAC;AAE9G,eAAe,8BAA8B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
2
3
|
import { Pound, formatPound } from "../value-objects/pound";
|
|
3
4
|
const soleTraderIncomeSchema = new mongoose.Schema({
|
|
4
5
|
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
@@ -13,5 +14,7 @@ soleTraderIncomeSchema.virtual('incomeSourceId').get(function () {
|
|
|
13
14
|
? null
|
|
14
15
|
: this.applicantId?.incomeSourceId?.incomeFromEmployment || null;
|
|
15
16
|
});
|
|
17
|
+
// Apply workflow plugin to the schema
|
|
18
|
+
applyWorkflowPlugin(soleTraderIncomeSchema, 'applicant_sole_trader_income');
|
|
16
19
|
const ApplicantSoleTraderIncomeModel = mongoose.model("Applicant_Sole_Trader_Income", soleTraderIncomeSchema);
|
|
17
20
|
export default ApplicantSoleTraderIncomeModel;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
5
|
+
/// <reference types="mongoose/types/callback" />
|
|
6
|
+
/// <reference types="mongoose/types/collection" />
|
|
7
|
+
/// <reference types="mongoose/types/connection" />
|
|
8
|
+
/// <reference types="mongoose/types/cursor" />
|
|
9
|
+
/// <reference types="mongoose/types/document" />
|
|
10
|
+
/// <reference types="mongoose/types/error" />
|
|
11
|
+
/// <reference types="mongoose/types/expressions" />
|
|
12
|
+
/// <reference types="mongoose/types/helpers" />
|
|
13
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
14
|
+
/// <reference types="mongoose/types/indexes" />
|
|
15
|
+
/// <reference types="mongoose/types/models" />
|
|
16
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
17
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
18
|
+
/// <reference types="mongoose/types/populate" />
|
|
19
|
+
/// <reference types="mongoose/types/query" />
|
|
20
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
21
|
+
/// <reference types="mongoose/types/session" />
|
|
22
|
+
/// <reference types="mongoose/types/types" />
|
|
23
|
+
/// <reference types="mongoose/types/utility" />
|
|
24
|
+
/// <reference types="mongoose/types/validation" />
|
|
25
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
26
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
27
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
28
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
|
+
import { Types } from "mongoose";
|
|
30
|
+
import { IBaseType } from "../types/base.types";
|
|
31
|
+
export default interface IApplicantSoleTraderIncome extends IBaseType {
|
|
32
|
+
applicantId: Types.ObjectId;
|
|
33
|
+
incomeSourceLid: Types.ObjectId;
|
|
34
|
+
amount?: number;
|
|
35
|
+
incomeSourceId?: string | null;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=applicant-sole-trader-income.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-sole-trader-income.type.d.ts","sourceRoot":"","sources":["../../applicants/applicant-sole-trader-income.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,CAAC,OAAO,WAAW,0BAA2B,SAAQ,SAAS;IACjE,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC5B,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
1
2
|
/// <reference path="../value-objects/account-number.d.ts" />
|
|
2
3
|
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
3
4
|
/// <reference types="mongoose/types/aggregate" />
|
|
@@ -52,14 +53,14 @@ declare const ApplicantUkTaxCreditsModel: mongoose.Model<{
|
|
|
52
53
|
} | null | undefined;
|
|
53
54
|
set?: {} | null | undefined;
|
|
54
55
|
validate?: {} | null | undefined;
|
|
56
|
+
index?: {} | null | undefined;
|
|
55
57
|
default?: {} | null | undefined;
|
|
56
58
|
text?: {} | null | undefined;
|
|
57
59
|
unique?: {} | null | undefined;
|
|
58
|
-
index?: {} | null | undefined;
|
|
59
60
|
sparse?: {} | null | undefined;
|
|
61
|
+
cast?: {} | null | undefined;
|
|
60
62
|
required?: {} | null | undefined;
|
|
61
63
|
ref?: {} | null | undefined;
|
|
62
|
-
cast?: {} | null | undefined;
|
|
63
64
|
select?: {} | null | undefined;
|
|
64
65
|
immutable?: {} | null | undefined;
|
|
65
66
|
transform?: {} | null | undefined;
|
|
@@ -100,14 +101,14 @@ declare const ApplicantUkTaxCreditsModel: mongoose.Model<{
|
|
|
100
101
|
} | null | undefined;
|
|
101
102
|
set?: {} | null | undefined;
|
|
102
103
|
validate?: {} | null | undefined;
|
|
104
|
+
index?: {} | null | undefined;
|
|
103
105
|
default?: {} | null | undefined;
|
|
104
106
|
text?: {} | null | undefined;
|
|
105
107
|
unique?: {} | null | undefined;
|
|
106
|
-
index?: {} | null | undefined;
|
|
107
108
|
sparse?: {} | null | undefined;
|
|
109
|
+
cast?: {} | null | undefined;
|
|
108
110
|
required?: {} | null | undefined;
|
|
109
111
|
ref?: {} | null | undefined;
|
|
110
|
-
cast?: {} | null | undefined;
|
|
111
112
|
select?: {} | null | undefined;
|
|
112
113
|
immutable?: {} | null | undefined;
|
|
113
114
|
transform?: {} | null | undefined;
|
|
@@ -148,14 +149,14 @@ declare const ApplicantUkTaxCreditsModel: mongoose.Model<{
|
|
|
148
149
|
} | null | undefined;
|
|
149
150
|
set?: {} | null | undefined;
|
|
150
151
|
validate?: {} | null | undefined;
|
|
152
|
+
index?: {} | null | undefined;
|
|
151
153
|
default?: {} | null | undefined;
|
|
152
154
|
text?: {} | null | undefined;
|
|
153
155
|
unique?: {} | null | undefined;
|
|
154
|
-
index?: {} | null | undefined;
|
|
155
156
|
sparse?: {} | null | undefined;
|
|
157
|
+
cast?: {} | null | undefined;
|
|
156
158
|
required?: {} | null | undefined;
|
|
157
159
|
ref?: {} | null | undefined;
|
|
158
|
-
cast?: {} | null | undefined;
|
|
159
160
|
select?: {} | null | undefined;
|
|
160
161
|
immutable?: {} | null | undefined;
|
|
161
162
|
transform?: {} | null | undefined;
|
|
@@ -199,14 +200,14 @@ declare const ApplicantUkTaxCreditsModel: mongoose.Model<{
|
|
|
199
200
|
} | null | undefined;
|
|
200
201
|
set?: {} | null | undefined;
|
|
201
202
|
validate?: {} | null | undefined;
|
|
203
|
+
index?: {} | null | undefined;
|
|
202
204
|
default?: {} | null | undefined;
|
|
203
205
|
text?: {} | null | undefined;
|
|
204
206
|
unique?: {} | null | undefined;
|
|
205
|
-
index?: {} | null | undefined;
|
|
206
207
|
sparse?: {} | null | undefined;
|
|
208
|
+
cast?: {} | null | undefined;
|
|
207
209
|
required?: {} | null | undefined;
|
|
208
210
|
ref?: {} | null | undefined;
|
|
209
|
-
cast?: {} | null | undefined;
|
|
210
211
|
select?: {} | null | undefined;
|
|
211
212
|
immutable?: {} | null | undefined;
|
|
212
213
|
transform?: {} | null | undefined;
|
|
@@ -247,14 +248,14 @@ declare const ApplicantUkTaxCreditsModel: mongoose.Model<{
|
|
|
247
248
|
} | null | undefined;
|
|
248
249
|
set?: {} | null | undefined;
|
|
249
250
|
validate?: {} | null | undefined;
|
|
251
|
+
index?: {} | null | undefined;
|
|
250
252
|
default?: {} | null | undefined;
|
|
251
253
|
text?: {} | null | undefined;
|
|
252
254
|
unique?: {} | null | undefined;
|
|
253
|
-
index?: {} | null | undefined;
|
|
254
255
|
sparse?: {} | null | undefined;
|
|
256
|
+
cast?: {} | null | undefined;
|
|
255
257
|
required?: {} | null | undefined;
|
|
256
258
|
ref?: {} | null | undefined;
|
|
257
|
-
cast?: {} | null | undefined;
|
|
258
259
|
select?: {} | null | undefined;
|
|
259
260
|
immutable?: {} | null | undefined;
|
|
260
261
|
transform?: {} | null | undefined;
|
|
@@ -295,14 +296,14 @@ declare const ApplicantUkTaxCreditsModel: mongoose.Model<{
|
|
|
295
296
|
} | null | undefined;
|
|
296
297
|
set?: {} | null | undefined;
|
|
297
298
|
validate?: {} | null | undefined;
|
|
299
|
+
index?: {} | null | undefined;
|
|
298
300
|
default?: {} | null | undefined;
|
|
299
301
|
text?: {} | null | undefined;
|
|
300
302
|
unique?: {} | null | undefined;
|
|
301
|
-
index?: {} | null | undefined;
|
|
302
303
|
sparse?: {} | null | undefined;
|
|
304
|
+
cast?: {} | null | undefined;
|
|
303
305
|
required?: {} | null | undefined;
|
|
304
306
|
ref?: {} | null | undefined;
|
|
305
|
-
cast?: {} | null | undefined;
|
|
306
307
|
select?: {} | null | undefined;
|
|
307
308
|
immutable?: {} | null | undefined;
|
|
308
309
|
transform?: {} | null | undefined;
|
|
@@ -346,14 +347,14 @@ declare const ApplicantUkTaxCreditsModel: mongoose.Model<{
|
|
|
346
347
|
} | null | undefined;
|
|
347
348
|
set?: {} | null | undefined;
|
|
348
349
|
validate?: {} | null | undefined;
|
|
350
|
+
index?: {} | null | undefined;
|
|
349
351
|
default?: {} | null | undefined;
|
|
350
352
|
text?: {} | null | undefined;
|
|
351
353
|
unique?: {} | null | undefined;
|
|
352
|
-
index?: {} | null | undefined;
|
|
353
354
|
sparse?: {} | null | undefined;
|
|
355
|
+
cast?: {} | null | undefined;
|
|
354
356
|
required?: {} | null | undefined;
|
|
355
357
|
ref?: {} | null | undefined;
|
|
356
|
-
cast?: {} | null | undefined;
|
|
357
358
|
select?: {} | null | undefined;
|
|
358
359
|
immutable?: {} | null | undefined;
|
|
359
360
|
transform?: {} | null | undefined;
|
|
@@ -394,14 +395,14 @@ declare const ApplicantUkTaxCreditsModel: mongoose.Model<{
|
|
|
394
395
|
} | null | undefined;
|
|
395
396
|
set?: {} | null | undefined;
|
|
396
397
|
validate?: {} | null | undefined;
|
|
398
|
+
index?: {} | null | undefined;
|
|
397
399
|
default?: {} | null | undefined;
|
|
398
400
|
text?: {} | null | undefined;
|
|
399
401
|
unique?: {} | null | undefined;
|
|
400
|
-
index?: {} | null | undefined;
|
|
401
402
|
sparse?: {} | null | undefined;
|
|
403
|
+
cast?: {} | null | undefined;
|
|
402
404
|
required?: {} | null | undefined;
|
|
403
405
|
ref?: {} | null | undefined;
|
|
404
|
-
cast?: {} | null | undefined;
|
|
405
406
|
select?: {} | null | undefined;
|
|
406
407
|
immutable?: {} | null | undefined;
|
|
407
408
|
transform?: {} | null | undefined;
|
|
@@ -442,14 +443,14 @@ declare const ApplicantUkTaxCreditsModel: mongoose.Model<{
|
|
|
442
443
|
} | null | undefined;
|
|
443
444
|
set?: {} | null | undefined;
|
|
444
445
|
validate?: {} | null | undefined;
|
|
446
|
+
index?: {} | null | undefined;
|
|
445
447
|
default?: {} | null | undefined;
|
|
446
448
|
text?: {} | null | undefined;
|
|
447
449
|
unique?: {} | null | undefined;
|
|
448
|
-
index?: {} | null | undefined;
|
|
449
450
|
sparse?: {} | null | undefined;
|
|
451
|
+
cast?: {} | null | undefined;
|
|
450
452
|
required?: {} | null | undefined;
|
|
451
453
|
ref?: {} | null | undefined;
|
|
452
|
-
cast?: {} | null | undefined;
|
|
453
454
|
select?: {} | null | undefined;
|
|
454
455
|
immutable?: {} | null | undefined;
|
|
455
456
|
transform?: {} | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-uk-tax-credits.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-uk-tax-credits.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"applicant-uk-tax-credits.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-uk-tax-credits.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AAoB5D,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0E,CAAC;AAE3G,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
2
3
|
import { Pound, formatPound } from "../value-objects/pound";
|
|
3
4
|
const applicantUkTaxCreditsSchema = new mongoose.Schema({
|
|
4
5
|
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
@@ -12,5 +13,7 @@ applicantUkTaxCreditsSchema.virtual('incomeSourceId').get(function () {
|
|
|
12
13
|
? null
|
|
13
14
|
: this.applicantId?.incomeSourceId?.incomeFromSavings || null;
|
|
14
15
|
});
|
|
16
|
+
// Apply workflow plugin to the schema
|
|
17
|
+
applyWorkflowPlugin(applicantUkTaxCreditsSchema, 'applicant_uk_tax_credits');
|
|
15
18
|
const ApplicantUkTaxCreditsModel = mongoose.model("Applicant_Uk_Tax_Credits", applicantUkTaxCreditsSchema);
|
|
16
19
|
export default ApplicantUkTaxCreditsModel;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
5
|
+
/// <reference types="mongoose/types/callback" />
|
|
6
|
+
/// <reference types="mongoose/types/collection" />
|
|
7
|
+
/// <reference types="mongoose/types/connection" />
|
|
8
|
+
/// <reference types="mongoose/types/cursor" />
|
|
9
|
+
/// <reference types="mongoose/types/document" />
|
|
10
|
+
/// <reference types="mongoose/types/error" />
|
|
11
|
+
/// <reference types="mongoose/types/expressions" />
|
|
12
|
+
/// <reference types="mongoose/types/helpers" />
|
|
13
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
14
|
+
/// <reference types="mongoose/types/indexes" />
|
|
15
|
+
/// <reference types="mongoose/types/models" />
|
|
16
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
17
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
18
|
+
/// <reference types="mongoose/types/populate" />
|
|
19
|
+
/// <reference types="mongoose/types/query" />
|
|
20
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
21
|
+
/// <reference types="mongoose/types/session" />
|
|
22
|
+
/// <reference types="mongoose/types/types" />
|
|
23
|
+
/// <reference types="mongoose/types/utility" />
|
|
24
|
+
/// <reference types="mongoose/types/validation" />
|
|
25
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
26
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
27
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
28
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
|
+
import { Types } from "mongoose";
|
|
30
|
+
import { IBaseType } from "../types/base.types";
|
|
31
|
+
export default interface IApplicantUKTaxCredits extends IBaseType {
|
|
32
|
+
applicantId: Types.ObjectId;
|
|
33
|
+
taxCredits?: number;
|
|
34
|
+
maintenance?: number;
|
|
35
|
+
otherBenefits?: number;
|
|
36
|
+
otherBenefitsExplanation?: string | null;
|
|
37
|
+
incomeSourceId?: string | null;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=applicant-uk-tax-credits.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-uk-tax-credits.type.d.ts","sourceRoot":"","sources":["../../applicants/applicant-uk-tax-credits.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,CAAC,OAAO,WAAW,sBAAuB,SAAQ,SAAS;IAC7D,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|