@cool-digital-solutions/interferir-models 1.1.55 → 1.1.57
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/dist/schemas/ai-task.schema.js +1 -0
- package/dist/schemas/instant-research.schema.js +1 -0
- package/dist/schemas/theme.schema.js +1 -0
- package/dist/types/ai-task.type.d.ts +2 -1
- package/dist/types/instant-research.type.d.ts +1 -0
- package/dist/types/theme.type.d.ts +1 -0
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ const express_http_context_1 = __importDefault(require("express-http-context"));
|
|
|
8
8
|
const _config_1 = require("../config");
|
|
9
9
|
const ai_task_type_1 = require("../types/ai-task.type");
|
|
10
10
|
const aiTaskSchema = new mongoose_1.Schema({
|
|
11
|
+
user: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
11
12
|
type: { type: String, default: '' },
|
|
12
13
|
status: { type: String, enum: Object.values(ai_task_type_1.AITaskStatus) },
|
|
13
14
|
aiTaskSubmission: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTaskSubmission', default: null },
|
|
@@ -154,6 +154,7 @@ const instantResearchSchema = new mongoose_1.Schema({
|
|
|
154
154
|
sfTags: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFTag' }],
|
|
155
155
|
isBriefCompleted: { type: Boolean, default: false },
|
|
156
156
|
privForUsers: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
157
|
+
isDuplicate: { type: Boolean, required: true, default: false },
|
|
157
158
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
158
159
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
159
160
|
updatedDate: { type: Number, index: -1 },
|
|
@@ -81,6 +81,7 @@ const themeSchema = new mongoose_1.Schema({
|
|
|
81
81
|
publishDate: { type: Number, default: 0 },
|
|
82
82
|
tableOfContents: [{ type: String, default: [] }],
|
|
83
83
|
editorType: { type: String, enum: ['froala', 'ck-editor'], default: 'froala' },
|
|
84
|
+
isDuplicate: { type: Boolean, required: true, default: false },
|
|
84
85
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
85
86
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
86
87
|
updatedDate: { type: Number, index: -1 },
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import { Types } from 'mongoose';
|
|
26
|
-
import { IAiConversation, IAiTaskSubmission } from './';
|
|
26
|
+
import { IAiConversation, IAiTaskSubmission, IUser } from './';
|
|
27
27
|
import { BaseModel, BaseSchema } from '../config';
|
|
28
28
|
export declare enum AITaskStatus {
|
|
29
29
|
CREATED = "created",
|
|
@@ -44,6 +44,7 @@ export interface IAiTask extends BaseSchema {
|
|
|
44
44
|
aiConversation: Types.ObjectId | IAiConversation;
|
|
45
45
|
output: [];
|
|
46
46
|
isPinned: boolean;
|
|
47
|
+
user: Types.ObjectId | IUser;
|
|
47
48
|
}
|
|
48
49
|
export interface IAiTaskModel extends BaseModel<IAiTask> {
|
|
49
50
|
}
|
|
@@ -185,6 +185,7 @@ export interface IInstantResearch extends BaseSchema {
|
|
|
185
185
|
foamTrees: FoamTree[];
|
|
186
186
|
isBriefCompleted: boolean;
|
|
187
187
|
privForUsers?: Types.ObjectId[];
|
|
188
|
+
isDuplicate?: boolean;
|
|
188
189
|
}
|
|
189
190
|
export interface IInstantResearchModel extends BaseModel<IInstantResearch> {
|
|
190
191
|
}
|