@dynamatix/gb-schemas 2.0.68 → 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 -7
- package/dist/entities/product-catalogues/index.d.ts.map +0 -1
- package/dist/entities/product-catalogues/index.js +0 -5
- 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 -28
- 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/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 -20
- package/entities/product-catalogues/product-catalogue.entity.ts +0 -27
- package/entities/product-catalogues/product-definition.entity.ts +0 -34
- package/entities/product-catalogues/product-variant.entity.ts +0 -19
- package/entities/product-catalogues/product.entity.ts +0 -16
- 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/20250521194549_update_product_definition_schema/migration.sql +0 -14
- 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/properties/property.prisma +0 -30
- package/prisma/properties/security.prisma +0 -81
- package/prisma/schema.prisma +0 -1955
- 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
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
-
import { Pound } from "./../value-objects/pound";
|
|
2
|
+
import { Pound, formatPound } from "./../value-objects/pound";
|
|
3
|
+
import { AccountNumber } from "../value-objects/account-number";
|
|
4
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
5
|
const ApplicantShareholdingSchema = new mongoose.Schema({
|
|
4
6
|
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true, default: null },
|
|
5
7
|
applicantName: { type: String, default: "" },
|
|
@@ -7,13 +9,16 @@ const ApplicantShareholdingSchema = new mongoose.Schema({
|
|
|
7
9
|
shareholding: { type: Number, min: 0, max: 100, default: null }
|
|
8
10
|
}, { _id: false });
|
|
9
11
|
const companySchema = new mongoose.Schema({
|
|
10
|
-
applicationId: {
|
|
12
|
+
applicationId: {
|
|
13
|
+
type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true,
|
|
11
14
|
description: "Unique identifier for the application"
|
|
12
15
|
},
|
|
13
16
|
pageValidFlag: { type: Boolean, default: true, },
|
|
14
17
|
registeredName: { type: String, required: true, maxlength: 70, default: '' }, // form
|
|
15
18
|
businessTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }, // form
|
|
16
|
-
registeredNumber: { type:
|
|
19
|
+
registeredNumber: { type: AccountNumber, max: 99999999, default: 0 }, // form
|
|
20
|
+
isRegisteredNumber: { type: Boolean, default: false, }, // form
|
|
21
|
+
companyHouseLink: { type: String, default: '' }, // form
|
|
17
22
|
taxJurisdictionLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }, // form
|
|
18
23
|
tradingSince: { type: String, default: null }, // form
|
|
19
24
|
natureOfBusiness: { type: String, maxlength: 100, default: '' }, // form
|
|
@@ -24,17 +29,17 @@ const companySchema = new mongoose.Schema({
|
|
|
24
29
|
addressLine3: { type: String, default: '', maxlength: 35 }, // form
|
|
25
30
|
addressCity: { type: String, default: '', maxlength: 30 }, // form
|
|
26
31
|
addressCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }, // form
|
|
27
|
-
applicationTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup",
|
|
32
|
+
applicationTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null }, // form
|
|
28
33
|
applicantShareholding: [ApplicantShareholdingSchema], // form
|
|
29
34
|
yearEnd1: { type: Number, required: true, max: 9999 }, // form
|
|
30
|
-
turnoverYear1: { type: Pound, required: true, default: 0.00 }, // form
|
|
31
|
-
netProfitYear1: { type: Pound, required: true, default: 0.00 }, // form
|
|
35
|
+
turnoverYear1: { type: Pound, required: true, default: 0.00, get: formatPound }, // form
|
|
36
|
+
netProfitYear1: { type: Pound, required: true, default: 0.00, get: formatPound }, // form
|
|
32
37
|
yearEnd2: { type: Number, required: true, max: 9999 }, // form
|
|
33
|
-
turnoverYear2: { type: Pound, required: true, default: 0.00 }, // form
|
|
34
|
-
netProfitYear2: { type: Pound, required: true, default: 0.00 }, // form
|
|
38
|
+
turnoverYear2: { type: Pound, required: true, default: 0.00, get: formatPound }, // form
|
|
39
|
+
netProfitYear2: { type: Pound, required: true, default: 0.00, get: formatPound }, // form
|
|
35
40
|
yearEnd3: { type: Number, required: true, max: 9999 }, // form
|
|
36
|
-
turnoverYear3: { type: Pound, required: true, default: 0.00 }, // form
|
|
37
|
-
netProfitYear3: { type: Pound, required: true, default: 0.00 }, // form
|
|
41
|
+
turnoverYear3: { type: Pound, required: true, default: 0.00, get: formatPound }, // form
|
|
42
|
+
netProfitYear3: { type: Pound, required: true, default: 0.00, get: formatPound }, // form
|
|
38
43
|
// Purchase form - Company section
|
|
39
44
|
companyCreditDefaults: { type: String, required: true, default: '' }, // form
|
|
40
45
|
companyCountyCourtJudgment: { type: String, required: true, default: '' }, // form
|
|
@@ -55,6 +60,13 @@ const companySchema = new mongoose.Schema({
|
|
|
55
60
|
epc: { type: String, default: "" },
|
|
56
61
|
remainingLease: { type: String, default: "" },
|
|
57
62
|
dateOfIncorporation: { type: String, default: null },
|
|
63
|
+
companyHouseInfo: {
|
|
64
|
+
companyName: { type: String, default: "" },
|
|
65
|
+
companyStatus: { type: String, default: "" },
|
|
66
|
+
activePscCount: { type: Number, default: 0 },
|
|
67
|
+
reqStatus: { type: String, default: "" },
|
|
68
|
+
failedMessage: { type: String, default: "" }
|
|
69
|
+
},
|
|
58
70
|
}, {
|
|
59
71
|
timestamps: true,
|
|
60
72
|
toJSON: { virtuals: true, getters: true },
|
|
@@ -116,5 +128,7 @@ const virtualApplicationType = companySchema.virtual('applicationType', {
|
|
|
116
128
|
options: { select: 'label' }
|
|
117
129
|
});
|
|
118
130
|
virtualApplicationType.description = 'Populated lookup value for application type';
|
|
131
|
+
// Apply workflow plugin to the schema
|
|
132
|
+
applyWorkflowPlugin(companySchema, 'applicationcompany');
|
|
119
133
|
const ApplicationCompanyModel = mongoose.model("ApplicationCompany", companySchema);
|
|
120
134
|
export default ApplicationCompanyModel;
|
|
@@ -1,3 +1,31 @@
|
|
|
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" />
|
|
1
29
|
import mongoose from "mongoose";
|
|
2
30
|
declare const creditProfileSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
3
31
|
companyBankruptcyYes: string;
|
|
@@ -17,7 +45,7 @@ declare const creditProfileSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
17
45
|
companyDefaultsInLastYearNo: string;
|
|
18
46
|
companyAnyVoluntaryEnforcedPossessionYes: string;
|
|
19
47
|
companyAnyVoluntaryEnforcedPossessionNo: string;
|
|
20
|
-
}
|
|
48
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
21
49
|
companyBankruptcyYes: string;
|
|
22
50
|
companyBankruptcyNo: string;
|
|
23
51
|
companyCCJInLastThreeYearYes: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-credit-profile.model.d.ts","sourceRoot":"","sources":["../../applications/application-credit-profile.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASvB,CAAC;AACH,eAAe,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"application-credit-profile.model.d.ts","sourceRoot":"","sources":["../../applications/application-credit-profile.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASvB,CAAC;AACH,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,16 +1,44 @@
|
|
|
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" />
|
|
1
29
|
import mongoose from 'mongoose';
|
|
2
30
|
import { SortCode } from '../value-objects/sort-code';
|
|
31
|
+
import { AccountNumber } from "../value-objects/account-number";
|
|
3
32
|
declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
4
33
|
createdAt: NativeDate;
|
|
5
34
|
updatedAt: NativeDate;
|
|
6
35
|
} & {
|
|
7
|
-
applicationId?: unknown;
|
|
8
36
|
createdAt?: {
|
|
9
37
|
toJSON?: {} | null | undefined;
|
|
38
|
+
valueOf: {} | null;
|
|
39
|
+
toString: {} | null;
|
|
40
|
+
toLocaleString: {} | null;
|
|
10
41
|
[Symbol.toPrimitive]?: {} | null | undefined;
|
|
11
|
-
toString?: {} | null | undefined;
|
|
12
|
-
toLocaleString?: {} | null | undefined;
|
|
13
|
-
valueOf?: {} | null | undefined;
|
|
14
42
|
toDateString?: {} | null | undefined;
|
|
15
43
|
toTimeString?: {} | null | undefined;
|
|
16
44
|
toLocaleDateString?: {} | null | undefined;
|
|
@@ -54,10 +82,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
54
82
|
} | null | undefined;
|
|
55
83
|
updatedAt?: {
|
|
56
84
|
toJSON?: {} | null | undefined;
|
|
85
|
+
valueOf: {} | null;
|
|
86
|
+
toString: {} | null;
|
|
87
|
+
toLocaleString: {} | null;
|
|
57
88
|
[Symbol.toPrimitive]?: {} | null | undefined;
|
|
58
|
-
toString?: {} | null | undefined;
|
|
59
|
-
toLocaleString?: {} | null | undefined;
|
|
60
|
-
valueOf?: {} | null | undefined;
|
|
61
89
|
toDateString?: {} | null | undefined;
|
|
62
90
|
toTimeString?: {} | null | undefined;
|
|
63
91
|
toLocaleDateString?: {} | null | undefined;
|
|
@@ -99,10 +127,14 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
99
127
|
toISOString?: {} | null | undefined;
|
|
100
128
|
getVarDate?: {} | null | undefined;
|
|
101
129
|
} | null | undefined;
|
|
130
|
+
applicationId?: unknown;
|
|
102
131
|
applicantId?: unknown;
|
|
132
|
+
pageValidFlag?: unknown;
|
|
103
133
|
addressLine1?: unknown;
|
|
104
134
|
addressLine2?: unknown;
|
|
135
|
+
primaryApplicantId?: unknown;
|
|
105
136
|
accountNumber?: unknown;
|
|
137
|
+
previousSelectedApplicantId?: unknown;
|
|
106
138
|
branch?: unknown;
|
|
107
139
|
city?: unknown;
|
|
108
140
|
contactPostcode?: unknown;
|
|
@@ -133,14 +165,14 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
133
165
|
} | null | undefined;
|
|
134
166
|
set?: {} | null | undefined;
|
|
135
167
|
validate?: {} | null | undefined;
|
|
168
|
+
index?: {} | null | undefined;
|
|
136
169
|
default?: {} | null | undefined;
|
|
137
170
|
text?: {} | null | undefined;
|
|
138
171
|
unique?: {} | null | undefined;
|
|
139
|
-
index?: {} | null | undefined;
|
|
140
172
|
sparse?: {} | null | undefined;
|
|
173
|
+
cast?: {} | null | undefined;
|
|
141
174
|
required?: {} | null | undefined;
|
|
142
175
|
ref?: {} | null | undefined;
|
|
143
|
-
cast?: {} | null | undefined;
|
|
144
176
|
select?: {} | null | undefined;
|
|
145
177
|
immutable?: {} | null | undefined;
|
|
146
178
|
transform?: {} | null | undefined;
|
|
@@ -154,20 +186,25 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
154
186
|
instance?: unknown;
|
|
155
187
|
isRequired?: unknown;
|
|
156
188
|
path?: unknown;
|
|
189
|
+
toJSONSchema?: {} | null | undefined;
|
|
157
190
|
validateAll?: {} | null | undefined;
|
|
158
191
|
defaultOptions?: unknown;
|
|
159
192
|
} | null | undefined;
|
|
193
|
+
accountErrorLid?: mongoose.Types.ObjectId | null | undefined;
|
|
194
|
+
accountStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
195
|
+
bankAccountRequired?: unknown;
|
|
196
|
+
accountErrorMessage?: unknown;
|
|
197
|
+
bankWizardCheck?: unknown;
|
|
160
198
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
161
199
|
createdAt: NativeDate;
|
|
162
200
|
updatedAt: NativeDate;
|
|
163
201
|
} & {
|
|
164
|
-
applicationId?: unknown;
|
|
165
202
|
createdAt?: {
|
|
166
203
|
toJSON?: {} | null | undefined;
|
|
204
|
+
valueOf: {} | null;
|
|
205
|
+
toString: {} | null;
|
|
206
|
+
toLocaleString: {} | null;
|
|
167
207
|
[Symbol.toPrimitive]?: {} | null | undefined;
|
|
168
|
-
toString?: {} | null | undefined;
|
|
169
|
-
toLocaleString?: {} | null | undefined;
|
|
170
|
-
valueOf?: {} | null | undefined;
|
|
171
208
|
toDateString?: {} | null | undefined;
|
|
172
209
|
toTimeString?: {} | null | undefined;
|
|
173
210
|
toLocaleDateString?: {} | null | undefined;
|
|
@@ -211,10 +248,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
211
248
|
} | null | undefined;
|
|
212
249
|
updatedAt?: {
|
|
213
250
|
toJSON?: {} | null | undefined;
|
|
251
|
+
valueOf: {} | null;
|
|
252
|
+
toString: {} | null;
|
|
253
|
+
toLocaleString: {} | null;
|
|
214
254
|
[Symbol.toPrimitive]?: {} | null | undefined;
|
|
215
|
-
toString?: {} | null | undefined;
|
|
216
|
-
toLocaleString?: {} | null | undefined;
|
|
217
|
-
valueOf?: {} | null | undefined;
|
|
218
255
|
toDateString?: {} | null | undefined;
|
|
219
256
|
toTimeString?: {} | null | undefined;
|
|
220
257
|
toLocaleDateString?: {} | null | undefined;
|
|
@@ -256,10 +293,14 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
256
293
|
toISOString?: {} | null | undefined;
|
|
257
294
|
getVarDate?: {} | null | undefined;
|
|
258
295
|
} | null | undefined;
|
|
296
|
+
applicationId?: unknown;
|
|
259
297
|
applicantId?: unknown;
|
|
298
|
+
pageValidFlag?: unknown;
|
|
260
299
|
addressLine1?: unknown;
|
|
261
300
|
addressLine2?: unknown;
|
|
301
|
+
primaryApplicantId?: unknown;
|
|
262
302
|
accountNumber?: unknown;
|
|
303
|
+
previousSelectedApplicantId?: unknown;
|
|
263
304
|
branch?: unknown;
|
|
264
305
|
city?: unknown;
|
|
265
306
|
contactPostcode?: unknown;
|
|
@@ -290,14 +331,14 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
290
331
|
} | null | undefined;
|
|
291
332
|
set?: {} | null | undefined;
|
|
292
333
|
validate?: {} | null | undefined;
|
|
334
|
+
index?: {} | null | undefined;
|
|
293
335
|
default?: {} | null | undefined;
|
|
294
336
|
text?: {} | null | undefined;
|
|
295
337
|
unique?: {} | null | undefined;
|
|
296
|
-
index?: {} | null | undefined;
|
|
297
338
|
sparse?: {} | null | undefined;
|
|
339
|
+
cast?: {} | null | undefined;
|
|
298
340
|
required?: {} | null | undefined;
|
|
299
341
|
ref?: {} | null | undefined;
|
|
300
|
-
cast?: {} | null | undefined;
|
|
301
342
|
select?: {} | null | undefined;
|
|
302
343
|
immutable?: {} | null | undefined;
|
|
303
344
|
transform?: {} | null | undefined;
|
|
@@ -311,20 +352,25 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
311
352
|
instance?: unknown;
|
|
312
353
|
isRequired?: unknown;
|
|
313
354
|
path?: unknown;
|
|
355
|
+
toJSONSchema?: {} | null | undefined;
|
|
314
356
|
validateAll?: {} | null | undefined;
|
|
315
357
|
defaultOptions?: unknown;
|
|
316
358
|
} | null | undefined;
|
|
317
|
-
|
|
359
|
+
accountErrorLid?: mongoose.Types.ObjectId | null | undefined;
|
|
360
|
+
accountStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
361
|
+
bankAccountRequired?: unknown;
|
|
362
|
+
accountErrorMessage?: unknown;
|
|
363
|
+
bankWizardCheck?: unknown;
|
|
364
|
+
}, {}> & {
|
|
318
365
|
createdAt: NativeDate;
|
|
319
366
|
updatedAt: NativeDate;
|
|
320
367
|
} & {
|
|
321
|
-
applicationId?: unknown;
|
|
322
368
|
createdAt?: {
|
|
323
369
|
toJSON?: {} | null | undefined;
|
|
370
|
+
valueOf: {} | null;
|
|
371
|
+
toString: {} | null;
|
|
372
|
+
toLocaleString: {} | null;
|
|
324
373
|
[Symbol.toPrimitive]?: {} | null | undefined;
|
|
325
|
-
toString?: {} | null | undefined;
|
|
326
|
-
toLocaleString?: {} | null | undefined;
|
|
327
|
-
valueOf?: {} | null | undefined;
|
|
328
374
|
toDateString?: {} | null | undefined;
|
|
329
375
|
toTimeString?: {} | null | undefined;
|
|
330
376
|
toLocaleDateString?: {} | null | undefined;
|
|
@@ -368,10 +414,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
368
414
|
} | null | undefined;
|
|
369
415
|
updatedAt?: {
|
|
370
416
|
toJSON?: {} | null | undefined;
|
|
417
|
+
valueOf: {} | null;
|
|
418
|
+
toString: {} | null;
|
|
419
|
+
toLocaleString: {} | null;
|
|
371
420
|
[Symbol.toPrimitive]?: {} | null | undefined;
|
|
372
|
-
toString?: {} | null | undefined;
|
|
373
|
-
toLocaleString?: {} | null | undefined;
|
|
374
|
-
valueOf?: {} | null | undefined;
|
|
375
421
|
toDateString?: {} | null | undefined;
|
|
376
422
|
toTimeString?: {} | null | undefined;
|
|
377
423
|
toLocaleDateString?: {} | null | undefined;
|
|
@@ -413,10 +459,14 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
413
459
|
toISOString?: {} | null | undefined;
|
|
414
460
|
getVarDate?: {} | null | undefined;
|
|
415
461
|
} | null | undefined;
|
|
462
|
+
applicationId?: unknown;
|
|
416
463
|
applicantId?: unknown;
|
|
464
|
+
pageValidFlag?: unknown;
|
|
417
465
|
addressLine1?: unknown;
|
|
418
466
|
addressLine2?: unknown;
|
|
467
|
+
primaryApplicantId?: unknown;
|
|
419
468
|
accountNumber?: unknown;
|
|
469
|
+
previousSelectedApplicantId?: unknown;
|
|
420
470
|
branch?: unknown;
|
|
421
471
|
city?: unknown;
|
|
422
472
|
contactPostcode?: unknown;
|
|
@@ -447,14 +497,14 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
447
497
|
} | null | undefined;
|
|
448
498
|
set?: {} | null | undefined;
|
|
449
499
|
validate?: {} | null | undefined;
|
|
500
|
+
index?: {} | null | undefined;
|
|
450
501
|
default?: {} | null | undefined;
|
|
451
502
|
text?: {} | null | undefined;
|
|
452
503
|
unique?: {} | null | undefined;
|
|
453
|
-
index?: {} | null | undefined;
|
|
454
504
|
sparse?: {} | null | undefined;
|
|
505
|
+
cast?: {} | null | undefined;
|
|
455
506
|
required?: {} | null | undefined;
|
|
456
507
|
ref?: {} | null | undefined;
|
|
457
|
-
cast?: {} | null | undefined;
|
|
458
508
|
select?: {} | null | undefined;
|
|
459
509
|
immutable?: {} | null | undefined;
|
|
460
510
|
transform?: {} | null | undefined;
|
|
@@ -468,9 +518,15 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
468
518
|
instance?: unknown;
|
|
469
519
|
isRequired?: unknown;
|
|
470
520
|
path?: unknown;
|
|
521
|
+
toJSONSchema?: {} | null | undefined;
|
|
471
522
|
validateAll?: {} | null | undefined;
|
|
472
523
|
defaultOptions?: unknown;
|
|
473
524
|
} | null | undefined;
|
|
525
|
+
accountErrorLid?: mongoose.Types.ObjectId | null | undefined;
|
|
526
|
+
accountStatusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
527
|
+
bankAccountRequired?: unknown;
|
|
528
|
+
accountErrorMessage?: unknown;
|
|
529
|
+
bankWizardCheck?: unknown;
|
|
474
530
|
} & {
|
|
475
531
|
_id: mongoose.Types.ObjectId;
|
|
476
532
|
} & {
|
|
@@ -489,53 +545,143 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
489
545
|
createdAt: NativeDate;
|
|
490
546
|
updatedAt: NativeDate;
|
|
491
547
|
} & {
|
|
548
|
+
pageValidFlag: boolean;
|
|
492
549
|
branch: string;
|
|
493
550
|
institution: string;
|
|
494
551
|
nameOfAccountHolder: string;
|
|
495
552
|
sortCode: SortCode;
|
|
553
|
+
accountErrorLid: mongoose.Types.ObjectId;
|
|
554
|
+
accountStatusLid: mongoose.Types.ObjectId;
|
|
555
|
+
bankAccountRequired: boolean;
|
|
556
|
+
accountErrorMessage: string;
|
|
496
557
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
497
558
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
498
559
|
addressLine1?: string | null | undefined;
|
|
499
560
|
addressLine2?: string | null | undefined;
|
|
500
|
-
|
|
561
|
+
primaryApplicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
562
|
+
accountNumber?: AccountNumber | null | undefined;
|
|
563
|
+
previousSelectedApplicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
501
564
|
city?: string | null | undefined;
|
|
502
565
|
contactPostcode?: string | null | undefined;
|
|
503
566
|
isConfirmDeclaration?: boolean | null | undefined;
|
|
504
567
|
selectedPaymentDayLid?: mongoose.Types.ObjectId | null | undefined;
|
|
568
|
+
bankWizardCheck?: {
|
|
569
|
+
overrideReason: string;
|
|
570
|
+
validation?: string | null | undefined;
|
|
571
|
+
nameAndDobMatch?: string | null | undefined;
|
|
572
|
+
addressMatch?: string | null | undefined;
|
|
573
|
+
ddCapable?: string | null | undefined;
|
|
574
|
+
status?: string | null | undefined;
|
|
575
|
+
failedMessage?: string | null | undefined;
|
|
576
|
+
nameAddressOverride?: {
|
|
577
|
+
isInitialSearchCompleted: boolean;
|
|
578
|
+
isNameAddressOverridden: boolean;
|
|
579
|
+
addressLine2?: string | null | undefined;
|
|
580
|
+
city?: string | null | undefined;
|
|
581
|
+
firstName?: string | null | undefined;
|
|
582
|
+
middleName?: string | null | undefined;
|
|
583
|
+
lastName?: string | null | undefined;
|
|
584
|
+
buildingName?: string | null | undefined;
|
|
585
|
+
buildingNumber?: string | null | undefined;
|
|
586
|
+
street?: string | null | undefined;
|
|
587
|
+
county?: string | null | undefined;
|
|
588
|
+
postcode?: string | null | undefined;
|
|
589
|
+
} | null | undefined;
|
|
590
|
+
} | null | undefined;
|
|
505
591
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
506
592
|
createdAt: NativeDate;
|
|
507
593
|
updatedAt: NativeDate;
|
|
508
594
|
} & {
|
|
595
|
+
pageValidFlag: boolean;
|
|
509
596
|
branch: string;
|
|
510
597
|
institution: string;
|
|
511
598
|
nameOfAccountHolder: string;
|
|
512
599
|
sortCode: SortCode;
|
|
600
|
+
accountErrorLid: mongoose.Types.ObjectId;
|
|
601
|
+
accountStatusLid: mongoose.Types.ObjectId;
|
|
602
|
+
bankAccountRequired: boolean;
|
|
603
|
+
accountErrorMessage: string;
|
|
513
604
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
514
605
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
515
606
|
addressLine1?: string | null | undefined;
|
|
516
607
|
addressLine2?: string | null | undefined;
|
|
517
|
-
|
|
608
|
+
primaryApplicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
609
|
+
accountNumber?: AccountNumber | null | undefined;
|
|
610
|
+
previousSelectedApplicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
518
611
|
city?: string | null | undefined;
|
|
519
612
|
contactPostcode?: string | null | undefined;
|
|
520
613
|
isConfirmDeclaration?: boolean | null | undefined;
|
|
521
614
|
selectedPaymentDayLid?: mongoose.Types.ObjectId | null | undefined;
|
|
522
|
-
|
|
615
|
+
bankWizardCheck?: {
|
|
616
|
+
overrideReason: string;
|
|
617
|
+
validation?: string | null | undefined;
|
|
618
|
+
nameAndDobMatch?: string | null | undefined;
|
|
619
|
+
addressMatch?: string | null | undefined;
|
|
620
|
+
ddCapable?: string | null | undefined;
|
|
621
|
+
status?: string | null | undefined;
|
|
622
|
+
failedMessage?: string | null | undefined;
|
|
623
|
+
nameAddressOverride?: {
|
|
624
|
+
isInitialSearchCompleted: boolean;
|
|
625
|
+
isNameAddressOverridden: boolean;
|
|
626
|
+
addressLine2?: string | null | undefined;
|
|
627
|
+
city?: string | null | undefined;
|
|
628
|
+
firstName?: string | null | undefined;
|
|
629
|
+
middleName?: string | null | undefined;
|
|
630
|
+
lastName?: string | null | undefined;
|
|
631
|
+
buildingName?: string | null | undefined;
|
|
632
|
+
buildingNumber?: string | null | undefined;
|
|
633
|
+
street?: string | null | undefined;
|
|
634
|
+
county?: string | null | undefined;
|
|
635
|
+
postcode?: string | null | undefined;
|
|
636
|
+
} | null | undefined;
|
|
637
|
+
} | null | undefined;
|
|
638
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
523
639
|
createdAt: NativeDate;
|
|
524
640
|
updatedAt: NativeDate;
|
|
525
641
|
} & {
|
|
642
|
+
pageValidFlag: boolean;
|
|
526
643
|
branch: string;
|
|
527
644
|
institution: string;
|
|
528
645
|
nameOfAccountHolder: string;
|
|
529
646
|
sortCode: SortCode;
|
|
647
|
+
accountErrorLid: mongoose.Types.ObjectId;
|
|
648
|
+
accountStatusLid: mongoose.Types.ObjectId;
|
|
649
|
+
bankAccountRequired: boolean;
|
|
650
|
+
accountErrorMessage: string;
|
|
530
651
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
531
652
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
532
653
|
addressLine1?: string | null | undefined;
|
|
533
654
|
addressLine2?: string | null | undefined;
|
|
534
|
-
|
|
655
|
+
primaryApplicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
656
|
+
accountNumber?: AccountNumber | null | undefined;
|
|
657
|
+
previousSelectedApplicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
535
658
|
city?: string | null | undefined;
|
|
536
659
|
contactPostcode?: string | null | undefined;
|
|
537
660
|
isConfirmDeclaration?: boolean | null | undefined;
|
|
538
661
|
selectedPaymentDayLid?: mongoose.Types.ObjectId | null | undefined;
|
|
662
|
+
bankWizardCheck?: {
|
|
663
|
+
overrideReason: string;
|
|
664
|
+
validation?: string | null | undefined;
|
|
665
|
+
nameAndDobMatch?: string | null | undefined;
|
|
666
|
+
addressMatch?: string | null | undefined;
|
|
667
|
+
ddCapable?: string | null | undefined;
|
|
668
|
+
status?: string | null | undefined;
|
|
669
|
+
failedMessage?: string | null | undefined;
|
|
670
|
+
nameAddressOverride?: {
|
|
671
|
+
isInitialSearchCompleted: boolean;
|
|
672
|
+
isNameAddressOverridden: boolean;
|
|
673
|
+
addressLine2?: string | null | undefined;
|
|
674
|
+
city?: string | null | undefined;
|
|
675
|
+
firstName?: string | null | undefined;
|
|
676
|
+
middleName?: string | null | undefined;
|
|
677
|
+
lastName?: string | null | undefined;
|
|
678
|
+
buildingName?: string | null | undefined;
|
|
679
|
+
buildingNumber?: string | null | undefined;
|
|
680
|
+
street?: string | null | undefined;
|
|
681
|
+
county?: string | null | undefined;
|
|
682
|
+
postcode?: string | null | undefined;
|
|
683
|
+
} | null | undefined;
|
|
684
|
+
} | null | undefined;
|
|
539
685
|
}> & {
|
|
540
686
|
_id: mongoose.Types.ObjectId;
|
|
541
687
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applications/application-direct-debit.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"application-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applications/application-direct-debit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAkKhE,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0E,CAAC;AAC5G,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import mongoose from 'mongoose';
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
2
3
|
import { SortCode } from '../value-objects/sort-code';
|
|
4
|
+
import { AccountNumber } from "../value-objects/account-number";
|
|
5
|
+
import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
|
|
3
6
|
const applicationDirectDebitSchema = new mongoose.Schema({
|
|
4
7
|
applicationId: {
|
|
5
8
|
type: mongoose.Schema.Types.ObjectId,
|
|
6
9
|
ref: 'Application',
|
|
7
10
|
description: 'Reference to the application this direct debit belongs to',
|
|
8
11
|
},
|
|
12
|
+
pageValidFlag: { type: Boolean, default: false },
|
|
13
|
+
primaryApplicantId: {
|
|
14
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
15
|
+
ref: 'Applicant',
|
|
16
|
+
description: 'Reference to the primary applicant',
|
|
17
|
+
},
|
|
9
18
|
accountNumber: {
|
|
10
|
-
type:
|
|
19
|
+
type: AccountNumber,
|
|
11
20
|
isRequired: true,
|
|
12
21
|
maxLength: 8,
|
|
13
22
|
description: 'Bank account number of the applicant',
|
|
@@ -25,6 +34,11 @@ const applicationDirectDebitSchema = new mongoose.Schema({
|
|
|
25
34
|
ref: 'Applicant',
|
|
26
35
|
description: 'List of applicant IDs associated with this direct debit',
|
|
27
36
|
},
|
|
37
|
+
previousSelectedApplicantId: {
|
|
38
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
39
|
+
ref: 'Applicant',
|
|
40
|
+
description: 'Previously selected applicant before the latest change',
|
|
41
|
+
},
|
|
28
42
|
branch: {
|
|
29
43
|
type: String,
|
|
30
44
|
description: 'Branch name or code of the bank',
|
|
@@ -63,6 +77,50 @@ const applicationDirectDebitSchema = new mongoose.Schema({
|
|
|
63
77
|
description: 'UK bank sort code in XX-XX-XX format',
|
|
64
78
|
required: true,
|
|
65
79
|
},
|
|
80
|
+
accountErrorLid: {
|
|
81
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
82
|
+
ref: 'Lookup',
|
|
83
|
+
default: null,
|
|
84
|
+
description: 'Lookup reference for account error status for algbra',
|
|
85
|
+
},
|
|
86
|
+
accountStatusLid: {
|
|
87
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
88
|
+
ref: 'Lookup',
|
|
89
|
+
default: null,
|
|
90
|
+
description: 'Lookup reference for account status for algbra',
|
|
91
|
+
},
|
|
92
|
+
bankAccountRequired: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false,
|
|
95
|
+
},
|
|
96
|
+
accountErrorMessage: {
|
|
97
|
+
type: String,
|
|
98
|
+
default: "",
|
|
99
|
+
description: 'Error message for the account error for algbra',
|
|
100
|
+
},
|
|
101
|
+
bankWizardCheck: {
|
|
102
|
+
nameAndDobMatch: { type: String },
|
|
103
|
+
addressMatch: { type: String },
|
|
104
|
+
ddCapable: { type: String },
|
|
105
|
+
validation: { type: String },
|
|
106
|
+
status: { type: String },
|
|
107
|
+
failedMessage: { type: String },
|
|
108
|
+
overrideReason: { type: String, default: "" },
|
|
109
|
+
nameAddressOverride: {
|
|
110
|
+
firstName: { type: String },
|
|
111
|
+
middleName: { type: String },
|
|
112
|
+
lastName: { type: String },
|
|
113
|
+
buildingName: { type: String },
|
|
114
|
+
buildingNumber: { type: String },
|
|
115
|
+
street: { type: String },
|
|
116
|
+
addressLine2: { type: String },
|
|
117
|
+
city: { type: String },
|
|
118
|
+
county: { type: String },
|
|
119
|
+
postcode: { type: String },
|
|
120
|
+
isInitialSearchCompleted: { type: Boolean, default: false },
|
|
121
|
+
isNameAddressOverridden: { type: Boolean, default: false }
|
|
122
|
+
}
|
|
123
|
+
},
|
|
66
124
|
}, {
|
|
67
125
|
timestamps: true,
|
|
68
126
|
toJSON: { virtuals: true, getters: true },
|
|
@@ -88,5 +146,10 @@ const virtualApplicants = applicationDirectDebitSchema.virtual('applicants', {
|
|
|
88
146
|
}
|
|
89
147
|
});
|
|
90
148
|
virtualApplicants.description = 'Full Name of the applicant';
|
|
149
|
+
// Index for applicationId queries
|
|
150
|
+
applicationDirectDebitSchema.index({ applicationId: 1 });
|
|
151
|
+
applyAuditMiddleware(applicationDirectDebitSchema, "application_directdebit");
|
|
152
|
+
// Apply workflow plugin to the schema
|
|
153
|
+
applyWorkflowPlugin(applicationDirectDebitSchema, 'application_directdebit');
|
|
91
154
|
const ApplicationDirectDebitModel = mongoose.model("Application_DirectDebit", applicationDirectDebitSchema);
|
|
92
155
|
export default ApplicationDirectDebitModel;
|