@dynamatix/gb-schemas 2.0.67 → 2.3.4
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 +192 -8
- package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-additional-income.model.js +24 -3
- 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-commitment-creditCard.model.d.ts +90 -47
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-creditCard.model.js +12 -6
- package/dist/applicants/applicant-commitment-loan.model.d.ts +81 -41
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-loan.model.js +13 -8
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +78 -38
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.js +19 -19
- 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 +81 -47
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.js +14 -8
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +81 -47
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +14 -8
- package/dist/applicants/applicant-credit-data.model.d.ts +32 -4
- package/dist/applicants/applicant-credit-data.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-profile.model.d.ts +29 -1
- package/dist/applicants/applicant-credit-profile.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-report.model.d.ts +3784 -0
- package/dist/applicants/applicant-credit-report.model.d.ts.map +1 -0
- package/dist/applicants/applicant-credit-report.model.js +122 -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 +29 -4
- package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -1
- package/dist/applicants/applicant-direct-debit.model.js +0 -1
- package/dist/applicants/applicant-employment-income.model.d.ts +39 -8
- package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment-income.model.js +13 -2
- 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 +167 -703
- package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment.model.js +25 -27
- package/dist/applicants/applicant-expenditure.model.d.ts +42 -8
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.js +86 -2
- 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 +30 -2
- package/dist/applicants/applicant-income-settings.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income-settings.model.js +11 -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-source.model.d.ts +26 -0
- package/dist/applicants/applicant-income-source.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income-summary.model.d.ts +2202 -0
- package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income-summary.model.js +45 -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-income.model.d.ts +30 -2068
- package/dist/applicants/applicant-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-other-income.model.d.ts +85 -0
- package/dist/applicants/applicant-other-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-pension-income.model.d.ts +51 -302
- package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-pension-income.model.js +14 -6
- 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 +102 -56
- package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-property-income.model.js +18 -7
- package/dist/applicants/applicant-risk-narrative.model.d.ts +32 -4
- package/dist/applicants/applicant-risk-narrative.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.d.ts +39 -8
- package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.js +13 -2
- 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 +39 -8
- package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-sole-trader-income.model.js +11 -2
- 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 +66 -317
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -1
- package/dist/applicants/applicant-uk-tax-credits.model.js +15 -7
- 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 +1522 -89
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +40 -9
- 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 +24 -8
- package/dist/applicants/index.d.ts.map +1 -1
- package/dist/applicants/index.js +12 -8
- package/dist/applications/application-audit.model.d.ts +36 -8
- 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 +36 -2
- 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 +123 -59
- package/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-company-model.js +24 -10
- package/dist/applications/application-credit-profile.model.d.ts +29 -1
- package/dist/applications/application-credit-profile.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.d.ts +178 -32
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.js +64 -1
- 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 +154 -0
- package/dist/applications/application-euc.model.d.ts.map +1 -0
- package/dist/applications/application-euc.model.js +28 -0
- package/dist/applications/application-fieldconfig.model.d.ts +30 -2
- package/dist/applications/application-fieldconfig.model.d.ts.map +1 -1
- package/dist/applications/application-fieldconfig.model.js +3 -0
- package/dist/applications/application-illustration-model.d.ts +30 -2
- package/dist/applications/application-illustration-model.d.ts.map +1 -1
- package/dist/applications/application-legal.model.d.ts +30 -2
- 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 +201 -1097
- package/dist/applications/application-mortgage.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.js +24 -21
- 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 +66 -26
- package/dist/applications/application-note.model.d.ts.map +1 -1
- package/dist/applications/application-note.model.js +30 -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 +158 -10
- package/dist/applications/application-offer.model.d.ts.map +1 -1
- package/dist/applications/application-offer.model.js +49 -3
- 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 +30 -2
- 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 +185 -15
- package/dist/applications/application-product.model.d.ts.map +1 -1
- package/dist/applications/application-product.model.js +34 -11
- 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 +42 -8
- 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 +105 -195
- package/dist/applications/application-rationale.model.d.ts.map +1 -1
- package/dist/applications/application-rationale.model.js +17 -32
- 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 +72 -32
- package/dist/applications/application-risk-narrative.model.d.ts.map +1 -1
- package/dist/applications/application-risk-narrative.model.js +10 -5
- 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 +730 -19
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.js +34 -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 +318 -116
- package/dist/applications/application.model.d.ts.map +1 -1
- package/dist/applications/application.model.js +120 -27
- package/dist/applications/applications-task.model.d.ts +300 -0
- package/dist/applications/applications-task.model.d.ts.map +1 -0
- package/dist/applications/applications-task.model.js +50 -0
- 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 +54 -26
- package/dist/applications/broker.model.d.ts.map +1 -1
- package/dist/applications/broker.model.js +5 -2
- 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 +16 -2
- package/dist/applications/index.d.ts.map +1 -1
- package/dist/applications/index.js +5 -2
- package/dist/applications/productfeatures.model.d.ts +368 -0
- package/dist/applications/productfeatures.model.d.ts.map +1 -0
- package/dist/applications/solicitor.model.d.ts +43 -14
- package/dist/applications/solicitor.model.d.ts.map +1 -1
- package/dist/applications/solicitor.model.js +8 -1
- 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 +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- 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.model.d.ts +30 -2
- package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-catalogue.model.js +4 -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 +30 -2
- package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-definitions.model.js +3 -0
- package/dist/product-catalogues/product-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 +30 -2
- package/dist/product-catalogues/product-variant.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-variant.model.js +4 -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 +102 -59
- package/dist/properties/property.model.d.ts.map +1 -1
- package/dist/properties/property.model.js +16 -8
- package/dist/properties/security.model.d.ts +48 -2
- package/dist/properties/security.model.d.ts.map +1 -1
- package/dist/properties/security.model.js +15 -3
- package/dist/shared/alert.model.d.ts +42 -14
- package/dist/shared/alert.model.d.ts.map +1 -1
- 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 +36 -8
- package/dist/shared/apprivo-sync-journey.model.d.ts.map +1 -1
- package/dist/shared/apprivo-sync-journey.model.js +2 -0
- package/dist/shared/checklist.model.d.ts +36 -8
- package/dist/shared/checklist.model.d.ts.map +1 -1
- package/dist/shared/checklist.model.js +5 -0
- package/dist/shared/index.d.ts +7 -1
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +5 -1
- package/dist/shared/job-run.model.d.ts +30 -2
- package/dist/shared/job-run.model.d.ts.map +1 -1
- package/dist/shared/job-setting.model.d.ts +36 -8
- package/dist/shared/job-setting.model.d.ts.map +1 -1
- package/dist/shared/lookup-group.model.d.ts +30 -2
- package/dist/shared/lookup-group.model.d.ts.map +1 -1
- package/dist/shared/lookup-group.model.js +6 -0
- package/dist/shared/lookup.model.d.ts +30 -2
- package/dist/shared/lookup.model.d.ts.map +1 -1
- package/dist/shared/lookup.model.js +7 -0
- package/dist/shared/schema-doc.model.d.ts +36 -8
- package/dist/shared/schema-doc.model.d.ts.map +1 -1
- package/dist/shared/system-parameter.model.d.ts +36 -8
- package/dist/shared/system-parameter.model.d.ts.map +1 -1
- package/dist/shared/task-document.model.d.ts +36 -8
- package/dist/shared/task-document.model.d.ts.map +1 -1
- package/dist/shared/task.model.d.ts +36 -8
- package/dist/shared/task.model.d.ts.map +1 -1
- 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/underwriter.model.d.ts +30 -2
- package/dist/underwriter/underwriter.model.d.ts.map +1 -1
- package/dist/users/auth-log.model.d.ts +30 -2
- package/dist/users/auth-log.model.d.ts.map +1 -1
- package/dist/users/auth-log.model.js +3 -0
- package/dist/users/permission.model.d.ts +30 -2
- package/dist/users/permission.model.d.ts.map +1 -1
- package/dist/users/permission.model.js +2 -0
- package/dist/users/role-group.model.d.ts +30 -2
- package/dist/users/role-group.model.d.ts.map +1 -1
- package/dist/users/role-group.model.js +3 -0
- package/dist/users/role.model.d.ts +30 -2
- package/dist/users/role.model.d.ts.map +1 -1
- package/dist/users/role.model.js +3 -0
- package/dist/users/tasks.model.d.ts +30 -2
- package/dist/users/tasks.model.d.ts.map +1 -1
- package/dist/users/tasks.model.js +4 -1
- package/dist/users/user.model.d.ts +48 -14
- package/dist/users/user.model.d.ts.map +1 -1
- package/dist/users/user.model.js +13 -2
- 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 +28 -0
- package/dist/value-objects/pound.d.ts.map +1 -1
- package/dist/value-objects/pound.js +33 -9
- package/dist/value-objects/sort-code.d.ts +27 -0
- package/dist/value-objects/sort-code.d.ts.map +1 -1
- package/dist/value-objects/sort-code.js +13 -4
- package/package.json +33 -29
- package/dist/applicants/applicant-income.model.js +0 -78
- package/dist/applications/application-document.model.js +0 -35
- package/dist/applications/document.model.js +0 -35
- package/dist/entities/applicants/applicant-credit-data.entity.d.ts +0 -19
- package/dist/entities/applicants/applicant-credit-data.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-credit-data.entity.js +0 -5
- package/dist/entities/applicants/applicant-credit-profile.entity.d.ts +0 -14
- package/dist/entities/applicants/applicant-credit-profile.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-credit-profile.entity.js +0 -5
- package/dist/entities/applicants/applicant-employment-income.entity.d.ts +0 -14
- package/dist/entities/applicants/applicant-employment-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-employment-income.entity.js +0 -5
- package/dist/entities/applicants/applicant-employment.entity.d.ts +0 -54
- package/dist/entities/applicants/applicant-employment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-employment.entity.js +0 -5
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts +0 -14
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-expenditure.entity.js +0 -5
- package/dist/entities/applicants/applicant-income-settings.entity.d.ts +0 -17
- package/dist/entities/applicants/applicant-income-settings.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-income-settings.entity.js +0 -5
- package/dist/entities/applicants/applicant-income.entity.d.ts +0 -77
- package/dist/entities/applicants/applicant-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-income.entity.js +0 -2
- package/dist/entities/applicants/applicant-share-holding.entity.d.ts +0 -18
- package/dist/entities/applicants/applicant-share-holding.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-share-holding.entity.js +0 -5
- package/dist/entities/applicants/applicant.entity.d.ts +0 -144
- package/dist/entities/applicants/applicant.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant.entity.js +0 -48
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts +0 -22
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/credit-card-commitment.entity.js +0 -9
- package/dist/entities/applicants/index.d.ts +0 -20
- package/dist/entities/applicants/index.d.ts.map +0 -1
- package/dist/entities/applicants/index.js +0 -18
- package/dist/entities/applicants/loan-commitment.entity.d.ts +0 -29
- package/dist/entities/applicants/loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/loan-commitment.entity.js +0 -15
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts +0 -50
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/mortgage-commitment.entity.js +0 -27
- package/dist/entities/applicants/other-income.entity.d.ts +0 -41
- package/dist/entities/applicants/other-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/other-income.entity.js +0 -19
- package/dist/entities/applicants/property-income.entity.d.ts +0 -17
- package/dist/entities/applicants/property-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/property-income.entity.js +0 -5
- package/dist/entities/applicants/residence-commitment.entity.d.ts +0 -44
- package/dist/entities/applicants/residence-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/residence-commitment.entity.js +0 -19
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts +0 -29
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/secure-loan-commitment.entity.js +0 -12
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts +0 -29
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/unsecured-loan-commitment.entity.js +0 -12
- package/dist/entities/applications/application-audit.entity.d.ts +0 -18
- package/dist/entities/applications/application-audit.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-audit.entity.js +0 -5
- package/dist/entities/applications/application-company.entity.d.ts +0 -60
- package/dist/entities/applications/application-company.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-company.entity.js +0 -15
- package/dist/entities/applications/application-credit-profile.entity.d.ts +0 -11
- package/dist/entities/applications/application-credit-profile.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-credit-profile.entity.js +0 -5
- package/dist/entities/applications/application-direct-debit.entity.d.ts +0 -24
- package/dist/entities/applications/application-direct-debit.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-direct-debit.entity.js +0 -5
- package/dist/entities/applications/application-document.entity.d.ts +0 -28
- package/dist/entities/applications/application-document.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-document.entity.js +0 -5
- package/dist/entities/applications/application-fieldconfig.entity.d.ts +0 -9
- package/dist/entities/applications/application-fieldconfig.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-fieldconfig.entity.js +0 -5
- package/dist/entities/applications/application-illustration.entity.d.ts +0 -8
- package/dist/entities/applications/application-illustration.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-illustration.entity.js +0 -5
- package/dist/entities/applications/application-legal.entity.d.ts +0 -9
- package/dist/entities/applications/application-legal.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-legal.entity.js +0 -5
- package/dist/entities/applications/application-mortgage.entity.d.ts +0 -55
- package/dist/entities/applications/application-mortgage.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-mortgage.entity.js +0 -27
- package/dist/entities/applications/application-note.entity.d.ts +0 -37
- package/dist/entities/applications/application-note.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-note.entity.js +0 -5
- package/dist/entities/applications/application-offer.entity.d.ts +0 -8
- package/dist/entities/applications/application-offer.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-offer.entity.js +0 -5
- package/dist/entities/applications/application-onboarding.entity.d.ts +0 -11
- package/dist/entities/applications/application-onboarding.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-onboarding.entity.js +0 -5
- package/dist/entities/applications/application-product.entity.d.ts +0 -33
- package/dist/entities/applications/application-product.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-product.entity.js +0 -5
- package/dist/entities/applications/application-rationale.entity.d.ts +0 -51
- package/dist/entities/applications/application-rationale.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-rationale.entity.js +0 -5
- package/dist/entities/applications/application.entity.d.ts +0 -102
- package/dist/entities/applications/application.entity.d.ts.map +0 -1
- package/dist/entities/applications/application.entity.js +0 -66
- package/dist/entities/applications/broker.entity.d.ts +0 -23
- package/dist/entities/applications/broker.entity.d.ts.map +0 -1
- package/dist/entities/applications/broker.entity.js +0 -5
- package/dist/entities/applications/checklist-item.entity.d.ts +0 -47
- package/dist/entities/applications/checklist-item.entity.d.ts.map +0 -1
- package/dist/entities/applications/checklist-item.entity.js +0 -5
- package/dist/entities/applications/index.d.ts +0 -22
- package/dist/entities/applications/index.d.ts.map +0 -1
- package/dist/entities/applications/index.js +0 -20
- package/dist/entities/applications/product-features.entity.d.ts +0 -104
- package/dist/entities/applications/product-features.entity.d.ts.map +0 -1
- package/dist/entities/applications/product-features.entity.js +0 -20
- package/dist/entities/applications/solicitor.entity.d.ts +0 -33
- package/dist/entities/applications/solicitor.entity.d.ts.map +0 -1
- package/dist/entities/applications/solicitor.entity.js +0 -5
- package/dist/entities/index.d.ts +0 -10
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/index.js +0 -10
- package/dist/entities/prisma.d.ts +0 -3
- package/dist/entities/prisma.d.ts.map +0 -1
- package/dist/entities/prisma.js +0 -10
- package/dist/entities/product-catalogues/index.d.ts +0 -8
- package/dist/entities/product-catalogues/index.d.ts.map +0 -1
- package/dist/entities/product-catalogues/index.js +0 -6
- package/dist/entities/product-catalogues/product-catalogue.entity.d.ts +0 -22
- package/dist/entities/product-catalogues/product-catalogue.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product-catalogue.entity.js +0 -5
- package/dist/entities/product-catalogues/product-definition.entity.d.ts +0 -16
- package/dist/entities/product-catalogues/product-definition.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product-definition.entity.js +0 -5
- package/dist/entities/product-catalogues/product-variant.entity.d.ts +0 -14
- package/dist/entities/product-catalogues/product-variant.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product-variant.entity.js +0 -5
- package/dist/entities/product-catalogues/product.entity.d.ts +0 -11
- package/dist/entities/product-catalogues/product.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product.entity.js +0 -5
- package/dist/entities/product-catalogues/rule.entity.d.ts +0 -21
- package/dist/entities/product-catalogues/rule.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/rule.entity.js +0 -5
- package/dist/entities/properties/data-street.entity.d.ts +0 -22
- package/dist/entities/properties/data-street.entity.d.ts.map +0 -1
- package/dist/entities/properties/data-street.entity.js +0 -5
- package/dist/entities/properties/index.d.ts +0 -6
- package/dist/entities/properties/index.d.ts.map +0 -1
- package/dist/entities/properties/index.js +0 -4
- package/dist/entities/properties/property.entity.d.ts +0 -30
- package/dist/entities/properties/property.entity.d.ts.map +0 -1
- package/dist/entities/properties/property.entity.js +0 -5
- package/dist/entities/properties/security.entity.d.ts +0 -58
- package/dist/entities/properties/security.entity.d.ts.map +0 -1
- package/dist/entities/properties/security.entity.js +0 -5
- package/dist/entities/shared/alert.entity.d.ts +0 -14
- package/dist/entities/shared/alert.entity.d.ts.map +0 -1
- package/dist/entities/shared/alert.entity.js +0 -5
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts +0 -19
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts.map +0 -1
- package/dist/entities/shared/apprivo-sync-journey.entity.js +0 -5
- package/dist/entities/shared/checklist.entity.d.ts +0 -15
- package/dist/entities/shared/checklist.entity.d.ts.map +0 -1
- package/dist/entities/shared/checklist.entity.js +0 -5
- package/dist/entities/shared/document-type.entity.d.ts +0 -9
- package/dist/entities/shared/document-type.entity.d.ts.map +0 -1
- package/dist/entities/shared/document-type.entity.js +0 -5
- package/dist/entities/shared/index.d.ts +0 -12
- package/dist/entities/shared/index.d.ts.map +0 -1
- package/dist/entities/shared/index.js +0 -10
- package/dist/entities/shared/job-run.entity.d.ts +0 -15
- package/dist/entities/shared/job-run.entity.d.ts.map +0 -1
- package/dist/entities/shared/job-run.entity.js +0 -5
- package/dist/entities/shared/job-run.model.d.ts +0 -11
- package/dist/entities/shared/job-run.model.d.ts.map +0 -1
- package/dist/entities/shared/job-setting.entity.d.ts +0 -11
- package/dist/entities/shared/job-setting.entity.d.ts.map +0 -1
- package/dist/entities/shared/job-setting.entity.js +0 -5
- package/dist/entities/shared/lookup-group.entity.d.ts +0 -11
- package/dist/entities/shared/lookup-group.entity.d.ts.map +0 -1
- package/dist/entities/shared/lookup-group.entity.js +0 -5
- package/dist/entities/shared/lookup.entity.d.ts +0 -14
- package/dist/entities/shared/lookup.entity.d.ts.map +0 -1
- package/dist/entities/shared/lookup.entity.js +0 -5
- package/dist/entities/shared/system-parameter.entity.d.ts +0 -10
- package/dist/entities/shared/system-parameter.entity.d.ts.map +0 -1
- package/dist/entities/shared/system-parameter.entity.js +0 -5
- package/dist/entities/underwriter/index.d.ts +0 -4
- package/dist/entities/underwriter/index.d.ts.map +0 -1
- package/dist/entities/underwriter/index.js +0 -2
- package/dist/entities/underwriter/underwriter.entity.d.ts +0 -19
- package/dist/entities/underwriter/underwriter.entity.d.ts.map +0 -1
- package/dist/entities/underwriter/underwriter.entity.js +0 -5
- package/dist/entities/users/auth-log.entity.d.ts +0 -11
- package/dist/entities/users/auth-log.entity.d.ts.map +0 -1
- package/dist/entities/users/auth-log.entity.js +0 -5
- package/dist/entities/users/index.d.ts +0 -8
- package/dist/entities/users/index.d.ts.map +0 -1
- package/dist/entities/users/index.js +0 -6
- package/dist/entities/users/permission.entity.d.ts +0 -12
- package/dist/entities/users/permission.entity.d.ts.map +0 -1
- package/dist/entities/users/permission.entity.js +0 -5
- package/dist/entities/users/role-group.entity.d.ts +0 -13
- package/dist/entities/users/role-group.entity.d.ts.map +0 -1
- package/dist/entities/users/role-group.entity.js +0 -5
- package/dist/entities/users/role.entity.d.ts +0 -16
- package/dist/entities/users/role.entity.d.ts.map +0 -1
- package/dist/entities/users/role.entity.js +0 -5
- package/dist/entities/users/user.entity.d.ts +0 -33
- package/dist/entities/users/user.entity.d.ts.map +0 -1
- package/dist/entities/users/user.entity.js +0 -5
- package/dist/shared/document-type-model.js +0 -10
- package/entities/applicants/applicant-credit-data.entity.ts +0 -24
- package/entities/applicants/applicant-credit-profile.entity.ts +0 -19
- package/entities/applicants/applicant-employment-income.entity.ts +0 -18
- package/entities/applicants/applicant-employment.entity.ts +0 -60
- package/entities/applicants/applicant-expenditure.entity.ts +0 -19
- package/entities/applicants/applicant-income-settings.entity.ts +0 -22
- package/entities/applicants/applicant-income.entity.ts +0 -79
- package/entities/applicants/applicant-share-holding.entity.ts +0 -23
- package/entities/applicants/applicant.entity.ts +0 -194
- package/entities/applicants/credit-card-commitment.entity.ts +0 -31
- package/entities/applicants/index.ts +0 -59
- package/entities/applicants/loan-commitment.entity.ts +0 -44
- package/entities/applicants/mortgage-commitment.entity.ts +0 -77
- package/entities/applicants/other-income.entity.ts +0 -68
- package/entities/applicants/property-income.entity.ts +0 -19
- package/entities/applicants/residence-commitment.entity.ts +0 -63
- package/entities/applicants/secure-loan-commitment.entity.ts +0 -41
- package/entities/applicants/unsecured-loan-commitment.entity.ts +0 -41
- package/entities/applications/application-audit.entity.ts +0 -23
- package/entities/applications/application-company.entity.ts +0 -76
- package/entities/applications/application-credit-profile.entity.ts +0 -13
- package/entities/applications/application-direct-debit.entity.ts +0 -29
- package/entities/applications/application-document.entity.ts +0 -33
- package/entities/applications/application-fieldconfig.entity.ts +0 -11
- package/entities/applications/application-illustration.entity.ts +0 -10
- package/entities/applications/application-legal.entity.ts +0 -11
- package/entities/applications/application-mortgage.entity.ts +0 -82
- package/entities/applications/application-note.entity.ts +0 -42
- package/entities/applications/application-offer.entity.ts +0 -10
- package/entities/applications/application-onboarding.entity.ts +0 -13
- package/entities/applications/application-product.entity.ts +0 -38
- package/entities/applications/application-rationale.entity.ts +0 -56
- package/entities/applications/application.entity.ts +0 -168
- package/entities/applications/broker.entity.ts +0 -25
- package/entities/applications/checklist-item.entity.ts +0 -49
- package/entities/applications/index.ts +0 -63
- package/entities/applications/product-features.entity.ts +0 -118
- package/entities/applications/solicitor.entity.ts +0 -38
- package/entities/index.ts +0 -14
- package/entities/prisma.ts +0 -13
- package/entities/product-catalogues/index.ts +0 -23
- package/entities/product-catalogues/product-catalogue.entity.ts +0 -27
- package/entities/product-catalogues/product-definition.entity.ts +0 -21
- package/entities/product-catalogues/product-variant.entity.ts +0 -19
- package/entities/product-catalogues/product.entity.ts +0 -16
- package/entities/product-catalogues/rule.entity.ts +0 -26
- package/entities/properties/data-street.entity.ts +0 -27
- package/entities/properties/index.ts +0 -17
- package/entities/properties/property.entity.ts +0 -35
- package/entities/properties/security.entity.ts +0 -63
- package/entities/shared/alert.entity.ts +0 -19
- package/entities/shared/apprivo-sync-journey.entity.ts +0 -25
- package/entities/shared/apprivo-sync-journey.model.ts +0 -13
- package/entities/shared/checklist.entity.ts +0 -20
- package/entities/shared/document-type.entity.ts +0 -11
- package/entities/shared/index.ts +0 -35
- package/entities/shared/job-run.entity.ts +0 -20
- package/entities/shared/job-run.model.ts +0 -10
- package/entities/shared/job-setting.entity.ts +0 -13
- package/entities/shared/lookup-group.entity.ts +0 -16
- package/entities/shared/lookup.entity.ts +0 -19
- package/entities/shared/system-parameter.entity.ts +0 -13
- package/entities/underwriter/index.ts +0 -7
- package/entities/underwriter/underwriter.entity.ts +0 -24
- package/entities/users/auth-log.entity.ts +0 -13
- package/entities/users/index.ts +0 -23
- package/entities/users/permission.entity.ts +0 -17
- package/entities/users/role-group.entity.ts +0 -18
- package/entities/users/role.entity.ts +0 -21
- package/entities/users/user.entity.ts +0 -38
- package/prisma/applicants/applicant-credit-data.prisma +0 -19
- package/prisma/applicants/applicant-credit-profile.prisma +0 -15
- package/prisma/applicants/applicant-employment-income.prisma +0 -15
- package/prisma/applicants/applicant-employment.prisma +0 -54
- package/prisma/applicants/applicant-expenditure.prisma +0 -14
- package/prisma/applicants/applicant-income-settings.prisma +0 -17
- package/prisma/applicants/applicant-income.prisma +0 -78
- package/prisma/applicants/applicant-other-income.prisma +0 -45
- package/prisma/applicants/applicant-property-income.prisma +0 -21
- package/prisma/applicants/applicant-share-holding.prisma +0 -17
- package/prisma/applicants/applicant.prisma +0 -130
- package/prisma/applicants/credit-card-commitment.prisma +0 -21
- package/prisma/applicants/loan-commitment.prisma +0 -26
- package/prisma/applicants/mortgage-commitment.prisma +0 -43
- package/prisma/applicants/residence-commitment.prisma +0 -41
- package/prisma/applicants/secured-loan-commitment.prisma +0 -27
- package/prisma/applicants/unsecured-loan-commitment.prisma +0 -27
- package/prisma/applications/application-audit.prisma +0 -19
- package/prisma/applications/application-company.prisma +0 -56
- package/prisma/applications/application-credit-profile.prisma +0 -15
- package/prisma/applications/application-direct-debit.prisma +0 -27
- package/prisma/applications/application-document.prisma +0 -28
- package/prisma/applications/application-fieldconfig.prisma +0 -9
- package/prisma/applications/application-illustration.prisma +0 -8
- package/prisma/applications/application-legal.prisma +0 -9
- package/prisma/applications/application-mortgage.prisma +0 -48
- package/prisma/applications/application-note.prisma +0 -36
- package/prisma/applications/application-offer.prisma +0 -8
- package/prisma/applications/application-onboarding.prisma +0 -11
- package/prisma/applications/application-product.prisma +0 -33
- package/prisma/applications/application-rationale.prisma +0 -51
- package/prisma/applications/application.prisma +0 -92
- package/prisma/applications/broker.prisma +0 -26
- package/prisma/applications/checklist-item.prisma +0 -47
- package/prisma/applications/checklist.prisma +0 -19
- package/prisma/applications/product-features.prisma +0 -122
- package/prisma/applications/solicitor.prisma +0 -33
- package/prisma/broker.entity.ts +0 -8
- package/prisma/migrations/20250501070203_initial_migration/migration.sql +0 -2044
- package/prisma/migrations/20250501102630_job_setting_name_change/migration.sql +0 -10
- package/prisma/migrations/20250501104920_milstone_update/migration.sql +0 -30
- package/prisma/migrations/20250501105546_apprivo_sync_journey_update/migration.sql +0 -9
- package/prisma/migrations/20250501105850_job_run_update/migration.sql +0 -13
- package/prisma/migrations/20250505115236_update_application_schema/migration.sql +0 -115
- package/prisma/migrations/20250505145328_update_broker_schema/migration.sql +0 -8
- package/prisma/migrations/20250505185034_update_direct_debit_schema/migration.sql +0 -27
- package/prisma/migrations/20250505190613_update_solicitor_schema/migration.sql +0 -29
- package/prisma/migrations/20250506054831_update_note_schema/migration.sql +0 -12
- package/prisma/migrations/20250506142218_update_broker_schema/migration.sql +0 -17
- package/prisma/migrations/20250506190258_update_application_note_schema/migration.sql +0 -32
- package/prisma/migrations/20250506204635_update_mortgage_schema/migration.sql +0 -26
- package/prisma/migrations/20250507122847_applicant_retirement_age/migration.sql +0 -9
- package/prisma/migrations/20250507184905_update_mortgage_schema/migration.sql +0 -8
- package/prisma/migrations/20250507194746_update_direct_debit_schema/migration.sql +0 -5
- package/prisma/migrations/20250508092417_update_application_schema/migration.sql +0 -3
- package/prisma/migrations/20250508094735_update_direct_debit_schema/migration.sql +0 -2
- package/prisma/migrations/20250509073536_update_applicant_schema/migration.sql +0 -4
- package/prisma/migrations/20250509111029_update_solicitor_schema/migration.sql +0 -2
- package/prisma/migrations/20250509125107_update_mortgage_schema/migration.sql +0 -19
- package/prisma/migrations/20250512071728_update_mortgage_schema/migration.sql +0 -15
- package/prisma/migrations/20250512094011_update_property_schema/migration.sql +0 -34
- package/prisma/migrations/20250512102019_update_mortgage_schema/migration.sql +0 -2
- package/prisma/migrations/20250513132704_update_credit_card_commitment_schema/migration.sql +0 -22
- package/prisma/migrations/20250513143530_update_credit_card_commitment_schema/migration.sql +0 -8
- package/prisma/migrations/20250513170654_update_mortgage_commitment_schema/migration.sql +0 -89
- package/prisma/migrations/20250513183558_update_loan_commitment_schema/migration.sql +0 -33
- package/prisma/migrations/20250513184341_update_loan_commitment_schema/migration.sql +0 -4
- package/prisma/migrations/20250513202307_update_role_schema/migration.sql +0 -12
- package/prisma/migrations/20250514062536_update_role_group_schema/migration.sql +0 -12
- package/prisma/migrations/20250514064054_update_user_schema/migration.sql +0 -12
- package/prisma/migrations/20250514071524_update_user_schema/migration.sql +0 -15
- package/prisma/migrations/20250514072729_update_user_schema/migration.sql +0 -18
- package/prisma/migrations/20250514102042_update_user_rolegroup_role_schemas/migration.sql +0 -9
- package/prisma/migrations/20250514183537_update_application_company_schema/migration.sql +0 -100
- package/prisma/migrations/20250514194139_update_applicant_share_holding_schema/migration.sql +0 -11
- package/prisma/migrations/20250515132015_update_underwriter_schema/migration.sql +0 -56
- package/prisma/migrations/20250515133236_update_underwriter_schema/migration.sql +0 -12
- package/prisma/migrations/20250515172824_update_security_schema/migration.sql +0 -43
- package/prisma/migrations/20250516053810_update_underwriter_schema/migration.sql +0 -14
- package/prisma/migrations/20250516075153_update_commitments_schemas/migration.sql +0 -134
- package/prisma/migrations/20250516094438_update_credit_card_commitment_schema/migration.sql +0 -8
- package/prisma/migrations/20250519075211_update_product_features_schema/migration.sql +0 -15
- package/prisma/migrations/20250519094725_update_product_feature_schema/migration.sql +0 -163
- package/prisma/migrations/20250519133154_update_employemnt_income_schema/migration.sql +0 -11
- package/prisma/migrations/20250519181411_update_applicant_income_schema/migration.sql +0 -65
- package/prisma/migrations/20250520030945_update_income_settings_schema/migration.sql +0 -44
- package/prisma/migrations/20250520061455_update_income_settings_schema/migration.sql +0 -11
- package/prisma/migrations/20250521173204_update_product_catalogue_schema/migration.sql +0 -28
- package/prisma/migrations/20250521180300_update_product_variant_schema/migration.sql +0 -8
- package/prisma/migrations/20250521191050_update_product_definition_schema/migration.sql +0 -23
- package/prisma/migrations/20250521192012_update_product_definition_schema/migration.sql +0 -9
- package/prisma/migrations/migration_lock.toml +0 -3
- package/prisma/product-catalogues/product-catalogue.prisma +0 -22
- package/prisma/product-catalogues/product-definition.prisma +0 -16
- package/prisma/product-catalogues/product-variant.prisma +0 -15
- package/prisma/product-catalogues/product.prisma +0 -10
- package/prisma/product-catalogues/rule.prisma +0 -22
- package/prisma/properties/property.prisma +0 -30
- package/prisma/properties/security.prisma +0 -81
- package/prisma/schema.prisma +0 -1979
- package/prisma/shared/alert.prisma +0 -15
- package/prisma/shared/apprivo-sync-journey.prisma +0 -19
- package/prisma/shared/checklist.prisma +0 -10
- package/prisma/shared/document-type.prisma +0 -9
- package/prisma/shared/job-run.prisma +0 -15
- package/prisma/shared/job-setting.prisma +0 -11
- package/prisma/shared/lookup-group.prisma +0 -12
- package/prisma/shared/lookup.prisma +0 -154
- package/prisma/shared/system-parameter.prisma +0 -16
- package/prisma/underwriter/underwriter.prisma +0 -20
- package/prisma/users/auth-log.prisma +0 -11
- package/prisma/users/permission.prisma +0 -13
- package/prisma/users/role-group.prisma +0 -15
- package/prisma/users/role.prisma +0 -15
- package/prisma/users/user.prisma +0 -30
- /package/dist/{entities/shared/job-run.model.js → applicants/applicant-additional-income.type.js} +0 -0
|
@@ -0,0 +1,799 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
|
+
const propertyTypeSchema = new mongoose.Schema({
|
|
4
|
+
isDetachedHouse: {
|
|
5
|
+
type: Boolean,
|
|
6
|
+
default: null
|
|
7
|
+
},
|
|
8
|
+
isSemiDetachedHouse: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: null
|
|
11
|
+
},
|
|
12
|
+
isTerracedHouse: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: null
|
|
15
|
+
},
|
|
16
|
+
isBungalow: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: null
|
|
19
|
+
},
|
|
20
|
+
isFlat: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: null
|
|
23
|
+
},
|
|
24
|
+
isMaisonette: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: null
|
|
27
|
+
},
|
|
28
|
+
flatMaisonetteFloor: {
|
|
29
|
+
type: Number,
|
|
30
|
+
default: null
|
|
31
|
+
},
|
|
32
|
+
numberOfFloorsInBlock: {
|
|
33
|
+
type: Number,
|
|
34
|
+
default: null
|
|
35
|
+
},
|
|
36
|
+
isBuiltOrOwnedByLocalAuthority: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: null
|
|
39
|
+
},
|
|
40
|
+
ownerOccupationPercentage: {
|
|
41
|
+
type: Number,
|
|
42
|
+
default: null
|
|
43
|
+
},
|
|
44
|
+
isFlatMaisonetteConverted: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: null
|
|
47
|
+
},
|
|
48
|
+
conversionYear: {
|
|
49
|
+
type: Number,
|
|
50
|
+
default: null
|
|
51
|
+
},
|
|
52
|
+
isPurposeBuilt: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: null
|
|
55
|
+
},
|
|
56
|
+
numberOfUnitsInBlock: {
|
|
57
|
+
type: Number,
|
|
58
|
+
default: null
|
|
59
|
+
},
|
|
60
|
+
isAboveCommercial: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: null
|
|
63
|
+
},
|
|
64
|
+
residentialNatureImpact: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: null
|
|
67
|
+
},
|
|
68
|
+
tenure: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: null
|
|
71
|
+
},
|
|
72
|
+
isFlyingFreehold: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: null
|
|
75
|
+
},
|
|
76
|
+
flyingFreeholdPercentage: {
|
|
77
|
+
type: Number,
|
|
78
|
+
default: null
|
|
79
|
+
},
|
|
80
|
+
maintenanceCharge: {
|
|
81
|
+
type: Number,
|
|
82
|
+
default: null
|
|
83
|
+
},
|
|
84
|
+
roadCharges: {
|
|
85
|
+
type: Number,
|
|
86
|
+
default: null
|
|
87
|
+
},
|
|
88
|
+
groundRent: {
|
|
89
|
+
type: Number,
|
|
90
|
+
default: null
|
|
91
|
+
},
|
|
92
|
+
remainingLeaseTermYears: {
|
|
93
|
+
type: Number,
|
|
94
|
+
default: null
|
|
95
|
+
},
|
|
96
|
+
isPartCommercialUse: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: null
|
|
99
|
+
},
|
|
100
|
+
commercialUsePercentage: {
|
|
101
|
+
type: Number,
|
|
102
|
+
default: null
|
|
103
|
+
},
|
|
104
|
+
isPurchasedUnderSharedOwnership: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
default: null
|
|
107
|
+
},
|
|
108
|
+
yearBuilt: {
|
|
109
|
+
type: Number,
|
|
110
|
+
default: null
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
const accommodationSchema = new mongoose.Schema({
|
|
114
|
+
hall: {
|
|
115
|
+
type: Number,
|
|
116
|
+
default: null
|
|
117
|
+
},
|
|
118
|
+
livingRooms: {
|
|
119
|
+
type: Number,
|
|
120
|
+
default: null
|
|
121
|
+
},
|
|
122
|
+
kitchen: {
|
|
123
|
+
type: Number,
|
|
124
|
+
default: null
|
|
125
|
+
},
|
|
126
|
+
isLiftPresent: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: null
|
|
129
|
+
},
|
|
130
|
+
utility: {
|
|
131
|
+
type: Number,
|
|
132
|
+
default: null
|
|
133
|
+
},
|
|
134
|
+
bedrooms: {
|
|
135
|
+
type: Number,
|
|
136
|
+
default: null
|
|
137
|
+
},
|
|
138
|
+
bathrooms: {
|
|
139
|
+
type: Number,
|
|
140
|
+
default: null
|
|
141
|
+
},
|
|
142
|
+
separateWc: {
|
|
143
|
+
type: Number,
|
|
144
|
+
default: null
|
|
145
|
+
},
|
|
146
|
+
basement: {
|
|
147
|
+
type: Number,
|
|
148
|
+
default: null
|
|
149
|
+
},
|
|
150
|
+
garage: {
|
|
151
|
+
type: Number,
|
|
152
|
+
default: null
|
|
153
|
+
},
|
|
154
|
+
parking: {
|
|
155
|
+
type: Number,
|
|
156
|
+
default: null
|
|
157
|
+
},
|
|
158
|
+
gardens: {
|
|
159
|
+
type: Boolean,
|
|
160
|
+
default: null
|
|
161
|
+
},
|
|
162
|
+
isPrivate: {
|
|
163
|
+
type: Boolean,
|
|
164
|
+
default: null
|
|
165
|
+
},
|
|
166
|
+
isCommunal: {
|
|
167
|
+
type: Boolean,
|
|
168
|
+
default: null
|
|
169
|
+
},
|
|
170
|
+
numberOfOutbuildings: {
|
|
171
|
+
type: Number,
|
|
172
|
+
default: null
|
|
173
|
+
},
|
|
174
|
+
outbuildingDetails: {
|
|
175
|
+
type: String,
|
|
176
|
+
default: null
|
|
177
|
+
},
|
|
178
|
+
grossFloorAreaOfDwelling: {
|
|
179
|
+
type: Number,
|
|
180
|
+
default: null
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
const newBuildSchema = new mongoose.Schema({
|
|
184
|
+
isNewBuildOrRecentlyConverted: {
|
|
185
|
+
type: Boolean,
|
|
186
|
+
default: null
|
|
187
|
+
},
|
|
188
|
+
isCompleted: {
|
|
189
|
+
type: Boolean,
|
|
190
|
+
default: null
|
|
191
|
+
},
|
|
192
|
+
isUnderConstruction: {
|
|
193
|
+
type: Boolean,
|
|
194
|
+
default: null
|
|
195
|
+
},
|
|
196
|
+
isFinalInspectionRequired: {
|
|
197
|
+
type: Boolean,
|
|
198
|
+
default: null
|
|
199
|
+
},
|
|
200
|
+
isNhbcCert: {
|
|
201
|
+
type: Boolean,
|
|
202
|
+
default: null
|
|
203
|
+
},
|
|
204
|
+
isBuildZone: {
|
|
205
|
+
type: Boolean,
|
|
206
|
+
default: null
|
|
207
|
+
},
|
|
208
|
+
isPremier: {
|
|
209
|
+
type: Boolean,
|
|
210
|
+
default: null
|
|
211
|
+
},
|
|
212
|
+
isProfessionalConsultant: {
|
|
213
|
+
type: Boolean,
|
|
214
|
+
default: null
|
|
215
|
+
},
|
|
216
|
+
isOtherCert: {
|
|
217
|
+
type: Boolean,
|
|
218
|
+
default: null
|
|
219
|
+
},
|
|
220
|
+
otherCertDetails: {
|
|
221
|
+
type: String,
|
|
222
|
+
default: null
|
|
223
|
+
},
|
|
224
|
+
isSelfBuildProject: {
|
|
225
|
+
type: Boolean,
|
|
226
|
+
default: null
|
|
227
|
+
},
|
|
228
|
+
isInvolvesPartExchange: {
|
|
229
|
+
type: Boolean,
|
|
230
|
+
default: null
|
|
231
|
+
},
|
|
232
|
+
isDisclosureOfIncentivesSeen: {
|
|
233
|
+
type: Boolean,
|
|
234
|
+
default: null
|
|
235
|
+
},
|
|
236
|
+
incentivesDetails: {
|
|
237
|
+
type: String,
|
|
238
|
+
default: null
|
|
239
|
+
},
|
|
240
|
+
newBuildDeveloperName: {
|
|
241
|
+
type: String,
|
|
242
|
+
default: null
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
const currentOccupencySchema = new mongoose.Schema({
|
|
246
|
+
isEverOccupied: {
|
|
247
|
+
type: Boolean,
|
|
248
|
+
default: null
|
|
249
|
+
},
|
|
250
|
+
numberOfAdultsInProperty: {
|
|
251
|
+
type: Number,
|
|
252
|
+
default: null
|
|
253
|
+
},
|
|
254
|
+
isHmoOrMultiUnitFreeholdBlock: {
|
|
255
|
+
type: Boolean,
|
|
256
|
+
default: null
|
|
257
|
+
},
|
|
258
|
+
isCurrentlyTenanted: {
|
|
259
|
+
type: Boolean,
|
|
260
|
+
default: null
|
|
261
|
+
},
|
|
262
|
+
hmoOrMultiUnitDetails: {
|
|
263
|
+
type: String,
|
|
264
|
+
default: null
|
|
265
|
+
},
|
|
266
|
+
});
|
|
267
|
+
const constructionSchema = new mongoose.Schema({
|
|
268
|
+
isStandardConstruction: {
|
|
269
|
+
type: Boolean,
|
|
270
|
+
default: null
|
|
271
|
+
},
|
|
272
|
+
nonStandardConstructionType: {
|
|
273
|
+
type: String,
|
|
274
|
+
default: null
|
|
275
|
+
},
|
|
276
|
+
mainWalls: {
|
|
277
|
+
type: String,
|
|
278
|
+
default: null
|
|
279
|
+
},
|
|
280
|
+
mainRoof: {
|
|
281
|
+
type: String,
|
|
282
|
+
default: null
|
|
283
|
+
},
|
|
284
|
+
garageConstruction: {
|
|
285
|
+
type: String,
|
|
286
|
+
default: null
|
|
287
|
+
},
|
|
288
|
+
outbuildingsConstruction: {
|
|
289
|
+
type: String,
|
|
290
|
+
default: null
|
|
291
|
+
},
|
|
292
|
+
isHasAlterationsOrExtensions: {
|
|
293
|
+
type: Boolean,
|
|
294
|
+
default: null
|
|
295
|
+
},
|
|
296
|
+
isAlterationsRequireConsents: {
|
|
297
|
+
type: Boolean,
|
|
298
|
+
default: null
|
|
299
|
+
},
|
|
300
|
+
alterationsAge: {
|
|
301
|
+
type: Number,
|
|
302
|
+
default: null
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
const localityAndDemandSchema = new mongoose.Schema({
|
|
306
|
+
// Location Type - Boolean fields
|
|
307
|
+
isUrban: {
|
|
308
|
+
type: Boolean,
|
|
309
|
+
default: null
|
|
310
|
+
},
|
|
311
|
+
isSuburban: {
|
|
312
|
+
type: Boolean,
|
|
313
|
+
default: null
|
|
314
|
+
},
|
|
315
|
+
isRural: {
|
|
316
|
+
type: Boolean,
|
|
317
|
+
default: null
|
|
318
|
+
},
|
|
319
|
+
// Market Appeal - Boolean fields
|
|
320
|
+
isGoodMarketAppeal: {
|
|
321
|
+
type: Boolean,
|
|
322
|
+
default: null
|
|
323
|
+
},
|
|
324
|
+
isAverageMarketAppeal: {
|
|
325
|
+
type: Boolean,
|
|
326
|
+
default: null
|
|
327
|
+
},
|
|
328
|
+
isPoorMarketAppeal: {
|
|
329
|
+
type: Boolean,
|
|
330
|
+
default: null
|
|
331
|
+
},
|
|
332
|
+
// Surrounding Property Types - Boolean fields
|
|
333
|
+
isOwnerResidential: {
|
|
334
|
+
type: Boolean,
|
|
335
|
+
default: null
|
|
336
|
+
},
|
|
337
|
+
isResidentialLet: {
|
|
338
|
+
type: Boolean,
|
|
339
|
+
default: null
|
|
340
|
+
},
|
|
341
|
+
isCommercial: {
|
|
342
|
+
type: Boolean,
|
|
343
|
+
default: null
|
|
344
|
+
},
|
|
345
|
+
// Property Prices Trend - Boolean fields
|
|
346
|
+
isPricesRising: {
|
|
347
|
+
type: Boolean,
|
|
348
|
+
default: null
|
|
349
|
+
},
|
|
350
|
+
isPricesStatic: {
|
|
351
|
+
type: Boolean,
|
|
352
|
+
default: null
|
|
353
|
+
},
|
|
354
|
+
isPricesFalling: {
|
|
355
|
+
type: Boolean,
|
|
356
|
+
default: null
|
|
357
|
+
},
|
|
358
|
+
// Demand Trend - Boolean fields
|
|
359
|
+
isDemandRising: {
|
|
360
|
+
type: Boolean,
|
|
361
|
+
default: null
|
|
362
|
+
},
|
|
363
|
+
isDemandStatic: {
|
|
364
|
+
type: Boolean,
|
|
365
|
+
default: null
|
|
366
|
+
},
|
|
367
|
+
isDemandFalling: {
|
|
368
|
+
type: Boolean,
|
|
369
|
+
default: null
|
|
370
|
+
},
|
|
371
|
+
isAffectedByCompulsoryPurchase: {
|
|
372
|
+
type: Boolean,
|
|
373
|
+
default: null
|
|
374
|
+
},
|
|
375
|
+
compulsoryPurchaseDetails: {
|
|
376
|
+
type: String,
|
|
377
|
+
default: null
|
|
378
|
+
},
|
|
379
|
+
isVacantOrBoardedPropertiesNearby: {
|
|
380
|
+
type: Boolean,
|
|
381
|
+
default: null
|
|
382
|
+
},
|
|
383
|
+
vacantOrBoardedDetails: {
|
|
384
|
+
type: String,
|
|
385
|
+
default: null
|
|
386
|
+
},
|
|
387
|
+
isOccupancyRestrictionPossible: {
|
|
388
|
+
type: Boolean,
|
|
389
|
+
default: null
|
|
390
|
+
},
|
|
391
|
+
occupancyRestrictionDetails: {
|
|
392
|
+
type: String,
|
|
393
|
+
default: null
|
|
394
|
+
},
|
|
395
|
+
isCloseToHighVoltageEquipment: {
|
|
396
|
+
type: Boolean,
|
|
397
|
+
default: null
|
|
398
|
+
},
|
|
399
|
+
highVoltageEquipmentDetails: {
|
|
400
|
+
type: String,
|
|
401
|
+
default: null
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
const servicesSchema = new mongoose.Schema({
|
|
405
|
+
// Water Supply - Boolean fields
|
|
406
|
+
isMainsWater: {
|
|
407
|
+
type: Boolean,
|
|
408
|
+
default: null
|
|
409
|
+
},
|
|
410
|
+
isPrivateWater: {
|
|
411
|
+
type: Boolean,
|
|
412
|
+
default: null
|
|
413
|
+
},
|
|
414
|
+
isUnknownWater: {
|
|
415
|
+
type: Boolean,
|
|
416
|
+
default: null
|
|
417
|
+
},
|
|
418
|
+
// Gas Supply - Boolean
|
|
419
|
+
isGasSupply: {
|
|
420
|
+
type: Boolean,
|
|
421
|
+
default: null
|
|
422
|
+
},
|
|
423
|
+
// Electricity Supply - Boolean
|
|
424
|
+
isElectricitySupply: {
|
|
425
|
+
type: Boolean,
|
|
426
|
+
default: null
|
|
427
|
+
},
|
|
428
|
+
// Central Heating - Boolean
|
|
429
|
+
isCentralHeating: {
|
|
430
|
+
type: Boolean,
|
|
431
|
+
default: null
|
|
432
|
+
},
|
|
433
|
+
centralHeatingType: {
|
|
434
|
+
type: String,
|
|
435
|
+
default: null
|
|
436
|
+
},
|
|
437
|
+
// Main Drainage - Boolean
|
|
438
|
+
isMainDrainage: {
|
|
439
|
+
type: Boolean,
|
|
440
|
+
default: null
|
|
441
|
+
},
|
|
442
|
+
// Septic Tank/Cesspit/Treatment Plant - Boolean
|
|
443
|
+
isSepticTankPlant: {
|
|
444
|
+
type: Boolean,
|
|
445
|
+
default: null
|
|
446
|
+
},
|
|
447
|
+
isUnknownDrainage: {
|
|
448
|
+
type: Boolean,
|
|
449
|
+
default: null
|
|
450
|
+
},
|
|
451
|
+
// Solar Panels - Boolean
|
|
452
|
+
isSolarPanels: {
|
|
453
|
+
type: Boolean,
|
|
454
|
+
default: null
|
|
455
|
+
},
|
|
456
|
+
// Shared Access - Boolean
|
|
457
|
+
isSharedAccess: {
|
|
458
|
+
type: Boolean,
|
|
459
|
+
default: null
|
|
460
|
+
},
|
|
461
|
+
// Road Adopted - Boolean
|
|
462
|
+
isRoadAdopted: {
|
|
463
|
+
type: Boolean,
|
|
464
|
+
default: null
|
|
465
|
+
},
|
|
466
|
+
isHasEasementsOrRightsOfWay: {
|
|
467
|
+
type: Boolean,
|
|
468
|
+
default: null
|
|
469
|
+
},
|
|
470
|
+
easementsOrRightsDetails: {
|
|
471
|
+
type: String,
|
|
472
|
+
default: null
|
|
473
|
+
},
|
|
474
|
+
servicesSeparateForFlats: {
|
|
475
|
+
type: String,
|
|
476
|
+
default: ""
|
|
477
|
+
},
|
|
478
|
+
servicesSeparateDetails: {
|
|
479
|
+
type: String,
|
|
480
|
+
default: ""
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
const energyEfficiencySchema = new mongoose.Schema({
|
|
484
|
+
epcRating: {
|
|
485
|
+
type: String,
|
|
486
|
+
default: null
|
|
487
|
+
},
|
|
488
|
+
epcScore: {
|
|
489
|
+
type: Number,
|
|
490
|
+
default: null
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
const essentialRepairsSchema = new mongoose.Schema({
|
|
494
|
+
isEssentialRepairsRequired: {
|
|
495
|
+
type: Boolean,
|
|
496
|
+
default: null
|
|
497
|
+
},
|
|
498
|
+
essentialRepairsDetails: {
|
|
499
|
+
type: String,
|
|
500
|
+
default: null
|
|
501
|
+
},
|
|
502
|
+
isReinspectionRequired: {
|
|
503
|
+
type: Boolean,
|
|
504
|
+
default: null
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
const reportsSchema = new mongoose.Schema({
|
|
508
|
+
isTimberDamp: {
|
|
509
|
+
type: Boolean,
|
|
510
|
+
default: null
|
|
511
|
+
},
|
|
512
|
+
isMining: {
|
|
513
|
+
type: Boolean,
|
|
514
|
+
default: null
|
|
515
|
+
},
|
|
516
|
+
isElectrical: {
|
|
517
|
+
type: Boolean,
|
|
518
|
+
default: null
|
|
519
|
+
},
|
|
520
|
+
isDrains: {
|
|
521
|
+
type: Boolean,
|
|
522
|
+
default: null
|
|
523
|
+
},
|
|
524
|
+
isStructuralEngineers: {
|
|
525
|
+
type: Boolean,
|
|
526
|
+
default: null
|
|
527
|
+
},
|
|
528
|
+
isArboricultural: {
|
|
529
|
+
type: Boolean,
|
|
530
|
+
default: null
|
|
531
|
+
},
|
|
532
|
+
isMundic: {
|
|
533
|
+
type: Boolean,
|
|
534
|
+
default: null
|
|
535
|
+
},
|
|
536
|
+
isWallTies: {
|
|
537
|
+
type: Boolean,
|
|
538
|
+
default: null
|
|
539
|
+
},
|
|
540
|
+
isRoof: {
|
|
541
|
+
type: Boolean,
|
|
542
|
+
default: null
|
|
543
|
+
},
|
|
544
|
+
isMetalliferous: {
|
|
545
|
+
type: Boolean,
|
|
546
|
+
default: null
|
|
547
|
+
},
|
|
548
|
+
isSulfateRedAsh: {
|
|
549
|
+
type: Boolean,
|
|
550
|
+
default: null
|
|
551
|
+
},
|
|
552
|
+
isOtherReport: {
|
|
553
|
+
type: Boolean,
|
|
554
|
+
default: null
|
|
555
|
+
},
|
|
556
|
+
otherReportDetails: {
|
|
557
|
+
type: String,
|
|
558
|
+
default: null
|
|
559
|
+
}
|
|
560
|
+
});
|
|
561
|
+
const propertyProneToSchema = new mongoose.Schema({
|
|
562
|
+
flooding: {
|
|
563
|
+
type: Boolean,
|
|
564
|
+
default: null
|
|
565
|
+
},
|
|
566
|
+
subsidence: {
|
|
567
|
+
type: Boolean,
|
|
568
|
+
default: null
|
|
569
|
+
},
|
|
570
|
+
heave: {
|
|
571
|
+
type: Boolean,
|
|
572
|
+
default: null
|
|
573
|
+
},
|
|
574
|
+
landslip: {
|
|
575
|
+
type: Boolean,
|
|
576
|
+
default: null
|
|
577
|
+
},
|
|
578
|
+
details: {
|
|
579
|
+
type: String,
|
|
580
|
+
default: null
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
const conditionsOfPropertySchema = new mongoose.Schema({
|
|
584
|
+
isStructuralMovement: {
|
|
585
|
+
type: Boolean,
|
|
586
|
+
default: null
|
|
587
|
+
},
|
|
588
|
+
isStructuralMovementHistoricOrNonProgressive: {
|
|
589
|
+
type: Boolean,
|
|
590
|
+
default: null
|
|
591
|
+
},
|
|
592
|
+
structuralMovementDetails: {
|
|
593
|
+
type: String,
|
|
594
|
+
default: ""
|
|
595
|
+
},
|
|
596
|
+
isStructuralModifications: {
|
|
597
|
+
type: Boolean,
|
|
598
|
+
default: null
|
|
599
|
+
},
|
|
600
|
+
structuralModificationsDetails: {
|
|
601
|
+
type: String,
|
|
602
|
+
default: null
|
|
603
|
+
},
|
|
604
|
+
communalAreasMaintained: {
|
|
605
|
+
type: Boolean,
|
|
606
|
+
default: null
|
|
607
|
+
},
|
|
608
|
+
propertyProneTo: propertyProneToSchema,
|
|
609
|
+
isPlotBoundariesDefinedUnderPointFourHectares: {
|
|
610
|
+
type: Boolean,
|
|
611
|
+
default: null
|
|
612
|
+
},
|
|
613
|
+
isTreesWithinInfluencingDistance: {
|
|
614
|
+
type: Boolean,
|
|
615
|
+
default: null
|
|
616
|
+
},
|
|
617
|
+
treesInfluenceDetails: {
|
|
618
|
+
type: String,
|
|
619
|
+
default: null
|
|
620
|
+
},
|
|
621
|
+
isBuiltOnSteepSlope: {
|
|
622
|
+
type: Boolean,
|
|
623
|
+
default: null
|
|
624
|
+
},
|
|
625
|
+
steepSlopeDetails: {
|
|
626
|
+
type: String,
|
|
627
|
+
default: null
|
|
628
|
+
}
|
|
629
|
+
});
|
|
630
|
+
const rentalInformationSchema = new mongoose.Schema({
|
|
631
|
+
isRentalDemandInLocality: {
|
|
632
|
+
type: Boolean,
|
|
633
|
+
default: null
|
|
634
|
+
},
|
|
635
|
+
rentalDemandDetails: {
|
|
636
|
+
type: String,
|
|
637
|
+
default: null
|
|
638
|
+
},
|
|
639
|
+
monthlyMarketRentPresentCondition: {
|
|
640
|
+
type: Number,
|
|
641
|
+
default: null
|
|
642
|
+
},
|
|
643
|
+
monthlyMarketRentImprovedCondition: {
|
|
644
|
+
type: Number,
|
|
645
|
+
default: null
|
|
646
|
+
},
|
|
647
|
+
isOtherLettingDemandFactors: {
|
|
648
|
+
type: Boolean,
|
|
649
|
+
default: null
|
|
650
|
+
},
|
|
651
|
+
otherLettingDemandDetails: {
|
|
652
|
+
type: String,
|
|
653
|
+
default: null
|
|
654
|
+
},
|
|
655
|
+
investorOnlyDemand: {
|
|
656
|
+
type: Boolean,
|
|
657
|
+
default: null
|
|
658
|
+
},
|
|
659
|
+
investorOnlyDemandDetails: {
|
|
660
|
+
type: String,
|
|
661
|
+
default: null
|
|
662
|
+
}
|
|
663
|
+
});
|
|
664
|
+
const valuationForFinancePurposeSchema = new mongoose.Schema({
|
|
665
|
+
valuationComparativeOnly: {
|
|
666
|
+
type: String,
|
|
667
|
+
default: null
|
|
668
|
+
},
|
|
669
|
+
isSuitableForFinance: {
|
|
670
|
+
type: Boolean,
|
|
671
|
+
default: null
|
|
672
|
+
},
|
|
673
|
+
financeSuitabilityDetails: {
|
|
674
|
+
type: String,
|
|
675
|
+
default: ""
|
|
676
|
+
},
|
|
677
|
+
marketValuePresentCondition: {
|
|
678
|
+
type: Number,
|
|
679
|
+
default: null
|
|
680
|
+
},
|
|
681
|
+
marketValueAfterRepairs: {
|
|
682
|
+
type: Number,
|
|
683
|
+
default: null
|
|
684
|
+
},
|
|
685
|
+
purchasePriceOrBorrowerEstimate: {
|
|
686
|
+
type: Number,
|
|
687
|
+
default: null
|
|
688
|
+
},
|
|
689
|
+
buildingInsuranceReinstatementCost: {
|
|
690
|
+
type: Number,
|
|
691
|
+
default: null
|
|
692
|
+
},
|
|
693
|
+
isInsurancePremiumLoadingRisk: {
|
|
694
|
+
type: Boolean,
|
|
695
|
+
default: null
|
|
696
|
+
},
|
|
697
|
+
insurancePremiumLoadingDetails: {
|
|
698
|
+
type: String,
|
|
699
|
+
default: null
|
|
700
|
+
}
|
|
701
|
+
});
|
|
702
|
+
const valuerQualificationsSchema = new mongoose.Schema({
|
|
703
|
+
mrics: {
|
|
704
|
+
type: Boolean,
|
|
705
|
+
default: null
|
|
706
|
+
},
|
|
707
|
+
frics: {
|
|
708
|
+
type: Boolean,
|
|
709
|
+
default: null
|
|
710
|
+
},
|
|
711
|
+
assocRics: {
|
|
712
|
+
type: Boolean,
|
|
713
|
+
default: null
|
|
714
|
+
}
|
|
715
|
+
});
|
|
716
|
+
const valuersDeclarationSchema = new mongoose.Schema({
|
|
717
|
+
valuerSignature: {
|
|
718
|
+
type: String,
|
|
719
|
+
default: null
|
|
720
|
+
},
|
|
721
|
+
valuerName: {
|
|
722
|
+
type: String,
|
|
723
|
+
default: null
|
|
724
|
+
},
|
|
725
|
+
onBehalfOf: {
|
|
726
|
+
type: String,
|
|
727
|
+
default: null
|
|
728
|
+
},
|
|
729
|
+
telephone: {
|
|
730
|
+
type: Number,
|
|
731
|
+
default: null
|
|
732
|
+
},
|
|
733
|
+
fax: {
|
|
734
|
+
type: Number,
|
|
735
|
+
default: null
|
|
736
|
+
},
|
|
737
|
+
email: {
|
|
738
|
+
type: String,
|
|
739
|
+
default: null
|
|
740
|
+
},
|
|
741
|
+
valuerQualifications: valuerQualificationsSchema,
|
|
742
|
+
ricsNumber: {
|
|
743
|
+
type: Number,
|
|
744
|
+
default: null
|
|
745
|
+
},
|
|
746
|
+
valuerAddress: {
|
|
747
|
+
type: String,
|
|
748
|
+
default: null
|
|
749
|
+
},
|
|
750
|
+
valuerPostcode: {
|
|
751
|
+
type: String,
|
|
752
|
+
default: null
|
|
753
|
+
},
|
|
754
|
+
reportDate: {
|
|
755
|
+
type: Date,
|
|
756
|
+
default: null
|
|
757
|
+
}
|
|
758
|
+
});
|
|
759
|
+
const valuationReportSchema = new mongoose.Schema({
|
|
760
|
+
applicationId: {
|
|
761
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
762
|
+
ref: "Application",
|
|
763
|
+
required: true
|
|
764
|
+
},
|
|
765
|
+
documentId: {
|
|
766
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
767
|
+
ref: "Document",
|
|
768
|
+
required: true
|
|
769
|
+
},
|
|
770
|
+
applicationType: { type: String, default: "" },
|
|
771
|
+
applicationNumber: { type: String, default: "" },
|
|
772
|
+
applicantName: { type: String, default: "" },
|
|
773
|
+
dateOfInspection: { type: Date, default: null },
|
|
774
|
+
propertyAddress: { type: String, default: "" },
|
|
775
|
+
postCode: { type: String, default: "" },
|
|
776
|
+
propertyType: propertyTypeSchema,
|
|
777
|
+
accommodation: accommodationSchema,
|
|
778
|
+
currentOccupency: currentOccupencySchema, //wrong
|
|
779
|
+
newBuild: newBuildSchema,
|
|
780
|
+
construction: constructionSchema,
|
|
781
|
+
localityAndDemand: localityAndDemandSchema,
|
|
782
|
+
services: servicesSchema,
|
|
783
|
+
conditionsOfProperty: conditionsOfPropertySchema,
|
|
784
|
+
reports: reportsSchema,
|
|
785
|
+
energyEfficiency: energyEfficiencySchema,
|
|
786
|
+
essentialRepairs: essentialRepairsSchema,
|
|
787
|
+
rentalInformation: rentalInformationSchema,
|
|
788
|
+
valuationForFinancePurpose: valuationForFinancePurposeSchema,
|
|
789
|
+
valuationForFinancePurposeHPP: valuationForFinancePurposeSchema,
|
|
790
|
+
generalRemarks: { type: String, default: "" },
|
|
791
|
+
valuersDeclaration: valuersDeclarationSchema,
|
|
792
|
+
extractedText: { type: String, default: "" },
|
|
793
|
+
createdAt: { type: Date, default: Date.now },
|
|
794
|
+
updatedAt: { type: Date, default: Date.now }
|
|
795
|
+
});
|
|
796
|
+
// Apply workflow plugin to the schema
|
|
797
|
+
applyWorkflowPlugin(valuationReportSchema, 'valuationreport');
|
|
798
|
+
const ApplicationValuationReportModel = mongoose.model("ApplicationValuationReport", valuationReportSchema);
|
|
799
|
+
export default ApplicationValuationReportModel;
|