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.
package/models/AiJob.model.d.ts
CHANGED
package/models/AiJob.model.js
CHANGED
|
@@ -71,15 +71,15 @@ exports.AIJobSchema = new mongoose_1.default.Schema({
|
|
|
71
71
|
},
|
|
72
72
|
filename: {
|
|
73
73
|
type: String,
|
|
74
|
-
required:
|
|
74
|
+
required: false,
|
|
75
75
|
},
|
|
76
76
|
mimeType: {
|
|
77
77
|
type: String,
|
|
78
|
-
required:
|
|
78
|
+
required: false,
|
|
79
79
|
},
|
|
80
80
|
size: {
|
|
81
81
|
type: Number,
|
|
82
|
-
required:
|
|
82
|
+
required: false,
|
|
83
83
|
},
|
|
84
84
|
createdAt: {
|
|
85
85
|
type: Date,
|
package/models/AiJob.model.ts
CHANGED
|
@@ -37,7 +37,7 @@ export interface IAIJobInputFilePlain extends IAIJobInputFile {
|
|
|
37
37
|
export interface IAIJobResultFile {
|
|
38
38
|
storageFileId: string;
|
|
39
39
|
aiStorageFileId: string;
|
|
40
|
-
filename
|
|
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:
|
|
177
|
+
required: false,
|
|
178
178
|
},
|
|
179
179
|
mimeType: {
|
|
180
180
|
type: String,
|
|
181
|
-
required:
|
|
181
|
+
required: false,
|
|
182
182
|
},
|
|
183
183
|
size: {
|
|
184
184
|
type: Number,
|
|
185
|
-
required:
|
|
185
|
+
required: false,
|
|
186
186
|
},
|
|
187
187
|
createdAt: {
|
|
188
188
|
type: Date,
|
package/models/File.model.d.ts
CHANGED
|
@@ -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 {};
|
package/models/File.model.ts
CHANGED
|
@@ -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 }
|