@cool-digital-solutions/interferir-models 1.3.33 → 1.3.35
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 -3
- package/dist/index.js +3 -1
- package/dist/schemas/ai-hr-assessment-question.schema.d.ts +28 -0
- package/dist/schemas/ai-hr-assessment-question.schema.js +56 -0
- package/dist/schemas/index.d.ts +2 -1
- package/dist/schemas/index.js +3 -1
- package/dist/schemas/visionboard.schema.js +35 -20
- package/dist/types/ai-hr-assessment-question.type.d.ts +60 -0
- package/dist/types/ai-hr-assessment-question.type.js +9 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/visionboard.type.d.ts +57 -19
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ import { IAiWeeklyInsight, IAiWeeklyInsightModel } from './types/ai-weekly-insig
|
|
|
74
74
|
import { IStrategyGameBoard, IStrategyGameBoardModel } from './types/strategy-game-board.type';
|
|
75
75
|
import { IAiTaskPortiaArticleRelatedPortiaArticle, IAiTaskPortiaArticleRelatedPortiaArticleModel } from './types/ai-task-portia-article-related-portia-article.type';
|
|
76
76
|
import { IAiTaskNewsManagerOutput, IAiTaskNewsManagerOutputModel } from './types/ai-task-news-manager-output.type';
|
|
77
|
-
import { IAiEntrapeerKnowledgeBase, IAiEntrapeerKnowledgeBaseModel, IAiHrCandidateOutput, IAiHrCandidateOutputModel, IAiHrCandidateProfile, IAiHrCandidateProfileModel, IAiHrCandidateTopCandidate, IAiHrCandidateTopCandidateModel, IAiTaskResearchManagerOutputPresentation, IAiTaskResearchManagerOutputPresentationModel, IAiTaskResearchManagerOutputPresentationSubmission, IAiTaskResearchManagerOutputPresentationSubmissionModel, IAiTaskResearchManagerOutputSummary, IAiTaskResearchManagerOutputSummaryModel, IAiTaskResearchManagerOutputSummarySubmission, IAiTaskResearchManagerOutputSummarySubmissionModel } from './types';
|
|
77
|
+
import { IAiEntrapeerKnowledgeBase, IAiEntrapeerKnowledgeBaseModel, IAiHrAssessmentQuestion, IAiHrAssessmentQuestionModel, 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
80
|
import { IVisionBoard, IVisionBoardModel } from './types/visionboard.type';
|
|
@@ -164,5 +164,6 @@ import AiTaskResearchManagerOutputSummarySchema from './schemas/ai-task-research
|
|
|
164
164
|
import AiTaskResearchManagerOutputPresentationSubmissionSchema from './schemas/ai-task-research-manager-output-presentation-submission.schema';
|
|
165
165
|
import AiTaskResearchManagerOutputPresentationSchema from './schemas/ai-task-research-manager-output-presentation.schema';
|
|
166
166
|
import VisionBoardSchema from './schemas/visionboard.schema';
|
|
167
|
-
|
|
168
|
-
export {
|
|
167
|
+
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, 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, IAiHrAssessmentQuestion, IAiHrAssessmentQuestionModel, };
|
|
169
|
+
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, AiHrAssessmentQuestionSchema };
|
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.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;
|
|
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 = 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"));
|
|
@@ -177,3 +177,5 @@ const ai_task_research_manager_output_presentation_schema_1 = __importDefault(re
|
|
|
177
177
|
exports.AiTaskResearchManagerOutputPresentationSchema = ai_task_research_manager_output_presentation_schema_1.default;
|
|
178
178
|
const visionboard_schema_1 = __importDefault(require("./schemas/visionboard.schema"));
|
|
179
179
|
exports.VisionBoardSchema = visionboard_schema_1.default;
|
|
180
|
+
const ai_hr_assessment_question_schema_1 = __importDefault(require("./schemas/ai-hr-assessment-question.schema"));
|
|
181
|
+
exports.AiHrAssessmentQuestionSchema = ai_hr_assessment_question_schema_1.default;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { IAiHrAssessmentQuestion, IAiHrAssessmentQuestionModel } from '../types';
|
|
27
|
+
declare const aiHrAssessmentQuestionSchema: Schema<IAiHrAssessmentQuestion, IAiHrAssessmentQuestionModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAiHrAssessmentQuestion>;
|
|
28
|
+
export default aiHrAssessmentQuestionSchema;
|
|
@@ -0,0 +1,56 @@
|
|
|
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 _config_1 = require("../config");
|
|
9
|
+
const ai_hr_assessment_question_type_1 = require("../types/ai-hr-assessment-question.type");
|
|
10
|
+
const aiHrAssessmentQuestionSchema = new mongoose_1.Schema({
|
|
11
|
+
aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTask', default: null },
|
|
12
|
+
aiHrCandidate: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiHrCandidate', default: null },
|
|
13
|
+
assessmentQuestions: [
|
|
14
|
+
{
|
|
15
|
+
traitFamily: { type: String, enum: Object.values(ai_hr_assessment_question_type_1.TraitFamily), required: false },
|
|
16
|
+
trait: { type: String, required: false },
|
|
17
|
+
mainQuestion: { type: String, required: false },
|
|
18
|
+
backupQuestion: { type: String, required: false },
|
|
19
|
+
expectedAnswer: { type: String, required: false },
|
|
20
|
+
redFlags: [{ type: String }],
|
|
21
|
+
strongSignals: [{ type: String }],
|
|
22
|
+
scoringGuidance: { type: Object, default: {} },
|
|
23
|
+
preferredRange: [{ type: Number }],
|
|
24
|
+
description: { type: String, default: '' },
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
introQuestions: [
|
|
28
|
+
{
|
|
29
|
+
question: { type: String, required: false },
|
|
30
|
+
purpose: { type: String, required: false },
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
34
|
+
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
35
|
+
updatedDate: Number,
|
|
36
|
+
createdDate: Number,
|
|
37
|
+
}, _config_1.schemaOptions);
|
|
38
|
+
aiHrAssessmentQuestionSchema.pre('save', function (next) {
|
|
39
|
+
const user = express_http_context_1.default.get('user');
|
|
40
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
41
|
+
if (user) {
|
|
42
|
+
if (!this.createdBy)
|
|
43
|
+
this.createdBy = user._id;
|
|
44
|
+
if (!notUpdatedBy)
|
|
45
|
+
this.updatedBy = user._id;
|
|
46
|
+
}
|
|
47
|
+
next();
|
|
48
|
+
});
|
|
49
|
+
aiHrAssessmentQuestionSchema.pre('findOneAndUpdate', function (next) {
|
|
50
|
+
const user = express_http_context_1.default.get('user');
|
|
51
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
52
|
+
if (user && !notUpdatedBy)
|
|
53
|
+
this._update.updatedBy = user._id;
|
|
54
|
+
next();
|
|
55
|
+
});
|
|
56
|
+
exports.default = aiHrAssessmentQuestionSchema;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -82,4 +82,5 @@ import AiTaskResearchManagerOutputSummarySchema from './ai-task-research-manager
|
|
|
82
82
|
import VisionBoardSchema from './visionboard.schema';
|
|
83
83
|
import AiTaskResearchManagerOutputPresentationSubmissionSchema from './ai-task-research-manager-output-presentation-submission.schema';
|
|
84
84
|
import AiTaskResearchManagerOutputPresentationSchema from './ai-task-research-manager-output-presentation.schema';
|
|
85
|
-
|
|
85
|
+
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, InstantResearchSchema, 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
|
@@ -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.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.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 = void 0;
|
|
7
|
-
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 = exports.CompetitorAnalysisSchema = 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 = exports.CompetitorAnalysisSchema = 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"));
|
|
@@ -173,3 +173,5 @@ const ai_task_research_manager_output_presentation_submission_schema_1 = __impor
|
|
|
173
173
|
exports.AiTaskResearchManagerOutputPresentationSubmissionSchema = ai_task_research_manager_output_presentation_submission_schema_1.default;
|
|
174
174
|
const ai_task_research_manager_output_presentation_schema_1 = __importDefault(require("./ai-task-research-manager-output-presentation.schema"));
|
|
175
175
|
exports.AiTaskResearchManagerOutputPresentationSchema = ai_task_research_manager_output_presentation_schema_1.default;
|
|
176
|
+
const ai_hr_assessment_question_schema_1 = __importDefault(require("./ai-hr-assessment-question.schema"));
|
|
177
|
+
exports.AiHrAssessmentQuestionSchema = ai_hr_assessment_question_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
|
},
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { BaseModel, BaseSchema } from '../config';
|
|
26
|
+
import { Types } from 'mongoose';
|
|
27
|
+
import { IAiTask } from './ai-task.type';
|
|
28
|
+
import { IAiHrCandidate } from './ai-hr-candidate.type';
|
|
29
|
+
export declare enum TraitFamily {
|
|
30
|
+
COGNITIVE_TRAITS = "cognitiveTraits",
|
|
31
|
+
BEHAVIORAL_TRAITS = "behavioralTraits",
|
|
32
|
+
INTERESTS = "interests"
|
|
33
|
+
}
|
|
34
|
+
interface AssessmentQuestion {
|
|
35
|
+
traitFamily: TraitFamily;
|
|
36
|
+
trait: string;
|
|
37
|
+
mainQuestion: string;
|
|
38
|
+
backupQuestion: string;
|
|
39
|
+
expectedAnswer: string;
|
|
40
|
+
redFlags: string[];
|
|
41
|
+
strongSignals: string[];
|
|
42
|
+
scoringGuidance: {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
};
|
|
45
|
+
preferredRange: number[];
|
|
46
|
+
description: string;
|
|
47
|
+
}
|
|
48
|
+
interface IntroQuestion {
|
|
49
|
+
question: string;
|
|
50
|
+
purpose: string;
|
|
51
|
+
}
|
|
52
|
+
export interface IAiHrAssessmentQuestion extends BaseSchema {
|
|
53
|
+
aiTask: Types.ObjectId | IAiTask;
|
|
54
|
+
aiHrCandidate: Types.ObjectId | IAiHrCandidate;
|
|
55
|
+
assessmentQuestions: AssessmentQuestion[];
|
|
56
|
+
introQuestions: IntroQuestion[];
|
|
57
|
+
}
|
|
58
|
+
export interface IAiHrAssessmentQuestionModel extends BaseModel<IAiHrAssessmentQuestion> {
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TraitFamily = void 0;
|
|
4
|
+
var TraitFamily;
|
|
5
|
+
(function (TraitFamily) {
|
|
6
|
+
TraitFamily["COGNITIVE_TRAITS"] = "cognitiveTraits";
|
|
7
|
+
TraitFamily["BEHAVIORAL_TRAITS"] = "behavioralTraits";
|
|
8
|
+
TraitFamily["INTERESTS"] = "interests";
|
|
9
|
+
})(TraitFamily || (exports.TraitFamily = TraitFamily = {}));
|
package/dist/types/index.d.ts
CHANGED
|
@@ -85,4 +85,5 @@ import { IAiTaskResearchManagerOutputSummary, IAiTaskResearchManagerOutputSummar
|
|
|
85
85
|
import { IVisionBoard, IVisionBoardModel } from './visionboard.type';
|
|
86
86
|
import { IAiTaskResearchManagerOutputPresentationSubmission, IAiTaskResearchManagerOutputPresentationSubmissionModel } from './ai-task-research-manager-output-presentation-submission.type';
|
|
87
87
|
import { IAiTaskResearchManagerOutputPresentation, IAiTaskResearchManagerOutputPresentationModel } from './ai-task-research-manager-output-presentation.type';
|
|
88
|
-
|
|
88
|
+
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, 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, 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, };
|
|
@@ -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[];
|