@cool-digital-solutions/interferir-models 1.2.84 → 1.2.86
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 -3
- package/dist/index.js +5 -1
- package/dist/schemas/ai-entrapeer-knowledge-base.schema.d.ts +28 -0
- package/dist/schemas/ai-entrapeer-knowledge-base.schema.js +37 -0
- package/dist/schemas/ai-hr-candidate-candidate-profile.schema.d.ts +28 -0
- package/dist/schemas/ai-hr-candidate-candidate-profile.schema.js +38 -0
- package/dist/schemas/index.d.ts +3 -1
- package/dist/schemas/index.js +5 -1
- package/dist/types/ai-entrapeer-knowledge-base.type.d.ts +35 -0
- package/dist/types/ai-entrapeer-knowledge-base.type.js +2 -0
- package/dist/types/ai-hr-candidate-profile.type.d.ts +37 -0
- package/dist/types/ai-hr-candidate-profile.type.js +2 -0
- package/dist/types/index.d.ts +3 -1
- 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 { IAiHrCandidateOutput, IAiHrCandidateOutputModel, IAiHrCandidateTopCandidate, IAiHrCandidateTopCandidateModel } from './types';
|
|
77
|
+
import { IAiEntrapeerKnowledgeBase, IAiEntrapeerKnowledgeBaseModel, IAiHrCandidateOutput, IAiHrCandidateOutputModel, IAiHrCandidateProfile, IAiHrCandidateProfileModel, IAiHrCandidateTopCandidate, IAiHrCandidateTopCandidateModel } from './types';
|
|
78
78
|
import ThemeSchema from './schemas/theme.schema';
|
|
79
79
|
import ProblemSchema from './schemas/problem.schema';
|
|
80
80
|
import SFTagSchema from './schemas/sf-tag.schema';
|
|
@@ -152,5 +152,7 @@ import AiTaskPortiaArticleRelatedPortiaArticleSchema from './schemas/ai-task-por
|
|
|
152
152
|
import AiTaskNewsManagerOutputSchema from './schemas/ai-task-news-manager-output.schema';
|
|
153
153
|
import AiHrCandidateOutputSchema from './schemas/ai-hr-candidate-output.schema';
|
|
154
154
|
import AiHrCandidateTopCandidateSchema from './schemas/ai-hr-candidate-top-candidate.schema';
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
import AiHrCandidateProfileSchema from './schemas/ai-hr-candidate-candidate-profile.schema';
|
|
156
|
+
import AiEntrapeerKnowledgeBaseSchema from './schemas/ai-entrapeer-knowledge-base.schema';
|
|
157
|
+
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, };
|
|
158
|
+
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 };
|
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.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.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"));
|
|
@@ -159,3 +159,7 @@ const ai_hr_candidate_output_schema_1 = __importDefault(require("./schemas/ai-hr
|
|
|
159
159
|
exports.AiHrCandidateOutputSchema = ai_hr_candidate_output_schema_1.default;
|
|
160
160
|
const ai_hr_candidate_top_candidate_schema_1 = __importDefault(require("./schemas/ai-hr-candidate-top-candidate.schema"));
|
|
161
161
|
exports.AiHrCandidateTopCandidateSchema = ai_hr_candidate_top_candidate_schema_1.default;
|
|
162
|
+
const ai_hr_candidate_candidate_profile_schema_1 = __importDefault(require("./schemas/ai-hr-candidate-candidate-profile.schema"));
|
|
163
|
+
exports.AiHrCandidateProfileSchema = ai_hr_candidate_candidate_profile_schema_1.default;
|
|
164
|
+
const ai_entrapeer_knowledge_base_schema_1 = __importDefault(require("./schemas/ai-entrapeer-knowledge-base.schema"));
|
|
165
|
+
exports.AiEntrapeerKnowledgeBaseSchema = ai_entrapeer_knowledge_base_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 { IAiEntrapeerKnowledgeBase, IAiEntrapeerKnowledgeBaseModel } from '../types';
|
|
27
|
+
declare const aiEntrapeerKnowledgeBaseSchema: Schema<IAiEntrapeerKnowledgeBase, IAiEntrapeerKnowledgeBaseModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAiEntrapeerKnowledgeBase>;
|
|
28
|
+
export default aiEntrapeerKnowledgeBaseSchema;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 aiEntrapeerKnowledgeBaseSchema = new mongoose_1.Schema({
|
|
10
|
+
aiAssistants: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'AiAssistant', required: true }],
|
|
11
|
+
scopes: [{ type: String, default: [] }],
|
|
12
|
+
need: { type: String, required: true },
|
|
13
|
+
suggestion: { type: String, required: true },
|
|
14
|
+
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
15
|
+
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
16
|
+
updatedDate: Number,
|
|
17
|
+
createdDate: Number,
|
|
18
|
+
}, _config_1.schemaOptions);
|
|
19
|
+
aiEntrapeerKnowledgeBaseSchema.pre('save', function (next) {
|
|
20
|
+
const user = express_http_context_1.default.get('user');
|
|
21
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
22
|
+
if (user) {
|
|
23
|
+
if (!this.createdBy)
|
|
24
|
+
this.createdBy = user._id;
|
|
25
|
+
if (!notUpdatedBy)
|
|
26
|
+
this.updatedBy = user._id;
|
|
27
|
+
}
|
|
28
|
+
next();
|
|
29
|
+
});
|
|
30
|
+
aiEntrapeerKnowledgeBaseSchema.pre('findOneAndUpdate', function (next) {
|
|
31
|
+
const user = express_http_context_1.default.get('user');
|
|
32
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
33
|
+
if (user && !notUpdatedBy)
|
|
34
|
+
this._update.updatedBy = user._id;
|
|
35
|
+
next();
|
|
36
|
+
});
|
|
37
|
+
exports.default = aiEntrapeerKnowledgeBaseSchema;
|
|
@@ -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 { IAiHrCandidateProfile, IAiHrCandidateProfileModel } from '../types';
|
|
27
|
+
declare const aiHrCandidateProfileSchema: Schema<IAiHrCandidateProfile, IAiHrCandidateProfileModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAiHrCandidateProfile>;
|
|
28
|
+
export default aiHrCandidateProfileSchema;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 aiHrCandidateProfileSchema = new mongoose_1.Schema({
|
|
10
|
+
aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTask', required: true },
|
|
11
|
+
aiHrCandidate: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiHrCandidate', required: true },
|
|
12
|
+
reasoning: { type: String, required: true },
|
|
13
|
+
order: { type: Number },
|
|
14
|
+
relevancy: { type: String, required: true },
|
|
15
|
+
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
16
|
+
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
17
|
+
updatedDate: Number,
|
|
18
|
+
createdDate: Number,
|
|
19
|
+
}, _config_1.schemaOptions);
|
|
20
|
+
aiHrCandidateProfileSchema.pre('save', function (next) {
|
|
21
|
+
const user = express_http_context_1.default.get('user');
|
|
22
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
23
|
+
if (user) {
|
|
24
|
+
if (!this.createdBy)
|
|
25
|
+
this.createdBy = user._id;
|
|
26
|
+
if (!notUpdatedBy)
|
|
27
|
+
this.updatedBy = user._id;
|
|
28
|
+
}
|
|
29
|
+
next();
|
|
30
|
+
});
|
|
31
|
+
aiHrCandidateProfileSchema.pre('findOneAndUpdate', function (next) {
|
|
32
|
+
const user = express_http_context_1.default.get('user');
|
|
33
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
34
|
+
if (user && !notUpdatedBy)
|
|
35
|
+
this._update.updatedBy = user._id;
|
|
36
|
+
next();
|
|
37
|
+
});
|
|
38
|
+
exports.default = aiHrCandidateProfileSchema;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -73,4 +73,6 @@ import AiTaskPortiaArticleRelatedPortiaArticleSchema from './ai-task-portia-arti
|
|
|
73
73
|
import AiTaskNewsManagerOutputSchema from './ai-task-news-manager-output.schema';
|
|
74
74
|
import AiHrCandidateOutputSchema from './ai-hr-candidate-output.schema';
|
|
75
75
|
import AiHrCandidateTopCandidateSchema from './ai-hr-candidate-top-candidate.schema';
|
|
76
|
-
|
|
76
|
+
import AiHrCandidateProfileSchema from './ai-hr-candidate-candidate-profile.schema';
|
|
77
|
+
import AiEntrapeerKnowledgeBaseSchema from './ai-entrapeer-knowledge-base.schema';
|
|
78
|
+
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 };
|
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.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.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"));
|
|
@@ -155,3 +155,7 @@ const ai_hr_candidate_output_schema_1 = __importDefault(require("./ai-hr-candida
|
|
|
155
155
|
exports.AiHrCandidateOutputSchema = ai_hr_candidate_output_schema_1.default;
|
|
156
156
|
const ai_hr_candidate_top_candidate_schema_1 = __importDefault(require("./ai-hr-candidate-top-candidate.schema"));
|
|
157
157
|
exports.AiHrCandidateTopCandidateSchema = ai_hr_candidate_top_candidate_schema_1.default;
|
|
158
|
+
const ai_hr_candidate_candidate_profile_schema_1 = __importDefault(require("./ai-hr-candidate-candidate-profile.schema"));
|
|
159
|
+
exports.AiHrCandidateProfileSchema = ai_hr_candidate_candidate_profile_schema_1.default;
|
|
160
|
+
const ai_entrapeer_knowledge_base_schema_1 = __importDefault(require("./ai-entrapeer-knowledge-base.schema"));
|
|
161
|
+
exports.AiEntrapeerKnowledgeBaseSchema = ai_entrapeer_knowledge_base_schema_1.default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { Types } from 'mongoose';
|
|
26
|
+
import { IAiAssistant } from './';
|
|
27
|
+
import { BaseModel, BaseSchema } from '../config';
|
|
28
|
+
export interface IAiEntrapeerKnowledgeBase extends BaseSchema {
|
|
29
|
+
aiAssistants: Types.ObjectId[] | IAiAssistant[];
|
|
30
|
+
scopes: string[];
|
|
31
|
+
need: string;
|
|
32
|
+
suggestion: string;
|
|
33
|
+
}
|
|
34
|
+
export interface IAiEntrapeerKnowledgeBaseModel extends BaseModel<IAiEntrapeerKnowledgeBase> {
|
|
35
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 interface IAiHrCandidateProfile extends BaseSchema {
|
|
30
|
+
aiTask: Types.ObjectId | IAiTask;
|
|
31
|
+
aiHrCandidate: Types.ObjectId | IAiHrCandidate;
|
|
32
|
+
reasoning: string;
|
|
33
|
+
order: number;
|
|
34
|
+
relevancy: string;
|
|
35
|
+
}
|
|
36
|
+
export interface IAiHrCandidateProfileModel extends BaseModel<IAiHrCandidateProfile> {
|
|
37
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -76,4 +76,6 @@ import { IAiTaskPortiaArticleRelatedPortiaArticle, IAiTaskPortiaArticleRelatedPo
|
|
|
76
76
|
import { IAiTaskNewsManagerOutput, IAiTaskNewsManagerOutputModel } from './ai-task-news-manager-output.type';
|
|
77
77
|
import { IAiHrCandidateOutput, IAiHrCandidateOutputModel } from './ai-hr-candidate-output.type';
|
|
78
78
|
import { IAiHrCandidateTopCandidate, IAiHrCandidateTopCandidateModel } from './ai-hr-candidate-top-candidate.type';
|
|
79
|
-
|
|
79
|
+
import { IAiHrCandidateProfile, IAiHrCandidateProfileModel } from './ai-hr-candidate-profile.type';
|
|
80
|
+
import { IAiEntrapeerKnowledgeBase, IAiEntrapeerKnowledgeBaseModel } from './ai-entrapeer-knowledge-base.type';
|
|
81
|
+
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, };
|