@dynamatix/gb-schemas 1.3.366 → 1.3.367-broker
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-additional-income.model.d.ts +0 -1
- package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts +0 -1
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-loan.model.d.ts +0 -1
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +0 -1
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-residence.model.d.ts +0 -1
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +0 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +0 -1
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-report.model.d.ts +1052 -1568
- package/dist/applicants/applicant-credit-report.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-report.model.js +35 -45
- package/dist/applicants/applicant-credit-report.type.d.ts +4 -22
- package/dist/applicants/applicant-credit-report.type.d.ts.map +1 -1
- package/dist/applicants/applicant-employment-income.model.d.ts +0 -1
- package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment.model.d.ts +0 -1
- package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.d.ts +0 -1
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.js +2 -2
- package/dist/applicants/applicant-income-summary.model.d.ts +0 -1
- package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -1
- package/dist/applicants/applicant-pension-income.model.d.ts +0 -1
- package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-property-income.model.d.ts +0 -1
- package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.d.ts +0 -1
- package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-sole-trader-income.model.d.ts +0 -1
- package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts +0 -1
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.d.ts +552 -160
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +26 -28
- package/dist/applications/application-company-model.d.ts +108 -1210
- package/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-company-model.js +21 -21
- package/dist/applications/application-direct-debit.model.d.ts +18 -20
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.d.ts +0 -1
- package/dist/applications/application-mortgage.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.type.d.ts +0 -1
- package/dist/applications/application-mortgage.type.d.ts.map +1 -1
- package/dist/applications/application-product.model.js +3 -3
- package/dist/applications/application-productfeatures.model.d.ts +180 -180
- package/dist/applications/application-productfeatures.model.d.ts.map +1 -1
- package/dist/applications/application-productfeatures.model.js +9 -6
- package/dist/applications/application-rationale.model.d.ts +24 -24
- package/dist/applications/application-rationale.model.js +1 -1
- package/dist/applications/application-valuation.model.d.ts +0 -19
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.js +0 -3
- package/dist/applications/application.model.d.ts +174 -162
- package/dist/applications/application.model.d.ts.map +1 -1
- package/dist/applications/application.model.js +38 -27
- package/dist/applications/applications-task.model.d.ts +90 -84
- package/dist/applications/applications-task.model.d.ts.map +1 -1
- package/dist/applications/applications-task.model.js +16 -11
- package/dist/applications/solicitor.model.d.ts +0 -2
- package/dist/applications/solicitor.model.d.ts.map +1 -1
- package/dist/properties/property.model.d.ts +18 -19
- package/dist/properties/property.model.d.ts.map +1 -1
- package/dist/properties/security.model.js +33 -33
- package/dist/shared/workflow.service.d.ts.map +1 -1
- package/dist/shared/workflow.service.js +1 -0
- package/dist/users/user.model.js +1 -1
- package/package.json +87 -87
- package/dist/applicants/applicant-income-source.model.d.ts +0 -26
- package/dist/applicants/applicant-income-source.model.d.ts.map +0 -1
- package/dist/applicants/applicant-income.model.d.ts +0 -160
- package/dist/applicants/applicant-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-other-income.model.d.ts +0 -85
- package/dist/applicants/applicant-other-income.model.d.ts.map +0 -1
- package/dist/applications/application-document.model.d.ts +0 -158
- package/dist/applications/application-document.model.d.ts.map +0 -1
- package/dist/applications/document.model.d.ts +0 -158
- package/dist/applications/document.model.d.ts.map +0 -1
- package/dist/applications/productfeatures.model.d.ts +0 -368
- package/dist/applications/productfeatures.model.d.ts.map +0 -1
- package/dist/shared/document-type-model.d.ts +0 -48
- package/dist/shared/document-type-model.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-company-model.d.ts","sourceRoot":"","sources":["../../applications/application-company-model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"application-company-model.d.ts","sourceRoot":"","sources":["../../applications/application-company-model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAe,MAAM,0BAA0B,CAAA;AA8I7D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAsD,CAAC;AACpF,eAAe,uBAAuB,CAAC"}
|
|
@@ -2,19 +2,19 @@ import mongoose from "mongoose";
|
|
|
2
2
|
import { Pound, formatPound } from "./../value-objects/pound";
|
|
3
3
|
import { AccountNumber } from "../value-objects/account-number";
|
|
4
4
|
const ApplicantShareholdingSchema = new mongoose.Schema({
|
|
5
|
-
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required:
|
|
5
|
+
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: false, default: null },
|
|
6
6
|
applicantName: { type: String, default: "" },
|
|
7
7
|
directorShareholderLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
8
8
|
shareholding: { type: Number, min: 0, max: 100, default: null }
|
|
9
9
|
}, { _id: false });
|
|
10
10
|
const companySchema = new mongoose.Schema({
|
|
11
11
|
applicationId: {
|
|
12
|
-
type: mongoose.Schema.Types.ObjectId, ref: "Application", required:
|
|
12
|
+
type: mongoose.Schema.Types.ObjectId, ref: "Application", required: false,
|
|
13
13
|
description: "Unique identifier for the application"
|
|
14
14
|
},
|
|
15
15
|
pageValidFlag: { type: Boolean, default: true, },
|
|
16
16
|
registeredName: { type: String, required: true, maxlength: 70, default: '' }, // form
|
|
17
|
-
businessTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required:
|
|
17
|
+
businessTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: false }, // form
|
|
18
18
|
registeredNumber: { type: AccountNumber, max: 99999999, default: 0 }, // form
|
|
19
19
|
isRegisteredNumber: { type: Boolean, default: false, }, // form
|
|
20
20
|
taxJurisdictionLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }, // form
|
|
@@ -22,28 +22,28 @@ const companySchema = new mongoose.Schema({
|
|
|
22
22
|
natureOfBusiness: { type: String, maxlength: 100, default: '' }, // form
|
|
23
23
|
yearEnd: { type: String, default: null }, // form
|
|
24
24
|
addressPostCode: { type: String, maxlength: 50, default: '' }, // form
|
|
25
|
-
addressLine1: { type: String, required:
|
|
25
|
+
addressLine1: { type: String, required: false, maxlength: 35, default: '' }, // form
|
|
26
26
|
addressLine2: { type: String, default: '', maxlength: 35 }, // form
|
|
27
27
|
addressLine3: { type: String, default: '', maxlength: 35 }, // form
|
|
28
28
|
addressCity: { type: String, default: '', maxlength: 30 }, // form
|
|
29
|
-
addressCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required:
|
|
30
|
-
applicationTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required:
|
|
29
|
+
addressCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: false }, // form
|
|
30
|
+
applicationTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: false }, // form
|
|
31
31
|
applicantShareholding: [ApplicantShareholdingSchema], // form
|
|
32
|
-
yearEnd1: { type: Number, required:
|
|
33
|
-
turnoverYear1: { type: Pound, required:
|
|
34
|
-
netProfitYear1: { type: Pound, required:
|
|
35
|
-
yearEnd2: { type: Number, required:
|
|
36
|
-
turnoverYear2: { type: Pound, required:
|
|
37
|
-
netProfitYear2: { type: Pound, required:
|
|
38
|
-
yearEnd3: { type: Number, required:
|
|
39
|
-
turnoverYear3: { type: Pound, required:
|
|
40
|
-
netProfitYear3: { type: Pound, required:
|
|
32
|
+
yearEnd1: { type: Number, required: false, max: 9999 }, // form
|
|
33
|
+
turnoverYear1: { type: Pound, required: false, default: 0.00, get: formatPound }, // form
|
|
34
|
+
netProfitYear1: { type: Pound, required: false, default: 0.00, get: formatPound }, // form
|
|
35
|
+
yearEnd2: { type: Number, required: false, max: 9999 }, // form
|
|
36
|
+
turnoverYear2: { type: Pound, required: false, default: 0.00, get: formatPound }, // form
|
|
37
|
+
netProfitYear2: { type: Pound, required: false, default: 0.00, get: formatPound }, // form
|
|
38
|
+
yearEnd3: { type: Number, required: false, max: 9999 }, // form
|
|
39
|
+
turnoverYear3: { type: Pound, required: false, default: 0.00, get: formatPound }, // form
|
|
40
|
+
netProfitYear3: { type: Pound, required: false, default: 0.00, get: formatPound }, // form
|
|
41
41
|
// Purchase form - Company section
|
|
42
|
-
companyCreditDefaults: { type: String, required:
|
|
43
|
-
companyCountyCourtJudgment: { type: String, required:
|
|
44
|
-
companySecuredArrears: { type: String, required:
|
|
45
|
-
companyUnsecuredArrears: { type: String, required:
|
|
46
|
-
companyBankruptcy: { type: String, required:
|
|
42
|
+
companyCreditDefaults: { type: String, required: false, default: '' }, // form
|
|
43
|
+
companyCountyCourtJudgment: { type: String, required: false, default: '' }, // form
|
|
44
|
+
companySecuredArrears: { type: String, required: false, default: '' }, // form
|
|
45
|
+
companyUnsecuredArrears: { type: String, required: false, default: '' }, // form
|
|
46
|
+
companyBankruptcy: { type: String, required: false, default: '' }, // form
|
|
47
47
|
companyBankruptcyYes: { type: Boolean, default: false, },
|
|
48
48
|
companyBankruptcyNo: { type: Boolean, default: true, },
|
|
49
49
|
companyCCJInLastThreeYearYes: { type: Boolean, default: false, },
|
|
@@ -53,7 +53,7 @@ const companySchema = new mongoose.Schema({
|
|
|
53
53
|
companyAnyVoluntaryEnforcedPossessionYes: { type: Boolean, default: false, },
|
|
54
54
|
companyAnyVoluntaryEnforcedPossessionNo: { type: Boolean, default: true, },
|
|
55
55
|
// Not in form Fields
|
|
56
|
-
doYouKnowRegisteredNumber: { type: Boolean, default:
|
|
56
|
+
doYouKnowRegisteredNumber: { type: Boolean, default: false, },
|
|
57
57
|
sicCodes: [{ type: String, default: "" }],
|
|
58
58
|
epc: { type: String, default: "" },
|
|
59
59
|
remainingLease: { type: String, default: "" },
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
-
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
-
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
2
|
/// <reference types="mongoose/types/aggregate" />
|
|
5
3
|
/// <reference types="mongoose/types/callback" />
|
|
6
4
|
/// <reference types="mongoose/types/collection" />
|
|
@@ -35,10 +33,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
35
33
|
} & {
|
|
36
34
|
createdAt?: {
|
|
37
35
|
toJSON?: {} | null | undefined;
|
|
38
|
-
valueOf: {} | null;
|
|
39
|
-
toString: {} | null;
|
|
40
|
-
toLocaleString: {} | null;
|
|
41
36
|
[Symbol.toPrimitive]?: {} | null | undefined;
|
|
37
|
+
toLocaleString?: {} | null | undefined;
|
|
38
|
+
toString?: {} | null | undefined;
|
|
39
|
+
valueOf?: {} | null | undefined;
|
|
42
40
|
toDateString?: {} | null | undefined;
|
|
43
41
|
toTimeString?: {} | null | undefined;
|
|
44
42
|
toLocaleDateString?: {} | null | undefined;
|
|
@@ -82,10 +80,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
82
80
|
} | null | undefined;
|
|
83
81
|
updatedAt?: {
|
|
84
82
|
toJSON?: {} | null | undefined;
|
|
85
|
-
valueOf: {} | null;
|
|
86
|
-
toString: {} | null;
|
|
87
|
-
toLocaleString: {} | null;
|
|
88
83
|
[Symbol.toPrimitive]?: {} | null | undefined;
|
|
84
|
+
toLocaleString?: {} | null | undefined;
|
|
85
|
+
toString?: {} | null | undefined;
|
|
86
|
+
valueOf?: {} | null | undefined;
|
|
89
87
|
toDateString?: {} | null | undefined;
|
|
90
88
|
toTimeString?: {} | null | undefined;
|
|
91
89
|
toLocaleDateString?: {} | null | undefined;
|
|
@@ -193,10 +191,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
193
191
|
} & {
|
|
194
192
|
createdAt?: {
|
|
195
193
|
toJSON?: {} | null | undefined;
|
|
196
|
-
valueOf: {} | null;
|
|
197
|
-
toString: {} | null;
|
|
198
|
-
toLocaleString: {} | null;
|
|
199
194
|
[Symbol.toPrimitive]?: {} | null | undefined;
|
|
195
|
+
toLocaleString?: {} | null | undefined;
|
|
196
|
+
toString?: {} | null | undefined;
|
|
197
|
+
valueOf?: {} | null | undefined;
|
|
200
198
|
toDateString?: {} | null | undefined;
|
|
201
199
|
toTimeString?: {} | null | undefined;
|
|
202
200
|
toLocaleDateString?: {} | null | undefined;
|
|
@@ -240,10 +238,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
240
238
|
} | null | undefined;
|
|
241
239
|
updatedAt?: {
|
|
242
240
|
toJSON?: {} | null | undefined;
|
|
243
|
-
valueOf: {} | null;
|
|
244
|
-
toString: {} | null;
|
|
245
|
-
toLocaleString: {} | null;
|
|
246
241
|
[Symbol.toPrimitive]?: {} | null | undefined;
|
|
242
|
+
toLocaleString?: {} | null | undefined;
|
|
243
|
+
toString?: {} | null | undefined;
|
|
244
|
+
valueOf?: {} | null | undefined;
|
|
247
245
|
toDateString?: {} | null | undefined;
|
|
248
246
|
toTimeString?: {} | null | undefined;
|
|
249
247
|
toLocaleDateString?: {} | null | undefined;
|
|
@@ -351,10 +349,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
351
349
|
} & {
|
|
352
350
|
createdAt?: {
|
|
353
351
|
toJSON?: {} | null | undefined;
|
|
354
|
-
valueOf: {} | null;
|
|
355
|
-
toString: {} | null;
|
|
356
|
-
toLocaleString: {} | null;
|
|
357
352
|
[Symbol.toPrimitive]?: {} | null | undefined;
|
|
353
|
+
toLocaleString?: {} | null | undefined;
|
|
354
|
+
toString?: {} | null | undefined;
|
|
355
|
+
valueOf?: {} | null | undefined;
|
|
358
356
|
toDateString?: {} | null | undefined;
|
|
359
357
|
toTimeString?: {} | null | undefined;
|
|
360
358
|
toLocaleDateString?: {} | null | undefined;
|
|
@@ -398,10 +396,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
398
396
|
} | null | undefined;
|
|
399
397
|
updatedAt?: {
|
|
400
398
|
toJSON?: {} | null | undefined;
|
|
401
|
-
valueOf: {} | null;
|
|
402
|
-
toString: {} | null;
|
|
403
|
-
toLocaleString: {} | null;
|
|
404
399
|
[Symbol.toPrimitive]?: {} | null | undefined;
|
|
400
|
+
toLocaleString?: {} | null | undefined;
|
|
401
|
+
toString?: {} | null | undefined;
|
|
402
|
+
valueOf?: {} | null | undefined;
|
|
405
403
|
toDateString?: {} | null | undefined;
|
|
406
404
|
toTimeString?: {} | null | undefined;
|
|
407
405
|
toLocaleDateString?: {} | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applications/application-direct-debit.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"application-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applications/application-direct-debit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAwGhE,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0E,CAAC;AAC5G,eAAe,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-mortgage.model.d.ts","sourceRoot":"","sources":["../../applications/application-mortgage.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"application-mortgage.model.d.ts","sourceRoot":"","sources":["../../applications/application-mortgage.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AAyS5D,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AAEjE,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-mortgage.type.d.ts","sourceRoot":"","sources":["../../applications/application-mortgage.type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"application-mortgage.type.d.ts","sourceRoot":"","sources":["../../applications/application-mortgage.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,MAAM,CAAC,OAAO,WAAW,oBAAqB,SAAQ,SAAS;IAC7D,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACvC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,gBAAgB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAClC,eAAe,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACjC,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,mBAAmB,CAAC,EAAE,KAAK,CAAC;IAC5B,kBAAkB,CAAC,EAAE,KAAK,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAClC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,2BAA2B,EAAE,OAAO,CAAC;IACrC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,sBAAsB,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC7B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,mBAAmB,CAAC,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACvC,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC9B,kBAAkB,CAAC,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAGlB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B"}
|
|
@@ -11,7 +11,7 @@ const productSchema = new mongoose.Schema({
|
|
|
11
11
|
pageValidFlag: { type: Boolean, get: (value) => (value ? "Yes" : "No") },
|
|
12
12
|
repaymentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
13
13
|
numberOfYearsToRepay: { type: Number, default: 0 },
|
|
14
|
-
repaymentVehicle: { type: String, required:
|
|
14
|
+
repaymentVehicle: { type: String, required: false, default: '', maxLength: 100 },
|
|
15
15
|
fixedAmount: { type: Pound, default: 0.00, required: false, get: formatPound },
|
|
16
16
|
isFinanceRecommendedToApplicantLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
17
17
|
procFeeRateLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
@@ -19,12 +19,12 @@ const productSchema = new mongoose.Schema({
|
|
|
19
19
|
clubNetworkNameLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
20
20
|
introducerSubmission: { type: Boolean, required: true },
|
|
21
21
|
introducer: { type: String, default: '' },
|
|
22
|
-
bdm: { type: String, required:
|
|
22
|
+
bdm: { type: String, required: false, default: '' },
|
|
23
23
|
topSlicing: { type: Boolean, default: false },
|
|
24
24
|
fcr: { type: Pound, default: 0.00, required: false, get: formatPound },
|
|
25
25
|
fscr: { type: String, default: '' },
|
|
26
26
|
topUpAmount: { type: Pound, default: 0.00, required: false, get: formatPound },
|
|
27
|
-
tempAppFee: { type: Pound, default: 0.00, required:
|
|
27
|
+
tempAppFee: { type: Pound, default: 0.00, required: false, get: formatPound },
|
|
28
28
|
productFeePaymentTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
29
29
|
overriddenRulesApproverLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
30
30
|
overrideRuleComments: { type: String, default: '' }
|