@brimble/models 1.4.69 → 1.4.71

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.
@@ -1,3 +1,3 @@
1
1
  yarn run v1.22.19
2
2
  $ tsc -p .
3
- Done in 1.91s.
3
+ Done in 2.13s.
package/dist/project.js CHANGED
@@ -67,6 +67,11 @@ const projectSchema = new mongoose_1.Schema({
67
67
  type: Boolean,
68
68
  default: false,
69
69
  },
70
+ passwordEnabled: {
71
+ type: Boolean,
72
+ default: false
73
+ },
74
+ password: String,
70
75
  screenshot: String,
71
76
  lastProcessed: Number,
72
77
  tracking_token: String,
package/dist/team.js CHANGED
@@ -29,7 +29,8 @@ const teamSchema = new mongoose_1.Schema({
29
29
  type: mongoose_1.Schema.Types.ObjectId,
30
30
  required: false,
31
31
  ref: "SubscriptionPlan",
32
- }
32
+ },
33
+ tenant: { type: mongoose_1.Schema.Types.ObjectId, ref: "Tenancy", required: false }
33
34
  }, {
34
35
  timestamps: true,
35
36
  });
@@ -33,6 +33,8 @@ export interface IProject extends Document {
33
33
  logs: Array<ILog>;
34
34
  log: ILog;
35
35
  maintenance: boolean;
36
+ passwordEnabled: boolean;
37
+ password: string;
36
38
  screenshot: string;
37
39
  createdAt: Date;
38
40
  updatedAt: Date;
@@ -1,5 +1,5 @@
1
1
  import { Document } from "mongoose";
2
- import { IMember, IProject, ISubscriptionPlan } from "./";
2
+ import { IMember, IProject, ISubscriptionPlan, ITenancy } from "./";
3
3
  export interface ITeam extends Document {
4
4
  name: string;
5
5
  description: string;
@@ -7,5 +7,6 @@ export interface ITeam extends Document {
7
7
  projects: IProject[];
8
8
  image: string;
9
9
  isCreator: boolean;
10
+ tenant: ITenancy;
10
11
  subscription: ISubscriptionPlan;
11
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "1.4.69",
3
+ "version": "1.4.71",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,5 +21,5 @@
21
21
  "ts-node": "^8.10.2",
22
22
  "typescript": "^4.9.4"
23
23
  },
24
- "gitHead": "81049632116f692d3d721614afa678d71bc8a368"
24
+ "gitHead": "118dc54389ebec39c1549db21d436316dce2df98"
25
25
  }
package/project.ts CHANGED
@@ -68,6 +68,11 @@ const projectSchema = new Schema(
68
68
  type: Boolean,
69
69
  default: false,
70
70
  },
71
+ passwordEnabled: {
72
+ type: Boolean,
73
+ default: false
74
+ },
75
+ password: String,
71
76
  screenshot: String,
72
77
  lastProcessed: Number,
73
78
  tracking_token: String,
package/team.ts CHANGED
@@ -30,7 +30,8 @@ const teamSchema: Schema = new Schema(
30
30
  type: Schema.Types.ObjectId,
31
31
  required: false,
32
32
  ref: "SubscriptionPlan",
33
- }
33
+ },
34
+ tenant: { type: Schema.Types.ObjectId, ref: "Tenancy", required: false }
34
35
  },
35
36
  {
36
37
  timestamps: true,
package/types/project.ts CHANGED
@@ -34,6 +34,8 @@ export interface IProject extends Document {
34
34
  logs: Array<ILog>;
35
35
  log: ILog;
36
36
  maintenance: boolean;
37
+ passwordEnabled: boolean;
38
+ password: string;
37
39
  screenshot: string;
38
40
  createdAt: Date;
39
41
  updatedAt: Date;
package/types/team.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Document } from "mongoose";
2
- import {IMember, IProject, ISubscriptionPlan} from "./";
2
+ import {IMember, IProject, ISubscriptionPlan, ITenancy} from "./";
3
3
 
4
4
  export interface ITeam extends Document {
5
5
  name: string;
@@ -8,5 +8,6 @@ export interface ITeam extends Document {
8
8
  projects: IProject[];
9
9
  image: string;
10
10
  isCreator: boolean;
11
+ tenant: ITenancy;
11
12
  subscription: ISubscriptionPlan;
12
- }
13
+ }