gemcap-be-common 1.5.171 → 1.5.172

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.
@@ -59,6 +59,9 @@ export interface IProductBrokerPlain extends Omit<IProductBroker, 'borrowerId' |
59
59
  export interface IProductBrokerDocWithLoanBroker extends TProductBrokerDoc {
60
60
  loanBroker?: ILoanBrokerLean;
61
61
  }
62
+ export interface IProductBrokerLeanWithLoanBroker extends IProductBrokerLean {
63
+ loanBroker?: ILoanBrokerLean;
64
+ }
62
65
  export interface IProductBrokerWithLoanBrokerPlain extends IProductBrokerPlain {
63
66
  loanBroker?: ILoanBrokerPlain;
64
67
  }
@@ -72,8 +75,8 @@ export declare const ProductBrokerSchema: mongoose.Schema<any, mongoose.Model<an
72
75
  } & {
73
76
  uiId: string;
74
77
  order: number;
75
- active: boolean;
76
78
  borrowerId: mongoose.Types.ObjectId;
79
+ active: boolean;
77
80
  loanBrokerId: mongoose.Types.ObjectId;
78
81
  BSCodeId: mongoose.Types.ObjectId;
79
82
  PLCodeId: mongoose.Types.ObjectId;
@@ -82,17 +85,17 @@ export declare const ProductBrokerSchema: mongoose.Schema<any, mongoose.Model<an
82
85
  interestShare: number;
83
86
  adminShare: number;
84
87
  otherShare: number;
85
- __v?: number;
86
88
  BSCode?: string;
87
89
  PLCode?: string;
90
+ __v?: number;
88
91
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
89
92
  createdAt: NativeDate;
90
93
  updatedAt: NativeDate;
91
94
  } & {
92
95
  uiId: string;
93
96
  order: number;
94
- active: boolean;
95
97
  borrowerId: mongoose.Types.ObjectId;
98
+ active: boolean;
96
99
  loanBrokerId: mongoose.Types.ObjectId;
97
100
  BSCodeId: mongoose.Types.ObjectId;
98
101
  PLCodeId: mongoose.Types.ObjectId;
@@ -101,17 +104,17 @@ export declare const ProductBrokerSchema: mongoose.Schema<any, mongoose.Model<an
101
104
  interestShare: number;
102
105
  adminShare: number;
103
106
  otherShare: number;
104
- __v?: number;
105
107
  BSCode?: string;
106
108
  PLCode?: string;
109
+ __v?: number;
107
110
  }>> & mongoose.FlatRecord<{
108
111
  createdAt: NativeDate;
109
112
  updatedAt: NativeDate;
110
113
  } & {
111
114
  uiId: string;
112
115
  order: number;
113
- active: boolean;
114
116
  borrowerId: mongoose.Types.ObjectId;
117
+ active: boolean;
115
118
  loanBrokerId: mongoose.Types.ObjectId;
116
119
  BSCodeId: mongoose.Types.ObjectId;
117
120
  PLCodeId: mongoose.Types.ObjectId;
@@ -120,9 +123,9 @@ export declare const ProductBrokerSchema: mongoose.Schema<any, mongoose.Model<an
120
123
  interestShare: number;
121
124
  adminShare: number;
122
125
  otherShare: number;
123
- __v?: number;
124
126
  BSCode?: string;
125
127
  PLCode?: string;
128
+ __v?: number;
126
129
  }> & {
127
130
  _id: mongoose.Types.ObjectId;
128
131
  }>;
@@ -60,6 +60,10 @@ export interface IProductBrokerDocWithLoanBroker extends TProductBrokerDoc {
60
60
  loanBroker?: ILoanBrokerLean;
61
61
  }
62
62
 
63
+ export interface IProductBrokerLeanWithLoanBroker extends IProductBrokerLean {
64
+ loanBroker?: ILoanBrokerLean;
65
+ }
66
+
63
67
  export interface IProductBrokerWithLoanBrokerPlain extends IProductBrokerPlain {
64
68
  loanBroker?: ILoanBrokerPlain;
65
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.171",
3
+ "version": "1.5.172",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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 | Date | string[])[];
167
+ [x: string]: (string | number | string[] | Date)[];
168
168
  }[];
169
169
  }>;
170
170
  getBorrowerIdsForFile(transactionFileId: string): Promise<{