@cool-digital-solutions/interferir-models 1.0.30 → 1.0.31
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.
|
@@ -18,6 +18,7 @@ const likeSchema = new mongoose_1.Schema({
|
|
|
18
18
|
evidence: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Evidence', default: null },
|
|
19
19
|
usecase: { type: mongoose_1.Schema.Types.ObjectId, ref: 'UseCase', default: null },
|
|
20
20
|
problem: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Problem', default: null },
|
|
21
|
+
company: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', default: null },
|
|
21
22
|
type: { type: String, enum: Object.values(like_type_1.LikeContentType) },
|
|
22
23
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
23
24
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
@@ -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 } from './';
|
|
26
|
+
import { IUser, ITheme, IEvidence, IUseCase, IProblem, INews, ICompany } from './';
|
|
27
27
|
import { BaseModel, BaseSchema } from '../config';
|
|
28
28
|
export declare enum LikeContentType {
|
|
29
29
|
LIKE = "like",
|
|
@@ -34,7 +34,8 @@ export declare enum LikeModelType {
|
|
|
34
34
|
THEME = "theme",
|
|
35
35
|
USECASE = "usecase",
|
|
36
36
|
EVIDENCE = "evidence",
|
|
37
|
-
PROBLEM = "problem"
|
|
37
|
+
PROBLEM = "problem",
|
|
38
|
+
COMPANY = "company"
|
|
38
39
|
}
|
|
39
40
|
export interface ILike extends BaseSchema {
|
|
40
41
|
user: Types.ObjectId | IUser;
|
|
@@ -43,6 +44,7 @@ export interface ILike extends BaseSchema {
|
|
|
43
44
|
evidence: Types.ObjectId | IEvidence;
|
|
44
45
|
usecase: Types.ObjectId | IUseCase;
|
|
45
46
|
problem: Types.ObjectId | IProblem;
|
|
47
|
+
company: Types.ObjectId | ICompany;
|
|
46
48
|
type: LikeContentType;
|
|
47
49
|
}
|
|
48
50
|
export interface ILikeModel extends BaseModel<ILike> {
|
package/dist/types/like.type.js
CHANGED