@cool-digital-solutions/interferir-models 1.1.24 → 1.1.26
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.
- package/dist/schemas/ai-assistant.schema.js +1 -0
- package/dist/schemas/company.schema.js +1 -1
- package/dist/schemas/contact-startup.schema.js +1 -0
- package/dist/schemas/evidence.schema.js +1 -0
- package/dist/schemas/model-indexes.js +3 -0
- package/dist/schemas/portia-article.schema.js +1 -1
- package/dist/schemas/spark.schema.js +1 -1
- package/dist/schemas/use-case.schema.js +3 -3
- package/dist/schemas/user.schema.js +1 -1
- package/dist/types/ai-assistant.type.d.ts +1 -0
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ const aiAssistantSchema = new mongoose_1.Schema({
|
|
|
10
10
|
name: { type: String, required: true },
|
|
11
11
|
type: { type: String, required: true },
|
|
12
12
|
description: { type: String, required: true },
|
|
13
|
+
profilePictureUrl: { type: String, default: '' },
|
|
13
14
|
profilePicture: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Image', default: null },
|
|
14
15
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
15
16
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
@@ -91,7 +91,7 @@ const companySchema = new mongoose_1.Schema({
|
|
|
91
91
|
},
|
|
92
92
|
newsCount: Number,
|
|
93
93
|
profileDetailUrls: [{ type: String, default: '' }],
|
|
94
|
-
acquiredBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null },
|
|
94
|
+
acquiredBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null, index: true },
|
|
95
95
|
about: { type: String, default: '' },
|
|
96
96
|
operatingStatus: { type: String, enum: Object.values(company_type_1.OperatingStatus) },
|
|
97
97
|
headquartersLocation: {
|
|
@@ -48,7 +48,7 @@ const portiaArticleSchema = new mongoose_1.Schema({
|
|
|
48
48
|
],
|
|
49
49
|
default: [],
|
|
50
50
|
},
|
|
51
|
-
companyReferences: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company' }],
|
|
51
|
+
companyReferences: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', index: true }],
|
|
52
52
|
investors: [{ type: String, default: '' }],
|
|
53
53
|
hasUseCase: { type: Boolean, default: null },
|
|
54
54
|
},
|
|
@@ -11,7 +11,7 @@ const _config_1 = require("../config");
|
|
|
11
11
|
const sparkSchema = new mongoose_1.Schema({
|
|
12
12
|
companyName: { type: String, required: [true, 'companyName is required'] },
|
|
13
13
|
companyType: { type: String, required: [true, 'companyType is required'], enum: Object.values(company_type_1.CompanyTypes) },
|
|
14
|
-
refCompany: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company' },
|
|
14
|
+
refCompany: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', index: true },
|
|
15
15
|
website: { type: String, default: '' },
|
|
16
16
|
useCaseSourceList: [{ type: String, required: [true, 'useCaseSource is required'] }],
|
|
17
17
|
themeList: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Theme', index: true, default: null }],
|
|
@@ -33,10 +33,10 @@ const useCaseSchema = new mongoose_1.Schema({
|
|
|
33
33
|
url: { type: String, default: '' },
|
|
34
34
|
freeText: { type: String, default: '' },
|
|
35
35
|
evidence: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Evidence', default: null },
|
|
36
|
-
startup: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null },
|
|
36
|
+
startup: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null, index: true },
|
|
37
37
|
},
|
|
38
|
-
actors: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company' }],
|
|
39
|
-
solutionProviderList: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company' }],
|
|
38
|
+
actors: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', index: true }],
|
|
39
|
+
solutionProviderList: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', index: true }],
|
|
40
40
|
geographyList: [{ type: String, required: [true, 'geographyList element is required!'] }],
|
|
41
41
|
relatedUseCaseList: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'UseCase' }],
|
|
42
42
|
newsCrawlingTagList: [
|
|
@@ -47,7 +47,7 @@ const userSchema = new mongoose_1.Schema({
|
|
|
47
47
|
lastCheckedCompetitorDate: { type: Number, default: 0 },
|
|
48
48
|
lastCheckCompetitorGridDate: { type: Number, default: 0 },
|
|
49
49
|
isSendWelcomeEmailForStartup: { type: Boolean, default: false },
|
|
50
|
-
company: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null },
|
|
50
|
+
company: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null, index: true },
|
|
51
51
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
52
52
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
53
53
|
updatedDate: { type: Number, index: -1 },
|