gemcap-be-common 1.4.26 → 1.4.27

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.
@@ -29,7 +29,7 @@ export declare const getBBCDateDoc: (bbcDateId: string) => Promise<mongoose.Flat
29
29
  _id: mongoose.Types.ObjectId;
30
30
  }>;
31
31
  export declare const getBBCDatesByBorrower: (borrowerId: string, sortOrder?: 1 | -1) => Promise<IBBCDateDoc[]>;
32
- export declare const getLatestSignedBBCDateDoc: (borrowerId: string, date?: Date) => Promise<any>;
32
+ export declare const getLatestSignedBBCDateDoc: (borrowerId: string, date?: Date) => Promise<IBBCDateDoc | null>;
33
33
  export declare const getOlderBBCDates: (borrowerId: string, bbcDate: Date) => Promise<IBBCDateDoc[]>;
34
34
  export declare const getBBCDates: (borrowerId: string, bbcDate: Date) => Promise<IBBCDateDoc[]>;
35
35
  export declare const getBBCDatesForPeriod: (borrowerId: string, bbcDateStart: Date, bbcDateEnd: Date) => Promise<IBBCDateDoc[]>;
package/db/bbcDates.db.ts CHANGED
@@ -23,7 +23,7 @@ export const getBBCDatesByBorrower = async (borrowerId: string, sortOrder: 1 | -
23
23
  ]);
24
24
  };
25
25
 
26
- export const getLatestSignedBBCDateDoc = async (borrowerId: string, date?: Date) => {
26
+ export const getLatestSignedBBCDateDoc = async (borrowerId: string, date?: Date): Promise<IBBCDateDoc | null> => {
27
27
  const match: {
28
28
  borrowerId: mongoose.Types.ObjectId;
29
29
  bbcDate?: { $lte: Date };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.4.26",
3
+ "version": "1.4.27",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {