gemcap-be-common 1.5.175 → 1.5.177
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/Borrower.model.d.ts +10 -4
- package/models/Borrower.model.js +4 -0
- package/models/Borrower.model.ts +8 -1
- package/models/QuickbooksAccount.model.d.ts +1 -2
- package/models/QuickbooksAccount.model.ts +1 -1
- package/package.json +1 -1
- package/services/borrowers.service.d.ts +2 -2
- package/services/compliance-borrowers.service.d.ts +1 -1
- package/services/loan-transactions.service.d.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -43,6 +43,7 @@ export interface IBorrower {
|
|
|
43
43
|
reserveCodeCompanyId: mongoose.Types.ObjectId | null;
|
|
44
44
|
reserveCodeId: mongoose.Types.ObjectId | null;
|
|
45
45
|
organizationId: mongoose.Types.ObjectId;
|
|
46
|
+
companyId?: mongoose.Types.ObjectId | null;
|
|
46
47
|
schemas: IMapSchema[];
|
|
47
48
|
}
|
|
48
49
|
export interface IBorrowerDoc extends IBorrower, Document {
|
|
@@ -55,10 +56,12 @@ export interface IBorrowerLean extends IBorrower {
|
|
|
55
56
|
createdAt: Date;
|
|
56
57
|
updatedAt: Date;
|
|
57
58
|
}
|
|
58
|
-
export interface IBorrowerPlain extends Omit<IBorrower, 'organizationId' | 'reserveCodeId'> {
|
|
59
|
+
export interface IBorrowerPlain extends Omit<IBorrower, 'reserveCodeCompanyId' | 'organizationId' | 'reserveCodeId' | 'companyId'> {
|
|
59
60
|
_id: string;
|
|
61
|
+
reserveCodeCompanyId: string;
|
|
60
62
|
organizationId: string;
|
|
61
63
|
reserveCodeId: string;
|
|
64
|
+
companyId: string;
|
|
62
65
|
createdAt: Date;
|
|
63
66
|
updatedAt: Date;
|
|
64
67
|
}
|
|
@@ -75,10 +78,11 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
75
78
|
active: boolean;
|
|
76
79
|
accrualStatus: boolean;
|
|
77
80
|
accrueToReserve: boolean;
|
|
81
|
+
reserveCodeCompanyId?: mongoose.Types.ObjectId;
|
|
78
82
|
organizationId?: mongoose.Types.ObjectId;
|
|
79
83
|
reserveCodeId?: mongoose.Types.ObjectId;
|
|
84
|
+
companyId?: mongoose.Types.ObjectId;
|
|
80
85
|
accrueToReserveAppliedFrom?: Date;
|
|
81
|
-
reserveCodeCompanyId?: mongoose.Types.ObjectId;
|
|
82
86
|
schemas?: mongoose.Types.DocumentArray<{
|
|
83
87
|
name: string;
|
|
84
88
|
type: string;
|
|
@@ -98,10 +102,11 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
98
102
|
active: boolean;
|
|
99
103
|
accrualStatus: boolean;
|
|
100
104
|
accrueToReserve: boolean;
|
|
105
|
+
reserveCodeCompanyId?: mongoose.Types.ObjectId;
|
|
101
106
|
organizationId?: mongoose.Types.ObjectId;
|
|
102
107
|
reserveCodeId?: mongoose.Types.ObjectId;
|
|
108
|
+
companyId?: mongoose.Types.ObjectId;
|
|
103
109
|
accrueToReserveAppliedFrom?: Date;
|
|
104
|
-
reserveCodeCompanyId?: mongoose.Types.ObjectId;
|
|
105
110
|
schemas?: mongoose.Types.DocumentArray<{
|
|
106
111
|
name: string;
|
|
107
112
|
type: string;
|
|
@@ -121,10 +126,11 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
121
126
|
active: boolean;
|
|
122
127
|
accrualStatus: boolean;
|
|
123
128
|
accrueToReserve: boolean;
|
|
129
|
+
reserveCodeCompanyId?: mongoose.Types.ObjectId;
|
|
124
130
|
organizationId?: mongoose.Types.ObjectId;
|
|
125
131
|
reserveCodeId?: mongoose.Types.ObjectId;
|
|
132
|
+
companyId?: mongoose.Types.ObjectId;
|
|
126
133
|
accrueToReserveAppliedFrom?: Date;
|
|
127
|
-
reserveCodeCompanyId?: mongoose.Types.ObjectId;
|
|
128
134
|
schemas?: mongoose.Types.DocumentArray<{
|
|
129
135
|
name: string;
|
|
130
136
|
type: string;
|
package/models/Borrower.model.js
CHANGED
|
@@ -50,6 +50,10 @@ exports.BorrowerSchema = new mongoose_1.default.Schema({
|
|
|
50
50
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
51
51
|
ref: _models_1.MODEL_NAMES.organizations,
|
|
52
52
|
},
|
|
53
|
+
companyId: {
|
|
54
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
55
|
+
ref: _models_1.MODEL_NAMES.companies,
|
|
56
|
+
},
|
|
53
57
|
schemas: {
|
|
54
58
|
required: false,
|
|
55
59
|
type: [
|
package/models/Borrower.model.ts
CHANGED
|
@@ -25,6 +25,7 @@ export interface IBorrower {
|
|
|
25
25
|
reserveCodeCompanyId: mongoose.Types.ObjectId | null;
|
|
26
26
|
reserveCodeId: mongoose.Types.ObjectId | null;
|
|
27
27
|
organizationId: mongoose.Types.ObjectId;
|
|
28
|
+
companyId?: mongoose.Types.ObjectId | null;
|
|
28
29
|
schemas: IMapSchema[];
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -40,10 +41,12 @@ export interface IBorrowerLean extends IBorrower {
|
|
|
40
41
|
updatedAt: Date;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
export interface IBorrowerPlain extends Omit<IBorrower, 'organizationId' | 'reserveCodeId'> {
|
|
44
|
+
export interface IBorrowerPlain extends Omit<IBorrower, 'reserveCodeCompanyId' | 'organizationId' | 'reserveCodeId' | 'companyId'> {
|
|
44
45
|
_id: string;
|
|
46
|
+
reserveCodeCompanyId: string;
|
|
45
47
|
organizationId: string;
|
|
46
48
|
reserveCodeId: string;
|
|
49
|
+
companyId: string;
|
|
47
50
|
createdAt: Date;
|
|
48
51
|
updatedAt: Date;
|
|
49
52
|
}
|
|
@@ -94,6 +97,10 @@ export const BorrowerSchema = new mongoose.Schema(
|
|
|
94
97
|
type: mongoose.Schema.Types.ObjectId,
|
|
95
98
|
ref: MODEL_NAMES.organizations,
|
|
96
99
|
},
|
|
100
|
+
companyId: {
|
|
101
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
102
|
+
ref: MODEL_NAMES.companies,
|
|
103
|
+
},
|
|
97
104
|
schemas: {
|
|
98
105
|
required: false,
|
|
99
106
|
type: [
|
|
@@ -44,9 +44,8 @@ export interface IQuickbooksAccountPlain extends Omit<IQuickbooksAccount, 'compa
|
|
|
44
44
|
_id: string;
|
|
45
45
|
companyId: string;
|
|
46
46
|
}
|
|
47
|
-
type TQuickbooksAccountModel = Model<IQuickbooksAccount>;
|
|
47
|
+
export type TQuickbooksAccountModel = Model<IQuickbooksAccount>;
|
|
48
48
|
export declare const QuickbooksAccountSchema: mongoose.Schema<IQuickbooksAccount, TQuickbooksAccountModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IQuickbooksAccount, mongoose.Document<unknown, {}, mongoose.FlatRecord<IQuickbooksAccount>> & mongoose.FlatRecord<IQuickbooksAccount> & {
|
|
49
49
|
_id: mongoose.Types.ObjectId;
|
|
50
50
|
}>;
|
|
51
51
|
export declare const QuickbooksAccount: TQuickbooksAccountModel;
|
|
52
|
-
export {};
|
|
@@ -36,7 +36,7 @@ export interface IQuickbooksAccountPlain extends Omit<IQuickbooksAccount, 'compa
|
|
|
36
36
|
companyId: string;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
type TQuickbooksAccountModel = Model<IQuickbooksAccount>;
|
|
39
|
+
export type TQuickbooksAccountModel = Model<IQuickbooksAccount>;
|
|
40
40
|
|
|
41
41
|
export const QuickbooksAccountSchema = new mongoose.Schema<IQuickbooksAccount, TQuickbooksAccountModel>(
|
|
42
42
|
{
|
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;
|
|
87
89
|
LAST_MONTH?: boolean;
|
|
88
90
|
CURRENT_MONTH?: boolean;
|
|
89
|
-
ENTIRE_LOAN?: boolean;
|
|
90
|
-
SELECTED_PERIOD?: boolean;
|
|
91
91
|
TERM_LOAN?: boolean;
|
|
92
92
|
};
|
|
93
93
|
}>;
|
|
@@ -58,7 +58,7 @@ export declare class ComplianceBorrowersService {
|
|
|
58
58
|
isComplianceBorrowerAllowed(userAccess: IUserAccess, requestedBorrowerId: string): boolean;
|
|
59
59
|
calculateInstanceStatuses(instance: IBorrowerItemInstance, item: IBorrowerItemLean): IInstanceStatus;
|
|
60
60
|
getFullComplianceBorrowerById(complianceBorrowerId: string): Promise<IComplianceBorrowerDocumentFullWithStatuses>;
|
|
61
|
-
getAllBorrowersShortened(userAccess: IUserAccess): Promise<Pick<IComplianceBorrowerWithBorrower, "borrower" | "
|
|
61
|
+
getAllBorrowersShortened(userAccess: IUserAccess): Promise<Pick<IComplianceBorrowerWithBorrower, "borrower" | "fundingStatus" | "items">[]>;
|
|
62
62
|
generateInstances(complianceBorrowerId: any): Promise<IComplianceBorrowerDocumentFullWithStatuses>;
|
|
63
63
|
calculateAndUpdateFundingStatus(complianceBorrowerId: string): Promise<void>;
|
|
64
64
|
calculateFundingStatus(complianceBorrower: IComplianceBorrowerDocumentFull): string;
|
|
@@ -164,7 +164,7 @@ export declare class LoanTransactionsService {
|
|
|
164
164
|
getTransactionReport(transactionIds: string[], borrowerId: string, effectiveDate: Date): Promise<{
|
|
165
165
|
transactionIdsToMark: string[];
|
|
166
166
|
transactions: {
|
|
167
|
-
[x: string]: (string | number | string[]
|
|
167
|
+
[x: string]: (string | number | Date | string[])[];
|
|
168
168
|
}[];
|
|
169
169
|
}>;
|
|
170
170
|
getBorrowerIdsForFile(transactionFileId: string): Promise<{
|