@dynamatix/gb-schemas 2.17.12 → 2.17.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/applicants/applicant-additional-income.model.d.ts +378 -0
- package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-additional-income.model.js +35 -0
- package/dist/applicants/applicant-additional-income.type.d.ts +40 -0
- package/dist/applicants/applicant-additional-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-additional-income.type.js +1 -0
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts +545 -0
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-creditCard.model.js +40 -0
- package/dist/applicants/applicant-commitment-loan.model.d.ts +434 -0
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-loan.model.js +51 -0
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +506 -0
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-mortgage.model.js +69 -0
- package/dist/applicants/applicant-commitment-residence.model.d.ts +768 -0
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-residence.model.js +57 -0
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +426 -0
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-secureLoan.model.js +43 -0
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +426 -0
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +43 -0
- package/dist/applicants/applicant-credit-data.model.d.ts +60 -0
- package/dist/applicants/applicant-credit-data.model.d.ts.map +1 -0
- package/dist/applicants/applicant-credit-data.model.js +11 -0
- package/dist/applicants/applicant-credit-profile.model.d.ts +51 -0
- package/dist/applicants/applicant-credit-profile.model.d.ts.map +1 -0
- package/dist/applicants/applicant-credit-profile.model.js +20 -0
- package/dist/applicants/applicant-credit-report.model.d.ts +3816 -0
- package/dist/applicants/applicant-credit-report.model.d.ts.map +1 -0
- package/dist/applicants/applicant-credit-report.model.js +126 -0
- package/dist/applicants/applicant-credit-report.type.d.ts +145 -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-direct-debit.model.d.ts +86 -0
- package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -0
- package/dist/applicants/applicant-direct-debit.model.js +16 -0
- package/dist/applicants/applicant-employment-income.model.d.ts +206 -0
- package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-employment-income.model.js +20 -0
- package/dist/applicants/applicant-employment-income.type.d.ts +37 -0
- package/dist/applicants/applicant-employment-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-employment-income.type.js +1 -0
- package/dist/applicants/applicant-employment.model.d.ts +828 -0
- package/dist/applicants/applicant-employment.model.d.ts.map +1 -0
- package/dist/applicants/applicant-employment.model.js +46 -0
- package/dist/applicants/applicant-expenditure.model.d.ts +127 -0
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -0
- package/dist/applicants/applicant-expenditure.model.js +146 -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 +82 -0
- package/dist/applicants/applicant-income-settings.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income-settings.model.js +22 -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 +2964 -0
- package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income-summary.model.js +59 -0
- package/dist/applicants/applicant-income-summary.type.d.ts +72 -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-large-exposure.model.d.ts +667 -0
- package/dist/applicants/applicant-large-exposure.model.d.ts.map +1 -0
- package/dist/applicants/applicant-large-exposure.model.js +16 -0
- package/dist/applicants/applicant-large-exposure.type.d.ts +39 -0
- package/dist/applicants/applicant-large-exposure.type.d.ts.map +1 -0
- package/dist/applicants/applicant-large-exposure.type.js +1 -0
- package/dist/applicants/applicant-pension-income.model.d.ts +494 -0
- package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-pension-income.model.js +35 -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 +953 -0
- package/dist/applicants/applicant-property-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-property-income.model.js +34 -0
- package/dist/applicants/applicant-property-income.type.d.ts +44 -0
- package/dist/applicants/applicant-property-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-property-income.type.js +1 -0
- package/dist/applicants/applicant-risk-narrative.model.d.ts +66 -0
- package/dist/applicants/applicant-risk-narrative.model.d.ts.map +1 -0
- package/dist/applicants/applicant-risk-narrative.model.js +13 -0
- package/dist/applicants/applicant-self-employed-income.model.d.ts +213 -0
- package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-self-employed-income.model.js +23 -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 +269 -0
- package/dist/applicants/applicant-self-employment.model.d.ts.map +1 -0
- package/dist/applicants/applicant-self-employment.model.js +55 -0
- package/dist/applicants/applicant-sole-trader-income.model.d.ts +213 -0
- package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-sole-trader-income.model.js +21 -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 +500 -0
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -0
- package/dist/applicants/applicant-uk-tax-credits.model.js +21 -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 +384 -0
- package/dist/applicants/applicant-welcome-call.model.d.ts.map +1 -0
- package/dist/applicants/applicant-welcome-call.model.js +709 -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 +1569 -0
- package/dist/applicants/applicant.model.d.ts.map +1 -0
- package/dist/applicants/applicant.model.js +262 -0
- package/dist/applicants/applicant.type.d.ts +161 -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 +37 -0
- package/dist/applicants/index.d.ts.map +1 -0
- package/dist/applicants/index.js +22 -0
- package/dist/applications/application-audit.model.d.ts +120 -0
- package/dist/applications/application-audit.model.d.ts.map +1 -0
- package/dist/applications/application-audit.model.js +45 -0
- package/dist/applications/application-checklist-Item.model.d.ts +292 -0
- package/dist/applications/application-checklist-Item.model.d.ts.map +1 -0
- package/dist/applications/application-checklist-Item.model.js +49 -0
- package/dist/applications/application-company-model.d.ts +1548 -0
- package/dist/applications/application-company-model.d.ts.map +1 -0
- package/dist/applications/application-company-model.js +134 -0
- package/dist/applications/application-credit-profile.model.d.ts +63 -0
- package/dist/applications/application-credit-profile.model.d.ts.map +1 -0
- package/dist/applications/application-credit-profile.model.js +12 -0
- package/dist/applications/application-direct-debit.model.d.ts +697 -0
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -0
- package/dist/applications/application-direct-debit.model.js +173 -0
- package/dist/applications/application-direct-debit.type.d.ts +63 -0
- package/dist/applications/application-direct-debit.type.d.ts.map +1 -0
- package/dist/applications/application-direct-debit.type.js +1 -0
- package/dist/applications/application-euc.model.d.ts +196 -0
- package/dist/applications/application-euc.model.d.ts.map +1 -0
- package/dist/applications/application-euc.model.js +39 -0
- package/dist/applications/application-euc.type.d.ts +58 -0
- package/dist/applications/application-euc.type.d.ts.map +1 -0
- package/dist/applications/application-euc.type.js +1 -0
- package/dist/applications/application-fieldconfig.model.d.ts +58 -0
- package/dist/applications/application-fieldconfig.model.d.ts.map +1 -0
- package/dist/applications/application-fieldconfig.model.js +10 -0
- package/dist/applications/application-illustration-model.d.ts +52 -0
- package/dist/applications/application-illustration-model.d.ts.map +1 -0
- package/dist/applications/application-illustration-model.js +6 -0
- package/dist/applications/application-legal.model.d.ts +58 -0
- package/dist/applications/application-legal.model.d.ts.map +1 -0
- package/dist/applications/application-legal.model.js +10 -0
- package/dist/applications/application-mortgage.model.d.ts +307 -0
- package/dist/applications/application-mortgage.model.d.ts.map +1 -0
- package/dist/applications/application-mortgage.model.js +274 -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 +184 -0
- package/dist/applications/application-note.model.d.ts.map +1 -0
- package/dist/applications/application-note.model.js +105 -0
- 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 +196 -0
- package/dist/applications/application-offer.model.d.ts.map +1 -0
- package/dist/applications/application-offer.model.js +56 -0
- package/dist/applications/application-offer.type.d.ts +54 -0
- package/dist/applications/application-offer.type.d.ts.map +1 -0
- package/dist/applications/application-offer.type.js +1 -0
- package/dist/applications/application-onboarding.model.d.ts +70 -0
- package/dist/applications/application-onboarding.model.d.ts.map +1 -0
- package/dist/applications/application-onboarding.model.js +12 -0
- package/dist/applications/application-product.model.d.ts +290 -0
- package/dist/applications/application-product.model.d.ts.map +1 -0
- package/dist/applications/application-product.model.js +90 -0
- 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 +772 -0
- package/dist/applications/application-productfeatures.model.d.ts.map +1 -0
- package/dist/applications/application-productfeatures.model.js +100 -0
- 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 +126 -0
- package/dist/applications/application-rationale.model.d.ts.map +1 -0
- package/dist/applications/application-rationale.model.js +23 -0
- package/dist/applications/application-rationale.type.d.ts +44 -0
- package/dist/applications/application-rationale.type.d.ts.map +1 -0
- package/dist/applications/application-rationale.type.js +1 -0
- package/dist/applications/application-risk-narrative.model.d.ts +100 -0
- package/dist/applications/application-risk-narrative.model.d.ts.map +1 -0
- package/dist/applications/application-risk-narrative.model.js +17 -0
- package/dist/applications/application-valuation-report.model.d.ts +1438 -0
- package/dist/applications/application-valuation-report.model.d.ts.map +1 -0
- package/dist/applications/application-valuation-report.model.js +799 -0
- package/dist/applications/application-valuation-report.type.d.ts +256 -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 +1358 -0
- package/dist/applications/application-valuation.model.d.ts.map +1 -0
- package/dist/applications/application-valuation.model.js +72 -0
- package/dist/applications/application-valuation.type.d.ts +55 -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 +642 -0
- package/dist/applications/application.model.d.ts.map +1 -0
- package/dist/applications/application.model.js +254 -0
- package/dist/applications/applications-task.model.d.ts +312 -0
- package/dist/applications/applications-task.model.d.ts.map +1 -0
- package/dist/applications/applications-task.model.js +58 -0
- package/dist/applications/applications-task.type.d.ts +59 -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 +162 -0
- package/dist/applications/broker.model.d.ts.map +1 -0
- package/dist/applications/broker.model.js +24 -0
- package/dist/applications/broker.type.d.ts +51 -0
- package/dist/applications/broker.type.d.ts.map +1 -0
- package/dist/applications/broker.type.js +1 -0
- package/dist/applications/index.d.ts +36 -0
- package/dist/applications/index.d.ts.map +1 -0
- package/dist/applications/index.js +23 -0
- package/dist/applications/solicitor.model.d.ts +206 -0
- package/dist/applications/solicitor.model.d.ts.map +1 -0
- package/dist/applications/solicitor.model.js +121 -0
- package/dist/applications/solicitor.type.d.ts +56 -0
- package/dist/applications/solicitor.type.d.ts.map +1 -0
- package/dist/applications/solicitor.type.js +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/product-catalogues/index.d.ts +7 -0
- package/dist/product-catalogues/index.d.ts.map +1 -0
- package/dist/product-catalogues/index.js +3 -0
- package/dist/product-catalogues/product-catalogue.model.d.ts +132 -0
- package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -0
- package/dist/product-catalogues/product-catalogue.model.js +22 -0
- 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.model.d.ts +318 -0
- package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -0
- package/dist/product-catalogues/product-definitions.model.js +29 -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.model.d.ts +96 -0
- package/dist/product-catalogues/product-variant.model.d.ts.map +1 -0
- package/dist/product-catalogues/product-variant.model.js +16 -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/index.d.ts +3 -0
- package/dist/properties/index.d.ts.map +1 -0
- package/dist/properties/index.js +2 -0
- package/dist/properties/property.model.d.ts +1174 -0
- package/dist/properties/property.model.d.ts.map +1 -0
- package/dist/properties/property.model.js +152 -0
- package/dist/properties/security.model.d.ts +331 -0
- package/dist/properties/security.model.d.ts.map +1 -0
- package/dist/properties/security.model.js +159 -0
- package/dist/shared/alert.model.d.ts +102 -0
- package/dist/shared/alert.model.d.ts.map +1 -0
- package/dist/shared/alert.model.js +24 -0
- package/dist/shared/api-log.model.d.ts +124 -0
- package/dist/shared/api-log.model.d.ts.map +1 -0
- package/dist/shared/api-log.model.js +25 -0
- package/dist/shared/api-performance.model.d.ts +37 -0
- package/dist/shared/api-performance.model.d.ts.map +1 -0
- package/dist/shared/api-performance.model.js +22 -0
- package/dist/shared/api-performance.type.d.ts +178 -0
- package/dist/shared/api-performance.type.d.ts.map +1 -0
- package/dist/shared/api-performance.type.js +1 -0
- package/dist/shared/apprivo-sync-journey.model.d.ts +114 -0
- package/dist/shared/apprivo-sync-journey.model.d.ts.map +1 -0
- package/dist/shared/apprivo-sync-journey.model.js +19 -0
- package/dist/shared/checklist.model.d.ts +102 -0
- package/dist/shared/checklist.model.d.ts.map +1 -0
- package/dist/shared/checklist.model.js +35 -0
- package/dist/shared/index.d.ts +19 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +16 -0
- package/dist/shared/job-run.model.d.ts +76 -0
- package/dist/shared/job-run.model.d.ts.map +1 -0
- package/dist/shared/job-run.model.js +14 -0
- package/dist/shared/job-setting.model.d.ts +70 -0
- package/dist/shared/job-setting.model.d.ts.map +1 -0
- package/dist/shared/job-setting.model.js +11 -0
- package/dist/shared/lookup-group.model.d.ts +78 -0
- package/dist/shared/lookup-group.model.d.ts.map +1 -0
- package/dist/shared/lookup-group.model.js +22 -0
- package/dist/shared/lookup.model.d.ts +96 -0
- package/dist/shared/lookup.model.d.ts.map +1 -0
- package/dist/shared/lookup.model.js +32 -0
- package/dist/shared/schema-doc.model.d.ts +76 -0
- package/dist/shared/schema-doc.model.d.ts.map +1 -0
- package/dist/shared/schema-doc.model.js +11 -0
- package/dist/shared/system-parameter.model.d.ts +88 -0
- package/dist/shared/system-parameter.model.d.ts.map +1 -0
- package/dist/shared/system-parameter.model.js +32 -0
- package/dist/shared/task-document.model.d.ts +70 -0
- package/dist/shared/task-document.model.d.ts.map +1 -0
- package/dist/shared/task-document.model.js +23 -0
- package/dist/shared/task.model.d.ts +234 -0
- package/dist/shared/task.model.d.ts.map +1 -0
- package/dist/shared/task.model.js +15 -0
- package/dist/shared/webhook-event.model.d.ts +37 -0
- package/dist/shared/webhook-event.model.d.ts.map +1 -0
- package/dist/shared/webhook-event.model.js +57 -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 +49 -0
- package/dist/shared/workflow-trigger.type.d.ts +60 -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 +42 -0
- package/dist/shared/workflow.logger.d.ts +18 -0
- package/dist/shared/workflow.logger.d.ts.map +1 -0
- package/dist/shared/workflow.logger.js +41 -0
- package/dist/shared/workflow.middleware.d.ts +108 -0
- package/dist/shared/workflow.middleware.d.ts.map +1 -0
- package/dist/shared/workflow.middleware.js +246 -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 +151 -0
- package/dist/shared/workflow.service.d.ts +42 -0
- package/dist/shared/workflow.service.d.ts.map +1 -0
- package/dist/shared/workflow.service.js +134 -0
- package/dist/types/base.types.d.ts +35 -0
- package/dist/types/base.types.d.ts.map +1 -0
- package/dist/types/base.types.js +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/underwriter/index.d.ts +2 -0
- package/dist/underwriter/index.d.ts.map +1 -0
- package/dist/underwriter/index.js +1 -0
- package/dist/underwriter/underwriter.model.d.ts +126 -0
- package/dist/underwriter/underwriter.model.d.ts.map +1 -0
- package/dist/underwriter/underwriter.model.js +17 -0
- package/dist/users/auth-log.model.d.ts +70 -0
- package/dist/users/auth-log.model.d.ts.map +1 -0
- package/dist/users/auth-log.model.js +24 -0
- package/dist/users/index.d.ts +7 -0
- package/dist/users/index.d.ts.map +1 -0
- package/dist/users/index.js +6 -0
- package/dist/users/permission.model.d.ts +84 -0
- package/dist/users/permission.model.d.ts.map +1 -0
- package/dist/users/permission.model.js +12 -0
- package/dist/users/role-group.model.d.ts +90 -0
- package/dist/users/role-group.model.d.ts.map +1 -0
- package/dist/users/role-group.model.js +17 -0
- package/dist/users/role.model.d.ts +90 -0
- package/dist/users/role.model.d.ts.map +1 -0
- package/dist/users/role.model.js +16 -0
- package/dist/users/tasks.model.d.ts +114 -0
- package/dist/users/tasks.model.d.ts.map +1 -0
- package/dist/users/tasks.model.js +18 -0
- package/dist/users/user.model.d.ts +222 -0
- package/dist/users/user.model.d.ts.map +1 -0
- package/dist/users/user.model.js +41 -0
- package/dist/users/user.type.d.ts +55 -0
- package/dist/users/user.type.d.ts.map +1 -0
- package/dist/users/user.type.js +1 -0
- package/dist/value-objects/account-number.d.ts +42 -0
- package/dist/value-objects/account-number.d.ts.map +1 -0
- package/dist/value-objects/account-number.js +24 -0
- package/dist/value-objects/pound.d.ts +43 -0
- package/dist/value-objects/pound.d.ts.map +1 -0
- package/dist/value-objects/pound.js +50 -0
- package/dist/value-objects/sort-code.d.ts +42 -0
- package/dist/value-objects/sort-code.d.ts.map +1 -0
- package/dist/value-objects/sort-code.js +34 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property.model.d.ts","sourceRoot":"","sources":["../../properties/property.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AA8J5D,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AACjE,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
import { Pound, formatPound } from '../value-objects/pound';
|
|
3
|
+
import { applyWorkflowPlugin } from '../shared/workflow.plugin';
|
|
4
|
+
const propertySchema = new mongoose.Schema({
|
|
5
|
+
applicationId: {
|
|
6
|
+
type: mongoose.Schema.Types.ObjectId, ref: "Application",
|
|
7
|
+
description: "Unique identifier for the application",
|
|
8
|
+
required: true
|
|
9
|
+
},
|
|
10
|
+
pageValidFlag: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: true,
|
|
13
|
+
description: "Flag indicating if the page is valid",
|
|
14
|
+
},
|
|
15
|
+
propertyId: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: null,
|
|
18
|
+
unique: true,
|
|
19
|
+
description: "Unique identifier for the property"
|
|
20
|
+
},
|
|
21
|
+
addressLine1: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: true,
|
|
24
|
+
maxLength: 35,
|
|
25
|
+
description: "First line of the property address"
|
|
26
|
+
},
|
|
27
|
+
addressLine2: {
|
|
28
|
+
type: String,
|
|
29
|
+
required: false,
|
|
30
|
+
maxLength: 35,
|
|
31
|
+
description: "Second line of the property address"
|
|
32
|
+
},
|
|
33
|
+
addressLine3: {
|
|
34
|
+
type: String,
|
|
35
|
+
required: false,
|
|
36
|
+
maxLength: 35,
|
|
37
|
+
description: "Third line of the property address"
|
|
38
|
+
},
|
|
39
|
+
associatedLoanPartiesIds: {
|
|
40
|
+
type: [mongoose.Schema.Types.ObjectId],
|
|
41
|
+
required: false,
|
|
42
|
+
description: "List of associated loan parties (either applicant or company)"
|
|
43
|
+
},
|
|
44
|
+
city: {
|
|
45
|
+
type: String,
|
|
46
|
+
required: false,
|
|
47
|
+
maxLength: 30,
|
|
48
|
+
description: "City where the property is located"
|
|
49
|
+
},
|
|
50
|
+
countryLid: {
|
|
51
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
52
|
+
ref: 'Lookup',
|
|
53
|
+
required: true,
|
|
54
|
+
description: "Country where the property is located",
|
|
55
|
+
},
|
|
56
|
+
lender: {
|
|
57
|
+
type: String,
|
|
58
|
+
required: true,
|
|
59
|
+
maxLength: 35,
|
|
60
|
+
description: "Lender providing the loan for the property"
|
|
61
|
+
},
|
|
62
|
+
marketValue: {
|
|
63
|
+
type: Pound,
|
|
64
|
+
required: true,
|
|
65
|
+
default: 0.00,
|
|
66
|
+
description: "The market value of the property",
|
|
67
|
+
get: formatPound
|
|
68
|
+
},
|
|
69
|
+
monthlyRent: {
|
|
70
|
+
type: Pound,
|
|
71
|
+
required: true,
|
|
72
|
+
default: 0.00,
|
|
73
|
+
description: "The monthly rent value of the property",
|
|
74
|
+
get: formatPound
|
|
75
|
+
},
|
|
76
|
+
monthlyRepayment: {
|
|
77
|
+
type: Pound,
|
|
78
|
+
required: true,
|
|
79
|
+
default: 0.00,
|
|
80
|
+
description: "The monthly repayment value for the property",
|
|
81
|
+
get: formatPound
|
|
82
|
+
},
|
|
83
|
+
originalLoanBalance: {
|
|
84
|
+
type: Pound,
|
|
85
|
+
required: true,
|
|
86
|
+
default: 0.00,
|
|
87
|
+
description: "The original loan balance for the property",
|
|
88
|
+
get: formatPound
|
|
89
|
+
},
|
|
90
|
+
outstandingBalance: {
|
|
91
|
+
type: Pound,
|
|
92
|
+
required: true,
|
|
93
|
+
default: 0.00,
|
|
94
|
+
description: "The remaining outstanding balance of the property loan",
|
|
95
|
+
get: formatPound
|
|
96
|
+
},
|
|
97
|
+
otherOwnershipParties: {
|
|
98
|
+
type: String,
|
|
99
|
+
required: false,
|
|
100
|
+
maxLength: 500,
|
|
101
|
+
description: "Other parties that own the property"
|
|
102
|
+
},
|
|
103
|
+
postCode: {
|
|
104
|
+
type: String,
|
|
105
|
+
required: true,
|
|
106
|
+
maxLength: 50,
|
|
107
|
+
description: "The postCode for the property"
|
|
108
|
+
},
|
|
109
|
+
remainingTerm: {
|
|
110
|
+
type: Number,
|
|
111
|
+
required: true,
|
|
112
|
+
description: "The remaining term of the loan in years"
|
|
113
|
+
},
|
|
114
|
+
portfolioFile: {
|
|
115
|
+
type: String,
|
|
116
|
+
required: false,
|
|
117
|
+
description: "File containing the portfolio details"
|
|
118
|
+
}
|
|
119
|
+
}, {
|
|
120
|
+
timestamps: true,
|
|
121
|
+
toJSON: { virtuals: true },
|
|
122
|
+
toObject: { virtuals: true }
|
|
123
|
+
});
|
|
124
|
+
propertySchema.virtual('country').get(function () {
|
|
125
|
+
return this.countryLid instanceof mongoose.Types.ObjectId ? null : this.countryLid?.name || null;
|
|
126
|
+
});
|
|
127
|
+
propertySchema.virtual('stressedRCR').get(function () {
|
|
128
|
+
const monthlyRentValue = this.monthlyRent ? parseFloat(this.monthlyRent.toString()) : 0.00;
|
|
129
|
+
const monthlyRepaymentValue = this.monthlyRepayment ? parseFloat(this.monthlyRepayment.toString()) : 0.00;
|
|
130
|
+
// Avoid division by zero
|
|
131
|
+
if (monthlyRepaymentValue === 0) {
|
|
132
|
+
return '0.00'; // Return 0.00 if monthlyRepayment is zero
|
|
133
|
+
}
|
|
134
|
+
const stressedRCR = (monthlyRentValue / monthlyRepaymentValue) * 100;
|
|
135
|
+
return stressedRCR.toFixed(2);
|
|
136
|
+
});
|
|
137
|
+
// virtual property 'applicationType'
|
|
138
|
+
propertySchema.virtual('applicationType').get(function () {
|
|
139
|
+
return this.applicationId?.applicationTypeLid instanceof mongoose.Types.ObjectId
|
|
140
|
+
? null
|
|
141
|
+
: this.applicationId?.applicationTypeLid?.name || null;
|
|
142
|
+
});
|
|
143
|
+
// virtual property 'lendingType'
|
|
144
|
+
propertySchema.virtual('lendingType').get(function () {
|
|
145
|
+
return this.applicationId?.lendingTypeLid instanceof mongoose.Types.ObjectId
|
|
146
|
+
? null
|
|
147
|
+
: this.applicationId?.lendingTypeLid?.name || null;
|
|
148
|
+
});
|
|
149
|
+
// Apply workflow plugin to the schema
|
|
150
|
+
applyWorkflowPlugin(propertySchema, 'property');
|
|
151
|
+
const PropertyModel = mongoose.model('Property', propertySchema);
|
|
152
|
+
export default PropertyModel;
|
|
@@ -0,0 +1,331 @@
|
|
|
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 mongoose from "mongoose";
|
|
30
|
+
declare const SecurityModel: mongoose.Model<{
|
|
31
|
+
applicationId: any;
|
|
32
|
+
pageValidFlag: any;
|
|
33
|
+
haveAnyBuyToLetProperties: any;
|
|
34
|
+
isPropertyInEnglandOrWales: any;
|
|
35
|
+
noOfBuyToLetProperties: any;
|
|
36
|
+
totalMonthlyRentalIncome: any;
|
|
37
|
+
totalMonthlyRepayment: any;
|
|
38
|
+
totalOutstandingBalance: any;
|
|
39
|
+
areAllBedRoomsOver10sqm: any;
|
|
40
|
+
isBrickTileConstruction: any;
|
|
41
|
+
constructionDetails: any;
|
|
42
|
+
isExLAExclusion: any;
|
|
43
|
+
isFlatLift: any;
|
|
44
|
+
flatNumberOfBedrooms: any;
|
|
45
|
+
isGreenEPC: any;
|
|
46
|
+
isGroundRent: any;
|
|
47
|
+
isHouseLicensed: any;
|
|
48
|
+
houseNumberOfFloors: any;
|
|
49
|
+
houseNumberOfKitchens: any;
|
|
50
|
+
houseNumberOfLivingRooms: any;
|
|
51
|
+
houseNumberOfBathrooms: any;
|
|
52
|
+
houseNumberOfTenancies: any;
|
|
53
|
+
hasHousePlanningPermission: any;
|
|
54
|
+
isFirstHome: any;
|
|
55
|
+
isGarage: any;
|
|
56
|
+
isNewBuild: any;
|
|
57
|
+
propertyAddressCity: any;
|
|
58
|
+
propertyAddressCountryLid: any;
|
|
59
|
+
propertyAddressLine1: any;
|
|
60
|
+
propertyAddressLine2: any;
|
|
61
|
+
propertyAddressLine3: any;
|
|
62
|
+
propertyAddressPostCode: any;
|
|
63
|
+
propertyTenureLid: any;
|
|
64
|
+
propertyTypeLid: any;
|
|
65
|
+
propertyYearBuilt: any;
|
|
66
|
+
receiptOfAnyDiscount: any;
|
|
67
|
+
receiptOfDiscountDetails: any;
|
|
68
|
+
sectorExperienceLid: any;
|
|
69
|
+
serviceCharge: any;
|
|
70
|
+
unexpiredRemainingLease: any;
|
|
71
|
+
yearLeaseExpires: any;
|
|
72
|
+
energyEfficiencyRating: any;
|
|
73
|
+
energyEfficiencyRatingValue: any;
|
|
74
|
+
dataStreetSchema: any;
|
|
75
|
+
lastCheckedAt: any;
|
|
76
|
+
epcSearchByPostCodeLink: any;
|
|
77
|
+
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
78
|
+
applicationId: any;
|
|
79
|
+
pageValidFlag: any;
|
|
80
|
+
haveAnyBuyToLetProperties: any;
|
|
81
|
+
isPropertyInEnglandOrWales: any;
|
|
82
|
+
noOfBuyToLetProperties: any;
|
|
83
|
+
totalMonthlyRentalIncome: any;
|
|
84
|
+
totalMonthlyRepayment: any;
|
|
85
|
+
totalOutstandingBalance: any;
|
|
86
|
+
areAllBedRoomsOver10sqm: any;
|
|
87
|
+
isBrickTileConstruction: any;
|
|
88
|
+
constructionDetails: any;
|
|
89
|
+
isExLAExclusion: any;
|
|
90
|
+
isFlatLift: any;
|
|
91
|
+
flatNumberOfBedrooms: any;
|
|
92
|
+
isGreenEPC: any;
|
|
93
|
+
isGroundRent: any;
|
|
94
|
+
isHouseLicensed: any;
|
|
95
|
+
houseNumberOfFloors: any;
|
|
96
|
+
houseNumberOfKitchens: any;
|
|
97
|
+
houseNumberOfLivingRooms: any;
|
|
98
|
+
houseNumberOfBathrooms: any;
|
|
99
|
+
houseNumberOfTenancies: any;
|
|
100
|
+
hasHousePlanningPermission: any;
|
|
101
|
+
isFirstHome: any;
|
|
102
|
+
isGarage: any;
|
|
103
|
+
isNewBuild: any;
|
|
104
|
+
propertyAddressCity: any;
|
|
105
|
+
propertyAddressCountryLid: any;
|
|
106
|
+
propertyAddressLine1: any;
|
|
107
|
+
propertyAddressLine2: any;
|
|
108
|
+
propertyAddressLine3: any;
|
|
109
|
+
propertyAddressPostCode: any;
|
|
110
|
+
propertyTenureLid: any;
|
|
111
|
+
propertyTypeLid: any;
|
|
112
|
+
propertyYearBuilt: any;
|
|
113
|
+
receiptOfAnyDiscount: any;
|
|
114
|
+
receiptOfDiscountDetails: any;
|
|
115
|
+
sectorExperienceLid: any;
|
|
116
|
+
serviceCharge: any;
|
|
117
|
+
unexpiredRemainingLease: any;
|
|
118
|
+
yearLeaseExpires: any;
|
|
119
|
+
energyEfficiencyRating: any;
|
|
120
|
+
energyEfficiencyRatingValue: any;
|
|
121
|
+
dataStreetSchema: any;
|
|
122
|
+
lastCheckedAt: any;
|
|
123
|
+
epcSearchByPostCodeLink: any;
|
|
124
|
+
}, {}> & {
|
|
125
|
+
applicationId: any;
|
|
126
|
+
pageValidFlag: any;
|
|
127
|
+
haveAnyBuyToLetProperties: any;
|
|
128
|
+
isPropertyInEnglandOrWales: any;
|
|
129
|
+
noOfBuyToLetProperties: any;
|
|
130
|
+
totalMonthlyRentalIncome: any;
|
|
131
|
+
totalMonthlyRepayment: any;
|
|
132
|
+
totalOutstandingBalance: any;
|
|
133
|
+
areAllBedRoomsOver10sqm: any;
|
|
134
|
+
isBrickTileConstruction: any;
|
|
135
|
+
constructionDetails: any;
|
|
136
|
+
isExLAExclusion: any;
|
|
137
|
+
isFlatLift: any;
|
|
138
|
+
flatNumberOfBedrooms: any;
|
|
139
|
+
isGreenEPC: any;
|
|
140
|
+
isGroundRent: any;
|
|
141
|
+
isHouseLicensed: any;
|
|
142
|
+
houseNumberOfFloors: any;
|
|
143
|
+
houseNumberOfKitchens: any;
|
|
144
|
+
houseNumberOfLivingRooms: any;
|
|
145
|
+
houseNumberOfBathrooms: any;
|
|
146
|
+
houseNumberOfTenancies: any;
|
|
147
|
+
hasHousePlanningPermission: any;
|
|
148
|
+
isFirstHome: any;
|
|
149
|
+
isGarage: any;
|
|
150
|
+
isNewBuild: any;
|
|
151
|
+
propertyAddressCity: any;
|
|
152
|
+
propertyAddressCountryLid: any;
|
|
153
|
+
propertyAddressLine1: any;
|
|
154
|
+
propertyAddressLine2: any;
|
|
155
|
+
propertyAddressLine3: any;
|
|
156
|
+
propertyAddressPostCode: any;
|
|
157
|
+
propertyTenureLid: any;
|
|
158
|
+
propertyTypeLid: any;
|
|
159
|
+
propertyYearBuilt: any;
|
|
160
|
+
receiptOfAnyDiscount: any;
|
|
161
|
+
receiptOfDiscountDetails: any;
|
|
162
|
+
sectorExperienceLid: any;
|
|
163
|
+
serviceCharge: any;
|
|
164
|
+
unexpiredRemainingLease: any;
|
|
165
|
+
yearLeaseExpires: any;
|
|
166
|
+
energyEfficiencyRating: any;
|
|
167
|
+
energyEfficiencyRatingValue: any;
|
|
168
|
+
dataStreetSchema: any;
|
|
169
|
+
lastCheckedAt: any;
|
|
170
|
+
epcSearchByPostCodeLink: any;
|
|
171
|
+
} & {
|
|
172
|
+
_id: mongoose.Types.ObjectId;
|
|
173
|
+
} & {
|
|
174
|
+
__v: number;
|
|
175
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
176
|
+
toJSON: {
|
|
177
|
+
getters: true;
|
|
178
|
+
virtuals: true;
|
|
179
|
+
};
|
|
180
|
+
toObject: {
|
|
181
|
+
getters: true;
|
|
182
|
+
virtuals: true;
|
|
183
|
+
};
|
|
184
|
+
}, {
|
|
185
|
+
applicationId: any;
|
|
186
|
+
pageValidFlag: any;
|
|
187
|
+
haveAnyBuyToLetProperties: any;
|
|
188
|
+
isPropertyInEnglandOrWales: any;
|
|
189
|
+
noOfBuyToLetProperties: any;
|
|
190
|
+
totalMonthlyRentalIncome: any;
|
|
191
|
+
totalMonthlyRepayment: any;
|
|
192
|
+
totalOutstandingBalance: any;
|
|
193
|
+
areAllBedRoomsOver10sqm: any;
|
|
194
|
+
isBrickTileConstruction: any;
|
|
195
|
+
constructionDetails: any;
|
|
196
|
+
isExLAExclusion: any;
|
|
197
|
+
isFlatLift: any;
|
|
198
|
+
flatNumberOfBedrooms: any;
|
|
199
|
+
isGreenEPC: any;
|
|
200
|
+
isGroundRent: any;
|
|
201
|
+
isHouseLicensed: any;
|
|
202
|
+
houseNumberOfFloors: any;
|
|
203
|
+
houseNumberOfKitchens: any;
|
|
204
|
+
houseNumberOfLivingRooms: any;
|
|
205
|
+
houseNumberOfBathrooms: any;
|
|
206
|
+
houseNumberOfTenancies: any;
|
|
207
|
+
hasHousePlanningPermission: any;
|
|
208
|
+
isFirstHome: any;
|
|
209
|
+
isGarage: any;
|
|
210
|
+
isNewBuild: any;
|
|
211
|
+
propertyAddressCity: any;
|
|
212
|
+
propertyAddressCountryLid: any;
|
|
213
|
+
propertyAddressLine1: any;
|
|
214
|
+
propertyAddressLine2: any;
|
|
215
|
+
propertyAddressLine3: any;
|
|
216
|
+
propertyAddressPostCode: any;
|
|
217
|
+
propertyTenureLid: any;
|
|
218
|
+
propertyTypeLid: any;
|
|
219
|
+
propertyYearBuilt: any;
|
|
220
|
+
receiptOfAnyDiscount: any;
|
|
221
|
+
receiptOfDiscountDetails: any;
|
|
222
|
+
sectorExperienceLid: any;
|
|
223
|
+
serviceCharge: any;
|
|
224
|
+
unexpiredRemainingLease: any;
|
|
225
|
+
yearLeaseExpires: any;
|
|
226
|
+
energyEfficiencyRating: any;
|
|
227
|
+
energyEfficiencyRatingValue: any;
|
|
228
|
+
dataStreetSchema: any;
|
|
229
|
+
lastCheckedAt: any;
|
|
230
|
+
epcSearchByPostCodeLink: any;
|
|
231
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
232
|
+
applicationId: any;
|
|
233
|
+
pageValidFlag: any;
|
|
234
|
+
haveAnyBuyToLetProperties: any;
|
|
235
|
+
isPropertyInEnglandOrWales: any;
|
|
236
|
+
noOfBuyToLetProperties: any;
|
|
237
|
+
totalMonthlyRentalIncome: any;
|
|
238
|
+
totalMonthlyRepayment: any;
|
|
239
|
+
totalOutstandingBalance: any;
|
|
240
|
+
areAllBedRoomsOver10sqm: any;
|
|
241
|
+
isBrickTileConstruction: any;
|
|
242
|
+
constructionDetails: any;
|
|
243
|
+
isExLAExclusion: any;
|
|
244
|
+
isFlatLift: any;
|
|
245
|
+
flatNumberOfBedrooms: any;
|
|
246
|
+
isGreenEPC: any;
|
|
247
|
+
isGroundRent: any;
|
|
248
|
+
isHouseLicensed: any;
|
|
249
|
+
houseNumberOfFloors: any;
|
|
250
|
+
houseNumberOfKitchens: any;
|
|
251
|
+
houseNumberOfLivingRooms: any;
|
|
252
|
+
houseNumberOfBathrooms: any;
|
|
253
|
+
houseNumberOfTenancies: any;
|
|
254
|
+
hasHousePlanningPermission: any;
|
|
255
|
+
isFirstHome: any;
|
|
256
|
+
isGarage: any;
|
|
257
|
+
isNewBuild: any;
|
|
258
|
+
propertyAddressCity: any;
|
|
259
|
+
propertyAddressCountryLid: any;
|
|
260
|
+
propertyAddressLine1: any;
|
|
261
|
+
propertyAddressLine2: any;
|
|
262
|
+
propertyAddressLine3: any;
|
|
263
|
+
propertyAddressPostCode: any;
|
|
264
|
+
propertyTenureLid: any;
|
|
265
|
+
propertyTypeLid: any;
|
|
266
|
+
propertyYearBuilt: any;
|
|
267
|
+
receiptOfAnyDiscount: any;
|
|
268
|
+
receiptOfDiscountDetails: any;
|
|
269
|
+
sectorExperienceLid: any;
|
|
270
|
+
serviceCharge: any;
|
|
271
|
+
unexpiredRemainingLease: any;
|
|
272
|
+
yearLeaseExpires: any;
|
|
273
|
+
energyEfficiencyRating: any;
|
|
274
|
+
energyEfficiencyRatingValue: any;
|
|
275
|
+
dataStreetSchema: any;
|
|
276
|
+
lastCheckedAt: any;
|
|
277
|
+
epcSearchByPostCodeLink: any;
|
|
278
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
279
|
+
applicationId: any;
|
|
280
|
+
pageValidFlag: any;
|
|
281
|
+
haveAnyBuyToLetProperties: any;
|
|
282
|
+
isPropertyInEnglandOrWales: any;
|
|
283
|
+
noOfBuyToLetProperties: any;
|
|
284
|
+
totalMonthlyRentalIncome: any;
|
|
285
|
+
totalMonthlyRepayment: any;
|
|
286
|
+
totalOutstandingBalance: any;
|
|
287
|
+
areAllBedRoomsOver10sqm: any;
|
|
288
|
+
isBrickTileConstruction: any;
|
|
289
|
+
constructionDetails: any;
|
|
290
|
+
isExLAExclusion: any;
|
|
291
|
+
isFlatLift: any;
|
|
292
|
+
flatNumberOfBedrooms: any;
|
|
293
|
+
isGreenEPC: any;
|
|
294
|
+
isGroundRent: any;
|
|
295
|
+
isHouseLicensed: any;
|
|
296
|
+
houseNumberOfFloors: any;
|
|
297
|
+
houseNumberOfKitchens: any;
|
|
298
|
+
houseNumberOfLivingRooms: any;
|
|
299
|
+
houseNumberOfBathrooms: any;
|
|
300
|
+
houseNumberOfTenancies: any;
|
|
301
|
+
hasHousePlanningPermission: any;
|
|
302
|
+
isFirstHome: any;
|
|
303
|
+
isGarage: any;
|
|
304
|
+
isNewBuild: any;
|
|
305
|
+
propertyAddressCity: any;
|
|
306
|
+
propertyAddressCountryLid: any;
|
|
307
|
+
propertyAddressLine1: any;
|
|
308
|
+
propertyAddressLine2: any;
|
|
309
|
+
propertyAddressLine3: any;
|
|
310
|
+
propertyAddressPostCode: any;
|
|
311
|
+
propertyTenureLid: any;
|
|
312
|
+
propertyTypeLid: any;
|
|
313
|
+
propertyYearBuilt: any;
|
|
314
|
+
receiptOfAnyDiscount: any;
|
|
315
|
+
receiptOfDiscountDetails: any;
|
|
316
|
+
sectorExperienceLid: any;
|
|
317
|
+
serviceCharge: any;
|
|
318
|
+
unexpiredRemainingLease: any;
|
|
319
|
+
yearLeaseExpires: any;
|
|
320
|
+
energyEfficiencyRating: any;
|
|
321
|
+
energyEfficiencyRatingValue: any;
|
|
322
|
+
dataStreetSchema: any;
|
|
323
|
+
lastCheckedAt: any;
|
|
324
|
+
epcSearchByPostCodeLink: any;
|
|
325
|
+
}> & {
|
|
326
|
+
_id: mongoose.Types.ObjectId;
|
|
327
|
+
} & {
|
|
328
|
+
__v: number;
|
|
329
|
+
}>>;
|
|
330
|
+
export default SecurityModel;
|
|
331
|
+
//# sourceMappingURL=security.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security.model.d.ts","sourceRoot":"","sources":["../../properties/security.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA6KhC,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AACjE,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// security.model.ts
|
|
2
|
+
import mongoose from "mongoose";
|
|
3
|
+
import { Pound, formatPound } from "../value-objects/pound";
|
|
4
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
5
|
+
const dataStreetSchema = new mongoose.Schema({
|
|
6
|
+
floorArea: { type: String, default: '' },
|
|
7
|
+
propertyType: { type: String, default: '' },
|
|
8
|
+
noOfBedrooms: { type: String, default: 0 },
|
|
9
|
+
noOfBathrooms: { type: String, default: 0 },
|
|
10
|
+
lats: { type: String, },
|
|
11
|
+
longs: { type: String, },
|
|
12
|
+
lmkKey: { type: String, default: '' },
|
|
13
|
+
matchConfidence: { type: String, default: 0 },
|
|
14
|
+
transactions: [{
|
|
15
|
+
transactionDate: String,
|
|
16
|
+
epc: String,
|
|
17
|
+
price: String,
|
|
18
|
+
isNewBuild: String,
|
|
19
|
+
}],
|
|
20
|
+
nearByListings: [{
|
|
21
|
+
listedDate: String,
|
|
22
|
+
price: String,
|
|
23
|
+
noOfBedrooms: String,
|
|
24
|
+
noOfBathrooms: String,
|
|
25
|
+
internalArea: String,
|
|
26
|
+
distance: String,
|
|
27
|
+
address: String,
|
|
28
|
+
propertyType: String
|
|
29
|
+
}],
|
|
30
|
+
nearByCompletedTransactions: [{
|
|
31
|
+
transactionDate: String,
|
|
32
|
+
price: String,
|
|
33
|
+
noOfBedrooms: String,
|
|
34
|
+
noOfBathrooms: String,
|
|
35
|
+
internalArea: String,
|
|
36
|
+
distance: String,
|
|
37
|
+
address: String,
|
|
38
|
+
}],
|
|
39
|
+
risk: {
|
|
40
|
+
conservationArea: String,
|
|
41
|
+
listedBuildingsOnPlot: String,
|
|
42
|
+
nearByListedBuildings: [{
|
|
43
|
+
name: String,
|
|
44
|
+
listedDate: String,
|
|
45
|
+
grade: String,
|
|
46
|
+
disatanceInMetres: String
|
|
47
|
+
}],
|
|
48
|
+
floodRisk: {
|
|
49
|
+
riverAndSeaRisk: String,
|
|
50
|
+
surfaceWaterRisk: String,
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
const securitySchema = new mongoose.Schema({
|
|
55
|
+
applicationId: {
|
|
56
|
+
type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true,
|
|
57
|
+
description: "Unique identifier for the application"
|
|
58
|
+
}, // not-form securityData
|
|
59
|
+
pageValidFlag: { type: Boolean, default: true, }, //form
|
|
60
|
+
haveAnyBuyToLetProperties: { type: Boolean, required: true, default: false }, // not-form propertyData - not in Property form
|
|
61
|
+
isPropertyInEnglandOrWales: { type: Boolean, required: true, default: false }, // not-form propertyData - not in Property form
|
|
62
|
+
// price: { type: Pound, required: true, default: 0.00} as any, // *already in Purchase Form -> not-form mortgateData - pounds
|
|
63
|
+
noOfBuyToLetProperties: { type: Number, default: 0 }, // not-form propertyData - not in Property form
|
|
64
|
+
totalMonthlyRentalIncome: { type: Pound, required: true, default: 0.00 }, // not-form pound propertyData - not in Property form
|
|
65
|
+
totalMonthlyRepayment: { type: Pound, required: true, default: 0.00 }, // not-form pound propertyData - not in Property form
|
|
66
|
+
totalOutstandingBalance: { type: Pound, required: true, default: 0.00 }, // not-form pound propertyData - not in Property form
|
|
67
|
+
areAllBedRoomsOver10sqm: { type: Boolean, required: true, default: false }, // form
|
|
68
|
+
isBrickTileConstruction: { type: Boolean, required: true, default: false }, // form
|
|
69
|
+
constructionDetails: { type: String, required: true, default: '' }, // form
|
|
70
|
+
isExLAExclusion: { type: Boolean, required: true, default: false }, // form
|
|
71
|
+
isFlatLift: { type: Boolean, required: true, default: false }, // form
|
|
72
|
+
flatNumberOfBedrooms: { type: Number, required: true, default: 0 }, // form
|
|
73
|
+
isGreenEPC: { type: Boolean, default: false }, // form
|
|
74
|
+
isGroundRent: {
|
|
75
|
+
type: Pound,
|
|
76
|
+
required: true,
|
|
77
|
+
default: 0.00 // Default value in correct format
|
|
78
|
+
}, // form - pounds
|
|
79
|
+
isHouseLicensed: { type: Boolean, required: true, default: false }, // form
|
|
80
|
+
houseNumberOfFloors: { type: Number, required: true, default: 0 }, // form
|
|
81
|
+
houseNumberOfKitchens: { type: Number, required: true, default: 0 }, // form
|
|
82
|
+
houseNumberOfLivingRooms: { type: Number, required: true, default: 0 }, // form
|
|
83
|
+
houseNumberOfBathrooms: { type: Number, required: true, default: 0 }, // form
|
|
84
|
+
houseNumberOfTenancies: { type: Number, required: true, default: 0 }, // form
|
|
85
|
+
hasHousePlanningPermission: { type: Boolean, required: true, default: false }, // not-form securityData
|
|
86
|
+
isFirstHome: { type: Boolean, required: true, default: false }, // form
|
|
87
|
+
isGarage: { type: Boolean, default: false }, // form
|
|
88
|
+
isNewBuild: { type: Boolean, required: true, default: false }, // form
|
|
89
|
+
propertyAddressCity: { type: String, default: '', maxlength: 30 }, // form
|
|
90
|
+
propertyAddressCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }, // form
|
|
91
|
+
propertyAddressLine1: { type: String, required: true, maxlength: 35, default: '' }, // form
|
|
92
|
+
propertyAddressLine2: { type: String, default: '', maxlength: 35 }, // form
|
|
93
|
+
propertyAddressLine3: { type: String, default: '', maxlength: 35 }, // form
|
|
94
|
+
propertyAddressPostCode: { type: String, required: true, maxlength: 50, default: '' }, // form
|
|
95
|
+
propertyTenureLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }, // form
|
|
96
|
+
propertyTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" }, // form
|
|
97
|
+
propertyYearBuilt: { type: Number, required: true, max: 9999, default: 0 }, // form
|
|
98
|
+
receiptOfAnyDiscount: { type: Boolean, required: true, default: false }, // form
|
|
99
|
+
receiptOfDiscountDetails: { type: String, required: true, default: '', maxlength: 100 }, // form
|
|
100
|
+
sectorExperienceLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null }, // form
|
|
101
|
+
serviceCharge: {
|
|
102
|
+
type: Pound,
|
|
103
|
+
required: true,
|
|
104
|
+
default: 0.00, // Default value in correct format
|
|
105
|
+
get: formatPound
|
|
106
|
+
}, // form - pounds
|
|
107
|
+
unexpiredRemainingLease: { type: Number, required: true, max: 9999, default: 0 }, // form
|
|
108
|
+
yearLeaseExpires: { type: Number, required: true, default: 0 }, // not-form securityData
|
|
109
|
+
energyEfficiencyRating: { type: String }, // not-form data-street
|
|
110
|
+
energyEfficiencyRatingValue: { type: String }, // not-form data-street
|
|
111
|
+
dataStreetSchema: dataStreetSchema, // not-form data-street
|
|
112
|
+
lastCheckedAt: { type: String },
|
|
113
|
+
epcSearchByPostCodeLink: { type: String, default: '' }
|
|
114
|
+
}, {
|
|
115
|
+
toJSON: { getters: true, virtuals: true },
|
|
116
|
+
toObject: { getters: true, virtuals: true }
|
|
117
|
+
});
|
|
118
|
+
// Virtual for 'tenure'
|
|
119
|
+
const virtualTenure = securitySchema.virtual('tenure', {
|
|
120
|
+
ref: 'Lookup',
|
|
121
|
+
localField: 'propertyTenureLid',
|
|
122
|
+
foreignField: '_id',
|
|
123
|
+
justOne: true,
|
|
124
|
+
options: { select: 'label' },
|
|
125
|
+
});
|
|
126
|
+
virtualTenure.description = 'Populated lookup value for the property tenure';
|
|
127
|
+
// Virtual for 'type'
|
|
128
|
+
const virtualType = securitySchema.virtual('type', {
|
|
129
|
+
ref: 'Lookup',
|
|
130
|
+
localField: 'propertyTypeLid',
|
|
131
|
+
foreignField: '_id',
|
|
132
|
+
justOne: true,
|
|
133
|
+
options: { select: 'label' },
|
|
134
|
+
});
|
|
135
|
+
virtualType.description = 'Populated lookup value for the property type';
|
|
136
|
+
securitySchema.virtual('sectorExperience').get(function () {
|
|
137
|
+
return this.sectorExperienceLid?.name ?? null;
|
|
138
|
+
});
|
|
139
|
+
// virtual property 'applicationType'
|
|
140
|
+
securitySchema.virtual('applicationType').get(function () {
|
|
141
|
+
return this.applicationId?.applicationTypeLid instanceof mongoose.Types.ObjectId
|
|
142
|
+
? null
|
|
143
|
+
: this.applicationId?.applicationTypeLid?.name || null;
|
|
144
|
+
});
|
|
145
|
+
// virtual property 'lendingType'
|
|
146
|
+
securitySchema.virtual('lendingType').get(function () {
|
|
147
|
+
return this.applicationId?.lendingTypeLid instanceof mongoose.Types.ObjectId
|
|
148
|
+
? null
|
|
149
|
+
: this.applicationId?.lendingTypeLid?.name || null;
|
|
150
|
+
});
|
|
151
|
+
// Apply workflow plugin to the schema
|
|
152
|
+
applyWorkflowPlugin(securitySchema, 'security');
|
|
153
|
+
// Indexes for query optimization
|
|
154
|
+
securitySchema.index({ applicationId: 1 });
|
|
155
|
+
securitySchema.index({ propertyTypeLid: 1 });
|
|
156
|
+
securitySchema.index({ propertyTenureLid: 1 });
|
|
157
|
+
securitySchema.index({ sectorExperienceLid: 1 });
|
|
158
|
+
const SecurityModel = mongoose.model("Security", securitySchema);
|
|
159
|
+
export default SecurityModel;
|