@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,8 +1,57 @@
|
|
|
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 ProductModel: mongoose.Model<{
|
|
31
|
+
createdAt: NativeDate;
|
|
32
|
+
updatedAt: NativeDate;
|
|
33
|
+
} & {
|
|
3
34
|
selectedProduct: string;
|
|
35
|
+
networkClubSubmission: boolean;
|
|
36
|
+
introducerSubmission: boolean;
|
|
37
|
+
reasons: mongoose.Types.DocumentArray<{
|
|
38
|
+
description: string;
|
|
39
|
+
isOverridden: boolean;
|
|
40
|
+
ruleType: string;
|
|
41
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
42
|
+
description: string;
|
|
43
|
+
isOverridden: boolean;
|
|
44
|
+
ruleType: string;
|
|
45
|
+
}> & {
|
|
46
|
+
description: string;
|
|
47
|
+
isOverridden: boolean;
|
|
48
|
+
ruleType: string;
|
|
49
|
+
}>;
|
|
4
50
|
applicationId?: unknown;
|
|
5
51
|
pageValidFlag?: unknown;
|
|
52
|
+
fcr?: unknown;
|
|
53
|
+
topUpAmount?: unknown;
|
|
54
|
+
topSlicing?: unknown;
|
|
6
55
|
repaymentTypeLid?: unknown;
|
|
7
56
|
lendingTypeLid?: unknown;
|
|
8
57
|
numberOfYearsToRepay?: unknown;
|
|
@@ -10,17 +59,39 @@ declare const ProductModel: mongoose.Model<{
|
|
|
10
59
|
fixedAmount?: unknown;
|
|
11
60
|
isFinanceRecommendedToApplicantLid?: unknown;
|
|
12
61
|
procFeeRateLid?: unknown;
|
|
13
|
-
networkClubSubmission?: unknown;
|
|
14
62
|
clubNetworkNameLid?: unknown;
|
|
15
|
-
introducerSubmission?: unknown;
|
|
16
63
|
introducer?: unknown;
|
|
17
64
|
bdm?: unknown;
|
|
65
|
+
fscr?: unknown;
|
|
18
66
|
tempAppFee?: unknown;
|
|
19
67
|
productFeePaymentTypeLid?: unknown;
|
|
68
|
+
overriddenRulesApproverLid?: unknown;
|
|
69
|
+
overrideRuleComments?: unknown;
|
|
20
70
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
71
|
+
createdAt: NativeDate;
|
|
72
|
+
updatedAt: NativeDate;
|
|
73
|
+
} & {
|
|
21
74
|
selectedProduct: string;
|
|
75
|
+
networkClubSubmission: boolean;
|
|
76
|
+
introducerSubmission: boolean;
|
|
77
|
+
reasons: mongoose.Types.DocumentArray<{
|
|
78
|
+
description: string;
|
|
79
|
+
isOverridden: boolean;
|
|
80
|
+
ruleType: string;
|
|
81
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
82
|
+
description: string;
|
|
83
|
+
isOverridden: boolean;
|
|
84
|
+
ruleType: string;
|
|
85
|
+
}> & {
|
|
86
|
+
description: string;
|
|
87
|
+
isOverridden: boolean;
|
|
88
|
+
ruleType: string;
|
|
89
|
+
}>;
|
|
22
90
|
applicationId?: unknown;
|
|
23
91
|
pageValidFlag?: unknown;
|
|
92
|
+
fcr?: unknown;
|
|
93
|
+
topUpAmount?: unknown;
|
|
94
|
+
topSlicing?: unknown;
|
|
24
95
|
repaymentTypeLid?: unknown;
|
|
25
96
|
lendingTypeLid?: unknown;
|
|
26
97
|
numberOfYearsToRepay?: unknown;
|
|
@@ -28,17 +99,39 @@ declare const ProductModel: mongoose.Model<{
|
|
|
28
99
|
fixedAmount?: unknown;
|
|
29
100
|
isFinanceRecommendedToApplicantLid?: unknown;
|
|
30
101
|
procFeeRateLid?: unknown;
|
|
31
|
-
networkClubSubmission?: unknown;
|
|
32
102
|
clubNetworkNameLid?: unknown;
|
|
33
|
-
introducerSubmission?: unknown;
|
|
34
103
|
introducer?: unknown;
|
|
35
104
|
bdm?: unknown;
|
|
105
|
+
fscr?: unknown;
|
|
36
106
|
tempAppFee?: unknown;
|
|
37
107
|
productFeePaymentTypeLid?: unknown;
|
|
38
|
-
|
|
108
|
+
overriddenRulesApproverLid?: unknown;
|
|
109
|
+
overrideRuleComments?: unknown;
|
|
110
|
+
}, {}> & {
|
|
111
|
+
createdAt: NativeDate;
|
|
112
|
+
updatedAt: NativeDate;
|
|
113
|
+
} & {
|
|
39
114
|
selectedProduct: string;
|
|
115
|
+
networkClubSubmission: boolean;
|
|
116
|
+
introducerSubmission: boolean;
|
|
117
|
+
reasons: mongoose.Types.DocumentArray<{
|
|
118
|
+
description: string;
|
|
119
|
+
isOverridden: boolean;
|
|
120
|
+
ruleType: string;
|
|
121
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
122
|
+
description: string;
|
|
123
|
+
isOverridden: boolean;
|
|
124
|
+
ruleType: string;
|
|
125
|
+
}> & {
|
|
126
|
+
description: string;
|
|
127
|
+
isOverridden: boolean;
|
|
128
|
+
ruleType: string;
|
|
129
|
+
}>;
|
|
40
130
|
applicationId?: unknown;
|
|
41
131
|
pageValidFlag?: unknown;
|
|
132
|
+
fcr?: unknown;
|
|
133
|
+
topUpAmount?: unknown;
|
|
134
|
+
topSlicing?: unknown;
|
|
42
135
|
repaymentTypeLid?: unknown;
|
|
43
136
|
lendingTypeLid?: unknown;
|
|
44
137
|
numberOfYearsToRepay?: unknown;
|
|
@@ -46,21 +139,53 @@ declare const ProductModel: mongoose.Model<{
|
|
|
46
139
|
fixedAmount?: unknown;
|
|
47
140
|
isFinanceRecommendedToApplicantLid?: unknown;
|
|
48
141
|
procFeeRateLid?: unknown;
|
|
49
|
-
networkClubSubmission?: unknown;
|
|
50
142
|
clubNetworkNameLid?: unknown;
|
|
51
|
-
introducerSubmission?: unknown;
|
|
52
143
|
introducer?: unknown;
|
|
53
144
|
bdm?: unknown;
|
|
145
|
+
fscr?: unknown;
|
|
54
146
|
tempAppFee?: unknown;
|
|
55
147
|
productFeePaymentTypeLid?: unknown;
|
|
148
|
+
overriddenRulesApproverLid?: unknown;
|
|
149
|
+
overrideRuleComments?: unknown;
|
|
56
150
|
} & {
|
|
57
151
|
_id: mongoose.Types.ObjectId;
|
|
58
152
|
} & {
|
|
59
153
|
__v: number;
|
|
60
|
-
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {},
|
|
154
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
155
|
+
timestamps: true;
|
|
156
|
+
toJSON: {
|
|
157
|
+
virtuals: true;
|
|
158
|
+
getters: true;
|
|
159
|
+
};
|
|
160
|
+
toObject: {
|
|
161
|
+
virtuals: true;
|
|
162
|
+
getters: true;
|
|
163
|
+
};
|
|
164
|
+
}, {
|
|
165
|
+
createdAt: NativeDate;
|
|
166
|
+
updatedAt: NativeDate;
|
|
167
|
+
} & {
|
|
61
168
|
selectedProduct: string;
|
|
169
|
+
networkClubSubmission: boolean;
|
|
170
|
+
introducerSubmission: boolean;
|
|
171
|
+
reasons: mongoose.Types.DocumentArray<{
|
|
172
|
+
description: string;
|
|
173
|
+
isOverridden: boolean;
|
|
174
|
+
ruleType: string;
|
|
175
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
176
|
+
description: string;
|
|
177
|
+
isOverridden: boolean;
|
|
178
|
+
ruleType: string;
|
|
179
|
+
}> & {
|
|
180
|
+
description: string;
|
|
181
|
+
isOverridden: boolean;
|
|
182
|
+
ruleType: string;
|
|
183
|
+
}>;
|
|
62
184
|
applicationId?: unknown;
|
|
63
185
|
pageValidFlag?: unknown;
|
|
186
|
+
fcr?: unknown;
|
|
187
|
+
topUpAmount?: unknown;
|
|
188
|
+
topSlicing?: unknown;
|
|
64
189
|
repaymentTypeLid?: unknown;
|
|
65
190
|
lendingTypeLid?: unknown;
|
|
66
191
|
numberOfYearsToRepay?: unknown;
|
|
@@ -68,17 +193,39 @@ declare const ProductModel: mongoose.Model<{
|
|
|
68
193
|
fixedAmount?: unknown;
|
|
69
194
|
isFinanceRecommendedToApplicantLid?: unknown;
|
|
70
195
|
procFeeRateLid?: unknown;
|
|
71
|
-
networkClubSubmission?: unknown;
|
|
72
196
|
clubNetworkNameLid?: unknown;
|
|
73
|
-
introducerSubmission?: unknown;
|
|
74
197
|
introducer?: unknown;
|
|
75
198
|
bdm?: unknown;
|
|
199
|
+
fscr?: unknown;
|
|
76
200
|
tempAppFee?: unknown;
|
|
77
201
|
productFeePaymentTypeLid?: unknown;
|
|
202
|
+
overriddenRulesApproverLid?: unknown;
|
|
203
|
+
overrideRuleComments?: unknown;
|
|
78
204
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
205
|
+
createdAt: NativeDate;
|
|
206
|
+
updatedAt: NativeDate;
|
|
207
|
+
} & {
|
|
79
208
|
selectedProduct: string;
|
|
209
|
+
networkClubSubmission: boolean;
|
|
210
|
+
introducerSubmission: boolean;
|
|
211
|
+
reasons: mongoose.Types.DocumentArray<{
|
|
212
|
+
description: string;
|
|
213
|
+
isOverridden: boolean;
|
|
214
|
+
ruleType: string;
|
|
215
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
216
|
+
description: string;
|
|
217
|
+
isOverridden: boolean;
|
|
218
|
+
ruleType: string;
|
|
219
|
+
}> & {
|
|
220
|
+
description: string;
|
|
221
|
+
isOverridden: boolean;
|
|
222
|
+
ruleType: string;
|
|
223
|
+
}>;
|
|
80
224
|
applicationId?: unknown;
|
|
81
225
|
pageValidFlag?: unknown;
|
|
226
|
+
fcr?: unknown;
|
|
227
|
+
topUpAmount?: unknown;
|
|
228
|
+
topSlicing?: unknown;
|
|
82
229
|
repaymentTypeLid?: unknown;
|
|
83
230
|
lendingTypeLid?: unknown;
|
|
84
231
|
numberOfYearsToRepay?: unknown;
|
|
@@ -86,17 +233,39 @@ declare const ProductModel: mongoose.Model<{
|
|
|
86
233
|
fixedAmount?: unknown;
|
|
87
234
|
isFinanceRecommendedToApplicantLid?: unknown;
|
|
88
235
|
procFeeRateLid?: unknown;
|
|
89
|
-
networkClubSubmission?: unknown;
|
|
90
236
|
clubNetworkNameLid?: unknown;
|
|
91
|
-
introducerSubmission?: unknown;
|
|
92
237
|
introducer?: unknown;
|
|
93
238
|
bdm?: unknown;
|
|
239
|
+
fscr?: unknown;
|
|
94
240
|
tempAppFee?: unknown;
|
|
95
241
|
productFeePaymentTypeLid?: unknown;
|
|
96
|
-
|
|
242
|
+
overriddenRulesApproverLid?: unknown;
|
|
243
|
+
overrideRuleComments?: unknown;
|
|
244
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
245
|
+
createdAt: NativeDate;
|
|
246
|
+
updatedAt: NativeDate;
|
|
247
|
+
} & {
|
|
97
248
|
selectedProduct: string;
|
|
249
|
+
networkClubSubmission: boolean;
|
|
250
|
+
introducerSubmission: boolean;
|
|
251
|
+
reasons: mongoose.Types.DocumentArray<{
|
|
252
|
+
description: string;
|
|
253
|
+
isOverridden: boolean;
|
|
254
|
+
ruleType: string;
|
|
255
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
256
|
+
description: string;
|
|
257
|
+
isOverridden: boolean;
|
|
258
|
+
ruleType: string;
|
|
259
|
+
}> & {
|
|
260
|
+
description: string;
|
|
261
|
+
isOverridden: boolean;
|
|
262
|
+
ruleType: string;
|
|
263
|
+
}>;
|
|
98
264
|
applicationId?: unknown;
|
|
99
265
|
pageValidFlag?: unknown;
|
|
266
|
+
fcr?: unknown;
|
|
267
|
+
topUpAmount?: unknown;
|
|
268
|
+
topSlicing?: unknown;
|
|
100
269
|
repaymentTypeLid?: unknown;
|
|
101
270
|
lendingTypeLid?: unknown;
|
|
102
271
|
numberOfYearsToRepay?: unknown;
|
|
@@ -104,13 +273,14 @@ declare const ProductModel: mongoose.Model<{
|
|
|
104
273
|
fixedAmount?: unknown;
|
|
105
274
|
isFinanceRecommendedToApplicantLid?: unknown;
|
|
106
275
|
procFeeRateLid?: unknown;
|
|
107
|
-
networkClubSubmission?: unknown;
|
|
108
276
|
clubNetworkNameLid?: unknown;
|
|
109
|
-
introducerSubmission?: unknown;
|
|
110
277
|
introducer?: unknown;
|
|
111
278
|
bdm?: unknown;
|
|
279
|
+
fscr?: unknown;
|
|
112
280
|
tempAppFee?: unknown;
|
|
113
281
|
productFeePaymentTypeLid?: unknown;
|
|
282
|
+
overriddenRulesApproverLid?: unknown;
|
|
283
|
+
overrideRuleComments?: unknown;
|
|
114
284
|
}> & {
|
|
115
285
|
_id: mongoose.Types.ObjectId;
|
|
116
286
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-product.model.d.ts","sourceRoot":"","sources":["../../applications/application-product.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"application-product.model.d.ts","sourceRoot":"","sources":["../../applications/application-product.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAoGhC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA2C,CAAC;AAC9D,eAAe,YAAY,CAAC"}
|
|
@@ -1,25 +1,43 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
-
import {
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
|
+
import { Pound, formatPound } from "../value-objects/pound";
|
|
4
|
+
const reasonSchema = new mongoose.Schema({
|
|
5
|
+
description: { type: String, required: true },
|
|
6
|
+
isOverridden: { type: Boolean, required: true },
|
|
7
|
+
ruleType: { type: String, required: true }
|
|
8
|
+
});
|
|
3
9
|
const productSchema = new mongoose.Schema({
|
|
4
|
-
applicationId: {
|
|
10
|
+
applicationId: {
|
|
11
|
+
type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true,
|
|
5
12
|
description: "Unique identifier for the application"
|
|
6
13
|
},
|
|
7
14
|
selectedProduct: { type: String, default: "" },
|
|
8
15
|
lendingTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
9
16
|
pageValidFlag: { type: Boolean, get: (value) => (value ? "Yes" : "No") },
|
|
10
|
-
repaymentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
17
|
+
repaymentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
11
18
|
numberOfYearsToRepay: { type: Number, default: 0 },
|
|
12
19
|
repaymentVehicle: { type: String, required: true, default: '', maxLength: 100 },
|
|
13
|
-
fixedAmount: { type: Pound, default: 0.00, required: false },
|
|
14
|
-
isFinanceRecommendedToApplicantLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
15
|
-
procFeeRateLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
16
|
-
networkClubSubmission: { type: Boolean, required: true
|
|
17
|
-
clubNetworkNameLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
18
|
-
introducerSubmission: { type: Boolean, required: true
|
|
20
|
+
fixedAmount: { type: Pound, default: 0.00, required: false, get: formatPound },
|
|
21
|
+
isFinanceRecommendedToApplicantLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
22
|
+
procFeeRateLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
23
|
+
networkClubSubmission: { type: Boolean, required: true },
|
|
24
|
+
clubNetworkNameLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
25
|
+
introducerSubmission: { type: Boolean, required: true },
|
|
19
26
|
introducer: { type: String, default: '' },
|
|
20
27
|
bdm: { type: String, required: true, default: '' },
|
|
21
|
-
|
|
22
|
-
|
|
28
|
+
topSlicing: { type: Boolean, default: false },
|
|
29
|
+
fcr: { type: Pound, default: 0.00, required: false, get: formatPound },
|
|
30
|
+
fscr: { type: String, default: '' },
|
|
31
|
+
topUpAmount: { type: Pound, default: 0.00, required: false, get: formatPound },
|
|
32
|
+
tempAppFee: { type: Pound, default: 0.00, required: true, get: formatPound },
|
|
33
|
+
productFeePaymentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
34
|
+
overriddenRulesApproverLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
35
|
+
overrideRuleComments: { type: String, default: '' },
|
|
36
|
+
reasons: [reasonSchema]
|
|
37
|
+
}, {
|
|
38
|
+
timestamps: true,
|
|
39
|
+
toJSON: { virtuals: true, getters: true },
|
|
40
|
+
toObject: { virtuals: true, getters: true }
|
|
23
41
|
});
|
|
24
42
|
// virtual property 'lendingType'
|
|
25
43
|
productSchema.virtual('lendingType').get(function () {
|
|
@@ -63,5 +81,10 @@ productSchema.virtual('productFeePaymentType').get(function () {
|
|
|
63
81
|
? null
|
|
64
82
|
: productFeePaymentType?.name || null;
|
|
65
83
|
});
|
|
84
|
+
// Apply workflow plugin to the schema
|
|
85
|
+
applyWorkflowPlugin(productSchema, 'product');
|
|
86
|
+
// Indexes for query optimization
|
|
87
|
+
productSchema.index({ applicationId: 1 }); // Index for updateByApplicationId and getByApplicationIdWithRepaymentType queries
|
|
88
|
+
productSchema.index({ repaymentTypeLid: 1 }); // Index for populate operations on repaymentTypeLid
|
|
66
89
|
const ProductModel = mongoose.model("Product", productSchema);
|
|
67
90
|
export default ProductModel;
|
|
@@ -0,0 +1,58 @@
|
|
|
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 IApplicationProduct extends IBaseType {
|
|
32
|
+
applicationId: Types.ObjectId;
|
|
33
|
+
selectedProduct?: string;
|
|
34
|
+
lendingTypeLid?: Types.ObjectId | null;
|
|
35
|
+
pageValidFlag?: boolean;
|
|
36
|
+
repaymentTypeLid?: Types.ObjectId | null;
|
|
37
|
+
numberOfYearsToRepay?: number;
|
|
38
|
+
repaymentVehicle: string;
|
|
39
|
+
fixedAmount?: number;
|
|
40
|
+
isFinanceRecommendedToApplicantLid?: Types.ObjectId | null;
|
|
41
|
+
procFeeRateLid?: Types.ObjectId | null;
|
|
42
|
+
networkClubSubmission: boolean;
|
|
43
|
+
clubNetworkNameLid?: Types.ObjectId | null;
|
|
44
|
+
introducerSubmission: boolean;
|
|
45
|
+
introducer?: string;
|
|
46
|
+
bdm: string;
|
|
47
|
+
tempAppFee: number;
|
|
48
|
+
productFeePaymentTypeLid?: Types.ObjectId | null;
|
|
49
|
+
overriddenRulesApproverLid?: Types.ObjectId | null;
|
|
50
|
+
overrideRuleComments?: string;
|
|
51
|
+
lendingType?: string | null;
|
|
52
|
+
repaymentType?: string | null;
|
|
53
|
+
isFinanceRecommendedToApplicant?: string | null;
|
|
54
|
+
procFeeRate?: string | null;
|
|
55
|
+
clubNetworkName?: string | null;
|
|
56
|
+
productFeePaymentType?: string | null;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=application-product.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-product.type.d.ts","sourceRoot":"","sources":["../../applications/application-product.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,mBAAoB,SAAQ,SAAS;IAC1D,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IAC3D,cAAc,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IAC3C,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACjD,0BAA0B,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACnD,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAG9B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,+BAA+B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,33 @@
|
|
|
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 ApplicationProductFeaturesModel: mongoose.Model<{
|
|
3
|
-
name: string;
|
|
4
31
|
applicationId: mongoose.Types.ObjectId;
|
|
5
32
|
repaymentType: string;
|
|
6
33
|
ltv: string;
|
|
@@ -13,6 +40,7 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
13
40
|
variableRepayment: string;
|
|
14
41
|
reversionRateWithoutBaseRate: string;
|
|
15
42
|
totalReversionRate: string;
|
|
43
|
+
reversionRate: string;
|
|
16
44
|
initialRate: string;
|
|
17
45
|
fixedTerm: string;
|
|
18
46
|
fixedTermEndDate: string;
|
|
@@ -73,6 +101,7 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
73
101
|
icr: string;
|
|
74
102
|
ufssProductCode: string;
|
|
75
103
|
ufssInterestRateCode: string;
|
|
104
|
+
name?: string | null | undefined;
|
|
76
105
|
calculations?: {
|
|
77
106
|
ltv: string;
|
|
78
107
|
rentalCoverageRatioRate: string;
|
|
@@ -121,7 +150,6 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
121
150
|
} | null | undefined;
|
|
122
151
|
} | null | undefined;
|
|
123
152
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
124
|
-
name: string;
|
|
125
153
|
applicationId: mongoose.Types.ObjectId;
|
|
126
154
|
repaymentType: string;
|
|
127
155
|
ltv: string;
|
|
@@ -134,6 +162,7 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
134
162
|
variableRepayment: string;
|
|
135
163
|
reversionRateWithoutBaseRate: string;
|
|
136
164
|
totalReversionRate: string;
|
|
165
|
+
reversionRate: string;
|
|
137
166
|
initialRate: string;
|
|
138
167
|
fixedTerm: string;
|
|
139
168
|
fixedTermEndDate: string;
|
|
@@ -194,6 +223,7 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
194
223
|
icr: string;
|
|
195
224
|
ufssProductCode: string;
|
|
196
225
|
ufssInterestRateCode: string;
|
|
226
|
+
name?: string | null | undefined;
|
|
197
227
|
calculations?: {
|
|
198
228
|
ltv: string;
|
|
199
229
|
rentalCoverageRatioRate: string;
|
|
@@ -241,8 +271,7 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
241
271
|
outstandingCapital: string;
|
|
242
272
|
} | null | undefined;
|
|
243
273
|
} | null | undefined;
|
|
244
|
-
}> & {
|
|
245
|
-
name: string;
|
|
274
|
+
}, {}> & {
|
|
246
275
|
applicationId: mongoose.Types.ObjectId;
|
|
247
276
|
repaymentType: string;
|
|
248
277
|
ltv: string;
|
|
@@ -255,6 +284,7 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
255
284
|
variableRepayment: string;
|
|
256
285
|
reversionRateWithoutBaseRate: string;
|
|
257
286
|
totalReversionRate: string;
|
|
287
|
+
reversionRate: string;
|
|
258
288
|
initialRate: string;
|
|
259
289
|
fixedTerm: string;
|
|
260
290
|
fixedTermEndDate: string;
|
|
@@ -315,6 +345,7 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
315
345
|
icr: string;
|
|
316
346
|
ufssProductCode: string;
|
|
317
347
|
ufssInterestRateCode: string;
|
|
348
|
+
name?: string | null | undefined;
|
|
318
349
|
calculations?: {
|
|
319
350
|
ltv: string;
|
|
320
351
|
rentalCoverageRatioRate: string;
|
|
@@ -367,7 +398,6 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
367
398
|
} & {
|
|
368
399
|
__v: number;
|
|
369
400
|
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
370
|
-
name: string;
|
|
371
401
|
applicationId: mongoose.Types.ObjectId;
|
|
372
402
|
repaymentType: string;
|
|
373
403
|
ltv: string;
|
|
@@ -380,6 +410,7 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
380
410
|
variableRepayment: string;
|
|
381
411
|
reversionRateWithoutBaseRate: string;
|
|
382
412
|
totalReversionRate: string;
|
|
413
|
+
reversionRate: string;
|
|
383
414
|
initialRate: string;
|
|
384
415
|
fixedTerm: string;
|
|
385
416
|
fixedTermEndDate: string;
|
|
@@ -440,6 +471,7 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
440
471
|
icr: string;
|
|
441
472
|
ufssProductCode: string;
|
|
442
473
|
ufssInterestRateCode: string;
|
|
474
|
+
name?: string | null | undefined;
|
|
443
475
|
calculations?: {
|
|
444
476
|
ltv: string;
|
|
445
477
|
rentalCoverageRatioRate: string;
|
|
@@ -488,7 +520,6 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
488
520
|
} | null | undefined;
|
|
489
521
|
} | null | undefined;
|
|
490
522
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
491
|
-
name: string;
|
|
492
523
|
applicationId: mongoose.Types.ObjectId;
|
|
493
524
|
repaymentType: string;
|
|
494
525
|
ltv: string;
|
|
@@ -501,6 +532,7 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
501
532
|
variableRepayment: string;
|
|
502
533
|
reversionRateWithoutBaseRate: string;
|
|
503
534
|
totalReversionRate: string;
|
|
535
|
+
reversionRate: string;
|
|
504
536
|
initialRate: string;
|
|
505
537
|
fixedTerm: string;
|
|
506
538
|
fixedTermEndDate: string;
|
|
@@ -561,6 +593,7 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
561
593
|
icr: string;
|
|
562
594
|
ufssProductCode: string;
|
|
563
595
|
ufssInterestRateCode: string;
|
|
596
|
+
name?: string | null | undefined;
|
|
564
597
|
calculations?: {
|
|
565
598
|
ltv: string;
|
|
566
599
|
rentalCoverageRatioRate: string;
|
|
@@ -608,8 +641,7 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
608
641
|
outstandingCapital: string;
|
|
609
642
|
} | null | undefined;
|
|
610
643
|
} | null | undefined;
|
|
611
|
-
}
|
|
612
|
-
name: string;
|
|
644
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
613
645
|
applicationId: mongoose.Types.ObjectId;
|
|
614
646
|
repaymentType: string;
|
|
615
647
|
ltv: string;
|
|
@@ -622,6 +654,7 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
622
654
|
variableRepayment: string;
|
|
623
655
|
reversionRateWithoutBaseRate: string;
|
|
624
656
|
totalReversionRate: string;
|
|
657
|
+
reversionRate: string;
|
|
625
658
|
initialRate: string;
|
|
626
659
|
fixedTerm: string;
|
|
627
660
|
fixedTermEndDate: string;
|
|
@@ -682,6 +715,7 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
|
|
|
682
715
|
icr: string;
|
|
683
716
|
ufssProductCode: string;
|
|
684
717
|
ufssInterestRateCode: string;
|
|
718
|
+
name?: string | null | undefined;
|
|
685
719
|
calculations?: {
|
|
686
720
|
ltv: string;
|
|
687
721
|
rentalCoverageRatioRate: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-productfeatures.model.d.ts","sourceRoot":"","sources":["../../applications/application-productfeatures.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"application-productfeatures.model.d.ts","sourceRoot":"","sources":["../../applications/application-productfeatures.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA6GhC,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAsE,CAAC;AAC5G,eAAe,+BAA+B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
2
3
|
const feeSchema = new mongoose.Schema({
|
|
3
4
|
feeType: { type: String, required: true },
|
|
4
5
|
description: { type: String, required: true },
|
|
@@ -36,13 +37,14 @@ const calculationsSchema = new mongoose.Schema({
|
|
|
36
37
|
});
|
|
37
38
|
const productFeaturesSchema = new mongoose.Schema({
|
|
38
39
|
applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true },
|
|
39
|
-
name: { type: String, required:
|
|
40
|
+
name: { type: String, required: false },
|
|
40
41
|
clientAdvance: { type: String, required: true },
|
|
41
42
|
ltv: { type: String, required: true },
|
|
42
43
|
repayment: { type: String, required: true },
|
|
43
44
|
variableRepayment: { type: String, required: true },
|
|
44
45
|
reversionRateWithoutBaseRate: { type: String, default: null },
|
|
45
46
|
totalReversionRate: { type: String, default: null },
|
|
47
|
+
reversionRate: { type: String, default: null },
|
|
46
48
|
initialRate: { type: String, required: true },
|
|
47
49
|
fixedTerm: { type: String, required: true },
|
|
48
50
|
fixedTermEndDate: { type: String, default: null },
|
|
@@ -92,5 +94,7 @@ const productFeaturesSchema = new mongoose.Schema({
|
|
|
92
94
|
stressedPaymentRate: { type: String, default: null },
|
|
93
95
|
calculations: calculationsSchema
|
|
94
96
|
});
|
|
97
|
+
// Apply workflow plugin to the schema
|
|
98
|
+
applyWorkflowPlugin(productFeaturesSchema, 'applicationproductfeatures');
|
|
95
99
|
const ApplicationProductFeaturesModel = mongoose.model("ApplicationProductFeatures", productFeaturesSchema);
|
|
96
100
|
export default ApplicationProductFeaturesModel;
|