@cool-digital-solutions/interferir-models 1.1.96 → 1.1.98
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-outline.schema.js +2 -2
- package/dist/schemas/ai-task-research-manager-output.schema.js +2 -2
- package/dist/schemas/portia-article.schema.js +1 -0
- package/dist/schemas/use-case.schema.js +1 -0
- package/dist/types/portia-article.type.d.ts +2 -1
- package/dist/types/use-case.type.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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 },
|
|
@@ -70,6 +70,7 @@ const useCaseSchema = new mongoose_1.Schema({
|
|
|
70
70
|
},
|
|
71
71
|
publishDate: { type: Number, default: 0 },
|
|
72
72
|
isSyncCompanyTags: { type: Boolean, default: false }, // TODO: erk bu sonra silinecek. eklenmesinin amacı, companyler çok fazla olduğu için tagların sync olanları ve olmayanlarını ayırabilmek.
|
|
73
|
+
aiTaskResearchManagerOutputs: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTaskResearchManagerOutput' }],
|
|
73
74
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
74
75
|
createdDate: Number,
|
|
75
76
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
@@ -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
|
}
|
|
@@ -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 { ITheme, ISFTag, ISFSubCategory, ISFCategory, ITechnology, IProblem, IIndustry, ICompany, IUser, ISparkUseCase } from './';
|
|
26
|
+
import { ITheme, ISFTag, ISFSubCategory, ISFCategory, ITechnology, IProblem, IIndustry, ICompany, IUser, ISparkUseCase, IAiTaskResearchManagerOutput } from './';
|
|
27
27
|
import { BaseModel, BaseSchema, ContentDraftStatus, ContentStatus } from '../config';
|
|
28
28
|
interface Source {
|
|
29
29
|
url: string;
|
|
@@ -75,6 +75,7 @@ export interface IUseCase extends BaseSchema {
|
|
|
75
75
|
}[];
|
|
76
76
|
publishDate?: number;
|
|
77
77
|
isSyncCompanyTags: boolean;
|
|
78
|
+
aiTaskResearchManagerOutputs?: Types.ObjectId[] | IAiTaskResearchManagerOutput[];
|
|
78
79
|
}
|
|
79
80
|
export interface IUseCaseModel extends BaseModel<IUseCase> {
|
|
80
81
|
}
|