gemcap-be-common 1.4.244 → 1.4.245
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/package.json +1 -1
- package/services/borrowers.service.d.ts +2 -2
- package/services/compliance-borrowers.service.d.ts +2 -4
- package/services/compliance-borrowers.service.js +9 -2
- package/services/compliance-borrowers.service.ts +9 -2
- package/services/loan-transactions.service.d.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -84,10 +84,10 @@ export declare class BorrowerService {
|
|
|
84
84
|
getBorrowerCodesMap(): Promise<Map<string, string>>;
|
|
85
85
|
getBorrowerStatementDetails(borrowers: IBorrowerDoc[]): Promise<{
|
|
86
86
|
[x: string]: {
|
|
87
|
-
SELECTED_PERIOD?: boolean;
|
|
88
|
-
ENTIRE_LOAN?: boolean;
|
|
89
87
|
LAST_MONTH?: boolean;
|
|
90
88
|
CURRENT_MONTH?: boolean;
|
|
89
|
+
ENTIRE_LOAN?: boolean;
|
|
90
|
+
SELECTED_PERIOD?: boolean;
|
|
91
91
|
TERM_LOAN?: boolean;
|
|
92
92
|
};
|
|
93
93
|
}>;
|
|
@@ -45,7 +45,7 @@ export declare class ComplianceBorrowersService {
|
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
getFullComplianceBorrowerById(complianceBorrowerId: string): Promise<any>;
|
|
48
|
-
getAllBorrowersShortened(userAccess: IUserAccess): Promise<(Pick<IComplianceBorrowerWithBorrower, "
|
|
48
|
+
getAllBorrowersShortened(userAccess: IUserAccess): Promise<(Pick<IComplianceBorrowerWithBorrower, "borrower" | "fundingStatus" | "items"> | {
|
|
49
49
|
items: {
|
|
50
50
|
instances: any[];
|
|
51
51
|
item: import("../models/ComplianceItem.model").IComplianceItemDocument;
|
|
@@ -99,9 +99,7 @@ export declare class ComplianceBorrowersService {
|
|
|
99
99
|
markInstanceFilesAsOld(complianceInstanceId: string): Promise<mongoose.Document<unknown, {}, import("../models/BorrowerCompliance.model").IComplianceBorrowerDoc> & import("../models/BorrowerCompliance.model").IComplianceBorrowerDoc & Required<{
|
|
100
100
|
_id: mongoose.Types.ObjectId;
|
|
101
101
|
}>>;
|
|
102
|
-
getBorrowerWithPlaidToken(): Promise<
|
|
103
|
-
_id: mongoose.Types.ObjectId;
|
|
104
|
-
}>)[]>;
|
|
102
|
+
getBorrowerWithPlaidToken(): Promise<IComplianceBorrowerWithBorrower[]>;
|
|
105
103
|
getBorrowerEmails(userAccess: IUserAccess): Promise<{
|
|
106
104
|
borrower: {
|
|
107
105
|
_id: string;
|
|
@@ -386,7 +386,10 @@ class ComplianceBorrowersService {
|
|
|
386
386
|
async getBorrowerWithPlaidToken() {
|
|
387
387
|
return BorrowerCompliance_model_1.BorrowerCompliance
|
|
388
388
|
.find({ plaidAccessToken: { $exists: true } })
|
|
389
|
-
.
|
|
389
|
+
.populate('borrower')
|
|
390
|
+
.select('+plaidAccessToken')
|
|
391
|
+
.lean()
|
|
392
|
+
.exec();
|
|
390
393
|
}
|
|
391
394
|
async getBorrowerEmails(userAccess) {
|
|
392
395
|
const allComplianceBorrower = await BorrowerCompliance_model_1.BorrowerCompliance
|
|
@@ -449,7 +452,11 @@ class ComplianceBorrowersService {
|
|
|
449
452
|
return;
|
|
450
453
|
}
|
|
451
454
|
return {
|
|
452
|
-
borrower: {
|
|
455
|
+
borrower: {
|
|
456
|
+
_id: borrower._id.toString(),
|
|
457
|
+
name: borrower.borrower?.name ?? '',
|
|
458
|
+
borrowerId: borrower.borrower?._id.toString() ?? '',
|
|
459
|
+
},
|
|
453
460
|
email: borrower.email,
|
|
454
461
|
mainEmails: borrower.mainEmails ?? [],
|
|
455
462
|
financialEmails: borrower.financialEmails ?? [],
|
|
@@ -422,7 +422,10 @@ export class ComplianceBorrowersService {
|
|
|
422
422
|
async getBorrowerWithPlaidToken() {
|
|
423
423
|
return BorrowerCompliance
|
|
424
424
|
.find({ plaidAccessToken: { $exists: true } })
|
|
425
|
-
.
|
|
425
|
+
.populate('borrower')
|
|
426
|
+
.select('+plaidAccessToken')
|
|
427
|
+
.lean<IComplianceBorrowerWithBorrower[]>()
|
|
428
|
+
.exec();
|
|
426
429
|
}
|
|
427
430
|
|
|
428
431
|
async getBorrowerEmails(userAccess: IUserAccess) {
|
|
@@ -487,7 +490,11 @@ export class ComplianceBorrowersService {
|
|
|
487
490
|
return;
|
|
488
491
|
}
|
|
489
492
|
return {
|
|
490
|
-
borrower: {
|
|
493
|
+
borrower: {
|
|
494
|
+
_id: borrower._id.toString(),
|
|
495
|
+
name: borrower.borrower?.name ?? '',
|
|
496
|
+
borrowerId: borrower.borrower?._id.toString() ?? '',
|
|
497
|
+
},
|
|
491
498
|
email: borrower.email,
|
|
492
499
|
mainEmails: borrower.mainEmails ?? [],
|
|
493
500
|
financialEmails: borrower.financialEmails ?? [],
|
|
@@ -155,7 +155,7 @@ export declare class LoanTransactionsService {
|
|
|
155
155
|
getTransactionReport(transactionIds: string[], borrowerId: string, effectiveDate: Date): Promise<{
|
|
156
156
|
transactionIdsToMark: string[];
|
|
157
157
|
transactions: {
|
|
158
|
-
[x: string]: (string | number |
|
|
158
|
+
[x: string]: (string | number | string[] | Date)[];
|
|
159
159
|
}[];
|
|
160
160
|
}>;
|
|
161
161
|
getBorrowerIdsForFile(transactionFileId: string): Promise<{
|