joye-backend-utility 5.1.5 → 5.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/schema/user.js +18 -0
- package/dist/schema/userJoyLevelQa.js +2 -2
- package/package.json +1 -1
package/dist/schema/user.js
CHANGED
|
@@ -162,6 +162,24 @@ 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
|
+
required: false,
|
|
176
|
+
type: Number,
|
|
177
|
+
},
|
|
178
|
+
notificationMode: {
|
|
179
|
+
// Value in Dynamic (default), ZenFlow, LightEasy
|
|
180
|
+
required: false,
|
|
181
|
+
type: String,
|
|
182
|
+
},
|
|
165
183
|
});
|
|
166
184
|
User.index({ botDetails: 1, preferredTimezone: -1 }, {
|
|
167
185
|
unique: false,
|
|
@@ -17,12 +17,12 @@ const userJoyLevelQa = new mongoose_1.Schema({
|
|
|
17
17
|
required: true,
|
|
18
18
|
},
|
|
19
19
|
question: {
|
|
20
|
-
// If value
|
|
20
|
+
// If value is "Brew" then it will be treated as entry from brews table
|
|
21
21
|
type: String,
|
|
22
22
|
required: true,
|
|
23
23
|
},
|
|
24
24
|
answer: {
|
|
25
|
-
// If value
|
|
25
|
+
// If value is "Brew" then it will be treated as entry from brews table
|
|
26
26
|
type: String,
|
|
27
27
|
required: true,
|
|
28
28
|
},
|