@cool-digital-solutions/interferir-models 1.4.4 → 1.4.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.
@@ -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 },
@@ -35,6 +35,7 @@ const useCaseSchema = new mongoose_1.Schema({
35
35
  },
36
36
  actors: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', index: true }],
37
37
  solutionProviderList: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', index: true }],
38
+ companies: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', index: true }],
38
39
  geographyList: [{ type: String, required: [true, 'geographyList element is required!'] }],
39
40
  relatedUseCaseList: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'UseCase' }],
40
41
  newsCrawlingTagList: [
@@ -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;
@@ -55,6 +55,7 @@ export interface IUseCase extends BaseSchema {
55
55
  source: Source;
56
56
  actors: Types.ObjectId[] | ICompany[];
57
57
  solutionProviderList: Types.ObjectId[] | ICompany[];
58
+ companies: Types.ObjectId[] | ICompany[];
58
59
  geographyList: string[];
59
60
  relatedUseCaseList: Types.ObjectId[] | IUseCase[];
60
61
  newsCrawlingTagList: NewsCrawlingTagList[][];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cool-digital-solutions/interferir-models",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"