@hy-capital/api-habit-tracker-types 1.0.52 → 1.0.54

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.d.ts CHANGED
@@ -78,4 +78,8 @@ export interface HabitsResponse {
78
78
  habits: DbHabit[];
79
79
  stats: HabitStats;
80
80
  }
81
+ export declare const habitTimeToClockTime: Record<HabitTime, {
82
+ hour: number;
83
+ minute: number;
84
+ }>;
81
85
  export declare const habitTypesByTopicType: Record<TopicType, HabitType[]>;
package/dist/habit.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.habitTypesByTopicType = exports.ProgramObjectivesByTopic = exports.numberToHabitDayMappings = exports.habitDayToNumberMappings = exports.habitDateFormat = exports.allHabitDays = void 0;
3
+ exports.habitTypesByTopicType = exports.habitTimeToClockTime = exports.ProgramObjectivesByTopic = exports.numberToHabitDayMappings = exports.habitDayToNumberMappings = exports.habitDateFormat = exports.allHabitDays = void 0;
4
4
  exports.allHabitDays = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];
5
5
  exports.habitDateFormat = 'DD-MM-YYYY';
6
6
  exports.habitDayToNumberMappings = {
@@ -43,6 +43,24 @@ exports.ProgramObjectivesByTopic = {
43
43
  'Revenue'
44
44
  ]
45
45
  };
46
+ exports.habitTimeToClockTime = {
47
+ Morning: {
48
+ hour: 9,
49
+ minute: 0
50
+ },
51
+ Afternoon: {
52
+ hour: 15,
53
+ minute: 0
54
+ },
55
+ Evening: {
56
+ hour: 20,
57
+ minute: 0
58
+ },
59
+ Anytime: {
60
+ hour: 21,
61
+ minute: 0
62
+ },
63
+ };
46
64
  exports.habitTypesByTopicType = {
47
65
  Dating: [
48
66
  {
@@ -55,7 +73,7 @@ exports.habitTypesByTopicType = {
55
73
  frequency: 'Daily',
56
74
  minDaysPerWeek: 5,
57
75
  possibleNotificationDescriptions: [
58
- 'You haven\'t talked to new person today. No wonder you\'re single.',
76
+ 'Still up? Sleep now, your future self will thank you.',
59
77
  'Still haven’t talked to anyone new? Your dating life won’t improve itself.',
60
78
  'Another day, no balls to chat. Enjoy being alone forever.',
61
79
  'Your social skills suck. Talk to a person or stay a useless reject.',
@@ -101,7 +119,7 @@ exports.habitTypesByTopicType = {
101
119
  description: 'Take new high-quality photos for dating apps.',
102
120
  difficulty: 2,
103
121
  topicType: 'Dating',
104
- habitTime: 'Anytime',
122
+ habitTime: 'Evening',
105
123
  habitDays: exports.allHabitDays,
106
124
  frequency: 'Daily',
107
125
  minDaysPerWeek: 2,
@@ -118,7 +136,7 @@ exports.habitTypesByTopicType = {
118
136
  description: 'Instead of asking boring questions, make more assumptions about the girl.',
119
137
  difficulty: 2,
120
138
  topicType: 'Dating',
121
- habitTime: 'Anytime',
139
+ habitTime: 'Evening',
122
140
  habitDays: exports.allHabitDays,
123
141
  frequency: 'Daily',
124
142
  minDaysPerWeek: 5,
@@ -135,9 +153,9 @@ exports.habitTypesByTopicType = {
135
153
  {
136
154
  name: 'No screens before bed',
137
155
  description: 'Put the phone away 1 hour before sleep. Read a book or journal instead.',
138
- difficulty: 2,
156
+ difficulty: 3,
139
157
  topicType: 'Sleep',
140
- habitTime: 'Anytime',
158
+ habitTime: 'Evening',
141
159
  habitDays: exports.allHabitDays,
142
160
  frequency: 'Daily',
143
161
  minDaysPerWeek: 7,
@@ -154,7 +172,7 @@ exports.habitTypesByTopicType = {
154
172
  description: 'Go to bed and wake up at the same time. No excuses, even on weekends.',
155
173
  difficulty: 2,
156
174
  topicType: 'Sleep',
157
- habitTime: 'Anytime',
175
+ habitTime: 'Evening',
158
176
  habitDays: exports.allHabitDays,
159
177
  frequency: 'Daily',
160
178
  minDaysPerWeek: 7,
@@ -162,7 +180,7 @@ exports.habitTypesByTopicType = {
162
180
  'Late again? Your sloppy ass is a walking mess.',
163
181
  'No bedtime yet? You’re begging to have a heart attack.',
164
182
  'Your ancestors thrived on routine. Get to bed on time.',
165
- 'Still up? Stroke’s coming for you—sleep now.',
183
+ 'Still up? Sleep now, your future self will thank you.',
166
184
  'Can’t stick to a clock? Good luck winning at anything.'
167
185
  ]
168
186
  },
@@ -171,7 +189,7 @@ exports.habitTypesByTopicType = {
171
189
  description: 'Stop eating at least 2 hours before bed. Let your body rest, not digest.',
172
190
  difficulty: 2,
173
191
  topicType: 'Sleep',
174
- habitTime: 'Anytime',
192
+ habitTime: 'Evening',
175
193
  habitDays: exports.allHabitDays,
176
194
  frequency: 'Daily',
177
195
  minDaysPerWeek: 7,
@@ -188,7 +206,7 @@ exports.habitTypesByTopicType = {
188
206
  description: 'Cut all caffeine - coffee, pre-workout, energy drinks. Water only.',
189
207
  difficulty: 2,
190
208
  topicType: 'Sleep',
191
- habitTime: 'Anytime',
209
+ habitTime: 'Afternoon',
192
210
  habitDays: exports.allHabitDays,
193
211
  frequency: 'Daily',
194
212
  minDaysPerWeek: 7,
@@ -203,9 +221,9 @@ exports.habitTypesByTopicType = {
203
221
  {
204
222
  name: 'Optimize your sleep environment',
205
223
  description: 'Cool room, blackout curtains, clean sheets, no electronics nearby.',
206
- difficulty: 2,
224
+ difficulty: 1,
207
225
  topicType: 'Sleep',
208
- habitTime: 'Anytime',
226
+ habitTime: 'Evening',
209
227
  habitDays: exports.allHabitDays,
210
228
  frequency: 'Daily',
211
229
  minDaysPerWeek: 7,
@@ -229,8 +247,8 @@ exports.habitTypesByTopicType = {
229
247
  frequency: 'Daily',
230
248
  minDaysPerWeek: 7,
231
249
  possibleNotificationDescriptions: [
232
- 'No workout today? You’re a flabby waste.',
233
- 'Still sitting on your ass? Softness doesn’t win.',
250
+ 'No workout today? You’re a fat mess.',
251
+ 'Still sitting on your a*s? Softness doesn’t win.',
234
252
  'Your bloodline was tough. Move or shame them.',
235
253
  'Skipped the gym? Keep being a weak nobody.',
236
254
  'Too lazy to sweat? Enjoy the couch potato life.'
@@ -239,7 +257,7 @@ exports.habitTypesByTopicType = {
239
257
  {
240
258
  name: 'No processed sugars',
241
259
  description: 'Skip added sugars. Stick to natural sources like fruit.',
242
- difficulty: 2,
260
+ difficulty: 3,
243
261
  topicType: 'Fitness',
244
262
  habitTime: 'Anytime',
245
263
  habitDays: exports.allHabitDays,
@@ -275,7 +293,7 @@ exports.habitTypesByTopicType = {
275
293
  description: 'Track weight your weight, so you know you\'re moving in the right direction.',
276
294
  difficulty: 2,
277
295
  topicType: 'Fitness',
278
- habitTime: 'Anytime',
296
+ habitTime: 'Morning',
279
297
  habitDays: exports.allHabitDays,
280
298
  frequency: 'Daily',
281
299
  minDaysPerWeek: 7,
@@ -290,9 +308,9 @@ exports.habitTypesByTopicType = {
290
308
  {
291
309
  name: 'Meal prep',
292
310
  description: 'Cook meals in bulk. No excuses for missing protein or eating junk.',
293
- difficulty: 2,
311
+ difficulty: 3,
294
312
  topicType: 'Fitness',
295
- habitTime: 'Anytime',
313
+ habitTime: 'Evening',
296
314
  habitDays: exports.allHabitDays,
297
315
  frequency: 'Daily',
298
316
  minDaysPerWeek: 2,
@@ -309,9 +327,9 @@ exports.habitTypesByTopicType = {
309
327
  {
310
328
  name: 'Dedicate 2 hours to hustle',
311
329
  description: '2 focused hours on your hustle. No distractions, no excuses.',
312
- difficulty: 2,
330
+ difficulty: 3,
313
331
  topicType: 'Side Hustle',
314
- habitTime: 'Anytime',
332
+ habitTime: 'Morning',
315
333
  habitDays: exports.allHabitDays,
316
334
  frequency: 'Daily',
317
335
  minDaysPerWeek: 7,
@@ -319,7 +337,7 @@ exports.habitTypesByTopicType = {
319
337
  'No hustle time today? You’re a broke-ass joke.',
320
338
  'Skipped your 2 hours? Keep begging for scraps.',
321
339
  'Your future self’s rich. Put in the work now.',
322
- 'Distracted again? Retire broke at 80. Take action now.',
340
+ 'Distracted again? Retire broke at 80. Or take action now.',
323
341
  'Too soft for focus? Die with regrets, loser.'
324
342
  ]
325
343
  },
@@ -328,7 +346,7 @@ exports.habitTypesByTopicType = {
328
346
  description: 'Contact potential clients or partners.',
329
347
  difficulty: 2,
330
348
  topicType: 'Side Hustle',
331
- habitTime: 'Anytime',
349
+ habitTime: 'Afternoon',
332
350
  habitDays: exports.allHabitDays,
333
351
  frequency: 'Daily',
334
352
  minDaysPerWeek: 3,
@@ -345,7 +363,7 @@ exports.habitTypesByTopicType = {
345
363
  description: 'Social media post, blog, tweet, vlog or message someone.',
346
364
  difficulty: 2,
347
365
  topicType: 'Side Hustle',
348
- habitTime: 'Anytime',
366
+ habitTime: 'Evening',
349
367
  habitDays: exports.allHabitDays,
350
368
  frequency: 'Daily',
351
369
  minDaysPerWeek: 7,
@@ -360,9 +378,9 @@ exports.habitTypesByTopicType = {
360
378
  {
361
379
  name: 'Get real feedback',
362
380
  description: 'Ask a customer or friend what they’d change about your hustle.',
363
- difficulty: 2,
381
+ difficulty: 3,
364
382
  topicType: 'Side Hustle',
365
- habitTime: 'Anytime',
383
+ habitTime: 'Evening',
366
384
  habitDays: exports.allHabitDays,
367
385
  frequency: 'Daily',
368
386
  minDaysPerWeek: 2,
@@ -377,7 +395,7 @@ exports.habitTypesByTopicType = {
377
395
  {
378
396
  name: 'Study competitors',
379
397
  description: 'Analyze what your rivals are doing, see what works, what not.',
380
- difficulty: 2,
398
+ difficulty: 3,
381
399
  topicType: 'Side Hustle',
382
400
  habitTime: 'Anytime',
383
401
  habitDays: exports.allHabitDays,
@@ -387,7 +405,7 @@ exports.habitTypesByTopicType = {
387
405
  'No competitor check? They’re crushing you blind.',
388
406
  'Skipped studying? You’re a sitting duck, wake up.',
389
407
  'Your future self outsmarts them. Scope rivals now.',
390
- 'Too lazy to spy? Regrets will bury you broke.',
408
+ 'Too lazy to research? Regrets will bury you broke.',
391
409
  'Not watching them? They’ll bury you. Lock in today.'
392
410
  ]
393
411
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hy-capital/api-habit-tracker-types",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "types": "dist/index.d.ts",
package/src/habit.ts CHANGED
@@ -130,6 +130,25 @@ export interface HabitsResponse {
130
130
  stats: HabitStats;
131
131
  }
132
132
 
133
+ export const habitTimeToClockTime: Record<HabitTime, { hour: number, minute: number }> = {
134
+ Morning: {
135
+ hour: 9,
136
+ minute: 0
137
+ },
138
+ Afternoon: {
139
+ hour: 15,
140
+ minute: 0
141
+ },
142
+ Evening: {
143
+ hour: 20,
144
+ minute: 0
145
+ },
146
+ Anytime: {
147
+ hour: 21,
148
+ minute: 0
149
+ },
150
+ };
151
+
133
152
  export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
134
153
  Dating: [
135
154
  {
@@ -142,7 +161,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
142
161
  frequency: 'Daily',
143
162
  minDaysPerWeek: 5,
144
163
  possibleNotificationDescriptions: [
145
- 'You haven\'t talked to new person today. No wonder you\'re single.',
164
+ 'Still up? Sleep now, your future self will thank you.',
146
165
  'Still haven’t talked to anyone new? Your dating life won’t improve itself.',
147
166
  'Another day, no balls to chat. Enjoy being alone forever.',
148
167
  'Your social skills suck. Talk to a person or stay a useless reject.',
@@ -188,7 +207,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
188
207
  description: 'Take new high-quality photos for dating apps.',
189
208
  difficulty: 2,
190
209
  topicType: 'Dating',
191
- habitTime: 'Anytime',
210
+ habitTime: 'Evening',
192
211
  habitDays: allHabitDays,
193
212
  frequency: 'Daily',
194
213
  minDaysPerWeek: 2,
@@ -205,7 +224,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
205
224
  description: 'Instead of asking boring questions, make more assumptions about the girl.',
206
225
  difficulty: 2,
207
226
  topicType: 'Dating',
208
- habitTime: 'Anytime',
227
+ habitTime: 'Evening',
209
228
  habitDays: allHabitDays,
210
229
  frequency: 'Daily',
211
230
  minDaysPerWeek: 5,
@@ -222,9 +241,9 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
222
241
  {
223
242
  name: 'No screens before bed',
224
243
  description: 'Put the phone away 1 hour before sleep. Read a book or journal instead.',
225
- difficulty: 2,
244
+ difficulty: 3,
226
245
  topicType: 'Sleep',
227
- habitTime: 'Anytime',
246
+ habitTime: 'Evening',
228
247
  habitDays: allHabitDays,
229
248
  frequency: 'Daily',
230
249
  minDaysPerWeek: 7,
@@ -241,7 +260,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
241
260
  description: 'Go to bed and wake up at the same time. No excuses, even on weekends.',
242
261
  difficulty: 2,
243
262
  topicType: 'Sleep',
244
- habitTime: 'Anytime',
263
+ habitTime: 'Evening',
245
264
  habitDays: allHabitDays,
246
265
  frequency: 'Daily',
247
266
  minDaysPerWeek: 7,
@@ -249,7 +268,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
249
268
  'Late again? Your sloppy ass is a walking mess.',
250
269
  'No bedtime yet? You’re begging to have a heart attack.',
251
270
  'Your ancestors thrived on routine. Get to bed on time.',
252
- 'Still up? Stroke’s coming for you—sleep now.',
271
+ 'Still up? Sleep now, your future self will thank you.',
253
272
  'Can’t stick to a clock? Good luck winning at anything.'
254
273
  ]
255
274
  },
@@ -258,7 +277,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
258
277
  description: 'Stop eating at least 2 hours before bed. Let your body rest, not digest.',
259
278
  difficulty: 2,
260
279
  topicType: 'Sleep',
261
- habitTime: 'Anytime',
280
+ habitTime: 'Evening',
262
281
  habitDays: allHabitDays,
263
282
  frequency: 'Daily',
264
283
  minDaysPerWeek: 7,
@@ -275,7 +294,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
275
294
  description: 'Cut all caffeine - coffee, pre-workout, energy drinks. Water only.',
276
295
  difficulty: 2,
277
296
  topicType: 'Sleep',
278
- habitTime: 'Anytime',
297
+ habitTime: 'Afternoon',
279
298
  habitDays: allHabitDays,
280
299
  frequency: 'Daily',
281
300
  minDaysPerWeek: 7,
@@ -290,9 +309,9 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
290
309
  {
291
310
  name: 'Optimize your sleep environment',
292
311
  description: 'Cool room, blackout curtains, clean sheets, no electronics nearby.',
293
- difficulty: 2,
312
+ difficulty: 1,
294
313
  topicType: 'Sleep',
295
- habitTime: 'Anytime',
314
+ habitTime: 'Evening',
296
315
  habitDays: allHabitDays,
297
316
  frequency: 'Daily',
298
317
  minDaysPerWeek: 7,
@@ -316,8 +335,8 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
316
335
  frequency: 'Daily',
317
336
  minDaysPerWeek: 7,
318
337
  possibleNotificationDescriptions: [
319
- 'No workout today? You’re a flabby waste.',
320
- 'Still sitting on your ass? Softness doesn’t win.',
338
+ 'No workout today? You’re a fat mess.',
339
+ 'Still sitting on your a*s? Softness doesn’t win.',
321
340
  'Your bloodline was tough. Move or shame them.',
322
341
  'Skipped the gym? Keep being a weak nobody.',
323
342
  'Too lazy to sweat? Enjoy the couch potato life.'
@@ -326,7 +345,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
326
345
  {
327
346
  name: 'No processed sugars',
328
347
  description: 'Skip added sugars. Stick to natural sources like fruit.',
329
- difficulty: 2,
348
+ difficulty: 3,
330
349
  topicType: 'Fitness',
331
350
  habitTime: 'Anytime',
332
351
  habitDays: allHabitDays,
@@ -362,7 +381,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
362
381
  description: 'Track weight your weight, so you know you\'re moving in the right direction.',
363
382
  difficulty: 2,
364
383
  topicType: 'Fitness',
365
- habitTime: 'Anytime',
384
+ habitTime: 'Morning',
366
385
  habitDays: allHabitDays,
367
386
  frequency: 'Daily',
368
387
  minDaysPerWeek: 7,
@@ -377,9 +396,9 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
377
396
  {
378
397
  name: 'Meal prep',
379
398
  description: 'Cook meals in bulk. No excuses for missing protein or eating junk.',
380
- difficulty: 2,
399
+ difficulty: 3,
381
400
  topicType: 'Fitness',
382
- habitTime: 'Anytime',
401
+ habitTime: 'Evening',
383
402
  habitDays: allHabitDays,
384
403
  frequency: 'Daily',
385
404
  minDaysPerWeek: 2,
@@ -396,9 +415,9 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
396
415
  {
397
416
  name: 'Dedicate 2 hours to hustle',
398
417
  description: '2 focused hours on your hustle. No distractions, no excuses.',
399
- difficulty: 2,
418
+ difficulty: 3,
400
419
  topicType: 'Side Hustle',
401
- habitTime: 'Anytime',
420
+ habitTime: 'Morning',
402
421
  habitDays: allHabitDays,
403
422
  frequency: 'Daily',
404
423
  minDaysPerWeek: 7,
@@ -406,7 +425,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
406
425
  'No hustle time today? You’re a broke-ass joke.',
407
426
  'Skipped your 2 hours? Keep begging for scraps.',
408
427
  'Your future self’s rich. Put in the work now.',
409
- 'Distracted again? Retire broke at 80. Take action now.',
428
+ 'Distracted again? Retire broke at 80. Or take action now.',
410
429
  'Too soft for focus? Die with regrets, loser.'
411
430
  ]
412
431
  },
@@ -415,7 +434,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
415
434
  description: 'Contact potential clients or partners.',
416
435
  difficulty: 2,
417
436
  topicType: 'Side Hustle',
418
- habitTime: 'Anytime',
437
+ habitTime: 'Afternoon',
419
438
  habitDays: allHabitDays,
420
439
  frequency: 'Daily',
421
440
  minDaysPerWeek: 3,
@@ -432,7 +451,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
432
451
  description: 'Social media post, blog, tweet, vlog or message someone.',
433
452
  difficulty: 2,
434
453
  topicType: 'Side Hustle',
435
- habitTime: 'Anytime',
454
+ habitTime: 'Evening',
436
455
  habitDays: allHabitDays,
437
456
  frequency: 'Daily',
438
457
  minDaysPerWeek: 7,
@@ -447,9 +466,9 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
447
466
  {
448
467
  name: 'Get real feedback',
449
468
  description: 'Ask a customer or friend what they’d change about your hustle.',
450
- difficulty: 2,
469
+ difficulty: 3,
451
470
  topicType: 'Side Hustle',
452
- habitTime: 'Anytime',
471
+ habitTime: 'Evening',
453
472
  habitDays: allHabitDays,
454
473
  frequency: 'Daily',
455
474
  minDaysPerWeek: 2,
@@ -464,7 +483,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
464
483
  {
465
484
  name: 'Study competitors',
466
485
  description: 'Analyze what your rivals are doing, see what works, what not.',
467
- difficulty: 2,
486
+ difficulty: 3,
468
487
  topicType: 'Side Hustle',
469
488
  habitTime: 'Anytime',
470
489
  habitDays: allHabitDays,
@@ -474,7 +493,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
474
493
  'No competitor check? They’re crushing you blind.',
475
494
  'Skipped studying? You’re a sitting duck, wake up.',
476
495
  'Your future self outsmarts them. Scope rivals now.',
477
- 'Too lazy to spy? Regrets will bury you broke.',
496
+ 'Too lazy to research? Regrets will bury you broke.',
478
497
  'Not watching them? They’ll bury you. Lock in today.'
479
498
  ]
480
499
  }