@cool-digital-solutions/interferir-models 1.1.95 → 1.1.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -4
- package/dist/index.js +2 -4
- package/dist/schemas/ai-task-outline.schema.js +2 -2
- package/dist/schemas/ai-task-research-manager-output.schema.js +2 -2
- package/dist/schemas/company.schema.js +2 -2
- package/dist/schemas/index.d.ts +1 -2
- package/dist/schemas/index.js +2 -4
- package/dist/schemas/portia-article.schema.js +1 -0
- package/dist/types/company.type.d.ts +1 -2
- package/dist/types/index.d.ts +1 -2
- package/dist/types/portia-article.type.d.ts +2 -1
- package/package.json +1 -1
- package/dist/schemas/badge.schema.d.ts +0 -28
- package/dist/schemas/badge.schema.js +0 -45
- package/dist/types/badge.type.d.ts +0 -42
- package/dist/types/badge.type.js +0 -11
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { IAiConversation, IAiConversationModel } from './types/ai-conversation.t
|
|
|
2
2
|
import { IAiConversationMessage, IAiConversationMessageModel } from './types/ai-conversation-message.type';
|
|
3
3
|
import { IAiConversationTrackingTask, IAiConversationTrackingTaskModel } from './types/ai-company-tracking-task.type';
|
|
4
4
|
import { IBackendError, IBackendErrorModel } from './types/backend-error.type';
|
|
5
|
-
import { IBadge, IBadgeModel } from './types/badge.type';
|
|
6
5
|
import { IBatchHistory } from './types/batch-history.type';
|
|
7
6
|
import { IBookmark, IBookmarkModel } from './types/bookmark.type';
|
|
8
7
|
import { ICompany, ICompanyModel } from './types/company.type';
|
|
@@ -80,7 +79,6 @@ import PortiaArticleSchema from './schemas/portia-article.schema';
|
|
|
80
79
|
import InstantResearchSchema from './schemas/instant-research.schema';
|
|
81
80
|
import ContactMessageSchema from './schemas/contact-message.schema';
|
|
82
81
|
import ContactStartupSchema from './schemas/contact-startup.schema';
|
|
83
|
-
import BadgeSchema from './schemas/badge.schema';
|
|
84
82
|
import ContentSchema from './schemas/content.schema';
|
|
85
83
|
import FaqSchema from './schemas/faq.schema';
|
|
86
84
|
import UseCaseSchema from './schemas/use-case.schema';
|
|
@@ -127,5 +125,5 @@ import AiTaskResearchManagerOutputSchema from './schemas/ai-task-research-manage
|
|
|
127
125
|
import AiTaskOutlineSchema from './schemas/ai-task-outline.schema';
|
|
128
126
|
import AiTaskShareSchema from './schemas/ai-task-share.schema';
|
|
129
127
|
import { IAiTaskShare, IAiTaskShareModel } from './types/ai-task-share.type';
|
|
130
|
-
export { IAiConversation, IAiConversationModel, IAiConversationMessage, IAiConversationMessageModel, IAiConversationTrackingTask, IAiConversationTrackingTaskModel, IAiAssistant, IAiAssistantModel, IBackendError, IBackendErrorModel,
|
|
131
|
-
export { AiTaskSchema, AiTaskSubmissionSchema, ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema, InstantResearchSchema, ContactMessageSchema, ContactStartupSchema,
|
|
128
|
+
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, };
|
|
129
|
+
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, CompanyClusterSchema, CompanyMarketingSchema, InvestorSchema, RelatedThemeSchema, StartupVectorAnyEntitySchema, UpdateJobSchema, UseCaseDiscoverySchema, UseCaseDiscoveryProblemSchema, CompetitorAnalysisSchema, FoamTreeSchema, FeaturedThemeSchema, CompetitorGridSchema, HighlightSchema, NewsHubSchema, AiAssistantSchema, TeamSchema, TeamMemberSchema, CompanySubOrganizationSchema, HighlightNoteSchema, AiTaskResearchManagerOutputSchema, AiTaskOutlineSchema, AiTaskShareSchema, };
|
package/dist/index.js
CHANGED
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UseCaseDiscoveryProblemSchema = exports.UseCaseDiscoverySchema = exports.UpdateJobSchema = exports.StartupVectorAnyEntitySchema = exports.RelatedThemeSchema = exports.InvestorSchema = exports.CompanyMarketingSchema = exports.CompanyClusterSchema = exports.AiConversationTrackingTaskSchema = exports.AiConversationMessageSchema = exports.AiConversationSchema = exports.BookmarkSchema = exports.CompanyFundingRoundSchema = exports.CompetitorSchema = exports.UserVisitSchema = exports.SuggestSchema = exports.OtpSchema = exports.NotificationSchema = exports.DraftVersionSchema = exports.GeneralConfigSubSchema = exports.GeneralConfigSchema = exports.FollowContentSchema = exports.SparkUseCaseSchema = exports.SparkSchema = exports.LikeSchema = exports.NewsSchema = exports.UseCaseSchema = exports.FaqSchema = exports.ContentSchema = exports.
|
|
7
|
-
exports.AiTaskShareSchema = exports.AiTaskOutlineSchema = exports.AiTaskResearchManagerOutputSchema = exports.HighlightNoteSchema = exports.CompanySubOrganizationSchema = exports.TeamMemberSchema = exports.TeamSchema = exports.AiAssistantSchema = exports.NewsHubSchema = exports.HighlightSchema = exports.CompetitorGridSchema = exports.FeaturedThemeSchema = exports.FoamTreeSchema =
|
|
6
|
+
exports.CompetitorAnalysisSchema = exports.UseCaseDiscoveryProblemSchema = exports.UseCaseDiscoverySchema = exports.UpdateJobSchema = exports.StartupVectorAnyEntitySchema = exports.RelatedThemeSchema = exports.InvestorSchema = exports.CompanyMarketingSchema = exports.CompanyClusterSchema = exports.AiConversationTrackingTaskSchema = exports.AiConversationMessageSchema = exports.AiConversationSchema = exports.BookmarkSchema = exports.CompanyFundingRoundSchema = exports.CompetitorSchema = exports.UserVisitSchema = exports.SuggestSchema = exports.OtpSchema = exports.NotificationSchema = exports.DraftVersionSchema = exports.GeneralConfigSubSchema = exports.GeneralConfigSchema = exports.FollowContentSchema = exports.SparkUseCaseSchema = exports.SparkSchema = exports.LikeSchema = exports.NewsSchema = exports.UseCaseSchema = exports.FaqSchema = exports.ContentSchema = exports.ContactStartupSchema = exports.ContactMessageSchema = exports.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.AiTaskShareSchema = exports.AiTaskOutlineSchema = exports.AiTaskResearchManagerOutputSchema = exports.HighlightNoteSchema = exports.CompanySubOrganizationSchema = exports.TeamMemberSchema = exports.TeamSchema = exports.AiAssistantSchema = exports.NewsHubSchema = exports.HighlightSchema = exports.CompetitorGridSchema = exports.FeaturedThemeSchema = exports.FoamTreeSchema = void 0;
|
|
8
8
|
const theme_schema_1 = __importDefault(require("./schemas/theme.schema"));
|
|
9
9
|
exports.ThemeSchema = theme_schema_1.default;
|
|
10
10
|
const problem_schema_1 = __importDefault(require("./schemas/problem.schema"));
|
|
@@ -41,8 +41,6 @@ const contact_message_schema_1 = __importDefault(require("./schemas/contact-mess
|
|
|
41
41
|
exports.ContactMessageSchema = contact_message_schema_1.default;
|
|
42
42
|
const contact_startup_schema_1 = __importDefault(require("./schemas/contact-startup.schema"));
|
|
43
43
|
exports.ContactStartupSchema = contact_startup_schema_1.default;
|
|
44
|
-
const badge_schema_1 = __importDefault(require("./schemas/badge.schema"));
|
|
45
|
-
exports.BadgeSchema = badge_schema_1.default;
|
|
46
44
|
const content_schema_1 = __importDefault(require("./schemas/content.schema"));
|
|
47
45
|
exports.ContentSchema = content_schema_1.default;
|
|
48
46
|
const faq_schema_1 = __importDefault(require("./schemas/faq.schema"));
|
|
@@ -7,10 +7,10 @@ const mongoose_1 = require("mongoose");
|
|
|
7
7
|
const express_http_context_1 = __importDefault(require("express-http-context"));
|
|
8
8
|
const _config_1 = require("../config");
|
|
9
9
|
const aiTaskOutlineSchema = new mongoose_1.Schema({
|
|
10
|
-
aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: '
|
|
10
|
+
aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTask', required: true },
|
|
11
11
|
title: { type: String, default: '' },
|
|
12
12
|
order: { type: Number },
|
|
13
|
-
parentId: { type: mongoose_1.Schema.Types.ObjectId, ref: '
|
|
13
|
+
parentId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTaskOutline', default: null },
|
|
14
14
|
references: [{ type: Object }],
|
|
15
15
|
feedbacks: [
|
|
16
16
|
{
|
|
@@ -7,11 +7,11 @@ const mongoose_1 = require("mongoose");
|
|
|
7
7
|
const express_http_context_1 = __importDefault(require("express-http-context"));
|
|
8
8
|
const _config_1 = require("../config");
|
|
9
9
|
const aiTaskResearchManagerOutputSchema = new mongoose_1.Schema({
|
|
10
|
-
aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: '
|
|
10
|
+
aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTask', required: true },
|
|
11
11
|
title: { type: String, default: '' },
|
|
12
12
|
content: { type: String, default: '' },
|
|
13
13
|
order: { type: Number },
|
|
14
|
-
parentId: { type: mongoose_1.Schema.Types.ObjectId, ref: '
|
|
14
|
+
parentId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTaskResearchManagerOutput', default: null },
|
|
15
15
|
references: [{ type: Object }],
|
|
16
16
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
17
17
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
@@ -73,7 +73,7 @@ const companySchema = new mongoose_1.Schema({
|
|
|
73
73
|
files: [
|
|
74
74
|
{
|
|
75
75
|
media: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Image', default: null },
|
|
76
|
-
icon: { type:
|
|
76
|
+
// icon: { type: Schema.Types.ObjectId, ref: 'Badge' },
|
|
77
77
|
isArchived: { type: Boolean, default: false },
|
|
78
78
|
},
|
|
79
79
|
],
|
|
@@ -140,7 +140,7 @@ const companySchema = new mongoose_1.Schema({
|
|
|
140
140
|
technicalRequirement: {
|
|
141
141
|
history: { type: String, default: '' },
|
|
142
142
|
requirement: {
|
|
143
|
-
icons: [{ type:
|
|
143
|
+
// icons: [{ type: Schema.Types.ObjectId, ref: 'Badge', default: null }],
|
|
144
144
|
content: { type: String, default: '' },
|
|
145
145
|
},
|
|
146
146
|
liveDemo: { type: String, default: '' },
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ import PortiaArticleSchema from './portia-article.schema';
|
|
|
16
16
|
import InstantResearchSchema from './instant-research.schema';
|
|
17
17
|
import ContactMessageSchema from './contact-message.schema';
|
|
18
18
|
import ContactStartupSchema from './contact-startup.schema';
|
|
19
|
-
import BadgeSchema from './badge.schema';
|
|
20
19
|
import ContentSchema from './content.schema';
|
|
21
20
|
import FaqSchema from './faq.schema';
|
|
22
21
|
import UseCaseSchema from './use-case.schema';
|
|
@@ -61,4 +60,4 @@ import HighlightNoteSchema from './highlight-note.schema';
|
|
|
61
60
|
import AiTaskResearchManagerOutputSchema from './ai-task-research-manager-output.schema';
|
|
62
61
|
import AiTaskOutlineSchema from './ai-task-outline.schema';
|
|
63
62
|
import AiTaskShareSchema from './ai-task-share.schema';
|
|
64
|
-
export { AiTaskSchema, AiTaskSubmissionSchema, ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema, InstantResearchSchema, ContactMessageSchema, ContactStartupSchema,
|
|
63
|
+
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, };
|
package/dist/schemas/index.js
CHANGED
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.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.
|
|
7
|
-
exports.AiTaskShareSchema = exports.AiTaskOutlineSchema = exports.AiTaskResearchManagerOutputSchema = exports.HighlightNoteSchema = exports.CompanySubOrganizationSchema = exports.TeamMemberSchema = exports.TeamSchema = exports.AiAssistantSchema = exports.NewsHubSchema = exports.HighlightSchema = exports.FeaturedThemeSchema = exports.CompetitorAnalysisSchema =
|
|
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.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"));
|
|
@@ -41,8 +41,6 @@ const contact_message_schema_1 = __importDefault(require("./contact-message.sche
|
|
|
41
41
|
exports.ContactMessageSchema = contact_message_schema_1.default;
|
|
42
42
|
const contact_startup_schema_1 = __importDefault(require("./contact-startup.schema"));
|
|
43
43
|
exports.ContactStartupSchema = contact_startup_schema_1.default;
|
|
44
|
-
const badge_schema_1 = __importDefault(require("./badge.schema"));
|
|
45
|
-
exports.BadgeSchema = badge_schema_1.default;
|
|
46
44
|
const content_schema_1 = __importDefault(require("./content.schema"));
|
|
47
45
|
exports.ContentSchema = content_schema_1.default;
|
|
48
46
|
const faq_schema_1 = __importDefault(require("./faq.schema"));
|
|
@@ -78,6 +78,7 @@ const portiaArticleSchema = new mongoose_1.Schema({
|
|
|
78
78
|
portiaApiResults: [{ message: { type: String, default: '' } }],
|
|
79
79
|
similarArticleUrls: [{ type: String, required: false, default: [] }],
|
|
80
80
|
similarArticleCount: { type: Number, default: 0 },
|
|
81
|
+
aiTaskResearchManagerOutputs: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTaskResearchManagerOutput' }],
|
|
81
82
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
82
83
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
83
84
|
updatedDate: { type: Number, index: -1 },
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import { Types } from 'mongoose';
|
|
26
|
-
import { IIndustry, ITechnology, ISFCategory, ISFSubCategory, ISFTag, IImage, IUser
|
|
26
|
+
import { IIndustry, ITechnology, ISFCategory, ISFSubCategory, ISFTag, IImage, IUser } from './';
|
|
27
27
|
import { BaseModel, BaseSchema, ContentDraftStatus, ContentStatus, ContentStatusCount } from '../config';
|
|
28
28
|
type IndexDirection = -1 | 1 | 'asc' | 'desc' | 'text';
|
|
29
29
|
export interface IndexField {
|
|
@@ -155,7 +155,6 @@ interface AnalysisScore {
|
|
|
155
155
|
interface TechnicalRequirement {
|
|
156
156
|
history: string;
|
|
157
157
|
requirement: {
|
|
158
|
-
icons: Types.ObjectId[] | IBadge[];
|
|
159
158
|
content: string;
|
|
160
159
|
};
|
|
161
160
|
liveDemo: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IAiConversation, IAiConversationModel } from './ai-conversation.type';
|
|
2
2
|
import { IBackendError, IBackendErrorModel } from './backend-error.type';
|
|
3
|
-
import { IBadge, IBadgeModel } from './badge.type';
|
|
4
3
|
import { IBatchHistory } from './batch-history.type';
|
|
5
4
|
import { IBookmark, IBookmarkModel } from './bookmark.type';
|
|
6
5
|
import { ICompany, ICompanyModel } from './company.type';
|
|
@@ -63,4 +62,4 @@ import { IHighlightNote, IHighlightNoteModel } from './highlight-note.type';
|
|
|
63
62
|
import { IAiTaskResearchManagerOutput, IAiTaskResearchManagerOutputModel } from './ai-task-research-manager-output.type';
|
|
64
63
|
import { IAiTaskOutline, IAiTaskOutlineModel } from './ai-task-outline.type';
|
|
65
64
|
import { IAiTaskShare, IAiTaskShareModel } from './ai-task-share.type';
|
|
66
|
-
export { IAiConversation, IAiConversationModel, IAiAssistant, IAiAssistantModel, IAiConversationMessage, IAiConversationMessageModel, IAiConversationTrackingTask, IAiConversationTrackingTaskModel, IBackendError, IBackendErrorModel,
|
|
65
|
+
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, };
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import { Types } from 'mongoose';
|
|
26
|
-
import { ICompany, IImage, IIndustry, ITechnology, ISFCategory, ISFSubCategory, ISFTag, IUseCase } from './';
|
|
26
|
+
import { ICompany, IImage, IIndustry, ITechnology, ISFCategory, ISFSubCategory, ISFTag, IUseCase, IAiTaskResearchManagerOutput } from './';
|
|
27
27
|
import { BaseModel, BaseSchema } from '../config';
|
|
28
28
|
export declare enum PortiaArticleTypes {
|
|
29
29
|
NEWS = "news"
|
|
@@ -103,6 +103,7 @@ export interface IPortiaArticle extends BaseSchema {
|
|
|
103
103
|
useCases: Types.ObjectId[] | IUseCase[];
|
|
104
104
|
similarArticleUrls?: string[];
|
|
105
105
|
similarArticleCount?: number;
|
|
106
|
+
aiTaskResearchManagerOutputs?: Types.ObjectId[] | IAiTaskResearchManagerOutput[];
|
|
106
107
|
}
|
|
107
108
|
export interface IPortiaArticleModel extends BaseModel<IPortiaArticle> {
|
|
108
109
|
}
|
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import { Schema } from 'mongoose';
|
|
26
|
-
import type { IBadge, IBadgeModel } from '../types';
|
|
27
|
-
declare const badgeSchema: Schema<IBadge, IBadgeModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IBadge>;
|
|
28
|
-
export default badgeSchema;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const mongoose_1 = require("mongoose");
|
|
7
|
-
const express_http_context_1 = __importDefault(require("express-http-context"));
|
|
8
|
-
const badge_type_1 = require("../types/badge.type");
|
|
9
|
-
const _config_1 = require("../config");
|
|
10
|
-
const badgeSchema = new mongoose_1.Schema({
|
|
11
|
-
key: {
|
|
12
|
-
type: String,
|
|
13
|
-
required: [true, 'key is required.'],
|
|
14
|
-
},
|
|
15
|
-
text: { type: String, required: [true, 'text is required.'] },
|
|
16
|
-
icon: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Image', default: null },
|
|
17
|
-
type: {
|
|
18
|
-
type: String,
|
|
19
|
-
enum: Object.values(badge_type_1.BadgeType),
|
|
20
|
-
required: [true, 'type is required'],
|
|
21
|
-
},
|
|
22
|
-
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
23
|
-
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
24
|
-
updatedDate: Number,
|
|
25
|
-
createdDate: Number,
|
|
26
|
-
}, _config_1.schemaOptions);
|
|
27
|
-
badgeSchema.pre('save', 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) {
|
|
31
|
-
if (!this.createdBy)
|
|
32
|
-
this.createdBy = user._id;
|
|
33
|
-
if (!notUpdatedBy)
|
|
34
|
-
this.updatedBy = user._id;
|
|
35
|
-
}
|
|
36
|
-
next();
|
|
37
|
-
});
|
|
38
|
-
badgeSchema.pre('findOneAndUpdate', function (next) {
|
|
39
|
-
const user = express_http_context_1.default.get('user');
|
|
40
|
-
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
41
|
-
if (user && !notUpdatedBy)
|
|
42
|
-
this._update.updatedBy = user._id;
|
|
43
|
-
next();
|
|
44
|
-
});
|
|
45
|
-
exports.default = badgeSchema;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import { Types } from 'mongoose';
|
|
26
|
-
import { IImage } from './';
|
|
27
|
-
import { BaseModel, BaseSchema } from '../config';
|
|
28
|
-
export declare enum BadgeType {
|
|
29
|
-
STAKEHOLDER = "stakeholder",
|
|
30
|
-
ADDITIONAL_MATERIAL = "additionalMaterial",
|
|
31
|
-
BADGE = "badge",
|
|
32
|
-
PRIVATE = "private",
|
|
33
|
-
SECURITY_CERTIFICATE = "securityCertificate"
|
|
34
|
-
}
|
|
35
|
-
export interface IBadge extends BaseSchema {
|
|
36
|
-
key: string;
|
|
37
|
-
text: string;
|
|
38
|
-
icon: Types.ObjectId | IImage;
|
|
39
|
-
type: BadgeType;
|
|
40
|
-
}
|
|
41
|
-
export interface IBadgeModel extends BaseModel<IBadge> {
|
|
42
|
-
}
|
package/dist/types/badge.type.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BadgeType = void 0;
|
|
4
|
-
var BadgeType;
|
|
5
|
-
(function (BadgeType) {
|
|
6
|
-
BadgeType["STAKEHOLDER"] = "stakeholder";
|
|
7
|
-
BadgeType["ADDITIONAL_MATERIAL"] = "additionalMaterial";
|
|
8
|
-
BadgeType["BADGE"] = "badge";
|
|
9
|
-
BadgeType["PRIVATE"] = "private";
|
|
10
|
-
BadgeType["SECURITY_CERTIFICATE"] = "securityCertificate";
|
|
11
|
-
})(BadgeType || (exports.BadgeType = BadgeType = {}));
|