@cool-digital-solutions/interferir-models 1.3.4 → 1.3.6
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.
|
@@ -8,6 +8,8 @@ const express_http_context_1 = __importDefault(require("express-http-context"));
|
|
|
8
8
|
const _config_1 = require("../config");
|
|
9
9
|
const ai_use_case_analysis_type_1 = require("../types/ai-use-case-analysis.type");
|
|
10
10
|
const aiUseCaseAnalysisSchema = new mongoose_1.Schema({
|
|
11
|
+
aiTask: { type: mongoose_1.Schema.Types.ObjectId, default: null, ref: 'AiTask' },
|
|
12
|
+
managerOutput: { type: mongoose_1.Schema.Types.ObjectId, default: null, refPath: 'managerOutputModels' },
|
|
11
13
|
useCases: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'UseCase', required: true }],
|
|
12
14
|
// nodes: [{ type: Schema.Types.ObjectId, ref: 'AiUseCaseAnalysisNode', default: null }],
|
|
13
15
|
status: { type: String, enum: Object.values(ai_use_case_analysis_type_1.AiUseCaseAnalysisStatus) },
|
|
@@ -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 { IAiTaskResearchManagerOutput, IAiUseCaseAnalysisNode, IUseCase } from './';
|
|
26
|
+
import { IAiTask, IAiTaskCurationManagerOutput, IAiTaskResearchManagerOutput, IAiUseCaseAnalysisNode, IUseCase } from './';
|
|
27
27
|
import { BaseModel, BaseSchema } from '../config';
|
|
28
28
|
export declare enum AiUseCaseAnalysisStatus {
|
|
29
29
|
CREATED = "created",
|
|
@@ -33,6 +33,8 @@ export declare enum AiUseCaseAnalysisStatus {
|
|
|
33
33
|
}
|
|
34
34
|
export interface IAiUseCaseAnalysis extends BaseSchema {
|
|
35
35
|
useCases: Types.ObjectId[] | IUseCase[];
|
|
36
|
+
aiTask: Types.ObjectId[] | IAiTask;
|
|
37
|
+
managerOutput: Types.ObjectId | IAiTaskResearchManagerOutput | IAiTaskCurationManagerOutput;
|
|
36
38
|
status: AiUseCaseAnalysisStatus;
|
|
37
39
|
links: {
|
|
38
40
|
source: Types.ObjectId | IAiUseCaseAnalysisNode;
|