@dynamatix/gb-schemas 2.0.59 → 2.0.60
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 -6
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-creditCard.model.js +1 -1
- package/dist/applicants/applicant-commitment-loan.model.d.ts +0 -6
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-loan.model.js +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +0 -6
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.js +1 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +6 -6
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +6 -6
- package/dist/applicants/applicant-expenditure.model.d.ts +6 -12
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.js +1 -9
- package/dist/applicants/applicant-income-settings.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.d.ts +312 -12
- package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.js +6 -2
- package/dist/applicants/applicant-sole-trader-income.model.d.ts +8 -8
- package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-sole-trader-income.model.js +3 -3
- package/dist/applicants/applicant.model.d.ts +2 -1
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +0 -1
- package/dist/applicants/index.d.ts +17 -18
- package/dist/applicants/index.d.ts.map +1 -1
- package/dist/applicants/index.js +17 -18
- package/dist/applications/application-mortgage.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.js +3 -0
- package/dist/entities/applicants/applicant-credit-data.entity.d.ts +19 -0
- package/dist/entities/applicants/applicant-credit-data.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-credit-data.entity.js +5 -0
- package/dist/entities/applicants/applicant-credit-profile.entity.d.ts +14 -0
- package/dist/entities/applicants/applicant-credit-profile.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-credit-profile.entity.js +5 -0
- package/dist/entities/applicants/applicant-employment-income.entity.d.ts +14 -0
- package/dist/entities/applicants/applicant-employment-income.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-employment-income.entity.js +5 -0
- package/dist/entities/applicants/applicant-employment.entity.d.ts +54 -0
- package/dist/entities/applicants/applicant-employment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-employment.entity.js +5 -0
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts +14 -0
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-expenditure.entity.js +5 -0
- package/dist/entities/applicants/applicant-income-source.entity.d.ts +17 -0
- package/dist/entities/applicants/applicant-income-source.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-income-source.entity.js +5 -0
- package/dist/entities/applicants/applicant-income.entity.d.ts +59 -0
- package/dist/entities/applicants/applicant-income.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-income.entity.js +2 -0
- package/dist/entities/applicants/applicant-share-holding.entity.d.ts +18 -0
- package/dist/entities/applicants/applicant-share-holding.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-share-holding.entity.js +5 -0
- package/dist/entities/applicants/applicant.entity.d.ts +143 -0
- package/dist/entities/applicants/applicant.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant.entity.js +48 -0
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts +22 -0
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/credit-card-commitment.entity.js +9 -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 +29 -0
- package/dist/entities/applicants/loan-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/loan-commitment.entity.js +15 -0
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts +50 -0
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/mortgage-commitment.entity.js +27 -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/secure-loan-commitment.entity.d.ts +29 -0
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/secure-loan-commitment.entity.js +12 -0
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts +29 -0
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/unsecured-loan-commitment.entity.js +12 -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 +60 -0
- package/dist/entities/applications/application-company.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-company.entity.js +15 -0
- package/dist/entities/applications/application-credit-profile.entity.d.ts +11 -0
- package/dist/entities/applications/application-credit-profile.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-credit-profile.entity.js +5 -0
- package/dist/entities/applications/application-direct-debit.entity.d.ts +24 -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 +37 -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.entity.d.ts +102 -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/index.d.ts +22 -0
- package/dist/entities/applications/index.d.ts.map +1 -0
- package/dist/entities/applications/index.js +20 -0
- package/dist/entities/applications/product-features.entity.d.ts +104 -0
- package/dist/entities/applications/product-features.entity.d.ts.map +1 -0
- package/dist/entities/applications/product-features.entity.js +20 -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 +58 -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 +19 -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 +15 -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-run.model.d.ts +11 -0
- package/dist/entities/shared/job-run.model.d.ts.map +1 -0
- package/dist/entities/shared/job-run.model.js +1 -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 +19 -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 +13 -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 +16 -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 +33 -0
- package/dist/entities/users/user.entity.d.ts.map +1 -0
- package/dist/entities/users/user.entity.js +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/entities/applicants/applicant-credit-data.entity.ts +24 -0
- package/entities/applicants/applicant-credit-profile.entity.ts +19 -0
- package/entities/applicants/applicant-employment-income.entity.ts +18 -0
- package/entities/applicants/applicant-employment.entity.ts +60 -0
- package/entities/applicants/applicant-expenditure.entity.ts +19 -0
- package/entities/applicants/applicant-income-source.entity.ts +22 -0
- package/entities/applicants/applicant-income.entity.ts +61 -0
- package/entities/applicants/applicant-share-holding.entity.ts +23 -0
- package/entities/applicants/applicant.entity.ts +193 -0
- package/entities/applicants/credit-card-commitment.entity.ts +31 -0
- package/entities/applicants/index.ts +59 -0
- package/entities/applicants/loan-commitment.entity.ts +44 -0
- package/entities/applicants/mortgage-commitment.entity.ts +77 -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/secure-loan-commitment.entity.ts +41 -0
- package/entities/applicants/unsecured-loan-commitment.entity.ts +41 -0
- package/entities/applications/application-audit.entity.ts +23 -0
- package/entities/applications/application-company.entity.ts +76 -0
- package/entities/applications/application-credit-profile.entity.ts +13 -0
- package/entities/applications/application-direct-debit.entity.ts +29 -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 +42 -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.entity.ts +168 -0
- package/entities/applications/broker.entity.ts +25 -0
- package/entities/applications/checklist-item.entity.ts +49 -0
- package/entities/applications/index.ts +63 -0
- package/entities/applications/product-features.entity.ts +118 -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 +35 -0
- package/entities/properties/security.entity.ts +63 -0
- package/entities/shared/alert.entity.ts +19 -0
- package/entities/shared/apprivo-sync-journey.entity.ts +25 -0
- package/entities/shared/apprivo-sync-journey.model.ts +13 -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 +20 -0
- package/entities/shared/job-run.model.ts +10 -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 +24 -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 +18 -0
- package/entities/users/role.entity.ts +21 -0
- package/entities/users/user.entity.ts +38 -0
- package/package.json +30 -17
- package/prisma/applicants/applicant-credit-data.prisma +19 -0
- package/prisma/applicants/applicant-credit-profile.prisma +15 -0
- package/prisma/applicants/applicant-employment-income.prisma +15 -0
- package/prisma/applicants/applicant-employment.prisma +54 -0
- package/prisma/applicants/applicant-expenditure.prisma +14 -0
- package/prisma/applicants/applicant-income-source.prisma +17 -0
- package/prisma/applicants/applicant-income.prisma +67 -0
- package/prisma/applicants/applicant-other-income.prisma +45 -0
- package/prisma/applicants/applicant-property-income.prisma +21 -0
- package/prisma/applicants/applicant-share-holding.prisma +17 -0
- package/prisma/applicants/applicant.prisma +129 -0
- package/prisma/applicants/credit-card-commitment.prisma +21 -0
- package/prisma/applicants/loan-commitment.prisma +26 -0
- package/prisma/applicants/mortgage-commitment.prisma +43 -0
- package/prisma/applicants/residence-commitment.prisma +41 -0
- package/prisma/applicants/secured-loan-commitment.prisma +27 -0
- package/prisma/applicants/unsecured-loan-commitment.prisma +27 -0
- package/prisma/applications/application-audit.prisma +19 -0
- package/prisma/applications/application-company.prisma +56 -0
- package/prisma/applications/application-credit-profile.prisma +15 -0
- package/prisma/applications/application-direct-debit.prisma +27 -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 +36 -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.prisma +92 -0
- package/prisma/applications/broker.prisma +26 -0
- package/prisma/applications/checklist-item.prisma +47 -0
- package/prisma/applications/checklist.prisma +19 -0
- package/prisma/applications/product-features.prisma +122 -0
- package/prisma/applications/solicitor.prisma +33 -0
- package/prisma/broker.entity.ts +8 -0
- package/prisma/migrations/20250501070203_initial_migration/migration.sql +2044 -0
- package/prisma/migrations/20250501102630_job_setting_name_change/migration.sql +10 -0
- package/prisma/migrations/20250501104920_milstone_update/migration.sql +30 -0
- package/prisma/migrations/20250501105546_apprivo_sync_journey_update/migration.sql +9 -0
- package/prisma/migrations/20250501105850_job_run_update/migration.sql +13 -0
- package/prisma/migrations/20250505115236_update_application_schema/migration.sql +115 -0
- package/prisma/migrations/20250505145328_update_broker_schema/migration.sql +8 -0
- package/prisma/migrations/20250505185034_update_direct_debit_schema/migration.sql +27 -0
- package/prisma/migrations/20250505190613_update_solicitor_schema/migration.sql +29 -0
- package/prisma/migrations/20250506054831_update_note_schema/migration.sql +12 -0
- package/prisma/migrations/20250506142218_update_broker_schema/migration.sql +17 -0
- package/prisma/migrations/20250506190258_update_application_note_schema/migration.sql +32 -0
- package/prisma/migrations/20250506204635_update_mortgage_schema/migration.sql +26 -0
- package/prisma/migrations/20250507122847_applicant_retirement_age/migration.sql +9 -0
- package/prisma/migrations/20250507184905_update_mortgage_schema/migration.sql +8 -0
- package/prisma/migrations/20250507194746_update_direct_debit_schema/migration.sql +5 -0
- package/prisma/migrations/20250508092417_update_application_schema/migration.sql +3 -0
- package/prisma/migrations/20250508094735_update_direct_debit_schema/migration.sql +2 -0
- package/prisma/migrations/20250509073536_update_applicant_schema/migration.sql +4 -0
- package/prisma/migrations/20250509111029_update_solicitor_schema/migration.sql +2 -0
- package/prisma/migrations/20250509125107_update_mortgage_schema/migration.sql +19 -0
- package/prisma/migrations/20250512071728_update_mortgage_schema/migration.sql +15 -0
- package/prisma/migrations/20250512094011_update_property_schema/migration.sql +34 -0
- package/prisma/migrations/20250512102019_update_mortgage_schema/migration.sql +2 -0
- package/prisma/migrations/20250513132704_update_credit_card_commitment_schema/migration.sql +22 -0
- package/prisma/migrations/20250513143530_update_credit_card_commitment_schema/migration.sql +8 -0
- package/prisma/migrations/20250513170654_update_mortgage_commitment_schema/migration.sql +89 -0
- package/prisma/migrations/20250513183558_update_loan_commitment_schema/migration.sql +33 -0
- package/prisma/migrations/20250513184341_update_loan_commitment_schema/migration.sql +4 -0
- package/prisma/migrations/20250513202307_update_role_schema/migration.sql +12 -0
- package/prisma/migrations/20250514062536_update_role_group_schema/migration.sql +12 -0
- package/prisma/migrations/20250514064054_update_user_schema/migration.sql +12 -0
- package/prisma/migrations/20250514071524_update_user_schema/migration.sql +15 -0
- package/prisma/migrations/20250514072729_update_user_schema/migration.sql +18 -0
- package/prisma/migrations/20250514102042_update_user_rolegroup_role_schemas/migration.sql +9 -0
- package/prisma/migrations/20250514183537_update_application_company_schema/migration.sql +100 -0
- package/prisma/migrations/20250514194139_update_applicant_share_holding_schema/migration.sql +11 -0
- package/prisma/migrations/20250515132015_update_underwriter_schema/migration.sql +56 -0
- package/prisma/migrations/20250515133236_update_underwriter_schema/migration.sql +12 -0
- package/prisma/migrations/20250515172824_update_security_schema/migration.sql +43 -0
- package/prisma/migrations/20250516053810_update_underwriter_schema/migration.sql +14 -0
- package/prisma/migrations/20250516075153_update_commitments_schemas/migration.sql +134 -0
- package/prisma/migrations/20250516094438_update_credit_card_commitment_schema/migration.sql +8 -0
- package/prisma/migrations/20250519075211_update_product_features_schema/migration.sql +15 -0
- package/prisma/migrations/20250519094725_update_product_feature_schema/migration.sql +163 -0
- package/prisma/migrations/20250519133154_update_employemnt_income_schema/migration.sql +11 -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 +81 -0
- package/prisma/schema.prisma +1966 -0
- package/prisma/shared/alert.prisma +15 -0
- package/prisma/shared/apprivo-sync-journey.prisma +19 -0
- package/prisma/shared/checklist.prisma +10 -0
- package/prisma/shared/document-type.prisma +9 -0
- package/prisma/shared/job-run.prisma +15 -0
- package/prisma/shared/job-setting.prisma +11 -0
- package/prisma/shared/lookup-group.prisma +12 -0
- package/prisma/shared/lookup.prisma +154 -0
- package/prisma/shared/system-parameter.prisma +16 -0
- package/prisma/underwriter/underwriter.prisma +20 -0
- package/prisma/users/auth-log.prisma +11 -0
- package/prisma/users/permission.prisma +13 -0
- package/prisma/users/role-group.prisma +15 -0
- package/prisma/users/role.prisma +15 -0
- package/prisma/users/user.prisma +30 -0
- package/dist/applicants/applicant-commitment-residence.model.d.ts +0 -728
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +0 -1
- package/dist/applicants/applicant-commitment-residence.model.js +0 -50
|
@@ -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,63 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Application,
|
|
3
|
+
ProductFeatures,
|
|
4
|
+
Solicitor,
|
|
5
|
+
Broker,
|
|
6
|
+
ChecklistItem,
|
|
7
|
+
ApplicationRationale,
|
|
8
|
+
ApplicationProduct,
|
|
9
|
+
ApplicationNote,
|
|
10
|
+
ApplicationOffer,
|
|
11
|
+
ApplicationOnboarding,
|
|
12
|
+
ApplicationIllustration,
|
|
13
|
+
ApplicationLegal,
|
|
14
|
+
ApplicationMortgage,
|
|
15
|
+
ApplicationDocument,
|
|
16
|
+
ApplicationFieldConfig,
|
|
17
|
+
ApplicationAudit,
|
|
18
|
+
ApplicationCompany,
|
|
19
|
+
ApplicationDirectDebit
|
|
20
|
+
} from '@prisma/client';
|
|
21
|
+
|
|
22
|
+
// Export Prisma types
|
|
23
|
+
export type {
|
|
24
|
+
Application,
|
|
25
|
+
ProductFeatures,
|
|
26
|
+
Solicitor,
|
|
27
|
+
Broker,
|
|
28
|
+
ChecklistItem,
|
|
29
|
+
ApplicationRationale,
|
|
30
|
+
ApplicationProduct,
|
|
31
|
+
ApplicationNote,
|
|
32
|
+
ApplicationOffer,
|
|
33
|
+
ApplicationOnboarding,
|
|
34
|
+
ApplicationIllustration,
|
|
35
|
+
ApplicationLegal,
|
|
36
|
+
ApplicationMortgage,
|
|
37
|
+
ApplicationDocument,
|
|
38
|
+
ApplicationFieldConfig,
|
|
39
|
+
ApplicationAudit,
|
|
40
|
+
ApplicationCompany,
|
|
41
|
+
ApplicationDirectDebit
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// Export entity classes
|
|
45
|
+
export * from './application.entity';
|
|
46
|
+
export * from './product-features.entity';
|
|
47
|
+
export * from './solicitor.entity';
|
|
48
|
+
export * from './broker.entity';
|
|
49
|
+
export * from './checklist-item.entity';
|
|
50
|
+
export * from './application-credit-profile.entity';
|
|
51
|
+
export * from './application-rationale.entity';
|
|
52
|
+
export * from './application-product.entity';
|
|
53
|
+
export * from './application-note.entity';
|
|
54
|
+
export * from './application-offer.entity';
|
|
55
|
+
export * from './application-onboarding.entity';
|
|
56
|
+
export * from './application-illustration.entity';
|
|
57
|
+
export * from './application-legal.entity';
|
|
58
|
+
export * from './application-mortgage.entity';
|
|
59
|
+
export * from './application-document.entity';
|
|
60
|
+
export * from './application-fieldconfig.entity';
|
|
61
|
+
export * from './application-audit.entity';
|
|
62
|
+
export * from './application-company.entity';
|
|
63
|
+
export * from './application-direct-debit.entity';
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
export class FeeEntity {
|
|
2
|
+
id!: string;
|
|
3
|
+
applicationProductFeatureId!: string;
|
|
4
|
+
feeType!: string;
|
|
5
|
+
description!: string;
|
|
6
|
+
feeAmount!: number;
|
|
7
|
+
rate!: number;
|
|
8
|
+
addedToLoan!: boolean;
|
|
9
|
+
allowOverride!: boolean;
|
|
10
|
+
additionalData?: any;
|
|
11
|
+
|
|
12
|
+
constructor(partial: Partial<FeeEntity>) {
|
|
13
|
+
Object.assign(this, partial);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class CashflowPeriodEntity {
|
|
18
|
+
id!: string;
|
|
19
|
+
applicationProductFeatureId!: string;
|
|
20
|
+
type!: string;
|
|
21
|
+
from?: number;
|
|
22
|
+
to?: number;
|
|
23
|
+
instalmentAmount?: number;
|
|
24
|
+
instalmentInterest?: number;
|
|
25
|
+
instalmentCapitalRepaid?: number;
|
|
26
|
+
otherCosts?: number;
|
|
27
|
+
outstandingCapital?: number;
|
|
28
|
+
|
|
29
|
+
constructor(partial: Partial<CashflowPeriodEntity>) {
|
|
30
|
+
Object.assign(this, partial);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class CalculationsEntity {
|
|
35
|
+
id!: string;
|
|
36
|
+
applicationProductFeatureId!: string;
|
|
37
|
+
ltv?: number;
|
|
38
|
+
rentalCoverageRatioRate?: number;
|
|
39
|
+
bankContributionRate?: number;
|
|
40
|
+
bankInitialShareRate?: number;
|
|
41
|
+
totalAmountPayable?: number;
|
|
42
|
+
fixedMonthlyPayment?: number;
|
|
43
|
+
fixedMonthlyCapital?: number;
|
|
44
|
+
fixedMonthlyInterest?: number;
|
|
45
|
+
variableMonthlyPayment?: number;
|
|
46
|
+
summaryTotal?: number;
|
|
47
|
+
reimbursementPerPound?: number;
|
|
48
|
+
stressedPayment?: number;
|
|
49
|
+
stressedPaymentRate?: number;
|
|
50
|
+
rentalCoverage?: number;
|
|
51
|
+
rentalCoverageWithoutTopUp?: number;
|
|
52
|
+
|
|
53
|
+
constructor(partial: Partial<CalculationsEntity>) {
|
|
54
|
+
Object.assign(this, partial);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export class ProductFeaturesEntity {
|
|
59
|
+
id!: string;
|
|
60
|
+
applicationId!: string;
|
|
61
|
+
name!: string;
|
|
62
|
+
clientAdvance!: number;
|
|
63
|
+
ltv!: number;
|
|
64
|
+
repayment!: number;
|
|
65
|
+
variableRepayment!: number;
|
|
66
|
+
reversionRateWithoutBaseRate?: number;
|
|
67
|
+
totalReversionRate?: number;
|
|
68
|
+
initialRate!: number;
|
|
69
|
+
fixedTerm!: number;
|
|
70
|
+
fixedTermEndDate?: string;
|
|
71
|
+
baseRate?: number;
|
|
72
|
+
productRate?: number;
|
|
73
|
+
apr?: number;
|
|
74
|
+
rentalCoverage?: number;
|
|
75
|
+
repaymentType?: string;
|
|
76
|
+
applicationCategory?: string;
|
|
77
|
+
securityType?: string;
|
|
78
|
+
erc?: string;
|
|
79
|
+
loanType?: string;
|
|
80
|
+
maxLtvLimit?: string;
|
|
81
|
+
reimbursement?: number;
|
|
82
|
+
reimbursementPerPound?: number;
|
|
83
|
+
stressedApr?: number;
|
|
84
|
+
stressedRate?: number;
|
|
85
|
+
stressedRepayment?: number;
|
|
86
|
+
liborFloorRate?: string;
|
|
87
|
+
totalTermInMonths?: number;
|
|
88
|
+
chargeType!: string;
|
|
89
|
+
productCategory!: string;
|
|
90
|
+
ercCode!: string;
|
|
91
|
+
variableTerm?: number;
|
|
92
|
+
totalFeePayable?: number;
|
|
93
|
+
dipIssueDate?: string;
|
|
94
|
+
estimatedCompletionDate?: string;
|
|
95
|
+
dipExpiryDate?: string;
|
|
96
|
+
fixedRepaymentUntillDate?: string;
|
|
97
|
+
rentalReviewDate?: string;
|
|
98
|
+
totalReimbursementWithFee?: number;
|
|
99
|
+
finalRentPayment?: number;
|
|
100
|
+
clientDeposit?: number;
|
|
101
|
+
firstRentPayment?: number;
|
|
102
|
+
ercFeatures?: any;
|
|
103
|
+
icr?: string;
|
|
104
|
+
ufssProductCode?: string;
|
|
105
|
+
ufssInterestRateCode?: string;
|
|
106
|
+
stressedPayment?: number;
|
|
107
|
+
stressedPaymentRate?: number;
|
|
108
|
+
createdAt!: Date;
|
|
109
|
+
updatedAt!: Date;
|
|
110
|
+
cashflowPeriodsTotalNoOfPayments?: number;
|
|
111
|
+
fees!: FeeEntity[];
|
|
112
|
+
cashflowPeriods!: CashflowPeriodEntity[];
|
|
113
|
+
calculations?: CalculationsEntity;
|
|
114
|
+
|
|
115
|
+
constructor(partial: Partial<ProductFeaturesEntity>) {
|
|
116
|
+
Object.assign(this, partial);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { LookupEntity } from "../shared/lookup.entity";
|
|
2
|
+
import { ApplicationEntity } from "./application.entity";
|
|
3
|
+
|
|
4
|
+
export class SolicitorEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
applicationId!: string;
|
|
7
|
+
pageValidFlag!: boolean;
|
|
8
|
+
accountNumber?: number;
|
|
9
|
+
addressCity?: string;
|
|
10
|
+
addressCountryLid!: string;
|
|
11
|
+
addressLine1!: string;
|
|
12
|
+
addressLine2?: string;
|
|
13
|
+
addressLine3?: string;
|
|
14
|
+
addressPostCode!: string;
|
|
15
|
+
bankAddressLine1?: string;
|
|
16
|
+
bankAddressLine2?: string;
|
|
17
|
+
bankBranch?: string;
|
|
18
|
+
bankCity?: string;
|
|
19
|
+
contactPostcode?: string;
|
|
20
|
+
email!: string;
|
|
21
|
+
institution?: string;
|
|
22
|
+
nameOfAccountHolder?: string;
|
|
23
|
+
nameOfFirm!: string;
|
|
24
|
+
signatory?: string;
|
|
25
|
+
solicitorActing!: string;
|
|
26
|
+
sortCode?: string;
|
|
27
|
+
telephone!: string;
|
|
28
|
+
createdAt!: Date;
|
|
29
|
+
updatedAt!: Date;
|
|
30
|
+
|
|
31
|
+
// Relations
|
|
32
|
+
application?: ApplicationEntity;
|
|
33
|
+
addressCountry?: LookupEntity;
|
|
34
|
+
|
|
35
|
+
constructor(partial: Partial<SolicitorEntity>) {
|
|
36
|
+
Object.assign(this, partial);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Export Prisma client
|
|
2
|
+
export { prisma } from './prisma';
|
|
3
|
+
|
|
4
|
+
// Export all entities from each domain
|
|
5
|
+
export * as ApplicantEntities from './applicants';
|
|
6
|
+
export * as ApplicationEntities from './applications';
|
|
7
|
+
export * as ProductCatalogueEntities from './product-catalogues';
|
|
8
|
+
export * as PropertyEntities from './properties';
|
|
9
|
+
export * as SharedEntities from './shared';
|
|
10
|
+
export * as UnderwriterEntities from './underwriter';
|
|
11
|
+
export * as UserEntities from './users';
|
|
12
|
+
|
|
13
|
+
// Export Prisma types
|
|
14
|
+
export type { PrismaClient } from '@prisma/client';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PrismaClient } from '@prisma/client';
|
|
2
|
+
|
|
3
|
+
// PrismaClient is attached to the `global` object in development to prevent
|
|
4
|
+
// exhausting your database connection limit.
|
|
5
|
+
const globalForPrisma = global as unknown as { prisma: PrismaClient };
|
|
6
|
+
|
|
7
|
+
export const prisma =
|
|
8
|
+
globalForPrisma.prisma ||
|
|
9
|
+
new PrismaClient({
|
|
10
|
+
log: ['query'],
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = prisma;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ProductCatalogue,
|
|
3
|
+
ProductDefinition,
|
|
4
|
+
ProductVariant,
|
|
5
|
+
Product,
|
|
6
|
+
Rule
|
|
7
|
+
} from '@prisma/client';
|
|
8
|
+
|
|
9
|
+
// Export Prisma types
|
|
10
|
+
export type {
|
|
11
|
+
ProductCatalogue,
|
|
12
|
+
ProductDefinition,
|
|
13
|
+
ProductVariant,
|
|
14
|
+
Product,
|
|
15
|
+
Rule
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// Export entity classes
|
|
19
|
+
export * from './product-catalogue.entity';
|
|
20
|
+
export * from './product-definition.entity';
|
|
21
|
+
export * from './product-variant.entity';
|
|
22
|
+
export * from './product.entity';
|
|
23
|
+
export * from './rule.entity';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ProductDefinitionEntity } from './product-definition.entity';
|
|
2
|
+
import { ProductVariantEntity } from './product-variant.entity';
|
|
3
|
+
|
|
4
|
+
export class ProductCatalogueEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
productCatalogueId!: string;
|
|
7
|
+
name!: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
applyFrom!: string;
|
|
10
|
+
applyUntil!: string;
|
|
11
|
+
submitUntil!: string;
|
|
12
|
+
status!: string;
|
|
13
|
+
lockedForEdit!: string;
|
|
14
|
+
baseRateName?: string;
|
|
15
|
+
baseRate?: string;
|
|
16
|
+
mapperName?: string;
|
|
17
|
+
createdAt!: Date;
|
|
18
|
+
updatedAt!: Date;
|
|
19
|
+
|
|
20
|
+
// Relations
|
|
21
|
+
productDefinitions?: ProductDefinitionEntity[];
|
|
22
|
+
productVariants?: ProductVariantEntity[];
|
|
23
|
+
|
|
24
|
+
constructor(partial: Partial<ProductCatalogueEntity>) {
|
|
25
|
+
Object.assign(this, partial);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ProductCatalogueEntity } from './product-catalogue.entity';
|
|
2
|
+
import { RuleEntity } from './rule.entity';
|
|
3
|
+
|
|
4
|
+
export class ProductDefinitionEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
productDefinitionId!: string;
|
|
7
|
+
productCatalogueId!: string;
|
|
8
|
+
name!: string;
|
|
9
|
+
atLeastOnePass!: string;
|
|
10
|
+
elements!: any[];
|
|
11
|
+
createdAt!: Date;
|
|
12
|
+
updatedAt!: Date;
|
|
13
|
+
|
|
14
|
+
// Relations
|
|
15
|
+
productCatalogue?: ProductCatalogueEntity;
|
|
16
|
+
rules?: RuleEntity[];
|
|
17
|
+
|
|
18
|
+
constructor(partial: Partial<ProductDefinitionEntity>) {
|
|
19
|
+
Object.assign(this, partial);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ProductCatalogueEntity } from './product-catalogue.entity';
|
|
2
|
+
|
|
3
|
+
export class ProductVariantEntity {
|
|
4
|
+
id!: string;
|
|
5
|
+
productCatalogueId!: string;
|
|
6
|
+
variantid!: string;
|
|
7
|
+
name!: string;
|
|
8
|
+
variantCode!: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
createdAt!: Date;
|
|
11
|
+
updatedAt!: Date;
|
|
12
|
+
|
|
13
|
+
// Relations
|
|
14
|
+
productCatalogue?: ProductCatalogueEntity;
|
|
15
|
+
|
|
16
|
+
constructor(partial: Partial<ProductVariantEntity>) {
|
|
17
|
+
Object.assign(this, partial);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApplicationEntity } from '../applications/application.entity';
|
|
2
|
+
|
|
3
|
+
export class ProductEntity {
|
|
4
|
+
id!: string;
|
|
5
|
+
name!: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
createdAt!: Date;
|
|
8
|
+
updatedAt!: Date;
|
|
9
|
+
|
|
10
|
+
// Relations
|
|
11
|
+
applications?: ApplicationEntity[];
|
|
12
|
+
|
|
13
|
+
constructor(partial: Partial<ProductEntity>) {
|
|
14
|
+
Object.assign(this, partial);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ProductDefinitionEntity } from './product-definition.entity';
|
|
2
|
+
|
|
3
|
+
export class RuleEntity {
|
|
4
|
+
id!: string;
|
|
5
|
+
ruleId!: string;
|
|
6
|
+
rule!: string;
|
|
7
|
+
name!: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
scope?: string;
|
|
10
|
+
mandatory!: string;
|
|
11
|
+
overrideRuleType?: string;
|
|
12
|
+
overrideRuleMessage?: string;
|
|
13
|
+
inheritedFrom?: string;
|
|
14
|
+
anyPass!: string;
|
|
15
|
+
preCashflow!: string;
|
|
16
|
+
productDefinitionId!: string;
|
|
17
|
+
createdAt!: Date;
|
|
18
|
+
updatedAt!: Date;
|
|
19
|
+
|
|
20
|
+
// Relations
|
|
21
|
+
productDefinition?: ProductDefinitionEntity;
|
|
22
|
+
|
|
23
|
+
constructor(partial: Partial<RuleEntity>) {
|
|
24
|
+
Object.assign(this, partial);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SecurityEntity } from './security.entity';
|
|
2
|
+
|
|
3
|
+
export class DataStreetEntity {
|
|
4
|
+
id!: number;
|
|
5
|
+
floorArea!: string;
|
|
6
|
+
propertyType!: string;
|
|
7
|
+
noOfBedrooms!: string;
|
|
8
|
+
noOfBathrooms!: string;
|
|
9
|
+
lats?: string;
|
|
10
|
+
longs?: string;
|
|
11
|
+
lmkKey!: string;
|
|
12
|
+
matchConfidence!: string;
|
|
13
|
+
transactions!: any[];
|
|
14
|
+
nearByListings!: any[];
|
|
15
|
+
nearByCompletedTransactions!: any[];
|
|
16
|
+
risk!: any;
|
|
17
|
+
securityId!: number;
|
|
18
|
+
createdAt!: Date;
|
|
19
|
+
updatedAt!: Date;
|
|
20
|
+
|
|
21
|
+
// Relations
|
|
22
|
+
security?: SecurityEntity;
|
|
23
|
+
|
|
24
|
+
constructor(partial: Partial<DataStreetEntity>) {
|
|
25
|
+
Object.assign(this, partial);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Property,
|
|
3
|
+
Security,
|
|
4
|
+
DataStreet
|
|
5
|
+
} from '@prisma/client';
|
|
6
|
+
|
|
7
|
+
// Export Prisma types
|
|
8
|
+
export type {
|
|
9
|
+
Property,
|
|
10
|
+
Security,
|
|
11
|
+
DataStreet
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
// Export entity classes
|
|
15
|
+
export * from './property.entity';
|
|
16
|
+
export * from './security.entity';
|
|
17
|
+
export * from './data-street.entity';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ApplicationEntity } from "../applications/application.entity";
|
|
2
|
+
import { LookupEntity } from "../shared/lookup.entity";
|
|
3
|
+
|
|
4
|
+
export class PropertyEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
applicationId!: string;
|
|
7
|
+
pageValidFlag!: boolean;
|
|
8
|
+
propertyId!: string;
|
|
9
|
+
postCode!: string;
|
|
10
|
+
addressLine1?: string;
|
|
11
|
+
addressLine2?: string;
|
|
12
|
+
addressLine3?: string;
|
|
13
|
+
city?: string;
|
|
14
|
+
countryLid!: string;
|
|
15
|
+
marketValue!: number;
|
|
16
|
+
lender!: string;
|
|
17
|
+
remainingTerm!: number;
|
|
18
|
+
monthlyRepayment!: number;
|
|
19
|
+
monthlyRent!: number;
|
|
20
|
+
originalLoanBalance!: number;
|
|
21
|
+
outstandingBalance!: number;
|
|
22
|
+
associatedLoanPartiesIds!: string[];
|
|
23
|
+
otherOwnershipParties?: string;
|
|
24
|
+
portfolioFile?: string;
|
|
25
|
+
createdAt!: Date;
|
|
26
|
+
updatedAt!: Date;
|
|
27
|
+
|
|
28
|
+
// Relations
|
|
29
|
+
application?: ApplicationEntity;
|
|
30
|
+
country?: LookupEntity;
|
|
31
|
+
|
|
32
|
+
constructor(partial: Partial<PropertyEntity>) {
|
|
33
|
+
Object.assign(this, partial);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ApplicationEntity } from '../applications/application.entity';
|
|
2
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
|
+
import { DataStreetEntity } from './data-street.entity';
|
|
4
|
+
|
|
5
|
+
export class SecurityEntity {
|
|
6
|
+
id!: string;
|
|
7
|
+
applicationId!: string;
|
|
8
|
+
pageValidFlag!: boolean;
|
|
9
|
+
haveAnyBuyToLetProperties!: boolean;
|
|
10
|
+
isPropertyInEnglandOrWales!: boolean;
|
|
11
|
+
noOfBuyToLetProperties!: number;
|
|
12
|
+
totalMonthlyRentalIncome!: number;
|
|
13
|
+
totalMonthlyRepayment!: number;
|
|
14
|
+
totalOutstandingBalance!: number;
|
|
15
|
+
areAllBedRoomsOver10sqm!: boolean;
|
|
16
|
+
isBrickTileConstruction!: boolean;
|
|
17
|
+
constructionDetails!: string;
|
|
18
|
+
isExLAExclusion!: boolean;
|
|
19
|
+
isFlatLift!: boolean;
|
|
20
|
+
flatNumberOfBedrooms!: number;
|
|
21
|
+
isGreenEPC!: boolean;
|
|
22
|
+
isGroundRent!: number;
|
|
23
|
+
isHouseLicensed!: boolean;
|
|
24
|
+
houseNumberOfFloors!: number;
|
|
25
|
+
houseNumberOfKitchens!: number;
|
|
26
|
+
houseNumberOfLivingRooms!: number;
|
|
27
|
+
houseNumberOfBathrooms!: number;
|
|
28
|
+
houseNumberOfTenancies!: number;
|
|
29
|
+
hasHousePlanningPermission!: boolean;
|
|
30
|
+
isGarage!: boolean;
|
|
31
|
+
isNewBuild!: boolean;
|
|
32
|
+
propertyAddressCity?: string;
|
|
33
|
+
propertyAddressCountryLid!: string;
|
|
34
|
+
propertyAddressLine1!: string;
|
|
35
|
+
propertyAddressLine2?: string;
|
|
36
|
+
propertyAddressLine3?: string;
|
|
37
|
+
propertyAddressPostCode!: string;
|
|
38
|
+
propertyTenureLid?: string;
|
|
39
|
+
propertyTypeLid!: string;
|
|
40
|
+
propertyYearBuilt!: number;
|
|
41
|
+
receiptOfAnyDiscount!: boolean;
|
|
42
|
+
receiptOfDiscountDetails!: string;
|
|
43
|
+
sectorExperienceLid!: string;
|
|
44
|
+
serviceCharge!: number;
|
|
45
|
+
unexpiredRemainingLease!: number;
|
|
46
|
+
yearLeaseExpires!: string;
|
|
47
|
+
energyEfficiencyRating?: string;
|
|
48
|
+
energyEfficiencyRatingValue?: string;
|
|
49
|
+
createdAt!: Date;
|
|
50
|
+
updatedAt!: Date;
|
|
51
|
+
|
|
52
|
+
// Relations
|
|
53
|
+
application?: ApplicationEntity;
|
|
54
|
+
propertyAddressCountry?: LookupEntity;
|
|
55
|
+
propertyTenure?: LookupEntity;
|
|
56
|
+
propertyType?: LookupEntity;
|
|
57
|
+
dataStreet?: DataStreetEntity;
|
|
58
|
+
sectorExperience?: LookupEntity;
|
|
59
|
+
|
|
60
|
+
constructor(partial: Partial<SecurityEntity>) {
|
|
61
|
+
Object.assign(this, partial);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UserEntity } from '../users/user.entity';
|
|
2
|
+
|
|
3
|
+
export class AlertEntity {
|
|
4
|
+
id!: string;
|
|
5
|
+
title!: string;
|
|
6
|
+
message!: string;
|
|
7
|
+
type!: string;
|
|
8
|
+
isRead!: boolean;
|
|
9
|
+
userId!: string;
|
|
10
|
+
createdAt!: Date;
|
|
11
|
+
updatedAt!: Date;
|
|
12
|
+
|
|
13
|
+
// Relations
|
|
14
|
+
user?: UserEntity;
|
|
15
|
+
|
|
16
|
+
constructor(partial: Partial<AlertEntity>) {
|
|
17
|
+
Object.assign(this, partial);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
import { LookupEntity } from './lookup.entity';
|
|
3
|
+
import { JobRunEntity } from './job-run.entity';
|
|
4
|
+
|
|
5
|
+
export class ApprivoSyncJourneyEntity {
|
|
6
|
+
id!: string;
|
|
7
|
+
applicationId!: string;
|
|
8
|
+
milestoneLid?: string;
|
|
9
|
+
mileStoneStatus!: 'Completed' | 'Errored' | 'Not Applicable';
|
|
10
|
+
error?: string;
|
|
11
|
+
isFirstPull!: boolean;
|
|
12
|
+
jobRunId?: string;
|
|
13
|
+
startTime?: Date;
|
|
14
|
+
endTime?: Date;
|
|
15
|
+
createdAt!: Date;
|
|
16
|
+
updatedAt!: Date;
|
|
17
|
+
|
|
18
|
+
// Relations
|
|
19
|
+
milestone?: LookupEntity;
|
|
20
|
+
jobRun?: JobRunEntity;
|
|
21
|
+
|
|
22
|
+
constructor(partial: Partial<ApprivoSyncJourneyEntity>) {
|
|
23
|
+
Object.assign(this, partial);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ApprivoSyncJourneyModel {
|
|
2
|
+
id: string;
|
|
3
|
+
applicationId: string;
|
|
4
|
+
milestoneLid?: string;
|
|
5
|
+
mileStoneStatus: 'Completed' | 'Errored' | 'Not Applicable';
|
|
6
|
+
error?: string;
|
|
7
|
+
isFirstPull: string;
|
|
8
|
+
jobRunId?: string;
|
|
9
|
+
startTime?: Date;
|
|
10
|
+
endTime?: Date;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
}
|