@cool-digital-solutions/interferir-models 1.4.4 → 1.4.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.
|
@@ -90,6 +90,9 @@ const portiaArticleSchema = new mongoose_1.Schema({
|
|
|
90
90
|
name: { type: String, default: null },
|
|
91
91
|
aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTask', default: null },
|
|
92
92
|
},
|
|
93
|
+
teams: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Team', default: null }],
|
|
94
|
+
users: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null }],
|
|
95
|
+
companies: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null }],
|
|
93
96
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null, index: true },
|
|
94
97
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null, index: true },
|
|
95
98
|
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, IAiTask } from './';
|
|
26
|
+
import { ICompany, IImage, IIndustry, ITechnology, ISFCategory, ISFSubCategory, ISFTag, IUseCase, IAiTaskResearchManagerOutput, ISpark, IAiTask, IUser, ITeam } from './';
|
|
27
27
|
import { BaseModel, BaseSchema } from '../config';
|
|
28
28
|
export declare enum PortiaArticleTypes {
|
|
29
29
|
NEWS = "news",
|
|
@@ -101,6 +101,9 @@ export interface IPortiaArticle extends BaseSchema {
|
|
|
101
101
|
portiaApiResults: {
|
|
102
102
|
message: string;
|
|
103
103
|
}[];
|
|
104
|
+
teams: Types.ObjectId[] | ITeam[];
|
|
105
|
+
users: Types.ObjectId[] | IUser[];
|
|
106
|
+
companies: Types.ObjectId[] | ICompany[];
|
|
104
107
|
useCases: Types.ObjectId[] | IUseCase[];
|
|
105
108
|
similarArticleUrls?: string[];
|
|
106
109
|
similarArticleCount?: number;
|