@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" />
|
|
@@ -53,14 +54,14 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
53
54
|
} | null | undefined;
|
|
54
55
|
set?: {} | null | undefined;
|
|
55
56
|
validate?: {} | null | undefined;
|
|
57
|
+
index?: {} | null | undefined;
|
|
56
58
|
default?: {} | null | undefined;
|
|
57
59
|
text?: {} | null | undefined;
|
|
58
60
|
unique?: {} | null | undefined;
|
|
59
|
-
index?: {} | null | undefined;
|
|
60
61
|
sparse?: {} | null | undefined;
|
|
62
|
+
cast?: {} | null | undefined;
|
|
61
63
|
required?: {} | null | undefined;
|
|
62
64
|
ref?: {} | null | undefined;
|
|
63
|
-
cast?: {} | null | undefined;
|
|
64
65
|
select?: {} | null | undefined;
|
|
65
66
|
immutable?: {} | null | undefined;
|
|
66
67
|
transform?: {} | null | undefined;
|
|
@@ -79,6 +80,7 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
79
80
|
defaultOptions?: unknown;
|
|
80
81
|
} | null | undefined;
|
|
81
82
|
fixedTerm?: unknown;
|
|
83
|
+
startDate?: unknown;
|
|
82
84
|
commitmentId?: unknown;
|
|
83
85
|
lenderName?: unknown;
|
|
84
86
|
monthlyPayment?: {
|
|
@@ -104,14 +106,14 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
104
106
|
} | null | undefined;
|
|
105
107
|
set?: {} | null | undefined;
|
|
106
108
|
validate?: {} | null | undefined;
|
|
109
|
+
index?: {} | null | undefined;
|
|
107
110
|
default?: {} | null | undefined;
|
|
108
111
|
text?: {} | null | undefined;
|
|
109
112
|
unique?: {} | null | undefined;
|
|
110
|
-
index?: {} | null | undefined;
|
|
111
113
|
sparse?: {} | null | undefined;
|
|
114
|
+
cast?: {} | null | undefined;
|
|
112
115
|
required?: {} | null | undefined;
|
|
113
116
|
ref?: {} | null | undefined;
|
|
114
|
-
cast?: {} | null | undefined;
|
|
115
117
|
select?: {} | null | undefined;
|
|
116
118
|
immutable?: {} | null | undefined;
|
|
117
119
|
transform?: {} | null | undefined;
|
|
@@ -131,7 +133,6 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
131
133
|
} | null | undefined;
|
|
132
134
|
doHaveSharedResponsibility?: unknown;
|
|
133
135
|
sharedMortgage?: unknown;
|
|
134
|
-
startDate?: unknown;
|
|
135
136
|
propertyValue?: {
|
|
136
137
|
validators: mongoose.Types.DocumentArray<{
|
|
137
138
|
type?: unknown;
|
|
@@ -155,14 +156,14 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
155
156
|
} | null | undefined;
|
|
156
157
|
set?: {} | null | undefined;
|
|
157
158
|
validate?: {} | null | undefined;
|
|
159
|
+
index?: {} | null | undefined;
|
|
158
160
|
default?: {} | null | undefined;
|
|
159
161
|
text?: {} | null | undefined;
|
|
160
162
|
unique?: {} | null | undefined;
|
|
161
|
-
index?: {} | null | undefined;
|
|
162
163
|
sparse?: {} | null | undefined;
|
|
164
|
+
cast?: {} | null | undefined;
|
|
163
165
|
required?: {} | null | undefined;
|
|
164
166
|
ref?: {} | null | undefined;
|
|
165
|
-
cast?: {} | null | undefined;
|
|
166
167
|
select?: {} | null | undefined;
|
|
167
168
|
immutable?: {} | null | undefined;
|
|
168
169
|
transform?: {} | null | undefined;
|
|
@@ -204,14 +205,14 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
204
205
|
} | null | undefined;
|
|
205
206
|
set?: {} | null | undefined;
|
|
206
207
|
validate?: {} | null | undefined;
|
|
208
|
+
index?: {} | null | undefined;
|
|
207
209
|
default?: {} | null | undefined;
|
|
208
210
|
text?: {} | null | undefined;
|
|
209
211
|
unique?: {} | null | undefined;
|
|
210
|
-
index?: {} | null | undefined;
|
|
211
212
|
sparse?: {} | null | undefined;
|
|
213
|
+
cast?: {} | null | undefined;
|
|
212
214
|
required?: {} | null | undefined;
|
|
213
215
|
ref?: {} | null | undefined;
|
|
214
|
-
cast?: {} | null | undefined;
|
|
215
216
|
select?: {} | null | undefined;
|
|
216
217
|
immutable?: {} | null | undefined;
|
|
217
218
|
transform?: {} | null | undefined;
|
|
@@ -267,14 +268,14 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
267
268
|
} | null | undefined;
|
|
268
269
|
set?: {} | null | undefined;
|
|
269
270
|
validate?: {} | null | undefined;
|
|
271
|
+
index?: {} | null | undefined;
|
|
270
272
|
default?: {} | null | undefined;
|
|
271
273
|
text?: {} | null | undefined;
|
|
272
274
|
unique?: {} | null | undefined;
|
|
273
|
-
index?: {} | null | undefined;
|
|
274
275
|
sparse?: {} | null | undefined;
|
|
276
|
+
cast?: {} | null | undefined;
|
|
275
277
|
required?: {} | null | undefined;
|
|
276
278
|
ref?: {} | null | undefined;
|
|
277
|
-
cast?: {} | null | undefined;
|
|
278
279
|
select?: {} | null | undefined;
|
|
279
280
|
immutable?: {} | null | undefined;
|
|
280
281
|
transform?: {} | null | undefined;
|
|
@@ -293,6 +294,7 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
293
294
|
defaultOptions?: unknown;
|
|
294
295
|
} | null | undefined;
|
|
295
296
|
fixedTerm?: unknown;
|
|
297
|
+
startDate?: unknown;
|
|
296
298
|
commitmentId?: unknown;
|
|
297
299
|
lenderName?: unknown;
|
|
298
300
|
monthlyPayment?: {
|
|
@@ -318,14 +320,14 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
318
320
|
} | null | undefined;
|
|
319
321
|
set?: {} | null | undefined;
|
|
320
322
|
validate?: {} | null | undefined;
|
|
323
|
+
index?: {} | null | undefined;
|
|
321
324
|
default?: {} | null | undefined;
|
|
322
325
|
text?: {} | null | undefined;
|
|
323
326
|
unique?: {} | null | undefined;
|
|
324
|
-
index?: {} | null | undefined;
|
|
325
327
|
sparse?: {} | null | undefined;
|
|
328
|
+
cast?: {} | null | undefined;
|
|
326
329
|
required?: {} | null | undefined;
|
|
327
330
|
ref?: {} | null | undefined;
|
|
328
|
-
cast?: {} | null | undefined;
|
|
329
331
|
select?: {} | null | undefined;
|
|
330
332
|
immutable?: {} | null | undefined;
|
|
331
333
|
transform?: {} | null | undefined;
|
|
@@ -345,7 +347,6 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
345
347
|
} | null | undefined;
|
|
346
348
|
doHaveSharedResponsibility?: unknown;
|
|
347
349
|
sharedMortgage?: unknown;
|
|
348
|
-
startDate?: unknown;
|
|
349
350
|
propertyValue?: {
|
|
350
351
|
validators: mongoose.Types.DocumentArray<{
|
|
351
352
|
type?: unknown;
|
|
@@ -369,14 +370,14 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
369
370
|
} | null | undefined;
|
|
370
371
|
set?: {} | null | undefined;
|
|
371
372
|
validate?: {} | null | undefined;
|
|
373
|
+
index?: {} | null | undefined;
|
|
372
374
|
default?: {} | null | undefined;
|
|
373
375
|
text?: {} | null | undefined;
|
|
374
376
|
unique?: {} | null | undefined;
|
|
375
|
-
index?: {} | null | undefined;
|
|
376
377
|
sparse?: {} | null | undefined;
|
|
378
|
+
cast?: {} | null | undefined;
|
|
377
379
|
required?: {} | null | undefined;
|
|
378
380
|
ref?: {} | null | undefined;
|
|
379
|
-
cast?: {} | null | undefined;
|
|
380
381
|
select?: {} | null | undefined;
|
|
381
382
|
immutable?: {} | null | undefined;
|
|
382
383
|
transform?: {} | null | undefined;
|
|
@@ -418,14 +419,14 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
418
419
|
} | null | undefined;
|
|
419
420
|
set?: {} | null | undefined;
|
|
420
421
|
validate?: {} | null | undefined;
|
|
422
|
+
index?: {} | null | undefined;
|
|
421
423
|
default?: {} | null | undefined;
|
|
422
424
|
text?: {} | null | undefined;
|
|
423
425
|
unique?: {} | null | undefined;
|
|
424
|
-
index?: {} | null | undefined;
|
|
425
426
|
sparse?: {} | null | undefined;
|
|
427
|
+
cast?: {} | null | undefined;
|
|
426
428
|
required?: {} | null | undefined;
|
|
427
429
|
ref?: {} | null | undefined;
|
|
428
|
-
cast?: {} | null | undefined;
|
|
429
430
|
select?: {} | null | undefined;
|
|
430
431
|
immutable?: {} | null | undefined;
|
|
431
432
|
transform?: {} | null | undefined;
|
|
@@ -481,14 +482,14 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
481
482
|
} | null | undefined;
|
|
482
483
|
set?: {} | null | undefined;
|
|
483
484
|
validate?: {} | null | undefined;
|
|
485
|
+
index?: {} | null | undefined;
|
|
484
486
|
default?: {} | null | undefined;
|
|
485
487
|
text?: {} | null | undefined;
|
|
486
488
|
unique?: {} | null | undefined;
|
|
487
|
-
index?: {} | null | undefined;
|
|
488
489
|
sparse?: {} | null | undefined;
|
|
490
|
+
cast?: {} | null | undefined;
|
|
489
491
|
required?: {} | null | undefined;
|
|
490
492
|
ref?: {} | null | undefined;
|
|
491
|
-
cast?: {} | null | undefined;
|
|
492
493
|
select?: {} | null | undefined;
|
|
493
494
|
immutable?: {} | null | undefined;
|
|
494
495
|
transform?: {} | null | undefined;
|
|
@@ -507,6 +508,7 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
507
508
|
defaultOptions?: unknown;
|
|
508
509
|
} | null | undefined;
|
|
509
510
|
fixedTerm?: unknown;
|
|
511
|
+
startDate?: unknown;
|
|
510
512
|
commitmentId?: unknown;
|
|
511
513
|
lenderName?: unknown;
|
|
512
514
|
monthlyPayment?: {
|
|
@@ -532,14 +534,14 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
532
534
|
} | null | undefined;
|
|
533
535
|
set?: {} | null | undefined;
|
|
534
536
|
validate?: {} | null | undefined;
|
|
537
|
+
index?: {} | null | undefined;
|
|
535
538
|
default?: {} | null | undefined;
|
|
536
539
|
text?: {} | null | undefined;
|
|
537
540
|
unique?: {} | null | undefined;
|
|
538
|
-
index?: {} | null | undefined;
|
|
539
541
|
sparse?: {} | null | undefined;
|
|
542
|
+
cast?: {} | null | undefined;
|
|
540
543
|
required?: {} | null | undefined;
|
|
541
544
|
ref?: {} | null | undefined;
|
|
542
|
-
cast?: {} | null | undefined;
|
|
543
545
|
select?: {} | null | undefined;
|
|
544
546
|
immutable?: {} | null | undefined;
|
|
545
547
|
transform?: {} | null | undefined;
|
|
@@ -559,7 +561,6 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
559
561
|
} | null | undefined;
|
|
560
562
|
doHaveSharedResponsibility?: unknown;
|
|
561
563
|
sharedMortgage?: unknown;
|
|
562
|
-
startDate?: unknown;
|
|
563
564
|
propertyValue?: {
|
|
564
565
|
validators: mongoose.Types.DocumentArray<{
|
|
565
566
|
type?: unknown;
|
|
@@ -583,14 +584,14 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
583
584
|
} | null | undefined;
|
|
584
585
|
set?: {} | null | undefined;
|
|
585
586
|
validate?: {} | null | undefined;
|
|
587
|
+
index?: {} | null | undefined;
|
|
586
588
|
default?: {} | null | undefined;
|
|
587
589
|
text?: {} | null | undefined;
|
|
588
590
|
unique?: {} | null | undefined;
|
|
589
|
-
index?: {} | null | undefined;
|
|
590
591
|
sparse?: {} | null | undefined;
|
|
592
|
+
cast?: {} | null | undefined;
|
|
591
593
|
required?: {} | null | undefined;
|
|
592
594
|
ref?: {} | null | undefined;
|
|
593
|
-
cast?: {} | null | undefined;
|
|
594
595
|
select?: {} | null | undefined;
|
|
595
596
|
immutable?: {} | null | undefined;
|
|
596
597
|
transform?: {} | null | undefined;
|
|
@@ -632,14 +633,14 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
632
633
|
} | null | undefined;
|
|
633
634
|
set?: {} | null | undefined;
|
|
634
635
|
validate?: {} | null | undefined;
|
|
636
|
+
index?: {} | null | undefined;
|
|
635
637
|
default?: {} | null | undefined;
|
|
636
638
|
text?: {} | null | undefined;
|
|
637
639
|
unique?: {} | null | undefined;
|
|
638
|
-
index?: {} | null | undefined;
|
|
639
640
|
sparse?: {} | null | undefined;
|
|
641
|
+
cast?: {} | null | undefined;
|
|
640
642
|
required?: {} | null | undefined;
|
|
641
643
|
ref?: {} | null | undefined;
|
|
642
|
-
cast?: {} | null | undefined;
|
|
643
644
|
select?: {} | null | undefined;
|
|
644
645
|
immutable?: {} | null | undefined;
|
|
645
646
|
transform?: {} | null | undefined;
|
|
@@ -685,11 +686,11 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
685
686
|
pageValidFlag: boolean;
|
|
686
687
|
outstandingBalance: Pound;
|
|
687
688
|
fixedTerm: string;
|
|
689
|
+
startDate: string;
|
|
688
690
|
commitmentId: string;
|
|
689
691
|
monthlyPayment: Pound;
|
|
690
692
|
doHaveSharedResponsibility: boolean;
|
|
691
693
|
sharedMortgage: string;
|
|
692
|
-
startDate: string;
|
|
693
694
|
propertyValue: Pound;
|
|
694
695
|
mortgageTypeLid: mongoose.Types.ObjectId;
|
|
695
696
|
originalLoanAmount: Pound;
|
|
@@ -711,11 +712,11 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
711
712
|
pageValidFlag: boolean;
|
|
712
713
|
outstandingBalance: Pound;
|
|
713
714
|
fixedTerm: string;
|
|
715
|
+
startDate: string;
|
|
714
716
|
commitmentId: string;
|
|
715
717
|
monthlyPayment: Pound;
|
|
716
718
|
doHaveSharedResponsibility: boolean;
|
|
717
719
|
sharedMortgage: string;
|
|
718
|
-
startDate: string;
|
|
719
720
|
propertyValue: Pound;
|
|
720
721
|
mortgageTypeLid: mongoose.Types.ObjectId;
|
|
721
722
|
originalLoanAmount: Pound;
|
|
@@ -737,11 +738,11 @@ declare const ResidenceCommitmentModel: mongoose.Model<{
|
|
|
737
738
|
pageValidFlag: boolean;
|
|
738
739
|
outstandingBalance: Pound;
|
|
739
740
|
fixedTerm: string;
|
|
741
|
+
startDate: string;
|
|
740
742
|
commitmentId: string;
|
|
741
743
|
monthlyPayment: Pound;
|
|
742
744
|
doHaveSharedResponsibility: boolean;
|
|
743
745
|
sharedMortgage: string;
|
|
744
|
-
startDate: string;
|
|
745
746
|
propertyValue: Pound;
|
|
746
747
|
mortgageTypeLid: mongoose.Types.ObjectId;
|
|
747
748
|
originalLoanAmount: Pound;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-commitment-residence.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-residence.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"applicant-commitment-residence.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-residence.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AA2D5D,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmE,CAAC;AAClG,eAAe,wBAAwB,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 residenceCommitmentSchema = new mongoose.Schema({
|
|
@@ -48,5 +49,7 @@ const residenceCommitmentSchema = new mongoose.Schema({
|
|
|
48
49
|
toObject: { getters: true }
|
|
49
50
|
});
|
|
50
51
|
applyAuditMiddleware(residenceCommitmentSchema, "ResidenceCommitment");
|
|
52
|
+
// Apply workflow plugin to the schema
|
|
53
|
+
applyWorkflowPlugin(residenceCommitmentSchema, 'residencecommitment');
|
|
51
54
|
const ResidenceCommitmentModel = mongoose.model("ResidenceCommitment", residenceCommitmentSchema);
|
|
52
55
|
export default ResidenceCommitmentModel;
|
|
@@ -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" />
|
|
@@ -54,14 +55,14 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
54
55
|
} | null | undefined;
|
|
55
56
|
set?: {} | null | undefined;
|
|
56
57
|
validate?: {} | null | undefined;
|
|
58
|
+
index?: {} | null | undefined;
|
|
57
59
|
default?: {} | null | undefined;
|
|
58
60
|
text?: {} | null | undefined;
|
|
59
61
|
unique?: {} | null | undefined;
|
|
60
|
-
index?: {} | null | undefined;
|
|
61
62
|
sparse?: {} | null | undefined;
|
|
63
|
+
cast?: {} | null | undefined;
|
|
62
64
|
required?: {} | null | undefined;
|
|
63
65
|
ref?: {} | null | undefined;
|
|
64
|
-
cast?: {} | null | undefined;
|
|
65
66
|
select?: {} | null | undefined;
|
|
66
67
|
immutable?: {} | null | undefined;
|
|
67
68
|
transform?: {} | null | undefined;
|
|
@@ -79,6 +80,7 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
79
80
|
validateAll?: {} | null | undefined;
|
|
80
81
|
defaultOptions?: unknown;
|
|
81
82
|
} | null | undefined;
|
|
83
|
+
startDate?: unknown;
|
|
82
84
|
commitmentId?: unknown;
|
|
83
85
|
commitmentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
84
86
|
lenderName?: unknown;
|
|
@@ -105,14 +107,14 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
105
107
|
} | null | undefined;
|
|
106
108
|
set?: {} | null | undefined;
|
|
107
109
|
validate?: {} | null | undefined;
|
|
110
|
+
index?: {} | null | undefined;
|
|
108
111
|
default?: {} | null | undefined;
|
|
109
112
|
text?: {} | null | undefined;
|
|
110
113
|
unique?: {} | null | undefined;
|
|
111
|
-
index?: {} | null | undefined;
|
|
112
114
|
sparse?: {} | null | undefined;
|
|
115
|
+
cast?: {} | null | undefined;
|
|
113
116
|
required?: {} | null | undefined;
|
|
114
117
|
ref?: {} | null | undefined;
|
|
115
|
-
cast?: {} | null | undefined;
|
|
116
118
|
select?: {} | null | undefined;
|
|
117
119
|
immutable?: {} | null | undefined;
|
|
118
120
|
transform?: {} | null | undefined;
|
|
@@ -136,7 +138,6 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
136
138
|
doHaveSharedResponsibility?: unknown;
|
|
137
139
|
sharedMortgage?: unknown;
|
|
138
140
|
remainingTerm?: unknown;
|
|
139
|
-
startDate?: unknown;
|
|
140
141
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
141
142
|
isSelected?: unknown;
|
|
142
143
|
source?: unknown;
|
|
@@ -164,14 +165,14 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
164
165
|
} | null | undefined;
|
|
165
166
|
set?: {} | null | undefined;
|
|
166
167
|
validate?: {} | null | undefined;
|
|
168
|
+
index?: {} | null | undefined;
|
|
167
169
|
default?: {} | null | undefined;
|
|
168
170
|
text?: {} | null | undefined;
|
|
169
171
|
unique?: {} | null | undefined;
|
|
170
|
-
index?: {} | null | undefined;
|
|
171
172
|
sparse?: {} | null | undefined;
|
|
173
|
+
cast?: {} | null | undefined;
|
|
172
174
|
required?: {} | null | undefined;
|
|
173
175
|
ref?: {} | null | undefined;
|
|
174
|
-
cast?: {} | null | undefined;
|
|
175
176
|
select?: {} | null | undefined;
|
|
176
177
|
immutable?: {} | null | undefined;
|
|
177
178
|
transform?: {} | null | undefined;
|
|
@@ -189,6 +190,7 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
189
190
|
validateAll?: {} | null | undefined;
|
|
190
191
|
defaultOptions?: unknown;
|
|
191
192
|
} | null | undefined;
|
|
193
|
+
startDate?: unknown;
|
|
192
194
|
commitmentId?: unknown;
|
|
193
195
|
commitmentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
194
196
|
lenderName?: unknown;
|
|
@@ -215,14 +217,14 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
215
217
|
} | null | undefined;
|
|
216
218
|
set?: {} | null | undefined;
|
|
217
219
|
validate?: {} | null | undefined;
|
|
220
|
+
index?: {} | null | undefined;
|
|
218
221
|
default?: {} | null | undefined;
|
|
219
222
|
text?: {} | null | undefined;
|
|
220
223
|
unique?: {} | null | undefined;
|
|
221
|
-
index?: {} | null | undefined;
|
|
222
224
|
sparse?: {} | null | undefined;
|
|
225
|
+
cast?: {} | null | undefined;
|
|
223
226
|
required?: {} | null | undefined;
|
|
224
227
|
ref?: {} | null | undefined;
|
|
225
|
-
cast?: {} | null | undefined;
|
|
226
228
|
select?: {} | null | undefined;
|
|
227
229
|
immutable?: {} | null | undefined;
|
|
228
230
|
transform?: {} | null | undefined;
|
|
@@ -246,7 +248,6 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
246
248
|
doHaveSharedResponsibility?: unknown;
|
|
247
249
|
sharedMortgage?: unknown;
|
|
248
250
|
remainingTerm?: unknown;
|
|
249
|
-
startDate?: unknown;
|
|
250
251
|
}, {}> & {
|
|
251
252
|
isSelected?: unknown;
|
|
252
253
|
source?: unknown;
|
|
@@ -274,14 +275,14 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
274
275
|
} | null | undefined;
|
|
275
276
|
set?: {} | null | undefined;
|
|
276
277
|
validate?: {} | null | undefined;
|
|
278
|
+
index?: {} | null | undefined;
|
|
277
279
|
default?: {} | null | undefined;
|
|
278
280
|
text?: {} | null | undefined;
|
|
279
281
|
unique?: {} | null | undefined;
|
|
280
|
-
index?: {} | null | undefined;
|
|
281
282
|
sparse?: {} | null | undefined;
|
|
283
|
+
cast?: {} | null | undefined;
|
|
282
284
|
required?: {} | null | undefined;
|
|
283
285
|
ref?: {} | null | undefined;
|
|
284
|
-
cast?: {} | null | undefined;
|
|
285
286
|
select?: {} | null | undefined;
|
|
286
287
|
immutable?: {} | null | undefined;
|
|
287
288
|
transform?: {} | null | undefined;
|
|
@@ -299,6 +300,7 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
299
300
|
validateAll?: {} | null | undefined;
|
|
300
301
|
defaultOptions?: unknown;
|
|
301
302
|
} | null | undefined;
|
|
303
|
+
startDate?: unknown;
|
|
302
304
|
commitmentId?: unknown;
|
|
303
305
|
commitmentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
304
306
|
lenderName?: unknown;
|
|
@@ -325,14 +327,14 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
325
327
|
} | null | undefined;
|
|
326
328
|
set?: {} | null | undefined;
|
|
327
329
|
validate?: {} | null | undefined;
|
|
330
|
+
index?: {} | null | undefined;
|
|
328
331
|
default?: {} | null | undefined;
|
|
329
332
|
text?: {} | null | undefined;
|
|
330
333
|
unique?: {} | null | undefined;
|
|
331
|
-
index?: {} | null | undefined;
|
|
332
334
|
sparse?: {} | null | undefined;
|
|
335
|
+
cast?: {} | null | undefined;
|
|
333
336
|
required?: {} | null | undefined;
|
|
334
337
|
ref?: {} | null | undefined;
|
|
335
|
-
cast?: {} | null | undefined;
|
|
336
338
|
select?: {} | null | undefined;
|
|
337
339
|
immutable?: {} | null | undefined;
|
|
338
340
|
transform?: {} | null | undefined;
|
|
@@ -356,7 +358,6 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
356
358
|
doHaveSharedResponsibility?: unknown;
|
|
357
359
|
sharedMortgage?: unknown;
|
|
358
360
|
remainingTerm?: unknown;
|
|
359
|
-
startDate?: unknown;
|
|
360
361
|
} & {
|
|
361
362
|
_id: mongoose.Types.ObjectId;
|
|
362
363
|
} & {
|
|
@@ -373,6 +374,7 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
373
374
|
source: "Broker" | "Credit Report" | "Underwriter";
|
|
374
375
|
applicantId: mongoose.Types.ObjectId;
|
|
375
376
|
outstandingBalance: Pound;
|
|
377
|
+
startDate: string;
|
|
376
378
|
commitmentId: string;
|
|
377
379
|
commitmentTypeLid: mongoose.Types.ObjectId;
|
|
378
380
|
monthlyPayment: Pound;
|
|
@@ -382,13 +384,13 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
382
384
|
doHaveSharedResponsibility: boolean;
|
|
383
385
|
sharedMortgage: string;
|
|
384
386
|
remainingTerm: number;
|
|
385
|
-
startDate: string;
|
|
386
387
|
lenderName?: string | null | undefined;
|
|
387
388
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
388
389
|
isSelected: boolean;
|
|
389
390
|
source: "Broker" | "Credit Report" | "Underwriter";
|
|
390
391
|
applicantId: mongoose.Types.ObjectId;
|
|
391
392
|
outstandingBalance: Pound;
|
|
393
|
+
startDate: string;
|
|
392
394
|
commitmentId: string;
|
|
393
395
|
commitmentTypeLid: mongoose.Types.ObjectId;
|
|
394
396
|
monthlyPayment: Pound;
|
|
@@ -398,13 +400,13 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
398
400
|
doHaveSharedResponsibility: boolean;
|
|
399
401
|
sharedMortgage: string;
|
|
400
402
|
remainingTerm: number;
|
|
401
|
-
startDate: string;
|
|
402
403
|
lenderName?: string | null | undefined;
|
|
403
404
|
}>, {}> & mongoose.FlatRecord<{
|
|
404
405
|
isSelected: boolean;
|
|
405
406
|
source: "Broker" | "Credit Report" | "Underwriter";
|
|
406
407
|
applicantId: mongoose.Types.ObjectId;
|
|
407
408
|
outstandingBalance: Pound;
|
|
409
|
+
startDate: string;
|
|
408
410
|
commitmentId: string;
|
|
409
411
|
commitmentTypeLid: mongoose.Types.ObjectId;
|
|
410
412
|
monthlyPayment: Pound;
|
|
@@ -414,7 +416,6 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
414
416
|
doHaveSharedResponsibility: boolean;
|
|
415
417
|
sharedMortgage: string;
|
|
416
418
|
remainingTerm: number;
|
|
417
|
-
startDate: string;
|
|
418
419
|
lenderName?: string | null | undefined;
|
|
419
420
|
}> & {
|
|
420
421
|
_id: mongoose.Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-commitment-secureLoan.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-secureLoan.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"applicant-commitment-secureLoan.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-secureLoan.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AA4C5D,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuE,CAAC;AACxG,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
|
import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
|
|
4
5
|
const securedLoanCommitmentSchema = new mongoose.Schema({
|
|
@@ -33,5 +34,7 @@ securedLoanCommitmentSchema.virtual('lendingType').get(function () {
|
|
|
33
34
|
: this.applicantId?.applicationId?.lendingTypeLid?.name || null;
|
|
34
35
|
});
|
|
35
36
|
applyAuditMiddleware(securedLoanCommitmentSchema, "SecuredLoanCommitment");
|
|
37
|
+
// Apply workflow plugin to the schema
|
|
38
|
+
applyWorkflowPlugin(securedLoanCommitmentSchema, 'securedloancommitment');
|
|
36
39
|
const SecuredLoanCommitmentModel = mongoose.model("SecuredLoanCommitment", securedLoanCommitmentSchema);
|
|
37
40
|
export default SecuredLoanCommitmentModel;
|