@brimble/models 2.1.5 → 2.1.7

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/member.js CHANGED
@@ -25,6 +25,10 @@ const memberSchema = new mongoose_1.Schema({
25
25
  type: mongoose_1.Schema.Types.ObjectId,
26
26
  ref: "User",
27
27
  },
28
+ featureOnboarded: {
29
+ type: Boolean,
30
+ default: false,
31
+ },
28
32
  permissions: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'MemberPermission' }],
29
33
  }, {
30
34
  timestamps: {
@@ -124,6 +124,10 @@ const projectSchema = new mongoose_1.Schema({
124
124
  type: Boolean,
125
125
  default: false,
126
126
  },
127
+ isPaid: {
128
+ type: Boolean,
129
+ default: false
130
+ },
127
131
  uri: {
128
132
  type: String,
129
133
  default: null,
@@ -9,6 +9,7 @@ export interface IMember extends Document {
9
9
  accepted: boolean;
10
10
  invitedBy: IUser;
11
11
  email: string;
12
+ featureOnboarded: boolean;
12
13
  permissions: IMemberPermission[];
13
14
  createdAt: Date;
14
15
  updatedAt: Date;
@@ -68,4 +68,5 @@ export interface IProject extends Document {
68
68
  billable: boolean;
69
69
  uri?: string;
70
70
  serviceType?: ServiceType;
71
+ isPaid: boolean;
71
72
  }
package/member.ts CHANGED
@@ -26,6 +26,10 @@ const memberSchema: Schema = new Schema(
26
26
  type: Schema.Types.ObjectId,
27
27
  ref: "User",
28
28
  },
29
+ featureOnboarded: {
30
+ type: Boolean,
31
+ default: false,
32
+ },
29
33
  permissions: [{ type: Schema.Types.ObjectId, ref: 'MemberPermission' }],
30
34
  },
31
35
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/project/index.ts CHANGED
@@ -124,6 +124,10 @@ const projectSchema = new Schema(
124
124
  type: Boolean,
125
125
  default: false,
126
126
  },
127
+ isPaid: {
128
+ type: Boolean,
129
+ default: false
130
+ },
127
131
  uri: {
128
132
  type: String,
129
133
  default: null,
package/types/member.ts CHANGED
@@ -10,6 +10,7 @@ export interface IMember extends Document {
10
10
  accepted: boolean;
11
11
  invitedBy: IUser;
12
12
  email: string;
13
+ featureOnboarded: boolean;
13
14
  permissions: IMemberPermission[];
14
15
  createdAt: Date;
15
16
  updatedAt: Date;
@@ -69,4 +69,5 @@ export interface IProject extends Document {
69
69
  billable: boolean;
70
70
  uri?: string;
71
71
  serviceType?: ServiceType;
72
+ isPaid: boolean;
72
73
  }