-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
43 lines (36 loc) · 868 Bytes
/
types.ts
File metadata and controls
43 lines (36 loc) · 868 Bytes
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
export enum BadgeType {
EARNABLE = 'Earnable',
HIGHLIGHT = 'Highlight',
RETIRED = 'Retired'
}
export type BadgeRarity = 'Common' | 'Uncommon' | 'Rare' | 'Epic' | 'Legendary';
export type BadgeCategory = 'Contribution' | 'Collaboration' | 'Community' | 'Special';
export interface Badge {
id: string;
icon: string;
name: string;
description: string;
howToEarn: string;
type: BadgeType;
rarity: BadgeRarity;
category: BadgeCategory;
tiers?: string[];
tips?: string[];
}
export interface ChatMessage {
role: 'user' | 'model';
text: string;
isThinking?: boolean;
}
export interface AchievementGuide {
id: string;
title: string;
steps: string[];
}
export interface UserStats {
username: string;
avatarUrl: string;
totalStars: number;
mergedPRs: number;
}
export type SortOption = 'name' | 'type' | 'rarity' | 'category';