@hy-capital/api-habit-tracker-types 1.0.68 → 1.0.70
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/frontend-user.d.ts +2 -0
- package/dist/habit.js +3 -3
- package/dist/user-match-rate.d.ts +11 -0
- package/dist/user-match-rate.js +2 -0
- package/package.json +1 -1
- package/src/frontend-user.ts +2 -0
- package/src/habit.ts +3 -3
- package/src/user-match-rate.ts +13 -0
package/dist/frontend-user.d.ts
CHANGED
package/dist/habit.js
CHANGED
@@ -189,7 +189,7 @@ exports.habitTypesByTopicType = {
|
|
189
189
|
},
|
190
190
|
{
|
191
191
|
id: 7,
|
192
|
-
name: 'More than
|
192
|
+
name: 'More than 7 h of sleep',
|
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',
|
@@ -229,7 +229,7 @@ exports.habitTypesByTopicType = {
|
|
229
229
|
},
|
230
230
|
{
|
231
231
|
id: 9,
|
232
|
-
name: 'No caffeine after
|
232
|
+
name: 'No caffeine after 2 pm',
|
233
233
|
description: 'Cut all caffeine - coffee, pre-workout, energy drinks. Water only.',
|
234
234
|
difficulty: 2,
|
235
235
|
topicType: 'Sleep',
|
@@ -373,7 +373,7 @@ exports.habitTypesByTopicType = {
|
|
373
373
|
'Side Hustle': [
|
374
374
|
{
|
375
375
|
id: 16,
|
376
|
-
name: 'Dedicate
|
376
|
+
name: 'Dedicate 2 h to hustle',
|
377
377
|
description: '2 focused hours on your hustle. No distractions, no excuses.',
|
378
378
|
difficulty: 3,
|
379
379
|
topicType: 'Side Hustle',
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { TopicType } from './user-topic';
|
2
|
+
export interface BaseUserMatchRate {
|
3
|
+
match_rate: number;
|
4
|
+
user_id: number;
|
5
|
+
topic_type: TopicType;
|
6
|
+
}
|
7
|
+
export interface DbUserMatchRate extends BaseUserMatchRate {
|
8
|
+
id: number;
|
9
|
+
created_at: string;
|
10
|
+
updated_at: string;
|
11
|
+
}
|
package/package.json
CHANGED
package/src/frontend-user.ts
CHANGED
package/src/habit.ts
CHANGED
@@ -292,7 +292,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
|
|
292
292
|
},
|
293
293
|
{
|
294
294
|
id: 7,
|
295
|
-
name: 'More than
|
295
|
+
name: 'More than 7 h of sleep',
|
296
296
|
description: 'Go to bed and wake up at the same time. No excuses, even on weekends.',
|
297
297
|
difficulty: 2,
|
298
298
|
topicType: 'Sleep',
|
@@ -332,7 +332,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
|
|
332
332
|
},
|
333
333
|
{
|
334
334
|
id: 9,
|
335
|
-
name: 'No caffeine after
|
335
|
+
name: 'No caffeine after 2 pm',
|
336
336
|
description: 'Cut all caffeine - coffee, pre-workout, energy drinks. Water only.',
|
337
337
|
difficulty: 2,
|
338
338
|
topicType: 'Sleep',
|
@@ -476,7 +476,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
|
|
476
476
|
'Side Hustle': [
|
477
477
|
{
|
478
478
|
id: 16,
|
479
|
-
name: 'Dedicate
|
479
|
+
name: 'Dedicate 2 h to hustle',
|
480
480
|
description: '2 focused hours on your hustle. No distractions, no excuses.',
|
481
481
|
difficulty: 3,
|
482
482
|
topicType: 'Side Hustle',
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import {TopicType} from './user-topic';
|
2
|
+
|
3
|
+
export interface BaseUserMatchRate {
|
4
|
+
match_rate: number;
|
5
|
+
user_id: number;
|
6
|
+
topic_type: TopicType;
|
7
|
+
}
|
8
|
+
|
9
|
+
export interface DbUserMatchRate extends BaseUserMatchRate {
|
10
|
+
id: number;
|
11
|
+
created_at: string
|
12
|
+
updated_at: string
|
13
|
+
}
|