@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 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-credit-report.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-credit-report.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA+IhC,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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xG,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
|
+
const Schema = mongoose.Schema;
|
|
4
|
+
const paymentHistoryItemSchema = new Schema({
|
|
5
|
+
ageInMonths: { type: String, default: "" },
|
|
6
|
+
paymentStatus: { type: String, default: "" },
|
|
7
|
+
}, { _id: false });
|
|
8
|
+
const amountCurrencySchema = new Schema({
|
|
9
|
+
amount: { type: String, default: "" },
|
|
10
|
+
currency: { type: String, default: "" },
|
|
11
|
+
}, { _id: false });
|
|
12
|
+
const addressSpecificData = new Schema({
|
|
13
|
+
type: { type: String, default: "" }, // e.g. 'commsSupplyAccount'
|
|
14
|
+
name: { type: String, default: "" }, // usually from account.name
|
|
15
|
+
dob: { type: String, default: "" },
|
|
16
|
+
startDate: { type: String, default: "" },
|
|
17
|
+
lastUpdate: { type: String, default: "" },
|
|
18
|
+
startBalance: amountCurrencySchema,
|
|
19
|
+
fixedPaymentTerms: amountCurrencySchema,
|
|
20
|
+
currentBalance: amountCurrencySchema,
|
|
21
|
+
delinquentBalance: amountCurrencySchema,
|
|
22
|
+
endDate: { type: String, default: "" },
|
|
23
|
+
nameMatchStatus: { type: String, default: "" },
|
|
24
|
+
paymentFrequency: { type: String, default: "" },
|
|
25
|
+
paymentHistory: [paymentHistoryItemSchema],
|
|
26
|
+
}, { _id: false });
|
|
27
|
+
const aliasNameSchema = new Schema({
|
|
28
|
+
forename: { type: String, default: "" },
|
|
29
|
+
surname: { type: String, default: "" },
|
|
30
|
+
middlename: { type: String, default: "" },
|
|
31
|
+
dob: { type: String, default: "" },
|
|
32
|
+
}, { _id: false });
|
|
33
|
+
const associateSchema = new Schema({
|
|
34
|
+
forename: { type: String, default: "" },
|
|
35
|
+
surname: { type: String, default: "" },
|
|
36
|
+
middlename: { type: String, default: "" },
|
|
37
|
+
dob: { type: String, default: "" },
|
|
38
|
+
}, { _id: false });
|
|
39
|
+
const electoralInformationSchema = new Schema({
|
|
40
|
+
name: { type: String, default: "" },
|
|
41
|
+
nameMatchStatus: { type: String, default: "" },
|
|
42
|
+
seniority: { type: String, default: "" },
|
|
43
|
+
startDate: { type: String, default: "" },
|
|
44
|
+
endDate: { type: String, default: "" },
|
|
45
|
+
}, { _id: false });
|
|
46
|
+
const linkedAddressSchema = new Schema({
|
|
47
|
+
type: { type: String, enum: ["current", "previous"], default: "" }, // deduced from linkType
|
|
48
|
+
address: {
|
|
49
|
+
number: { type: String, default: "" },
|
|
50
|
+
street: { type: String, default: "" },
|
|
51
|
+
postTown: { type: String, default: "" },
|
|
52
|
+
postcode: { type: String, default: "" },
|
|
53
|
+
county: { type: String, default: "" },
|
|
54
|
+
addressId: { type: String, default: "" },
|
|
55
|
+
},
|
|
56
|
+
}, { _id: false });
|
|
57
|
+
const currentAddressData = new Schema({
|
|
58
|
+
address: {
|
|
59
|
+
country: { type: String, default: "" },
|
|
60
|
+
name: { type: String, default: "" },
|
|
61
|
+
number: { type: String, default: "" },
|
|
62
|
+
postcode: { type: String, default: "" },
|
|
63
|
+
postTown: { type: String, default: "" },
|
|
64
|
+
street1: { type: String, default: "" },
|
|
65
|
+
},
|
|
66
|
+
}, { _id: false });
|
|
67
|
+
const previousSearchesSchema = new Schema({
|
|
68
|
+
name: { type: String, default: "" },
|
|
69
|
+
dob: { type: String, default: "" },
|
|
70
|
+
nameMatchStatus: { type: String, default: "" },
|
|
71
|
+
companyType: { type: String, default: "" },
|
|
72
|
+
jointApplicant: { type: Boolean, default: false },
|
|
73
|
+
searchType: { type: String, default: "" },
|
|
74
|
+
searchDate: { type: String, default: "" },
|
|
75
|
+
optIn: { type: Boolean, default: false },
|
|
76
|
+
}, { _id: false });
|
|
77
|
+
const noticeofCorrectionSchema = new Schema({
|
|
78
|
+
type: { type: String, enum: ["active", "historical"], default: "" }, // deduced from linkType
|
|
79
|
+
noc: {
|
|
80
|
+
name: { type: String, default: "" },
|
|
81
|
+
nameMatchStatus: { type: String, default: "" },
|
|
82
|
+
dataNoticeCreated: { type: String, default: "" },
|
|
83
|
+
text: { type: String, default: "" },
|
|
84
|
+
}
|
|
85
|
+
}, { _id: false });
|
|
86
|
+
const applicantCreditReportSchema = new Schema({
|
|
87
|
+
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
88
|
+
referenceNumber: { type: String, default: "" },
|
|
89
|
+
applicantDob: { type: String, default: "" },
|
|
90
|
+
applicantName: { type: String, required: true }, // concat of forename + ' ' + surname
|
|
91
|
+
requestDate: { type: String, default: "" },
|
|
92
|
+
expiredDate: { type: String, default: "" },
|
|
93
|
+
hasExpired: { type: Boolean, default: false },
|
|
94
|
+
// Credit profile fields for credit report
|
|
95
|
+
creditDefaults: { type: String, default: "" },
|
|
96
|
+
countyCourtJudgment: { type: String, default: "" },
|
|
97
|
+
securedArrears: { type: String, default: "" },
|
|
98
|
+
unsecuredArrears: { type: String, default: "" },
|
|
99
|
+
bankruptcyOrIva: { type: String, default: "" },
|
|
100
|
+
notMapped: { type: mongoose.Schema.Types.Mixed, default: null },
|
|
101
|
+
aliasNames: [aliasNameSchema],
|
|
102
|
+
associates: [associateSchema],
|
|
103
|
+
linkedAddressData: [addressSpecificData],
|
|
104
|
+
suppliedAddressData: [addressSpecificData],
|
|
105
|
+
accountInformation: [addressSpecificData],
|
|
106
|
+
accountLinkedInformations: [addressSpecificData],
|
|
107
|
+
electoralInformation: [electoralInformationSchema],
|
|
108
|
+
electoralLinkedInformations: [electoralInformationSchema],
|
|
109
|
+
linkedAddresses: [linkedAddressSchema],
|
|
110
|
+
currentAddresses: [currentAddressData],
|
|
111
|
+
previousSearches: [previousSearchesSchema],
|
|
112
|
+
noticeofCorrection: [noticeofCorrectionSchema],
|
|
113
|
+
isEquifaxData: { type: Boolean, default: false },
|
|
114
|
+
isConfirmed: { type: Boolean, default: false },
|
|
115
|
+
searchDate: { type: Date, default: null },
|
|
116
|
+
searchCriteriaDifferences: { type: String, default: "" },
|
|
117
|
+
});
|
|
118
|
+
// Apply workflow plugin to the schema
|
|
119
|
+
applicantCreditReportSchema.index({ applicantId: 1 });
|
|
120
|
+
applyWorkflowPlugin(applicantCreditReportSchema, 'applicantcreditreport');
|
|
121
|
+
const ApplicantCreditReportModel = mongoose.model("ApplicantCreditReport", applicantCreditReportSchema);
|
|
122
|
+
export default ApplicantCreditReportModel;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
5
|
+
/// <reference types="mongoose/types/callback" />
|
|
6
|
+
/// <reference types="mongoose/types/collection" />
|
|
7
|
+
/// <reference types="mongoose/types/connection" />
|
|
8
|
+
/// <reference types="mongoose/types/cursor" />
|
|
9
|
+
/// <reference types="mongoose/types/document" />
|
|
10
|
+
/// <reference types="mongoose/types/error" />
|
|
11
|
+
/// <reference types="mongoose/types/expressions" />
|
|
12
|
+
/// <reference types="mongoose/types/helpers" />
|
|
13
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
14
|
+
/// <reference types="mongoose/types/indexes" />
|
|
15
|
+
/// <reference types="mongoose/types/models" />
|
|
16
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
17
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
18
|
+
/// <reference types="mongoose/types/populate" />
|
|
19
|
+
/// <reference types="mongoose/types/query" />
|
|
20
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
21
|
+
/// <reference types="mongoose/types/session" />
|
|
22
|
+
/// <reference types="mongoose/types/types" />
|
|
23
|
+
/// <reference types="mongoose/types/utility" />
|
|
24
|
+
/// <reference types="mongoose/types/validation" />
|
|
25
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
26
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
27
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
28
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
|
+
import { Types } from "mongoose";
|
|
30
|
+
import { IBaseType } from "../types/base.types";
|
|
31
|
+
interface IPaymentHistoryItem {
|
|
32
|
+
ageInMonths: string;
|
|
33
|
+
paymentStatus: string;
|
|
34
|
+
}
|
|
35
|
+
interface IAmountCurrency {
|
|
36
|
+
amount: string;
|
|
37
|
+
currency: string;
|
|
38
|
+
}
|
|
39
|
+
interface IAddressSpecificData {
|
|
40
|
+
type: string;
|
|
41
|
+
name: string;
|
|
42
|
+
dob: string;
|
|
43
|
+
startDate: string;
|
|
44
|
+
lastUpdate: string;
|
|
45
|
+
startBalance: IAmountCurrency;
|
|
46
|
+
fixedPaymentTerms: IAmountCurrency;
|
|
47
|
+
currentBalance: IAmountCurrency;
|
|
48
|
+
delinquentBalance: IAmountCurrency;
|
|
49
|
+
endDate: string;
|
|
50
|
+
nameMatchStatus: string;
|
|
51
|
+
paymentFrequency: string;
|
|
52
|
+
paymentHistory: IPaymentHistoryItem[];
|
|
53
|
+
}
|
|
54
|
+
interface IAliasName {
|
|
55
|
+
forename: string;
|
|
56
|
+
surname: string;
|
|
57
|
+
middlename: string;
|
|
58
|
+
dob: string;
|
|
59
|
+
}
|
|
60
|
+
interface IAssociate {
|
|
61
|
+
forename: string;
|
|
62
|
+
surname: string;
|
|
63
|
+
middlename: string;
|
|
64
|
+
dob: string;
|
|
65
|
+
}
|
|
66
|
+
interface IElectoralInformation {
|
|
67
|
+
name: string;
|
|
68
|
+
nameMatchStatus: string;
|
|
69
|
+
seniority: string;
|
|
70
|
+
startDate: string;
|
|
71
|
+
endDate: string;
|
|
72
|
+
}
|
|
73
|
+
interface ILinkedAddress {
|
|
74
|
+
type: "current" | "previous";
|
|
75
|
+
address: {
|
|
76
|
+
number: string;
|
|
77
|
+
street: string;
|
|
78
|
+
postTown: string;
|
|
79
|
+
postcode: string;
|
|
80
|
+
county: string;
|
|
81
|
+
addressId: string;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
interface ICurrentAddress {
|
|
85
|
+
address: {
|
|
86
|
+
country: string;
|
|
87
|
+
name: string;
|
|
88
|
+
number: string;
|
|
89
|
+
postcode: string;
|
|
90
|
+
postTown: string;
|
|
91
|
+
street1: string;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
interface IPreviousSearches {
|
|
95
|
+
name: string;
|
|
96
|
+
dob: string;
|
|
97
|
+
nameMatchStatus: string;
|
|
98
|
+
companyType: string;
|
|
99
|
+
jointApplicant: boolean;
|
|
100
|
+
searchType: string;
|
|
101
|
+
searchDate: string;
|
|
102
|
+
optIn: boolean;
|
|
103
|
+
}
|
|
104
|
+
interface INoticeOfCorrection {
|
|
105
|
+
type: "active" | "historical";
|
|
106
|
+
noc: {
|
|
107
|
+
name: string;
|
|
108
|
+
nameMatchStatus: string;
|
|
109
|
+
dataNoticeCreated: string;
|
|
110
|
+
text: string;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
export default interface IApplicantCreditReport extends IBaseType {
|
|
114
|
+
applicantId: Types.ObjectId;
|
|
115
|
+
referenceNumber: string;
|
|
116
|
+
applicantDob: string;
|
|
117
|
+
applicantName: string;
|
|
118
|
+
requestDate: string;
|
|
119
|
+
expiredDate: string;
|
|
120
|
+
hasExpired: boolean;
|
|
121
|
+
creditDefaults: string;
|
|
122
|
+
countyCourtJudgment: string;
|
|
123
|
+
securedArrears: string;
|
|
124
|
+
unsecuredArrears: string;
|
|
125
|
+
bankruptcyOrIva: string;
|
|
126
|
+
notMapped: any;
|
|
127
|
+
aliasNames: IAliasName[];
|
|
128
|
+
associates: IAssociate[];
|
|
129
|
+
linkedAddressData: IAddressSpecificData[];
|
|
130
|
+
suppliedAddressData: IAddressSpecificData[];
|
|
131
|
+
accountInformation: IAddressSpecificData[];
|
|
132
|
+
accountLinkedInformations: IAddressSpecificData[];
|
|
133
|
+
electoralInformation: IElectoralInformation[];
|
|
134
|
+
electoralLinkedInformations: IElectoralInformation[];
|
|
135
|
+
linkedAddresses: ILinkedAddress[];
|
|
136
|
+
currentAddresses: ICurrentAddress[];
|
|
137
|
+
previousSearches: IPreviousSearches[];
|
|
138
|
+
noticeofCorrection: INoticeOfCorrection[];
|
|
139
|
+
isEquifaxData: boolean;
|
|
140
|
+
isConfirmed: boolean;
|
|
141
|
+
searchDate: Date;
|
|
142
|
+
searchCriteriaDifferences: string;
|
|
143
|
+
}
|
|
144
|
+
export {};
|
|
145
|
+
//# sourceMappingURL=applicant-credit-report.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-credit-report.type.d.ts","sourceRoot":"","sources":["../../applicants/applicant-credit-report.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,UAAU,mBAAmB;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,UAAU,eAAe;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,oBAAoB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,eAAe,CAAC;IAC9B,iBAAiB,EAAE,eAAe,CAAC;IACnC,cAAc,EAAE,eAAe,CAAC;IAChC,iBAAiB,EAAE,eAAe,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,mBAAmB,EAAE,CAAC;C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ACrB,UAAU,EAAE,IAAI,CAAC;IACjB,yBAAyB,EAAE,MAAM,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 applicantDirectDebitSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
3
31
|
timestamps: true;
|
|
@@ -6,7 +34,6 @@ declare const applicantDirectDebitSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
6
34
|
updatedAt: NativeDate;
|
|
7
35
|
} & {
|
|
8
36
|
isConfirmDeclaration: string;
|
|
9
|
-
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
10
37
|
addressLine1?: string | null | undefined;
|
|
11
38
|
addressLine2?: string | null | undefined;
|
|
12
39
|
accountNumber?: string | null | undefined;
|
|
@@ -23,7 +50,6 @@ declare const applicantDirectDebitSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
23
50
|
updatedAt: NativeDate;
|
|
24
51
|
} & {
|
|
25
52
|
isConfirmDeclaration: string;
|
|
26
|
-
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
27
53
|
addressLine1?: string | null | undefined;
|
|
28
54
|
addressLine2?: string | null | undefined;
|
|
29
55
|
accountNumber?: string | null | undefined;
|
|
@@ -35,12 +61,11 @@ declare const applicantDirectDebitSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
35
61
|
sortCode?: string | null | undefined;
|
|
36
62
|
selectedPaymentDay?: string | null | undefined;
|
|
37
63
|
Applicants?: string | null | undefined;
|
|
38
|
-
}
|
|
64
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
39
65
|
createdAt: NativeDate;
|
|
40
66
|
updatedAt: NativeDate;
|
|
41
67
|
} & {
|
|
42
68
|
isConfirmDeclaration: string;
|
|
43
|
-
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
44
69
|
addressLine1?: string | null | undefined;
|
|
45
70
|
addressLine2?: string | null | undefined;
|
|
46
71
|
accountNumber?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-direct-debit.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,QAAA,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"applicant-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-direct-debit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaR,CAAC;AAEzB,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import mongoose from 'mongoose';
|
|
2
2
|
const applicantDirectDebitSchema = new mongoose.Schema({
|
|
3
|
-
applicationId: { type: mongoose.Schema.Types.ObjectId, ref: 'Application' },
|
|
4
3
|
accountNumber: { type: String },
|
|
5
4
|
addressLine1: { type: String },
|
|
6
5
|
addressLine2: { type: String },
|
|
@@ -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
|
import { Pound } from "../value-objects/pound";
|
|
3
31
|
declare const ApplicantEmploymentIncomeModel: mongoose.Model<{
|
|
@@ -25,14 +53,14 @@ declare const ApplicantEmploymentIncomeModel: mongoose.Model<{
|
|
|
25
53
|
} | null | undefined;
|
|
26
54
|
set?: {} | null | undefined;
|
|
27
55
|
validate?: {} | null | undefined;
|
|
56
|
+
index?: {} | null | undefined;
|
|
28
57
|
default?: {} | null | undefined;
|
|
29
58
|
text?: {} | null | undefined;
|
|
30
59
|
unique?: {} | null | undefined;
|
|
31
|
-
index?: {} | null | undefined;
|
|
32
60
|
sparse?: {} | null | undefined;
|
|
61
|
+
cast?: {} | null | undefined;
|
|
33
62
|
required?: {} | null | undefined;
|
|
34
63
|
ref?: {} | null | undefined;
|
|
35
|
-
cast?: {} | null | undefined;
|
|
36
64
|
select?: {} | null | undefined;
|
|
37
65
|
immutable?: {} | null | undefined;
|
|
38
66
|
transform?: {} | null | undefined;
|
|
@@ -46,6 +74,7 @@ declare const ApplicantEmploymentIncomeModel: mongoose.Model<{
|
|
|
46
74
|
instance?: unknown;
|
|
47
75
|
isRequired?: unknown;
|
|
48
76
|
path?: unknown;
|
|
77
|
+
toJSONSchema?: {} | null | undefined;
|
|
49
78
|
validateAll?: {} | null | undefined;
|
|
50
79
|
defaultOptions?: unknown;
|
|
51
80
|
} | null | undefined;
|
|
@@ -75,14 +104,14 @@ declare const ApplicantEmploymentIncomeModel: mongoose.Model<{
|
|
|
75
104
|
} | null | undefined;
|
|
76
105
|
set?: {} | null | undefined;
|
|
77
106
|
validate?: {} | null | undefined;
|
|
107
|
+
index?: {} | null | undefined;
|
|
78
108
|
default?: {} | null | undefined;
|
|
79
109
|
text?: {} | null | undefined;
|
|
80
110
|
unique?: {} | null | undefined;
|
|
81
|
-
index?: {} | null | undefined;
|
|
82
111
|
sparse?: {} | null | undefined;
|
|
112
|
+
cast?: {} | null | undefined;
|
|
83
113
|
required?: {} | null | undefined;
|
|
84
114
|
ref?: {} | null | undefined;
|
|
85
|
-
cast?: {} | null | undefined;
|
|
86
115
|
select?: {} | null | undefined;
|
|
87
116
|
immutable?: {} | null | undefined;
|
|
88
117
|
transform?: {} | null | undefined;
|
|
@@ -96,11 +125,12 @@ declare const ApplicantEmploymentIncomeModel: mongoose.Model<{
|
|
|
96
125
|
instance?: unknown;
|
|
97
126
|
isRequired?: unknown;
|
|
98
127
|
path?: unknown;
|
|
128
|
+
toJSONSchema?: {} | null | undefined;
|
|
99
129
|
validateAll?: {} | null | undefined;
|
|
100
130
|
defaultOptions?: unknown;
|
|
101
131
|
} | null | undefined;
|
|
102
132
|
incomeTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
103
|
-
}> & {
|
|
133
|
+
}, {}> & {
|
|
104
134
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
105
135
|
amount?: {
|
|
106
136
|
validators: mongoose.Types.DocumentArray<{
|
|
@@ -125,14 +155,14 @@ declare const ApplicantEmploymentIncomeModel: mongoose.Model<{
|
|
|
125
155
|
} | null | undefined;
|
|
126
156
|
set?: {} | null | undefined;
|
|
127
157
|
validate?: {} | null | undefined;
|
|
158
|
+
index?: {} | null | undefined;
|
|
128
159
|
default?: {} | null | undefined;
|
|
129
160
|
text?: {} | null | undefined;
|
|
130
161
|
unique?: {} | null | undefined;
|
|
131
|
-
index?: {} | null | undefined;
|
|
132
162
|
sparse?: {} | null | undefined;
|
|
163
|
+
cast?: {} | null | undefined;
|
|
133
164
|
required?: {} | null | undefined;
|
|
134
165
|
ref?: {} | null | undefined;
|
|
135
|
-
cast?: {} | null | undefined;
|
|
136
166
|
select?: {} | null | undefined;
|
|
137
167
|
immutable?: {} | null | undefined;
|
|
138
168
|
transform?: {} | null | undefined;
|
|
@@ -146,6 +176,7 @@ declare const ApplicantEmploymentIncomeModel: mongoose.Model<{
|
|
|
146
176
|
instance?: unknown;
|
|
147
177
|
isRequired?: unknown;
|
|
148
178
|
path?: unknown;
|
|
179
|
+
toJSONSchema?: {} | null | undefined;
|
|
149
180
|
validateAll?: {} | null | undefined;
|
|
150
181
|
defaultOptions?: unknown;
|
|
151
182
|
} | null | undefined;
|
|
@@ -162,7 +193,7 @@ declare const ApplicantEmploymentIncomeModel: mongoose.Model<{
|
|
|
162
193
|
applicantId: mongoose.Types.ObjectId;
|
|
163
194
|
amount: Pound;
|
|
164
195
|
incomeTypeLid: mongoose.Types.ObjectId;
|
|
165
|
-
}
|
|
196
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
166
197
|
applicantId: mongoose.Types.ObjectId;
|
|
167
198
|
amount: Pound;
|
|
168
199
|
incomeTypeLid: mongoose.Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-employment-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-employment-income.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"applicant-employment-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-employment-income.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AAqB5D,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAgF,CAAC;AAErH,eAAe,8BAA8B,CAAC"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
-
import {
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
|
+
import { Pound, formatPound } from "../value-objects/pound";
|
|
3
4
|
const applicantEmploymentIncomeSchema = new mongoose.Schema({
|
|
4
5
|
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
5
6
|
incomeTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
|
|
6
|
-
amount: { type: Pound, required: true },
|
|
7
|
+
amount: { type: Pound, required: true, get: formatPound },
|
|
7
8
|
});
|
|
9
|
+
applicantEmploymentIncomeSchema.virtual('incomeSourceId').get(function () {
|
|
10
|
+
return this.applicantId?.incomeSourceId instanceof mongoose.Types.ObjectId
|
|
11
|
+
? null
|
|
12
|
+
: this.applicantId?.incomeSourceId?.incomeFromEmployment || null;
|
|
13
|
+
});
|
|
14
|
+
// Apply workflow plugin to the schema
|
|
15
|
+
applyWorkflowPlugin(applicantEmploymentIncomeSchema, 'applicantemploymentincome');
|
|
16
|
+
// Add indexes that exist in database but missing from model
|
|
17
|
+
applicantEmploymentIncomeSchema.index({ applicantId: 1 }); // Filter by applicant
|
|
18
|
+
applicantEmploymentIncomeSchema.index({ applicantId: 1, incomeTypeLid: 1 }); // Compound: applicant + income type
|
|
8
19
|
const ApplicantEmploymentIncomeModel = mongoose.model("Applicant_EmploymentIncome", applicantEmploymentIncomeSchema);
|
|
9
20
|
export default ApplicantEmploymentIncomeModel;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
5
|
+
/// <reference types="mongoose/types/callback" />
|
|
6
|
+
/// <reference types="mongoose/types/collection" />
|
|
7
|
+
/// <reference types="mongoose/types/connection" />
|
|
8
|
+
/// <reference types="mongoose/types/cursor" />
|
|
9
|
+
/// <reference types="mongoose/types/document" />
|
|
10
|
+
/// <reference types="mongoose/types/error" />
|
|
11
|
+
/// <reference types="mongoose/types/expressions" />
|
|
12
|
+
/// <reference types="mongoose/types/helpers" />
|
|
13
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
14
|
+
/// <reference types="mongoose/types/indexes" />
|
|
15
|
+
/// <reference types="mongoose/types/models" />
|
|
16
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
17
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
18
|
+
/// <reference types="mongoose/types/populate" />
|
|
19
|
+
/// <reference types="mongoose/types/query" />
|
|
20
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
21
|
+
/// <reference types="mongoose/types/session" />
|
|
22
|
+
/// <reference types="mongoose/types/types" />
|
|
23
|
+
/// <reference types="mongoose/types/utility" />
|
|
24
|
+
/// <reference types="mongoose/types/validation" />
|
|
25
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
26
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
27
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
28
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
|
+
import { Types } from "mongoose";
|
|
30
|
+
import { IBaseType } from "../types/base.types";
|
|
31
|
+
export default interface IApplicantEmploymentIncome extends IBaseType {
|
|
32
|
+
applicantId: Types.ObjectId;
|
|
33
|
+
incomeTypeLid: Types.ObjectId;
|
|
34
|
+
amount: number;
|
|
35
|
+
incomeSourceId?: Types.ObjectId | string | null;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=applicant-employment-income.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-employment-income.type.d.ts","sourceRoot":"","sources":["../../applicants/applicant-employment-income.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,CAAC,OAAO,WAAW,0BAA2B,SAAQ,SAAS;IACjE,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC5B,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IAEf,cAAc,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,MAAM,GAAG,IAAI,CAAC;CACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|