@dynamatix/gb-schemas 1.2.80 → 1.2.82
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-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 +0 -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-income.model.d.ts +12 -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.model.d.ts +690 -3096
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +0 -2
- package/dist/entities/applicants/applicant.entity.d.ts +148 -0
- package/dist/entities/applicants/applicant.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant.entity.js +51 -0
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts +16 -0
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/credit-card-commitment.entity.js +5 -0
- package/dist/entities/applicants/credit-data.entity.d.ts +19 -0
- package/dist/entities/applicants/credit-data.entity.d.ts.map +1 -0
- package/dist/entities/applicants/credit-data.entity.js +5 -0
- package/dist/entities/applicants/credit-profile.entity.d.ts +11 -0
- package/dist/entities/applicants/credit-profile.entity.d.ts.map +1 -0
- package/dist/entities/applicants/credit-profile.entity.js +5 -0
- package/dist/entities/applicants/direct-debit.entity.d.ts +25 -0
- package/dist/entities/applicants/direct-debit.entity.d.ts.map +1 -0
- package/dist/entities/applicants/direct-debit.entity.js +5 -0
- package/dist/entities/applicants/employment.entity.d.ts +61 -0
- package/dist/entities/applicants/employment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/employment.entity.js +10 -0
- package/dist/entities/applicants/expenditure.entity.d.ts +24 -0
- package/dist/entities/applicants/expenditure.entity.d.ts.map +1 -0
- package/dist/entities/applicants/expenditure.entity.js +5 -0
- package/dist/entities/applicants/income-source.entity.d.ts +17 -0
- package/dist/entities/applicants/income-source.entity.d.ts.map +1 -0
- package/dist/entities/applicants/income-source.entity.js +5 -0
- package/dist/entities/applicants/income.entity.d.ts +54 -0
- package/dist/entities/applicants/income.entity.d.ts.map +1 -0
- package/dist/entities/applicants/income.entity.js +5 -0
- package/dist/entities/applicants/index.d.ts +20 -0
- package/dist/entities/applicants/index.d.ts.map +1 -0
- package/dist/entities/applicants/index.js +18 -0
- package/dist/entities/applicants/loan-commitment.entity.d.ts +20 -0
- package/dist/entities/applicants/loan-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/loan-commitment.entity.js +5 -0
- package/dist/entities/applicants/lookup.entity.d.ts +10 -0
- package/dist/entities/applicants/lookup.entity.d.ts.map +1 -0
- package/dist/entities/applicants/lookup.entity.js +5 -0
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts +37 -0
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/mortgage-commitment.entity.js +19 -0
- package/dist/entities/applicants/other-income.entity.d.ts +41 -0
- package/dist/entities/applicants/other-income.entity.d.ts.map +1 -0
- package/dist/entities/applicants/other-income.entity.js +19 -0
- package/dist/entities/applicants/property-income.entity.d.ts +17 -0
- package/dist/entities/applicants/property-income.entity.d.ts.map +1 -0
- package/dist/entities/applicants/property-income.entity.js +5 -0
- package/dist/entities/applicants/residence-commitment.entity.d.ts +44 -0
- package/dist/entities/applicants/residence-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/residence-commitment.entity.js +19 -0
- package/dist/entities/applicants/risk-narrative.entity.d.ts +23 -0
- package/dist/entities/applicants/risk-narrative.entity.d.ts.map +1 -0
- package/dist/entities/applicants/risk-narrative.entity.js +5 -0
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts +21 -0
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/secure-loan-commitment.entity.js +9 -0
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts +20 -0
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/unsecured-loan-commitment.entity.js +10 -0
- package/dist/entities/applications/application-audit.entity.d.ts +18 -0
- package/dist/entities/applications/application-audit.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-audit.entity.js +5 -0
- package/dist/entities/applications/application-company.entity.d.ts +12 -0
- package/dist/entities/applications/application-company.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-company.entity.js +5 -0
- package/dist/entities/applications/application-direct-debit.entity.d.ts +12 -0
- package/dist/entities/applications/application-direct-debit.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-direct-debit.entity.js +5 -0
- package/dist/entities/applications/application-document.entity.d.ts +28 -0
- package/dist/entities/applications/application-document.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-document.entity.js +5 -0
- package/dist/entities/applications/application-fieldconfig.entity.d.ts +9 -0
- package/dist/entities/applications/application-fieldconfig.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-fieldconfig.entity.js +5 -0
- package/dist/entities/applications/application-illustration.entity.d.ts +8 -0
- package/dist/entities/applications/application-illustration.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-illustration.entity.js +5 -0
- package/dist/entities/applications/application-legal.entity.d.ts +9 -0
- package/dist/entities/applications/application-legal.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-legal.entity.js +5 -0
- package/dist/entities/applications/application-mortgage.entity.d.ts +55 -0
- package/dist/entities/applications/application-mortgage.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-mortgage.entity.js +27 -0
- package/dist/entities/applications/application-note.entity.d.ts +36 -0
- package/dist/entities/applications/application-note.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-note.entity.js +5 -0
- package/dist/entities/applications/application-offer.entity.d.ts +8 -0
- package/dist/entities/applications/application-offer.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-offer.entity.js +5 -0
- package/dist/entities/applications/application-onboarding.entity.d.ts +11 -0
- package/dist/entities/applications/application-onboarding.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-onboarding.entity.js +5 -0
- package/dist/entities/applications/application-product.entity.d.ts +33 -0
- package/dist/entities/applications/application-product.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-product.entity.js +5 -0
- package/dist/entities/applications/application-rationale.entity.d.ts +51 -0
- package/dist/entities/applications/application-rationale.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-rationale.entity.js +5 -0
- package/dist/entities/applications/application-risk-narrative.entity.d.ts +17 -0
- package/dist/entities/applications/application-risk-narrative.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-risk-narrative.entity.js +5 -0
- package/dist/entities/applications/application-valuation.entity.d.ts +18 -0
- package/dist/entities/applications/application-valuation.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-valuation.entity.js +5 -0
- package/dist/entities/applications/application.entity.d.ts +99 -0
- package/dist/entities/applications/application.entity.d.ts.map +1 -0
- package/dist/entities/applications/application.entity.js +66 -0
- package/dist/entities/applications/broker.entity.d.ts +23 -0
- package/dist/entities/applications/broker.entity.d.ts.map +1 -0
- package/dist/entities/applications/broker.entity.js +5 -0
- package/dist/entities/applications/checklist-item.entity.d.ts +47 -0
- package/dist/entities/applications/checklist-item.entity.d.ts.map +1 -0
- package/dist/entities/applications/checklist-item.entity.js +5 -0
- package/dist/entities/applications/company.entity.d.ts +77 -0
- package/dist/entities/applications/company.entity.d.ts.map +1 -0
- package/dist/entities/applications/company.entity.js +23 -0
- package/dist/entities/applications/credit-profile.entity.d.ts +11 -0
- package/dist/entities/applications/credit-profile.entity.d.ts.map +1 -0
- package/dist/entities/applications/credit-profile.entity.js +5 -0
- package/dist/entities/applications/index.d.ts +25 -0
- package/dist/entities/applications/index.d.ts.map +1 -0
- package/dist/entities/applications/index.js +23 -0
- package/dist/entities/applications/product-features.entity.d.ts +54 -0
- package/dist/entities/applications/product-features.entity.d.ts.map +1 -0
- package/dist/entities/applications/product-features.entity.js +5 -0
- package/dist/entities/applications/solicitor.entity.d.ts +33 -0
- package/dist/entities/applications/solicitor.entity.d.ts.map +1 -0
- package/dist/entities/applications/solicitor.entity.js +5 -0
- package/dist/entities/index.d.ts +10 -0
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +10 -0
- package/dist/entities/prisma.d.ts +3 -0
- package/dist/entities/prisma.d.ts.map +1 -0
- package/dist/entities/prisma.js +10 -0
- package/dist/entities/product-catalogues/index.d.ts +8 -0
- package/dist/entities/product-catalogues/index.d.ts.map +1 -0
- package/dist/entities/product-catalogues/index.js +6 -0
- package/dist/entities/product-catalogues/product-catalogue.entity.d.ts +22 -0
- package/dist/entities/product-catalogues/product-catalogue.entity.d.ts.map +1 -0
- package/dist/entities/product-catalogues/product-catalogue.entity.js +5 -0
- package/dist/entities/product-catalogues/product-definition.entity.d.ts +16 -0
- package/dist/entities/product-catalogues/product-definition.entity.d.ts.map +1 -0
- package/dist/entities/product-catalogues/product-definition.entity.js +5 -0
- package/dist/entities/product-catalogues/product-variant.entity.d.ts +14 -0
- package/dist/entities/product-catalogues/product-variant.entity.d.ts.map +1 -0
- package/dist/entities/product-catalogues/product-variant.entity.js +5 -0
- package/dist/entities/product-catalogues/product.entity.d.ts +11 -0
- package/dist/entities/product-catalogues/product.entity.d.ts.map +1 -0
- package/dist/entities/product-catalogues/product.entity.js +5 -0
- package/dist/entities/product-catalogues/rule.entity.d.ts +21 -0
- package/dist/entities/product-catalogues/rule.entity.d.ts.map +1 -0
- package/dist/entities/product-catalogues/rule.entity.js +5 -0
- package/dist/entities/properties/data-street.entity.d.ts +22 -0
- package/dist/entities/properties/data-street.entity.d.ts.map +1 -0
- package/dist/entities/properties/data-street.entity.js +5 -0
- package/dist/entities/properties/index.d.ts +6 -0
- package/dist/entities/properties/index.d.ts.map +1 -0
- package/dist/entities/properties/index.js +4 -0
- package/dist/entities/properties/property.entity.d.ts +30 -0
- package/dist/entities/properties/property.entity.d.ts.map +1 -0
- package/dist/entities/properties/property.entity.js +5 -0
- package/dist/entities/properties/security.entity.d.ts +57 -0
- package/dist/entities/properties/security.entity.d.ts.map +1 -0
- package/dist/entities/properties/security.entity.js +5 -0
- package/dist/entities/shared/alert.entity.d.ts +14 -0
- package/dist/entities/shared/alert.entity.d.ts.map +1 -0
- package/dist/entities/shared/alert.entity.js +5 -0
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts +16 -0
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts.map +1 -0
- package/dist/entities/shared/apprivo-sync-journey.entity.js +5 -0
- package/dist/entities/shared/checklist.entity.d.ts +15 -0
- package/dist/entities/shared/checklist.entity.d.ts.map +1 -0
- package/dist/entities/shared/checklist.entity.js +5 -0
- package/dist/entities/shared/document-type.entity.d.ts +9 -0
- package/dist/entities/shared/document-type.entity.d.ts.map +1 -0
- package/dist/entities/shared/document-type.entity.js +5 -0
- package/dist/entities/shared/index.d.ts +12 -0
- package/dist/entities/shared/index.d.ts.map +1 -0
- package/dist/entities/shared/index.js +10 -0
- package/dist/entities/shared/job-run.entity.d.ts +11 -0
- package/dist/entities/shared/job-run.entity.d.ts.map +1 -0
- package/dist/entities/shared/job-run.entity.js +5 -0
- package/dist/entities/shared/job-setting.entity.d.ts +11 -0
- package/dist/entities/shared/job-setting.entity.d.ts.map +1 -0
- package/dist/entities/shared/job-setting.entity.js +5 -0
- package/dist/entities/shared/lookup-group.entity.d.ts +11 -0
- package/dist/entities/shared/lookup-group.entity.d.ts.map +1 -0
- package/dist/entities/shared/lookup-group.entity.js +5 -0
- package/dist/entities/shared/lookup.entity.d.ts +14 -0
- package/dist/entities/shared/lookup.entity.d.ts.map +1 -0
- package/dist/entities/shared/lookup.entity.js +5 -0
- package/dist/entities/shared/system-parameter.entity.d.ts +10 -0
- package/dist/entities/shared/system-parameter.entity.d.ts.map +1 -0
- package/dist/entities/shared/system-parameter.entity.js +5 -0
- package/dist/entities/underwriter/index.d.ts +4 -0
- package/dist/entities/underwriter/index.d.ts.map +1 -0
- package/dist/entities/underwriter/index.js +2 -0
- package/dist/entities/underwriter/underwriter.entity.d.ts +16 -0
- package/dist/entities/underwriter/underwriter.entity.d.ts.map +1 -0
- package/dist/entities/underwriter/underwriter.entity.js +5 -0
- package/dist/entities/users/auth-log.entity.d.ts +11 -0
- package/dist/entities/users/auth-log.entity.d.ts.map +1 -0
- package/dist/entities/users/auth-log.entity.js +5 -0
- package/dist/entities/users/index.d.ts +8 -0
- package/dist/entities/users/index.d.ts.map +1 -0
- package/dist/entities/users/index.js +6 -0
- package/dist/entities/users/permission.entity.d.ts +12 -0
- package/dist/entities/users/permission.entity.d.ts.map +1 -0
- package/dist/entities/users/permission.entity.js +5 -0
- package/dist/entities/users/role-group.entity.d.ts +12 -0
- package/dist/entities/users/role-group.entity.d.ts.map +1 -0
- package/dist/entities/users/role-group.entity.js +5 -0
- package/dist/entities/users/role.entity.d.ts +14 -0
- package/dist/entities/users/role.entity.d.ts.map +1 -0
- package/dist/entities/users/role.entity.js +5 -0
- package/dist/entities/users/user.entity.d.ts +35 -0
- package/dist/entities/users/user.entity.d.ts.map +1 -0
- package/dist/entities/users/user.entity.js +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/// <reference path="../value-objects/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" />
|
|
27
|
+
import mongoose from "mongoose";
|
|
28
|
+
import { Pound } from "../value-objects/pound";
|
|
29
|
+
declare const EmploymentIncomeModel: mongoose.Model<{
|
|
30
|
+
applicantId?: unknown;
|
|
31
|
+
amount?: {
|
|
32
|
+
validators: mongoose.Types.DocumentArray<{
|
|
33
|
+
type?: unknown;
|
|
34
|
+
message?: unknown;
|
|
35
|
+
validator?: unknown;
|
|
36
|
+
reason?: unknown;
|
|
37
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
38
|
+
type?: unknown;
|
|
39
|
+
message?: unknown;
|
|
40
|
+
validator?: unknown;
|
|
41
|
+
reason?: unknown;
|
|
42
|
+
}> & {
|
|
43
|
+
type?: unknown;
|
|
44
|
+
message?: unknown;
|
|
45
|
+
validator?: unknown;
|
|
46
|
+
reason?: unknown;
|
|
47
|
+
}>;
|
|
48
|
+
get?: {} | null | undefined;
|
|
49
|
+
schema?: {
|
|
50
|
+
[x: string]: unknown;
|
|
51
|
+
} | null | undefined;
|
|
52
|
+
set?: {} | null | undefined;
|
|
53
|
+
validate?: {} | null | undefined;
|
|
54
|
+
default?: {} | null | undefined;
|
|
55
|
+
text?: {} | null | undefined;
|
|
56
|
+
unique?: {} | null | undefined;
|
|
57
|
+
index?: {} | null | undefined;
|
|
58
|
+
sparse?: {} | null | undefined;
|
|
59
|
+
required?: {} | null | undefined;
|
|
60
|
+
ref?: {} | null | undefined;
|
|
61
|
+
cast?: {} | null | undefined;
|
|
62
|
+
select?: {} | null | undefined;
|
|
63
|
+
immutable?: {} | null | undefined;
|
|
64
|
+
transform?: {} | null | undefined;
|
|
65
|
+
options?: {
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
} | null | undefined;
|
|
68
|
+
OptionsConstructor?: {
|
|
69
|
+
[x: string]: unknown;
|
|
70
|
+
} | null | undefined;
|
|
71
|
+
getEmbeddedSchemaType?: {} | null | undefined;
|
|
72
|
+
instance?: unknown;
|
|
73
|
+
isRequired?: unknown;
|
|
74
|
+
path?: unknown;
|
|
75
|
+
validateAll?: {} | null | undefined;
|
|
76
|
+
defaultOptions?: unknown;
|
|
77
|
+
} | null | undefined;
|
|
78
|
+
incomeTyppeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
79
|
+
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
80
|
+
applicantId?: unknown;
|
|
81
|
+
amount?: {
|
|
82
|
+
validators: mongoose.Types.DocumentArray<{
|
|
83
|
+
type?: unknown;
|
|
84
|
+
message?: unknown;
|
|
85
|
+
validator?: unknown;
|
|
86
|
+
reason?: unknown;
|
|
87
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
88
|
+
type?: unknown;
|
|
89
|
+
message?: unknown;
|
|
90
|
+
validator?: unknown;
|
|
91
|
+
reason?: unknown;
|
|
92
|
+
}> & {
|
|
93
|
+
type?: unknown;
|
|
94
|
+
message?: unknown;
|
|
95
|
+
validator?: unknown;
|
|
96
|
+
reason?: unknown;
|
|
97
|
+
}>;
|
|
98
|
+
get?: {} | null | undefined;
|
|
99
|
+
schema?: {
|
|
100
|
+
[x: string]: unknown;
|
|
101
|
+
} | null | undefined;
|
|
102
|
+
set?: {} | null | undefined;
|
|
103
|
+
validate?: {} | null | undefined;
|
|
104
|
+
default?: {} | null | undefined;
|
|
105
|
+
text?: {} | null | undefined;
|
|
106
|
+
unique?: {} | null | undefined;
|
|
107
|
+
index?: {} | null | undefined;
|
|
108
|
+
sparse?: {} | null | undefined;
|
|
109
|
+
required?: {} | null | undefined;
|
|
110
|
+
ref?: {} | null | undefined;
|
|
111
|
+
cast?: {} | null | undefined;
|
|
112
|
+
select?: {} | null | undefined;
|
|
113
|
+
immutable?: {} | null | undefined;
|
|
114
|
+
transform?: {} | null | undefined;
|
|
115
|
+
options?: {
|
|
116
|
+
[x: string]: unknown;
|
|
117
|
+
} | null | undefined;
|
|
118
|
+
OptionsConstructor?: {
|
|
119
|
+
[x: string]: unknown;
|
|
120
|
+
} | null | undefined;
|
|
121
|
+
getEmbeddedSchemaType?: {} | null | undefined;
|
|
122
|
+
instance?: unknown;
|
|
123
|
+
isRequired?: unknown;
|
|
124
|
+
path?: unknown;
|
|
125
|
+
validateAll?: {} | null | undefined;
|
|
126
|
+
defaultOptions?: unknown;
|
|
127
|
+
} | null | undefined;
|
|
128
|
+
incomeTyppeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
129
|
+
}> & {
|
|
130
|
+
applicantId?: unknown;
|
|
131
|
+
amount?: {
|
|
132
|
+
validators: mongoose.Types.DocumentArray<{
|
|
133
|
+
type?: unknown;
|
|
134
|
+
message?: unknown;
|
|
135
|
+
validator?: unknown;
|
|
136
|
+
reason?: unknown;
|
|
137
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
138
|
+
type?: unknown;
|
|
139
|
+
message?: unknown;
|
|
140
|
+
validator?: unknown;
|
|
141
|
+
reason?: unknown;
|
|
142
|
+
}> & {
|
|
143
|
+
type?: unknown;
|
|
144
|
+
message?: unknown;
|
|
145
|
+
validator?: unknown;
|
|
146
|
+
reason?: unknown;
|
|
147
|
+
}>;
|
|
148
|
+
get?: {} | null | undefined;
|
|
149
|
+
schema?: {
|
|
150
|
+
[x: string]: unknown;
|
|
151
|
+
} | null | undefined;
|
|
152
|
+
set?: {} | null | undefined;
|
|
153
|
+
validate?: {} | null | undefined;
|
|
154
|
+
default?: {} | null | undefined;
|
|
155
|
+
text?: {} | null | undefined;
|
|
156
|
+
unique?: {} | null | undefined;
|
|
157
|
+
index?: {} | null | undefined;
|
|
158
|
+
sparse?: {} | null | undefined;
|
|
159
|
+
required?: {} | null | undefined;
|
|
160
|
+
ref?: {} | null | undefined;
|
|
161
|
+
cast?: {} | null | undefined;
|
|
162
|
+
select?: {} | null | undefined;
|
|
163
|
+
immutable?: {} | null | undefined;
|
|
164
|
+
transform?: {} | null | undefined;
|
|
165
|
+
options?: {
|
|
166
|
+
[x: string]: unknown;
|
|
167
|
+
} | null | undefined;
|
|
168
|
+
OptionsConstructor?: {
|
|
169
|
+
[x: string]: unknown;
|
|
170
|
+
} | null | undefined;
|
|
171
|
+
getEmbeddedSchemaType?: {} | null | undefined;
|
|
172
|
+
instance?: unknown;
|
|
173
|
+
isRequired?: unknown;
|
|
174
|
+
path?: unknown;
|
|
175
|
+
validateAll?: {} | null | undefined;
|
|
176
|
+
defaultOptions?: unknown;
|
|
177
|
+
} | null | undefined;
|
|
178
|
+
incomeTyppeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
179
|
+
} & {
|
|
180
|
+
_id: mongoose.Types.ObjectId;
|
|
181
|
+
} & {
|
|
182
|
+
__v: number;
|
|
183
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
184
|
+
applicantId: string;
|
|
185
|
+
amount: Pound;
|
|
186
|
+
incomeTyppeLid: mongoose.Types.ObjectId;
|
|
187
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
188
|
+
applicantId: string;
|
|
189
|
+
amount: Pound;
|
|
190
|
+
incomeTyppeLid: mongoose.Types.ObjectId;
|
|
191
|
+
}>> & mongoose.FlatRecord<{
|
|
192
|
+
applicantId: string;
|
|
193
|
+
amount: Pound;
|
|
194
|
+
incomeTyppeLid: mongoose.Types.ObjectId;
|
|
195
|
+
}> & {
|
|
196
|
+
_id: mongoose.Types.ObjectId;
|
|
197
|
+
} & {
|
|
198
|
+
__v: number;
|
|
199
|
+
}>>;
|
|
200
|
+
export default EmploymentIncomeModel;
|
|
201
|
+
//# sourceMappingURL=applicant-employment-income.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-employment-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-employment-income.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAQ/C,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuE,CAAC;AAEnG,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
import { Pound } from "../value-objects/pound";
|
|
3
|
+
const employmentIncomeSchema = new mongoose.Schema({
|
|
4
|
+
applicantId: { type: String, required: true },
|
|
5
|
+
incomeTyppeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
|
|
6
|
+
amount: { type: Pound, required: true },
|
|
7
|
+
});
|
|
8
|
+
const EmploymentIncomeModel = mongoose.model("Applicant_EmploymentIncome", employmentIncomeSchema);
|
|
9
|
+
export default EmploymentIncomeModel;
|
|
@@ -45,10 +45,6 @@ declare const applicantEmploymentSchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
45
45
|
acceptableIncomeLids: mongoose.Types.ObjectId[];
|
|
46
46
|
averageBonusPreviousTwoYears: Pound;
|
|
47
47
|
basicGrossIncome: Pound;
|
|
48
|
-
basicPay: Pound;
|
|
49
|
-
carAllowance: Pound;
|
|
50
|
-
childBenefit: Pound;
|
|
51
|
-
childBenefitOrSchoolAllowance: Pound;
|
|
52
48
|
dateJoined: string;
|
|
53
49
|
disabilityLiving: Pound;
|
|
54
50
|
employerName: string;
|
|
@@ -75,8 +71,6 @@ declare const applicantEmploymentSchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
75
71
|
previousNatureOfBusiness: string;
|
|
76
72
|
referenceContact: string;
|
|
77
73
|
referenceContactEmail: string;
|
|
78
|
-
secondJob: Pound;
|
|
79
|
-
travelAllowance: Pound;
|
|
80
74
|
underTerminationNoticeNote: string;
|
|
81
75
|
contractRemaining?: string | null | undefined;
|
|
82
76
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
@@ -91,10 +85,6 @@ declare const applicantEmploymentSchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
91
85
|
acceptableIncomeLids: mongoose.Types.ObjectId[];
|
|
92
86
|
averageBonusPreviousTwoYears: Pound;
|
|
93
87
|
basicGrossIncome: Pound;
|
|
94
|
-
basicPay: Pound;
|
|
95
|
-
carAllowance: Pound;
|
|
96
|
-
childBenefit: Pound;
|
|
97
|
-
childBenefitOrSchoolAllowance: Pound;
|
|
98
88
|
dateJoined: string;
|
|
99
89
|
disabilityLiving: Pound;
|
|
100
90
|
employerName: string;
|
|
@@ -121,8 +111,6 @@ declare const applicantEmploymentSchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
121
111
|
previousNatureOfBusiness: string;
|
|
122
112
|
referenceContact: string;
|
|
123
113
|
referenceContactEmail: string;
|
|
124
|
-
secondJob: Pound;
|
|
125
|
-
travelAllowance: Pound;
|
|
126
114
|
underTerminationNoticeNote: string;
|
|
127
115
|
contractRemaining?: string | null | undefined;
|
|
128
116
|
}>> & mongoose.FlatRecord<{
|
|
@@ -137,10 +125,6 @@ declare const applicantEmploymentSchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
137
125
|
acceptableIncomeLids: mongoose.Types.ObjectId[];
|
|
138
126
|
averageBonusPreviousTwoYears: Pound;
|
|
139
127
|
basicGrossIncome: Pound;
|
|
140
|
-
basicPay: Pound;
|
|
141
|
-
carAllowance: Pound;
|
|
142
|
-
childBenefit: Pound;
|
|
143
|
-
childBenefitOrSchoolAllowance: Pound;
|
|
144
128
|
dateJoined: string;
|
|
145
129
|
disabilityLiving: Pound;
|
|
146
130
|
employerName: string;
|
|
@@ -167,8 +151,6 @@ declare const applicantEmploymentSchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
167
151
|
previousNatureOfBusiness: string;
|
|
168
152
|
referenceContact: string;
|
|
169
153
|
referenceContactEmail: string;
|
|
170
|
-
secondJob: Pound;
|
|
171
|
-
travelAllowance: Pound;
|
|
172
154
|
underTerminationNoticeNote: string;
|
|
173
155
|
contractRemaining?: string | null | undefined;
|
|
174
156
|
}> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-employment.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-employment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,QAAA,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"applicant-employment.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-employment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+C7B,CAAC;AAEH,eAAe,yBAAyB,CAAC"}
|
|
@@ -11,10 +11,6 @@ const applicantEmploymentSchema = new mongoose.Schema({
|
|
|
11
11
|
addressPostCode: { type: String, required: true },
|
|
12
12
|
averageBonusPreviousTwoYears: { type: Pound, default: 0.00 },
|
|
13
13
|
basicGrossIncome: { type: Pound, default: 0.00 },
|
|
14
|
-
basicPay: { type: Pound, default: 0.00 },
|
|
15
|
-
carAllowance: { type: Pound, default: 0.00 },
|
|
16
|
-
childBenefit: { type: Pound, default: 0.00 },
|
|
17
|
-
childBenefitOrSchoolAllowance: { type: Pound, default: 0.00 },
|
|
18
14
|
contractRemaining: { type: String },
|
|
19
15
|
dateJoined: { type: String, required: true },
|
|
20
16
|
disabilityLiving: { type: Pound, default: 0.00 },
|
|
@@ -46,8 +42,6 @@ const applicantEmploymentSchema = new mongoose.Schema({
|
|
|
46
42
|
previousNatureOfBusiness: { type: String, required: true },
|
|
47
43
|
referenceContact: { type: String, default: null },
|
|
48
44
|
referenceContactEmail: { type: String, required: true },
|
|
49
|
-
secondJob: { type: Pound, default: 0.00 },
|
|
50
|
-
travelAllowance: { type: Pound, default: 0.00 },
|
|
51
45
|
underTerminationNoticeNote: { type: String, default: null }
|
|
52
46
|
}, {
|
|
53
47
|
toJSON: { getters: true },
|
|
@@ -81,6 +81,10 @@ declare const incomeSchema: mongoose.Schema<any, mongoose.Model<any, any, any, a
|
|
|
81
81
|
year1: Pound;
|
|
82
82
|
year2: Pound;
|
|
83
83
|
year3: Pound;
|
|
84
|
+
totalEmploymentGrossIncome: Pound;
|
|
85
|
+
totalEmploymentNetIncome: Pound;
|
|
86
|
+
isEmploymentIncomeConfirmed: boolean;
|
|
87
|
+
employmentIncomeRationale: string;
|
|
84
88
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
85
89
|
pageValidFlag: string;
|
|
86
90
|
businessTypeLid: mongoose.Types.ObjectId;
|
|
@@ -129,6 +133,10 @@ declare const incomeSchema: mongoose.Schema<any, mongoose.Model<any, any, any, a
|
|
|
129
133
|
year1: Pound;
|
|
130
134
|
year2: Pound;
|
|
131
135
|
year3: Pound;
|
|
136
|
+
totalEmploymentGrossIncome: Pound;
|
|
137
|
+
totalEmploymentNetIncome: Pound;
|
|
138
|
+
isEmploymentIncomeConfirmed: boolean;
|
|
139
|
+
employmentIncomeRationale: string;
|
|
132
140
|
}>> & mongoose.FlatRecord<{
|
|
133
141
|
pageValidFlag: string;
|
|
134
142
|
businessTypeLid: mongoose.Types.ObjectId;
|
|
@@ -177,6 +185,10 @@ declare const incomeSchema: mongoose.Schema<any, mongoose.Model<any, any, any, a
|
|
|
177
185
|
year1: Pound;
|
|
178
186
|
year2: Pound;
|
|
179
187
|
year3: Pound;
|
|
188
|
+
totalEmploymentGrossIncome: Pound;
|
|
189
|
+
totalEmploymentNetIncome: Pound;
|
|
190
|
+
isEmploymentIncomeConfirmed: boolean;
|
|
191
|
+
employmentIncomeRationale: string;
|
|
180
192
|
}> & {
|
|
181
193
|
_id: mongoose.Types.ObjectId;
|
|
182
194
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-income.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"applicant-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-income.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+DhB,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
|
@@ -53,7 +53,11 @@ const incomeSchema = new mongoose.Schema({
|
|
|
53
53
|
year3: { type: Pound, default: 0.00 },
|
|
54
54
|
yearEnd1: { type: Number, default: '' },
|
|
55
55
|
yearEnd2: { type: Number, default: '' },
|
|
56
|
-
yearEnd3: { type: Number, default: '' }
|
|
56
|
+
yearEnd3: { type: Number, default: '' },
|
|
57
|
+
totalEmploymentGrossIncome: { type: Pound, default: 0.00 },
|
|
58
|
+
totalEmploymentNetIncome: { type: Pound, default: 0.00 },
|
|
59
|
+
isEmploymentIncomeConfirmed: { type: Boolean, default: false },
|
|
60
|
+
employmentIncomeRationale: { type: String, default: null },
|
|
57
61
|
}, {
|
|
58
62
|
toJSON: { getters: true },
|
|
59
63
|
toObject: { getters: true }
|