@cool-digital-solutions/interferir-models 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/schemas/{company-funding-ground.schema.d.ts → company-funding-round.schema.d.ts} +3 -3
- package/dist/schemas/{company-funding-ground.schema.js → company-funding-round.schema.js} +4 -4
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.js +3 -3
- package/dist/schemas/portia-article.schema.js +8 -1
- package/dist/types/{company-funding-ground.type.d.ts → company-funding-round.type.d.ts} +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/portia-article.type.d.ts +17 -2
- package/dist/types/portia-article.type.js +10 -1
- package/package.json +1 -1
- /package/dist/types/{company-funding-ground.type.js → company-funding-round.type.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { IBackendError, IBackendErrorModel } from './types/backend-error.type';
|
|
|
3
3
|
import { IBadge, IBadgeModel } from './types/badge.type';
|
|
4
4
|
import { IBatchHistory } from './types/batch-history.type';
|
|
5
5
|
import { ICompany, ICompanyModel } from './types/company.type';
|
|
6
|
-
import {
|
|
6
|
+
import { ICompanyFundingRound, ICompanyFundingRoundModel } from './types/company-funding-round.type';
|
|
7
7
|
import { ICompetitor, ICompetitorModel } from './types/competitor.type';
|
|
8
8
|
import { IContactMessage, IContactMessageModel } from './types/contact-message.type';
|
|
9
9
|
import { IContactStartup, IContactStartupModel } from './types/contact-startup.type';
|
|
@@ -79,6 +79,6 @@ import OtpSchema from './schemas/otp.schema';
|
|
|
79
79
|
import SuggestSchema from './schemas/suggest.schema';
|
|
80
80
|
import UserVisitSchema from './schemas/user-visit.schema';
|
|
81
81
|
import CompetitorSchema from './schemas/competitor.schema';
|
|
82
|
-
import
|
|
83
|
-
export { IAiConversation, IAiConversationModel, IBackendError, IBackendErrorModel, IBadge, IBadgeModel, IBatchHistory, ICompany, ICompanyModel, ICompetitor, ICompetitorModel, IContactMessage, IContactMessageModel, IContactStartup, IContactStartupModel, IContent, IContentModel, IDraftVersion, IDraftVersionModel, IEvidenceLayout, IEvidenceLayoutModel, IEvidence, IEvidenceModel, IFaq, IFaqModel, 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, ISearchHistory, ISearchHistoryModel, ISFCategory, ISFCategoryModel, ISFSubCategory, ISFSubCategoryModel, ISFTag, ISFTagModel, ISiteMapCache, ISiteMapCacheModel, ISparkUseCase, ISparkUseCaseModel, ISpark, ISparkModel, ISuggest, ISuggestModel, ITechnology, ITechnologyModel, ITheme, IThemeModel, IToken, ITokenModel, IUpdateJob, IUpdateJobModel, IUseCase, IUseCaseModel, IUserToken, IUserTokenModel, IUserVisit, IUserVisitModel, IUser, IUserModel,
|
|
84
|
-
export { ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, EvidenceSchema, EvidenceLayoutSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema, InstantResearchSchema, ContactMessageSchema, ContactStartupSchema, BadgeSchema, ContentSchema, FaqSchema, UseCaseSchema, NewsSchema, LikeSchema, SparkSchema, SparkUseCaseSchema, FollowContentSchema, SiteMapCacheSchema, GeneralConfigSchema, GeneralConfigSubSchema, DraftVersionSchema, NotificationSchema, OtpSchema, SuggestSchema, UserVisitSchema, CompetitorSchema,
|
|
82
|
+
import CompanyFundingRoundSchema from './schemas/company-funding-round.schema';
|
|
83
|
+
export { IAiConversation, IAiConversationModel, IBackendError, IBackendErrorModel, IBadge, IBadgeModel, IBatchHistory, ICompany, ICompanyModel, ICompetitor, ICompetitorModel, IContactMessage, IContactMessageModel, IContactStartup, IContactStartupModel, IContent, IContentModel, IDraftVersion, IDraftVersionModel, IEvidenceLayout, IEvidenceLayoutModel, IEvidence, IEvidenceModel, IFaq, IFaqModel, 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, ISearchHistory, ISearchHistoryModel, ISFCategory, ISFCategoryModel, ISFSubCategory, ISFSubCategoryModel, ISFTag, ISFTagModel, ISiteMapCache, ISiteMapCacheModel, ISparkUseCase, ISparkUseCaseModel, ISpark, ISparkModel, ISuggest, ISuggestModel, ITechnology, ITechnologyModel, ITheme, IThemeModel, IToken, ITokenModel, IUpdateJob, IUpdateJobModel, IUseCase, IUseCaseModel, IUserToken, IUserTokenModel, IUserVisit, IUserVisitModel, IUser, IUserModel, ICompanyFundingRound, ICompanyFundingRoundModel, };
|
|
84
|
+
export { ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, EvidenceSchema, EvidenceLayoutSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema, InstantResearchSchema, ContactMessageSchema, ContactStartupSchema, BadgeSchema, ContentSchema, FaqSchema, UseCaseSchema, NewsSchema, LikeSchema, SparkSchema, SparkUseCaseSchema, FollowContentSchema, SiteMapCacheSchema, GeneralConfigSchema, GeneralConfigSubSchema, DraftVersionSchema, NotificationSchema, OtpSchema, SuggestSchema, UserVisitSchema, CompetitorSchema, CompanyFundingRoundSchema, };
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ 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.
|
|
6
|
+
exports.CompanyFundingRoundSchema = exports.CompetitorSchema = exports.UserVisitSchema = exports.SuggestSchema = exports.OtpSchema = exports.NotificationSchema = exports.DraftVersionSchema = exports.GeneralConfigSubSchema = exports.GeneralConfigSchema = exports.SiteMapCacheSchema = exports.FollowContentSchema = exports.SparkUseCaseSchema = exports.SparkSchema = exports.LikeSchema = exports.NewsSchema = exports.UseCaseSchema = exports.FaqSchema = exports.ContentSchema = exports.BadgeSchema = exports.ContactStartupSchema = exports.ContactMessageSchema = exports.InstantResearchSchema = exports.PortiaArticleSchema = exports.CompanySchema = exports.UserSchema = exports.UserTokenSchema = exports.TokenSchema = exports.SearchHistorySchema = exports.ImageSchema = exports.EvidenceLayoutSchema = exports.EvidenceSchema = exports.BackendErrorSchema = exports.IndustrySchema = exports.TechnologySchema = exports.SFSubCategorySchema = exports.SFCategorySchema = exports.SFTagSchema = exports.ProblemSchema = exports.ThemeSchema = void 0;
|
|
7
7
|
const theme_schema_1 = __importDefault(require("./schemas/theme.schema"));
|
|
8
8
|
exports.ThemeSchema = theme_schema_1.default;
|
|
9
9
|
const problem_schema_1 = __importDefault(require("./schemas/problem.schema"));
|
|
@@ -80,5 +80,5 @@ const user_visit_schema_1 = __importDefault(require("./schemas/user-visit.schema
|
|
|
80
80
|
exports.UserVisitSchema = user_visit_schema_1.default;
|
|
81
81
|
const competitor_schema_1 = __importDefault(require("./schemas/competitor.schema"));
|
|
82
82
|
exports.CompetitorSchema = competitor_schema_1.default;
|
|
83
|
-
const
|
|
84
|
-
exports.
|
|
83
|
+
const company_funding_round_schema_1 = __importDefault(require("./schemas/company-funding-round.schema"));
|
|
84
|
+
exports.CompanyFundingRoundSchema = company_funding_round_schema_1.default;
|
package/dist/schemas/{company-funding-ground.schema.d.ts → company-funding-round.schema.d.ts}
RENAMED
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import { Schema, Types } from 'mongoose';
|
|
26
|
-
import {
|
|
27
|
-
declare const
|
|
26
|
+
import { ICompanyFundingRound, ICompanyFundingRoundModel } from '../types';
|
|
27
|
+
declare const companyFundingRound: Schema<ICompanyFundingRound, ICompanyFundingRoundModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ICompanyFundingRound, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ICompanyFundingRound>> & import("mongoose").FlatRecord<ICompanyFundingRound> & Required<{
|
|
28
28
|
_id: Types.ObjectId;
|
|
29
29
|
}>>;
|
|
30
|
-
export default
|
|
30
|
+
export default companyFundingRound;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const mongoose_1 = require("mongoose");
|
|
7
7
|
const express_http_context_1 = __importDefault(require("express-http-context"));
|
|
8
8
|
const _config_1 = require("../config");
|
|
9
|
-
const
|
|
9
|
+
const companyFundingRound = new mongoose_1.Schema({
|
|
10
10
|
company: {
|
|
11
11
|
type: mongoose_1.Types.ObjectId,
|
|
12
12
|
ref: 'Company',
|
|
@@ -55,7 +55,7 @@ const companyFundingGround = new mongoose_1.Schema({
|
|
|
55
55
|
updatedDate: { type: Number, index: -1 },
|
|
56
56
|
createdDate: { type: Number, index: -1 },
|
|
57
57
|
}, _config_1.schemaOptions);
|
|
58
|
-
|
|
58
|
+
companyFundingRound.pre('save', function (next) {
|
|
59
59
|
const user = express_http_context_1.default.get('user');
|
|
60
60
|
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
61
61
|
if (user) {
|
|
@@ -66,11 +66,11 @@ companyFundingGround.pre('save', function (next) {
|
|
|
66
66
|
}
|
|
67
67
|
next();
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
companyFundingRound.pre('findOneAndUpdate', function (next) {
|
|
70
70
|
const user = express_http_context_1.default.get('user');
|
|
71
71
|
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
72
72
|
if (user && !notUpdatedBy)
|
|
73
73
|
this._update.updatedBy = user._id;
|
|
74
74
|
next();
|
|
75
75
|
});
|
|
76
|
-
exports.default =
|
|
76
|
+
exports.default = companyFundingRound;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -36,5 +36,5 @@ import OtpSchema from './otp.schema';
|
|
|
36
36
|
import SuggestSchema from './suggest.schema';
|
|
37
37
|
import UserVisitSchema from './user-visit.schema';
|
|
38
38
|
import CompetitorSchema from './competitor.schema';
|
|
39
|
-
import
|
|
40
|
-
export { ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, EvidenceSchema, EvidenceLayoutSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema, InstantResearchSchema, ContactMessageSchema, ContactStartupSchema, BadgeSchema, ContentSchema, FaqSchema, UseCaseSchema, NewsSchema, LikeSchema, SparkSchema, SparkUseCaseSchema, FollowContentSchema, SiteMapCacheSchema, GeneralConfigSchema, GeneralConfigSubSchema, DraftVersionSchema, NotificationSchema, OtpSchema, SuggestSchema, UserVisitSchema, CompetitorSchema,
|
|
39
|
+
import CompanyFundingRoundSchema from './company-funding-round.schema';
|
|
40
|
+
export { ThemeSchema, ProblemSchema, SFTagSchema, SFCategorySchema, SFSubCategorySchema, TechnologySchema, IndustrySchema, BackendErrorSchema, EvidenceSchema, EvidenceLayoutSchema, ImageSchema, SearchHistorySchema, TokenSchema, UserTokenSchema, UserSchema, CompanySchema, PortiaArticleSchema, InstantResearchSchema, ContactMessageSchema, ContactStartupSchema, BadgeSchema, ContentSchema, FaqSchema, UseCaseSchema, NewsSchema, LikeSchema, SparkSchema, SparkUseCaseSchema, FollowContentSchema, SiteMapCacheSchema, GeneralConfigSchema, GeneralConfigSubSchema, DraftVersionSchema, NotificationSchema, OtpSchema, SuggestSchema, UserVisitSchema, CompetitorSchema, CompanyFundingRoundSchema, };
|
package/dist/schemas/index.js
CHANGED
|
@@ -3,7 +3,7 @@ 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.
|
|
6
|
+
exports.CompanyFundingRoundSchema = exports.CompetitorSchema = exports.UserVisitSchema = exports.SuggestSchema = exports.OtpSchema = exports.NotificationSchema = exports.DraftVersionSchema = exports.GeneralConfigSubSchema = exports.GeneralConfigSchema = exports.SiteMapCacheSchema = exports.FollowContentSchema = exports.SparkUseCaseSchema = exports.SparkSchema = exports.LikeSchema = exports.NewsSchema = exports.UseCaseSchema = exports.FaqSchema = exports.ContentSchema = exports.BadgeSchema = exports.ContactStartupSchema = exports.ContactMessageSchema = exports.InstantResearchSchema = exports.PortiaArticleSchema = exports.CompanySchema = exports.UserSchema = exports.UserTokenSchema = exports.TokenSchema = exports.SearchHistorySchema = exports.ImageSchema = exports.EvidenceLayoutSchema = exports.EvidenceSchema = exports.BackendErrorSchema = exports.IndustrySchema = exports.TechnologySchema = exports.SFSubCategorySchema = exports.SFCategorySchema = exports.SFTagSchema = exports.ProblemSchema = exports.ThemeSchema = void 0;
|
|
7
7
|
const theme_schema_1 = __importDefault(require("./theme.schema"));
|
|
8
8
|
exports.ThemeSchema = theme_schema_1.default;
|
|
9
9
|
const problem_schema_1 = __importDefault(require("./problem.schema"));
|
|
@@ -80,5 +80,5 @@ const user_visit_schema_1 = __importDefault(require("./user-visit.schema"));
|
|
|
80
80
|
exports.UserVisitSchema = user_visit_schema_1.default;
|
|
81
81
|
const competitor_schema_1 = __importDefault(require("./competitor.schema"));
|
|
82
82
|
exports.CompetitorSchema = competitor_schema_1.default;
|
|
83
|
-
const
|
|
84
|
-
exports.
|
|
83
|
+
const company_funding_round_schema_1 = __importDefault(require("./company-funding-round.schema"));
|
|
84
|
+
exports.CompanyFundingRoundSchema = company_funding_round_schema_1.default;
|
|
@@ -62,12 +62,19 @@ const portiaArticleSchema = new mongoose_1.Schema({
|
|
|
62
62
|
score: { type: Number, default: 0 },
|
|
63
63
|
},
|
|
64
64
|
],
|
|
65
|
-
|
|
65
|
+
researches: [
|
|
66
|
+
{
|
|
67
|
+
researchId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Theme' },
|
|
68
|
+
score: { type: Number, default: 0 },
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
status: { type: String, enum: Object.values(portia_article_type_1.PortiaArticleStatus), required: [true, 'status is required!'], default: portia_article_type_1.PortiaArticleStatus.PUBLISH },
|
|
66
72
|
sfIndustries: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Industry' }],
|
|
67
73
|
sfTechnologies: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Technology' }],
|
|
68
74
|
sfCategories: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFCategory' }],
|
|
69
75
|
sfSubCategories: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFSubCategory' }],
|
|
70
76
|
sfTags: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFTag' }],
|
|
77
|
+
portiaApiResults: [{ message: { type: String, default: '' } }],
|
|
71
78
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
72
79
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
73
80
|
updatedDate: { type: Number, index: -1 },
|
|
@@ -35,7 +35,7 @@ export interface MoneyRaised {
|
|
|
35
35
|
currency: string;
|
|
36
36
|
valueUsd: number;
|
|
37
37
|
}
|
|
38
|
-
export interface
|
|
38
|
+
export interface ICompanyFundingRound extends BaseSchema {
|
|
39
39
|
company: Types.ObjectId | ICompany;
|
|
40
40
|
investors: Types.ObjectId[] | ICompany[];
|
|
41
41
|
round: string;
|
|
@@ -46,5 +46,5 @@ export interface ICompanyFundingGround extends BaseSchema {
|
|
|
46
46
|
investmentType: string;
|
|
47
47
|
investmentDate: number;
|
|
48
48
|
}
|
|
49
|
-
export interface
|
|
49
|
+
export interface ICompanyFundingRoundModel extends BaseModel<ICompanyFundingRound> {
|
|
50
50
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { IBackendError, IBackendErrorModel } from './backend-error.type';
|
|
|
3
3
|
import { IBadge, IBadgeModel } from './badge.type';
|
|
4
4
|
import { IBatchHistory } from './batch-history.type';
|
|
5
5
|
import { ICompany, ICompanyModel } from './company.type';
|
|
6
|
-
import {
|
|
6
|
+
import { ICompanyFundingRound, ICompanyFundingRoundModel } from './company-funding-round.type';
|
|
7
7
|
import { ICompetitor, ICompetitorModel } from './competitor.type';
|
|
8
8
|
import { IContactMessage, IContactMessageModel } from './contact-message.type';
|
|
9
9
|
import { IContactStartup, IContactStartupModel } from './contact-startup.type';
|
|
@@ -41,4 +41,4 @@ import { IUseCase, IUseCaseModel } from './use-case.type';
|
|
|
41
41
|
import { IUserToken, IUserTokenModel } from './user-token.type';
|
|
42
42
|
import { IUserVisit, IUserVisitModel } from './user-visit.type';
|
|
43
43
|
import { IUser, IUserModel } from './user.type';
|
|
44
|
-
export { IAiConversation, IAiConversationModel, IBackendError, IBackendErrorModel, IBadge, IBadgeModel, IBatchHistory, ICompany, ICompanyModel,
|
|
44
|
+
export { IAiConversation, IAiConversationModel, IBackendError, IBackendErrorModel, IBadge, IBadgeModel, IBatchHistory, ICompany, ICompanyModel, ICompanyFundingRound, ICompanyFundingRoundModel, ICompetitor, ICompetitorModel, IContactMessage, IContactMessageModel, IContactStartup, IContactStartupModel, IContent, IContentModel, IDraftVersion, IDraftVersionModel, IEvidenceLayout, IEvidenceLayoutModel, IEvidence, IEvidenceModel, IFaq, IFaqModel, 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, ISearchHistory, ISearchHistoryModel, ISFCategory, ISFCategoryModel, ISFSubCategory, ISFSubCategoryModel, ISFTag, ISFTagModel, ISiteMapCache, ISiteMapCacheModel, ISparkUseCase, ISparkUseCaseModel, ISpark, ISparkModel, ISuggest, ISuggestModel, ITechnology, ITechnologyModel, ITheme, IThemeModel, IToken, ITokenModel, IUpdateJob, IUpdateJobModel, IUseCase, IUseCaseModel, IUserToken, IUserTokenModel, IUserVisit, IUserVisitModel, IUser, IUserModel, };
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import { Types } from 'mongoose';
|
|
26
26
|
import { ICompany, IImage, IIndustry, ITechnology, ISFCategory, ISFSubCategory, ISFTag } from './';
|
|
27
|
-
import { BaseModel, BaseSchema
|
|
27
|
+
import { BaseModel, BaseSchema } from '../config';
|
|
28
28
|
export declare enum PortiaArticleTypes {
|
|
29
29
|
NEWS = "news"
|
|
30
30
|
}
|
|
@@ -55,6 +55,14 @@ export interface IPortiaAnalysis {
|
|
|
55
55
|
companyReferences: Types.ObjectId[] | ICompany[];
|
|
56
56
|
investors?: [String];
|
|
57
57
|
}
|
|
58
|
+
export declare enum PortiaArticleStatus {
|
|
59
|
+
DRAFT = "draft",
|
|
60
|
+
PUBLISH = "publish",
|
|
61
|
+
PRIVATE = "private",
|
|
62
|
+
PRE_PUBLISH = "prePublish",
|
|
63
|
+
QUEUE = "queue",
|
|
64
|
+
FAILED = "failed"
|
|
65
|
+
}
|
|
58
66
|
export interface IPortiaArticle extends BaseSchema {
|
|
59
67
|
id?: Types.ObjectId;
|
|
60
68
|
slug: string;
|
|
@@ -73,7 +81,7 @@ export interface IPortiaArticle extends BaseSchema {
|
|
|
73
81
|
downloadDate: Number;
|
|
74
82
|
analysisResult: IPortiaAnalysis;
|
|
75
83
|
cardDescription?: String;
|
|
76
|
-
status:
|
|
84
|
+
status: PortiaArticleStatus;
|
|
77
85
|
sfIndustries: Types.ObjectId[] | IIndustry[];
|
|
78
86
|
sfTechnologies: Types.ObjectId[] | ITechnology[];
|
|
79
87
|
sfCategories: Types.ObjectId[] | ISFCategory[];
|
|
@@ -83,6 +91,13 @@ export interface IPortiaArticle extends BaseSchema {
|
|
|
83
91
|
instantResearchId: Types.ObjectId;
|
|
84
92
|
score: number;
|
|
85
93
|
}[];
|
|
94
|
+
researches: {
|
|
95
|
+
researchId: Types.ObjectId;
|
|
96
|
+
score: number;
|
|
97
|
+
}[];
|
|
98
|
+
portiaApiResults: {
|
|
99
|
+
message: string;
|
|
100
|
+
}[];
|
|
86
101
|
}
|
|
87
102
|
export interface IPortiaArticleModel extends BaseModel<IPortiaArticle> {
|
|
88
103
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PortiaArticleLanguages = exports.PortiaArticleCategories = exports.PortiaArticleTypes = void 0;
|
|
3
|
+
exports.PortiaArticleStatus = exports.PortiaArticleLanguages = exports.PortiaArticleCategories = exports.PortiaArticleTypes = void 0;
|
|
4
4
|
var PortiaArticleTypes;
|
|
5
5
|
(function (PortiaArticleTypes) {
|
|
6
6
|
PortiaArticleTypes["NEWS"] = "news";
|
|
@@ -21,3 +21,12 @@ var PortiaArticleLanguages;
|
|
|
21
21
|
(function (PortiaArticleLanguages) {
|
|
22
22
|
PortiaArticleLanguages["ENGLISH"] = "en";
|
|
23
23
|
})(PortiaArticleLanguages || (exports.PortiaArticleLanguages = PortiaArticleLanguages = {}));
|
|
24
|
+
var PortiaArticleStatus;
|
|
25
|
+
(function (PortiaArticleStatus) {
|
|
26
|
+
PortiaArticleStatus["DRAFT"] = "draft";
|
|
27
|
+
PortiaArticleStatus["PUBLISH"] = "publish";
|
|
28
|
+
PortiaArticleStatus["PRIVATE"] = "private";
|
|
29
|
+
PortiaArticleStatus["PRE_PUBLISH"] = "prePublish";
|
|
30
|
+
PortiaArticleStatus["QUEUE"] = "queue";
|
|
31
|
+
PortiaArticleStatus["FAILED"] = "failed";
|
|
32
|
+
})(PortiaArticleStatus || (exports.PortiaArticleStatus = PortiaArticleStatus = {}));
|
package/package.json
CHANGED
|
File without changes
|