-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
160 lines (151 loc) · 5.26 KB
/
types.ts
File metadata and controls
160 lines (151 loc) · 5.26 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
export enum SuggestionStatus {
PENDING = 'pending',
APPROVED = 'approved',
REJECTED = 'rejected'
}
export interface Artist {
id: string;
name: string;
name_sinhala: string;
bio?: string;
songCount?: number;
}
export interface Song {
ID: number;
SongID: string;
SongName: string;
SongNameSinhala: string;
ArtistID: string;
Duration: number;
ReleaseYear: number;
Composer: string;
Lyricist: string;
ViewCount: number;
Lyrics?: string;
LyricsSinhala?: string;
}
export interface SuggestionCreateInput {
title: string;
title_sinhala: string;
artist: string;
artist_sinhala: string;
lyrics: string;
lyrics_sinhala: string;
duration?: number;
year?: number;
composer?: string;
lyricist?: string;
}
export interface Suggestion {
id: number;
title: string;
title_sinhala: string;
artist: string;
artist_sinhala: string;
lyrics: string;
lyrics_sinhala: string;
duration?: number;
year?: number;
composer?: string;
lyricist?: string;
status: SuggestionStatus;
rejection_reason?: string;
created_at: string;
reviewed_at?: string;
}
export interface AdminStats {
pending: number;
approved: number;
rejected: number;
total: number;
}
export interface ApiResponse<T> {
success?: boolean;
status?: number;
code?: string;
message?: string;
data: T;
timestamp?: string;
}
export const MOCK_ARTISTS: Artist[] = [
{ id: "A001", name: "Nanda Malani", name_sinhala: "නන්දා මාලනී", bio: "One of the most honored singers of Sri Lanka.", songCount: 450 },
{ id: "A002", name: "Pandith Amaradeva", name_sinhala: "පණ්ඩිත් අමරදේව", bio: "Widely considered the father of modern Sinhala music.", songCount: 600 },
{ id: "A003", name: "Vijaya Kumaratunga", name_sinhala: "විජය කුමාරතුංග", bio: "Legendary actor and singer known for his deep voice.", songCount: 120 },
{ id: "A004", name: "Amarasiri Peiris", name_sinhala: "අමරසිරි පීරිස්", bio: "Renowned violinist and vocalist with soul-stirring melodies.", songCount: 85 },
{ id: "A005", name: "Neville Fernando", name_sinhala: "නෙවිල් ප්රනාන්දු", bio: "Pioneer of the baila and pop music in Sri Lanka.", songCount: 150 },
{ id: "A006", name: "Victor Ratnayake", name_sinhala: "වික්ටර් රත්නායක", bio: "Creator of 'Sa' concert, a milestone in local music history.", songCount: 300 },
{ id: "A007", name: "Sunil Edirisinghe", name_sinhala: "සුනිල් එදිරිසිංහ", bio: "Known for his clear articulation and classical influence.", songCount: 200 },
{ id: "A008", name: "Gunadasa Kapuge", name_sinhala: "ගුණදාස කපුගේ", bio: "Voice of the masses, blending folk music with deep messages.", songCount: 180 }
];
export const ALL_MOCK_SONGS: Song[] = [
{
ID: 1,
SongID: "S001",
SongName: "Nim Him Sewwa",
SongNameSinhala: "නිම් හිම් සෙව්වා",
ArtistID: "Pandith Amaradeva",
Duration: 245,
ReleaseYear: 1980,
Composer: "Premasiri Khemadasa",
Lyricist: "Ajantha Ranasinghe",
ViewCount: 15000,
Lyrics: "Nim him sewwa ma sasare...\nBanda pem banda ma athare...",
LyricsSinhala: "නිම් හිම් සෙව්වා මා සසරේ...\nබැඳි පෙම් බැන්දා මා අතරේ..."
},
{
ID: 2,
SongID: "S002",
SongName: "Master Sir",
SongNameSinhala: "මාස්ටර් සර්",
ArtistID: "Neville Fernando",
Duration: 210,
ReleaseYear: 1970,
Composer: "N/A",
Lyricist: "N/A",
ViewCount: 45000,
Lyrics: "Master sir mata himi thana...\nDiyawu deiyanta...",
LyricsSinhala: "මාස්ටර් සර් මට හිමි තැන...\nදියාවු දෙවියන්ට..."
},
{
ID: 3,
SongID: "S003",
SongName: "Hanthanata Payana",
SongNameSinhala: "හන්තානට පායන",
ArtistID: "Amarasiri Peiris",
Duration: 280,
ReleaseYear: 1995,
Composer: "Khemadasa",
Lyricist: "N/A",
ViewCount: 120000,
Lyrics: "Hanthanata payana sada...\nLassanai balanna...",
LyricsSinhala: "හන්තානට පායන සඳ...\nලස්සනයි බලන්න..."
},
{
ID: 4,
SongID: "S004",
SongName: "Sanda Tharu Mal",
SongNameSinhala: "සඳ තරු මල්",
ArtistID: "Nanda Malani",
Duration: 190,
ReleaseYear: 1985,
Composer: "Victor Ratnayake",
Lyricist: "Arisen Ahubudu",
ViewCount: 32000,
Lyrics: "Sanda tharu mal mal suwada dige...\nMage hadawatha piri giya wele...",
LyricsSinhala: "සඳ තරු මල් මල් සුවඳ දිගේ...\nමගේ හදවත පිරී ගිය වේලේ..."
},
{
ID: 5,
SongID: "S005",
SongName: "Ganga Addara",
SongNameSinhala: "ගඟ අද්දර",
ArtistID: "Vijaya Kumaratunga",
Duration: 230,
ReleaseYear: 1982,
Composer: "Nimal Mendis",
Lyricist: "Augustus Vinayagaratnam",
ViewCount: 89000,
Lyrics: "Ganga addara ma sitiya...\nObawa balagena...",
LyricsSinhala: "ගඟ අද්දර මා සිටියා...\nඔබව බලාගෙන..."
},
];