gemcap-be-common 1.5.108 → 1.5.110

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