@hy-capital/api-habit-tracker-types 1.0.82 → 1.0.84

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/habit.js CHANGED
@@ -51,7 +51,7 @@ exports.habitTimeToClockTime = {
51
51
  minute: 0
52
52
  },
53
53
  Afternoon: {
54
- hour: 15,
54
+ hour: 13,
55
55
  minute: 0
56
56
  },
57
57
  Evening: {
@@ -59,16 +59,16 @@ exports.habitTimeToClockTime = {
59
59
  minute: 0
60
60
  },
61
61
  Anytime: {
62
- hour: 21,
63
- minute: 0
62
+ hour: 9,
63
+ minute: 15
64
64
  },
65
65
  };
66
66
  exports.habitTypesByTopicType = {
67
67
  Dating: [
68
68
  {
69
69
  id: 1,
70
- name: 'Talk to new people',
71
- description: 'No pressure, just talk about whatever, no matter how long or short.',
70
+ name: 'Talk with 1 new person. In real life.',
71
+ description: 'At school, work or on the street. No pressure, simple Hi and few exchanges will work. Just don\'t be creepy.',
72
72
  difficulty: 3,
73
73
  topicType: 'Dating',
74
74
  habitTime: 'Anytime',
@@ -87,8 +87,8 @@ exports.habitTypesByTopicType = {
87
87
  },
88
88
  {
89
89
  id: 2,
90
- name: 'Ask for date/social media',
91
- description: 'Turn a conversation into an opportunity. Get her contact or set up a date.',
90
+ name: 'Ask for a date',
91
+ description: 'Turn a conversation into an opportunity, set up a date. Even if it fails, it is numbers game after all.',
92
92
  difficulty: 3,
93
93
  topicType: 'Dating',
94
94
  habitTime: 'Anytime',
@@ -108,7 +108,7 @@ exports.habitTypesByTopicType = {
108
108
  {
109
109
  id: 3,
110
110
  name: 'No Fap',
111
- description: 'Cut the porn and reclaim your energy, focus, and discipline.',
111
+ description: 'If you don’t fap, you will feel more confident around women. For real.',
112
112
  difficulty: 3,
113
113
  topicType: 'Dating',
114
114
  habitTime: 'Evening',
@@ -128,7 +128,7 @@ exports.habitTypesByTopicType = {
128
128
  {
129
129
  id: 4,
130
130
  name: 'Record yourself talking',
131
- description: 'Practice recording yourself speaking to improve confidence and communication skills.',
131
+ description: 'Just talk about how did your day go and what did you do. THen analyze what look weird about you.',
132
132
  difficulty: 2,
133
133
  topicType: 'Dating',
134
134
  habitTime: 'Evening',
@@ -148,7 +148,7 @@ exports.habitTypesByTopicType = {
148
148
  {
149
149
  id: 5,
150
150
  name: 'Send messages',
151
- description: 'Instead of asking boring questions, make more assumptions about the girl.',
151
+ description: 'On social media, Tinder, etc. instead of asking boring questions, make more assumptions.',
152
152
  difficulty: 2,
153
153
  topicType: 'Dating',
154
154
  habitTime: 'Evening',
@@ -189,7 +189,7 @@ exports.habitTypesByTopicType = {
189
189
  },
190
190
  {
191
191
  id: 7,
192
- name: 'More than 7 h of sleep',
192
+ name: 'Wake up at 8 AM or earlier',
193
193
  description: 'Go to bed and wake up at the same time. No excuses, even on weekends.',
194
194
  difficulty: 2,
195
195
  topicType: 'Sleep',
@@ -197,14 +197,14 @@ exports.habitTypesByTopicType = {
197
197
  habitDays: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],
198
198
  minDaysPerWeek: 5,
199
199
  possibleNotificationDescriptions: [
200
- 'LATE again?... You’re a walking DISASTER. ⏰',
201
- 'NO BEDTIME yet?... Tomorrow’s already TRASHED. 💔',
202
- 'Your brain’s BEGGING for routine... Start winding down NOW. 🛏️',
203
- 'Tomorrow’s edge starts TONIGHT... Bedtime’s calling. 💤',
204
- 'Stat: 30% focus boost from 7+ hours of sleep... FACT. ',
205
- 'Stat: 40% less fatigue with consistent bedtime... Lock it in. 💤',
206
- 'Challenge: Set a bedtime alarm for 10 PM. Youre DISCIPLINED. 🏆',
207
- 'Challenge: Sleep more than 7 hours for 3 nights straight. Future yous UNSTOPPABLE. 💤'
200
+ 'Set that alarm for 8 AM... Tomorrow\'s WINNERS rise early. ⏰',
201
+ 'Early to bed = early to RISE... Set yourself up for VICTORY. 🌅',
202
+ 'Tomorrow starts TONIGHT... Prep for your 8 AM wake-up NOW. 💤',
203
+ 'Morning EXCELLENCE begins with evening DISCIPLINE... 8 AM comes fast. ',
204
+ 'Stat: 25% more productive day from rising before 8 AM... FACT. 📈',
205
+ 'Stat: Early risers are 30% more likely to achieve goals... Be THAT guy. 🏆',
206
+ 'Challenge: 5 days straight up before 8 AM. You\'re BUILT DIFFERENT. 💪',
207
+ 'Challenge: Wake at 8 AM without hitting snooze. Future you\'s UNSTOPPABLE. '
208
208
  ]
209
209
  },
210
210
  {
@@ -217,14 +217,14 @@ exports.habitTypesByTopicType = {
217
217
  habitDays: exports.allHabitDays,
218
218
  minDaysPerWeek: 7,
219
219
  possibleNotificationDescriptions: [
220
- 'Munching LATE?... Enjoy that BLOATED gut. 🤰',
221
- 'Snacking before bed?... Kiss your gains GOODBYE. 🐷',
222
- 'You’re above the MUNCHIES... Skip it, king. 🍽️',
223
- 'Future you is CUT... No late snacks tonight. 💪',
224
- 'Stat: 20% better sleep without late-night eating... FACT. 🍽️',
225
- 'Stat: 15% metabolism boost from fasting before bed... Level UP. 💪',
226
- 'Challenge: No food after 8 PM. You’re DISCIPLINED. 🏆',
227
- 'Challenge: Drink water instead of snacking. Future you’s LEAN. 💧'
220
+ 'Neck feeling tight? Time to unwind with your evening stretch. 🧘',
221
+ 'Stretch sequence time! Your muscles will thank you tomorrow. 💪',
222
+ 'Stat: 15% better sleep quality with pre-bed stretching... FACT. 😴',
223
+ 'Challenge: Full-body stretch in 5 minutes. Your future mobility thanks you. 🏆',
224
+ 'Tight muscles = poor recovery. Loosen up, king. 👑',
225
+ 'Stat: 20% less morning stiffness with evening stretching... Level UP. 🌅',
226
+ 'Your evening stretch awaits. Neck to calves, don\'t skip. 🔄',
227
+ 'Body maintenance time. Stretch from top to bottom for optimal recovery. 📈'
228
228
  ]
229
229
  },
230
230
  {
@@ -331,8 +331,8 @@ exports.habitTypesByTopicType = {
331
331
  },
332
332
  {
333
333
  id: 14,
334
- name: 'Weigh yourself regularly',
335
- description: 'Track your weight to know you’re moving in the right direction.',
334
+ name: 'Weigh yourself',
335
+ description: 'No more coping. Track your weight to know if you’re moving in the right direction.',
336
336
  difficulty: 2,
337
337
  topicType: 'Fitness',
338
338
  habitTime: 'Morning',
@@ -1,6 +1,7 @@
1
1
  import { IdAndTimeStamps } from './common';
2
2
  export interface BaseUserDailyPledge {
3
3
  user_id: number;
4
+ completed: boolean;
4
5
  date: string;
5
6
  }
6
7
  export interface DbUserDailyPledge extends BaseUserDailyPledge, IdAndTimeStamps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hy-capital/api-habit-tracker-types",
3
- "version": "1.0.82",
3
+ "version": "1.0.84",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "types": "dist/index.d.ts",
package/src/habit.ts CHANGED
@@ -147,7 +147,7 @@ export const habitTimeToClockTime: Record<HabitTime, { hour: number, minute: num
147
147
  minute: 0
148
148
  },
149
149
  Afternoon: {
150
- hour: 15,
150
+ hour: 13,
151
151
  minute: 0
152
152
  },
153
153
  Evening: {
@@ -155,8 +155,8 @@ export const habitTimeToClockTime: Record<HabitTime, { hour: number, minute: num
155
155
  minute: 0
156
156
  },
157
157
  Anytime: {
158
- hour: 21,
159
- minute: 0
158
+ hour: 9,
159
+ minute: 15
160
160
  },
161
161
  };
162
162
 
@@ -164,8 +164,8 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
164
164
  Dating: [
165
165
  {
166
166
  id: 1,
167
- name: 'Talk to new people',
168
- description: 'No pressure, just talk about whatever, no matter how long or short.',
167
+ name: 'Talk with 1 new person. In real life.',
168
+ description: 'At school, work or on the street. No pressure, simple Hi and few exchanges will work. Just don\'t be creepy.',
169
169
  difficulty: 3,
170
170
  topicType: 'Dating',
171
171
  habitTime: 'Anytime',
@@ -184,8 +184,8 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
184
184
  },
185
185
  {
186
186
  id: 2,
187
- name: 'Ask for date/social media',
188
- description: 'Turn a conversation into an opportunity. Get her contact or set up a date.',
187
+ name: 'Ask for a date',
188
+ description: 'Turn a conversation into an opportunity, set up a date. Even if it fails, it is numbers game after all.',
189
189
  difficulty: 3,
190
190
  topicType: 'Dating',
191
191
  habitTime: 'Anytime',
@@ -205,7 +205,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
205
205
  {
206
206
  id: 3,
207
207
  name: 'No Fap',
208
- description: 'Cut the porn and reclaim your energy, focus, and discipline.',
208
+ description: 'If you don’t fap, you will feel more confident around women. For real.',
209
209
  difficulty: 3,
210
210
  topicType: 'Dating',
211
211
  habitTime: 'Evening',
@@ -225,7 +225,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
225
225
  {
226
226
  id: 4,
227
227
  name: 'Record yourself talking',
228
- description: 'Practice recording yourself speaking to improve confidence and communication skills.',
228
+ description: 'Just talk about how did your day go and what did you do. THen analyze what look weird about you.',
229
229
  difficulty: 2,
230
230
  topicType: 'Dating',
231
231
  habitTime: 'Evening',
@@ -245,7 +245,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
245
245
  {
246
246
  id: 5,
247
247
  name: 'Send messages',
248
- description: 'Instead of asking boring questions, make more assumptions about the girl.',
248
+ description: 'On social media, Tinder, etc. instead of asking boring questions, make more assumptions.',
249
249
  difficulty: 2,
250
250
  topicType: 'Dating',
251
251
  habitTime: 'Evening',
@@ -286,7 +286,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
286
286
  },
287
287
  {
288
288
  id: 7,
289
- name: 'More than 7 h of sleep',
289
+ name: 'Wake up at 8 AM or earlier',
290
290
  description: 'Go to bed and wake up at the same time. No excuses, even on weekends.',
291
291
  difficulty: 2,
292
292
  topicType: 'Sleep',
@@ -294,14 +294,14 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
294
294
  habitDays: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],
295
295
  minDaysPerWeek: 5,
296
296
  possibleNotificationDescriptions: [
297
- 'LATE again?... You’re a walking DISASTER. ⏰',
298
- 'NO BEDTIME yet?... Tomorrow’s already TRASHED. 💔',
299
- 'Your brain’s BEGGING for routine... Start winding down NOW. 🛏️',
300
- 'Tomorrow’s edge starts TONIGHT... Bedtime’s calling. 💤',
301
- 'Stat: 30% focus boost from 7+ hours of sleep... FACT. ',
302
- 'Stat: 40% less fatigue with consistent bedtime... Lock it in. 💤',
303
- 'Challenge: Set a bedtime alarm for 10 PM. Youre DISCIPLINED. 🏆',
304
- 'Challenge: Sleep more than 7 hours for 3 nights straight. Future yous UNSTOPPABLE. 💤'
297
+ 'Set that alarm for 8 AM... Tomorrow\'s WINNERS rise early. ⏰',
298
+ 'Early to bed = early to RISE... Set yourself up for VICTORY. 🌅',
299
+ 'Tomorrow starts TONIGHT... Prep for your 8 AM wake-up NOW. 💤',
300
+ 'Morning EXCELLENCE begins with evening DISCIPLINE... 8 AM comes fast. ',
301
+ 'Stat: 25% more productive day from rising before 8 AM... FACT. 📈',
302
+ 'Stat: Early risers are 30% more likely to achieve goals... Be THAT guy. 🏆',
303
+ 'Challenge: 5 days straight up before 8 AM. You\'re BUILT DIFFERENT. 💪',
304
+ 'Challenge: Wake at 8 AM without hitting snooze. Future you\'s UNSTOPPABLE. '
305
305
  ]
306
306
  },
307
307
  {
@@ -314,14 +314,14 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
314
314
  habitDays: allHabitDays,
315
315
  minDaysPerWeek: 7,
316
316
  possibleNotificationDescriptions: [
317
- 'Munching LATE?... Enjoy that BLOATED gut. 🤰',
318
- 'Snacking before bed?... Kiss your gains GOODBYE. 🐷',
319
- 'You’re above the MUNCHIES... Skip it, king. 🍽️',
320
- 'Future you is CUT... No late snacks tonight. 💪',
321
- 'Stat: 20% better sleep without late-night eating... FACT. 🍽️',
322
- 'Stat: 15% metabolism boost from fasting before bed... Level UP. 💪',
323
- 'Challenge: No food after 8 PM. You’re DISCIPLINED. 🏆',
324
- 'Challenge: Drink water instead of snacking. Future you’s LEAN. 💧'
317
+ 'Neck feeling tight? Time to unwind with your evening stretch. 🧘',
318
+ 'Stretch sequence time! Your muscles will thank you tomorrow. 💪',
319
+ 'Stat: 15% better sleep quality with pre-bed stretching... FACT. 😴',
320
+ 'Challenge: Full-body stretch in 5 minutes. Your future mobility thanks you. 🏆',
321
+ 'Tight muscles = poor recovery. Loosen up, king. 👑',
322
+ 'Stat: 20% less morning stiffness with evening stretching... Level UP. 🌅',
323
+ 'Your evening stretch awaits. Neck to calves, don\'t skip. 🔄',
324
+ 'Body maintenance time. Stretch from top to bottom for optimal recovery. 📈'
325
325
  ]
326
326
  },
327
327
  {
@@ -428,8 +428,8 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
428
428
  },
429
429
  {
430
430
  id: 14,
431
- name: 'Weigh yourself regularly',
432
- description: 'Track your weight to know you’re moving in the right direction.',
431
+ name: 'Weigh yourself',
432
+ description: 'No more coping. Track your weight to know if you’re moving in the right direction.',
433
433
  difficulty: 2,
434
434
  topicType: 'Fitness',
435
435
  habitTime: 'Morning',
@@ -2,6 +2,7 @@ import {IdAndTimeStamps} from './common';
2
2
 
3
3
  export interface BaseUserDailyPledge {
4
4
  user_id: number;
5
+ completed: boolean;
5
6
  date: string; // DD-MM-YYYY
6
7
  }
7
8