@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,274 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
|
+
import { Pound, formatPound } from "../value-objects/pound";
|
|
4
|
+
const mortgageSchema = new mongoose.Schema({
|
|
5
|
+
applicationId: {
|
|
6
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
7
|
+
ref: "Application",
|
|
8
|
+
required: true,
|
|
9
|
+
description: "Unique identifier for the application",
|
|
10
|
+
},
|
|
11
|
+
giftDetails: {
|
|
12
|
+
type: String,
|
|
13
|
+
maxlength: 50,
|
|
14
|
+
description: "Details of the gift for the mortgage",
|
|
15
|
+
},
|
|
16
|
+
pageValidFlag: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false,
|
|
19
|
+
description: "True if all mandatory fields have been completed, otherwise false",
|
|
20
|
+
},
|
|
21
|
+
existingMortgageLender: {
|
|
22
|
+
type: String,
|
|
23
|
+
maxlength: 35,
|
|
24
|
+
description: "Name of the existing mortgage lender",
|
|
25
|
+
},
|
|
26
|
+
topSlicing: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: false,
|
|
29
|
+
description: "Indicates if the mortgage is being paid off using top slicing",
|
|
30
|
+
},
|
|
31
|
+
purposeOfMortgage: {
|
|
32
|
+
type: String,
|
|
33
|
+
maxlength: 50,
|
|
34
|
+
description: "Purpose of the mortgage (e.g., purchase, refinance)",
|
|
35
|
+
},
|
|
36
|
+
depositComeFromLids: {
|
|
37
|
+
type: [mongoose.Schema.Types.ObjectId],
|
|
38
|
+
ref: "Lookup",
|
|
39
|
+
default: null,
|
|
40
|
+
description: "Where the deposit for the mortgage will come from",
|
|
41
|
+
},
|
|
42
|
+
sourceOfGiftLid: {
|
|
43
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
44
|
+
ref: "Lookup",
|
|
45
|
+
default: null,
|
|
46
|
+
description: "Lookup ID representing the source of the gift for the mortgage",
|
|
47
|
+
},
|
|
48
|
+
ifOtherDetails: {
|
|
49
|
+
type: String,
|
|
50
|
+
maxlength: 50,
|
|
51
|
+
description: "Details if the deposit comes from 'Other'",
|
|
52
|
+
},
|
|
53
|
+
purchasePrice: {
|
|
54
|
+
type: Pound,
|
|
55
|
+
description: "Purchase price of the property",
|
|
56
|
+
get: formatPound
|
|
57
|
+
},
|
|
58
|
+
repaymentTypeLid: {
|
|
59
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
60
|
+
ref: "Lookup",
|
|
61
|
+
default: null,
|
|
62
|
+
description: "Lookup ID representing the type of repayment (e.g., interest-only, repayment)",
|
|
63
|
+
},
|
|
64
|
+
exitStrategyLid: {
|
|
65
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
66
|
+
ref: "Lookup",
|
|
67
|
+
default: null,
|
|
68
|
+
description: "Lookup ID representing the Exit strategy for the mortgage)",
|
|
69
|
+
},
|
|
70
|
+
isCapitalRaise: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: false,
|
|
73
|
+
description: "Indicates if capital raising is part of this finance",
|
|
74
|
+
},
|
|
75
|
+
purchaseDate: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: null,
|
|
78
|
+
description: "Purchase date of the property",
|
|
79
|
+
},
|
|
80
|
+
estimatedValue: {
|
|
81
|
+
type: Pound,
|
|
82
|
+
description: "Estimated value of the property",
|
|
83
|
+
},
|
|
84
|
+
loanRequired: {
|
|
85
|
+
type: Pound,
|
|
86
|
+
description: "Amount of finance required",
|
|
87
|
+
},
|
|
88
|
+
monthlyRentalIncome: {
|
|
89
|
+
type: Pound,
|
|
90
|
+
description: "Monthly rental income from the property",
|
|
91
|
+
},
|
|
92
|
+
outstandingBalance: {
|
|
93
|
+
type: Pound,
|
|
94
|
+
description: "Outstanding balance on the existing mortgage",
|
|
95
|
+
},
|
|
96
|
+
fundRaisedFor: {
|
|
97
|
+
type: String,
|
|
98
|
+
maxlength: 250,
|
|
99
|
+
description: "What the funds raised will be used for",
|
|
100
|
+
},
|
|
101
|
+
sourceOfFundsLid: {
|
|
102
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
103
|
+
ref: "Lookup",
|
|
104
|
+
default: null,
|
|
105
|
+
description: "Lookup ID representing the Main source of income for monthly finance payments",
|
|
106
|
+
},
|
|
107
|
+
sourceOfFundDetails: {
|
|
108
|
+
type: String,
|
|
109
|
+
maxlength: 50,
|
|
110
|
+
description: "Additional details if the source of funds is 'Other'",
|
|
111
|
+
},
|
|
112
|
+
propertyValuationDetails: {
|
|
113
|
+
type: String,
|
|
114
|
+
maxlength: 35,
|
|
115
|
+
description: "Details on who to contact for property valuation",
|
|
116
|
+
},
|
|
117
|
+
telephoneNumber: {
|
|
118
|
+
type: String,
|
|
119
|
+
maxlength: 15,
|
|
120
|
+
description: "Contact number for property valuation",
|
|
121
|
+
},
|
|
122
|
+
isDistressedSale: {
|
|
123
|
+
type: Boolean,
|
|
124
|
+
default: false,
|
|
125
|
+
description: "Indicates if this is a distressed sale",
|
|
126
|
+
},
|
|
127
|
+
isPurchasedBelowMarketValue: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: false,
|
|
130
|
+
description: "Indicates if the property is purchased below market value",
|
|
131
|
+
},
|
|
132
|
+
isPurchasedAsSale: {
|
|
133
|
+
type: Boolean,
|
|
134
|
+
default: false,
|
|
135
|
+
description: "Indicates if the property is purchased as a sale and rent back",
|
|
136
|
+
},
|
|
137
|
+
isReadyToSell: {
|
|
138
|
+
type: Boolean,
|
|
139
|
+
default: false,
|
|
140
|
+
description: "Indicates if the property is ready to sell or let out",
|
|
141
|
+
},
|
|
142
|
+
isGovernmentInitiative: {
|
|
143
|
+
type: Boolean,
|
|
144
|
+
default: false,
|
|
145
|
+
description: "Indicates if this purchase is part of a government initiative",
|
|
146
|
+
},
|
|
147
|
+
vendorsName: {
|
|
148
|
+
type: String,
|
|
149
|
+
maxlength: 35,
|
|
150
|
+
description: "Vendor's name in case of property sale",
|
|
151
|
+
},
|
|
152
|
+
saleMadeLid: {
|
|
153
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
154
|
+
ref: "Lookup",
|
|
155
|
+
description: "Method of sale made",
|
|
156
|
+
},
|
|
157
|
+
isTheIntentionToLet: {
|
|
158
|
+
type: Boolean,
|
|
159
|
+
default: false,
|
|
160
|
+
description: "Indicates if the intention is to let out the property",
|
|
161
|
+
},
|
|
162
|
+
proposedTenantsLids: {
|
|
163
|
+
type: [mongoose.Schema.Types.ObjectId],
|
|
164
|
+
ref: "Lookup",
|
|
165
|
+
description: "Proposed tenants for the property",
|
|
166
|
+
},
|
|
167
|
+
leaseTypeLid: {
|
|
168
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
169
|
+
ref: "Lookup",
|
|
170
|
+
default: null,
|
|
171
|
+
description: "Lease type for the property",
|
|
172
|
+
},
|
|
173
|
+
sourceOfWealthLids: [{ type: mongoose.Schema.Types.ObjectId, ref: "Lookup" }],
|
|
174
|
+
sowBusiness: { type: String, default: "" },
|
|
175
|
+
sowInheritance: { type: String, default: "" },
|
|
176
|
+
sowOther: { type: String, default: "" },
|
|
177
|
+
sowProperty: { type: String, default: "" },
|
|
178
|
+
sowSalary: { type: String, default: "" },
|
|
179
|
+
}, {
|
|
180
|
+
timestamps: true,
|
|
181
|
+
toJSON: { virtuals: true },
|
|
182
|
+
toObject: { virtuals: true },
|
|
183
|
+
});
|
|
184
|
+
// const virtualDepositComeFrom = mortgageSchema.virtual("depositComeFrom", {
|
|
185
|
+
// ref: "Lookup",
|
|
186
|
+
// localField: "depositComeFromLid",
|
|
187
|
+
// foreignField: "_id",
|
|
188
|
+
// justOne: false,
|
|
189
|
+
// }) as VirtualWithDescription;
|
|
190
|
+
// virtualDepositComeFrom.description =
|
|
191
|
+
// "Populated lookup values for where the deposit for the mortgage will come from";
|
|
192
|
+
// const virtualRepaymentType = mortgageSchema.virtual("repaymentType", {
|
|
193
|
+
// ref: "Lookup",
|
|
194
|
+
// localField: "repaymentTypeLid",
|
|
195
|
+
// foreignField: "_id",
|
|
196
|
+
// justOne: true,
|
|
197
|
+
// }) as VirtualWithDescription;
|
|
198
|
+
// virtualRepaymentType.description =
|
|
199
|
+
// "Populated lookup value representing the type of repayment";
|
|
200
|
+
// const virtualExitStrategy = mortgageSchema.virtual("exitStrategy", {
|
|
201
|
+
// ref: "Lookup",
|
|
202
|
+
// localField: "exitStrategyLid",
|
|
203
|
+
// foreignField: "_id",
|
|
204
|
+
// justOne: true,
|
|
205
|
+
// }) as VirtualWithDescription;
|
|
206
|
+
// virtualExitStrategy.description = "Populated lookup value for exit strategy";
|
|
207
|
+
// const virtualSourceOfFunds = mortgageSchema.virtual("sourceOfFunds", {
|
|
208
|
+
// ref: "Lookup",
|
|
209
|
+
// localField: "sourceOfFundsLid",
|
|
210
|
+
// foreignField: "_id",
|
|
211
|
+
// justOne: true,
|
|
212
|
+
// }) as VirtualWithDescription;
|
|
213
|
+
// virtualSourceOfFunds.description =
|
|
214
|
+
// "Populated lookup value for the main source of income for monthly finance payments";
|
|
215
|
+
// const virtualSaleMade = mortgageSchema.virtual("saleMade", {
|
|
216
|
+
// ref: "Lookup",
|
|
217
|
+
// localField: "saleMadeLid",
|
|
218
|
+
// foreignField: "_id",
|
|
219
|
+
// justOne: true,
|
|
220
|
+
// }) as VirtualWithDescription;
|
|
221
|
+
// virtualSaleMade.description = "Populated lookup value for method of sale made";
|
|
222
|
+
// const virtualProposedTenants = mortgageSchema.virtual("proposedTenants", {
|
|
223
|
+
// ref: "Lookup",
|
|
224
|
+
// localField: "proposedTenantsLid",
|
|
225
|
+
// foreignField: "_id",
|
|
226
|
+
// justOne: false,
|
|
227
|
+
// }) as VirtualWithDescription;
|
|
228
|
+
// virtualProposedTenants.description =
|
|
229
|
+
// "Populated lookup values for proposed tenants of the property";
|
|
230
|
+
// const virtualLeaseType = mortgageSchema.virtual("leaseType", {
|
|
231
|
+
// ref: "Lookup",
|
|
232
|
+
// localField: "leaseTypeLid",
|
|
233
|
+
// foreignField: "_id",
|
|
234
|
+
// justOne: true,
|
|
235
|
+
// }) as VirtualWithDescription;
|
|
236
|
+
// virtualLeaseType.description = "Populated lookup value for lease type";
|
|
237
|
+
// virtual property 'applicationType'
|
|
238
|
+
mortgageSchema.virtual("applicationType").get(function () {
|
|
239
|
+
return this.applicationId?.applicationTypeLid instanceof
|
|
240
|
+
mongoose.Types.ObjectId
|
|
241
|
+
? null
|
|
242
|
+
: this.applicationId?.applicationTypeLid?.text || null;
|
|
243
|
+
});
|
|
244
|
+
// virtual property 'lendingType'
|
|
245
|
+
mortgageSchema.virtual("lendingType").get(function () {
|
|
246
|
+
return this.applicationId?.lendingTypeLid instanceof
|
|
247
|
+
mongoose.Types.ObjectId
|
|
248
|
+
? null
|
|
249
|
+
: this.applicationId?.lendingTypeLid?.text || null;
|
|
250
|
+
});
|
|
251
|
+
// virtual property 'purchaseType'
|
|
252
|
+
mortgageSchema.virtual("purchaseType").get(function () {
|
|
253
|
+
return this.applicationId?.purchaseTypeLid instanceof
|
|
254
|
+
mongoose.Types.ObjectId
|
|
255
|
+
? null
|
|
256
|
+
: this.applicationId?.purchaseTypeLid?.text || null;
|
|
257
|
+
});
|
|
258
|
+
// virtual property 'lendingType'
|
|
259
|
+
mortgageSchema.virtual("sourceOfWealth").get(function () {
|
|
260
|
+
const sourceOfWealthLids = this.applicationId?.sourceOfWealthLids;
|
|
261
|
+
if (!Array.isArray(sourceOfWealthLids)) {
|
|
262
|
+
return null;
|
|
263
|
+
}
|
|
264
|
+
return sourceOfWealthLids
|
|
265
|
+
.filter((lid) => !(lid instanceof mongoose.Types.ObjectId))
|
|
266
|
+
.map((lid) => lid?.text || null)
|
|
267
|
+
.filter((text) => text !== null);
|
|
268
|
+
});
|
|
269
|
+
// Apply workflow plugin to the schema
|
|
270
|
+
applyWorkflowPlugin(mortgageSchema, 'mortgage');
|
|
271
|
+
// Index for query optimization
|
|
272
|
+
mortgageSchema.index({ applicationId: 1 }); // Index for getByApplicationId queries
|
|
273
|
+
const MortgageModel = mongoose.model("Mortgage", mortgageSchema);
|
|
274
|
+
export default MortgageModel;
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
import { Pound } from "../value-objects/pound";
|
|
32
|
+
export default interface IApplicationMortgage extends IBaseType {
|
|
33
|
+
applicationId: Types.ObjectId;
|
|
34
|
+
giftDetails?: string;
|
|
35
|
+
pageValidFlag: boolean;
|
|
36
|
+
existingMortgageLender?: string;
|
|
37
|
+
topSlicing: boolean;
|
|
38
|
+
purposeOfMortgage?: string;
|
|
39
|
+
depositComeFromLids?: Types.ObjectId[];
|
|
40
|
+
ifOtherDetails?: string;
|
|
41
|
+
purchasePrice?: Pound;
|
|
42
|
+
repaymentTypeLid?: Types.ObjectId;
|
|
43
|
+
exitStrategyLid?: Types.ObjectId;
|
|
44
|
+
isCapitalRaise: boolean;
|
|
45
|
+
purchaseDate?: string;
|
|
46
|
+
estimatedValue?: Pound;
|
|
47
|
+
loanRequired?: Pound;
|
|
48
|
+
monthlyRentalIncome?: Pound;
|
|
49
|
+
outstandingBalance?: Pound;
|
|
50
|
+
fundRaisedFor?: string;
|
|
51
|
+
sourceOfFundsLid?: Types.ObjectId;
|
|
52
|
+
sourceOfFundDetails?: string;
|
|
53
|
+
propertyValuationDetails?: string;
|
|
54
|
+
telephoneNumber?: string;
|
|
55
|
+
isDistressedSale: boolean;
|
|
56
|
+
isPurchasedBelowMarketValue: boolean;
|
|
57
|
+
isPurchasedAsSale: boolean;
|
|
58
|
+
isReadyToSell: boolean;
|
|
59
|
+
isGovernmentInitiative: boolean;
|
|
60
|
+
vendorsName?: string;
|
|
61
|
+
saleMadeLid?: Types.ObjectId;
|
|
62
|
+
isTheIntentionToLet: boolean;
|
|
63
|
+
proposedTenantsLids?: Types.ObjectId[];
|
|
64
|
+
leaseTypeLid?: Types.ObjectId;
|
|
65
|
+
sourceOfWealthLids?: Types.ObjectId[];
|
|
66
|
+
sowBusiness: string;
|
|
67
|
+
sowInheritance: string;
|
|
68
|
+
sowOther: string;
|
|
69
|
+
sowProperty: string;
|
|
70
|
+
sowSalary: string;
|
|
71
|
+
applicationType?: string;
|
|
72
|
+
lendingType?: string;
|
|
73
|
+
purchaseType?: string;
|
|
74
|
+
sourceOfWealth?: string[];
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=application-mortgage.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-mortgage.type.d.ts","sourceRoot":"","sources":["../../applications/application-mortgage.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,MAAM,CAAC,OAAO,WAAW,oBAAqB,SAAQ,SAAS;IAC7D,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACvC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,gBAAgB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAClC,eAAe,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACjC,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,mBAAmB,CAAC,EAAE,KAAK,CAAC;IAC5B,kBAAkB,CAAC,EAAE,KAAK,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAClC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,2BAA2B,EAAE,OAAO,CAAC;IACrC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,sBAAsB,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC7B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,mBAAmB,CAAC,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACvC,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC9B,kBAAkB,CAAC,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAGlB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,184 @@
|
|
|
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 ApplictionNoteModel: mongoose.Model<{
|
|
31
|
+
comment: string;
|
|
32
|
+
applicationId: mongoose.Types.ObjectId;
|
|
33
|
+
noteId: string;
|
|
34
|
+
createdOn: string;
|
|
35
|
+
createdBy: string;
|
|
36
|
+
username: string;
|
|
37
|
+
subject: string;
|
|
38
|
+
note: string;
|
|
39
|
+
reminderDate: string;
|
|
40
|
+
assignedOperation: string;
|
|
41
|
+
autoCreated: string;
|
|
42
|
+
additionalData: any;
|
|
43
|
+
autoCreatedId: string;
|
|
44
|
+
assignedTo: string;
|
|
45
|
+
assignedBy: string;
|
|
46
|
+
reminderStatus: string;
|
|
47
|
+
updatedOn: string;
|
|
48
|
+
createdByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
49
|
+
noteTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
50
|
+
noteSubTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
51
|
+
attachmentDocumentId?: string | null | undefined;
|
|
52
|
+
documentName?: string | null | undefined;
|
|
53
|
+
assignedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
54
|
+
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
55
|
+
comment: string;
|
|
56
|
+
applicationId: mongoose.Types.ObjectId;
|
|
57
|
+
noteId: string;
|
|
58
|
+
createdOn: string;
|
|
59
|
+
createdBy: string;
|
|
60
|
+
username: string;
|
|
61
|
+
subject: string;
|
|
62
|
+
note: string;
|
|
63
|
+
reminderDate: string;
|
|
64
|
+
assignedOperation: string;
|
|
65
|
+
autoCreated: string;
|
|
66
|
+
additionalData: any;
|
|
67
|
+
autoCreatedId: string;
|
|
68
|
+
assignedTo: string;
|
|
69
|
+
assignedBy: string;
|
|
70
|
+
reminderStatus: string;
|
|
71
|
+
updatedOn: string;
|
|
72
|
+
createdByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
73
|
+
noteTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
74
|
+
noteSubTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
75
|
+
attachmentDocumentId?: string | null | undefined;
|
|
76
|
+
documentName?: string | null | undefined;
|
|
77
|
+
assignedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
78
|
+
}, {}> & {
|
|
79
|
+
comment: string;
|
|
80
|
+
applicationId: mongoose.Types.ObjectId;
|
|
81
|
+
noteId: string;
|
|
82
|
+
createdOn: string;
|
|
83
|
+
createdBy: string;
|
|
84
|
+
username: string;
|
|
85
|
+
subject: string;
|
|
86
|
+
note: string;
|
|
87
|
+
reminderDate: string;
|
|
88
|
+
assignedOperation: string;
|
|
89
|
+
autoCreated: string;
|
|
90
|
+
additionalData: any;
|
|
91
|
+
autoCreatedId: string;
|
|
92
|
+
assignedTo: string;
|
|
93
|
+
assignedBy: string;
|
|
94
|
+
reminderStatus: string;
|
|
95
|
+
updatedOn: string;
|
|
96
|
+
createdByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
97
|
+
noteTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
98
|
+
noteSubTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
99
|
+
attachmentDocumentId?: string | null | undefined;
|
|
100
|
+
documentName?: string | null | undefined;
|
|
101
|
+
assignedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
102
|
+
} & {
|
|
103
|
+
_id: mongoose.Types.ObjectId;
|
|
104
|
+
} & {
|
|
105
|
+
__v: number;
|
|
106
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
107
|
+
comment: string;
|
|
108
|
+
applicationId: mongoose.Types.ObjectId;
|
|
109
|
+
noteId: string;
|
|
110
|
+
createdOn: string;
|
|
111
|
+
createdBy: string;
|
|
112
|
+
username: string;
|
|
113
|
+
subject: string;
|
|
114
|
+
note: string;
|
|
115
|
+
reminderDate: string;
|
|
116
|
+
assignedOperation: string;
|
|
117
|
+
autoCreated: string;
|
|
118
|
+
additionalData: any;
|
|
119
|
+
autoCreatedId: string;
|
|
120
|
+
assignedTo: string;
|
|
121
|
+
assignedBy: string;
|
|
122
|
+
reminderStatus: string;
|
|
123
|
+
updatedOn: string;
|
|
124
|
+
createdByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
125
|
+
noteTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
126
|
+
noteSubTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
127
|
+
attachmentDocumentId?: string | null | undefined;
|
|
128
|
+
documentName?: string | null | undefined;
|
|
129
|
+
assignedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
130
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
131
|
+
comment: string;
|
|
132
|
+
applicationId: mongoose.Types.ObjectId;
|
|
133
|
+
noteId: string;
|
|
134
|
+
createdOn: string;
|
|
135
|
+
createdBy: string;
|
|
136
|
+
username: string;
|
|
137
|
+
subject: string;
|
|
138
|
+
note: string;
|
|
139
|
+
reminderDate: string;
|
|
140
|
+
assignedOperation: string;
|
|
141
|
+
autoCreated: string;
|
|
142
|
+
additionalData: any;
|
|
143
|
+
autoCreatedId: string;
|
|
144
|
+
assignedTo: string;
|
|
145
|
+
assignedBy: string;
|
|
146
|
+
reminderStatus: string;
|
|
147
|
+
updatedOn: string;
|
|
148
|
+
createdByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
149
|
+
noteTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
150
|
+
noteSubTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
151
|
+
attachmentDocumentId?: string | null | undefined;
|
|
152
|
+
documentName?: string | null | undefined;
|
|
153
|
+
assignedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
154
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
155
|
+
comment: string;
|
|
156
|
+
applicationId: mongoose.Types.ObjectId;
|
|
157
|
+
noteId: string;
|
|
158
|
+
createdOn: string;
|
|
159
|
+
createdBy: string;
|
|
160
|
+
username: string;
|
|
161
|
+
subject: string;
|
|
162
|
+
note: string;
|
|
163
|
+
reminderDate: string;
|
|
164
|
+
assignedOperation: string;
|
|
165
|
+
autoCreated: string;
|
|
166
|
+
additionalData: any;
|
|
167
|
+
autoCreatedId: string;
|
|
168
|
+
assignedTo: string;
|
|
169
|
+
assignedBy: string;
|
|
170
|
+
reminderStatus: string;
|
|
171
|
+
updatedOn: string;
|
|
172
|
+
createdByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
173
|
+
noteTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
174
|
+
noteSubTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
175
|
+
attachmentDocumentId?: string | null | undefined;
|
|
176
|
+
documentName?: string | null | undefined;
|
|
177
|
+
assignedByUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
178
|
+
}> & {
|
|
179
|
+
_id: mongoose.Types.ObjectId;
|
|
180
|
+
} & {
|
|
181
|
+
__v: number;
|
|
182
|
+
}>>;
|
|
183
|
+
export default ApplictionNoteModel;
|
|
184
|
+
//# sourceMappingURL=application-note.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-note.model.d.ts","sourceRoot":"","sources":["../../applications/application-note.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAiHhC,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA+C,CAAC;AACzE,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
|
+
const noteSchema = new mongoose.Schema({
|
|
4
|
+
applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true },
|
|
5
|
+
noteId: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: null
|
|
8
|
+
},
|
|
9
|
+
createdOn: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: null
|
|
12
|
+
},
|
|
13
|
+
createdBy: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: null
|
|
16
|
+
},
|
|
17
|
+
username: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: null
|
|
20
|
+
},
|
|
21
|
+
createdByUserId: {
|
|
22
|
+
type: mongoose.Schema.Types.ObjectId, ref: "User",
|
|
23
|
+
},
|
|
24
|
+
noteTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
25
|
+
noteSubTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
26
|
+
subject: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: null
|
|
29
|
+
},
|
|
30
|
+
note: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: true
|
|
33
|
+
},
|
|
34
|
+
reminderDate: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: null
|
|
37
|
+
},
|
|
38
|
+
attachmentDocumentId: {
|
|
39
|
+
type: String,
|
|
40
|
+
},
|
|
41
|
+
documentName: {
|
|
42
|
+
type: String,
|
|
43
|
+
},
|
|
44
|
+
assignedOperation: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: ''
|
|
47
|
+
},
|
|
48
|
+
autoCreated: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: false
|
|
51
|
+
},
|
|
52
|
+
additionalData: {
|
|
53
|
+
type: mongoose.Schema.Types.Mixed,
|
|
54
|
+
default: null
|
|
55
|
+
},
|
|
56
|
+
autoCreatedId: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: null
|
|
59
|
+
},
|
|
60
|
+
assignedTo: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: ''
|
|
63
|
+
},
|
|
64
|
+
assignedBy: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: null
|
|
67
|
+
},
|
|
68
|
+
assignedByUserId: {
|
|
69
|
+
type: mongoose.Schema.Types.ObjectId, ref: "User",
|
|
70
|
+
},
|
|
71
|
+
comment: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: null
|
|
74
|
+
},
|
|
75
|
+
reminderStatus: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: 'None'
|
|
78
|
+
},
|
|
79
|
+
updatedOn: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: null
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
// Apply workflow plugin to the schema
|
|
85
|
+
applyWorkflowPlugin(noteSchema, 'applictionnote');
|
|
86
|
+
// Database indexes for performance optimization
|
|
87
|
+
// Existing indexes
|
|
88
|
+
noteSchema.index({ applicationId: 1 });
|
|
89
|
+
noteSchema.index({ noteId: 1 });
|
|
90
|
+
noteSchema.index({ createdByUserId: 1 });
|
|
91
|
+
noteSchema.index({ noteTypeLid: 1 });
|
|
92
|
+
noteSchema.index({ noteSubTypeLid: 1 });
|
|
93
|
+
noteSchema.index({
|
|
94
|
+
applicationId: 1,
|
|
95
|
+
noteId: 1
|
|
96
|
+
});
|
|
97
|
+
// Additional recommended indexes for query patterns
|
|
98
|
+
// Compound indexes for primary query patterns
|
|
99
|
+
noteSchema.index({ applicationId: 1, createdOn: -1 }); // Primary query pattern with sort
|
|
100
|
+
noteSchema.index({ applicationId: 1, noteTypeLid: 1 }); // For filtering by type
|
|
101
|
+
noteSchema.index({ applicationId: 1, createdBy: 1 }); // For filtering by creator
|
|
102
|
+
// Single field indexes for distinct and filter operations
|
|
103
|
+
noteSchema.index({ createdBy: 1 }); // For distinct operations and creator filtering
|
|
104
|
+
const ApplictionNoteModel = mongoose.model("ApplictionNote", noteSchema);
|
|
105
|
+
export default ApplictionNoteModel;
|