@hy-capital/api-habit-tracker-types 1.0.67 → 1.0.69
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.d.ts +1 -1
- package/dist/habit.js +2 -2
- 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.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',
|
@@ -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
@@ -132,7 +132,7 @@ export interface HabitStats {
|
|
132
132
|
};
|
133
133
|
totalHabitsCompleted: number;
|
134
134
|
currentOverallStreak: number;
|
135
|
-
|
135
|
+
doneHabits: {
|
136
136
|
count: number;
|
137
137
|
percentage: number
|
138
138
|
};
|
@@ -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',
|
@@ -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
|
+
}
|