@cool-digital-solutions/interferir-models 1.0.1 → 1.0.3
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.
|
@@ -12,8 +12,17 @@ const companySchema = new mongoose_1.Schema({
|
|
|
12
12
|
name: { type: String, default: '' },
|
|
13
13
|
lcName: { type: String, default: '' },
|
|
14
14
|
slug: { type: String, required: [true, 'slug is required'], unique: true },
|
|
15
|
-
status: {
|
|
16
|
-
|
|
15
|
+
status: {
|
|
16
|
+
type: String,
|
|
17
|
+
enum: Object.values(_config_1.ContentStatus),
|
|
18
|
+
required: [true, 'status is required!'],
|
|
19
|
+
default: _config_1.ContentStatus.PUBLISH,
|
|
20
|
+
},
|
|
21
|
+
draftVersionStatus: {
|
|
22
|
+
type: String,
|
|
23
|
+
enum: Object.values(_config_1.ContentDraftStatus),
|
|
24
|
+
default: _config_1.ContentDraftStatus.DEFAULT,
|
|
25
|
+
},
|
|
17
26
|
privForUsers: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
18
27
|
writtenBy: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
19
28
|
owner: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
@@ -33,7 +42,11 @@ const companySchema = new mongoose_1.Schema({
|
|
|
33
42
|
name: { type: String, required: [true, 'name is required.'] },
|
|
34
43
|
surname: { type: String, required: [true, 'surname is required.'] },
|
|
35
44
|
jobTitle: { type: String, default: '' },
|
|
36
|
-
profileImage: {
|
|
45
|
+
profileImage: {
|
|
46
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
47
|
+
ref: 'Image',
|
|
48
|
+
default: null,
|
|
49
|
+
},
|
|
37
50
|
content: { type: String, default: '' },
|
|
38
51
|
},
|
|
39
52
|
],
|
|
@@ -111,9 +124,18 @@ const companySchema = new mongoose_1.Schema({
|
|
|
111
124
|
comment: { type: String, default: '' },
|
|
112
125
|
},
|
|
113
126
|
analysisScore: {
|
|
114
|
-
enterpriseReadiness: {
|
|
115
|
-
|
|
116
|
-
|
|
127
|
+
enterpriseReadiness: {
|
|
128
|
+
score: { type: Number, default: 0 },
|
|
129
|
+
content: { type: String, default: '' },
|
|
130
|
+
},
|
|
131
|
+
responsiveness: {
|
|
132
|
+
score: { type: Number, default: 0 },
|
|
133
|
+
content: { type: String, default: '' },
|
|
134
|
+
},
|
|
135
|
+
competitiveLandscape: {
|
|
136
|
+
score: { type: Number, default: 0 },
|
|
137
|
+
content: { type: String, default: '' },
|
|
138
|
+
},
|
|
117
139
|
info: { type: String, default: '' },
|
|
118
140
|
},
|
|
119
141
|
technicalRequirement: {
|
|
@@ -133,8 +155,20 @@ const companySchema = new mongoose_1.Schema({
|
|
|
133
155
|
isHybrid: { type: Boolean, default: false },
|
|
134
156
|
content: { type: String, default: '' },
|
|
135
157
|
},
|
|
136
|
-
investorType: [
|
|
137
|
-
|
|
158
|
+
investorType: [
|
|
159
|
+
{
|
|
160
|
+
type: String,
|
|
161
|
+
enum: Object.values(company_type_1.InvestorType),
|
|
162
|
+
default: company_type_1.InvestorType.DEFAULT,
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
investmentStage: [
|
|
166
|
+
{
|
|
167
|
+
type: String,
|
|
168
|
+
enum: Object.values(company_type_1.InvestmentStage),
|
|
169
|
+
default: company_type_1.InvestmentStage.DEFAULT,
|
|
170
|
+
},
|
|
171
|
+
],
|
|
138
172
|
investmentThesis: { type: String, default: '' },
|
|
139
173
|
industryFocus: { type: String, default: '' },
|
|
140
174
|
ticketSize: { type: String, default: '' },
|
|
@@ -143,6 +177,7 @@ const companySchema = new mongoose_1.Schema({
|
|
|
143
177
|
isHasMissingInfo: { type: Boolean, default: true },
|
|
144
178
|
isHasMissingUseCase: { type: Boolean, default: true },
|
|
145
179
|
latestBigRelease: { type: String, default: '' },
|
|
180
|
+
publishDate: { type: Number, default: 0 },
|
|
146
181
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
147
182
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
148
183
|
updatedDate: { type: Number },
|
|
@@ -21,17 +21,33 @@ const themeSchema = new mongoose_1.Schema({
|
|
|
21
21
|
},
|
|
22
22
|
likeCount: { type: Number, default: 0 },
|
|
23
23
|
dislikeCount: { type: Number, default: 0 },
|
|
24
|
-
evidenceCount: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
evidenceCount: {
|
|
25
|
+
type: Object,
|
|
26
|
+
default: { publish: 0, private: 0, draft: 0, prePublish: 0 },
|
|
27
|
+
},
|
|
28
|
+
problemCount: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default: { publish: 0, private: 0, draft: 0, prePublish: 0 },
|
|
31
|
+
},
|
|
32
|
+
solutionCount: {
|
|
33
|
+
type: Object,
|
|
34
|
+
default: { publish: 0, private: 0, draft: 0, prePublish: 0 },
|
|
35
|
+
},
|
|
36
|
+
companyCount: {
|
|
37
|
+
type: Object,
|
|
38
|
+
default: { publish: 0, private: 0, draft: 0, prePublish: 0 },
|
|
39
|
+
},
|
|
28
40
|
showCounts: { type: Boolean, default: false },
|
|
29
41
|
status: {
|
|
30
42
|
type: String,
|
|
31
43
|
enum: Object.values(_config_1.ContentStatus),
|
|
32
44
|
required: [true, 'status is required!'],
|
|
33
45
|
},
|
|
34
|
-
draftVersionStatus: {
|
|
46
|
+
draftVersionStatus: {
|
|
47
|
+
type: String,
|
|
48
|
+
enum: Object.values(_config_1.ContentDraftStatus),
|
|
49
|
+
default: _config_1.ContentDraftStatus.DEFAULT,
|
|
50
|
+
},
|
|
35
51
|
sfTags: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFTag' }],
|
|
36
52
|
sfIndustries: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Industry' }],
|
|
37
53
|
sfTechnologies: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Technology' }],
|
|
@@ -41,6 +57,7 @@ const themeSchema = new mongoose_1.Schema({
|
|
|
41
57
|
privForUsers: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
42
58
|
requestedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
43
59
|
requestedDate: { type: Number },
|
|
60
|
+
publishDate: { type: Number, default: 0 },
|
|
44
61
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
45
62
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
46
63
|
updatedDate: { type: Number, index: -1 },
|
|
@@ -8,8 +8,16 @@ const express_http_context_1 = __importDefault(require("express-http-context"));
|
|
|
8
8
|
const _config_1 = require("../config");
|
|
9
9
|
const useCaseSchema = new mongoose_1.Schema({
|
|
10
10
|
slug: { type: String, required: [true, 'slug is required!'], unique: true },
|
|
11
|
-
status: {
|
|
12
|
-
|
|
11
|
+
status: {
|
|
12
|
+
type: String,
|
|
13
|
+
enum: Object.values(_config_1.ContentStatus),
|
|
14
|
+
required: [true, 'status is required!'],
|
|
15
|
+
},
|
|
16
|
+
draftVersionStatus: {
|
|
17
|
+
type: String,
|
|
18
|
+
enum: Object.values(_config_1.ContentDraftStatus),
|
|
19
|
+
default: _config_1.ContentDraftStatus.DEFAULT,
|
|
20
|
+
},
|
|
13
21
|
privForUsers: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
14
22
|
writtenBy: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
15
23
|
problem: { type: String },
|
|
@@ -50,7 +58,10 @@ const useCaseSchema = new mongoose_1.Schema({
|
|
|
50
58
|
sfTags: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFTag' }],
|
|
51
59
|
instantResearches: [
|
|
52
60
|
{
|
|
53
|
-
instantResearchId: {
|
|
61
|
+
instantResearchId: {
|
|
62
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
63
|
+
ref: 'InstantResearch',
|
|
64
|
+
},
|
|
54
65
|
score: { type: Number, default: 0 },
|
|
55
66
|
},
|
|
56
67
|
],
|
|
@@ -59,6 +70,7 @@ const useCaseSchema = new mongoose_1.Schema({
|
|
|
59
70
|
publishedByAI: { type: Boolean, default: false },
|
|
60
71
|
superCase: { type: Boolean, default: false },
|
|
61
72
|
},
|
|
73
|
+
publishDate: { type: Number, default: 0 },
|
|
62
74
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
63
75
|
createdDate: Number,
|
|
64
76
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
package/package.json
CHANGED