@dynamatix/gb-schemas 2.0.68 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +309 -0
- package/dist/applicants/applicant-additional-income.model.d.ts +192 -8
- package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-additional-income.model.js +24 -3
- package/dist/applicants/applicant-additional-income.type.d.ts +40 -0
- package/dist/applicants/applicant-additional-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts +90 -47
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-creditCard.model.js +12 -6
- package/dist/applicants/applicant-commitment-loan.model.d.ts +81 -41
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-loan.model.js +13 -8
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +78 -38
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.js +19 -19
- package/dist/applicants/applicant-commitment-residence.model.d.ts +768 -0
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-residence.model.js +57 -0
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +81 -47
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.js +14 -8
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +81 -47
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +14 -8
- package/dist/applicants/applicant-credit-data.model.d.ts +32 -4
- package/dist/applicants/applicant-credit-data.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-profile.model.d.ts +29 -1
- package/dist/applicants/applicant-credit-profile.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-report.model.d.ts +3784 -0
- package/dist/applicants/applicant-credit-report.model.d.ts.map +1 -0
- package/dist/applicants/applicant-credit-report.model.js +122 -0
- package/dist/applicants/applicant-credit-report.type.d.ts +145 -0
- package/dist/applicants/applicant-credit-report.type.d.ts.map +1 -0
- package/dist/applicants/applicant-credit-report.type.js +1 -0
- package/dist/applicants/applicant-direct-debit.model.d.ts +29 -4
- package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -1
- package/dist/applicants/applicant-direct-debit.model.js +0 -1
- package/dist/applicants/applicant-employment-income.model.d.ts +39 -8
- package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment-income.model.js +13 -2
- package/dist/applicants/applicant-employment-income.type.d.ts +37 -0
- package/dist/applicants/applicant-employment-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-employment-income.type.js +1 -0
- package/dist/applicants/applicant-employment.model.d.ts +167 -703
- package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment.model.js +25 -27
- package/dist/applicants/applicant-expenditure.model.d.ts +42 -8
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.js +86 -2
- package/dist/applicants/applicant-expenditure.type.d.ts +42 -0
- package/dist/applicants/applicant-expenditure.type.d.ts.map +1 -0
- package/dist/applicants/applicant-expenditure.type.js +1 -0
- package/dist/applicants/applicant-income-settings.model.d.ts +30 -2
- package/dist/applicants/applicant-income-settings.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income-settings.model.js +11 -0
- package/dist/applicants/applicant-income-settings.type.d.ts +40 -0
- package/dist/applicants/applicant-income-settings.type.d.ts.map +1 -0
- package/dist/applicants/applicant-income-settings.type.js +1 -0
- package/dist/applicants/applicant-income-source.model.d.ts +26 -0
- package/dist/applicants/applicant-income-source.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income-summary.model.d.ts +2202 -0
- package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income-summary.model.js +45 -0
- package/dist/applicants/applicant-income-summary.type.d.ts +60 -0
- package/dist/applicants/applicant-income-summary.type.d.ts.map +1 -0
- package/dist/applicants/applicant-income-summary.type.js +1 -0
- package/dist/applicants/applicant-income.model.d.ts +30 -2068
- package/dist/applicants/applicant-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-other-income.model.d.ts +85 -0
- package/dist/applicants/applicant-other-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-pension-income.model.d.ts +51 -302
- package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-pension-income.model.js +14 -6
- package/dist/applicants/applicant-pension-income.type.d.ts +40 -0
- package/dist/applicants/applicant-pension-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-pension-income.type.js +1 -0
- package/dist/applicants/applicant-property-income.model.d.ts +102 -56
- package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-property-income.model.js +18 -7
- package/dist/applicants/applicant-risk-narrative.model.d.ts +32 -4
- package/dist/applicants/applicant-risk-narrative.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.d.ts +39 -8
- package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.js +13 -2
- package/dist/applicants/applicant-self-employed-income.type.d.ts +37 -0
- package/dist/applicants/applicant-self-employed-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-self-employed-income.type.js +1 -0
- package/dist/applicants/applicant-self-employment.model.d.ts +269 -0
- package/dist/applicants/applicant-self-employment.model.d.ts.map +1 -0
- package/dist/applicants/applicant-self-employment.model.js +55 -0
- package/dist/applicants/applicant-sole-trader-income.model.d.ts +39 -8
- package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-sole-trader-income.model.js +11 -2
- package/dist/applicants/applicant-sole-trader-income.type.d.ts +37 -0
- package/dist/applicants/applicant-sole-trader-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-sole-trader-income.type.js +1 -0
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts +66 -317
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -1
- package/dist/applicants/applicant-uk-tax-credits.model.js +15 -7
- package/dist/applicants/applicant-uk-tax-credits.type.d.ts +39 -0
- package/dist/applicants/applicant-uk-tax-credits.type.d.ts.map +1 -0
- package/dist/applicants/applicant-uk-tax-credits.type.js +1 -0
- package/dist/applicants/applicant-welcome-call.model.d.ts +384 -0
- package/dist/applicants/applicant-welcome-call.model.d.ts.map +1 -0
- package/dist/applicants/applicant-welcome-call.model.js +709 -0
- package/dist/applicants/applicant-welcome-call.type.d.ts +66 -0
- package/dist/applicants/applicant-welcome-call.type.d.ts.map +1 -0
- package/dist/applicants/applicant-welcome-call.type.js +1 -0
- package/dist/applicants/applicant.model.d.ts +1522 -89
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +40 -9
- package/dist/applicants/applicant.type.d.ts +158 -0
- package/dist/applicants/applicant.type.d.ts.map +1 -0
- package/dist/applicants/applicant.type.js +1 -0
- package/dist/applicants/index.d.ts +24 -8
- package/dist/applicants/index.d.ts.map +1 -1
- package/dist/applicants/index.js +12 -8
- package/dist/applications/application-audit.model.d.ts +36 -8
- package/dist/applications/application-audit.model.d.ts.map +1 -1
- package/dist/applications/application-audit.model.js +3 -0
- package/dist/applications/application-checklist-Item.model.d.ts +36 -2
- package/dist/applications/application-checklist-Item.model.d.ts.map +1 -1
- package/dist/applications/application-checklist-Item.model.js +4 -0
- package/dist/applications/application-company-model.d.ts +123 -59
- package/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-company-model.js +24 -10
- package/dist/applications/application-credit-profile.model.d.ts +29 -1
- package/dist/applications/application-credit-profile.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.d.ts +178 -32
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.js +64 -1
- package/dist/applications/application-direct-debit.type.d.ts +63 -0
- package/dist/applications/application-direct-debit.type.d.ts.map +1 -0
- package/dist/applications/application-direct-debit.type.js +1 -0
- package/dist/applications/application-euc.model.d.ts +154 -0
- package/dist/applications/application-euc.model.d.ts.map +1 -0
- package/dist/applications/application-euc.model.js +28 -0
- package/dist/applications/application-fieldconfig.model.d.ts +30 -2
- package/dist/applications/application-fieldconfig.model.d.ts.map +1 -1
- package/dist/applications/application-fieldconfig.model.js +3 -0
- package/dist/applications/application-illustration-model.d.ts +30 -2
- package/dist/applications/application-illustration-model.d.ts.map +1 -1
- package/dist/applications/application-legal.model.d.ts +30 -2
- package/dist/applications/application-legal.model.d.ts.map +1 -1
- package/dist/applications/application-legal.model.js +3 -0
- package/dist/applications/application-mortgage.model.d.ts +201 -1097
- package/dist/applications/application-mortgage.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.js +24 -21
- package/dist/applications/application-mortgage.type.d.ts +76 -0
- package/dist/applications/application-mortgage.type.d.ts.map +1 -0
- package/dist/applications/application-mortgage.type.js +1 -0
- package/dist/applications/application-note.model.d.ts +66 -26
- package/dist/applications/application-note.model.d.ts.map +1 -1
- package/dist/applications/application-note.model.js +30 -3
- package/dist/applications/application-note.type.d.ts +55 -0
- package/dist/applications/application-note.type.d.ts.map +1 -0
- package/dist/applications/application-note.type.js +1 -0
- package/dist/applications/application-offer.model.d.ts +158 -10
- package/dist/applications/application-offer.model.d.ts.map +1 -1
- package/dist/applications/application-offer.model.js +49 -3
- package/dist/applications/application-offer.type.d.ts +54 -0
- package/dist/applications/application-offer.type.d.ts.map +1 -0
- package/dist/applications/application-offer.type.js +1 -0
- package/dist/applications/application-onboarding.model.d.ts +30 -2
- package/dist/applications/application-onboarding.model.d.ts.map +1 -1
- package/dist/applications/application-onboarding.model.js +3 -0
- package/dist/applications/application-product.model.d.ts +185 -15
- package/dist/applications/application-product.model.d.ts.map +1 -1
- package/dist/applications/application-product.model.js +34 -11
- package/dist/applications/application-product.type.d.ts +58 -0
- package/dist/applications/application-product.type.d.ts.map +1 -0
- package/dist/applications/application-product.type.js +1 -0
- package/dist/applications/application-productfeatures.model.d.ts +42 -8
- package/dist/applications/application-productfeatures.model.d.ts.map +1 -1
- package/dist/applications/application-productfeatures.model.js +5 -1
- package/dist/applications/application-productfeatures.type.d.ts +125 -0
- package/dist/applications/application-productfeatures.type.d.ts.map +1 -0
- package/dist/applications/application-productfeatures.type.js +1 -0
- package/dist/applications/application-rationale.model.d.ts +105 -195
- package/dist/applications/application-rationale.model.d.ts.map +1 -1
- package/dist/applications/application-rationale.model.js +17 -32
- package/dist/applications/application-rationale.type.d.ts +44 -0
- package/dist/applications/application-rationale.type.d.ts.map +1 -0
- package/dist/applications/application-rationale.type.js +1 -0
- package/dist/applications/application-risk-narrative.model.d.ts +72 -32
- package/dist/applications/application-risk-narrative.model.d.ts.map +1 -1
- package/dist/applications/application-risk-narrative.model.js +10 -5
- package/dist/applications/application-valuation-report.model.d.ts +1438 -0
- package/dist/applications/application-valuation-report.model.d.ts.map +1 -0
- package/dist/applications/application-valuation-report.model.js +799 -0
- package/dist/applications/application-valuation-report.type.d.ts +256 -0
- package/dist/applications/application-valuation-report.type.d.ts.map +1 -0
- package/dist/applications/application-valuation-report.type.js +1 -0
- package/dist/applications/application-valuation.model.d.ts +730 -19
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.js +34 -7
- package/dist/applications/application-valuation.type.d.ts +54 -0
- package/dist/applications/application-valuation.type.d.ts.map +1 -0
- package/dist/applications/application-valuation.type.js +1 -0
- package/dist/applications/application.model.d.ts +318 -116
- package/dist/applications/application.model.d.ts.map +1 -1
- package/dist/applications/application.model.js +120 -27
- package/dist/applications/applications-task.model.d.ts +300 -0
- package/dist/applications/applications-task.model.d.ts.map +1 -0
- package/dist/applications/applications-task.model.js +50 -0
- package/dist/applications/applications-task.type.d.ts +57 -0
- package/dist/applications/applications-task.type.d.ts.map +1 -0
- package/dist/applications/applications-task.type.js +1 -0
- package/dist/applications/broker.model.d.ts +54 -26
- package/dist/applications/broker.model.d.ts.map +1 -1
- package/dist/applications/broker.model.js +5 -2
- package/dist/applications/broker.type.d.ts +51 -0
- package/dist/applications/broker.type.d.ts.map +1 -0
- package/dist/applications/broker.type.js +1 -0
- package/dist/applications/index.d.ts +16 -2
- package/dist/applications/index.d.ts.map +1 -1
- package/dist/applications/index.js +5 -2
- package/dist/applications/productfeatures.model.d.ts +368 -0
- package/dist/applications/productfeatures.model.d.ts.map +1 -0
- package/dist/applications/solicitor.model.d.ts +43 -14
- package/dist/applications/solicitor.model.d.ts.map +1 -1
- package/dist/applications/solicitor.model.js +8 -1
- package/dist/applications/solicitor.type.d.ts +56 -0
- package/dist/applications/solicitor.type.d.ts.map +1 -0
- package/dist/applications/solicitor.type.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/product-catalogues/index.d.ts +3 -0
- package/dist/product-catalogues/index.d.ts.map +1 -1
- package/dist/product-catalogues/product-catalogue.model.d.ts +30 -2
- package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-catalogue.model.js +4 -0
- package/dist/product-catalogues/product-catalogue.type.d.ts +15 -0
- package/dist/product-catalogues/product-catalogue.type.d.ts.map +1 -0
- package/dist/product-catalogues/product-catalogue.type.js +1 -0
- package/dist/product-catalogues/product-definitions.model.d.ts +30 -2
- package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-definitions.model.js +3 -0
- package/dist/product-catalogues/product-definitions.type.d.ts +53 -0
- package/dist/product-catalogues/product-definitions.type.d.ts.map +1 -0
- package/dist/product-catalogues/product-definitions.type.js +1 -0
- package/dist/product-catalogues/product-variant.model.d.ts +30 -2
- package/dist/product-catalogues/product-variant.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-variant.model.js +4 -0
- package/dist/product-catalogues/product-variant.type.d.ts +38 -0
- package/dist/product-catalogues/product-variant.type.d.ts.map +1 -0
- package/dist/product-catalogues/product-variant.type.js +1 -0
- package/dist/properties/property.model.d.ts +102 -59
- package/dist/properties/property.model.d.ts.map +1 -1
- package/dist/properties/property.model.js +16 -8
- package/dist/properties/security.model.d.ts +48 -2
- package/dist/properties/security.model.d.ts.map +1 -1
- package/dist/properties/security.model.js +15 -3
- package/dist/shared/alert.model.d.ts +42 -14
- package/dist/shared/alert.model.d.ts.map +1 -1
- package/dist/shared/api-log.model.d.ts +124 -0
- package/dist/shared/api-log.model.d.ts.map +1 -0
- package/dist/shared/api-log.model.js +25 -0
- package/dist/shared/api-performance.model.d.ts +37 -0
- package/dist/shared/api-performance.model.d.ts.map +1 -0
- package/dist/shared/api-performance.model.js +22 -0
- package/dist/shared/api-performance.type.d.ts +178 -0
- package/dist/shared/api-performance.type.d.ts.map +1 -0
- package/dist/shared/api-performance.type.js +1 -0
- package/dist/shared/apprivo-sync-journey.model.d.ts +36 -8
- package/dist/shared/apprivo-sync-journey.model.d.ts.map +1 -1
- package/dist/shared/apprivo-sync-journey.model.js +2 -0
- package/dist/shared/checklist.model.d.ts +36 -8
- package/dist/shared/checklist.model.d.ts.map +1 -1
- package/dist/shared/checklist.model.js +5 -0
- package/dist/shared/index.d.ts +7 -1
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +5 -1
- package/dist/shared/job-run.model.d.ts +30 -2
- package/dist/shared/job-run.model.d.ts.map +1 -1
- package/dist/shared/job-setting.model.d.ts +36 -8
- package/dist/shared/job-setting.model.d.ts.map +1 -1
- package/dist/shared/lookup-group.model.d.ts +30 -2
- package/dist/shared/lookup-group.model.d.ts.map +1 -1
- package/dist/shared/lookup-group.model.js +6 -0
- package/dist/shared/lookup.model.d.ts +30 -2
- package/dist/shared/lookup.model.d.ts.map +1 -1
- package/dist/shared/lookup.model.js +7 -0
- package/dist/shared/schema-doc.model.d.ts +36 -8
- package/dist/shared/schema-doc.model.d.ts.map +1 -1
- package/dist/shared/system-parameter.model.d.ts +36 -8
- package/dist/shared/system-parameter.model.d.ts.map +1 -1
- package/dist/shared/task-document.model.d.ts +36 -8
- package/dist/shared/task-document.model.d.ts.map +1 -1
- package/dist/shared/task.model.d.ts +36 -8
- package/dist/shared/task.model.d.ts.map +1 -1
- package/dist/shared/webhook-event.model.d.ts +37 -0
- package/dist/shared/webhook-event.model.d.ts.map +1 -0
- package/dist/shared/webhook-event.model.js +57 -0
- package/dist/shared/webhook-event.type.d.ts +15 -0
- package/dist/shared/webhook-event.type.d.ts.map +1 -0
- package/dist/shared/webhook-event.type.js +1 -0
- package/dist/shared/workflow-trigger.model.d.ts +32 -0
- package/dist/shared/workflow-trigger.model.d.ts.map +1 -0
- package/dist/shared/workflow-trigger.model.js +49 -0
- package/dist/shared/workflow-trigger.type.d.ts +60 -0
- package/dist/shared/workflow-trigger.type.d.ts.map +1 -0
- package/dist/shared/workflow-trigger.type.js +1 -0
- package/dist/shared/workflow.init.d.ts +21 -0
- package/dist/shared/workflow.init.d.ts.map +1 -0
- package/dist/shared/workflow.init.js +42 -0
- package/dist/shared/workflow.logger.d.ts +18 -0
- package/dist/shared/workflow.logger.d.ts.map +1 -0
- package/dist/shared/workflow.logger.js +41 -0
- package/dist/shared/workflow.middleware.d.ts +108 -0
- package/dist/shared/workflow.middleware.d.ts.map +1 -0
- package/dist/shared/workflow.middleware.js +246 -0
- package/dist/shared/workflow.plugin.d.ts +46 -0
- package/dist/shared/workflow.plugin.d.ts.map +1 -0
- package/dist/shared/workflow.plugin.js +151 -0
- package/dist/shared/workflow.service.d.ts +42 -0
- package/dist/shared/workflow.service.d.ts.map +1 -0
- package/dist/shared/workflow.service.js +134 -0
- package/dist/types/base.types.d.ts +35 -0
- package/dist/types/base.types.d.ts.map +1 -0
- package/dist/types/base.types.js +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/underwriter/underwriter.model.d.ts +30 -2
- package/dist/underwriter/underwriter.model.d.ts.map +1 -1
- package/dist/users/auth-log.model.d.ts +30 -2
- package/dist/users/auth-log.model.d.ts.map +1 -1
- package/dist/users/auth-log.model.js +3 -0
- package/dist/users/permission.model.d.ts +30 -2
- package/dist/users/permission.model.d.ts.map +1 -1
- package/dist/users/permission.model.js +2 -0
- package/dist/users/role-group.model.d.ts +30 -2
- package/dist/users/role-group.model.d.ts.map +1 -1
- package/dist/users/role-group.model.js +3 -0
- package/dist/users/role.model.d.ts +30 -2
- package/dist/users/role.model.d.ts.map +1 -1
- package/dist/users/role.model.js +3 -0
- package/dist/users/tasks.model.d.ts +30 -2
- package/dist/users/tasks.model.d.ts.map +1 -1
- package/dist/users/tasks.model.js +4 -1
- package/dist/users/user.model.d.ts +48 -14
- package/dist/users/user.model.d.ts.map +1 -1
- package/dist/users/user.model.js +13 -2
- package/dist/users/user.type.d.ts +55 -0
- package/dist/users/user.type.d.ts.map +1 -0
- package/dist/users/user.type.js +1 -0
- package/dist/value-objects/account-number.d.ts +42 -0
- package/dist/value-objects/account-number.d.ts.map +1 -0
- package/dist/value-objects/account-number.js +24 -0
- package/dist/value-objects/pound.d.ts +28 -0
- package/dist/value-objects/pound.d.ts.map +1 -1
- package/dist/value-objects/pound.js +33 -9
- package/dist/value-objects/sort-code.d.ts +27 -0
- package/dist/value-objects/sort-code.d.ts.map +1 -1
- package/dist/value-objects/sort-code.js +13 -4
- package/package.json +33 -29
- package/dist/applicants/applicant-income.model.js +0 -78
- package/dist/applications/application-document.model.js +0 -35
- package/dist/applications/document.model.js +0 -35
- package/dist/entities/applicants/applicant-credit-data.entity.d.ts +0 -19
- package/dist/entities/applicants/applicant-credit-data.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-credit-data.entity.js +0 -5
- package/dist/entities/applicants/applicant-credit-profile.entity.d.ts +0 -14
- package/dist/entities/applicants/applicant-credit-profile.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-credit-profile.entity.js +0 -5
- package/dist/entities/applicants/applicant-employment-income.entity.d.ts +0 -14
- package/dist/entities/applicants/applicant-employment-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-employment-income.entity.js +0 -5
- package/dist/entities/applicants/applicant-employment.entity.d.ts +0 -54
- package/dist/entities/applicants/applicant-employment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-employment.entity.js +0 -5
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts +0 -14
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-expenditure.entity.js +0 -5
- package/dist/entities/applicants/applicant-income-settings.entity.d.ts +0 -17
- package/dist/entities/applicants/applicant-income-settings.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-income-settings.entity.js +0 -5
- package/dist/entities/applicants/applicant-income.entity.d.ts +0 -77
- package/dist/entities/applicants/applicant-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-income.entity.js +0 -2
- package/dist/entities/applicants/applicant-share-holding.entity.d.ts +0 -18
- package/dist/entities/applicants/applicant-share-holding.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-share-holding.entity.js +0 -5
- package/dist/entities/applicants/applicant.entity.d.ts +0 -144
- package/dist/entities/applicants/applicant.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant.entity.js +0 -48
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts +0 -22
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/credit-card-commitment.entity.js +0 -9
- package/dist/entities/applicants/index.d.ts +0 -20
- package/dist/entities/applicants/index.d.ts.map +0 -1
- package/dist/entities/applicants/index.js +0 -18
- package/dist/entities/applicants/loan-commitment.entity.d.ts +0 -29
- package/dist/entities/applicants/loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/loan-commitment.entity.js +0 -15
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts +0 -50
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/mortgage-commitment.entity.js +0 -27
- package/dist/entities/applicants/other-income.entity.d.ts +0 -41
- package/dist/entities/applicants/other-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/other-income.entity.js +0 -19
- package/dist/entities/applicants/property-income.entity.d.ts +0 -17
- package/dist/entities/applicants/property-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/property-income.entity.js +0 -5
- package/dist/entities/applicants/residence-commitment.entity.d.ts +0 -44
- package/dist/entities/applicants/residence-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/residence-commitment.entity.js +0 -19
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts +0 -29
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/secure-loan-commitment.entity.js +0 -12
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts +0 -29
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/unsecured-loan-commitment.entity.js +0 -12
- package/dist/entities/applications/application-audit.entity.d.ts +0 -18
- package/dist/entities/applications/application-audit.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-audit.entity.js +0 -5
- package/dist/entities/applications/application-company.entity.d.ts +0 -60
- package/dist/entities/applications/application-company.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-company.entity.js +0 -15
- package/dist/entities/applications/application-credit-profile.entity.d.ts +0 -11
- package/dist/entities/applications/application-credit-profile.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-credit-profile.entity.js +0 -5
- package/dist/entities/applications/application-direct-debit.entity.d.ts +0 -24
- package/dist/entities/applications/application-direct-debit.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-direct-debit.entity.js +0 -5
- package/dist/entities/applications/application-document.entity.d.ts +0 -28
- package/dist/entities/applications/application-document.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-document.entity.js +0 -5
- package/dist/entities/applications/application-fieldconfig.entity.d.ts +0 -9
- package/dist/entities/applications/application-fieldconfig.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-fieldconfig.entity.js +0 -5
- package/dist/entities/applications/application-illustration.entity.d.ts +0 -8
- package/dist/entities/applications/application-illustration.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-illustration.entity.js +0 -5
- package/dist/entities/applications/application-legal.entity.d.ts +0 -9
- package/dist/entities/applications/application-legal.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-legal.entity.js +0 -5
- package/dist/entities/applications/application-mortgage.entity.d.ts +0 -55
- package/dist/entities/applications/application-mortgage.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-mortgage.entity.js +0 -27
- package/dist/entities/applications/application-note.entity.d.ts +0 -37
- package/dist/entities/applications/application-note.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-note.entity.js +0 -5
- package/dist/entities/applications/application-offer.entity.d.ts +0 -8
- package/dist/entities/applications/application-offer.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-offer.entity.js +0 -5
- package/dist/entities/applications/application-onboarding.entity.d.ts +0 -11
- package/dist/entities/applications/application-onboarding.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-onboarding.entity.js +0 -5
- package/dist/entities/applications/application-product.entity.d.ts +0 -33
- package/dist/entities/applications/application-product.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-product.entity.js +0 -5
- package/dist/entities/applications/application-rationale.entity.d.ts +0 -51
- package/dist/entities/applications/application-rationale.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-rationale.entity.js +0 -5
- package/dist/entities/applications/application.entity.d.ts +0 -102
- package/dist/entities/applications/application.entity.d.ts.map +0 -1
- package/dist/entities/applications/application.entity.js +0 -66
- package/dist/entities/applications/broker.entity.d.ts +0 -23
- package/dist/entities/applications/broker.entity.d.ts.map +0 -1
- package/dist/entities/applications/broker.entity.js +0 -5
- package/dist/entities/applications/checklist-item.entity.d.ts +0 -47
- package/dist/entities/applications/checklist-item.entity.d.ts.map +0 -1
- package/dist/entities/applications/checklist-item.entity.js +0 -5
- package/dist/entities/applications/index.d.ts +0 -22
- package/dist/entities/applications/index.d.ts.map +0 -1
- package/dist/entities/applications/index.js +0 -20
- package/dist/entities/applications/product-features.entity.d.ts +0 -104
- package/dist/entities/applications/product-features.entity.d.ts.map +0 -1
- package/dist/entities/applications/product-features.entity.js +0 -20
- package/dist/entities/applications/solicitor.entity.d.ts +0 -33
- package/dist/entities/applications/solicitor.entity.d.ts.map +0 -1
- package/dist/entities/applications/solicitor.entity.js +0 -5
- package/dist/entities/index.d.ts +0 -10
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/index.js +0 -10
- package/dist/entities/prisma.d.ts +0 -3
- package/dist/entities/prisma.d.ts.map +0 -1
- package/dist/entities/prisma.js +0 -10
- package/dist/entities/product-catalogues/index.d.ts +0 -7
- package/dist/entities/product-catalogues/index.d.ts.map +0 -1
- package/dist/entities/product-catalogues/index.js +0 -5
- package/dist/entities/product-catalogues/product-catalogue.entity.d.ts +0 -22
- package/dist/entities/product-catalogues/product-catalogue.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product-catalogue.entity.js +0 -5
- package/dist/entities/product-catalogues/product-definition.entity.d.ts +0 -28
- package/dist/entities/product-catalogues/product-definition.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product-definition.entity.js +0 -5
- package/dist/entities/product-catalogues/product-variant.entity.d.ts +0 -14
- package/dist/entities/product-catalogues/product-variant.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product-variant.entity.js +0 -5
- package/dist/entities/product-catalogues/product.entity.d.ts +0 -11
- package/dist/entities/product-catalogues/product.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product.entity.js +0 -5
- package/dist/entities/properties/data-street.entity.d.ts +0 -22
- package/dist/entities/properties/data-street.entity.d.ts.map +0 -1
- package/dist/entities/properties/data-street.entity.js +0 -5
- package/dist/entities/properties/index.d.ts +0 -6
- package/dist/entities/properties/index.d.ts.map +0 -1
- package/dist/entities/properties/index.js +0 -4
- package/dist/entities/properties/property.entity.d.ts +0 -30
- package/dist/entities/properties/property.entity.d.ts.map +0 -1
- package/dist/entities/properties/property.entity.js +0 -5
- package/dist/entities/properties/security.entity.d.ts +0 -58
- package/dist/entities/properties/security.entity.d.ts.map +0 -1
- package/dist/entities/properties/security.entity.js +0 -5
- package/dist/entities/shared/alert.entity.d.ts +0 -14
- package/dist/entities/shared/alert.entity.d.ts.map +0 -1
- package/dist/entities/shared/alert.entity.js +0 -5
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts +0 -19
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts.map +0 -1
- package/dist/entities/shared/apprivo-sync-journey.entity.js +0 -5
- package/dist/entities/shared/checklist.entity.d.ts +0 -15
- package/dist/entities/shared/checklist.entity.d.ts.map +0 -1
- package/dist/entities/shared/checklist.entity.js +0 -5
- package/dist/entities/shared/document-type.entity.d.ts +0 -9
- package/dist/entities/shared/document-type.entity.d.ts.map +0 -1
- package/dist/entities/shared/document-type.entity.js +0 -5
- package/dist/entities/shared/index.d.ts +0 -12
- package/dist/entities/shared/index.d.ts.map +0 -1
- package/dist/entities/shared/index.js +0 -10
- package/dist/entities/shared/job-run.entity.d.ts +0 -15
- package/dist/entities/shared/job-run.entity.d.ts.map +0 -1
- package/dist/entities/shared/job-run.entity.js +0 -5
- package/dist/entities/shared/job-run.model.d.ts +0 -11
- package/dist/entities/shared/job-run.model.d.ts.map +0 -1
- package/dist/entities/shared/job-setting.entity.d.ts +0 -11
- package/dist/entities/shared/job-setting.entity.d.ts.map +0 -1
- package/dist/entities/shared/job-setting.entity.js +0 -5
- package/dist/entities/shared/lookup-group.entity.d.ts +0 -11
- package/dist/entities/shared/lookup-group.entity.d.ts.map +0 -1
- package/dist/entities/shared/lookup-group.entity.js +0 -5
- package/dist/entities/shared/lookup.entity.d.ts +0 -14
- package/dist/entities/shared/lookup.entity.d.ts.map +0 -1
- package/dist/entities/shared/lookup.entity.js +0 -5
- package/dist/entities/shared/system-parameter.entity.d.ts +0 -10
- package/dist/entities/shared/system-parameter.entity.d.ts.map +0 -1
- package/dist/entities/shared/system-parameter.entity.js +0 -5
- package/dist/entities/underwriter/index.d.ts +0 -4
- package/dist/entities/underwriter/index.d.ts.map +0 -1
- package/dist/entities/underwriter/index.js +0 -2
- package/dist/entities/underwriter/underwriter.entity.d.ts +0 -19
- package/dist/entities/underwriter/underwriter.entity.d.ts.map +0 -1
- package/dist/entities/underwriter/underwriter.entity.js +0 -5
- package/dist/entities/users/auth-log.entity.d.ts +0 -11
- package/dist/entities/users/auth-log.entity.d.ts.map +0 -1
- package/dist/entities/users/auth-log.entity.js +0 -5
- package/dist/entities/users/index.d.ts +0 -8
- package/dist/entities/users/index.d.ts.map +0 -1
- package/dist/entities/users/index.js +0 -6
- package/dist/entities/users/permission.entity.d.ts +0 -12
- package/dist/entities/users/permission.entity.d.ts.map +0 -1
- package/dist/entities/users/permission.entity.js +0 -5
- package/dist/entities/users/role-group.entity.d.ts +0 -13
- package/dist/entities/users/role-group.entity.d.ts.map +0 -1
- package/dist/entities/users/role-group.entity.js +0 -5
- package/dist/entities/users/role.entity.d.ts +0 -16
- package/dist/entities/users/role.entity.d.ts.map +0 -1
- package/dist/entities/users/role.entity.js +0 -5
- package/dist/entities/users/user.entity.d.ts +0 -33
- package/dist/entities/users/user.entity.d.ts.map +0 -1
- package/dist/entities/users/user.entity.js +0 -5
- package/dist/shared/document-type-model.js +0 -10
- package/entities/applicants/applicant-credit-data.entity.ts +0 -24
- package/entities/applicants/applicant-credit-profile.entity.ts +0 -19
- package/entities/applicants/applicant-employment-income.entity.ts +0 -18
- package/entities/applicants/applicant-employment.entity.ts +0 -60
- package/entities/applicants/applicant-expenditure.entity.ts +0 -19
- package/entities/applicants/applicant-income-settings.entity.ts +0 -22
- package/entities/applicants/applicant-income.entity.ts +0 -79
- package/entities/applicants/applicant-share-holding.entity.ts +0 -23
- package/entities/applicants/applicant.entity.ts +0 -194
- package/entities/applicants/credit-card-commitment.entity.ts +0 -31
- package/entities/applicants/index.ts +0 -59
- package/entities/applicants/loan-commitment.entity.ts +0 -44
- package/entities/applicants/mortgage-commitment.entity.ts +0 -77
- package/entities/applicants/other-income.entity.ts +0 -68
- package/entities/applicants/property-income.entity.ts +0 -19
- package/entities/applicants/residence-commitment.entity.ts +0 -63
- package/entities/applicants/secure-loan-commitment.entity.ts +0 -41
- package/entities/applicants/unsecured-loan-commitment.entity.ts +0 -41
- package/entities/applications/application-audit.entity.ts +0 -23
- package/entities/applications/application-company.entity.ts +0 -76
- package/entities/applications/application-credit-profile.entity.ts +0 -13
- package/entities/applications/application-direct-debit.entity.ts +0 -29
- package/entities/applications/application-document.entity.ts +0 -33
- package/entities/applications/application-fieldconfig.entity.ts +0 -11
- package/entities/applications/application-illustration.entity.ts +0 -10
- package/entities/applications/application-legal.entity.ts +0 -11
- package/entities/applications/application-mortgage.entity.ts +0 -82
- package/entities/applications/application-note.entity.ts +0 -42
- package/entities/applications/application-offer.entity.ts +0 -10
- package/entities/applications/application-onboarding.entity.ts +0 -13
- package/entities/applications/application-product.entity.ts +0 -38
- package/entities/applications/application-rationale.entity.ts +0 -56
- package/entities/applications/application.entity.ts +0 -168
- package/entities/applications/broker.entity.ts +0 -25
- package/entities/applications/checklist-item.entity.ts +0 -49
- package/entities/applications/index.ts +0 -63
- package/entities/applications/product-features.entity.ts +0 -118
- package/entities/applications/solicitor.entity.ts +0 -38
- package/entities/index.ts +0 -14
- package/entities/prisma.ts +0 -13
- package/entities/product-catalogues/index.ts +0 -20
- package/entities/product-catalogues/product-catalogue.entity.ts +0 -27
- package/entities/product-catalogues/product-definition.entity.ts +0 -34
- package/entities/product-catalogues/product-variant.entity.ts +0 -19
- package/entities/product-catalogues/product.entity.ts +0 -16
- package/entities/properties/data-street.entity.ts +0 -27
- package/entities/properties/index.ts +0 -17
- package/entities/properties/property.entity.ts +0 -35
- package/entities/properties/security.entity.ts +0 -63
- package/entities/shared/alert.entity.ts +0 -19
- package/entities/shared/apprivo-sync-journey.entity.ts +0 -25
- package/entities/shared/apprivo-sync-journey.model.ts +0 -13
- package/entities/shared/checklist.entity.ts +0 -20
- package/entities/shared/document-type.entity.ts +0 -11
- package/entities/shared/index.ts +0 -35
- package/entities/shared/job-run.entity.ts +0 -20
- package/entities/shared/job-run.model.ts +0 -10
- package/entities/shared/job-setting.entity.ts +0 -13
- package/entities/shared/lookup-group.entity.ts +0 -16
- package/entities/shared/lookup.entity.ts +0 -19
- package/entities/shared/system-parameter.entity.ts +0 -13
- package/entities/underwriter/index.ts +0 -7
- package/entities/underwriter/underwriter.entity.ts +0 -24
- package/entities/users/auth-log.entity.ts +0 -13
- package/entities/users/index.ts +0 -23
- package/entities/users/permission.entity.ts +0 -17
- package/entities/users/role-group.entity.ts +0 -18
- package/entities/users/role.entity.ts +0 -21
- package/entities/users/user.entity.ts +0 -38
- package/prisma/applicants/applicant-credit-data.prisma +0 -19
- package/prisma/applicants/applicant-credit-profile.prisma +0 -15
- package/prisma/applicants/applicant-employment-income.prisma +0 -15
- package/prisma/applicants/applicant-employment.prisma +0 -54
- package/prisma/applicants/applicant-expenditure.prisma +0 -14
- package/prisma/applicants/applicant-income-settings.prisma +0 -17
- package/prisma/applicants/applicant-income.prisma +0 -78
- package/prisma/applicants/applicant-other-income.prisma +0 -45
- package/prisma/applicants/applicant-property-income.prisma +0 -21
- package/prisma/applicants/applicant-share-holding.prisma +0 -17
- package/prisma/applicants/applicant.prisma +0 -130
- package/prisma/applicants/credit-card-commitment.prisma +0 -21
- package/prisma/applicants/loan-commitment.prisma +0 -26
- package/prisma/applicants/mortgage-commitment.prisma +0 -43
- package/prisma/applicants/residence-commitment.prisma +0 -41
- package/prisma/applicants/secured-loan-commitment.prisma +0 -27
- package/prisma/applicants/unsecured-loan-commitment.prisma +0 -27
- package/prisma/applications/application-audit.prisma +0 -19
- package/prisma/applications/application-company.prisma +0 -56
- package/prisma/applications/application-credit-profile.prisma +0 -15
- package/prisma/applications/application-direct-debit.prisma +0 -27
- package/prisma/applications/application-document.prisma +0 -28
- package/prisma/applications/application-fieldconfig.prisma +0 -9
- package/prisma/applications/application-illustration.prisma +0 -8
- package/prisma/applications/application-legal.prisma +0 -9
- package/prisma/applications/application-mortgage.prisma +0 -48
- package/prisma/applications/application-note.prisma +0 -36
- package/prisma/applications/application-offer.prisma +0 -8
- package/prisma/applications/application-onboarding.prisma +0 -11
- package/prisma/applications/application-product.prisma +0 -33
- package/prisma/applications/application-rationale.prisma +0 -51
- package/prisma/applications/application.prisma +0 -92
- package/prisma/applications/broker.prisma +0 -26
- package/prisma/applications/checklist-item.prisma +0 -47
- package/prisma/applications/checklist.prisma +0 -19
- package/prisma/applications/product-features.prisma +0 -122
- package/prisma/applications/solicitor.prisma +0 -33
- package/prisma/broker.entity.ts +0 -8
- package/prisma/migrations/20250501070203_initial_migration/migration.sql +0 -2044
- package/prisma/migrations/20250501102630_job_setting_name_change/migration.sql +0 -10
- package/prisma/migrations/20250501104920_milstone_update/migration.sql +0 -30
- package/prisma/migrations/20250501105546_apprivo_sync_journey_update/migration.sql +0 -9
- package/prisma/migrations/20250501105850_job_run_update/migration.sql +0 -13
- package/prisma/migrations/20250505115236_update_application_schema/migration.sql +0 -115
- package/prisma/migrations/20250505145328_update_broker_schema/migration.sql +0 -8
- package/prisma/migrations/20250505185034_update_direct_debit_schema/migration.sql +0 -27
- package/prisma/migrations/20250505190613_update_solicitor_schema/migration.sql +0 -29
- package/prisma/migrations/20250506054831_update_note_schema/migration.sql +0 -12
- package/prisma/migrations/20250506142218_update_broker_schema/migration.sql +0 -17
- package/prisma/migrations/20250506190258_update_application_note_schema/migration.sql +0 -32
- package/prisma/migrations/20250506204635_update_mortgage_schema/migration.sql +0 -26
- package/prisma/migrations/20250507122847_applicant_retirement_age/migration.sql +0 -9
- package/prisma/migrations/20250507184905_update_mortgage_schema/migration.sql +0 -8
- package/prisma/migrations/20250507194746_update_direct_debit_schema/migration.sql +0 -5
- package/prisma/migrations/20250508092417_update_application_schema/migration.sql +0 -3
- package/prisma/migrations/20250508094735_update_direct_debit_schema/migration.sql +0 -2
- package/prisma/migrations/20250509073536_update_applicant_schema/migration.sql +0 -4
- package/prisma/migrations/20250509111029_update_solicitor_schema/migration.sql +0 -2
- package/prisma/migrations/20250509125107_update_mortgage_schema/migration.sql +0 -19
- package/prisma/migrations/20250512071728_update_mortgage_schema/migration.sql +0 -15
- package/prisma/migrations/20250512094011_update_property_schema/migration.sql +0 -34
- package/prisma/migrations/20250512102019_update_mortgage_schema/migration.sql +0 -2
- package/prisma/migrations/20250513132704_update_credit_card_commitment_schema/migration.sql +0 -22
- package/prisma/migrations/20250513143530_update_credit_card_commitment_schema/migration.sql +0 -8
- package/prisma/migrations/20250513170654_update_mortgage_commitment_schema/migration.sql +0 -89
- package/prisma/migrations/20250513183558_update_loan_commitment_schema/migration.sql +0 -33
- package/prisma/migrations/20250513184341_update_loan_commitment_schema/migration.sql +0 -4
- package/prisma/migrations/20250513202307_update_role_schema/migration.sql +0 -12
- package/prisma/migrations/20250514062536_update_role_group_schema/migration.sql +0 -12
- package/prisma/migrations/20250514064054_update_user_schema/migration.sql +0 -12
- package/prisma/migrations/20250514071524_update_user_schema/migration.sql +0 -15
- package/prisma/migrations/20250514072729_update_user_schema/migration.sql +0 -18
- package/prisma/migrations/20250514102042_update_user_rolegroup_role_schemas/migration.sql +0 -9
- package/prisma/migrations/20250514183537_update_application_company_schema/migration.sql +0 -100
- package/prisma/migrations/20250514194139_update_applicant_share_holding_schema/migration.sql +0 -11
- package/prisma/migrations/20250515132015_update_underwriter_schema/migration.sql +0 -56
- package/prisma/migrations/20250515133236_update_underwriter_schema/migration.sql +0 -12
- package/prisma/migrations/20250515172824_update_security_schema/migration.sql +0 -43
- package/prisma/migrations/20250516053810_update_underwriter_schema/migration.sql +0 -14
- package/prisma/migrations/20250516075153_update_commitments_schemas/migration.sql +0 -134
- package/prisma/migrations/20250516094438_update_credit_card_commitment_schema/migration.sql +0 -8
- package/prisma/migrations/20250519075211_update_product_features_schema/migration.sql +0 -15
- package/prisma/migrations/20250519094725_update_product_feature_schema/migration.sql +0 -163
- package/prisma/migrations/20250519133154_update_employemnt_income_schema/migration.sql +0 -11
- package/prisma/migrations/20250519181411_update_applicant_income_schema/migration.sql +0 -65
- package/prisma/migrations/20250520030945_update_income_settings_schema/migration.sql +0 -44
- package/prisma/migrations/20250520061455_update_income_settings_schema/migration.sql +0 -11
- package/prisma/migrations/20250521173204_update_product_catalogue_schema/migration.sql +0 -28
- package/prisma/migrations/20250521180300_update_product_variant_schema/migration.sql +0 -8
- package/prisma/migrations/20250521191050_update_product_definition_schema/migration.sql +0 -23
- package/prisma/migrations/20250521192012_update_product_definition_schema/migration.sql +0 -9
- package/prisma/migrations/20250521194549_update_product_definition_schema/migration.sql +0 -14
- package/prisma/migrations/migration_lock.toml +0 -3
- package/prisma/product-catalogues/product-catalogue.prisma +0 -22
- package/prisma/product-catalogues/product-definition.prisma +0 -16
- package/prisma/product-catalogues/product-variant.prisma +0 -15
- package/prisma/product-catalogues/product.prisma +0 -10
- package/prisma/properties/property.prisma +0 -30
- package/prisma/properties/security.prisma +0 -81
- package/prisma/schema.prisma +0 -1955
- package/prisma/shared/alert.prisma +0 -15
- package/prisma/shared/apprivo-sync-journey.prisma +0 -19
- package/prisma/shared/checklist.prisma +0 -10
- package/prisma/shared/document-type.prisma +0 -9
- package/prisma/shared/job-run.prisma +0 -15
- package/prisma/shared/job-setting.prisma +0 -11
- package/prisma/shared/lookup-group.prisma +0 -12
- package/prisma/shared/lookup.prisma +0 -154
- package/prisma/shared/system-parameter.prisma +0 -16
- package/prisma/underwriter/underwriter.prisma +0 -20
- package/prisma/users/auth-log.prisma +0 -11
- package/prisma/users/permission.prisma +0 -13
- package/prisma/users/role-group.prisma +0 -15
- package/prisma/users/role.prisma +0 -15
- package/prisma/users/user.prisma +0 -30
- /package/dist/{entities/shared/job-run.model.js → applicants/applicant-additional-income.type.js} +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
-
import {
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
|
+
import { Pound, formatPound } from "../value-objects/pound";
|
|
4
|
+
import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
|
|
3
5
|
const propertyIncomeSchema = new mongoose.Schema({
|
|
4
6
|
applicantId: {
|
|
5
7
|
type: mongoose.Schema.Types.ObjectId,
|
|
@@ -8,16 +10,25 @@ const propertyIncomeSchema = new mongoose.Schema({
|
|
|
8
10
|
},
|
|
9
11
|
// Latest tax year
|
|
10
12
|
yearEnd1: { type: Number, required: true },
|
|
11
|
-
|
|
12
|
-
netProfit1: { type: Pound, required: true },
|
|
13
|
+
netProfitAfterTax1: { type: Pound, required: true, get: formatPound },
|
|
14
|
+
netProfit1: { type: Pound, required: true, get: formatPound },
|
|
13
15
|
// Previous tax year
|
|
14
16
|
yearEnd2: { type: Number, required: true },
|
|
15
|
-
|
|
16
|
-
netProfit2: { type: Pound, required: true },
|
|
17
|
+
netProfitAfterTax2: { type: Pound, required: true, get: formatPound },
|
|
18
|
+
netProfit2: { type: Pound, required: true, get: formatPound },
|
|
17
19
|
// Previous tax year
|
|
18
20
|
yearEnd3: { type: Number, required: true },
|
|
19
|
-
|
|
20
|
-
netProfit3: { type: Pound, required: true }
|
|
21
|
+
netProfitAfterTax3: { type: Pound, required: true, get: formatPound },
|
|
22
|
+
netProfit3: { type: Pound, required: true, get: formatPound }
|
|
21
23
|
});
|
|
24
|
+
propertyIncomeSchema.virtual('incomeSourceId').get(function () {
|
|
25
|
+
return this.applicantId?.incomeSourceId instanceof mongoose.Types.ObjectId
|
|
26
|
+
? null
|
|
27
|
+
: this.applicantId?.incomeSourceId?.incomeFromProperty || null;
|
|
28
|
+
});
|
|
29
|
+
applyAuditMiddleware(propertyIncomeSchema, "Applicant_Property_Income");
|
|
30
|
+
// Apply workflow plugin to the schema
|
|
31
|
+
applyWorkflowPlugin(propertyIncomeSchema, 'applicant_property_income');
|
|
32
|
+
propertyIncomeSchema.index({ applicantId: 1 });
|
|
22
33
|
const ApplicantPropertyIncomeModel = mongoose.model("Applicant_Property_Income", propertyIncomeSchema);
|
|
23
34
|
export default ApplicantPropertyIncomeModel;
|
|
@@ -1,11 +1,39 @@
|
|
|
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 applicantRiskNarrativeSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
3
31
|
call2StatusLid: mongoose.Types.ObjectId;
|
|
4
32
|
statusLid: mongoose.Types.ObjectId;
|
|
5
33
|
docVerificationStatusLid: mongoose.Types.ObjectId;
|
|
6
34
|
link?: string | null | undefined;
|
|
7
|
-
riskRating?: string | null | undefined;
|
|
8
35
|
clientReference?: string | null | undefined;
|
|
36
|
+
riskRating?: string | null | undefined;
|
|
9
37
|
isPoaTaskGenerated?: string | null | undefined;
|
|
10
38
|
riskLevel?: string | null | undefined;
|
|
11
39
|
verificationLinkSentOn?: string | null | undefined;
|
|
@@ -14,18 +42,18 @@ declare const applicantRiskNarrativeSchema: mongoose.Schema<any, mongoose.Model<
|
|
|
14
42
|
statusLid: mongoose.Types.ObjectId;
|
|
15
43
|
docVerificationStatusLid: mongoose.Types.ObjectId;
|
|
16
44
|
link?: string | null | undefined;
|
|
17
|
-
riskRating?: string | null | undefined;
|
|
18
45
|
clientReference?: string | null | undefined;
|
|
46
|
+
riskRating?: string | null | undefined;
|
|
19
47
|
isPoaTaskGenerated?: string | null | undefined;
|
|
20
48
|
riskLevel?: string | null | undefined;
|
|
21
49
|
verificationLinkSentOn?: string | null | undefined;
|
|
22
|
-
}
|
|
50
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
23
51
|
call2StatusLid: mongoose.Types.ObjectId;
|
|
24
52
|
statusLid: mongoose.Types.ObjectId;
|
|
25
53
|
docVerificationStatusLid: mongoose.Types.ObjectId;
|
|
26
54
|
link?: string | null | undefined;
|
|
27
|
-
riskRating?: string | null | undefined;
|
|
28
55
|
clientReference?: string | null | undefined;
|
|
56
|
+
riskRating?: string | null | undefined;
|
|
29
57
|
isPoaTaskGenerated?: string | null | undefined;
|
|
30
58
|
riskLevel?: string | null | undefined;
|
|
31
59
|
verificationLinkSentOn?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-risk-narrative.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-risk-narrative.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhC,CAAC;AAEH,eAAe,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"applicant-risk-narrative.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-risk-narrative.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhC,CAAC;AAEH,eAAe,4BAA4B,CAAC"}
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
5
|
+
/// <reference types="mongoose/types/callback" />
|
|
6
|
+
/// <reference types="mongoose/types/collection" />
|
|
7
|
+
/// <reference types="mongoose/types/connection" />
|
|
8
|
+
/// <reference types="mongoose/types/cursor" />
|
|
9
|
+
/// <reference types="mongoose/types/document" />
|
|
10
|
+
/// <reference types="mongoose/types/error" />
|
|
11
|
+
/// <reference types="mongoose/types/expressions" />
|
|
12
|
+
/// <reference types="mongoose/types/helpers" />
|
|
13
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
14
|
+
/// <reference types="mongoose/types/indexes" />
|
|
15
|
+
/// <reference types="mongoose/types/models" />
|
|
16
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
17
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
18
|
+
/// <reference types="mongoose/types/populate" />
|
|
19
|
+
/// <reference types="mongoose/types/query" />
|
|
20
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
21
|
+
/// <reference types="mongoose/types/session" />
|
|
22
|
+
/// <reference types="mongoose/types/types" />
|
|
23
|
+
/// <reference types="mongoose/types/utility" />
|
|
24
|
+
/// <reference types="mongoose/types/validation" />
|
|
25
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
26
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
27
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
28
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
1
29
|
import mongoose from "mongoose";
|
|
2
30
|
import { Pound } from "../value-objects/pound";
|
|
3
31
|
declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
@@ -25,14 +53,14 @@ declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
|
25
53
|
} | null | undefined;
|
|
26
54
|
set?: {} | null | undefined;
|
|
27
55
|
validate?: {} | null | undefined;
|
|
56
|
+
index?: {} | null | undefined;
|
|
28
57
|
default?: {} | null | undefined;
|
|
29
58
|
text?: {} | null | undefined;
|
|
30
59
|
unique?: {} | null | undefined;
|
|
31
|
-
index?: {} | null | undefined;
|
|
32
60
|
sparse?: {} | null | undefined;
|
|
61
|
+
cast?: {} | null | undefined;
|
|
33
62
|
required?: {} | null | undefined;
|
|
34
63
|
ref?: {} | null | undefined;
|
|
35
|
-
cast?: {} | null | undefined;
|
|
36
64
|
select?: {} | null | undefined;
|
|
37
65
|
immutable?: {} | null | undefined;
|
|
38
66
|
transform?: {} | null | undefined;
|
|
@@ -46,6 +74,7 @@ declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
|
46
74
|
instance?: unknown;
|
|
47
75
|
isRequired?: unknown;
|
|
48
76
|
path?: unknown;
|
|
77
|
+
toJSONSchema?: {} | null | undefined;
|
|
49
78
|
validateAll?: {} | null | undefined;
|
|
50
79
|
defaultOptions?: unknown;
|
|
51
80
|
} | null | undefined;
|
|
@@ -75,14 +104,14 @@ declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
|
75
104
|
} | null | undefined;
|
|
76
105
|
set?: {} | null | undefined;
|
|
77
106
|
validate?: {} | null | undefined;
|
|
107
|
+
index?: {} | null | undefined;
|
|
78
108
|
default?: {} | null | undefined;
|
|
79
109
|
text?: {} | null | undefined;
|
|
80
110
|
unique?: {} | null | undefined;
|
|
81
|
-
index?: {} | null | undefined;
|
|
82
111
|
sparse?: {} | null | undefined;
|
|
112
|
+
cast?: {} | null | undefined;
|
|
83
113
|
required?: {} | null | undefined;
|
|
84
114
|
ref?: {} | null | undefined;
|
|
85
|
-
cast?: {} | null | undefined;
|
|
86
115
|
select?: {} | null | undefined;
|
|
87
116
|
immutable?: {} | null | undefined;
|
|
88
117
|
transform?: {} | null | undefined;
|
|
@@ -96,11 +125,12 @@ declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
|
96
125
|
instance?: unknown;
|
|
97
126
|
isRequired?: unknown;
|
|
98
127
|
path?: unknown;
|
|
128
|
+
toJSONSchema?: {} | null | undefined;
|
|
99
129
|
validateAll?: {} | null | undefined;
|
|
100
130
|
defaultOptions?: unknown;
|
|
101
131
|
} | null | undefined;
|
|
102
132
|
incomeSourceLid?: mongoose.Types.ObjectId | null | undefined;
|
|
103
|
-
}> & {
|
|
133
|
+
}, {}> & {
|
|
104
134
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
105
135
|
amount?: {
|
|
106
136
|
validators: mongoose.Types.DocumentArray<{
|
|
@@ -125,14 +155,14 @@ declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
|
125
155
|
} | null | undefined;
|
|
126
156
|
set?: {} | null | undefined;
|
|
127
157
|
validate?: {} | null | undefined;
|
|
158
|
+
index?: {} | null | undefined;
|
|
128
159
|
default?: {} | null | undefined;
|
|
129
160
|
text?: {} | null | undefined;
|
|
130
161
|
unique?: {} | null | undefined;
|
|
131
|
-
index?: {} | null | undefined;
|
|
132
162
|
sparse?: {} | null | undefined;
|
|
163
|
+
cast?: {} | null | undefined;
|
|
133
164
|
required?: {} | null | undefined;
|
|
134
165
|
ref?: {} | null | undefined;
|
|
135
|
-
cast?: {} | null | undefined;
|
|
136
166
|
select?: {} | null | undefined;
|
|
137
167
|
immutable?: {} | null | undefined;
|
|
138
168
|
transform?: {} | null | undefined;
|
|
@@ -146,6 +176,7 @@ declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
|
146
176
|
instance?: unknown;
|
|
147
177
|
isRequired?: unknown;
|
|
148
178
|
path?: unknown;
|
|
179
|
+
toJSONSchema?: {} | null | undefined;
|
|
149
180
|
validateAll?: {} | null | undefined;
|
|
150
181
|
defaultOptions?: unknown;
|
|
151
182
|
} | null | undefined;
|
|
@@ -169,7 +200,7 @@ declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
|
169
200
|
applicantId: mongoose.Types.ObjectId;
|
|
170
201
|
amount: Pound;
|
|
171
202
|
incomeSourceLid: mongoose.Types.ObjectId;
|
|
172
|
-
}
|
|
203
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
173
204
|
applicantId: mongoose.Types.ObjectId;
|
|
174
205
|
amount: Pound;
|
|
175
206
|
incomeSourceLid: mongoose.Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-self-employed-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-self-employed-income.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"applicant-self-employed-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-self-employed-income.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AAwB5D,QAAA,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6E,CAAC;AAEpH,eAAe,gCAAgC,CAAC"}
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
-
import {
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
|
+
import { Pound, formatPound } from "../value-objects/pound";
|
|
4
|
+
import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
|
|
3
5
|
const selfEmployedIncomeSchema = new mongoose.Schema({
|
|
4
6
|
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
5
7
|
incomeSourceLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
|
|
6
|
-
amount: { type: Pound, default: 0.00 },
|
|
8
|
+
amount: { type: Pound, default: 0.00, required: true, get: formatPound },
|
|
7
9
|
}, {
|
|
8
10
|
toJSON: { getters: true },
|
|
9
11
|
toObject: { getters: true }
|
|
10
12
|
});
|
|
13
|
+
selfEmployedIncomeSchema.virtual('incomeSourceId').get(function () {
|
|
14
|
+
return this.applicantId?.incomeSourceId instanceof mongoose.Types.ObjectId
|
|
15
|
+
? null
|
|
16
|
+
: this.applicantId?.incomeSourceId?.incomeFromEmployment || null;
|
|
17
|
+
});
|
|
18
|
+
applyAuditMiddleware(selfEmployedIncomeSchema, "Applicant_Self_Employed_Income");
|
|
19
|
+
// Apply workflow plugin to the schema
|
|
20
|
+
selfEmployedIncomeSchema.index({ applicantId: 1 }); // Filter by applicant
|
|
21
|
+
applyWorkflowPlugin(selfEmployedIncomeSchema, 'applicant_self_employed_income');
|
|
11
22
|
const ApplicantSelfEmployedIncomeModel = mongoose.model("Applicant_Self_Employed_Income", selfEmployedIncomeSchema);
|
|
12
23
|
export default ApplicantSelfEmployedIncomeModel;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
5
|
+
/// <reference types="mongoose/types/callback" />
|
|
6
|
+
/// <reference types="mongoose/types/collection" />
|
|
7
|
+
/// <reference types="mongoose/types/connection" />
|
|
8
|
+
/// <reference types="mongoose/types/cursor" />
|
|
9
|
+
/// <reference types="mongoose/types/document" />
|
|
10
|
+
/// <reference types="mongoose/types/error" />
|
|
11
|
+
/// <reference types="mongoose/types/expressions" />
|
|
12
|
+
/// <reference types="mongoose/types/helpers" />
|
|
13
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
14
|
+
/// <reference types="mongoose/types/indexes" />
|
|
15
|
+
/// <reference types="mongoose/types/models" />
|
|
16
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
17
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
18
|
+
/// <reference types="mongoose/types/populate" />
|
|
19
|
+
/// <reference types="mongoose/types/query" />
|
|
20
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
21
|
+
/// <reference types="mongoose/types/session" />
|
|
22
|
+
/// <reference types="mongoose/types/types" />
|
|
23
|
+
/// <reference types="mongoose/types/utility" />
|
|
24
|
+
/// <reference types="mongoose/types/validation" />
|
|
25
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
26
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
27
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
28
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
|
+
import { Types } from "mongoose";
|
|
30
|
+
import { IBaseType } from "../types/base.types";
|
|
31
|
+
export default interface IApplicantSelfEmployedIncome extends IBaseType {
|
|
32
|
+
applicantId: Types.ObjectId;
|
|
33
|
+
incomeSourceLid: Types.ObjectId;
|
|
34
|
+
amount: number;
|
|
35
|
+
incomeSourceId?: string | null;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=applicant-self-employed-income.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-self-employed-income.type.d.ts","sourceRoot":"","sources":["../../applicants/applicant-self-employed-income.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,CAAC,OAAO,WAAW,4BAA6B,SAAQ,SAAS;IACnE,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC5B,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,269 @@
|
|
|
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 ApplicantSelfEmploymentModel: mongoose.Model<{
|
|
31
|
+
applicantId: mongoose.Types.ObjectId;
|
|
32
|
+
accountantsCity: string;
|
|
33
|
+
businessCity: string;
|
|
34
|
+
doYouHaveAccountant: boolean;
|
|
35
|
+
isBusinessAddressDifferent: boolean;
|
|
36
|
+
registeredCity: string;
|
|
37
|
+
businessTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
38
|
+
natureOfBusiness?: string | null | undefined;
|
|
39
|
+
industryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
40
|
+
accountantsAddressLine1?: string | null | undefined;
|
|
41
|
+
accountantsAddressLine2?: string | null | undefined;
|
|
42
|
+
accountantsAddressLine3?: string | null | undefined;
|
|
43
|
+
accountantsCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
44
|
+
accountantsEmail?: string | null | undefined;
|
|
45
|
+
accountantsPostCode?: string | null | undefined;
|
|
46
|
+
accountantsPractice?: string | null | undefined;
|
|
47
|
+
accountantsTelephoneNumber?: string | null | undefined;
|
|
48
|
+
businessAddressLine1?: string | null | undefined;
|
|
49
|
+
businessAddressLine2?: string | null | undefined;
|
|
50
|
+
businessAddressLine3?: string | null | undefined;
|
|
51
|
+
businessCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
52
|
+
businessPostCode?: string | null | undefined;
|
|
53
|
+
businessTelephoneNumber?: string | null | undefined;
|
|
54
|
+
charteredCertifiedOrOtherLid?: mongoose.Types.ObjectId | null | undefined;
|
|
55
|
+
contactName?: string | null | undefined;
|
|
56
|
+
currentYearEnd?: string | null | undefined;
|
|
57
|
+
dateEstablished?: string | null | undefined;
|
|
58
|
+
nameOfBusiness?: string | null | undefined;
|
|
59
|
+
percentageOfShareholding?: number | null | undefined;
|
|
60
|
+
registeredAddressLine1?: string | null | undefined;
|
|
61
|
+
registeredAddressLine2?: string | null | undefined;
|
|
62
|
+
registeredAddressLine3?: string | null | undefined;
|
|
63
|
+
registeredCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
64
|
+
registeredPostCode?: string | null | undefined;
|
|
65
|
+
registeredTelephone?: string | null | undefined;
|
|
66
|
+
selfEmployedDate?: string | null | undefined;
|
|
67
|
+
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
68
|
+
applicantId: mongoose.Types.ObjectId;
|
|
69
|
+
accountantsCity: string;
|
|
70
|
+
businessCity: string;
|
|
71
|
+
doYouHaveAccountant: boolean;
|
|
72
|
+
isBusinessAddressDifferent: boolean;
|
|
73
|
+
registeredCity: string;
|
|
74
|
+
businessTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
75
|
+
natureOfBusiness?: string | null | undefined;
|
|
76
|
+
industryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
77
|
+
accountantsAddressLine1?: string | null | undefined;
|
|
78
|
+
accountantsAddressLine2?: string | null | undefined;
|
|
79
|
+
accountantsAddressLine3?: string | null | undefined;
|
|
80
|
+
accountantsCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
81
|
+
accountantsEmail?: string | null | undefined;
|
|
82
|
+
accountantsPostCode?: string | null | undefined;
|
|
83
|
+
accountantsPractice?: string | null | undefined;
|
|
84
|
+
accountantsTelephoneNumber?: string | null | undefined;
|
|
85
|
+
businessAddressLine1?: string | null | undefined;
|
|
86
|
+
businessAddressLine2?: string | null | undefined;
|
|
87
|
+
businessAddressLine3?: string | null | undefined;
|
|
88
|
+
businessCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
89
|
+
businessPostCode?: string | null | undefined;
|
|
90
|
+
businessTelephoneNumber?: string | null | undefined;
|
|
91
|
+
charteredCertifiedOrOtherLid?: mongoose.Types.ObjectId | null | undefined;
|
|
92
|
+
contactName?: string | null | undefined;
|
|
93
|
+
currentYearEnd?: string | null | undefined;
|
|
94
|
+
dateEstablished?: string | null | undefined;
|
|
95
|
+
nameOfBusiness?: string | null | undefined;
|
|
96
|
+
percentageOfShareholding?: number | null | undefined;
|
|
97
|
+
registeredAddressLine1?: string | null | undefined;
|
|
98
|
+
registeredAddressLine2?: string | null | undefined;
|
|
99
|
+
registeredAddressLine3?: string | null | undefined;
|
|
100
|
+
registeredCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
101
|
+
registeredPostCode?: string | null | undefined;
|
|
102
|
+
registeredTelephone?: string | null | undefined;
|
|
103
|
+
selfEmployedDate?: string | null | undefined;
|
|
104
|
+
}, {}> & {
|
|
105
|
+
applicantId: mongoose.Types.ObjectId;
|
|
106
|
+
accountantsCity: string;
|
|
107
|
+
businessCity: string;
|
|
108
|
+
doYouHaveAccountant: boolean;
|
|
109
|
+
isBusinessAddressDifferent: boolean;
|
|
110
|
+
registeredCity: string;
|
|
111
|
+
businessTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
112
|
+
natureOfBusiness?: string | null | undefined;
|
|
113
|
+
industryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
114
|
+
accountantsAddressLine1?: string | null | undefined;
|
|
115
|
+
accountantsAddressLine2?: string | null | undefined;
|
|
116
|
+
accountantsAddressLine3?: string | null | undefined;
|
|
117
|
+
accountantsCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
118
|
+
accountantsEmail?: string | null | undefined;
|
|
119
|
+
accountantsPostCode?: string | null | undefined;
|
|
120
|
+
accountantsPractice?: string | null | undefined;
|
|
121
|
+
accountantsTelephoneNumber?: string | null | undefined;
|
|
122
|
+
businessAddressLine1?: string | null | undefined;
|
|
123
|
+
businessAddressLine2?: string | null | undefined;
|
|
124
|
+
businessAddressLine3?: string | null | undefined;
|
|
125
|
+
businessCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
126
|
+
businessPostCode?: string | null | undefined;
|
|
127
|
+
businessTelephoneNumber?: string | null | undefined;
|
|
128
|
+
charteredCertifiedOrOtherLid?: mongoose.Types.ObjectId | null | undefined;
|
|
129
|
+
contactName?: string | null | undefined;
|
|
130
|
+
currentYearEnd?: string | null | undefined;
|
|
131
|
+
dateEstablished?: string | null | undefined;
|
|
132
|
+
nameOfBusiness?: string | null | undefined;
|
|
133
|
+
percentageOfShareholding?: number | null | undefined;
|
|
134
|
+
registeredAddressLine1?: string | null | undefined;
|
|
135
|
+
registeredAddressLine2?: string | null | undefined;
|
|
136
|
+
registeredAddressLine3?: string | null | undefined;
|
|
137
|
+
registeredCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
138
|
+
registeredPostCode?: string | null | undefined;
|
|
139
|
+
registeredTelephone?: string | null | undefined;
|
|
140
|
+
selfEmployedDate?: string | null | undefined;
|
|
141
|
+
} & {
|
|
142
|
+
_id: mongoose.Types.ObjectId;
|
|
143
|
+
} & {
|
|
144
|
+
__v: number;
|
|
145
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
146
|
+
toJSON: {
|
|
147
|
+
getters: true;
|
|
148
|
+
};
|
|
149
|
+
toObject: {
|
|
150
|
+
getters: true;
|
|
151
|
+
};
|
|
152
|
+
}, {
|
|
153
|
+
applicantId: mongoose.Types.ObjectId;
|
|
154
|
+
accountantsCity: string;
|
|
155
|
+
businessCity: string;
|
|
156
|
+
doYouHaveAccountant: boolean;
|
|
157
|
+
isBusinessAddressDifferent: boolean;
|
|
158
|
+
registeredCity: string;
|
|
159
|
+
businessTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
160
|
+
natureOfBusiness?: string | null | undefined;
|
|
161
|
+
industryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
162
|
+
accountantsAddressLine1?: string | null | undefined;
|
|
163
|
+
accountantsAddressLine2?: string | null | undefined;
|
|
164
|
+
accountantsAddressLine3?: string | null | undefined;
|
|
165
|
+
accountantsCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
166
|
+
accountantsEmail?: string | null | undefined;
|
|
167
|
+
accountantsPostCode?: string | null | undefined;
|
|
168
|
+
accountantsPractice?: string | null | undefined;
|
|
169
|
+
accountantsTelephoneNumber?: string | null | undefined;
|
|
170
|
+
businessAddressLine1?: string | null | undefined;
|
|
171
|
+
businessAddressLine2?: string | null | undefined;
|
|
172
|
+
businessAddressLine3?: string | null | undefined;
|
|
173
|
+
businessCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
174
|
+
businessPostCode?: string | null | undefined;
|
|
175
|
+
businessTelephoneNumber?: string | null | undefined;
|
|
176
|
+
charteredCertifiedOrOtherLid?: mongoose.Types.ObjectId | null | undefined;
|
|
177
|
+
contactName?: string | null | undefined;
|
|
178
|
+
currentYearEnd?: string | null | undefined;
|
|
179
|
+
dateEstablished?: string | null | undefined;
|
|
180
|
+
nameOfBusiness?: string | null | undefined;
|
|
181
|
+
percentageOfShareholding?: number | null | undefined;
|
|
182
|
+
registeredAddressLine1?: string | null | undefined;
|
|
183
|
+
registeredAddressLine2?: string | null | undefined;
|
|
184
|
+
registeredAddressLine3?: string | null | undefined;
|
|
185
|
+
registeredCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
186
|
+
registeredPostCode?: string | null | undefined;
|
|
187
|
+
registeredTelephone?: string | null | undefined;
|
|
188
|
+
selfEmployedDate?: string | null | undefined;
|
|
189
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
190
|
+
applicantId: mongoose.Types.ObjectId;
|
|
191
|
+
accountantsCity: string;
|
|
192
|
+
businessCity: string;
|
|
193
|
+
doYouHaveAccountant: boolean;
|
|
194
|
+
isBusinessAddressDifferent: boolean;
|
|
195
|
+
registeredCity: string;
|
|
196
|
+
businessTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
197
|
+
natureOfBusiness?: string | null | undefined;
|
|
198
|
+
industryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
199
|
+
accountantsAddressLine1?: string | null | undefined;
|
|
200
|
+
accountantsAddressLine2?: string | null | undefined;
|
|
201
|
+
accountantsAddressLine3?: string | null | undefined;
|
|
202
|
+
accountantsCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
203
|
+
accountantsEmail?: string | null | undefined;
|
|
204
|
+
accountantsPostCode?: string | null | undefined;
|
|
205
|
+
accountantsPractice?: string | null | undefined;
|
|
206
|
+
accountantsTelephoneNumber?: string | null | undefined;
|
|
207
|
+
businessAddressLine1?: string | null | undefined;
|
|
208
|
+
businessAddressLine2?: string | null | undefined;
|
|
209
|
+
businessAddressLine3?: string | null | undefined;
|
|
210
|
+
businessCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
211
|
+
businessPostCode?: string | null | undefined;
|
|
212
|
+
businessTelephoneNumber?: string | null | undefined;
|
|
213
|
+
charteredCertifiedOrOtherLid?: mongoose.Types.ObjectId | null | undefined;
|
|
214
|
+
contactName?: string | null | undefined;
|
|
215
|
+
currentYearEnd?: string | null | undefined;
|
|
216
|
+
dateEstablished?: string | null | undefined;
|
|
217
|
+
nameOfBusiness?: string | null | undefined;
|
|
218
|
+
percentageOfShareholding?: number | null | undefined;
|
|
219
|
+
registeredAddressLine1?: string | null | undefined;
|
|
220
|
+
registeredAddressLine2?: string | null | undefined;
|
|
221
|
+
registeredAddressLine3?: string | null | undefined;
|
|
222
|
+
registeredCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
223
|
+
registeredPostCode?: string | null | undefined;
|
|
224
|
+
registeredTelephone?: string | null | undefined;
|
|
225
|
+
selfEmployedDate?: string | null | undefined;
|
|
226
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
227
|
+
applicantId: mongoose.Types.ObjectId;
|
|
228
|
+
accountantsCity: string;
|
|
229
|
+
businessCity: string;
|
|
230
|
+
doYouHaveAccountant: boolean;
|
|
231
|
+
isBusinessAddressDifferent: boolean;
|
|
232
|
+
registeredCity: string;
|
|
233
|
+
businessTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
234
|
+
natureOfBusiness?: string | null | undefined;
|
|
235
|
+
industryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
236
|
+
accountantsAddressLine1?: string | null | undefined;
|
|
237
|
+
accountantsAddressLine2?: string | null | undefined;
|
|
238
|
+
accountantsAddressLine3?: string | null | undefined;
|
|
239
|
+
accountantsCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
240
|
+
accountantsEmail?: string | null | undefined;
|
|
241
|
+
accountantsPostCode?: string | null | undefined;
|
|
242
|
+
accountantsPractice?: string | null | undefined;
|
|
243
|
+
accountantsTelephoneNumber?: string | null | undefined;
|
|
244
|
+
businessAddressLine1?: string | null | undefined;
|
|
245
|
+
businessAddressLine2?: string | null | undefined;
|
|
246
|
+
businessAddressLine3?: string | null | undefined;
|
|
247
|
+
businessCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
248
|
+
businessPostCode?: string | null | undefined;
|
|
249
|
+
businessTelephoneNumber?: string | null | undefined;
|
|
250
|
+
charteredCertifiedOrOtherLid?: mongoose.Types.ObjectId | null | undefined;
|
|
251
|
+
contactName?: string | null | undefined;
|
|
252
|
+
currentYearEnd?: string | null | undefined;
|
|
253
|
+
dateEstablished?: string | null | undefined;
|
|
254
|
+
nameOfBusiness?: string | null | undefined;
|
|
255
|
+
percentageOfShareholding?: number | null | undefined;
|
|
256
|
+
registeredAddressLine1?: string | null | undefined;
|
|
257
|
+
registeredAddressLine2?: string | null | undefined;
|
|
258
|
+
registeredAddressLine3?: string | null | undefined;
|
|
259
|
+
registeredCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
260
|
+
registeredPostCode?: string | null | undefined;
|
|
261
|
+
registeredTelephone?: string | null | undefined;
|
|
262
|
+
selfEmployedDate?: string | null | undefined;
|
|
263
|
+
}> & {
|
|
264
|
+
_id: mongoose.Types.ObjectId;
|
|
265
|
+
} & {
|
|
266
|
+
__v: number;
|
|
267
|
+
}>>;
|
|
268
|
+
export default ApplicantSelfEmploymentModel;
|
|
269
|
+
//# sourceMappingURL=applicant-self-employment.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-self-employment.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-self-employment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA8DhC,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6E,CAAC;AAEhH,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
|
+
const applicantSelfEmploymentSchema = new mongoose.Schema({
|
|
4
|
+
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
5
|
+
accountantsAddressLine1: { type: String, },
|
|
6
|
+
accountantsAddressLine2: { type: String, },
|
|
7
|
+
accountantsAddressLine3: { type: String, },
|
|
8
|
+
accountantsCity: { type: String, default: '' },
|
|
9
|
+
accountantsCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", },
|
|
10
|
+
accountantsEmail: { type: String, },
|
|
11
|
+
accountantsPostCode: { type: String, },
|
|
12
|
+
accountantsPractice: { type: String, },
|
|
13
|
+
accountantsTelephoneNumber: { type: String, },
|
|
14
|
+
businessAddressLine1: { type: String, },
|
|
15
|
+
businessAddressLine2: { type: String, },
|
|
16
|
+
businessAddressLine3: { type: String, },
|
|
17
|
+
businessCity: { type: String, default: '' },
|
|
18
|
+
businessCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", },
|
|
19
|
+
businessPostCode: { type: String, },
|
|
20
|
+
businessTelephoneNumber: { type: String, },
|
|
21
|
+
businessTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", },
|
|
22
|
+
charteredCertifiedOrOtherLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", },
|
|
23
|
+
contactName: { type: String, },
|
|
24
|
+
currentYearEnd: { type: String, },
|
|
25
|
+
dateEstablished: { type: String, },
|
|
26
|
+
doYouHaveAccountant: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: false
|
|
29
|
+
},
|
|
30
|
+
isBusinessAddressDifferent: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: false
|
|
33
|
+
},
|
|
34
|
+
nameOfBusiness: { type: String, },
|
|
35
|
+
natureOfBusiness: { type: String, },
|
|
36
|
+
percentageOfShareholding: { type: Number, min: 0, max: 100 },
|
|
37
|
+
registeredAddressLine1: { type: String, },
|
|
38
|
+
registeredAddressLine2: { type: String, },
|
|
39
|
+
registeredAddressLine3: { type: String, },
|
|
40
|
+
registeredCity: { type: String, default: '' },
|
|
41
|
+
registeredCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", },
|
|
42
|
+
registeredPostCode: { type: String, },
|
|
43
|
+
registeredTelephone: { type: String, },
|
|
44
|
+
selfEmployedDate: { type: String, },
|
|
45
|
+
industryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: false },
|
|
46
|
+
}, {
|
|
47
|
+
toJSON: { getters: true },
|
|
48
|
+
toObject: { getters: true }
|
|
49
|
+
});
|
|
50
|
+
// Apply workflow plugin to the schema
|
|
51
|
+
applyWorkflowPlugin(applicantSelfEmploymentSchema, 'applicant_self_employment');
|
|
52
|
+
// Add indexes that exist in database but missing from model
|
|
53
|
+
applicantSelfEmploymentSchema.index({ applicantId: 1 }); // Filter by applicant
|
|
54
|
+
const ApplicantSelfEmploymentModel = mongoose.model("Applicant_Self_Employment", applicantSelfEmploymentSchema);
|
|
55
|
+
export default ApplicantSelfEmploymentModel;
|