@dynamatix/gb-schemas 2.17.12 → 2.17.13
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/dist/applicants/applicant-additional-income.model.d.ts +378 -0
- package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-additional-income.model.js +35 -0
- 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-additional-income.type.js +1 -0
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts +545 -0
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-creditCard.model.js +40 -0
- package/dist/applicants/applicant-commitment-loan.model.d.ts +434 -0
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-loan.model.js +51 -0
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +506 -0
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-mortgage.model.js +69 -0
- 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 +426 -0
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-secureLoan.model.js +43 -0
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +426 -0
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +43 -0
- package/dist/applicants/applicant-credit-data.model.d.ts +60 -0
- package/dist/applicants/applicant-credit-data.model.d.ts.map +1 -0
- package/dist/applicants/applicant-credit-data.model.js +11 -0
- package/dist/applicants/applicant-credit-profile.model.d.ts +51 -0
- package/dist/applicants/applicant-credit-profile.model.d.ts.map +1 -0
- package/dist/applicants/applicant-credit-profile.model.js +20 -0
- package/dist/applicants/applicant-credit-report.model.d.ts +3816 -0
- package/dist/applicants/applicant-credit-report.model.d.ts.map +1 -0
- package/dist/applicants/applicant-credit-report.model.js +126 -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 +86 -0
- package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -0
- package/dist/applicants/applicant-direct-debit.model.js +16 -0
- package/dist/applicants/applicant-employment-income.model.d.ts +206 -0
- package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-employment-income.model.js +20 -0
- 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 +828 -0
- package/dist/applicants/applicant-employment.model.d.ts.map +1 -0
- package/dist/applicants/applicant-employment.model.js +46 -0
- package/dist/applicants/applicant-expenditure.model.d.ts +127 -0
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -0
- package/dist/applicants/applicant-expenditure.model.js +146 -0
- 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 +82 -0
- package/dist/applicants/applicant-income-settings.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income-settings.model.js +22 -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-summary.model.d.ts +2964 -0
- package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income-summary.model.js +59 -0
- package/dist/applicants/applicant-income-summary.type.d.ts +72 -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-large-exposure.model.d.ts +667 -0
- package/dist/applicants/applicant-large-exposure.model.d.ts.map +1 -0
- package/dist/applicants/applicant-large-exposure.model.js +16 -0
- package/dist/applicants/applicant-large-exposure.type.d.ts +39 -0
- package/dist/applicants/applicant-large-exposure.type.d.ts.map +1 -0
- package/dist/applicants/applicant-large-exposure.type.js +1 -0
- package/dist/applicants/applicant-pension-income.model.d.ts +494 -0
- package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-pension-income.model.js +35 -0
- 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 +953 -0
- package/dist/applicants/applicant-property-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-property-income.model.js +34 -0
- package/dist/applicants/applicant-property-income.type.d.ts +44 -0
- package/dist/applicants/applicant-property-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-property-income.type.js +1 -0
- package/dist/applicants/applicant-risk-narrative.model.d.ts +66 -0
- package/dist/applicants/applicant-risk-narrative.model.d.ts.map +1 -0
- package/dist/applicants/applicant-risk-narrative.model.js +13 -0
- package/dist/applicants/applicant-self-employed-income.model.d.ts +213 -0
- package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-self-employed-income.model.js +23 -0
- 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 +213 -0
- package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-sole-trader-income.model.js +21 -0
- 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 +500 -0
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -0
- package/dist/applicants/applicant-uk-tax-credits.model.js +21 -0
- 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 +1569 -0
- package/dist/applicants/applicant.model.d.ts.map +1 -0
- package/dist/applicants/applicant.model.js +262 -0
- package/dist/applicants/applicant.type.d.ts +161 -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 +37 -0
- package/dist/applicants/index.d.ts.map +1 -0
- package/dist/applicants/index.js +22 -0
- package/dist/applications/application-audit.model.d.ts +120 -0
- package/dist/applications/application-audit.model.d.ts.map +1 -0
- package/dist/applications/application-audit.model.js +45 -0
- package/dist/applications/application-checklist-Item.model.d.ts +292 -0
- package/dist/applications/application-checklist-Item.model.d.ts.map +1 -0
- package/dist/applications/application-checklist-Item.model.js +49 -0
- package/dist/applications/application-company-model.d.ts +1548 -0
- package/dist/applications/application-company-model.d.ts.map +1 -0
- package/dist/applications/application-company-model.js +134 -0
- package/dist/applications/application-credit-profile.model.d.ts +63 -0
- package/dist/applications/application-credit-profile.model.d.ts.map +1 -0
- package/dist/applications/application-credit-profile.model.js +12 -0
- package/dist/applications/application-direct-debit.model.d.ts +697 -0
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -0
- package/dist/applications/application-direct-debit.model.js +173 -0
- 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 +196 -0
- package/dist/applications/application-euc.model.d.ts.map +1 -0
- package/dist/applications/application-euc.model.js +39 -0
- package/dist/applications/application-euc.type.d.ts +58 -0
- package/dist/applications/application-euc.type.d.ts.map +1 -0
- package/dist/applications/application-euc.type.js +1 -0
- package/dist/applications/application-fieldconfig.model.d.ts +58 -0
- package/dist/applications/application-fieldconfig.model.d.ts.map +1 -0
- package/dist/applications/application-fieldconfig.model.js +10 -0
- package/dist/applications/application-illustration-model.d.ts +52 -0
- package/dist/applications/application-illustration-model.d.ts.map +1 -0
- package/dist/applications/application-illustration-model.js +6 -0
- package/dist/applications/application-legal.model.d.ts +58 -0
- package/dist/applications/application-legal.model.d.ts.map +1 -0
- package/dist/applications/application-legal.model.js +10 -0
- package/dist/applications/application-mortgage.model.d.ts +307 -0
- package/dist/applications/application-mortgage.model.d.ts.map +1 -0
- package/dist/applications/application-mortgage.model.js +274 -0
- 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 +184 -0
- package/dist/applications/application-note.model.d.ts.map +1 -0
- package/dist/applications/application-note.model.js +105 -0
- 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 +196 -0
- package/dist/applications/application-offer.model.d.ts.map +1 -0
- package/dist/applications/application-offer.model.js +56 -0
- 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 +70 -0
- package/dist/applications/application-onboarding.model.d.ts.map +1 -0
- package/dist/applications/application-onboarding.model.js +12 -0
- package/dist/applications/application-product.model.d.ts +290 -0
- package/dist/applications/application-product.model.d.ts.map +1 -0
- package/dist/applications/application-product.model.js +90 -0
- 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 +772 -0
- package/dist/applications/application-productfeatures.model.d.ts.map +1 -0
- package/dist/applications/application-productfeatures.model.js +100 -0
- 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 +126 -0
- package/dist/applications/application-rationale.model.d.ts.map +1 -0
- package/dist/applications/application-rationale.model.js +23 -0
- 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 +100 -0
- package/dist/applications/application-risk-narrative.model.d.ts.map +1 -0
- package/dist/applications/application-risk-narrative.model.js +17 -0
- 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 +1358 -0
- package/dist/applications/application-valuation.model.d.ts.map +1 -0
- package/dist/applications/application-valuation.model.js +72 -0
- package/dist/applications/application-valuation.type.d.ts +55 -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 +642 -0
- package/dist/applications/application.model.d.ts.map +1 -0
- package/dist/applications/application.model.js +254 -0
- package/dist/applications/applications-task.model.d.ts +312 -0
- package/dist/applications/applications-task.model.d.ts.map +1 -0
- package/dist/applications/applications-task.model.js +58 -0
- package/dist/applications/applications-task.type.d.ts +59 -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 +162 -0
- package/dist/applications/broker.model.d.ts.map +1 -0
- package/dist/applications/broker.model.js +24 -0
- 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 +36 -0
- package/dist/applications/index.d.ts.map +1 -0
- package/dist/applications/index.js +23 -0
- package/dist/applications/solicitor.model.d.ts +206 -0
- package/dist/applications/solicitor.model.d.ts.map +1 -0
- package/dist/applications/solicitor.model.js +121 -0
- 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 +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/product-catalogues/index.d.ts +7 -0
- package/dist/product-catalogues/index.d.ts.map +1 -0
- package/dist/product-catalogues/index.js +3 -0
- package/dist/product-catalogues/product-catalogue.model.d.ts +132 -0
- package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -0
- package/dist/product-catalogues/product-catalogue.model.js +22 -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 +318 -0
- package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -0
- package/dist/product-catalogues/product-definitions.model.js +29 -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 +96 -0
- package/dist/product-catalogues/product-variant.model.d.ts.map +1 -0
- package/dist/product-catalogues/product-variant.model.js +16 -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/index.d.ts +3 -0
- package/dist/properties/index.d.ts.map +1 -0
- package/dist/properties/index.js +2 -0
- package/dist/properties/property.model.d.ts +1174 -0
- package/dist/properties/property.model.d.ts.map +1 -0
- package/dist/properties/property.model.js +152 -0
- package/dist/properties/security.model.d.ts +331 -0
- package/dist/properties/security.model.d.ts.map +1 -0
- package/dist/properties/security.model.js +159 -0
- package/dist/shared/alert.model.d.ts +102 -0
- package/dist/shared/alert.model.d.ts.map +1 -0
- package/dist/shared/alert.model.js +24 -0
- 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 +114 -0
- package/dist/shared/apprivo-sync-journey.model.d.ts.map +1 -0
- package/dist/shared/apprivo-sync-journey.model.js +19 -0
- package/dist/shared/checklist.model.d.ts +102 -0
- package/dist/shared/checklist.model.d.ts.map +1 -0
- package/dist/shared/checklist.model.js +35 -0
- package/dist/shared/index.d.ts +19 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +16 -0
- package/dist/shared/job-run.model.d.ts +76 -0
- package/dist/shared/job-run.model.d.ts.map +1 -0
- package/dist/shared/job-run.model.js +14 -0
- package/dist/shared/job-setting.model.d.ts +70 -0
- package/dist/shared/job-setting.model.d.ts.map +1 -0
- package/dist/shared/job-setting.model.js +11 -0
- package/dist/shared/lookup-group.model.d.ts +78 -0
- package/dist/shared/lookup-group.model.d.ts.map +1 -0
- package/dist/shared/lookup-group.model.js +22 -0
- package/dist/shared/lookup.model.d.ts +96 -0
- package/dist/shared/lookup.model.d.ts.map +1 -0
- package/dist/shared/lookup.model.js +32 -0
- package/dist/shared/schema-doc.model.d.ts +76 -0
- package/dist/shared/schema-doc.model.d.ts.map +1 -0
- package/dist/shared/schema-doc.model.js +11 -0
- package/dist/shared/system-parameter.model.d.ts +88 -0
- package/dist/shared/system-parameter.model.d.ts.map +1 -0
- package/dist/shared/system-parameter.model.js +32 -0
- package/dist/shared/task-document.model.d.ts +70 -0
- package/dist/shared/task-document.model.d.ts.map +1 -0
- package/dist/shared/task-document.model.js +23 -0
- package/dist/shared/task.model.d.ts +234 -0
- package/dist/shared/task.model.d.ts.map +1 -0
- package/dist/shared/task.model.js +15 -0
- 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/index.d.ts +2 -0
- package/dist/underwriter/index.d.ts.map +1 -0
- package/dist/underwriter/index.js +1 -0
- package/dist/underwriter/underwriter.model.d.ts +126 -0
- package/dist/underwriter/underwriter.model.d.ts.map +1 -0
- package/dist/underwriter/underwriter.model.js +17 -0
- package/dist/users/auth-log.model.d.ts +70 -0
- package/dist/users/auth-log.model.d.ts.map +1 -0
- package/dist/users/auth-log.model.js +24 -0
- package/dist/users/index.d.ts +7 -0
- package/dist/users/index.d.ts.map +1 -0
- package/dist/users/index.js +6 -0
- package/dist/users/permission.model.d.ts +84 -0
- package/dist/users/permission.model.d.ts.map +1 -0
- package/dist/users/permission.model.js +12 -0
- package/dist/users/role-group.model.d.ts +90 -0
- package/dist/users/role-group.model.d.ts.map +1 -0
- package/dist/users/role-group.model.js +17 -0
- package/dist/users/role.model.d.ts +90 -0
- package/dist/users/role.model.d.ts.map +1 -0
- package/dist/users/role.model.js +16 -0
- package/dist/users/tasks.model.d.ts +114 -0
- package/dist/users/tasks.model.d.ts.map +1 -0
- package/dist/users/tasks.model.js +18 -0
- package/dist/users/user.model.d.ts +222 -0
- package/dist/users/user.model.d.ts.map +1 -0
- package/dist/users/user.model.js +41 -0
- 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 +43 -0
- package/dist/value-objects/pound.d.ts.map +1 -0
- package/dist/value-objects/pound.js +50 -0
- package/dist/value-objects/sort-code.d.ts +42 -0
- package/dist/value-objects/sort-code.d.ts.map +1 -0
- package/dist/value-objects/sort-code.js +34 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-credit-report.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-credit-report.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAqJhC,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuE,CAAC;AACxG,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
|
+
const Schema = mongoose.Schema;
|
|
4
|
+
const paymentHistoryItemSchema = new Schema({
|
|
5
|
+
ageInMonths: { type: String, default: "" },
|
|
6
|
+
paymentStatus: { type: String, default: "" },
|
|
7
|
+
}, { _id: false });
|
|
8
|
+
const amountCurrencySchema = new Schema({
|
|
9
|
+
amount: { type: String, default: "" },
|
|
10
|
+
currency: { type: String, default: "" },
|
|
11
|
+
}, { _id: false });
|
|
12
|
+
const addressSpecificData = new Schema({
|
|
13
|
+
type: { type: String, default: "" }, // e.g. 'commsSupplyAccount'
|
|
14
|
+
name: { type: String, default: "" }, // usually from account.name
|
|
15
|
+
dob: { type: String, default: "" },
|
|
16
|
+
startDate: { type: String, default: "" },
|
|
17
|
+
lastUpdate: { type: String, default: "" },
|
|
18
|
+
startBalance: amountCurrencySchema,
|
|
19
|
+
fixedPaymentTerms: amountCurrencySchema,
|
|
20
|
+
currentBalance: amountCurrencySchema,
|
|
21
|
+
delinquentBalance: amountCurrencySchema,
|
|
22
|
+
endDate: { type: String, default: "" },
|
|
23
|
+
nameMatchStatus: { type: String, default: "" },
|
|
24
|
+
paymentFrequency: { type: String, default: "" },
|
|
25
|
+
paymentHistory: [paymentHistoryItemSchema],
|
|
26
|
+
}, { _id: false });
|
|
27
|
+
const aliasNameSchema = new Schema({
|
|
28
|
+
forename: { type: String, default: "" },
|
|
29
|
+
surname: { type: String, default: "" },
|
|
30
|
+
middlename: { type: String, default: "" },
|
|
31
|
+
dob: { type: String, default: "" },
|
|
32
|
+
}, { _id: false });
|
|
33
|
+
const associateSchema = new Schema({
|
|
34
|
+
forename: { type: String, default: "" },
|
|
35
|
+
surname: { type: String, default: "" },
|
|
36
|
+
middlename: { type: String, default: "" },
|
|
37
|
+
dob: { type: String, default: "" },
|
|
38
|
+
}, { _id: false });
|
|
39
|
+
const electoralInformationSchema = new Schema({
|
|
40
|
+
name: { type: String, default: "" },
|
|
41
|
+
nameMatchStatus: { type: String, default: "" },
|
|
42
|
+
seniority: { type: String, default: "" },
|
|
43
|
+
startDate: { type: String, default: "" },
|
|
44
|
+
endDate: { type: String, default: "" },
|
|
45
|
+
}, { _id: false });
|
|
46
|
+
const linkedAddressSchema = new Schema({
|
|
47
|
+
type: { type: String, enum: ["current", "previous"], default: "" }, // deduced from linkType
|
|
48
|
+
address: {
|
|
49
|
+
number: { type: String, default: "" },
|
|
50
|
+
street: { type: String, default: "" },
|
|
51
|
+
postTown: { type: String, default: "" },
|
|
52
|
+
postcode: { type: String, default: "" },
|
|
53
|
+
county: { type: String, default: "" },
|
|
54
|
+
addressId: { type: String, default: "" },
|
|
55
|
+
},
|
|
56
|
+
}, { _id: false });
|
|
57
|
+
const currentAddressData = new Schema({
|
|
58
|
+
address: {
|
|
59
|
+
country: { type: String, default: "" },
|
|
60
|
+
name: { type: String, default: "" },
|
|
61
|
+
number: { type: String, default: "" },
|
|
62
|
+
postcode: { type: String, default: "" },
|
|
63
|
+
postTown: { type: String, default: "" },
|
|
64
|
+
street1: { type: String, default: "" },
|
|
65
|
+
},
|
|
66
|
+
}, { _id: false });
|
|
67
|
+
const previousSearchesSchema = new Schema({
|
|
68
|
+
name: { type: String, default: "" },
|
|
69
|
+
dob: { type: String, default: "" },
|
|
70
|
+
nameMatchStatus: { type: String, default: "" },
|
|
71
|
+
companyType: { type: String, default: "" },
|
|
72
|
+
jointApplicant: { type: Boolean, default: false },
|
|
73
|
+
searchType: { type: String, default: "" },
|
|
74
|
+
searchDate: { type: String, default: "" },
|
|
75
|
+
optIn: { type: Boolean, default: false },
|
|
76
|
+
}, { _id: false });
|
|
77
|
+
const noticeofCorrectionSchema = new Schema({
|
|
78
|
+
type: { type: String, enum: ["active", "historical"], default: "" }, // deduced from linkType
|
|
79
|
+
noc: {
|
|
80
|
+
name: { type: String, default: "" },
|
|
81
|
+
nameMatchStatus: { type: String, default: "" },
|
|
82
|
+
dataNoticeCreated: { type: String, default: "" },
|
|
83
|
+
text: { type: String, default: "" },
|
|
84
|
+
}
|
|
85
|
+
}, { _id: false });
|
|
86
|
+
const applicantCreditReportSchema = new Schema({
|
|
87
|
+
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
88
|
+
referenceNumber: { type: String, default: "" },
|
|
89
|
+
applicantDob: { type: String, default: "" },
|
|
90
|
+
applicantName: { type: String, required: true }, // concat of forename + ' ' + surname
|
|
91
|
+
requestDate: { type: String, default: "" },
|
|
92
|
+
expiredDate: { type: String, default: "" },
|
|
93
|
+
hasExpired: { type: Boolean, default: false },
|
|
94
|
+
// Credit profile fields for credit report
|
|
95
|
+
creditDefaults: { type: String, default: "" },
|
|
96
|
+
countyCourtJudgment: { type: String, default: "" },
|
|
97
|
+
securedArrears: { type: String, default: "" },
|
|
98
|
+
unsecuredArrears: { type: String, default: "" },
|
|
99
|
+
bankruptcyOrIva: { type: String, default: "" },
|
|
100
|
+
notMapped: { type: mongoose.Schema.Types.Mixed, default: null },
|
|
101
|
+
aliasNames: [aliasNameSchema],
|
|
102
|
+
associates: [associateSchema],
|
|
103
|
+
linkedAddressData: [addressSpecificData],
|
|
104
|
+
suppliedAddressData: [addressSpecificData],
|
|
105
|
+
accountInformation: [addressSpecificData],
|
|
106
|
+
accountLinkedInformations: [addressSpecificData],
|
|
107
|
+
electoralInformation: [electoralInformationSchema],
|
|
108
|
+
electoralLinkedInformations: [electoralInformationSchema],
|
|
109
|
+
linkedAddresses: [linkedAddressSchema],
|
|
110
|
+
currentAddresses: [currentAddressData],
|
|
111
|
+
previousSearches: [previousSearchesSchema],
|
|
112
|
+
noticeofCorrection: [noticeofCorrectionSchema],
|
|
113
|
+
isEquifaxData: { type: Boolean, default: false },
|
|
114
|
+
isConfirmed: { type: Boolean, default: false },
|
|
115
|
+
confirmedAt: { type: Date, default: null },
|
|
116
|
+
searchDate: { type: Date, default: null },
|
|
117
|
+
searchCriteriaDifferences: { type: String, default: "" },
|
|
118
|
+
comment: { type: String, default: "" },
|
|
119
|
+
}, {
|
|
120
|
+
timestamps: true
|
|
121
|
+
});
|
|
122
|
+
// Apply workflow plugin to the schema
|
|
123
|
+
applicantCreditReportSchema.index({ applicantId: 1 });
|
|
124
|
+
applyWorkflowPlugin(applicantCreditReportSchema, 'applicantcreditreport');
|
|
125
|
+
const ApplicantCreditReportModel = mongoose.model("ApplicantCreditReport", applicantCreditReportSchema);
|
|
126
|
+
export default ApplicantCreditReportModel;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
5
|
+
/// <reference types="mongoose/types/callback" />
|
|
6
|
+
/// <reference types="mongoose/types/collection" />
|
|
7
|
+
/// <reference types="mongoose/types/connection" />
|
|
8
|
+
/// <reference types="mongoose/types/cursor" />
|
|
9
|
+
/// <reference types="mongoose/types/document" />
|
|
10
|
+
/// <reference types="mongoose/types/error" />
|
|
11
|
+
/// <reference types="mongoose/types/expressions" />
|
|
12
|
+
/// <reference types="mongoose/types/helpers" />
|
|
13
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
14
|
+
/// <reference types="mongoose/types/indexes" />
|
|
15
|
+
/// <reference types="mongoose/types/models" />
|
|
16
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
17
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
18
|
+
/// <reference types="mongoose/types/populate" />
|
|
19
|
+
/// <reference types="mongoose/types/query" />
|
|
20
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
21
|
+
/// <reference types="mongoose/types/session" />
|
|
22
|
+
/// <reference types="mongoose/types/types" />
|
|
23
|
+
/// <reference types="mongoose/types/utility" />
|
|
24
|
+
/// <reference types="mongoose/types/validation" />
|
|
25
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
26
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
27
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
28
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
|
+
import { Types } from "mongoose";
|
|
30
|
+
import { IBaseType } from "../types/base.types";
|
|
31
|
+
interface IPaymentHistoryItem {
|
|
32
|
+
ageInMonths: string;
|
|
33
|
+
paymentStatus: string;
|
|
34
|
+
}
|
|
35
|
+
interface IAmountCurrency {
|
|
36
|
+
amount: string;
|
|
37
|
+
currency: string;
|
|
38
|
+
}
|
|
39
|
+
interface IAddressSpecificData {
|
|
40
|
+
type: string;
|
|
41
|
+
name: string;
|
|
42
|
+
dob: string;
|
|
43
|
+
startDate: string;
|
|
44
|
+
lastUpdate: string;
|
|
45
|
+
startBalance: IAmountCurrency;
|
|
46
|
+
fixedPaymentTerms: IAmountCurrency;
|
|
47
|
+
currentBalance: IAmountCurrency;
|
|
48
|
+
delinquentBalance: IAmountCurrency;
|
|
49
|
+
endDate: string;
|
|
50
|
+
nameMatchStatus: string;
|
|
51
|
+
paymentFrequency: string;
|
|
52
|
+
paymentHistory: IPaymentHistoryItem[];
|
|
53
|
+
}
|
|
54
|
+
interface IAliasName {
|
|
55
|
+
forename: string;
|
|
56
|
+
surname: string;
|
|
57
|
+
middlename: string;
|
|
58
|
+
dob: string;
|
|
59
|
+
}
|
|
60
|
+
interface IAssociate {
|
|
61
|
+
forename: string;
|
|
62
|
+
surname: string;
|
|
63
|
+
middlename: string;
|
|
64
|
+
dob: string;
|
|
65
|
+
}
|
|
66
|
+
interface IElectoralInformation {
|
|
67
|
+
name: string;
|
|
68
|
+
nameMatchStatus: string;
|
|
69
|
+
seniority: string;
|
|
70
|
+
startDate: string;
|
|
71
|
+
endDate: string;
|
|
72
|
+
}
|
|
73
|
+
interface ILinkedAddress {
|
|
74
|
+
type: "current" | "previous";
|
|
75
|
+
address: {
|
|
76
|
+
number: string;
|
|
77
|
+
street: string;
|
|
78
|
+
postTown: string;
|
|
79
|
+
postcode: string;
|
|
80
|
+
county: string;
|
|
81
|
+
addressId: string;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
interface ICurrentAddress {
|
|
85
|
+
address: {
|
|
86
|
+
country: string;
|
|
87
|
+
name: string;
|
|
88
|
+
number: string;
|
|
89
|
+
postcode: string;
|
|
90
|
+
postTown: string;
|
|
91
|
+
street1: string;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
interface IPreviousSearches {
|
|
95
|
+
name: string;
|
|
96
|
+
dob: string;
|
|
97
|
+
nameMatchStatus: string;
|
|
98
|
+
companyType: string;
|
|
99
|
+
jointApplicant: boolean;
|
|
100
|
+
searchType: string;
|
|
101
|
+
searchDate: string;
|
|
102
|
+
optIn: boolean;
|
|
103
|
+
}
|
|
104
|
+
interface INoticeOfCorrection {
|
|
105
|
+
type: "active" | "historical";
|
|
106
|
+
noc: {
|
|
107
|
+
name: string;
|
|
108
|
+
nameMatchStatus: string;
|
|
109
|
+
dataNoticeCreated: string;
|
|
110
|
+
text: string;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
export default interface IApplicantCreditReport extends IBaseType {
|
|
114
|
+
applicantId: Types.ObjectId;
|
|
115
|
+
referenceNumber: string;
|
|
116
|
+
applicantDob: string;
|
|
117
|
+
applicantName: string;
|
|
118
|
+
requestDate: string;
|
|
119
|
+
expiredDate: string;
|
|
120
|
+
hasExpired: boolean;
|
|
121
|
+
creditDefaults: string;
|
|
122
|
+
countyCourtJudgment: string;
|
|
123
|
+
securedArrears: string;
|
|
124
|
+
unsecuredArrears: string;
|
|
125
|
+
bankruptcyOrIva: string;
|
|
126
|
+
notMapped: any;
|
|
127
|
+
aliasNames: IAliasName[];
|
|
128
|
+
associates: IAssociate[];
|
|
129
|
+
linkedAddressData: IAddressSpecificData[];
|
|
130
|
+
suppliedAddressData: IAddressSpecificData[];
|
|
131
|
+
accountInformation: IAddressSpecificData[];
|
|
132
|
+
accountLinkedInformations: IAddressSpecificData[];
|
|
133
|
+
electoralInformation: IElectoralInformation[];
|
|
134
|
+
electoralLinkedInformations: IElectoralInformation[];
|
|
135
|
+
linkedAddresses: ILinkedAddress[];
|
|
136
|
+
currentAddresses: ICurrentAddress[];
|
|
137
|
+
previousSearches: IPreviousSearches[];
|
|
138
|
+
noticeofCorrection: INoticeOfCorrection[];
|
|
139
|
+
isEquifaxData: boolean;
|
|
140
|
+
isConfirmed: boolean;
|
|
141
|
+
searchDate: Date;
|
|
142
|
+
searchCriteriaDifferences: string;
|
|
143
|
+
}
|
|
144
|
+
export {};
|
|
145
|
+
//# sourceMappingURL=applicant-credit-report.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-credit-report.type.d.ts","sourceRoot":"","sources":["../../applicants/applicant-credit-report.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,UAAU,mBAAmB;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,UAAU,eAAe;IACrB,MAAM,EAAE,MAA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IAEzB,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;IAC1C,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;IAE5C,kBAAkB,EAAE,oBAAoB,EAAE,CAAC;IAC3C,yBAAyB,EAAE,oBAAoB,EAAE,CAAC;IAElD,oBAAoB,EAAE,qBAAqB,EAAE,CAAC;IAC9C,2BAA2B,EAAE,qBAAqB,EAAE,CAAC;IAErD,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,gBAAgB,EAAE,eAAe,EAAE,CAAC;IAEpC,gBAAgB,EAAE,iBAAiB,EAAE,CAAC;IACtC,kBAAkB,EAAE,mBAAmB,EAAE,CAAC;IAC1C,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,IAAI,CAAC;IACjB,yBAAyB,EAAE,MAAM,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,86 @@
|
|
|
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 applicantDirectDebitSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
31
|
+
timestamps: true;
|
|
32
|
+
}, {
|
|
33
|
+
createdAt: NativeDate;
|
|
34
|
+
updatedAt: NativeDate;
|
|
35
|
+
} & {
|
|
36
|
+
isConfirmDeclaration: string;
|
|
37
|
+
addressLine1?: string | null | undefined;
|
|
38
|
+
addressLine2?: string | null | undefined;
|
|
39
|
+
accountNumber?: string | null | undefined;
|
|
40
|
+
branch?: string | null | undefined;
|
|
41
|
+
city?: string | null | undefined;
|
|
42
|
+
contactPostcode?: string | null | undefined;
|
|
43
|
+
institution?: string | null | undefined;
|
|
44
|
+
nameOfAccountHolder?: string | null | undefined;
|
|
45
|
+
sortCode?: string | null | undefined;
|
|
46
|
+
selectedPaymentDay?: string | null | undefined;
|
|
47
|
+
Applicants?: string | null | undefined;
|
|
48
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
49
|
+
createdAt: NativeDate;
|
|
50
|
+
updatedAt: NativeDate;
|
|
51
|
+
} & {
|
|
52
|
+
isConfirmDeclaration: string;
|
|
53
|
+
addressLine1?: string | null | undefined;
|
|
54
|
+
addressLine2?: string | null | undefined;
|
|
55
|
+
accountNumber?: string | null | undefined;
|
|
56
|
+
branch?: string | null | undefined;
|
|
57
|
+
city?: string | null | undefined;
|
|
58
|
+
contactPostcode?: string | null | undefined;
|
|
59
|
+
institution?: string | null | undefined;
|
|
60
|
+
nameOfAccountHolder?: string | null | undefined;
|
|
61
|
+
sortCode?: string | null | undefined;
|
|
62
|
+
selectedPaymentDay?: string | null | undefined;
|
|
63
|
+
Applicants?: string | null | undefined;
|
|
64
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
65
|
+
createdAt: NativeDate;
|
|
66
|
+
updatedAt: NativeDate;
|
|
67
|
+
} & {
|
|
68
|
+
isConfirmDeclaration: string;
|
|
69
|
+
addressLine1?: string | null | undefined;
|
|
70
|
+
addressLine2?: string | null | undefined;
|
|
71
|
+
accountNumber?: string | null | undefined;
|
|
72
|
+
branch?: string | null | undefined;
|
|
73
|
+
city?: string | null | undefined;
|
|
74
|
+
contactPostcode?: string | null | undefined;
|
|
75
|
+
institution?: string | null | undefined;
|
|
76
|
+
nameOfAccountHolder?: string | null | undefined;
|
|
77
|
+
sortCode?: string | null | undefined;
|
|
78
|
+
selectedPaymentDay?: string | null | undefined;
|
|
79
|
+
Applicants?: string | null | undefined;
|
|
80
|
+
}> & {
|
|
81
|
+
_id: mongoose.Types.ObjectId;
|
|
82
|
+
} & {
|
|
83
|
+
__v: number;
|
|
84
|
+
}>;
|
|
85
|
+
export default applicantDirectDebitSchema;
|
|
86
|
+
//# sourceMappingURL=applicant-direct-debit.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-direct-debit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaR,CAAC;AAEzB,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
const applicantDirectDebitSchema = new mongoose.Schema({
|
|
3
|
+
accountNumber: { type: String },
|
|
4
|
+
addressLine1: { type: String },
|
|
5
|
+
addressLine2: { type: String },
|
|
6
|
+
Applicants: { type: String },
|
|
7
|
+
branch: { type: String },
|
|
8
|
+
city: { type: String },
|
|
9
|
+
contactPostcode: { type: String },
|
|
10
|
+
institution: { type: String },
|
|
11
|
+
isConfirmDeclaration: { type: String, default: false },
|
|
12
|
+
nameOfAccountHolder: { type: String },
|
|
13
|
+
selectedPaymentDay: { type: String },
|
|
14
|
+
sortCode: { type: String }
|
|
15
|
+
}, { timestamps: true });
|
|
16
|
+
export default applicantDirectDebitSchema;
|
|
@@ -0,0 +1,206 @@
|
|
|
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
|
+
import { Pound } from "../value-objects/pound";
|
|
31
|
+
declare const ApplicantEmploymentIncomeModel: mongoose.Model<{
|
|
32
|
+
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
33
|
+
amount?: {
|
|
34
|
+
validators: mongoose.Types.DocumentArray<{
|
|
35
|
+
type?: unknown;
|
|
36
|
+
message?: unknown;
|
|
37
|
+
validator?: unknown;
|
|
38
|
+
reason?: unknown;
|
|
39
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
40
|
+
type?: unknown;
|
|
41
|
+
message?: unknown;
|
|
42
|
+
validator?: unknown;
|
|
43
|
+
reason?: unknown;
|
|
44
|
+
}> & {
|
|
45
|
+
type?: unknown;
|
|
46
|
+
message?: unknown;
|
|
47
|
+
validator?: unknown;
|
|
48
|
+
reason?: unknown;
|
|
49
|
+
}>;
|
|
50
|
+
get?: {} | null | undefined;
|
|
51
|
+
schema?: {
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
} | null | undefined;
|
|
54
|
+
set?: {} | null | undefined;
|
|
55
|
+
validate?: {} | null | undefined;
|
|
56
|
+
index?: {} | null | undefined;
|
|
57
|
+
default?: {} | null | undefined;
|
|
58
|
+
text?: {} | null | undefined;
|
|
59
|
+
unique?: {} | null | undefined;
|
|
60
|
+
sparse?: {} | null | undefined;
|
|
61
|
+
cast?: {} | null | undefined;
|
|
62
|
+
required?: {} | null | undefined;
|
|
63
|
+
ref?: {} | null | undefined;
|
|
64
|
+
select?: {} | null | undefined;
|
|
65
|
+
immutable?: {} | null | undefined;
|
|
66
|
+
transform?: {} | null | undefined;
|
|
67
|
+
options?: {
|
|
68
|
+
[x: string]: unknown;
|
|
69
|
+
} | null | undefined;
|
|
70
|
+
OptionsConstructor?: {
|
|
71
|
+
[x: string]: unknown;
|
|
72
|
+
} | null | undefined;
|
|
73
|
+
getEmbeddedSchemaType?: {} | null | undefined;
|
|
74
|
+
instance?: unknown;
|
|
75
|
+
isRequired?: unknown;
|
|
76
|
+
path?: unknown;
|
|
77
|
+
toJSONSchema?: {} | null | undefined;
|
|
78
|
+
validateAll?: {} | null | undefined;
|
|
79
|
+
defaultOptions?: unknown;
|
|
80
|
+
} | null | undefined;
|
|
81
|
+
incomeTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
82
|
+
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
83
|
+
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
84
|
+
amount?: {
|
|
85
|
+
validators: mongoose.Types.DocumentArray<{
|
|
86
|
+
type?: unknown;
|
|
87
|
+
message?: unknown;
|
|
88
|
+
validator?: unknown;
|
|
89
|
+
reason?: unknown;
|
|
90
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
91
|
+
type?: unknown;
|
|
92
|
+
message?: unknown;
|
|
93
|
+
validator?: unknown;
|
|
94
|
+
reason?: unknown;
|
|
95
|
+
}> & {
|
|
96
|
+
type?: unknown;
|
|
97
|
+
message?: unknown;
|
|
98
|
+
validator?: unknown;
|
|
99
|
+
reason?: unknown;
|
|
100
|
+
}>;
|
|
101
|
+
get?: {} | null | undefined;
|
|
102
|
+
schema?: {
|
|
103
|
+
[x: string]: unknown;
|
|
104
|
+
} | null | undefined;
|
|
105
|
+
set?: {} | null | undefined;
|
|
106
|
+
validate?: {} | null | undefined;
|
|
107
|
+
index?: {} | null | undefined;
|
|
108
|
+
default?: {} | null | undefined;
|
|
109
|
+
text?: {} | null | undefined;
|
|
110
|
+
unique?: {} | null | undefined;
|
|
111
|
+
sparse?: {} | null | undefined;
|
|
112
|
+
cast?: {} | null | undefined;
|
|
113
|
+
required?: {} | null | undefined;
|
|
114
|
+
ref?: {} | null | undefined;
|
|
115
|
+
select?: {} | null | undefined;
|
|
116
|
+
immutable?: {} | null | undefined;
|
|
117
|
+
transform?: {} | null | undefined;
|
|
118
|
+
options?: {
|
|
119
|
+
[x: string]: unknown;
|
|
120
|
+
} | null | undefined;
|
|
121
|
+
OptionsConstructor?: {
|
|
122
|
+
[x: string]: unknown;
|
|
123
|
+
} | null | undefined;
|
|
124
|
+
getEmbeddedSchemaType?: {} | null | undefined;
|
|
125
|
+
instance?: unknown;
|
|
126
|
+
isRequired?: unknown;
|
|
127
|
+
path?: unknown;
|
|
128
|
+
toJSONSchema?: {} | null | undefined;
|
|
129
|
+
validateAll?: {} | null | undefined;
|
|
130
|
+
defaultOptions?: unknown;
|
|
131
|
+
} | null | undefined;
|
|
132
|
+
incomeTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
133
|
+
}, {}> & {
|
|
134
|
+
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
135
|
+
amount?: {
|
|
136
|
+
validators: mongoose.Types.DocumentArray<{
|
|
137
|
+
type?: unknown;
|
|
138
|
+
message?: unknown;
|
|
139
|
+
validator?: unknown;
|
|
140
|
+
reason?: unknown;
|
|
141
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
142
|
+
type?: unknown;
|
|
143
|
+
message?: unknown;
|
|
144
|
+
validator?: unknown;
|
|
145
|
+
reason?: unknown;
|
|
146
|
+
}> & {
|
|
147
|
+
type?: unknown;
|
|
148
|
+
message?: unknown;
|
|
149
|
+
validator?: unknown;
|
|
150
|
+
reason?: unknown;
|
|
151
|
+
}>;
|
|
152
|
+
get?: {} | null | undefined;
|
|
153
|
+
schema?: {
|
|
154
|
+
[x: string]: unknown;
|
|
155
|
+
} | null | undefined;
|
|
156
|
+
set?: {} | null | undefined;
|
|
157
|
+
validate?: {} | null | undefined;
|
|
158
|
+
index?: {} | null | undefined;
|
|
159
|
+
default?: {} | null | undefined;
|
|
160
|
+
text?: {} | null | undefined;
|
|
161
|
+
unique?: {} | null | undefined;
|
|
162
|
+
sparse?: {} | null | undefined;
|
|
163
|
+
cast?: {} | null | undefined;
|
|
164
|
+
required?: {} | null | undefined;
|
|
165
|
+
ref?: {} | null | undefined;
|
|
166
|
+
select?: {} | null | undefined;
|
|
167
|
+
immutable?: {} | null | undefined;
|
|
168
|
+
transform?: {} | null | undefined;
|
|
169
|
+
options?: {
|
|
170
|
+
[x: string]: unknown;
|
|
171
|
+
} | null | undefined;
|
|
172
|
+
OptionsConstructor?: {
|
|
173
|
+
[x: string]: unknown;
|
|
174
|
+
} | null | undefined;
|
|
175
|
+
getEmbeddedSchemaType?: {} | null | undefined;
|
|
176
|
+
instance?: unknown;
|
|
177
|
+
isRequired?: unknown;
|
|
178
|
+
path?: unknown;
|
|
179
|
+
toJSONSchema?: {} | null | undefined;
|
|
180
|
+
validateAll?: {} | null | undefined;
|
|
181
|
+
defaultOptions?: unknown;
|
|
182
|
+
} | null | undefined;
|
|
183
|
+
incomeTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
184
|
+
} & {
|
|
185
|
+
_id: mongoose.Types.ObjectId;
|
|
186
|
+
} & {
|
|
187
|
+
__v: number;
|
|
188
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
189
|
+
applicantId: mongoose.Types.ObjectId;
|
|
190
|
+
amount: Pound;
|
|
191
|
+
incomeTypeLid: mongoose.Types.ObjectId;
|
|
192
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
193
|
+
applicantId: mongoose.Types.ObjectId;
|
|
194
|
+
amount: Pound;
|
|
195
|
+
incomeTypeLid: mongoose.Types.ObjectId;
|
|
196
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
197
|
+
applicantId: mongoose.Types.ObjectId;
|
|
198
|
+
amount: Pound;
|
|
199
|
+
incomeTypeLid: mongoose.Types.ObjectId;
|
|
200
|
+
}> & {
|
|
201
|
+
_id: mongoose.Types.ObjectId;
|
|
202
|
+
} & {
|
|
203
|
+
__v: number;
|
|
204
|
+
}>>;
|
|
205
|
+
export default ApplicantEmploymentIncomeModel;
|
|
206
|
+
//# sourceMappingURL=applicant-employment-income.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-employment-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-employment-income.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AAqB5D,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAgF,CAAC;AAErH,eAAe,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
|
+
import { Pound, formatPound } from "../value-objects/pound";
|
|
4
|
+
const applicantEmploymentIncomeSchema = new mongoose.Schema({
|
|
5
|
+
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
6
|
+
incomeTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
|
|
7
|
+
amount: { type: Pound, required: true, get: formatPound },
|
|
8
|
+
});
|
|
9
|
+
applicantEmploymentIncomeSchema.virtual('incomeSourceId').get(function () {
|
|
10
|
+
return this.applicantId?.incomeSourceId instanceof mongoose.Types.ObjectId
|
|
11
|
+
? null
|
|
12
|
+
: this.applicantId?.incomeSourceId?.incomeFromEmployment || null;
|
|
13
|
+
});
|
|
14
|
+
// Apply workflow plugin to the schema
|
|
15
|
+
applyWorkflowPlugin(applicantEmploymentIncomeSchema, 'applicantemploymentincome');
|
|
16
|
+
// Add indexes that exist in database but missing from model
|
|
17
|
+
applicantEmploymentIncomeSchema.index({ applicantId: 1 }); // Filter by applicant
|
|
18
|
+
applicantEmploymentIncomeSchema.index({ applicantId: 1, incomeTypeLid: 1 }); // Compound: applicant + income type
|
|
19
|
+
const ApplicantEmploymentIncomeModel = mongoose.model("Applicant_EmploymentIncome", applicantEmploymentIncomeSchema);
|
|
20
|
+
export default ApplicantEmploymentIncomeModel;
|