@cool-digital-solutions/interferir-models 1.3.3 → 1.3.5
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-use-case-analysis.schema.js +3 -0
- package/dist/types/ai-task-research-manager-output-summary-submission.type.d.ts +1 -1
- package/dist/types/ai-task-research-manager-output-summary-submission.type.js +1 -1
- package/dist/types/ai-use-case-analysis.type.d.ts +4 -1
- package/package.json +1 -1
|
@@ -8,6 +8,9 @@ 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' },
|
|
13
|
+
managerOutputModels: { type: String, enum: ['AiTaskCurationManagerOutput', 'AiTaskResearchManagerOutput'], default: null },
|
|
11
14
|
useCases: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'UseCase', required: true }],
|
|
12
15
|
// nodes: [{ type: Schema.Types.ObjectId, ref: 'AiUseCaseAnalysisNode', default: null }],
|
|
13
16
|
status: { type: String, enum: Object.values(ai_use_case_analysis_type_1.AiUseCaseAnalysisStatus) },
|
|
@@ -41,7 +41,7 @@ interface ParamOptions {
|
|
|
41
41
|
export declare enum AiTaskResearchManagerOutputSummarySubmissionStatus {
|
|
42
42
|
CREATED = "created",
|
|
43
43
|
IN_PROGRESS = "inProgress",
|
|
44
|
-
|
|
44
|
+
DONE = "done",
|
|
45
45
|
FAILED = "failed"
|
|
46
46
|
}
|
|
47
47
|
export interface IAiTaskResearchManagerOutputSummarySubmission extends BaseSchema {
|
|
@@ -5,6 +5,6 @@ var AiTaskResearchManagerOutputSummarySubmissionStatus;
|
|
|
5
5
|
(function (AiTaskResearchManagerOutputSummarySubmissionStatus) {
|
|
6
6
|
AiTaskResearchManagerOutputSummarySubmissionStatus["CREATED"] = "created";
|
|
7
7
|
AiTaskResearchManagerOutputSummarySubmissionStatus["IN_PROGRESS"] = "inProgress";
|
|
8
|
-
AiTaskResearchManagerOutputSummarySubmissionStatus["
|
|
8
|
+
AiTaskResearchManagerOutputSummarySubmissionStatus["DONE"] = "done";
|
|
9
9
|
AiTaskResearchManagerOutputSummarySubmissionStatus["FAILED"] = "failed";
|
|
10
10
|
})(AiTaskResearchManagerOutputSummarySubmissionStatus || (exports.AiTaskResearchManagerOutputSummarySubmissionStatus = AiTaskResearchManagerOutputSummarySubmissionStatus = {}));
|
|
@@ -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,9 @@ 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;
|
|
38
|
+
managerOutputModels?: 'AiTaskCurationManagerOutput' | 'AiTaskResearchManagerOutput' | null;
|
|
36
39
|
status: AiUseCaseAnalysisStatus;
|
|
37
40
|
links: {
|
|
38
41
|
source: Types.ObjectId | IAiUseCaseAnalysisNode;
|