@cool-digital-solutions/interferir-models 1.1.94 → 1.1.96

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.
Files changed (53) hide show
  1. package/dist/index.d.ts +2 -8
  2. package/dist/index.js +2 -8
  3. package/dist/schemas/company.schema.js +2 -6
  4. package/dist/schemas/follow-content.schema.js +0 -1
  5. package/dist/schemas/index.d.ts +1 -4
  6. package/dist/schemas/index.js +2 -8
  7. package/dist/schemas/like.schema.js +0 -1
  8. package/dist/schemas/problem.schema.js +0 -4
  9. package/dist/schemas/theme.schema.js +0 -4
  10. package/dist/schemas/token.schema.js +0 -1
  11. package/dist/schemas/use-case.schema.js +0 -2
  12. package/dist/schemas/user.schema.js +0 -11
  13. package/dist/types/batch-history.type.d.ts +0 -1
  14. package/dist/types/batch-history.type.js +0 -1
  15. package/dist/types/bookmark.type.d.ts +0 -1
  16. package/dist/types/bookmark.type.js +0 -1
  17. package/dist/types/company.type.d.ts +1 -3
  18. package/dist/types/contact-startup.type.d.ts +0 -1
  19. package/dist/types/contact-startup.type.js +0 -1
  20. package/dist/types/draft-version.type.d.ts +0 -1
  21. package/dist/types/draft-version.type.js +0 -1
  22. package/dist/types/follow-content.type.d.ts +1 -3
  23. package/dist/types/follow-content.type.js +0 -1
  24. package/dist/types/image.type.d.ts +0 -1
  25. package/dist/types/image.type.js +0 -1
  26. package/dist/types/index.d.ts +1 -4
  27. package/dist/types/like.type.d.ts +1 -3
  28. package/dist/types/like.type.js +0 -1
  29. package/dist/types/problem.type.d.ts +0 -1
  30. package/dist/types/suggest.type.d.ts +2 -3
  31. package/dist/types/suggest.type.js +0 -2
  32. package/dist/types/theme.type.d.ts +0 -1
  33. package/dist/types/token.type.d.ts +0 -2
  34. package/dist/types/token.type.js +0 -1
  35. package/dist/types/update-job.type.d.ts +2 -3
  36. package/dist/types/update-job.type.js +0 -1
  37. package/dist/types/use-case.type.d.ts +1 -3
  38. package/dist/types/user-visit.type.d.ts +0 -1
  39. package/dist/types/user-visit.type.js +0 -1
  40. package/dist/types/user.type.d.ts +1 -7
  41. package/package.json +1 -1
  42. package/dist/schemas/badge.schema.d.ts +0 -28
  43. package/dist/schemas/badge.schema.js +0 -45
  44. package/dist/schemas/evidence-layout.schema.d.ts +0 -28
  45. package/dist/schemas/evidence-layout.schema.js +0 -41
  46. package/dist/schemas/evidence.schema.d.ts +0 -28
  47. package/dist/schemas/evidence.schema.js +0 -111
  48. package/dist/types/badge.type.d.ts +0 -42
  49. package/dist/types/badge.type.js +0 -11
  50. package/dist/types/evidence-layout.type.d.ts +0 -13
  51. package/dist/types/evidence-layout.type.js +0 -2
  52. package/dist/types/evidence.type.d.ts +0 -102
  53. package/dist/types/evidence.type.js +0 -11
package/dist/index.d.ts CHANGED
@@ -2,7 +2,6 @@ import { IAiConversation, IAiConversationModel } from './types/ai-conversation.t
2
2
  import { IAiConversationMessage, IAiConversationMessageModel } from './types/ai-conversation-message.type';
3
3
  import { IAiConversationTrackingTask, IAiConversationTrackingTaskModel } from './types/ai-company-tracking-task.type';
4
4
  import { IBackendError, IBackendErrorModel } from './types/backend-error.type';
5
- import { IBadge, IBadgeModel } from './types/badge.type';
6
5
  import { IBatchHistory } from './types/batch-history.type';
7
6
  import { IBookmark, IBookmarkModel } from './types/bookmark.type';
8
7
  import { ICompany, ICompanyModel } from './types/company.type';
@@ -15,8 +14,6 @@ import { IContactMessage, IContactMessageModel } from './types/contact-message.t
15
14
  import { IContactStartup, IContactStartupModel } from './types/contact-startup.type';
16
15
  import { IContent, IContentModel } from './types/content.type';
17
16
  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
17
  import { IFaq, IFaqModel } from './types/faq.type';
21
18
  import { IFeaturedTheme, IFeaturedThemeModel } from './types/featured-theme.type';
22
19
  import { IFollowContent, IFollowContentModel } from './types/follow-content.type';
@@ -72,8 +69,6 @@ import SFSubCategorySchema from './schemas/sf-sub-category.schema';
72
69
  import TechnologySchema from './schemas/technology.schema';
73
70
  import IndustrySchema from './schemas/industry.schema';
74
71
  import BackendErrorSchema from './schemas/backend-error.schema';
75
- import EvidenceSchema from './schemas/evidence.schema';
76
- import EvidenceLayoutSchema from './schemas/evidence-layout.schema';
77
72
  import ImageSchema from './schemas/image.schema';
78
73
  import SearchHistorySchema from './schemas/search-history.schema';
79
74
  import TokenSchema from './schemas/token.schema';
@@ -84,7 +79,6 @@ import PortiaArticleSchema from './schemas/portia-article.schema';
84
79
  import InstantResearchSchema from './schemas/instant-research.schema';
85
80
  import ContactMessageSchema from './schemas/contact-message.schema';
86
81
  import ContactStartupSchema from './schemas/contact-startup.schema';
87
- import BadgeSchema from './schemas/badge.schema';
88
82
  import ContentSchema from './schemas/content.schema';
89
83
  import FaqSchema from './schemas/faq.schema';
90
84
  import UseCaseSchema from './schemas/use-case.schema';
@@ -131,5 +125,5 @@ import AiTaskResearchManagerOutputSchema from './schemas/ai-task-research-manage
131
125
  import AiTaskOutlineSchema from './schemas/ai-task-outline.schema';
132
126
  import AiTaskShareSchema from './schemas/ai-task-share.schema';
133
127
  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, 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, 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, };
135
- 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, 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, };
128
+ export { IAiConversation, IAiConversationModel, IAiConversationMessage, IAiConversationMessageModel, IAiConversationTrackingTask, IAiConversationTrackingTaskModel, IAiAssistant, IAiAssistantModel, IBackendError, IBackendErrorModel, IBatchHistory, IBookmark, IBookmarkModel, ICompany, ICompanyModel, ICompanyCluster, ICompanyClusterModel, ICompanyMarketing, ICompanyMarketingModel, ICompanyFundingRound, ICompanyFundingRoundModel, ICompetitor, ICompetitorModel, ICompetitorAnalysis, ICompetitorAnalysisModel, IContactMessage, IContactMessageModel, IContactStartup, IContactStartupModel, IContent, IContentModel, IDraftVersion, IDraftVersionModel, IFaq, IFaqModel, IFeaturedTheme, IFeaturedThemeModel, IFollowContent, IFollowContentModel, IGeneralConfigSub, IGeneralConfigSubModel, IGeneralConfig, IGeneralConfigModel, IImage, IImageModel, IIndustry, IIndustryModel, IInstantResearch, IInstantResearchModel, IInvestor, IInvestorModel, ILike, ILikeModel, INews, INewsModel, INotification, INotificationModel, IOtp, IOtpModel, IPortiaArticle, IPortiaArticleModel, IProblem, IProblemModel, IRelatedTheme, IRelatedThemeModel, ISearchHistory, ISearchHistoryModel, ISFCategory, ISFCategoryModel, ISFSubCategory, ISFSubCategoryModel, ISFTag, ISFTagModel, ISparkUseCase, ISparkUseCaseModel, ISpark, ISparkModel, IStartupVectorAnyEntity, IStartupVectorAnyEntityModel, ISuggest, ISuggestModel, ITechnology, ITechnologyModel, ITheme, IThemeModel, IToken, ITokenModel, IUpdateJob, IUpdateJobModel, IUseCase, IUseCaseModel, IUseCaseDiscovery, IUseCaseDiscoveryModel, IUseCaseDiscoveryProblem, IUseCaseDiscoveryProblemModel, IUserToken, IUserTokenModel, IUserVisit, IUserVisitModel, IUser, IUserModel, IFoamTree, IFoamTreeModel, ICompetitorGrid, ICompetitorGridModel, IHighlight, IHighlightModel, IHighlightNote, IHighlightNoteModel, INewsHub, INewsHubModel, ITeam, ITeamModel, ITeamMember, ITeamMemberModel, IAiTask, IAiTaskModel, IAiTaskSubmission, IAiTaskSubmissionModel, ICompanySubOrganization, ICompanySubOrganizationModel, IAiTaskResearchManagerOutput, IAiTaskResearchManagerOutputModel, IAiTaskOutline, IAiTaskOutlineModel, IAiTaskShare, IAiTaskShareModel, };
129
+ export { AiTaskSchema, AiTaskSubmissionSchema, ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema, InstantResearchSchema, ContactMessageSchema, ContactStartupSchema, ContentSchema, FaqSchema, UseCaseSchema, NewsSchema, LikeSchema, SparkSchema, SparkUseCaseSchema, FollowContentSchema, GeneralConfigSchema, GeneralConfigSubSchema, DraftVersionSchema, NotificationSchema, OtpSchema, SuggestSchema, UserVisitSchema, CompetitorSchema, CompanyFundingRoundSchema, BookmarkSchema, AiConversationSchema, AiConversationMessageSchema, AiConversationTrackingTaskSchema, CompanyClusterSchema, CompanyMarketingSchema, InvestorSchema, RelatedThemeSchema, StartupVectorAnyEntitySchema, UpdateJobSchema, UseCaseDiscoverySchema, UseCaseDiscoveryProblemSchema, CompetitorAnalysisSchema, FoamTreeSchema, FeaturedThemeSchema, CompetitorGridSchema, HighlightSchema, NewsHubSchema, AiAssistantSchema, TeamSchema, TeamMemberSchema, CompanySubOrganizationSchema, HighlightNoteSchema, AiTaskResearchManagerOutputSchema, AiTaskOutlineSchema, AiTaskShareSchema, };
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.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.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.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 = exports.UseCaseDiscoveryProblemSchema = exports.UseCaseDiscoverySchema = void 0;
6
+ exports.CompetitorAnalysisSchema = exports.UseCaseDiscoveryProblemSchema = exports.UseCaseDiscoverySchema = exports.UpdateJobSchema = exports.StartupVectorAnyEntitySchema = exports.RelatedThemeSchema = exports.InvestorSchema = exports.CompanyMarketingSchema = exports.CompanyClusterSchema = exports.AiConversationTrackingTaskSchema = exports.AiConversationMessageSchema = exports.AiConversationSchema = exports.BookmarkSchema = exports.CompanyFundingRoundSchema = exports.CompetitorSchema = exports.UserVisitSchema = exports.SuggestSchema = exports.OtpSchema = exports.NotificationSchema = exports.DraftVersionSchema = exports.GeneralConfigSubSchema = exports.GeneralConfigSchema = exports.FollowContentSchema = exports.SparkUseCaseSchema = exports.SparkSchema = exports.LikeSchema = exports.NewsSchema = exports.UseCaseSchema = exports.FaqSchema = exports.ContentSchema = exports.ContactStartupSchema = exports.ContactMessageSchema = exports.InstantResearchSchema = exports.PortiaArticleSchema = exports.CompanySchema = exports.UserSchema = exports.UserTokenSchema = exports.TokenSchema = exports.SearchHistorySchema = exports.ImageSchema = exports.BackendErrorSchema = exports.IndustrySchema = exports.TechnologySchema = exports.SFSubCategorySchema = exports.SFCategorySchema = exports.SFTagSchema = exports.ProblemSchema = exports.ThemeSchema = exports.AiTaskSubmissionSchema = exports.AiTaskSchema = void 0;
7
+ exports.AiTaskShareSchema = exports.AiTaskOutlineSchema = exports.AiTaskResearchManagerOutputSchema = exports.HighlightNoteSchema = exports.CompanySubOrganizationSchema = exports.TeamMemberSchema = exports.TeamSchema = exports.AiAssistantSchema = exports.NewsHubSchema = exports.HighlightSchema = exports.CompetitorGridSchema = exports.FeaturedThemeSchema = exports.FoamTreeSchema = void 0;
8
8
  const theme_schema_1 = __importDefault(require("./schemas/theme.schema"));
9
9
  exports.ThemeSchema = theme_schema_1.default;
10
10
  const problem_schema_1 = __importDefault(require("./schemas/problem.schema"));
@@ -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"));
@@ -45,8 +41,6 @@ const contact_message_schema_1 = __importDefault(require("./schemas/contact-mess
45
41
  exports.ContactMessageSchema = contact_message_schema_1.default;
46
42
  const contact_startup_schema_1 = __importDefault(require("./schemas/contact-startup.schema"));
47
43
  exports.ContactStartupSchema = contact_startup_schema_1.default;
48
- const badge_schema_1 = __importDefault(require("./schemas/badge.schema"));
49
- exports.BadgeSchema = badge_schema_1.default;
50
44
  const content_schema_1 = __importDefault(require("./schemas/content.schema"));
51
45
  exports.ContentSchema = content_schema_1.default;
52
46
  const faq_schema_1 = __importDefault(require("./schemas/faq.schema"));
@@ -73,7 +73,7 @@ const companySchema = new mongoose_1.Schema({
73
73
  files: [
74
74
  {
75
75
  media: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Image', default: null },
76
- icon: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Badge' },
76
+ // icon: { type: Schema.Types.ObjectId, ref: 'Badge' },
77
77
  isArchived: { type: Boolean, default: false },
78
78
  },
79
79
  ],
@@ -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 },
@@ -144,7 +140,7 @@ const companySchema = new mongoose_1.Schema({
144
140
  technicalRequirement: {
145
141
  history: { type: String, default: '' },
146
142
  requirement: {
147
- icons: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Badge', default: null }],
143
+ // icons: [{ type: Schema.Types.ObjectId, ref: 'Badge', default: null }],
148
144
  content: { type: String, default: '' },
149
145
  },
150
146
  liveDemo: { type: String, default: '' },
@@ -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 },
@@ -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';
@@ -18,7 +16,6 @@ import PortiaArticleSchema from './portia-article.schema';
18
16
  import InstantResearchSchema from './instant-research.schema';
19
17
  import ContactMessageSchema from './contact-message.schema';
20
18
  import ContactStartupSchema from './contact-startup.schema';
21
- import BadgeSchema from './badge.schema';
22
19
  import ContentSchema from './content.schema';
23
20
  import FaqSchema from './faq.schema';
24
21
  import UseCaseSchema from './use-case.schema';
@@ -63,4 +60,4 @@ import HighlightNoteSchema from './highlight-note.schema';
63
60
  import AiTaskResearchManagerOutputSchema from './ai-task-research-manager-output.schema';
64
61
  import AiTaskOutlineSchema from './ai-task-outline.schema';
65
62
  import AiTaskShareSchema from './ai-task-share.schema';
66
- 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, 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, };
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, };
@@ -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.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.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 = exports.UseCaseDiscoverySchema = exports.UpdateJobSchema = void 0;
6
+ exports.UseCaseDiscoveryProblemSchema = exports.UseCaseDiscoverySchema = exports.UpdateJobSchema = exports.StartupVectorAnyEntitySchema = exports.RelatedThemeSchema = exports.InvestorSchema = exports.CompanyMarketingSchema = exports.CompanyClusterSchema = exports.BatchHistorySchema = exports.AiConversationTrackingTaskSchema = exports.AiConversationMessageSchema = exports.AiConversationSchema = exports.BookmarkSchema = exports.CompanyFundingRoundSchema = exports.CompetitorSchema = exports.UserVisitSchema = exports.SuggestSchema = exports.OtpSchema = exports.NotificationSchema = exports.DraftVersionSchema = exports.GeneralConfigSubSchema = exports.GeneralConfigSchema = exports.FollowContentSchema = exports.SparkUseCaseSchema = exports.SparkSchema = exports.LikeSchema = exports.NewsSchema = exports.UseCaseSchema = exports.FaqSchema = exports.ContentSchema = exports.ContactStartupSchema = exports.ContactMessageSchema = exports.InstantResearchSchema = exports.PortiaArticleSchema = exports.CompanySchema = exports.UserSchema = exports.UserTokenSchema = exports.TokenSchema = exports.SearchHistorySchema = exports.ImageSchema = exports.BackendErrorSchema = exports.IndustrySchema = exports.TechnologySchema = exports.SFSubCategorySchema = exports.SFCategorySchema = exports.SFTagSchema = exports.ProblemSchema = exports.ThemeSchema = exports.AiTaskSubmissionSchema = exports.AiTaskSchema = void 0;
7
+ exports.AiTaskShareSchema = exports.AiTaskOutlineSchema = exports.AiTaskResearchManagerOutputSchema = exports.HighlightNoteSchema = exports.CompanySubOrganizationSchema = exports.TeamMemberSchema = exports.TeamSchema = exports.AiAssistantSchema = exports.NewsHubSchema = exports.HighlightSchema = exports.FeaturedThemeSchema = exports.CompetitorAnalysisSchema = void 0;
8
8
  const theme_schema_1 = __importDefault(require("./theme.schema"));
9
9
  exports.ThemeSchema = theme_schema_1.default;
10
10
  const problem_schema_1 = __importDefault(require("./problem.schema"));
@@ -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"));
@@ -45,8 +41,6 @@ const contact_message_schema_1 = __importDefault(require("./contact-message.sche
45
41
  exports.ContactMessageSchema = contact_message_schema_1.default;
46
42
  const contact_startup_schema_1 = __importDefault(require("./contact-startup.schema"));
47
43
  exports.ContactStartupSchema = contact_startup_schema_1.default;
48
- const badge_schema_1 = __importDefault(require("./badge.schema"));
49
- exports.BadgeSchema = badge_schema_1.default;
50
44
  const content_schema_1 = __importDefault(require("./content.schema"));
51
45
  exports.ContentSchema = content_schema_1.default;
52
46
  const faq_schema_1 = __importDefault(require("./faq.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 },
@@ -26,7 +26,6 @@ import { BaseSchema } from '../config';
26
26
  import { Types } from 'mongoose';
27
27
  export declare enum BatchHistoryDocumentType {
28
28
  USECASES = "usecases",
29
- EVIDENCES = "evidences",
30
29
  COMPANIES = "companies",
31
30
  THEMES = "themes"
32
31
  }
@@ -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 = {}));
@@ -32,7 +32,6 @@ export declare enum BookmarkType {
32
32
  }
33
33
  export declare enum BookmarkRefModel {
34
34
  THEME = "Theme",// research
35
- EVIDENCE = "Evidence",
36
35
  PORTIA_ARTICLE = "PortiaArticle",// news
37
36
  COMPANY = "Company",
38
37
  PROBLEM = "Problem"
@@ -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";
@@ -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, IBadge } from './';
26
+ import { IIndustry, ITechnology, ISFCategory, ISFSubCategory, ISFTag, IImage, IUser } from './';
27
27
  import { BaseModel, BaseSchema, ContentDraftStatus, ContentStatus, ContentStatusCount } from '../config';
28
28
  type IndexDirection = -1 | 1 | 'asc' | 'desc' | 'text';
29
29
  export interface IndexField {
@@ -155,7 +155,6 @@ interface AnalysisScore {
155
155
  interface TechnicalRequirement {
156
156
  history: string;
157
157
  requirement: {
158
- icons: Types.ObjectId[] | IBadge[];
159
158
  content: string;
160
159
  };
161
160
  liveDemo: string;
@@ -228,7 +227,6 @@ export interface ICompany extends BaseSchema {
228
227
  sfTags: Types.ObjectId[] | ISFTag[];
229
228
  files: File[];
230
229
  useCaseCount: ContentStatusCount | number;
231
- evidenceCount: ContentStatusCount | number;
232
230
  themeCount: ContentStatusCount | number;
233
231
  newsCount: number;
234
232
  profileDetailUrls: string[];
@@ -27,7 +27,6 @@ import { IUser, ICompany } from './';
27
27
  import { BaseModel, BaseSchema } from '../config';
28
28
  export declare enum RelatedType {
29
29
  THEME = "theme",
30
- EVIDENCE = "evidence",
31
30
  USECASE = "usecase",
32
31
  DEFAULT = ""
33
32
  }
@@ -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 = {}));
@@ -28,7 +28,6 @@ export declare enum DraftVersionRefs {
28
28
  COMPANY = "company",
29
29
  THEME = "theme",
30
30
  USE_CASE = "useCase",
31
- EVIDENCE = "evidence",
32
31
  PROBLEM = "problem",
33
32
  DEFAULT = ""
34
33
  }
@@ -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, IEvidence, IUseCase, IProblem, ITheme } from './';
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";
@@ -32,7 +32,6 @@ interface AltTags {
32
32
  isRegex: boolean;
33
33
  }
34
34
  export declare enum ImageFor {
35
- EVIDENCE = "evidence",
36
35
  PROFILE_IMAGE = "profileImage",
37
36
  COMPANY = "company",
38
37
  OTHER = "other",
@@ -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";
@@ -1,6 +1,5 @@
1
1
  import { IAiConversation, IAiConversationModel } from './ai-conversation.type';
2
2
  import { IBackendError, IBackendErrorModel } from './backend-error.type';
3
- import { IBadge, IBadgeModel } from './badge.type';
4
3
  import { IBatchHistory } from './batch-history.type';
5
4
  import { IBookmark, IBookmarkModel } from './bookmark.type';
6
5
  import { ICompany, ICompanyModel } from './company.type';
@@ -13,8 +12,6 @@ import { IContactMessage, IContactMessageModel } from './contact-message.type';
13
12
  import { IContactStartup, IContactStartupModel } from './contact-startup.type';
14
13
  import { IContent, IContentModel } from './content.type';
15
14
  import { IDraftVersion, IDraftVersionModel } from './draft-version.type';
16
- import { IEvidenceLayout, IEvidenceLayoutModel } from './evidence-layout.type';
17
- import { IEvidence, IEvidenceModel } from './evidence.type';
18
15
  import { IFaq, IFaqModel } from './faq.type';
19
16
  import { IFeaturedTheme, IFeaturedThemeModel } from './featured-theme.type';
20
17
  import { IFoamTree, IFoamTreeModel } from './foam-tree.type';
@@ -65,4 +62,4 @@ import { IHighlightNote, IHighlightNoteModel } from './highlight-note.type';
65
62
  import { IAiTaskResearchManagerOutput, IAiTaskResearchManagerOutputModel } from './ai-task-research-manager-output.type';
66
63
  import { IAiTaskOutline, IAiTaskOutlineModel } from './ai-task-outline.type';
67
64
  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, 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, 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, };
65
+ export { IAiConversation, IAiConversationModel, IAiAssistant, IAiAssistantModel, IAiConversationMessage, IAiConversationMessageModel, IAiConversationTrackingTask, IAiConversationTrackingTaskModel, IBackendError, IBackendErrorModel, IBatchHistory, IBookmark, IBookmarkModel, ICompany, ICompanyModel, ICompanyCluster, ICompanyClusterModel, ICompanyFundingRound, ICompanyFundingRoundModel, ICompanyMarketing, ICompanyMarketingModel, ICompetitor, ICompetitorModel, ICompetitorAnalysis, ICompetitorAnalysisModel, IContactMessage, IContactMessageModel, IContactStartup, IContactStartupModel, IContent, IContentModel, IDraftVersion, IDraftVersionModel, IFaq, IFaqModel, IFeaturedTheme, IFeaturedThemeModel, IFoamTree, IFoamTreeModel, IFollowContent, IFollowContentModel, IGeneralConfigSub, IGeneralConfigSubModel, IGeneralConfig, IGeneralConfigModel, IImage, IImageModel, IIndustry, IIndustryModel, IInstantResearch, IInstantResearchModel, IInvestor, IInvestorModel, ILike, ILikeModel, INews, INewsModel, INotification, INotificationModel, IOtp, IOtpModel, IPortiaArticle, IPortiaArticleModel, IProblem, IProblemModel, IRelatedTheme, IRelatedThemeModel, ISearchHistory, ISearchHistoryModel, ISFCategory, ISFCategoryModel, ISFSubCategory, ISFSubCategoryModel, ISFTag, ISFTagModel, ISparkUseCase, ISparkUseCaseModel, ISpark, ISparkModel, IStartupVectorAnyEntity, IStartupVectorAnyEntityModel, ISuggest, ISuggestModel, ITechnology, ITechnologyModel, ITheme, IThemeModel, IToken, ITokenModel, IUpdateJob, IUpdateJobModel, IUseCaseDiscovery, IUseCaseDiscoveryModel, IUseCaseDiscoveryProblem, IUseCaseDiscoveryProblemModel, IUseCase, IUseCaseModel, IUserToken, IUserTokenModel, IUserVisit, IUserVisitModel, IUser, IUserModel, ICompetitorGrid, ICompetitorGridModel, AIStatus, IHighlight, IHighlightModel, IHighlightNote, IHighlightNoteModel, INewsHub, INewsHubModel, ITeam, ITeamModel, ITeamMember, ITeamMemberModel, IAiTask, IAiTaskModel, IAiTaskSubmission, IAiTaskSubmissionModel, ICompanySubOrganizationModel, ICompanySubOrganization, IAiTaskResearchManagerOutput, IAiTaskResearchManagerOutputModel, IAiTaskOutline, IAiTaskOutlineModel, IAiTaskShare, IAiTaskShareModel, };
@@ -23,7 +23,7 @@
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  import { Types } from 'mongoose';
26
- import { IUser, ITheme, IEvidence, IUseCase, IProblem, INews, ICompany } from './';
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;
@@ -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, IEvidence, IImage, ITheme, IUseCase, ICompany } from './';
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 | IEvidence | ICompany | IUseCase;
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
  }
@@ -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, IEvidence, IProblem, ITheme, IUseCase } from './';
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 | IEvidence | ITheme | IProblem | IUseCase;
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, IEvidence, ICompany, IUser, ISparkUseCase } from './';
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[];
@@ -29,7 +29,6 @@ export declare enum UserVisitType {
29
29
  COMPANY = "company",
30
30
  USE_CASE = "useCase",
31
31
  RESEARCH = "research",
32
- EVIDENCE = "evidence",
33
32
  PORTIA_ARTICLE = "portiaArticle"
34
33
  }
35
34
  export interface IUserVisit extends BaseSchema {
@@ -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 { IEvidence, IImage, ICompany } from './';
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@cool-digital-solutions/interferir-models",
3
- "version": "1.1.94",
3
+ "version": "1.1.96",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"
@@ -1,28 +0,0 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose/types/inferschematype" />
25
- import { Schema } from 'mongoose';
26
- import type { IBadge, IBadgeModel } from '../types';
27
- declare const badgeSchema: Schema<IBadge, IBadgeModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IBadge>;
28
- export default badgeSchema;
@@ -1,45 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const mongoose_1 = require("mongoose");
7
- const express_http_context_1 = __importDefault(require("express-http-context"));
8
- const badge_type_1 = require("../types/badge.type");
9
- const _config_1 = require("../config");
10
- const badgeSchema = new mongoose_1.Schema({
11
- key: {
12
- type: String,
13
- required: [true, 'key is required.'],
14
- },
15
- text: { type: String, required: [true, 'text is required.'] },
16
- icon: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Image', default: null },
17
- type: {
18
- type: String,
19
- enum: Object.values(badge_type_1.BadgeType),
20
- required: [true, 'type is required'],
21
- },
22
- createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
23
- updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
24
- updatedDate: Number,
25
- createdDate: Number,
26
- }, _config_1.schemaOptions);
27
- badgeSchema.pre('save', function (next) {
28
- const user = express_http_context_1.default.get('user');
29
- const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
30
- if (user) {
31
- if (!this.createdBy)
32
- this.createdBy = user._id;
33
- if (!notUpdatedBy)
34
- this.updatedBy = user._id;
35
- }
36
- next();
37
- });
38
- badgeSchema.pre('findOneAndUpdate', function (next) {
39
- const user = express_http_context_1.default.get('user');
40
- const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
41
- if (user && !notUpdatedBy)
42
- this._update.updatedBy = user._id;
43
- next();
44
- });
45
- exports.default = badgeSchema;
@@ -1,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,42 +0,0 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose/types/inferschematype" />
25
- import { Types } from 'mongoose';
26
- import { IImage } from './';
27
- import { BaseModel, BaseSchema } from '../config';
28
- export declare enum BadgeType {
29
- STAKEHOLDER = "stakeholder",
30
- ADDITIONAL_MATERIAL = "additionalMaterial",
31
- BADGE = "badge",
32
- PRIVATE = "private",
33
- SECURITY_CERTIFICATE = "securityCertificate"
34
- }
35
- export interface IBadge extends BaseSchema {
36
- key: string;
37
- text: string;
38
- icon: Types.ObjectId | IImage;
39
- type: BadgeType;
40
- }
41
- export interface IBadgeModel extends BaseModel<IBadge> {
42
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BadgeType = void 0;
4
- var BadgeType;
5
- (function (BadgeType) {
6
- BadgeType["STAKEHOLDER"] = "stakeholder";
7
- BadgeType["ADDITIONAL_MATERIAL"] = "additionalMaterial";
8
- BadgeType["BADGE"] = "badge";
9
- BadgeType["PRIVATE"] = "private";
10
- BadgeType["SECURITY_CERTIFICATE"] = "securityCertificate";
11
- })(BadgeType || (exports.BadgeType = BadgeType = {}));
@@ -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,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 = {}));