@cool-digital-solutions/interferir-models 1.1.56 → 1.1.58

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.
@@ -154,6 +154,7 @@ const instantResearchSchema = new mongoose_1.Schema({
154
154
  sfTags: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFTag' }],
155
155
  isBriefCompleted: { type: Boolean, default: false },
156
156
  privForUsers: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
157
+ isDuplicate: { type: Boolean, required: true, default: false },
157
158
  createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
158
159
  updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
159
160
  updatedDate: { type: Number, index: -1 },
@@ -13,14 +13,7 @@ const teamSchema = new mongoose_1.Schema({
13
13
  logo: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Image', default: null },
14
14
  plan: { type: String, enum: Object.values(team_type_1.Plan), required: true },
15
15
  maxSize: { type: Number },
16
- // users: [
17
- // {
18
- // user: { type: Schema.Types.ObjectId, ref: 'User' },
19
- // invitationEmail: { type: String },
20
- // role: { type: String, enum: Object.values(UserTeamRole) },
21
- // addedDate: Number,
22
- // },
23
- // ],
16
+ sendedDailyInviteEmailCount: { type: Number },
24
17
  createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
25
18
  updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
26
19
  updatedDate: Number,
@@ -81,6 +81,7 @@ const themeSchema = new mongoose_1.Schema({
81
81
  publishDate: { type: Number, default: 0 },
82
82
  tableOfContents: [{ type: String, default: [] }],
83
83
  editorType: { type: String, enum: ['froala', 'ck-editor'], default: 'froala' },
84
+ isDuplicate: { type: Boolean, required: true, default: false },
84
85
  createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
85
86
  updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
86
87
  updatedDate: { type: Number, index: -1 },
@@ -185,6 +185,7 @@ export interface IInstantResearch extends BaseSchema {
185
185
  foamTrees: FoamTree[];
186
186
  isBriefCompleted: boolean;
187
187
  privForUsers?: Types.ObjectId[];
188
+ isDuplicate?: boolean;
188
189
  }
189
190
  export interface IInstantResearchModel extends BaseModel<IInstantResearch> {
190
191
  }
@@ -35,6 +35,7 @@ export interface ITeam extends BaseSchema {
35
35
  logo: Types.ObjectId | IImage;
36
36
  plan: Plan;
37
37
  maxSize: number;
38
+ sendedDailyInviteEmailCount: number;
38
39
  }
39
40
  export interface ITeamModel extends BaseModel<ITeam> {
40
41
  }
@@ -60,6 +60,7 @@ export interface ITheme extends BaseSchema {
60
60
  publishDate?: number;
61
61
  tableOfContents?: string[];
62
62
  editorType?: 'froala' | 'ck-editor';
63
+ isDuplicate?: boolean;
63
64
  }
64
65
  export interface IThemeModel extends BaseModel<ITheme> {
65
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cool-digital-solutions/interferir-models",
3
- "version": "1.1.56",
3
+ "version": "1.1.58",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"