@cool-digital-solutions/interferir-models 1.1.94 → 1.1.95
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 -6
- package/dist/index.js +2 -6
- package/dist/schemas/company.schema.js +0 -4
- package/dist/schemas/follow-content.schema.js +0 -1
- package/dist/schemas/index.d.ts +1 -3
- package/dist/schemas/index.js +2 -6
- package/dist/schemas/like.schema.js +0 -1
- package/dist/schemas/problem.schema.js +0 -4
- package/dist/schemas/theme.schema.js +0 -4
- package/dist/schemas/token.schema.js +0 -1
- package/dist/schemas/use-case.schema.js +0 -2
- package/dist/schemas/user.schema.js +0 -11
- package/dist/types/batch-history.type.d.ts +0 -1
- package/dist/types/batch-history.type.js +0 -1
- package/dist/types/bookmark.type.d.ts +0 -1
- package/dist/types/bookmark.type.js +0 -1
- package/dist/types/company.type.d.ts +0 -1
- package/dist/types/contact-startup.type.d.ts +0 -1
- package/dist/types/contact-startup.type.js +0 -1
- package/dist/types/draft-version.type.d.ts +0 -1
- package/dist/types/draft-version.type.js +0 -1
- package/dist/types/follow-content.type.d.ts +1 -3
- package/dist/types/follow-content.type.js +0 -1
- package/dist/types/image.type.d.ts +0 -1
- package/dist/types/image.type.js +0 -1
- package/dist/types/index.d.ts +1 -3
- package/dist/types/like.type.d.ts +1 -3
- package/dist/types/like.type.js +0 -1
- package/dist/types/problem.type.d.ts +0 -1
- package/dist/types/suggest.type.d.ts +2 -3
- package/dist/types/suggest.type.js +0 -2
- package/dist/types/theme.type.d.ts +0 -1
- package/dist/types/token.type.d.ts +0 -2
- package/dist/types/token.type.js +0 -1
- package/dist/types/update-job.type.d.ts +2 -3
- package/dist/types/update-job.type.js +0 -1
- package/dist/types/use-case.type.d.ts +1 -3
- package/dist/types/user-visit.type.d.ts +0 -1
- package/dist/types/user-visit.type.js +0 -1
- package/dist/types/user.type.d.ts +1 -7
- package/package.json +1 -1
- package/dist/schemas/evidence-layout.schema.d.ts +0 -28
- package/dist/schemas/evidence-layout.schema.js +0 -41
- package/dist/schemas/evidence.schema.d.ts +0 -28
- package/dist/schemas/evidence.schema.js +0 -111
- package/dist/types/evidence-layout.type.d.ts +0 -13
- package/dist/types/evidence-layout.type.js +0 -2
- package/dist/types/evidence.type.d.ts +0 -102
- package/dist/types/evidence.type.js +0 -11
package/dist/index.d.ts
CHANGED
|
@@ -15,8 +15,6 @@ import { IContactMessage, IContactMessageModel } from './types/contact-message.t
|
|
|
15
15
|
import { IContactStartup, IContactStartupModel } from './types/contact-startup.type';
|
|
16
16
|
import { IContent, IContentModel } from './types/content.type';
|
|
17
17
|
import { IDraftVersion, IDraftVersionModel } from './types/draft-version.type';
|
|
18
|
-
import { IEvidenceLayout, IEvidenceLayoutModel } from './types/evidence-layout.type';
|
|
19
|
-
import { IEvidence, IEvidenceModel } from './types/evidence.type';
|
|
20
18
|
import { IFaq, IFaqModel } from './types/faq.type';
|
|
21
19
|
import { IFeaturedTheme, IFeaturedThemeModel } from './types/featured-theme.type';
|
|
22
20
|
import { IFollowContent, IFollowContentModel } from './types/follow-content.type';
|
|
@@ -72,8 +70,6 @@ import SFSubCategorySchema from './schemas/sf-sub-category.schema';
|
|
|
72
70
|
import TechnologySchema from './schemas/technology.schema';
|
|
73
71
|
import IndustrySchema from './schemas/industry.schema';
|
|
74
72
|
import BackendErrorSchema from './schemas/backend-error.schema';
|
|
75
|
-
import EvidenceSchema from './schemas/evidence.schema';
|
|
76
|
-
import EvidenceLayoutSchema from './schemas/evidence-layout.schema';
|
|
77
73
|
import ImageSchema from './schemas/image.schema';
|
|
78
74
|
import SearchHistorySchema from './schemas/search-history.schema';
|
|
79
75
|
import TokenSchema from './schemas/token.schema';
|
|
@@ -131,5 +127,5 @@ import AiTaskResearchManagerOutputSchema from './schemas/ai-task-research-manage
|
|
|
131
127
|
import AiTaskOutlineSchema from './schemas/ai-task-outline.schema';
|
|
132
128
|
import AiTaskShareSchema from './schemas/ai-task-share.schema';
|
|
133
129
|
import { IAiTaskShare, IAiTaskShareModel } from './types/ai-task-share.type';
|
|
134
|
-
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,
|
|
135
|
-
export { AiTaskSchema, AiTaskSubmissionSchema, ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema,
|
|
130
|
+
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, 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, };
|
|
131
|
+
export { AiTaskSchema, AiTaskSubmissionSchema, ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema, InstantResearchSchema, ContactMessageSchema, ContactStartupSchema, BadgeSchema, 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.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.BadgeSchema = exports.ContactStartupSchema = exports.ContactMessageSchema = exports.InstantResearchSchema = exports.PortiaArticleSchema = exports.CompanySchema = exports.UserSchema = exports.UserTokenSchema = exports.TokenSchema = exports.SearchHistorySchema = exports.ImageSchema = 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 = exports.CompetitorAnalysisSchema =
|
|
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.BadgeSchema = 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 = 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"));
|
|
@@ -21,10 +21,6 @@ const industry_schema_1 = __importDefault(require("./schemas/industry.schema"));
|
|
|
21
21
|
exports.IndustrySchema = industry_schema_1.default;
|
|
22
22
|
const backend_error_schema_1 = __importDefault(require("./schemas/backend-error.schema"));
|
|
23
23
|
exports.BackendErrorSchema = backend_error_schema_1.default;
|
|
24
|
-
const evidence_schema_1 = __importDefault(require("./schemas/evidence.schema"));
|
|
25
|
-
exports.EvidenceSchema = evidence_schema_1.default;
|
|
26
|
-
const evidence_layout_schema_1 = __importDefault(require("./schemas/evidence-layout.schema"));
|
|
27
|
-
exports.EvidenceLayoutSchema = evidence_layout_schema_1.default;
|
|
28
24
|
const image_schema_1 = __importDefault(require("./schemas/image.schema"));
|
|
29
25
|
exports.ImageSchema = image_schema_1.default;
|
|
30
26
|
const search_history_schema_1 = __importDefault(require("./schemas/search-history.schema"));
|
|
@@ -81,10 +81,6 @@ const companySchema = new mongoose_1.Schema({
|
|
|
81
81
|
type: Object,
|
|
82
82
|
default: { publish: 0, draft: 0, private: 0, prePublish: 0 },
|
|
83
83
|
},
|
|
84
|
-
evidenceCount: {
|
|
85
|
-
type: Object,
|
|
86
|
-
default: { publish: 0, draft: 0, private: 0, prePublish: 0 },
|
|
87
|
-
},
|
|
88
84
|
themeCount: {
|
|
89
85
|
type: Object,
|
|
90
86
|
default: { publish: 0, draft: 0, private: 0, prePublish: 0 },
|
|
@@ -12,7 +12,6 @@ const followContentSchema = new mongoose_1.Schema({
|
|
|
12
12
|
type: { type: String, enum: follow_content_type_1.FollowContentType },
|
|
13
13
|
company: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null },
|
|
14
14
|
theme: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Theme', default: null },
|
|
15
|
-
evidence: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Evidence', default: null },
|
|
16
15
|
usecase: { type: mongoose_1.Schema.Types.ObjectId, ref: 'UseCase', default: null },
|
|
17
16
|
problem: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Problem', default: null },
|
|
18
17
|
updatedDate: { type: Number, index: -1 },
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -6,8 +6,6 @@ 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 EvidenceSchema from './evidence.schema';
|
|
10
|
-
import EvidenceLayoutSchema from './evidence-layout.schema';
|
|
11
9
|
import ImageSchema from './image.schema';
|
|
12
10
|
import SearchHistorySchema from './search-history.schema';
|
|
13
11
|
import TokenSchema from './token.schema';
|
|
@@ -63,4 +61,4 @@ import HighlightNoteSchema from './highlight-note.schema';
|
|
|
63
61
|
import AiTaskResearchManagerOutputSchema from './ai-task-research-manager-output.schema';
|
|
64
62
|
import AiTaskOutlineSchema from './ai-task-outline.schema';
|
|
65
63
|
import AiTaskShareSchema from './ai-task-share.schema';
|
|
66
|
-
export { AiTaskSchema, AiTaskSubmissionSchema, ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema,
|
|
64
|
+
export { AiTaskSchema, AiTaskSubmissionSchema, ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema, InstantResearchSchema, ContactMessageSchema, ContactStartupSchema, BadgeSchema, 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.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.BadgeSchema = exports.ContactStartupSchema = exports.ContactMessageSchema = exports.InstantResearchSchema = exports.PortiaArticleSchema = exports.CompanySchema = exports.UserSchema = exports.UserTokenSchema = exports.TokenSchema = exports.SearchHistorySchema = exports.ImageSchema = 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 = exports.UseCaseDiscoveryProblemSchema =
|
|
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.BadgeSchema = 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 = exports.UseCaseDiscoveryProblemSchema = 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,10 +21,6 @@ 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 evidence_schema_1 = __importDefault(require("./evidence.schema"));
|
|
25
|
-
exports.EvidenceSchema = evidence_schema_1.default;
|
|
26
|
-
const evidence_layout_schema_1 = __importDefault(require("./evidence-layout.schema"));
|
|
27
|
-
exports.EvidenceLayoutSchema = evidence_layout_schema_1.default;
|
|
28
24
|
const image_schema_1 = __importDefault(require("./image.schema"));
|
|
29
25
|
exports.ImageSchema = image_schema_1.default;
|
|
30
26
|
const search_history_schema_1 = __importDefault(require("./search-history.schema"));
|
|
@@ -15,7 +15,6 @@ const likeSchema = new mongoose_1.Schema({
|
|
|
15
15
|
},
|
|
16
16
|
news: { type: mongoose_1.Schema.Types.ObjectId, ref: 'News', default: null },
|
|
17
17
|
theme: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Theme', default: null },
|
|
18
|
-
evidence: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Evidence', default: null },
|
|
19
18
|
usecase: { type: mongoose_1.Schema.Types.ObjectId, ref: 'UseCase', default: null },
|
|
20
19
|
problem: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Problem', default: null },
|
|
21
20
|
company: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null },
|
|
@@ -19,10 +19,6 @@ const problemSchema = new mongoose_1.Schema({
|
|
|
19
19
|
draftVersionStatus: { type: String, default: '' },
|
|
20
20
|
likeCount: { type: Number, default: 0 },
|
|
21
21
|
dislikeCount: { type: Number, default: 0 },
|
|
22
|
-
evidenceCount: {
|
|
23
|
-
type: Object,
|
|
24
|
-
default: { publish: 0, private: 0, draft: 0, prePublish: 0 },
|
|
25
|
-
},
|
|
26
22
|
solutionCount: {
|
|
27
23
|
type: Object,
|
|
28
24
|
default: { publish: 0, private: 0, draft: 0, prePublish: 0 },
|
|
@@ -41,10 +41,6 @@ const themeSchema = new mongoose_1.Schema({
|
|
|
41
41
|
tagList: [{ type: String }],
|
|
42
42
|
likeCount: { type: Number, default: 0 },
|
|
43
43
|
dislikeCount: { type: Number, default: 0 },
|
|
44
|
-
evidenceCount: {
|
|
45
|
-
type: Object,
|
|
46
|
-
default: { publish: 0, private: 0, draft: 0, prePublish: 0 },
|
|
47
|
-
},
|
|
48
44
|
problemCount: {
|
|
49
45
|
type: Object,
|
|
50
46
|
default: { publish: 0, private: 0, draft: 0, prePublish: 0 },
|
|
@@ -8,7 +8,6 @@ const tokenSchema = new mongoose_1.Schema({
|
|
|
8
8
|
token: { type: String, required: [true, 'token required!'] },
|
|
9
9
|
user: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
10
10
|
email: { type: String, default: '' },
|
|
11
|
-
evidence: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Evidence', default: null },
|
|
12
11
|
updatedDate: Number,
|
|
13
12
|
createdDate: Number,
|
|
14
13
|
}, _config_1.schemaOptions);
|
|
@@ -27,12 +27,10 @@ const useCaseSchema = new mongoose_1.Schema({
|
|
|
27
27
|
importance: { type: String, required: [true, 'importance is required!'] },
|
|
28
28
|
importanceHTML: { type: String, default: '' },
|
|
29
29
|
themeList: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Theme', index: true }],
|
|
30
|
-
evidenceList: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Evidence', index: true }],
|
|
31
30
|
problemList: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Problem' }],
|
|
32
31
|
source: {
|
|
33
32
|
url: { type: String, default: '' },
|
|
34
33
|
freeText: { type: String, default: '' },
|
|
35
|
-
evidence: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Evidence', default: null },
|
|
36
34
|
startup: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null, index: true },
|
|
37
35
|
},
|
|
38
36
|
actors: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', index: true }],
|
|
@@ -24,17 +24,6 @@ const userSchema = new mongoose_1.Schema({
|
|
|
24
24
|
title: { type: String, required: [true, 'title required!'] },
|
|
25
25
|
},
|
|
26
26
|
],
|
|
27
|
-
viewedEvidenceList: [
|
|
28
|
-
{
|
|
29
|
-
viewDate: { type: Number, required: [true, 'viewDate required'] },
|
|
30
|
-
evidence: {
|
|
31
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
32
|
-
ref: 'Evidence',
|
|
33
|
-
required: [true, 'evidence required'],
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
favoriteEvidenceList: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Evidence' }],
|
|
38
27
|
isActive: { type: Boolean, default: false },
|
|
39
28
|
isAccepted: { type: Boolean, default: false },
|
|
40
29
|
isAdmin: { type: Boolean, default: false },
|
|
@@ -4,7 +4,6 @@ exports.BatchHistoryDocumentType = void 0;
|
|
|
4
4
|
var BatchHistoryDocumentType;
|
|
5
5
|
(function (BatchHistoryDocumentType) {
|
|
6
6
|
BatchHistoryDocumentType["USECASES"] = "usecases";
|
|
7
|
-
BatchHistoryDocumentType["EVIDENCES"] = "evidences";
|
|
8
7
|
BatchHistoryDocumentType["COMPANIES"] = "companies";
|
|
9
8
|
BatchHistoryDocumentType["THEMES"] = "themes";
|
|
10
9
|
})(BatchHistoryDocumentType || (exports.BatchHistoryDocumentType = BatchHistoryDocumentType = {}));
|
|
@@ -10,7 +10,6 @@ var BookmarkType;
|
|
|
10
10
|
var BookmarkRefModel;
|
|
11
11
|
(function (BookmarkRefModel) {
|
|
12
12
|
BookmarkRefModel["THEME"] = "Theme";
|
|
13
|
-
BookmarkRefModel["EVIDENCE"] = "Evidence";
|
|
14
13
|
BookmarkRefModel["PORTIA_ARTICLE"] = "PortiaArticle";
|
|
15
14
|
BookmarkRefModel["COMPANY"] = "Company";
|
|
16
15
|
BookmarkRefModel["PROBLEM"] = "Problem";
|
|
@@ -228,7 +228,6 @@ export interface ICompany extends BaseSchema {
|
|
|
228
228
|
sfTags: Types.ObjectId[] | ISFTag[];
|
|
229
229
|
files: File[];
|
|
230
230
|
useCaseCount: ContentStatusCount | number;
|
|
231
|
-
evidenceCount: ContentStatusCount | number;
|
|
232
231
|
themeCount: ContentStatusCount | number;
|
|
233
232
|
newsCount: number;
|
|
234
233
|
profileDetailUrls: string[];
|
|
@@ -4,7 +4,6 @@ exports.RelatedType = void 0;
|
|
|
4
4
|
var RelatedType;
|
|
5
5
|
(function (RelatedType) {
|
|
6
6
|
RelatedType["THEME"] = "theme";
|
|
7
|
-
RelatedType["EVIDENCE"] = "evidence";
|
|
8
7
|
RelatedType["USECASE"] = "usecase";
|
|
9
8
|
RelatedType["DEFAULT"] = "";
|
|
10
9
|
})(RelatedType || (exports.RelatedType = RelatedType = {}));
|
|
@@ -6,7 +6,6 @@ var DraftVersionRefs;
|
|
|
6
6
|
DraftVersionRefs["COMPANY"] = "company";
|
|
7
7
|
DraftVersionRefs["THEME"] = "theme";
|
|
8
8
|
DraftVersionRefs["USE_CASE"] = "useCase";
|
|
9
|
-
DraftVersionRefs["EVIDENCE"] = "evidence";
|
|
10
9
|
DraftVersionRefs["PROBLEM"] = "problem";
|
|
11
10
|
DraftVersionRefs["DEFAULT"] = "";
|
|
12
11
|
})(DraftVersionRefs || (exports.DraftVersionRefs = DraftVersionRefs = {}));
|
|
@@ -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 { IUser, ICompany,
|
|
26
|
+
import { IUser, ICompany, IUseCase, IProblem, ITheme } from './';
|
|
27
27
|
import { BaseModel, BaseSchema } from '../config';
|
|
28
28
|
export declare enum FollowContentType {
|
|
29
29
|
FOLLOW = "follow",
|
|
@@ -32,7 +32,6 @@ export declare enum FollowContentType {
|
|
|
32
32
|
}
|
|
33
33
|
export declare enum FollowContentModelType {
|
|
34
34
|
THEME = "theme",
|
|
35
|
-
EVIDENCE = "evidence",
|
|
36
35
|
USECASE = "usecase",
|
|
37
36
|
PROBLEM = "problem",
|
|
38
37
|
COMPANY = "company"
|
|
@@ -41,7 +40,6 @@ export interface IFollowContent extends BaseSchema {
|
|
|
41
40
|
user: Types.ObjectId | IUser;
|
|
42
41
|
type: FollowContentType;
|
|
43
42
|
theme: Types.ObjectId | ITheme;
|
|
44
|
-
evidence: Types.ObjectId | IEvidence;
|
|
45
43
|
usecase: Types.ObjectId | IUseCase;
|
|
46
44
|
problem: Types.ObjectId | IProblem;
|
|
47
45
|
company: Types.ObjectId | ICompany;
|
|
@@ -10,7 +10,6 @@ var FollowContentType;
|
|
|
10
10
|
var FollowContentModelType;
|
|
11
11
|
(function (FollowContentModelType) {
|
|
12
12
|
FollowContentModelType["THEME"] = "theme";
|
|
13
|
-
FollowContentModelType["EVIDENCE"] = "evidence";
|
|
14
13
|
FollowContentModelType["USECASE"] = "usecase";
|
|
15
14
|
FollowContentModelType["PROBLEM"] = "problem";
|
|
16
15
|
FollowContentModelType["COMPANY"] = "company";
|
package/dist/types/image.type.js
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ImageFor = void 0;
|
|
4
4
|
var ImageFor;
|
|
5
5
|
(function (ImageFor) {
|
|
6
|
-
ImageFor["EVIDENCE"] = "evidence";
|
|
7
6
|
ImageFor["PROFILE_IMAGE"] = "profileImage";
|
|
8
7
|
ImageFor["COMPANY"] = "company";
|
|
9
8
|
ImageFor["OTHER"] = "other";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -13,8 +13,6 @@ import { IContactMessage, IContactMessageModel } from './contact-message.type';
|
|
|
13
13
|
import { IContactStartup, IContactStartupModel } from './contact-startup.type';
|
|
14
14
|
import { IContent, IContentModel } from './content.type';
|
|
15
15
|
import { IDraftVersion, IDraftVersionModel } from './draft-version.type';
|
|
16
|
-
import { IEvidenceLayout, IEvidenceLayoutModel } from './evidence-layout.type';
|
|
17
|
-
import { IEvidence, IEvidenceModel } from './evidence.type';
|
|
18
16
|
import { IFaq, IFaqModel } from './faq.type';
|
|
19
17
|
import { IFeaturedTheme, IFeaturedThemeModel } from './featured-theme.type';
|
|
20
18
|
import { IFoamTree, IFoamTreeModel } from './foam-tree.type';
|
|
@@ -65,4 +63,4 @@ import { IHighlightNote, IHighlightNoteModel } from './highlight-note.type';
|
|
|
65
63
|
import { IAiTaskResearchManagerOutput, IAiTaskResearchManagerOutputModel } from './ai-task-research-manager-output.type';
|
|
66
64
|
import { IAiTaskOutline, IAiTaskOutlineModel } from './ai-task-outline.type';
|
|
67
65
|
import { IAiTaskShare, IAiTaskShareModel } from './ai-task-share.type';
|
|
68
|
-
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,
|
|
66
|
+
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, 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 { IUser, ITheme,
|
|
26
|
+
import { IUser, ITheme, IUseCase, IProblem, INews, ICompany } from './';
|
|
27
27
|
import { BaseModel, BaseSchema } from '../config';
|
|
28
28
|
export declare enum LikeContentType {
|
|
29
29
|
LIKE = "like",
|
|
@@ -33,7 +33,6 @@ export declare enum LikeContentType {
|
|
|
33
33
|
export declare enum LikeModelType {
|
|
34
34
|
THEME = "theme",
|
|
35
35
|
USECASE = "usecase",
|
|
36
|
-
EVIDENCE = "evidence",
|
|
37
36
|
PROBLEM = "problem",
|
|
38
37
|
COMPANY = "company"
|
|
39
38
|
}
|
|
@@ -41,7 +40,6 @@ export interface ILike extends BaseSchema {
|
|
|
41
40
|
user: Types.ObjectId | IUser;
|
|
42
41
|
news: Types.ObjectId | INews;
|
|
43
42
|
theme: Types.ObjectId | ITheme;
|
|
44
|
-
evidence: Types.ObjectId | IEvidence;
|
|
45
43
|
usecase: Types.ObjectId | IUseCase;
|
|
46
44
|
problem: Types.ObjectId | IProblem;
|
|
47
45
|
company: Types.ObjectId | ICompany;
|
package/dist/types/like.type.js
CHANGED
|
@@ -11,7 +11,6 @@ var LikeModelType;
|
|
|
11
11
|
(function (LikeModelType) {
|
|
12
12
|
LikeModelType["THEME"] = "theme";
|
|
13
13
|
LikeModelType["USECASE"] = "usecase";
|
|
14
|
-
LikeModelType["EVIDENCE"] = "evidence";
|
|
15
14
|
LikeModelType["PROBLEM"] = "problem";
|
|
16
15
|
LikeModelType["COMPANY"] = "company";
|
|
17
16
|
})(LikeModelType || (exports.LikeModelType = LikeModelType = {}));
|
|
@@ -39,7 +39,6 @@ export interface IProblem extends BaseSchema {
|
|
|
39
39
|
likeCount: number;
|
|
40
40
|
dislikeCount: number;
|
|
41
41
|
themeCount: number;
|
|
42
|
-
evidenceCount: ContentStatusCount | number;
|
|
43
42
|
solutionCount: ContentStatusCount | number;
|
|
44
43
|
}
|
|
45
44
|
export interface ProblemGetById extends IProblem {
|
|
@@ -23,18 +23,17 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import { Types } from 'mongoose';
|
|
26
|
-
import { IUser,
|
|
26
|
+
import { IUser, IImage, ITheme, IUseCase, ICompany } from './';
|
|
27
27
|
import { BaseModel, BaseSchema } from '../config';
|
|
28
28
|
export declare enum RelatedModels {
|
|
29
29
|
PROBLEM = "problem",
|
|
30
30
|
COMPANY = "company",
|
|
31
|
-
EVIDENCE = "evidence",
|
|
32
31
|
THEME = "theme"
|
|
33
32
|
}
|
|
34
33
|
export interface ISuggest extends BaseSchema {
|
|
35
34
|
message: string;
|
|
36
35
|
user: Types.ObjectId | IUser;
|
|
37
|
-
relatedId: Types.ObjectId | ITheme |
|
|
36
|
+
relatedId: Types.ObjectId | ITheme | ICompany | IUseCase;
|
|
38
37
|
relatedModel: RelatedModels;
|
|
39
38
|
files: Types.ObjectId[] | IImage[];
|
|
40
39
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RelatedModels = void 0;
|
|
4
|
-
// import { ICompany } from '@controllers/use-case/use-case.constant'; // TODO: buradan import edilmesinin özel bir sebebi var mı?
|
|
5
4
|
var RelatedModels;
|
|
6
5
|
(function (RelatedModels) {
|
|
7
6
|
RelatedModels["PROBLEM"] = "problem";
|
|
8
7
|
RelatedModels["COMPANY"] = "company";
|
|
9
|
-
RelatedModels["EVIDENCE"] = "evidence";
|
|
10
8
|
RelatedModels["THEME"] = "theme";
|
|
11
9
|
})(RelatedModels || (exports.RelatedModels = RelatedModels = {}));
|
|
@@ -40,7 +40,6 @@ export interface ITheme extends BaseSchema {
|
|
|
40
40
|
tagList?: string[];
|
|
41
41
|
likeCount?: number;
|
|
42
42
|
dislikeCount?: number;
|
|
43
|
-
evidenceCount?: ContentStatusCount | number;
|
|
44
43
|
problemCount?: ContentStatusCount | number;
|
|
45
44
|
solutionCount?: ContentStatusCount | number;
|
|
46
45
|
companyCount?: ContentStatusCount | number;
|
|
@@ -27,7 +27,6 @@ import { IUser } from './';
|
|
|
27
27
|
import { BaseModel, BaseSchema } from '../config';
|
|
28
28
|
export declare enum TokenForList {
|
|
29
29
|
USER_ACTIVATION = "userActivation",
|
|
30
|
-
EVIDENCE_VALIDATION = "evidenceValidation",
|
|
31
30
|
LOST_PASSWORD = "lostPassword",
|
|
32
31
|
TEAM_INVITATION = "teamInvitation",
|
|
33
32
|
SHARED_AI_TASK = "sharedAiTask",
|
|
@@ -38,7 +37,6 @@ export interface IToken extends BaseSchema {
|
|
|
38
37
|
token: string;
|
|
39
38
|
email: string;
|
|
40
39
|
user: Types.ObjectId | IUser;
|
|
41
|
-
evidence: Types.ObjectId;
|
|
42
40
|
}
|
|
43
41
|
export interface ITokenModel extends BaseModel<IToken> {
|
|
44
42
|
}
|
package/dist/types/token.type.js
CHANGED
|
@@ -4,7 +4,6 @@ exports.TokenForList = void 0;
|
|
|
4
4
|
var TokenForList;
|
|
5
5
|
(function (TokenForList) {
|
|
6
6
|
TokenForList["USER_ACTIVATION"] = "userActivation";
|
|
7
|
-
TokenForList["EVIDENCE_VALIDATION"] = "evidenceValidation";
|
|
8
7
|
TokenForList["LOST_PASSWORD"] = "lostPassword";
|
|
9
8
|
TokenForList["TEAM_INVITATION"] = "teamInvitation";
|
|
10
9
|
TokenForList["SHARED_AI_TASK"] = "sharedAiTask";
|
|
@@ -23,12 +23,11 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import { Types } from 'mongoose';
|
|
26
|
-
import { IUser, ICompany,
|
|
26
|
+
import { IUser, ICompany, IProblem, ITheme, IUseCase } from './';
|
|
27
27
|
import { BaseModel, BaseSchema } from '../config';
|
|
28
28
|
export declare enum RelatedModel {
|
|
29
29
|
COMPANY = "company",
|
|
30
30
|
USER = "user",
|
|
31
|
-
EVIDENCE = "evidence",
|
|
32
31
|
THEME = "theme",
|
|
33
32
|
PROBLEM = "problem",
|
|
34
33
|
USE_CASE = "useCase"
|
|
@@ -39,7 +38,7 @@ export declare enum Status {
|
|
|
39
38
|
ERROR = "error"
|
|
40
39
|
}
|
|
41
40
|
export interface IUpdateJob extends BaseSchema {
|
|
42
|
-
relatedId: Types.ObjectId | ICompany | IUser |
|
|
41
|
+
relatedId: Types.ObjectId | ICompany | IUser | ITheme | IProblem | IUseCase;
|
|
43
42
|
relatedModel: RelatedModel;
|
|
44
43
|
status: Status;
|
|
45
44
|
data: {};
|
|
@@ -5,7 +5,6 @@ var RelatedModel;
|
|
|
5
5
|
(function (RelatedModel) {
|
|
6
6
|
RelatedModel["COMPANY"] = "company";
|
|
7
7
|
RelatedModel["USER"] = "user";
|
|
8
|
-
RelatedModel["EVIDENCE"] = "evidence";
|
|
9
8
|
RelatedModel["THEME"] = "theme";
|
|
10
9
|
RelatedModel["PROBLEM"] = "problem";
|
|
11
10
|
RelatedModel["USE_CASE"] = "useCase";
|
|
@@ -23,12 +23,11 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import { Types } from 'mongoose';
|
|
26
|
-
import { ITheme, ISFTag, ISFSubCategory, ISFCategory, ITechnology, IProblem, IIndustry,
|
|
26
|
+
import { ITheme, ISFTag, ISFSubCategory, ISFCategory, ITechnology, IProblem, IIndustry, ICompany, IUser, ISparkUseCase } from './';
|
|
27
27
|
import { BaseModel, BaseSchema, ContentDraftStatus, ContentStatus } from '../config';
|
|
28
28
|
interface Source {
|
|
29
29
|
url: string;
|
|
30
30
|
freeText: string;
|
|
31
|
-
evidence: Types.ObjectId[] | IEvidence[];
|
|
32
31
|
startup: Types.ObjectId | ICompany;
|
|
33
32
|
}
|
|
34
33
|
interface NewsCrawlingTagList {
|
|
@@ -53,7 +52,6 @@ export interface IUseCase extends BaseSchema {
|
|
|
53
52
|
importance: string;
|
|
54
53
|
importanceHTML: string;
|
|
55
54
|
themeList: Types.ObjectId[] | ITheme[];
|
|
56
|
-
evidenceList: Types.ObjectId[] | IEvidence[];
|
|
57
55
|
problemList: Types.ObjectId[] | IProblem[];
|
|
58
56
|
source: Source;
|
|
59
57
|
actors: Types.ObjectId[] | ICompany[];
|
|
@@ -6,6 +6,5 @@ var UserVisitType;
|
|
|
6
6
|
UserVisitType["COMPANY"] = "company";
|
|
7
7
|
UserVisitType["USE_CASE"] = "useCase";
|
|
8
8
|
UserVisitType["RESEARCH"] = "research";
|
|
9
|
-
UserVisitType["EVIDENCE"] = "evidence";
|
|
10
9
|
UserVisitType["PORTIA_ARTICLE"] = "portiaArticle";
|
|
11
10
|
})(UserVisitType || (exports.UserVisitType = UserVisitType = {}));
|
|
@@ -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 {
|
|
26
|
+
import { IImage, ICompany } from './';
|
|
27
27
|
import { BaseModel, BaseSchema } from '../config';
|
|
28
28
|
export declare enum PaymentType {
|
|
29
29
|
CREDIT_CARD = "creditCard",
|
|
@@ -39,10 +39,6 @@ interface PaymentMethod {
|
|
|
39
39
|
paymentType: PaymentType;
|
|
40
40
|
title: string;
|
|
41
41
|
}
|
|
42
|
-
interface ViewedEvidenceList {
|
|
43
|
-
viewDate: number;
|
|
44
|
-
evidence: Types.ObjectId | IEvidence;
|
|
45
|
-
}
|
|
46
42
|
export interface IUser extends BaseSchema {
|
|
47
43
|
email: string;
|
|
48
44
|
password?: string;
|
|
@@ -55,8 +51,6 @@ export interface IUser extends BaseSchema {
|
|
|
55
51
|
timeZone: string;
|
|
56
52
|
profileType: ProfileType;
|
|
57
53
|
paymentMethod: PaymentMethod[];
|
|
58
|
-
viewedEvidenceList: ViewedEvidenceList[];
|
|
59
|
-
favoriteEvidenceList: Types.ObjectId[] | IEvidence[];
|
|
60
54
|
isActive: boolean;
|
|
61
55
|
isAccepted: boolean;
|
|
62
56
|
isAdmin: boolean;
|
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 { IEvidenceLayout, IEvidenceLayoutModel } from '../types';
|
|
27
|
-
declare const evidenceLayoutSchema: Schema<IEvidenceLayout, IEvidenceLayoutModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IEvidenceLayout>;
|
|
28
|
-
export default evidenceLayoutSchema;
|
|
@@ -1,41 +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 _config_1 = require("../config");
|
|
9
|
-
const evidenceLayoutSchema = new mongoose_1.Schema({
|
|
10
|
-
name: { type: String, required: [true, 'name is required.'] },
|
|
11
|
-
isDefaultLayout: { type: Boolean, default: false },
|
|
12
|
-
group: [
|
|
13
|
-
{
|
|
14
|
-
section: { type: String, required: [true, 'section is required.'] },
|
|
15
|
-
evidenceOrderList: [Number],
|
|
16
|
-
},
|
|
17
|
-
],
|
|
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: { type: Number, index: -1 },
|
|
21
|
-
createdDate: { type: Number, index: -1 },
|
|
22
|
-
}, _config_1.schemaOptions);
|
|
23
|
-
evidenceLayoutSchema.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
|
-
evidenceLayoutSchema.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 = evidenceLayoutSchema;
|
|
@@ -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 { IEvidence, IEvidenceModel } from '../types';
|
|
27
|
-
declare const evidenceSchema: Schema<IEvidence, IEvidenceModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IEvidence>;
|
|
28
|
-
export default evidenceSchema;
|
|
@@ -1,111 +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 evidence_type_1 = require("../types/evidence.type");
|
|
9
|
-
const _config_1 = require("../config");
|
|
10
|
-
const evidenceSchema = new mongoose_1.Schema({
|
|
11
|
-
status: { type: String, enum: Object.values(_config_1.ContentStatus), required: [true, 'status is required!'] },
|
|
12
|
-
draftVersionStatus: { type: String, enum: Object.values(_config_1.ContentDraftStatus), default: _config_1.ContentDraftStatus.DEFAULT },
|
|
13
|
-
privForUsers: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
14
|
-
writtenBy: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
15
|
-
company: {
|
|
16
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
17
|
-
ref: 'Company',
|
|
18
|
-
required: [true, 'company is required!'],
|
|
19
|
-
index: true,
|
|
20
|
-
},
|
|
21
|
-
customers: [
|
|
22
|
-
{
|
|
23
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
24
|
-
ref: 'Company',
|
|
25
|
-
required: [true, 'customer required'],
|
|
26
|
-
index: true,
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
slug: { type: String, required: [true, 'slug is required!'], unique: true },
|
|
30
|
-
title: { type: String, default: '' },
|
|
31
|
-
description: { type: String, default: '' },
|
|
32
|
-
logo: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Image', default: null },
|
|
33
|
-
tags: [{ type: String }],
|
|
34
|
-
badges: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Badge' }],
|
|
35
|
-
voiceOfCustomerList: [
|
|
36
|
-
{
|
|
37
|
-
fullName: { type: String, required: [true, 'fullName is required.'] },
|
|
38
|
-
title: { type: String, default: '' },
|
|
39
|
-
profileImage: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Image', default: null },
|
|
40
|
-
companyLogo: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Image', default: null },
|
|
41
|
-
voiceText: { type: String, default: '' },
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
questions: [
|
|
45
|
-
{
|
|
46
|
-
question: { type: String, required: [true, 'question required!'] },
|
|
47
|
-
answer: { type: String, default: '' },
|
|
48
|
-
answerHTML: { type: String, default: '' },
|
|
49
|
-
order: { type: Number, required: [true, 'order required!'] },
|
|
50
|
-
images: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Image' }],
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
group: [
|
|
54
|
-
{
|
|
55
|
-
evidenceOrderList: [Number],
|
|
56
|
-
section: { type: String, required: [true, 'section required!'] },
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
evidenceSections: [
|
|
60
|
-
{
|
|
61
|
-
section: { type: String, required: [true, 'section required!'] },
|
|
62
|
-
htmlText: { type: String, default: '' },
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
documentDate: { type: Number, default: 0 },
|
|
66
|
-
readingTime: { type: Number, default: 0 },
|
|
67
|
-
likeCount: { type: Number, default: 0 },
|
|
68
|
-
dislikeCount: { type: Number, default: 0 },
|
|
69
|
-
observation: {
|
|
70
|
-
analyst: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
71
|
-
content: { type: String, default: '' },
|
|
72
|
-
enterpriseReadlinessScore: { type: Number, default: 0 },
|
|
73
|
-
responsivenessScore: { type: Number, default: 0 },
|
|
74
|
-
visibleFor: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null }],
|
|
75
|
-
showAllEnterprise: { type: Boolean, default: false },
|
|
76
|
-
},
|
|
77
|
-
sfIndustries: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Industry' }],
|
|
78
|
-
sfTechnologies: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Technology' }],
|
|
79
|
-
sfCategories: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFCategory' }],
|
|
80
|
-
sfSubCategories: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFSubCategory' }],
|
|
81
|
-
sfTags: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFTag' }],
|
|
82
|
-
projectType: { type: String, enum: Object.values(evidence_type_1.EvidenceProjectTypes), default: evidence_type_1.EvidenceProjectTypes.DEFAULT },
|
|
83
|
-
projectDate: { type: Number, default: 0 },
|
|
84
|
-
projectLocation: { type: String, default: '' },
|
|
85
|
-
projectDuration: { type: Number, default: 0 },
|
|
86
|
-
additionalMaterial: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company.files' }],
|
|
87
|
-
securityCertificate: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company.files' }],
|
|
88
|
-
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
89
|
-
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
90
|
-
updatedDate: { type: Number, index: -1 },
|
|
91
|
-
createdDate: { type: Number, index: -1 },
|
|
92
|
-
}, _config_1.schemaOptions);
|
|
93
|
-
evidenceSchema.pre('save', function (next) {
|
|
94
|
-
const user = express_http_context_1.default.get('user');
|
|
95
|
-
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
96
|
-
if (user) {
|
|
97
|
-
if (!this.createdBy)
|
|
98
|
-
this.createdBy = user._id;
|
|
99
|
-
if (!notUpdatedBy)
|
|
100
|
-
this.updatedBy = user._id;
|
|
101
|
-
}
|
|
102
|
-
next();
|
|
103
|
-
});
|
|
104
|
-
evidenceSchema.pre('findOneAndUpdate', function (next) {
|
|
105
|
-
const user = express_http_context_1.default.get('user');
|
|
106
|
-
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
107
|
-
if (user && !notUpdatedBy)
|
|
108
|
-
this._update.updatedBy = user._id;
|
|
109
|
-
next();
|
|
110
|
-
});
|
|
111
|
-
exports.default = evidenceSchema;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BaseModel, BaseSchema } from '../config';
|
|
2
|
-
interface group {
|
|
3
|
-
section: string;
|
|
4
|
-
evidenceOrderList: number[];
|
|
5
|
-
}
|
|
6
|
-
export interface IEvidenceLayout extends BaseSchema {
|
|
7
|
-
name: string;
|
|
8
|
-
isDefaultLayout: boolean;
|
|
9
|
-
group: group[];
|
|
10
|
-
}
|
|
11
|
-
export interface IEvidenceLayoutModel extends BaseModel<IEvidenceLayout> {
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
@@ -1,102 +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 { IIndustry, ITechnology, ISFCategory, ISFSubCategory, ISFTag, IUser, ICompany, IImage, IBadge } from './';
|
|
27
|
-
import { File as CompanyFile } from './company.type';
|
|
28
|
-
import { BaseModel, BaseSchema, ContentDraftStatus, ContentStatus } from '../config';
|
|
29
|
-
export declare enum EvidenceProjectTypes {
|
|
30
|
-
PROOF_OF_CONCEPT = "proofOfConcept",
|
|
31
|
-
FULLY_FUNCTIONAL_PROJECT = "fullyFunctionalProject",
|
|
32
|
-
PILOT_AND_MVP = "pilotAndMVP",
|
|
33
|
-
ACADEMIC_TRAIL = "academicTrail",
|
|
34
|
-
DEFAULT = ""
|
|
35
|
-
}
|
|
36
|
-
interface voiceOfCustomerList {
|
|
37
|
-
fullName: string;
|
|
38
|
-
title: string;
|
|
39
|
-
profileImage: Types.ObjectId | IImage;
|
|
40
|
-
companyLogo: Types.ObjectId | IImage;
|
|
41
|
-
voiceText: string;
|
|
42
|
-
}
|
|
43
|
-
interface questions {
|
|
44
|
-
question: string;
|
|
45
|
-
answer: string;
|
|
46
|
-
answerHTML: string;
|
|
47
|
-
order: number;
|
|
48
|
-
images: Types.ObjectId[] | IImage;
|
|
49
|
-
}
|
|
50
|
-
interface group {
|
|
51
|
-
evidenceOrderList: number[];
|
|
52
|
-
section: string;
|
|
53
|
-
}
|
|
54
|
-
interface evidenceSections {
|
|
55
|
-
section: string;
|
|
56
|
-
htmlText: string;
|
|
57
|
-
}
|
|
58
|
-
interface observation {
|
|
59
|
-
analyst: Types.ObjectId | IUser;
|
|
60
|
-
content: string;
|
|
61
|
-
enterpriseReadlinessScore: number;
|
|
62
|
-
responsivenessScore: number;
|
|
63
|
-
visibleFor: Types.ObjectId[] | ICompany[];
|
|
64
|
-
showAllEnterprise: boolean;
|
|
65
|
-
}
|
|
66
|
-
export interface IEvidence extends BaseSchema {
|
|
67
|
-
status: ContentStatus;
|
|
68
|
-
draftVersionStatus?: ContentDraftStatus;
|
|
69
|
-
privForUsers?: Types.ObjectId[] | IUser[];
|
|
70
|
-
writtenBy?: Types.ObjectId[] | IUser[];
|
|
71
|
-
company: Types.ObjectId | ICompany;
|
|
72
|
-
customers: Types.ObjectId[] | ICompany[];
|
|
73
|
-
slug: string;
|
|
74
|
-
title: string;
|
|
75
|
-
description: string;
|
|
76
|
-
logo?: Types.ObjectId | IImage;
|
|
77
|
-
tags: string[];
|
|
78
|
-
badges: Types.ObjectId[] | IBadge[];
|
|
79
|
-
voiceOfCustomerList: voiceOfCustomerList[];
|
|
80
|
-
questions: questions[];
|
|
81
|
-
group: group[];
|
|
82
|
-
evidenceSections: evidenceSections[];
|
|
83
|
-
documentDate: number;
|
|
84
|
-
readingTime: number;
|
|
85
|
-
likeCount: number;
|
|
86
|
-
dislikeCount: number;
|
|
87
|
-
observation: observation;
|
|
88
|
-
sfIndustries: Types.ObjectId[] | IIndustry[];
|
|
89
|
-
sfTechnologies: Types.ObjectId[] | ITechnology[];
|
|
90
|
-
sfCategories: Types.ObjectId[] | ISFCategory[];
|
|
91
|
-
sfSubCategories: Types.ObjectId[] | ISFSubCategory[];
|
|
92
|
-
sfTags: Types.ObjectId[] | ISFTag[];
|
|
93
|
-
projectType: EvidenceProjectTypes;
|
|
94
|
-
projectDate: number;
|
|
95
|
-
projectLocation: string;
|
|
96
|
-
projectDuration: number;
|
|
97
|
-
additionalMaterial: Types.ObjectId[] | CompanyFile[];
|
|
98
|
-
securityCertificate: Types.ObjectId[] | CompanyFile[];
|
|
99
|
-
}
|
|
100
|
-
export interface IEvidenceModel extends BaseModel<IEvidence> {
|
|
101
|
-
}
|
|
102
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EvidenceProjectTypes = void 0;
|
|
4
|
-
var EvidenceProjectTypes;
|
|
5
|
-
(function (EvidenceProjectTypes) {
|
|
6
|
-
EvidenceProjectTypes["PROOF_OF_CONCEPT"] = "proofOfConcept";
|
|
7
|
-
EvidenceProjectTypes["FULLY_FUNCTIONAL_PROJECT"] = "fullyFunctionalProject";
|
|
8
|
-
EvidenceProjectTypes["PILOT_AND_MVP"] = "pilotAndMVP";
|
|
9
|
-
EvidenceProjectTypes["ACADEMIC_TRAIL"] = "academicTrail";
|
|
10
|
-
EvidenceProjectTypes["DEFAULT"] = "";
|
|
11
|
-
})(EvidenceProjectTypes || (exports.EvidenceProjectTypes = EvidenceProjectTypes = {}));
|