@dynamatix/gb-schemas 1.2.80 → 2.0.0
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-commitment-creditCard.model.d.ts +0 -26
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-loan.model.d.ts +0 -26
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +0 -26
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-residence.model.d.ts +0 -26
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +0 -26
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +0 -26
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-data.model.d.ts +0 -27
- package/dist/applicants/applicant-credit-data.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-profile.model.d.ts +0 -27
- package/dist/applicants/applicant-credit-profile.model.d.ts.map +1 -1
- package/dist/applicants/applicant-direct-debit.model.d.ts +0 -27
- package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment.model.d.ts +0 -26
- package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.d.ts +50 -99
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.js +18 -49
- package/dist/applicants/applicant-income-source.model.d.ts +0 -27
- package/dist/applicants/applicant-income-source.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income.model.d.ts +0 -26
- package/dist/applicants/applicant-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-other-income.model.d.ts +0 -26
- package/dist/applicants/applicant-other-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-property-income.model.d.ts +0 -26
- package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-risk-narrative.model.d.ts +0 -27
- package/dist/applicants/applicant-risk-narrative.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.d.ts +0 -26
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/index.d.ts +0 -1
- package/dist/applicants/index.d.ts.map +1 -1
- package/dist/applicants/index.js +0 -1
- package/dist/applications/application-audit.model.d.ts +0 -27
- package/dist/applications/application-audit.model.d.ts.map +1 -1
- package/dist/applications/application-checklist-Item.model.d.ts +0 -27
- package/dist/applications/application-checklist-Item.model.d.ts.map +1 -1
- package/dist/applications/application-company-model.d.ts +0 -26
- package/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-credit-profile.model.d.ts +0 -27
- package/dist/applications/application-credit-profile.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.d.ts +0 -26
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
- package/dist/applications/application-document.model.d.ts +0 -27
- package/dist/applications/application-document.model.d.ts.map +1 -1
- package/dist/applications/application-fieldconfig.model.d.ts +0 -27
- package/dist/applications/application-fieldconfig.model.d.ts.map +1 -1
- package/dist/applications/application-illustration-model.d.ts +0 -27
- package/dist/applications/application-illustration-model.d.ts.map +1 -1
- package/dist/applications/application-legal.model.d.ts +0 -27
- package/dist/applications/application-legal.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.d.ts +0 -26
- package/dist/applications/application-mortgage.model.d.ts.map +1 -1
- package/dist/applications/application-note.model.d.ts +0 -27
- package/dist/applications/application-note.model.d.ts.map +1 -1
- package/dist/applications/application-offer.model.d.ts +0 -27
- package/dist/applications/application-offer.model.d.ts.map +1 -1
- package/dist/applications/application-onboarding.model.d.ts +0 -27
- package/dist/applications/application-onboarding.model.d.ts.map +1 -1
- package/dist/applications/application-product.model.d.ts +0 -27
- package/dist/applications/application-product.model.d.ts.map +1 -1
- package/dist/applications/application-rationale.model.d.ts +0 -27
- package/dist/applications/application-rationale.model.d.ts.map +1 -1
- package/dist/applications/application-risk-narrative.model.d.ts +0 -27
- package/dist/applications/application-risk-narrative.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.d.ts +0 -27
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application.model.d.ts +0 -27
- package/dist/applications/application.model.d.ts.map +1 -1
- package/dist/applications/broker.model.d.ts +0 -27
- package/dist/applications/broker.model.d.ts.map +1 -1
- package/dist/applications/document.model.d.ts +0 -27
- package/dist/applications/document.model.d.ts.map +1 -1
- package/dist/applications/productfeatures.model.d.ts +0 -27
- package/dist/applications/productfeatures.model.d.ts.map +1 -1
- package/dist/applications/solicitor.model.d.ts +0 -26
- package/dist/applications/solicitor.model.d.ts.map +1 -1
- package/dist/entities/applicants/applicant.entity.d.ts +148 -0
- package/dist/entities/applicants/applicant.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant.entity.js +51 -0
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts +16 -0
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/credit-card-commitment.entity.js +5 -0
- package/dist/entities/applicants/credit-data.entity.d.ts +19 -0
- package/dist/entities/applicants/credit-data.entity.d.ts.map +1 -0
- package/dist/entities/applicants/credit-data.entity.js +5 -0
- package/dist/entities/applicants/credit-profile.entity.d.ts +11 -0
- package/dist/entities/applicants/credit-profile.entity.d.ts.map +1 -0
- package/dist/entities/applicants/credit-profile.entity.js +5 -0
- package/dist/entities/applicants/direct-debit.entity.d.ts +25 -0
- package/dist/entities/applicants/direct-debit.entity.d.ts.map +1 -0
- package/dist/entities/applicants/direct-debit.entity.js +5 -0
- package/dist/entities/applicants/employment.entity.d.ts +61 -0
- package/dist/entities/applicants/employment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/employment.entity.js +10 -0
- package/dist/entities/applicants/expenditure.entity.d.ts +24 -0
- package/dist/entities/applicants/expenditure.entity.d.ts.map +1 -0
- package/dist/entities/applicants/expenditure.entity.js +5 -0
- package/dist/entities/applicants/income-source.entity.d.ts +17 -0
- package/dist/entities/applicants/income-source.entity.d.ts.map +1 -0
- package/dist/entities/applicants/income-source.entity.js +5 -0
- package/dist/entities/applicants/income.entity.d.ts +54 -0
- package/dist/entities/applicants/income.entity.d.ts.map +1 -0
- package/dist/entities/applicants/income.entity.js +5 -0
- package/dist/entities/applicants/index.d.ts +20 -0
- package/dist/entities/applicants/index.d.ts.map +1 -0
- package/dist/entities/applicants/index.js +18 -0
- package/dist/entities/applicants/loan-commitment.entity.d.ts +20 -0
- package/dist/entities/applicants/loan-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/loan-commitment.entity.js +5 -0
- package/dist/entities/applicants/lookup.entity.d.ts +10 -0
- package/dist/entities/applicants/lookup.entity.d.ts.map +1 -0
- package/dist/entities/applicants/lookup.entity.js +5 -0
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts +37 -0
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/mortgage-commitment.entity.js +19 -0
- package/dist/entities/applicants/other-income.entity.d.ts +41 -0
- package/dist/entities/applicants/other-income.entity.d.ts.map +1 -0
- package/dist/entities/applicants/other-income.entity.js +19 -0
- package/dist/entities/applicants/property-income.entity.d.ts +17 -0
- package/dist/entities/applicants/property-income.entity.d.ts.map +1 -0
- package/dist/entities/applicants/property-income.entity.js +5 -0
- package/dist/entities/applicants/residence-commitment.entity.d.ts +44 -0
- package/dist/entities/applicants/residence-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/residence-commitment.entity.js +19 -0
- package/dist/entities/applicants/risk-narrative.entity.d.ts +23 -0
- package/dist/entities/applicants/risk-narrative.entity.d.ts.map +1 -0
- package/dist/entities/applicants/risk-narrative.entity.js +5 -0
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts +21 -0
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/secure-loan-commitment.entity.js +9 -0
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts +20 -0
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/unsecured-loan-commitment.entity.js +10 -0
- package/dist/entities/applications/application-audit.entity.d.ts +18 -0
- package/dist/entities/applications/application-audit.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-audit.entity.js +5 -0
- package/dist/entities/applications/application-company.entity.d.ts +12 -0
- package/dist/entities/applications/application-company.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-company.entity.js +5 -0
- package/dist/entities/applications/application-direct-debit.entity.d.ts +12 -0
- package/dist/entities/applications/application-direct-debit.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-direct-debit.entity.js +5 -0
- package/dist/entities/applications/application-document.entity.d.ts +28 -0
- package/dist/entities/applications/application-document.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-document.entity.js +5 -0
- package/dist/entities/applications/application-fieldconfig.entity.d.ts +9 -0
- package/dist/entities/applications/application-fieldconfig.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-fieldconfig.entity.js +5 -0
- package/dist/entities/applications/application-illustration.entity.d.ts +8 -0
- package/dist/entities/applications/application-illustration.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-illustration.entity.js +5 -0
- package/dist/entities/applications/application-legal.entity.d.ts +9 -0
- package/dist/entities/applications/application-legal.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-legal.entity.js +5 -0
- package/dist/entities/applications/application-mortgage.entity.d.ts +55 -0
- package/dist/entities/applications/application-mortgage.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-mortgage.entity.js +27 -0
- package/dist/entities/applications/application-note.entity.d.ts +36 -0
- package/dist/entities/applications/application-note.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-note.entity.js +5 -0
- package/dist/entities/applications/application-offer.entity.d.ts +8 -0
- package/dist/entities/applications/application-offer.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-offer.entity.js +5 -0
- package/dist/entities/applications/application-onboarding.entity.d.ts +11 -0
- package/dist/entities/applications/application-onboarding.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-onboarding.entity.js +5 -0
- package/dist/entities/applications/application-product.entity.d.ts +33 -0
- package/dist/entities/applications/application-product.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-product.entity.js +5 -0
- package/dist/entities/applications/application-rationale.entity.d.ts +51 -0
- package/dist/entities/applications/application-rationale.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-rationale.entity.js +5 -0
- package/dist/entities/applications/application-risk-narrative.entity.d.ts +17 -0
- package/dist/entities/applications/application-risk-narrative.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-risk-narrative.entity.js +5 -0
- package/dist/entities/applications/application-valuation.entity.d.ts +18 -0
- package/dist/entities/applications/application-valuation.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-valuation.entity.js +5 -0
- package/dist/entities/applications/application.entity.d.ts +99 -0
- package/dist/entities/applications/application.entity.d.ts.map +1 -0
- package/dist/entities/applications/application.entity.js +66 -0
- package/dist/entities/applications/broker.entity.d.ts +23 -0
- package/dist/entities/applications/broker.entity.d.ts.map +1 -0
- package/dist/entities/applications/broker.entity.js +5 -0
- package/dist/entities/applications/checklist-item.entity.d.ts +47 -0
- package/dist/entities/applications/checklist-item.entity.d.ts.map +1 -0
- package/dist/entities/applications/checklist-item.entity.js +5 -0
- package/dist/entities/applications/company.entity.d.ts +77 -0
- package/dist/entities/applications/company.entity.d.ts.map +1 -0
- package/dist/entities/applications/company.entity.js +23 -0
- package/dist/entities/applications/credit-profile.entity.d.ts +11 -0
- package/dist/entities/applications/credit-profile.entity.d.ts.map +1 -0
- package/dist/entities/applications/credit-profile.entity.js +5 -0
- package/dist/entities/applications/index.d.ts +25 -0
- package/dist/entities/applications/index.d.ts.map +1 -0
- package/dist/entities/applications/index.js +23 -0
- package/dist/entities/applications/product-features.entity.d.ts +54 -0
- package/dist/entities/applications/product-features.entity.d.ts.map +1 -0
- package/dist/entities/applications/product-features.entity.js +5 -0
- package/dist/entities/applications/solicitor.entity.d.ts +33 -0
- package/dist/entities/applications/solicitor.entity.d.ts.map +1 -0
- package/dist/entities/applications/solicitor.entity.js +5 -0
- package/dist/entities/index.d.ts +10 -0
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +10 -0
- package/dist/entities/prisma.d.ts +3 -0
- package/dist/entities/prisma.d.ts.map +1 -0
- package/dist/entities/prisma.js +10 -0
- package/dist/entities/product-catalogues/index.d.ts +8 -0
- package/dist/entities/product-catalogues/index.d.ts.map +1 -0
- package/dist/entities/product-catalogues/index.js +6 -0
- package/dist/entities/product-catalogues/product-catalogue.entity.d.ts +22 -0
- package/dist/entities/product-catalogues/product-catalogue.entity.d.ts.map +1 -0
- package/dist/entities/product-catalogues/product-catalogue.entity.js +5 -0
- package/dist/entities/product-catalogues/product-definition.entity.d.ts +16 -0
- package/dist/entities/product-catalogues/product-definition.entity.d.ts.map +1 -0
- package/dist/entities/product-catalogues/product-definition.entity.js +5 -0
- package/dist/entities/product-catalogues/product-variant.entity.d.ts +14 -0
- package/dist/entities/product-catalogues/product-variant.entity.d.ts.map +1 -0
- package/dist/entities/product-catalogues/product-variant.entity.js +5 -0
- package/dist/entities/product-catalogues/product.entity.d.ts +11 -0
- package/dist/entities/product-catalogues/product.entity.d.ts.map +1 -0
- package/dist/entities/product-catalogues/product.entity.js +5 -0
- package/dist/entities/product-catalogues/rule.entity.d.ts +21 -0
- package/dist/entities/product-catalogues/rule.entity.d.ts.map +1 -0
- package/dist/entities/product-catalogues/rule.entity.js +5 -0
- package/dist/entities/properties/data-street.entity.d.ts +22 -0
- package/dist/entities/properties/data-street.entity.d.ts.map +1 -0
- package/dist/entities/properties/data-street.entity.js +5 -0
- package/dist/entities/properties/index.d.ts +6 -0
- package/dist/entities/properties/index.d.ts.map +1 -0
- package/dist/entities/properties/index.js +4 -0
- package/dist/entities/properties/property.entity.d.ts +30 -0
- package/dist/entities/properties/property.entity.d.ts.map +1 -0
- package/dist/entities/properties/property.entity.js +5 -0
- package/dist/entities/properties/security.entity.d.ts +57 -0
- package/dist/entities/properties/security.entity.d.ts.map +1 -0
- package/dist/entities/properties/security.entity.js +5 -0
- package/dist/entities/shared/alert.entity.d.ts +14 -0
- package/dist/entities/shared/alert.entity.d.ts.map +1 -0
- package/dist/entities/shared/alert.entity.js +5 -0
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts +16 -0
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts.map +1 -0
- package/dist/entities/shared/apprivo-sync-journey.entity.js +5 -0
- package/dist/entities/shared/checklist.entity.d.ts +15 -0
- package/dist/entities/shared/checklist.entity.d.ts.map +1 -0
- package/dist/entities/shared/checklist.entity.js +5 -0
- package/dist/entities/shared/document-type.entity.d.ts +9 -0
- package/dist/entities/shared/document-type.entity.d.ts.map +1 -0
- package/dist/entities/shared/document-type.entity.js +5 -0
- package/dist/entities/shared/index.d.ts +12 -0
- package/dist/entities/shared/index.d.ts.map +1 -0
- package/dist/entities/shared/index.js +10 -0
- package/dist/entities/shared/job-run.entity.d.ts +11 -0
- package/dist/entities/shared/job-run.entity.d.ts.map +1 -0
- package/dist/entities/shared/job-run.entity.js +5 -0
- package/dist/entities/shared/job-setting.entity.d.ts +11 -0
- package/dist/entities/shared/job-setting.entity.d.ts.map +1 -0
- package/dist/entities/shared/job-setting.entity.js +5 -0
- package/dist/entities/shared/lookup-group.entity.d.ts +11 -0
- package/dist/entities/shared/lookup-group.entity.d.ts.map +1 -0
- package/dist/entities/shared/lookup-group.entity.js +5 -0
- package/dist/entities/shared/lookup.entity.d.ts +14 -0
- package/dist/entities/shared/lookup.entity.d.ts.map +1 -0
- package/dist/entities/shared/lookup.entity.js +5 -0
- package/dist/entities/shared/system-parameter.entity.d.ts +10 -0
- package/dist/entities/shared/system-parameter.entity.d.ts.map +1 -0
- package/dist/entities/shared/system-parameter.entity.js +5 -0
- package/dist/entities/underwriter/index.d.ts +4 -0
- package/dist/entities/underwriter/index.d.ts.map +1 -0
- package/dist/entities/underwriter/index.js +2 -0
- package/dist/entities/underwriter/underwriter.entity.d.ts +16 -0
- package/dist/entities/underwriter/underwriter.entity.d.ts.map +1 -0
- package/dist/entities/underwriter/underwriter.entity.js +5 -0
- package/dist/entities/users/auth-log.entity.d.ts +11 -0
- package/dist/entities/users/auth-log.entity.d.ts.map +1 -0
- package/dist/entities/users/auth-log.entity.js +5 -0
- package/dist/entities/users/index.d.ts +8 -0
- package/dist/entities/users/index.d.ts.map +1 -0
- package/dist/entities/users/index.js +6 -0
- package/dist/entities/users/permission.entity.d.ts +12 -0
- package/dist/entities/users/permission.entity.d.ts.map +1 -0
- package/dist/entities/users/permission.entity.js +5 -0
- package/dist/entities/users/role-group.entity.d.ts +12 -0
- package/dist/entities/users/role-group.entity.d.ts.map +1 -0
- package/dist/entities/users/role-group.entity.js +5 -0
- package/dist/entities/users/role.entity.d.ts +14 -0
- package/dist/entities/users/role.entity.d.ts.map +1 -0
- package/dist/entities/users/role.entity.js +5 -0
- package/dist/entities/users/user.entity.d.ts +35 -0
- package/dist/entities/users/user.entity.d.ts.map +1 -0
- package/dist/entities/users/user.entity.js +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/product-catalogues/product-catalogue.model.d.ts +0 -27
- package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-definitions.model.d.ts +0 -27
- package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-variant.model.d.ts +0 -27
- package/dist/product-catalogues/product-variant.model.d.ts.map +1 -1
- package/dist/properties/property.model.d.ts +0 -26
- package/dist/properties/property.model.d.ts.map +1 -1
- package/dist/properties/security.model.d.ts +0 -27
- package/dist/properties/security.model.d.ts.map +1 -1
- package/dist/shared/alert.model.d.ts +0 -27
- package/dist/shared/alert.model.d.ts.map +1 -1
- package/dist/shared/apprivo-sync-journey.model.d.ts +0 -27
- package/dist/shared/apprivo-sync-journey.model.d.ts.map +1 -1
- package/dist/shared/checklist.model.d.ts +0 -27
- package/dist/shared/checklist.model.d.ts.map +1 -1
- package/dist/shared/document-type-model.d.ts +0 -27
- package/dist/shared/document-type-model.d.ts.map +1 -1
- package/dist/shared/job-run.model.d.ts +0 -27
- package/dist/shared/job-run.model.d.ts.map +1 -1
- package/dist/shared/job-setting.model.d.ts +0 -27
- package/dist/shared/job-setting.model.d.ts.map +1 -1
- package/dist/shared/lookup-group.model.d.ts +0 -27
- package/dist/shared/lookup-group.model.d.ts.map +1 -1
- package/dist/shared/lookup.model.d.ts +0 -27
- package/dist/shared/lookup.model.d.ts.map +1 -1
- package/dist/shared/schema-doc.model.d.ts +0 -27
- package/dist/shared/schema-doc.model.d.ts.map +1 -1
- package/dist/shared/system-parameter.model.d.ts +0 -27
- package/dist/shared/system-parameter.model.d.ts.map +1 -1
- package/dist/shared/task-document.model.d.ts +0 -27
- package/dist/shared/task-document.model.d.ts.map +1 -1
- package/dist/shared/task.model.d.ts +0 -27
- package/dist/shared/task.model.d.ts.map +1 -1
- package/dist/underwriter/underwriter.model.d.ts +0 -27
- package/dist/underwriter/underwriter.model.d.ts.map +1 -1
- package/dist/users/auth-log.model.d.ts +0 -27
- package/dist/users/auth-log.model.d.ts.map +1 -1
- package/dist/users/permission.model.d.ts +0 -27
- package/dist/users/permission.model.d.ts.map +1 -1
- package/dist/users/role-group.model.d.ts +0 -27
- package/dist/users/role-group.model.d.ts.map +1 -1
- package/dist/users/role.model.d.ts +0 -27
- package/dist/users/role.model.d.ts.map +1 -1
- package/dist/users/tasks.model.d.ts +0 -27
- package/dist/users/tasks.model.d.ts.map +1 -1
- package/dist/users/user.model.d.ts +0 -27
- package/dist/users/user.model.d.ts.map +1 -1
- package/dist/value-objects/pound.d.ts +0 -26
- package/dist/value-objects/pound.d.ts.map +1 -1
- package/dist/value-objects/sort-code.d.ts +0 -26
- package/dist/value-objects/sort-code.d.ts.map +1 -1
- package/entities/applicants/applicant.entity.ts +201 -0
- package/entities/applicants/credit-card-commitment.entity.ts +20 -0
- package/entities/applicants/credit-data.entity.ts +24 -0
- package/entities/applicants/credit-profile.entity.ts +13 -0
- package/entities/applicants/direct-debit.entity.ts +30 -0
- package/entities/applicants/employment.entity.ts +71 -0
- package/entities/applicants/expenditure.entity.ts +29 -0
- package/entities/applicants/income-source.entity.ts +22 -0
- package/entities/applicants/income.entity.ts +58 -0
- package/entities/applicants/index.ts +59 -0
- package/entities/applicants/loan-commitment.entity.ts +24 -0
- package/entities/applicants/mortgage-commitment.entity.ts +56 -0
- package/entities/applicants/other-income.entity.ts +68 -0
- package/entities/applicants/property-income.entity.ts +19 -0
- package/entities/applicants/residence-commitment.entity.ts +63 -0
- package/entities/applicants/risk-narrative.entity.ts +28 -0
- package/entities/applicants/secure-loan-commitment.entity.ts +30 -0
- package/entities/applicants/unsecured-loan-commitment.entity.ts +30 -0
- package/entities/applications/application-audit.entity.ts +23 -0
- package/entities/applications/application-company.entity.ts +17 -0
- package/entities/applications/application-direct-debit.entity.ts +17 -0
- package/entities/applications/application-document.entity.ts +33 -0
- package/entities/applications/application-fieldconfig.entity.ts +11 -0
- package/entities/applications/application-illustration.entity.ts +10 -0
- package/entities/applications/application-legal.entity.ts +11 -0
- package/entities/applications/application-mortgage.entity.ts +82 -0
- package/entities/applications/application-note.entity.ts +41 -0
- package/entities/applications/application-offer.entity.ts +10 -0
- package/entities/applications/application-onboarding.entity.ts +13 -0
- package/entities/applications/application-product.entity.ts +38 -0
- package/entities/applications/application-rationale.entity.ts +56 -0
- package/entities/applications/application-risk-narrative.entity.ts +22 -0
- package/entities/applications/application-valuation.entity.ts +20 -0
- package/entities/applications/application.entity.ts +165 -0
- package/entities/applications/broker.entity.ts +25 -0
- package/entities/applications/checklist-item.entity.ts +49 -0
- package/entities/applications/company.entity.ts +102 -0
- package/entities/applications/credit-profile.entity.ts +13 -0
- package/entities/applications/index.ts +74 -0
- package/entities/applications/product-features.entity.ts +56 -0
- package/entities/applications/solicitor.entity.ts +38 -0
- package/entities/index.ts +14 -0
- package/entities/prisma.ts +13 -0
- package/entities/product-catalogues/index.ts +23 -0
- package/entities/product-catalogues/product-catalogue.entity.ts +27 -0
- package/entities/product-catalogues/product-definition.entity.ts +21 -0
- package/entities/product-catalogues/product-variant.entity.ts +19 -0
- package/entities/product-catalogues/product.entity.ts +16 -0
- package/entities/product-catalogues/rule.entity.ts +26 -0
- package/entities/properties/data-street.entity.ts +27 -0
- package/entities/properties/index.ts +17 -0
- package/entities/properties/property.entity.ts +36 -0
- package/entities/properties/security.entity.ts +62 -0
- package/entities/shared/alert.entity.ts +19 -0
- package/entities/shared/apprivo-sync-journey.entity.ts +21 -0
- package/entities/shared/checklist.entity.ts +20 -0
- package/entities/shared/document-type.entity.ts +11 -0
- package/entities/shared/index.ts +35 -0
- package/entities/shared/job-run.entity.ts +13 -0
- package/entities/shared/job-setting.entity.ts +13 -0
- package/entities/shared/lookup-group.entity.ts +16 -0
- package/entities/shared/lookup.entity.ts +19 -0
- package/entities/shared/system-parameter.entity.ts +13 -0
- package/entities/underwriter/index.ts +7 -0
- package/entities/underwriter/underwriter.entity.ts +19 -0
- package/entities/users/auth-log.entity.ts +13 -0
- package/entities/users/index.ts +23 -0
- package/entities/users/permission.entity.ts +17 -0
- package/entities/users/role-group.entity.ts +17 -0
- package/entities/users/role.entity.ts +19 -0
- package/entities/users/user.entity.ts +44 -0
- package/package.json +30 -17
- package/prisma/applicants/applicant.prisma +125 -0
- package/prisma/applicants/credit-card-commitment.prisma +21 -0
- package/prisma/applicants/credit-data.prisma +19 -0
- package/prisma/applicants/credit-profile.prisma +14 -0
- package/prisma/applicants/direct-debit.prisma +25 -0
- package/prisma/applicants/employment.prisma +59 -0
- package/prisma/applicants/expenditure.prisma +26 -0
- package/prisma/applicants/income-source.prisma +17 -0
- package/prisma/applicants/income.prisma +61 -0
- package/prisma/applicants/loan-commitment.prisma +25 -0
- package/prisma/applicants/mortgage-commitment.prisma +33 -0
- package/prisma/applicants/other-income.prisma +45 -0
- package/prisma/applicants/property-income.prisma +17 -0
- package/prisma/applicants/residence-commitment.prisma +40 -0
- package/prisma/applicants/risk-narrative.prisma +23 -0
- package/prisma/applicants/secured-loan-commitment.prisma +21 -0
- package/prisma/applicants/unsecured-loan-commitment.prisma +20 -0
- package/prisma/applications/application-audit.prisma +19 -0
- package/prisma/applications/application-company.prisma +11 -0
- package/prisma/applications/application-direct-debit.prisma +11 -0
- package/prisma/applications/application-document.prisma +28 -0
- package/prisma/applications/application-fieldconfig.prisma +9 -0
- package/prisma/applications/application-illustration.prisma +8 -0
- package/prisma/applications/application-legal.prisma +9 -0
- package/prisma/applications/application-mortgage.prisma +48 -0
- package/prisma/applications/application-note.prisma +35 -0
- package/prisma/applications/application-offer.prisma +8 -0
- package/prisma/applications/application-onboarding.prisma +11 -0
- package/prisma/applications/application-product.prisma +33 -0
- package/prisma/applications/application-rationale.prisma +51 -0
- package/prisma/applications/application-risk-narrative.prisma +18 -0
- package/prisma/applications/application-valuation.prisma +18 -0
- package/prisma/applications/application.prisma +83 -0
- package/prisma/applications/broker.prisma +23 -0
- package/prisma/applications/checklist-item.prisma +47 -0
- package/prisma/applications/checklist.prisma +19 -0
- package/prisma/applications/company.prisma +76 -0
- package/prisma/applications/credit-profile.prisma +11 -0
- package/prisma/applications/product-features.prisma +54 -0
- package/prisma/applications/solicitor.prisma +33 -0
- package/prisma/migrations/20250430085825_initial_migration/migration.sql +2090 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/product-catalogues/product-catalogue.prisma +22 -0
- package/prisma/product-catalogues/product-definition.prisma +39 -0
- package/prisma/product-catalogues/product-variant.prisma +15 -0
- package/prisma/product-catalogues/product.prisma +10 -0
- package/prisma/properties/property.prisma +30 -0
- package/prisma/properties/security.prisma +80 -0
- package/prisma/schema.prisma +1925 -0
- package/prisma/shared/alert.prisma +15 -0
- package/prisma/shared/apprivo-sync-journey.prisma +12 -0
- package/prisma/shared/checklist.prisma +10 -0
- package/prisma/shared/document-type.prisma +9 -0
- package/prisma/shared/job-run.prisma +11 -0
- package/prisma/shared/job-setting.prisma +11 -0
- package/prisma/shared/lookup-group.prisma +12 -0
- package/prisma/shared/lookup.prisma +144 -0
- package/prisma/shared/system-parameter.prisma +16 -0
- package/prisma/underwriter/underwriter.prisma +21 -0
- package/prisma/users/auth-log.prisma +11 -0
- package/prisma/users/permission.prisma +13 -0
- package/prisma/users/role-group.prisma +14 -0
- package/prisma/users/role.prisma +14 -0
- package/prisma/users/user.prisma +44 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ApplicantEntity } from './applicant.entity';
|
|
2
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
|
+
|
|
4
|
+
export class IncomeSourceEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
employmentStatusLid?: string;
|
|
7
|
+
incomeFromEmployment?: string;
|
|
8
|
+
incomeFromPension?: string;
|
|
9
|
+
incomeFromProperty?: string;
|
|
10
|
+
incomeFromSavings?: string;
|
|
11
|
+
applicantId!: string;
|
|
12
|
+
createdAt!: Date;
|
|
13
|
+
updatedAt!: Date;
|
|
14
|
+
|
|
15
|
+
// Relations
|
|
16
|
+
applicant?: ApplicantEntity;
|
|
17
|
+
employmentStatus?: LookupEntity;
|
|
18
|
+
|
|
19
|
+
constructor(partial: Partial<IncomeSourceEntity>) {
|
|
20
|
+
Object.assign(this, partial);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export class IncomeEntity {
|
|
2
|
+
id!: string;
|
|
3
|
+
accountantsAddressLine1!: string;
|
|
4
|
+
accountantsAddressLine2!: string;
|
|
5
|
+
accountantsAddressLine3!: string;
|
|
6
|
+
accountantsCity!: string;
|
|
7
|
+
accountantsCountryLid!: string;
|
|
8
|
+
accountantsEmail!: string;
|
|
9
|
+
accountantsPostCode!: string;
|
|
10
|
+
accountantsPractice!: string;
|
|
11
|
+
accountantsTelephoneNumber!: string;
|
|
12
|
+
businessAddressLine1!: string;
|
|
13
|
+
businessAddressLine2!: string;
|
|
14
|
+
businessAddressLine3!: string;
|
|
15
|
+
businessCity!: string;
|
|
16
|
+
businessCountryLid!: string;
|
|
17
|
+
businessPostCode!: string;
|
|
18
|
+
businessTelephoneNumber!: string;
|
|
19
|
+
businessTypeLid!: string;
|
|
20
|
+
charteredCertifiedOrOtherLid!: string;
|
|
21
|
+
contactName!: string;
|
|
22
|
+
currentYearEnd!: string;
|
|
23
|
+
dateEstablished!: string;
|
|
24
|
+
doYouHaveAccountant!: boolean;
|
|
25
|
+
isBusinessAddressDifferent!: boolean;
|
|
26
|
+
nameOfBusiness!: string;
|
|
27
|
+
natureOfBusiness!: string;
|
|
28
|
+
netAssets1!: number;
|
|
29
|
+
netAssets2!: number;
|
|
30
|
+
netAssets3!: number;
|
|
31
|
+
pageValidFlag!: boolean;
|
|
32
|
+
percentageOfShareholding!: number;
|
|
33
|
+
registeredAddressLine1!: string;
|
|
34
|
+
registeredAddressLine2!: string;
|
|
35
|
+
registeredAddressLine3!: string;
|
|
36
|
+
registeredCity!: string;
|
|
37
|
+
registeredCountryLid!: string;
|
|
38
|
+
registeredPostCode!: string;
|
|
39
|
+
registeredTelephone!: string;
|
|
40
|
+
selfEmployedDate!: string;
|
|
41
|
+
turnover1!: number;
|
|
42
|
+
turnover2!: number;
|
|
43
|
+
turnover3!: number;
|
|
44
|
+
year1!: number;
|
|
45
|
+
year2!: number;
|
|
46
|
+
year3!: number;
|
|
47
|
+
yearEnd1?: number;
|
|
48
|
+
yearEnd2?: number;
|
|
49
|
+
yearEnd3?: number;
|
|
50
|
+
createdAt!: Date;
|
|
51
|
+
updatedAt!: Date;
|
|
52
|
+
|
|
53
|
+
constructor(partial: Partial<IncomeEntity>) {
|
|
54
|
+
Object.assign(this, partial);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Add virtual fields in Mapper {accountantsCountry, businessCountry, businessType, charteredCertifiedOrOther, registeredCountry} etc
|
|
58
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Applicant,
|
|
3
|
+
CreditData,
|
|
4
|
+
RiskNarrative,
|
|
5
|
+
OtherIncome,
|
|
6
|
+
IncomeSource,
|
|
7
|
+
Expenditure,
|
|
8
|
+
Employment,
|
|
9
|
+
DirectDebit,
|
|
10
|
+
CreditProfile,
|
|
11
|
+
PropertyIncome,
|
|
12
|
+
Income,
|
|
13
|
+
SecuredLoanCommitment,
|
|
14
|
+
UnsecuredLoanCommitment,
|
|
15
|
+
ResidenceCommitment,
|
|
16
|
+
MortgageCommitment,
|
|
17
|
+
LoanCommitment,
|
|
18
|
+
CreditCardCommitment
|
|
19
|
+
} from '@prisma/client';
|
|
20
|
+
|
|
21
|
+
// Export Prisma types
|
|
22
|
+
export type {
|
|
23
|
+
Applicant,
|
|
24
|
+
CreditData,
|
|
25
|
+
RiskNarrative,
|
|
26
|
+
OtherIncome,
|
|
27
|
+
IncomeSource,
|
|
28
|
+
Expenditure,
|
|
29
|
+
Employment,
|
|
30
|
+
DirectDebit,
|
|
31
|
+
CreditProfile,
|
|
32
|
+
PropertyIncome,
|
|
33
|
+
Income,
|
|
34
|
+
SecuredLoanCommitment,
|
|
35
|
+
UnsecuredLoanCommitment,
|
|
36
|
+
ResidenceCommitment,
|
|
37
|
+
MortgageCommitment,
|
|
38
|
+
LoanCommitment,
|
|
39
|
+
CreditCardCommitment
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// Export entity classes
|
|
43
|
+
export * from './applicant.entity';
|
|
44
|
+
export * from './secure-loan-commitment.entity';
|
|
45
|
+
export * from './unsecured-loan-commitment.entity';
|
|
46
|
+
export * from './property-income.entity';
|
|
47
|
+
export * from './residence-commitment.entity';
|
|
48
|
+
export * from './risk-narrative.entity';
|
|
49
|
+
export * from './mortgage-commitment.entity';
|
|
50
|
+
export * from './other-income.entity';
|
|
51
|
+
export * from './income-source.entity';
|
|
52
|
+
export * from './income.entity';
|
|
53
|
+
export * from './loan-commitment.entity';
|
|
54
|
+
export * from './credit-profile.entity';
|
|
55
|
+
export * from './direct-debit.entity';
|
|
56
|
+
export * from './employment.entity';
|
|
57
|
+
export * from './expenditure.entity';
|
|
58
|
+
export * from './credit-card-commitment.entity';
|
|
59
|
+
export * from './credit-data.entity';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export class LoanCommitmentEntity {
|
|
2
|
+
id!: string;
|
|
3
|
+
applicantId!: string;
|
|
4
|
+
commitmentId!: string;
|
|
5
|
+
commitmentTypeLid?: string;
|
|
6
|
+
lenderName!: string;
|
|
7
|
+
loanTypeLid!: string;
|
|
8
|
+
securityDetails!: string;
|
|
9
|
+
purpose?: string;
|
|
10
|
+
doHaveSharedResponsibility!: boolean;
|
|
11
|
+
sharedMortgage!: string;
|
|
12
|
+
remainingTerm?: string;
|
|
13
|
+
startDate!: string;
|
|
14
|
+
outstandingBalance!: number;
|
|
15
|
+
monthlyPayment!: number;
|
|
16
|
+
createdAt!: Date;
|
|
17
|
+
updatedAt!: Date;
|
|
18
|
+
|
|
19
|
+
constructor(partial: Partial<LoanCommitmentEntity>) {
|
|
20
|
+
Object.assign(this, partial);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Add virtual fields in Mapper {commitmentType, loanType} etc
|
|
24
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ApplicantEntity } from './applicant.entity';
|
|
2
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
|
+
|
|
4
|
+
export class MortgageCommitmentEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
applicantId!: string;
|
|
7
|
+
lenderName!: string;
|
|
8
|
+
propertyValue!: number;
|
|
9
|
+
repaymentTypeLid!: string;
|
|
10
|
+
mortgageTypeLid?: string;
|
|
11
|
+
fixedTerm!: string;
|
|
12
|
+
originalLoanAmount!: number;
|
|
13
|
+
outstandingBalance!: number;
|
|
14
|
+
startDate!: string;
|
|
15
|
+
monthlyPayment!: number;
|
|
16
|
+
commitmentId!: string;
|
|
17
|
+
commitmentTypeLid?: string;
|
|
18
|
+
furtherAdvances!: boolean;
|
|
19
|
+
furtherAdvanceDetails!: string;
|
|
20
|
+
accountUptoDate!: boolean;
|
|
21
|
+
accountUptoDateFailDetails!: string;
|
|
22
|
+
accountInArrears!: boolean;
|
|
23
|
+
accountInArrearsDetails!: string;
|
|
24
|
+
doHaveSharedResponsibility!: boolean;
|
|
25
|
+
sharedMortgage!: string;
|
|
26
|
+
createdAt!: Date;
|
|
27
|
+
updatedAt!: Date;
|
|
28
|
+
|
|
29
|
+
// Relations
|
|
30
|
+
applicant?: ApplicantEntity;
|
|
31
|
+
repaymentType?: LookupEntity;
|
|
32
|
+
mortgageType?: LookupEntity;
|
|
33
|
+
commitmentType?: LookupEntity;
|
|
34
|
+
|
|
35
|
+
constructor(partial: Partial<MortgageCommitmentEntity>) {
|
|
36
|
+
Object.assign(this, partial);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Virtual fields from Mongoose model
|
|
40
|
+
// These are computed properties that were previously virtual in Mongoose
|
|
41
|
+
get furtherAdvancesDisplay(): string {
|
|
42
|
+
return this.furtherAdvances ? "Yes" : "No";
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
get accountUptoDateDisplay(): string {
|
|
46
|
+
return this.accountUptoDate ? "Yes" : "No";
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
get accountInArrearsDisplay(): string {
|
|
50
|
+
return this.accountInArrears ? "Yes" : "No";
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
get doHaveSharedResponsibilityDisplay(): string {
|
|
54
|
+
return this.doHaveSharedResponsibility ? "Yes" : "No";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ApplicantEntity } from './applicant.entity';
|
|
2
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
|
+
|
|
4
|
+
export class OtherIncomeEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
// Income Source 1
|
|
7
|
+
sourceDetails1?: string;
|
|
8
|
+
amount1!: number;
|
|
9
|
+
payFrequency1Lid?: string;
|
|
10
|
+
guaranteed1!: boolean;
|
|
11
|
+
|
|
12
|
+
// Income Source 2
|
|
13
|
+
sourceDetails2?: string;
|
|
14
|
+
amount2!: number;
|
|
15
|
+
payFrequency2Lid?: string;
|
|
16
|
+
guaranteed2!: boolean;
|
|
17
|
+
|
|
18
|
+
// Income Source 3
|
|
19
|
+
sourceDetails3?: string;
|
|
20
|
+
amount3!: number;
|
|
21
|
+
payFrequency3Lid?: string;
|
|
22
|
+
guaranteed3!: boolean;
|
|
23
|
+
|
|
24
|
+
// Income Source 4
|
|
25
|
+
sourceDetails4?: string;
|
|
26
|
+
amount4!: number;
|
|
27
|
+
payFrequency4Lid?: string;
|
|
28
|
+
guaranteed4!: boolean;
|
|
29
|
+
|
|
30
|
+
taxCredits!: number;
|
|
31
|
+
maintenance!: number;
|
|
32
|
+
otherBenefits!: number;
|
|
33
|
+
grossPensionIncome!: number;
|
|
34
|
+
privatePensionIncome!: number;
|
|
35
|
+
statePensionIncome!: number;
|
|
36
|
+
applicantId!: string;
|
|
37
|
+
createdAt!: Date;
|
|
38
|
+
updatedAt!: Date;
|
|
39
|
+
|
|
40
|
+
// Relations
|
|
41
|
+
applicant?: ApplicantEntity;
|
|
42
|
+
payFrequency1?: LookupEntity;
|
|
43
|
+
payFrequency2?: LookupEntity;
|
|
44
|
+
payFrequency3?: LookupEntity;
|
|
45
|
+
payFrequency4?: LookupEntity;
|
|
46
|
+
|
|
47
|
+
constructor(partial: Partial<OtherIncomeEntity>) {
|
|
48
|
+
Object.assign(this, partial);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Virtual fields from Mongoose model
|
|
52
|
+
// These are computed properties that were previously virtual in Mongoose
|
|
53
|
+
get guaranteed1Display(): string {
|
|
54
|
+
return this.guaranteed1 ? "Yes" : "No";
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
get guaranteed2Display(): string {
|
|
58
|
+
return this.guaranteed2 ? "Yes" : "No";
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
get guaranteed3Display(): string {
|
|
62
|
+
return this.guaranteed3 ? "Yes" : "No";
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
get guaranteed4Display(): string {
|
|
66
|
+
return this.guaranteed4 ? "Yes" : "No";
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export class PropertyIncomeEntity {
|
|
2
|
+
id!: string;
|
|
3
|
+
pageValidFlag!: boolean;
|
|
4
|
+
yearEnd1!: number;
|
|
5
|
+
rentalIncome1!: number;
|
|
6
|
+
netProfit1!: number;
|
|
7
|
+
yearEnd2!: number;
|
|
8
|
+
rentalIncome2!: number;
|
|
9
|
+
netProfit2!: number;
|
|
10
|
+
yearEnd3!: number;
|
|
11
|
+
rentalIncome3!: number;
|
|
12
|
+
netProfit3!: number;
|
|
13
|
+
createdAt!: Date;
|
|
14
|
+
updatedAt!: Date;
|
|
15
|
+
|
|
16
|
+
constructor(partial: Partial<PropertyIncomeEntity>) {
|
|
17
|
+
Object.assign(this, partial);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ApplicantEntity } from './applicant.entity';
|
|
2
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
|
+
|
|
4
|
+
export class ResidenceCommitmentEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
applicantId!: string;
|
|
7
|
+
pageValidFlag!: boolean;
|
|
8
|
+
financeTypeHppLid?: string;
|
|
9
|
+
lenderName!: string;
|
|
10
|
+
propertyValue!: number;
|
|
11
|
+
hppRepaymentTypeLid!: string;
|
|
12
|
+
mortgageTypeLid?: string;
|
|
13
|
+
fixedTerm!: string;
|
|
14
|
+
commitmentId!: string;
|
|
15
|
+
originalLoanAmount!: number;
|
|
16
|
+
outstandingBalance!: number;
|
|
17
|
+
startDate!: string;
|
|
18
|
+
mortgageRate!: number;
|
|
19
|
+
remainingTermMonth!: number;
|
|
20
|
+
financeHomeTypeLid!: string;
|
|
21
|
+
chargeTypeLid!: string;
|
|
22
|
+
monthlyPayment!: number;
|
|
23
|
+
furtherAdvances!: boolean;
|
|
24
|
+
furtherAdvanceDetails!: string;
|
|
25
|
+
accountUptoDate!: boolean;
|
|
26
|
+
accountUptoDateFailDetails!: string;
|
|
27
|
+
accountInArrears!: boolean;
|
|
28
|
+
accountInArrearsDetails!: string;
|
|
29
|
+
doHaveSharedResponsibility!: boolean;
|
|
30
|
+
sharedMortgage!: string;
|
|
31
|
+
createdAt!: Date;
|
|
32
|
+
updatedAt!: Date;
|
|
33
|
+
|
|
34
|
+
// Relations
|
|
35
|
+
applicant?: ApplicantEntity;
|
|
36
|
+
financeTypeHpp?: LookupEntity;
|
|
37
|
+
hppRepaymentType?: LookupEntity;
|
|
38
|
+
mortgageType?: LookupEntity;
|
|
39
|
+
financeHomeType?: LookupEntity;
|
|
40
|
+
chargeType?: LookupEntity;
|
|
41
|
+
|
|
42
|
+
constructor(partial: Partial<ResidenceCommitmentEntity>) {
|
|
43
|
+
Object.assign(this, partial);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Virtual fields from Mongoose model
|
|
47
|
+
// These are computed properties that were previously virtual in Mongoose
|
|
48
|
+
get furtherAdvancesDisplay(): string {
|
|
49
|
+
return this.furtherAdvances ? "Yes" : "No";
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
get accountUptoDateDisplay(): string {
|
|
53
|
+
return this.accountUptoDate ? "Yes" : "No";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
get accountInArrearsDisplay(): string {
|
|
57
|
+
return this.accountInArrears ? "Yes" : "No";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
get doHaveSharedResponsibilityDisplay(): string {
|
|
61
|
+
return this.doHaveSharedResponsibility ? "Yes" : "No";
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ApplicantEntity } from './applicant.entity';
|
|
2
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
|
+
|
|
4
|
+
export class RiskNarrativeEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
call2StatusLid?: string;
|
|
7
|
+
clientReference?: string;
|
|
8
|
+
docVerificationStatusLid?: string;
|
|
9
|
+
isPoaTaskGenerated?: string;
|
|
10
|
+
link?: string;
|
|
11
|
+
riskLevel?: string;
|
|
12
|
+
riskRating?: string;
|
|
13
|
+
statusLid?: string;
|
|
14
|
+
verificationLinkSentOn?: string;
|
|
15
|
+
applicantId!: string;
|
|
16
|
+
createdAt!: Date;
|
|
17
|
+
updatedAt!: Date;
|
|
18
|
+
|
|
19
|
+
// Relations
|
|
20
|
+
applicant?: ApplicantEntity;
|
|
21
|
+
call2Status?: LookupEntity;
|
|
22
|
+
docVerificationStatus?: LookupEntity;
|
|
23
|
+
status?: LookupEntity;
|
|
24
|
+
|
|
25
|
+
constructor(partial: Partial<RiskNarrativeEntity>) {
|
|
26
|
+
Object.assign(this, partial);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ApplicantEntity } from './applicant.entity';
|
|
2
|
+
|
|
3
|
+
export class SecureLoanCommitmentEntity {
|
|
4
|
+
id!: string;
|
|
5
|
+
applicantId!: string;
|
|
6
|
+
lenderName!: string;
|
|
7
|
+
commitmentId!: string;
|
|
8
|
+
securityDetails!: string;
|
|
9
|
+
purpose!: string;
|
|
10
|
+
doHaveSharedResponsibility!: boolean;
|
|
11
|
+
sharedMortgage!: string;
|
|
12
|
+
remainingTerm?: string;
|
|
13
|
+
startDate!: string;
|
|
14
|
+
outstandingBalance!: number;
|
|
15
|
+
monthlyPayment!: number;
|
|
16
|
+
createdAt!: Date;
|
|
17
|
+
updatedAt!: Date;
|
|
18
|
+
|
|
19
|
+
// Relations
|
|
20
|
+
applicant?: ApplicantEntity;
|
|
21
|
+
|
|
22
|
+
constructor(partial: Partial<SecureLoanCommitmentEntity>) {
|
|
23
|
+
Object.assign(this, partial);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Virtual fields from Mongoose model
|
|
27
|
+
get doHaveSharedResponsibilityDisplay(): string {
|
|
28
|
+
return this.doHaveSharedResponsibility ? "Yes" : "No";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ApplicantEntity } from './applicant.entity';
|
|
2
|
+
|
|
3
|
+
export class UnsecuredLoanCommitmentEntity {
|
|
4
|
+
id!: string;
|
|
5
|
+
applicantId!: string;
|
|
6
|
+
lenderName!: string;
|
|
7
|
+
commitmentId!: string;
|
|
8
|
+
purpose!: string;
|
|
9
|
+
doHaveSharedResponsibility!: boolean;
|
|
10
|
+
sharedMortgage!: string;
|
|
11
|
+
remainingTerm?: string;
|
|
12
|
+
startDate!: string;
|
|
13
|
+
outstandingBalance!: number;
|
|
14
|
+
monthlyPayment!: number;
|
|
15
|
+
createdAt!: Date;
|
|
16
|
+
updatedAt!: Date;
|
|
17
|
+
|
|
18
|
+
// Relations
|
|
19
|
+
applicant?: ApplicantEntity;
|
|
20
|
+
|
|
21
|
+
constructor(partial: Partial<UnsecuredLoanCommitmentEntity>) {
|
|
22
|
+
Object.assign(this, partial);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Virtual fields from Mongoose model
|
|
26
|
+
// These are computed properties that were previously virtual in Mongoose
|
|
27
|
+
get doHaveSharedResponsibilityDisplay(): string {
|
|
28
|
+
return this.doHaveSharedResponsibility ? "Yes" : "No";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ApplicationEntity } from '../applications/application.entity';
|
|
2
|
+
|
|
3
|
+
export class ApplicationAuditEntity {
|
|
4
|
+
id!: string;
|
|
5
|
+
auditId!: string;
|
|
6
|
+
accountId!: string;
|
|
7
|
+
auditCorrelationId!: string;
|
|
8
|
+
auditDate!: Date;
|
|
9
|
+
changeType!: string;
|
|
10
|
+
applicationId!: string;
|
|
11
|
+
name!: string;
|
|
12
|
+
oldValue!: string;
|
|
13
|
+
newValue!: string;
|
|
14
|
+
createdAt!: Date;
|
|
15
|
+
updatedAt!: Date;
|
|
16
|
+
|
|
17
|
+
// Relations
|
|
18
|
+
application?: ApplicationEntity;
|
|
19
|
+
|
|
20
|
+
constructor(partial: Partial<ApplicationAuditEntity>) {
|
|
21
|
+
Object.assign(this, partial);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ApplicationEntity } from './application.entity';
|
|
2
|
+
|
|
3
|
+
export class ApplicationCompanyEntity {
|
|
4
|
+
id!: string;
|
|
5
|
+
applicationId!: string;
|
|
6
|
+
name!: string;
|
|
7
|
+
registrationNumber?: string;
|
|
8
|
+
createdAt!: Date;
|
|
9
|
+
updatedAt!: Date;
|
|
10
|
+
|
|
11
|
+
// Relations
|
|
12
|
+
application!: ApplicationEntity;
|
|
13
|
+
|
|
14
|
+
constructor(partial: Partial<ApplicationCompanyEntity>) {
|
|
15
|
+
Object.assign(this, partial);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ApplicationEntity } from './application.entity';
|
|
2
|
+
|
|
3
|
+
export class ApplicationDirectDebitEntity {
|
|
4
|
+
id!: string;
|
|
5
|
+
applicationId!: string;
|
|
6
|
+
accountNumber!: string;
|
|
7
|
+
sortCode!: string;
|
|
8
|
+
createdAt!: Date;
|
|
9
|
+
updatedAt!: Date;
|
|
10
|
+
|
|
11
|
+
// Relations
|
|
12
|
+
application!: ApplicationEntity;
|
|
13
|
+
|
|
14
|
+
constructor(partial: Partial<ApplicationDirectDebitEntity>) {
|
|
15
|
+
Object.assign(this, partial);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ApplicationEntity } from './application.entity';
|
|
2
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
|
+
|
|
4
|
+
export class ApplicationDocumentEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
applicationId?: string;
|
|
7
|
+
documentId!: string;
|
|
8
|
+
owningEntityId?: string;
|
|
9
|
+
documentTypeLid?: string;
|
|
10
|
+
documentTypeId?: string;
|
|
11
|
+
fileName?: string;
|
|
12
|
+
contentType?: string;
|
|
13
|
+
created?: string;
|
|
14
|
+
createdBy?: string;
|
|
15
|
+
isGenerated?: string;
|
|
16
|
+
data?: string;
|
|
17
|
+
envelopeId?: string;
|
|
18
|
+
signers!: any[];
|
|
19
|
+
documentTypeDisplayName?: string;
|
|
20
|
+
documentTypeValue?: string;
|
|
21
|
+
documentTypeData?: any;
|
|
22
|
+
documentUrl?: string;
|
|
23
|
+
createdAt!: Date;
|
|
24
|
+
updatedAt!: Date;
|
|
25
|
+
|
|
26
|
+
// Relations
|
|
27
|
+
application?: ApplicationEntity;
|
|
28
|
+
documentType?: LookupEntity;
|
|
29
|
+
|
|
30
|
+
constructor(partial: Partial<ApplicationDocumentEntity>) {
|
|
31
|
+
Object.assign(this, partial);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export class ApplicationFieldConfigEntity {
|
|
2
|
+
id!: string;
|
|
3
|
+
fieldName!: string;
|
|
4
|
+
validateProductOnChange!: string;
|
|
5
|
+
createdAt!: Date;
|
|
6
|
+
updatedAt!: Date;
|
|
7
|
+
|
|
8
|
+
constructor(partial: Partial<ApplicationFieldConfigEntity>) {
|
|
9
|
+
Object.assign(this, partial);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { ApplicationEntity } from '../applications/application.entity';
|
|
2
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
|
+
|
|
4
|
+
export class ApplicationMortgageEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
applicationId!: string;
|
|
7
|
+
pageValidFlag!: boolean;
|
|
8
|
+
existingMortgageLender?: string;
|
|
9
|
+
topSlicing!: boolean;
|
|
10
|
+
purposeOfMortgage!: string;
|
|
11
|
+
depositComeFromLids!: string[];
|
|
12
|
+
ifOtherDetails!: string;
|
|
13
|
+
purchasePrice!: number;
|
|
14
|
+
repaymentTypeLid!: string;
|
|
15
|
+
exitStrategyLid!: string;
|
|
16
|
+
isCapitalRaise!: boolean;
|
|
17
|
+
purchaseDate!: string;
|
|
18
|
+
estimatedValue!: number;
|
|
19
|
+
loanRequired!: number;
|
|
20
|
+
monthlyRentalIncome!: number;
|
|
21
|
+
outstandingBalance!: number;
|
|
22
|
+
fundRaisedFor!: string;
|
|
23
|
+
sourceOfFundsLid!: string;
|
|
24
|
+
sourceOfFundDetails!: string;
|
|
25
|
+
propertyValuationDetails!: string;
|
|
26
|
+
telephoneNumber!: string;
|
|
27
|
+
isDistressedSale!: boolean;
|
|
28
|
+
isPurchasedBelowMarketValue!: boolean;
|
|
29
|
+
isPurchasedAsSale!: boolean;
|
|
30
|
+
isReadyToSell!: boolean;
|
|
31
|
+
isGovernmentInitiative!: boolean;
|
|
32
|
+
vendorsName?: string;
|
|
33
|
+
saleMadeLid?: string;
|
|
34
|
+
isTheIntentionToLet!: boolean;
|
|
35
|
+
proposedTenantsLids!: string[];
|
|
36
|
+
leaseTypeLid!: string;
|
|
37
|
+
createdAt!: Date;
|
|
38
|
+
updatedAt!: Date;
|
|
39
|
+
|
|
40
|
+
// Relations
|
|
41
|
+
application?: ApplicationEntity;
|
|
42
|
+
repaymentType?: LookupEntity;
|
|
43
|
+
exitStrategy?: LookupEntity;
|
|
44
|
+
sourceOfFunds?: LookupEntity;
|
|
45
|
+
saleMade?: LookupEntity;
|
|
46
|
+
leaseType?: LookupEntity;
|
|
47
|
+
depositComeFrom?: LookupEntity[];
|
|
48
|
+
proposedTenants?: LookupEntity[];
|
|
49
|
+
|
|
50
|
+
constructor(partial: Partial<ApplicationMortgageEntity>) {
|
|
51
|
+
Object.assign(this, partial);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Virtual properties from Mongoose model
|
|
55
|
+
get depositComeFromNames(): string[] | null {
|
|
56
|
+
return this.depositComeFrom?.map(d => d.name) ?? null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
get repaymentTypeName(): string | null {
|
|
60
|
+
return this.repaymentType?.name ?? null;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
get exitStrategyName(): string | null {
|
|
64
|
+
return this.exitStrategy?.name ?? null;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
get sourceOfFundsName(): string | null {
|
|
68
|
+
return this.sourceOfFunds?.name ?? null;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
get saleMadeName(): string | null {
|
|
72
|
+
return this.saleMade?.name ?? null;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
get proposedTenantsNames(): string[] | null {
|
|
76
|
+
return this.proposedTenants?.map(t => t.name) ?? null;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
get leaseTypeName(): string | null {
|
|
80
|
+
return this.leaseType?.name ?? null;
|
|
81
|
+
}
|
|
82
|
+
}
|