gemcap-be-common 1.5.112 → 1.5.113
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 +24 -0
- package/models/AiJob.model.ts +28 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/models/AiJob.model.d.ts
CHANGED
|
@@ -34,6 +34,16 @@ export interface IAIJobInputFile {
|
|
|
34
34
|
storageFileId: string;
|
|
35
35
|
aiStorageFileId: string;
|
|
36
36
|
}
|
|
37
|
+
export interface IAIJobInputFileLean extends IAIJobInputFile {
|
|
38
|
+
_id: mongoose.Types.ObjectId;
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
updatedAt: Date;
|
|
41
|
+
}
|
|
42
|
+
export interface IAIJobInputFilePlain extends IAIJobInputFile {
|
|
43
|
+
_id: string;
|
|
44
|
+
createdAt: Date;
|
|
45
|
+
updatedAt: Date;
|
|
46
|
+
}
|
|
37
47
|
export interface IAIJobResultFile {
|
|
38
48
|
storageFileId: string;
|
|
39
49
|
aiStorageFileId: string;
|
|
@@ -41,6 +51,16 @@ export interface IAIJobResultFile {
|
|
|
41
51
|
mimeType?: string;
|
|
42
52
|
size?: number;
|
|
43
53
|
}
|
|
54
|
+
export interface IAIJobResultFileLean extends IAIJobResultFile {
|
|
55
|
+
_id: mongoose.Types.ObjectId;
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
updatedAt: Date;
|
|
58
|
+
}
|
|
59
|
+
export interface IAIJobResultFilePlain extends IAIJobResultFile {
|
|
60
|
+
_id: string;
|
|
61
|
+
createdAt: Date;
|
|
62
|
+
updatedAt: Date;
|
|
63
|
+
}
|
|
44
64
|
export interface IAIJobTarget {
|
|
45
65
|
type: TModelName;
|
|
46
66
|
id: string;
|
|
@@ -68,11 +88,15 @@ export interface IAIJobLean extends IAIJob {
|
|
|
68
88
|
_id: mongoose.Types.ObjectId;
|
|
69
89
|
createdAt: Date;
|
|
70
90
|
updatedAt: Date;
|
|
91
|
+
inputFiles: Array<IAIJobInputFileLean>;
|
|
92
|
+
resultFiles: Array<IAIJobResultFileLean>;
|
|
71
93
|
}
|
|
72
94
|
export interface IAIJobPlain extends IAIJob {
|
|
73
95
|
_id: string;
|
|
74
96
|
createdAt: Date;
|
|
75
97
|
updatedAt: Date;
|
|
98
|
+
inputFiles: Array<IAIJobInputFilePlain>;
|
|
99
|
+
resultFiles: Array<IAIJobResultFilePlain>;
|
|
76
100
|
}
|
|
77
101
|
export type TAIJobModel = mongoose.Model<IAIJob>;
|
|
78
102
|
export declare const AIJobSchema: mongoose.Schema<IAIJob, TAIJobModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAIJob, mongoose.Document<unknown, {}, mongoose.FlatRecord<IAIJob>> & mongoose.FlatRecord<IAIJob> & {
|
package/models/AiJob.model.ts
CHANGED
|
@@ -8,6 +8,18 @@ export interface IAIJobInputFile {
|
|
|
8
8
|
aiStorageFileId: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
export interface IAIJobInputFileLean extends IAIJobInputFile {
|
|
12
|
+
_id: mongoose.Types.ObjectId;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface IAIJobInputFilePlain extends IAIJobInputFile {
|
|
18
|
+
_id: string;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
}
|
|
22
|
+
|
|
11
23
|
export interface IAIJobResultFile {
|
|
12
24
|
storageFileId: string;
|
|
13
25
|
aiStorageFileId: string;
|
|
@@ -16,6 +28,18 @@ export interface IAIJobResultFile {
|
|
|
16
28
|
size?: number;
|
|
17
29
|
}
|
|
18
30
|
|
|
31
|
+
export interface IAIJobResultFileLean extends IAIJobResultFile {
|
|
32
|
+
_id: mongoose.Types.ObjectId;
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
updatedAt: Date;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface IAIJobResultFilePlain extends IAIJobResultFile {
|
|
38
|
+
_id: string;
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
updatedAt: Date;
|
|
41
|
+
}
|
|
42
|
+
|
|
19
43
|
export interface IAIJobTarget {
|
|
20
44
|
type: TModelName;
|
|
21
45
|
id: string;
|
|
@@ -55,12 +79,16 @@ export interface IAIJobLean extends IAIJob {
|
|
|
55
79
|
_id: mongoose.Types.ObjectId;
|
|
56
80
|
createdAt: Date;
|
|
57
81
|
updatedAt: Date;
|
|
82
|
+
inputFiles: Array<IAIJobInputFileLean>;
|
|
83
|
+
resultFiles: Array<IAIJobResultFileLean>;
|
|
58
84
|
}
|
|
59
85
|
|
|
60
86
|
export interface IAIJobPlain extends IAIJob {
|
|
61
87
|
_id: string;
|
|
62
88
|
createdAt: Date;
|
|
63
89
|
updatedAt: Date;
|
|
90
|
+
inputFiles: Array<IAIJobInputFilePlain>;
|
|
91
|
+
resultFiles: Array<IAIJobResultFilePlain>;
|
|
64
92
|
}
|
|
65
93
|
|
|
66
94
|
export type TAIJobModel = mongoose.Model<IAIJob>;
|