rhythia-api 181.0.0 → 183.0.0
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/.prettierrc.json +6 -6
- package/api/addCollectionMap.ts +82 -82
- package/api/approveMap.ts +78 -78
- package/api/chartPublicStats.ts +32 -32
- package/api/createBeatmap.ts +168 -156
- package/api/createBeatmapPage.ts +64 -64
- package/api/createClan.ts +81 -81
- package/api/createCollection.ts +58 -58
- package/api/deleteBeatmapPage.ts +77 -72
- package/api/deleteCollection.ts +59 -59
- package/api/deleteCollectionMap.ts +71 -71
- package/api/editAboutMe.ts +91 -91
- package/api/editClan.ts +90 -90
- package/api/editCollection.ts +77 -75
- package/api/editProfile.ts +123 -123
- package/api/getAvatarUploadUrl.ts +85 -85
- package/api/getBadgedUsers.ts +56 -56
- package/api/getBeatmapComments.ts +57 -57
- package/api/getBeatmapPage.ts +106 -106
- package/api/getBeatmapPageById.ts +99 -99
- package/api/getBeatmapStarRating.ts +53 -53
- package/api/getBeatmaps.ts +159 -159
- package/api/getClan.ts +77 -77
- package/api/getCollection.ts +130 -128
- package/api/getCollections.ts +128 -126
- package/api/getLeaderboard.ts +136 -136
- package/api/getMapUploadUrl.ts +93 -93
- package/api/getPassToken.ts +55 -55
- package/api/getProfile.ts +146 -146
- package/api/getPublicStats.ts +180 -180
- package/api/getRawStarRating.ts +57 -57
- package/api/getScore.ts +85 -85
- package/api/getTimestamp.ts +23 -23
- package/api/getUserScores.ts +175 -175
- package/api/nominateMap.ts +82 -69
- package/api/postBeatmapComment.ts +59 -59
- package/api/rankMapsArchive.ts +64 -64
- package/api/searchUsers.ts +56 -56
- package/api/setPasskey.ts +59 -59
- package/api/submitScore.ts +433 -433
- package/api/updateBeatmapPage.ts +229 -229
- package/handleApi.ts +20 -20
- package/index.html +2 -2
- package/index.ts +865 -862
- package/package.json +2 -2
- package/types/database.ts +42 -0
- package/utils/getUserBySession.ts +48 -48
- package/utils/requestUtils.ts +87 -87
- package/utils/security.ts +20 -20
- package/utils/star-calc/index.ts +72 -72
- package/utils/star-calc/osuUtils.ts +53 -53
- package/utils/star-calc/sspmParser.ts +398 -398
- package/utils/star-calc/sspmv1Parser.ts +165 -165
- package/utils/supabase.ts +13 -13
- package/utils/test +4 -4
- package/utils/validateToken.ts +7 -7
- package/vercel.json +12 -12
- package/package-lock.json +0 -8913
package/index.ts
CHANGED
|
@@ -1,1030 +1,1033 @@
|
|
|
1
1
|
import { handleApi } from "./handleApi"
|
|
2
2
|
|
|
3
|
-
// ./api/
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
export const Schema = {
|
|
7
|
-
input: z.strictObject({
|
|
8
|
-
session: z.string(),
|
|
9
|
-
collection: z.number(),
|
|
10
|
-
beatmapPage: z.number(),
|
|
11
|
-
}),
|
|
12
|
-
output: z.object({
|
|
13
|
-
error: z.string().optional(),
|
|
14
|
-
}),
|
|
15
|
-
};*/
|
|
16
|
-
import { Schema as AddCollectionMap } from "./api/addCollectionMap"
|
|
17
|
-
export { Schema as SchemaAddCollectionMap } from "./api/addCollectionMap"
|
|
18
|
-
export const addCollectionMap = handleApi({url:"/api/addCollectionMap",...AddCollectionMap})
|
|
19
|
-
|
|
20
|
-
// ./api/approveMap.ts API
|
|
21
|
-
|
|
22
|
-
/*
|
|
23
|
-
export const Schema = {
|
|
24
|
-
input: z.strictObject({
|
|
25
|
-
session: z.string(),
|
|
26
|
-
mapId: z.number(),
|
|
27
|
-
}),
|
|
28
|
-
output: z.object({
|
|
29
|
-
error: z.string().optional(),
|
|
30
|
-
}),
|
|
31
|
-
};*/
|
|
32
|
-
import { Schema as ApproveMap } from "./api/approveMap"
|
|
33
|
-
export { Schema as SchemaApproveMap } from "./api/approveMap"
|
|
34
|
-
export const approveMap = handleApi({url:"/api/approveMap",...ApproveMap})
|
|
35
|
-
|
|
36
|
-
// ./api/chartPublicStats.ts API
|
|
3
|
+
// ./api/getPassToken.ts API
|
|
37
4
|
|
|
38
5
|
/*
|
|
39
|
-
export const Schema = {
|
|
40
|
-
input: z.strictObject({
|
|
41
|
-
|
|
6
|
+
export const Schema = {
|
|
7
|
+
input: z.strictObject({
|
|
8
|
+
data: z.object({
|
|
9
|
+
email: z.string(),
|
|
10
|
+
passkey: z.string(),
|
|
11
|
+
computerName: z.string(),
|
|
12
|
+
}),
|
|
13
|
+
}),
|
|
14
|
+
output: z.object({
|
|
15
|
+
token: z.string().optional(),
|
|
16
|
+
error: z.string().optional(),
|
|
17
|
+
}),
|
|
42
18
|
};*/
|
|
43
|
-
import { Schema as
|
|
44
|
-
export { Schema as
|
|
45
|
-
export const
|
|
19
|
+
import { Schema as GetPassToken } from "./api/getPassToken"
|
|
20
|
+
export { Schema as SchemaGetPassToken } from "./api/getPassToken"
|
|
21
|
+
export const getPassToken = handleApi({url:"/api/getPassToken",...GetPassToken})
|
|
46
22
|
|
|
47
|
-
// ./api/
|
|
23
|
+
// ./api/getMapUploadUrl.ts API
|
|
48
24
|
|
|
49
25
|
/*
|
|
50
|
-
export const Schema = {
|
|
51
|
-
input: z.strictObject({
|
|
52
|
-
|
|
53
|
-
session: z.string(),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
26
|
+
export const Schema = {
|
|
27
|
+
input: z.strictObject({
|
|
28
|
+
mapName: z.string().optional(),
|
|
29
|
+
session: z.string(),
|
|
30
|
+
contentLength: z.number(),
|
|
31
|
+
contentType: z.string(),
|
|
32
|
+
intrinsicToken: z.string(),
|
|
33
|
+
}),
|
|
34
|
+
output: z.strictObject({
|
|
35
|
+
error: z.string().optional(),
|
|
36
|
+
url: z.string().optional(),
|
|
37
|
+
objectKey: z.string().optional(),
|
|
38
|
+
}),
|
|
60
39
|
};*/
|
|
61
|
-
import { Schema as
|
|
62
|
-
export { Schema as
|
|
63
|
-
export const
|
|
40
|
+
import { Schema as GetMapUploadUrl } from "./api/getMapUploadUrl"
|
|
41
|
+
export { Schema as SchemaGetMapUploadUrl } from "./api/getMapUploadUrl"
|
|
42
|
+
export const getMapUploadUrl = handleApi({url:"/api/getMapUploadUrl",...GetMapUploadUrl})
|
|
64
43
|
|
|
65
|
-
// ./api/
|
|
44
|
+
// ./api/createCollection.ts API
|
|
66
45
|
|
|
67
46
|
/*
|
|
68
|
-
export const Schema = {
|
|
69
|
-
input: z.strictObject({
|
|
70
|
-
session: z.string(),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
id: z.number()
|
|
75
|
-
|
|
47
|
+
export const Schema = {
|
|
48
|
+
input: z.strictObject({
|
|
49
|
+
session: z.string(),
|
|
50
|
+
title: z.string(),
|
|
51
|
+
}),
|
|
52
|
+
output: z.object({
|
|
53
|
+
id: z.number(),
|
|
54
|
+
error: z.string().optional(),
|
|
55
|
+
}),
|
|
76
56
|
};*/
|
|
77
|
-
import { Schema as
|
|
78
|
-
export { Schema as
|
|
79
|
-
export const
|
|
57
|
+
import { Schema as CreateCollection } from "./api/createCollection"
|
|
58
|
+
export { Schema as SchemaCreateCollection } from "./api/createCollection"
|
|
59
|
+
export const createCollection = handleApi({url:"/api/createCollection",...CreateCollection})
|
|
80
60
|
|
|
81
|
-
// ./api/
|
|
61
|
+
// ./api/deleteCollectionMap.ts API
|
|
82
62
|
|
|
83
63
|
/*
|
|
84
|
-
export const Schema = {
|
|
85
|
-
input: z.strictObject({
|
|
86
|
-
session: z.string(),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}),
|
|
90
|
-
output: z.object({
|
|
91
|
-
error: z.string().optional(),
|
|
92
|
-
}),
|
|
64
|
+
export const Schema = {
|
|
65
|
+
input: z.strictObject({
|
|
66
|
+
session: z.string(),
|
|
67
|
+
collection: z.number(),
|
|
68
|
+
beatmapPage: z.number(),
|
|
69
|
+
}),
|
|
70
|
+
output: z.object({
|
|
71
|
+
error: z.string().optional(),
|
|
72
|
+
}),
|
|
93
73
|
};*/
|
|
94
|
-
import { Schema as
|
|
95
|
-
export { Schema as
|
|
96
|
-
export const
|
|
74
|
+
import { Schema as DeleteCollectionMap } from "./api/deleteCollectionMap"
|
|
75
|
+
export { Schema as SchemaDeleteCollectionMap } from "./api/deleteCollectionMap"
|
|
76
|
+
export const deleteCollectionMap = handleApi({url:"/api/deleteCollectionMap",...DeleteCollectionMap})
|
|
97
77
|
|
|
98
|
-
// ./api/
|
|
78
|
+
// ./api/getAvatarUploadUrl.ts API
|
|
99
79
|
|
|
100
80
|
/*
|
|
101
|
-
export const Schema = {
|
|
102
|
-
input: z.strictObject({
|
|
103
|
-
session: z.string(),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
81
|
+
export const Schema = {
|
|
82
|
+
input: z.strictObject({
|
|
83
|
+
session: z.string(),
|
|
84
|
+
contentLength: z.number(),
|
|
85
|
+
contentType: z.string(),
|
|
86
|
+
intrinsicToken: z.string(),
|
|
87
|
+
}),
|
|
88
|
+
output: z.strictObject({
|
|
89
|
+
error: z.string().optional(),
|
|
90
|
+
url: z.string().optional(),
|
|
91
|
+
objectKey: z.string().optional(),
|
|
92
|
+
}),
|
|
110
93
|
};*/
|
|
111
|
-
import { Schema as
|
|
112
|
-
export { Schema as
|
|
113
|
-
export const
|
|
94
|
+
import { Schema as GetAvatarUploadUrl } from "./api/getAvatarUploadUrl"
|
|
95
|
+
export { Schema as SchemaGetAvatarUploadUrl } from "./api/getAvatarUploadUrl"
|
|
96
|
+
export const getAvatarUploadUrl = handleApi({url:"/api/getAvatarUploadUrl",...GetAvatarUploadUrl})
|
|
114
97
|
|
|
115
|
-
// ./api/
|
|
98
|
+
// ./api/approveMap.ts API
|
|
116
99
|
|
|
117
100
|
/*
|
|
118
|
-
export const Schema = {
|
|
119
|
-
input: z.strictObject({
|
|
120
|
-
session: z.string(),
|
|
121
|
-
|
|
122
|
-
}),
|
|
123
|
-
output: z.
|
|
124
|
-
error: z.string().optional(),
|
|
125
|
-
}),
|
|
101
|
+
export const Schema = {
|
|
102
|
+
input: z.strictObject({
|
|
103
|
+
session: z.string(),
|
|
104
|
+
mapId: z.number(),
|
|
105
|
+
}),
|
|
106
|
+
output: z.object({
|
|
107
|
+
error: z.string().optional(),
|
|
108
|
+
}),
|
|
126
109
|
};*/
|
|
127
|
-
import { Schema as
|
|
128
|
-
export { Schema as
|
|
129
|
-
export const
|
|
110
|
+
import { Schema as ApproveMap } from "./api/approveMap"
|
|
111
|
+
export { Schema as SchemaApproveMap } from "./api/approveMap"
|
|
112
|
+
export const approveMap = handleApi({url:"/api/approveMap",...ApproveMap})
|
|
130
113
|
|
|
131
|
-
// ./api/
|
|
114
|
+
// ./api/nominateMap.ts API
|
|
132
115
|
|
|
133
116
|
/*
|
|
134
|
-
export const Schema = {
|
|
135
|
-
input: z.strictObject({
|
|
136
|
-
session: z.string(),
|
|
137
|
-
|
|
138
|
-
}),
|
|
139
|
-
output: z.object({
|
|
140
|
-
error: z.string().optional(),
|
|
141
|
-
}),
|
|
117
|
+
export const Schema = {
|
|
118
|
+
input: z.strictObject({
|
|
119
|
+
session: z.string(),
|
|
120
|
+
mapId: z.number(),
|
|
121
|
+
}),
|
|
122
|
+
output: z.object({
|
|
123
|
+
error: z.string().optional(),
|
|
124
|
+
}),
|
|
142
125
|
};*/
|
|
143
|
-
import { Schema as
|
|
144
|
-
export { Schema as
|
|
145
|
-
export const
|
|
126
|
+
import { Schema as NominateMap } from "./api/nominateMap"
|
|
127
|
+
export { Schema as SchemaNominateMap } from "./api/nominateMap"
|
|
128
|
+
export const nominateMap = handleApi({url:"/api/nominateMap",...NominateMap})
|
|
146
129
|
|
|
147
|
-
// ./api/
|
|
130
|
+
// ./api/createBeatmapPage.ts API
|
|
148
131
|
|
|
149
132
|
/*
|
|
150
|
-
export const Schema = {
|
|
151
|
-
input: z.strictObject({
|
|
152
|
-
session: z.string(),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}),
|
|
133
|
+
export const Schema = {
|
|
134
|
+
input: z.strictObject({
|
|
135
|
+
session: z.string(),
|
|
136
|
+
}),
|
|
137
|
+
output: z.strictObject({
|
|
138
|
+
error: z.string().optional(),
|
|
139
|
+
id: z.number().optional(),
|
|
140
|
+
}),
|
|
159
141
|
};*/
|
|
160
|
-
import { Schema as
|
|
161
|
-
export { Schema as
|
|
162
|
-
export const
|
|
142
|
+
import { Schema as CreateBeatmapPage } from "./api/createBeatmapPage"
|
|
143
|
+
export { Schema as SchemaCreateBeatmapPage } from "./api/createBeatmapPage"
|
|
144
|
+
export const createBeatmapPage = handleApi({url:"/api/createBeatmapPage",...CreateBeatmapPage})
|
|
163
145
|
|
|
164
146
|
// ./api/editAboutMe.ts API
|
|
165
147
|
|
|
166
148
|
/*
|
|
167
|
-
export const Schema = {
|
|
168
|
-
input: z.strictObject({
|
|
169
|
-
session: z.string(),
|
|
170
|
-
data: z.object({
|
|
171
|
-
about_me: z.string().optional(),
|
|
172
|
-
}),
|
|
173
|
-
}),
|
|
174
|
-
output: z.object({
|
|
175
|
-
error: z.string().optional(),
|
|
176
|
-
}),
|
|
149
|
+
export const Schema = {
|
|
150
|
+
input: z.strictObject({
|
|
151
|
+
session: z.string(),
|
|
152
|
+
data: z.object({
|
|
153
|
+
about_me: z.string().optional(),
|
|
154
|
+
}),
|
|
155
|
+
}),
|
|
156
|
+
output: z.object({
|
|
157
|
+
error: z.string().optional(),
|
|
158
|
+
}),
|
|
177
159
|
};*/
|
|
178
160
|
import { Schema as EditAboutMe } from "./api/editAboutMe"
|
|
179
161
|
export { Schema as SchemaEditAboutMe } from "./api/editAboutMe"
|
|
180
162
|
export const editAboutMe = handleApi({url:"/api/editAboutMe",...EditAboutMe})
|
|
181
163
|
|
|
182
|
-
// ./api/
|
|
164
|
+
// ./api/chartPublicStats.ts API
|
|
183
165
|
|
|
184
166
|
/*
|
|
185
|
-
export const Schema = {
|
|
186
|
-
input: z.strictObject({
|
|
187
|
-
|
|
188
|
-
id: z.number(),
|
|
189
|
-
name: z.string(),
|
|
190
|
-
avatar_url: z.string(),
|
|
191
|
-
description: z.string(),
|
|
192
|
-
acronym: z.string(),
|
|
193
|
-
}),
|
|
194
|
-
output: z.object({
|
|
195
|
-
error: z.string().optional(),
|
|
196
|
-
}),
|
|
167
|
+
export const Schema = {
|
|
168
|
+
input: z.strictObject({}),
|
|
169
|
+
output: z.object({}),
|
|
197
170
|
};*/
|
|
198
|
-
import { Schema as
|
|
199
|
-
export { Schema as
|
|
200
|
-
export const
|
|
171
|
+
import { Schema as ChartPublicStats } from "./api/chartPublicStats"
|
|
172
|
+
export { Schema as SchemaChartPublicStats } from "./api/chartPublicStats"
|
|
173
|
+
export const chartPublicStats = handleApi({url:"/api/chartPublicStats",...ChartPublicStats})
|
|
201
174
|
|
|
202
|
-
// ./api/
|
|
175
|
+
// ./api/rankMapsArchive.ts API
|
|
203
176
|
|
|
204
177
|
/*
|
|
205
|
-
export const Schema = {
|
|
206
|
-
input: z.strictObject({
|
|
207
|
-
session: z.string(),
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
error: z.string().optional(),
|
|
214
|
-
}),
|
|
178
|
+
export const Schema = {
|
|
179
|
+
input: z.strictObject({
|
|
180
|
+
session: z.string(),
|
|
181
|
+
mapId: z.number(),
|
|
182
|
+
}),
|
|
183
|
+
output: z.object({
|
|
184
|
+
error: z.string().optional(),
|
|
185
|
+
}),
|
|
215
186
|
};*/
|
|
216
|
-
import { Schema as
|
|
217
|
-
export { Schema as
|
|
218
|
-
export const
|
|
187
|
+
import { Schema as RankMapsArchive } from "./api/rankMapsArchive"
|
|
188
|
+
export { Schema as SchemaRankMapsArchive } from "./api/rankMapsArchive"
|
|
189
|
+
export const rankMapsArchive = handleApi({url:"/api/rankMapsArchive",...RankMapsArchive})
|
|
219
190
|
|
|
220
|
-
// ./api/
|
|
191
|
+
// ./api/getRawStarRating.ts API
|
|
221
192
|
|
|
222
193
|
/*
|
|
223
|
-
export const Schema = {
|
|
224
|
-
input: z.strictObject({
|
|
225
|
-
session: z.string(),
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
194
|
+
export const Schema = {
|
|
195
|
+
input: z.strictObject({
|
|
196
|
+
session: z.string(),
|
|
197
|
+
rawMap: z.string(),
|
|
198
|
+
}),
|
|
199
|
+
output: z.object({
|
|
200
|
+
error: z.string().optional(),
|
|
201
|
+
beatmap: z
|
|
202
|
+
.object({
|
|
203
|
+
starRating: z.number().nullable().optional(),
|
|
204
|
+
})
|
|
205
|
+
.optional(),
|
|
206
|
+
}),
|
|
235
207
|
};*/
|
|
236
|
-
import { Schema as
|
|
237
|
-
export { Schema as
|
|
238
|
-
export const
|
|
208
|
+
import { Schema as GetRawStarRating } from "./api/getRawStarRating"
|
|
209
|
+
export { Schema as SchemaGetRawStarRating } from "./api/getRawStarRating"
|
|
210
|
+
export const getRawStarRating = handleApi({url:"/api/getRawStarRating",...GetRawStarRating})
|
|
239
211
|
|
|
240
|
-
// ./api/
|
|
212
|
+
// ./api/createClan.ts API
|
|
241
213
|
|
|
242
214
|
/*
|
|
243
|
-
export const Schema = {
|
|
244
|
-
input: z.strictObject({
|
|
245
|
-
session: z.string(),
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
url: z.string().optional(),
|
|
253
|
-
objectKey: z.string().optional(),
|
|
254
|
-
}),
|
|
215
|
+
export const Schema = {
|
|
216
|
+
input: z.strictObject({
|
|
217
|
+
session: z.string(),
|
|
218
|
+
name: z.string(),
|
|
219
|
+
acronym: z.string(),
|
|
220
|
+
}),
|
|
221
|
+
output: z.object({
|
|
222
|
+
error: z.string().optional(),
|
|
223
|
+
}),
|
|
255
224
|
};*/
|
|
256
|
-
import { Schema as
|
|
257
|
-
export { Schema as
|
|
258
|
-
export const
|
|
225
|
+
import { Schema as CreateClan } from "./api/createClan"
|
|
226
|
+
export { Schema as SchemaCreateClan } from "./api/createClan"
|
|
227
|
+
export const createClan = handleApi({url:"/api/createClan",...CreateClan})
|
|
259
228
|
|
|
260
|
-
// ./api/
|
|
229
|
+
// ./api/setPasskey.ts API
|
|
261
230
|
|
|
262
231
|
/*
|
|
263
|
-
export const Schema = {
|
|
264
|
-
input: z.strictObject({
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
id: z.number(),
|
|
274
|
-
username: z.string().nullable(),
|
|
275
|
-
})
|
|
276
|
-
)
|
|
277
|
-
.optional(),
|
|
278
|
-
}),
|
|
232
|
+
export const Schema = {
|
|
233
|
+
input: z.strictObject({
|
|
234
|
+
session: z.string(),
|
|
235
|
+
data: z.object({
|
|
236
|
+
passkey: z.string(),
|
|
237
|
+
}),
|
|
238
|
+
}),
|
|
239
|
+
output: z.object({
|
|
240
|
+
error: z.string().optional(),
|
|
241
|
+
}),
|
|
279
242
|
};*/
|
|
280
|
-
import { Schema as
|
|
281
|
-
export { Schema as
|
|
282
|
-
export const
|
|
243
|
+
import { Schema as SetPasskey } from "./api/setPasskey"
|
|
244
|
+
export { Schema as SchemaSetPasskey } from "./api/setPasskey"
|
|
245
|
+
export const setPasskey = handleApi({url:"/api/setPasskey",...SetPasskey})
|
|
283
246
|
|
|
284
|
-
// ./api/
|
|
247
|
+
// ./api/getPublicStats.ts API
|
|
285
248
|
|
|
286
249
|
/*
|
|
287
|
-
export const Schema = {
|
|
288
|
-
input: z.strictObject({
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
250
|
+
export const Schema = {
|
|
251
|
+
input: z.strictObject({}),
|
|
252
|
+
output: z.object({
|
|
253
|
+
profiles: z.number(),
|
|
254
|
+
beatmaps: z.number(),
|
|
255
|
+
scores: z.number(),
|
|
256
|
+
onlineUsers: z.number(),
|
|
257
|
+
countChart: z.array(
|
|
258
|
+
z.object({
|
|
259
|
+
type: z.string(),
|
|
260
|
+
value: z.number(),
|
|
261
|
+
})
|
|
262
|
+
),
|
|
263
|
+
lastBeatmaps: z.array(
|
|
264
|
+
z.object({
|
|
265
|
+
id: z.number().nullable().optional(),
|
|
266
|
+
nominations: z.array(z.number()).nullable().optional(),
|
|
267
|
+
playcount: z.number().nullable().optional(),
|
|
268
|
+
created_at: z.string().nullable().optional(),
|
|
269
|
+
difficulty: z.number().nullable().optional(),
|
|
270
|
+
noteCount: z.number().nullable().optional(),
|
|
271
|
+
length: z.number().nullable().optional(),
|
|
272
|
+
title: z.string().nullable().optional(),
|
|
273
|
+
ranked: z.boolean().nullable().optional(),
|
|
274
|
+
beatmapFile: z.string().nullable().optional(),
|
|
275
|
+
image: z.string().nullable().optional(),
|
|
276
|
+
starRating: z.number().nullable().optional(),
|
|
277
|
+
owner: z.number().nullable().optional(),
|
|
278
|
+
ownerUsername: z.string().nullable().optional(),
|
|
279
|
+
ownerAvatar: z.string().nullable().optional(),
|
|
280
|
+
status: z.string().nullable().optional(),
|
|
281
|
+
})
|
|
282
|
+
),
|
|
283
|
+
topUsers: z.array(
|
|
284
|
+
z.object({
|
|
285
|
+
username: z.string(),
|
|
286
|
+
id: z.number(),
|
|
287
|
+
avatar_url: z.string(),
|
|
288
|
+
skill_points: z.number(),
|
|
289
|
+
})
|
|
290
|
+
),
|
|
291
|
+
lastComments: z.array(
|
|
292
|
+
z.object({
|
|
293
|
+
owner: z.number(),
|
|
294
|
+
content: z.string(),
|
|
295
|
+
username: z.string(),
|
|
296
|
+
beatmapTitle: z.string(),
|
|
297
|
+
beatmapPage: z.number(),
|
|
298
|
+
})
|
|
299
|
+
),
|
|
300
|
+
}),
|
|
307
301
|
};*/
|
|
308
|
-
import { Schema as
|
|
309
|
-
export { Schema as
|
|
310
|
-
export const
|
|
302
|
+
import { Schema as GetPublicStats } from "./api/getPublicStats"
|
|
303
|
+
export { Schema as SchemaGetPublicStats } from "./api/getPublicStats"
|
|
304
|
+
export const getPublicStats = handleApi({url:"/api/getPublicStats",...GetPublicStats})
|
|
311
305
|
|
|
312
|
-
// ./api/
|
|
306
|
+
// ./api/getUserScores.ts API
|
|
313
307
|
|
|
314
308
|
/*
|
|
315
|
-
export const Schema = {
|
|
316
|
-
input: z.strictObject({
|
|
317
|
-
session: z.string(),
|
|
318
|
-
id: z.number(),
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
309
|
+
export const Schema = {
|
|
310
|
+
input: z.strictObject({
|
|
311
|
+
session: z.string(),
|
|
312
|
+
id: z.number(),
|
|
313
|
+
limit: z.number().default(10),
|
|
314
|
+
}),
|
|
315
|
+
output: z.object({
|
|
316
|
+
error: z.string().optional(),
|
|
317
|
+
lastDay: z
|
|
318
|
+
.array(
|
|
319
|
+
z.object({
|
|
320
|
+
awarded_sp: z.number().nullable(),
|
|
321
|
+
beatmapHash: z.string().nullable(),
|
|
322
|
+
created_at: z.string(),
|
|
323
|
+
id: z.number(),
|
|
324
|
+
misses: z.number().nullable(),
|
|
325
|
+
passed: z.boolean().nullable(),
|
|
326
|
+
songId: z.string().nullable(),
|
|
327
|
+
userId: z.number().nullable(),
|
|
328
|
+
beatmapDifficulty: z.number().optional().nullable(),
|
|
329
|
+
beatmapNotes: z.number().optional().nullable(),
|
|
330
|
+
beatmapTitle: z.string().optional().nullable(),
|
|
331
|
+
speed: z.number().optional().nullable(),
|
|
332
|
+
spin: z.boolean().optional().nullable(),
|
|
333
|
+
})
|
|
334
|
+
)
|
|
335
|
+
.optional(),
|
|
336
|
+
top: z
|
|
337
|
+
.array(
|
|
338
|
+
z.object({
|
|
339
|
+
awarded_sp: z.number().nullable(),
|
|
340
|
+
beatmapHash: z.string().nullable(),
|
|
341
|
+
created_at: z.string(),
|
|
342
|
+
id: z.number(),
|
|
343
|
+
misses: z.number().nullable(),
|
|
344
|
+
passed: z.boolean().nullable(),
|
|
345
|
+
rank: z.string().nullable(),
|
|
346
|
+
songId: z.string().nullable(),
|
|
347
|
+
userId: z.number().nullable(),
|
|
348
|
+
beatmapDifficulty: z.number().optional().nullable(),
|
|
349
|
+
beatmapNotes: z.number().optional().nullable(),
|
|
350
|
+
beatmapTitle: z.string().optional().nullable(),
|
|
351
|
+
speed: z.number().optional().nullable(),
|
|
352
|
+
spin: z.boolean().optional().nullable(),
|
|
353
|
+
})
|
|
354
|
+
)
|
|
355
|
+
.optional(),
|
|
356
|
+
stats: z
|
|
357
|
+
.object({
|
|
358
|
+
totalScores: z.number(),
|
|
359
|
+
spinScores: z.number(),
|
|
360
|
+
})
|
|
361
|
+
.optional(),
|
|
362
|
+
}),
|
|
347
363
|
};*/
|
|
348
|
-
import { Schema as
|
|
349
|
-
export { Schema as
|
|
350
|
-
export const
|
|
364
|
+
import { Schema as GetUserScores } from "./api/getUserScores"
|
|
365
|
+
export { Schema as SchemaGetUserScores } from "./api/getUserScores"
|
|
366
|
+
export const getUserScores = handleApi({url:"/api/getUserScores",...GetUserScores})
|
|
351
367
|
|
|
352
|
-
// ./api/
|
|
368
|
+
// ./api/editProfile.ts API
|
|
353
369
|
|
|
354
370
|
/*
|
|
355
|
-
export const Schema = {
|
|
356
|
-
input: z.strictObject({
|
|
357
|
-
session: z.string(),
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
created_at: z.string().nullable().optional(),
|
|
368
|
-
updated_at: z.number().nullable().optional(),
|
|
369
|
-
difficulty: z.number().nullable().optional(),
|
|
370
|
-
noteCount: z.number().nullable().optional(),
|
|
371
|
-
length: z.number().nullable().optional(),
|
|
372
|
-
title: z.string().nullable().optional(),
|
|
373
|
-
ranked: z.boolean().nullable().optional(),
|
|
374
|
-
beatmapFile: z.string().nullable().optional(),
|
|
375
|
-
image: z.string().nullable().optional(),
|
|
376
|
-
starRating: z.number().nullable().optional(),
|
|
377
|
-
owner: z.number().nullable().optional(),
|
|
378
|
-
ownerUsername: z.string().nullable().optional(),
|
|
379
|
-
ownerAvatar: z.string().nullable().optional(),
|
|
380
|
-
status: z.string().nullable().optional(),
|
|
381
|
-
})
|
|
382
|
-
.optional(),
|
|
383
|
-
}),
|
|
371
|
+
export const Schema = {
|
|
372
|
+
input: z.strictObject({
|
|
373
|
+
session: z.string(),
|
|
374
|
+
data: z.object({
|
|
375
|
+
avatar_url: z.string().optional(),
|
|
376
|
+
profile_image: z.string().optional(),
|
|
377
|
+
username: z.string().optional(),
|
|
378
|
+
}),
|
|
379
|
+
}),
|
|
380
|
+
output: z.object({
|
|
381
|
+
error: z.string().optional(),
|
|
382
|
+
}),
|
|
384
383
|
};*/
|
|
385
|
-
import { Schema as
|
|
386
|
-
export { Schema as
|
|
387
|
-
export const
|
|
384
|
+
import { Schema as EditProfile } from "./api/editProfile"
|
|
385
|
+
export { Schema as SchemaEditProfile } from "./api/editProfile"
|
|
386
|
+
export const editProfile = handleApi({url:"/api/editProfile",...EditProfile})
|
|
388
387
|
|
|
389
|
-
// ./api/
|
|
388
|
+
// ./api/getScore.ts API
|
|
390
389
|
|
|
391
390
|
/*
|
|
392
|
-
export const Schema = {
|
|
393
|
-
input: z.strictObject({
|
|
394
|
-
session: z.string(),
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
z.
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
noteCount: z.number().nullable().optional(),
|
|
419
|
-
length: z.number().nullable().optional(),
|
|
420
|
-
title: z.string().nullable().optional(),
|
|
421
|
-
ranked: z.boolean().nullable().optional(),
|
|
422
|
-
beatmapFile: z.string().nullable().optional(),
|
|
423
|
-
image: z.string().nullable().optional(),
|
|
424
|
-
starRating: z.number().nullable().optional(),
|
|
425
|
-
owner: z.number().nullable().optional(),
|
|
426
|
-
ownerUsername: z.string().nullable().optional(),
|
|
427
|
-
ownerAvatar: z.string().nullable().optional(),
|
|
428
|
-
status: z.string().nullable().optional(),
|
|
429
|
-
tags: z.string().nullable().optional(),
|
|
430
|
-
})
|
|
431
|
-
)
|
|
432
|
-
.optional(),
|
|
433
|
-
}),
|
|
391
|
+
export const Schema = {
|
|
392
|
+
input: z.strictObject({
|
|
393
|
+
session: z.string(),
|
|
394
|
+
id: z.number(),
|
|
395
|
+
}),
|
|
396
|
+
output: z.object({
|
|
397
|
+
error: z.string().optional(),
|
|
398
|
+
score: z
|
|
399
|
+
.object({
|
|
400
|
+
awarded_sp: z.number().nullable(),
|
|
401
|
+
beatmapHash: z.string().nullable(),
|
|
402
|
+
created_at: z.string(),
|
|
403
|
+
id: z.number(),
|
|
404
|
+
misses: z.number().nullable(),
|
|
405
|
+
passed: z.boolean().nullable(),
|
|
406
|
+
songId: z.string().nullable(),
|
|
407
|
+
userId: z.number().nullable(),
|
|
408
|
+
beatmapDifficulty: z.number().optional().nullable(),
|
|
409
|
+
beatmapNotes: z.number().optional().nullable(),
|
|
410
|
+
beatmapTitle: z.string().optional().nullable(),
|
|
411
|
+
username: z.string().optional().nullable(),
|
|
412
|
+
speed: z.number().optional().nullable(),
|
|
413
|
+
spin: z.boolean().optional().nullable(),
|
|
414
|
+
})
|
|
415
|
+
.optional(),
|
|
416
|
+
}),
|
|
434
417
|
};*/
|
|
435
|
-
import { Schema as
|
|
436
|
-
export { Schema as
|
|
437
|
-
export const
|
|
418
|
+
import { Schema as GetScore } from "./api/getScore"
|
|
419
|
+
export { Schema as SchemaGetScore } from "./api/getScore"
|
|
420
|
+
export const getScore = handleApi({url:"/api/getScore",...GetScore})
|
|
438
421
|
|
|
439
|
-
// ./api/
|
|
422
|
+
// ./api/deleteBeatmapPage.ts API
|
|
440
423
|
|
|
441
424
|
/*
|
|
442
|
-
export const Schema = {
|
|
443
|
-
input: z.strictObject({
|
|
444
|
-
session: z.string(),
|
|
445
|
-
|
|
446
|
-
}),
|
|
447
|
-
output: z.
|
|
448
|
-
error: z.string().optional(),
|
|
449
|
-
|
|
450
|
-
.object({
|
|
451
|
-
starRating: z.number().nullable().optional(),
|
|
452
|
-
})
|
|
453
|
-
.optional(),
|
|
454
|
-
}),
|
|
425
|
+
export const Schema = {
|
|
426
|
+
input: z.strictObject({
|
|
427
|
+
session: z.string(),
|
|
428
|
+
id: z.number(),
|
|
429
|
+
}),
|
|
430
|
+
output: z.strictObject({
|
|
431
|
+
error: z.string().optional(),
|
|
432
|
+
}),
|
|
455
433
|
};*/
|
|
456
|
-
import { Schema as
|
|
457
|
-
export { Schema as
|
|
458
|
-
export const
|
|
434
|
+
import { Schema as DeleteBeatmapPage } from "./api/deleteBeatmapPage"
|
|
435
|
+
export { Schema as SchemaDeleteBeatmapPage } from "./api/deleteBeatmapPage"
|
|
436
|
+
export const deleteBeatmapPage = handleApi({url:"/api/deleteBeatmapPage",...DeleteBeatmapPage})
|
|
459
437
|
|
|
460
|
-
// ./api/
|
|
438
|
+
// ./api/getBadgedUsers.ts API
|
|
461
439
|
|
|
462
440
|
/*
|
|
463
|
-
export const Schema = {
|
|
464
|
-
input: z.strictObject({
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
about_me: z.string().nullable(),
|
|
480
|
-
avatar_url: z.string().nullable(),
|
|
481
|
-
profile_image: z.string().nullable(),
|
|
482
|
-
badges: z.any().nullable(),
|
|
483
|
-
created_at: z.number().nullable(),
|
|
484
|
-
flag: z.string().nullable(),
|
|
485
|
-
id: z.number(),
|
|
486
|
-
uid: z.string().nullable(),
|
|
487
|
-
ban: z.string().nullable(),
|
|
488
|
-
username: z.string().nullable(),
|
|
489
|
-
verified: z.boolean().nullable(),
|
|
490
|
-
play_count: z.number().nullable(),
|
|
491
|
-
skill_points: z.number().nullable(),
|
|
492
|
-
squares_hit: z.number().nullable(),
|
|
493
|
-
total_score: z.number().nullable(),
|
|
494
|
-
})
|
|
495
|
-
),
|
|
496
|
-
}),
|
|
441
|
+
export const Schema = {
|
|
442
|
+
input: z.strictObject({
|
|
443
|
+
badge: z.string(),
|
|
444
|
+
}),
|
|
445
|
+
output: z.object({
|
|
446
|
+
error: z.string().optional(),
|
|
447
|
+
leaderboard: z
|
|
448
|
+
.array(
|
|
449
|
+
z.object({
|
|
450
|
+
flag: z.string().nullable(),
|
|
451
|
+
id: z.number(),
|
|
452
|
+
username: z.string().nullable(),
|
|
453
|
+
})
|
|
454
|
+
)
|
|
455
|
+
.optional(),
|
|
456
|
+
}),
|
|
497
457
|
};*/
|
|
498
|
-
import { Schema as
|
|
499
|
-
export { Schema as
|
|
500
|
-
export const
|
|
458
|
+
import { Schema as GetBadgedUsers } from "./api/getBadgedUsers"
|
|
459
|
+
export { Schema as SchemaGetBadgedUsers } from "./api/getBadgedUsers"
|
|
460
|
+
export const getBadgedUsers = handleApi({url:"/api/getBadgedUsers",...GetBadgedUsers})
|
|
501
461
|
|
|
502
|
-
// ./api/
|
|
462
|
+
// ./api/getBeatmapComments.ts API
|
|
503
463
|
|
|
504
464
|
/*
|
|
505
|
-
export const Schema = {
|
|
506
|
-
input: z.strictObject({
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
title: z.string().nullable().optional(),
|
|
526
|
-
ranked: z.boolean().nullable().optional(),
|
|
527
|
-
beatmapFile: z.string().nullable().optional(),
|
|
528
|
-
image: z.string().nullable().optional(),
|
|
529
|
-
starRating: z.number().nullable().optional(),
|
|
530
|
-
owner: z.number().nullable().optional(),
|
|
531
|
-
ownerUsername: z.string().nullable().optional(),
|
|
532
|
-
status: z.string().nullable().optional(),
|
|
533
|
-
tags: z.string().nullable().optional(),
|
|
534
|
-
})
|
|
535
|
-
),
|
|
536
|
-
}),
|
|
537
|
-
error: z.string().optional(),
|
|
538
|
-
}),
|
|
465
|
+
export const Schema = {
|
|
466
|
+
input: z.strictObject({
|
|
467
|
+
page: z.number(),
|
|
468
|
+
}),
|
|
469
|
+
output: z.strictObject({
|
|
470
|
+
error: z.string().optional(),
|
|
471
|
+
comments: z.array(
|
|
472
|
+
z.object({
|
|
473
|
+
beatmapPage: z.number(),
|
|
474
|
+
content: z.string().nullable(),
|
|
475
|
+
owner: z.number(),
|
|
476
|
+
created_at: z.string(),
|
|
477
|
+
profiles: z.object({
|
|
478
|
+
avatar_url: z.string().nullable(),
|
|
479
|
+
username: z.string().nullable(),
|
|
480
|
+
badges: z.any().nullable(),
|
|
481
|
+
}),
|
|
482
|
+
})
|
|
483
|
+
),
|
|
484
|
+
}),
|
|
539
485
|
};*/
|
|
540
|
-
import { Schema as
|
|
541
|
-
export { Schema as
|
|
542
|
-
export const
|
|
486
|
+
import { Schema as GetBeatmapComments } from "./api/getBeatmapComments"
|
|
487
|
+
export { Schema as SchemaGetBeatmapComments } from "./api/getBeatmapComments"
|
|
488
|
+
export const getBeatmapComments = handleApi({url:"/api/getBeatmapComments",...GetBeatmapComments})
|
|
543
489
|
|
|
544
490
|
// ./api/getCollections.ts API
|
|
545
491
|
|
|
546
492
|
/*
|
|
547
|
-
export const Schema = {
|
|
548
|
-
input: z.strictObject({
|
|
549
|
-
session: z.string(),
|
|
550
|
-
page: z.number().optional().default(1),
|
|
551
|
-
itemsPerPage: z.number().optional().default(10),
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
493
|
+
export const Schema = {
|
|
494
|
+
input: z.strictObject({
|
|
495
|
+
session: z.string(),
|
|
496
|
+
page: z.number().optional().default(1),
|
|
497
|
+
itemsPerPage: z.number().optional().default(10),
|
|
498
|
+
owner: z.number().optional(), // Added owner field
|
|
499
|
+
}),
|
|
500
|
+
output: z.object({
|
|
501
|
+
collections: z.array(
|
|
502
|
+
z.object({
|
|
503
|
+
id: z.number(),
|
|
504
|
+
title: z.string(),
|
|
505
|
+
description: z.string(),
|
|
506
|
+
owner: z.number(),
|
|
507
|
+
ownerUsername: z.string(),
|
|
508
|
+
ownerAvatarUrl: z.string(),
|
|
509
|
+
beatmapCount: z.number(),
|
|
510
|
+
starRatingDistribution: z.array(
|
|
511
|
+
z.object({
|
|
512
|
+
stars: z.number(),
|
|
513
|
+
count: z.number(),
|
|
514
|
+
})
|
|
515
|
+
),
|
|
516
|
+
createdAt: z.string(),
|
|
517
|
+
})
|
|
518
|
+
),
|
|
519
|
+
totalPages: z.number(),
|
|
520
|
+
error: z.string().optional(),
|
|
521
|
+
}),
|
|
575
522
|
};*/
|
|
576
523
|
import { Schema as GetCollections } from "./api/getCollections"
|
|
577
524
|
export { Schema as SchemaGetCollections } from "./api/getCollections"
|
|
578
525
|
export const getCollections = handleApi({url:"/api/getCollections",...GetCollections})
|
|
579
526
|
|
|
580
|
-
// ./api/
|
|
527
|
+
// ./api/getTimestamp.ts API
|
|
581
528
|
|
|
582
529
|
/*
|
|
583
|
-
export const Schema = {
|
|
584
|
-
input: z.strictObject({
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
spin: z.boolean().default(false),
|
|
589
|
-
}),
|
|
590
|
-
output: z.object({
|
|
591
|
-
error: z.string().optional(),
|
|
592
|
-
total: z.number(),
|
|
593
|
-
viewPerPage: z.number(),
|
|
594
|
-
currentPage: z.number(),
|
|
595
|
-
userPosition: z.number(),
|
|
596
|
-
leaderboard: z
|
|
597
|
-
.array(
|
|
598
|
-
z.object({
|
|
599
|
-
flag: z.string().nullable(),
|
|
600
|
-
id: z.number(),
|
|
601
|
-
username: z.string().nullable(),
|
|
602
|
-
play_count: z.number().nullable(),
|
|
603
|
-
skill_points: z.number().nullable(),
|
|
604
|
-
spin_skill_points: z.number().nullable(),
|
|
605
|
-
total_score: z.number().nullable(),
|
|
606
|
-
clans: z
|
|
607
|
-
.object({
|
|
608
|
-
id: z.number(),
|
|
609
|
-
acronym: z.string(),
|
|
610
|
-
})
|
|
611
|
-
.optional()
|
|
612
|
-
.nullable(),
|
|
613
|
-
})
|
|
614
|
-
)
|
|
615
|
-
.optional(),
|
|
616
|
-
}),
|
|
530
|
+
export const Schema = {
|
|
531
|
+
input: z.strictObject({}),
|
|
532
|
+
output: z.object({
|
|
533
|
+
time: z.number(),
|
|
534
|
+
}),
|
|
617
535
|
};*/
|
|
618
|
-
import { Schema as
|
|
619
|
-
export { Schema as
|
|
620
|
-
export const
|
|
536
|
+
import { Schema as GetTimestamp } from "./api/getTimestamp"
|
|
537
|
+
export { Schema as SchemaGetTimestamp } from "./api/getTimestamp"
|
|
538
|
+
export const getTimestamp = handleApi({url:"/api/getTimestamp",...GetTimestamp})
|
|
621
539
|
|
|
622
|
-
// ./api/
|
|
540
|
+
// ./api/deleteCollection.ts API
|
|
623
541
|
|
|
624
542
|
/*
|
|
625
|
-
export const Schema = {
|
|
626
|
-
input: z.strictObject({
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
}),
|
|
633
|
-
output: z.strictObject({
|
|
634
|
-
error: z.string().optional(),
|
|
635
|
-
url: z.string().optional(),
|
|
636
|
-
objectKey: z.string().optional(),
|
|
637
|
-
}),
|
|
543
|
+
export const Schema = {
|
|
544
|
+
input: z.strictObject({
|
|
545
|
+
session: z.string(),
|
|
546
|
+
collection: z.number(),
|
|
547
|
+
}),
|
|
548
|
+
output: z.object({
|
|
549
|
+
error: z.string().optional(),
|
|
550
|
+
}),
|
|
638
551
|
};*/
|
|
639
|
-
import { Schema as
|
|
640
|
-
export { Schema as
|
|
641
|
-
export const
|
|
552
|
+
import { Schema as DeleteCollection } from "./api/deleteCollection"
|
|
553
|
+
export { Schema as SchemaDeleteCollection } from "./api/deleteCollection"
|
|
554
|
+
export const deleteCollection = handleApi({url:"/api/deleteCollection",...DeleteCollection})
|
|
642
555
|
|
|
643
|
-
// ./api/
|
|
556
|
+
// ./api/editCollection.ts API
|
|
644
557
|
|
|
645
558
|
/*
|
|
646
|
-
export const Schema = {
|
|
647
|
-
input: z.strictObject({
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
}),
|
|
654
|
-
output: z.object({
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
}),
|
|
559
|
+
export const Schema = {
|
|
560
|
+
input: z.strictObject({
|
|
561
|
+
session: z.string(),
|
|
562
|
+
collection: z.number(),
|
|
563
|
+
title: z.string(),
|
|
564
|
+
description: z.string(),
|
|
565
|
+
isList: z.boolean(),
|
|
566
|
+
}),
|
|
567
|
+
output: z.object({
|
|
568
|
+
error: z.string().optional(),
|
|
569
|
+
}),
|
|
658
570
|
};*/
|
|
659
|
-
import { Schema as
|
|
660
|
-
export { Schema as
|
|
661
|
-
export const
|
|
571
|
+
import { Schema as EditCollection } from "./api/editCollection"
|
|
572
|
+
export { Schema as SchemaEditCollection } from "./api/editCollection"
|
|
573
|
+
export const editCollection = handleApi({url:"/api/editCollection",...EditCollection})
|
|
662
574
|
|
|
663
|
-
// ./api/
|
|
575
|
+
// ./api/getBeatmaps.ts API
|
|
664
576
|
|
|
665
577
|
/*
|
|
666
|
-
export const Schema = {
|
|
667
|
-
input: z.strictObject({
|
|
668
|
-
session: z.string(),
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
.
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
.optional()
|
|
698
|
-
.nullable(),
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
578
|
+
export const Schema = {
|
|
579
|
+
input: z.strictObject({
|
|
580
|
+
session: z.string(),
|
|
581
|
+
textFilter: z.string().optional(),
|
|
582
|
+
authorFilter: z.string().optional(),
|
|
583
|
+
tagsFilter: z.string().optional(),
|
|
584
|
+
page: z.number().default(1),
|
|
585
|
+
maxStars: z.number().optional(),
|
|
586
|
+
minLength: z.number().optional(),
|
|
587
|
+
maxLength: z.number().optional(),
|
|
588
|
+
minStars: z.number().optional(),
|
|
589
|
+
creator: z.number().optional(),
|
|
590
|
+
status: z.string().optional(),
|
|
591
|
+
}),
|
|
592
|
+
output: z.object({
|
|
593
|
+
error: z.string().optional(),
|
|
594
|
+
total: z.number(),
|
|
595
|
+
viewPerPage: z.number(),
|
|
596
|
+
currentPage: z.number(),
|
|
597
|
+
beatmaps: z
|
|
598
|
+
.array(
|
|
599
|
+
z.object({
|
|
600
|
+
id: z.number(),
|
|
601
|
+
playcount: z.number().nullable().optional(),
|
|
602
|
+
created_at: z.string().nullable().optional(),
|
|
603
|
+
difficulty: z.number().nullable().optional(),
|
|
604
|
+
noteCount: z.number().nullable().optional(),
|
|
605
|
+
length: z.number().nullable().optional(),
|
|
606
|
+
title: z.string().nullable().optional(),
|
|
607
|
+
ranked: z.boolean().nullable().optional(),
|
|
608
|
+
beatmapFile: z.string().nullable().optional(),
|
|
609
|
+
image: z.string().nullable().optional(),
|
|
610
|
+
starRating: z.number().nullable().optional(),
|
|
611
|
+
owner: z.number().nullable().optional(),
|
|
612
|
+
ownerUsername: z.string().nullable().optional(),
|
|
613
|
+
ownerAvatar: z.string().nullable().optional(),
|
|
614
|
+
status: z.string().nullable().optional(),
|
|
615
|
+
tags: z.string().nullable().optional(),
|
|
616
|
+
})
|
|
617
|
+
)
|
|
618
|
+
.optional(),
|
|
619
|
+
}),
|
|
702
620
|
};*/
|
|
703
|
-
import { Schema as
|
|
704
|
-
export { Schema as
|
|
705
|
-
export const
|
|
621
|
+
import { Schema as GetBeatmaps } from "./api/getBeatmaps"
|
|
622
|
+
export { Schema as SchemaGetBeatmaps } from "./api/getBeatmaps"
|
|
623
|
+
export const getBeatmaps = handleApi({url:"/api/getBeatmaps",...GetBeatmaps})
|
|
706
624
|
|
|
707
|
-
// ./api/
|
|
625
|
+
// ./api/postBeatmapComment.ts API
|
|
708
626
|
|
|
709
627
|
/*
|
|
710
|
-
export const Schema = {
|
|
711
|
-
input: z.strictObject({
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
type: z.string(),
|
|
720
|
-
value: z.number(),
|
|
721
|
-
})
|
|
722
|
-
),
|
|
723
|
-
lastBeatmaps: z.array(
|
|
724
|
-
z.object({
|
|
725
|
-
id: z.number().nullable().optional(),
|
|
726
|
-
nominations: z.array(z.number()).nullable().optional(),
|
|
727
|
-
playcount: z.number().nullable().optional(),
|
|
728
|
-
created_at: z.string().nullable().optional(),
|
|
729
|
-
difficulty: z.number().nullable().optional(),
|
|
730
|
-
noteCount: z.number().nullable().optional(),
|
|
731
|
-
length: z.number().nullable().optional(),
|
|
732
|
-
title: z.string().nullable().optional(),
|
|
733
|
-
ranked: z.boolean().nullable().optional(),
|
|
734
|
-
beatmapFile: z.string().nullable().optional(),
|
|
735
|
-
image: z.string().nullable().optional(),
|
|
736
|
-
starRating: z.number().nullable().optional(),
|
|
737
|
-
owner: z.number().nullable().optional(),
|
|
738
|
-
ownerUsername: z.string().nullable().optional(),
|
|
739
|
-
ownerAvatar: z.string().nullable().optional(),
|
|
740
|
-
status: z.string().nullable().optional(),
|
|
741
|
-
})
|
|
742
|
-
),
|
|
743
|
-
topUsers: z.array(
|
|
744
|
-
z.object({
|
|
745
|
-
username: z.string(),
|
|
746
|
-
id: z.number(),
|
|
747
|
-
avatar_url: z.string(),
|
|
748
|
-
skill_points: z.number(),
|
|
749
|
-
})
|
|
750
|
-
),
|
|
751
|
-
lastComments: z.array(
|
|
752
|
-
z.object({
|
|
753
|
-
owner: z.number(),
|
|
754
|
-
content: z.string(),
|
|
755
|
-
username: z.string(),
|
|
756
|
-
beatmapTitle: z.string(),
|
|
757
|
-
beatmapPage: z.number(),
|
|
758
|
-
})
|
|
759
|
-
),
|
|
760
|
-
}),
|
|
628
|
+
export const Schema = {
|
|
629
|
+
input: z.strictObject({
|
|
630
|
+
session: z.string(),
|
|
631
|
+
page: z.number(),
|
|
632
|
+
content: z.string(),
|
|
633
|
+
}),
|
|
634
|
+
output: z.strictObject({
|
|
635
|
+
error: z.string().optional(),
|
|
636
|
+
}),
|
|
761
637
|
};*/
|
|
762
|
-
import { Schema as
|
|
763
|
-
export { Schema as
|
|
764
|
-
export const
|
|
638
|
+
import { Schema as PostBeatmapComment } from "./api/postBeatmapComment"
|
|
639
|
+
export { Schema as SchemaPostBeatmapComment } from "./api/postBeatmapComment"
|
|
640
|
+
export const postBeatmapComment = handleApi({url:"/api/postBeatmapComment",...PostBeatmapComment})
|
|
765
641
|
|
|
766
|
-
// ./api/
|
|
642
|
+
// ./api/getProfile.ts API
|
|
767
643
|
|
|
768
644
|
/*
|
|
769
|
-
export const Schema = {
|
|
770
|
-
input: z.strictObject({
|
|
771
|
-
session: z.string(),
|
|
772
|
-
|
|
773
|
-
}),
|
|
774
|
-
output: z.object({
|
|
775
|
-
error: z.string().optional(),
|
|
776
|
-
|
|
777
|
-
.object({
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
645
|
+
export const Schema = {
|
|
646
|
+
input: z.strictObject({
|
|
647
|
+
session: z.string(),
|
|
648
|
+
id: z.number().nullable().optional(),
|
|
649
|
+
}),
|
|
650
|
+
output: z.object({
|
|
651
|
+
error: z.string().optional(),
|
|
652
|
+
user: z
|
|
653
|
+
.object({
|
|
654
|
+
about_me: z.string().nullable(),
|
|
655
|
+
avatar_url: z.string().nullable(),
|
|
656
|
+
profile_image: z.string().nullable(),
|
|
657
|
+
badges: z.any().nullable(),
|
|
658
|
+
created_at: z.number().nullable(),
|
|
659
|
+
flag: z.string().nullable(),
|
|
660
|
+
id: z.number(),
|
|
661
|
+
uid: z.string().nullable(),
|
|
662
|
+
ban: z.string().nullable(),
|
|
663
|
+
username: z.string().nullable(),
|
|
664
|
+
verified: z.boolean().nullable(),
|
|
665
|
+
play_count: z.number().nullable(),
|
|
666
|
+
skill_points: z.number().nullable(),
|
|
667
|
+
squares_hit: z.number().nullable(),
|
|
668
|
+
total_score: z.number().nullable(),
|
|
669
|
+
position: z.number().nullable(),
|
|
670
|
+
is_online: z.boolean(),
|
|
671
|
+
clans: z
|
|
672
|
+
.object({
|
|
673
|
+
id: z.number(),
|
|
674
|
+
acronym: z.string(),
|
|
675
|
+
})
|
|
676
|
+
.optional()
|
|
677
|
+
.nullable(),
|
|
678
|
+
})
|
|
679
|
+
.optional(),
|
|
680
|
+
}),
|
|
782
681
|
};*/
|
|
783
|
-
import { Schema as
|
|
784
|
-
export { Schema as
|
|
785
|
-
export const
|
|
682
|
+
import { Schema as GetProfile } from "./api/getProfile"
|
|
683
|
+
export { Schema as SchemaGetProfile } from "./api/getProfile"
|
|
684
|
+
export const getProfile = handleApi({url:"/api/getProfile",...GetProfile})
|
|
786
685
|
|
|
787
|
-
// ./api/
|
|
686
|
+
// ./api/editClan.ts API
|
|
788
687
|
|
|
789
688
|
/*
|
|
790
|
-
export const Schema = {
|
|
791
|
-
input: z.strictObject({
|
|
792
|
-
session: z.string(),
|
|
793
|
-
id: z.number(),
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
id: z.number(),
|
|
803
|
-
misses: z.number().nullable(),
|
|
804
|
-
passed: z.boolean().nullable(),
|
|
805
|
-
songId: z.string().nullable(),
|
|
806
|
-
userId: z.number().nullable(),
|
|
807
|
-
beatmapDifficulty: z.number().optional().nullable(),
|
|
808
|
-
beatmapNotes: z.number().optional().nullable(),
|
|
809
|
-
beatmapTitle: z.string().optional().nullable(),
|
|
810
|
-
username: z.string().optional().nullable(),
|
|
811
|
-
speed: z.number().optional().nullable(),
|
|
812
|
-
spin: z.boolean().optional().nullable(),
|
|
813
|
-
})
|
|
814
|
-
.optional(),
|
|
815
|
-
}),
|
|
689
|
+
export const Schema = {
|
|
690
|
+
input: z.strictObject({
|
|
691
|
+
session: z.string(),
|
|
692
|
+
id: z.number(),
|
|
693
|
+
name: z.string(),
|
|
694
|
+
avatar_url: z.string(),
|
|
695
|
+
description: z.string(),
|
|
696
|
+
acronym: z.string(),
|
|
697
|
+
}),
|
|
698
|
+
output: z.object({
|
|
699
|
+
error: z.string().optional(),
|
|
700
|
+
}),
|
|
816
701
|
};*/
|
|
817
|
-
import { Schema as
|
|
818
|
-
export { Schema as
|
|
819
|
-
export const
|
|
702
|
+
import { Schema as EditClan } from "./api/editClan"
|
|
703
|
+
export { Schema as SchemaEditClan } from "./api/editClan"
|
|
704
|
+
export const editClan = handleApi({url:"/api/editClan",...EditClan})
|
|
820
705
|
|
|
821
|
-
// ./api/
|
|
706
|
+
// ./api/getClan.ts API
|
|
822
707
|
|
|
823
708
|
/*
|
|
824
|
-
export const Schema = {
|
|
825
|
-
input: z.strictObject({
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
}),
|
|
709
|
+
export const Schema = {
|
|
710
|
+
input: z.strictObject({
|
|
711
|
+
session: z.string(),
|
|
712
|
+
id: z.number(),
|
|
713
|
+
}),
|
|
714
|
+
output: z.object({
|
|
715
|
+
error: z.string().optional(),
|
|
716
|
+
acronym: z.string(),
|
|
717
|
+
avatar_url: z.string(),
|
|
718
|
+
created_at: z.number(),
|
|
719
|
+
description: z.string(),
|
|
720
|
+
id: z.number(),
|
|
721
|
+
name: z.string(),
|
|
722
|
+
owner: z.number(),
|
|
723
|
+
users: z.array(
|
|
724
|
+
z.object({
|
|
725
|
+
about_me: z.string().nullable(),
|
|
726
|
+
avatar_url: z.string().nullable(),
|
|
727
|
+
profile_image: z.string().nullable(),
|
|
728
|
+
badges: z.any().nullable(),
|
|
729
|
+
created_at: z.number().nullable(),
|
|
730
|
+
flag: z.string().nullable(),
|
|
731
|
+
id: z.number(),
|
|
732
|
+
uid: z.string().nullable(),
|
|
733
|
+
ban: z.string().nullable(),
|
|
734
|
+
username: z.string().nullable(),
|
|
735
|
+
verified: z.boolean().nullable(),
|
|
736
|
+
play_count: z.number().nullable(),
|
|
737
|
+
skill_points: z.number().nullable(),
|
|
738
|
+
squares_hit: z.number().nullable(),
|
|
739
|
+
total_score: z.number().nullable(),
|
|
740
|
+
})
|
|
741
|
+
),
|
|
742
|
+
}),
|
|
829
743
|
};*/
|
|
830
|
-
import { Schema as
|
|
831
|
-
export { Schema as
|
|
832
|
-
export const
|
|
744
|
+
import { Schema as GetClan } from "./api/getClan"
|
|
745
|
+
export { Schema as SchemaGetClan } from "./api/getClan"
|
|
746
|
+
export const getClan = handleApi({url:"/api/getClan",...GetClan})
|
|
833
747
|
|
|
834
|
-
// ./api/
|
|
748
|
+
// ./api/getBeatmapPageById.ts API
|
|
835
749
|
|
|
836
750
|
/*
|
|
837
|
-
export const Schema = {
|
|
838
|
-
input: z.strictObject({
|
|
839
|
-
session: z.string(),
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
z.
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
z.object({
|
|
867
|
-
awarded_sp: z.number().nullable(),
|
|
868
|
-
beatmapHash: z.string().nullable(),
|
|
869
|
-
created_at: z.string(),
|
|
870
|
-
id: z.number(),
|
|
871
|
-
misses: z.number().nullable(),
|
|
872
|
-
passed: z.boolean().nullable(),
|
|
873
|
-
rank: z.string().nullable(),
|
|
874
|
-
songId: z.string().nullable(),
|
|
875
|
-
userId: z.number().nullable(),
|
|
876
|
-
beatmapDifficulty: z.number().optional().nullable(),
|
|
877
|
-
beatmapNotes: z.number().optional().nullable(),
|
|
878
|
-
beatmapTitle: z.string().optional().nullable(),
|
|
879
|
-
speed: z.number().optional().nullable(),
|
|
880
|
-
spin: z.boolean().optional().nullable(),
|
|
881
|
-
})
|
|
882
|
-
)
|
|
883
|
-
.optional(),
|
|
884
|
-
stats: z
|
|
885
|
-
.object({
|
|
886
|
-
totalScores: z.number(),
|
|
887
|
-
spinScores: z.number(),
|
|
888
|
-
})
|
|
889
|
-
.optional(),
|
|
890
|
-
}),
|
|
751
|
+
export const Schema = {
|
|
752
|
+
input: z.strictObject({
|
|
753
|
+
session: z.string(),
|
|
754
|
+
mapId: z.string(),
|
|
755
|
+
}),
|
|
756
|
+
output: z.object({
|
|
757
|
+
error: z.string().optional(),
|
|
758
|
+
beatmap: z
|
|
759
|
+
.object({
|
|
760
|
+
id: z.number().nullable().optional(),
|
|
761
|
+
nominations: z.array(z.number()).nullable().optional(),
|
|
762
|
+
playcount: z.number().nullable().optional(),
|
|
763
|
+
created_at: z.string().nullable().optional(),
|
|
764
|
+
updated_at: z.number().nullable().optional(),
|
|
765
|
+
difficulty: z.number().nullable().optional(),
|
|
766
|
+
noteCount: z.number().nullable().optional(),
|
|
767
|
+
length: z.number().nullable().optional(),
|
|
768
|
+
title: z.string().nullable().optional(),
|
|
769
|
+
ranked: z.boolean().nullable().optional(),
|
|
770
|
+
beatmapFile: z.string().nullable().optional(),
|
|
771
|
+
image: z.string().nullable().optional(),
|
|
772
|
+
starRating: z.number().nullable().optional(),
|
|
773
|
+
owner: z.number().nullable().optional(),
|
|
774
|
+
ownerUsername: z.string().nullable().optional(),
|
|
775
|
+
ownerAvatar: z.string().nullable().optional(),
|
|
776
|
+
status: z.string().nullable().optional(),
|
|
777
|
+
})
|
|
778
|
+
.optional(),
|
|
779
|
+
}),
|
|
891
780
|
};*/
|
|
892
|
-
import { Schema as
|
|
893
|
-
export { Schema as
|
|
894
|
-
export const
|
|
781
|
+
import { Schema as GetBeatmapPageById } from "./api/getBeatmapPageById"
|
|
782
|
+
export { Schema as SchemaGetBeatmapPageById } from "./api/getBeatmapPageById"
|
|
783
|
+
export const getBeatmapPageById = handleApi({url:"/api/getBeatmapPageById",...GetBeatmapPageById})
|
|
895
784
|
|
|
896
|
-
// ./api/
|
|
785
|
+
// ./api/getBeatmapPage.ts API
|
|
897
786
|
|
|
898
787
|
/*
|
|
899
|
-
export const Schema = {
|
|
900
|
-
input: z.strictObject({
|
|
901
|
-
session: z.string(),
|
|
902
|
-
|
|
903
|
-
}),
|
|
904
|
-
output: z.object({
|
|
905
|
-
error: z.string().optional(),
|
|
906
|
-
|
|
788
|
+
export const Schema = {
|
|
789
|
+
input: z.strictObject({
|
|
790
|
+
session: z.string(),
|
|
791
|
+
id: z.number(),
|
|
792
|
+
}),
|
|
793
|
+
output: z.object({
|
|
794
|
+
error: z.string().optional(),
|
|
795
|
+
beatmap: z
|
|
796
|
+
.object({
|
|
797
|
+
id: z.number().nullable().optional(),
|
|
798
|
+
nominations: z.array(z.number()).nullable().optional(),
|
|
799
|
+
playcount: z.number().nullable().optional(),
|
|
800
|
+
created_at: z.string().nullable().optional(),
|
|
801
|
+
updated_at: z.number().nullable().optional(),
|
|
802
|
+
difficulty: z.number().nullable().optional(),
|
|
803
|
+
noteCount: z.number().nullable().optional(),
|
|
804
|
+
length: z.number().nullable().optional(),
|
|
805
|
+
title: z.string().nullable().optional(),
|
|
806
|
+
ranked: z.boolean().nullable().optional(),
|
|
807
|
+
beatmapFile: z.string().nullable().optional(),
|
|
808
|
+
image: z.string().nullable().optional(),
|
|
809
|
+
imageLarge: z.string().nullable().optional(),
|
|
810
|
+
starRating: z.number().nullable().optional(),
|
|
811
|
+
owner: z.number().nullable().optional(),
|
|
812
|
+
ownerUsername: z.string().nullable().optional(),
|
|
813
|
+
ownerAvatar: z.string().nullable().optional(),
|
|
814
|
+
status: z.string().nullable().optional(),
|
|
815
|
+
description: z.string().nullable().optional(),
|
|
816
|
+
tags: z.string().nullable().optional(),
|
|
817
|
+
})
|
|
818
|
+
.optional(),
|
|
819
|
+
}),
|
|
907
820
|
};*/
|
|
908
|
-
import { Schema as
|
|
909
|
-
export { Schema as
|
|
910
|
-
export const
|
|
821
|
+
import { Schema as GetBeatmapPage } from "./api/getBeatmapPage"
|
|
822
|
+
export { Schema as SchemaGetBeatmapPage } from "./api/getBeatmapPage"
|
|
823
|
+
export const getBeatmapPage = handleApi({url:"/api/getBeatmapPage",...GetBeatmapPage})
|
|
911
824
|
|
|
912
|
-
// ./api/
|
|
825
|
+
// ./api/createBeatmap.ts API
|
|
913
826
|
|
|
914
827
|
/*
|
|
915
|
-
export const Schema = {
|
|
916
|
-
input: z.strictObject({
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
}),
|
|
921
|
-
output: z.strictObject({
|
|
922
|
-
|
|
923
|
-
|
|
828
|
+
export const Schema = {
|
|
829
|
+
input: z.strictObject({
|
|
830
|
+
url: z.string(),
|
|
831
|
+
session: z.string(),
|
|
832
|
+
updateFlag: z.boolean().optional(),
|
|
833
|
+
}),
|
|
834
|
+
output: z.strictObject({
|
|
835
|
+
hash: z.string().optional(),
|
|
836
|
+
error: z.string().optional(),
|
|
837
|
+
}),
|
|
924
838
|
};*/
|
|
925
|
-
import { Schema as
|
|
926
|
-
export { Schema as
|
|
927
|
-
export const
|
|
839
|
+
import { Schema as CreateBeatmap } from "./api/createBeatmap"
|
|
840
|
+
export { Schema as SchemaCreateBeatmap } from "./api/createBeatmap"
|
|
841
|
+
export const createBeatmap = handleApi({url:"/api/createBeatmap",...CreateBeatmap})
|
|
928
842
|
|
|
929
|
-
// ./api/
|
|
843
|
+
// ./api/getLeaderboard.ts API
|
|
930
844
|
|
|
931
845
|
/*
|
|
932
|
-
export const Schema = {
|
|
933
|
-
input: z.strictObject({
|
|
934
|
-
session: z.string(),
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
846
|
+
export const Schema = {
|
|
847
|
+
input: z.strictObject({
|
|
848
|
+
session: z.string(),
|
|
849
|
+
page: z.number().default(1),
|
|
850
|
+
flag: z.string().optional(),
|
|
851
|
+
spin: z.boolean().default(false),
|
|
852
|
+
}),
|
|
853
|
+
output: z.object({
|
|
854
|
+
error: z.string().optional(),
|
|
855
|
+
total: z.number(),
|
|
856
|
+
viewPerPage: z.number(),
|
|
857
|
+
currentPage: z.number(),
|
|
858
|
+
userPosition: z.number(),
|
|
859
|
+
leaderboard: z
|
|
860
|
+
.array(
|
|
861
|
+
z.object({
|
|
862
|
+
flag: z.string().nullable(),
|
|
863
|
+
id: z.number(),
|
|
864
|
+
username: z.string().nullable(),
|
|
865
|
+
play_count: z.number().nullable(),
|
|
866
|
+
skill_points: z.number().nullable(),
|
|
867
|
+
spin_skill_points: z.number().nullable(),
|
|
868
|
+
total_score: z.number().nullable(),
|
|
869
|
+
clans: z
|
|
870
|
+
.object({
|
|
871
|
+
id: z.number(),
|
|
872
|
+
acronym: z.string(),
|
|
873
|
+
})
|
|
874
|
+
.optional()
|
|
875
|
+
.nullable(),
|
|
876
|
+
})
|
|
877
|
+
)
|
|
878
|
+
.optional(),
|
|
879
|
+
}),
|
|
940
880
|
};*/
|
|
941
|
-
import { Schema as
|
|
942
|
-
export { Schema as
|
|
943
|
-
export const
|
|
881
|
+
import { Schema as GetLeaderboard } from "./api/getLeaderboard"
|
|
882
|
+
export { Schema as SchemaGetLeaderboard } from "./api/getLeaderboard"
|
|
883
|
+
export const getLeaderboard = handleApi({url:"/api/getLeaderboard",...GetLeaderboard})
|
|
944
884
|
|
|
945
|
-
// ./api/
|
|
885
|
+
// ./api/getBeatmapStarRating.ts API
|
|
946
886
|
|
|
947
887
|
/*
|
|
948
|
-
export const Schema = {
|
|
949
|
-
input: z.strictObject({
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
.optional(),
|
|
962
|
-
}),
|
|
888
|
+
export const Schema = {
|
|
889
|
+
input: z.strictObject({
|
|
890
|
+
session: z.string(),
|
|
891
|
+
mapId: z.string(),
|
|
892
|
+
}),
|
|
893
|
+
output: z.object({
|
|
894
|
+
error: z.string().optional(),
|
|
895
|
+
beatmap: z
|
|
896
|
+
.object({
|
|
897
|
+
starRating: z.number().nullable().optional(),
|
|
898
|
+
})
|
|
899
|
+
.optional(),
|
|
900
|
+
}),
|
|
963
901
|
};*/
|
|
964
|
-
import { Schema as
|
|
965
|
-
export { Schema as
|
|
966
|
-
export const
|
|
902
|
+
import { Schema as GetBeatmapStarRating } from "./api/getBeatmapStarRating"
|
|
903
|
+
export { Schema as SchemaGetBeatmapStarRating } from "./api/getBeatmapStarRating"
|
|
904
|
+
export const getBeatmapStarRating = handleApi({url:"/api/getBeatmapStarRating",...GetBeatmapStarRating})
|
|
967
905
|
|
|
968
|
-
// ./api/
|
|
906
|
+
// ./api/searchUsers.ts API
|
|
969
907
|
|
|
970
908
|
/*
|
|
971
|
-
export const Schema = {
|
|
972
|
-
input: z.strictObject({
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
909
|
+
export const Schema = {
|
|
910
|
+
input: z.strictObject({
|
|
911
|
+
text: z.string(),
|
|
912
|
+
}),
|
|
913
|
+
output: z.object({
|
|
914
|
+
error: z.string().optional(),
|
|
915
|
+
results: z
|
|
916
|
+
.array(
|
|
917
|
+
z.object({
|
|
918
|
+
id: z.number(),
|
|
919
|
+
username: z.string().nullable(),
|
|
920
|
+
})
|
|
921
|
+
)
|
|
922
|
+
.optional(),
|
|
923
|
+
}),
|
|
981
924
|
};*/
|
|
982
|
-
import { Schema as
|
|
983
|
-
export { Schema as
|
|
984
|
-
export const
|
|
925
|
+
import { Schema as SearchUsers } from "./api/searchUsers"
|
|
926
|
+
export { Schema as SchemaSearchUsers } from "./api/searchUsers"
|
|
927
|
+
export const searchUsers = handleApi({url:"/api/searchUsers",...SearchUsers})
|
|
985
928
|
|
|
986
929
|
// ./api/submitScore.ts API
|
|
987
930
|
|
|
988
931
|
/*
|
|
989
|
-
export const Schema = {
|
|
990
|
-
input: z.strictObject({
|
|
991
|
-
session: z.string(),
|
|
992
|
-
data: z.strictObject({
|
|
993
|
-
token: z.string(),
|
|
994
|
-
relayHwid: z.string(),
|
|
995
|
-
songId: z.string(),
|
|
996
|
-
misses: z.number(),
|
|
997
|
-
hits: z.number(),
|
|
998
|
-
mapHash: z.string(),
|
|
999
|
-
speed: z.number(),
|
|
1000
|
-
mods: z.array(z.string()),
|
|
1001
|
-
additionalData: z.any(),
|
|
1002
|
-
spin: z.boolean(),
|
|
1003
|
-
virtualStars: z.number(),
|
|
1004
|
-
}),
|
|
1005
|
-
}),
|
|
1006
|
-
output: z.object({
|
|
1007
|
-
error: z.string().optional(),
|
|
1008
|
-
}),
|
|
932
|
+
export const Schema = {
|
|
933
|
+
input: z.strictObject({
|
|
934
|
+
session: z.string(),
|
|
935
|
+
data: z.strictObject({
|
|
936
|
+
token: z.string(),
|
|
937
|
+
relayHwid: z.string(),
|
|
938
|
+
songId: z.string(),
|
|
939
|
+
misses: z.number(),
|
|
940
|
+
hits: z.number(),
|
|
941
|
+
mapHash: z.string(),
|
|
942
|
+
speed: z.number(),
|
|
943
|
+
mods: z.array(z.string()),
|
|
944
|
+
additionalData: z.any(),
|
|
945
|
+
spin: z.boolean(),
|
|
946
|
+
virtualStars: z.number(),
|
|
947
|
+
}),
|
|
948
|
+
}),
|
|
949
|
+
output: z.object({
|
|
950
|
+
error: z.string().optional(),
|
|
951
|
+
}),
|
|
1009
952
|
};*/
|
|
1010
953
|
import { Schema as SubmitScore } from "./api/submitScore"
|
|
1011
954
|
export { Schema as SchemaSubmitScore } from "./api/submitScore"
|
|
1012
955
|
export const submitScore = handleApi({url:"/api/submitScore",...SubmitScore})
|
|
1013
956
|
|
|
957
|
+
// ./api/addCollectionMap.ts API
|
|
958
|
+
|
|
959
|
+
/*
|
|
960
|
+
export const Schema = {
|
|
961
|
+
input: z.strictObject({
|
|
962
|
+
session: z.string(),
|
|
963
|
+
collection: z.number(),
|
|
964
|
+
beatmapPage: z.number(),
|
|
965
|
+
}),
|
|
966
|
+
output: z.object({
|
|
967
|
+
error: z.string().optional(),
|
|
968
|
+
}),
|
|
969
|
+
};*/
|
|
970
|
+
import { Schema as AddCollectionMap } from "./api/addCollectionMap"
|
|
971
|
+
export { Schema as SchemaAddCollectionMap } from "./api/addCollectionMap"
|
|
972
|
+
export const addCollectionMap = handleApi({url:"/api/addCollectionMap",...AddCollectionMap})
|
|
973
|
+
|
|
974
|
+
// ./api/getCollection.ts API
|
|
975
|
+
|
|
976
|
+
/*
|
|
977
|
+
export const Schema = {
|
|
978
|
+
input: z.strictObject({
|
|
979
|
+
session: z.string(),
|
|
980
|
+
collection: z.number(),
|
|
981
|
+
}),
|
|
982
|
+
output: z.object({
|
|
983
|
+
collection: z.object({
|
|
984
|
+
title: z.string(),
|
|
985
|
+
description: z.string(),
|
|
986
|
+
owner: z.object({
|
|
987
|
+
id: z.number(),
|
|
988
|
+
username: z.string(),
|
|
989
|
+
}),
|
|
990
|
+
isList: z.boolean(),
|
|
991
|
+
beatmaps: z.array(
|
|
992
|
+
z.object({
|
|
993
|
+
id: z.number(),
|
|
994
|
+
playcount: z.number().nullable().optional(),
|
|
995
|
+
created_at: z.string().nullable().optional(),
|
|
996
|
+
difficulty: z.number().nullable().optional(),
|
|
997
|
+
length: z.number().nullable().optional(),
|
|
998
|
+
title: z.string().nullable().optional(),
|
|
999
|
+
ranked: z.boolean().nullable().optional(),
|
|
1000
|
+
beatmapFile: z.string().nullable().optional(),
|
|
1001
|
+
image: z.string().nullable().optional(),
|
|
1002
|
+
starRating: z.number().nullable().optional(),
|
|
1003
|
+
owner: z.number().nullable().optional(),
|
|
1004
|
+
ownerUsername: z.string().nullable().optional(),
|
|
1005
|
+
status: z.string().nullable().optional(),
|
|
1006
|
+
tags: z.string().nullable().optional(),
|
|
1007
|
+
})
|
|
1008
|
+
),
|
|
1009
|
+
}),
|
|
1010
|
+
error: z.string().optional(),
|
|
1011
|
+
}),
|
|
1012
|
+
};*/
|
|
1013
|
+
import { Schema as GetCollection } from "./api/getCollection"
|
|
1014
|
+
export { Schema as SchemaGetCollection } from "./api/getCollection"
|
|
1015
|
+
export const getCollection = handleApi({url:"/api/getCollection",...GetCollection})
|
|
1016
|
+
|
|
1014
1017
|
// ./api/updateBeatmapPage.ts API
|
|
1015
1018
|
|
|
1016
1019
|
/*
|
|
1017
|
-
export const Schema = {
|
|
1018
|
-
input: z.strictObject({
|
|
1019
|
-
session: z.string(),
|
|
1020
|
-
id: z.number(),
|
|
1021
|
-
beatmapHash: z.string().optional(),
|
|
1022
|
-
tags: z.string().optional(),
|
|
1023
|
-
description: z.string().optional(),
|
|
1024
|
-
}),
|
|
1025
|
-
output: z.strictObject({
|
|
1026
|
-
error: z.string().optional(),
|
|
1027
|
-
}),
|
|
1020
|
+
export const Schema = {
|
|
1021
|
+
input: z.strictObject({
|
|
1022
|
+
session: z.string(),
|
|
1023
|
+
id: z.number(),
|
|
1024
|
+
beatmapHash: z.string().optional(),
|
|
1025
|
+
tags: z.string().optional(),
|
|
1026
|
+
description: z.string().optional(),
|
|
1027
|
+
}),
|
|
1028
|
+
output: z.strictObject({
|
|
1029
|
+
error: z.string().optional(),
|
|
1030
|
+
}),
|
|
1028
1031
|
};*/
|
|
1029
1032
|
import { Schema as UpdateBeatmapPage } from "./api/updateBeatmapPage"
|
|
1030
1033
|
export { Schema as SchemaUpdateBeatmapPage } from "./api/updateBeatmapPage"
|