@cool-digital-solutions/interferir-models 1.2.2 → 1.2.4
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 +4 -2
- package/dist/index.js +4 -2
- package/dist/schemas/badge.schema.d.ts +28 -0
- package/dist/schemas/badge.schema.js +45 -0
- package/dist/schemas/company.schema.js +2 -2
- package/dist/schemas/index.d.ts +2 -1
- package/dist/schemas/index.js +3 -1
- package/dist/schemas/problem.schema.js +1 -1
- package/dist/types/badge.type.d.ts +42 -0
- package/dist/types/badge.type.js +11 -0
- package/dist/types/company.type.d.ts +2 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/problem.type.d.ts +1 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ import { ICompanySubOrganization, ICompanySubOrganizationModel } from './types/c
|
|
|
61
61
|
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
|
+
import { IBadge, IBadgeModel } from './types/badge.type';
|
|
64
65
|
import ThemeSchema from './schemas/theme.schema';
|
|
65
66
|
import ProblemSchema from './schemas/problem.schema';
|
|
66
67
|
import SFTagSchema from './schemas/sf-tag.schema';
|
|
@@ -125,5 +126,6 @@ import AiTaskResearchManagerOutputSchema from './schemas/ai-task-research-manage
|
|
|
125
126
|
import AiTaskOutlineSchema from './schemas/ai-task-outline.schema';
|
|
126
127
|
import AiTaskShareSchema from './schemas/ai-task-share.schema';
|
|
127
128
|
import { IAiTaskShare, IAiTaskShareModel } from './types/ai-task-share.type';
|
|
128
|
-
|
|
129
|
-
export {
|
|
129
|
+
import BadgeSchema from './schemas/badge.schema';
|
|
130
|
+
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, };
|
|
131
|
+
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, };
|
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.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;
|
|
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;
|
|
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"));
|
|
@@ -131,3 +131,5 @@ const ai_task_outline_schema_1 = __importDefault(require("./schemas/ai-task-outl
|
|
|
131
131
|
exports.AiTaskOutlineSchema = ai_task_outline_schema_1.default;
|
|
132
132
|
const ai_task_share_schema_1 = __importDefault(require("./schemas/ai-task-share.schema"));
|
|
133
133
|
exports.AiTaskShareSchema = ai_task_share_schema_1.default;
|
|
134
|
+
const badge_schema_1 = __importDefault(require("./schemas/badge.schema"));
|
|
135
|
+
exports.BadgeSchema = badge_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 type { IBadge, IBadgeModel } from '../types';
|
|
27
|
+
declare const badgeSchema: Schema<IBadge, IBadgeModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IBadge>;
|
|
28
|
+
export default badgeSchema;
|
|
@@ -0,0 +1,45 @@
|
|
|
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;
|
|
@@ -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
|
-
|
|
76
|
+
icon: { type: mongoose_1.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
|
-
|
|
143
|
+
icons: [{ type: mongoose_1.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
|
@@ -6,6 +6,7 @@ import SFSubCategorySchema from './sf-sub-category.schema';
|
|
|
6
6
|
import TechnologySchema from './technology.schema';
|
|
7
7
|
import IndustrySchema from './industry.schema';
|
|
8
8
|
import BackendErrorSchema from './backend-error.schema';
|
|
9
|
+
import BadgeSchema from './badge.schema';
|
|
9
10
|
import ImageSchema from './image.schema';
|
|
10
11
|
import SearchHistorySchema from './search-history.schema';
|
|
11
12
|
import TokenSchema from './token.schema';
|
|
@@ -60,4 +61,4 @@ import HighlightNoteSchema from './highlight-note.schema';
|
|
|
60
61
|
import AiTaskResearchManagerOutputSchema from './ai-task-research-manager-output.schema';
|
|
61
62
|
import AiTaskOutlineSchema from './ai-task-outline.schema';
|
|
62
63
|
import AiTaskShareSchema from './ai-task-share.schema';
|
|
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, };
|
|
64
|
+
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 };
|
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.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.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"));
|
|
@@ -21,6 +21,8 @@ const industry_schema_1 = __importDefault(require("./industry.schema"));
|
|
|
21
21
|
exports.IndustrySchema = industry_schema_1.default;
|
|
22
22
|
const backend_error_schema_1 = __importDefault(require("./backend-error.schema"));
|
|
23
23
|
exports.BackendErrorSchema = backend_error_schema_1.default;
|
|
24
|
+
const badge_schema_1 = __importDefault(require("./badge.schema"));
|
|
25
|
+
exports.BadgeSchema = badge_schema_1.default;
|
|
24
26
|
const image_schema_1 = __importDefault(require("./image.schema"));
|
|
25
27
|
exports.ImageSchema = image_schema_1.default;
|
|
26
28
|
const search_history_schema_1 = __importDefault(require("./search-history.schema"));
|
|
@@ -12,7 +12,7 @@ const problemSchema = new mongoose_1.Schema({
|
|
|
12
12
|
content: { type: String },
|
|
13
13
|
contentHTML: { type: String },
|
|
14
14
|
themeList: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Theme' }],
|
|
15
|
-
useCaseList: [{ type:
|
|
15
|
+
// useCaseList: [{ type: Schema.Types.ObjectId, ref: 'UseCase' }],
|
|
16
16
|
writtenBy: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
17
17
|
privForUsers: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
18
18
|
status: { type: String, enum: Object.values(_config_1.ContentStatus), required: [true, 'status is required!'] },
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 = {}));
|
|
@@ -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 } from './';
|
|
26
|
+
import { IIndustry, ITechnology, ISFCategory, ISFSubCategory, ISFTag, IImage, IUser, IBadge } 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,6 +155,7 @@ interface AnalysisScore {
|
|
|
155
155
|
interface TechnicalRequirement {
|
|
156
156
|
history: string;
|
|
157
157
|
requirement: {
|
|
158
|
+
icons: Types.ObjectId[] | IBadge[];
|
|
158
159
|
content: string;
|
|
159
160
|
};
|
|
160
161
|
liveDemo: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -62,4 +62,5 @@ import { IHighlightNote, IHighlightNoteModel } from './highlight-note.type';
|
|
|
62
62
|
import { IAiTaskResearchManagerOutput, IAiTaskResearchManagerOutputModel } from './ai-task-research-manager-output.type';
|
|
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
|
+
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, };
|
|
@@ -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 { ITheme, IUser
|
|
26
|
+
import { ITheme, IUser } from './';
|
|
27
27
|
import { BaseModel, BaseSchema, ContentStatus, ContentStatusCount } from '../config';
|
|
28
28
|
export interface IProblem extends BaseSchema {
|
|
29
29
|
title: string;
|
|
@@ -31,7 +31,6 @@ export interface IProblem extends BaseSchema {
|
|
|
31
31
|
content: string;
|
|
32
32
|
contentHTML: string;
|
|
33
33
|
themeList: Types.ObjectId[] | ITheme[];
|
|
34
|
-
useCaseList: Types.ObjectId[] | IUseCase[];
|
|
35
34
|
writtenBy: Types.ObjectId[] | IUser[];
|
|
36
35
|
privForUsers: Types.ObjectId[] | IUser[];
|
|
37
36
|
status: ContentStatus;
|