@dynamatix/gb-schemas 2.22.1 → 2.22.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/README.md +308 -308
- package/dist/applicants/applicant-direct-debit.model.d.ts +86 -0
- package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -0
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.js +53 -0
- package/dist/applicants/applicant-income-source.model.d.ts +26 -0
- package/dist/applicants/applicant-income-source.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income.model.d.ts +160 -0
- package/dist/applicants/applicant-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-other-income.model.d.ts +85 -0
- package/dist/applicants/applicant-other-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-welcome-call.model.js +9 -9
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +6 -0
- package/dist/applications/application-document.model.d.ts +158 -0
- package/dist/applications/application-document.model.d.ts.map +1 -0
- package/dist/applications/application.model.d.ts +12 -12
- package/dist/applications/application.model.js +4 -4
- package/dist/applications/document.model.d.ts +158 -0
- package/dist/applications/document.model.d.ts.map +1 -0
- package/dist/applications/euc-country-tier.model.d.ts +65 -0
- package/dist/applications/euc-country-tier.model.d.ts.map +1 -0
- package/dist/applications/euc-country-tier.model.js +24 -0
- package/dist/applications/euc-country-tier.type.d.ts +7 -0
- package/dist/applications/euc-country-tier.type.d.ts.map +1 -0
- package/dist/applications/euc-country-tier.type.js +1 -0
- package/dist/applications/productfeatures.model.d.ts +368 -0
- package/dist/applications/productfeatures.model.d.ts.map +1 -0
- package/dist/shared/document-type-model.d.ts +48 -0
- package/dist/shared/document-type-model.d.ts.map +1 -0
- package/package.json +90 -90
|
@@ -102,8 +102,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
102
102
|
applicationFormSignedDate: NativeDate;
|
|
103
103
|
creditReportId: string;
|
|
104
104
|
isAlgbraEligible: boolean;
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
totalNumberOfAdults: number;
|
|
106
|
+
totalNumberOfChildren: number;
|
|
107
107
|
selectedProduct?: string | null | undefined;
|
|
108
108
|
product?: string | null | undefined;
|
|
109
109
|
riskRating?: string | null | undefined;
|
|
@@ -204,8 +204,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
204
204
|
applicationFormSignedDate: NativeDate;
|
|
205
205
|
creditReportId: string;
|
|
206
206
|
isAlgbraEligible: boolean;
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
totalNumberOfAdults: number;
|
|
208
|
+
totalNumberOfChildren: number;
|
|
209
209
|
selectedProduct?: string | null | undefined;
|
|
210
210
|
product?: string | null | undefined;
|
|
211
211
|
riskRating?: string | null | undefined;
|
|
@@ -306,8 +306,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
306
306
|
applicationFormSignedDate: NativeDate;
|
|
307
307
|
creditReportId: string;
|
|
308
308
|
isAlgbraEligible: boolean;
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
totalNumberOfAdults: number;
|
|
310
|
+
totalNumberOfChildren: number;
|
|
311
311
|
selectedProduct?: string | null | undefined;
|
|
312
312
|
product?: string | null | undefined;
|
|
313
313
|
riskRating?: string | null | undefined;
|
|
@@ -420,8 +420,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
420
420
|
applicationFormSignedDate: NativeDate;
|
|
421
421
|
creditReportId: string;
|
|
422
422
|
isAlgbraEligible: boolean;
|
|
423
|
-
|
|
424
|
-
|
|
423
|
+
totalNumberOfAdults: number;
|
|
424
|
+
totalNumberOfChildren: number;
|
|
425
425
|
selectedProduct?: string | null | undefined;
|
|
426
426
|
product?: string | null | undefined;
|
|
427
427
|
riskRating?: string | null | undefined;
|
|
@@ -522,8 +522,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
522
522
|
applicationFormSignedDate: NativeDate;
|
|
523
523
|
creditReportId: string;
|
|
524
524
|
isAlgbraEligible: boolean;
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
totalNumberOfAdults: number;
|
|
526
|
+
totalNumberOfChildren: number;
|
|
527
527
|
selectedProduct?: string | null | undefined;
|
|
528
528
|
product?: string | null | undefined;
|
|
529
529
|
riskRating?: string | null | undefined;
|
|
@@ -624,8 +624,8 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
624
624
|
applicationFormSignedDate: NativeDate;
|
|
625
625
|
creditReportId: string;
|
|
626
626
|
isAlgbraEligible: boolean;
|
|
627
|
-
|
|
628
|
-
|
|
627
|
+
totalNumberOfAdults: number;
|
|
628
|
+
totalNumberOfChildren: number;
|
|
629
629
|
selectedProduct?: string | null | undefined;
|
|
630
630
|
product?: string | null | undefined;
|
|
631
631
|
riskRating?: string | null | undefined;
|
|
@@ -117,15 +117,15 @@ const applicationSchema = new mongoose.Schema({
|
|
|
117
117
|
},
|
|
118
118
|
creditReportId: { type: String, default: null },
|
|
119
119
|
isAlgbraEligible: { type: Boolean, default: false },
|
|
120
|
-
|
|
120
|
+
totalNumberOfAdults: {
|
|
121
121
|
type: Number,
|
|
122
122
|
default: null,
|
|
123
|
-
description: "Number of adults in the household used for the ONS expected expenditure lookup. Defaulted on first import from applicant and dependant ages; editable by underwriters."
|
|
123
|
+
description: "Total Number of adults in the household used for the ONS expected expenditure lookup. Defaulted on first import from applicant and dependant ages; editable by underwriters."
|
|
124
124
|
},
|
|
125
|
-
|
|
125
|
+
totalNumberOfChildren: {
|
|
126
126
|
type: Number,
|
|
127
127
|
default: null,
|
|
128
|
-
description: "Number of children in the household used for the ONS expected expenditure lookup. Defaulted on first import from applicant and dependant ages; editable by underwriters."
|
|
128
|
+
description: "Total Number of children in the household used for the ONS expected expenditure lookup. Defaulted on first import from applicant and dependant ages; editable by underwriters."
|
|
129
129
|
},
|
|
130
130
|
}, {
|
|
131
131
|
timestamps: true,
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const DocumentModel: mongoose.Model<{
|
|
3
|
+
createdAt: NativeDate;
|
|
4
|
+
updatedAt: NativeDate;
|
|
5
|
+
} & {
|
|
6
|
+
documentId: string;
|
|
7
|
+
signers: any[];
|
|
8
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
9
|
+
data?: string | null | undefined;
|
|
10
|
+
owningEntityId?: string | null | undefined;
|
|
11
|
+
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
12
|
+
documentTypeId?: mongoose.Types.ObjectId | null | undefined;
|
|
13
|
+
fileName?: string | null | undefined;
|
|
14
|
+
contentType?: string | null | undefined;
|
|
15
|
+
created?: string | null | undefined;
|
|
16
|
+
createdBy?: string | null | undefined;
|
|
17
|
+
isGenerated?: string | null | undefined;
|
|
18
|
+
envelopeId?: string | null | undefined;
|
|
19
|
+
documentType?: {
|
|
20
|
+
data?: any;
|
|
21
|
+
value?: string | null | undefined;
|
|
22
|
+
documentTypeId?: string | null | undefined;
|
|
23
|
+
displayName?: string | null | undefined;
|
|
24
|
+
} | null | undefined;
|
|
25
|
+
documentUrl?: string | null | undefined;
|
|
26
|
+
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
27
|
+
createdAt: NativeDate;
|
|
28
|
+
updatedAt: NativeDate;
|
|
29
|
+
} & {
|
|
30
|
+
documentId: string;
|
|
31
|
+
signers: any[];
|
|
32
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
33
|
+
data?: string | null | undefined;
|
|
34
|
+
owningEntityId?: string | null | undefined;
|
|
35
|
+
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
36
|
+
documentTypeId?: mongoose.Types.ObjectId | null | undefined;
|
|
37
|
+
fileName?: string | null | undefined;
|
|
38
|
+
contentType?: string | null | undefined;
|
|
39
|
+
created?: string | null | undefined;
|
|
40
|
+
createdBy?: string | null | undefined;
|
|
41
|
+
isGenerated?: string | null | undefined;
|
|
42
|
+
envelopeId?: string | null | undefined;
|
|
43
|
+
documentType?: {
|
|
44
|
+
data?: any;
|
|
45
|
+
value?: string | null | undefined;
|
|
46
|
+
documentTypeId?: string | null | undefined;
|
|
47
|
+
displayName?: string | null | undefined;
|
|
48
|
+
} | null | undefined;
|
|
49
|
+
documentUrl?: string | null | undefined;
|
|
50
|
+
}> & {
|
|
51
|
+
createdAt: NativeDate;
|
|
52
|
+
updatedAt: NativeDate;
|
|
53
|
+
} & {
|
|
54
|
+
documentId: string;
|
|
55
|
+
signers: any[];
|
|
56
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
57
|
+
data?: string | null | undefined;
|
|
58
|
+
owningEntityId?: string | null | undefined;
|
|
59
|
+
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
60
|
+
documentTypeId?: mongoose.Types.ObjectId | null | undefined;
|
|
61
|
+
fileName?: string | null | undefined;
|
|
62
|
+
contentType?: string | null | undefined;
|
|
63
|
+
created?: string | null | undefined;
|
|
64
|
+
createdBy?: string | null | undefined;
|
|
65
|
+
isGenerated?: string | null | undefined;
|
|
66
|
+
envelopeId?: string | null | undefined;
|
|
67
|
+
documentType?: {
|
|
68
|
+
data?: any;
|
|
69
|
+
value?: string | null | undefined;
|
|
70
|
+
documentTypeId?: string | null | undefined;
|
|
71
|
+
displayName?: string | null | undefined;
|
|
72
|
+
} | null | undefined;
|
|
73
|
+
documentUrl?: string | null | undefined;
|
|
74
|
+
} & {
|
|
75
|
+
_id: mongoose.Types.ObjectId;
|
|
76
|
+
} & {
|
|
77
|
+
__v: number;
|
|
78
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
79
|
+
timestamps: true;
|
|
80
|
+
}, {
|
|
81
|
+
createdAt: NativeDate;
|
|
82
|
+
updatedAt: NativeDate;
|
|
83
|
+
} & {
|
|
84
|
+
documentId: string;
|
|
85
|
+
signers: any[];
|
|
86
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
87
|
+
data?: string | null | undefined;
|
|
88
|
+
owningEntityId?: string | null | undefined;
|
|
89
|
+
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
90
|
+
documentTypeId?: mongoose.Types.ObjectId | null | undefined;
|
|
91
|
+
fileName?: string | null | undefined;
|
|
92
|
+
contentType?: string | null | undefined;
|
|
93
|
+
created?: string | null | undefined;
|
|
94
|
+
createdBy?: string | null | undefined;
|
|
95
|
+
isGenerated?: string | null | undefined;
|
|
96
|
+
envelopeId?: string | null | undefined;
|
|
97
|
+
documentType?: {
|
|
98
|
+
data?: any;
|
|
99
|
+
value?: string | null | undefined;
|
|
100
|
+
documentTypeId?: string | null | undefined;
|
|
101
|
+
displayName?: string | null | undefined;
|
|
102
|
+
} | null | undefined;
|
|
103
|
+
documentUrl?: string | null | undefined;
|
|
104
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
105
|
+
createdAt: NativeDate;
|
|
106
|
+
updatedAt: NativeDate;
|
|
107
|
+
} & {
|
|
108
|
+
documentId: string;
|
|
109
|
+
signers: any[];
|
|
110
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
111
|
+
data?: string | null | undefined;
|
|
112
|
+
owningEntityId?: string | null | undefined;
|
|
113
|
+
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
114
|
+
documentTypeId?: mongoose.Types.ObjectId | null | undefined;
|
|
115
|
+
fileName?: string | null | undefined;
|
|
116
|
+
contentType?: string | null | undefined;
|
|
117
|
+
created?: string | null | undefined;
|
|
118
|
+
createdBy?: string | null | undefined;
|
|
119
|
+
isGenerated?: string | null | undefined;
|
|
120
|
+
envelopeId?: string | null | undefined;
|
|
121
|
+
documentType?: {
|
|
122
|
+
data?: any;
|
|
123
|
+
value?: string | null | undefined;
|
|
124
|
+
documentTypeId?: string | null | undefined;
|
|
125
|
+
displayName?: string | null | undefined;
|
|
126
|
+
} | null | undefined;
|
|
127
|
+
documentUrl?: string | null | undefined;
|
|
128
|
+
}>> & mongoose.FlatRecord<{
|
|
129
|
+
createdAt: NativeDate;
|
|
130
|
+
updatedAt: NativeDate;
|
|
131
|
+
} & {
|
|
132
|
+
documentId: string;
|
|
133
|
+
signers: any[];
|
|
134
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
135
|
+
data?: string | null | undefined;
|
|
136
|
+
owningEntityId?: string | null | undefined;
|
|
137
|
+
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
138
|
+
documentTypeId?: mongoose.Types.ObjectId | null | undefined;
|
|
139
|
+
fileName?: string | null | undefined;
|
|
140
|
+
contentType?: string | null | undefined;
|
|
141
|
+
created?: string | null | undefined;
|
|
142
|
+
createdBy?: string | null | undefined;
|
|
143
|
+
isGenerated?: string | null | undefined;
|
|
144
|
+
envelopeId?: string | null | undefined;
|
|
145
|
+
documentType?: {
|
|
146
|
+
data?: any;
|
|
147
|
+
value?: string | null | undefined;
|
|
148
|
+
documentTypeId?: string | null | undefined;
|
|
149
|
+
displayName?: string | null | undefined;
|
|
150
|
+
} | null | undefined;
|
|
151
|
+
documentUrl?: string | null | undefined;
|
|
152
|
+
}> & {
|
|
153
|
+
_id: mongoose.Types.ObjectId;
|
|
154
|
+
} & {
|
|
155
|
+
__v: number;
|
|
156
|
+
}>>;
|
|
157
|
+
export default DocumentModel;
|
|
158
|
+
//# sourceMappingURL=document.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.model.d.ts","sourceRoot":"","sources":["../../applications/document.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAoChC,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AACjE,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
+
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
+
/// <reference path="../shared/encryption/encrypted-field-map.d.ts" />
|
|
4
|
+
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
5
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
6
|
+
/// <reference types="mongoose/types/callback" />
|
|
7
|
+
/// <reference types="mongoose/types/collection" />
|
|
8
|
+
/// <reference types="mongoose/types/connection" />
|
|
9
|
+
/// <reference types="mongoose/types/cursor" />
|
|
10
|
+
/// <reference types="mongoose/types/document" />
|
|
11
|
+
/// <reference types="mongoose/types/error" />
|
|
12
|
+
/// <reference types="mongoose/types/expressions" />
|
|
13
|
+
/// <reference types="mongoose/types/helpers" />
|
|
14
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
15
|
+
/// <reference types="mongoose/types/indexes" />
|
|
16
|
+
/// <reference types="mongoose/types/models" />
|
|
17
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
19
|
+
/// <reference types="mongoose/types/populate" />
|
|
20
|
+
/// <reference types="mongoose/types/query" />
|
|
21
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
22
|
+
/// <reference types="mongoose/types/session" />
|
|
23
|
+
/// <reference types="mongoose/types/types" />
|
|
24
|
+
/// <reference types="mongoose/types/utility" />
|
|
25
|
+
/// <reference types="mongoose/types/validation" />
|
|
26
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
27
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
28
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
29
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
30
|
+
import mongoose from "mongoose";
|
|
31
|
+
declare const EucCountryTierModel: mongoose.Model<{
|
|
32
|
+
country: string;
|
|
33
|
+
tier: number;
|
|
34
|
+
incomeCut: number;
|
|
35
|
+
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
36
|
+
country: string;
|
|
37
|
+
tier: number;
|
|
38
|
+
incomeCut: number;
|
|
39
|
+
}, {}> & {
|
|
40
|
+
country: string;
|
|
41
|
+
tier: number;
|
|
42
|
+
incomeCut: number;
|
|
43
|
+
} & {
|
|
44
|
+
_id: mongoose.Types.ObjectId;
|
|
45
|
+
} & {
|
|
46
|
+
__v: number;
|
|
47
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
48
|
+
country: string;
|
|
49
|
+
tier: number;
|
|
50
|
+
incomeCut: number;
|
|
51
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
52
|
+
country: string;
|
|
53
|
+
tier: number;
|
|
54
|
+
incomeCut: number;
|
|
55
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
56
|
+
country: string;
|
|
57
|
+
tier: number;
|
|
58
|
+
incomeCut: number;
|
|
59
|
+
}> & {
|
|
60
|
+
_id: mongoose.Types.ObjectId;
|
|
61
|
+
} & {
|
|
62
|
+
__v: number;
|
|
63
|
+
}>>;
|
|
64
|
+
export default EucCountryTierModel;
|
|
65
|
+
//# sourceMappingURL=euc-country-tier.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"euc-country-tier.model.d.ts","sourceRoot":"","sources":["../../applications/euc-country-tier.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA8BhC,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGxB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
|
+
const eucCountryTierSchema = new mongoose.Schema({
|
|
4
|
+
country: {
|
|
5
|
+
type: String,
|
|
6
|
+
required: true,
|
|
7
|
+
description: "Country name used for EUC income cut / tier rules",
|
|
8
|
+
},
|
|
9
|
+
tier: {
|
|
10
|
+
type: Number,
|
|
11
|
+
required: true,
|
|
12
|
+
description: "Country risk/income tier for EUC",
|
|
13
|
+
},
|
|
14
|
+
incomeCut: {
|
|
15
|
+
type: Number,
|
|
16
|
+
required: true,
|
|
17
|
+
description: "Income cut percentage applied for this country in EUC",
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
eucCountryTierSchema.index({ country: 1 }, { unique: true, collation: { locale: "en", strength: 2 } });
|
|
21
|
+
eucCountryTierSchema.index({ tier: 1 });
|
|
22
|
+
applyWorkflowPlugin(eucCountryTierSchema, "euccountrytier");
|
|
23
|
+
const EucCountryTierModel = mongoose.model("EucCountryTier", eucCountryTierSchema);
|
|
24
|
+
export default EucCountryTierModel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"euc-country-tier.type.d.ts","sourceRoot":"","sources":["../../applications/euc-country-tier.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,CAAC,OAAO,WAAW,eAAgB,SAAQ,SAAS;IACxD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|