@cool-digital-solutions/interferir-models 1.3.73 → 1.3.74
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.
|
@@ -86,6 +86,10 @@ const portiaArticleSchema = new mongoose_1.Schema({
|
|
|
86
86
|
},
|
|
87
87
|
],
|
|
88
88
|
spark: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Spark', default: null },
|
|
89
|
+
requester: {
|
|
90
|
+
name: { type: String, default: '' },
|
|
91
|
+
aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTask', default: null },
|
|
92
|
+
},
|
|
89
93
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null, index: true },
|
|
90
94
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null, index: true },
|
|
91
95
|
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, IAiTaskResearchManagerOutput, ISpark } from './';
|
|
26
|
+
import { ICompany, IImage, IIndustry, ITechnology, ISFCategory, ISFSubCategory, ISFTag, IUseCase, IAiTaskResearchManagerOutput, ISpark, IAiTask } from './';
|
|
27
27
|
import { BaseModel, BaseSchema } from '../config';
|
|
28
28
|
export declare enum PortiaArticleTypes {
|
|
29
29
|
NEWS = "news",
|
|
@@ -58,6 +58,10 @@ export interface IPortiaAnalysis {
|
|
|
58
58
|
investors?: [String];
|
|
59
59
|
hasUseCase?: boolean;
|
|
60
60
|
}
|
|
61
|
+
export interface IRequester {
|
|
62
|
+
name: string;
|
|
63
|
+
aiTask: Types.ObjectId | IAiTask;
|
|
64
|
+
}
|
|
61
65
|
export declare enum PortiaArticleStatus {
|
|
62
66
|
DRAFT = "draft",
|
|
63
67
|
PUBLISH = "publish",
|
|
@@ -106,6 +110,7 @@ export interface IPortiaArticle extends BaseSchema {
|
|
|
106
110
|
score: number;
|
|
107
111
|
}[];
|
|
108
112
|
spark: Types.ObjectId | ISpark;
|
|
113
|
+
requester: IRequester;
|
|
109
114
|
}
|
|
110
115
|
export interface IPortiaArticleModel extends BaseModel<IPortiaArticle> {
|
|
111
116
|
}
|