@hy-capital/api-habit-tracker-types 1.0.73 → 1.0.75
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 +1 -5
- package/dist/user.d.ts +0 -2
- package/package.json +1 -1
- package/src/habit.ts +1 -5
- package/src/user.ts +0 -2
package/dist/habit.d.ts
CHANGED
@@ -64,12 +64,8 @@ export interface HabitStats {
|
|
64
64
|
habit: DbHabit | null;
|
65
65
|
count: number;
|
66
66
|
};
|
67
|
-
longestStreak: {
|
68
|
-
habit: DbHabit | null;
|
69
|
-
streak: number;
|
70
|
-
};
|
71
67
|
totalHabitsCompleted: number;
|
72
|
-
|
68
|
+
pledgeStreak: number;
|
73
69
|
doneHabits: {
|
74
70
|
count: number;
|
75
71
|
percentage: number;
|
package/dist/user.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { TopicType } from './user-topic';
|
2
2
|
import { IdAndTimeStamps } from './common';
|
3
3
|
export interface BaseUser {
|
4
|
-
name: string | null;
|
5
4
|
email: string | null;
|
6
5
|
apple_id: string;
|
7
6
|
is_onboarding_done: boolean;
|
@@ -19,7 +18,6 @@ export interface CreateUserRequest extends InputUser {
|
|
19
18
|
}
|
20
19
|
export interface UpdateUserRequest {
|
21
20
|
id: number;
|
22
|
-
name?: string;
|
23
21
|
is_onboarding_done?: boolean;
|
24
22
|
expo_push_token?: string;
|
25
23
|
daily_progress_notification?: string;
|
package/package.json
CHANGED
package/src/habit.ts
CHANGED
@@ -74,12 +74,8 @@ export interface HabitStats {
|
|
74
74
|
habit: DbHabit | null,
|
75
75
|
count: number
|
76
76
|
};
|
77
|
-
longestStreak: {
|
78
|
-
habit: DbHabit | null,
|
79
|
-
streak: number
|
80
|
-
};
|
81
77
|
totalHabitsCompleted: number;
|
82
|
-
|
78
|
+
pledgeStreak: number;
|
83
79
|
doneHabits: {
|
84
80
|
count: number;
|
85
81
|
percentage: number
|
package/src/user.ts
CHANGED
@@ -2,7 +2,6 @@ import {TopicType} from './user-topic';
|
|
2
2
|
import {IdAndTimeStamps} from './common';
|
3
3
|
|
4
4
|
export interface BaseUser {
|
5
|
-
name: string | null;
|
6
5
|
email: string | null;
|
7
6
|
apple_id: string;
|
8
7
|
is_onboarding_done: boolean;
|
@@ -23,7 +22,6 @@ export interface CreateUserRequest extends InputUser {
|
|
23
22
|
|
24
23
|
export interface UpdateUserRequest {
|
25
24
|
id: number;
|
26
|
-
name?: string;
|
27
25
|
is_onboarding_done?: boolean;
|
28
26
|
expo_push_token?: string;
|
29
27
|
daily_progress_notification?: string;
|