@dynamatix/gb-schemas 1.2.55 → 1.2.57
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.model.d.ts +6 -6
- package/dist/applications/application-company-model.d.ts +69 -0
- package/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-company-model.js +7 -8
- package/dist/applications/application-direct-debit.model.d.ts +6 -6
- package/dist/applications/application-mortgage.model.d.ts +6 -6
- package/dist/applications/application-mortgage.model.js +1 -1
- package/package.json +4 -3
|
@@ -126,6 +126,7 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
126
126
|
toISOString?: {} | null | undefined;
|
|
127
127
|
getVarDate?: {} | null | undefined;
|
|
128
128
|
} | null | undefined;
|
|
129
|
+
applicantId?: unknown;
|
|
129
130
|
pageValidFlag?: unknown;
|
|
130
131
|
taxJurisdictionLid?: mongoose.Types.ObjectId | null | undefined;
|
|
131
132
|
addressPostCode?: unknown;
|
|
@@ -134,7 +135,6 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
134
135
|
addressLine3?: unknown;
|
|
135
136
|
addressCity?: unknown;
|
|
136
137
|
addressCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
137
|
-
applicantId?: unknown;
|
|
138
138
|
creditProfile?: unknown;
|
|
139
139
|
isUkResident?: unknown;
|
|
140
140
|
email?: unknown;
|
|
@@ -369,6 +369,7 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
369
369
|
toISOString?: {} | null | undefined;
|
|
370
370
|
getVarDate?: {} | null | undefined;
|
|
371
371
|
} | null | undefined;
|
|
372
|
+
applicantId?: unknown;
|
|
372
373
|
pageValidFlag?: unknown;
|
|
373
374
|
taxJurisdictionLid?: mongoose.Types.ObjectId | null | undefined;
|
|
374
375
|
addressPostCode?: unknown;
|
|
@@ -377,7 +378,6 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
377
378
|
addressLine3?: unknown;
|
|
378
379
|
addressCity?: unknown;
|
|
379
380
|
addressCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
380
|
-
applicantId?: unknown;
|
|
381
381
|
creditProfile?: unknown;
|
|
382
382
|
isUkResident?: unknown;
|
|
383
383
|
email?: unknown;
|
|
@@ -612,6 +612,7 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
612
612
|
toISOString?: {} | null | undefined;
|
|
613
613
|
getVarDate?: {} | null | undefined;
|
|
614
614
|
} | null | undefined;
|
|
615
|
+
applicantId?: unknown;
|
|
615
616
|
pageValidFlag?: unknown;
|
|
616
617
|
taxJurisdictionLid?: mongoose.Types.ObjectId | null | undefined;
|
|
617
618
|
addressPostCode?: unknown;
|
|
@@ -620,7 +621,6 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
620
621
|
addressLine3?: unknown;
|
|
621
622
|
addressCity?: unknown;
|
|
622
623
|
addressCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
623
|
-
applicantId?: unknown;
|
|
624
624
|
creditProfile?: unknown;
|
|
625
625
|
isUkResident?: unknown;
|
|
626
626
|
email?: unknown;
|
|
@@ -774,6 +774,7 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
774
774
|
updatedAt: NativeDate;
|
|
775
775
|
} & {
|
|
776
776
|
applicationId: mongoose.Types.ObjectId;
|
|
777
|
+
applicantId: string;
|
|
777
778
|
pageValidFlag: boolean;
|
|
778
779
|
taxJurisdictionLid: mongoose.Types.ObjectId;
|
|
779
780
|
addressPostCode: string;
|
|
@@ -782,7 +783,6 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
782
783
|
addressLine3: string;
|
|
783
784
|
addressCity: string;
|
|
784
785
|
addressCountryLid: mongoose.Types.ObjectId;
|
|
785
|
-
applicantId: string;
|
|
786
786
|
isUkResident: boolean;
|
|
787
787
|
email: string;
|
|
788
788
|
firstName: string;
|
|
@@ -6067,6 +6067,7 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
6067
6067
|
updatedAt: NativeDate;
|
|
6068
6068
|
} & {
|
|
6069
6069
|
applicationId: mongoose.Types.ObjectId;
|
|
6070
|
+
applicantId: string;
|
|
6070
6071
|
pageValidFlag: boolean;
|
|
6071
6072
|
taxJurisdictionLid: mongoose.Types.ObjectId;
|
|
6072
6073
|
addressPostCode: string;
|
|
@@ -6075,7 +6076,6 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
6075
6076
|
addressLine3: string;
|
|
6076
6077
|
addressCity: string;
|
|
6077
6078
|
addressCountryLid: mongoose.Types.ObjectId;
|
|
6078
|
-
applicantId: string;
|
|
6079
6079
|
isUkResident: boolean;
|
|
6080
6080
|
email: string;
|
|
6081
6081
|
firstName: string;
|
|
@@ -11360,6 +11360,7 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
11360
11360
|
updatedAt: NativeDate;
|
|
11361
11361
|
} & {
|
|
11362
11362
|
applicationId: mongoose.Types.ObjectId;
|
|
11363
|
+
applicantId: string;
|
|
11363
11364
|
pageValidFlag: boolean;
|
|
11364
11365
|
taxJurisdictionLid: mongoose.Types.ObjectId;
|
|
11365
11366
|
addressPostCode: string;
|
|
@@ -11368,7 +11369,6 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
11368
11369
|
addressLine3: string;
|
|
11369
11370
|
addressCity: string;
|
|
11370
11371
|
addressCountryLid: mongoose.Types.ObjectId;
|
|
11371
|
-
applicantId: string;
|
|
11372
11372
|
isUkResident: boolean;
|
|
11373
11373
|
email: string;
|
|
11374
11374
|
firstName: string;
|
|
@@ -30,6 +30,13 @@ declare const ApplicationCompanyModel: mongoose.Model<{
|
|
|
30
30
|
createdAt: NativeDate;
|
|
31
31
|
updatedAt: NativeDate;
|
|
32
32
|
} & {
|
|
33
|
+
applicantShareholding: mongoose.Types.DocumentArray<any, any> | unknown[] | mongoose.Types.DocumentArray<{
|
|
34
|
+
[x: string]: unknown;
|
|
35
|
+
}, mongoose.Types.Subdocument<unknown, any, {
|
|
36
|
+
[x: string]: unknown;
|
|
37
|
+
}> & {
|
|
38
|
+
[x: string]: unknown;
|
|
39
|
+
}> | unknown[];
|
|
33
40
|
sicCodes: unknown[];
|
|
34
41
|
applicationId?: unknown;
|
|
35
42
|
createdAt?: {
|
|
@@ -447,6 +454,13 @@ declare const ApplicationCompanyModel: mongoose.Model<{
|
|
|
447
454
|
createdAt: NativeDate;
|
|
448
455
|
updatedAt: NativeDate;
|
|
449
456
|
} & {
|
|
457
|
+
applicantShareholding: mongoose.Types.DocumentArray<any, any> | unknown[] | mongoose.Types.DocumentArray<{
|
|
458
|
+
[x: string]: unknown;
|
|
459
|
+
}, mongoose.Types.Subdocument<unknown, any, {
|
|
460
|
+
[x: string]: unknown;
|
|
461
|
+
}> & {
|
|
462
|
+
[x: string]: unknown;
|
|
463
|
+
}> | unknown[];
|
|
450
464
|
sicCodes: unknown[];
|
|
451
465
|
applicationId?: unknown;
|
|
452
466
|
createdAt?: {
|
|
@@ -864,6 +878,13 @@ declare const ApplicationCompanyModel: mongoose.Model<{
|
|
|
864
878
|
createdAt: NativeDate;
|
|
865
879
|
updatedAt: NativeDate;
|
|
866
880
|
} & {
|
|
881
|
+
applicantShareholding: mongoose.Types.DocumentArray<any, any> | unknown[] | mongoose.Types.DocumentArray<{
|
|
882
|
+
[x: string]: unknown;
|
|
883
|
+
}, mongoose.Types.Subdocument<unknown, any, {
|
|
884
|
+
[x: string]: unknown;
|
|
885
|
+
}> & {
|
|
886
|
+
[x: string]: unknown;
|
|
887
|
+
}> | unknown[];
|
|
867
888
|
sicCodes: unknown[];
|
|
868
889
|
applicationId?: unknown;
|
|
869
890
|
createdAt?: {
|
|
@@ -1297,6 +1318,22 @@ declare const ApplicationCompanyModel: mongoose.Model<{
|
|
|
1297
1318
|
} & {
|
|
1298
1319
|
tradingSince: string;
|
|
1299
1320
|
yearEnd: string;
|
|
1321
|
+
applicantShareholding: mongoose.Types.DocumentArray<{
|
|
1322
|
+
applicantId: mongoose.Types.ObjectId;
|
|
1323
|
+
applicantName: string;
|
|
1324
|
+
shareholding: number;
|
|
1325
|
+
directorShareholderLid?: unknown;
|
|
1326
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
1327
|
+
applicantId: mongoose.Types.ObjectId;
|
|
1328
|
+
applicantName: string;
|
|
1329
|
+
shareholding: number;
|
|
1330
|
+
directorShareholderLid?: unknown;
|
|
1331
|
+
}> & {
|
|
1332
|
+
applicantId: mongoose.Types.ObjectId;
|
|
1333
|
+
applicantName: string;
|
|
1334
|
+
shareholding: number;
|
|
1335
|
+
directorShareholderLid?: unknown;
|
|
1336
|
+
}>;
|
|
1300
1337
|
turnoverYear1: Pound;
|
|
1301
1338
|
netProfitYear1: Pound;
|
|
1302
1339
|
turnoverYear2: Pound;
|
|
@@ -1344,6 +1381,22 @@ declare const ApplicationCompanyModel: mongoose.Model<{
|
|
|
1344
1381
|
} & {
|
|
1345
1382
|
tradingSince: string;
|
|
1346
1383
|
yearEnd: string;
|
|
1384
|
+
applicantShareholding: mongoose.Types.DocumentArray<{
|
|
1385
|
+
applicantId: mongoose.Types.ObjectId;
|
|
1386
|
+
applicantName: string;
|
|
1387
|
+
shareholding: number;
|
|
1388
|
+
directorShareholderLid?: unknown;
|
|
1389
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
1390
|
+
applicantId: mongoose.Types.ObjectId;
|
|
1391
|
+
applicantName: string;
|
|
1392
|
+
shareholding: number;
|
|
1393
|
+
directorShareholderLid?: unknown;
|
|
1394
|
+
}> & {
|
|
1395
|
+
applicantId: mongoose.Types.ObjectId;
|
|
1396
|
+
applicantName: string;
|
|
1397
|
+
shareholding: number;
|
|
1398
|
+
directorShareholderLid?: unknown;
|
|
1399
|
+
}>;
|
|
1347
1400
|
turnoverYear1: Pound;
|
|
1348
1401
|
netProfitYear1: Pound;
|
|
1349
1402
|
turnoverYear2: Pound;
|
|
@@ -1391,6 +1444,22 @@ declare const ApplicationCompanyModel: mongoose.Model<{
|
|
|
1391
1444
|
} & {
|
|
1392
1445
|
tradingSince: string;
|
|
1393
1446
|
yearEnd: string;
|
|
1447
|
+
applicantShareholding: mongoose.Types.DocumentArray<{
|
|
1448
|
+
applicantId: mongoose.Types.ObjectId;
|
|
1449
|
+
applicantName: string;
|
|
1450
|
+
shareholding: number;
|
|
1451
|
+
directorShareholderLid?: unknown;
|
|
1452
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
1453
|
+
applicantId: mongoose.Types.ObjectId;
|
|
1454
|
+
applicantName: string;
|
|
1455
|
+
shareholding: number;
|
|
1456
|
+
directorShareholderLid?: unknown;
|
|
1457
|
+
}> & {
|
|
1458
|
+
applicantId: mongoose.Types.ObjectId;
|
|
1459
|
+
applicantName: string;
|
|
1460
|
+
shareholding: number;
|
|
1461
|
+
directorShareholderLid?: unknown;
|
|
1462
|
+
}>;
|
|
1394
1463
|
turnoverYear1: Pound;
|
|
1395
1464
|
netProfitYear1: Pound;
|
|
1396
1465
|
turnoverYear2: Pound;
|
|
@@ -1 +1 @@
|
|
|
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;AA2IhD,QAAA,MAAM,uBAAuB
|
|
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;AA2IhD,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAsD,CAAC;AACpF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
2
|
import { Pound } from "./../value-objects/pound";
|
|
3
|
+
const ApplicantShareholdingSchema = new mongoose.Schema({
|
|
4
|
+
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true, default: null },
|
|
5
|
+
applicantName: { type: String, default: "" },
|
|
6
|
+
directorShareholderLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
7
|
+
shareholding: { type: Number, min: 0, max: 100, default: null }
|
|
8
|
+
}, { _id: false });
|
|
3
9
|
const companySchema = new mongoose.Schema({
|
|
4
10
|
applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true,
|
|
5
11
|
description: "Unique identifier for the application"
|
|
@@ -19,14 +25,7 @@ const companySchema = new mongoose.Schema({
|
|
|
19
25
|
addressCity: { type: String, default: '', maxlength: 30 }, // form
|
|
20
26
|
addressCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }, // form
|
|
21
27
|
applicationTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }, // form
|
|
22
|
-
|
|
23
|
-
// {
|
|
24
|
-
// applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true, default: null }, // Required field
|
|
25
|
-
// applicantName: { type: String, default: "" },
|
|
26
|
-
// directorShareholderLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" } as any, // form
|
|
27
|
-
// shareholding: { type: Number, min: 0, max: 100, default: null } // Percentage, virtual fields percent
|
|
28
|
-
// }
|
|
29
|
-
// ],
|
|
28
|
+
applicantShareholding: [ApplicantShareholdingSchema], // form
|
|
30
29
|
yearEnd1: { type: Number, required: true, max: 9999 }, // form
|
|
31
30
|
turnoverYear1: { type: Pound, required: true, default: 0.00 }, // form
|
|
32
31
|
netProfitYear1: { type: Pound, required: true, default: 0.00 }, // form
|
|
@@ -125,10 +125,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
125
125
|
toISOString?: {} | null | undefined;
|
|
126
126
|
getVarDate?: {} | null | undefined;
|
|
127
127
|
} | null | undefined;
|
|
128
|
+
applicantId?: unknown;
|
|
128
129
|
addressLine1?: unknown;
|
|
129
130
|
addressLine2?: unknown;
|
|
130
131
|
accountNumber?: unknown;
|
|
131
|
-
applicantId?: unknown;
|
|
132
132
|
branch?: unknown;
|
|
133
133
|
city?: unknown;
|
|
134
134
|
contactPostcode?: unknown;
|
|
@@ -282,10 +282,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
282
282
|
toISOString?: {} | null | undefined;
|
|
283
283
|
getVarDate?: {} | null | undefined;
|
|
284
284
|
} | null | undefined;
|
|
285
|
+
applicantId?: unknown;
|
|
285
286
|
addressLine1?: unknown;
|
|
286
287
|
addressLine2?: unknown;
|
|
287
288
|
accountNumber?: unknown;
|
|
288
|
-
applicantId?: unknown;
|
|
289
289
|
branch?: unknown;
|
|
290
290
|
city?: unknown;
|
|
291
291
|
contactPostcode?: unknown;
|
|
@@ -439,10 +439,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
439
439
|
toISOString?: {} | null | undefined;
|
|
440
440
|
getVarDate?: {} | null | undefined;
|
|
441
441
|
} | null | undefined;
|
|
442
|
+
applicantId?: unknown;
|
|
442
443
|
addressLine1?: unknown;
|
|
443
444
|
addressLine2?: unknown;
|
|
444
445
|
accountNumber?: unknown;
|
|
445
|
-
applicantId?: unknown;
|
|
446
446
|
branch?: unknown;
|
|
447
447
|
city?: unknown;
|
|
448
448
|
contactPostcode?: unknown;
|
|
@@ -520,10 +520,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
520
520
|
nameOfAccountHolder: string;
|
|
521
521
|
sortCode: SortCode;
|
|
522
522
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
523
|
+
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
523
524
|
addressLine1?: string | null | undefined;
|
|
524
525
|
addressLine2?: string | null | undefined;
|
|
525
526
|
accountNumber?: number | null | undefined;
|
|
526
|
-
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
527
527
|
city?: string | null | undefined;
|
|
528
528
|
contactPostcode?: string | null | undefined;
|
|
529
529
|
isConfirmDeclaration?: boolean | null | undefined;
|
|
@@ -537,10 +537,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
537
537
|
nameOfAccountHolder: string;
|
|
538
538
|
sortCode: SortCode;
|
|
539
539
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
540
|
+
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
540
541
|
addressLine1?: string | null | undefined;
|
|
541
542
|
addressLine2?: string | null | undefined;
|
|
542
543
|
accountNumber?: number | null | undefined;
|
|
543
|
-
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
544
544
|
city?: string | null | undefined;
|
|
545
545
|
contactPostcode?: string | null | undefined;
|
|
546
546
|
isConfirmDeclaration?: boolean | null | undefined;
|
|
@@ -554,10 +554,10 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
554
554
|
nameOfAccountHolder: string;
|
|
555
555
|
sortCode: SortCode;
|
|
556
556
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
557
|
+
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
557
558
|
addressLine1?: string | null | undefined;
|
|
558
559
|
addressLine2?: string | null | undefined;
|
|
559
560
|
accountNumber?: number | null | undefined;
|
|
560
|
-
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
561
561
|
city?: string | null | undefined;
|
|
562
562
|
contactPostcode?: string | null | undefined;
|
|
563
563
|
isConfirmDeclaration?: boolean | null | undefined;
|
|
@@ -30,7 +30,7 @@ declare const MortgageModel: mongoose.Model<{
|
|
|
30
30
|
createdAt: NativeDate;
|
|
31
31
|
updatedAt: NativeDate;
|
|
32
32
|
} & {
|
|
33
|
-
|
|
33
|
+
depositComeFromLids: mongoose.Types.ObjectId[];
|
|
34
34
|
proposedTenantsLid: mongoose.Types.ObjectId[];
|
|
35
35
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
36
36
|
createdAt?: {
|
|
@@ -435,7 +435,7 @@ declare const MortgageModel: mongoose.Model<{
|
|
|
435
435
|
createdAt: NativeDate;
|
|
436
436
|
updatedAt: NativeDate;
|
|
437
437
|
} & {
|
|
438
|
-
|
|
438
|
+
depositComeFromLids: mongoose.Types.ObjectId[];
|
|
439
439
|
proposedTenantsLid: mongoose.Types.ObjectId[];
|
|
440
440
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
441
441
|
createdAt?: {
|
|
@@ -840,7 +840,7 @@ declare const MortgageModel: mongoose.Model<{
|
|
|
840
840
|
createdAt: NativeDate;
|
|
841
841
|
updatedAt: NativeDate;
|
|
842
842
|
} & {
|
|
843
|
-
|
|
843
|
+
depositComeFromLids: mongoose.Types.ObjectId[];
|
|
844
844
|
proposedTenantsLid: mongoose.Types.ObjectId[];
|
|
845
845
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
846
846
|
createdAt?: {
|
|
@@ -1261,7 +1261,7 @@ declare const MortgageModel: mongoose.Model<{
|
|
|
1261
1261
|
pageValidFlag: boolean;
|
|
1262
1262
|
topSlicing: boolean;
|
|
1263
1263
|
purposeOfMortgage: string;
|
|
1264
|
-
|
|
1264
|
+
depositComeFromLids: mongoose.Types.ObjectId[];
|
|
1265
1265
|
ifOtherDetails: string;
|
|
1266
1266
|
purchasePrice: Pound;
|
|
1267
1267
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
@@ -1296,7 +1296,7 @@ declare const MortgageModel: mongoose.Model<{
|
|
|
1296
1296
|
pageValidFlag: boolean;
|
|
1297
1297
|
topSlicing: boolean;
|
|
1298
1298
|
purposeOfMortgage: string;
|
|
1299
|
-
|
|
1299
|
+
depositComeFromLids: mongoose.Types.ObjectId[];
|
|
1300
1300
|
ifOtherDetails: string;
|
|
1301
1301
|
purchasePrice: Pound;
|
|
1302
1302
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
@@ -1331,7 +1331,7 @@ declare const MortgageModel: mongoose.Model<{
|
|
|
1331
1331
|
pageValidFlag: boolean;
|
|
1332
1332
|
topSlicing: boolean;
|
|
1333
1333
|
purposeOfMortgage: string;
|
|
1334
|
-
|
|
1334
|
+
depositComeFromLids: mongoose.Types.ObjectId[];
|
|
1335
1335
|
ifOtherDetails: string;
|
|
1336
1336
|
purchasePrice: Pound;
|
|
1337
1337
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
@@ -28,7 +28,7 @@ const mortgageSchema = new mongoose.Schema({
|
|
|
28
28
|
maxlength: 50,
|
|
29
29
|
description: "Purpose of the mortgage (e.g., purchase, refinance)",
|
|
30
30
|
},
|
|
31
|
-
|
|
31
|
+
depositComeFromLids: {
|
|
32
32
|
type: [mongoose.Schema.Types.ObjectId],
|
|
33
33
|
ref: "Lookup",
|
|
34
34
|
required: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamatix/gb-schemas",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.57",
|
|
4
4
|
"description": "All the schemas for gatehouse bank back-end",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"homepage": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas#readme",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"mongodb": "^6.14.2",
|
|
25
|
-
"mongoose": "^8.9.5"
|
|
25
|
+
"mongoose": "^8.9.5",
|
|
26
|
+
"tsc": "^2.0.4"
|
|
26
27
|
},
|
|
27
28
|
"files": [
|
|
28
29
|
"dist"
|
|
@@ -65,6 +66,6 @@
|
|
|
65
66
|
"@types/mongoose": "^5.11.96",
|
|
66
67
|
"@types/node": "^22.14.0",
|
|
67
68
|
"ts-node": "^10.9.2",
|
|
68
|
-
"typescript": "^5.8.
|
|
69
|
+
"typescript": "^5.8.3"
|
|
69
70
|
}
|
|
70
71
|
}
|