@hy-capital/api-habit-tracker-types 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/user-stat.d.ts +3 -2
- package/package.json +1 -1
- package/src/user-stat.ts +4 -2
package/dist/user-stat.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
+
export type StatType = 'Sleep' | 'Diet' | 'Exercise' | 'Calmness' | 'Public speaking' | 'Productivity';
|
1
2
|
export interface DbUserStat {
|
2
3
|
user_id: number;
|
3
|
-
type:
|
4
|
+
type: StatType;
|
4
5
|
initial_score: number;
|
5
6
|
current_score: number;
|
6
7
|
potential_score: number;
|
@@ -9,7 +10,7 @@ export interface DbUserStat {
|
|
9
10
|
}
|
10
11
|
export interface UpsertUserStatRequest {
|
11
12
|
user_id: number;
|
12
|
-
type:
|
13
|
+
type: StatType;
|
13
14
|
initial_score: number;
|
14
15
|
current_score: number;
|
15
16
|
potential_score: number;
|
package/package.json
CHANGED
package/src/user-stat.ts
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
export type StatType = 'Sleep' | 'Diet' | 'Exercise' | 'Calmness' | 'Public speaking' | 'Productivity';
|
2
|
+
|
1
3
|
export interface DbUserStat {
|
2
4
|
user_id: number;
|
3
|
-
type:
|
5
|
+
type: StatType;
|
4
6
|
initial_score: number;
|
5
7
|
current_score: number;
|
6
8
|
potential_score: number;
|
@@ -10,7 +12,7 @@ export interface DbUserStat {
|
|
10
12
|
|
11
13
|
export interface UpsertUserStatRequest {
|
12
14
|
user_id: number;
|
13
|
-
type:
|
15
|
+
type: StatType;
|
14
16
|
initial_score: number;
|
15
17
|
current_score: number;
|
16
18
|
potential_score: number;
|