@cool-digital-solutions/interferir-models 1.1.38 → 1.1.40
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 +6 -2
- package/dist/index.js +6 -2
- package/dist/schemas/ai-task-submission.schema.d.ts +28 -0
- package/dist/schemas/ai-task-submission.schema.js +39 -0
- package/dist/schemas/ai-task.schema.d.ts +28 -0
- package/dist/schemas/ai-task.schema.js +41 -0
- package/dist/schemas/index.d.ts +3 -1
- package/dist/schemas/index.js +6 -2
- package/dist/types/ai-task-submission.type.d.ts +37 -0
- package/dist/types/ai-task-submission.type.js +2 -0
- package/dist/types/ai-task.type.d.ts +50 -0
- package/dist/types/ai-task.type.js +10 -0
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -117,5 +117,9 @@ import CompetitorGridSchema from './schemas/competitor-grid.schema';
|
|
|
117
117
|
import HighlightSchema from './schemas/highlight.schema';
|
|
118
118
|
import NewsHubSchema from './schemas/news-hub.schema';
|
|
119
119
|
import TeamSchema from './schemas/team.schema';
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
import AiTaskSchema from './schemas/ai-task.schema';
|
|
121
|
+
import AiTaskSubmissionSchema from './schemas/ai-task-submission.schema';
|
|
122
|
+
import { IAiTask, IAiTaskModel } from './types/ai-task.type';
|
|
123
|
+
import { IAiTaskSubmission, IAiTaskSubmissionModel } from './types/ai-task-submission.type';
|
|
124
|
+
export { IAiConversation, IAiConversationModel, IAiConversationMessage, IAiConversationMessageModel, IAiConversationTrackingTask, IAiConversationTrackingTaskModel, IAiAssistant, IAiAssistantModel, IBackendError, IBackendErrorModel, IBadge, IBadgeModel, IBatchHistory, IBookmark, IBookmarkModel, ICompany, ICompanyModel, ICompanyCluster, ICompanyClusterModel, ICompanyMarketing, ICompanyMarketingModel, ICompanyFundingRound, ICompanyFundingRoundModel, ICompetitor, ICompetitorModel, ICompetitorAnalysis, ICompetitorAnalysisModel, IContactMessage, IContactMessageModel, IContactStartup, IContactStartupModel, IContent, IContentModel, IDraftVersion, IDraftVersionModel, IEvidenceLayout, IEvidenceLayoutModel, IEvidence, IEvidenceModel, 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, ISiteMapCache, ISiteMapCacheModel, 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, INewsHub, INewsHubModel, ITeam, ITeamModel, IAiTask, IAiTaskModel, IAiTaskSubmission, IAiTaskSubmissionModel };
|
|
125
|
+
export { AiTaskSchema, AiTaskSubmissionSchema, ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, EvidenceSchema, EvidenceLayoutSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema, InstantResearchSchema, ContactMessageSchema, ContactStartupSchema, BadgeSchema, ContentSchema, FaqSchema, UseCaseSchema, NewsSchema, LikeSchema, SparkSchema, SparkUseCaseSchema, FollowContentSchema, SiteMapCacheSchema, 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, };
|
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.
|
|
7
|
-
exports.TeamSchema = exports.AiAssistantSchema = exports.NewsHubSchema = exports.HighlightSchema = exports.CompetitorGridSchema = exports.FeaturedThemeSchema = exports.FoamTreeSchema = exports.CompetitorAnalysisSchema = exports.UseCaseDiscoveryProblemSchema = void 0;
|
|
6
|
+
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.SiteMapCacheSchema = exports.FollowContentSchema = exports.SparkUseCaseSchema = exports.SparkSchema = exports.LikeSchema = exports.NewsSchema = exports.UseCaseSchema = exports.FaqSchema = exports.ContentSchema = exports.BadgeSchema = exports.ContactStartupSchema = exports.ContactMessageSchema = exports.InstantResearchSchema = exports.PortiaArticleSchema = exports.CompanySchema = exports.UserSchema = exports.UserTokenSchema = exports.TokenSchema = exports.SearchHistorySchema = exports.ImageSchema = exports.EvidenceLayoutSchema = exports.EvidenceSchema = exports.BackendErrorSchema = exports.IndustrySchema = exports.TechnologySchema = exports.SFSubCategorySchema = exports.SFCategorySchema = exports.SFTagSchema = exports.ProblemSchema = exports.ThemeSchema = exports.AiTaskSubmissionSchema = exports.AiTaskSchema = void 0;
|
|
7
|
+
exports.TeamSchema = exports.AiAssistantSchema = exports.NewsHubSchema = exports.HighlightSchema = exports.CompetitorGridSchema = exports.FeaturedThemeSchema = exports.FoamTreeSchema = exports.CompetitorAnalysisSchema = exports.UseCaseDiscoveryProblemSchema = exports.UseCaseDiscoverySchema = exports.UpdateJobSchema = 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"));
|
|
@@ -123,3 +123,7 @@ const news_hub_schema_1 = __importDefault(require("./schemas/news-hub.schema"));
|
|
|
123
123
|
exports.NewsHubSchema = news_hub_schema_1.default;
|
|
124
124
|
const team_schema_1 = __importDefault(require("./schemas/team.schema"));
|
|
125
125
|
exports.TeamSchema = team_schema_1.default;
|
|
126
|
+
const ai_task_schema_1 = __importDefault(require("./schemas/ai-task.schema"));
|
|
127
|
+
exports.AiTaskSchema = ai_task_schema_1.default;
|
|
128
|
+
const ai_task_submission_schema_1 = __importDefault(require("./schemas/ai-task-submission.schema"));
|
|
129
|
+
exports.AiTaskSubmissionSchema = ai_task_submission_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 { IAiTaskSubmission, IAiTaskSubmissionModel } from '../types';
|
|
27
|
+
declare const aiTaskSubmissionSchema: Schema<IAiTaskSubmission, IAiTaskSubmissionModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAiTaskSubmission>;
|
|
28
|
+
export default aiTaskSubmissionSchema;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 aiTaskSubmissionSchema = new mongoose_1.Schema({
|
|
10
|
+
user: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
11
|
+
startDate: { type: Number },
|
|
12
|
+
endDate: { type: Number },
|
|
13
|
+
params: { type: Object },
|
|
14
|
+
inputChannel: { type: Object },
|
|
15
|
+
notificationChannel: { type: Object },
|
|
16
|
+
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
17
|
+
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
18
|
+
updatedDate: Number,
|
|
19
|
+
createdDate: Number,
|
|
20
|
+
}, _config_1.schemaOptions);
|
|
21
|
+
aiTaskSubmissionSchema.pre('save', function (next) {
|
|
22
|
+
const user = express_http_context_1.default.get('user');
|
|
23
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
24
|
+
if (user) {
|
|
25
|
+
if (!this.createdBy)
|
|
26
|
+
this.createdBy = user._id;
|
|
27
|
+
if (!notUpdatedBy)
|
|
28
|
+
this.updatedBy = user._id;
|
|
29
|
+
}
|
|
30
|
+
next();
|
|
31
|
+
});
|
|
32
|
+
aiTaskSubmissionSchema.pre('findOneAndUpdate', function (next) {
|
|
33
|
+
const user = express_http_context_1.default.get('user');
|
|
34
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
35
|
+
if (user && !notUpdatedBy)
|
|
36
|
+
this._update.updatedBy = user._id;
|
|
37
|
+
next();
|
|
38
|
+
});
|
|
39
|
+
exports.default = aiTaskSubmissionSchema;
|
|
@@ -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 { IAiTask, IAiTaskModel } from '../types';
|
|
27
|
+
declare const aiTaskSchema: Schema<IAiTask, IAiTaskModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAiTask>;
|
|
28
|
+
export default aiTaskSchema;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 ai_task_type_1 = require("../types/ai-task.type");
|
|
10
|
+
const aiTaskSchema = new mongoose_1.Schema({
|
|
11
|
+
taskType: { type: String, default: '' },
|
|
12
|
+
status: { type: String, enum: Object.values(ai_task_type_1.AITaskStatus) },
|
|
13
|
+
aiTaskSubmission: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTaskSubmission', default: null },
|
|
14
|
+
process: { value: { type: Number }, text: { type: String }, finishDate: { type: Number } },
|
|
15
|
+
aiConversation: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiConversation', default: null },
|
|
16
|
+
isPinned: { type: Boolean },
|
|
17
|
+
output: { type: [] },
|
|
18
|
+
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
19
|
+
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
20
|
+
updatedDate: Number,
|
|
21
|
+
createdDate: Number,
|
|
22
|
+
}, _config_1.schemaOptions);
|
|
23
|
+
aiTaskSchema.pre('save', function (next) {
|
|
24
|
+
const user = express_http_context_1.default.get('user');
|
|
25
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
26
|
+
if (user) {
|
|
27
|
+
if (!this.createdBy)
|
|
28
|
+
this.createdBy = user._id;
|
|
29
|
+
if (!notUpdatedBy)
|
|
30
|
+
this.updatedBy = user._id;
|
|
31
|
+
}
|
|
32
|
+
next();
|
|
33
|
+
});
|
|
34
|
+
aiTaskSchema.pre('findOneAndUpdate', function (next) {
|
|
35
|
+
const user = express_http_context_1.default.get('user');
|
|
36
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
37
|
+
if (user && !notUpdatedBy)
|
|
38
|
+
this._update.updatedBy = user._id;
|
|
39
|
+
next();
|
|
40
|
+
});
|
|
41
|
+
exports.default = aiTaskSchema;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -56,4 +56,6 @@ import HighlightSchema from './highlight.schema';
|
|
|
56
56
|
import NewsHubSchema from './news-hub.schema';
|
|
57
57
|
import AiAssistantSchema from './ai-assistant.schema';
|
|
58
58
|
import TeamSchema from './team.schema';
|
|
59
|
-
|
|
59
|
+
import AiTaskSchema from './ai-task.schema';
|
|
60
|
+
import AiTaskSubmissionSchema from './ai-task-submission.schema';
|
|
61
|
+
export { AiTaskSchema, AiTaskSubmissionSchema, ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, EvidenceSchema, EvidenceLayoutSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema, InstantResearchSchema, ContactMessageSchema, ContactStartupSchema, BadgeSchema, ContentSchema, FaqSchema, UseCaseSchema, NewsSchema, LikeSchema, SparkSchema, SparkUseCaseSchema, FollowContentSchema, SiteMapCacheSchema, 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, };
|
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.
|
|
7
|
-
exports.TeamSchema = exports.AiAssistantSchema = exports.NewsHubSchema = exports.HighlightSchema = exports.FeaturedThemeSchema = exports.CompetitorAnalysisSchema = exports.UseCaseDiscoveryProblemSchema = exports.UseCaseDiscoverySchema = void 0;
|
|
6
|
+
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.SiteMapCacheSchema = exports.FollowContentSchema = exports.SparkUseCaseSchema = exports.SparkSchema = exports.LikeSchema = exports.NewsSchema = exports.UseCaseSchema = exports.FaqSchema = exports.ContentSchema = exports.BadgeSchema = exports.ContactStartupSchema = exports.ContactMessageSchema = exports.InstantResearchSchema = exports.PortiaArticleSchema = exports.CompanySchema = exports.UserSchema = exports.UserTokenSchema = exports.TokenSchema = exports.SearchHistorySchema = exports.ImageSchema = exports.EvidenceLayoutSchema = exports.EvidenceSchema = exports.BackendErrorSchema = exports.IndustrySchema = exports.TechnologySchema = exports.SFSubCategorySchema = exports.SFCategorySchema = exports.SFTagSchema = exports.ProblemSchema = exports.ThemeSchema = exports.AiTaskSubmissionSchema = exports.AiTaskSchema = void 0;
|
|
7
|
+
exports.TeamSchema = exports.AiAssistantSchema = exports.NewsHubSchema = exports.HighlightSchema = exports.FeaturedThemeSchema = exports.CompetitorAnalysisSchema = exports.UseCaseDiscoveryProblemSchema = exports.UseCaseDiscoverySchema = exports.UpdateJobSchema = exports.StartupVectorAnyEntitySchema = 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"));
|
|
@@ -121,3 +121,7 @@ const ai_assistant_schema_1 = __importDefault(require("./ai-assistant.schema"));
|
|
|
121
121
|
exports.AiAssistantSchema = ai_assistant_schema_1.default;
|
|
122
122
|
const team_schema_1 = __importDefault(require("./team.schema"));
|
|
123
123
|
exports.TeamSchema = team_schema_1.default;
|
|
124
|
+
const ai_task_schema_1 = __importDefault(require("./ai-task.schema"));
|
|
125
|
+
exports.AiTaskSchema = ai_task_schema_1.default;
|
|
126
|
+
const ai_task_submission_schema_1 = __importDefault(require("./ai-task-submission.schema"));
|
|
127
|
+
exports.AiTaskSubmissionSchema = ai_task_submission_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 { Types } from 'mongoose';
|
|
26
|
+
import { IUser } from './';
|
|
27
|
+
import { BaseModel, BaseSchema } from '../config';
|
|
28
|
+
export interface IAiTaskSubmission extends BaseSchema {
|
|
29
|
+
user: Types.ObjectId | IUser;
|
|
30
|
+
startDate: number;
|
|
31
|
+
endDate: number;
|
|
32
|
+
params: object;
|
|
33
|
+
inputChannel: object;
|
|
34
|
+
notificationChannel: object;
|
|
35
|
+
}
|
|
36
|
+
export interface IAiTaskSubmissionModel extends BaseModel<IAiTaskSubmission> {
|
|
37
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { IAiConversation, IAiTaskSubmission } from './';
|
|
27
|
+
import { BaseModel, BaseSchema } from '../config';
|
|
28
|
+
export declare enum AITaskStatus {
|
|
29
|
+
CREATED = "created",
|
|
30
|
+
IN_PROGRESS = "inProgress",
|
|
31
|
+
DONE = "done",
|
|
32
|
+
FAILED = "failed"
|
|
33
|
+
}
|
|
34
|
+
interface Process {
|
|
35
|
+
value: number;
|
|
36
|
+
text: string;
|
|
37
|
+
finishDate: number;
|
|
38
|
+
}
|
|
39
|
+
export interface IAiTask extends BaseSchema {
|
|
40
|
+
taskType: string;
|
|
41
|
+
status: AITaskStatus;
|
|
42
|
+
aiTaskSubmission: Types.ObjectId | IAiTaskSubmission;
|
|
43
|
+
process: Process;
|
|
44
|
+
aiConversation: Types.ObjectId | IAiConversation;
|
|
45
|
+
output: [];
|
|
46
|
+
isPinned: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface IAiTaskModel extends BaseModel<IAiTask> {
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AITaskStatus = void 0;
|
|
4
|
+
var AITaskStatus;
|
|
5
|
+
(function (AITaskStatus) {
|
|
6
|
+
AITaskStatus["CREATED"] = "created";
|
|
7
|
+
AITaskStatus["IN_PROGRESS"] = "inProgress";
|
|
8
|
+
AITaskStatus["DONE"] = "done";
|
|
9
|
+
AITaskStatus["FAILED"] = "failed";
|
|
10
|
+
})(AITaskStatus || (exports.AITaskStatus = AITaskStatus = {}));
|
package/dist/types/index.d.ts
CHANGED
|
@@ -58,4 +58,6 @@ import { IHighlight, IHighlightModel } from './highlight.type';
|
|
|
58
58
|
import { INewsHub, INewsHubModel } from './news-hub.type';
|
|
59
59
|
import { IAiAssistant, IAiAssistantModel } from './ai-assistant.type';
|
|
60
60
|
import { ITeam, ITeamModel } from './team.type';
|
|
61
|
-
|
|
61
|
+
import { IAiTask, IAiTaskModel } from './ai-task.type';
|
|
62
|
+
import { IAiTaskSubmission, IAiTaskSubmissionModel } from './ai-task-submission.type';
|
|
63
|
+
export { IAiConversation, IAiConversationModel, IAiAssistant, IAiAssistantModel, IAiConversationMessage, IAiConversationMessageModel, IAiConversationTrackingTask, IAiConversationTrackingTaskModel, IBackendError, IBackendErrorModel, IBadge, IBadgeModel, IBatchHistory, IBookmark, IBookmarkModel, ICompany, ICompanyModel, ICompanyCluster, ICompanyClusterModel, ICompanyFundingRound, ICompanyFundingRoundModel, ICompanyMarketing, ICompanyMarketingModel, ICompetitor, ICompetitorModel, ICompetitorAnalysis, ICompetitorAnalysisModel, IContactMessage, IContactMessageModel, IContactStartup, IContactStartupModel, IContent, IContentModel, IDraftVersion, IDraftVersionModel, IEvidenceLayout, IEvidenceLayoutModel, IEvidence, IEvidenceModel, 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, ISiteMapCache, ISiteMapCacheModel, 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, INewsHub, INewsHubModel, ITeam, ITeamModel, IAiTask, IAiTaskModel, IAiTaskSubmission, IAiTaskSubmissionModel, };
|