joye-backend-utility 5.0.11 → 5.0.12

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.
@@ -36,6 +36,16 @@ const Organization = new mongoose_1.Schema({
36
36
  type: Boolean,
37
37
  required: false,
38
38
  },
39
+ streakPercentage: {
40
+ type: Number,
41
+ default: 10,
42
+ required: false
43
+ },
44
+ streakQualifier: {
45
+ type: Number,
46
+ default: 3,
47
+ required: false,
48
+ },
39
49
  subscriptionEndDate: {
40
50
  type: Number,
41
51
  required: false,
@@ -154,5 +154,10 @@ const User = new mongoose_1.Schema({
154
154
  type: String,
155
155
  required: false,
156
156
  },
157
+ consent: {
158
+ type: Boolean,
159
+ default: false,
160
+ required: false,
161
+ }
157
162
  });
158
163
  exports.UserSchema = User;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joye-backend-utility",
3
- "version": "5.0.11",
3
+ "version": "5.0.12",
4
4
  "description": "Joye backend utility for db functions and common functions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",