@hy-capital/api-habit-tracker-types 1.0.10 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/frontend-user.d.ts +6 -0
- package/dist/frontend-user.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/user-stat.d.ts +3 -2
- package/package.json +1 -1
- package/src/frontend-user.ts +7 -0
- package/src/index.ts +2 -1
- package/src/user-stat.ts +4 -2
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./user"), exports);
|
18
18
|
__exportStar(require("./user-stat"), exports);
|
19
|
+
__exportStar(require("./frontend-user"), exports);
|
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/index.ts
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;
|