@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.
@@ -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: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
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: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
13
+ type: StatType;
13
14
  initial_score: number;
14
15
  current_score: number;
15
16
  potential_score: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hy-capital/api-habit-tracker-types",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "types": "dist/index.d.ts",
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: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
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: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
15
+ type: StatType;
14
16
  initial_score: number;
15
17
  current_score: number;
16
18
  potential_score: number;