joye-backend-utility 5.1.4 → 5.1.6

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.
@@ -49,5 +49,11 @@ const OrganizationUserAttrPermission = new mongoose_1.Schema({
49
49
  required: false,
50
50
  default: false,
51
51
  },
52
+ enableHubUninstallSection: {
53
+ // If set to true then only display "Uninstall" session in Hub card
54
+ type: Boolean,
55
+ required: false,
56
+ default: false,
57
+ },
52
58
  });
53
59
  exports.OrganizationUserAttrPermissionSchema = OrganizationUserAttrPermission;
@@ -162,6 +162,19 @@ const User = new mongoose_1.Schema({
162
162
  default: 0,
163
163
  required: false,
164
164
  },
165
+ lastStreakWeek: {
166
+ type: Number,
167
+ required: false,
168
+ },
169
+ lastCardCycle: {
170
+ // TO identify what was the last cycle
171
+ // Value in 1, 2, 3
172
+ // 1: Mon Wed
173
+ // 2: Tue Thu
174
+ // 3: Wed Fri
175
+ type: Number,
176
+ required: false,
177
+ },
165
178
  });
166
179
  User.index({ botDetails: 1, preferredTimezone: -1 }, {
167
180
  unique: false,
@@ -17,10 +17,12 @@ const userJoyLevelQa = new mongoose_1.Schema({
17
17
  required: true,
18
18
  },
19
19
  question: {
20
+ // If value is "Brew" then it will be treated as entry from brews table
20
21
  type: String,
21
22
  required: true,
22
23
  },
23
24
  answer: {
25
+ // If value is "Brew" then it will be treated as entry from brews table
24
26
  type: String,
25
27
  required: true,
26
28
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joye-backend-utility",
3
- "version": "5.1.4",
3
+ "version": "5.1.6",
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",