gemcap-be-common 1.5.113 → 1.5.114

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.
@@ -33,16 +33,13 @@ import { TTaskStatus } from '../interfaces/task.interface';
33
33
  export interface IAIJobInputFile {
34
34
  storageFileId: string;
35
35
  aiStorageFileId: string;
36
+ createdAt: Date;
36
37
  }
37
38
  export interface IAIJobInputFileLean extends IAIJobInputFile {
38
39
  _id: mongoose.Types.ObjectId;
39
- createdAt: Date;
40
- updatedAt: Date;
41
40
  }
42
41
  export interface IAIJobInputFilePlain extends IAIJobInputFile {
43
42
  _id: string;
44
- createdAt: Date;
45
- updatedAt: Date;
46
43
  }
47
44
  export interface IAIJobResultFile {
48
45
  storageFileId: string;
@@ -50,16 +47,13 @@ export interface IAIJobResultFile {
50
47
  filename: string;
51
48
  mimeType?: string;
52
49
  size?: number;
50
+ createdAt: Date;
53
51
  }
54
52
  export interface IAIJobResultFileLean extends IAIJobResultFile {
55
53
  _id: mongoose.Types.ObjectId;
56
- createdAt: Date;
57
- updatedAt: Date;
58
54
  }
59
55
  export interface IAIJobResultFilePlain extends IAIJobResultFile {
60
56
  _id: string;
61
- createdAt: Date;
62
- updatedAt: Date;
63
57
  }
64
58
  export interface IAIJobTarget {
65
59
  type: TModelName;
@@ -39,6 +39,10 @@ exports.AIJobSchema = new mongoose_1.default.Schema({
39
39
  type: String,
40
40
  required: true,
41
41
  },
42
+ createdAt: {
43
+ type: Date,
44
+ required: true,
45
+ },
42
46
  }],
43
47
  resultFiles: [{
44
48
  storageFileId: {
@@ -61,6 +65,10 @@ exports.AIJobSchema = new mongoose_1.default.Schema({
61
65
  type: Number,
62
66
  required: true,
63
67
  },
68
+ createdAt: {
69
+ type: Date,
70
+ required: true,
71
+ },
64
72
  }],
65
73
  userPrompt: {
66
74
  type: String,
@@ -6,18 +6,15 @@ import { TTaskStatus } from '../interfaces/task.interface';
6
6
  export interface IAIJobInputFile {
7
7
  storageFileId: string;
8
8
  aiStorageFileId: string;
9
+ createdAt: Date;
9
10
  }
10
11
 
11
12
  export interface IAIJobInputFileLean extends IAIJobInputFile {
12
13
  _id: mongoose.Types.ObjectId;
13
- createdAt: Date;
14
- updatedAt: Date;
15
14
  }
16
15
 
17
16
  export interface IAIJobInputFilePlain extends IAIJobInputFile {
18
17
  _id: string;
19
- createdAt: Date;
20
- updatedAt: Date;
21
18
  }
22
19
 
23
20
  export interface IAIJobResultFile {
@@ -26,18 +23,15 @@ export interface IAIJobResultFile {
26
23
  filename: string;
27
24
  mimeType?: string;
28
25
  size?: number;
26
+ createdAt: Date;
29
27
  }
30
28
 
31
29
  export interface IAIJobResultFileLean extends IAIJobResultFile {
32
30
  _id: mongoose.Types.ObjectId;
33
- createdAt: Date;
34
- updatedAt: Date;
35
31
  }
36
32
 
37
33
  export interface IAIJobResultFilePlain extends IAIJobResultFile {
38
34
  _id: string;
39
- createdAt: Date;
40
- updatedAt: Date;
41
35
  }
42
36
 
43
37
  export interface IAIJobTarget {
@@ -130,6 +124,10 @@ export const AIJobSchema = new mongoose.Schema<IAIJob, TAIJobModel>(
130
124
  type: String,
131
125
  required: true,
132
126
  },
127
+ createdAt: {
128
+ type: Date,
129
+ required: true,
130
+ },
133
131
  }],
134
132
 
135
133
  resultFiles: [{
@@ -153,6 +151,10 @@ export const AIJobSchema = new mongoose.Schema<IAIJob, TAIJobModel>(
153
151
  type: Number,
154
152
  required: true,
155
153
  },
154
+ createdAt: {
155
+ type: Date,
156
+ required: true,
157
+ },
156
158
  }],
157
159
 
158
160
  userPrompt: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.113",
3
+ "version": "1.5.114",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {