@dynamatix/gb-schemas 2.0.20 → 2.0.22
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/entities/applicants/applicant-employment-income.entity.ts +4 -0
- package/entities/applicants/applicant-employment.entity.ts +5 -0
- package/entities/applicants/applicant-expenditure.entity.ts +4 -0
- package/entities/applicants/index.ts +1 -0
- package/entities/applications/index.ts +0 -8
- package/package.json +1 -1
- package/dist/applicants/applicant-additional-income.model.d.ts +0 -214
- package/dist/applicants/applicant-additional-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-additional-income.model.js +0 -13
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts +0 -534
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +0 -1
- package/dist/applicants/applicant-commitment-creditCard.model.js +0 -34
- package/dist/applicants/applicant-commitment-loan.model.d.ts +0 -420
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +0 -1
- package/dist/applicants/applicant-commitment-loan.model.js +0 -38
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +0 -498
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +0 -1
- package/dist/applicants/applicant-commitment-mortgage.model.js +0 -69
- package/dist/applicants/applicant-commitment-residence.model.d.ts +0 -754
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +0 -1
- package/dist/applicants/applicant-commitment-residence.model.js +0 -50
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +0 -394
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +0 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.js +0 -29
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +0 -388
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +0 -1
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +0 -28
- package/dist/applicants/applicant-credit-data.model.d.ts +0 -59
- package/dist/applicants/applicant-credit-data.model.d.ts.map +0 -1
- package/dist/applicants/applicant-credit-data.model.js +0 -11
- package/dist/applicants/applicant-credit-profile.model.d.ts +0 -50
- package/dist/applicants/applicant-credit-profile.model.d.ts.map +0 -1
- package/dist/applicants/applicant-credit-profile.model.js +0 -20
- package/dist/applicants/applicant-direct-debit.model.d.ts +0 -88
- package/dist/applicants/applicant-direct-debit.model.d.ts.map +0 -1
- package/dist/applicants/applicant-direct-debit.model.js +0 -17
- package/dist/applicants/applicant-employment-income.model.d.ts +0 -201
- package/dist/applicants/applicant-employment-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-employment-income.model.js +0 -9
- package/dist/applicants/applicant-employment.model.d.ts +0 -162
- package/dist/applicants/applicant-employment.model.d.ts.map +0 -1
- package/dist/applicants/applicant-employment.model.js +0 -50
- package/dist/applicants/applicant-expenditure.model.d.ts +0 -113
- package/dist/applicants/applicant-expenditure.model.d.ts.map +0 -1
- package/dist/applicants/applicant-expenditure.model.js +0 -54
- package/dist/applicants/applicant-income-source.model.d.ts +0 -53
- package/dist/applicants/applicant-income-source.model.d.ts.map +0 -1
- package/dist/applicants/applicant-income-source.model.js +0 -9
- package/dist/applicants/applicant-income.model.d.ts +0 -234
- package/dist/applicants/applicant-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-income.model.js +0 -81
- package/dist/applicants/applicant-other-income.model.d.ts +0 -111
- package/dist/applicants/applicant-other-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-other-income.model.js +0 -46
- package/dist/applicants/applicant-pension-income.model.d.ts +0 -771
- package/dist/applicants/applicant-pension-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-pension-income.model.js +0 -27
- package/dist/applicants/applicant-property-income.model.d.ts +0 -933
- package/dist/applicants/applicant-property-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-property-income.model.js +0 -23
- package/dist/applicants/applicant-risk-narrative.model.d.ts +0 -65
- package/dist/applicants/applicant-risk-narrative.model.d.ts.map +0 -1
- package/dist/applicants/applicant-risk-narrative.model.js +0 -13
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts +0 -777
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +0 -1
- package/dist/applicants/applicant-uk-tax-credits.model.js +0 -13
- package/dist/applicants/applicant.model.d.ts +0 -161
- package/dist/applicants/applicant.model.d.ts.map +0 -1
- package/dist/applicants/applicant.model.js +0 -223
- package/dist/applicants/index.d.ts +0 -14
- package/dist/applicants/index.d.ts.map +0 -1
- package/dist/applicants/index.js +0 -13
- package/dist/applications/application-audit.model.d.ts +0 -119
- package/dist/applications/application-audit.model.d.ts.map +0 -1
- package/dist/applications/application-audit.model.js +0 -42
- package/dist/applications/application-checklist-Item.model.d.ts +0 -285
- package/dist/applications/application-checklist-Item.model.d.ts.map +0 -1
- package/dist/applications/application-checklist-Item.model.js +0 -45
- package/dist/applications/application-company-model.d.ts +0 -1510
- package/dist/applications/application-company-model.d.ts.map +0 -1
- package/dist/applications/application-company-model.js +0 -120
- package/dist/applications/application-credit-profile.model.d.ts +0 -62
- package/dist/applications/application-credit-profile.model.d.ts.map +0 -1
- package/dist/applications/application-credit-profile.model.js +0 -12
- package/dist/applications/application-direct-debit.model.d.ts +0 -571
- package/dist/applications/application-direct-debit.model.d.ts.map +0 -1
- package/dist/applications/application-direct-debit.model.js +0 -92
- package/dist/applications/application-document.model.d.ts +0 -185
- package/dist/applications/application-document.model.d.ts.map +0 -1
- package/dist/applications/application-document.model.js +0 -35
- package/dist/applications/application-fieldconfig.model.d.ts +0 -57
- package/dist/applications/application-fieldconfig.model.d.ts.map +0 -1
- package/dist/applications/application-fieldconfig.model.js +0 -7
- package/dist/applications/application-illustration-model.d.ts +0 -51
- package/dist/applications/application-illustration-model.d.ts.map +0 -1
- package/dist/applications/application-illustration-model.js +0 -6
- package/dist/applications/application-legal.model.d.ts +0 -57
- package/dist/applications/application-legal.model.d.ts.map +0 -1
- package/dist/applications/application-legal.model.js +0 -7
- package/dist/applications/application-mortgage.model.d.ts +0 -1229
- package/dist/applications/application-mortgage.model.d.ts.map +0 -1
- package/dist/applications/application-mortgage.model.js +0 -271
- package/dist/applications/application-note.model.d.ts +0 -171
- package/dist/applications/application-note.model.d.ts.map +0 -1
- package/dist/applications/application-note.model.js +0 -78
- package/dist/applications/application-offer.model.d.ts +0 -51
- package/dist/applications/application-offer.model.d.ts.map +0 -1
- package/dist/applications/application-offer.model.js +0 -6
- package/dist/applications/application-onboarding.model.d.ts +0 -69
- package/dist/applications/application-onboarding.model.d.ts.map +0 -1
- package/dist/applications/application-onboarding.model.js +0 -9
- package/dist/applications/application-product.model.d.ts +0 -147
- package/dist/applications/application-product.model.d.ts.map +0 -1
- package/dist/applications/application-product.model.js +0 -67
- package/dist/applications/application-productfeatures.model.d.ts +0 -765
- package/dist/applications/application-productfeatures.model.d.ts.map +0 -1
- package/dist/applications/application-productfeatures.model.js +0 -96
- package/dist/applications/application-rationale.model.d.ts +0 -243
- package/dist/applications/application-rationale.model.d.ts.map +0 -1
- package/dist/applications/application-rationale.model.js +0 -38
- package/dist/applications/application-risk-narrative.model.d.ts +0 -87
- package/dist/applications/application-risk-narrative.model.d.ts.map +0 -1
- package/dist/applications/application-risk-narrative.model.js +0 -12
- package/dist/applications/application-valuation.model.d.ts +0 -71
- package/dist/applications/application-valuation.model.d.ts.map +0 -1
- package/dist/applications/application-valuation.model.js +0 -15
- package/dist/applications/application.model.d.ts +0 -455
- package/dist/applications/application.model.d.ts.map +0 -1
- package/dist/applications/application.model.js +0 -153
- package/dist/applications/broker.model.d.ts +0 -161
- package/dist/applications/broker.model.d.ts.map +0 -1
- package/dist/applications/broker.model.js +0 -21
- package/dist/applications/document.model.d.ts +0 -185
- package/dist/applications/document.model.d.ts.map +0 -1
- package/dist/applications/document.model.js +0 -35
- package/dist/applications/index.d.ts +0 -21
- package/dist/applications/index.d.ts.map +0 -1
- package/dist/applications/index.js +0 -20
- package/dist/applications/productfeatures.model.d.ts +0 -395
- package/dist/applications/productfeatures.model.d.ts.map +0 -1
- package/dist/applications/productfeatures.model.js +0 -94
- package/dist/applications/solicitor.model.d.ts +0 -203
- package/dist/applications/solicitor.model.d.ts.map +0 -1
- package/dist/applications/solicitor.model.js +0 -114
- 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.entity.d.ts +0 -53
- package/dist/entities/applicants/applicant-employment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-employment.entity.js +0 -2
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts +0 -13
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-expenditure.entity.js +0 -2
- package/dist/entities/applicants/applicant-income-source.entity.d.ts +0 -17
- package/dist/entities/applicants/applicant-income-source.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-income-source.entity.js +0 -5
- package/dist/entities/applicants/applicant-income.entity.d.ts +0 -59
- 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.entity.d.ts +0 -143
- 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 -16
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/credit-card-commitment.entity.js +0 -5
- package/dist/entities/applicants/credit-data.entity.d.ts +0 -19
- package/dist/entities/applicants/credit-data.entity.d.ts.map +0 -1
- package/dist/entities/applicants/credit-data.entity.js +0 -5
- package/dist/entities/applicants/credit-profile.entity.d.ts +0 -11
- package/dist/entities/applicants/credit-profile.entity.d.ts.map +0 -1
- package/dist/entities/applicants/credit-profile.entity.js +0 -5
- package/dist/entities/applicants/direct-debit.entity.d.ts +0 -25
- package/dist/entities/applicants/direct-debit.entity.d.ts.map +0 -1
- package/dist/entities/applicants/direct-debit.entity.js +0 -5
- package/dist/entities/applicants/employment.entity.d.ts +0 -59
- package/dist/entities/applicants/employment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/employment.entity.js +0 -2
- package/dist/entities/applicants/expenditure.entity.d.ts +0 -24
- package/dist/entities/applicants/expenditure.entity.d.ts.map +0 -1
- package/dist/entities/applicants/expenditure.entity.js +0 -5
- package/dist/entities/applicants/income-source.entity.d.ts +0 -17
- package/dist/entities/applicants/income-source.entity.d.ts.map +0 -1
- package/dist/entities/applicants/income-source.entity.js +0 -5
- package/dist/entities/applicants/income.entity.d.ts +0 -54
- package/dist/entities/applicants/income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/income.entity.js +0 -5
- package/dist/entities/applicants/index.d.ts +0 -18
- package/dist/entities/applicants/index.d.ts.map +0 -1
- package/dist/entities/applicants/index.js +0 -16
- package/dist/entities/applicants/loan-commitment.entity.d.ts +0 -20
- package/dist/entities/applicants/loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/loan-commitment.entity.js +0 -5
- package/dist/entities/applicants/lookup.entity.d.ts +0 -10
- package/dist/entities/applicants/lookup.entity.d.ts.map +0 -1
- package/dist/entities/applicants/lookup.entity.js +0 -5
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts +0 -37
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/mortgage-commitment.entity.js +0 -19
- 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/risk-narrative.entity.d.ts +0 -23
- package/dist/entities/applicants/risk-narrative.entity.d.ts.map +0 -1
- package/dist/entities/applicants/risk-narrative.entity.js +0 -5
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts +0 -21
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/secure-loan-commitment.entity.js +0 -9
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts +0 -20
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/unsecured-loan-commitment.entity.js +0 -10
- 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 -12
- package/dist/entities/applications/application-company.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-company.entity.js +0 -5
- 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 -12
- 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 -36
- 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-risk-narrative.entity.d.ts +0 -17
- package/dist/entities/applications/application-risk-narrative.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-risk-narrative.entity.js +0 -5
- package/dist/entities/applications/application-valuation.entity.d.ts +0 -18
- package/dist/entities/applications/application-valuation.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-valuation.entity.js +0 -5
- package/dist/entities/applications/application.entity.d.ts +0 -99
- 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/company.entity.d.ts +0 -77
- package/dist/entities/applications/company.entity.d.ts.map +0 -1
- package/dist/entities/applications/company.entity.js +0 -23
- package/dist/entities/applications/credit-profile.entity.d.ts +0 -11
- package/dist/entities/applications/credit-profile.entity.d.ts.map +0 -1
- package/dist/entities/applications/credit-profile.entity.js +0 -5
- package/dist/entities/applications/index.d.ts +0 -25
- package/dist/entities/applications/index.d.ts.map +0 -1
- package/dist/entities/applications/index.js +0 -23
- package/dist/entities/applications/product-features.entity.d.ts +0 -54
- package/dist/entities/applications/product-features.entity.d.ts.map +0 -1
- package/dist/entities/applications/product-features.entity.js +0 -5
- 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 -8
- package/dist/entities/product-catalogues/index.d.ts.map +0 -1
- package/dist/entities/product-catalogues/index.js +0 -6
- 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 -16
- 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/product-catalogues/rule.entity.d.ts +0 -21
- package/dist/entities/product-catalogues/rule.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/rule.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 -57
- 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-run.model.js +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 -16
- 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 -12
- 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 -14
- 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 -35
- package/dist/entities/users/user.entity.d.ts.map +0 -1
- package/dist/entities/users/user.entity.js +0 -10
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -9
- package/dist/product-catalogues/index.d.ts +0 -4
- package/dist/product-catalogues/index.d.ts.map +0 -1
- package/dist/product-catalogues/index.js +0 -3
- package/dist/product-catalogues/product-catalogue.model.d.ts +0 -131
- package/dist/product-catalogues/product-catalogue.model.d.ts.map +0 -1
- package/dist/product-catalogues/product-catalogue.model.js +0 -18
- package/dist/product-catalogues/product-definitions.model.d.ts +0 -317
- package/dist/product-catalogues/product-definitions.model.d.ts.map +0 -1
- package/dist/product-catalogues/product-definitions.model.js +0 -26
- package/dist/product-catalogues/product-variant.model.d.ts +0 -95
- package/dist/product-catalogues/product-variant.model.d.ts.map +0 -1
- package/dist/product-catalogues/product-variant.model.js +0 -12
- package/dist/properties/index.d.ts +0 -3
- package/dist/properties/index.d.ts.map +0 -1
- package/dist/properties/index.js +0 -2
- package/dist/properties/property.model.d.ts +0 -1157
- package/dist/properties/property.model.d.ts.map +0 -1
- package/dist/properties/property.model.js +0 -144
- package/dist/properties/security.model.d.ts +0 -312
- package/dist/properties/security.model.d.ts.map +0 -1
- package/dist/properties/security.model.js +0 -143
- package/dist/shared/alert.model.d.ts +0 -101
- package/dist/shared/alert.model.d.ts.map +0 -1
- package/dist/shared/alert.model.js +0 -24
- package/dist/shared/apprivo-sync-journey.model.d.ts +0 -113
- package/dist/shared/apprivo-sync-journey.model.d.ts.map +0 -1
- package/dist/shared/apprivo-sync-journey.model.js +0 -17
- package/dist/shared/checklist.model.d.ts +0 -101
- package/dist/shared/checklist.model.d.ts.map +0 -1
- package/dist/shared/checklist.model.js +0 -30
- package/dist/shared/document-type-model.d.ts +0 -75
- package/dist/shared/document-type-model.d.ts.map +0 -1
- package/dist/shared/document-type-model.js +0 -10
- package/dist/shared/index.d.ts +0 -13
- package/dist/shared/index.d.ts.map +0 -1
- package/dist/shared/index.js +0 -12
- package/dist/shared/job-run.model.d.ts +0 -75
- package/dist/shared/job-run.model.d.ts.map +0 -1
- package/dist/shared/job-run.model.js +0 -14
- package/dist/shared/job-setting.model.d.ts +0 -69
- package/dist/shared/job-setting.model.d.ts.map +0 -1
- package/dist/shared/job-setting.model.js +0 -11
- package/dist/shared/lookup-group.model.d.ts +0 -57
- package/dist/shared/lookup-group.model.d.ts.map +0 -1
- package/dist/shared/lookup-group.model.js +0 -16
- package/dist/shared/lookup.model.d.ts +0 -69
- package/dist/shared/lookup.model.d.ts.map +0 -1
- package/dist/shared/lookup.model.js +0 -20
- package/dist/shared/schema-doc.model.d.ts +0 -75
- package/dist/shared/schema-doc.model.d.ts.map +0 -1
- package/dist/shared/schema-doc.model.js +0 -11
- package/dist/shared/system-parameter.model.d.ts +0 -87
- package/dist/shared/system-parameter.model.d.ts.map +0 -1
- package/dist/shared/system-parameter.model.js +0 -32
- package/dist/shared/task-document.model.d.ts +0 -69
- package/dist/shared/task-document.model.d.ts.map +0 -1
- package/dist/shared/task-document.model.js +0 -23
- package/dist/shared/task.model.d.ts +0 -233
- package/dist/shared/task.model.d.ts.map +0 -1
- package/dist/shared/task.model.js +0 -15
- package/dist/underwriter/index.d.ts +0 -2
- package/dist/underwriter/index.d.ts.map +0 -1
- package/dist/underwriter/index.js +0 -1
- package/dist/underwriter/underwriter.model.d.ts +0 -125
- package/dist/underwriter/underwriter.model.d.ts.map +0 -1
- package/dist/underwriter/underwriter.model.js +0 -17
- package/dist/users/auth-log.model.d.ts +0 -69
- package/dist/users/auth-log.model.d.ts.map +0 -1
- package/dist/users/auth-log.model.js +0 -21
- package/dist/users/index.d.ts +0 -7
- package/dist/users/index.d.ts.map +0 -1
- package/dist/users/index.js +0 -6
- package/dist/users/permission.model.d.ts +0 -83
- package/dist/users/permission.model.d.ts.map +0 -1
- package/dist/users/permission.model.js +0 -10
- package/dist/users/role-group.model.d.ts +0 -89
- package/dist/users/role-group.model.d.ts.map +0 -1
- package/dist/users/role-group.model.js +0 -14
- package/dist/users/role.model.d.ts +0 -89
- package/dist/users/role.model.d.ts.map +0 -1
- package/dist/users/role.model.js +0 -13
- package/dist/users/tasks.model.d.ts +0 -113
- package/dist/users/tasks.model.d.ts.map +0 -1
- package/dist/users/tasks.model.js +0 -15
- package/dist/users/user.model.d.ts +0 -215
- package/dist/users/user.model.d.ts.map +0 -1
- package/dist/users/user.model.js +0 -30
- package/dist/value-objects/pound.d.ts +0 -41
- package/dist/value-objects/pound.d.ts.map +0 -1
- package/dist/value-objects/pound.js +0 -26
- package/dist/value-objects/sort-code.d.ts +0 -41
- package/dist/value-objects/sort-code.d.ts.map +0 -1
- package/dist/value-objects/sort-code.js +0 -25
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"property.model.d.ts","sourceRoot":"","sources":["../../properties/property.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAoJ/C,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AACjE,eAAe,aAAa,CAAC"}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
import { Pound } from '../value-objects/pound';
|
|
3
|
-
const propertySchema = new mongoose.Schema({
|
|
4
|
-
applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application",
|
|
5
|
-
description: "Unique identifier for the application",
|
|
6
|
-
required: true
|
|
7
|
-
},
|
|
8
|
-
pageValidFlag: {
|
|
9
|
-
type: Boolean,
|
|
10
|
-
default: true,
|
|
11
|
-
description: "Flag indicating if the page is valid",
|
|
12
|
-
},
|
|
13
|
-
propertyId: {
|
|
14
|
-
type: String,
|
|
15
|
-
required: true,
|
|
16
|
-
unique: true,
|
|
17
|
-
description: "Unique identifier for the property"
|
|
18
|
-
},
|
|
19
|
-
addressLine1: {
|
|
20
|
-
type: String,
|
|
21
|
-
required: true,
|
|
22
|
-
maxLength: 35,
|
|
23
|
-
description: "First line of the property address"
|
|
24
|
-
},
|
|
25
|
-
addressLine2: {
|
|
26
|
-
type: String,
|
|
27
|
-
required: false,
|
|
28
|
-
maxLength: 35,
|
|
29
|
-
description: "Second line of the property address"
|
|
30
|
-
},
|
|
31
|
-
addressLine3: {
|
|
32
|
-
type: String,
|
|
33
|
-
required: false,
|
|
34
|
-
maxLength: 35,
|
|
35
|
-
description: "Third line of the property address"
|
|
36
|
-
},
|
|
37
|
-
associatedLoanPartiesIds: {
|
|
38
|
-
type: [mongoose.Schema.Types.ObjectId],
|
|
39
|
-
required: false,
|
|
40
|
-
description: "List of associated loan parties (either applicant or company)"
|
|
41
|
-
},
|
|
42
|
-
city: {
|
|
43
|
-
type: String,
|
|
44
|
-
required: false,
|
|
45
|
-
maxLength: 30,
|
|
46
|
-
description: "City where the property is located"
|
|
47
|
-
},
|
|
48
|
-
countryLid: {
|
|
49
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
50
|
-
ref: 'Lookup',
|
|
51
|
-
required: true,
|
|
52
|
-
description: "Country where the property is located",
|
|
53
|
-
},
|
|
54
|
-
lender: {
|
|
55
|
-
type: String,
|
|
56
|
-
required: true,
|
|
57
|
-
maxLength: 35,
|
|
58
|
-
description: "Lender providing the loan for the property"
|
|
59
|
-
},
|
|
60
|
-
marketValue: {
|
|
61
|
-
type: Pound,
|
|
62
|
-
required: true,
|
|
63
|
-
default: 0.00,
|
|
64
|
-
description: "The market value of the property",
|
|
65
|
-
},
|
|
66
|
-
monthlyRent: {
|
|
67
|
-
type: Pound,
|
|
68
|
-
required: true,
|
|
69
|
-
default: 0.00,
|
|
70
|
-
description: "The monthly rent value of the property"
|
|
71
|
-
},
|
|
72
|
-
monthlyRepayment: {
|
|
73
|
-
type: Pound,
|
|
74
|
-
required: true,
|
|
75
|
-
default: 0.00,
|
|
76
|
-
description: "The monthly repayment value for the property"
|
|
77
|
-
},
|
|
78
|
-
originalLoanBalance: {
|
|
79
|
-
type: Pound,
|
|
80
|
-
required: true,
|
|
81
|
-
default: 0.00,
|
|
82
|
-
description: "The original loan balance for the property"
|
|
83
|
-
},
|
|
84
|
-
outstandingBalance: {
|
|
85
|
-
type: Pound,
|
|
86
|
-
required: true,
|
|
87
|
-
default: 0.00,
|
|
88
|
-
description: "The remaining outstanding balance of the property loan"
|
|
89
|
-
},
|
|
90
|
-
otherOwnershipParties: {
|
|
91
|
-
type: String,
|
|
92
|
-
required: false,
|
|
93
|
-
maxLength: 500,
|
|
94
|
-
description: "Other parties that own the property"
|
|
95
|
-
},
|
|
96
|
-
postCode: {
|
|
97
|
-
type: String,
|
|
98
|
-
required: true,
|
|
99
|
-
maxLength: 50,
|
|
100
|
-
description: "The postCode for the property"
|
|
101
|
-
},
|
|
102
|
-
remainingTerm: {
|
|
103
|
-
type: Number,
|
|
104
|
-
required: true,
|
|
105
|
-
max: 4,
|
|
106
|
-
description: "The remaining term of the loan in years"
|
|
107
|
-
},
|
|
108
|
-
portfolioFile: {
|
|
109
|
-
type: String,
|
|
110
|
-
required: false,
|
|
111
|
-
description: "File containing the portfolio details"
|
|
112
|
-
}
|
|
113
|
-
}, {
|
|
114
|
-
timestamps: true,
|
|
115
|
-
toJSON: { virtuals: true },
|
|
116
|
-
toObject: { virtuals: true }
|
|
117
|
-
});
|
|
118
|
-
propertySchema.virtual('country').get(function () {
|
|
119
|
-
return this.countryLid instanceof mongoose.Types.ObjectId ? null : this.countryLid?.name || null;
|
|
120
|
-
});
|
|
121
|
-
propertySchema.virtual('stressedRCR').get(function () {
|
|
122
|
-
const monthlyRentValue = this.monthlyRent ? parseFloat(this.monthlyRent.toString()) : 0.00;
|
|
123
|
-
const monthlyRepaymentValue = this.monthlyRepayment ? parseFloat(this.monthlyRepayment.toString()) : 0.00;
|
|
124
|
-
// Avoid division by zero
|
|
125
|
-
if (monthlyRepaymentValue === 0) {
|
|
126
|
-
return '0.00'; // Return 0.00 if monthlyRepayment is zero
|
|
127
|
-
}
|
|
128
|
-
const stressedRCR = (monthlyRentValue / monthlyRepaymentValue) * 100;
|
|
129
|
-
return stressedRCR.toFixed(2);
|
|
130
|
-
});
|
|
131
|
-
// virtual property 'applicationType'
|
|
132
|
-
propertySchema.virtual('applicationType').get(function () {
|
|
133
|
-
return this.applicationId?.applicationTypeLid instanceof mongoose.Types.ObjectId
|
|
134
|
-
? null
|
|
135
|
-
: this.applicationId?.applicationTypeLid?.name || null;
|
|
136
|
-
});
|
|
137
|
-
// virtual property 'lendingType'
|
|
138
|
-
propertySchema.virtual('lendingType').get(function () {
|
|
139
|
-
return this.applicationId?.lendingTypeLid instanceof mongoose.Types.ObjectId
|
|
140
|
-
? null
|
|
141
|
-
: this.applicationId?.lendingTypeLid?.name || null;
|
|
142
|
-
});
|
|
143
|
-
const PropertyModel = mongoose.model('Property', propertySchema);
|
|
144
|
-
export default PropertyModel;
|
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
/// <reference path="../value-objects/pound.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/schematypes" />
|
|
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/inferschematype" />
|
|
27
|
-
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
28
|
-
import mongoose from "mongoose";
|
|
29
|
-
declare const SecurityModel: mongoose.Model<{
|
|
30
|
-
applicationId: any;
|
|
31
|
-
pageValidFlag: any;
|
|
32
|
-
haveAnyBuyToLetProperties: any;
|
|
33
|
-
isPropertyInEnglandOrWales: any;
|
|
34
|
-
noOfBuyToLetProperties: any;
|
|
35
|
-
totalMonthlyRentalIncome: any;
|
|
36
|
-
totalMonthlyRepayment: any;
|
|
37
|
-
totalOutstandingBalance: any;
|
|
38
|
-
areAllBedRoomsOver10sqm: any;
|
|
39
|
-
isBrickTileConstruction: any;
|
|
40
|
-
constructionDetails: any;
|
|
41
|
-
isExLAExclusion: any;
|
|
42
|
-
isFlatLift: any;
|
|
43
|
-
flatNumberOfBedrooms: any;
|
|
44
|
-
isGreenEPC: any;
|
|
45
|
-
isGroundRent: any;
|
|
46
|
-
isHouseLicensed: any;
|
|
47
|
-
houseNumberOfFloors: any;
|
|
48
|
-
houseNumberOfKitchens: any;
|
|
49
|
-
houseNumberOfLivingRooms: any;
|
|
50
|
-
houseNumberOfBathrooms: any;
|
|
51
|
-
houseNumberOfTenancies: any;
|
|
52
|
-
hasHousePlanningPermission: any;
|
|
53
|
-
isGarage: any;
|
|
54
|
-
isNewBuild: any;
|
|
55
|
-
propertyAddressCity: any;
|
|
56
|
-
propertyAddressCountryLid: any;
|
|
57
|
-
propertyAddressLine1: any;
|
|
58
|
-
propertyAddressLine2: any;
|
|
59
|
-
propertyAddressLine3: any;
|
|
60
|
-
propertyAddressPostCode: any;
|
|
61
|
-
propertyTenureLid: any;
|
|
62
|
-
propertyTypeLid: any;
|
|
63
|
-
propertyYearBuilt: any;
|
|
64
|
-
receiptOfAnyDiscount: any;
|
|
65
|
-
receiptOfDiscountDetails: any;
|
|
66
|
-
sectorExperience: any;
|
|
67
|
-
serviceCharge: any;
|
|
68
|
-
unexpiredRemainingLease: any;
|
|
69
|
-
yearLeaseExpires: any;
|
|
70
|
-
energyEfficiencyRating: any;
|
|
71
|
-
energyEfficiencyRatingValue: any;
|
|
72
|
-
dataStreetSchema: any;
|
|
73
|
-
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
74
|
-
applicationId: any;
|
|
75
|
-
pageValidFlag: any;
|
|
76
|
-
haveAnyBuyToLetProperties: any;
|
|
77
|
-
isPropertyInEnglandOrWales: any;
|
|
78
|
-
noOfBuyToLetProperties: any;
|
|
79
|
-
totalMonthlyRentalIncome: any;
|
|
80
|
-
totalMonthlyRepayment: any;
|
|
81
|
-
totalOutstandingBalance: any;
|
|
82
|
-
areAllBedRoomsOver10sqm: any;
|
|
83
|
-
isBrickTileConstruction: any;
|
|
84
|
-
constructionDetails: any;
|
|
85
|
-
isExLAExclusion: any;
|
|
86
|
-
isFlatLift: any;
|
|
87
|
-
flatNumberOfBedrooms: any;
|
|
88
|
-
isGreenEPC: any;
|
|
89
|
-
isGroundRent: any;
|
|
90
|
-
isHouseLicensed: any;
|
|
91
|
-
houseNumberOfFloors: any;
|
|
92
|
-
houseNumberOfKitchens: any;
|
|
93
|
-
houseNumberOfLivingRooms: any;
|
|
94
|
-
houseNumberOfBathrooms: any;
|
|
95
|
-
houseNumberOfTenancies: any;
|
|
96
|
-
hasHousePlanningPermission: any;
|
|
97
|
-
isGarage: any;
|
|
98
|
-
isNewBuild: any;
|
|
99
|
-
propertyAddressCity: any;
|
|
100
|
-
propertyAddressCountryLid: any;
|
|
101
|
-
propertyAddressLine1: any;
|
|
102
|
-
propertyAddressLine2: any;
|
|
103
|
-
propertyAddressLine3: any;
|
|
104
|
-
propertyAddressPostCode: any;
|
|
105
|
-
propertyTenureLid: any;
|
|
106
|
-
propertyTypeLid: any;
|
|
107
|
-
propertyYearBuilt: any;
|
|
108
|
-
receiptOfAnyDiscount: any;
|
|
109
|
-
receiptOfDiscountDetails: any;
|
|
110
|
-
sectorExperience: any;
|
|
111
|
-
serviceCharge: any;
|
|
112
|
-
unexpiredRemainingLease: any;
|
|
113
|
-
yearLeaseExpires: any;
|
|
114
|
-
energyEfficiencyRating: any;
|
|
115
|
-
energyEfficiencyRatingValue: any;
|
|
116
|
-
dataStreetSchema: any;
|
|
117
|
-
}> & {
|
|
118
|
-
applicationId: any;
|
|
119
|
-
pageValidFlag: any;
|
|
120
|
-
haveAnyBuyToLetProperties: any;
|
|
121
|
-
isPropertyInEnglandOrWales: any;
|
|
122
|
-
noOfBuyToLetProperties: any;
|
|
123
|
-
totalMonthlyRentalIncome: any;
|
|
124
|
-
totalMonthlyRepayment: any;
|
|
125
|
-
totalOutstandingBalance: any;
|
|
126
|
-
areAllBedRoomsOver10sqm: any;
|
|
127
|
-
isBrickTileConstruction: any;
|
|
128
|
-
constructionDetails: any;
|
|
129
|
-
isExLAExclusion: any;
|
|
130
|
-
isFlatLift: any;
|
|
131
|
-
flatNumberOfBedrooms: any;
|
|
132
|
-
isGreenEPC: any;
|
|
133
|
-
isGroundRent: any;
|
|
134
|
-
isHouseLicensed: any;
|
|
135
|
-
houseNumberOfFloors: any;
|
|
136
|
-
houseNumberOfKitchens: any;
|
|
137
|
-
houseNumberOfLivingRooms: any;
|
|
138
|
-
houseNumberOfBathrooms: any;
|
|
139
|
-
houseNumberOfTenancies: any;
|
|
140
|
-
hasHousePlanningPermission: any;
|
|
141
|
-
isGarage: any;
|
|
142
|
-
isNewBuild: any;
|
|
143
|
-
propertyAddressCity: any;
|
|
144
|
-
propertyAddressCountryLid: any;
|
|
145
|
-
propertyAddressLine1: any;
|
|
146
|
-
propertyAddressLine2: any;
|
|
147
|
-
propertyAddressLine3: any;
|
|
148
|
-
propertyAddressPostCode: any;
|
|
149
|
-
propertyTenureLid: any;
|
|
150
|
-
propertyTypeLid: any;
|
|
151
|
-
propertyYearBuilt: any;
|
|
152
|
-
receiptOfAnyDiscount: any;
|
|
153
|
-
receiptOfDiscountDetails: any;
|
|
154
|
-
sectorExperience: any;
|
|
155
|
-
serviceCharge: any;
|
|
156
|
-
unexpiredRemainingLease: any;
|
|
157
|
-
yearLeaseExpires: any;
|
|
158
|
-
energyEfficiencyRating: any;
|
|
159
|
-
energyEfficiencyRatingValue: any;
|
|
160
|
-
dataStreetSchema: any;
|
|
161
|
-
} & {
|
|
162
|
-
_id: mongoose.Types.ObjectId;
|
|
163
|
-
} & {
|
|
164
|
-
__v: number;
|
|
165
|
-
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
166
|
-
toJSON: {
|
|
167
|
-
getters: true;
|
|
168
|
-
virtuals: true;
|
|
169
|
-
};
|
|
170
|
-
toObject: {
|
|
171
|
-
getters: true;
|
|
172
|
-
virtuals: true;
|
|
173
|
-
};
|
|
174
|
-
}, {
|
|
175
|
-
applicationId: any;
|
|
176
|
-
pageValidFlag: any;
|
|
177
|
-
haveAnyBuyToLetProperties: any;
|
|
178
|
-
isPropertyInEnglandOrWales: any;
|
|
179
|
-
noOfBuyToLetProperties: any;
|
|
180
|
-
totalMonthlyRentalIncome: any;
|
|
181
|
-
totalMonthlyRepayment: any;
|
|
182
|
-
totalOutstandingBalance: any;
|
|
183
|
-
areAllBedRoomsOver10sqm: any;
|
|
184
|
-
isBrickTileConstruction: any;
|
|
185
|
-
constructionDetails: any;
|
|
186
|
-
isExLAExclusion: any;
|
|
187
|
-
isFlatLift: any;
|
|
188
|
-
flatNumberOfBedrooms: any;
|
|
189
|
-
isGreenEPC: any;
|
|
190
|
-
isGroundRent: any;
|
|
191
|
-
isHouseLicensed: any;
|
|
192
|
-
houseNumberOfFloors: any;
|
|
193
|
-
houseNumberOfKitchens: any;
|
|
194
|
-
houseNumberOfLivingRooms: any;
|
|
195
|
-
houseNumberOfBathrooms: any;
|
|
196
|
-
houseNumberOfTenancies: any;
|
|
197
|
-
hasHousePlanningPermission: any;
|
|
198
|
-
isGarage: any;
|
|
199
|
-
isNewBuild: any;
|
|
200
|
-
propertyAddressCity: any;
|
|
201
|
-
propertyAddressCountryLid: any;
|
|
202
|
-
propertyAddressLine1: any;
|
|
203
|
-
propertyAddressLine2: any;
|
|
204
|
-
propertyAddressLine3: any;
|
|
205
|
-
propertyAddressPostCode: any;
|
|
206
|
-
propertyTenureLid: any;
|
|
207
|
-
propertyTypeLid: any;
|
|
208
|
-
propertyYearBuilt: any;
|
|
209
|
-
receiptOfAnyDiscount: any;
|
|
210
|
-
receiptOfDiscountDetails: any;
|
|
211
|
-
sectorExperience: any;
|
|
212
|
-
serviceCharge: any;
|
|
213
|
-
unexpiredRemainingLease: any;
|
|
214
|
-
yearLeaseExpires: any;
|
|
215
|
-
energyEfficiencyRating: any;
|
|
216
|
-
energyEfficiencyRatingValue: any;
|
|
217
|
-
dataStreetSchema: any;
|
|
218
|
-
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
219
|
-
applicationId: any;
|
|
220
|
-
pageValidFlag: any;
|
|
221
|
-
haveAnyBuyToLetProperties: any;
|
|
222
|
-
isPropertyInEnglandOrWales: any;
|
|
223
|
-
noOfBuyToLetProperties: any;
|
|
224
|
-
totalMonthlyRentalIncome: any;
|
|
225
|
-
totalMonthlyRepayment: any;
|
|
226
|
-
totalOutstandingBalance: any;
|
|
227
|
-
areAllBedRoomsOver10sqm: any;
|
|
228
|
-
isBrickTileConstruction: any;
|
|
229
|
-
constructionDetails: any;
|
|
230
|
-
isExLAExclusion: any;
|
|
231
|
-
isFlatLift: any;
|
|
232
|
-
flatNumberOfBedrooms: any;
|
|
233
|
-
isGreenEPC: any;
|
|
234
|
-
isGroundRent: any;
|
|
235
|
-
isHouseLicensed: any;
|
|
236
|
-
houseNumberOfFloors: any;
|
|
237
|
-
houseNumberOfKitchens: any;
|
|
238
|
-
houseNumberOfLivingRooms: any;
|
|
239
|
-
houseNumberOfBathrooms: any;
|
|
240
|
-
houseNumberOfTenancies: any;
|
|
241
|
-
hasHousePlanningPermission: any;
|
|
242
|
-
isGarage: any;
|
|
243
|
-
isNewBuild: any;
|
|
244
|
-
propertyAddressCity: any;
|
|
245
|
-
propertyAddressCountryLid: any;
|
|
246
|
-
propertyAddressLine1: any;
|
|
247
|
-
propertyAddressLine2: any;
|
|
248
|
-
propertyAddressLine3: any;
|
|
249
|
-
propertyAddressPostCode: any;
|
|
250
|
-
propertyTenureLid: any;
|
|
251
|
-
propertyTypeLid: any;
|
|
252
|
-
propertyYearBuilt: any;
|
|
253
|
-
receiptOfAnyDiscount: any;
|
|
254
|
-
receiptOfDiscountDetails: any;
|
|
255
|
-
sectorExperience: any;
|
|
256
|
-
serviceCharge: any;
|
|
257
|
-
unexpiredRemainingLease: any;
|
|
258
|
-
yearLeaseExpires: any;
|
|
259
|
-
energyEfficiencyRating: any;
|
|
260
|
-
energyEfficiencyRatingValue: any;
|
|
261
|
-
dataStreetSchema: any;
|
|
262
|
-
}>> & mongoose.FlatRecord<{
|
|
263
|
-
applicationId: any;
|
|
264
|
-
pageValidFlag: any;
|
|
265
|
-
haveAnyBuyToLetProperties: any;
|
|
266
|
-
isPropertyInEnglandOrWales: any;
|
|
267
|
-
noOfBuyToLetProperties: any;
|
|
268
|
-
totalMonthlyRentalIncome: any;
|
|
269
|
-
totalMonthlyRepayment: any;
|
|
270
|
-
totalOutstandingBalance: any;
|
|
271
|
-
areAllBedRoomsOver10sqm: any;
|
|
272
|
-
isBrickTileConstruction: any;
|
|
273
|
-
constructionDetails: any;
|
|
274
|
-
isExLAExclusion: any;
|
|
275
|
-
isFlatLift: any;
|
|
276
|
-
flatNumberOfBedrooms: any;
|
|
277
|
-
isGreenEPC: any;
|
|
278
|
-
isGroundRent: any;
|
|
279
|
-
isHouseLicensed: any;
|
|
280
|
-
houseNumberOfFloors: any;
|
|
281
|
-
houseNumberOfKitchens: any;
|
|
282
|
-
houseNumberOfLivingRooms: any;
|
|
283
|
-
houseNumberOfBathrooms: any;
|
|
284
|
-
houseNumberOfTenancies: any;
|
|
285
|
-
hasHousePlanningPermission: any;
|
|
286
|
-
isGarage: any;
|
|
287
|
-
isNewBuild: any;
|
|
288
|
-
propertyAddressCity: any;
|
|
289
|
-
propertyAddressCountryLid: any;
|
|
290
|
-
propertyAddressLine1: any;
|
|
291
|
-
propertyAddressLine2: any;
|
|
292
|
-
propertyAddressLine3: any;
|
|
293
|
-
propertyAddressPostCode: any;
|
|
294
|
-
propertyTenureLid: any;
|
|
295
|
-
propertyTypeLid: any;
|
|
296
|
-
propertyYearBuilt: any;
|
|
297
|
-
receiptOfAnyDiscount: any;
|
|
298
|
-
receiptOfDiscountDetails: any;
|
|
299
|
-
sectorExperience: any;
|
|
300
|
-
serviceCharge: any;
|
|
301
|
-
unexpiredRemainingLease: any;
|
|
302
|
-
yearLeaseExpires: any;
|
|
303
|
-
energyEfficiencyRating: any;
|
|
304
|
-
energyEfficiencyRatingValue: any;
|
|
305
|
-
dataStreetSchema: any;
|
|
306
|
-
}> & {
|
|
307
|
-
_id: mongoose.Types.ObjectId;
|
|
308
|
-
} & {
|
|
309
|
-
__v: number;
|
|
310
|
-
}>>;
|
|
311
|
-
export default SecurityModel;
|
|
312
|
-
//# sourceMappingURL=security.model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"security.model.d.ts","sourceRoot":"","sources":["../../properties/security.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA0JhC,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AACjE,eAAe,aAAa,CAAC"}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
// security.model.ts
|
|
2
|
-
import mongoose from "mongoose";
|
|
3
|
-
import { Pound } from "../value-objects/pound";
|
|
4
|
-
const dataStreetSchema = new mongoose.Schema({
|
|
5
|
-
floorArea: { type: String, default: '' },
|
|
6
|
-
propertyType: { type: String, default: '' },
|
|
7
|
-
noOfBedrooms: { type: String, default: 0 },
|
|
8
|
-
noOfBathrooms: { type: String, default: 0 },
|
|
9
|
-
lats: { type: String, },
|
|
10
|
-
longs: { type: String, },
|
|
11
|
-
lmkKey: { type: String, default: '' },
|
|
12
|
-
matchConfidence: { type: String, default: 0 },
|
|
13
|
-
transactions: [{
|
|
14
|
-
transactionDate: String,
|
|
15
|
-
epc: String,
|
|
16
|
-
price: String,
|
|
17
|
-
isNewBuild: String,
|
|
18
|
-
}],
|
|
19
|
-
nearByListings: [{
|
|
20
|
-
listedDate: String,
|
|
21
|
-
price: String,
|
|
22
|
-
noOfBedrooms: String,
|
|
23
|
-
noOfBathrooms: String,
|
|
24
|
-
internalArea: String,
|
|
25
|
-
distance: String,
|
|
26
|
-
address: String,
|
|
27
|
-
propertyType: String
|
|
28
|
-
}],
|
|
29
|
-
nearByCompletedTransactions: [{
|
|
30
|
-
transactionDate: String,
|
|
31
|
-
price: String,
|
|
32
|
-
noOfBedrooms: String,
|
|
33
|
-
noOfBathrooms: String,
|
|
34
|
-
internalArea: String,
|
|
35
|
-
distance: String,
|
|
36
|
-
address: String,
|
|
37
|
-
}],
|
|
38
|
-
risk: {
|
|
39
|
-
conservationArea: String,
|
|
40
|
-
listedBuildingsOnPlot: String,
|
|
41
|
-
nearByListedBuildings: [{
|
|
42
|
-
name: String,
|
|
43
|
-
listedDate: String,
|
|
44
|
-
grade: String,
|
|
45
|
-
disatanceInMetres: String
|
|
46
|
-
}],
|
|
47
|
-
floodRisk: {
|
|
48
|
-
riverAndSeaRisk: String,
|
|
49
|
-
surfaceWaterRisk: String,
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
const securitySchema = new mongoose.Schema({
|
|
54
|
-
applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true,
|
|
55
|
-
description: "Unique identifier for the application"
|
|
56
|
-
}, // not-form securityData
|
|
57
|
-
pageValidFlag: { type: Boolean, default: true, }, //form
|
|
58
|
-
haveAnyBuyToLetProperties: { type: Boolean, required: true, default: false }, // not-form propertyData - not in Property form
|
|
59
|
-
isPropertyInEnglandOrWales: { type: Boolean, required: true, default: false }, // not-form propertyData - not in Property form
|
|
60
|
-
// price: { type: Pound, required: true, default: 0.00} as any, // *already in Purchase Form -> not-form mortgateData - pounds
|
|
61
|
-
noOfBuyToLetProperties: { type: Number, default: 0 }, // not-form propertyData - not in Property form
|
|
62
|
-
totalMonthlyRentalIncome: { type: Pound, required: true, default: 0.00 }, // not-form pound propertyData - not in Property form
|
|
63
|
-
totalMonthlyRepayment: { type: Pound, required: true, default: 0.00 }, // not-form pound propertyData - not in Property form
|
|
64
|
-
totalOutstandingBalance: { type: Pound, required: true, default: 0.00 }, // not-form pound propertyData - not in Property form
|
|
65
|
-
areAllBedRoomsOver10sqm: { type: Boolean, required: true, default: false }, // form
|
|
66
|
-
isBrickTileConstruction: { type: Boolean, required: true, default: false }, // form
|
|
67
|
-
constructionDetails: { type: String, required: true, default: '' }, // form
|
|
68
|
-
isExLAExclusion: { type: Boolean, required: true, default: false }, // form
|
|
69
|
-
isFlatLift: { type: Boolean, required: true, default: false }, // form
|
|
70
|
-
flatNumberOfBedrooms: { type: Number, required: true, default: 0 }, // form
|
|
71
|
-
isGreenEPC: { type: Boolean, default: false }, // form
|
|
72
|
-
isGroundRent: {
|
|
73
|
-
type: Pound,
|
|
74
|
-
required: true,
|
|
75
|
-
default: 0.00 // Default value in correct format
|
|
76
|
-
}, // form - pounds
|
|
77
|
-
isHouseLicensed: { type: Boolean, required: true, default: false }, // form
|
|
78
|
-
houseNumberOfFloors: { type: Number, required: true, default: 0 }, // form
|
|
79
|
-
houseNumberOfKitchens: { type: Number, required: true, default: 0 }, // form
|
|
80
|
-
houseNumberOfLivingRooms: { type: Number, required: true, default: 0 }, // form
|
|
81
|
-
houseNumberOfBathrooms: { type: Number, required: true, default: 0 }, // form
|
|
82
|
-
houseNumberOfTenancies: { type: Number, required: true, default: 0 }, // form
|
|
83
|
-
hasHousePlanningPermission: { type: Boolean, required: true, default: false }, // not-form securityData
|
|
84
|
-
isGarage: { type: Boolean, default: false }, // form
|
|
85
|
-
isNewBuild: { type: Boolean, required: true, default: false }, // form
|
|
86
|
-
propertyAddressCity: { type: String, default: '', maxlength: 30 }, // form
|
|
87
|
-
propertyAddressCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }, // form
|
|
88
|
-
propertyAddressLine1: { type: String, required: true, maxlength: 35, default: '' }, // form
|
|
89
|
-
propertyAddressLine2: { type: String, default: '', maxlength: 35 }, // form
|
|
90
|
-
propertyAddressLine3: { type: String, default: '', maxlength: 35 }, // form
|
|
91
|
-
propertyAddressPostCode: { type: String, required: true, maxlength: 50, default: '' }, // form
|
|
92
|
-
propertyTenureLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }, // form
|
|
93
|
-
propertyTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" }, // form
|
|
94
|
-
propertyYearBuilt: { type: Number, required: true, max: 9999, default: 0 }, // form
|
|
95
|
-
receiptOfAnyDiscount: { type: Boolean, required: true, default: false }, // form
|
|
96
|
-
receiptOfDiscountDetails: { type: String, required: true, default: '', maxlength: 100 }, // form
|
|
97
|
-
sectorExperience: { type: String, required: true, default: '' }, // form
|
|
98
|
-
serviceCharge: {
|
|
99
|
-
type: Pound,
|
|
100
|
-
required: true,
|
|
101
|
-
default: 0.00 // Default value in correct format
|
|
102
|
-
}, // form - pounds
|
|
103
|
-
unexpiredRemainingLease: { type: Number, required: true, max: 9999, default: 0 }, // form
|
|
104
|
-
yearLeaseExpires: { type: Number, required: true, default: 0 }, // not-form securityData
|
|
105
|
-
energyEfficiencyRating: { type: String }, // not-form data-street
|
|
106
|
-
energyEfficiencyRatingValue: { type: String }, // not-form data-street
|
|
107
|
-
dataStreetSchema: dataStreetSchema, // not-form data-street
|
|
108
|
-
}, {
|
|
109
|
-
toJSON: { getters: true, virtuals: true },
|
|
110
|
-
toObject: { getters: true, virtuals: true }
|
|
111
|
-
});
|
|
112
|
-
// Virtual for 'tenure'
|
|
113
|
-
const virtualTenure = securitySchema.virtual('tenure', {
|
|
114
|
-
ref: 'Lookup',
|
|
115
|
-
localField: 'propertyTenureLid',
|
|
116
|
-
foreignField: '_id',
|
|
117
|
-
justOne: true,
|
|
118
|
-
options: { select: 'label' },
|
|
119
|
-
});
|
|
120
|
-
virtualTenure.description = 'Populated lookup value for the property tenure';
|
|
121
|
-
// Virtual for 'type'
|
|
122
|
-
const virtualType = securitySchema.virtual('type', {
|
|
123
|
-
ref: 'Lookup',
|
|
124
|
-
localField: 'propertyTypeLid',
|
|
125
|
-
foreignField: '_id',
|
|
126
|
-
justOne: true,
|
|
127
|
-
options: { select: 'label' },
|
|
128
|
-
});
|
|
129
|
-
virtualType.description = 'Populated lookup value for the property type';
|
|
130
|
-
// virtual property 'applicationType'
|
|
131
|
-
securitySchema.virtual('applicationType').get(function () {
|
|
132
|
-
return this.applicationId?.applicationTypeLid instanceof mongoose.Types.ObjectId
|
|
133
|
-
? null
|
|
134
|
-
: this.applicationId?.applicationTypeLid?.name || null;
|
|
135
|
-
});
|
|
136
|
-
// virtual property 'lendingType'
|
|
137
|
-
securitySchema.virtual('lendingType').get(function () {
|
|
138
|
-
return this.applicationId?.lendingTypeLid instanceof mongoose.Types.ObjectId
|
|
139
|
-
? null
|
|
140
|
-
: this.applicationId?.lendingTypeLid?.name || null;
|
|
141
|
-
});
|
|
142
|
-
const SecurityModel = mongoose.model("Security", securitySchema);
|
|
143
|
-
export default SecurityModel;
|