gemcap-be-common 1.5.169 → 1.5.171
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/db/brokers.db.d.ts +1 -1
- package/models/LoanBroker.model.d.ts +1 -0
- package/models/LoanBroker.model.ts +1 -0
- package/models/ProductBroker.model.d.ts +8 -8
- package/models/ProductBroker.model.ts +2 -2
- package/package.json +1 -1
- package/services/brokers.service.d.ts +1 -1
- package/services/loan-transactions.service.d.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/db/brokers.db.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare const enrichWithBrokers: (transactions: ILedgerDataRow[], product
|
|
|
33
33
|
export declare const getBorrowerBrokers: (borrowerId: string) => Promise<IProductBrokerLean[]>;
|
|
34
34
|
export declare const getAllProductBrokers: () => Promise<IProductBrokerLean[]>;
|
|
35
35
|
export declare const getAllLoanBrokers: () => Promise<{
|
|
36
|
-
emails: import("../models/LoanBroker.model").
|
|
36
|
+
emails: import("../models/LoanBroker.model").ILoanBrokerEmailLean[];
|
|
37
37
|
_id: mongoose.Types.ObjectId;
|
|
38
38
|
createdAt: Date;
|
|
39
39
|
updatedAt: Date;
|
|
@@ -57,10 +57,10 @@ export interface IProductBrokerPlain extends Omit<IProductBroker, 'borrowerId' |
|
|
|
57
57
|
PLCodeId: string;
|
|
58
58
|
}
|
|
59
59
|
export interface IProductBrokerDocWithLoanBroker extends TProductBrokerDoc {
|
|
60
|
-
loanBroker
|
|
60
|
+
loanBroker?: ILoanBrokerLean;
|
|
61
61
|
}
|
|
62
62
|
export interface IProductBrokerWithLoanBrokerPlain extends IProductBrokerPlain {
|
|
63
|
-
loanBroker
|
|
63
|
+
loanBroker?: ILoanBrokerPlain;
|
|
64
64
|
}
|
|
65
65
|
export type IProductBrokerView = Omit<IProductBrokerLean, 'borrowerId' | 'order'>;
|
|
66
66
|
export type TProductBrokerModel = mongoose.Model<IProductBroker>;
|
|
@@ -72,8 +72,8 @@ export declare const ProductBrokerSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
72
72
|
} & {
|
|
73
73
|
uiId: string;
|
|
74
74
|
order: number;
|
|
75
|
-
borrowerId: mongoose.Types.ObjectId;
|
|
76
75
|
active: boolean;
|
|
76
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
77
77
|
loanBrokerId: mongoose.Types.ObjectId;
|
|
78
78
|
BSCodeId: mongoose.Types.ObjectId;
|
|
79
79
|
PLCodeId: mongoose.Types.ObjectId;
|
|
@@ -82,17 +82,17 @@ export declare const ProductBrokerSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
82
82
|
interestShare: number;
|
|
83
83
|
adminShare: number;
|
|
84
84
|
otherShare: number;
|
|
85
|
+
__v?: number;
|
|
85
86
|
BSCode?: string;
|
|
86
87
|
PLCode?: string;
|
|
87
|
-
__v?: number;
|
|
88
88
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
89
89
|
createdAt: NativeDate;
|
|
90
90
|
updatedAt: NativeDate;
|
|
91
91
|
} & {
|
|
92
92
|
uiId: string;
|
|
93
93
|
order: number;
|
|
94
|
-
borrowerId: mongoose.Types.ObjectId;
|
|
95
94
|
active: boolean;
|
|
95
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
96
96
|
loanBrokerId: mongoose.Types.ObjectId;
|
|
97
97
|
BSCodeId: mongoose.Types.ObjectId;
|
|
98
98
|
PLCodeId: mongoose.Types.ObjectId;
|
|
@@ -101,17 +101,17 @@ export declare const ProductBrokerSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
101
101
|
interestShare: number;
|
|
102
102
|
adminShare: number;
|
|
103
103
|
otherShare: number;
|
|
104
|
+
__v?: number;
|
|
104
105
|
BSCode?: string;
|
|
105
106
|
PLCode?: string;
|
|
106
|
-
__v?: number;
|
|
107
107
|
}>> & mongoose.FlatRecord<{
|
|
108
108
|
createdAt: NativeDate;
|
|
109
109
|
updatedAt: NativeDate;
|
|
110
110
|
} & {
|
|
111
111
|
uiId: string;
|
|
112
112
|
order: number;
|
|
113
|
-
borrowerId: mongoose.Types.ObjectId;
|
|
114
113
|
active: boolean;
|
|
114
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
115
115
|
loanBrokerId: mongoose.Types.ObjectId;
|
|
116
116
|
BSCodeId: mongoose.Types.ObjectId;
|
|
117
117
|
PLCodeId: mongoose.Types.ObjectId;
|
|
@@ -120,9 +120,9 @@ export declare const ProductBrokerSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
120
120
|
interestShare: number;
|
|
121
121
|
adminShare: number;
|
|
122
122
|
otherShare: number;
|
|
123
|
+
__v?: number;
|
|
123
124
|
BSCode?: string;
|
|
124
125
|
PLCode?: string;
|
|
125
|
-
__v?: number;
|
|
126
126
|
}> & {
|
|
127
127
|
_id: mongoose.Types.ObjectId;
|
|
128
128
|
}>;
|
|
@@ -57,11 +57,11 @@ export interface IProductBrokerPlain extends Omit<IProductBroker, 'borrowerId' |
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export interface IProductBrokerDocWithLoanBroker extends TProductBrokerDoc {
|
|
60
|
-
loanBroker
|
|
60
|
+
loanBroker?: ILoanBrokerLean;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
export interface IProductBrokerWithLoanBrokerPlain extends IProductBrokerPlain {
|
|
64
|
-
loanBroker
|
|
64
|
+
loanBroker?: ILoanBrokerPlain;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export type IProductBrokerView = Omit<IProductBrokerLean, 'borrowerId' | 'order'>
|
package/package.json
CHANGED
|
@@ -49,7 +49,7 @@ export declare class BrokersService {
|
|
|
49
49
|
checkTotalShares(borrowerId: string, brokers: IProductBrokerView[]): Promise<boolean>;
|
|
50
50
|
saveProductBrokers(borrowerId: string, brokers: IProductBrokerView[]): Promise<import("mongodb").BulkWriteResult>;
|
|
51
51
|
getAllLoanBrokers(): Promise<{
|
|
52
|
-
emails: import("../models/LoanBroker.model").
|
|
52
|
+
emails: import("../models/LoanBroker.model").ILoanBrokerEmailLean[];
|
|
53
53
|
_id: import("mongoose").Types.ObjectId;
|
|
54
54
|
createdAt: Date;
|
|
55
55
|
updatedAt: Date;
|
|
@@ -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<{
|