gemcap-be-common 1.4.246 → 1.4.248
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/models/AuditorContact.model.d.ts +2 -6
- package/models/AuditorContact.model.ts +2 -6
- package/package.json +1 -1
- package/services/compliance-borrowers.service.d.ts +1 -3
- package/services/compliance-borrowers.service.js +3 -1
- package/services/compliance-borrowers.service.ts +3 -1
- package/services/loan-transactions.service.d.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import mongoose from 'mongoose';
|
|
25
|
+
import mongoose, { HydratedDocument } from 'mongoose';
|
|
26
26
|
import Joi from 'joi';
|
|
27
27
|
export interface IAuditorContact {
|
|
28
28
|
auditorId: mongoose.Types.ObjectId;
|
|
@@ -34,11 +34,7 @@ export interface IAuditorContact {
|
|
|
34
34
|
comment?: string;
|
|
35
35
|
order?: number;
|
|
36
36
|
}
|
|
37
|
-
export
|
|
38
|
-
_id: mongoose.Types.ObjectId;
|
|
39
|
-
createdAt: Date;
|
|
40
|
-
updatedAt: Date;
|
|
41
|
-
}
|
|
37
|
+
export type IAuditorContactDoc = HydratedDocument<IAuditorContact>;
|
|
42
38
|
export interface IAuditorContactLean extends IAuditorContact {
|
|
43
39
|
_id: mongoose.Types.ObjectId;
|
|
44
40
|
createdAt: Date;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
1
|
+
import mongoose, { HydratedDocument } from 'mongoose';
|
|
2
2
|
import Joi from 'joi';
|
|
3
3
|
|
|
4
4
|
import { MODEL_NAMES } from './_models';
|
|
@@ -14,11 +14,7 @@ export interface IAuditorContact {
|
|
|
14
14
|
order?: number;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export
|
|
18
|
-
_id: mongoose.Types.ObjectId;
|
|
19
|
-
createdAt: Date;
|
|
20
|
-
updatedAt: Date;
|
|
21
|
-
}
|
|
17
|
+
export type IAuditorContactDoc = HydratedDocument<IAuditorContact>;
|
|
22
18
|
|
|
23
19
|
export interface IAuditorContactLean extends IAuditorContact {
|
|
24
20
|
_id: mongoose.Types.ObjectId;
|
package/package.json
CHANGED
|
@@ -89,9 +89,7 @@ export declare class ComplianceBorrowersService {
|
|
|
89
89
|
_id: mongoose.Types.ObjectId;
|
|
90
90
|
}>>;
|
|
91
91
|
getAllBorrowersIds(onlyActive?: boolean): Promise<any[]>;
|
|
92
|
-
getBorrowerListByItemId(complianceItemId: string): Promise<
|
|
93
|
-
_id: mongoose.Types.ObjectId;
|
|
94
|
-
}>, never>[]>;
|
|
92
|
+
getBorrowerListByItemId(complianceItemId: string): Promise<IComplianceBorrowerWithBorrower[]>;
|
|
95
93
|
deleteInstanceById(complianceBorrowerId: string, complianceInstanceId: string): Promise<void>;
|
|
96
94
|
getBorrowerByInstanceId(complianceInstanceId: string): Promise<mongoose.Document<unknown, {}, import("../models/BorrowerCompliance.model").IComplianceBorrowerDoc> & import("../models/BorrowerCompliance.model").IComplianceBorrowerDoc & Required<{
|
|
97
95
|
_id: mongoose.Types.ObjectId;
|
|
@@ -348,7 +348,9 @@ class ComplianceBorrowersService {
|
|
|
348
348
|
},
|
|
349
349
|
},
|
|
350
350
|
})
|
|
351
|
-
.populate('borrower')
|
|
351
|
+
.populate('borrower')
|
|
352
|
+
.lean()
|
|
353
|
+
.exec();
|
|
352
354
|
}
|
|
353
355
|
async deleteInstanceById(complianceBorrowerId, complianceInstanceId) {
|
|
354
356
|
await BorrowerCompliance_model_1.BorrowerCompliance
|
|
@@ -374,7 +374,9 @@ export class ComplianceBorrowersService {
|
|
|
374
374
|
},
|
|
375
375
|
},
|
|
376
376
|
})
|
|
377
|
-
.populate('borrower')
|
|
377
|
+
.populate('borrower')
|
|
378
|
+
.lean<IComplianceBorrowerWithBorrower[]>()
|
|
379
|
+
.exec();
|
|
378
380
|
}
|
|
379
381
|
|
|
380
382
|
async deleteInstanceById(complianceBorrowerId: string, complianceInstanceId: string) {
|
|
@@ -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<{
|