@cool-digital-solutions/interferir-models 1.3.32 → 1.3.34
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/index.d.ts +4 -2
- package/dist/index.js +3 -1
- package/dist/schemas/visionboard.schema.js +35 -20
- package/dist/types/visionboard.type.d.ts +57 -19
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ import { IAiTaskNewsManagerOutput, IAiTaskNewsManagerOutputModel } from './types
|
|
|
77
77
|
import { IAiEntrapeerKnowledgeBase, IAiEntrapeerKnowledgeBaseModel, IAiHrCandidateOutput, IAiHrCandidateOutputModel, IAiHrCandidateProfile, IAiHrCandidateProfileModel, IAiHrCandidateTopCandidate, IAiHrCandidateTopCandidateModel, IAiTaskResearchManagerOutputPresentation, IAiTaskResearchManagerOutputPresentationModel, IAiTaskResearchManagerOutputPresentationSubmission, IAiTaskResearchManagerOutputPresentationSubmissionModel, IAiTaskResearchManagerOutputSummary, IAiTaskResearchManagerOutputSummaryModel, IAiTaskResearchManagerOutputSummarySubmission, IAiTaskResearchManagerOutputSummarySubmissionModel } from './types';
|
|
78
78
|
import { IAiTaskCurationManagerOutput, IAiTaskCurationManagerOutputModel } from './types/ai-task-curation-manager-output.type';
|
|
79
79
|
import { IAiTaskCompanyRelatedCompany, IAiTaskCompanyRelatedCompanyModel } from './types/ai-task-company-related-company.type';
|
|
80
|
+
import { IVisionBoard, IVisionBoardModel } from './types/visionboard.type';
|
|
80
81
|
import ThemeSchema from './schemas/theme.schema';
|
|
81
82
|
import ProblemSchema from './schemas/problem.schema';
|
|
82
83
|
import SFTagSchema from './schemas/sf-tag.schema';
|
|
@@ -162,5 +163,6 @@ import AiTaskResearchManagerOutputSummarySubmissionSchema from './schemas/ai-tas
|
|
|
162
163
|
import AiTaskResearchManagerOutputSummarySchema from './schemas/ai-task-research-manager-output-summary.schema';
|
|
163
164
|
import AiTaskResearchManagerOutputPresentationSubmissionSchema from './schemas/ai-task-research-manager-output-presentation-submission.schema';
|
|
164
165
|
import AiTaskResearchManagerOutputPresentationSchema from './schemas/ai-task-research-manager-output-presentation.schema';
|
|
165
|
-
|
|
166
|
-
export {
|
|
166
|
+
import VisionBoardSchema from './schemas/visionboard.schema';
|
|
167
|
+
export { IAiConversation, IAiConversationModel, IAiConversationMessage, IAiConversationMessageModel, IAiConversationTrackingTask, IAiConversationTrackingTaskModel, IAiAssistant, IAiAssistantModel, IBackendError, IBackendErrorModel, IBatchHistory, IBookmark, IBookmarkModel, ICompany, ICompanyModel, ICompanyCluster, ICompanyClusterModel, ICompanyMarketing, ICompanyMarketingModel, ICompanyFundingRound, ICompanyFundingRoundModel, ICompetitor, ICompetitorModel, ICompetitorAnalysis, ICompetitorAnalysisModel, IContactMessage, IContactMessageModel, IContactStartup, IContactStartupModel, IContent, IContentModel, IDraftVersion, IDraftVersionModel, IFaq, IFaqModel, IFeaturedTheme, IFeaturedThemeModel, IFollowContent, IFollowContentModel, IGeneralConfigSub, IGeneralConfigSubModel, IGeneralConfig, IGeneralConfigModel, IImage, IImageModel, IIndustry, IIndustryModel, IInstantResearch, IInstantResearchModel, IInvestor, IInvestorModel, ILike, ILikeModel, INews, INewsModel, INotification, INotificationModel, IOtp, IOtpModel, IPortiaArticle, IPortiaArticleModel, IProblem, IProblemModel, IRelatedTheme, IRelatedThemeModel, ISearchHistory, ISearchHistoryModel, ISFCategory, ISFCategoryModel, ISFSubCategory, ISFSubCategoryModel, ISFTag, ISFTagModel, ISparkUseCase, ISparkUseCaseModel, ISpark, ISparkModel, IStartupVectorAnyEntity, IStartupVectorAnyEntityModel, ISuggest, ISuggestModel, ITechnology, ITechnologyModel, ITheme, IThemeModel, IToken, ITokenModel, IUpdateJob, IUpdateJobModel, IUseCase, IUseCaseModel, IUseCaseDiscovery, IUseCaseDiscoveryModel, IUseCaseDiscoveryProblem, IUseCaseDiscoveryProblemModel, IUserToken, IUserTokenModel, IUserVisit, IUserVisitModel, IUser, IUserModel, IFoamTree, IFoamTreeModel, ICompetitorGrid, ICompetitorGridModel, IHighlight, IHighlightModel, IHighlightNote, IHighlightNoteModel, INewsHub, INewsHubModel, ITeam, ITeamModel, ITeamMember, ITeamMemberModel, IAiTask, IAiTaskModel, IAiTaskSubmission, IAiTaskSubmissionModel, ICompanySubOrganization, ICompanySubOrganizationModel, IAiTaskResearchManagerOutput, IAiTaskResearchManagerOutputModel, IAiTaskOutline, IAiTaskOutlineModel, IAiTaskShare, IAiTaskShareModel, IBadge, IBadgeModel, IAiTopUseCase, IAiTopUseCaseModel, IAiUseCaseAnalysisNode, IAiUseCaseAnalysisNodeModel, IAiUseCaseAnalysis, IAiUseCaseAnalysisModel, IAiHrCandidate, IAiHrCandidateModel, IAiHrCandidateCompany, IAiHrCandidateCompanyModel, IBugReportModel, IBugReport, IAiTaskUseCaseRelatedUseCase, IAiTaskUseCaseRelatedUseCaseModel, IAiWeeklyInsight, IAiWeeklyInsightModel, IStrategyGameBoard, IStrategyGameBoardModel, IAiTaskPortiaArticleRelatedPortiaArticle, IAiTaskPortiaArticleRelatedPortiaArticleModel, IAiTaskNewsManagerOutput, IAiTaskNewsManagerOutputModel, IAiHrCandidateOutput, IAiHrCandidateOutputModel, IAiHrCandidateTopCandidate, IAiHrCandidateTopCandidateModel, IAiHrCandidateProfile, IAiHrCandidateProfileModel, IAiEntrapeerKnowledgeBase, IAiEntrapeerKnowledgeBaseModel, IAiTaskCurationManagerOutput, IAiTaskCurationManagerOutputModel, IAiTaskCompanyRelatedCompanyModel, IAiTaskCompanyRelatedCompany, IAiTaskResearchManagerOutputSummarySubmission, IAiTaskResearchManagerOutputSummarySubmissionModel, IAiTaskResearchManagerOutputSummary, IAiTaskResearchManagerOutputSummaryModel, IAiTaskResearchManagerOutputPresentationSubmission, IAiTaskResearchManagerOutputPresentationSubmissionModel, IAiTaskResearchManagerOutputPresentation, IAiTaskResearchManagerOutputPresentationModel, IVisionBoard, IVisionBoardModel, };
|
|
168
|
+
export { BadgeSchema, AiTaskSchema, AiTaskSubmissionSchema, ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema, InstantResearchSchema, ContactMessageSchema, ContactStartupSchema, ContentSchema, FaqSchema, UseCaseSchema, NewsSchema, LikeSchema, SparkSchema, SparkUseCaseSchema, FollowContentSchema, GeneralConfigSchema, GeneralConfigSubSchema, DraftVersionSchema, NotificationSchema, OtpSchema, SuggestSchema, UserVisitSchema, CompetitorSchema, CompanyFundingRoundSchema, BookmarkSchema, AiConversationSchema, AiConversationMessageSchema, AiConversationTrackingTaskSchema, CompanyClusterSchema, CompanyMarketingSchema, InvestorSchema, RelatedThemeSchema, StartupVectorAnyEntitySchema, UpdateJobSchema, UseCaseDiscoverySchema, UseCaseDiscoveryProblemSchema, CompetitorAnalysisSchema, FoamTreeSchema, FeaturedThemeSchema, CompetitorGridSchema, HighlightSchema, NewsHubSchema, AiAssistantSchema, TeamSchema, TeamMemberSchema, CompanySubOrganizationSchema, HighlightNoteSchema, AiTaskResearchManagerOutputSchema, AiTaskOutlineSchema, AiTaskShareSchema, AiTopUseCaseSchema, AiUseCaseAnalysisNodeSchema, AiUseCaseAnalysisSchema, AiHrCandidateSchema, AiHrCandidateCompanySchema, BugReportSchema, AiTaskUseCaseRelatedUseCaseSchema, AiWeeklyInsightSchema, StrategyGameBoardSchema, AiTaskPortiaArticleRelatedPortiaArticleSchema, AiTaskNewsManagerOutputSchema, AiHrCandidateOutputSchema, AiHrCandidateTopCandidateSchema, AiHrCandidateProfileSchema, AiEntrapeerKnowledgeBaseSchema, AiTaskCurationManagerOutputSchema, AiTaskCompanyRelatedCompanySchema, AiTaskResearchManagerOutputSummarySubmissionSchema, AiTaskResearchManagerOutputSummarySchema, AiTaskResearchManagerOutputPresentationSubmissionSchema, AiTaskResearchManagerOutputPresentationSchema, VisionBoardSchema, };
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.UseCaseDiscoveryProblemSchema = exports.UseCaseDiscoverySchema = exports.UpdateJobSchema = exports.StartupVectorAnyEntitySchema = exports.RelatedThemeSchema = exports.InvestorSchema = exports.CompanyMarketingSchema = exports.CompanyClusterSchema = exports.AiConversationTrackingTaskSchema = exports.AiConversationMessageSchema = exports.AiConversationSchema = exports.BookmarkSchema = exports.CompanyFundingRoundSchema = exports.CompetitorSchema = exports.UserVisitSchema = exports.SuggestSchema = exports.OtpSchema = exports.NotificationSchema = exports.DraftVersionSchema = exports.GeneralConfigSubSchema = exports.GeneralConfigSchema = exports.FollowContentSchema = exports.SparkUseCaseSchema = exports.SparkSchema = exports.LikeSchema = exports.NewsSchema = exports.UseCaseSchema = exports.FaqSchema = exports.ContentSchema = exports.ContactStartupSchema = exports.ContactMessageSchema = exports.InstantResearchSchema = exports.PortiaArticleSchema = exports.CompanySchema = exports.UserSchema = exports.UserTokenSchema = exports.TokenSchema = exports.SearchHistorySchema = exports.ImageSchema = exports.BackendErrorSchema = exports.IndustrySchema = exports.TechnologySchema = exports.SFSubCategorySchema = exports.SFCategorySchema = exports.SFTagSchema = exports.ProblemSchema = exports.ThemeSchema = exports.AiTaskSubmissionSchema = exports.AiTaskSchema = exports.BadgeSchema = void 0;
|
|
7
|
-
exports.AiTaskResearchManagerOutputPresentationSchema = exports.AiTaskResearchManagerOutputPresentationSubmissionSchema = exports.AiTaskResearchManagerOutputSummarySchema = exports.AiTaskResearchManagerOutputSummarySubmissionSchema = exports.AiTaskCompanyRelatedCompanySchema = exports.AiTaskCurationManagerOutputSchema = exports.AiEntrapeerKnowledgeBaseSchema = exports.AiHrCandidateProfileSchema = exports.AiHrCandidateTopCandidateSchema = exports.AiHrCandidateOutputSchema = exports.AiTaskNewsManagerOutputSchema = exports.AiTaskPortiaArticleRelatedPortiaArticleSchema = exports.StrategyGameBoardSchema = exports.AiWeeklyInsightSchema = exports.AiTaskUseCaseRelatedUseCaseSchema = exports.BugReportSchema = exports.AiHrCandidateCompanySchema = exports.AiHrCandidateSchema = exports.AiUseCaseAnalysisSchema = exports.AiUseCaseAnalysisNodeSchema = exports.AiTopUseCaseSchema = exports.AiTaskShareSchema = exports.AiTaskOutlineSchema = exports.AiTaskResearchManagerOutputSchema = exports.HighlightNoteSchema = exports.CompanySubOrganizationSchema = exports.TeamMemberSchema = exports.TeamSchema = exports.AiAssistantSchema = exports.NewsHubSchema = exports.HighlightSchema = exports.CompetitorGridSchema = exports.FeaturedThemeSchema = exports.FoamTreeSchema = exports.CompetitorAnalysisSchema = void 0;
|
|
7
|
+
exports.VisionBoardSchema = exports.AiTaskResearchManagerOutputPresentationSchema = exports.AiTaskResearchManagerOutputPresentationSubmissionSchema = exports.AiTaskResearchManagerOutputSummarySchema = exports.AiTaskResearchManagerOutputSummarySubmissionSchema = exports.AiTaskCompanyRelatedCompanySchema = exports.AiTaskCurationManagerOutputSchema = exports.AiEntrapeerKnowledgeBaseSchema = exports.AiHrCandidateProfileSchema = exports.AiHrCandidateTopCandidateSchema = exports.AiHrCandidateOutputSchema = exports.AiTaskNewsManagerOutputSchema = exports.AiTaskPortiaArticleRelatedPortiaArticleSchema = exports.StrategyGameBoardSchema = exports.AiWeeklyInsightSchema = exports.AiTaskUseCaseRelatedUseCaseSchema = exports.BugReportSchema = exports.AiHrCandidateCompanySchema = exports.AiHrCandidateSchema = exports.AiUseCaseAnalysisSchema = exports.AiUseCaseAnalysisNodeSchema = exports.AiTopUseCaseSchema = exports.AiTaskShareSchema = exports.AiTaskOutlineSchema = exports.AiTaskResearchManagerOutputSchema = exports.HighlightNoteSchema = exports.CompanySubOrganizationSchema = exports.TeamMemberSchema = exports.TeamSchema = exports.AiAssistantSchema = exports.NewsHubSchema = exports.HighlightSchema = exports.CompetitorGridSchema = exports.FeaturedThemeSchema = exports.FoamTreeSchema = exports.CompetitorAnalysisSchema = void 0;
|
|
8
8
|
const theme_schema_1 = __importDefault(require("./schemas/theme.schema"));
|
|
9
9
|
exports.ThemeSchema = theme_schema_1.default;
|
|
10
10
|
const problem_schema_1 = __importDefault(require("./schemas/problem.schema"));
|
|
@@ -175,3 +175,5 @@ const ai_task_research_manager_output_presentation_submission_schema_1 = __impor
|
|
|
175
175
|
exports.AiTaskResearchManagerOutputPresentationSubmissionSchema = ai_task_research_manager_output_presentation_submission_schema_1.default;
|
|
176
176
|
const ai_task_research_manager_output_presentation_schema_1 = __importDefault(require("./schemas/ai-task-research-manager-output-presentation.schema"));
|
|
177
177
|
exports.AiTaskResearchManagerOutputPresentationSchema = ai_task_research_manager_output_presentation_schema_1.default;
|
|
178
|
+
const visionboard_schema_1 = __importDefault(require("./schemas/visionboard.schema"));
|
|
179
|
+
exports.VisionBoardSchema = visionboard_schema_1.default;
|
|
@@ -7,13 +7,28 @@ const mongoose_1 = require("mongoose");
|
|
|
7
7
|
const express_http_context_1 = __importDefault(require("express-http-context"));
|
|
8
8
|
const _config_1 = require("../config");
|
|
9
9
|
const visionBoardSchema = new mongoose_1.Schema({
|
|
10
|
-
companyId: { type:
|
|
10
|
+
companyId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company' },
|
|
11
11
|
companyName: { type: String },
|
|
12
12
|
reportTitle: { type: String },
|
|
13
13
|
researchDate: { type: Number, required: true },
|
|
14
|
+
sections: [
|
|
15
|
+
{
|
|
16
|
+
aiTaskOutlineId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTaskOutline' },
|
|
17
|
+
content: { type: String },
|
|
18
|
+
references: [
|
|
19
|
+
{
|
|
20
|
+
url: { type: String },
|
|
21
|
+
citationNumber: { type: Number },
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
sectionNumber: { type: String },
|
|
25
|
+
sectionType: { type: String },
|
|
26
|
+
title: { type: String },
|
|
27
|
+
},
|
|
28
|
+
],
|
|
14
29
|
useCaseList: [
|
|
15
30
|
{
|
|
16
|
-
id: { type:
|
|
31
|
+
id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'UseCase', required: true },
|
|
17
32
|
title: { type: String, required: true },
|
|
18
33
|
description: { type: String },
|
|
19
34
|
url: { type: String, required: true },
|
|
@@ -26,7 +41,7 @@ const visionBoardSchema = new mongoose_1.Schema({
|
|
|
26
41
|
],
|
|
27
42
|
startups: [
|
|
28
43
|
{
|
|
29
|
-
id: { type:
|
|
44
|
+
id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', required: true },
|
|
30
45
|
name: { type: String },
|
|
31
46
|
foundingYear: { type: Number, default: 0 },
|
|
32
47
|
location: { type: String },
|
|
@@ -41,19 +56,19 @@ const visionBoardSchema = new mongoose_1.Schema({
|
|
|
41
56
|
],
|
|
42
57
|
superUsecases: [
|
|
43
58
|
{
|
|
44
|
-
id: { type:
|
|
59
|
+
id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'UseCase', required: true },
|
|
45
60
|
title: { type: String },
|
|
46
61
|
description: { type: String },
|
|
47
62
|
content: { type: String },
|
|
48
63
|
differentiationFactors: [String],
|
|
49
64
|
maturityLevel: { type: String },
|
|
50
65
|
potentialImpact: { type: String },
|
|
51
|
-
relatedUseCaseId: { type:
|
|
66
|
+
relatedUseCaseId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'UseCase' },
|
|
52
67
|
},
|
|
53
68
|
],
|
|
54
69
|
keyCompetitors: [
|
|
55
70
|
{
|
|
56
|
-
id: { type:
|
|
71
|
+
id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company' },
|
|
57
72
|
name: { type: String },
|
|
58
73
|
industryPosition: { type: String },
|
|
59
74
|
marketShare: { type: String },
|
|
@@ -63,7 +78,7 @@ const visionBoardSchema = new mongoose_1.Schema({
|
|
|
63
78
|
],
|
|
64
79
|
keyCustomers: [
|
|
65
80
|
{
|
|
66
|
-
id: { type:
|
|
81
|
+
id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company' },
|
|
67
82
|
name: { type: String },
|
|
68
83
|
industry: { type: String },
|
|
69
84
|
relationshipLength: { type: String },
|
|
@@ -73,7 +88,7 @@ const visionBoardSchema = new mongoose_1.Schema({
|
|
|
73
88
|
],
|
|
74
89
|
clientActivities: [
|
|
75
90
|
{
|
|
76
|
-
id: { type:
|
|
91
|
+
id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company' },
|
|
77
92
|
customerName: { type: String },
|
|
78
93
|
activityType: { type: String },
|
|
79
94
|
description: { type: String },
|
|
@@ -85,7 +100,7 @@ const visionBoardSchema = new mongoose_1.Schema({
|
|
|
85
100
|
],
|
|
86
101
|
competitorActivities: [
|
|
87
102
|
{
|
|
88
|
-
id: { type:
|
|
103
|
+
id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company' },
|
|
89
104
|
competitorName: { type: String },
|
|
90
105
|
activityType: { type: String },
|
|
91
106
|
description: { type: String },
|
|
@@ -93,16 +108,16 @@ const visionBoardSchema = new mongoose_1.Schema({
|
|
|
93
108
|
date: { type: Number },
|
|
94
109
|
marketImpact: { type: String },
|
|
95
110
|
technologiesInvolved: [String],
|
|
96
|
-
|
|
111
|
+
responseNeeded: { type: String },
|
|
97
112
|
},
|
|
98
113
|
],
|
|
99
114
|
news: [
|
|
100
115
|
{
|
|
101
|
-
id: { type:
|
|
116
|
+
id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'PortiaArticle' },
|
|
102
117
|
date: { type: Number },
|
|
103
118
|
headline: { type: String },
|
|
104
119
|
source: { type: String },
|
|
105
|
-
|
|
120
|
+
impact: { type: String },
|
|
106
121
|
recommendedResponse: { type: String },
|
|
107
122
|
importance: { type: String },
|
|
108
123
|
content: { type: String },
|
|
@@ -115,7 +130,7 @@ const visionBoardSchema = new mongoose_1.Schema({
|
|
|
115
130
|
title: { type: String },
|
|
116
131
|
description: { type: String },
|
|
117
132
|
geographicalScope: { type: String },
|
|
118
|
-
|
|
133
|
+
impact: { type: String },
|
|
119
134
|
complianceDeadline: { type: Number },
|
|
120
135
|
complianceCostEstimate: { type: String },
|
|
121
136
|
content: { type: String },
|
|
@@ -123,7 +138,7 @@ const visionBoardSchema = new mongoose_1.Schema({
|
|
|
123
138
|
],
|
|
124
139
|
marketData: {
|
|
125
140
|
totalAddressableMarket: { type: String },
|
|
126
|
-
|
|
141
|
+
marketShare: { type: String },
|
|
127
142
|
marketGrowthRate: { type: String },
|
|
128
143
|
segmentBreakdown: [
|
|
129
144
|
{
|
|
@@ -131,27 +146,27 @@ const visionBoardSchema = new mongoose_1.Schema({
|
|
|
131
146
|
segment: { type: String },
|
|
132
147
|
marketSize: { type: String },
|
|
133
148
|
growthRate: { type: String },
|
|
134
|
-
|
|
149
|
+
share: { type: String },
|
|
135
150
|
},
|
|
136
151
|
],
|
|
137
152
|
technologyAdoptionTrends: [
|
|
138
153
|
{
|
|
139
|
-
id: { type:
|
|
154
|
+
id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Technology' },
|
|
140
155
|
technology: { type: String },
|
|
141
156
|
currentAdoption: { type: String },
|
|
142
|
-
fiveYearProjection: { type: String },
|
|
143
|
-
|
|
157
|
+
fiveYearProjection: { type: String },
|
|
158
|
+
readiness: { type: String },
|
|
144
159
|
},
|
|
145
160
|
],
|
|
146
161
|
},
|
|
147
162
|
focusAreasOfUseCases: [
|
|
148
163
|
{
|
|
149
|
-
id: { type:
|
|
164
|
+
id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'UseCase' },
|
|
150
165
|
focusArea: { type: String },
|
|
151
166
|
description: { type: String },
|
|
152
167
|
content: { type: String },
|
|
153
168
|
strategicImportance: { type: String },
|
|
154
|
-
relatedUseCaseIds: [
|
|
169
|
+
relatedUseCaseIds: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'UseCase' }],
|
|
155
170
|
investmentRecommendation: { type: String },
|
|
156
171
|
expectedRoi: { type: String },
|
|
157
172
|
},
|
|
@@ -1,6 +1,43 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { Types } from 'mongoose';
|
|
1
26
|
import { BaseModel, BaseSchema } from '../config';
|
|
27
|
+
export interface Reference {
|
|
28
|
+
url?: string;
|
|
29
|
+
citationNumber?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface Section {
|
|
32
|
+
aiTaskOutlineId?: string;
|
|
33
|
+
content?: string;
|
|
34
|
+
references?: Reference[];
|
|
35
|
+
sectionNumber?: string;
|
|
36
|
+
sectionType?: string;
|
|
37
|
+
title?: string;
|
|
38
|
+
}
|
|
2
39
|
export interface UseCase {
|
|
3
|
-
id:
|
|
40
|
+
id: Types.ObjectId;
|
|
4
41
|
title: string;
|
|
5
42
|
description?: string;
|
|
6
43
|
url: string;
|
|
@@ -11,17 +48,17 @@ export interface UseCase {
|
|
|
11
48
|
potentialValue?: string;
|
|
12
49
|
}
|
|
13
50
|
export interface SuperUseCase {
|
|
14
|
-
id:
|
|
51
|
+
id: Types.ObjectId;
|
|
15
52
|
title?: string;
|
|
16
53
|
description?: string;
|
|
17
54
|
content?: string;
|
|
18
55
|
differentiationFactors?: string[];
|
|
19
56
|
maturityLevel?: string;
|
|
20
57
|
potentialImpact?: string;
|
|
21
|
-
relatedUseCaseId?:
|
|
58
|
+
relatedUseCaseId?: Types.ObjectId;
|
|
22
59
|
}
|
|
23
60
|
export interface Startup {
|
|
24
|
-
id:
|
|
61
|
+
id: Types.ObjectId;
|
|
25
62
|
name?: string;
|
|
26
63
|
foundingYear?: number;
|
|
27
64
|
location?: string;
|
|
@@ -34,7 +71,7 @@ export interface Startup {
|
|
|
34
71
|
content?: string;
|
|
35
72
|
}
|
|
36
73
|
export interface Competitor {
|
|
37
|
-
id?:
|
|
74
|
+
id?: Types.ObjectId;
|
|
38
75
|
name?: string;
|
|
39
76
|
industryPosition?: string;
|
|
40
77
|
marketShare?: string;
|
|
@@ -42,7 +79,7 @@ export interface Competitor {
|
|
|
42
79
|
weaknesses?: string[];
|
|
43
80
|
}
|
|
44
81
|
export interface Customer {
|
|
45
|
-
id?:
|
|
82
|
+
id?: Types.ObjectId;
|
|
46
83
|
name?: string;
|
|
47
84
|
industry?: string;
|
|
48
85
|
relationshipLength?: string;
|
|
@@ -50,7 +87,7 @@ export interface Customer {
|
|
|
50
87
|
strategicImportance?: string;
|
|
51
88
|
}
|
|
52
89
|
export interface ClientActivity {
|
|
53
|
-
id?:
|
|
90
|
+
id?: Types.ObjectId;
|
|
54
91
|
customerName?: string;
|
|
55
92
|
activityType?: string;
|
|
56
93
|
description?: string;
|
|
@@ -60,7 +97,7 @@ export interface ClientActivity {
|
|
|
60
97
|
strategicRelevance?: string;
|
|
61
98
|
}
|
|
62
99
|
export interface CompetitorActivity {
|
|
63
|
-
id?:
|
|
100
|
+
id?: Types.ObjectId;
|
|
64
101
|
competitorName?: string;
|
|
65
102
|
activityType?: string;
|
|
66
103
|
description?: string;
|
|
@@ -68,14 +105,14 @@ export interface CompetitorActivity {
|
|
|
68
105
|
date?: number;
|
|
69
106
|
marketImpact?: string;
|
|
70
107
|
technologiesInvolved?: string[];
|
|
71
|
-
|
|
108
|
+
responseNeeded?: string;
|
|
72
109
|
}
|
|
73
110
|
export interface News {
|
|
74
|
-
id?:
|
|
111
|
+
id?: Types.ObjectId;
|
|
75
112
|
date?: number;
|
|
76
113
|
headline?: string;
|
|
77
114
|
source?: string;
|
|
78
|
-
|
|
115
|
+
impact?: string;
|
|
79
116
|
recommendedResponse?: string;
|
|
80
117
|
importance?: string;
|
|
81
118
|
content?: string;
|
|
@@ -86,7 +123,7 @@ export interface Regulation {
|
|
|
86
123
|
title?: string;
|
|
87
124
|
description?: string;
|
|
88
125
|
geographicalScope?: string;
|
|
89
|
-
|
|
126
|
+
impact?: string;
|
|
90
127
|
complianceDeadline?: number;
|
|
91
128
|
complianceCostEstimate?: string;
|
|
92
129
|
content?: string;
|
|
@@ -96,28 +133,28 @@ export interface Segment {
|
|
|
96
133
|
segment?: string;
|
|
97
134
|
marketSize?: string;
|
|
98
135
|
growthRate?: string;
|
|
99
|
-
|
|
136
|
+
share?: string;
|
|
100
137
|
}
|
|
101
138
|
export interface Trend {
|
|
102
|
-
id?:
|
|
139
|
+
id?: Types.ObjectId;
|
|
103
140
|
technology?: string;
|
|
104
141
|
currentAdoption?: string;
|
|
105
142
|
fiveYearProjection?: string;
|
|
106
|
-
|
|
143
|
+
readiness?: string;
|
|
107
144
|
}
|
|
108
145
|
export interface FocusArea {
|
|
109
|
-
id?:
|
|
146
|
+
id?: Types.ObjectId;
|
|
110
147
|
focusArea?: string;
|
|
111
148
|
description?: string;
|
|
112
149
|
content?: string;
|
|
113
150
|
strategicImportance?: string;
|
|
114
|
-
relatedUseCaseIds?:
|
|
151
|
+
relatedUseCaseIds?: Types.ObjectId[];
|
|
115
152
|
investmentRecommendation?: string;
|
|
116
153
|
expectedRoi?: string;
|
|
117
154
|
}
|
|
118
155
|
export interface MarketData {
|
|
119
156
|
totalAddressableMarket?: string;
|
|
120
|
-
|
|
157
|
+
marketShare?: string;
|
|
121
158
|
marketGrowthRate?: string;
|
|
122
159
|
segmentBreakdown?: Segment[];
|
|
123
160
|
technologyAdoptionTrends?: Trend[];
|
|
@@ -130,10 +167,11 @@ export interface Metadata {
|
|
|
130
167
|
aitaskId?: string;
|
|
131
168
|
}
|
|
132
169
|
export interface IVisionBoard extends BaseSchema {
|
|
133
|
-
companyId:
|
|
170
|
+
companyId: Types.ObjectId;
|
|
134
171
|
companyName?: string;
|
|
135
172
|
reportTitle?: string;
|
|
136
173
|
researchDate: number;
|
|
174
|
+
sections?: Section[];
|
|
137
175
|
useCaseList: UseCase[];
|
|
138
176
|
startups?: Startup[];
|
|
139
177
|
superUsecases: SuperUseCase[];
|