@cool-digital-solutions/interferir-models 1.0.15 → 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' }],
@@ -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;
@@ -187,6 +188,14 @@ export interface Pivot extends BaseSchema {
187
188
  pivotFrom: string;
188
189
  pivotTo: string;
189
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
+ }
190
199
  export interface ICompany extends BaseSchema {
191
200
  name: string;
192
201
  lcName: string;
@@ -267,6 +276,7 @@ export interface ICompany extends BaseSchema {
267
276
  investmentStageCount: Number;
268
277
  focusAreaCount: Number;
269
278
  diversitySpotlights: string[];
279
+ investmentPortfolio: InvestmentPortfolio;
270
280
  }
271
281
  export interface ICompanyModel extends BaseModel<ICompany> {
272
282
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cool-digital-solutions/interferir-models",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"