@brimble/models 3.8.75 → 3.8.76

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/app-message.ts CHANGED
@@ -7,6 +7,7 @@ const appMessageSchema = new Schema(
7
7
  teamId: { type: Schema.Types.ObjectId, ref: "Team", required: true, index: true },
8
8
  level: { type: String, required: true },
9
9
  message: { type: String, required: true },
10
+ seen: { type: Boolean, default: false, index: true },
10
11
  meta: { type: Schema.Types.Mixed },
11
12
  route: { type: String },
12
13
  type: { type: String, required: true },
@@ -6,6 +6,7 @@ const appMessageSchema = new mongoose_1.Schema({
6
6
  teamId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Team", required: true, index: true },
7
7
  level: { type: String, required: true },
8
8
  message: { type: String, required: true },
9
+ seen: { type: Boolean, default: false, index: true },
9
10
  meta: { type: mongoose_1.Schema.Types.Mixed },
10
11
  route: { type: String },
11
12
  type: { type: String, required: true },
@@ -6,6 +6,7 @@ export interface IAppMessage extends Document {
6
6
  teamId: ITeam;
7
7
  level: string;
8
8
  message: string;
9
+ seen: boolean;
9
10
  meta?: Record<string, any>;
10
11
  route?: string;
11
12
  type: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.8.75",
3
+ "version": "3.8.76",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -7,6 +7,7 @@ export interface IAppMessage extends Document {
7
7
  teamId: ITeam;
8
8
  level: string;
9
9
  message: string;
10
+ seen: boolean;
10
11
  meta?: Record<string, any>;
11
12
  route?: string;
12
13
  type: string;