@hy-capital/api-habit-tracker-types 1.0.6 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/user-stat.d.ts +16 -0
- package/dist/user-stat.js +2 -0
- package/dist/user.d.ts +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/src/user-stat.ts +17 -0
- package/src/user.ts +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
export interface DbUserStat {
|
2
|
+
user_id: number;
|
3
|
+
type: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
|
4
|
+
initial_score: number;
|
5
|
+
current_score: number;
|
6
|
+
potential_score: number;
|
7
|
+
created_at: string;
|
8
|
+
updated_at: string;
|
9
|
+
}
|
10
|
+
export interface UpsertUserStatRequest {
|
11
|
+
user_id: number;
|
12
|
+
type: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
|
13
|
+
initial_score: number;
|
14
|
+
current_score: number;
|
15
|
+
potential_score: number;
|
16
|
+
}
|
package/dist/user.d.ts
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
export * from './user';
|
1
|
+
export * from './user';
|
2
|
+
export * from './user-stat';
|
package/src/user-stat.ts
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
export interface DbUserStat {
|
2
|
+
user_id: number;
|
3
|
+
type: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
|
4
|
+
initial_score: number;
|
5
|
+
current_score: number;
|
6
|
+
potential_score: number;
|
7
|
+
created_at: string;
|
8
|
+
updated_at: string;
|
9
|
+
}
|
10
|
+
|
11
|
+
export interface UpsertUserStatRequest {
|
12
|
+
user_id: number;
|
13
|
+
type: 'Mental Clarity' | 'Purpose' | 'Discipline' | 'Mindset';
|
14
|
+
initial_score: number;
|
15
|
+
current_score: number;
|
16
|
+
potential_score: number;
|
17
|
+
}
|
package/src/user.ts
CHANGED