@cool-digital-solutions/interferir-models 1.0.8 → 1.0.10
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.
|
@@ -215,6 +215,12 @@ const companySchema = new mongoose_1.Schema({
|
|
|
215
215
|
},
|
|
216
216
|
],
|
|
217
217
|
exits: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', required: true }],
|
|
218
|
+
leadInvestmentCount: { type: Number },
|
|
219
|
+
investmentCount: { type: Number },
|
|
220
|
+
portfolioCount: { type: Number },
|
|
221
|
+
exitCount: { type: Number },
|
|
222
|
+
investmentStageCount: { type: Number },
|
|
223
|
+
focusAreaCount: { type: Number },
|
|
218
224
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
219
225
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
220
226
|
updatedDate: { type: Number },
|
|
@@ -34,9 +34,8 @@ const portiaArticleSchema = new mongoose_1.Schema({
|
|
|
34
34
|
type: {
|
|
35
35
|
category: {
|
|
36
36
|
type: String,
|
|
37
|
-
enum: Object.values(portia_article_type_1.PortiaArticleCategories),
|
|
38
|
-
required: [true, 'articleCategory is required.'],
|
|
39
37
|
},
|
|
38
|
+
categories: [{ type: String, default: '' }],
|
|
40
39
|
summary: {
|
|
41
40
|
type: String,
|
|
42
41
|
default: '',
|
|
@@ -259,6 +259,12 @@ export interface ICompany extends BaseSchema {
|
|
|
259
259
|
portfolios: Portfolio[];
|
|
260
260
|
pivots: Pivot[];
|
|
261
261
|
exits: Types.ObjectId[] | ICompany[];
|
|
262
|
+
investmentCount: Number;
|
|
263
|
+
portfolioCount: Number;
|
|
264
|
+
leadInvestmentCount: Number;
|
|
265
|
+
exitCount: Number;
|
|
266
|
+
investmentStageCount: Number;
|
|
267
|
+
focusAreaCount: Number;
|
|
262
268
|
}
|
|
263
269
|
export interface ICompanyModel extends BaseModel<ICompany> {
|
|
264
270
|
}
|
|
@@ -48,7 +48,8 @@ export interface IPortiaCompany {
|
|
|
48
48
|
}
|
|
49
49
|
export interface IPortiaAnalysis {
|
|
50
50
|
id?: Types.ObjectId;
|
|
51
|
-
category:
|
|
51
|
+
category: string;
|
|
52
|
+
categories: string[];
|
|
52
53
|
summary: String;
|
|
53
54
|
companies: IPortiaCompany[];
|
|
54
55
|
companyReferences: Types.ObjectId[] | ICompany[];
|