@cool-digital-solutions/interferir-models 1.0.5 → 1.0.7
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.
|
@@ -53,6 +53,7 @@ const companySchema = new mongoose_1.Schema({
|
|
|
53
53
|
finance: [
|
|
54
54
|
{
|
|
55
55
|
investors: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null }],
|
|
56
|
+
leadInvestors: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null }],
|
|
56
57
|
investmentAmount: { type: Number, default: 0 },
|
|
57
58
|
currency: { type: String, default: '' },
|
|
58
59
|
round: { type: String, default: '' },
|
|
@@ -94,6 +95,7 @@ const companySchema = new mongoose_1.Schema({
|
|
|
94
95
|
operatingStatus: { type: String, enum: Object.values(company_type_1.OperatingStatus) },
|
|
95
96
|
headquartersLocation: {
|
|
96
97
|
city: { type: String, default: '' },
|
|
98
|
+
state: { type: String, default: '' },
|
|
97
99
|
country: { type: String, default: '' },
|
|
98
100
|
},
|
|
99
101
|
foundedDate: { type: Number, default: null },
|
|
@@ -178,6 +180,41 @@ const companySchema = new mongoose_1.Schema({
|
|
|
178
180
|
isHasMissingUseCase: { type: Boolean, default: true },
|
|
179
181
|
latestBigRelease: { type: String, default: '' },
|
|
180
182
|
publishDate: { type: Number, default: 0 },
|
|
183
|
+
funds: [
|
|
184
|
+
{
|
|
185
|
+
fundAmount: { type: Number, default: 0 },
|
|
186
|
+
fundAmountUsd: { type: Number, default: 0 },
|
|
187
|
+
currency: { type: String, default: '' },
|
|
188
|
+
fundName: { type: String, default: '' },
|
|
189
|
+
fundDate: { type: Number, default: null },
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
portfolios: [
|
|
193
|
+
{
|
|
194
|
+
company: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null },
|
|
195
|
+
isLeadInvestor: { type: Boolean, default: null },
|
|
196
|
+
investmentAmount: { type: Number, default: 0 },
|
|
197
|
+
investmentAmountUsd: { type: Number, default: 0 },
|
|
198
|
+
currency: { type: String, default: '' },
|
|
199
|
+
round: { type: String, default: '' },
|
|
200
|
+
investmentDate: { type: Number, default: null },
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
pivots: [
|
|
204
|
+
{
|
|
205
|
+
firstDate: { type: Number, default: 0 },
|
|
206
|
+
secondDate: { type: Number, default: 0 },
|
|
207
|
+
description: { type: String, default: '' },
|
|
208
|
+
pivotFrom: { type: String, default: '' },
|
|
209
|
+
pivotTo: { type: String, default: '' },
|
|
210
|
+
pivotType: {
|
|
211
|
+
type: String,
|
|
212
|
+
enum: Object.values(company_type_1.PivotType),
|
|
213
|
+
default: company_type_1.PivotType.NULL,
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
exits: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', required: true }],
|
|
181
218
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
182
219
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
183
220
|
updatedDate: { type: Number },
|
|
@@ -11,6 +11,7 @@ const themeSchema = new mongoose_1.Schema({
|
|
|
11
11
|
slug: { type: String, required: [true, 'slug is required!'], unique: true },
|
|
12
12
|
description: { type: String, default: '' },
|
|
13
13
|
descriptionHTML: { type: String, default: '' },
|
|
14
|
+
contents: [{ title: { type: String }, description: { type: String } }],
|
|
14
15
|
image: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Image', default: null },
|
|
15
16
|
source: [{ type: String }],
|
|
16
17
|
tagList: [{ type: String }],
|
|
@@ -31,11 +31,28 @@ export interface IndexField {
|
|
|
31
31
|
}
|
|
32
32
|
interface finance {
|
|
33
33
|
investors: Types.ObjectId[] | ICompany[];
|
|
34
|
+
leadInvestors: Types.ObjectId[] | ICompany[];
|
|
34
35
|
investmentAmount: number;
|
|
35
36
|
currency: string;
|
|
36
37
|
round: string;
|
|
37
38
|
investmentDate: number;
|
|
38
39
|
}
|
|
40
|
+
interface Fund {
|
|
41
|
+
fundAmount: number;
|
|
42
|
+
fundAmountUsd: number;
|
|
43
|
+
currency: string;
|
|
44
|
+
fundName: string;
|
|
45
|
+
fundDate: number;
|
|
46
|
+
}
|
|
47
|
+
interface Portfolio {
|
|
48
|
+
company: Types.ObjectId | ICompany;
|
|
49
|
+
isLeadInvestor: boolean;
|
|
50
|
+
investmentAmount: number;
|
|
51
|
+
investmentAmountUsd: number;
|
|
52
|
+
currency: string;
|
|
53
|
+
round: string;
|
|
54
|
+
investmentDate: number;
|
|
55
|
+
}
|
|
39
56
|
interface VoiceOfVC {
|
|
40
57
|
name: string;
|
|
41
58
|
surname: string;
|
|
@@ -116,6 +133,7 @@ export declare enum InvestmentStage {
|
|
|
116
133
|
}
|
|
117
134
|
export interface HeadquartersLocation {
|
|
118
135
|
city: string;
|
|
136
|
+
state: string;
|
|
119
137
|
country: string;
|
|
120
138
|
}
|
|
121
139
|
export interface GlobalPresence {
|
|
@@ -155,6 +173,19 @@ interface DeploymentOption {
|
|
|
155
173
|
isHybrid: boolean;
|
|
156
174
|
content: string;
|
|
157
175
|
}
|
|
176
|
+
export declare enum PivotType {
|
|
177
|
+
NO_PIVOT = "noPivot",
|
|
178
|
+
PIVOT = "pivot",
|
|
179
|
+
NULL = ""
|
|
180
|
+
}
|
|
181
|
+
interface Pivot {
|
|
182
|
+
pivotType: PivotType;
|
|
183
|
+
firstDate: number;
|
|
184
|
+
secondDate: number;
|
|
185
|
+
description: string;
|
|
186
|
+
pivotFrom: string;
|
|
187
|
+
pivotTo: string;
|
|
188
|
+
}
|
|
158
189
|
export interface ICompany extends BaseSchema {
|
|
159
190
|
name: string;
|
|
160
191
|
lcName: string;
|
|
@@ -224,6 +255,10 @@ export interface ICompany extends BaseSchema {
|
|
|
224
255
|
stage: string;
|
|
225
256
|
latestBigRelease: string;
|
|
226
257
|
publishDate?: number;
|
|
258
|
+
funds: Fund[];
|
|
259
|
+
portfolios: Portfolio[];
|
|
260
|
+
pivots: Pivot[];
|
|
261
|
+
exits: Types.ObjectId[] | ICompany[];
|
|
227
262
|
}
|
|
228
263
|
export interface ICompanyModel extends BaseModel<ICompany> {
|
|
229
264
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvestmentStage = exports.InvestorType = exports.IPOStatus = exports.OperatingStatus = exports.NumberOfEmployees = exports.CompanyTypes = void 0;
|
|
3
|
+
exports.PivotType = exports.InvestmentStage = exports.InvestorType = exports.IPOStatus = exports.OperatingStatus = exports.NumberOfEmployees = exports.CompanyTypes = void 0;
|
|
4
4
|
var CompanyTypes;
|
|
5
5
|
(function (CompanyTypes) {
|
|
6
6
|
CompanyTypes["STARTUP"] = "startup";
|
|
@@ -73,3 +73,9 @@ var InvestmentStage;
|
|
|
73
73
|
InvestmentStage["CROWDFUNDING"] = "crowdfunding";
|
|
74
74
|
InvestmentStage["DEFAULT"] = "";
|
|
75
75
|
})(InvestmentStage || (exports.InvestmentStage = InvestmentStage = {}));
|
|
76
|
+
var PivotType;
|
|
77
|
+
(function (PivotType) {
|
|
78
|
+
PivotType["NO_PIVOT"] = "noPivot";
|
|
79
|
+
PivotType["PIVOT"] = "pivot";
|
|
80
|
+
PivotType["NULL"] = "";
|
|
81
|
+
})(PivotType || (exports.PivotType = PivotType = {}));
|
|
@@ -30,11 +30,16 @@ interface ThemeSEO {
|
|
|
30
30
|
description?: string;
|
|
31
31
|
sitemapIndex?: boolean;
|
|
32
32
|
}
|
|
33
|
+
interface ThemeContent {
|
|
34
|
+
title?: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
}
|
|
33
37
|
export interface ITheme extends BaseSchema {
|
|
34
38
|
title: string;
|
|
35
39
|
slug: string;
|
|
36
40
|
description?: string;
|
|
37
41
|
descriptionHTML?: string;
|
|
42
|
+
contents?: ThemeContent[];
|
|
38
43
|
image?: Types.ObjectId | IImage;
|
|
39
44
|
source?: string[];
|
|
40
45
|
tagList?: string[];
|