@cool-digital-solutions/interferir-models 1.0.13 → 1.0.15
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/company.schema.js +1 -1
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.js +3 -3
- package/dist/types/{company-funding-ground.type.d.ts → company-funding-round.type.d.ts} +2 -2
- package/dist/types/company.type.d.ts +3 -2
- package/dist/types/company.type.js +2 -1
- package/dist/types/index.d.ts +2 -2
- 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;
|
|
@@ -214,7 +214,7 @@ const companySchema = new mongoose_1.Schema({
|
|
|
214
214
|
},
|
|
215
215
|
},
|
|
216
216
|
],
|
|
217
|
-
exits: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company'
|
|
217
|
+
exits: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Company' }],
|
|
218
218
|
leadInvestmentCount: { type: Number },
|
|
219
219
|
investmentCount: { type: Number },
|
|
220
220
|
portfolioCount: { type: Number },
|
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;
|
|
@@ -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
|
}
|
|
@@ -174,11 +174,12 @@ interface DeploymentOption {
|
|
|
174
174
|
content: string;
|
|
175
175
|
}
|
|
176
176
|
export declare enum PivotType {
|
|
177
|
-
|
|
177
|
+
STRONG_PIVOT = "strongPivot",
|
|
178
178
|
PIVOT = "pivot",
|
|
179
|
+
MILESTONE = "milestone",
|
|
179
180
|
NULL = ""
|
|
180
181
|
}
|
|
181
|
-
interface Pivot {
|
|
182
|
+
export interface Pivot extends BaseSchema {
|
|
182
183
|
pivotType: PivotType;
|
|
183
184
|
firstDate: number;
|
|
184
185
|
secondDate: number;
|
|
@@ -75,7 +75,8 @@ var InvestmentStage;
|
|
|
75
75
|
})(InvestmentStage || (exports.InvestmentStage = InvestmentStage = {}));
|
|
76
76
|
var PivotType;
|
|
77
77
|
(function (PivotType) {
|
|
78
|
-
PivotType["
|
|
78
|
+
PivotType["STRONG_PIVOT"] = "strongPivot";
|
|
79
79
|
PivotType["PIVOT"] = "pivot";
|
|
80
|
+
PivotType["MILESTONE"] = "milestone";
|
|
80
81
|
PivotType["NULL"] = "";
|
|
81
82
|
})(PivotType || (exports.PivotType = PivotType = {}));
|
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, };
|
package/package.json
CHANGED
|
File without changes
|