gemcap-be-common 1.5.155 → 1.5.157

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.
@@ -35,7 +35,7 @@ export interface IAIJobResponseChunk {
35
35
  }
36
36
  export interface IAIJobInputFile {
37
37
  storageFileId: string;
38
- aiStorageFileId: string;
38
+ aiStorageFileId?: string;
39
39
  createdAt: Date;
40
40
  }
41
41
  export interface IAIJobInputFileLean extends IAIJobInputFile {
@@ -53,7 +53,7 @@ exports.AIJobSchema = new mongoose_1.default.Schema({
53
53
  },
54
54
  aiStorageFileId: {
55
55
  type: String,
56
- required: true,
56
+ required: false,
57
57
  },
58
58
  createdAt: {
59
59
  type: Date,
@@ -22,7 +22,7 @@ export interface IAIJobResponseChunk {
22
22
 
23
23
  export interface IAIJobInputFile {
24
24
  storageFileId: string;
25
- aiStorageFileId: string;
25
+ aiStorageFileId?: string;
26
26
  createdAt: Date;
27
27
  }
28
28
 
@@ -155,7 +155,7 @@ export const AIJobSchema = new mongoose.Schema<IAIJob, TAIJobModel>(
155
155
  },
156
156
  aiStorageFileId: {
157
157
  type: String,
158
- required: true,
158
+ required: false,
159
159
  },
160
160
  createdAt: {
161
161
  type: Date,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.155",
3
+ "version": "1.5.157",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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, "items" | "borrower" | "fundingStatus">[]>;
61
+ getAllBorrowersShortened(userAccess: IUserAccess): Promise<Pick<IComplianceBorrowerWithBorrower, "borrower" | "items" | "fundingStatus">[]>;
62
62
  generateInstances(complianceBorrowerId: any): Promise<IComplianceBorrowerDocumentFullWithStatuses>;
63
63
  calculateAndUpdateFundingStatus(complianceBorrowerId: string): Promise<void>;
64
64
  calculateFundingStatus(complianceBorrower: IComplianceBorrowerDocumentFull): string;
@@ -5,7 +5,7 @@ import { BorrowersDB } from './borrowers.db';
5
5
  import { LoanChargesService } from './loan-charges.service';
6
6
  export interface IUserLogFilter {
7
7
  userId: string;
8
- borrowerId: string;
8
+ borrowerId?: string;
9
9
  periodStart: Date;
10
10
  periodEnd: Date;
11
11
  }
@@ -10,7 +10,7 @@ import { LoanChargesService } from './loan-charges.service';
10
10
 
11
11
  export interface IUserLogFilter {
12
12
  userId: string;
13
- borrowerId: string;
13
+ borrowerId?: string;
14
14
  periodStart: Date;
15
15
  periodEnd: Date;
16
16
  }