@cool-digital-solutions/interferir-models 1.0.14 → 1.0.16

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.
@@ -63,6 +63,7 @@ const companySchema = new mongoose_1.Schema({
63
63
  funding: {
64
64
  amount: { type: Number, default: 0 },
65
65
  currency: { type: String, default: '' },
66
+ amountUsd: { type: Number, default: 0 },
66
67
  },
67
68
  sfIndustries: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Industry' }],
68
69
  sfTechnologies: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Technology' }],
@@ -214,7 +215,7 @@ const companySchema = new mongoose_1.Schema({
214
215
  },
215
216
  },
216
217
  ],
217
- exits: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', required: true }],
218
+ exits: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company' }],
218
219
  leadInvestmentCount: { type: Number },
219
220
  investmentCount: { type: Number },
220
221
  portfolioCount: { type: Number },
@@ -222,6 +223,15 @@ const companySchema = new mongoose_1.Schema({
222
223
  investmentStageCount: { type: Number },
223
224
  focusAreaCount: { type: Number },
224
225
  diversitySpotlights: [{ type: String, default: '' }],
226
+ investmentPortfolio: {
227
+ foundingThesis: { type: String, default: '' },
228
+ portfolioCompanyAnalyses: [
229
+ {
230
+ company: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company' },
231
+ investmentThesis: { type: String, default: '' },
232
+ },
233
+ ],
234
+ },
225
235
  createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
226
236
  updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
227
237
  updatedDate: { type: Number },
@@ -166,6 +166,7 @@ interface Financial {
166
166
  interface FinanceFunding {
167
167
  amount: number;
168
168
  currency: string;
169
+ amountUsd: number;
169
170
  }
170
171
  interface DeploymentOption {
171
172
  isCloud: boolean;
@@ -174,11 +175,12 @@ interface DeploymentOption {
174
175
  content: string;
175
176
  }
176
177
  export declare enum PivotType {
177
- NO_PIVOT = "noPivot",
178
+ STRONG_PIVOT = "strongPivot",
178
179
  PIVOT = "pivot",
180
+ MILESTONE = "milestone",
179
181
  NULL = ""
180
182
  }
181
- interface Pivot {
183
+ export interface Pivot extends BaseSchema {
182
184
  pivotType: PivotType;
183
185
  firstDate: number;
184
186
  secondDate: number;
@@ -186,6 +188,14 @@ interface Pivot {
186
188
  pivotFrom: string;
187
189
  pivotTo: string;
188
190
  }
191
+ export interface InvestmentPortfolio {
192
+ foundingThesis: string;
193
+ portfolioCompanyAnalyses: PortfolioCompanyAnalyses[];
194
+ }
195
+ export interface PortfolioCompanyAnalyses {
196
+ company: Types.ObjectId | ICompany;
197
+ investmentThesis: string;
198
+ }
189
199
  export interface ICompany extends BaseSchema {
190
200
  name: string;
191
201
  lcName: string;
@@ -266,6 +276,7 @@ export interface ICompany extends BaseSchema {
266
276
  investmentStageCount: Number;
267
277
  focusAreaCount: Number;
268
278
  diversitySpotlights: string[];
279
+ investmentPortfolio: InvestmentPortfolio;
269
280
  }
270
281
  export interface ICompanyModel extends BaseModel<ICompany> {
271
282
  }
@@ -75,7 +75,8 @@ var InvestmentStage;
75
75
  })(InvestmentStage || (exports.InvestmentStage = InvestmentStage = {}));
76
76
  var PivotType;
77
77
  (function (PivotType) {
78
- PivotType["NO_PIVOT"] = "noPivot";
78
+ PivotType["STRONG_PIVOT"] = "strongPivot";
79
79
  PivotType["PIVOT"] = "pivot";
80
+ PivotType["MILESTONE"] = "milestone";
80
81
  PivotType["NULL"] = "";
81
82
  })(PivotType || (exports.PivotType = PivotType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cool-digital-solutions/interferir-models",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"