@cool-digital-solutions/interferir-models 1.2.42 → 1.2.44
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.
|
@@ -18,6 +18,7 @@ const aiTaskShareSchema = new mongoose_1.Schema({
|
|
|
18
18
|
isDeletedFromSharedUser: { type: Boolean, default: false },
|
|
19
19
|
isPinned: { type: Boolean, default: false },
|
|
20
20
|
deletedUserRequestCount: { type: Number, default: 0 },
|
|
21
|
+
sharedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', required: true },
|
|
21
22
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
22
23
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
23
24
|
updatedDate: Number,
|
|
@@ -79,6 +79,12 @@ const portiaArticleSchema = new mongoose_1.Schema({
|
|
|
79
79
|
similarArticleUrls: [{ type: String, required: false, default: [] }],
|
|
80
80
|
similarArticleCount: { type: Number, default: 0 },
|
|
81
81
|
aiTaskResearchManagerOutputs: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTaskResearchManagerOutput' }],
|
|
82
|
+
aiTasks: [
|
|
83
|
+
{
|
|
84
|
+
aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTask' },
|
|
85
|
+
score: { type: Number, default: 0 },
|
|
86
|
+
},
|
|
87
|
+
],
|
|
82
88
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
83
89
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
84
90
|
updatedDate: { type: Number, index: -1 },
|
|
@@ -37,6 +37,7 @@ export interface IAiTaskShare extends BaseSchema {
|
|
|
37
37
|
isDeletedFromSharedUser: boolean;
|
|
38
38
|
deletedUserRequestCount: number;
|
|
39
39
|
isPinned: boolean;
|
|
40
|
+
sharedBy: Types.ObjectId | IUser;
|
|
40
41
|
}
|
|
41
42
|
export interface IAiTaskShareModel extends BaseModel<IAiTaskShare> {
|
|
42
43
|
}
|
|
@@ -105,6 +105,10 @@ export interface IPortiaArticle extends BaseSchema {
|
|
|
105
105
|
similarArticleUrls?: string[];
|
|
106
106
|
similarArticleCount?: number;
|
|
107
107
|
aiTaskResearchManagerOutputs?: Types.ObjectId[] | IAiTaskResearchManagerOutput[];
|
|
108
|
+
aiTasks: {
|
|
109
|
+
aiTask: Types.ObjectId;
|
|
110
|
+
score: number;
|
|
111
|
+
}[];
|
|
108
112
|
}
|
|
109
113
|
export interface IPortiaArticleModel extends BaseModel<IPortiaArticle> {
|
|
110
114
|
}
|