@cool-digital-solutions/interferir-models 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -1
- package/dist/schemas/company-funding-ground.schema.d.ts +30 -0
- package/dist/schemas/company-funding-ground.schema.js +76 -0
- package/dist/schemas/index.d.ts +2 -1
- package/dist/schemas/index.js +3 -1
- package/dist/schemas/portia-article.schema.js +8 -1
- package/dist/types/company-funding-ground.type.d.ts +50 -0
- package/dist/types/company-funding-ground.type.js +2 -0
- package/dist/types/index.d.ts +2 -1
- 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/index.d.ts
CHANGED
|
@@ -3,6 +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 { ICompanyFundingGround, ICompanyFundingGroundModel } from './types/company-funding-ground.type';
|
|
6
7
|
import { ICompetitor, ICompetitorModel } from './types/competitor.type';
|
|
7
8
|
import { IContactMessage, IContactMessageModel } from './types/contact-message.type';
|
|
8
9
|
import { IContactStartup, IContactStartupModel } from './types/contact-startup.type';
|
|
@@ -78,5 +79,6 @@ import OtpSchema from './schemas/otp.schema';
|
|
|
78
79
|
import SuggestSchema from './schemas/suggest.schema';
|
|
79
80
|
import UserVisitSchema from './schemas/user-visit.schema';
|
|
80
81
|
import CompetitorSchema from './schemas/competitor.schema';
|
|
81
|
-
|
|
82
|
-
export {
|
|
82
|
+
import CompanyFundingGroundSchema from './schemas/company-funding-ground.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, ICompanyFundingGround, ICompanyFundingGroundModel, };
|
|
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, CompanyFundingGroundSchema, };
|
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.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;
|
|
6
|
+
exports.CompanyFundingGroundSchema = 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,3 +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 company_funding_ground_schema_1 = __importDefault(require("./schemas/company-funding-ground.schema"));
|
|
84
|
+
exports.CompanyFundingGroundSchema = company_funding_ground_schema_1.default;
|
|
@@ -0,0 +1,30 @@
|
|
|
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, Types } from 'mongoose';
|
|
26
|
+
import { ICompanyFundingGround, ICompanyFundingGroundModel } from '../types';
|
|
27
|
+
declare const companyFundingGround: Schema<ICompanyFundingGround, ICompanyFundingGroundModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ICompanyFundingGround, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ICompanyFundingGround>> & import("mongoose").FlatRecord<ICompanyFundingGround> & Required<{
|
|
28
|
+
_id: Types.ObjectId;
|
|
29
|
+
}>>;
|
|
30
|
+
export default companyFundingGround;
|
|
@@ -0,0 +1,76 @@
|
|
|
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 companyFundingGround = new mongoose_1.Schema({
|
|
10
|
+
company: {
|
|
11
|
+
type: mongoose_1.Types.ObjectId,
|
|
12
|
+
ref: 'Company',
|
|
13
|
+
required: true,
|
|
14
|
+
},
|
|
15
|
+
investors: [
|
|
16
|
+
{
|
|
17
|
+
type: mongoose_1.Types.ObjectId,
|
|
18
|
+
ref: 'Company',
|
|
19
|
+
default: null,
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
round: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: '',
|
|
25
|
+
},
|
|
26
|
+
preMoneyValuation: {
|
|
27
|
+
value: { type: Number, default: 0 },
|
|
28
|
+
currency: { type: String, default: '' },
|
|
29
|
+
valueUsd: { type: Number, default: 0 },
|
|
30
|
+
},
|
|
31
|
+
moneyRaised: {
|
|
32
|
+
value: { type: Number, default: 0 },
|
|
33
|
+
currency: { type: String, default: '' },
|
|
34
|
+
valueUsd: { type: Number, default: 0 },
|
|
35
|
+
},
|
|
36
|
+
investmentStage: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: '',
|
|
39
|
+
},
|
|
40
|
+
leadInvestors: [
|
|
41
|
+
{
|
|
42
|
+
type: mongoose_1.Types.ObjectId,
|
|
43
|
+
ref: 'Company',
|
|
44
|
+
default: null,
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
investmentType: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: '',
|
|
50
|
+
},
|
|
51
|
+
investmentDate: {
|
|
52
|
+
type: Number,
|
|
53
|
+
default: null,
|
|
54
|
+
},
|
|
55
|
+
updatedDate: { type: Number, index: -1 },
|
|
56
|
+
createdDate: { type: Number, index: -1 },
|
|
57
|
+
}, _config_1.schemaOptions);
|
|
58
|
+
companyFundingGround.pre('save', function (next) {
|
|
59
|
+
const user = express_http_context_1.default.get('user');
|
|
60
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
61
|
+
if (user) {
|
|
62
|
+
if (!this.createdBy)
|
|
63
|
+
this.createdBy = user._id;
|
|
64
|
+
if (!notUpdatedBy)
|
|
65
|
+
this.updatedBy = user._id;
|
|
66
|
+
}
|
|
67
|
+
next();
|
|
68
|
+
});
|
|
69
|
+
companyFundingGround.pre('findOneAndUpdate', function (next) {
|
|
70
|
+
const user = express_http_context_1.default.get('user');
|
|
71
|
+
const notUpdatedBy = express_http_context_1.default.get('notUpdatedBy');
|
|
72
|
+
if (user && !notUpdatedBy)
|
|
73
|
+
this._update.updatedBy = user._id;
|
|
74
|
+
next();
|
|
75
|
+
});
|
|
76
|
+
exports.default = companyFundingGround;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -36,4 +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
|
-
|
|
39
|
+
import CompanyFundingGroundSchema from './company-funding-ground.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, CompanyFundingGroundSchema, };
|
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.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;
|
|
6
|
+
exports.CompanyFundingGroundSchema = 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,3 +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 company_funding_ground_schema_1 = __importDefault(require("./company-funding-ground.schema"));
|
|
84
|
+
exports.CompanyFundingGroundSchema = company_funding_ground_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 },
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { Types } from 'mongoose';
|
|
26
|
+
import { BaseModel, BaseSchema } from '../config';
|
|
27
|
+
import { ICompany } from '..';
|
|
28
|
+
export interface PreMoneyValuation {
|
|
29
|
+
value: number;
|
|
30
|
+
currency: string;
|
|
31
|
+
valueUsd: number;
|
|
32
|
+
}
|
|
33
|
+
export interface MoneyRaised {
|
|
34
|
+
value: number;
|
|
35
|
+
currency: string;
|
|
36
|
+
valueUsd: number;
|
|
37
|
+
}
|
|
38
|
+
export interface ICompanyFundingGround extends BaseSchema {
|
|
39
|
+
company: Types.ObjectId | ICompany;
|
|
40
|
+
investors: Types.ObjectId[] | ICompany[];
|
|
41
|
+
round: string;
|
|
42
|
+
preMoneyValuation: PreMoneyValuation;
|
|
43
|
+
moneyRaised: MoneyRaised;
|
|
44
|
+
investmentStage: string;
|
|
45
|
+
leadInvestors: Types.ObjectId[] | ICompany[];
|
|
46
|
+
investmentType: string;
|
|
47
|
+
investmentDate: number;
|
|
48
|
+
}
|
|
49
|
+
export interface ICompanyFundingGroundModel extends BaseModel<ICompanyFundingGround> {
|
|
50
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,6 +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 { ICompanyFundingGround, ICompanyFundingGroundModel } from './company-funding-ground.type';
|
|
6
7
|
import { ICompetitor, ICompetitorModel } from './competitor.type';
|
|
7
8
|
import { IContactMessage, IContactMessageModel } from './contact-message.type';
|
|
8
9
|
import { IContactStartup, IContactStartupModel } from './contact-startup.type';
|
|
@@ -40,4 +41,4 @@ import { IUseCase, IUseCaseModel } from './use-case.type';
|
|
|
40
41
|
import { IUserToken, IUserTokenModel } from './user-token.type';
|
|
41
42
|
import { IUserVisit, IUserVisitModel } from './user-visit.type';
|
|
42
43
|
import { IUser, IUserModel } from './user.type';
|
|
43
|
-
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, };
|
|
44
|
+
export { IAiConversation, IAiConversationModel, IBackendError, IBackendErrorModel, IBadge, IBadgeModel, IBatchHistory, ICompany, ICompanyModel, ICompanyFundingGround, ICompanyFundingGroundModel, 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 = {}));
|