gemcap-be-common 1.5.170 → 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.
@@ -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").ILoanBrokerEmail[];
36
+ emails: import("../models/LoanBroker.model").ILoanBrokerEmailLean[];
37
37
  _id: mongoose.Types.ObjectId;
38
38
  createdAt: Date;
39
39
  updatedAt: Date;
@@ -48,6 +48,7 @@ export interface ILoanBrokerLean extends ILoanBroker {
48
48
  _id: mongoose.Types.ObjectId;
49
49
  createdAt: Date;
50
50
  updatedAt: Date;
51
+ emails: ILoanBrokerEmailLean[];
51
52
  }
52
53
  export interface ILoanBrokerPlain extends Omit<ILoanBroker, 'emails'> {
53
54
  _id: string;
@@ -39,6 +39,7 @@ export interface ILoanBrokerLean extends ILoanBroker {
39
39
  _id: mongoose.Types.ObjectId;
40
40
  createdAt: Date;
41
41
  updatedAt: Date;
42
+ emails: ILoanBrokerEmailLean[];
42
43
  }
43
44
 
44
45
  export interface ILoanBrokerPlain extends Omit<ILoanBroker, 'emails'> {
@@ -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
  }
@@ -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.170",
3
+ "version": "1.5.172",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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").ILoanBrokerEmail[];
52
+ emails: import("../models/LoanBroker.model").ILoanBrokerEmailLean[];
53
53
  _id: import("mongoose").Types.ObjectId;
54
54
  createdAt: Date;
55
55
  updatedAt: Date;