@hy-capital/api-habit-tracker-types 1.0.20 → 1.0.22
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/frontend-user.d.ts +2 -2
- package/dist/habit.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/user-topic.d.ts +13 -0
- package/package.json +1 -1
- package/src/frontend-user.ts +2 -2
- package/src/habit.ts +3 -3
- package/src/index.ts +1 -1
- package/src/{user-stat.ts → user-topic.ts} +5 -5
- package/dist/user-stat.d.ts +0 -13
- /package/dist/{user-stat.js → user-topic.js} +0 -0
package/dist/frontend-user.d.ts
CHANGED
package/dist/habit.d.ts
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
import {
|
1
|
+
import { TopicType } from './user-topic';
|
2
2
|
export type HabitTime = 'Morning' | 'Afternoon' | 'Evening' | 'Anytime';
|
3
3
|
export type HabitDifficulty = 1 | 2 | 3;
|
4
4
|
export interface HabitType {
|
5
5
|
name: string;
|
6
6
|
habitTime: HabitTime;
|
7
|
-
|
7
|
+
topicType: TopicType;
|
8
8
|
difficulty: HabitDifficulty;
|
9
9
|
description: string;
|
10
10
|
}
|
11
11
|
export interface BaseHabit {
|
12
12
|
user_id: number;
|
13
13
|
name: string;
|
14
|
-
|
14
|
+
topic_type: TopicType;
|
15
15
|
done_days: string[];
|
16
16
|
start_time: string;
|
17
17
|
habit_time: HabitTime;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -15,6 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./user"), exports);
|
18
|
-
__exportStar(require("./user-
|
18
|
+
__exportStar(require("./user-topic"), exports);
|
19
19
|
__exportStar(require("./frontend-user"), exports);
|
20
20
|
__exportStar(require("./habit"), exports);
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export type TopicType = 'Calmness' | 'Diet' | 'Exercise' | 'Productivity' | 'Public speaking' | 'Sleep' | 'Custom';
|
2
|
+
export interface BaseUserTopic {
|
3
|
+
user_id: number;
|
4
|
+
type: TopicType;
|
5
|
+
initial_score: number;
|
6
|
+
current_score: number;
|
7
|
+
potential_score: number;
|
8
|
+
}
|
9
|
+
export interface DbUserTopic extends BaseUserTopic {
|
10
|
+
id: number;
|
11
|
+
created_at: string;
|
12
|
+
updated_at: string;
|
13
|
+
}
|
package/package.json
CHANGED
package/src/frontend-user.ts
CHANGED
package/src/habit.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import {TopicType} from './user-topic';
|
2
2
|
|
3
3
|
export type HabitTime = 'Morning' | 'Afternoon' | 'Evening' | 'Anytime';
|
4
4
|
export type HabitDifficulty = 1 | 2 | 3;
|
@@ -6,7 +6,7 @@ export type HabitDifficulty = 1 | 2 | 3;
|
|
6
6
|
export interface HabitType {
|
7
7
|
name: string;
|
8
8
|
habitTime: HabitTime;
|
9
|
-
|
9
|
+
topicType: TopicType;
|
10
10
|
difficulty: HabitDifficulty;
|
11
11
|
description: string;
|
12
12
|
}
|
@@ -14,7 +14,7 @@ export interface HabitType {
|
|
14
14
|
export interface BaseHabit {
|
15
15
|
user_id: number;
|
16
16
|
name: string;
|
17
|
-
|
17
|
+
topic_type: TopicType;
|
18
18
|
done_days: string[];
|
19
19
|
start_time: string;
|
20
20
|
habit_time: HabitTime;
|
package/src/index.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
export type
|
2
|
-
'Calmness' | 'Diet' | 'Exercise' | 'Productivity' | 'Public speaking' | 'Sleep';
|
1
|
+
export type TopicType =
|
2
|
+
'Calmness' | 'Diet' | 'Exercise' | 'Productivity' | 'Public speaking' | 'Sleep' | 'Custom';
|
3
3
|
|
4
|
-
export interface
|
4
|
+
export interface BaseUserTopic {
|
5
5
|
user_id: number;
|
6
|
-
type:
|
6
|
+
type: TopicType;
|
7
7
|
initial_score: number;
|
8
8
|
current_score: number;
|
9
9
|
potential_score: number;
|
10
10
|
}
|
11
11
|
|
12
|
-
export interface
|
12
|
+
export interface DbUserTopic extends BaseUserTopic {
|
13
13
|
id: number;
|
14
14
|
created_at: string;
|
15
15
|
updated_at: string;
|
package/dist/user-stat.d.ts
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
export type StatType = 'Calmness' | 'Diet' | 'Exercise' | 'Productivity' | 'Public speaking' | 'Sleep';
|
2
|
-
export interface BaseUserStat {
|
3
|
-
user_id: number;
|
4
|
-
type: StatType;
|
5
|
-
initial_score: number;
|
6
|
-
current_score: number;
|
7
|
-
potential_score: number;
|
8
|
-
}
|
9
|
-
export interface DbUserStat extends BaseUserStat {
|
10
|
-
id: number;
|
11
|
-
created_at: string;
|
12
|
-
updated_at: string;
|
13
|
-
}
|
File without changes
|