@cool-digital-solutions/interferir-models 1.4.7 → 1.4.9
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 +5 -4
- package/dist/index.js +5 -3
- package/dist/schemas/{ai-hr-candidate-candidate-profile.schema.js → ai-hr-candidate-profile.schema.js} +21 -0
- package/dist/schemas/entity-reference.schema.d.ts +28 -0
- package/dist/schemas/entity-reference.schema.js +53 -0
- package/dist/schemas/index.d.ts +3 -2
- package/dist/schemas/index.js +5 -3
- package/dist/schemas/portia-article.schema.js +2 -0
- package/dist/schemas/use-case.schema.js +2 -0
- package/dist/types/ai-hr-candidate-profile.type.d.ts +19 -0
- package/dist/types/entity-reference.type.d.ts +40 -0
- package/dist/types/entity-reference.type.js +8 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/portia-article.type.d.ts +2 -0
- package/dist/types/use-case.type.d.ts +2 -0
- package/package.json +1 -1
- /package/dist/schemas/{ai-hr-candidate-candidate-profile.schema.d.ts → ai-hr-candidate-profile.schema.d.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ import { IAiWeeklyInsight, IAiWeeklyInsightModel } from './types/ai-weekly-insig
|
|
|
73
73
|
import { IStrategyGameBoard, IStrategyGameBoardModel } from './types/strategy-game-board.type';
|
|
74
74
|
import { IAiTaskPortiaArticleRelatedPortiaArticle, IAiTaskPortiaArticleRelatedPortiaArticleModel } from './types/ai-task-portia-article-related-portia-article.type';
|
|
75
75
|
import { IAiTaskNewsManagerOutput, IAiTaskNewsManagerOutputModel } from './types/ai-task-news-manager-output.type';
|
|
76
|
-
import { IPricingAdditionalBaseCredit, IPricingAdditionalBaseCreditModel, IPricingBaseCredit, IPricingBaseCreditModel, IAiEntrapeerKnowledgeBase, IAiEntrapeerKnowledgeBaseModel, IAiHrAssessment, IAiHrAssessmentModel, IAiHrAssessmentQuestion, IAiHrAssessmentQuestionModel, IAiHrCandidateOutput, IAiHrCandidateOutputModel, IAiHrCandidateProfile, IAiHrCandidateProfileModel, IAiHrCandidateTopCandidate, IAiHrCandidateTopCandidateModel, IAiHrInterview, IAiHrInterviewModel, IAiHrInterviewQuestion, IAiHrInterviewQuestionModel, IAiHrNote, IAiHrNoteModel, IAiHrReportStat, IAiHrReportStatModel, IAiTaskResearchManagerOutputPresentation, IAiTaskResearchManagerOutputPresentationModel, IAiTaskResearchManagerOutputPresentationSubmission, IAiTaskResearchManagerOutputPresentationSubmissionModel, IAiTaskResearchManagerOutputSummary, IAiTaskResearchManagerOutputSummaryModel, IAiTaskResearchManagerOutputSummarySubmission, IAiTaskResearchManagerOutputSummarySubmissionModel, IAiTaskResearchManagerOutputTranslationSubmission, IAiTaskResearchManagerOutputTranslationSubmissionModel, IPricingBaseCreditSub, IPricingBaseCreditSubModel, IPricingAiAssistantBaseCredit, IPricingAiAssistantBaseCreditModel, IAiAssistantCreditUsageModel, IAiAssistantCreditUsage, IPricingCompanyAiAssistantCredit, IPricingCompanyAiAssistantCreditModel, IPricingCompanyPlan, IPricingCompanyPlanModel, IAiHrFileUpload, IAiHrFileUploadModel, IAiHrUploadedCandidate, IAiHrUploadedCandidateModel } from './types';
|
|
76
|
+
import { IPricingAdditionalBaseCredit, IPricingAdditionalBaseCreditModel, IPricingBaseCredit, IPricingBaseCreditModel, IAiEntrapeerKnowledgeBase, IAiEntrapeerKnowledgeBaseModel, IAiHrAssessment, IAiHrAssessmentModel, IAiHrAssessmentQuestion, IAiHrAssessmentQuestionModel, IAiHrCandidateOutput, IAiHrCandidateOutputModel, IAiHrCandidateProfile, IAiHrCandidateProfileModel, IAiHrCandidateTopCandidate, IAiHrCandidateTopCandidateModel, IAiHrInterview, IAiHrInterviewModel, IAiHrInterviewQuestion, IAiHrInterviewQuestionModel, IAiHrNote, IAiHrNoteModel, IAiHrReportStat, IAiHrReportStatModel, IAiTaskResearchManagerOutputPresentation, IAiTaskResearchManagerOutputPresentationModel, IAiTaskResearchManagerOutputPresentationSubmission, IAiTaskResearchManagerOutputPresentationSubmissionModel, IAiTaskResearchManagerOutputSummary, IAiTaskResearchManagerOutputSummaryModel, IAiTaskResearchManagerOutputSummarySubmission, IAiTaskResearchManagerOutputSummarySubmissionModel, IAiTaskResearchManagerOutputTranslationSubmission, IAiTaskResearchManagerOutputTranslationSubmissionModel, IPricingBaseCreditSub, IPricingBaseCreditSubModel, IPricingAiAssistantBaseCredit, IPricingAiAssistantBaseCreditModel, IAiAssistantCreditUsageModel, IAiAssistantCreditUsage, IPricingCompanyAiAssistantCredit, IPricingCompanyAiAssistantCreditModel, IPricingCompanyPlan, IPricingCompanyPlanModel, IAiHrFileUpload, IAiHrFileUploadModel, IAiHrUploadedCandidate, IAiHrUploadedCandidateModel, IEntityReference, IEntityReferenceModel } from './types';
|
|
77
77
|
import { IAiTaskCurationManagerOutput, IAiTaskCurationManagerOutputModel } from './types/ai-task-curation-manager-output.type';
|
|
78
78
|
import { IAiTaskCompanyRelatedCompany, IAiTaskCompanyRelatedCompanyModel } from './types/ai-task-company-related-company.type';
|
|
79
79
|
import { IVisionBoard, IVisionBoardModel } from './types/visionboard.type';
|
|
@@ -153,7 +153,7 @@ import AiTaskPortiaArticleRelatedPortiaArticleSchema from './schemas/ai-task-por
|
|
|
153
153
|
import AiTaskNewsManagerOutputSchema from './schemas/ai-task-news-manager-output.schema';
|
|
154
154
|
import AiHrCandidateOutputSchema from './schemas/ai-hr-candidate-output.schema';
|
|
155
155
|
import AiHrCandidateTopCandidateSchema from './schemas/ai-hr-candidate-top-candidate.schema';
|
|
156
|
-
import AiHrCandidateProfileSchema from './schemas/ai-hr-candidate-
|
|
156
|
+
import AiHrCandidateProfileSchema from './schemas/ai-hr-candidate-profile.schema';
|
|
157
157
|
import AiEntrapeerKnowledgeBaseSchema from './schemas/ai-entrapeer-knowledge-base.schema';
|
|
158
158
|
import AiTaskCurationManagerOutputSchema from './schemas/ai-task-curation-manager-output.schema';
|
|
159
159
|
import AiTaskCompanyRelatedCompanySchema from './schemas/ai-task-company-related-company.schema';
|
|
@@ -178,5 +178,6 @@ import PricingCompanyPlanSchema from './schemas/pricing-company-plan.schema';
|
|
|
178
178
|
import PricingCompanyAiAssistantCreditSchema from './schemas/pricing-company-ai-assistant-credit.schema';
|
|
179
179
|
import AiHrFileUploadSchema from './schemas/ai-hr-file-upload.schema';
|
|
180
180
|
import AiHrUploadedCandidateSchema from './schemas/ai-hr-uploaded-candidate.schema';
|
|
181
|
-
|
|
182
|
-
export {
|
|
181
|
+
import EntityReferenceSchema from './schemas/entity-reference.schema';
|
|
182
|
+
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, IAiHrAssessment, IAiHrAssessmentModel, IAiHrInterview, IAiHrInterviewModel, IAiHrInterviewQuestion, IAiHrInterviewQuestionModel, IAiHrNote, IAiHrNoteModel, IAiHrReportStat, IAiHrReportStatModel, IAiTaskResearchManagerOutputTranslationSubmission, IAiTaskResearchManagerOutputTranslationSubmissionModel, IPricingBaseCredit, IPricingBaseCreditModel, IPricingBaseCreditSub, IPricingBaseCreditSubModel, IPricingAdditionalBaseCredit, IPricingAdditionalBaseCreditModel, IPricingAiAssistantBaseCredit, IPricingAiAssistantBaseCreditModel, IPricingCompanyAiAssistantCredit, IPricingCompanyAiAssistantCreditModel, IPricingCompanyPlan, IPricingCompanyPlanModel, IAiAssistantCreditUsage, IAiAssistantCreditUsageModel, IAiHrFileUpload, IAiHrFileUploadModel, IAiHrUploadedCandidate, IAiHrUploadedCandidateModel, IEntityReference, IEntityReferenceModel, };
|
|
183
|
+
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, AiHrAssessmentSchema, AiHrInterviewSchema, AiHrInterviewQuestionSchema, AiHrNoteSchema, AiHrReportStatSchema, AiTaskResearchManagerOutputTranslationSubmissionSchema, PricingBaseCreditSchema, PricingBaseCreditSubSchema, PricingAdditionalBaseCreditSchema, PricingAiAssistantBaseCreditSchema, PricingAiAssistantCreditUsageSchema, PricingCompanyPlanSchema, PricingCompanyAiAssistantCreditSchema, AiHrFileUploadSchema, AiHrUploadedCandidateSchema, EntityReferenceSchema, };
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
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
7
|
exports.AiHrFileUploadSchema = exports.PricingCompanyAiAssistantCreditSchema = exports.PricingCompanyPlanSchema = exports.PricingAiAssistantCreditUsageSchema = exports.PricingAiAssistantBaseCreditSchema = exports.PricingAdditionalBaseCreditSchema = exports.PricingBaseCreditSubSchema = exports.PricingBaseCreditSchema = exports.AiTaskResearchManagerOutputTranslationSubmissionSchema = exports.AiHrReportStatSchema = exports.AiHrNoteSchema = exports.AiHrInterviewQuestionSchema = exports.AiHrInterviewSchema = exports.AiHrAssessmentSchema = 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
|
-
exports.AiHrUploadedCandidateSchema = void 0;
|
|
8
|
+
exports.EntityReferenceSchema = exports.AiHrUploadedCandidateSchema = void 0;
|
|
9
9
|
const theme_schema_1 = __importDefault(require("./schemas/theme.schema"));
|
|
10
10
|
exports.ThemeSchema = theme_schema_1.default;
|
|
11
11
|
const problem_schema_1 = __importDefault(require("./schemas/problem.schema"));
|
|
@@ -158,8 +158,8 @@ const ai_hr_candidate_output_schema_1 = __importDefault(require("./schemas/ai-hr
|
|
|
158
158
|
exports.AiHrCandidateOutputSchema = ai_hr_candidate_output_schema_1.default;
|
|
159
159
|
const ai_hr_candidate_top_candidate_schema_1 = __importDefault(require("./schemas/ai-hr-candidate-top-candidate.schema"));
|
|
160
160
|
exports.AiHrCandidateTopCandidateSchema = ai_hr_candidate_top_candidate_schema_1.default;
|
|
161
|
-
const
|
|
162
|
-
exports.AiHrCandidateProfileSchema =
|
|
161
|
+
const ai_hr_candidate_profile_schema_1 = __importDefault(require("./schemas/ai-hr-candidate-profile.schema"));
|
|
162
|
+
exports.AiHrCandidateProfileSchema = ai_hr_candidate_profile_schema_1.default;
|
|
163
163
|
const ai_entrapeer_knowledge_base_schema_1 = __importDefault(require("./schemas/ai-entrapeer-knowledge-base.schema"));
|
|
164
164
|
exports.AiEntrapeerKnowledgeBaseSchema = ai_entrapeer_knowledge_base_schema_1.default;
|
|
165
165
|
const ai_task_curation_manager_output_schema_1 = __importDefault(require("./schemas/ai-task-curation-manager-output.schema"));
|
|
@@ -208,3 +208,5 @@ const ai_hr_file_upload_schema_1 = __importDefault(require("./schemas/ai-hr-file
|
|
|
208
208
|
exports.AiHrFileUploadSchema = ai_hr_file_upload_schema_1.default;
|
|
209
209
|
const ai_hr_uploaded_candidate_schema_1 = __importDefault(require("./schemas/ai-hr-uploaded-candidate.schema"));
|
|
210
210
|
exports.AiHrUploadedCandidateSchema = ai_hr_uploaded_candidate_schema_1.default;
|
|
211
|
+
const entity_reference_schema_1 = __importDefault(require("./schemas/entity-reference.schema"));
|
|
212
|
+
exports.EntityReferenceSchema = entity_reference_schema_1.default;
|
|
@@ -112,6 +112,27 @@ const aiHrCandidateProfileSchema = new mongoose_1.Schema({
|
|
|
112
112
|
interviewCompleted: { type: Boolean },
|
|
113
113
|
assessmentCompleted: { type: Boolean },
|
|
114
114
|
aiHrUploadedCandidate: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiHrUploadedCandidate', default: null },
|
|
115
|
+
educationHistory: [
|
|
116
|
+
{
|
|
117
|
+
university: { type: String, required: false },
|
|
118
|
+
major: { type: String, required: false },
|
|
119
|
+
dateFrom: { type: Number, required: false },
|
|
120
|
+
dateTo: { type: Number, required: false },
|
|
121
|
+
universityLinkedinUrl: { type: String, required: false },
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
workHistory: [
|
|
125
|
+
{
|
|
126
|
+
company: { type: String, required: false },
|
|
127
|
+
companySizeRange: { type: String, required: false },
|
|
128
|
+
companySizeEmployeesCount: { type: Number, required: false },
|
|
129
|
+
companyIndustry: { type: String, required: false },
|
|
130
|
+
companyHqLocationCountry: { type: String, required: false },
|
|
131
|
+
companyHqLocationState: { type: String, required: false },
|
|
132
|
+
companyHqLocationCity: { type: String, required: false },
|
|
133
|
+
companyLinkedinUrl: { type: String, required: false },
|
|
134
|
+
},
|
|
135
|
+
],
|
|
115
136
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
116
137
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
117
138
|
updatedDate: Number,
|
|
@@ -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 type { IEntityReference, IEntityReferenceModel } from '../types';
|
|
27
|
+
declare const entityReferenceSchema: Schema<IEntityReference, IEntityReferenceModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IEntityReference>;
|
|
28
|
+
export default entityReferenceSchema;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 entity_reference_type_1 = require("../types/entity-reference.type");
|
|
10
|
+
const entityReferenceSchema = new mongoose_1.Schema({
|
|
11
|
+
contentType: {
|
|
12
|
+
type: String,
|
|
13
|
+
enum: Object.values(entity_reference_type_1.EntityReferenceType),
|
|
14
|
+
required: [true, 'contentType is required'],
|
|
15
|
+
index: true,
|
|
16
|
+
},
|
|
17
|
+
contentId: {
|
|
18
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
19
|
+
required: [true, 'contentId is required'],
|
|
20
|
+
index: true,
|
|
21
|
+
},
|
|
22
|
+
teams: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Team', index: true }],
|
|
23
|
+
users: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User', index: true }],
|
|
24
|
+
companies: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', index: true }],
|
|
25
|
+
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null, index: true },
|
|
26
|
+
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null, index: true },
|
|
27
|
+
createdDate: { type: Number, index: -1 },
|
|
28
|
+
updatedDate: { type: Number, index: -1 },
|
|
29
|
+
}, _config_1.schemaOptions);
|
|
30
|
+
entityReferenceSchema.index({ teams: 1, createdDate: -1 });
|
|
31
|
+
entityReferenceSchema.index({ companies: 1, createdDate: -1 });
|
|
32
|
+
entityReferenceSchema.index({ users: 1, createdDate: -1 });
|
|
33
|
+
entityReferenceSchema.index({ contentType: 1, createdDate: -1 });
|
|
34
|
+
entityReferenceSchema.index({ contentType: 1, contentId: 1, deleteDate: 1 }, { unique: true });
|
|
35
|
+
entityReferenceSchema.pre('save', function (next) {
|
|
36
|
+
const user = express_http_context_1.default.get('user');
|
|
37
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
38
|
+
if (user) {
|
|
39
|
+
if (!this.createdBy)
|
|
40
|
+
this.createdBy = user._id;
|
|
41
|
+
if (!notUpdatedBy)
|
|
42
|
+
this.updatedBy = user._id;
|
|
43
|
+
}
|
|
44
|
+
next();
|
|
45
|
+
});
|
|
46
|
+
entityReferenceSchema.pre('findOneAndUpdate', function (next) {
|
|
47
|
+
const user = express_http_context_1.default.get('user');
|
|
48
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
49
|
+
if (user && !notUpdatedBy)
|
|
50
|
+
this._update.updatedBy = user._id;
|
|
51
|
+
next();
|
|
52
|
+
});
|
|
53
|
+
exports.default = entityReferenceSchema;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ import AiTaskPortiaArticleRelatedPortiaArticleSchema from './ai-task-portia-arti
|
|
|
72
72
|
import AiTaskNewsManagerOutputSchema from './ai-task-news-manager-output.schema';
|
|
73
73
|
import AiHrCandidateOutputSchema from './ai-hr-candidate-output.schema';
|
|
74
74
|
import AiHrCandidateTopCandidateSchema from './ai-hr-candidate-top-candidate.schema';
|
|
75
|
-
import AiHrCandidateProfileSchema from './ai-hr-candidate-
|
|
75
|
+
import AiHrCandidateProfileSchema from './ai-hr-candidate-profile.schema';
|
|
76
76
|
import AiEntrapeerKnowledgeBaseSchema from './ai-entrapeer-knowledge-base.schema';
|
|
77
77
|
import AiTaskCurationManagerOutputSchema from './ai-task-curation-manager-output.schema';
|
|
78
78
|
import AiTaskCompanyRelatedCompanySchema from './ai-task-company-related-company.schema';
|
|
@@ -97,4 +97,5 @@ import PricingCompanyAiAssistantCreditSchema from './pricing-company-ai-assistan
|
|
|
97
97
|
import PricingAiAssistantCreditUsageSchema from './pricing-ai-assistant-credit-usage.schema';
|
|
98
98
|
import AiHrFileUploadSchema from './ai-hr-file-upload.schema';
|
|
99
99
|
import AiHrUploadedCandidateSchema from './ai-hr-uploaded-candidate.schema';
|
|
100
|
-
|
|
100
|
+
import EntityReferenceSchema from './entity-reference.schema';
|
|
101
|
+
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, AiHrAssessmentSchema, AiHrInterviewSchema, AiHrInterviewQuestionSchema, AiHrNoteSchema, AiHrReportStatSchema, AiTaskResearchManagerOutputTranslationSubmissionSchema, PricingBaseCreditSchema, PricingBaseCreditSubSchema, PricingAdditionalBaseCreditSchema, PricingAiAssistantBaseCreditSchema, PricingCompanyPlanSchema, PricingCompanyAiAssistantCreditSchema, PricingAiAssistantCreditUsageSchema, AiHrFileUploadSchema, AiHrUploadedCandidateSchema, EntityReferenceSchema };
|
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.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.AiHrUploadedCandidateSchema = exports.AiHrFileUploadSchema = exports.PricingAiAssistantCreditUsageSchema = exports.PricingCompanyAiAssistantCreditSchema = exports.PricingCompanyPlanSchema = exports.PricingAiAssistantBaseCreditSchema = exports.PricingAdditionalBaseCreditSchema = exports.PricingBaseCreditSubSchema = exports.PricingBaseCreditSchema = exports.AiTaskResearchManagerOutputTranslationSubmissionSchema = exports.AiHrReportStatSchema = exports.AiHrNoteSchema = exports.AiHrInterviewQuestionSchema = exports.AiHrInterviewSchema = exports.AiHrAssessmentSchema = 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;
|
|
7
|
+
exports.EntityReferenceSchema = exports.AiHrUploadedCandidateSchema = exports.AiHrFileUploadSchema = exports.PricingAiAssistantCreditUsageSchema = exports.PricingCompanyAiAssistantCreditSchema = exports.PricingCompanyPlanSchema = exports.PricingAiAssistantBaseCreditSchema = exports.PricingAdditionalBaseCreditSchema = exports.PricingBaseCreditSubSchema = exports.PricingBaseCreditSchema = exports.AiTaskResearchManagerOutputTranslationSubmissionSchema = exports.AiHrReportStatSchema = exports.AiHrNoteSchema = exports.AiHrInterviewQuestionSchema = exports.AiHrInterviewSchema = exports.AiHrAssessmentSchema = 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"));
|
|
@@ -153,8 +153,8 @@ const ai_hr_candidate_output_schema_1 = __importDefault(require("./ai-hr-candida
|
|
|
153
153
|
exports.AiHrCandidateOutputSchema = ai_hr_candidate_output_schema_1.default;
|
|
154
154
|
const ai_hr_candidate_top_candidate_schema_1 = __importDefault(require("./ai-hr-candidate-top-candidate.schema"));
|
|
155
155
|
exports.AiHrCandidateTopCandidateSchema = ai_hr_candidate_top_candidate_schema_1.default;
|
|
156
|
-
const
|
|
157
|
-
exports.AiHrCandidateProfileSchema =
|
|
156
|
+
const ai_hr_candidate_profile_schema_1 = __importDefault(require("./ai-hr-candidate-profile.schema"));
|
|
157
|
+
exports.AiHrCandidateProfileSchema = ai_hr_candidate_profile_schema_1.default;
|
|
158
158
|
const ai_entrapeer_knowledge_base_schema_1 = __importDefault(require("./ai-entrapeer-knowledge-base.schema"));
|
|
159
159
|
exports.AiEntrapeerKnowledgeBaseSchema = ai_entrapeer_knowledge_base_schema_1.default;
|
|
160
160
|
const ai_task_curation_manager_output_schema_1 = __importDefault(require("./ai-task-curation-manager-output.schema"));
|
|
@@ -203,3 +203,5 @@ const ai_hr_file_upload_schema_1 = __importDefault(require("./ai-hr-file-upload.
|
|
|
203
203
|
exports.AiHrFileUploadSchema = ai_hr_file_upload_schema_1.default;
|
|
204
204
|
const ai_hr_uploaded_candidate_schema_1 = __importDefault(require("./ai-hr-uploaded-candidate.schema"));
|
|
205
205
|
exports.AiHrUploadedCandidateSchema = ai_hr_uploaded_candidate_schema_1.default;
|
|
206
|
+
const entity_reference_schema_1 = __importDefault(require("./entity-reference.schema"));
|
|
207
|
+
exports.EntityReferenceSchema = entity_reference_schema_1.default;
|
|
@@ -93,6 +93,8 @@ const portiaArticleSchema = new mongoose_1.Schema({
|
|
|
93
93
|
teams: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Team', default: null }],
|
|
94
94
|
users: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null }],
|
|
95
95
|
companies: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null }],
|
|
96
|
+
isHighlighted: { type: Boolean, default: false },
|
|
97
|
+
estimatedReadTime: { type: Number, default: 0 },
|
|
96
98
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null, index: true },
|
|
97
99
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null, index: true },
|
|
98
100
|
updatedDate: { type: Number, index: -1 },
|
|
@@ -61,6 +61,8 @@ const useCaseSchema = new mongoose_1.Schema({
|
|
|
61
61
|
approvedByAI: { type: Boolean, default: false },
|
|
62
62
|
publishedByAI: { type: Boolean, default: false },
|
|
63
63
|
},
|
|
64
|
+
isHighlighted: { type: Boolean, default: false },
|
|
65
|
+
estimatedReadTime: { type: Number, default: 0 },
|
|
64
66
|
publishDate: { type: Number, default: 0 },
|
|
65
67
|
aiTaskResearchManagerOutputs: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTaskResearchManagerOutput' }],
|
|
66
68
|
sourcePublishDate: { type: Number, default: null },
|
|
@@ -126,6 +126,23 @@ interface EmailResearch {
|
|
|
126
126
|
source: string;
|
|
127
127
|
}[];
|
|
128
128
|
}
|
|
129
|
+
interface IEducationHistory {
|
|
130
|
+
university: string;
|
|
131
|
+
major: string;
|
|
132
|
+
dateFrom: number;
|
|
133
|
+
dateTo: number;
|
|
134
|
+
universityLinkedinUrl: string;
|
|
135
|
+
}
|
|
136
|
+
interface IWorkHistory {
|
|
137
|
+
company: string;
|
|
138
|
+
companySizeRange: string;
|
|
139
|
+
companySizeEmployeesCount: number;
|
|
140
|
+
companyIndustry: string;
|
|
141
|
+
companyHqLocationCountry: string;
|
|
142
|
+
companyHqLocationState: string | null;
|
|
143
|
+
companyHqLocationCity: string | null;
|
|
144
|
+
companyLinkedinUrl: string;
|
|
145
|
+
}
|
|
129
146
|
export interface IAiHrCandidateProfile extends BaseSchema {
|
|
130
147
|
aiTask: Types.ObjectId | IAiTask;
|
|
131
148
|
aiHrCandidate: Types.ObjectId | IAiHrCandidate;
|
|
@@ -154,6 +171,8 @@ export interface IAiHrCandidateProfile extends BaseSchema {
|
|
|
154
171
|
interviewCompleted: boolean;
|
|
155
172
|
assessmentCompleted: boolean;
|
|
156
173
|
aiHrUploadedCandidate: Types.ObjectId | IAiHrUploadedCandidate;
|
|
174
|
+
educationHistory: IEducationHistory[];
|
|
175
|
+
workHistory: IWorkHistory[];
|
|
157
176
|
}
|
|
158
177
|
export interface IAiHrCandidateProfileModel extends BaseModel<IAiHrCandidateProfile> {
|
|
159
178
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 type { Model, Types } from 'mongoose';
|
|
26
|
+
import type { IUser, ITeam, ICompany } from './';
|
|
27
|
+
import { BaseSchema } from '../config';
|
|
28
|
+
export declare enum EntityReferenceType {
|
|
29
|
+
USE_CASE = "useCase",
|
|
30
|
+
PORTIA_ARTICLE = "portiaArticle"
|
|
31
|
+
}
|
|
32
|
+
export interface IEntityReference extends BaseSchema {
|
|
33
|
+
contentType: EntityReferenceType;
|
|
34
|
+
contentId: Types.ObjectId;
|
|
35
|
+
teams: Types.ObjectId[] | ITeam[];
|
|
36
|
+
users: Types.ObjectId[] | IUser[];
|
|
37
|
+
companies: Types.ObjectId[] | ICompany[];
|
|
38
|
+
}
|
|
39
|
+
export interface IEntityReferenceModel extends Model<IEntityReference> {
|
|
40
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityReferenceType = void 0;
|
|
4
|
+
var EntityReferenceType;
|
|
5
|
+
(function (EntityReferenceType) {
|
|
6
|
+
EntityReferenceType["USE_CASE"] = "useCase";
|
|
7
|
+
EntityReferenceType["PORTIA_ARTICLE"] = "portiaArticle";
|
|
8
|
+
})(EntityReferenceType || (exports.EntityReferenceType = EntityReferenceType = {}));
|
package/dist/types/index.d.ts
CHANGED
|
@@ -100,4 +100,5 @@ import { IPricingCompanyAiAssistantCredit, IPricingCompanyAiAssistantCreditModel
|
|
|
100
100
|
import { IAiAssistantCreditUsage, IAiAssistantCreditUsageModel } from './pricing-ai-assistant-credit-usage.type';
|
|
101
101
|
import { IAiHrFileUpload, IAiHrFileUploadModel } from './ai-hr-file-upload.type';
|
|
102
102
|
import { IAiHrUploadedCandidate, IAiHrUploadedCandidateModel } from './ai-hr-uploaded-candidate.type';
|
|
103
|
-
|
|
103
|
+
import { IEntityReference, IEntityReferenceModel } from './entity-reference.type';
|
|
104
|
+
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, IAiHrAssessment, IAiHrAssessmentModel, IAiHrInterview, IAiHrInterviewModel, IAiHrInterviewQuestion, IAiHrInterviewQuestionModel, IAiHrNote, IAiHrNoteModel, IAiHrReportStat, IAiHrReportStatModel, IAiTaskResearchManagerOutputTranslationSubmission, IAiTaskResearchManagerOutputTranslationSubmissionModel, IPricingBaseCredit, IPricingBaseCreditModel, IPricingBaseCreditSub, IPricingBaseCreditSubModel, IPricingAdditionalBaseCredit, IPricingAdditionalBaseCreditModel, IPricingAiAssistantBaseCredit, IPricingAiAssistantBaseCreditModel, IPricingCompanyPlan, IPricingCompanyPlanModel, IPricingCompanyAiAssistantCredit, IPricingCompanyAiAssistantCreditModel, IAiAssistantCreditUsage, IAiAssistantCreditUsageModel, IAiHrFileUpload, IAiHrFileUploadModel, IAiHrUploadedCandidate, IAiHrUploadedCandidateModel, IEntityReference, IEntityReferenceModel, };
|
|
@@ -114,6 +114,8 @@ export interface IPortiaArticle extends BaseSchema {
|
|
|
114
114
|
}[];
|
|
115
115
|
spark: Types.ObjectId | ISpark;
|
|
116
116
|
requester: IRequester;
|
|
117
|
+
isHighlighted: boolean;
|
|
118
|
+
estimatedReadTime: number;
|
|
117
119
|
}
|
|
118
120
|
export interface IPortiaArticleModel extends BaseModel<IPortiaArticle> {
|
|
119
121
|
}
|
|
@@ -74,6 +74,8 @@ export interface IUseCase extends BaseSchema {
|
|
|
74
74
|
publishDate?: number;
|
|
75
75
|
aiTaskResearchManagerOutputs?: Types.ObjectId[] | IAiTaskResearchManagerOutput[];
|
|
76
76
|
sourcePublishDate?: number;
|
|
77
|
+
estimatedReadTime?: number;
|
|
78
|
+
isHighlighted?: boolean;
|
|
77
79
|
}
|
|
78
80
|
export interface IUseCaseModel extends BaseModel<IUseCase> {
|
|
79
81
|
}
|
package/package.json
CHANGED
|
File without changes
|