@brimble/models 2.1.6 → 2.1.8

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: {
@@ -132,6 +132,14 @@ const projectSchema = new mongoose_1.Schema({
132
132
  type: String,
133
133
  default: null,
134
134
  },
135
+ last_backup_url: {
136
+ type: String,
137
+ default: null,
138
+ },
139
+ last_backup_at: {
140
+ type: Date,
141
+ default: null,
142
+ },
135
143
  }, { timestamps: true });
136
144
  exports.default = (0, mongoose_1.model)("Project", projectSchema);
137
145
  exports.DeletedProject = (0, mongoose_1.model)("DeletedProject", projectSchema);
@@ -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,5 +68,7 @@ export interface IProject extends Document {
68
68
  billable: boolean;
69
69
  uri?: string;
70
70
  serviceType?: ServiceType;
71
+ last_backup_url?: string;
72
+ last_backup_at?: Date;
71
73
  isPaid: boolean;
72
74
  }
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.6",
3
+ "version": "2.1.8",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/project/index.ts CHANGED
@@ -132,6 +132,14 @@ const projectSchema = new Schema(
132
132
  type: String,
133
133
  default: null,
134
134
  },
135
+ last_backup_url: {
136
+ type: String,
137
+ default: null,
138
+ },
139
+ last_backup_at: {
140
+ type: Date,
141
+ default: null,
142
+ },
135
143
  },
136
144
  { timestamps: true },
137
145
  );
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,5 +69,7 @@ export interface IProject extends Document {
69
69
  billable: boolean;
70
70
  uri?: string;
71
71
  serviceType?: ServiceType;
72
+ last_backup_url?: string;
73
+ last_backup_at?: Date;
72
74
  isPaid: boolean;
73
75
  }