-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.ts
More file actions
114 lines (104 loc) · 2.03 KB
/
Copy pathtypes.ts
File metadata and controls
114 lines (104 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
export interface User {
id: string;
username: string;
avatarUrl: string;
balance: number;
totalPointsEarned: number;
currentStreak: number;
bestStreak: number;
joinedAt: string;
role: string;
}
export interface Role {
id: string;
name: string;
emoji: string;
description: string | null;
createdAt: string;
}
export interface UserRole {
id: string;
userId: string;
roleId: string;
assignedAt: string;
}
export interface DailyLog {
id: string;
date: string; // YYYY-MM-DD
userId: string;
wakeTime: string; // HH:MM
studyHours: number;
breakHours: number;
wastedHours: number;
tasksAssigned: number;
tasksCompleted: number;
notes: string;
// Calculated fields
score: number;
breakdown: {
study: number;
tasks: number;
wake: number;
waste: number;
};
}
export interface Reward {
id: string;
name: string;
cost: number;
icon: string;
category: 'food' | 'leisure' | 'upgrade' | 'misc';
isCustom?: boolean;
userId?: string;
}
export interface CustomReward {
id: string;
userId: string;
name: string;
cost: number;
icon: string;
category: 'food' | 'leisure' | 'upgrade' | 'misc';
createdAt: string;
updatedAt: string;
}
export interface Purchase {
id: string;
userId: string;
rewardId: string;
rewardName: string;
cost: number;
date: string;
}
export interface NotificationPreferences {
userId: string;
enabled: boolean;
reminderTime: string; // HH:MM format
timezone: string;
createdAt: string;
updatedAt: string;
}
export interface PushSubscription {
id: string;
userId: string;
endpoint: string;
p256dhKey: string;
authKey: string;
userAgent: string | null;
createdAt: string;
updatedAt: string;
}
export enum ViewState {
DASHBOARD = 'DASHBOARD',
LOG = 'LOG',
FRIEND = 'FRIEND',
SHOP = 'SHOP',
PROFILE = 'PROFILE',
AI_COACH = 'AI_COACH',
LEADERBOARD = 'LEADERBOARD',
FEEDBACK = 'FEEDBACK'
}
export interface FeedbackInput {
type: 'bug' | 'feature' | 'other';
title: string;
description: string;
}