@dynamatix/gb-schemas 2.20.10 → 2.21.1

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.
Files changed (29) hide show
  1. package/README.md +308 -308
  2. package/dist/applicants/applicant-direct-debit.model.d.ts +86 -0
  3. package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -0
  4. package/dist/applicants/applicant-direct-debit.model.js +16 -0
  5. package/dist/applicants/applicant-income-source.model.d.ts +26 -0
  6. package/dist/applicants/applicant-income-source.model.d.ts.map +1 -0
  7. package/dist/applicants/applicant-income.model.d.ts +160 -0
  8. package/dist/applicants/applicant-income.model.d.ts.map +1 -0
  9. package/dist/applicants/applicant-other-income.model.d.ts +85 -0
  10. package/dist/applicants/applicant-other-income.model.d.ts.map +1 -0
  11. package/dist/applicants/applicant-welcome-call.model.js +9 -9
  12. package/dist/applications/application-document.model.d.ts +158 -0
  13. package/dist/applications/application-document.model.d.ts.map +1 -0
  14. package/dist/applications/application.model.d.ts +12 -24
  15. package/dist/applications/application.model.d.ts.map +1 -1
  16. package/dist/applications/application.model.js +6 -19
  17. package/dist/applications/document.model.d.ts +158 -0
  18. package/dist/applications/document.model.d.ts.map +1 -0
  19. package/dist/applications/euc-country-tier.model.d.ts +65 -0
  20. package/dist/applications/euc-country-tier.model.d.ts.map +1 -0
  21. package/dist/applications/euc-country-tier.model.js +24 -0
  22. package/dist/applications/euc-country-tier.type.d.ts +7 -0
  23. package/dist/applications/euc-country-tier.type.d.ts.map +1 -0
  24. package/dist/applications/euc-country-tier.type.js +1 -0
  25. package/dist/applications/productfeatures.model.d.ts +368 -0
  26. package/dist/applications/productfeatures.model.d.ts.map +1 -0
  27. package/dist/shared/document-type-model.d.ts +48 -0
  28. package/dist/shared/document-type-model.d.ts.map +1 -0
  29. package/package.json +90 -90
@@ -116,30 +116,17 @@ const applicationSchema = new mongoose.Schema({
116
116
  default: false
117
117
  },
118
118
  creditReportId: { type: String, default: null },
119
- // ── Broker journey · Step 1 (Application Setup) ────────────────────────────
120
- // Captured by the broker-facing Application Setup form. All optional: applications
121
- // synced from Apprivo never set them, and must keep validating.
122
- isCompanyApplication: {
123
- type: Boolean,
124
- default: null,
125
- description: "Is the application on behalf of a company? false = Private Individual. Routes the rest of the journey (company record vs individual applicants); does NOT affect applicationTypeLid."
126
- },
127
- requestedApplicantCount: {
119
+ isAlgbraEligible: { type: Boolean, default: false },
120
+ totalNumberOfAdults: {
128
121
  type: Number,
129
122
  default: null,
130
- description: "How many applicants will be listed on the application (1-4). Captured before any Applicant records exist, so applicants.length cannot answer it."
131
- },
132
- isIntendToResideInProperty: {
133
- type: Boolean,
134
- default: null,
135
- description: "Do you or any close relative intend to reside in the property during the finance term? To provide advice on Home Purchase Plan (HPP) products you must hold specific HPP permissions with the FCA. These permissions are not required for Buy to Let business. true => HPP, false => BTL."
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."
136
124
  },
137
- isIntendToLetProperty: {
138
- type: Boolean,
125
+ totalNumberOfChildren: {
126
+ type: Number,
139
127
  default: null,
140
- description: "Do you intend to let the property? Asked only for private individual applications where isIntendToResideInProperty is true. true is a hard stop: HPP properties may not be let."
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."
141
129
  },
142
- isAlgbraEligible: { type: Boolean, default: false },
143
130
  }, {
144
131
  timestamps: true,
145
132
  toJSON: { virtuals: 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,7 @@
1
+ import { IBaseType } from "../types/base.types";
2
+ export default interface IEucCountryTier extends IBaseType {
3
+ country: string;
4
+ tier: number;
5
+ incomeCut: number;
6
+ }
7
+ //# sourceMappingURL=euc-country-tier.type.d.ts.map
@@ -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 {};
@@ -0,0 +1,368 @@
1
+ import mongoose from "mongoose";
2
+ declare const productFeaturesSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
3
+ name: string;
4
+ repaymentType: string;
5
+ ltv: string;
6
+ reimbursementPerPound: string;
7
+ stressedPayment: string;
8
+ stressedPaymentRate: string;
9
+ rentalCoverage: string;
10
+ clientAdvance: string;
11
+ repayment: string;
12
+ variableRepayment: string;
13
+ reversionRateWithoutBaseRate: string;
14
+ totalReversionRate: string;
15
+ initialRate: string;
16
+ fixedTerm: string;
17
+ fixedTermEndDate: string;
18
+ baseRate: string;
19
+ productRate: string;
20
+ apr: string;
21
+ applicationCategory: string;
22
+ securityType: string;
23
+ erc: string;
24
+ loanType: string;
25
+ maxLtvLimit: string;
26
+ reimbursement: string;
27
+ stressedApr: string;
28
+ stressedRate: string;
29
+ stressedRepayment: string;
30
+ liborFloorRate: string;
31
+ totalTermInMonths: string;
32
+ chargeType: string;
33
+ productCategory: string;
34
+ ercCode: string;
35
+ variableTerm: string;
36
+ totalFeePayable: string;
37
+ dipIssueDate: string;
38
+ estimatedCompletionDate: string;
39
+ dipExpiryDate: string;
40
+ fixedRepaymentUntillDate: string;
41
+ rentalReviewDate: string;
42
+ totalReimbursementWithFee: string;
43
+ finalRentPayment: string;
44
+ clientDeposit: string;
45
+ firstRentPayment: string;
46
+ fees: mongoose.Types.DocumentArray<{
47
+ description: string;
48
+ additionalData: any;
49
+ feeType: string;
50
+ feeAmount: string;
51
+ rate: string;
52
+ addedToLoan: string;
53
+ allowOverride: string;
54
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
55
+ description: string;
56
+ additionalData: any;
57
+ feeType: string;
58
+ feeAmount: string;
59
+ rate: string;
60
+ addedToLoan: string;
61
+ allowOverride: string;
62
+ }> & {
63
+ description: string;
64
+ additionalData: any;
65
+ feeType: string;
66
+ feeAmount: string;
67
+ rate: string;
68
+ addedToLoan: string;
69
+ allowOverride: string;
70
+ }>;
71
+ ercFeatures: any;
72
+ icr: string;
73
+ ufssProductCode: string;
74
+ ufssInterestRateCode: string;
75
+ calculations?: {
76
+ ltv: string;
77
+ rentalCoverageRatioRate: string;
78
+ bankContributionRate: string;
79
+ bankInitialShareRate: string;
80
+ totalAmountPayable: string;
81
+ fixedMonthlyPayment: string;
82
+ fixedMonthlyCapital: string;
83
+ fixedMonthlyInterest: string;
84
+ variableMonthlyPayment: string;
85
+ summaryTotal: string;
86
+ reimbursementPerPound: string;
87
+ stressedPayment: string;
88
+ stressedPaymentRate: string;
89
+ rentalCoverage: string;
90
+ rentalCoverageWithoutTopUp: string;
91
+ } | null | undefined;
92
+ cashflowPeriods?: {
93
+ totalNoOfPayments: string;
94
+ fixed?: {
95
+ from: string;
96
+ to: string;
97
+ instalmentAmount: string;
98
+ instalmentInterest: string;
99
+ instalmentCapitalRepaid: string;
100
+ otherCosts: string;
101
+ outstandingCapital: string;
102
+ } | null | undefined;
103
+ variable?: {
104
+ from: string;
105
+ to: string;
106
+ instalmentAmount: string;
107
+ instalmentInterest: string;
108
+ instalmentCapitalRepaid: string;
109
+ otherCosts: string;
110
+ outstandingCapital: string;
111
+ } | null | undefined;
112
+ total?: {
113
+ from: string;
114
+ to: string;
115
+ instalmentAmount: string;
116
+ instalmentInterest: string;
117
+ instalmentCapitalRepaid: string;
118
+ otherCosts: string;
119
+ outstandingCapital: string;
120
+ } | null | undefined;
121
+ } | null | undefined;
122
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
123
+ name: string;
124
+ repaymentType: string;
125
+ ltv: string;
126
+ reimbursementPerPound: string;
127
+ stressedPayment: string;
128
+ stressedPaymentRate: string;
129
+ rentalCoverage: string;
130
+ clientAdvance: string;
131
+ repayment: string;
132
+ variableRepayment: string;
133
+ reversionRateWithoutBaseRate: string;
134
+ totalReversionRate: string;
135
+ initialRate: string;
136
+ fixedTerm: string;
137
+ fixedTermEndDate: string;
138
+ baseRate: string;
139
+ productRate: string;
140
+ apr: string;
141
+ applicationCategory: string;
142
+ securityType: string;
143
+ erc: string;
144
+ loanType: string;
145
+ maxLtvLimit: string;
146
+ reimbursement: string;
147
+ stressedApr: string;
148
+ stressedRate: string;
149
+ stressedRepayment: string;
150
+ liborFloorRate: string;
151
+ totalTermInMonths: string;
152
+ chargeType: string;
153
+ productCategory: string;
154
+ ercCode: string;
155
+ variableTerm: string;
156
+ totalFeePayable: string;
157
+ dipIssueDate: string;
158
+ estimatedCompletionDate: string;
159
+ dipExpiryDate: string;
160
+ fixedRepaymentUntillDate: string;
161
+ rentalReviewDate: string;
162
+ totalReimbursementWithFee: string;
163
+ finalRentPayment: string;
164
+ clientDeposit: string;
165
+ firstRentPayment: string;
166
+ fees: mongoose.Types.DocumentArray<{
167
+ description: string;
168
+ additionalData: any;
169
+ feeType: string;
170
+ feeAmount: string;
171
+ rate: string;
172
+ addedToLoan: string;
173
+ allowOverride: string;
174
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
175
+ description: string;
176
+ additionalData: any;
177
+ feeType: string;
178
+ feeAmount: string;
179
+ rate: string;
180
+ addedToLoan: string;
181
+ allowOverride: string;
182
+ }> & {
183
+ description: string;
184
+ additionalData: any;
185
+ feeType: string;
186
+ feeAmount: string;
187
+ rate: string;
188
+ addedToLoan: string;
189
+ allowOverride: string;
190
+ }>;
191
+ ercFeatures: any;
192
+ icr: string;
193
+ ufssProductCode: string;
194
+ ufssInterestRateCode: string;
195
+ calculations?: {
196
+ ltv: string;
197
+ rentalCoverageRatioRate: string;
198
+ bankContributionRate: string;
199
+ bankInitialShareRate: string;
200
+ totalAmountPayable: string;
201
+ fixedMonthlyPayment: string;
202
+ fixedMonthlyCapital: string;
203
+ fixedMonthlyInterest: string;
204
+ variableMonthlyPayment: string;
205
+ summaryTotal: string;
206
+ reimbursementPerPound: string;
207
+ stressedPayment: string;
208
+ stressedPaymentRate: string;
209
+ rentalCoverage: string;
210
+ rentalCoverageWithoutTopUp: string;
211
+ } | null | undefined;
212
+ cashflowPeriods?: {
213
+ totalNoOfPayments: string;
214
+ fixed?: {
215
+ from: string;
216
+ to: string;
217
+ instalmentAmount: string;
218
+ instalmentInterest: string;
219
+ instalmentCapitalRepaid: string;
220
+ otherCosts: string;
221
+ outstandingCapital: string;
222
+ } | null | undefined;
223
+ variable?: {
224
+ from: string;
225
+ to: string;
226
+ instalmentAmount: string;
227
+ instalmentInterest: string;
228
+ instalmentCapitalRepaid: string;
229
+ otherCosts: string;
230
+ outstandingCapital: string;
231
+ } | null | undefined;
232
+ total?: {
233
+ from: string;
234
+ to: string;
235
+ instalmentAmount: string;
236
+ instalmentInterest: string;
237
+ instalmentCapitalRepaid: string;
238
+ otherCosts: string;
239
+ outstandingCapital: string;
240
+ } | null | undefined;
241
+ } | null | undefined;
242
+ }>> & mongoose.FlatRecord<{
243
+ name: string;
244
+ repaymentType: string;
245
+ ltv: string;
246
+ reimbursementPerPound: string;
247
+ stressedPayment: string;
248
+ stressedPaymentRate: string;
249
+ rentalCoverage: string;
250
+ clientAdvance: string;
251
+ repayment: string;
252
+ variableRepayment: string;
253
+ reversionRateWithoutBaseRate: string;
254
+ totalReversionRate: string;
255
+ initialRate: string;
256
+ fixedTerm: string;
257
+ fixedTermEndDate: string;
258
+ baseRate: string;
259
+ productRate: string;
260
+ apr: string;
261
+ applicationCategory: string;
262
+ securityType: string;
263
+ erc: string;
264
+ loanType: string;
265
+ maxLtvLimit: string;
266
+ reimbursement: string;
267
+ stressedApr: string;
268
+ stressedRate: string;
269
+ stressedRepayment: string;
270
+ liborFloorRate: string;
271
+ totalTermInMonths: string;
272
+ chargeType: string;
273
+ productCategory: string;
274
+ ercCode: string;
275
+ variableTerm: string;
276
+ totalFeePayable: string;
277
+ dipIssueDate: string;
278
+ estimatedCompletionDate: string;
279
+ dipExpiryDate: string;
280
+ fixedRepaymentUntillDate: string;
281
+ rentalReviewDate: string;
282
+ totalReimbursementWithFee: string;
283
+ finalRentPayment: string;
284
+ clientDeposit: string;
285
+ firstRentPayment: string;
286
+ fees: mongoose.Types.DocumentArray<{
287
+ description: string;
288
+ additionalData: any;
289
+ feeType: string;
290
+ feeAmount: string;
291
+ rate: string;
292
+ addedToLoan: string;
293
+ allowOverride: string;
294
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
295
+ description: string;
296
+ additionalData: any;
297
+ feeType: string;
298
+ feeAmount: string;
299
+ rate: string;
300
+ addedToLoan: string;
301
+ allowOverride: string;
302
+ }> & {
303
+ description: string;
304
+ additionalData: any;
305
+ feeType: string;
306
+ feeAmount: string;
307
+ rate: string;
308
+ addedToLoan: string;
309
+ allowOverride: string;
310
+ }>;
311
+ ercFeatures: any;
312
+ icr: string;
313
+ ufssProductCode: string;
314
+ ufssInterestRateCode: string;
315
+ calculations?: {
316
+ ltv: string;
317
+ rentalCoverageRatioRate: string;
318
+ bankContributionRate: string;
319
+ bankInitialShareRate: string;
320
+ totalAmountPayable: string;
321
+ fixedMonthlyPayment: string;
322
+ fixedMonthlyCapital: string;
323
+ fixedMonthlyInterest: string;
324
+ variableMonthlyPayment: string;
325
+ summaryTotal: string;
326
+ reimbursementPerPound: string;
327
+ stressedPayment: string;
328
+ stressedPaymentRate: string;
329
+ rentalCoverage: string;
330
+ rentalCoverageWithoutTopUp: string;
331
+ } | null | undefined;
332
+ cashflowPeriods?: {
333
+ totalNoOfPayments: string;
334
+ fixed?: {
335
+ from: string;
336
+ to: string;
337
+ instalmentAmount: string;
338
+ instalmentInterest: string;
339
+ instalmentCapitalRepaid: string;
340
+ otherCosts: string;
341
+ outstandingCapital: string;
342
+ } | null | undefined;
343
+ variable?: {
344
+ from: string;
345
+ to: string;
346
+ instalmentAmount: string;
347
+ instalmentInterest: string;
348
+ instalmentCapitalRepaid: string;
349
+ otherCosts: string;
350
+ outstandingCapital: string;
351
+ } | null | undefined;
352
+ total?: {
353
+ from: string;
354
+ to: string;
355
+ instalmentAmount: string;
356
+ instalmentInterest: string;
357
+ instalmentCapitalRepaid: string;
358
+ otherCosts: string;
359
+ outstandingCapital: string;
360
+ } | null | undefined;
361
+ } | null | undefined;
362
+ }> & {
363
+ _id: mongoose.Types.ObjectId;
364
+ } & {
365
+ __v: number;
366
+ }>;
367
+ export default productFeaturesSchema;
368
+ //# sourceMappingURL=productfeatures.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productfeatures.model.d.ts","sourceRoot":"","sources":["../../applications/productfeatures.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAyChC,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwDzB,CAAC;AAEH,eAAe,qBAAqB,CAAC"}