@cool-digital-solutions/interferir-models 1.2.49 → 1.2.51
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 +8 -2
- package/dist/index.js +7 -1
- package/dist/schemas/ai-hr-candidate-company.schema.d.ts +28 -0
- package/dist/schemas/ai-hr-candidate-company.schema.js +34 -0
- package/dist/schemas/ai-hr-candidate.schema.d.ts +28 -0
- package/dist/schemas/ai-hr-candidate.schema.js +34 -0
- package/dist/schemas/bug-report.schema.d.ts +28 -0
- package/dist/schemas/bug-report.schema.js +37 -0
- package/dist/schemas/index.d.ts +4 -1
- package/dist/schemas/index.js +7 -1
- package/dist/types/ai-hr-candidate-company.type.d.ts +6 -0
- package/dist/types/ai-hr-candidate-company.type.js +2 -0
- package/dist/types/ai-hr-candidate.type.d.ts +6 -0
- package/dist/types/ai-hr-candidate.type.js +2 -0
- package/dist/types/bug-report.type.d.ts +37 -0
- package/dist/types/bug-report.type.js +8 -0
- package/dist/types/index.d.ts +4 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -66,6 +66,9 @@ import { IAiTaskShare, IAiTaskShareModel } from './types/ai-task-share.type';
|
|
|
66
66
|
import { IAiTopUseCase, IAiTopUseCaseModel } from './types/ai-top-use-case.type';
|
|
67
67
|
import { IAiUseCaseAnalysisNode, IAiUseCaseAnalysisNodeModel } from './types/ai-use-case-analysis-node.type';
|
|
68
68
|
import { IAiUseCaseAnalysis, IAiUseCaseAnalysisModel } from './types/ai-use-case-analysis.type';
|
|
69
|
+
import { IAiHrCandidate, IAiHrCandidateModel } from './types/ai-hr-candidate.type';
|
|
70
|
+
import { IAiHrCandidateCompany, IAiHrCandidateCompanyModel } from './types/ai-hr-candidate-company.type';
|
|
71
|
+
import { IBugReport, IBugReportModel } from './types/bug-report.type';
|
|
69
72
|
import ThemeSchema from './schemas/theme.schema';
|
|
70
73
|
import ProblemSchema from './schemas/problem.schema';
|
|
71
74
|
import SFTagSchema from './schemas/sf-tag.schema';
|
|
@@ -133,5 +136,8 @@ import BadgeSchema from './schemas/badge.schema';
|
|
|
133
136
|
import AiTopUseCaseSchema from './schemas/ai-top-use-case.schema';
|
|
134
137
|
import AiUseCaseAnalysisNodeSchema from './schemas/ai-use-case-analysis-node.schema';
|
|
135
138
|
import AiUseCaseAnalysisSchema from './schemas/ai-use-case-analysis.schema';
|
|
136
|
-
|
|
137
|
-
|
|
139
|
+
import AiHrCandidateSchema from './schemas/ai-hr-candidate.schema';
|
|
140
|
+
import AiHrCandidateCompanySchema from './schemas/ai-hr-candidate-company.schema';
|
|
141
|
+
import BugReportSchema from './schemas/bug-report.schema';
|
|
142
|
+
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, };
|
|
143
|
+
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, };
|
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.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.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"));
|
|
@@ -139,3 +139,9 @@ const ai_use_case_analysis_node_schema_1 = __importDefault(require("./schemas/ai
|
|
|
139
139
|
exports.AiUseCaseAnalysisNodeSchema = ai_use_case_analysis_node_schema_1.default;
|
|
140
140
|
const ai_use_case_analysis_schema_1 = __importDefault(require("./schemas/ai-use-case-analysis.schema"));
|
|
141
141
|
exports.AiUseCaseAnalysisSchema = ai_use_case_analysis_schema_1.default;
|
|
142
|
+
const ai_hr_candidate_schema_1 = __importDefault(require("./schemas/ai-hr-candidate.schema"));
|
|
143
|
+
exports.AiHrCandidateSchema = ai_hr_candidate_schema_1.default;
|
|
144
|
+
const ai_hr_candidate_company_schema_1 = __importDefault(require("./schemas/ai-hr-candidate-company.schema"));
|
|
145
|
+
exports.AiHrCandidateCompanySchema = ai_hr_candidate_company_schema_1.default;
|
|
146
|
+
const bug_report_schema_1 = __importDefault(require("./schemas/bug-report.schema"));
|
|
147
|
+
exports.BugReportSchema = bug_report_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 { IAiHrCandidateCompany, IAiHrCandidateCompanyModel } from '../types';
|
|
27
|
+
declare const aiHrCandidateCompanySchema: Schema<IAiHrCandidateCompany, IAiHrCandidateCompanyModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAiHrCandidateCompany>;
|
|
28
|
+
export default aiHrCandidateCompanySchema;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 aiHrCandidateCompanySchema = new mongoose_1.Schema({
|
|
10
|
+
data: { type: Object, required: true },
|
|
11
|
+
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
12
|
+
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
13
|
+
updatedDate: Number,
|
|
14
|
+
createdDate: Number,
|
|
15
|
+
}, _config_1.schemaOptions);
|
|
16
|
+
aiHrCandidateCompanySchema.pre('save', function (next) {
|
|
17
|
+
const user = express_http_context_1.default.get('user');
|
|
18
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
19
|
+
if (user) {
|
|
20
|
+
if (!this.createdBy)
|
|
21
|
+
this.createdBy = user._id;
|
|
22
|
+
if (!notUpdatedBy)
|
|
23
|
+
this.updatedBy = user._id;
|
|
24
|
+
}
|
|
25
|
+
next();
|
|
26
|
+
});
|
|
27
|
+
aiHrCandidateCompanySchema.pre('findOneAndUpdate', function (next) {
|
|
28
|
+
const user = express_http_context_1.default.get('user');
|
|
29
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
30
|
+
if (user && !notUpdatedBy)
|
|
31
|
+
this._update.updatedBy = user._id;
|
|
32
|
+
next();
|
|
33
|
+
});
|
|
34
|
+
exports.default = aiHrCandidateCompanySchema;
|
|
@@ -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 { IAiHrCandidate, IAiHrCandidateModel } from '../types';
|
|
27
|
+
declare const aiHrCandidateSchema: Schema<IAiHrCandidate, IAiHrCandidateModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAiHrCandidate>;
|
|
28
|
+
export default aiHrCandidateSchema;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 aiHrCandidateSchema = new mongoose_1.Schema({
|
|
10
|
+
data: { type: Object, required: true },
|
|
11
|
+
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
12
|
+
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
13
|
+
updatedDate: Number,
|
|
14
|
+
createdDate: Number,
|
|
15
|
+
}, _config_1.schemaOptions);
|
|
16
|
+
aiHrCandidateSchema.pre('save', function (next) {
|
|
17
|
+
const user = express_http_context_1.default.get('user');
|
|
18
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
19
|
+
if (user) {
|
|
20
|
+
if (!this.createdBy)
|
|
21
|
+
this.createdBy = user._id;
|
|
22
|
+
if (!notUpdatedBy)
|
|
23
|
+
this.updatedBy = user._id;
|
|
24
|
+
}
|
|
25
|
+
next();
|
|
26
|
+
});
|
|
27
|
+
aiHrCandidateSchema.pre('findOneAndUpdate', function (next) {
|
|
28
|
+
const user = express_http_context_1.default.get('user');
|
|
29
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
30
|
+
if (user && !notUpdatedBy)
|
|
31
|
+
this._update.updatedBy = user._id;
|
|
32
|
+
next();
|
|
33
|
+
});
|
|
34
|
+
exports.default = aiHrCandidateSchema;
|
|
@@ -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 { IBugReport, IBugReportModel } from '../types';
|
|
27
|
+
declare const bugReportSchema: Schema<IBugReport, IBugReportModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IBugReport>;
|
|
28
|
+
export default bugReportSchema;
|
|
@@ -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 bug_report_type_1 = require("../types/bug-report.type");
|
|
10
|
+
const bugReportSchema = new mongoose_1.Schema({
|
|
11
|
+
data: { type: Object, required: true },
|
|
12
|
+
relatedId: { type: mongoose_1.Schema.Types.ObjectId, required: true },
|
|
13
|
+
relatedModel: { type: String, required: true, enum: bug_report_type_1.RelatedModel },
|
|
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
|
+
bugReportSchema.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
|
+
bugReportSchema.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 = bugReportSchema;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -64,4 +64,7 @@ import AiTaskShareSchema from './ai-task-share.schema';
|
|
|
64
64
|
import AiTopUseCaseSchema from './ai-top-use-case.schema';
|
|
65
65
|
import AiUseCaseAnalysisNodeSchema from './ai-use-case-analysis-node.schema';
|
|
66
66
|
import AiUseCaseAnalysisSchema from './ai-use-case-analysis.schema';
|
|
67
|
-
|
|
67
|
+
import AiHrCandidateSchema from './ai-hr-candidate.schema';
|
|
68
|
+
import AiHrCandidateCompanySchema from './ai-hr-candidate-company.schema';
|
|
69
|
+
import BugReportSchema from './bug-report.schema';
|
|
70
|
+
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, };
|
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.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.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"));
|
|
@@ -137,3 +137,9 @@ const ai_use_case_analysis_node_schema_1 = __importDefault(require("./ai-use-cas
|
|
|
137
137
|
exports.AiUseCaseAnalysisNodeSchema = ai_use_case_analysis_node_schema_1.default;
|
|
138
138
|
const ai_use_case_analysis_schema_1 = __importDefault(require("./ai-use-case-analysis.schema"));
|
|
139
139
|
exports.AiUseCaseAnalysisSchema = ai_use_case_analysis_schema_1.default;
|
|
140
|
+
const ai_hr_candidate_schema_1 = __importDefault(require("./ai-hr-candidate.schema"));
|
|
141
|
+
exports.AiHrCandidateSchema = ai_hr_candidate_schema_1.default;
|
|
142
|
+
const ai_hr_candidate_company_schema_1 = __importDefault(require("./ai-hr-candidate-company.schema"));
|
|
143
|
+
exports.AiHrCandidateCompanySchema = ai_hr_candidate_company_schema_1.default;
|
|
144
|
+
const bug_report_schema_1 = __importDefault(require("./bug-report.schema"));
|
|
145
|
+
exports.BugReportSchema = bug_report_schema_1.default;
|
|
@@ -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
|
+
export declare enum RelatedModel {
|
|
28
|
+
theme = "THEME",
|
|
29
|
+
ai = "AI"
|
|
30
|
+
}
|
|
31
|
+
export interface IBugReport extends BaseSchema {
|
|
32
|
+
relatedId: Types.ObjectId;
|
|
33
|
+
relatedModel: RelatedModel;
|
|
34
|
+
data: object;
|
|
35
|
+
}
|
|
36
|
+
export interface IBugReportModel extends BaseModel<IBugReport> {
|
|
37
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RelatedModel = void 0;
|
|
4
|
+
var RelatedModel;
|
|
5
|
+
(function (RelatedModel) {
|
|
6
|
+
RelatedModel["theme"] = "THEME";
|
|
7
|
+
RelatedModel["ai"] = "AI";
|
|
8
|
+
})(RelatedModel || (exports.RelatedModel = RelatedModel = {}));
|
package/dist/types/index.d.ts
CHANGED
|
@@ -66,4 +66,7 @@ import { IBadge, IBadgeModel } from './badge.type';
|
|
|
66
66
|
import { IAiTopUseCase, IAiTopUseCaseModel } from './ai-top-use-case.type';
|
|
67
67
|
import { IAiUseCaseAnalysisNode, IAiUseCaseAnalysisNodeModel } from './ai-use-case-analysis-node.type';
|
|
68
68
|
import { IAiUseCaseAnalysis, IAiUseCaseAnalysisModel } from './ai-use-case-analysis.type';
|
|
69
|
-
|
|
69
|
+
import { IAiHrCandidate, IAiHrCandidateModel } from './ai-hr-candidate.type';
|
|
70
|
+
import { IAiHrCandidateCompany, IAiHrCandidateCompanyModel } from './ai-hr-candidate-company.type';
|
|
71
|
+
import { IBugReport, IBugReportModel } from './bug-report.type';
|
|
72
|
+
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 };
|