@dynamatix/gb-schemas 1.2.27 → 1.2.30
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.model.d.ts +615 -615
- package/dist/applicants/applicant-credit-data.model.d.ts +16 -16
- package/dist/applicants/applicant-credit-data.model.js +6 -6
- package/dist/applicants/applicant-credit-profile.model.d.ts +1 -1
- package/dist/applicants/applicant-direct-debit.model.d.ts +1 -1
- package/dist/applicants/applicant-employment.model.d.ts +12 -12
- package/dist/applicants/applicant-income-source.model.d.ts +1 -1
- package/dist/applicants/applicant-income.model.d.ts +6 -6
- package/dist/applicants/applicant-property-income.model.d.ts +3 -3
- package/dist/applicants/applicant-risk-narrative.model.d.ts +1 -1
- package/dist/applicants/applicant.model.d.ts +1315 -1315
- package/dist/applications/application-audit.model.d.ts +1 -1
- package/dist/applications/application-checklist-Item.model.d.ts +1 -1
- package/dist/applications/application-company-model.d.ts +1063 -157
- package/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-company-model.js +85 -29
- package/dist/applications/application-credit-profile.model.d.ts +5 -5
- package/dist/applications/application-direct-debit.model.d.ts +12 -12
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.js +1 -0
- package/dist/applications/application-document.model.d.ts +1 -1
- package/dist/applications/application-fieldconfig.model.d.ts +1 -1
- package/dist/applications/application-illustration-model.d.ts +1 -1
- package/dist/applications/application-legal.model.d.ts +1 -1
- package/dist/applications/application-mortgage.model.d.ts +48 -48
- package/dist/applications/application-note.model.d.ts +1 -1
- package/dist/applications/application-offer.model.d.ts +1 -1
- package/dist/applications/application-onboarding.model.d.ts +1 -1
- package/dist/applications/application-product.model.d.ts +1 -1
- package/dist/applications/application-rationale.model.d.ts +1 -1
- package/dist/applications/application-risk-narrative.model.d.ts +1 -1
- package/dist/applications/application-valuation.model.d.ts +1 -1
- package/dist/applications/application.model.d.ts +13 -13
- package/dist/applications/broker.model.d.ts +19 -19
- package/dist/applications/document.model.d.ts +1 -1
- package/dist/applications/productfeatures.model.d.ts +1 -1
- package/dist/applications/solicitor.model.d.ts +18 -18
- package/dist/applications/solicitor.model.d.ts.map +1 -1
- package/dist/applications/solicitor.model.js +3 -1
- package/dist/product-catalogues/product-catalogue.model.d.ts +1 -1
- package/dist/product-catalogues/product-definitions.model.d.ts +1 -1
- package/dist/product-catalogues/product-variant.model.d.ts +1 -1
- package/dist/properties/property.model.d.ts +60 -60
- package/dist/properties/security.model.d.ts +1 -1
- package/dist/shared/alert.model.d.ts +1 -1
- package/dist/shared/apprivo-sync-journey.model.d.ts +1 -1
- package/dist/shared/checklist.model.d.ts +1 -1
- package/dist/shared/document-type-model.d.ts +1 -1
- package/dist/shared/job-run.model.d.ts +1 -1
- package/dist/shared/job-setting.model.d.ts +1 -1
- package/dist/shared/lookup-group.model.d.ts +1 -1
- package/dist/shared/lookup.model.d.ts +1 -1
- package/dist/shared/schema-doc.model.d.ts +1 -1
- package/dist/shared/system-parameter.model.d.ts +1 -1
- package/dist/shared/task-document.model.d.ts +1 -1
- package/dist/shared/task.model.d.ts +1 -1
- package/dist/underwriter/underwriter.model.d.ts +1 -1
- package/dist/users/auth-log.model.d.ts +1 -1
- package/dist/users/permission.model.d.ts +1 -1
- package/dist/users/role-group.model.d.ts +1 -1
- package/dist/users/role.model.d.ts +1 -1
- package/dist/users/tasks.model.d.ts +1 -1
- package/dist/users/user.model.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
2
1
|
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
3
3
|
/// <reference types="mongoose/types/aggregate" />
|
|
4
4
|
/// <reference types="mongoose/types/callback" />
|
|
5
5
|
/// <reference types="mongoose/types/collection" />
|
|
@@ -28,28 +28,28 @@
|
|
|
28
28
|
import mongoose from "mongoose";
|
|
29
29
|
declare const applicantCreditDataSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
30
30
|
statusLid: mongoose.Types.ObjectId;
|
|
31
|
-
bankruptcy
|
|
32
|
-
countyCourtJudgment
|
|
31
|
+
bankruptcy: string;
|
|
32
|
+
countyCourtJudgment: string;
|
|
33
|
+
securedArrears: string;
|
|
34
|
+
unsecuredArrears: string;
|
|
35
|
+
valid: string;
|
|
33
36
|
creditDefaults?: string | null | undefined;
|
|
34
|
-
securedArrears?: string | null | undefined;
|
|
35
|
-
unsecuredArrears?: string | null | undefined;
|
|
36
|
-
valid?: string | null | undefined;
|
|
37
37
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
38
38
|
statusLid: mongoose.Types.ObjectId;
|
|
39
|
-
bankruptcy
|
|
40
|
-
countyCourtJudgment
|
|
39
|
+
bankruptcy: string;
|
|
40
|
+
countyCourtJudgment: string;
|
|
41
|
+
securedArrears: string;
|
|
42
|
+
unsecuredArrears: string;
|
|
43
|
+
valid: string;
|
|
41
44
|
creditDefaults?: string | null | undefined;
|
|
42
|
-
securedArrears?: string | null | undefined;
|
|
43
|
-
unsecuredArrears?: string | null | undefined;
|
|
44
|
-
valid?: string | null | undefined;
|
|
45
45
|
}>> & mongoose.FlatRecord<{
|
|
46
46
|
statusLid: mongoose.Types.ObjectId;
|
|
47
|
-
bankruptcy
|
|
48
|
-
countyCourtJudgment
|
|
47
|
+
bankruptcy: string;
|
|
48
|
+
countyCourtJudgment: string;
|
|
49
|
+
securedArrears: string;
|
|
50
|
+
unsecuredArrears: string;
|
|
51
|
+
valid: string;
|
|
49
52
|
creditDefaults?: string | null | undefined;
|
|
50
|
-
securedArrears?: string | null | undefined;
|
|
51
|
-
unsecuredArrears?: string | null | undefined;
|
|
52
|
-
valid?: string | null | undefined;
|
|
53
53
|
}> & {
|
|
54
54
|
_id: mongoose.Types.ObjectId;
|
|
55
55
|
} & {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
2
|
const applicantCreditDataSchema = new mongoose.Schema({
|
|
3
|
-
bankruptcy: { type: String },
|
|
4
|
-
countyCourtJudgment: { type: String },
|
|
3
|
+
bankruptcy: { type: String, required: true },
|
|
4
|
+
countyCourtJudgment: { type: String, required: true },
|
|
5
5
|
creditDefaults: { type: String },
|
|
6
|
-
securedArrears: { type: String },
|
|
7
|
-
statusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
8
|
-
unsecuredArrears: { type: String },
|
|
9
|
-
valid: { type: String }
|
|
6
|
+
securedArrears: { type: String, required: true },
|
|
7
|
+
statusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null, required: true },
|
|
8
|
+
unsecuredArrears: { type: String, required: true },
|
|
9
|
+
valid: { type: String, required: true },
|
|
10
10
|
});
|
|
11
11
|
export default applicantCreditDataSchema;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
2
1
|
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
3
3
|
/// <reference types="mongoose/types/aggregate" />
|
|
4
4
|
/// <reference types="mongoose/types/callback" />
|
|
5
5
|
/// <reference types="mongoose/types/collection" />
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
2
1
|
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
3
3
|
/// <reference types="mongoose/types/aggregate" />
|
|
4
4
|
/// <reference types="mongoose/types/callback" />
|
|
5
5
|
/// <reference types="mongoose/types/collection" />
|
|
@@ -34,13 +34,13 @@ declare const applicantEmploymentSchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
34
34
|
getters: true;
|
|
35
35
|
};
|
|
36
36
|
}, {
|
|
37
|
-
|
|
37
|
+
pageValidFlag: boolean;
|
|
38
|
+
natureOfBusiness: string;
|
|
39
|
+
addressPostCode: string;
|
|
38
40
|
addressLine1: string;
|
|
39
41
|
addressLine2: string;
|
|
40
42
|
addressLine3: string;
|
|
41
|
-
|
|
42
|
-
natureOfBusiness: string;
|
|
43
|
-
pageValidFlag: boolean;
|
|
43
|
+
addressCity: string;
|
|
44
44
|
addressCountryLid: mongoose.Types.ObjectId;
|
|
45
45
|
averageBonusPreviousTwoYears: Pound;
|
|
46
46
|
basicGrossIncome: Pound;
|
|
@@ -80,13 +80,13 @@ declare const applicantEmploymentSchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
80
80
|
acceptableIncome?: string | null | undefined;
|
|
81
81
|
contractRemaining?: string | null | undefined;
|
|
82
82
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
83
|
-
|
|
83
|
+
pageValidFlag: boolean;
|
|
84
|
+
natureOfBusiness: string;
|
|
85
|
+
addressPostCode: string;
|
|
84
86
|
addressLine1: string;
|
|
85
87
|
addressLine2: string;
|
|
86
88
|
addressLine3: string;
|
|
87
|
-
|
|
88
|
-
natureOfBusiness: string;
|
|
89
|
-
pageValidFlag: boolean;
|
|
89
|
+
addressCity: string;
|
|
90
90
|
addressCountryLid: mongoose.Types.ObjectId;
|
|
91
91
|
averageBonusPreviousTwoYears: Pound;
|
|
92
92
|
basicGrossIncome: Pound;
|
|
@@ -126,13 +126,13 @@ declare const applicantEmploymentSchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
126
126
|
acceptableIncome?: string | null | undefined;
|
|
127
127
|
contractRemaining?: string | null | undefined;
|
|
128
128
|
}>> & mongoose.FlatRecord<{
|
|
129
|
-
|
|
129
|
+
pageValidFlag: boolean;
|
|
130
|
+
natureOfBusiness: string;
|
|
131
|
+
addressPostCode: string;
|
|
130
132
|
addressLine1: string;
|
|
131
133
|
addressLine2: string;
|
|
132
134
|
addressLine3: string;
|
|
133
|
-
|
|
134
|
-
natureOfBusiness: string;
|
|
135
|
-
pageValidFlag: boolean;
|
|
135
|
+
addressCity: string;
|
|
136
136
|
addressCountryLid: mongoose.Types.ObjectId;
|
|
137
137
|
averageBonusPreviousTwoYears: Pound;
|
|
138
138
|
basicGrossIncome: Pound;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
2
1
|
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
3
3
|
/// <reference types="mongoose/types/aggregate" />
|
|
4
4
|
/// <reference types="mongoose/types/callback" />
|
|
5
5
|
/// <reference types="mongoose/types/collection" />
|
|
@@ -34,11 +34,12 @@ declare const incomeSchema: mongoose.Schema<any, mongoose.Model<any, any, any, a
|
|
|
34
34
|
getters: true;
|
|
35
35
|
};
|
|
36
36
|
}, {
|
|
37
|
+
pageValidFlag: string;
|
|
38
|
+
businessTypeLid: mongoose.Types.ObjectId;
|
|
37
39
|
natureOfBusiness: string;
|
|
38
40
|
yearEnd1: number;
|
|
39
41
|
yearEnd2: number;
|
|
40
42
|
yearEnd3: number;
|
|
41
|
-
pageValidFlag: string;
|
|
42
43
|
accountantsAddressLine1: string;
|
|
43
44
|
accountantsAddressLine2: string;
|
|
44
45
|
accountantsAddressLine3: string;
|
|
@@ -55,7 +56,6 @@ declare const incomeSchema: mongoose.Schema<any, mongoose.Model<any, any, any, a
|
|
|
55
56
|
businessCountryLid: mongoose.Types.ObjectId;
|
|
56
57
|
businessPostCode: string;
|
|
57
58
|
businessTelephoneNumber: string;
|
|
58
|
-
businessTypeLid: mongoose.Types.ObjectId;
|
|
59
59
|
charteredCertifiedOrOtherLid: mongoose.Types.ObjectId;
|
|
60
60
|
contactName: string;
|
|
61
61
|
currentYearEnd: string;
|
|
@@ -82,11 +82,12 @@ declare const incomeSchema: mongoose.Schema<any, mongoose.Model<any, any, any, a
|
|
|
82
82
|
year2: Pound;
|
|
83
83
|
year3: Pound;
|
|
84
84
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
85
|
+
pageValidFlag: string;
|
|
86
|
+
businessTypeLid: mongoose.Types.ObjectId;
|
|
85
87
|
natureOfBusiness: string;
|
|
86
88
|
yearEnd1: number;
|
|
87
89
|
yearEnd2: number;
|
|
88
90
|
yearEnd3: number;
|
|
89
|
-
pageValidFlag: string;
|
|
90
91
|
accountantsAddressLine1: string;
|
|
91
92
|
accountantsAddressLine2: string;
|
|
92
93
|
accountantsAddressLine3: string;
|
|
@@ -103,7 +104,6 @@ declare const incomeSchema: mongoose.Schema<any, mongoose.Model<any, any, any, a
|
|
|
103
104
|
businessCountryLid: mongoose.Types.ObjectId;
|
|
104
105
|
businessPostCode: string;
|
|
105
106
|
businessTelephoneNumber: string;
|
|
106
|
-
businessTypeLid: mongoose.Types.ObjectId;
|
|
107
107
|
charteredCertifiedOrOtherLid: mongoose.Types.ObjectId;
|
|
108
108
|
contactName: string;
|
|
109
109
|
currentYearEnd: string;
|
|
@@ -130,11 +130,12 @@ declare const incomeSchema: mongoose.Schema<any, mongoose.Model<any, any, any, a
|
|
|
130
130
|
year2: Pound;
|
|
131
131
|
year3: Pound;
|
|
132
132
|
}>> & mongoose.FlatRecord<{
|
|
133
|
+
pageValidFlag: string;
|
|
134
|
+
businessTypeLid: mongoose.Types.ObjectId;
|
|
133
135
|
natureOfBusiness: string;
|
|
134
136
|
yearEnd1: number;
|
|
135
137
|
yearEnd2: number;
|
|
136
138
|
yearEnd3: number;
|
|
137
|
-
pageValidFlag: string;
|
|
138
139
|
accountantsAddressLine1: string;
|
|
139
140
|
accountantsAddressLine2: string;
|
|
140
141
|
accountantsAddressLine3: string;
|
|
@@ -151,7 +152,6 @@ declare const incomeSchema: mongoose.Schema<any, mongoose.Model<any, any, any, a
|
|
|
151
152
|
businessCountryLid: mongoose.Types.ObjectId;
|
|
152
153
|
businessPostCode: string;
|
|
153
154
|
businessTelephoneNumber: string;
|
|
154
|
-
businessTypeLid: mongoose.Types.ObjectId;
|
|
155
155
|
charteredCertifiedOrOtherLid: mongoose.Types.ObjectId;
|
|
156
156
|
contactName: string;
|
|
157
157
|
currentYearEnd: string;
|
|
@@ -34,10 +34,10 @@ declare const propertyIncomeSchema: mongoose.Schema<any, mongoose.Model<any, any
|
|
|
34
34
|
getters: true;
|
|
35
35
|
};
|
|
36
36
|
}, {
|
|
37
|
+
pageValidFlag: boolean;
|
|
37
38
|
yearEnd1: number;
|
|
38
39
|
yearEnd2: number;
|
|
39
40
|
yearEnd3: number;
|
|
40
|
-
pageValidFlag: boolean;
|
|
41
41
|
rentalIncome1: Pound;
|
|
42
42
|
netProfit1: Pound;
|
|
43
43
|
rentalIncome2: Pound;
|
|
@@ -45,10 +45,10 @@ declare const propertyIncomeSchema: mongoose.Schema<any, mongoose.Model<any, any
|
|
|
45
45
|
rentalIncome3: Pound;
|
|
46
46
|
netProfit3: Pound;
|
|
47
47
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
48
|
+
pageValidFlag: boolean;
|
|
48
49
|
yearEnd1: number;
|
|
49
50
|
yearEnd2: number;
|
|
50
51
|
yearEnd3: number;
|
|
51
|
-
pageValidFlag: boolean;
|
|
52
52
|
rentalIncome1: Pound;
|
|
53
53
|
netProfit1: Pound;
|
|
54
54
|
rentalIncome2: Pound;
|
|
@@ -56,10 +56,10 @@ declare const propertyIncomeSchema: mongoose.Schema<any, mongoose.Model<any, any
|
|
|
56
56
|
rentalIncome3: Pound;
|
|
57
57
|
netProfit3: Pound;
|
|
58
58
|
}>> & mongoose.FlatRecord<{
|
|
59
|
+
pageValidFlag: boolean;
|
|
59
60
|
yearEnd1: number;
|
|
60
61
|
yearEnd2: number;
|
|
61
62
|
yearEnd3: number;
|
|
62
|
-
pageValidFlag: boolean;
|
|
63
63
|
rentalIncome1: Pound;
|
|
64
64
|
netProfit1: Pound;
|
|
65
65
|
rentalIncome2: Pound;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
2
1
|
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
3
3
|
/// <reference types="mongoose/types/aggregate" />
|
|
4
4
|
/// <reference types="mongoose/types/callback" />
|
|
5
5
|
/// <reference types="mongoose/types/collection" />
|