@cool-digital-solutions/interferir-models 1.0.29 → 1.0.31

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.
@@ -232,6 +232,7 @@ const companySchema = new mongoose_1.Schema({
232
232
  },
233
233
  ],
234
234
  },
235
+ mergedCompanySlugs: [{ type: String, default: '' }],
235
236
  createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
236
237
  updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
237
238
  updatedDate: { type: Number },
@@ -18,6 +18,7 @@ const likeSchema = new mongoose_1.Schema({
18
18
  evidence: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Evidence', default: null },
19
19
  usecase: { type: mongoose_1.Schema.Types.ObjectId, ref: 'UseCase', default: null },
20
20
  problem: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Problem', default: null },
21
+ company: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null },
21
22
  type: { type: String, enum: Object.values(like_type_1.LikeContentType) },
22
23
  createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
23
24
  updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
@@ -231,7 +231,7 @@ export interface ICompany extends BaseSchema {
231
231
  themeCount: ContentStatusCount | number;
232
232
  newsCount: number;
233
233
  profileDetailUrls: string[];
234
- acquiredBy: ICompany;
234
+ acquiredBy: Types.ObjectId | ICompany;
235
235
  about: string;
236
236
  operatingStatus: OperatingStatus;
237
237
  headquartersLocation: HeadquartersLocation;
@@ -277,6 +277,7 @@ export interface ICompany extends BaseSchema {
277
277
  focusAreaCount: Number;
278
278
  diversitySpotlights: string[];
279
279
  investmentPortfolio: InvestmentPortfolio;
280
+ mergedCompanySlugs: string[];
280
281
  }
281
282
  export interface ICompanyModel extends BaseModel<ICompany> {
282
283
  }
@@ -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 { IUser, ITheme, IEvidence, IUseCase, IProblem, INews } from './';
26
+ import { IUser, ITheme, IEvidence, IUseCase, IProblem, INews, ICompany } from './';
27
27
  import { BaseModel, BaseSchema } from '../config';
28
28
  export declare enum LikeContentType {
29
29
  LIKE = "like",
@@ -34,7 +34,8 @@ export declare enum LikeModelType {
34
34
  THEME = "theme",
35
35
  USECASE = "usecase",
36
36
  EVIDENCE = "evidence",
37
- PROBLEM = "problem"
37
+ PROBLEM = "problem",
38
+ COMPANY = "company"
38
39
  }
39
40
  export interface ILike extends BaseSchema {
40
41
  user: Types.ObjectId | IUser;
@@ -43,6 +44,7 @@ export interface ILike extends BaseSchema {
43
44
  evidence: Types.ObjectId | IEvidence;
44
45
  usecase: Types.ObjectId | IUseCase;
45
46
  problem: Types.ObjectId | IProblem;
47
+ company: Types.ObjectId | ICompany;
46
48
  type: LikeContentType;
47
49
  }
48
50
  export interface ILikeModel extends BaseModel<ILike> {
@@ -13,4 +13,5 @@ var LikeModelType;
13
13
  LikeModelType["USECASE"] = "usecase";
14
14
  LikeModelType["EVIDENCE"] = "evidence";
15
15
  LikeModelType["PROBLEM"] = "problem";
16
+ LikeModelType["COMPANY"] = "company";
16
17
  })(LikeModelType || (exports.LikeModelType = LikeModelType = {}));
@@ -29,7 +29,7 @@ interface Source {
29
29
  url: string;
30
30
  freeText: string;
31
31
  evidence: Types.ObjectId[] | IEvidence[];
32
- startup: Types.ObjectId[] | ICompany[];
32
+ startup: Types.ObjectId | ICompany;
33
33
  }
34
34
  interface NewsCrawlingTagList {
35
35
  tag: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cool-digital-solutions/interferir-models",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"