@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,41 @@
|
|
|
1
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
2
|
+
import { ApplicationEntity } from "./application.entity";
|
|
3
|
+
import { UserEntity } from "../users";
|
|
4
|
+
|
|
5
|
+
export class ApplicationNoteEntity {
|
|
6
|
+
id!: string;
|
|
7
|
+
applicationId!: string;
|
|
8
|
+
noteId?: string;
|
|
9
|
+
createdOn?: string;
|
|
10
|
+
createdBy?: string;
|
|
11
|
+
username?: string;
|
|
12
|
+
createdByUserId?: string;
|
|
13
|
+
typeLid?: string;
|
|
14
|
+
subTypeLid?: string;
|
|
15
|
+
subject?: string;
|
|
16
|
+
note!: string;
|
|
17
|
+
reminderDate?: string;
|
|
18
|
+
attachmentDocumentId?: string;
|
|
19
|
+
assignedOperation!: string;
|
|
20
|
+
autoCreated!: string;
|
|
21
|
+
additionalData?: any;
|
|
22
|
+
autoCreatedId?: string;
|
|
23
|
+
assignedTo!: string;
|
|
24
|
+
assignedBy?: string;
|
|
25
|
+
assignedByUserId?: string;
|
|
26
|
+
comment?: string;
|
|
27
|
+
reminderStatus!: string;
|
|
28
|
+
createdAt!: Date;
|
|
29
|
+
updatedAt!: Date;
|
|
30
|
+
|
|
31
|
+
// Relations
|
|
32
|
+
application?: ApplicationEntity;
|
|
33
|
+
type?: LookupEntity;
|
|
34
|
+
subType?: LookupEntity;
|
|
35
|
+
createdByUser?: UserEntity;
|
|
36
|
+
assignedByUser?: UserEntity;
|
|
37
|
+
|
|
38
|
+
constructor(partial: Partial<ApplicationNoteEntity>) {
|
|
39
|
+
Object.assign(this, partial);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class ApplicationOnboardingEntity {
|
|
2
|
+
id!: string;
|
|
3
|
+
errors!: string;
|
|
4
|
+
status!: string;
|
|
5
|
+
statusDate?: string;
|
|
6
|
+
warnings!: string;
|
|
7
|
+
createdAt!: Date;
|
|
8
|
+
updatedAt!: Date;
|
|
9
|
+
|
|
10
|
+
constructor(partial: Partial<ApplicationOnboardingEntity>) {
|
|
11
|
+
Object.assign(this, partial);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ApplicationEntity } from '../applications';
|
|
2
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
|
+
|
|
4
|
+
export class ApplicationProductEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
applicationId!: string;
|
|
7
|
+
selectedProduct!: string;
|
|
8
|
+
lendingTypeLid?: string;
|
|
9
|
+
pageValidFlag!: boolean;
|
|
10
|
+
repaymentTypeLid?: string;
|
|
11
|
+
numberOfYearsToRepay!: number;
|
|
12
|
+
repaymentVehicle!: string;
|
|
13
|
+
fixedAmount!: number;
|
|
14
|
+
isFinanceRecommendedToApplicantLid?: string;
|
|
15
|
+
procFeeRateLid?: string;
|
|
16
|
+
networkClubSubmission!: boolean;
|
|
17
|
+
clubNetworkNameLid?: string;
|
|
18
|
+
introducerSubmission!: boolean;
|
|
19
|
+
introducer!: string;
|
|
20
|
+
bdm!: string;
|
|
21
|
+
tempAppFee!: number;
|
|
22
|
+
productFeePaymentTypeLid?: string;
|
|
23
|
+
createdAt!: Date;
|
|
24
|
+
updatedAt!: Date;
|
|
25
|
+
|
|
26
|
+
// Relations
|
|
27
|
+
application?: ApplicationEntity;
|
|
28
|
+
lendingType?: LookupEntity;
|
|
29
|
+
repaymentType?: LookupEntity;
|
|
30
|
+
isFinanceRecommendedToApplicant?: LookupEntity;
|
|
31
|
+
procFeeRate?: LookupEntity;
|
|
32
|
+
clubNetworkName?: LookupEntity;
|
|
33
|
+
productFeePaymentType?: LookupEntity;
|
|
34
|
+
|
|
35
|
+
constructor(partial: Partial<ApplicationProductEntity>) {
|
|
36
|
+
Object.assign(this, partial);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ApplicationEntity } from '../applications';
|
|
2
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
|
+
|
|
4
|
+
export class ApplicationRationaleEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
applicationId!: string;
|
|
7
|
+
affordabilityDescription!: string;
|
|
8
|
+
affordabilityAreaOfOfferCondition!: string;
|
|
9
|
+
affordabilityAreaOfConcern!: string;
|
|
10
|
+
affordabilityStatusLid?: string;
|
|
11
|
+
applicantsDescription!: string;
|
|
12
|
+
applicantsAreaOfOfferCondition!: string;
|
|
13
|
+
applicantsAreaOfConcern!: string;
|
|
14
|
+
applicantsStatusLid?: string;
|
|
15
|
+
creditConductDescription!: string;
|
|
16
|
+
creditConductAreaOfOfferCondition!: string;
|
|
17
|
+
creditConductAreaOfConcern!: string;
|
|
18
|
+
creditConductStatusLid?: string;
|
|
19
|
+
fraudCheckDescription!: string;
|
|
20
|
+
fraudCheckAreaOfOfferCondition!: string;
|
|
21
|
+
fraudCheckAreaOfConcern!: string;
|
|
22
|
+
fraudCheckStatusLid?: string;
|
|
23
|
+
incomeSourceDescription!: string;
|
|
24
|
+
incomeSourceAreaOfOfferCondition!: string;
|
|
25
|
+
incomeSourceAreaOfConcern!: string;
|
|
26
|
+
incomeSourceStatusLid?: string;
|
|
27
|
+
loanDescription!: string;
|
|
28
|
+
loanAreaOfOfferCondition!: string;
|
|
29
|
+
loanAreaOfConcern!: string;
|
|
30
|
+
loanStatusLid?: string;
|
|
31
|
+
securityDescription!: string;
|
|
32
|
+
securityAreaOfOfferCondition!: string;
|
|
33
|
+
securityAreaOfConcern!: string;
|
|
34
|
+
securityStatusLid?: string;
|
|
35
|
+
propertyDescription!: string;
|
|
36
|
+
propertyAreaOfOfferCondition!: string;
|
|
37
|
+
propertyAreaOfConcern!: string;
|
|
38
|
+
propertyStatusLid?: string;
|
|
39
|
+
createdAt!: Date;
|
|
40
|
+
updatedAt!: Date;
|
|
41
|
+
|
|
42
|
+
// Relations
|
|
43
|
+
application?: ApplicationEntity;
|
|
44
|
+
affordabilityStatus?: LookupEntity;
|
|
45
|
+
applicantsStatus?: LookupEntity;
|
|
46
|
+
creditConductStatus?: LookupEntity;
|
|
47
|
+
fraudCheckStatus?: LookupEntity;
|
|
48
|
+
incomeSourceStatus?: LookupEntity;
|
|
49
|
+
loanStatus?: LookupEntity;
|
|
50
|
+
securityStatus?: LookupEntity;
|
|
51
|
+
propertyStatus?: LookupEntity;
|
|
52
|
+
|
|
53
|
+
constructor(partial: Partial<ApplicationRationaleEntity>) {
|
|
54
|
+
Object.assign(this, partial);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
2
|
+
|
|
3
|
+
export class ApplicationRiskNarrativeEntity {
|
|
4
|
+
id!: string;
|
|
5
|
+
call1RequestedOn?: string;
|
|
6
|
+
call2RequestedOn?: string;
|
|
7
|
+
call2StatusLid?: string;
|
|
8
|
+
rationaleForRiskRating?: string;
|
|
9
|
+
retryCount?: string;
|
|
10
|
+
riskRating?: string;
|
|
11
|
+
statusLid?: string;
|
|
12
|
+
createdAt!: Date;
|
|
13
|
+
updatedAt!: Date;
|
|
14
|
+
|
|
15
|
+
// Relations
|
|
16
|
+
call2Status?: LookupEntity;
|
|
17
|
+
status?: LookupEntity;
|
|
18
|
+
|
|
19
|
+
constructor(partial: Partial<ApplicationRiskNarrativeEntity>) {
|
|
20
|
+
Object.assign(this, partial);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export class ApplicationValuationEntity {
|
|
2
|
+
id!: string;
|
|
3
|
+
amount?: string;
|
|
4
|
+
epcRating!: string;
|
|
5
|
+
epcScore?: string;
|
|
6
|
+
estimatedRentalValue?: string;
|
|
7
|
+
instructionId!: string;
|
|
8
|
+
instructionStatus!: string;
|
|
9
|
+
instructionStatusComment!: string;
|
|
10
|
+
isManual!: string;
|
|
11
|
+
squareMetres?: string;
|
|
12
|
+
valuerNotes!: string;
|
|
13
|
+
version!: string;
|
|
14
|
+
createdAt!: Date;
|
|
15
|
+
updatedAt!: Date;
|
|
16
|
+
|
|
17
|
+
constructor(partial: Partial<ApplicationValuationEntity>) {
|
|
18
|
+
Object.assign(this, partial);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
2
|
+
import { BrokerEntity } from './broker.entity';
|
|
3
|
+
import { SecurityEntity } from '../properties/security.entity';
|
|
4
|
+
import { SolicitorEntity } from './solicitor.entity';
|
|
5
|
+
import { ProductEntity } from '../product-catalogues/product.entity';
|
|
6
|
+
import { ApplicationDirectDebitEntity } from './application-direct-debit.entity';
|
|
7
|
+
import { ApplicationMortgageEntity } from './application-mortgage.entity';
|
|
8
|
+
import { ApplicationCompanyEntity } from './application-company.entity';
|
|
9
|
+
import { ApplicationRationaleEntity } from './application-rationale.entity';
|
|
10
|
+
import { ApplicantEntity } from '../applicants/applicant.entity';
|
|
11
|
+
import { PropertyEntity } from '../properties/property.entity';
|
|
12
|
+
|
|
13
|
+
export class ApplicationEntity {
|
|
14
|
+
id!: string;
|
|
15
|
+
queueId!: string[];
|
|
16
|
+
assignedToUserId?: string;
|
|
17
|
+
applicationId!: string;
|
|
18
|
+
isApplicationFeePaid!: string;
|
|
19
|
+
applicationNumber!: string;
|
|
20
|
+
applicationTypeLid!: string;
|
|
21
|
+
bankSolicitor!: string;
|
|
22
|
+
brokerId!: string;
|
|
23
|
+
caseManager!: string;
|
|
24
|
+
caseManagerAccepted!: string;
|
|
25
|
+
completedReason!: string;
|
|
26
|
+
isIntendToOccupy!: string;
|
|
27
|
+
introducer!: string;
|
|
28
|
+
isIntroducerSubmission!: string;
|
|
29
|
+
isBrokerAssigned!: string;
|
|
30
|
+
isFinanceRecommendedToApplicant!: string;
|
|
31
|
+
isWorkflowTaskCreated!: string;
|
|
32
|
+
lastUpdated?: string;
|
|
33
|
+
lendingTypeLid!: string;
|
|
34
|
+
networkClubName!: string;
|
|
35
|
+
isNetworkClubSubmission!: string;
|
|
36
|
+
newReason!: string;
|
|
37
|
+
purchaseTypeLid!: string;
|
|
38
|
+
rejectedReason!: string;
|
|
39
|
+
repaymentTypeLid!: string;
|
|
40
|
+
selectedProduct?: string;
|
|
41
|
+
sourceOfWealthLids!: string[];
|
|
42
|
+
sowBusiness!: string;
|
|
43
|
+
sowInheritance!: string;
|
|
44
|
+
sowOther!: string;
|
|
45
|
+
sowProperty!: string;
|
|
46
|
+
sowSalary!: string;
|
|
47
|
+
statusLid!: string;
|
|
48
|
+
submitReason!: string;
|
|
49
|
+
submittedDate?: string;
|
|
50
|
+
underwriter!: string;
|
|
51
|
+
isValuationFeePaid!: string;
|
|
52
|
+
withdrawalReason!: string;
|
|
53
|
+
withdrawalReasonCode!: string;
|
|
54
|
+
productId?: string;
|
|
55
|
+
securityId!: string;
|
|
56
|
+
solicitorId!: string;
|
|
57
|
+
isActive!: string;
|
|
58
|
+
isUkResident!: string;
|
|
59
|
+
riskRating?: string;
|
|
60
|
+
directDebitId?: string;
|
|
61
|
+
mortgageId?: string;
|
|
62
|
+
companyId?: string;
|
|
63
|
+
rationaleId?: string;
|
|
64
|
+
newAuditRecordsCount!: string;
|
|
65
|
+
currentApprivoAuditId?: string;
|
|
66
|
+
propertyIds!: string[];
|
|
67
|
+
createdAt!: Date;
|
|
68
|
+
updatedAt!: Date;
|
|
69
|
+
|
|
70
|
+
// Relations
|
|
71
|
+
applicationType?: LookupEntity;
|
|
72
|
+
lendingType?: LookupEntity;
|
|
73
|
+
purchaseType?: LookupEntity;
|
|
74
|
+
status?: LookupEntity;
|
|
75
|
+
repaymentType?: LookupEntity;
|
|
76
|
+
broker?: BrokerEntity;
|
|
77
|
+
security?: SecurityEntity;
|
|
78
|
+
solicitor?: SolicitorEntity;
|
|
79
|
+
product?: ProductEntity;
|
|
80
|
+
directDebit?: ApplicationDirectDebitEntity;
|
|
81
|
+
mortgage?: ApplicationMortgageEntity;
|
|
82
|
+
company?: ApplicationCompanyEntity;
|
|
83
|
+
rationale?: ApplicationRationaleEntity;
|
|
84
|
+
applicants?: ApplicantEntity[];
|
|
85
|
+
sourceOfWealth?: LookupEntity[];
|
|
86
|
+
properties?: PropertyEntity[];
|
|
87
|
+
|
|
88
|
+
constructor(partial: Partial<ApplicationEntity>) {
|
|
89
|
+
Object.assign(this, partial);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Virtual properties from Mongoose model
|
|
93
|
+
get noOfApplicants(): number {
|
|
94
|
+
return this.applicants?.length ?? 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
get applicationTypeName(): string | null {
|
|
98
|
+
return this.applicationType?.name ?? null;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
get lendingTypeName(): string | null {
|
|
102
|
+
return this.lendingType?.name ?? null;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
get purchaseTypeName(): string | null {
|
|
106
|
+
return this.purchaseType?.name ?? null;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
get statusName(): string | null {
|
|
110
|
+
return this.status?.name ?? null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
get ltv(): string | null {
|
|
114
|
+
if (this.mortgage?.purchasePrice && this.mortgage?.loanRequired) {
|
|
115
|
+
const parseCurrency = (value: string | number): number => {
|
|
116
|
+
if (typeof value === 'string') {
|
|
117
|
+
return parseFloat(value.replace(/[^0-9.-]+/g, ""));
|
|
118
|
+
}
|
|
119
|
+
return value;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
const parsedPurchasePrice = parseCurrency(this.mortgage.purchasePrice);
|
|
123
|
+
const parsedLoanRequired = parseCurrency(this.mortgage.loanRequired);
|
|
124
|
+
const ltv = (parsedLoanRequired / parsedPurchasePrice) * 100;
|
|
125
|
+
return ltv.toFixed(2) + "%";
|
|
126
|
+
}
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
get submittedDateFormatted(): string | null {
|
|
131
|
+
if (!this.submittedDate) return null;
|
|
132
|
+
const date = new Date(this.submittedDate);
|
|
133
|
+
const day = String(date.getDate()).padStart(2, '0');
|
|
134
|
+
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
135
|
+
const year = date.getFullYear();
|
|
136
|
+
return `${day}-${month}-${year}`;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
get brokerName(): string | null {
|
|
140
|
+
if (this.broker?.firstName && this.broker?.lastName) {
|
|
141
|
+
return `${this.broker.firstName} ${this.broker.lastName}`;
|
|
142
|
+
}
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
get brokerEmail(): string | null {
|
|
147
|
+
return this.broker?.email ?? null;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
get solicitorName(): string | null {
|
|
151
|
+
return this.solicitor?.nameOfAccountHolder ?? null;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
get solicitorEmail(): string | null {
|
|
155
|
+
return this.solicitor?.email ?? null;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
get brokerPhone(): string | null {
|
|
159
|
+
return this.broker?.mobileTelephone ?? null;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
get solicitorPhone(): string | null {
|
|
163
|
+
return this.solicitor?.telephone ?? null;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export class BrokerEntity {
|
|
2
|
+
id!: string;
|
|
3
|
+
brokerId?: string;
|
|
4
|
+
landlinePhone?: string;
|
|
5
|
+
mobileTelephone?: string;
|
|
6
|
+
addressPostCode?: string;
|
|
7
|
+
addressLine1?: string;
|
|
8
|
+
addressLine2?: string;
|
|
9
|
+
addressLine3?: string;
|
|
10
|
+
addressCity?: string;
|
|
11
|
+
addressCountry?: string;
|
|
12
|
+
tradingName?: string;
|
|
13
|
+
fcaNumber?: string;
|
|
14
|
+
brokerType?: string;
|
|
15
|
+
email?: string;
|
|
16
|
+
network?: string;
|
|
17
|
+
firstName?: string;
|
|
18
|
+
lastName?: string;
|
|
19
|
+
createdAt!: Date;
|
|
20
|
+
updatedAt!: Date;
|
|
21
|
+
|
|
22
|
+
constructor(partial: Partial<BrokerEntity>) {
|
|
23
|
+
Object.assign(this, partial);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export class ChecklistItemEntity {
|
|
2
|
+
id!: string;
|
|
3
|
+
additionalOfferConditions!: string;
|
|
4
|
+
appFormSignedNotes!: string;
|
|
5
|
+
applicationCompletionDate?: string;
|
|
6
|
+
buildingInsuranceInsurerName!: string;
|
|
7
|
+
buildingInsurancePolicyNumber!: string;
|
|
8
|
+
buildingInsuranceReceived!: string;
|
|
9
|
+
buildingInsuranceRenewalDate?: string;
|
|
10
|
+
dateOfValuationReceived?: string;
|
|
11
|
+
feePaidDocumentsDownloaded!: string;
|
|
12
|
+
feePaidNotes!: string;
|
|
13
|
+
fundsNotes!: string;
|
|
14
|
+
fundsReleasedDate?: string;
|
|
15
|
+
hasAllDocsReviewedAndAccepted!: string;
|
|
16
|
+
idnPorReceived!: string;
|
|
17
|
+
legalCompletionDate?: string;
|
|
18
|
+
legalDocsReceived!: string;
|
|
19
|
+
legalNotes!: string;
|
|
20
|
+
ninetyDaysValuationAmount!: string;
|
|
21
|
+
offerConditionsItems!: string;
|
|
22
|
+
offerConditionsMet!: string;
|
|
23
|
+
offerNotes!: string;
|
|
24
|
+
offerOfferPrepared!: string;
|
|
25
|
+
offerOfferReviewed!: string;
|
|
26
|
+
offerSignedNotes!: string;
|
|
27
|
+
offerSolicitorInstructedDate?: string;
|
|
28
|
+
packagingNotes!: string;
|
|
29
|
+
preOfferNotes!: string;
|
|
30
|
+
reinstatementAmount!: string;
|
|
31
|
+
rotReceived!: string;
|
|
32
|
+
rotReceivedDate?: string;
|
|
33
|
+
salesContractReceived!: string;
|
|
34
|
+
underwritingNotes!: string;
|
|
35
|
+
underwritingValuationNotes!: string;
|
|
36
|
+
valuationAccepted?: string;
|
|
37
|
+
valuationFurtherConditions!: string;
|
|
38
|
+
valuationNotes!: string;
|
|
39
|
+
valuationReceived?: string;
|
|
40
|
+
valuationRequestedDate?: string;
|
|
41
|
+
valuationScheduledDate?: string;
|
|
42
|
+
valuationSurveyorDetails!: string;
|
|
43
|
+
createdAt!: Date;
|
|
44
|
+
updatedAt!: Date;
|
|
45
|
+
|
|
46
|
+
constructor(partial: Partial<ChecklistItemEntity>) {
|
|
47
|
+
Object.assign(this, partial);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { ApplicantEntity } from '../applicants/applicant.entity';
|
|
2
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
|
+
import { ApplicationEntity } from "./application.entity";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ApplicantShareholdingEntity {
|
|
7
|
+
id!: string;
|
|
8
|
+
companyId!: string;
|
|
9
|
+
applicantId!: string;
|
|
10
|
+
applicantName!: string;
|
|
11
|
+
directorShareholderLid?: string;
|
|
12
|
+
shareholding?: number;
|
|
13
|
+
createdAt!: Date;
|
|
14
|
+
updatedAt!: Date;
|
|
15
|
+
|
|
16
|
+
// Relations
|
|
17
|
+
company?: CompanyEntity;
|
|
18
|
+
applicant?: ApplicantEntity;
|
|
19
|
+
directorShareholder?: LookupEntity;
|
|
20
|
+
|
|
21
|
+
constructor(partial: Partial<ApplicantShareholdingEntity>) {
|
|
22
|
+
Object.assign(this, partial);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class CompanyEntity {
|
|
27
|
+
id!: string;
|
|
28
|
+
applicationId!: string;
|
|
29
|
+
pageValidFlag!: boolean;
|
|
30
|
+
registeredName!: string;
|
|
31
|
+
businessTypeLid!: string;
|
|
32
|
+
registeredNumber!: number;
|
|
33
|
+
taxJurisdictionLid!: string;
|
|
34
|
+
tradingSince?: string;
|
|
35
|
+
natureOfBusiness!: string;
|
|
36
|
+
yearEnd?: string;
|
|
37
|
+
addressPostCode!: string;
|
|
38
|
+
addressLine1!: string;
|
|
39
|
+
addressLine2?: string;
|
|
40
|
+
addressLine3?: string;
|
|
41
|
+
addressCity?: string;
|
|
42
|
+
addressCountryLid!: string;
|
|
43
|
+
applicationTypeLid!: string;
|
|
44
|
+
yearEnd1!: number;
|
|
45
|
+
turnoverYear1!: number;
|
|
46
|
+
netProfitYear1!: number;
|
|
47
|
+
yearEnd2!: number;
|
|
48
|
+
turnoverYear2!: number;
|
|
49
|
+
netProfitYear2!: number;
|
|
50
|
+
yearEnd3!: number;
|
|
51
|
+
turnoverYear3!: number;
|
|
52
|
+
netProfitYear3!: number;
|
|
53
|
+
companyCreditDefaults!: string;
|
|
54
|
+
companyCountyCourtJudgment!: string;
|
|
55
|
+
companySecuredArrears!: string;
|
|
56
|
+
companyUnsecuredArrears!: string;
|
|
57
|
+
companyBankruptcy!: string;
|
|
58
|
+
companyBankruptcyYes!: boolean;
|
|
59
|
+
companyBankruptcyNo!: boolean;
|
|
60
|
+
companyCCJInLastThreeYearYes!: boolean;
|
|
61
|
+
companyCCJInLastThreeYearNo!: boolean;
|
|
62
|
+
companyDefaultsInLastYearYes!: boolean;
|
|
63
|
+
companyDefaultsInLastYearNo!: boolean;
|
|
64
|
+
companyAnyVoluntaryEnforcedPossessionYes!: boolean;
|
|
65
|
+
companyAnyVoluntaryEnforcedPossessionNo!: boolean;
|
|
66
|
+
doYouKnowRegisteredNumber!: boolean;
|
|
67
|
+
sicCodes!: string[];
|
|
68
|
+
epc!: string;
|
|
69
|
+
remainingLease!: string;
|
|
70
|
+
dateOfIncorporation?: string;
|
|
71
|
+
createdAt!: Date;
|
|
72
|
+
updatedAt!: Date;
|
|
73
|
+
|
|
74
|
+
// Relations
|
|
75
|
+
application?: ApplicationEntity;
|
|
76
|
+
businessType?: LookupEntity;
|
|
77
|
+
taxJurisdiction?: LookupEntity;
|
|
78
|
+
addressCountry?: LookupEntity;
|
|
79
|
+
applicationType?: LookupEntity;
|
|
80
|
+
applicantShareholdings?: ApplicantShareholdingEntity[];
|
|
81
|
+
|
|
82
|
+
constructor(partial: Partial<CompanyEntity>) {
|
|
83
|
+
Object.assign(this, partial);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Virtual fields from Mongoose model
|
|
87
|
+
get businessTypeName(): string | null {
|
|
88
|
+
return this.businessType?.name ?? null;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
get taxJurisdictionName(): string | null {
|
|
92
|
+
return this.taxJurisdiction?.name ?? null;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
get addressCountryName(): string | null {
|
|
96
|
+
return this.addressCountry?.name ?? null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
get applicationTypeName(): string | null {
|
|
100
|
+
return this.applicationType?.name ?? null;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class CreditProfileEntity {
|
|
2
|
+
id!: string;
|
|
3
|
+
anyVoluntaryEnforcedPossessionNo!: string;
|
|
4
|
+
bankruptcyNo!: string;
|
|
5
|
+
ccjInLastThreeYearNo!: string;
|
|
6
|
+
defaultsInLastYearNo!: string;
|
|
7
|
+
createdAt!: Date;
|
|
8
|
+
updatedAt!: Date;
|
|
9
|
+
|
|
10
|
+
constructor(partial: Partial<CreditProfileEntity>) {
|
|
11
|
+
Object.assign(this, partial);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Application,
|
|
3
|
+
ProductFeatures,
|
|
4
|
+
Solicitor,
|
|
5
|
+
Broker,
|
|
6
|
+
ChecklistItem,
|
|
7
|
+
Company,
|
|
8
|
+
CreditProfile,
|
|
9
|
+
ApplicationRationale,
|
|
10
|
+
ApplicationRiskNarrative,
|
|
11
|
+
ApplicationValuation,
|
|
12
|
+
ApplicationProduct,
|
|
13
|
+
ApplicationNote,
|
|
14
|
+
ApplicationOffer,
|
|
15
|
+
ApplicationOnboarding,
|
|
16
|
+
ApplicationIllustration,
|
|
17
|
+
ApplicationLegal,
|
|
18
|
+
ApplicationMortgage,
|
|
19
|
+
ApplicationDocument,
|
|
20
|
+
ApplicationFieldConfig,
|
|
21
|
+
ApplicationAudit,
|
|
22
|
+
ApplicationCompany,
|
|
23
|
+
ApplicationDirectDebit
|
|
24
|
+
} from '@prisma/client';
|
|
25
|
+
|
|
26
|
+
// Export Prisma types
|
|
27
|
+
export type {
|
|
28
|
+
Application,
|
|
29
|
+
ProductFeatures,
|
|
30
|
+
Solicitor,
|
|
31
|
+
Broker,
|
|
32
|
+
ChecklistItem,
|
|
33
|
+
Company,
|
|
34
|
+
CreditProfile,
|
|
35
|
+
ApplicationRationale,
|
|
36
|
+
ApplicationRiskNarrative,
|
|
37
|
+
ApplicationValuation,
|
|
38
|
+
ApplicationProduct,
|
|
39
|
+
ApplicationNote,
|
|
40
|
+
ApplicationOffer,
|
|
41
|
+
ApplicationOnboarding,
|
|
42
|
+
ApplicationIllustration,
|
|
43
|
+
ApplicationLegal,
|
|
44
|
+
ApplicationMortgage,
|
|
45
|
+
ApplicationDocument,
|
|
46
|
+
ApplicationFieldConfig,
|
|
47
|
+
ApplicationAudit,
|
|
48
|
+
ApplicationCompany,
|
|
49
|
+
ApplicationDirectDebit
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// Export entity classes
|
|
53
|
+
export * from './application.entity';
|
|
54
|
+
export * from './product-features.entity';
|
|
55
|
+
export * from './solicitor.entity';
|
|
56
|
+
export * from './broker.entity';
|
|
57
|
+
export * from './checklist-item.entity';
|
|
58
|
+
export * from './company.entity';
|
|
59
|
+
export * from './credit-profile.entity';
|
|
60
|
+
export * from './application-rationale.entity';
|
|
61
|
+
export * from './application-risk-narrative.entity';
|
|
62
|
+
export * from './application-valuation.entity';
|
|
63
|
+
export * from './application-product.entity';
|
|
64
|
+
export * from './application-note.entity';
|
|
65
|
+
export * from './application-offer.entity';
|
|
66
|
+
export * from './application-onboarding.entity';
|
|
67
|
+
export * from './application-illustration.entity';
|
|
68
|
+
export * from './application-legal.entity';
|
|
69
|
+
export * from './application-mortgage.entity';
|
|
70
|
+
export * from './application-document.entity';
|
|
71
|
+
export * from './application-fieldconfig.entity';
|
|
72
|
+
export * from './application-audit.entity';
|
|
73
|
+
export * from './application-company.entity';
|
|
74
|
+
export * from './application-direct-debit.entity';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export class ProductFeaturesEntity {
|
|
2
|
+
id!: string;
|
|
3
|
+
name!: string;
|
|
4
|
+
clientAdvance!: string;
|
|
5
|
+
ltv!: string;
|
|
6
|
+
repayment!: string;
|
|
7
|
+
variableRepayment!: string;
|
|
8
|
+
reversionRateWithoutBaseRate?: string;
|
|
9
|
+
totalReversionRate?: string;
|
|
10
|
+
initialRate!: string;
|
|
11
|
+
fixedTerm!: string;
|
|
12
|
+
fixedTermEndDate?: string;
|
|
13
|
+
baseRate?: string;
|
|
14
|
+
productRate?: string;
|
|
15
|
+
apr?: string;
|
|
16
|
+
rentalCoverage?: string;
|
|
17
|
+
repaymentType?: string;
|
|
18
|
+
applicationCategory?: string;
|
|
19
|
+
securityType?: string;
|
|
20
|
+
erc?: string;
|
|
21
|
+
loanType?: string;
|
|
22
|
+
maxLtvLimit?: string;
|
|
23
|
+
reimbursement?: string;
|
|
24
|
+
reimbursementPerPound?: string;
|
|
25
|
+
stressedApr?: string;
|
|
26
|
+
stressedRate?: string;
|
|
27
|
+
stressedRepayment?: string;
|
|
28
|
+
liborFloorRate?: string;
|
|
29
|
+
totalTermInMonths?: string;
|
|
30
|
+
chargeType!: string;
|
|
31
|
+
productCategory!: string;
|
|
32
|
+
ercCode!: string;
|
|
33
|
+
variableTerm?: string;
|
|
34
|
+
totalFeePayable?: string;
|
|
35
|
+
dipIssueDate?: string;
|
|
36
|
+
estimatedCompletionDate?: string;
|
|
37
|
+
dipExpiryDate?: string;
|
|
38
|
+
fixedRepaymentUntillDate?: string;
|
|
39
|
+
rentalReviewDate?: string;
|
|
40
|
+
totalReimbursementWithFee?: string;
|
|
41
|
+
finalRentPayment?: string;
|
|
42
|
+
clientDeposit?: string;
|
|
43
|
+
firstRentPayment?: string;
|
|
44
|
+
ercFeatures?: any;
|
|
45
|
+
icr?: string;
|
|
46
|
+
ufssProductCode?: string;
|
|
47
|
+
ufssInterestRateCode?: string;
|
|
48
|
+
stressedPayment?: string;
|
|
49
|
+
stressedPaymentRate?: string;
|
|
50
|
+
createdAt!: Date;
|
|
51
|
+
updatedAt!: Date;
|
|
52
|
+
|
|
53
|
+
constructor(partial: Partial<ProductFeaturesEntity>) {
|
|
54
|
+
Object.assign(this, partial);
|
|
55
|
+
}
|
|
56
|
+
}
|