gemcap-be-common 1.5.108 → 1.5.109

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.
@@ -30,6 +30,13 @@
30
30
  import mongoose from 'mongoose';
31
31
  import { TModelName } from './_models';
32
32
  import { TTaskStatus } from '../interfaces/task.interface';
33
+ export interface IAIJobResultFile {
34
+ storageFileId: string;
35
+ aiStorageFileId: string;
36
+ filename: string;
37
+ mimeType?: string;
38
+ size?: number;
39
+ }
33
40
  export interface IAIJob {
34
41
  taskId: string;
35
42
  userId: string;
@@ -40,16 +47,10 @@ export interface IAIJob {
40
47
  };
41
48
  context: unknown;
42
49
  inputFiles?: Array<{
43
- fileId: string;
44
- aiFileId: string;
45
- }>;
46
- resultFiles?: Array<{
47
- fileId: string;
48
- anthropicFileId: string;
49
- filename: string;
50
- mimeType?: string;
51
- size?: number;
50
+ storageFileId: string;
51
+ aiStorageFileId: string;
52
52
  }>;
53
+ resultFiles?: Array<IAIJobResultFile>;
53
54
  userPrompt?: string;
54
55
  provider?: string;
55
56
  model?: string;
@@ -31,21 +31,21 @@ exports.AIJobSchema = new mongoose_1.default.Schema({
31
31
  },
32
32
  context: mongoose_1.default.Schema.Types.Mixed,
33
33
  inputFiles: [{
34
- fileId: {
34
+ storageFileId: {
35
35
  type: String,
36
36
  required: true,
37
37
  },
38
- aiFileId: {
38
+ aiStorageFileId: {
39
39
  type: String,
40
40
  required: true,
41
41
  },
42
42
  }],
43
43
  resultFiles: [{
44
- fileId: {
44
+ storageFileId: {
45
45
  type: String,
46
46
  required: true,
47
47
  },
48
- anthropicFileId: {
48
+ aiStorageFileId: {
49
49
  type: String,
50
50
  required: true,
51
51
  },
@@ -3,6 +3,14 @@ import mongoose from 'mongoose';
3
3
  import { MODEL_NAMES, TModelName } from './_models';
4
4
  import { TTaskStatus } from '../interfaces/task.interface';
5
5
 
6
+ export interface IAIJobResultFile {
7
+ storageFileId: string;
8
+ aiStorageFileId: string;
9
+ filename: string;
10
+ mimeType?: string;
11
+ size?: number;
12
+ }
13
+
6
14
  export interface IAIJob {
7
15
  taskId: string;
8
16
  userId: string;
@@ -17,17 +25,11 @@ export interface IAIJob {
17
25
  context: unknown;
18
26
 
19
27
  inputFiles?: Array<{
20
- fileId: string;
21
- aiFileId: string;
28
+ storageFileId: string;
29
+ aiStorageFileId: string;
22
30
  }>;
23
31
 
24
- resultFiles?: Array<{
25
- fileId: string;
26
- anthropicFileId: string;
27
- filename: string;
28
- mimeType?: string;
29
- size?: number;
30
- }>;
32
+ resultFiles?: Array<IAIJobResultFile>;
31
33
 
32
34
  userPrompt?: string;
33
35
  provider?: string,
@@ -88,22 +90,22 @@ export const AIJobSchema = new mongoose.Schema<IAIJob, TAIJobModel>(
88
90
  context: mongoose.Schema.Types.Mixed,
89
91
 
90
92
  inputFiles: [{
91
- fileId: {
93
+ storageFileId: {
92
94
  type: String,
93
95
  required: true,
94
96
  },
95
- aiFileId: {
97
+ aiStorageFileId: {
96
98
  type: String,
97
99
  required: true,
98
100
  },
99
101
  }],
100
102
 
101
103
  resultFiles: [{
102
- fileId: {
104
+ storageFileId: {
103
105
  type: String,
104
106
  required: true,
105
107
  },
106
- anthropicFileId: {
108
+ aiStorageFileId: {
107
109
  type: String,
108
110
  required: true,
109
111
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.108",
3
+ "version": "1.5.109",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {