@dynamatix/gb-schemas 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts +26 -0
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-loan.model.d.ts +26 -0
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +26 -0
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-residence.model.d.ts +26 -0
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +26 -0
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +26 -0
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-data.model.d.ts +27 -0
- package/dist/applicants/applicant-credit-data.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-profile.model.d.ts +27 -0
- package/dist/applicants/applicant-credit-profile.model.d.ts.map +1 -1
- package/dist/applicants/applicant-direct-debit.model.d.ts +27 -0
- package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment-income.model.d.ts +201 -0
- package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-employment-income.model.js +9 -0
- package/dist/applicants/applicant-employment.model.d.ts +26 -18
- package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment.model.js +0 -6
- package/dist/applicants/applicant-expenditure.model.d.ts +99 -50
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.js +49 -18
- package/dist/applicants/applicant-income-source.model.d.ts +27 -0
- package/dist/applicants/applicant-income-source.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income.model.d.ts +38 -0
- package/dist/applicants/applicant-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income.model.js +5 -1
- package/dist/applicants/applicant-other-income.model.d.ts +26 -0
- package/dist/applicants/applicant-other-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-property-income.model.d.ts +26 -0
- package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-risk-narrative.model.d.ts +27 -0
- package/dist/applicants/applicant-risk-narrative.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.d.ts +716 -3096
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +0 -2
- package/dist/applicants/index.d.ts +2 -0
- package/dist/applicants/index.d.ts.map +1 -1
- package/dist/applicants/index.js +2 -0
- package/dist/applications/application-audit.model.d.ts +27 -0
- package/dist/applications/application-audit.model.d.ts.map +1 -1
- package/dist/applications/application-checklist-Item.model.d.ts +27 -0
- package/dist/applications/application-checklist-Item.model.d.ts.map +1 -1
- package/dist/applications/application-company-model.d.ts +26 -0
- package/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-credit-profile.model.d.ts +27 -0
- package/dist/applications/application-credit-profile.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.d.ts +26 -0
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
- package/dist/applications/application-document.model.d.ts +27 -0
- package/dist/applications/application-document.model.d.ts.map +1 -1
- package/dist/applications/application-fieldconfig.model.d.ts +27 -0
- package/dist/applications/application-fieldconfig.model.d.ts.map +1 -1
- package/dist/applications/application-illustration-model.d.ts +27 -0
- package/dist/applications/application-illustration-model.d.ts.map +1 -1
- package/dist/applications/application-legal.model.d.ts +27 -0
- package/dist/applications/application-legal.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.d.ts +26 -0
- package/dist/applications/application-mortgage.model.d.ts.map +1 -1
- package/dist/applications/application-note.model.d.ts +27 -0
- package/dist/applications/application-note.model.d.ts.map +1 -1
- package/dist/applications/application-offer.model.d.ts +27 -0
- package/dist/applications/application-offer.model.d.ts.map +1 -1
- package/dist/applications/application-onboarding.model.d.ts +27 -0
- package/dist/applications/application-onboarding.model.d.ts.map +1 -1
- package/dist/applications/application-product.model.d.ts +27 -0
- package/dist/applications/application-product.model.d.ts.map +1 -1
- package/dist/applications/application-rationale.model.d.ts +27 -0
- package/dist/applications/application-rationale.model.d.ts.map +1 -1
- package/dist/applications/application-risk-narrative.model.d.ts +27 -0
- package/dist/applications/application-risk-narrative.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.d.ts +27 -0
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application.model.d.ts +27 -0
- package/dist/applications/application.model.d.ts.map +1 -1
- package/dist/applications/broker.model.d.ts +27 -0
- package/dist/applications/broker.model.d.ts.map +1 -1
- package/dist/applications/document.model.d.ts +27 -0
- package/dist/applications/document.model.d.ts.map +1 -1
- package/dist/applications/productfeatures.model.d.ts +27 -0
- package/dist/applications/productfeatures.model.d.ts.map +1 -1
- package/dist/applications/solicitor.model.d.ts +26 -0
- package/dist/applications/solicitor.model.d.ts.map +1 -1
- package/dist/entities/applicants/applicant.entity.d.ts +0 -3
- package/dist/entities/applicants/applicant.entity.d.ts.map +1 -1
- package/dist/entities/applicants/applicant.entity.js +0 -3
- package/dist/entities/applicants/employment.entity.d.ts +1 -3
- package/dist/entities/applicants/employment.entity.d.ts.map +1 -1
- package/dist/entities/applicants/employment.entity.js +1 -9
- package/dist/entities/applications/company.entity.d.ts +2 -2
- package/dist/entities/applications/solicitor.entity.d.ts +1 -1
- package/dist/entities/properties/property.entity.d.ts +2 -2
- package/dist/entities/properties/property.entity.d.ts.map +1 -1
- package/dist/product-catalogues/product-catalogue.model.d.ts +27 -0
- package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-definitions.model.d.ts +27 -0
- package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-variant.model.d.ts +27 -0
- package/dist/product-catalogues/product-variant.model.d.ts.map +1 -1
- package/dist/properties/property.model.d.ts +26 -0
- package/dist/properties/property.model.d.ts.map +1 -1
- package/dist/properties/security.model.d.ts +27 -0
- package/dist/properties/security.model.d.ts.map +1 -1
- package/dist/shared/alert.model.d.ts +27 -0
- package/dist/shared/alert.model.d.ts.map +1 -1
- package/dist/shared/apprivo-sync-journey.model.d.ts +27 -0
- package/dist/shared/apprivo-sync-journey.model.d.ts.map +1 -1
- package/dist/shared/checklist.model.d.ts +27 -0
- package/dist/shared/checklist.model.d.ts.map +1 -1
- package/dist/shared/document-type-model.d.ts +27 -0
- package/dist/shared/document-type-model.d.ts.map +1 -1
- package/dist/shared/job-run.model.d.ts +27 -0
- package/dist/shared/job-run.model.d.ts.map +1 -1
- package/dist/shared/job-setting.model.d.ts +27 -0
- package/dist/shared/job-setting.model.d.ts.map +1 -1
- package/dist/shared/lookup-group.model.d.ts +27 -0
- package/dist/shared/lookup-group.model.d.ts.map +1 -1
- package/dist/shared/lookup.model.d.ts +27 -0
- package/dist/shared/lookup.model.d.ts.map +1 -1
- package/dist/shared/schema-doc.model.d.ts +27 -0
- package/dist/shared/schema-doc.model.d.ts.map +1 -1
- package/dist/shared/system-parameter.model.d.ts +27 -0
- package/dist/shared/system-parameter.model.d.ts.map +1 -1
- package/dist/shared/task-document.model.d.ts +27 -0
- package/dist/shared/task-document.model.d.ts.map +1 -1
- package/dist/shared/task.model.d.ts +27 -0
- package/dist/shared/task.model.d.ts.map +1 -1
- package/dist/underwriter/underwriter.model.d.ts +27 -0
- package/dist/underwriter/underwriter.model.d.ts.map +1 -1
- package/dist/users/auth-log.model.d.ts +27 -0
- package/dist/users/auth-log.model.d.ts.map +1 -1
- package/dist/users/permission.model.d.ts +27 -0
- package/dist/users/permission.model.d.ts.map +1 -1
- package/dist/users/role-group.model.d.ts +27 -0
- package/dist/users/role-group.model.d.ts.map +1 -1
- package/dist/users/role.model.d.ts +27 -0
- package/dist/users/role.model.d.ts.map +1 -1
- package/dist/users/tasks.model.d.ts +27 -0
- package/dist/users/tasks.model.d.ts.map +1 -1
- package/dist/users/user.model.d.ts +27 -0
- package/dist/users/user.model.d.ts.map +1 -1
- package/dist/value-objects/pound.d.ts +26 -0
- package/dist/value-objects/pound.d.ts.map +1 -1
- package/dist/value-objects/sort-code.d.ts +26 -0
- package/dist/value-objects/sort-code.d.ts.map +1 -1
- package/entities/applicants/{credit-data.entity.ts → applicant-credit-data.entity.ts} +2 -2
- package/entities/{applications/credit-profile.entity.ts → applicants/applicant-credit-profile.entity.ts} +8 -2
- package/entities/applicants/applicant-employment-income.entity.ts +14 -0
- package/entities/applicants/{employment.entity.ts → applicant-employment.entity.ts} +1 -17
- package/entities/applicants/applicant-expenditure.entity.ts +15 -0
- package/entities/applicants/{income-source.entity.ts → applicant-income-source.entity.ts} +2 -2
- package/entities/applicants/{income.entity.ts → applicant-income.entity.ts} +9 -6
- package/entities/applicants/applicant.entity.ts +11 -17
- package/entities/applicants/index.ts +6 -6
- package/entities/{applicants/credit-profile.entity.ts → applications/application-credit-profile.entity.ts} +2 -2
- package/entities/applications/company.entity.ts +2 -2
- package/entities/applications/index.ts +1 -1
- package/entities/applications/solicitor.entity.ts +1 -1
- package/entities/properties/property.entity.ts +2 -2
- package/package.json +1 -1
- package/prisma/applicants/{credit-data.prisma → applicant-credit-data.prisma} +3 -3
- package/prisma/applicants/{credit-profile.prisma → applicant-credit-profile.prisma} +3 -2
- package/prisma/applicants/applicant-employment-income.prisma +14 -0
- package/prisma/applicants/applicant-employment.prisma +54 -0
- package/prisma/applicants/applicant-expenditure.prisma +14 -0
- package/prisma/applicants/{income-source.prisma → applicant-income-source.prisma} +3 -3
- package/prisma/applicants/{income.prisma → applicant-income.prisma} +10 -4
- package/prisma/applicants/{other-income.prisma → applicant-other-income.prisma} +2 -2
- package/prisma/applicants/applicant-property-income.prisma +21 -0
- package/prisma/applicants/applicant.prisma +17 -12
- package/prisma/applicants/credit-card-commitment.prisma +1 -1
- package/prisma/applicants/loan-commitment.prisma +2 -1
- package/prisma/applicants/mortgage-commitment.prisma +7 -6
- package/prisma/applicants/residence-commitment.prisma +7 -6
- package/prisma/applicants/secured-loan-commitment.prisma +1 -1
- package/prisma/applicants/unsecured-loan-commitment.prisma +1 -1
- package/prisma/applications/application-company.prisma +7 -5
- package/prisma/applications/{credit-profile.prisma → application-credit-profile.prisma} +6 -2
- package/prisma/applications/application-direct-debit.prisma +7 -5
- package/prisma/applications/application-mortgage.prisma +1 -1
- package/prisma/applications/application-product.prisma +1 -1
- package/prisma/applications/application-rationale.prisma +1 -1
- package/prisma/applications/application.prisma +28 -12
- package/prisma/applications/broker.prisma +4 -0
- package/prisma/applications/company.prisma +7 -7
- package/prisma/broker.entity.ts +8 -0
- package/prisma/migrations/{20250430085825_initial_migration → 20250501070203_initial_migration}/migration.sql +355 -401
- package/prisma/properties/property.prisma +1 -1
- package/prisma/schema.prisma +1229 -1283
- package/prisma/shared/alert.prisma +1 -1
- package/prisma/shared/lookup.prisma +19 -24
- package/prisma/underwriter/underwriter.prisma +2 -2
- package/prisma/users/user.prisma +2 -2
- package/entities/applicants/direct-debit.entity.ts +0 -30
- package/entities/applicants/expenditure.entity.ts +0 -29
- package/entities/applicants/risk-narrative.entity.ts +0 -28
- package/entities/applications/application-risk-narrative.entity.ts +0 -22
- package/entities/applications/application-valuation.entity.ts +0 -20
- package/prisma/applicants/direct-debit.prisma +0 -25
- package/prisma/applicants/employment.prisma +0 -59
- package/prisma/applicants/expenditure.prisma +0 -26
- package/prisma/applicants/property-income.prisma +0 -17
- package/prisma/applicants/risk-narrative.prisma +0 -23
- package/prisma/applications/application-risk-narrative.prisma +0 -18
- package/prisma/applications/application-valuation.prisma +0 -18
|
@@ -1,3 +1,30 @@
|
|
|
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" />
|
|
1
28
|
import mongoose from "mongoose";
|
|
2
29
|
declare const AuthLogModel: mongoose.Model<{
|
|
3
30
|
userEmail: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-log.model.d.ts","sourceRoot":"","sources":["../../users/auth-log.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAqBhC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA2C,CAAC;AAE9D,eAAe,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"auth-log.model.d.ts","sourceRoot":"","sources":["../../users/auth-log.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAqBhC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA2C,CAAC;AAE9D,eAAe,YAAY,CAAC"}
|
|
@@ -1,3 +1,30 @@
|
|
|
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" />
|
|
1
28
|
import mongoose from "mongoose";
|
|
2
29
|
declare const PermissionModel: mongoose.Model<{
|
|
3
30
|
createdAt: NativeDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.model.d.ts","sourceRoot":"","sources":["../../users/permission.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAWhC,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiD,CAAC;AAEvE,eAAe,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"permission.model.d.ts","sourceRoot":"","sources":["../../users/permission.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAWhC,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiD,CAAC;AAEvE,eAAe,eAAe,CAAC"}
|
|
@@ -1,3 +1,30 @@
|
|
|
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" />
|
|
1
28
|
import mongoose from "mongoose";
|
|
2
29
|
declare const RoleGroupModel: mongoose.Model<{
|
|
3
30
|
createdAt: NativeDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role-group.model.d.ts","sourceRoot":"","sources":["../../users/role-group.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAehC,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA+C,CAAC;AACpE,eAAe,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"role-group.model.d.ts","sourceRoot":"","sources":["../../users/role-group.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAehC,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA+C,CAAC;AACpE,eAAe,cAAc,CAAC"}
|
|
@@ -1,3 +1,30 @@
|
|
|
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" />
|
|
1
28
|
import mongoose from "mongoose";
|
|
2
29
|
declare const RoleModel: mongoose.Model<{
|
|
3
30
|
createdAt: NativeDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.model.d.ts","sourceRoot":"","sources":["../../users/role.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAchC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqC,CAAC;AAErD,eAAe,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"role.model.d.ts","sourceRoot":"","sources":["../../users/role.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAchC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqC,CAAC;AAErD,eAAe,SAAS,CAAC"}
|
|
@@ -1,3 +1,30 @@
|
|
|
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" />
|
|
1
28
|
import mongoose from "mongoose";
|
|
2
29
|
declare const TasksModel: mongoose.Model<{
|
|
3
30
|
createdAt: NativeDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.model.d.ts","sourceRoot":"","sources":["../../users/tasks.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAgBhC,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuC,CAAC;AAExD,eAAe,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"tasks.model.d.ts","sourceRoot":"","sources":["../../users/tasks.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAgBhC,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuC,CAAC;AAExD,eAAe,UAAU,CAAC"}
|
|
@@ -1,3 +1,30 @@
|
|
|
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" />
|
|
1
28
|
import mongoose from "mongoose";
|
|
2
29
|
declare const UserModel: mongoose.Model<{
|
|
3
30
|
createdAt: NativeDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.model.d.ts","sourceRoot":"","sources":["../../users/user.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAgChC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqC,CAAC;AAErD,eAAe,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"user.model.d.ts","sourceRoot":"","sources":["../../users/user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAgChC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqC,CAAC;AAErD,eAAe,SAAS,CAAC"}
|
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
/// <reference path="sort-code.d.ts" />
|
|
2
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
3
|
+
/// <reference types="mongoose/types/callback" />
|
|
4
|
+
/// <reference types="mongoose/types/collection" />
|
|
5
|
+
/// <reference types="mongoose/types/connection" />
|
|
6
|
+
/// <reference types="mongoose/types/cursor" />
|
|
7
|
+
/// <reference types="mongoose/types/document" />
|
|
8
|
+
/// <reference types="mongoose/types/error" />
|
|
9
|
+
/// <reference types="mongoose/types/expressions" />
|
|
10
|
+
/// <reference types="mongoose/types/helpers" />
|
|
11
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
12
|
+
/// <reference types="mongoose/types/indexes" />
|
|
13
|
+
/// <reference types="mongoose/types/models" />
|
|
14
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
15
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
16
|
+
/// <reference types="mongoose/types/populate" />
|
|
17
|
+
/// <reference types="mongoose/types/query" />
|
|
18
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
19
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
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/inferschematype" />
|
|
26
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
1
27
|
import mongoose from 'mongoose';
|
|
2
28
|
declare module 'mongoose' {
|
|
3
29
|
namespace Schema {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pound.d.ts","sourceRoot":"","sources":["../../value-objects/pound.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,OAAO,QAAQ,UAAU,CAAC;IACtB,UAAU,MAAM,CAAC;QACb,UAAU,KAAK,CAAC;YACZ,MAAM,KAAM,SAAQ,UAAU;aAAI;SACrC;KACJ;CACJ;AAED,cAAM,KAAM,SAAQ,QAAQ,CAAC,UAAU;gBACvB,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,SAAS,GAAG,SAAS;IAKhE,IAAI,CAAC,GAAG,EAAE,GAAG;CA4BhB;AAKD,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"pound.d.ts","sourceRoot":"","sources":["../../value-objects/pound.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,OAAO,QAAQ,UAAU,CAAC;IACtB,UAAU,MAAM,CAAC;QACb,UAAU,KAAK,CAAC;YACZ,MAAM,KAAM,SAAQ,UAAU;aAAI;SACrC;KACJ;CACJ;AAED,cAAM,KAAM,SAAQ,QAAQ,CAAC,UAAU;gBACvB,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,SAAS,GAAG,SAAS;IAKhE,IAAI,CAAC,GAAG,EAAE,GAAG;CA4BhB;AAKD,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
/// <reference path="pound.d.ts" />
|
|
2
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
3
|
+
/// <reference types="mongoose/types/callback" />
|
|
4
|
+
/// <reference types="mongoose/types/collection" />
|
|
5
|
+
/// <reference types="mongoose/types/connection" />
|
|
6
|
+
/// <reference types="mongoose/types/cursor" />
|
|
7
|
+
/// <reference types="mongoose/types/document" />
|
|
8
|
+
/// <reference types="mongoose/types/error" />
|
|
9
|
+
/// <reference types="mongoose/types/expressions" />
|
|
10
|
+
/// <reference types="mongoose/types/helpers" />
|
|
11
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
12
|
+
/// <reference types="mongoose/types/indexes" />
|
|
13
|
+
/// <reference types="mongoose/types/models" />
|
|
14
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
15
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
16
|
+
/// <reference types="mongoose/types/populate" />
|
|
17
|
+
/// <reference types="mongoose/types/query" />
|
|
18
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
19
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
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/inferschematype" />
|
|
26
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
1
27
|
import mongoose from 'mongoose';
|
|
2
28
|
declare module 'mongoose' {
|
|
3
29
|
namespace Schema {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-code.d.ts","sourceRoot":"","sources":["../../value-objects/sort-code.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,QAAQ,UAAU,CAAC;IACtB,UAAU,MAAM,CAAC;QACb,UAAU,KAAK,CAAC;YACZ,MAAM,QAAS,SAAQ,UAAU;aAAI;SACxC;KACJ;CACJ;AAED,cAAM,QAAS,SAAQ,QAAQ,CAAC,UAAU;gBAC1B,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,SAAS,GAAG,SAAS;IAIhE,IAAI,CAAC,GAAG,EAAE,GAAG;CA+BhB;AAKD,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"sort-code.d.ts","sourceRoot":"","sources":["../../value-objects/sort-code.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,QAAQ,UAAU,CAAC;IACtB,UAAU,MAAM,CAAC;QACb,UAAU,KAAK,CAAC;YACZ,MAAM,QAAS,SAAQ,UAAU;aAAI;SACxC;KACJ;CACJ;AAED,cAAM,QAAS,SAAQ,QAAQ,CAAC,UAAU;gBAC1B,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,SAAS,GAAG,SAAS;IAIhE,IAAI,CAAC,GAAG,EAAE,GAAG;CA+BhB;AAKD,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApplicantEntity } from './applicant.entity';
|
|
2
2
|
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
3
|
|
|
4
|
-
export class
|
|
4
|
+
export class ApplicantCreditDataEntity {
|
|
5
5
|
id!: string;
|
|
6
6
|
bankruptcy!: string;
|
|
7
7
|
countyCourtJudgment!: string;
|
|
@@ -18,7 +18,7 @@ export class CreditDataEntity {
|
|
|
18
18
|
applicant?: ApplicantEntity;
|
|
19
19
|
status?: LookupEntity;
|
|
20
20
|
|
|
21
|
-
constructor(partial: Partial<
|
|
21
|
+
constructor(partial: Partial<ApplicantCreditDataEntity>) {
|
|
22
22
|
Object.assign(this, partial);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { ApplicantEntity } from "./applicant.entity";
|
|
2
|
+
|
|
3
|
+
export class ApplicantCreditProfileEntity {
|
|
2
4
|
id!: string;
|
|
3
5
|
anyVoluntaryEnforcedPossessionNo!: string;
|
|
4
6
|
bankruptcyNo!: string;
|
|
@@ -6,8 +8,12 @@ export class CreditProfileEntity {
|
|
|
6
8
|
defaultsInLastYearNo!: string;
|
|
7
9
|
createdAt!: Date;
|
|
8
10
|
updatedAt!: Date;
|
|
11
|
+
applicantId!: string;
|
|
12
|
+
|
|
13
|
+
// Relations
|
|
14
|
+
applicant?: ApplicantEntity;
|
|
9
15
|
|
|
10
|
-
constructor(partial: Partial<
|
|
16
|
+
constructor(partial: Partial<ApplicantCreditProfileEntity>) {
|
|
11
17
|
Object.assign(this, partial);
|
|
12
18
|
}
|
|
13
19
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ApplicantEntity } from "./applicant.entity";
|
|
2
|
+
import { LookupEntity } from "../shared/lookup.entity";
|
|
3
|
+
|
|
4
|
+
export class ApplicantEmploymentIncomeEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
applicantId!: string;
|
|
7
|
+
incomeTypeLid!: string;
|
|
8
|
+
amount!: number;
|
|
9
|
+
createdAt!: Date;
|
|
10
|
+
updatedAt!: Date;
|
|
11
|
+
|
|
12
|
+
applicant!: ApplicantEntity;
|
|
13
|
+
incomeType!: LookupEntity;
|
|
14
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApplicantEntity } from './applicant.entity';
|
|
2
2
|
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
3
|
|
|
4
|
-
export class
|
|
4
|
+
export class ApplicantEmploymentEntity {
|
|
5
5
|
id!: string;
|
|
6
6
|
pageValidFlag!: boolean;
|
|
7
7
|
acceptableIncomeLids!: string[];
|
|
@@ -13,10 +13,6 @@ export class EmploymentEntity {
|
|
|
13
13
|
addressPostCode!: string;
|
|
14
14
|
averageBonusPreviousTwoYears!: number;
|
|
15
15
|
basicGrossIncome!: number;
|
|
16
|
-
basicPay!: number;
|
|
17
|
-
carAllowance!: number;
|
|
18
|
-
childBenefit!: number;
|
|
19
|
-
childBenefitOrSchoolAllowance!: number;
|
|
20
16
|
contractRemaining?: string;
|
|
21
17
|
dateJoined!: string;
|
|
22
18
|
disabilityLiving!: number;
|
|
@@ -45,8 +41,6 @@ export class EmploymentEntity {
|
|
|
45
41
|
previousNatureOfBusiness!: string;
|
|
46
42
|
referenceContact?: string;
|
|
47
43
|
referenceContactEmail!: string;
|
|
48
|
-
secondJob!: number;
|
|
49
|
-
travelAllowance!: number;
|
|
50
44
|
underTerminationNoticeNote?: string;
|
|
51
45
|
applicantId!: string;
|
|
52
46
|
createdAt!: Date;
|
|
@@ -58,14 +52,4 @@ export class EmploymentEntity {
|
|
|
58
52
|
industry?: LookupEntity;
|
|
59
53
|
jobTitle?: LookupEntity;
|
|
60
54
|
acceptableIncomeTypes?: LookupEntity[];
|
|
61
|
-
|
|
62
|
-
constructor(partial: Partial<EmploymentEntity>) {
|
|
63
|
-
Object.assign(this, partial);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Virtual fields from Mongoose model
|
|
67
|
-
// These are computed properties that were previously virtual in Mongoose
|
|
68
|
-
get isUnderTerminationNoticeDisplay(): string {
|
|
69
|
-
return this.isUnderTerminationNotice ? "Yes" : "No";
|
|
70
|
-
}
|
|
71
55
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ApplicantEntity } from './applicant.entity';
|
|
2
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
|
+
|
|
4
|
+
export class ApplicantExpenditureEntity {
|
|
5
|
+
id!: string;
|
|
6
|
+
applicantId!: string;
|
|
7
|
+
expenditureTypeLid!: string;
|
|
8
|
+
amount!: number;
|
|
9
|
+
createdAt!: Date;
|
|
10
|
+
updatedAt!: Date;
|
|
11
|
+
|
|
12
|
+
// Relations
|
|
13
|
+
applicant?: ApplicantEntity;
|
|
14
|
+
expenditureType?: LookupEntity;
|
|
15
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApplicantEntity } from './applicant.entity';
|
|
2
2
|
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
3
|
|
|
4
|
-
export class
|
|
4
|
+
export class ApplicantIncomeSourceEntity {
|
|
5
5
|
id!: string;
|
|
6
6
|
employmentStatusLid?: string;
|
|
7
7
|
incomeFromEmployment?: string;
|
|
@@ -16,7 +16,7 @@ export class IncomeSourceEntity {
|
|
|
16
16
|
applicant?: ApplicantEntity;
|
|
17
17
|
employmentStatus?: LookupEntity;
|
|
18
18
|
|
|
19
|
-
constructor(partial: Partial<
|
|
19
|
+
constructor(partial: Partial<ApplicantIncomeSourceEntity>) {
|
|
20
20
|
Object.assign(this, partial);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
2
|
+
|
|
3
|
+
export class ApplicantIncomeEntity {
|
|
2
4
|
id!: string;
|
|
3
5
|
accountantsAddressLine1!: string;
|
|
4
6
|
accountantsAddressLine2!: string;
|
|
@@ -50,9 +52,10 @@ export class IncomeEntity {
|
|
|
50
52
|
createdAt!: Date;
|
|
51
53
|
updatedAt!: Date;
|
|
52
54
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
// Relations
|
|
56
|
+
accountantsCountry?: LookupEntity;
|
|
57
|
+
businessCountry?: LookupEntity;
|
|
58
|
+
businessType?: LookupEntity;
|
|
59
|
+
charteredCertifiedOrOther?: LookupEntity;
|
|
60
|
+
registeredCountry?: LookupEntity;
|
|
58
61
|
}
|
|
@@ -2,14 +2,13 @@ import { ApplicationEntity } from '../applications/application.entity';
|
|
|
2
2
|
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
3
|
import { RiskNarrativeEntity } from './risk-narrative.entity';
|
|
4
4
|
import { OtherIncomeEntity } from './other-income.entity';
|
|
5
|
-
import { IncomeSourceEntity } from './income-source.entity';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { DirectDebitEntity } from './direct-debit.entity';
|
|
9
|
-
import { CreditProfileEntity } from './credit-profile.entity';
|
|
5
|
+
import { IncomeSourceEntity } from './applicant-income-source.entity';
|
|
6
|
+
import { ApplicantExpenditureEntity } from './applicant-expenditure.entity';
|
|
7
|
+
import { ApplicantCreditProfileEntity } from './applicant-credit-profile.entity';
|
|
10
8
|
import { PropertyIncomeEntity } from './property-income.entity';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import { ApplicantIncomeEntity } from './applicant-income.entity';
|
|
10
|
+
import { ApplicantCreditDataEntity } from './applicant-credit-data.entity';
|
|
11
|
+
import { ApplicantEmploymentEntity } from './applicant-employment.entity';
|
|
13
12
|
|
|
14
13
|
export class ApplicantEntity {
|
|
15
14
|
id!: string;
|
|
@@ -123,16 +122,15 @@ export class ApplicantEntity {
|
|
|
123
122
|
vulnerabilityTypes?: LookupEntity[];
|
|
124
123
|
|
|
125
124
|
// Nested schemas
|
|
126
|
-
creditData?:
|
|
125
|
+
creditData?: ApplicantCreditDataEntity;
|
|
127
126
|
riskNarrative?: RiskNarrativeEntity;
|
|
128
127
|
otherIncome?: OtherIncomeEntity;
|
|
129
128
|
incomeSource?: IncomeSourceEntity;
|
|
130
|
-
expenditure?:
|
|
131
|
-
|
|
132
|
-
directDebit?: DirectDebitEntity;
|
|
133
|
-
creditProfile?: CreditProfileEntity;
|
|
129
|
+
expenditure?: ApplicantExpenditureEntity;
|
|
130
|
+
creditProfile?: ApplicantCreditProfileEntity;
|
|
134
131
|
propertyIncome?: PropertyIncomeEntity;
|
|
135
|
-
income?:
|
|
132
|
+
income?: ApplicantIncomeEntity;
|
|
133
|
+
employment?: ApplicantEmploymentEntity;
|
|
136
134
|
|
|
137
135
|
constructor(partial: Partial<ApplicantEntity>) {
|
|
138
136
|
Object.assign(this, partial);
|
|
@@ -147,10 +145,6 @@ export class ApplicantEntity {
|
|
|
147
145
|
return this.countryOfResidence?.name ?? null;
|
|
148
146
|
}
|
|
149
147
|
|
|
150
|
-
get industryName(): string | null {
|
|
151
|
-
return this.employment?.industry?.name ?? null;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
148
|
get employmentClassName(): string | null {
|
|
155
149
|
return this.class?.name ?? null;
|
|
156
150
|
}
|
|
@@ -48,12 +48,12 @@ export * from './residence-commitment.entity';
|
|
|
48
48
|
export * from './risk-narrative.entity';
|
|
49
49
|
export * from './mortgage-commitment.entity';
|
|
50
50
|
export * from './other-income.entity';
|
|
51
|
-
export * from './income-source.entity';
|
|
52
|
-
export * from './income.entity';
|
|
51
|
+
export * from './applicant-income-source.entity';
|
|
52
|
+
export * from './applicant-income.entity';
|
|
53
53
|
export * from './loan-commitment.entity';
|
|
54
|
-
export * from './credit-profile.entity';
|
|
54
|
+
export * from './applicant-credit-profile.entity';
|
|
55
55
|
export * from './direct-debit.entity';
|
|
56
|
-
export * from './employment.entity';
|
|
57
|
-
export * from './expenditure.entity';
|
|
56
|
+
export * from './applicant-employment.entity';
|
|
57
|
+
export * from './applicant-expenditure.entity';
|
|
58
58
|
export * from './credit-card-commitment.entity';
|
|
59
|
-
export * from './credit-data.entity';
|
|
59
|
+
export * from './applicant-credit-data.entity';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class
|
|
1
|
+
export class ApplicationCreditProfileEntity {
|
|
2
2
|
id!: string;
|
|
3
3
|
anyVoluntaryEnforcedPossessionNo!: string;
|
|
4
4
|
bankruptcyNo!: string;
|
|
@@ -7,7 +7,7 @@ export class CreditProfileEntity {
|
|
|
7
7
|
createdAt!: Date;
|
|
8
8
|
updatedAt!: Date;
|
|
9
9
|
|
|
10
|
-
constructor(partial: Partial<
|
|
10
|
+
constructor(partial: Partial<ApplicationCreditProfileEntity>) {
|
|
11
11
|
Object.assign(this, partial);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApplicantEntity } from
|
|
2
|
-
import { LookupEntity } from
|
|
1
|
+
import { ApplicantEntity } from "../applicants/applicant.entity";
|
|
2
|
+
import { LookupEntity } from "../shared/lookup.entity";
|
|
3
3
|
import { ApplicationEntity } from "./application.entity";
|
|
4
4
|
|
|
5
5
|
|
|
@@ -56,7 +56,7 @@ export * from './solicitor.entity';
|
|
|
56
56
|
export * from './broker.entity';
|
|
57
57
|
export * from './checklist-item.entity';
|
|
58
58
|
export * from './company.entity';
|
|
59
|
-
export * from './credit-profile.entity';
|
|
59
|
+
export * from './application-credit-profile.entity';
|
|
60
60
|
export * from './application-rationale.entity';
|
|
61
61
|
export * from './application-risk-narrative.entity';
|
|
62
62
|
export * from './application-valuation.entity';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ApplicationEntity } from "../applications/application.entity";
|
|
2
|
+
import { LookupEntity } from "../shared/lookup.entity";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class PropertyEntity {
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
model
|
|
1
|
+
model ApplicantCreditData {
|
|
2
2
|
id String @id @default(uuid())
|
|
3
3
|
bankruptcy String
|
|
4
4
|
countyCourtJudgment String
|
|
@@ -12,8 +12,8 @@ model CreditData {
|
|
|
12
12
|
updatedAt DateTime @updatedAt @map("updated_at")
|
|
13
13
|
|
|
14
14
|
// Relations
|
|
15
|
-
applicant Applicant @relation(fields: [applicantId], references: [id])
|
|
16
|
-
status Lookup @relation(fields: [statusLid], references: [id])
|
|
15
|
+
applicant Applicant @relation("ApplicantCreditData", fields: [applicantId], references: [id])
|
|
16
|
+
status Lookup @relation("CreditDataStatus", fields: [statusLid], references: [id])
|
|
17
17
|
|
|
18
18
|
@@map("applicant_credit_data")
|
|
19
19
|
}
|