@dynamatix/gb-schemas 2.0.68 → 2.3.237
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 +185 -2
- package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-additional-income.model.js +18 -3
- package/dist/applicants/applicant-additional-income.type.d.ts +40 -0
- package/dist/applicants/applicant-additional-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts +50 -8
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-creditCard.model.js +6 -6
- package/dist/applicants/applicant-commitment-loan.model.d.ts +47 -8
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-loan.model.js +8 -8
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +53 -14
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.js +13 -19
- package/dist/applicants/applicant-commitment-residence.model.d.ts +767 -0
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-residence.model.js +52 -0
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +47 -14
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.js +8 -8
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +47 -14
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +8 -8
- package/dist/applicants/applicant-credit-data.model.d.ts +29 -1
- package/dist/applicants/applicant-credit-data.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-profile.model.d.ts +29 -1
- package/dist/applicants/applicant-credit-profile.model.d.ts.map +1 -1
- package/dist/applicants/applicant-direct-debit.model.d.ts +29 -1
- package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment-income.model.d.ts +32 -2
- package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment-income.model.js +7 -2
- package/dist/applicants/applicant-employment-income.type.d.ts +37 -0
- package/dist/applicants/applicant-employment-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-employment-income.type.js +1 -0
- package/dist/applicants/applicant-employment.model.d.ts +87 -624
- package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment.model.js +6 -10
- package/dist/applicants/applicant-expenditure.model.d.ts +35 -8
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.js +6 -2
- package/dist/applicants/applicant-income-settings.model.d.ts +30 -2
- package/dist/applicants/applicant-income-settings.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income-settings.model.js +7 -0
- package/dist/applicants/applicant-income-summary.model.d.ts +1907 -0
- package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income-summary.model.js +38 -0
- package/dist/applicants/applicant-income.model.d.ts +485 -125
- package/dist/applicants/applicant-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income.model.js +48 -44
- package/dist/applicants/applicant-pension-income.model.d.ts +38 -290
- package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-pension-income.model.js +9 -6
- package/dist/applicants/applicant-property-income.model.d.ts +65 -20
- package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-property-income.model.js +14 -7
- package/dist/applicants/applicant-risk-narrative.model.d.ts +29 -1
- package/dist/applicants/applicant-risk-narrative.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.d.ts +32 -2
- package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.js +9 -2
- package/dist/applicants/applicant-self-employment.model.d.ts +269 -0
- package/dist/applicants/applicant-self-employment.model.d.ts.map +1 -0
- package/dist/applicants/applicant-self-employment.model.js +50 -0
- package/dist/applicants/applicant-sole-trader-income.model.d.ts +32 -2
- package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-sole-trader-income.model.js +7 -2
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts +53 -305
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -1
- package/dist/applicants/applicant-uk-tax-credits.model.js +10 -7
- package/dist/applicants/applicant.model.d.ts +1511 -88
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +14 -8
- package/dist/applicants/index.d.ts +10 -8
- package/dist/applicants/index.d.ts.map +1 -1
- package/dist/applicants/index.js +10 -8
- package/dist/applications/application-audit.model.d.ts +30 -2
- package/dist/applications/application-audit.model.d.ts.map +1 -1
- package/dist/applications/application-checklist-Item.model.d.ts +30 -2
- package/dist/applications/application-checklist-Item.model.d.ts.map +1 -1
- package/dist/applications/application-company-model.d.ts +47 -2
- package/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-company-model.js +11 -9
- package/dist/applications/application-credit-profile.model.d.ts +29 -1
- package/dist/applications/application-credit-profile.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.d.ts +35 -5
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.js +2 -1
- package/dist/applications/application-document.model.d.ts +30 -2
- package/dist/applications/application-document.model.d.ts.map +1 -1
- package/dist/applications/application-euc.model.d.ts +70 -0
- package/dist/applications/application-euc.model.d.ts.map +1 -0
- package/dist/applications/application-euc.model.js +9 -0
- package/dist/applications/application-fieldconfig.model.d.ts +30 -2
- package/dist/applications/application-fieldconfig.model.d.ts.map +1 -1
- package/dist/applications/application-illustration-model.d.ts +30 -2
- package/dist/applications/application-illustration-model.d.ts.map +1 -1
- package/dist/applications/application-legal.model.d.ts +30 -2
- package/dist/applications/application-legal.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.d.ts +194 -1097
- package/dist/applications/application-mortgage.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.js +13 -21
- package/dist/applications/application-note.model.d.ts +30 -2
- package/dist/applications/application-note.model.d.ts.map +1 -1
- package/dist/applications/application-offer.model.d.ts +30 -2
- package/dist/applications/application-offer.model.d.ts.map +1 -1
- package/dist/applications/application-onboarding.model.d.ts +30 -2
- package/dist/applications/application-onboarding.model.d.ts.map +1 -1
- package/dist/applications/application-product.model.d.ts +30 -2
- package/dist/applications/application-product.model.d.ts.map +1 -1
- package/dist/applications/application-product.model.js +5 -4
- package/dist/applications/application-productfeatures.model.d.ts +30 -2
- package/dist/applications/application-productfeatures.model.d.ts.map +1 -1
- package/dist/applications/application-rationale.model.d.ts +90 -194
- package/dist/applications/application-rationale.model.d.ts.map +1 -1
- package/dist/applications/application-rationale.model.js +24 -32
- package/dist/applications/application-rationale.type.d.ts +44 -0
- package/dist/applications/application-rationale.type.d.ts.map +1 -0
- package/dist/applications/application-rationale.type.js +1 -0
- package/dist/applications/application-risk-narrative.model.d.ts +30 -2
- package/dist/applications/application-risk-narrative.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.d.ts +29 -1
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application.model.d.ts +60 -50
- package/dist/applications/application.model.d.ts.map +1 -1
- package/dist/applications/application.model.js +45 -9
- package/dist/applications/applications-task.model.d.ts +112 -0
- package/dist/applications/applications-task.model.d.ts.map +1 -0
- package/dist/applications/applications-task.model.js +50 -0
- package/dist/applications/broker.model.d.ts +30 -2
- package/dist/applications/broker.model.d.ts.map +1 -1
- package/dist/applications/document.model.d.ts +30 -2
- package/dist/applications/document.model.d.ts.map +1 -1
- package/dist/applications/index.d.ts +3 -0
- package/dist/applications/index.d.ts.map +1 -1
- package/dist/applications/index.js +3 -0
- package/dist/applications/solicitor.model.d.ts +35 -8
- package/dist/applications/solicitor.model.d.ts.map +1 -1
- package/dist/applications/solicitor.model.js +2 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/product-catalogues/product-catalogue.model.d.ts +30 -2
- package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-definitions.model.d.ts +30 -2
- package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-variant.model.d.ts +30 -2
- package/dist/product-catalogues/product-variant.model.d.ts.map +1 -1
- package/dist/properties/property.model.d.ts +44 -2
- package/dist/properties/property.model.d.ts.map +1 -1
- package/dist/properties/property.model.js +12 -6
- package/dist/properties/security.model.d.ts +30 -2
- package/dist/properties/security.model.d.ts.map +1 -1
- package/dist/properties/security.model.js +5 -3
- package/dist/shared/alert.model.d.ts +30 -2
- package/dist/shared/alert.model.d.ts.map +1 -1
- package/dist/shared/apprivo-sync-journey.model.d.ts +30 -2
- package/dist/shared/apprivo-sync-journey.model.d.ts.map +1 -1
- package/dist/shared/checklist.model.d.ts +30 -2
- package/dist/shared/checklist.model.d.ts.map +1 -1
- package/dist/shared/document-type-model.d.ts +30 -2
- package/dist/shared/document-type-model.d.ts.map +1 -1
- package/dist/shared/job-run.model.d.ts +30 -2
- package/dist/shared/job-run.model.d.ts.map +1 -1
- package/dist/shared/job-setting.model.d.ts +30 -2
- package/dist/shared/job-setting.model.d.ts.map +1 -1
- package/dist/shared/lookup-group.model.d.ts +30 -2
- package/dist/shared/lookup-group.model.d.ts.map +1 -1
- package/dist/shared/lookup.model.d.ts +30 -2
- package/dist/shared/lookup.model.d.ts.map +1 -1
- package/dist/shared/schema-doc.model.d.ts +30 -2
- package/dist/shared/schema-doc.model.d.ts.map +1 -1
- package/dist/shared/system-parameter.model.d.ts +30 -2
- package/dist/shared/system-parameter.model.d.ts.map +1 -1
- package/dist/shared/task-document.model.d.ts +30 -2
- package/dist/shared/task-document.model.d.ts.map +1 -1
- package/dist/shared/task.model.d.ts +30 -2
- package/dist/shared/task.model.d.ts.map +1 -1
- package/dist/types/base.types.d.ts +35 -0
- package/dist/types/base.types.d.ts.map +1 -0
- package/dist/types/base.types.js +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/underwriter/underwriter.model.d.ts +30 -2
- package/dist/underwriter/underwriter.model.d.ts.map +1 -1
- package/dist/users/auth-log.model.d.ts +30 -2
- package/dist/users/auth-log.model.d.ts.map +1 -1
- package/dist/users/permission.model.d.ts +30 -2
- package/dist/users/permission.model.d.ts.map +1 -1
- package/dist/users/role-group.model.d.ts +30 -2
- package/dist/users/role-group.model.d.ts.map +1 -1
- package/dist/users/role.model.d.ts +30 -2
- package/dist/users/role.model.d.ts.map +1 -1
- package/dist/users/tasks.model.d.ts +30 -2
- package/dist/users/tasks.model.d.ts.map +1 -1
- package/dist/users/user.model.d.ts +30 -2
- package/dist/users/user.model.d.ts.map +1 -1
- package/dist/value-objects/account-number.d.ts +42 -0
- package/dist/value-objects/account-number.d.ts.map +1 -0
- package/dist/value-objects/account-number.js +24 -0
- package/dist/value-objects/pound.d.ts +28 -0
- package/dist/value-objects/pound.d.ts.map +1 -1
- package/dist/value-objects/pound.js +33 -9
- package/dist/value-objects/sort-code.d.ts +27 -0
- package/dist/value-objects/sort-code.d.ts.map +1 -1
- package/dist/value-objects/sort-code.js +13 -4
- package/package.json +76 -83
- package/dist/entities/applicants/applicant-credit-data.entity.d.ts +0 -19
- package/dist/entities/applicants/applicant-credit-data.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-credit-data.entity.js +0 -5
- package/dist/entities/applicants/applicant-credit-profile.entity.d.ts +0 -14
- package/dist/entities/applicants/applicant-credit-profile.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-credit-profile.entity.js +0 -5
- package/dist/entities/applicants/applicant-employment-income.entity.d.ts +0 -14
- package/dist/entities/applicants/applicant-employment-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-employment-income.entity.js +0 -5
- package/dist/entities/applicants/applicant-employment.entity.d.ts +0 -54
- package/dist/entities/applicants/applicant-employment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-employment.entity.js +0 -5
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts +0 -14
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-expenditure.entity.js +0 -5
- package/dist/entities/applicants/applicant-income-settings.entity.d.ts +0 -17
- package/dist/entities/applicants/applicant-income-settings.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-income-settings.entity.js +0 -5
- package/dist/entities/applicants/applicant-income.entity.d.ts +0 -77
- package/dist/entities/applicants/applicant-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-income.entity.js +0 -2
- package/dist/entities/applicants/applicant-share-holding.entity.d.ts +0 -18
- package/dist/entities/applicants/applicant-share-holding.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-share-holding.entity.js +0 -5
- package/dist/entities/applicants/applicant.entity.d.ts +0 -144
- package/dist/entities/applicants/applicant.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant.entity.js +0 -48
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts +0 -22
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/credit-card-commitment.entity.js +0 -9
- package/dist/entities/applicants/index.d.ts +0 -20
- package/dist/entities/applicants/index.d.ts.map +0 -1
- package/dist/entities/applicants/index.js +0 -18
- package/dist/entities/applicants/loan-commitment.entity.d.ts +0 -29
- package/dist/entities/applicants/loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/loan-commitment.entity.js +0 -15
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts +0 -50
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/mortgage-commitment.entity.js +0 -27
- package/dist/entities/applicants/other-income.entity.d.ts +0 -41
- package/dist/entities/applicants/other-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/other-income.entity.js +0 -19
- package/dist/entities/applicants/property-income.entity.d.ts +0 -17
- package/dist/entities/applicants/property-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/property-income.entity.js +0 -5
- package/dist/entities/applicants/residence-commitment.entity.d.ts +0 -44
- package/dist/entities/applicants/residence-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/residence-commitment.entity.js +0 -19
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts +0 -29
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/secure-loan-commitment.entity.js +0 -12
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts +0 -29
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/unsecured-loan-commitment.entity.js +0 -12
- package/dist/entities/applications/application-audit.entity.d.ts +0 -18
- package/dist/entities/applications/application-audit.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-audit.entity.js +0 -5
- package/dist/entities/applications/application-company.entity.d.ts +0 -60
- package/dist/entities/applications/application-company.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-company.entity.js +0 -15
- package/dist/entities/applications/application-credit-profile.entity.d.ts +0 -11
- package/dist/entities/applications/application-credit-profile.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-credit-profile.entity.js +0 -5
- package/dist/entities/applications/application-direct-debit.entity.d.ts +0 -24
- package/dist/entities/applications/application-direct-debit.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-direct-debit.entity.js +0 -5
- package/dist/entities/applications/application-document.entity.d.ts +0 -28
- package/dist/entities/applications/application-document.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-document.entity.js +0 -5
- package/dist/entities/applications/application-fieldconfig.entity.d.ts +0 -9
- package/dist/entities/applications/application-fieldconfig.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-fieldconfig.entity.js +0 -5
- package/dist/entities/applications/application-illustration.entity.d.ts +0 -8
- package/dist/entities/applications/application-illustration.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-illustration.entity.js +0 -5
- package/dist/entities/applications/application-legal.entity.d.ts +0 -9
- package/dist/entities/applications/application-legal.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-legal.entity.js +0 -5
- package/dist/entities/applications/application-mortgage.entity.d.ts +0 -55
- package/dist/entities/applications/application-mortgage.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-mortgage.entity.js +0 -27
- package/dist/entities/applications/application-note.entity.d.ts +0 -37
- package/dist/entities/applications/application-note.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-note.entity.js +0 -5
- package/dist/entities/applications/application-offer.entity.d.ts +0 -8
- package/dist/entities/applications/application-offer.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-offer.entity.js +0 -5
- package/dist/entities/applications/application-onboarding.entity.d.ts +0 -11
- package/dist/entities/applications/application-onboarding.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-onboarding.entity.js +0 -5
- package/dist/entities/applications/application-product.entity.d.ts +0 -33
- package/dist/entities/applications/application-product.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-product.entity.js +0 -5
- package/dist/entities/applications/application-rationale.entity.d.ts +0 -51
- package/dist/entities/applications/application-rationale.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-rationale.entity.js +0 -5
- package/dist/entities/applications/application.entity.d.ts +0 -102
- package/dist/entities/applications/application.entity.d.ts.map +0 -1
- package/dist/entities/applications/application.entity.js +0 -66
- package/dist/entities/applications/broker.entity.d.ts +0 -23
- package/dist/entities/applications/broker.entity.d.ts.map +0 -1
- package/dist/entities/applications/broker.entity.js +0 -5
- package/dist/entities/applications/checklist-item.entity.d.ts +0 -47
- package/dist/entities/applications/checklist-item.entity.d.ts.map +0 -1
- package/dist/entities/applications/checklist-item.entity.js +0 -5
- package/dist/entities/applications/index.d.ts +0 -22
- package/dist/entities/applications/index.d.ts.map +0 -1
- package/dist/entities/applications/index.js +0 -20
- package/dist/entities/applications/product-features.entity.d.ts +0 -104
- package/dist/entities/applications/product-features.entity.d.ts.map +0 -1
- package/dist/entities/applications/product-features.entity.js +0 -20
- package/dist/entities/applications/solicitor.entity.d.ts +0 -33
- package/dist/entities/applications/solicitor.entity.d.ts.map +0 -1
- package/dist/entities/applications/solicitor.entity.js +0 -5
- package/dist/entities/index.d.ts +0 -10
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/index.js +0 -10
- package/dist/entities/prisma.d.ts +0 -3
- package/dist/entities/prisma.d.ts.map +0 -1
- package/dist/entities/prisma.js +0 -10
- package/dist/entities/product-catalogues/index.d.ts +0 -7
- package/dist/entities/product-catalogues/index.d.ts.map +0 -1
- package/dist/entities/product-catalogues/index.js +0 -5
- package/dist/entities/product-catalogues/product-catalogue.entity.d.ts +0 -22
- package/dist/entities/product-catalogues/product-catalogue.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product-catalogue.entity.js +0 -5
- package/dist/entities/product-catalogues/product-definition.entity.d.ts +0 -28
- package/dist/entities/product-catalogues/product-definition.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product-definition.entity.js +0 -5
- package/dist/entities/product-catalogues/product-variant.entity.d.ts +0 -14
- package/dist/entities/product-catalogues/product-variant.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product-variant.entity.js +0 -5
- package/dist/entities/product-catalogues/product.entity.d.ts +0 -11
- package/dist/entities/product-catalogues/product.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product.entity.js +0 -5
- package/dist/entities/properties/data-street.entity.d.ts +0 -22
- package/dist/entities/properties/data-street.entity.d.ts.map +0 -1
- package/dist/entities/properties/data-street.entity.js +0 -5
- package/dist/entities/properties/index.d.ts +0 -6
- package/dist/entities/properties/index.d.ts.map +0 -1
- package/dist/entities/properties/index.js +0 -4
- package/dist/entities/properties/property.entity.d.ts +0 -30
- package/dist/entities/properties/property.entity.d.ts.map +0 -1
- package/dist/entities/properties/property.entity.js +0 -5
- package/dist/entities/properties/security.entity.d.ts +0 -58
- package/dist/entities/properties/security.entity.d.ts.map +0 -1
- package/dist/entities/properties/security.entity.js +0 -5
- package/dist/entities/shared/alert.entity.d.ts +0 -14
- package/dist/entities/shared/alert.entity.d.ts.map +0 -1
- package/dist/entities/shared/alert.entity.js +0 -5
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts +0 -19
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts.map +0 -1
- package/dist/entities/shared/apprivo-sync-journey.entity.js +0 -5
- package/dist/entities/shared/checklist.entity.d.ts +0 -15
- package/dist/entities/shared/checklist.entity.d.ts.map +0 -1
- package/dist/entities/shared/checklist.entity.js +0 -5
- package/dist/entities/shared/document-type.entity.d.ts +0 -9
- package/dist/entities/shared/document-type.entity.d.ts.map +0 -1
- package/dist/entities/shared/document-type.entity.js +0 -5
- package/dist/entities/shared/index.d.ts +0 -12
- package/dist/entities/shared/index.d.ts.map +0 -1
- package/dist/entities/shared/index.js +0 -10
- package/dist/entities/shared/job-run.entity.d.ts +0 -15
- package/dist/entities/shared/job-run.entity.d.ts.map +0 -1
- package/dist/entities/shared/job-run.entity.js +0 -5
- package/dist/entities/shared/job-run.model.d.ts +0 -11
- package/dist/entities/shared/job-run.model.d.ts.map +0 -1
- package/dist/entities/shared/job-setting.entity.d.ts +0 -11
- package/dist/entities/shared/job-setting.entity.d.ts.map +0 -1
- package/dist/entities/shared/job-setting.entity.js +0 -5
- package/dist/entities/shared/lookup-group.entity.d.ts +0 -11
- package/dist/entities/shared/lookup-group.entity.d.ts.map +0 -1
- package/dist/entities/shared/lookup-group.entity.js +0 -5
- package/dist/entities/shared/lookup.entity.d.ts +0 -14
- package/dist/entities/shared/lookup.entity.d.ts.map +0 -1
- package/dist/entities/shared/lookup.entity.js +0 -5
- package/dist/entities/shared/system-parameter.entity.d.ts +0 -10
- package/dist/entities/shared/system-parameter.entity.d.ts.map +0 -1
- package/dist/entities/shared/system-parameter.entity.js +0 -5
- package/dist/entities/underwriter/index.d.ts +0 -4
- package/dist/entities/underwriter/index.d.ts.map +0 -1
- package/dist/entities/underwriter/index.js +0 -2
- package/dist/entities/underwriter/underwriter.entity.d.ts +0 -19
- package/dist/entities/underwriter/underwriter.entity.d.ts.map +0 -1
- package/dist/entities/underwriter/underwriter.entity.js +0 -5
- package/dist/entities/users/auth-log.entity.d.ts +0 -11
- package/dist/entities/users/auth-log.entity.d.ts.map +0 -1
- package/dist/entities/users/auth-log.entity.js +0 -5
- package/dist/entities/users/index.d.ts +0 -8
- package/dist/entities/users/index.d.ts.map +0 -1
- package/dist/entities/users/index.js +0 -6
- package/dist/entities/users/permission.entity.d.ts +0 -12
- package/dist/entities/users/permission.entity.d.ts.map +0 -1
- package/dist/entities/users/permission.entity.js +0 -5
- package/dist/entities/users/role-group.entity.d.ts +0 -13
- package/dist/entities/users/role-group.entity.d.ts.map +0 -1
- package/dist/entities/users/role-group.entity.js +0 -5
- package/dist/entities/users/role.entity.d.ts +0 -16
- package/dist/entities/users/role.entity.d.ts.map +0 -1
- package/dist/entities/users/role.entity.js +0 -5
- package/dist/entities/users/user.entity.d.ts +0 -33
- package/dist/entities/users/user.entity.d.ts.map +0 -1
- package/dist/entities/users/user.entity.js +0 -5
- package/entities/applicants/applicant-credit-data.entity.ts +0 -24
- package/entities/applicants/applicant-credit-profile.entity.ts +0 -19
- package/entities/applicants/applicant-employment-income.entity.ts +0 -18
- package/entities/applicants/applicant-employment.entity.ts +0 -60
- package/entities/applicants/applicant-expenditure.entity.ts +0 -19
- package/entities/applicants/applicant-income-settings.entity.ts +0 -22
- package/entities/applicants/applicant-income.entity.ts +0 -79
- package/entities/applicants/applicant-share-holding.entity.ts +0 -23
- package/entities/applicants/applicant.entity.ts +0 -194
- package/entities/applicants/credit-card-commitment.entity.ts +0 -31
- package/entities/applicants/index.ts +0 -59
- package/entities/applicants/loan-commitment.entity.ts +0 -44
- package/entities/applicants/mortgage-commitment.entity.ts +0 -77
- package/entities/applicants/other-income.entity.ts +0 -68
- package/entities/applicants/property-income.entity.ts +0 -19
- package/entities/applicants/residence-commitment.entity.ts +0 -63
- package/entities/applicants/secure-loan-commitment.entity.ts +0 -41
- package/entities/applicants/unsecured-loan-commitment.entity.ts +0 -41
- package/entities/applications/application-audit.entity.ts +0 -23
- package/entities/applications/application-company.entity.ts +0 -76
- package/entities/applications/application-credit-profile.entity.ts +0 -13
- package/entities/applications/application-direct-debit.entity.ts +0 -29
- package/entities/applications/application-document.entity.ts +0 -33
- package/entities/applications/application-fieldconfig.entity.ts +0 -11
- package/entities/applications/application-illustration.entity.ts +0 -10
- package/entities/applications/application-legal.entity.ts +0 -11
- package/entities/applications/application-mortgage.entity.ts +0 -82
- package/entities/applications/application-note.entity.ts +0 -42
- package/entities/applications/application-offer.entity.ts +0 -10
- package/entities/applications/application-onboarding.entity.ts +0 -13
- package/entities/applications/application-product.entity.ts +0 -38
- package/entities/applications/application-rationale.entity.ts +0 -56
- package/entities/applications/application.entity.ts +0 -168
- package/entities/applications/broker.entity.ts +0 -25
- package/entities/applications/checklist-item.entity.ts +0 -49
- package/entities/applications/index.ts +0 -63
- package/entities/applications/product-features.entity.ts +0 -118
- package/entities/applications/solicitor.entity.ts +0 -38
- package/entities/index.ts +0 -14
- package/entities/prisma.ts +0 -13
- package/entities/product-catalogues/index.ts +0 -20
- package/entities/product-catalogues/product-catalogue.entity.ts +0 -27
- package/entities/product-catalogues/product-definition.entity.ts +0 -34
- package/entities/product-catalogues/product-variant.entity.ts +0 -19
- package/entities/product-catalogues/product.entity.ts +0 -16
- package/entities/properties/data-street.entity.ts +0 -27
- package/entities/properties/index.ts +0 -17
- package/entities/properties/property.entity.ts +0 -35
- package/entities/properties/security.entity.ts +0 -63
- package/entities/shared/alert.entity.ts +0 -19
- package/entities/shared/apprivo-sync-journey.entity.ts +0 -25
- package/entities/shared/apprivo-sync-journey.model.ts +0 -13
- package/entities/shared/checklist.entity.ts +0 -20
- package/entities/shared/document-type.entity.ts +0 -11
- package/entities/shared/index.ts +0 -35
- package/entities/shared/job-run.entity.ts +0 -20
- package/entities/shared/job-run.model.ts +0 -10
- package/entities/shared/job-setting.entity.ts +0 -13
- package/entities/shared/lookup-group.entity.ts +0 -16
- package/entities/shared/lookup.entity.ts +0 -19
- package/entities/shared/system-parameter.entity.ts +0 -13
- package/entities/underwriter/index.ts +0 -7
- package/entities/underwriter/underwriter.entity.ts +0 -24
- package/entities/users/auth-log.entity.ts +0 -13
- package/entities/users/index.ts +0 -23
- package/entities/users/permission.entity.ts +0 -17
- package/entities/users/role-group.entity.ts +0 -18
- package/entities/users/role.entity.ts +0 -21
- package/entities/users/user.entity.ts +0 -38
- package/prisma/applicants/applicant-credit-data.prisma +0 -19
- package/prisma/applicants/applicant-credit-profile.prisma +0 -15
- package/prisma/applicants/applicant-employment-income.prisma +0 -15
- package/prisma/applicants/applicant-employment.prisma +0 -54
- package/prisma/applicants/applicant-expenditure.prisma +0 -14
- package/prisma/applicants/applicant-income-settings.prisma +0 -17
- package/prisma/applicants/applicant-income.prisma +0 -78
- package/prisma/applicants/applicant-other-income.prisma +0 -45
- package/prisma/applicants/applicant-property-income.prisma +0 -21
- package/prisma/applicants/applicant-share-holding.prisma +0 -17
- package/prisma/applicants/applicant.prisma +0 -130
- package/prisma/applicants/credit-card-commitment.prisma +0 -21
- package/prisma/applicants/loan-commitment.prisma +0 -26
- package/prisma/applicants/mortgage-commitment.prisma +0 -43
- package/prisma/applicants/residence-commitment.prisma +0 -41
- package/prisma/applicants/secured-loan-commitment.prisma +0 -27
- package/prisma/applicants/unsecured-loan-commitment.prisma +0 -27
- package/prisma/applications/application-audit.prisma +0 -19
- package/prisma/applications/application-company.prisma +0 -56
- package/prisma/applications/application-credit-profile.prisma +0 -15
- package/prisma/applications/application-direct-debit.prisma +0 -27
- package/prisma/applications/application-document.prisma +0 -28
- package/prisma/applications/application-fieldconfig.prisma +0 -9
- package/prisma/applications/application-illustration.prisma +0 -8
- package/prisma/applications/application-legal.prisma +0 -9
- package/prisma/applications/application-mortgage.prisma +0 -48
- package/prisma/applications/application-note.prisma +0 -36
- package/prisma/applications/application-offer.prisma +0 -8
- package/prisma/applications/application-onboarding.prisma +0 -11
- package/prisma/applications/application-product.prisma +0 -33
- package/prisma/applications/application-rationale.prisma +0 -51
- package/prisma/applications/application.prisma +0 -92
- package/prisma/applications/broker.prisma +0 -26
- package/prisma/applications/checklist-item.prisma +0 -47
- package/prisma/applications/checklist.prisma +0 -19
- package/prisma/applications/product-features.prisma +0 -122
- package/prisma/applications/solicitor.prisma +0 -33
- package/prisma/broker.entity.ts +0 -8
- package/prisma/migrations/20250501070203_initial_migration/migration.sql +0 -2044
- package/prisma/migrations/20250501102630_job_setting_name_change/migration.sql +0 -10
- package/prisma/migrations/20250501104920_milstone_update/migration.sql +0 -30
- package/prisma/migrations/20250501105546_apprivo_sync_journey_update/migration.sql +0 -9
- package/prisma/migrations/20250501105850_job_run_update/migration.sql +0 -13
- package/prisma/migrations/20250505115236_update_application_schema/migration.sql +0 -115
- package/prisma/migrations/20250505145328_update_broker_schema/migration.sql +0 -8
- package/prisma/migrations/20250505185034_update_direct_debit_schema/migration.sql +0 -27
- package/prisma/migrations/20250505190613_update_solicitor_schema/migration.sql +0 -29
- package/prisma/migrations/20250506054831_update_note_schema/migration.sql +0 -12
- package/prisma/migrations/20250506142218_update_broker_schema/migration.sql +0 -17
- package/prisma/migrations/20250506190258_update_application_note_schema/migration.sql +0 -32
- package/prisma/migrations/20250506204635_update_mortgage_schema/migration.sql +0 -26
- package/prisma/migrations/20250507122847_applicant_retirement_age/migration.sql +0 -9
- package/prisma/migrations/20250507184905_update_mortgage_schema/migration.sql +0 -8
- package/prisma/migrations/20250507194746_update_direct_debit_schema/migration.sql +0 -5
- package/prisma/migrations/20250508092417_update_application_schema/migration.sql +0 -3
- package/prisma/migrations/20250508094735_update_direct_debit_schema/migration.sql +0 -2
- package/prisma/migrations/20250509073536_update_applicant_schema/migration.sql +0 -4
- package/prisma/migrations/20250509111029_update_solicitor_schema/migration.sql +0 -2
- package/prisma/migrations/20250509125107_update_mortgage_schema/migration.sql +0 -19
- package/prisma/migrations/20250512071728_update_mortgage_schema/migration.sql +0 -15
- package/prisma/migrations/20250512094011_update_property_schema/migration.sql +0 -34
- package/prisma/migrations/20250512102019_update_mortgage_schema/migration.sql +0 -2
- package/prisma/migrations/20250513132704_update_credit_card_commitment_schema/migration.sql +0 -22
- package/prisma/migrations/20250513143530_update_credit_card_commitment_schema/migration.sql +0 -8
- package/prisma/migrations/20250513170654_update_mortgage_commitment_schema/migration.sql +0 -89
- package/prisma/migrations/20250513183558_update_loan_commitment_schema/migration.sql +0 -33
- package/prisma/migrations/20250513184341_update_loan_commitment_schema/migration.sql +0 -4
- package/prisma/migrations/20250513202307_update_role_schema/migration.sql +0 -12
- package/prisma/migrations/20250514062536_update_role_group_schema/migration.sql +0 -12
- package/prisma/migrations/20250514064054_update_user_schema/migration.sql +0 -12
- package/prisma/migrations/20250514071524_update_user_schema/migration.sql +0 -15
- package/prisma/migrations/20250514072729_update_user_schema/migration.sql +0 -18
- package/prisma/migrations/20250514102042_update_user_rolegroup_role_schemas/migration.sql +0 -9
- package/prisma/migrations/20250514183537_update_application_company_schema/migration.sql +0 -100
- package/prisma/migrations/20250514194139_update_applicant_share_holding_schema/migration.sql +0 -11
- package/prisma/migrations/20250515132015_update_underwriter_schema/migration.sql +0 -56
- package/prisma/migrations/20250515133236_update_underwriter_schema/migration.sql +0 -12
- package/prisma/migrations/20250515172824_update_security_schema/migration.sql +0 -43
- package/prisma/migrations/20250516053810_update_underwriter_schema/migration.sql +0 -14
- package/prisma/migrations/20250516075153_update_commitments_schemas/migration.sql +0 -134
- package/prisma/migrations/20250516094438_update_credit_card_commitment_schema/migration.sql +0 -8
- package/prisma/migrations/20250519075211_update_product_features_schema/migration.sql +0 -15
- package/prisma/migrations/20250519094725_update_product_feature_schema/migration.sql +0 -163
- package/prisma/migrations/20250519133154_update_employemnt_income_schema/migration.sql +0 -11
- package/prisma/migrations/20250519181411_update_applicant_income_schema/migration.sql +0 -65
- package/prisma/migrations/20250520030945_update_income_settings_schema/migration.sql +0 -44
- package/prisma/migrations/20250520061455_update_income_settings_schema/migration.sql +0 -11
- package/prisma/migrations/20250521173204_update_product_catalogue_schema/migration.sql +0 -28
- package/prisma/migrations/20250521180300_update_product_variant_schema/migration.sql +0 -8
- package/prisma/migrations/20250521191050_update_product_definition_schema/migration.sql +0 -23
- package/prisma/migrations/20250521192012_update_product_definition_schema/migration.sql +0 -9
- package/prisma/migrations/20250521194549_update_product_definition_schema/migration.sql +0 -14
- package/prisma/migrations/migration_lock.toml +0 -3
- package/prisma/product-catalogues/product-catalogue.prisma +0 -22
- package/prisma/product-catalogues/product-definition.prisma +0 -16
- package/prisma/product-catalogues/product-variant.prisma +0 -15
- package/prisma/product-catalogues/product.prisma +0 -10
- package/prisma/properties/property.prisma +0 -30
- package/prisma/properties/security.prisma +0 -81
- package/prisma/schema.prisma +0 -1955
- package/prisma/shared/alert.prisma +0 -15
- package/prisma/shared/apprivo-sync-journey.prisma +0 -19
- package/prisma/shared/checklist.prisma +0 -10
- package/prisma/shared/document-type.prisma +0 -9
- package/prisma/shared/job-run.prisma +0 -15
- package/prisma/shared/job-setting.prisma +0 -11
- package/prisma/shared/lookup-group.prisma +0 -12
- package/prisma/shared/lookup.prisma +0 -154
- package/prisma/shared/system-parameter.prisma +0 -16
- package/prisma/underwriter/underwriter.prisma +0 -20
- package/prisma/users/auth-log.prisma +0 -11
- package/prisma/users/permission.prisma +0 -13
- package/prisma/users/role-group.prisma +0 -15
- package/prisma/users/role.prisma +0 -15
- package/prisma/users/user.prisma +0 -30
- /package/dist/{entities/shared/job-run.model.js → applicants/applicant-additional-income.type.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-commitment-residence.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-residence.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AAoD5D,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmE,CAAC;AAClG,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
import { Pound, formatPound } from "../value-objects/pound";
|
|
3
|
+
import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
|
|
4
|
+
const residenceCommitmentSchema = new mongoose.Schema({
|
|
5
|
+
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
6
|
+
pageValidFlag: { type: Boolean, default: false },
|
|
7
|
+
financeTypeHppLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
8
|
+
lenderName: { type: String },
|
|
9
|
+
propertyValue: { type: Pound, required: true, get: formatPound },
|
|
10
|
+
hppRepaymentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
|
|
11
|
+
mortgageTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
12
|
+
fixedTerm: { type: String, required: true },
|
|
13
|
+
commitmentId: { type: String, required: true },
|
|
14
|
+
originalLoanAmount: { type: Pound, required: true, get: formatPound },
|
|
15
|
+
outstandingBalance: { type: Pound, required: true, get: formatPound },
|
|
16
|
+
startDate: { type: String, required: true },
|
|
17
|
+
mortgageRate: { type: Number, required: true },
|
|
18
|
+
remainingTermMonth: { type: Number, required: true },
|
|
19
|
+
financeHomeTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
|
|
20
|
+
chargeTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
|
|
21
|
+
monthlyPayment: { type: Pound, required: true, get: formatPound },
|
|
22
|
+
furtherAdvances: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
required: true,
|
|
25
|
+
get: (v) => v ? "Yes" : "No"
|
|
26
|
+
},
|
|
27
|
+
furtherAdvanceDetails: { type: String, required: true },
|
|
28
|
+
accountUptoDate: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
required: true,
|
|
31
|
+
get: (v) => v ? "Yes" : "No"
|
|
32
|
+
},
|
|
33
|
+
accountUptoDateFailDetails: { type: String, required: true },
|
|
34
|
+
accountInArrears: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
required: true,
|
|
37
|
+
get: (v) => v ? "Yes" : "No"
|
|
38
|
+
},
|
|
39
|
+
accountInArrearsDetails: { type: String, required: true },
|
|
40
|
+
doHaveSharedResponsibility: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
required: true,
|
|
43
|
+
get: (v) => v ? "Yes" : "No"
|
|
44
|
+
},
|
|
45
|
+
sharedMortgage: { type: String, required: true }
|
|
46
|
+
}, {
|
|
47
|
+
toJSON: { getters: true },
|
|
48
|
+
toObject: { getters: true }
|
|
49
|
+
});
|
|
50
|
+
applyAuditMiddleware(residenceCommitmentSchema, "ResidenceCommitment");
|
|
51
|
+
const ResidenceCommitmentModel = mongoose.model("ResidenceCommitment", residenceCommitmentSchema);
|
|
52
|
+
export default ResidenceCommitmentModel;
|
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
/// <reference path="../value-objects/account-number.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
3
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
4
|
+
/// <reference types="mongoose/types/callback" />
|
|
5
|
+
/// <reference types="mongoose/types/collection" />
|
|
6
|
+
/// <reference types="mongoose/types/connection" />
|
|
7
|
+
/// <reference types="mongoose/types/cursor" />
|
|
8
|
+
/// <reference types="mongoose/types/document" />
|
|
9
|
+
/// <reference types="mongoose/types/error" />
|
|
10
|
+
/// <reference types="mongoose/types/expressions" />
|
|
11
|
+
/// <reference types="mongoose/types/helpers" />
|
|
12
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
13
|
+
/// <reference types="mongoose/types/indexes" />
|
|
14
|
+
/// <reference types="mongoose/types/models" />
|
|
15
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
16
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
17
|
+
/// <reference types="mongoose/types/populate" />
|
|
18
|
+
/// <reference types="mongoose/types/query" />
|
|
19
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
20
|
+
/// <reference types="mongoose/types/session" />
|
|
21
|
+
/// <reference types="mongoose/types/types" />
|
|
22
|
+
/// <reference types="mongoose/types/utility" />
|
|
23
|
+
/// <reference types="mongoose/types/validation" />
|
|
24
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
25
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
26
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
27
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
1
28
|
import mongoose from "mongoose";
|
|
2
29
|
import { Pound } from "../value-objects/pound";
|
|
3
30
|
declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
@@ -48,10 +75,12 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
48
75
|
instance?: unknown;
|
|
49
76
|
isRequired?: unknown;
|
|
50
77
|
path?: unknown;
|
|
78
|
+
toJSONSchema?: {} | null | undefined;
|
|
51
79
|
validateAll?: {} | null | undefined;
|
|
52
80
|
defaultOptions?: unknown;
|
|
53
81
|
} | null | undefined;
|
|
54
82
|
commitmentId?: unknown;
|
|
83
|
+
commitmentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
55
84
|
lenderName?: unknown;
|
|
56
85
|
monthlyPayment?: {
|
|
57
86
|
validators: mongoose.Types.DocumentArray<{
|
|
@@ -97,6 +126,7 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
97
126
|
instance?: unknown;
|
|
98
127
|
isRequired?: unknown;
|
|
99
128
|
path?: unknown;
|
|
129
|
+
toJSONSchema?: {} | null | undefined;
|
|
100
130
|
validateAll?: {} | null | undefined;
|
|
101
131
|
defaultOptions?: unknown;
|
|
102
132
|
} | null | undefined;
|
|
@@ -107,7 +137,6 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
107
137
|
sharedMortgage?: unknown;
|
|
108
138
|
remainingTerm?: unknown;
|
|
109
139
|
startDate?: unknown;
|
|
110
|
-
commitmentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
111
140
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
112
141
|
isSelected?: unknown;
|
|
113
142
|
source?: unknown;
|
|
@@ -156,10 +185,12 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
156
185
|
instance?: unknown;
|
|
157
186
|
isRequired?: unknown;
|
|
158
187
|
path?: unknown;
|
|
188
|
+
toJSONSchema?: {} | null | undefined;
|
|
159
189
|
validateAll?: {} | null | undefined;
|
|
160
190
|
defaultOptions?: unknown;
|
|
161
191
|
} | null | undefined;
|
|
162
192
|
commitmentId?: unknown;
|
|
193
|
+
commitmentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
163
194
|
lenderName?: unknown;
|
|
164
195
|
monthlyPayment?: {
|
|
165
196
|
validators: mongoose.Types.DocumentArray<{
|
|
@@ -205,6 +236,7 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
205
236
|
instance?: unknown;
|
|
206
237
|
isRequired?: unknown;
|
|
207
238
|
path?: unknown;
|
|
239
|
+
toJSONSchema?: {} | null | undefined;
|
|
208
240
|
validateAll?: {} | null | undefined;
|
|
209
241
|
defaultOptions?: unknown;
|
|
210
242
|
} | null | undefined;
|
|
@@ -215,8 +247,7 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
215
247
|
sharedMortgage?: unknown;
|
|
216
248
|
remainingTerm?: unknown;
|
|
217
249
|
startDate?: unknown;
|
|
218
|
-
|
|
219
|
-
}> & {
|
|
250
|
+
}, {}> & {
|
|
220
251
|
isSelected?: unknown;
|
|
221
252
|
source?: unknown;
|
|
222
253
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
@@ -264,10 +295,12 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
264
295
|
instance?: unknown;
|
|
265
296
|
isRequired?: unknown;
|
|
266
297
|
path?: unknown;
|
|
298
|
+
toJSONSchema?: {} | null | undefined;
|
|
267
299
|
validateAll?: {} | null | undefined;
|
|
268
300
|
defaultOptions?: unknown;
|
|
269
301
|
} | null | undefined;
|
|
270
302
|
commitmentId?: unknown;
|
|
303
|
+
commitmentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
271
304
|
lenderName?: unknown;
|
|
272
305
|
monthlyPayment?: {
|
|
273
306
|
validators: mongoose.Types.DocumentArray<{
|
|
@@ -313,6 +346,7 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
313
346
|
instance?: unknown;
|
|
314
347
|
isRequired?: unknown;
|
|
315
348
|
path?: unknown;
|
|
349
|
+
toJSONSchema?: {} | null | undefined;
|
|
316
350
|
validateAll?: {} | null | undefined;
|
|
317
351
|
defaultOptions?: unknown;
|
|
318
352
|
} | null | undefined;
|
|
@@ -323,7 +357,6 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
323
357
|
sharedMortgage?: unknown;
|
|
324
358
|
remainingTerm?: unknown;
|
|
325
359
|
startDate?: unknown;
|
|
326
|
-
commitmentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
327
360
|
} & {
|
|
328
361
|
_id: mongoose.Types.ObjectId;
|
|
329
362
|
} & {
|
|
@@ -341,48 +374,48 @@ declare const SecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
341
374
|
applicantId: mongoose.Types.ObjectId;
|
|
342
375
|
outstandingBalance: Pound;
|
|
343
376
|
commitmentId: string;
|
|
344
|
-
|
|
377
|
+
commitmentTypeLid: mongoose.Types.ObjectId;
|
|
345
378
|
monthlyPayment: Pound;
|
|
346
379
|
loanTypeLid: mongoose.Types.ObjectId;
|
|
347
380
|
securityDetails: string;
|
|
348
381
|
purpose: string;
|
|
382
|
+
doHaveSharedResponsibility: boolean;
|
|
349
383
|
sharedMortgage: string;
|
|
350
384
|
remainingTerm: number;
|
|
351
385
|
startDate: string;
|
|
352
|
-
|
|
353
|
-
doHaveSharedResponsibility?: boolean | null | undefined;
|
|
386
|
+
lenderName?: string | null | undefined;
|
|
354
387
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
355
388
|
isSelected: boolean;
|
|
356
389
|
source: "Broker" | "Credit Report" | "Underwriter";
|
|
357
390
|
applicantId: mongoose.Types.ObjectId;
|
|
358
391
|
outstandingBalance: Pound;
|
|
359
392
|
commitmentId: string;
|
|
360
|
-
|
|
393
|
+
commitmentTypeLid: mongoose.Types.ObjectId;
|
|
361
394
|
monthlyPayment: Pound;
|
|
362
395
|
loanTypeLid: mongoose.Types.ObjectId;
|
|
363
396
|
securityDetails: string;
|
|
364
397
|
purpose: string;
|
|
398
|
+
doHaveSharedResponsibility: boolean;
|
|
365
399
|
sharedMortgage: string;
|
|
366
400
|
remainingTerm: number;
|
|
367
401
|
startDate: string;
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
}>> & mongoose.FlatRecord<{
|
|
402
|
+
lenderName?: string | null | undefined;
|
|
403
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
371
404
|
isSelected: boolean;
|
|
372
405
|
source: "Broker" | "Credit Report" | "Underwriter";
|
|
373
406
|
applicantId: mongoose.Types.ObjectId;
|
|
374
407
|
outstandingBalance: Pound;
|
|
375
408
|
commitmentId: string;
|
|
376
|
-
|
|
409
|
+
commitmentTypeLid: mongoose.Types.ObjectId;
|
|
377
410
|
monthlyPayment: Pound;
|
|
378
411
|
loanTypeLid: mongoose.Types.ObjectId;
|
|
379
412
|
securityDetails: string;
|
|
380
413
|
purpose: string;
|
|
414
|
+
doHaveSharedResponsibility: boolean;
|
|
381
415
|
sharedMortgage: string;
|
|
382
416
|
remainingTerm: number;
|
|
383
417
|
startDate: string;
|
|
384
|
-
|
|
385
|
-
doHaveSharedResponsibility?: boolean | null | undefined;
|
|
418
|
+
lenderName?: string | null | undefined;
|
|
386
419
|
}> & {
|
|
387
420
|
_id: mongoose.Types.ObjectId;
|
|
388
421
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-commitment-secureLoan.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-secureLoan.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"applicant-commitment-secureLoan.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-secureLoan.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AAuC5D,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuE,CAAC;AACxG,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
-
import { Pound } from "../value-objects/pound";
|
|
2
|
+
import { Pound, formatPound } from "../value-objects/pound";
|
|
3
|
+
import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
|
|
3
4
|
const securedLoanCommitmentSchema = new mongoose.Schema({
|
|
4
5
|
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
5
|
-
lenderName: { type: String
|
|
6
|
+
lenderName: { type: String }, // Provider Name / Provider category
|
|
6
7
|
commitmentId: { type: String, default: null },
|
|
7
8
|
securityDetails: { type: String, default: null },
|
|
8
9
|
purpose: { type: String, default: null },
|
|
9
|
-
doHaveSharedResponsibility: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
},
|
|
10
|
+
doHaveSharedResponsibility: { type: Boolean, default: false },
|
|
12
11
|
sharedMortgage: { type: String, default: null },
|
|
13
12
|
remainingTerm: { type: Number, default: null }, // Remaining term
|
|
14
13
|
startDate: { type: String, default: null },
|
|
15
|
-
outstandingBalance: { type: Pound, required: true }, // Balance
|
|
16
|
-
monthlyPayment: { type: Pound, required: true }, // Monthly payment
|
|
14
|
+
outstandingBalance: { type: Pound, required: true, get: formatPound }, // Balance
|
|
15
|
+
monthlyPayment: { type: Pound, required: true, get: formatPound }, // Monthly payment
|
|
17
16
|
source: {
|
|
18
17
|
type: String,
|
|
19
18
|
enum: ["Broker", "Credit Report", "Underwriter"],
|
|
20
19
|
default: "Broker"
|
|
21
20
|
},
|
|
22
|
-
isSelected: { type: Boolean, default:
|
|
21
|
+
isSelected: { type: Boolean, default: false }, // mark as selected for summary calculation
|
|
23
22
|
// Unique fields from loan model
|
|
24
23
|
commitmentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
25
24
|
loanTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
@@ -33,5 +32,6 @@ securedLoanCommitmentSchema.virtual('lendingType').get(function () {
|
|
|
33
32
|
? null
|
|
34
33
|
: this.applicantId?.applicationId?.lendingTypeLid?.name || null;
|
|
35
34
|
});
|
|
35
|
+
applyAuditMiddleware(securedLoanCommitmentSchema, "SecuredLoanCommitment");
|
|
36
36
|
const SecuredLoanCommitmentModel = mongoose.model("SecuredLoanCommitment", securedLoanCommitmentSchema);
|
|
37
37
|
export default SecuredLoanCommitmentModel;
|
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
/// <reference path="../value-objects/account-number.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
3
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
4
|
+
/// <reference types="mongoose/types/callback" />
|
|
5
|
+
/// <reference types="mongoose/types/collection" />
|
|
6
|
+
/// <reference types="mongoose/types/connection" />
|
|
7
|
+
/// <reference types="mongoose/types/cursor" />
|
|
8
|
+
/// <reference types="mongoose/types/document" />
|
|
9
|
+
/// <reference types="mongoose/types/error" />
|
|
10
|
+
/// <reference types="mongoose/types/expressions" />
|
|
11
|
+
/// <reference types="mongoose/types/helpers" />
|
|
12
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
13
|
+
/// <reference types="mongoose/types/indexes" />
|
|
14
|
+
/// <reference types="mongoose/types/models" />
|
|
15
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
16
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
17
|
+
/// <reference types="mongoose/types/populate" />
|
|
18
|
+
/// <reference types="mongoose/types/query" />
|
|
19
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
20
|
+
/// <reference types="mongoose/types/session" />
|
|
21
|
+
/// <reference types="mongoose/types/types" />
|
|
22
|
+
/// <reference types="mongoose/types/utility" />
|
|
23
|
+
/// <reference types="mongoose/types/validation" />
|
|
24
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
25
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
26
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
27
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
1
28
|
import mongoose from "mongoose";
|
|
2
29
|
import { Pound } from "../value-objects/pound";
|
|
3
30
|
declare const UnsecuredLoanCommitmentModel: mongoose.Model<{
|
|
@@ -48,10 +75,12 @@ declare const UnsecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
48
75
|
instance?: unknown;
|
|
49
76
|
isRequired?: unknown;
|
|
50
77
|
path?: unknown;
|
|
78
|
+
toJSONSchema?: {} | null | undefined;
|
|
51
79
|
validateAll?: {} | null | undefined;
|
|
52
80
|
defaultOptions?: unknown;
|
|
53
81
|
} | null | undefined;
|
|
54
82
|
commitmentId?: unknown;
|
|
83
|
+
commitmentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
55
84
|
lenderName?: unknown;
|
|
56
85
|
monthlyPayment?: {
|
|
57
86
|
validators: mongoose.Types.DocumentArray<{
|
|
@@ -97,6 +126,7 @@ declare const UnsecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
97
126
|
instance?: unknown;
|
|
98
127
|
isRequired?: unknown;
|
|
99
128
|
path?: unknown;
|
|
129
|
+
toJSONSchema?: {} | null | undefined;
|
|
100
130
|
validateAll?: {} | null | undefined;
|
|
101
131
|
defaultOptions?: unknown;
|
|
102
132
|
} | null | undefined;
|
|
@@ -107,7 +137,6 @@ declare const UnsecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
107
137
|
sharedMortgage?: unknown;
|
|
108
138
|
remainingTerm?: unknown;
|
|
109
139
|
startDate?: unknown;
|
|
110
|
-
commitmentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
111
140
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
112
141
|
isSelected?: unknown;
|
|
113
142
|
source?: unknown;
|
|
@@ -156,10 +185,12 @@ declare const UnsecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
156
185
|
instance?: unknown;
|
|
157
186
|
isRequired?: unknown;
|
|
158
187
|
path?: unknown;
|
|
188
|
+
toJSONSchema?: {} | null | undefined;
|
|
159
189
|
validateAll?: {} | null | undefined;
|
|
160
190
|
defaultOptions?: unknown;
|
|
161
191
|
} | null | undefined;
|
|
162
192
|
commitmentId?: unknown;
|
|
193
|
+
commitmentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
163
194
|
lenderName?: unknown;
|
|
164
195
|
monthlyPayment?: {
|
|
165
196
|
validators: mongoose.Types.DocumentArray<{
|
|
@@ -205,6 +236,7 @@ declare const UnsecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
205
236
|
instance?: unknown;
|
|
206
237
|
isRequired?: unknown;
|
|
207
238
|
path?: unknown;
|
|
239
|
+
toJSONSchema?: {} | null | undefined;
|
|
208
240
|
validateAll?: {} | null | undefined;
|
|
209
241
|
defaultOptions?: unknown;
|
|
210
242
|
} | null | undefined;
|
|
@@ -215,8 +247,7 @@ declare const UnsecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
215
247
|
sharedMortgage?: unknown;
|
|
216
248
|
remainingTerm?: unknown;
|
|
217
249
|
startDate?: unknown;
|
|
218
|
-
|
|
219
|
-
}> & {
|
|
250
|
+
}, {}> & {
|
|
220
251
|
isSelected?: unknown;
|
|
221
252
|
source?: unknown;
|
|
222
253
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
@@ -264,10 +295,12 @@ declare const UnsecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
264
295
|
instance?: unknown;
|
|
265
296
|
isRequired?: unknown;
|
|
266
297
|
path?: unknown;
|
|
298
|
+
toJSONSchema?: {} | null | undefined;
|
|
267
299
|
validateAll?: {} | null | undefined;
|
|
268
300
|
defaultOptions?: unknown;
|
|
269
301
|
} | null | undefined;
|
|
270
302
|
commitmentId?: unknown;
|
|
303
|
+
commitmentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
271
304
|
lenderName?: unknown;
|
|
272
305
|
monthlyPayment?: {
|
|
273
306
|
validators: mongoose.Types.DocumentArray<{
|
|
@@ -313,6 +346,7 @@ declare const UnsecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
313
346
|
instance?: unknown;
|
|
314
347
|
isRequired?: unknown;
|
|
315
348
|
path?: unknown;
|
|
349
|
+
toJSONSchema?: {} | null | undefined;
|
|
316
350
|
validateAll?: {} | null | undefined;
|
|
317
351
|
defaultOptions?: unknown;
|
|
318
352
|
} | null | undefined;
|
|
@@ -323,7 +357,6 @@ declare const UnsecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
323
357
|
sharedMortgage?: unknown;
|
|
324
358
|
remainingTerm?: unknown;
|
|
325
359
|
startDate?: unknown;
|
|
326
|
-
commitmentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
327
360
|
} & {
|
|
328
361
|
_id: mongoose.Types.ObjectId;
|
|
329
362
|
} & {
|
|
@@ -341,48 +374,48 @@ declare const UnsecuredLoanCommitmentModel: mongoose.Model<{
|
|
|
341
374
|
applicantId: mongoose.Types.ObjectId;
|
|
342
375
|
outstandingBalance: Pound;
|
|
343
376
|
commitmentId: string;
|
|
344
|
-
|
|
377
|
+
commitmentTypeLid: mongoose.Types.ObjectId;
|
|
345
378
|
monthlyPayment: Pound;
|
|
346
379
|
loanTypeLid: mongoose.Types.ObjectId;
|
|
347
380
|
securityDetails: string;
|
|
348
381
|
purpose: string;
|
|
382
|
+
doHaveSharedResponsibility: boolean;
|
|
349
383
|
sharedMortgage: string;
|
|
350
384
|
remainingTerm: number;
|
|
351
385
|
startDate: string;
|
|
352
|
-
|
|
353
|
-
doHaveSharedResponsibility?: boolean | null | undefined;
|
|
386
|
+
lenderName?: string | null | undefined;
|
|
354
387
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
355
388
|
isSelected: boolean;
|
|
356
389
|
source: "Broker" | "Credit Report" | "Underwriter";
|
|
357
390
|
applicantId: mongoose.Types.ObjectId;
|
|
358
391
|
outstandingBalance: Pound;
|
|
359
392
|
commitmentId: string;
|
|
360
|
-
|
|
393
|
+
commitmentTypeLid: mongoose.Types.ObjectId;
|
|
361
394
|
monthlyPayment: Pound;
|
|
362
395
|
loanTypeLid: mongoose.Types.ObjectId;
|
|
363
396
|
securityDetails: string;
|
|
364
397
|
purpose: string;
|
|
398
|
+
doHaveSharedResponsibility: boolean;
|
|
365
399
|
sharedMortgage: string;
|
|
366
400
|
remainingTerm: number;
|
|
367
401
|
startDate: string;
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
}>> & mongoose.FlatRecord<{
|
|
402
|
+
lenderName?: string | null | undefined;
|
|
403
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
371
404
|
isSelected: boolean;
|
|
372
405
|
source: "Broker" | "Credit Report" | "Underwriter";
|
|
373
406
|
applicantId: mongoose.Types.ObjectId;
|
|
374
407
|
outstandingBalance: Pound;
|
|
375
408
|
commitmentId: string;
|
|
376
|
-
|
|
409
|
+
commitmentTypeLid: mongoose.Types.ObjectId;
|
|
377
410
|
monthlyPayment: Pound;
|
|
378
411
|
loanTypeLid: mongoose.Types.ObjectId;
|
|
379
412
|
securityDetails: string;
|
|
380
413
|
purpose: string;
|
|
414
|
+
doHaveSharedResponsibility: boolean;
|
|
381
415
|
sharedMortgage: string;
|
|
382
416
|
remainingTerm: number;
|
|
383
417
|
startDate: string;
|
|
384
|
-
|
|
385
|
-
doHaveSharedResponsibility?: boolean | null | undefined;
|
|
418
|
+
lenderName?: string | null | undefined;
|
|
386
419
|
}> & {
|
|
387
420
|
_id: mongoose.Types.ObjectId;
|
|
388
421
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-commitment-unsecuredLoan.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-unsecuredLoan.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"applicant-commitment-unsecuredLoan.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-unsecuredLoan.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AAuC5D,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA2E,CAAC;AAC9G,eAAe,4BAA4B,CAAC"}
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
-
import { Pound } from "../value-objects/pound";
|
|
2
|
+
import { Pound, formatPound } from "../value-objects/pound";
|
|
3
|
+
import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
|
|
3
4
|
const unsecuredLoanCommitmentSchema = new mongoose.Schema({
|
|
4
5
|
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
5
|
-
lenderName: { type: String
|
|
6
|
+
lenderName: { type: String }, // Provider Name / Provider category
|
|
6
7
|
commitmentId: { type: String, default: null },
|
|
7
8
|
purpose: { type: String, default: null },
|
|
8
|
-
doHaveSharedResponsibility: {
|
|
9
|
-
type: Boolean,
|
|
10
|
-
},
|
|
9
|
+
doHaveSharedResponsibility: { type: Boolean, default: false },
|
|
11
10
|
sharedMortgage: { type: String, default: null },
|
|
12
11
|
remainingTerm: { type: Number, default: null }, // Remaining term
|
|
13
12
|
startDate: { type: String, default: null },
|
|
14
|
-
outstandingBalance: { type: Pound, required: true }, // Balance
|
|
15
|
-
monthlyPayment: { type: Pound, required: true }, // Monthly payment
|
|
13
|
+
outstandingBalance: { type: Pound, required: true, get: formatPound }, // Balance
|
|
14
|
+
monthlyPayment: { type: Pound, required: true, get: formatPound }, // Monthly payment
|
|
16
15
|
source: {
|
|
17
16
|
type: String,
|
|
18
17
|
enum: ["Broker", "Credit Report", "Underwriter"],
|
|
19
18
|
default: "Broker"
|
|
20
19
|
},
|
|
21
|
-
isSelected: { type: Boolean, default:
|
|
20
|
+
isSelected: { type: Boolean, default: false }, // mark as selected for summary calculation
|
|
22
21
|
// Unique fields from loan model
|
|
23
22
|
commitmentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
24
23
|
loanTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
@@ -33,5 +32,6 @@ unsecuredLoanCommitmentSchema.virtual('lendingType').get(function () {
|
|
|
33
32
|
? null
|
|
34
33
|
: this.applicantId?.applicationId?.lendingTypeLid?.name || null;
|
|
35
34
|
});
|
|
35
|
+
applyAuditMiddleware(unsecuredLoanCommitmentSchema, "UnsecuredLoanCommitment");
|
|
36
36
|
const UnsecuredLoanCommitmentModel = mongoose.model("UnsecuredLoanCommitment", unsecuredLoanCommitmentSchema);
|
|
37
37
|
export default UnsecuredLoanCommitmentModel;
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
5
|
+
/// <reference types="mongoose/types/callback" />
|
|
6
|
+
/// <reference types="mongoose/types/collection" />
|
|
7
|
+
/// <reference types="mongoose/types/connection" />
|
|
8
|
+
/// <reference types="mongoose/types/cursor" />
|
|
9
|
+
/// <reference types="mongoose/types/document" />
|
|
10
|
+
/// <reference types="mongoose/types/error" />
|
|
11
|
+
/// <reference types="mongoose/types/expressions" />
|
|
12
|
+
/// <reference types="mongoose/types/helpers" />
|
|
13
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
14
|
+
/// <reference types="mongoose/types/indexes" />
|
|
15
|
+
/// <reference types="mongoose/types/models" />
|
|
16
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
17
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
18
|
+
/// <reference types="mongoose/types/populate" />
|
|
19
|
+
/// <reference types="mongoose/types/query" />
|
|
20
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
21
|
+
/// <reference types="mongoose/types/session" />
|
|
22
|
+
/// <reference types="mongoose/types/types" />
|
|
23
|
+
/// <reference types="mongoose/types/utility" />
|
|
24
|
+
/// <reference types="mongoose/types/validation" />
|
|
25
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
26
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
27
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
28
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
1
29
|
import mongoose from "mongoose";
|
|
2
30
|
declare const applicantCreditDataSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
3
31
|
statusLid: mongoose.Types.ObjectId;
|
|
@@ -15,7 +43,7 @@ declare const applicantCreditDataSchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
15
43
|
unsecuredArrears: string;
|
|
16
44
|
valid: string;
|
|
17
45
|
creditDefaults?: string | null | undefined;
|
|
18
|
-
}
|
|
46
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
19
47
|
statusLid: mongoose.Types.ObjectId;
|
|
20
48
|
bankruptcy: string;
|
|
21
49
|
countyCourtJudgment: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-credit-data.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-credit-data.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ7B,CAAC;AAEH,eAAe,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"applicant-credit-data.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-credit-data.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ7B,CAAC;AAEH,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
5
|
+
/// <reference types="mongoose/types/callback" />
|
|
6
|
+
/// <reference types="mongoose/types/collection" />
|
|
7
|
+
/// <reference types="mongoose/types/connection" />
|
|
8
|
+
/// <reference types="mongoose/types/cursor" />
|
|
9
|
+
/// <reference types="mongoose/types/document" />
|
|
10
|
+
/// <reference types="mongoose/types/error" />
|
|
11
|
+
/// <reference types="mongoose/types/expressions" />
|
|
12
|
+
/// <reference types="mongoose/types/helpers" />
|
|
13
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
14
|
+
/// <reference types="mongoose/types/indexes" />
|
|
15
|
+
/// <reference types="mongoose/types/models" />
|
|
16
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
17
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
18
|
+
/// <reference types="mongoose/types/populate" />
|
|
19
|
+
/// <reference types="mongoose/types/query" />
|
|
20
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
21
|
+
/// <reference types="mongoose/types/session" />
|
|
22
|
+
/// <reference types="mongoose/types/types" />
|
|
23
|
+
/// <reference types="mongoose/types/utility" />
|
|
24
|
+
/// <reference types="mongoose/types/validation" />
|
|
25
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
26
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
27
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
28
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
1
29
|
import mongoose from "mongoose";
|
|
2
30
|
declare const creditProfileSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
3
31
|
anyVoluntaryEnforcedPossessionNo: string;
|
|
@@ -9,7 +37,7 @@ declare const creditProfileSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
9
37
|
bankruptcyNo: string;
|
|
10
38
|
ccjInLastThreeYearNo: string;
|
|
11
39
|
defaultsInLastYearNo: string;
|
|
12
|
-
}
|
|
40
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
13
41
|
anyVoluntaryEnforcedPossessionNo: string;
|
|
14
42
|
bankruptcyNo: string;
|
|
15
43
|
ccjInLastThreeYearNo: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-credit-profile.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-credit-profile.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;EAiBvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"applicant-credit-profile.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-credit-profile.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;EAiBvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
5
|
+
/// <reference types="mongoose/types/callback" />
|
|
6
|
+
/// <reference types="mongoose/types/collection" />
|
|
7
|
+
/// <reference types="mongoose/types/connection" />
|
|
8
|
+
/// <reference types="mongoose/types/cursor" />
|
|
9
|
+
/// <reference types="mongoose/types/document" />
|
|
10
|
+
/// <reference types="mongoose/types/error" />
|
|
11
|
+
/// <reference types="mongoose/types/expressions" />
|
|
12
|
+
/// <reference types="mongoose/types/helpers" />
|
|
13
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
14
|
+
/// <reference types="mongoose/types/indexes" />
|
|
15
|
+
/// <reference types="mongoose/types/models" />
|
|
16
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
17
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
18
|
+
/// <reference types="mongoose/types/populate" />
|
|
19
|
+
/// <reference types="mongoose/types/query" />
|
|
20
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
21
|
+
/// <reference types="mongoose/types/session" />
|
|
22
|
+
/// <reference types="mongoose/types/types" />
|
|
23
|
+
/// <reference types="mongoose/types/utility" />
|
|
24
|
+
/// <reference types="mongoose/types/validation" />
|
|
25
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
26
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
27
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
28
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
1
29
|
import mongoose from 'mongoose';
|
|
2
30
|
declare const applicantDirectDebitSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
3
31
|
timestamps: true;
|
|
@@ -35,7 +63,7 @@ declare const applicantDirectDebitSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
35
63
|
sortCode?: string | null | undefined;
|
|
36
64
|
selectedPaymentDay?: string | null | undefined;
|
|
37
65
|
Applicants?: string | null | undefined;
|
|
38
|
-
}
|
|
66
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
39
67
|
createdAt: NativeDate;
|
|
40
68
|
updatedAt: NativeDate;
|
|
41
69
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-direct-debit.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcR,CAAC;AAEzB,eAAe,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"applicant-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-direct-debit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcR,CAAC;AAEzB,eAAe,0BAA0B,CAAC"}
|