@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,18 +1,25 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
+
import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
|
|
2
3
|
import creditProfileSchema from "./application-credit-profile.model";
|
|
4
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
5
|
const applicationSchema = new mongoose.Schema({
|
|
4
6
|
queueId: [{
|
|
5
7
|
type: mongoose.Schema.Types.ObjectId,
|
|
6
8
|
ref: "Queue",
|
|
7
|
-
|
|
9
|
+
default: null,
|
|
8
10
|
}],
|
|
9
|
-
|
|
11
|
+
underwriterReviewDate: { type: Date, default: null },
|
|
12
|
+
assignedToUserId: { type: mongoose.Schema.Types.ObjectId, ref: "User", default: null },
|
|
13
|
+
assignedToUserDate: { type: Date, default: null },
|
|
14
|
+
firstAssignedToUserDate: { type: Date, default: null },
|
|
15
|
+
slaClockStart: { type: Date, default: null },
|
|
16
|
+
slaClockStop: { type: Date, default: null },
|
|
10
17
|
applicationId: { type: String, required: true },
|
|
11
18
|
isApplicationFeePaid: { type: String, required: true },
|
|
12
19
|
applicationNumber: { type: String, required: true },
|
|
13
|
-
applicationTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup",
|
|
20
|
+
applicationTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
14
21
|
bankSolicitor: { type: String, default: "" },
|
|
15
|
-
brokerId: { type: mongoose.Schema.Types.ObjectId, ref: "Broker",
|
|
22
|
+
brokerId: { type: mongoose.Schema.Types.ObjectId, ref: "Broker", default: null },
|
|
16
23
|
caseManager: { type: String, default: "" },
|
|
17
24
|
caseManagerAccepted: { type: String, default: false },
|
|
18
25
|
completedReason: { type: String, default: "" },
|
|
@@ -23,50 +30,92 @@ const applicationSchema = new mongoose.Schema({
|
|
|
23
30
|
isFinanceRecommendedToApplicant: { type: String, required: true },
|
|
24
31
|
isWorkflowTaskCreated: { type: String, required: true },
|
|
25
32
|
lastUpdated: { type: String },
|
|
26
|
-
lendingTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup",
|
|
33
|
+
lendingTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
27
34
|
networkClubName: { type: String, default: "" },
|
|
28
35
|
isNetworkClubSubmission: { type: String, required: true },
|
|
29
36
|
newReason: { type: String, default: "" },
|
|
30
|
-
purchaseTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup",
|
|
37
|
+
purchaseTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
31
38
|
rejectedReason: { type: String, default: "" },
|
|
32
|
-
repaymentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup",
|
|
39
|
+
repaymentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
33
40
|
selectedProduct: { type: String, required: false },
|
|
34
|
-
|
|
35
|
-
sowBusiness: { type: String, default: "" },
|
|
36
|
-
sowInheritance: { type: String, default: "" },
|
|
37
|
-
sowOther: { type: String, default: "" },
|
|
38
|
-
sowProperty: { type: String, default: "" },
|
|
39
|
-
sowSalary: { type: String, default: "" },
|
|
40
|
-
statusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
|
|
41
|
+
statusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
41
42
|
submitReason: { type: String, default: "" },
|
|
42
43
|
submittedDate: { type: String },
|
|
43
44
|
underwriter: { type: String, default: "" },
|
|
44
45
|
isValuationFeePaid: { type: String, required: true },
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
withdrawalReasonLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
47
|
+
declineReasonLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
48
|
+
isPortfolioConfirmed: { type: Boolean, default: false },
|
|
49
|
+
productId: { type: mongoose.Schema.Types.ObjectId, ref: "Product", default: null },
|
|
48
50
|
product: { type: String },
|
|
49
|
-
securityId: { type: mongoose.Schema.Types.ObjectId, ref: "Security",
|
|
50
|
-
solicitorId: { type: mongoose.Schema.Types.ObjectId, ref: "Solicitor",
|
|
51
|
+
securityId: { type: mongoose.Schema.Types.ObjectId, ref: "Security", default: null },
|
|
52
|
+
solicitorId: { type: mongoose.Schema.Types.ObjectId, ref: "Solicitor", default: null },
|
|
53
|
+
riskNarrativeId: { type: mongoose.Schema.Types.ObjectId, ref: "ApplicationRiskNarrative", default: null },
|
|
54
|
+
riskNarrative: {
|
|
55
|
+
call1RequestedOn: { type: String, default: null },
|
|
56
|
+
call2RequestedOn: { type: String, default: null },
|
|
57
|
+
retryCount: { type: String, default: null },
|
|
58
|
+
riskRating: { type: String, default: null },
|
|
59
|
+
statusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
60
|
+
call2StatusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
61
|
+
},
|
|
51
62
|
applicants: [
|
|
52
|
-
{ type: mongoose.Schema.Types.ObjectId, ref: "Applicant" }
|
|
63
|
+
{ type: mongoose.Schema.Types.ObjectId, ref: "Applicant", default: null }
|
|
53
64
|
],
|
|
54
65
|
isActive: { type: String, default: false },
|
|
55
|
-
isUkResident: { type: String, default: true },
|
|
56
66
|
riskRating: { type: String },
|
|
57
|
-
directDebitId: { type: mongoose.Schema.Types.ObjectId, ref: "Application_DirectDebit" },
|
|
67
|
+
directDebitId: { type: mongoose.Schema.Types.ObjectId, ref: "Application_DirectDebit", default: null },
|
|
58
68
|
creditProfile: creditProfileSchema,
|
|
59
|
-
mortgageId: { type: mongoose.Schema.Types.ObjectId, ref: "Mortgage" },
|
|
60
|
-
companyId: { type: mongoose.Schema.Types.ObjectId, ref: "ApplicationCompany" },
|
|
61
|
-
|
|
62
|
-
newAuditRecordsCount: { type:
|
|
69
|
+
mortgageId: { type: mongoose.Schema.Types.ObjectId, ref: "Mortgage", default: null },
|
|
70
|
+
companyId: { type: mongoose.Schema.Types.ObjectId, ref: "ApplicationCompany", default: null },
|
|
71
|
+
offerId: { type: mongoose.Schema.Types.ObjectId, ref: "ApplicationOffer", default: null },
|
|
72
|
+
newAuditRecordsCount: { type: Number, default: 0 }, // Ensure it is a Number
|
|
63
73
|
currentApprivoAuditId: Number,
|
|
64
|
-
propertyIds: [{ type: mongoose.Schema.Types.ObjectId, ref: "Property" }]
|
|
74
|
+
propertyIds: [{ type: mongoose.Schema.Types.ObjectId, ref: "Property" }],
|
|
75
|
+
valuationId: { type: mongoose.Schema.Types.ObjectId, ref: "ApplicationValuation" },
|
|
76
|
+
valuationReportId: { type: mongoose.Schema.Types.ObjectId, ref: "ApplicationValuationReport" },
|
|
77
|
+
isMandateRequested: { type: Boolean, default: false },
|
|
78
|
+
isMandateApproved: { type: Boolean, default: null },
|
|
79
|
+
mandateReviewComments: { type: String, default: "" },
|
|
80
|
+
mandateRequestedByUserId: { type: mongoose.Schema.Types.ObjectId, ref: "User", default: null },
|
|
81
|
+
mandateRequestedDate: { type: Date, default: null },
|
|
82
|
+
mandateReviewedByUserId: { type: mongoose.Schema.Types.ObjectId, ref: "User", default: null },
|
|
83
|
+
mandateReviewedDate: { type: Date, default: null },
|
|
84
|
+
isReferred: { type: Boolean, default: false },
|
|
85
|
+
referredByUserId: { type: mongoose.Schema.Types.ObjectId, ref: "User", default: null },
|
|
86
|
+
referredDate: { type: Date, default: null },
|
|
87
|
+
referralClearedByUserId: { type: mongoose.Schema.Types.ObjectId, ref: "User", default: null },
|
|
88
|
+
referralClearedDate: { type: Date, default: null },
|
|
89
|
+
brokerTaskCount: {
|
|
90
|
+
type: Number,
|
|
91
|
+
default: 0
|
|
92
|
+
},
|
|
93
|
+
lenderTaskCount: {
|
|
94
|
+
type: Number,
|
|
95
|
+
default: 0
|
|
96
|
+
},
|
|
97
|
+
pendingTaskCountForUser: {
|
|
98
|
+
type: Number,
|
|
99
|
+
default: 0
|
|
100
|
+
},
|
|
101
|
+
applicationFormSignedDate: {
|
|
102
|
+
type: Date, // Stores as ISODate in MongoDB (e.g., "2023-11-15T12:30:45.123Z")
|
|
103
|
+
default: null
|
|
104
|
+
},
|
|
105
|
+
isUkResident: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
default: false
|
|
108
|
+
},
|
|
109
|
+
creditReportId: { type: String, default: null },
|
|
110
|
+
isAlgbraEligible: { type: Boolean, default: false },
|
|
65
111
|
}, {
|
|
66
112
|
timestamps: true,
|
|
67
113
|
toJSON: { virtuals: true },
|
|
68
114
|
toObject: { virtuals: true }
|
|
69
115
|
});
|
|
116
|
+
applyAuditMiddleware(applicationSchema, "Application");
|
|
117
|
+
// Apply workflow plugin to the schema
|
|
118
|
+
applyWorkflowPlugin(applicationSchema, 'application');
|
|
70
119
|
// Virtual property 'noOfApplicants'
|
|
71
120
|
applicationSchema.virtual('noOfApplicants').get(function () {
|
|
72
121
|
return this.applicants ? this.applicants.length : 0;
|
|
@@ -149,5 +198,49 @@ applicationSchema.virtual('brokerPhone').get(function () {
|
|
|
149
198
|
applicationSchema.virtual('solicitorPhone').get(function () {
|
|
150
199
|
return this.solicitorId && typeof this.solicitorId === 'object' ? this.solicitorId.telephone : null;
|
|
151
200
|
});
|
|
201
|
+
// Virtual property 'pendingDays'
|
|
202
|
+
applicationSchema.virtual('pendingDays').get(function () {
|
|
203
|
+
if (!this.applicationFormSignedDate)
|
|
204
|
+
return null;
|
|
205
|
+
// Get current date at midnight (ignoring time)
|
|
206
|
+
const now = new Date();
|
|
207
|
+
const todayMidnight = new Date(now.getFullYear(), now.getMonth(), now.getDate());
|
|
208
|
+
// Get signed date at midnight (ignoring time)
|
|
209
|
+
const signedDate = new Date(this.applicationFormSignedDate);
|
|
210
|
+
const signedMidnight = new Date(signedDate.getFullYear(), signedDate.getMonth(), signedDate.getDate());
|
|
211
|
+
// Calculate difference in just date
|
|
212
|
+
const diffTime = todayMidnight.getTime() - signedMidnight.getTime();
|
|
213
|
+
// Convert to days
|
|
214
|
+
const diffDays = Math.floor(diffTime / (1000 * 60 * 60 * 24));
|
|
215
|
+
return diffDays;
|
|
216
|
+
});
|
|
217
|
+
// Virtual property 'taskCompletionPercent'
|
|
218
|
+
applicationSchema.virtual('taskCompletionPercent').get(function () {
|
|
219
|
+
const broker = typeof this.brokerTaskCount === 'number' ? this.brokerTaskCount : 0;
|
|
220
|
+
const lender = typeof this.lenderTaskCount === 'number' ? this.lenderTaskCount : 0;
|
|
221
|
+
const total = broker + lender;
|
|
222
|
+
// If both broker and lender are 0, return 100.00
|
|
223
|
+
if (broker === 0 && lender === 0)
|
|
224
|
+
return 100.00;
|
|
225
|
+
// If broker is 0 and lender is not, return 100.00
|
|
226
|
+
if (broker === 0 && lender > 0)
|
|
227
|
+
return 100.00;
|
|
228
|
+
// If lender is 0 and broker is not, return 0.00
|
|
229
|
+
if (lender === 0 && broker > 0)
|
|
230
|
+
return 0.00;
|
|
231
|
+
// Calculate (lender/total)*100
|
|
232
|
+
return Number(((lender / total) * 100).toFixed(2));
|
|
233
|
+
});
|
|
234
|
+
// Database indexes for performance optimization
|
|
235
|
+
// Single field indexes
|
|
236
|
+
applicationSchema.index({ applicationId: 1 });
|
|
237
|
+
applicationSchema.index({ assignedToUserId: 1 });
|
|
238
|
+
applicationSchema.index({ brokerId: 1 });
|
|
239
|
+
applicationSchema.index({ applicants: 1 }); // For array membership queries
|
|
240
|
+
// Compound indexes for common query combinations
|
|
241
|
+
applicationSchema.index({ applicants: 1, _id: 1 }); // For finding application by applicant
|
|
242
|
+
applicationSchema.index({ assignedToUserId: 1, statusLid: 1 }); // For filtering by assignee and status
|
|
243
|
+
// Text index for search functionality
|
|
244
|
+
applicationSchema.index({ applicationNumber: "text" });
|
|
152
245
|
const ApplicationModel = mongoose.model("Application", applicationSchema);
|
|
153
246
|
export default ApplicationModel;
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
5
|
+
/// <reference types="mongoose/types/callback" />
|
|
6
|
+
/// <reference types="mongoose/types/collection" />
|
|
7
|
+
/// <reference types="mongoose/types/connection" />
|
|
8
|
+
/// <reference types="mongoose/types/cursor" />
|
|
9
|
+
/// <reference types="mongoose/types/document" />
|
|
10
|
+
/// <reference types="mongoose/types/error" />
|
|
11
|
+
/// <reference types="mongoose/types/expressions" />
|
|
12
|
+
/// <reference types="mongoose/types/helpers" />
|
|
13
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
14
|
+
/// <reference types="mongoose/types/indexes" />
|
|
15
|
+
/// <reference types="mongoose/types/models" />
|
|
16
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
17
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
18
|
+
/// <reference types="mongoose/types/populate" />
|
|
19
|
+
/// <reference types="mongoose/types/query" />
|
|
20
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
21
|
+
/// <reference types="mongoose/types/session" />
|
|
22
|
+
/// <reference types="mongoose/types/types" />
|
|
23
|
+
/// <reference types="mongoose/types/utility" />
|
|
24
|
+
/// <reference types="mongoose/types/validation" />
|
|
25
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
26
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
27
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
28
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
|
+
import mongoose from "mongoose";
|
|
30
|
+
declare const ApplicationsTaskModel: mongoose.Model<{
|
|
31
|
+
createdAt: NativeDate;
|
|
32
|
+
updatedAt: NativeDate;
|
|
33
|
+
} & {
|
|
34
|
+
applicationId: mongoose.Types.ObjectId;
|
|
35
|
+
createdOn: string;
|
|
36
|
+
additionalData: {
|
|
37
|
+
concernTypeLid: mongoose.Types.ObjectId;
|
|
38
|
+
concernComments: string;
|
|
39
|
+
resolvedComments: string;
|
|
40
|
+
rejectionReason: string;
|
|
41
|
+
rejectionDate: string;
|
|
42
|
+
responderRemarks: string;
|
|
43
|
+
requesterAttachmentId: string;
|
|
44
|
+
responderAttachmentId: string;
|
|
45
|
+
requesterFileName: string;
|
|
46
|
+
responderFileName: string;
|
|
47
|
+
respondedDate: string;
|
|
48
|
+
description?: string | null | undefined;
|
|
49
|
+
statusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
50
|
+
requesterId?: mongoose.Types.ObjectId | null | undefined;
|
|
51
|
+
responderId?: mongoose.Types.ObjectId | null | undefined;
|
|
52
|
+
taskType?: "internal" | "broker" | null | undefined;
|
|
53
|
+
acceptedDate?: string | null | undefined;
|
|
54
|
+
};
|
|
55
|
+
statusDate: string;
|
|
56
|
+
statusReason: string;
|
|
57
|
+
comments: mongoose.Types.DocumentArray<{
|
|
58
|
+
createdAt: NativeDate;
|
|
59
|
+
message: string;
|
|
60
|
+
createdBy: mongoose.Types.ObjectId;
|
|
61
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
62
|
+
createdAt: NativeDate;
|
|
63
|
+
message: string;
|
|
64
|
+
createdBy: mongoose.Types.ObjectId;
|
|
65
|
+
}> & {
|
|
66
|
+
createdAt: NativeDate;
|
|
67
|
+
message: string;
|
|
68
|
+
createdBy: mongoose.Types.ObjectId;
|
|
69
|
+
}>;
|
|
70
|
+
status?: number | null | undefined;
|
|
71
|
+
checkflowId?: string | null | undefined;
|
|
72
|
+
instanceId?: string | null | undefined;
|
|
73
|
+
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
74
|
+
createdAt: NativeDate;
|
|
75
|
+
updatedAt: NativeDate;
|
|
76
|
+
} & {
|
|
77
|
+
applicationId: mongoose.Types.ObjectId;
|
|
78
|
+
createdOn: string;
|
|
79
|
+
additionalData: {
|
|
80
|
+
concernTypeLid: mongoose.Types.ObjectId;
|
|
81
|
+
concernComments: string;
|
|
82
|
+
resolvedComments: string;
|
|
83
|
+
rejectionReason: string;
|
|
84
|
+
rejectionDate: string;
|
|
85
|
+
responderRemarks: string;
|
|
86
|
+
requesterAttachmentId: string;
|
|
87
|
+
responderAttachmentId: string;
|
|
88
|
+
requesterFileName: string;
|
|
89
|
+
responderFileName: string;
|
|
90
|
+
respondedDate: string;
|
|
91
|
+
description?: string | null | undefined;
|
|
92
|
+
statusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
93
|
+
requesterId?: mongoose.Types.ObjectId | null | undefined;
|
|
94
|
+
responderId?: mongoose.Types.ObjectId | null | undefined;
|
|
95
|
+
taskType?: "internal" | "broker" | null | undefined;
|
|
96
|
+
acceptedDate?: string | null | undefined;
|
|
97
|
+
};
|
|
98
|
+
statusDate: string;
|
|
99
|
+
statusReason: string;
|
|
100
|
+
comments: mongoose.Types.DocumentArray<{
|
|
101
|
+
createdAt: NativeDate;
|
|
102
|
+
message: string;
|
|
103
|
+
createdBy: mongoose.Types.ObjectId;
|
|
104
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
105
|
+
createdAt: NativeDate;
|
|
106
|
+
message: string;
|
|
107
|
+
createdBy: mongoose.Types.ObjectId;
|
|
108
|
+
}> & {
|
|
109
|
+
createdAt: NativeDate;
|
|
110
|
+
message: string;
|
|
111
|
+
createdBy: mongoose.Types.ObjectId;
|
|
112
|
+
}>;
|
|
113
|
+
status?: number | null | undefined;
|
|
114
|
+
checkflowId?: string | null | undefined;
|
|
115
|
+
instanceId?: string | null | undefined;
|
|
116
|
+
}, {}> & {
|
|
117
|
+
createdAt: NativeDate;
|
|
118
|
+
updatedAt: NativeDate;
|
|
119
|
+
} & {
|
|
120
|
+
applicationId: mongoose.Types.ObjectId;
|
|
121
|
+
createdOn: string;
|
|
122
|
+
additionalData: {
|
|
123
|
+
concernTypeLid: mongoose.Types.ObjectId;
|
|
124
|
+
concernComments: string;
|
|
125
|
+
resolvedComments: string;
|
|
126
|
+
rejectionReason: string;
|
|
127
|
+
rejectionDate: string;
|
|
128
|
+
responderRemarks: string;
|
|
129
|
+
requesterAttachmentId: string;
|
|
130
|
+
responderAttachmentId: string;
|
|
131
|
+
requesterFileName: string;
|
|
132
|
+
responderFileName: string;
|
|
133
|
+
respondedDate: string;
|
|
134
|
+
description?: string | null | undefined;
|
|
135
|
+
statusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
136
|
+
requesterId?: mongoose.Types.ObjectId | null | undefined;
|
|
137
|
+
responderId?: mongoose.Types.ObjectId | null | undefined;
|
|
138
|
+
taskType?: "internal" | "broker" | null | undefined;
|
|
139
|
+
acceptedDate?: string | null | undefined;
|
|
140
|
+
};
|
|
141
|
+
statusDate: string;
|
|
142
|
+
statusReason: string;
|
|
143
|
+
comments: mongoose.Types.DocumentArray<{
|
|
144
|
+
createdAt: NativeDate;
|
|
145
|
+
message: string;
|
|
146
|
+
createdBy: mongoose.Types.ObjectId;
|
|
147
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
148
|
+
createdAt: NativeDate;
|
|
149
|
+
message: string;
|
|
150
|
+
createdBy: mongoose.Types.ObjectId;
|
|
151
|
+
}> & {
|
|
152
|
+
createdAt: NativeDate;
|
|
153
|
+
message: string;
|
|
154
|
+
createdBy: mongoose.Types.ObjectId;
|
|
155
|
+
}>;
|
|
156
|
+
status?: number | null | undefined;
|
|
157
|
+
checkflowId?: string | null | undefined;
|
|
158
|
+
instanceId?: string | null | undefined;
|
|
159
|
+
} & {
|
|
160
|
+
_id: mongoose.Types.ObjectId;
|
|
161
|
+
} & {
|
|
162
|
+
__v: number;
|
|
163
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
164
|
+
timestamps: true;
|
|
165
|
+
}, {
|
|
166
|
+
createdAt: NativeDate;
|
|
167
|
+
updatedAt: NativeDate;
|
|
168
|
+
} & {
|
|
169
|
+
applicationId: mongoose.Types.ObjectId;
|
|
170
|
+
createdOn: string;
|
|
171
|
+
additionalData: {
|
|
172
|
+
concernTypeLid: mongoose.Types.ObjectId;
|
|
173
|
+
concernComments: string;
|
|
174
|
+
resolvedComments: string;
|
|
175
|
+
rejectionReason: string;
|
|
176
|
+
rejectionDate: string;
|
|
177
|
+
responderRemarks: string;
|
|
178
|
+
requesterAttachmentId: string;
|
|
179
|
+
responderAttachmentId: string;
|
|
180
|
+
requesterFileName: string;
|
|
181
|
+
responderFileName: string;
|
|
182
|
+
respondedDate: string;
|
|
183
|
+
description?: string | null | undefined;
|
|
184
|
+
statusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
185
|
+
requesterId?: mongoose.Types.ObjectId | null | undefined;
|
|
186
|
+
responderId?: mongoose.Types.ObjectId | null | undefined;
|
|
187
|
+
taskType?: "internal" | "broker" | null | undefined;
|
|
188
|
+
acceptedDate?: string | null | undefined;
|
|
189
|
+
};
|
|
190
|
+
statusDate: string;
|
|
191
|
+
statusReason: string;
|
|
192
|
+
comments: mongoose.Types.DocumentArray<{
|
|
193
|
+
createdAt: NativeDate;
|
|
194
|
+
message: string;
|
|
195
|
+
createdBy: mongoose.Types.ObjectId;
|
|
196
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
197
|
+
createdAt: NativeDate;
|
|
198
|
+
message: string;
|
|
199
|
+
createdBy: mongoose.Types.ObjectId;
|
|
200
|
+
}> & {
|
|
201
|
+
createdAt: NativeDate;
|
|
202
|
+
message: string;
|
|
203
|
+
createdBy: mongoose.Types.ObjectId;
|
|
204
|
+
}>;
|
|
205
|
+
status?: number | null | undefined;
|
|
206
|
+
checkflowId?: string | null | undefined;
|
|
207
|
+
instanceId?: string | null | undefined;
|
|
208
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
209
|
+
createdAt: NativeDate;
|
|
210
|
+
updatedAt: NativeDate;
|
|
211
|
+
} & {
|
|
212
|
+
applicationId: mongoose.Types.ObjectId;
|
|
213
|
+
createdOn: string;
|
|
214
|
+
additionalData: {
|
|
215
|
+
concernTypeLid: mongoose.Types.ObjectId;
|
|
216
|
+
concernComments: string;
|
|
217
|
+
resolvedComments: string;
|
|
218
|
+
rejectionReason: string;
|
|
219
|
+
rejectionDate: string;
|
|
220
|
+
responderRemarks: string;
|
|
221
|
+
requesterAttachmentId: string;
|
|
222
|
+
responderAttachmentId: string;
|
|
223
|
+
requesterFileName: string;
|
|
224
|
+
responderFileName: string;
|
|
225
|
+
respondedDate: string;
|
|
226
|
+
description?: string | null | undefined;
|
|
227
|
+
statusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
228
|
+
requesterId?: mongoose.Types.ObjectId | null | undefined;
|
|
229
|
+
responderId?: mongoose.Types.ObjectId | null | undefined;
|
|
230
|
+
taskType?: "internal" | "broker" | null | undefined;
|
|
231
|
+
acceptedDate?: string | null | undefined;
|
|
232
|
+
};
|
|
233
|
+
statusDate: string;
|
|
234
|
+
statusReason: string;
|
|
235
|
+
comments: mongoose.Types.DocumentArray<{
|
|
236
|
+
createdAt: NativeDate;
|
|
237
|
+
message: string;
|
|
238
|
+
createdBy: mongoose.Types.ObjectId;
|
|
239
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
240
|
+
createdAt: NativeDate;
|
|
241
|
+
message: string;
|
|
242
|
+
createdBy: mongoose.Types.ObjectId;
|
|
243
|
+
}> & {
|
|
244
|
+
createdAt: NativeDate;
|
|
245
|
+
message: string;
|
|
246
|
+
createdBy: mongoose.Types.ObjectId;
|
|
247
|
+
}>;
|
|
248
|
+
status?: number | null | undefined;
|
|
249
|
+
checkflowId?: string | null | undefined;
|
|
250
|
+
instanceId?: string | null | undefined;
|
|
251
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
252
|
+
createdAt: NativeDate;
|
|
253
|
+
updatedAt: NativeDate;
|
|
254
|
+
} & {
|
|
255
|
+
applicationId: mongoose.Types.ObjectId;
|
|
256
|
+
createdOn: string;
|
|
257
|
+
additionalData: {
|
|
258
|
+
concernTypeLid: mongoose.Types.ObjectId;
|
|
259
|
+
concernComments: string;
|
|
260
|
+
resolvedComments: string;
|
|
261
|
+
rejectionReason: string;
|
|
262
|
+
rejectionDate: string;
|
|
263
|
+
responderRemarks: string;
|
|
264
|
+
requesterAttachmentId: string;
|
|
265
|
+
responderAttachmentId: string;
|
|
266
|
+
requesterFileName: string;
|
|
267
|
+
responderFileName: string;
|
|
268
|
+
respondedDate: string;
|
|
269
|
+
description?: string | null | undefined;
|
|
270
|
+
statusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
271
|
+
requesterId?: mongoose.Types.ObjectId | null | undefined;
|
|
272
|
+
responderId?: mongoose.Types.ObjectId | null | undefined;
|
|
273
|
+
taskType?: "internal" | "broker" | null | undefined;
|
|
274
|
+
acceptedDate?: string | null | undefined;
|
|
275
|
+
};
|
|
276
|
+
statusDate: string;
|
|
277
|
+
statusReason: string;
|
|
278
|
+
comments: mongoose.Types.DocumentArray<{
|
|
279
|
+
createdAt: NativeDate;
|
|
280
|
+
message: string;
|
|
281
|
+
createdBy: mongoose.Types.ObjectId;
|
|
282
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
283
|
+
createdAt: NativeDate;
|
|
284
|
+
message: string;
|
|
285
|
+
createdBy: mongoose.Types.ObjectId;
|
|
286
|
+
}> & {
|
|
287
|
+
createdAt: NativeDate;
|
|
288
|
+
message: string;
|
|
289
|
+
createdBy: mongoose.Types.ObjectId;
|
|
290
|
+
}>;
|
|
291
|
+
status?: number | null | undefined;
|
|
292
|
+
checkflowId?: string | null | undefined;
|
|
293
|
+
instanceId?: string | null | undefined;
|
|
294
|
+
}> & {
|
|
295
|
+
_id: mongoose.Types.ObjectId;
|
|
296
|
+
} & {
|
|
297
|
+
__v: number;
|
|
298
|
+
}>>;
|
|
299
|
+
export default ApplicationsTaskModel;
|
|
300
|
+
//# sourceMappingURL=applications-task.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applications-task.model.d.ts","sourceRoot":"","sources":["../../applications/applications-task.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAqDhC,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6D,CAAC;AACzF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
|
+
import mongoose from "mongoose";
|
|
4
|
+
// Additional Data schema for the nested object
|
|
5
|
+
const additionalDataSchema = new mongoose.Schema({
|
|
6
|
+
requesterId: { type: mongoose.Schema.Types.ObjectId, ref: "User", required: false },
|
|
7
|
+
responderId: { type: mongoose.Schema.Types.ObjectId, ref: "User", required: false },
|
|
8
|
+
statusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: false },
|
|
9
|
+
concernTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
|
|
10
|
+
description: { type: String },
|
|
11
|
+
concernComments: { type: String, required: true },
|
|
12
|
+
resolvedComments: { type: String, default: "" },
|
|
13
|
+
taskType: {
|
|
14
|
+
type: String,
|
|
15
|
+
enum: ["internal", "broker"], // allowed values
|
|
16
|
+
required: false
|
|
17
|
+
},
|
|
18
|
+
acceptedDate: { type: String },
|
|
19
|
+
rejectionReason: { type: String, default: null },
|
|
20
|
+
rejectionDate: { type: String, default: null },
|
|
21
|
+
responderRemarks: { type: String, default: "" },
|
|
22
|
+
requesterAttachmentId: { type: String, default: null },
|
|
23
|
+
responderAttachmentId: { type: String, default: null },
|
|
24
|
+
requesterFileName: { type: String, default: null },
|
|
25
|
+
responderFileName: { type: String, default: null },
|
|
26
|
+
respondedDate: { type: String, default: null }
|
|
27
|
+
}, { _id: false });
|
|
28
|
+
const applicationsTaskSchema = new mongoose.Schema({
|
|
29
|
+
checkflowId: { type: String, required: false },
|
|
30
|
+
applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true },
|
|
31
|
+
instanceId: { type: String, required: false },
|
|
32
|
+
status: { type: Number, required: false, default: 2 }, // 2 = pending
|
|
33
|
+
statusReason: { type: String, default: "" },
|
|
34
|
+
statusDate: { type: String, default: null },
|
|
35
|
+
additionalData: { type: additionalDataSchema, required: true },
|
|
36
|
+
comments: [{
|
|
37
|
+
createdBy: { type: mongoose.Schema.Types.ObjectId, ref: "User", required: true },
|
|
38
|
+
createdAt: { type: Date, default: Date.now },
|
|
39
|
+
message: { type: String, default: "", maxlength: 2000 }
|
|
40
|
+
}],
|
|
41
|
+
createdOn: { type: String, required: true, default: () => new Date().toISOString() }
|
|
42
|
+
}, { timestamps: true });
|
|
43
|
+
applyAuditMiddleware(applicationsTaskSchema, "ApplicationsTask");
|
|
44
|
+
// Apply workflow plugin to the schema
|
|
45
|
+
applyWorkflowPlugin(applicationsTaskSchema, 'applicationstask');
|
|
46
|
+
// Indexes for query optimization
|
|
47
|
+
applicationsTaskSchema.index({ applicationId: 1, instanceId: 1 }); // Compound index for findByApplicationIdAndInstanceId queries
|
|
48
|
+
applicationsTaskSchema.index({ applicationId: 1, createdOn: -1 }); // Compound index for findAll with sort by createdOn descending
|
|
49
|
+
const ApplicationsTaskModel = mongoose.model("ApplicationsTask", applicationsTaskSchema);
|
|
50
|
+
export default ApplicationsTaskModel;
|
|
@@ -0,0 +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" />
|
|
29
|
+
import { Types } from "mongoose";
|
|
30
|
+
import { IBaseType } from "../types/base.types";
|
|
31
|
+
export interface IApplicationsTaskAdditionalData extends IBaseType {
|
|
32
|
+
requesterId: string;
|
|
33
|
+
responderId: string;
|
|
34
|
+
statusLid: Types.ObjectId;
|
|
35
|
+
concernTypeLid: Types.ObjectId;
|
|
36
|
+
concernComments: string;
|
|
37
|
+
resolvedComments?: string;
|
|
38
|
+
rejectionReason?: string | null;
|
|
39
|
+
rejectionDate?: string | null;
|
|
40
|
+
responderRemarks?: string;
|
|
41
|
+
requesterAttachmentId?: string | null;
|
|
42
|
+
responderAttachmentId?: string | null;
|
|
43
|
+
requesterFileName?: string | null;
|
|
44
|
+
responderFileName?: string | null;
|
|
45
|
+
respondedDate?: string | null;
|
|
46
|
+
}
|
|
47
|
+
export default interface IApplicationsTaskType extends IBaseType {
|
|
48
|
+
checkflowId: string;
|
|
49
|
+
applicationId: Types.ObjectId;
|
|
50
|
+
instanceId: string;
|
|
51
|
+
status: number;
|
|
52
|
+
statusReason?: string;
|
|
53
|
+
statusDate?: string | null;
|
|
54
|
+
additionalData: IApplicationsTaskAdditionalData;
|
|
55
|
+
createdOn: string;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=applications-task.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applications-task.type.d.ts","sourceRoot":"","sources":["../../applications/applications-task.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,WAAW,+BAAgC,SAAQ,SAAS;IAC9D,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC1B,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,qBAAsB,SAAQ,SAAS;IAC5D,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,+BAA+B,CAAC;IAChD,SAAS,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|