rhythia-api 95.0.0 → 96.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.
@@ -26,10 +26,28 @@ export const Schema = {
26
26
  userId: z.number().nullable(),
27
27
  beatmapDifficulty: z.number().optional().nullable(),
28
28
  beatmapNotes: z.number().optional().nullable(),
29
+ beatmapTitle: z.string().optional().nullable(),
30
+ })
31
+ )
32
+ .optional(),
33
+ top: z
34
+ .array(
35
+ z.object({
36
+ awarded_sp: z.number().nullable(),
37
+ beatmapHash: z.string().nullable(),
38
+ created_at: z.string(),
39
+ id: z.number(),
40
+ misses: z.number().nullable(),
41
+ passed: z.boolean().nullable(),
42
+ rank: z.string().nullable(),
43
+ songId: z.string().nullable(),
44
+ userId: z.number().nullable(),
45
+ beatmapDifficulty: z.number().optional().nullable(),
46
+ beatmapNotes: z.number().optional().nullable(),
47
+ beatmapTitle: z.string().optional().nullable(),
29
48
  })
30
49
  )
31
50
  .optional(),
32
- top: z.array(z.object({})).optional(),
33
51
  }),
34
52
  };
35
53
 
@@ -53,7 +71,8 @@ export async function handler(
53
71
  *,
54
72
  beatmaps (
55
73
  difficulty,
56
- noteCount
74
+ noteCount,
75
+ title
57
76
  )
58
77
  `
59
78
  )
@@ -68,7 +87,8 @@ export async function handler(
68
87
  *,
69
88
  beatmaps (
70
89
  difficulty,
71
- noteCount
90
+ noteCount,
91
+ title
72
92
  )
73
93
  `
74
94
  )
@@ -90,6 +110,7 @@ export async function handler(
90
110
  songId: s.songId,
91
111
  beatmapDifficulty: s.beatmaps?.difficulty,
92
112
  beatmapNotes: s.beatmaps?.noteCount,
113
+ beatmapTitle: s.beatmaps?.title,
93
114
  })),
94
115
  top: scores2?.map((s) => ({
95
116
  created_at: s.created_at,
@@ -103,6 +124,7 @@ export async function handler(
103
124
  songId: s.songId,
104
125
  beatmapDifficulty: s.beatmaps?.difficulty,
105
126
  beatmapNotes: s.beatmaps?.noteCount,
127
+ beatmapTitle: s.beatmaps?.title,
106
128
  })),
107
129
  });
108
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhythia-api",
3
- "version": "95.0.0",
3
+ "version": "96.0.0",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "update": "bun ./scripts/update.ts",