@dynamatix/gb-schemas 2.0.34 → 2.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/applicants/applicant-additional-income.model.d.ts +1094 -0
- package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-additional-income.model.js +33 -0
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts +508 -0
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-creditCard.model.js +34 -0
- package/dist/applicants/applicant-commitment-loan.model.d.ts +394 -0
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-loan.model.js +38 -0
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +472 -0
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-mortgage.model.js +69 -0
- package/dist/applicants/applicant-commitment-residence.model.d.ts +728 -0
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-residence.model.js +50 -0
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +368 -0
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-secureLoan.model.js +29 -0
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +362 -0
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +28 -0
- package/dist/applicants/applicant-credit-data.model.d.ts +32 -0
- package/dist/applicants/applicant-credit-data.model.d.ts.map +1 -0
- package/dist/applicants/applicant-credit-data.model.js +11 -0
- package/dist/applicants/applicant-credit-profile.model.d.ts +23 -0
- package/dist/applicants/applicant-credit-profile.model.d.ts.map +1 -0
- package/dist/applicants/applicant-credit-profile.model.js +20 -0
- package/dist/applicants/applicant-direct-debit.model.d.ts +61 -0
- package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -0
- package/dist/applicants/applicant-direct-debit.model.js +17 -0
- package/dist/applicants/applicant-employment-income.model.d.ts +175 -0
- package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-employment-income.model.js +9 -0
- package/dist/applicants/applicant-employment.model.d.ts +136 -0
- package/dist/applicants/applicant-employment.model.d.ts.map +1 -0
- package/dist/applicants/applicant-employment.model.js +50 -0
- package/dist/applicants/applicant-expenditure.model.d.ts +87 -0
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -0
- package/dist/applicants/applicant-expenditure.model.js +54 -0
- package/dist/applicants/applicant-income-source.model.d.ts +26 -0
- package/dist/applicants/applicant-income-source.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income-source.model.js +9 -0
- package/dist/applicants/applicant-income.model.d.ts +220 -0
- package/dist/applicants/applicant-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income.model.js +81 -0
- package/dist/applicants/applicant-pension-income.model.d.ts +457 -0
- package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-pension-income.model.js +14 -0
- package/dist/applicants/applicant-property-income.model.d.ts +907 -0
- package/dist/applicants/applicant-property-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-property-income.model.js +23 -0
- package/dist/applicants/applicant-risk-narrative.model.d.ts +38 -0
- package/dist/applicants/applicant-risk-narrative.model.d.ts.map +1 -0
- package/dist/applicants/applicant-risk-narrative.model.js +13 -0
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts +463 -0
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -0
- package/dist/applicants/applicant-uk-tax-credits.model.js +11 -0
- package/dist/applicants/applicant.model.d.ts +134 -0
- package/dist/applicants/applicant.model.d.ts.map +1 -0
- package/dist/applicants/applicant.model.js +223 -0
- package/dist/applicants/index.d.ts +14 -0
- package/dist/applicants/index.d.ts.map +1 -0
- package/dist/applicants/index.js +13 -0
- package/dist/applications/application-audit.model.d.ts +92 -0
- package/dist/applications/application-audit.model.d.ts.map +1 -0
- package/dist/applications/application-audit.model.js +42 -0
- package/dist/applications/application-checklist-Item.model.d.ts +258 -0
- package/dist/applications/application-checklist-Item.model.d.ts.map +1 -0
- package/dist/applications/application-checklist-Item.model.js +45 -0
- package/dist/applications/application-company-model.d.ts +1484 -0
- package/dist/applications/application-company-model.d.ts.map +1 -0
- package/dist/applications/application-company-model.js +120 -0
- package/dist/applications/application-credit-profile.model.d.ts +35 -0
- package/dist/applications/application-credit-profile.model.d.ts.map +1 -0
- package/dist/applications/application-credit-profile.model.js +12 -0
- package/dist/applications/application-direct-debit.model.d.ts +545 -0
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -0
- package/dist/applications/application-direct-debit.model.js +92 -0
- package/dist/applications/application-document.model.d.ts +158 -0
- package/dist/applications/application-document.model.d.ts.map +1 -0
- package/dist/applications/application-document.model.js +35 -0
- package/dist/applications/application-fieldconfig.model.d.ts +30 -0
- package/dist/applications/application-fieldconfig.model.d.ts.map +1 -0
- package/dist/applications/application-fieldconfig.model.js +7 -0
- package/dist/applications/application-illustration-model.d.ts +24 -0
- package/dist/applications/application-illustration-model.d.ts.map +1 -0
- package/dist/applications/application-illustration-model.js +6 -0
- package/dist/applications/application-legal.model.d.ts +30 -0
- package/dist/applications/application-legal.model.d.ts.map +1 -0
- package/dist/applications/application-legal.model.js +7 -0
- package/dist/applications/application-mortgage.model.d.ts +1203 -0
- package/dist/applications/application-mortgage.model.d.ts.map +1 -0
- package/dist/applications/application-mortgage.model.js +271 -0
- package/dist/applications/application-note.model.d.ts +144 -0
- package/dist/applications/application-note.model.d.ts.map +1 -0
- package/dist/applications/application-note.model.js +78 -0
- package/dist/applications/application-offer.model.d.ts +24 -0
- package/dist/applications/application-offer.model.d.ts.map +1 -0
- package/dist/applications/application-offer.model.js +6 -0
- package/dist/applications/application-onboarding.model.d.ts +42 -0
- package/dist/applications/application-onboarding.model.d.ts.map +1 -0
- package/dist/applications/application-onboarding.model.js +9 -0
- package/dist/applications/application-product.model.d.ts +120 -0
- package/dist/applications/application-product.model.d.ts.map +1 -0
- package/dist/applications/application-product.model.js +67 -0
- package/dist/applications/application-productfeatures.model.d.ts +738 -0
- package/dist/applications/application-productfeatures.model.d.ts.map +1 -0
- package/dist/applications/application-productfeatures.model.js +96 -0
- package/dist/applications/application-rationale.model.d.ts +216 -0
- package/dist/applications/application-rationale.model.d.ts.map +1 -0
- package/dist/applications/application-rationale.model.js +38 -0
- package/dist/applications/application-risk-narrative.model.d.ts +60 -0
- package/dist/applications/application-risk-narrative.model.d.ts.map +1 -0
- package/dist/applications/application-risk-narrative.model.js +12 -0
- package/dist/applications/application-valuation.model.d.ts +44 -0
- package/dist/applications/application-valuation.model.d.ts.map +1 -0
- package/dist/applications/application-valuation.model.js +15 -0
- package/dist/applications/application.model.d.ts +428 -0
- package/dist/applications/application.model.d.ts.map +1 -0
- package/dist/applications/application.model.js +153 -0
- package/dist/applications/broker.model.d.ts +134 -0
- package/dist/applications/broker.model.d.ts.map +1 -0
- package/dist/applications/broker.model.js +21 -0
- package/dist/applications/document.model.d.ts +158 -0
- package/dist/applications/document.model.d.ts.map +1 -0
- package/dist/applications/document.model.js +35 -0
- package/dist/applications/index.d.ts +21 -0
- package/dist/applications/index.d.ts.map +1 -0
- package/dist/applications/index.js +20 -0
- package/dist/applications/solicitor.model.d.ts +177 -0
- package/dist/applications/solicitor.model.d.ts.map +1 -0
- package/dist/applications/solicitor.model.js +114 -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.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 +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/index.d.ts +19 -0
- package/dist/entities/applicants/index.d.ts.map +1 -0
- package/dist/entities/applicants/index.js +17 -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/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/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-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 +103 -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/index.d.ts +23 -0
- package/dist/entities/applications/index.d.ts.map +1 -0
- package/dist/entities/applications/index.js +21 -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 +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 +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 +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/product-catalogues/index.d.ts +4 -0
- package/dist/product-catalogues/index.d.ts.map +1 -0
- package/dist/product-catalogues/index.js +3 -0
- package/dist/product-catalogues/product-catalogue.model.d.ts +104 -0
- package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -0
- package/dist/product-catalogues/product-catalogue.model.js +18 -0
- package/dist/product-catalogues/product-definitions.model.d.ts +290 -0
- package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -0
- package/dist/product-catalogues/product-definitions.model.js +26 -0
- package/dist/product-catalogues/product-variant.model.d.ts +68 -0
- package/dist/product-catalogues/product-variant.model.d.ts.map +1 -0
- package/dist/product-catalogues/product-variant.model.js +12 -0
- package/dist/properties/index.d.ts +3 -0
- package/dist/properties/index.d.ts.map +1 -0
- package/dist/properties/index.js +2 -0
- package/dist/properties/property.model.d.ts +1131 -0
- package/dist/properties/property.model.d.ts.map +1 -0
- package/dist/properties/property.model.js +144 -0
- package/dist/properties/security.model.d.ts +285 -0
- package/dist/properties/security.model.d.ts.map +1 -0
- package/dist/properties/security.model.js +143 -0
- package/dist/shared/alert.model.d.ts +74 -0
- package/dist/shared/alert.model.d.ts.map +1 -0
- package/dist/shared/alert.model.js +24 -0
- package/dist/shared/apprivo-sync-journey.model.d.ts +86 -0
- package/dist/shared/apprivo-sync-journey.model.d.ts.map +1 -0
- package/dist/shared/apprivo-sync-journey.model.js +17 -0
- package/dist/shared/checklist.model.d.ts +74 -0
- package/dist/shared/checklist.model.d.ts.map +1 -0
- package/dist/shared/checklist.model.js +30 -0
- package/dist/shared/document-type-model.d.ts +48 -0
- package/dist/shared/document-type-model.d.ts.map +1 -0
- package/dist/shared/document-type-model.js +10 -0
- package/dist/shared/index.d.ts +13 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +12 -0
- package/dist/shared/job-run.model.d.ts +48 -0
- package/dist/shared/job-run.model.d.ts.map +1 -0
- package/dist/shared/job-run.model.js +14 -0
- package/dist/shared/job-setting.model.d.ts +42 -0
- package/dist/shared/job-setting.model.d.ts.map +1 -0
- package/dist/shared/job-setting.model.js +11 -0
- package/dist/shared/lookup-group.model.d.ts +30 -0
- package/dist/shared/lookup-group.model.d.ts.map +1 -0
- package/dist/shared/lookup-group.model.js +16 -0
- package/dist/shared/lookup.model.d.ts +42 -0
- package/dist/shared/lookup.model.d.ts.map +1 -0
- package/dist/shared/lookup.model.js +20 -0
- package/dist/shared/schema-doc.model.d.ts +48 -0
- package/dist/shared/schema-doc.model.d.ts.map +1 -0
- package/dist/shared/schema-doc.model.js +11 -0
- package/dist/shared/system-parameter.model.d.ts +60 -0
- package/dist/shared/system-parameter.model.d.ts.map +1 -0
- package/dist/shared/system-parameter.model.js +32 -0
- package/dist/shared/task-document.model.d.ts +42 -0
- package/dist/shared/task-document.model.d.ts.map +1 -0
- package/dist/shared/task-document.model.js +23 -0
- package/dist/shared/task.model.d.ts +206 -0
- package/dist/shared/task.model.d.ts.map +1 -0
- package/dist/shared/task.model.js +15 -0
- package/dist/underwriter/index.d.ts +2 -0
- package/dist/underwriter/index.d.ts.map +1 -0
- package/dist/underwriter/index.js +1 -0
- package/dist/underwriter/underwriter.model.d.ts +98 -0
- package/dist/underwriter/underwriter.model.d.ts.map +1 -0
- package/dist/underwriter/underwriter.model.js +17 -0
- package/dist/users/auth-log.model.d.ts +42 -0
- package/dist/users/auth-log.model.d.ts.map +1 -0
- package/dist/users/auth-log.model.js +21 -0
- package/dist/users/index.d.ts +7 -0
- package/dist/users/index.d.ts.map +1 -0
- package/dist/users/index.js +6 -0
- package/dist/users/permission.model.d.ts +56 -0
- package/dist/users/permission.model.d.ts.map +1 -0
- package/dist/users/permission.model.js +10 -0
- package/dist/users/role-group.model.d.ts +62 -0
- package/dist/users/role-group.model.d.ts.map +1 -0
- package/dist/users/role-group.model.js +14 -0
- package/dist/users/role.model.d.ts +62 -0
- package/dist/users/role.model.d.ts.map +1 -0
- package/dist/users/role.model.js +13 -0
- package/dist/users/tasks.model.d.ts +86 -0
- package/dist/users/tasks.model.d.ts.map +1 -0
- package/dist/users/tasks.model.js +15 -0
- package/dist/users/user.model.d.ts +188 -0
- package/dist/users/user.model.d.ts.map +1 -0
- package/dist/users/user.model.js +30 -0
- package/dist/value-objects/pound.d.ts +15 -0
- package/dist/value-objects/pound.d.ts.map +1 -0
- package/dist/value-objects/pound.js +26 -0
- package/dist/value-objects/sort-code.d.ts +15 -0
- package/dist/value-objects/sort-code.d.ts.map +1 -0
- package/dist/value-objects/sort-code.js +25 -0
- package/entities/applications/application-mortgage.entity.ts +1 -1
- package/package.json +1 -1
- package/prisma/applications/application-mortgage.prisma +2 -2
- package/prisma/migrations/20250512071728_update_mortgage_schema/migration.sql +15 -15
- package/prisma/migrations/20250512094011_update_property_schema/migration.sql +34 -34
- package/prisma/migrations/20250512102019_update_mortgage_schema/migration.sql +2 -0
- package/prisma/schema.prisma +2 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
const permissionSchema = new mongoose.Schema({
|
|
3
|
+
name: { type: String, required: true },
|
|
4
|
+
controllerName: { type: String, required: true },
|
|
5
|
+
methodName: { type: String, required: true }
|
|
6
|
+
}, {
|
|
7
|
+
timestamps: true
|
|
8
|
+
});
|
|
9
|
+
const PermissionModel = mongoose.model('Permission', permissionSchema);
|
|
10
|
+
export default PermissionModel;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const RoleGroupModel: mongoose.Model<{
|
|
3
|
+
createdAt: NativeDate;
|
|
4
|
+
updatedAt: NativeDate;
|
|
5
|
+
} & {
|
|
6
|
+
name: string;
|
|
7
|
+
groupId: string;
|
|
8
|
+
roles: mongoose.Types.ObjectId[];
|
|
9
|
+
description?: string | null | undefined;
|
|
10
|
+
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
11
|
+
createdAt: NativeDate;
|
|
12
|
+
updatedAt: NativeDate;
|
|
13
|
+
} & {
|
|
14
|
+
name: string;
|
|
15
|
+
groupId: string;
|
|
16
|
+
roles: mongoose.Types.ObjectId[];
|
|
17
|
+
description?: string | null | undefined;
|
|
18
|
+
}> & {
|
|
19
|
+
createdAt: NativeDate;
|
|
20
|
+
updatedAt: NativeDate;
|
|
21
|
+
} & {
|
|
22
|
+
name: string;
|
|
23
|
+
groupId: string;
|
|
24
|
+
roles: mongoose.Types.ObjectId[];
|
|
25
|
+
description?: string | null | undefined;
|
|
26
|
+
} & {
|
|
27
|
+
_id: mongoose.Types.ObjectId;
|
|
28
|
+
} & {
|
|
29
|
+
__v: number;
|
|
30
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
31
|
+
timestamps: true;
|
|
32
|
+
}, {
|
|
33
|
+
createdAt: NativeDate;
|
|
34
|
+
updatedAt: NativeDate;
|
|
35
|
+
} & {
|
|
36
|
+
name: string;
|
|
37
|
+
groupId: string;
|
|
38
|
+
roles: mongoose.Types.ObjectId[];
|
|
39
|
+
description?: string | null | undefined;
|
|
40
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
41
|
+
createdAt: NativeDate;
|
|
42
|
+
updatedAt: NativeDate;
|
|
43
|
+
} & {
|
|
44
|
+
name: string;
|
|
45
|
+
groupId: string;
|
|
46
|
+
roles: mongoose.Types.ObjectId[];
|
|
47
|
+
description?: string | null | undefined;
|
|
48
|
+
}>> & mongoose.FlatRecord<{
|
|
49
|
+
createdAt: NativeDate;
|
|
50
|
+
updatedAt: NativeDate;
|
|
51
|
+
} & {
|
|
52
|
+
name: string;
|
|
53
|
+
groupId: string;
|
|
54
|
+
roles: mongoose.Types.ObjectId[];
|
|
55
|
+
description?: string | null | undefined;
|
|
56
|
+
}> & {
|
|
57
|
+
_id: mongoose.Types.ObjectId;
|
|
58
|
+
} & {
|
|
59
|
+
__v: number;
|
|
60
|
+
}>>;
|
|
61
|
+
export default RoleGroupModel;
|
|
62
|
+
//# sourceMappingURL=role-group.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-group.model.d.ts","sourceRoot":"","sources":["../../users/role-group.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAehC,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA+C,CAAC;AACpE,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
const RoleGroupSchema = new mongoose.Schema({
|
|
3
|
+
groupId: { type: String, required: true },
|
|
4
|
+
name: { type: String, required: true },
|
|
5
|
+
description: { type: String },
|
|
6
|
+
roles: [{
|
|
7
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
8
|
+
ref: 'Role'
|
|
9
|
+
}]
|
|
10
|
+
}, {
|
|
11
|
+
timestamps: true
|
|
12
|
+
});
|
|
13
|
+
const RoleGroupModel = mongoose.model('RoleGroup', RoleGroupSchema);
|
|
14
|
+
export default RoleGroupModel;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const RoleModel: mongoose.Model<{
|
|
3
|
+
createdAt: NativeDate;
|
|
4
|
+
updatedAt: NativeDate;
|
|
5
|
+
} & {
|
|
6
|
+
name: string;
|
|
7
|
+
roleId: string;
|
|
8
|
+
permissions: mongoose.Types.ObjectId[];
|
|
9
|
+
description?: string | null | undefined;
|
|
10
|
+
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
11
|
+
createdAt: NativeDate;
|
|
12
|
+
updatedAt: NativeDate;
|
|
13
|
+
} & {
|
|
14
|
+
name: string;
|
|
15
|
+
roleId: string;
|
|
16
|
+
permissions: mongoose.Types.ObjectId[];
|
|
17
|
+
description?: string | null | undefined;
|
|
18
|
+
}> & {
|
|
19
|
+
createdAt: NativeDate;
|
|
20
|
+
updatedAt: NativeDate;
|
|
21
|
+
} & {
|
|
22
|
+
name: string;
|
|
23
|
+
roleId: string;
|
|
24
|
+
permissions: mongoose.Types.ObjectId[];
|
|
25
|
+
description?: string | null | undefined;
|
|
26
|
+
} & {
|
|
27
|
+
_id: mongoose.Types.ObjectId;
|
|
28
|
+
} & {
|
|
29
|
+
__v: number;
|
|
30
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
31
|
+
timestamps: true;
|
|
32
|
+
}, {
|
|
33
|
+
createdAt: NativeDate;
|
|
34
|
+
updatedAt: NativeDate;
|
|
35
|
+
} & {
|
|
36
|
+
name: string;
|
|
37
|
+
roleId: string;
|
|
38
|
+
permissions: mongoose.Types.ObjectId[];
|
|
39
|
+
description?: string | null | undefined;
|
|
40
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
41
|
+
createdAt: NativeDate;
|
|
42
|
+
updatedAt: NativeDate;
|
|
43
|
+
} & {
|
|
44
|
+
name: string;
|
|
45
|
+
roleId: string;
|
|
46
|
+
permissions: mongoose.Types.ObjectId[];
|
|
47
|
+
description?: string | null | undefined;
|
|
48
|
+
}>> & mongoose.FlatRecord<{
|
|
49
|
+
createdAt: NativeDate;
|
|
50
|
+
updatedAt: NativeDate;
|
|
51
|
+
} & {
|
|
52
|
+
name: string;
|
|
53
|
+
roleId: string;
|
|
54
|
+
permissions: mongoose.Types.ObjectId[];
|
|
55
|
+
description?: string | null | undefined;
|
|
56
|
+
}> & {
|
|
57
|
+
_id: mongoose.Types.ObjectId;
|
|
58
|
+
} & {
|
|
59
|
+
__v: number;
|
|
60
|
+
}>>;
|
|
61
|
+
export default RoleModel;
|
|
62
|
+
//# sourceMappingURL=role.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.model.d.ts","sourceRoot":"","sources":["../../users/role.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAchC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqC,CAAC;AAErD,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
const RoleSchema = new mongoose.Schema({
|
|
3
|
+
roleId: { type: String, required: true },
|
|
4
|
+
name: { type: String, required: true },
|
|
5
|
+
description: { type: String },
|
|
6
|
+
permissions: [{
|
|
7
|
+
type: mongoose.Schema.Types.ObjectId, ref: 'Permission'
|
|
8
|
+
}]
|
|
9
|
+
}, {
|
|
10
|
+
timestamps: true
|
|
11
|
+
});
|
|
12
|
+
const RoleModel = mongoose.model('Role', RoleSchema);
|
|
13
|
+
export default RoleModel;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const TasksModel: mongoose.Model<{
|
|
3
|
+
createdAt: NativeDate;
|
|
4
|
+
updatedAt: NativeDate;
|
|
5
|
+
} & {
|
|
6
|
+
createdByUserId: mongoose.Types.ObjectId;
|
|
7
|
+
statusLid: mongoose.Types.ObjectId;
|
|
8
|
+
assignedToUserId: mongoose.Types.ObjectId;
|
|
9
|
+
taskTypeLid: mongoose.Types.ObjectId;
|
|
10
|
+
actionTypeLid: mongoose.Types.ObjectId;
|
|
11
|
+
entityId: mongoose.Types.ObjectId;
|
|
12
|
+
priorityLid: mongoose.Types.ObjectId;
|
|
13
|
+
expiryDate: NativeDate;
|
|
14
|
+
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
15
|
+
createdAt: NativeDate;
|
|
16
|
+
updatedAt: NativeDate;
|
|
17
|
+
} & {
|
|
18
|
+
createdByUserId: mongoose.Types.ObjectId;
|
|
19
|
+
statusLid: mongoose.Types.ObjectId;
|
|
20
|
+
assignedToUserId: mongoose.Types.ObjectId;
|
|
21
|
+
taskTypeLid: mongoose.Types.ObjectId;
|
|
22
|
+
actionTypeLid: mongoose.Types.ObjectId;
|
|
23
|
+
entityId: mongoose.Types.ObjectId;
|
|
24
|
+
priorityLid: mongoose.Types.ObjectId;
|
|
25
|
+
expiryDate: NativeDate;
|
|
26
|
+
}> & {
|
|
27
|
+
createdAt: NativeDate;
|
|
28
|
+
updatedAt: NativeDate;
|
|
29
|
+
} & {
|
|
30
|
+
createdByUserId: mongoose.Types.ObjectId;
|
|
31
|
+
statusLid: mongoose.Types.ObjectId;
|
|
32
|
+
assignedToUserId: mongoose.Types.ObjectId;
|
|
33
|
+
taskTypeLid: mongoose.Types.ObjectId;
|
|
34
|
+
actionTypeLid: mongoose.Types.ObjectId;
|
|
35
|
+
entityId: mongoose.Types.ObjectId;
|
|
36
|
+
priorityLid: mongoose.Types.ObjectId;
|
|
37
|
+
expiryDate: NativeDate;
|
|
38
|
+
} & {
|
|
39
|
+
_id: mongoose.Types.ObjectId;
|
|
40
|
+
} & {
|
|
41
|
+
__v: number;
|
|
42
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
43
|
+
timestamps: true;
|
|
44
|
+
}, {
|
|
45
|
+
createdAt: NativeDate;
|
|
46
|
+
updatedAt: NativeDate;
|
|
47
|
+
} & {
|
|
48
|
+
createdByUserId: mongoose.Types.ObjectId;
|
|
49
|
+
statusLid: mongoose.Types.ObjectId;
|
|
50
|
+
assignedToUserId: mongoose.Types.ObjectId;
|
|
51
|
+
taskTypeLid: mongoose.Types.ObjectId;
|
|
52
|
+
actionTypeLid: mongoose.Types.ObjectId;
|
|
53
|
+
entityId: mongoose.Types.ObjectId;
|
|
54
|
+
priorityLid: mongoose.Types.ObjectId;
|
|
55
|
+
expiryDate: NativeDate;
|
|
56
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
57
|
+
createdAt: NativeDate;
|
|
58
|
+
updatedAt: NativeDate;
|
|
59
|
+
} & {
|
|
60
|
+
createdByUserId: mongoose.Types.ObjectId;
|
|
61
|
+
statusLid: mongoose.Types.ObjectId;
|
|
62
|
+
assignedToUserId: mongoose.Types.ObjectId;
|
|
63
|
+
taskTypeLid: mongoose.Types.ObjectId;
|
|
64
|
+
actionTypeLid: mongoose.Types.ObjectId;
|
|
65
|
+
entityId: mongoose.Types.ObjectId;
|
|
66
|
+
priorityLid: mongoose.Types.ObjectId;
|
|
67
|
+
expiryDate: NativeDate;
|
|
68
|
+
}>> & mongoose.FlatRecord<{
|
|
69
|
+
createdAt: NativeDate;
|
|
70
|
+
updatedAt: NativeDate;
|
|
71
|
+
} & {
|
|
72
|
+
createdByUserId: mongoose.Types.ObjectId;
|
|
73
|
+
statusLid: mongoose.Types.ObjectId;
|
|
74
|
+
assignedToUserId: mongoose.Types.ObjectId;
|
|
75
|
+
taskTypeLid: mongoose.Types.ObjectId;
|
|
76
|
+
actionTypeLid: mongoose.Types.ObjectId;
|
|
77
|
+
entityId: mongoose.Types.ObjectId;
|
|
78
|
+
priorityLid: mongoose.Types.ObjectId;
|
|
79
|
+
expiryDate: NativeDate;
|
|
80
|
+
}> & {
|
|
81
|
+
_id: mongoose.Types.ObjectId;
|
|
82
|
+
} & {
|
|
83
|
+
__v: number;
|
|
84
|
+
}>>;
|
|
85
|
+
export default TasksModel;
|
|
86
|
+
//# sourceMappingURL=tasks.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks.model.d.ts","sourceRoot":"","sources":["../../users/tasks.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAgBhC,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuC,CAAC;AAExD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
const TasksSchema = new mongoose.Schema({
|
|
3
|
+
taskTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null }, // LookupGroup: TaskType ["Document", "Information"]
|
|
4
|
+
actionTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null }, // Example: "Request Document Delete"
|
|
5
|
+
entityId: { type: mongoose.Schema.Types.ObjectId, required: true }, // Could be documentId, applicationId, applicantId
|
|
6
|
+
createdByUserId: { ref: "User", type: mongoose.Schema.Types.ObjectId, required: true },
|
|
7
|
+
assignedToUserId: { ref: "User", type: mongoose.Schema.Types.ObjectId, required: true },
|
|
8
|
+
statusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null }, // LookupGroup: TaskStatus ["Requested", "Completed", "Cancelled"]
|
|
9
|
+
priorityLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null }, // LookupGroup: TaskPriority ["High", "Medium", "Low"]
|
|
10
|
+
expiryDate: { type: Date, required: true },
|
|
11
|
+
}, {
|
|
12
|
+
timestamps: true
|
|
13
|
+
});
|
|
14
|
+
const TasksModel = mongoose.model("Tasks", TasksSchema);
|
|
15
|
+
export default TasksModel;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const UserModel: mongoose.Model<{
|
|
3
|
+
createdAt: NativeDate;
|
|
4
|
+
updatedAt: NativeDate;
|
|
5
|
+
} & {
|
|
6
|
+
accountId: string;
|
|
7
|
+
fullName: string;
|
|
8
|
+
status: string;
|
|
9
|
+
email: string;
|
|
10
|
+
password: string;
|
|
11
|
+
groups: mongoose.Types.ObjectId[];
|
|
12
|
+
claims: mongoose.Types.DocumentArray<{
|
|
13
|
+
value: string;
|
|
14
|
+
key: string;
|
|
15
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
16
|
+
value: string;
|
|
17
|
+
key: string;
|
|
18
|
+
}> & {
|
|
19
|
+
value: string;
|
|
20
|
+
key: string;
|
|
21
|
+
}>;
|
|
22
|
+
organisationId?: any;
|
|
23
|
+
externalData?: any;
|
|
24
|
+
modifiedOn?: string | null | undefined;
|
|
25
|
+
modifiedById?: string | null | undefined;
|
|
26
|
+
createdOnInApprivo?: string | null | undefined;
|
|
27
|
+
createdById?: string | null | undefined;
|
|
28
|
+
deletedOn?: string | null | undefined;
|
|
29
|
+
deletedById?: string | null | undefined;
|
|
30
|
+
token?: string | null | undefined;
|
|
31
|
+
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
32
|
+
createdAt: NativeDate;
|
|
33
|
+
updatedAt: NativeDate;
|
|
34
|
+
} & {
|
|
35
|
+
accountId: string;
|
|
36
|
+
fullName: string;
|
|
37
|
+
status: string;
|
|
38
|
+
email: string;
|
|
39
|
+
password: string;
|
|
40
|
+
groups: mongoose.Types.ObjectId[];
|
|
41
|
+
claims: mongoose.Types.DocumentArray<{
|
|
42
|
+
value: string;
|
|
43
|
+
key: string;
|
|
44
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
45
|
+
value: string;
|
|
46
|
+
key: string;
|
|
47
|
+
}> & {
|
|
48
|
+
value: string;
|
|
49
|
+
key: string;
|
|
50
|
+
}>;
|
|
51
|
+
organisationId?: any;
|
|
52
|
+
externalData?: any;
|
|
53
|
+
modifiedOn?: string | null | undefined;
|
|
54
|
+
modifiedById?: string | null | undefined;
|
|
55
|
+
createdOnInApprivo?: string | null | undefined;
|
|
56
|
+
createdById?: string | null | undefined;
|
|
57
|
+
deletedOn?: string | null | undefined;
|
|
58
|
+
deletedById?: string | null | undefined;
|
|
59
|
+
token?: string | null | undefined;
|
|
60
|
+
}> & {
|
|
61
|
+
createdAt: NativeDate;
|
|
62
|
+
updatedAt: NativeDate;
|
|
63
|
+
} & {
|
|
64
|
+
accountId: string;
|
|
65
|
+
fullName: string;
|
|
66
|
+
status: string;
|
|
67
|
+
email: string;
|
|
68
|
+
password: string;
|
|
69
|
+
groups: mongoose.Types.ObjectId[];
|
|
70
|
+
claims: mongoose.Types.DocumentArray<{
|
|
71
|
+
value: string;
|
|
72
|
+
key: string;
|
|
73
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
74
|
+
value: string;
|
|
75
|
+
key: string;
|
|
76
|
+
}> & {
|
|
77
|
+
value: string;
|
|
78
|
+
key: string;
|
|
79
|
+
}>;
|
|
80
|
+
organisationId?: any;
|
|
81
|
+
externalData?: any;
|
|
82
|
+
modifiedOn?: string | null | undefined;
|
|
83
|
+
modifiedById?: string | null | undefined;
|
|
84
|
+
createdOnInApprivo?: string | null | undefined;
|
|
85
|
+
createdById?: string | null | undefined;
|
|
86
|
+
deletedOn?: string | null | undefined;
|
|
87
|
+
deletedById?: string | null | undefined;
|
|
88
|
+
token?: string | null | undefined;
|
|
89
|
+
} & {
|
|
90
|
+
_id: mongoose.Types.ObjectId;
|
|
91
|
+
} & {
|
|
92
|
+
__v: number;
|
|
93
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
94
|
+
timestamps: true;
|
|
95
|
+
}, {
|
|
96
|
+
createdAt: NativeDate;
|
|
97
|
+
updatedAt: NativeDate;
|
|
98
|
+
} & {
|
|
99
|
+
accountId: string;
|
|
100
|
+
fullName: string;
|
|
101
|
+
status: string;
|
|
102
|
+
email: string;
|
|
103
|
+
password: string;
|
|
104
|
+
groups: mongoose.Types.ObjectId[];
|
|
105
|
+
claims: mongoose.Types.DocumentArray<{
|
|
106
|
+
value: string;
|
|
107
|
+
key: string;
|
|
108
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
109
|
+
value: string;
|
|
110
|
+
key: string;
|
|
111
|
+
}> & {
|
|
112
|
+
value: string;
|
|
113
|
+
key: string;
|
|
114
|
+
}>;
|
|
115
|
+
organisationId?: any;
|
|
116
|
+
externalData?: any;
|
|
117
|
+
modifiedOn?: string | null | undefined;
|
|
118
|
+
modifiedById?: string | null | undefined;
|
|
119
|
+
createdOnInApprivo?: string | null | undefined;
|
|
120
|
+
createdById?: string | null | undefined;
|
|
121
|
+
deletedOn?: string | null | undefined;
|
|
122
|
+
deletedById?: string | null | undefined;
|
|
123
|
+
token?: string | null | undefined;
|
|
124
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
125
|
+
createdAt: NativeDate;
|
|
126
|
+
updatedAt: NativeDate;
|
|
127
|
+
} & {
|
|
128
|
+
accountId: string;
|
|
129
|
+
fullName: string;
|
|
130
|
+
status: string;
|
|
131
|
+
email: string;
|
|
132
|
+
password: string;
|
|
133
|
+
groups: mongoose.Types.ObjectId[];
|
|
134
|
+
claims: mongoose.Types.DocumentArray<{
|
|
135
|
+
value: string;
|
|
136
|
+
key: string;
|
|
137
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
138
|
+
value: string;
|
|
139
|
+
key: string;
|
|
140
|
+
}> & {
|
|
141
|
+
value: string;
|
|
142
|
+
key: string;
|
|
143
|
+
}>;
|
|
144
|
+
organisationId?: any;
|
|
145
|
+
externalData?: any;
|
|
146
|
+
modifiedOn?: string | null | undefined;
|
|
147
|
+
modifiedById?: string | null | undefined;
|
|
148
|
+
createdOnInApprivo?: string | null | undefined;
|
|
149
|
+
createdById?: string | null | undefined;
|
|
150
|
+
deletedOn?: string | null | undefined;
|
|
151
|
+
deletedById?: string | null | undefined;
|
|
152
|
+
token?: string | null | undefined;
|
|
153
|
+
}>> & mongoose.FlatRecord<{
|
|
154
|
+
createdAt: NativeDate;
|
|
155
|
+
updatedAt: NativeDate;
|
|
156
|
+
} & {
|
|
157
|
+
accountId: string;
|
|
158
|
+
fullName: string;
|
|
159
|
+
status: string;
|
|
160
|
+
email: string;
|
|
161
|
+
password: string;
|
|
162
|
+
groups: mongoose.Types.ObjectId[];
|
|
163
|
+
claims: mongoose.Types.DocumentArray<{
|
|
164
|
+
value: string;
|
|
165
|
+
key: string;
|
|
166
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
167
|
+
value: string;
|
|
168
|
+
key: string;
|
|
169
|
+
}> & {
|
|
170
|
+
value: string;
|
|
171
|
+
key: string;
|
|
172
|
+
}>;
|
|
173
|
+
organisationId?: any;
|
|
174
|
+
externalData?: any;
|
|
175
|
+
modifiedOn?: string | null | undefined;
|
|
176
|
+
modifiedById?: string | null | undefined;
|
|
177
|
+
createdOnInApprivo?: string | null | undefined;
|
|
178
|
+
createdById?: string | null | undefined;
|
|
179
|
+
deletedOn?: string | null | undefined;
|
|
180
|
+
deletedById?: string | null | undefined;
|
|
181
|
+
token?: string | null | undefined;
|
|
182
|
+
}> & {
|
|
183
|
+
_id: mongoose.Types.ObjectId;
|
|
184
|
+
} & {
|
|
185
|
+
__v: number;
|
|
186
|
+
}>>;
|
|
187
|
+
export default UserModel;
|
|
188
|
+
//# sourceMappingURL=user.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.model.d.ts","sourceRoot":"","sources":["../../users/user.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAgChC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqC,CAAC;AAErD,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
const ClaimSchema = new mongoose.Schema({
|
|
3
|
+
key: { type: String, required: true },
|
|
4
|
+
value: { type: String, required: true }
|
|
5
|
+
});
|
|
6
|
+
const userSchema = new mongoose.Schema({
|
|
7
|
+
accountId: { type: String, required: true },
|
|
8
|
+
email: { type: String, required: true },
|
|
9
|
+
fullName: { type: String, required: true },
|
|
10
|
+
password: { type: String, required: true },
|
|
11
|
+
organisationId: { type: mongoose.Schema.Types.Mixed },
|
|
12
|
+
status: { type: String, required: true },
|
|
13
|
+
groups: [{
|
|
14
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
15
|
+
ref: 'RoleGroup'
|
|
16
|
+
}],
|
|
17
|
+
claims: [ClaimSchema],
|
|
18
|
+
externalData: { type: mongoose.Schema.Types.Mixed },
|
|
19
|
+
modifiedOn: { type: String },
|
|
20
|
+
modifiedById: { type: String },
|
|
21
|
+
createdOnInApprivo: { type: String },
|
|
22
|
+
createdById: { type: String },
|
|
23
|
+
deletedOn: { type: String },
|
|
24
|
+
deletedById: { type: String },
|
|
25
|
+
token: { type: String }
|
|
26
|
+
}, {
|
|
27
|
+
timestamps: true
|
|
28
|
+
});
|
|
29
|
+
const UserModel = mongoose.model('User', userSchema);
|
|
30
|
+
export default UserModel;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
declare module 'mongoose' {
|
|
3
|
+
namespace Schema {
|
|
4
|
+
namespace Types {
|
|
5
|
+
class Pound extends SchemaType {
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
declare class Pound extends mongoose.SchemaType {
|
|
11
|
+
constructor(key: string, options: mongoose.AnyObject | undefined);
|
|
12
|
+
cast(val: any): any;
|
|
13
|
+
}
|
|
14
|
+
export { Pound };
|
|
15
|
+
//# sourceMappingURL=pound.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pound.d.ts","sourceRoot":"","sources":["../../value-objects/pound.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,OAAO,QAAQ,UAAU,CAAC;IACtB,UAAU,MAAM,CAAC;QACb,UAAU,KAAK,CAAC;YACZ,MAAM,KAAM,SAAQ,UAAU;aAAI;SACrC;KACJ;CACJ;AAED,cAAM,KAAM,SAAQ,QAAQ,CAAC,UAAU;gBACvB,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,SAAS,GAAG,SAAS;IAKhE,IAAI,CAAC,GAAG,EAAE,GAAG;CA4BhB;AAKD,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// pound.ts
|
|
2
|
+
import mongoose from 'mongoose';
|
|
3
|
+
class Pound extends mongoose.SchemaType {
|
|
4
|
+
constructor(key, options) {
|
|
5
|
+
super(key, options, 'Pound');
|
|
6
|
+
}
|
|
7
|
+
// Casting method that validates and formats the value
|
|
8
|
+
cast(val) {
|
|
9
|
+
if (val == null) {
|
|
10
|
+
return val; // Allow null or undefined values
|
|
11
|
+
}
|
|
12
|
+
// Ensure the value is a string
|
|
13
|
+
if (typeof val !== 'number') {
|
|
14
|
+
throw new mongoose.Error.CastError('Pound', val, this.path, new Error('Pound value must be a string or number'));
|
|
15
|
+
}
|
|
16
|
+
// Check if the cleaned value is a valid number
|
|
17
|
+
if (isNaN(Number(val))) {
|
|
18
|
+
throw new mongoose.Error.CastError('Pound', val, this.path, new Error(`${val} is not a valid currency value`));
|
|
19
|
+
}
|
|
20
|
+
// Return without symbol prefixed
|
|
21
|
+
return parseFloat(val.toFixed(2));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
// Register custom type
|
|
25
|
+
mongoose.Schema.Types.Pound = Pound;
|
|
26
|
+
export { Pound };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
declare module 'mongoose' {
|
|
3
|
+
namespace Schema {
|
|
4
|
+
namespace Types {
|
|
5
|
+
class SortCode extends SchemaType {
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
declare class SortCode extends mongoose.SchemaType {
|
|
11
|
+
constructor(key: string, options: mongoose.AnyObject | undefined);
|
|
12
|
+
cast(val: any): any;
|
|
13
|
+
}
|
|
14
|
+
export { SortCode };
|
|
15
|
+
//# sourceMappingURL=sort-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-code.d.ts","sourceRoot":"","sources":["../../value-objects/sort-code.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,QAAQ,UAAU,CAAC;IACtB,UAAU,MAAM,CAAC;QACb,UAAU,KAAK,CAAC;YACZ,MAAM,QAAS,SAAQ,UAAU;aAAI;SACxC;KACJ;CACJ;AAED,cAAM,QAAS,SAAQ,QAAQ,CAAC,UAAU;gBAC1B,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,SAAS,GAAG,SAAS;IAIhE,IAAI,CAAC,GAAG,EAAE,GAAG;CA+BhB;AAKD,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
class SortCode extends mongoose.SchemaType {
|
|
3
|
+
constructor(key, options) {
|
|
4
|
+
super(key, options, 'SortCode');
|
|
5
|
+
}
|
|
6
|
+
cast(val) {
|
|
7
|
+
if (val == null) {
|
|
8
|
+
return val; // Allow null or undefined
|
|
9
|
+
}
|
|
10
|
+
if (typeof val === 'number') {
|
|
11
|
+
val = val.toString();
|
|
12
|
+
}
|
|
13
|
+
if (typeof val !== 'string') {
|
|
14
|
+
throw new mongoose.Error.CastError('SortCode', val, this.path, new Error('SortCode must be a string or number'));
|
|
15
|
+
}
|
|
16
|
+
const cleaned = val.replace(/\D/g, '');
|
|
17
|
+
if (cleaned.length !== 6) {
|
|
18
|
+
throw new mongoose.Error.CastError('SortCode', val, this.path, new Error(`${val} is not a valid UK sort code. Must contain exactly 6 digits.`));
|
|
19
|
+
}
|
|
20
|
+
return `${cleaned.slice(0, 2)}-${cleaned.slice(2, 4)}-${cleaned.slice(4, 6)}`;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
// Register the custom type globally with Mongoose
|
|
24
|
+
mongoose.Schema.Types.SortCode = SortCode;
|
|
25
|
+
export { SortCode };
|
|
@@ -14,7 +14,7 @@ export class ApplicationMortgageEntity {
|
|
|
14
14
|
repaymentTypeLid!: string;
|
|
15
15
|
exitStrategyLid!: string;
|
|
16
16
|
isCapitalRaise?: boolean;
|
|
17
|
-
purchaseDate!:
|
|
17
|
+
purchaseDate!: string;
|
|
18
18
|
estimatedValue!: number;
|
|
19
19
|
loanRequired!: number;
|
|
20
20
|
monthlyRentalIncome!: number;
|
package/package.json
CHANGED
|
@@ -6,12 +6,12 @@ model ApplicationMortgage {
|
|
|
6
6
|
purposeOfMortgage String @map("purpose_of_mortgage") @db.VarChar(50)
|
|
7
7
|
depositComeFromLids String[] @map("deposit_come_from_lids")
|
|
8
8
|
ifOtherDetails String @map("if_other_details") @db.VarChar(50)
|
|
9
|
-
giftDetails String?
|
|
9
|
+
giftDetails String? @map("gift_details") @db.VarChar(50)
|
|
10
10
|
purchasePrice Decimal @map("purchase_price") @db.Decimal(10, 2)
|
|
11
11
|
repaymentTypeLid String @map("repayment_type_lid")
|
|
12
12
|
exitStrategyLid String @map("exit_strategy_lid")
|
|
13
13
|
isCapitalRaise Boolean? @default(false) @map("is_capital_raise")
|
|
14
|
-
purchaseDate
|
|
14
|
+
purchaseDate String @map("purchase_date")
|
|
15
15
|
estimatedValue Decimal @map("estimated_value") @db.Decimal(10, 2)
|
|
16
16
|
loanRequired Decimal @map("loan_required") @db.Decimal(10, 2)
|
|
17
17
|
monthlyRentalIncome Decimal @map("monthly_rental_income") @db.Decimal(10, 2)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- Added the required column `gift_details` to the `application_mortgages` table without a default value. This is not possible if the table is not empty.
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
-- AlterTable
|
|
8
|
-
ALTER TABLE "application_mortgages" ADD COLUMN "gift_details" VARCHAR(50) NOT NULL,
|
|
9
|
-
ALTER COLUMN "is_capital_raise" DROP NOT NULL,
|
|
10
|
-
ALTER COLUMN "is_distressed_sale" DROP NOT NULL,
|
|
11
|
-
ALTER COLUMN "is_purchased_below_market_value" DROP NOT NULL,
|
|
12
|
-
ALTER COLUMN "is_purchased_as_sale" DROP NOT NULL,
|
|
13
|
-
ALTER COLUMN "is_ready_to_sell" DROP NOT NULL,
|
|
14
|
-
ALTER COLUMN "is_government_initiative" DROP NOT NULL,
|
|
15
|
-
ALTER COLUMN "is_the_intention_to_let" DROP NOT NULL;
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- Added the required column `gift_details` to the `application_mortgages` table without a default value. This is not possible if the table is not empty.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- AlterTable
|
|
8
|
+
ALTER TABLE "application_mortgages" ADD COLUMN "gift_details" VARCHAR(50) NOT NULL,
|
|
9
|
+
ALTER COLUMN "is_capital_raise" DROP NOT NULL,
|
|
10
|
+
ALTER COLUMN "is_distressed_sale" DROP NOT NULL,
|
|
11
|
+
ALTER COLUMN "is_purchased_below_market_value" DROP NOT NULL,
|
|
12
|
+
ALTER COLUMN "is_purchased_as_sale" DROP NOT NULL,
|
|
13
|
+
ALTER COLUMN "is_ready_to_sell" DROP NOT NULL,
|
|
14
|
+
ALTER COLUMN "is_government_initiative" DROP NOT NULL,
|
|
15
|
+
ALTER COLUMN "is_the_intention_to_let" DROP NOT NULL;
|