@cool-digital-solutions/interferir-models 1.3.35 → 1.3.36
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 +2 -4
- package/dist/index.js +2 -4
- package/dist/schemas/index.d.ts +1 -2
- package/dist/schemas/index.js +2 -4
- package/dist/schemas/portia-article.schema.js +0 -6
- package/dist/schemas/theme.schema.js +0 -2
- package/dist/schemas/use-case.schema.js +0 -9
- package/dist/types/general-config.type.d.ts +0 -2
- package/dist/types/general-config.type.js +0 -2
- package/dist/types/index.d.ts +1 -2
- package/dist/types/notification.type.d.ts +0 -1
- package/dist/types/notification.type.js +0 -1
- package/dist/types/portia-article.type.d.ts +0 -4
- package/dist/types/theme.type.d.ts +1 -2
- package/dist/types/use-case.type.d.ts +0 -4
- package/package.json +1 -1
- package/dist/schemas/instant-research.schema.d.ts +0 -28
- package/dist/schemas/instant-research.schema.js +0 -181
- package/dist/types/instant-research.type.d.ts +0 -192
- package/dist/types/instant-research.type.js +0 -41
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ import { IGeneralConfigSub, IGeneralConfigSubModel } from './types/general-confi
|
|
|
21
21
|
import { IGeneralConfig, IGeneralConfigModel } from './types/general-config.type';
|
|
22
22
|
import { IImage, IImageModel } from './types/image.type';
|
|
23
23
|
import { IIndustry, IIndustryModel } from './types/industry.type';
|
|
24
|
-
import { IInstantResearch, IInstantResearchModel } from './types/instant-research.type';
|
|
25
24
|
import { IInvestor, IInvestorModel } from './types/investor.type';
|
|
26
25
|
import { ILike, ILikeModel } from './types/like.type';
|
|
27
26
|
import { INews, INewsModel } from './types/news.type';
|
|
@@ -93,7 +92,6 @@ import UserTokenSchema from './schemas/user-token.schema';
|
|
|
93
92
|
import UserSchema from './schemas/user.schema';
|
|
94
93
|
import CompanySchema from './schemas/company.schema';
|
|
95
94
|
import PortiaArticleSchema from './schemas/portia-article.schema';
|
|
96
|
-
import InstantResearchSchema from './schemas/instant-research.schema';
|
|
97
95
|
import ContactMessageSchema from './schemas/contact-message.schema';
|
|
98
96
|
import ContactStartupSchema from './schemas/contact-startup.schema';
|
|
99
97
|
import ContentSchema from './schemas/content.schema';
|
|
@@ -165,5 +163,5 @@ import AiTaskResearchManagerOutputPresentationSubmissionSchema from './schemas/a
|
|
|
165
163
|
import AiTaskResearchManagerOutputPresentationSchema from './schemas/ai-task-research-manager-output-presentation.schema';
|
|
166
164
|
import VisionBoardSchema from './schemas/visionboard.schema';
|
|
167
165
|
import AiHrAssessmentQuestionSchema from './schemas/ai-hr-assessment-question.schema';
|
|
168
|
-
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,
|
|
169
|
-
export { BadgeSchema, AiTaskSchema, AiTaskSubmissionSchema, ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema,
|
|
166
|
+
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, 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, IAiHrAssessmentQuestion, IAiHrAssessmentQuestionModel, };
|
|
167
|
+
export { BadgeSchema, AiTaskSchema, AiTaskSubmissionSchema, ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema, 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, AiHrAssessmentQuestionSchema };
|
package/dist/index.js
CHANGED
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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.
|
|
7
|
-
exports.AiHrAssessmentQuestionSchema = 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 =
|
|
6
|
+
exports.CompetitorAnalysisSchema = 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.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.AiHrAssessmentQuestionSchema = 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 = 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"));
|
|
@@ -35,8 +35,6 @@ const company_schema_1 = __importDefault(require("./schemas/company.schema"));
|
|
|
35
35
|
exports.CompanySchema = company_schema_1.default;
|
|
36
36
|
const portia_article_schema_1 = __importDefault(require("./schemas/portia-article.schema"));
|
|
37
37
|
exports.PortiaArticleSchema = portia_article_schema_1.default;
|
|
38
|
-
const instant_research_schema_1 = __importDefault(require("./schemas/instant-research.schema"));
|
|
39
|
-
exports.InstantResearchSchema = instant_research_schema_1.default;
|
|
40
38
|
const contact_message_schema_1 = __importDefault(require("./schemas/contact-message.schema"));
|
|
41
39
|
exports.ContactMessageSchema = contact_message_schema_1.default;
|
|
42
40
|
const contact_startup_schema_1 = __importDefault(require("./schemas/contact-startup.schema"));
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ import UserTokenSchema from './user-token.schema';
|
|
|
14
14
|
import UserSchema from './user.schema';
|
|
15
15
|
import CompanySchema from './company.schema';
|
|
16
16
|
import PortiaArticleSchema from './portia-article.schema';
|
|
17
|
-
import InstantResearchSchema from './instant-research.schema';
|
|
18
17
|
import ContactMessageSchema from './contact-message.schema';
|
|
19
18
|
import ContactStartupSchema from './contact-startup.schema';
|
|
20
19
|
import ContentSchema from './content.schema';
|
|
@@ -83,4 +82,4 @@ import VisionBoardSchema from './visionboard.schema';
|
|
|
83
82
|
import AiTaskResearchManagerOutputPresentationSubmissionSchema from './ai-task-research-manager-output-presentation-submission.schema';
|
|
84
83
|
import AiTaskResearchManagerOutputPresentationSchema from './ai-task-research-manager-output-presentation.schema';
|
|
85
84
|
import AiHrAssessmentQuestionSchema from './ai-hr-assessment-question.schema';
|
|
86
|
-
export { AiTaskSchema, AiTaskSubmissionSchema, ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema,
|
|
85
|
+
export { AiTaskSchema, AiTaskSubmissionSchema, ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema, ContactMessageSchema, ContactStartupSchema, ContentSchema, FaqSchema, UseCaseSchema, NewsSchema, LikeSchema, SparkSchema, SparkUseCaseSchema, FollowContentSchema, GeneralConfigSchema, GeneralConfigSubSchema, DraftVersionSchema, NotificationSchema, OtpSchema, SuggestSchema, UserVisitSchema, CompetitorSchema, CompanyFundingRoundSchema, BookmarkSchema, AiConversationSchema, AiConversationMessageSchema, AiConversationTrackingTaskSchema, BatchHistorySchema, CompanyClusterSchema, CompanyMarketingSchema, InvestorSchema, RelatedThemeSchema, StartupVectorAnyEntitySchema, UpdateJobSchema, UseCaseDiscoverySchema, UseCaseDiscoveryProblemSchema, CompetitorAnalysisSchema, FeaturedThemeSchema, HighlightSchema, NewsHubSchema, AiAssistantSchema, TeamSchema, TeamMemberSchema, CompanySubOrganizationSchema, HighlightNoteSchema, AiTaskResearchManagerOutputSchema, AiTaskOutlineSchema, AiTaskShareSchema, BadgeSchema, AiTopUseCaseSchema, AiUseCaseAnalysisNodeSchema, AiUseCaseAnalysisSchema, AiHrCandidateSchema, AiHrCandidateCompanySchema, BugReportSchema, AiTaskUseCaseRelatedUseCaseSchema, AiWeeklyInsightSchema, AiTaskPortiaArticleRelatedPortiaArticleSchema, AiTaskNewsManagerOutputSchema, AiHrCandidateOutputSchema, AiHrCandidateTopCandidateSchema, AiHrCandidateProfileSchema, AiEntrapeerKnowledgeBaseSchema, AiTaskCurationManagerOutputSchema, AiTaskCompanyRelatedCompanySchema, AiTaskResearchManagerOutputSummarySubmissionSchema, AiTaskResearchManagerOutputSummarySchema, VisionBoardSchema, AiTaskResearchManagerOutputPresentationSubmissionSchema, AiTaskResearchManagerOutputPresentationSchema, AiHrAssessmentQuestionSchema };
|
package/dist/schemas/index.js
CHANGED
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UseCaseDiscoveryProblemSchema = exports.UseCaseDiscoverySchema = exports.UpdateJobSchema = exports.StartupVectorAnyEntitySchema = exports.RelatedThemeSchema = exports.InvestorSchema = exports.CompanyMarketingSchema = exports.CompanyClusterSchema = exports.BatchHistorySchema = 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.
|
|
7
|
-
exports.AiHrAssessmentQuestionSchema = exports.AiTaskResearchManagerOutputPresentationSchema = exports.AiTaskResearchManagerOutputPresentationSubmissionSchema = exports.VisionBoardSchema = exports.AiTaskResearchManagerOutputSummarySchema = exports.AiTaskResearchManagerOutputSummarySubmissionSchema = exports.AiTaskCompanyRelatedCompanySchema = exports.AiTaskCurationManagerOutputSchema = exports.AiEntrapeerKnowledgeBaseSchema = exports.AiHrCandidateProfileSchema = exports.AiHrCandidateTopCandidateSchema = exports.AiHrCandidateOutputSchema = exports.AiTaskNewsManagerOutputSchema = exports.AiTaskPortiaArticleRelatedPortiaArticleSchema = exports.AiWeeklyInsightSchema = exports.AiTaskUseCaseRelatedUseCaseSchema = exports.BugReportSchema = exports.AiHrCandidateCompanySchema = exports.AiHrCandidateSchema = exports.AiUseCaseAnalysisSchema = exports.AiUseCaseAnalysisNodeSchema = exports.AiTopUseCaseSchema = exports.BadgeSchema = exports.AiTaskShareSchema = exports.AiTaskOutlineSchema = exports.AiTaskResearchManagerOutputSchema = exports.HighlightNoteSchema = exports.CompanySubOrganizationSchema = exports.TeamMemberSchema = exports.TeamSchema = exports.AiAssistantSchema = exports.NewsHubSchema = exports.HighlightSchema = exports.FeaturedThemeSchema =
|
|
6
|
+
exports.CompetitorAnalysisSchema = exports.UseCaseDiscoveryProblemSchema = exports.UseCaseDiscoverySchema = exports.UpdateJobSchema = exports.StartupVectorAnyEntitySchema = exports.RelatedThemeSchema = exports.InvestorSchema = exports.CompanyMarketingSchema = exports.CompanyClusterSchema = exports.BatchHistorySchema = 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.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 = void 0;
|
|
7
|
+
exports.AiHrAssessmentQuestionSchema = exports.AiTaskResearchManagerOutputPresentationSchema = exports.AiTaskResearchManagerOutputPresentationSubmissionSchema = exports.VisionBoardSchema = exports.AiTaskResearchManagerOutputSummarySchema = exports.AiTaskResearchManagerOutputSummarySubmissionSchema = exports.AiTaskCompanyRelatedCompanySchema = exports.AiTaskCurationManagerOutputSchema = exports.AiEntrapeerKnowledgeBaseSchema = exports.AiHrCandidateProfileSchema = exports.AiHrCandidateTopCandidateSchema = exports.AiHrCandidateOutputSchema = exports.AiTaskNewsManagerOutputSchema = exports.AiTaskPortiaArticleRelatedPortiaArticleSchema = exports.AiWeeklyInsightSchema = exports.AiTaskUseCaseRelatedUseCaseSchema = exports.BugReportSchema = exports.AiHrCandidateCompanySchema = exports.AiHrCandidateSchema = exports.AiUseCaseAnalysisSchema = exports.AiUseCaseAnalysisNodeSchema = exports.AiTopUseCaseSchema = exports.BadgeSchema = exports.AiTaskShareSchema = exports.AiTaskOutlineSchema = exports.AiTaskResearchManagerOutputSchema = exports.HighlightNoteSchema = exports.CompanySubOrganizationSchema = exports.TeamMemberSchema = exports.TeamSchema = exports.AiAssistantSchema = exports.NewsHubSchema = exports.HighlightSchema = exports.FeaturedThemeSchema = void 0;
|
|
8
8
|
const theme_schema_1 = __importDefault(require("./theme.schema"));
|
|
9
9
|
exports.ThemeSchema = theme_schema_1.default;
|
|
10
10
|
const problem_schema_1 = __importDefault(require("./problem.schema"));
|
|
@@ -37,8 +37,6 @@ const company_schema_1 = __importDefault(require("./company.schema"));
|
|
|
37
37
|
exports.CompanySchema = company_schema_1.default;
|
|
38
38
|
const portia_article_schema_1 = __importDefault(require("./portia-article.schema"));
|
|
39
39
|
exports.PortiaArticleSchema = portia_article_schema_1.default;
|
|
40
|
-
const instant_research_schema_1 = __importDefault(require("./instant-research.schema"));
|
|
41
|
-
exports.InstantResearchSchema = instant_research_schema_1.default;
|
|
42
40
|
const contact_message_schema_1 = __importDefault(require("./contact-message.schema"));
|
|
43
41
|
exports.ContactMessageSchema = contact_message_schema_1.default;
|
|
44
42
|
const contact_startup_schema_1 = __importDefault(require("./contact-startup.schema"));
|
|
@@ -56,12 +56,6 @@ const portiaArticleSchema = new mongoose_1.Schema({
|
|
|
56
56
|
default: null,
|
|
57
57
|
},
|
|
58
58
|
cardDescription: { type: String, default: '' },
|
|
59
|
-
instantResearches: [
|
|
60
|
-
{
|
|
61
|
-
instantResearchId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'InstantResearch' },
|
|
62
|
-
score: { type: Number, default: 0 },
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
59
|
researches: [
|
|
66
60
|
{
|
|
67
61
|
researchId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Theme' },
|
|
@@ -72,7 +72,6 @@ const themeSchema = new mongoose_1.Schema({
|
|
|
72
72
|
enum: Object.values(_config_1.ContentDraftStatus),
|
|
73
73
|
default: _config_1.ContentDraftStatus.DEFAULT,
|
|
74
74
|
},
|
|
75
|
-
instantResearchId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'InstantResearch' },
|
|
76
75
|
sfTags: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFTag' }],
|
|
77
76
|
sfIndustries: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Industry' }],
|
|
78
77
|
sfTechnologies: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Technology' }],
|
|
@@ -128,7 +127,6 @@ const excludeNonNullField = (schema, options) => {
|
|
|
128
127
|
schema.pre('count', addCondition);
|
|
129
128
|
schema.pre('aggregate', addAggregateCondition);
|
|
130
129
|
};
|
|
131
|
-
themeSchema.plugin(excludeNonNullField, { fieldName: 'instantResearchId' });
|
|
132
130
|
themeSchema.pre('save', function (next) {
|
|
133
131
|
const user = express_http_context_1.default.get('user');
|
|
134
132
|
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
@@ -54,15 +54,6 @@ const useCaseSchema = new mongoose_1.Schema({
|
|
|
54
54
|
sfCategories: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFCategory', index: true }],
|
|
55
55
|
sfSubCategories: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFSubCategory', index: true }],
|
|
56
56
|
sfTags: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFTag' }],
|
|
57
|
-
instantResearches: [
|
|
58
|
-
{
|
|
59
|
-
instantResearchId: {
|
|
60
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
61
|
-
ref: 'InstantResearch',
|
|
62
|
-
},
|
|
63
|
-
score: { type: Number, default: 0 },
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
57
|
externalParameter: {
|
|
67
58
|
approvedByAI: { type: Boolean, default: false },
|
|
68
59
|
publishedByAI: { type: Boolean, default: false },
|
|
@@ -41,7 +41,6 @@ export declare enum Context {
|
|
|
41
41
|
SENDER_EMAIL = "sender_email",
|
|
42
42
|
SENDER_EMAIL_STARTUP_WELCOME = "sender_email_startup_welcome",
|
|
43
43
|
SPARK = "spark",
|
|
44
|
-
INSTANT_RESEARCH = "instantResearch",
|
|
45
44
|
AI_AGENT = "aiAgent",
|
|
46
45
|
HR_MANAGER = "hrManager",
|
|
47
46
|
REGULAR_TRACKING_REPORT = "regularTrackingReport",
|
|
@@ -62,7 +61,6 @@ export declare enum Key {
|
|
|
62
61
|
SUGGEST_UPDATE_PROD = "suggest_update_prod",
|
|
63
62
|
EMAIL = "email",
|
|
64
63
|
DOMAIN = "domain",
|
|
65
|
-
CONTACT_US_FOR_INSTANT_RESEARCH_IN_STARTUP_PROD = "contact_us_for_instant_research_in_startup_prod",
|
|
66
64
|
SENT_TO_ENTRAMIND_DAYS = "sent_to_entramind_days",
|
|
67
65
|
MINUTE = "minute",
|
|
68
66
|
RESEARCH_BETA = "research_beta",
|
|
@@ -19,7 +19,6 @@ var Context;
|
|
|
19
19
|
Context["SENDER_EMAIL"] = "sender_email";
|
|
20
20
|
Context["SENDER_EMAIL_STARTUP_WELCOME"] = "sender_email_startup_welcome";
|
|
21
21
|
Context["SPARK"] = "spark";
|
|
22
|
-
Context["INSTANT_RESEARCH"] = "instantResearch";
|
|
23
22
|
Context["AI_AGENT"] = "aiAgent";
|
|
24
23
|
Context["HR_MANAGER"] = "hrManager";
|
|
25
24
|
Context["REGULAR_TRACKING_REPORT"] = "regularTrackingReport";
|
|
@@ -41,7 +40,6 @@ var Key;
|
|
|
41
40
|
Key["SUGGEST_UPDATE_PROD"] = "suggest_update_prod";
|
|
42
41
|
Key["EMAIL"] = "email";
|
|
43
42
|
Key["DOMAIN"] = "domain";
|
|
44
|
-
Key["CONTACT_US_FOR_INSTANT_RESEARCH_IN_STARTUP_PROD"] = "contact_us_for_instant_research_in_startup_prod";
|
|
45
43
|
Key["SENT_TO_ENTRAMIND_DAYS"] = "sent_to_entramind_days";
|
|
46
44
|
Key["MINUTE"] = "minute";
|
|
47
45
|
Key["RESEARCH_BETA"] = "research_beta";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ import { IGeneralConfigSub, IGeneralConfigSubModel } from './general-config-sub.
|
|
|
20
20
|
import { IGeneralConfig, IGeneralConfigModel } from './general-config.type';
|
|
21
21
|
import { IImage, IImageModel } from './image.type';
|
|
22
22
|
import { IIndustry, IIndustryModel } from './industry.type';
|
|
23
|
-
import { IInstantResearch, IInstantResearchModel } from './instant-research.type';
|
|
24
23
|
import { IInvestor, IInvestorModel } from './investor.type';
|
|
25
24
|
import { ILike, ILikeModel } from './like.type';
|
|
26
25
|
import { INews, INewsModel } from './news.type';
|
|
@@ -86,4 +85,4 @@ import { IVisionBoard, IVisionBoardModel } from './visionboard.type';
|
|
|
86
85
|
import { IAiTaskResearchManagerOutputPresentationSubmission, IAiTaskResearchManagerOutputPresentationSubmissionModel } from './ai-task-research-manager-output-presentation-submission.type';
|
|
87
86
|
import { IAiTaskResearchManagerOutputPresentation, IAiTaskResearchManagerOutputPresentationModel } from './ai-task-research-manager-output-presentation.type';
|
|
88
87
|
import { IAiHrAssessmentQuestion, IAiHrAssessmentQuestionModel } from './ai-hr-assessment-question.type';
|
|
89
|
-
export { IAiConversation, IAiConversationModel, IAiAssistant, IAiAssistantModel, IAiConversationMessage, IAiConversationMessageModel, IAiConversationTrackingTask, IAiConversationTrackingTaskModel, IBackendError, IBackendErrorModel, IBatchHistory, IBookmark, IBookmarkModel, ICompany, ICompanyModel, ICompanyCluster, ICompanyClusterModel, ICompanyFundingRound, ICompanyFundingRoundModel, ICompanyMarketing, ICompanyMarketingModel, ICompetitor, ICompetitorModel, ICompetitorAnalysis, ICompetitorAnalysisModel, IContactMessage, IContactMessageModel, IContactStartup, IContactStartupModel, IContent, IContentModel, IDraftVersion, IDraftVersionModel, IFaq, IFaqModel, IFeaturedTheme, IFeaturedThemeModel, IFoamTree, IFoamTreeModel, IFollowContent, IFollowContentModel, IGeneralConfigSub, IGeneralConfigSubModel, IGeneralConfig, IGeneralConfigModel, IImage, IImageModel, IIndustry, IIndustryModel,
|
|
88
|
+
export { IAiConversation, IAiConversationModel, IAiAssistant, IAiAssistantModel, IAiConversationMessage, IAiConversationMessageModel, IAiConversationTrackingTask, IAiConversationTrackingTaskModel, IBackendError, IBackendErrorModel, IBatchHistory, IBookmark, IBookmarkModel, ICompany, ICompanyModel, ICompanyCluster, ICompanyClusterModel, ICompanyFundingRound, ICompanyFundingRoundModel, ICompanyMarketing, ICompanyMarketingModel, ICompetitor, ICompetitorModel, ICompetitorAnalysis, ICompetitorAnalysisModel, IContactMessage, IContactMessageModel, IContactStartup, IContactStartupModel, IContent, IContentModel, IDraftVersion, IDraftVersionModel, IFaq, IFaqModel, IFeaturedTheme, IFeaturedThemeModel, IFoamTree, IFoamTreeModel, IFollowContent, IFollowContentModel, IGeneralConfigSub, IGeneralConfigSubModel, IGeneralConfig, IGeneralConfigModel, IImage, IImageModel, IIndustry, IIndustryModel, 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, IUseCaseDiscovery, IUseCaseDiscoveryModel, IUseCaseDiscoveryProblem, IUseCaseDiscoveryProblemModel, IUseCase, IUseCaseModel, IUserToken, IUserTokenModel, IUserVisit, IUserVisitModel, IUser, IUserModel, ICompetitorGrid, ICompetitorGridModel, AIStatus, IHighlight, IHighlightModel, IHighlightNote, IHighlightNoteModel, INewsHub, INewsHubModel, ITeam, ITeamModel, ITeamMember, ITeamMemberModel, IAiTask, IAiTaskModel, IAiTaskSubmission, IAiTaskSubmissionModel, ICompanySubOrganizationModel, ICompanySubOrganization, 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, IAiTaskCompanyRelatedCompany, IAiTaskCompanyRelatedCompanyModel, IAiTaskResearchManagerOutputSummarySubmission, IAiTaskResearchManagerOutputSummarySubmissionModel, IAiTaskResearchManagerOutputSummary, IAiTaskResearchManagerOutputSummaryModel, IVisionBoard, IVisionBoardModel, IAiTaskResearchManagerOutputPresentationSubmission, IAiTaskResearchManagerOutputPresentationSubmissionModel, IAiTaskResearchManagerOutputPresentation, IAiTaskResearchManagerOutputPresentationModel, IAiHrAssessmentQuestion, IAiHrAssessmentQuestionModel, };
|
|
@@ -10,7 +10,6 @@ var MessageType;
|
|
|
10
10
|
(function (MessageType) {
|
|
11
11
|
MessageType["AI_AGENT"] = "aiAgent";
|
|
12
12
|
MessageType["COMPETITOR"] = "competitor";
|
|
13
|
-
MessageType["INSTANT_RESEARCH"] = "instantResearch";
|
|
14
13
|
MessageType["RESEARCH"] = "research";
|
|
15
14
|
MessageType["PIVOT_ANALYSIS"] = "pivotAnalysis";
|
|
16
15
|
MessageType["FOLLOW"] = "follow";
|
|
@@ -90,10 +90,6 @@ export interface IPortiaArticle extends BaseSchema {
|
|
|
90
90
|
sfCategories: Types.ObjectId[] | ISFCategory[];
|
|
91
91
|
sfSubCategories: Types.ObjectId[] | ISFSubCategory[];
|
|
92
92
|
sfTags: Types.ObjectId[] | ISFTag[];
|
|
93
|
-
instantResearches: {
|
|
94
|
-
instantResearchId: Types.ObjectId;
|
|
95
|
-
score: number;
|
|
96
|
-
}[];
|
|
97
93
|
researches: {
|
|
98
94
|
researchId: Types.ObjectId;
|
|
99
95
|
score: number;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import { Types } from 'mongoose';
|
|
26
|
-
import { IImage, ISFTag, IIndustry, ITechnology, ISFCategory, ISFSubCategory, IUser
|
|
26
|
+
import { IImage, ISFTag, IIndustry, ITechnology, ISFCategory, ISFSubCategory, IUser } from './';
|
|
27
27
|
import { BaseModel, BaseSchema, ContentDraftStatus, ContentStatus, ContentStatusCount } from '../config';
|
|
28
28
|
interface ThemeContent {
|
|
29
29
|
title?: string;
|
|
@@ -46,7 +46,6 @@ export interface ITheme extends BaseSchema {
|
|
|
46
46
|
solutionProviderCount?: ContentStatusCount | number;
|
|
47
47
|
actorsCount?: ContentStatusCount | number;
|
|
48
48
|
showCounts?: boolean;
|
|
49
|
-
instantResearchId?: Types.ObjectId | IInstantResearch;
|
|
50
49
|
status: ContentStatus;
|
|
51
50
|
draftVersionStatus?: ContentDraftStatus | null;
|
|
52
51
|
sfTags?: Types.ObjectId[] | ISFTag[];
|
|
@@ -68,10 +68,6 @@ export interface IUseCase extends BaseSchema {
|
|
|
68
68
|
sfSubCategories: Types.ObjectId[] | ISFSubCategory[];
|
|
69
69
|
sfTags: Types.ObjectId[] | ISFTag[];
|
|
70
70
|
externalParameter: ExternalParameter;
|
|
71
|
-
instantResearches: {
|
|
72
|
-
instantResearchId: Types.ObjectId;
|
|
73
|
-
score: number;
|
|
74
|
-
}[];
|
|
75
71
|
publishDate?: number;
|
|
76
72
|
aiTaskResearchManagerOutputs?: Types.ObjectId[] | IAiTaskResearchManagerOutput[];
|
|
77
73
|
}
|
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
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 { Schema } from 'mongoose';
|
|
26
|
-
import type { IInstantResearch, IInstantResearchModel } from '../types';
|
|
27
|
-
declare const instantResearchSchema: Schema<IInstantResearch, IInstantResearchModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IInstantResearch>;
|
|
28
|
-
export default instantResearchSchema;
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const mongoose_1 = require("mongoose");
|
|
7
|
-
const express_http_context_1 = __importDefault(require("express-http-context"));
|
|
8
|
-
const instant_research_type_1 = require("../types/instant-research.type");
|
|
9
|
-
const _config_1 = require("../config");
|
|
10
|
-
const instantResearchSchema = new mongoose_1.Schema({
|
|
11
|
-
userId: { type: mongoose_1.Schema.Types.ObjectId, required: true, ref: 'User' },
|
|
12
|
-
slug: { type: String, required: [true, 'slug is required'], unique: true, index: true },
|
|
13
|
-
brief: { type: String, required: true },
|
|
14
|
-
briefWriteUp: { type: String, default: '' },
|
|
15
|
-
titleInfo: {
|
|
16
|
-
type: {
|
|
17
|
-
success: { type: Boolean },
|
|
18
|
-
text: { type: String },
|
|
19
|
-
reason: { type: String },
|
|
20
|
-
},
|
|
21
|
-
default: null,
|
|
22
|
-
},
|
|
23
|
-
targetMarkets: {
|
|
24
|
-
type: {
|
|
25
|
-
region: {
|
|
26
|
-
type: String,
|
|
27
|
-
enum: Object.values(instant_research_type_1.Region),
|
|
28
|
-
default: instant_research_type_1.Region.GLOBAL,
|
|
29
|
-
},
|
|
30
|
-
selectedCountries: {
|
|
31
|
-
type: [String],
|
|
32
|
-
},
|
|
33
|
-
selectedContinents: {
|
|
34
|
-
type: [String],
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
default: null,
|
|
38
|
-
},
|
|
39
|
-
status: {
|
|
40
|
-
type: String,
|
|
41
|
-
enum: Object.values(instant_research_type_1.Status),
|
|
42
|
-
default: instant_research_type_1.Status.BRIEFING,
|
|
43
|
-
},
|
|
44
|
-
reportType: {
|
|
45
|
-
type: String,
|
|
46
|
-
enum: Object.values(instant_research_type_1.ReportType),
|
|
47
|
-
},
|
|
48
|
-
persona: {
|
|
49
|
-
type: String,
|
|
50
|
-
enum: Object.values(instant_research_type_1.Persona),
|
|
51
|
-
},
|
|
52
|
-
executiveSummary: { type: String, default: '' },
|
|
53
|
-
companyAnalysis: {
|
|
54
|
-
finished: { type: Number },
|
|
55
|
-
inProgress: { type: Number },
|
|
56
|
-
},
|
|
57
|
-
metadata: {
|
|
58
|
-
generalInfoSection: {
|
|
59
|
-
portiaArticlesCount: { type: Object, default: { publish: 0, private: 0, draft: 0, prePublish: 0 } },
|
|
60
|
-
useCaseCount: { type: Object, default: { publish: 0, private: 0, draft: 0, prePublish: 0 } },
|
|
61
|
-
useCaseIdentifiedCount: { type: Object, default: { publish: 0, private: 0, draft: 0, prePublish: 0 } },
|
|
62
|
-
},
|
|
63
|
-
enterpriseStartupOthersSection: {
|
|
64
|
-
enterpriseCount: { type: Object, default: { publish: 0, private: 0, draft: 0, prePublish: 0 } },
|
|
65
|
-
startupCount: { type: Object, default: { publish: 0, private: 0, draft: 0, prePublish: 0 } },
|
|
66
|
-
otherCount: { type: Object, default: { publish: 0, private: 0, draft: 0, prePublish: 0 } },
|
|
67
|
-
},
|
|
68
|
-
geographicDistributionSection: {
|
|
69
|
-
startupContinentInfo: [
|
|
70
|
-
{
|
|
71
|
-
type: Object,
|
|
72
|
-
default: {
|
|
73
|
-
name: { type: String, default: '' },
|
|
74
|
-
companyCount: { type: Object, default: { publish: 0, private: 0, draft: 0, prePublish: 0 } },
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
],
|
|
78
|
-
enterpriseContinentInfo: [
|
|
79
|
-
{
|
|
80
|
-
type: Object,
|
|
81
|
-
default: {
|
|
82
|
-
name: { type: String, default: '' },
|
|
83
|
-
companyCount: { type: Object, default: { publish: 0, private: 0, draft: 0, prePublish: 0 } },
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
supercasesUsecasesSection: {
|
|
89
|
-
superCaseCount: { type: Object, default: { publish: 0, private: 0, draft: 0, prePublish: 0 } },
|
|
90
|
-
useCaseCount: { type: Object, default: { publish: 0, private: 0, draft: 0, prePublish: 0 } },
|
|
91
|
-
},
|
|
92
|
-
portiaArticlesByCategorySection: {
|
|
93
|
-
categoryStats: [
|
|
94
|
-
{
|
|
95
|
-
type: Object,
|
|
96
|
-
default: { name: { type: String }, count: { type: Object, default: { publish: 0, private: 0, draft: 0, prePublish: 0 } } },
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
lastVisited: { type: Number },
|
|
102
|
-
source: [{ type: String }],
|
|
103
|
-
mappedSource: [
|
|
104
|
-
{
|
|
105
|
-
id: { type: Number },
|
|
106
|
-
source: { type: String },
|
|
107
|
-
},
|
|
108
|
-
],
|
|
109
|
-
description: { type: String },
|
|
110
|
-
showCounts: { type: Boolean, default: false },
|
|
111
|
-
marketResearch: [
|
|
112
|
-
{
|
|
113
|
-
title: String,
|
|
114
|
-
content: String,
|
|
115
|
-
},
|
|
116
|
-
],
|
|
117
|
-
reportDetails: { type: mongoose_1.Schema.Types.Mixed },
|
|
118
|
-
sectionHeaders: [{ type: String }],
|
|
119
|
-
selectedCompanies: [{ type: String }],
|
|
120
|
-
useCasesByGeography: {
|
|
121
|
-
infoList: [
|
|
122
|
-
{
|
|
123
|
-
technologyTag: { type: String },
|
|
124
|
-
continent: { type: String },
|
|
125
|
-
companyCount: { type: Number },
|
|
126
|
-
},
|
|
127
|
-
],
|
|
128
|
-
},
|
|
129
|
-
instantSparks: [
|
|
130
|
-
{
|
|
131
|
-
sparkId: { type: mongoose_1.Schema.Types.ObjectId },
|
|
132
|
-
status: {
|
|
133
|
-
type: String,
|
|
134
|
-
enum: Object.values(instant_research_type_1.InstantSparkStatus),
|
|
135
|
-
},
|
|
136
|
-
sparkResponse: { type: mongoose_1.Schema.Types.Mixed },
|
|
137
|
-
useCaseCount: { type: Number },
|
|
138
|
-
mainWebpage: {
|
|
139
|
-
companyId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Companies' },
|
|
140
|
-
score: { type: Number },
|
|
141
|
-
companyName: { type: String },
|
|
142
|
-
webpage: { type: String },
|
|
143
|
-
},
|
|
144
|
-
error: { type: String },
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
|
-
focusAreas: [{ title: String, total: Number, locations: Object, companies: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company' }] }],
|
|
148
|
-
foamTrees: [{ label: { type: String }, weight: { type: Number }, id: { type: String }, type: { type: String }, groups: { type: Array } }],
|
|
149
|
-
writtenBy: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
150
|
-
sfIndustries: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Industry' }],
|
|
151
|
-
sfTechnologies: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Technology' }],
|
|
152
|
-
sfCategories: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFCategory' }],
|
|
153
|
-
sfSubCategories: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFSubCategory' }],
|
|
154
|
-
sfTags: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFTag' }],
|
|
155
|
-
isBriefCompleted: { type: Boolean, default: false },
|
|
156
|
-
privForUsers: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
157
|
-
isDuplicate: { type: Boolean, required: true, default: false },
|
|
158
|
-
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
159
|
-
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
160
|
-
updatedDate: { type: Number, index: -1 },
|
|
161
|
-
createdDate: { type: Number, index: -1 },
|
|
162
|
-
}, _config_1.schemaOptions);
|
|
163
|
-
instantResearchSchema.pre('save', function (next) {
|
|
164
|
-
const user = express_http_context_1.default.get('user');
|
|
165
|
-
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
166
|
-
if (user) {
|
|
167
|
-
if (!this.createdBy)
|
|
168
|
-
this.createdBy = user._id;
|
|
169
|
-
if (!notUpdatedBy)
|
|
170
|
-
this.updatedBy = user._id;
|
|
171
|
-
}
|
|
172
|
-
next();
|
|
173
|
-
});
|
|
174
|
-
instantResearchSchema.pre('findOneAndUpdate', function (next) {
|
|
175
|
-
const user = express_http_context_1.default.get('user');
|
|
176
|
-
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
177
|
-
if (user && !notUpdatedBy)
|
|
178
|
-
this._update.updatedBy = user._id;
|
|
179
|
-
next();
|
|
180
|
-
});
|
|
181
|
-
exports.default = instantResearchSchema;
|
|
@@ -1,192 +0,0 @@
|
|
|
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';
|
|
26
|
-
import { ISFTag, ISFSubCategory, ISFCategory, ITechnology, IIndustry, IUser } from './';
|
|
27
|
-
import { BaseModel, BaseSchema, ContentStatusCount } from '../config';
|
|
28
|
-
export declare enum Region {
|
|
29
|
-
GLOBAL = "global",
|
|
30
|
-
CONTINENT = "continent"
|
|
31
|
-
}
|
|
32
|
-
export declare enum ReportType {
|
|
33
|
-
LEARN = "learn",
|
|
34
|
-
ANALYZE = "analyze",
|
|
35
|
-
STRATEGIZE = "strategize"
|
|
36
|
-
}
|
|
37
|
-
export declare enum Persona {
|
|
38
|
-
TREND_ANALYSIS = "trendAnalysis",
|
|
39
|
-
STARTUP_SCOUTING = "startupScouting",
|
|
40
|
-
INVESTING = "investing",
|
|
41
|
-
MARKET_RESEARCH = "marketResearch",
|
|
42
|
-
COMPETITOR_RESEARCH = "competitorResearch"
|
|
43
|
-
}
|
|
44
|
-
export declare enum Status {
|
|
45
|
-
BRIEFING = "briefing",
|
|
46
|
-
IN_PROGRESS = "inProgress",
|
|
47
|
-
DONE = "done",
|
|
48
|
-
PENDING = "pending",
|
|
49
|
-
FAILED = "failed",
|
|
50
|
-
STARTED = "started",
|
|
51
|
-
PRIVATE = "private",
|
|
52
|
-
PUBLISH = "publish"
|
|
53
|
-
}
|
|
54
|
-
export declare enum InstantSparkStatus {
|
|
55
|
-
FAILED = "FAILED",
|
|
56
|
-
CREATED = "CREATED",
|
|
57
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
58
|
-
COMPLETED = "COMPLETED",
|
|
59
|
-
SITEMAP_DONE = "SITEMAP_DONE"
|
|
60
|
-
}
|
|
61
|
-
interface ITargetMarkets {
|
|
62
|
-
region: Region;
|
|
63
|
-
selectedCountries: string[];
|
|
64
|
-
selectedContinents: string[];
|
|
65
|
-
}
|
|
66
|
-
interface ITitleInfo {
|
|
67
|
-
success: boolean;
|
|
68
|
-
text: string;
|
|
69
|
-
reason?: string;
|
|
70
|
-
}
|
|
71
|
-
export interface IContinentInfo {
|
|
72
|
-
name: string;
|
|
73
|
-
companyCount: ContentStatusCount | number;
|
|
74
|
-
}
|
|
75
|
-
interface IGeneralInfoSection {
|
|
76
|
-
portiaArticlesCount: ContentStatusCount | number;
|
|
77
|
-
useCaseCount: ContentStatusCount | number;
|
|
78
|
-
useCaseIdentifiedCount: ContentStatusCount | number;
|
|
79
|
-
}
|
|
80
|
-
interface IEnterpriseStartupOthersSection {
|
|
81
|
-
enterpriseCount: ContentStatusCount | number;
|
|
82
|
-
startupCount: ContentStatusCount | number;
|
|
83
|
-
otherCount: ContentStatusCount | number;
|
|
84
|
-
}
|
|
85
|
-
interface IGeographicDistributionSection {
|
|
86
|
-
startupContinentInfo: IContinentInfo[];
|
|
87
|
-
enterpriseContinentInfo: IContinentInfo[];
|
|
88
|
-
}
|
|
89
|
-
interface ISuperCasesUseCasesSection {
|
|
90
|
-
superCaseCount: ContentStatusCount | number;
|
|
91
|
-
useCaseCount: ContentStatusCount | number;
|
|
92
|
-
}
|
|
93
|
-
interface ICategoryStat {
|
|
94
|
-
name: string;
|
|
95
|
-
count: number;
|
|
96
|
-
}
|
|
97
|
-
interface IPortiaArticlesByCategorySection {
|
|
98
|
-
categoryStats: ICategoryStat[];
|
|
99
|
-
}
|
|
100
|
-
interface IMetadata {
|
|
101
|
-
generalInfoSection: IGeneralInfoSection;
|
|
102
|
-
enterpriseStartupOthersSection: IEnterpriseStartupOthersSection;
|
|
103
|
-
geographicDistributionSection: IGeographicDistributionSection;
|
|
104
|
-
supercasesUsecasesSection: ISuperCasesUseCasesSection;
|
|
105
|
-
portiaArticlesByCategorySection: IPortiaArticlesByCategorySection;
|
|
106
|
-
}
|
|
107
|
-
interface IUseCasesByGeographyInfo extends BaseSchema {
|
|
108
|
-
technologyTag: string;
|
|
109
|
-
continent: string;
|
|
110
|
-
companyCount: number;
|
|
111
|
-
}
|
|
112
|
-
interface IUseCasesByGeography extends BaseSchema {
|
|
113
|
-
infoList: IUseCasesByGeographyInfo[];
|
|
114
|
-
}
|
|
115
|
-
interface IMainWebpage extends BaseSchema {
|
|
116
|
-
companyId: Types.ObjectId;
|
|
117
|
-
score: number;
|
|
118
|
-
companyName: string;
|
|
119
|
-
webpage: string;
|
|
120
|
-
}
|
|
121
|
-
interface IInstantSpark extends BaseSchema {
|
|
122
|
-
sparkId: Types.ObjectId;
|
|
123
|
-
status: InstantSparkStatus;
|
|
124
|
-
sparkResponse?: Record<any, any>;
|
|
125
|
-
useCaseCount?: number;
|
|
126
|
-
mainWebpage: IMainWebpage;
|
|
127
|
-
error?: string;
|
|
128
|
-
}
|
|
129
|
-
interface ICompanyAnalysis extends BaseSchema {
|
|
130
|
-
finished: number;
|
|
131
|
-
inProgress: number;
|
|
132
|
-
}
|
|
133
|
-
interface IMarketResearch extends BaseSchema {
|
|
134
|
-
title: string;
|
|
135
|
-
content: string;
|
|
136
|
-
}
|
|
137
|
-
interface FocusArea {
|
|
138
|
-
title: string;
|
|
139
|
-
total: number;
|
|
140
|
-
locations: object;
|
|
141
|
-
companies: Types.ObjectId[];
|
|
142
|
-
}
|
|
143
|
-
interface FoamTree {
|
|
144
|
-
label: string;
|
|
145
|
-
weight: number;
|
|
146
|
-
id: string;
|
|
147
|
-
type: string;
|
|
148
|
-
groups: FoamTree[];
|
|
149
|
-
}
|
|
150
|
-
export interface IInstantResearch extends BaseSchema {
|
|
151
|
-
userId: Types.ObjectId;
|
|
152
|
-
slug: string;
|
|
153
|
-
brief: string;
|
|
154
|
-
briefWriteUp?: string;
|
|
155
|
-
titleInfo?: ITitleInfo;
|
|
156
|
-
targetMarkets?: ITargetMarkets;
|
|
157
|
-
status: Status;
|
|
158
|
-
reportType?: ReportType;
|
|
159
|
-
persona?: Persona;
|
|
160
|
-
executiveSummary?: string;
|
|
161
|
-
companyAnalysis?: ICompanyAnalysis;
|
|
162
|
-
metadata?: IMetadata;
|
|
163
|
-
lastVisited?: number;
|
|
164
|
-
marketResearch?: IMarketResearch[];
|
|
165
|
-
reportDetails: Record<string, any>;
|
|
166
|
-
sectionHeaders: string[];
|
|
167
|
-
selectedCompanies?: string[];
|
|
168
|
-
tags: string[];
|
|
169
|
-
source: string[];
|
|
170
|
-
mappedSource: {
|
|
171
|
-
id: number;
|
|
172
|
-
source: string;
|
|
173
|
-
}[];
|
|
174
|
-
description: string;
|
|
175
|
-
showCounts?: boolean;
|
|
176
|
-
useCasesByGeography: IUseCasesByGeography;
|
|
177
|
-
writtenBy?: Types.ObjectId[] | IUser[];
|
|
178
|
-
sfIndustries: Types.ObjectId[] | IIndustry[];
|
|
179
|
-
sfTechnologies: Types.ObjectId[] | ITechnology[];
|
|
180
|
-
sfCategories: Types.ObjectId[] | ISFCategory[];
|
|
181
|
-
sfSubCategories: Types.ObjectId[] | ISFSubCategory[];
|
|
182
|
-
sfTags: Types.ObjectId[] | ISFTag[];
|
|
183
|
-
instantSparks?: IInstantSpark[];
|
|
184
|
-
focusAreas: FocusArea[];
|
|
185
|
-
foamTrees: FoamTree[];
|
|
186
|
-
isBriefCompleted: boolean;
|
|
187
|
-
privForUsers?: Types.ObjectId[];
|
|
188
|
-
isDuplicate?: boolean;
|
|
189
|
-
}
|
|
190
|
-
export interface IInstantResearchModel extends BaseModel<IInstantResearch> {
|
|
191
|
-
}
|
|
192
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InstantSparkStatus = exports.Status = exports.Persona = exports.ReportType = exports.Region = void 0;
|
|
4
|
-
var Region;
|
|
5
|
-
(function (Region) {
|
|
6
|
-
Region["GLOBAL"] = "global";
|
|
7
|
-
Region["CONTINENT"] = "continent";
|
|
8
|
-
})(Region || (exports.Region = Region = {}));
|
|
9
|
-
var ReportType;
|
|
10
|
-
(function (ReportType) {
|
|
11
|
-
ReportType["LEARN"] = "learn";
|
|
12
|
-
ReportType["ANALYZE"] = "analyze";
|
|
13
|
-
ReportType["STRATEGIZE"] = "strategize";
|
|
14
|
-
})(ReportType || (exports.ReportType = ReportType = {}));
|
|
15
|
-
var Persona;
|
|
16
|
-
(function (Persona) {
|
|
17
|
-
Persona["TREND_ANALYSIS"] = "trendAnalysis";
|
|
18
|
-
Persona["STARTUP_SCOUTING"] = "startupScouting";
|
|
19
|
-
Persona["INVESTING"] = "investing";
|
|
20
|
-
Persona["MARKET_RESEARCH"] = "marketResearch";
|
|
21
|
-
Persona["COMPETITOR_RESEARCH"] = "competitorResearch";
|
|
22
|
-
})(Persona || (exports.Persona = Persona = {}));
|
|
23
|
-
var Status;
|
|
24
|
-
(function (Status) {
|
|
25
|
-
Status["BRIEFING"] = "briefing";
|
|
26
|
-
Status["IN_PROGRESS"] = "inProgress";
|
|
27
|
-
Status["DONE"] = "done";
|
|
28
|
-
Status["PENDING"] = "pending";
|
|
29
|
-
Status["FAILED"] = "failed";
|
|
30
|
-
Status["STARTED"] = "started";
|
|
31
|
-
Status["PRIVATE"] = "private";
|
|
32
|
-
Status["PUBLISH"] = "publish";
|
|
33
|
-
})(Status || (exports.Status = Status = {}));
|
|
34
|
-
var InstantSparkStatus;
|
|
35
|
-
(function (InstantSparkStatus) {
|
|
36
|
-
InstantSparkStatus["FAILED"] = "FAILED";
|
|
37
|
-
InstantSparkStatus["CREATED"] = "CREATED";
|
|
38
|
-
InstantSparkStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
39
|
-
InstantSparkStatus["COMPLETED"] = "COMPLETED";
|
|
40
|
-
InstantSparkStatus["SITEMAP_DONE"] = "SITEMAP_DONE";
|
|
41
|
-
})(InstantSparkStatus || (exports.InstantSparkStatus = InstantSparkStatus = {}));
|