gemcap-be-common 1.5.152 → 1.5.154

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.
@@ -47,7 +47,7 @@ export interface IAIJobInputFilePlain extends IAIJobInputFile {
47
47
  export interface IAIJobResultFile {
48
48
  storageFileId: string;
49
49
  aiStorageFileId: string;
50
- filename: string;
50
+ filename?: string;
51
51
  mimeType?: string;
52
52
  size?: number;
53
53
  createdAt: Date;
@@ -71,15 +71,15 @@ exports.AIJobSchema = new mongoose_1.default.Schema({
71
71
  },
72
72
  filename: {
73
73
  type: String,
74
- required: true,
74
+ required: false,
75
75
  },
76
76
  mimeType: {
77
77
  type: String,
78
- required: true,
78
+ required: false,
79
79
  },
80
80
  size: {
81
81
  type: Number,
82
- required: true,
82
+ required: false,
83
83
  },
84
84
  createdAt: {
85
85
  type: Date,
@@ -37,7 +37,7 @@ export interface IAIJobInputFilePlain extends IAIJobInputFile {
37
37
  export interface IAIJobResultFile {
38
38
  storageFileId: string;
39
39
  aiStorageFileId: string;
40
- filename: string;
40
+ filename?: string;
41
41
  mimeType?: string;
42
42
  size?: number;
43
43
  createdAt: Date;
@@ -174,15 +174,15 @@ export const AIJobSchema = new mongoose.Schema<IAIJob, TAIJobModel>(
174
174
  },
175
175
  filename: {
176
176
  type: String,
177
- required: true,
177
+ required: false,
178
178
  },
179
179
  mimeType: {
180
180
  type: String,
181
- required: true,
181
+ required: false,
182
182
  },
183
183
  size: {
184
184
  type: Number,
185
- required: true,
185
+ required: false,
186
186
  },
187
187
  createdAt: {
188
188
  type: Date,
@@ -30,7 +30,7 @@ export type TFileMetadataItem = {
30
30
  role: string;
31
31
  source: 'uploaded' | 'existing';
32
32
  };
33
- type TFileUploadContext = {
33
+ export type TFileUploadContext = {
34
34
  type: 'analysis';
35
35
  userId: string;
36
36
  taskId: string;
@@ -113,4 +113,3 @@ export declare const FileSchema: mongoose.Schema<IFile, TFileModel, {}, {}, {},
113
113
  _id: mongoose.Types.ObjectId;
114
114
  }>;
115
115
  export declare const File: TFileModel;
116
- export {};
@@ -9,7 +9,7 @@ export type TFileMetadataItem = {
9
9
  source: 'uploaded' | 'existing';
10
10
  };
11
11
 
12
- type TFileUploadContext =
12
+ export type TFileUploadContext =
13
13
  | { type: 'analysis'; userId: string; taskId: string }
14
14
  | { type: 'prospect'; userId: string; prospectId: string }
15
15
  | { type: 'borrower'; userId: string; borrowerId: string }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.152",
3
+ "version": "1.5.154",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {