@dynamatix/gb-schemas 1.2.80 → 2.0.1
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 +101 -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 +130 -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 +26 -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 +62 -0
- package/prisma/applicants/loan-commitment.prisma +26 -0
- package/prisma/applicants/mortgage-commitment.prisma +34 -0
- package/prisma/applicants/other-income.prisma +45 -0
- package/prisma/applicants/property-income.prisma +20 -0
- package/prisma/applicants/residence-commitment.prisma +41 -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 +13 -0
- package/prisma/applications/application-direct-debit.prisma +13 -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 +99 -0
- package/prisma/applications/broker.prisma +27 -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/broker.entity.ts +8 -0
- package/prisma/lookup.entity.ts +9 -0
- package/prisma/migrations/20250430124915_initial_migration/migration.sql +2117 -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 +1942 -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 +148 -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,38 @@
|
|
|
1
|
+
import { LookupEntity } from "../applicants";
|
|
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,36 @@
|
|
|
1
|
+
import { LookupEntity } from "../applicants";
|
|
2
|
+
import { ApplicationEntity } from "../applications";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class PropertyEntity {
|
|
6
|
+
id!: string;
|
|
7
|
+
applicationId!: string;
|
|
8
|
+
pageValidFlag!: boolean;
|
|
9
|
+
propertyId!: string;
|
|
10
|
+
addressLine1!: string;
|
|
11
|
+
addressLine2?: string;
|
|
12
|
+
addressLine3?: string;
|
|
13
|
+
associatedLoanPartiesIds!: string[];
|
|
14
|
+
city?: string;
|
|
15
|
+
countryLid!: string;
|
|
16
|
+
lender!: string;
|
|
17
|
+
marketValue!: number;
|
|
18
|
+
monthlyRent!: number;
|
|
19
|
+
monthlyRepayment!: number;
|
|
20
|
+
originalLoanBalance!: number;
|
|
21
|
+
outstandingBalance!: number;
|
|
22
|
+
otherOwnershipParties?: string;
|
|
23
|
+
postCode!: string;
|
|
24
|
+
remainingTerm!: number;
|
|
25
|
+
portfolioFile?: string;
|
|
26
|
+
createdAt!: Date;
|
|
27
|
+
updatedAt!: Date;
|
|
28
|
+
|
|
29
|
+
// Relations
|
|
30
|
+
application?: ApplicationEntity;
|
|
31
|
+
country?: LookupEntity;
|
|
32
|
+
|
|
33
|
+
constructor(partial: Partial<PropertyEntity>) {
|
|
34
|
+
Object.assign(this, partial);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
sectorExperience!: string;
|
|
44
|
+
serviceCharge!: number;
|
|
45
|
+
unexpiredRemainingLease!: number;
|
|
46
|
+
yearLeaseExpires!: number;
|
|
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
|
+
|
|
59
|
+
constructor(partial: Partial<SecurityEntity>) {
|
|
60
|
+
Object.assign(this, partial);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -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,21 @@
|
|
|
1
|
+
import { LookupEntity } from './lookup.entity';
|
|
2
|
+
import { JobRunEntity } from './job-run.entity';
|
|
3
|
+
|
|
4
|
+
export class ApprivoSyncJourneyEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
journeyId!: string;
|
|
7
|
+
status!: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
startedAt!: Date;
|
|
10
|
+
completedAt?: Date;
|
|
11
|
+
createdAt!: Date;
|
|
12
|
+
updatedAt!: Date;
|
|
13
|
+
|
|
14
|
+
// Relations
|
|
15
|
+
milestone?: LookupEntity;
|
|
16
|
+
jobRun?: JobRunEntity;
|
|
17
|
+
|
|
18
|
+
constructor(partial: Partial<ApprivoSyncJourneyEntity>) {
|
|
19
|
+
Object.assign(this, partial);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ApplicationEntity } from '../applications';
|
|
2
|
+
import { LookupEntity } from './lookup.entity';
|
|
3
|
+
|
|
4
|
+
export class ChecklistEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
name!: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
isActive!: boolean;
|
|
9
|
+
createdAt!: Date;
|
|
10
|
+
updatedAt!: Date;
|
|
11
|
+
|
|
12
|
+
// Relations
|
|
13
|
+
checkType?: LookupEntity;
|
|
14
|
+
application?: ApplicationEntity;
|
|
15
|
+
checkStatus?: LookupEntity;
|
|
16
|
+
|
|
17
|
+
constructor(partial: Partial<ChecklistEntity>) {
|
|
18
|
+
Object.assign(this, partial);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
JobSetting,
|
|
3
|
+
LookupGroup,
|
|
4
|
+
Lookup,
|
|
5
|
+
SystemParameter,
|
|
6
|
+
ApprivoSyncJourney,
|
|
7
|
+
Checklist,
|
|
8
|
+
DocumentType,
|
|
9
|
+
JobRun,
|
|
10
|
+
Alert
|
|
11
|
+
} from '@prisma/client';
|
|
12
|
+
|
|
13
|
+
// Export Prisma types
|
|
14
|
+
export type {
|
|
15
|
+
JobSetting,
|
|
16
|
+
LookupGroup,
|
|
17
|
+
Lookup,
|
|
18
|
+
SystemParameter,
|
|
19
|
+
ApprivoSyncJourney,
|
|
20
|
+
Checklist,
|
|
21
|
+
DocumentType,
|
|
22
|
+
JobRun,
|
|
23
|
+
Alert
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
// Export entity classes
|
|
27
|
+
export * from './job-setting.entity';
|
|
28
|
+
export * from './lookup-group.entity';
|
|
29
|
+
export * from './lookup.entity';
|
|
30
|
+
export * from './system-parameter.entity';
|
|
31
|
+
export * from './apprivo-sync-journey.entity';
|
|
32
|
+
export * from './checklist.entity';
|
|
33
|
+
export * from './document-type.entity';
|
|
34
|
+
export * from './job-run.entity';
|
|
35
|
+
export * from './alert.entity';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class JobRunEntity {
|
|
2
|
+
id!: string;
|
|
3
|
+
jobName!: string;
|
|
4
|
+
status!: string;
|
|
5
|
+
startedAt!: Date;
|
|
6
|
+
completedAt?: Date;
|
|
7
|
+
createdAt!: Date;
|
|
8
|
+
updatedAt!: Date;
|
|
9
|
+
|
|
10
|
+
constructor(partial: Partial<JobRunEntity>) {
|
|
11
|
+
Object.assign(this, partial);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class JobSettingEntity {
|
|
2
|
+
id!: string;
|
|
3
|
+
jobName!: string;
|
|
4
|
+
isActive!: boolean;
|
|
5
|
+
frequency!: string;
|
|
6
|
+
jobParams!: any[];
|
|
7
|
+
createdAt!: Date;
|
|
8
|
+
updatedAt!: Date;
|
|
9
|
+
|
|
10
|
+
constructor(partial: Partial<JobSettingEntity>) {
|
|
11
|
+
Object.assign(this, partial);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LookupEntity } from './lookup.entity';
|
|
2
|
+
|
|
3
|
+
export class LookupGroupEntity {
|
|
4
|
+
id!: string;
|
|
5
|
+
name!: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
createdAt!: Date;
|
|
8
|
+
updatedAt!: Date;
|
|
9
|
+
|
|
10
|
+
// Relations
|
|
11
|
+
lookups?: LookupEntity[];
|
|
12
|
+
|
|
13
|
+
constructor(partial: Partial<LookupGroupEntity>) {
|
|
14
|
+
Object.assign(this, partial);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LookupGroupEntity } from './lookup-group.entity';
|
|
2
|
+
|
|
3
|
+
export class LookupEntity {
|
|
4
|
+
id!: string;
|
|
5
|
+
groupId!: string;
|
|
6
|
+
name!: string;
|
|
7
|
+
text!: string;
|
|
8
|
+
value!: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
createdAt!: Date;
|
|
11
|
+
updatedAt!: Date;
|
|
12
|
+
|
|
13
|
+
// Relations
|
|
14
|
+
group?: LookupGroupEntity;
|
|
15
|
+
|
|
16
|
+
constructor(partial: Partial<LookupEntity>) {
|
|
17
|
+
Object.assign(this, partial);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
export class SystemParameterEntity {
|
|
3
|
+
id!: string;
|
|
4
|
+
name!: string;
|
|
5
|
+
value!: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
createdAt!: Date;
|
|
8
|
+
updatedAt!: Date;
|
|
9
|
+
|
|
10
|
+
constructor(partial: Partial<SystemParameterEntity>) {
|
|
11
|
+
Object.assign(this, partial);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export class UnderwriterEntity {
|
|
2
|
+
id!: string;
|
|
3
|
+
status!: string;
|
|
4
|
+
decision?: string;
|
|
5
|
+
decisionDate?: Date;
|
|
6
|
+
decisionNotes?: string;
|
|
7
|
+
riskRating?: string;
|
|
8
|
+
riskNotes?: string;
|
|
9
|
+
underwriterId!: string;
|
|
10
|
+
assignedDate!: Date;
|
|
11
|
+
completedDate?: Date;
|
|
12
|
+
createdAt!: Date;
|
|
13
|
+
updatedAt!: Date;
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
constructor(partial: Partial<UnderwriterEntity>) {
|
|
17
|
+
Object.assign(this, partial);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class AuthLogEntity {
|
|
2
|
+
id!: string;
|
|
3
|
+
userEmail!: string;
|
|
4
|
+
loggedInTimestamp!: Date;
|
|
5
|
+
isSuccess!: boolean;
|
|
6
|
+
activity!: 'LOGIN' | 'LOGOUT' | 'PASSWORD_RESET';
|
|
7
|
+
createdAt!: Date;
|
|
8
|
+
updatedAt!: Date;
|
|
9
|
+
|
|
10
|
+
constructor(partial: Partial<AuthLogEntity>) {
|
|
11
|
+
Object.assign(this, partial);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
User,
|
|
3
|
+
AuthLog,
|
|
4
|
+
Permission,
|
|
5
|
+
RoleGroup,
|
|
6
|
+
Role
|
|
7
|
+
} from '@prisma/client';
|
|
8
|
+
|
|
9
|
+
// Export Prisma types
|
|
10
|
+
export type {
|
|
11
|
+
User,
|
|
12
|
+
AuthLog,
|
|
13
|
+
Permission,
|
|
14
|
+
RoleGroup,
|
|
15
|
+
Role
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// Export entity classes
|
|
19
|
+
export * from './user.entity';
|
|
20
|
+
export * from './auth-log.entity';
|
|
21
|
+
export * from './permission.entity';
|
|
22
|
+
export * from './role-group.entity';
|
|
23
|
+
export * from './role.entity';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RoleEntity } from './role.entity';
|
|
2
|
+
|
|
3
|
+
export class PermissionEntity {
|
|
4
|
+
id!: string;
|
|
5
|
+
name!: string;
|
|
6
|
+
controllerName!: string;
|
|
7
|
+
methodName!: string;
|
|
8
|
+
createdAt!: Date;
|
|
9
|
+
updatedAt!: Date;
|
|
10
|
+
|
|
11
|
+
// Relations
|
|
12
|
+
roles?: RoleEntity[];
|
|
13
|
+
|
|
14
|
+
constructor(partial: Partial<PermissionEntity>) {
|
|
15
|
+
Object.assign(this, partial);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RoleEntity } from './role.entity';
|
|
2
|
+
|
|
3
|
+
export class RoleGroupEntity {
|
|
4
|
+
id!: string;
|
|
5
|
+
groupId!: string;
|
|
6
|
+
name!: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
createdAt!: Date;
|
|
9
|
+
updatedAt!: Date;
|
|
10
|
+
|
|
11
|
+
// Relations
|
|
12
|
+
roles?: RoleEntity[];
|
|
13
|
+
|
|
14
|
+
constructor(partial: Partial<RoleGroupEntity>) {
|
|
15
|
+
Object.assign(this, partial);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PermissionEntity } from './permission.entity';
|
|
2
|
+
import { RoleGroupEntity } from './role-group.entity';
|
|
3
|
+
|
|
4
|
+
export class RoleEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
roleId!: string;
|
|
7
|
+
name!: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
createdAt!: Date;
|
|
10
|
+
updatedAt!: Date;
|
|
11
|
+
|
|
12
|
+
// Relations
|
|
13
|
+
permissions?: PermissionEntity[];
|
|
14
|
+
roleGroups?: RoleGroupEntity[];
|
|
15
|
+
|
|
16
|
+
constructor(partial: Partial<RoleEntity>) {
|
|
17
|
+
Object.assign(this, partial);
|
|
18
|
+
}
|
|
19
|
+
}
|