@cool-digital-solutions/interferir-models 1.1.96 → 1.1.97
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.
|
@@ -7,10 +7,10 @@ const mongoose_1 = require("mongoose");
|
|
|
7
7
|
const express_http_context_1 = __importDefault(require("express-http-context"));
|
|
8
8
|
const _config_1 = require("../config");
|
|
9
9
|
const aiTaskOutlineSchema = new mongoose_1.Schema({
|
|
10
|
-
aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: '
|
|
10
|
+
aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTask', required: true },
|
|
11
11
|
title: { type: String, default: '' },
|
|
12
12
|
order: { type: Number },
|
|
13
|
-
parentId: { type: mongoose_1.Schema.Types.ObjectId, ref: '
|
|
13
|
+
parentId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTaskOutline', default: null },
|
|
14
14
|
references: [{ type: Object }],
|
|
15
15
|
feedbacks: [
|
|
16
16
|
{
|
|
@@ -7,11 +7,11 @@ const mongoose_1 = require("mongoose");
|
|
|
7
7
|
const express_http_context_1 = __importDefault(require("express-http-context"));
|
|
8
8
|
const _config_1 = require("../config");
|
|
9
9
|
const aiTaskResearchManagerOutputSchema = new mongoose_1.Schema({
|
|
10
|
-
aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: '
|
|
10
|
+
aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTask', required: true },
|
|
11
11
|
title: { type: String, default: '' },
|
|
12
12
|
content: { type: String, default: '' },
|
|
13
13
|
order: { type: Number },
|
|
14
|
-
parentId: { type: mongoose_1.Schema.Types.ObjectId, ref: '
|
|
14
|
+
parentId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTaskResearchManagerOutput', default: null },
|
|
15
15
|
references: [{ type: Object }],
|
|
16
16
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
17
17
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
@@ -78,6 +78,7 @@ const portiaArticleSchema = new mongoose_1.Schema({
|
|
|
78
78
|
portiaApiResults: [{ message: { type: String, default: '' } }],
|
|
79
79
|
similarArticleUrls: [{ type: String, required: false, default: [] }],
|
|
80
80
|
similarArticleCount: { type: Number, default: 0 },
|
|
81
|
+
aiTaskResearchManagerOutputs: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTaskResearchManagerOutput' }],
|
|
81
82
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
82
83
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
83
84
|
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 { ICompany, IImage, IIndustry, ITechnology, ISFCategory, ISFSubCategory, ISFTag, IUseCase } from './';
|
|
26
|
+
import { ICompany, IImage, IIndustry, ITechnology, ISFCategory, ISFSubCategory, ISFTag, IUseCase, IAiTaskResearchManagerOutput } from './';
|
|
27
27
|
import { BaseModel, BaseSchema } from '../config';
|
|
28
28
|
export declare enum PortiaArticleTypes {
|
|
29
29
|
NEWS = "news"
|
|
@@ -103,6 +103,7 @@ export interface IPortiaArticle extends BaseSchema {
|
|
|
103
103
|
useCases: Types.ObjectId[] | IUseCase[];
|
|
104
104
|
similarArticleUrls?: string[];
|
|
105
105
|
similarArticleCount?: number;
|
|
106
|
+
aiTaskResearchManagerOutputs?: Types.ObjectId[] | IAiTaskResearchManagerOutput[];
|
|
106
107
|
}
|
|
107
108
|
export interface IPortiaArticleModel extends BaseModel<IPortiaArticle> {
|
|
108
109
|
}
|