@cool-digital-solutions/interferir-models 1.2.6 → 1.2.8
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 +3 -1
- package/dist/schemas/ai-top-use-case.schema.d.ts +28 -0
- package/dist/schemas/ai-top-use-case.schema.js +59 -0
- package/dist/schemas/index.d.ts +2 -1
- package/dist/schemas/index.js +3 -1
- package/dist/schemas/use-case-discovery.schema.js +5 -5
- package/dist/types/ai-top-use-case.type.d.ts +48 -0
- package/dist/types/ai-top-use-case.type.js +2 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/use-case-discovery.type.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,8 @@ import { IHighlightNote, IHighlightNoteModel } from './types/highlight-note.type
|
|
|
62
62
|
import { IAiTaskResearchManagerOutput, IAiTaskResearchManagerOutputModel } from './types/ai-task-research-manager-output.type';
|
|
63
63
|
import { IAiTaskOutline, IAiTaskOutlineModel } from './types/ai-task-outline.type';
|
|
64
64
|
import { IBadge, IBadgeModel } from './types/badge.type';
|
|
65
|
+
import { IAiTaskShare, IAiTaskShareModel } from './types/ai-task-share.type';
|
|
66
|
+
import { IAiTopUseCase, IAiTopUseCaseModel } from './types/ai-top-use-case.type';
|
|
65
67
|
import ThemeSchema from './schemas/theme.schema';
|
|
66
68
|
import ProblemSchema from './schemas/problem.schema';
|
|
67
69
|
import SFTagSchema from './schemas/sf-tag.schema';
|
|
@@ -125,7 +127,7 @@ import HighlightNoteSchema from './schemas/highlight-note.schema';
|
|
|
125
127
|
import AiTaskResearchManagerOutputSchema from './schemas/ai-task-research-manager-output.schema';
|
|
126
128
|
import AiTaskOutlineSchema from './schemas/ai-task-outline.schema';
|
|
127
129
|
import AiTaskShareSchema from './schemas/ai-task-share.schema';
|
|
128
|
-
import { IAiTaskShare, IAiTaskShareModel } from './types/ai-task-share.type';
|
|
129
130
|
import BadgeSchema from './schemas/badge.schema';
|
|
130
|
-
|
|
131
|
-
export {
|
|
131
|
+
import AiTopUseCaseSchema from './schemas/ai-top-use-case.schema';
|
|
132
|
+
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, };
|
|
133
|
+
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, };
|
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.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.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"));
|
|
@@ -133,3 +133,5 @@ const ai_task_share_schema_1 = __importDefault(require("./schemas/ai-task-share.
|
|
|
133
133
|
exports.AiTaskShareSchema = ai_task_share_schema_1.default;
|
|
134
134
|
const badge_schema_1 = __importDefault(require("./schemas/badge.schema"));
|
|
135
135
|
exports.BadgeSchema = badge_schema_1.default;
|
|
136
|
+
const ai_top_use_case_schema_1 = __importDefault(require("./schemas/ai-top-use-case.schema"));
|
|
137
|
+
exports.AiTopUseCaseSchema = ai_top_use_case_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 { IAiTopUseCase, IAiTopUseCaseModel } from '../types';
|
|
27
|
+
declare const aiTopUseCaseSchema: Schema<IAiTopUseCase, IAiTopUseCaseModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAiTopUseCase>;
|
|
28
|
+
export default aiTopUseCaseSchema;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 aiTopUseCaseSchema = new mongoose_1.Schema({
|
|
10
|
+
aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTask', required: true },
|
|
11
|
+
aiTaskResearchManagerOutput: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTaskResearchManagerOutput', required: true },
|
|
12
|
+
useCases: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'UseCase', required: true }],
|
|
13
|
+
title: { type: String, required: true },
|
|
14
|
+
summary: { type: String, required: true },
|
|
15
|
+
reasoning: [
|
|
16
|
+
{
|
|
17
|
+
relevancy: { type: String, required: true },
|
|
18
|
+
original: { type: String, required: true },
|
|
19
|
+
summary: { type: String, required: true },
|
|
20
|
+
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
21
|
+
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
22
|
+
updatedDate: Number,
|
|
23
|
+
createdDate: Number,
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
sources: [
|
|
27
|
+
{
|
|
28
|
+
text: { type: String, required: true },
|
|
29
|
+
url: { type: String, required: true },
|
|
30
|
+
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
31
|
+
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
32
|
+
updatedDate: Number,
|
|
33
|
+
createdDate: Number,
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
37
|
+
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
38
|
+
updatedDate: Number,
|
|
39
|
+
createdDate: Number,
|
|
40
|
+
}, _config_1.schemaOptions);
|
|
41
|
+
aiTopUseCaseSchema.pre('save', function (next) {
|
|
42
|
+
const user = express_http_context_1.default.get('user');
|
|
43
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
44
|
+
if (user) {
|
|
45
|
+
if (!this.createdBy)
|
|
46
|
+
this.createdBy = user._id;
|
|
47
|
+
if (!notUpdatedBy)
|
|
48
|
+
this.updatedBy = user._id;
|
|
49
|
+
}
|
|
50
|
+
next();
|
|
51
|
+
});
|
|
52
|
+
aiTopUseCaseSchema.pre('findOneAndUpdate', function (next) {
|
|
53
|
+
const user = express_http_context_1.default.get('user');
|
|
54
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
55
|
+
if (user && !notUpdatedBy)
|
|
56
|
+
this._update.updatedBy = user._id;
|
|
57
|
+
next();
|
|
58
|
+
});
|
|
59
|
+
exports.default = aiTopUseCaseSchema;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -61,4 +61,5 @@ import HighlightNoteSchema from './highlight-note.schema';
|
|
|
61
61
|
import AiTaskResearchManagerOutputSchema from './ai-task-research-manager-output.schema';
|
|
62
62
|
import AiTaskOutlineSchema from './ai-task-outline.schema';
|
|
63
63
|
import AiTaskShareSchema from './ai-task-share.schema';
|
|
64
|
-
|
|
64
|
+
import AiTopUseCaseSchema from './ai-top-use-case.schema';
|
|
65
|
+
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, };
|
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.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.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"));
|
|
@@ -131,3 +131,5 @@ const ai_task_outline_schema_1 = __importDefault(require("./ai-task-outline.sche
|
|
|
131
131
|
exports.AiTaskOutlineSchema = ai_task_outline_schema_1.default;
|
|
132
132
|
const ai_task_share_schema_1 = __importDefault(require("./ai-task-share.schema"));
|
|
133
133
|
exports.AiTaskShareSchema = ai_task_share_schema_1.default;
|
|
134
|
+
const ai_top_use_case_schema_1 = __importDefault(require("./ai-top-use-case.schema"));
|
|
135
|
+
exports.AiTopUseCaseSchema = ai_top_use_case_schema_1.default;
|
|
@@ -14,11 +14,11 @@ const useCaseDiscoverySchema = new mongoose_1.Schema({
|
|
|
14
14
|
// totalCount: { type: Number, required: true },
|
|
15
15
|
status: { type: String, enum: Object.values(use_case_discovery_type_1.UseCaseDiscoveryStatus), required: [true, 'status is required!'] },
|
|
16
16
|
// entramindId: { type: String, default: '' },
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
response: [
|
|
18
|
+
{
|
|
19
|
+
message: { type: String, default: '' },
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
22
|
focusAreas: [
|
|
23
23
|
{
|
|
24
24
|
title: { type: String, required: true },
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { IAiTask, IAiTaskResearchManagerOutput, IUseCase } from './';
|
|
27
|
+
import { BaseModel, BaseSchema } from '../config';
|
|
28
|
+
interface Reasoning extends BaseSchema {
|
|
29
|
+
relevancy: string;
|
|
30
|
+
original: string;
|
|
31
|
+
summary: string;
|
|
32
|
+
}
|
|
33
|
+
interface Source extends BaseSchema {
|
|
34
|
+
text: string;
|
|
35
|
+
url: string;
|
|
36
|
+
}
|
|
37
|
+
export interface IAiTopUseCase extends BaseSchema {
|
|
38
|
+
aiTask: Types.ObjectId | IAiTask;
|
|
39
|
+
aiTaskResearchManagerOutput: Types.ObjectId | IAiTaskResearchManagerOutput;
|
|
40
|
+
useCases: Types.ObjectId[] | IUseCase[];
|
|
41
|
+
title: string;
|
|
42
|
+
summary: string;
|
|
43
|
+
reasoning: Reasoning;
|
|
44
|
+
sources: Source[];
|
|
45
|
+
}
|
|
46
|
+
export interface IAiTopUseCaseModel extends BaseModel<IAiTopUseCase> {
|
|
47
|
+
}
|
|
48
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -63,4 +63,5 @@ import { IAiTaskResearchManagerOutput, IAiTaskResearchManagerOutputModel } from
|
|
|
63
63
|
import { IAiTaskOutline, IAiTaskOutlineModel } from './ai-task-outline.type';
|
|
64
64
|
import { IAiTaskShare, IAiTaskShareModel } from './ai-task-share.type';
|
|
65
65
|
import { IBadge, IBadgeModel } from './badge.type';
|
|
66
|
-
|
|
66
|
+
import { IAiTopUseCase, IAiTopUseCaseModel } from './ai-top-use-case.type';
|
|
67
|
+
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, };
|