rhythia-api 214.0.0 → 215.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.
@@ -51,6 +51,7 @@ export const Schema = {
51
51
  status: z.string().nullable().optional(),
52
52
  description: z.string().nullable().optional(),
53
53
  tags: z.string().nullable().optional(),
54
+ videoUrl: z.string().nullable().optional(),
54
55
  })
55
56
  .optional(),
56
57
  }),
@@ -144,6 +145,7 @@ export async function handler(
144
145
  nominations: beatmapPage.nominations as number[],
145
146
  description: beatmapPage.description,
146
147
  tags: beatmapPage.tags,
148
+ videoUrl: beatmapPage.video_url,
147
149
  },
148
150
  });
149
151
  }
@@ -15,9 +15,9 @@ export const Schema = {
15
15
  z.object({
16
16
  id: z.number(),
17
17
  awarded_sp: z.number().nullable(),
18
- created_at: z.string(), // Assuming Supabase returns timestamps as strings
18
+ created_at: z.string(),
19
19
  misses: z.number().nullable(),
20
- mods: z.record(z.unknown()), // JSONB data, can be any object
20
+ mods: z.record(z.unknown()),
21
21
  passed: z.boolean().nullable(),
22
22
  songId: z.string().nullable(),
23
23
  speed: z.number().nullable(),
@@ -47,6 +47,7 @@ export const Schema = {
47
47
  ownerUsername: z.string().nullable().optional(),
48
48
  ownerAvatar: z.string().nullable().optional(),
49
49
  status: z.string().nullable().optional(),
50
+ videoUrl: z.string().nullable(),
50
51
  })
51
52
  .optional(),
52
53
  }),
@@ -135,6 +136,7 @@ export async function handler(
135
136
  id: beatmapPage.id,
136
137
  status: beatmapPage.status,
137
138
  nominations: beatmapPage.nominations as number[],
139
+ videoUrl: beatmapPage.video_url,
138
140
  },
139
141
  });
140
142
  }
package/index.ts CHANGED
@@ -473,6 +473,7 @@ export const Schema = {
473
473
  status: z.string().nullable().optional(),
474
474
  description: z.string().nullable().optional(),
475
475
  tags: z.string().nullable().optional(),
476
+ videoUrl: z.string().nullable().optional(),
476
477
  })
477
478
  .optional(),
478
479
  }),
@@ -496,9 +497,9 @@ export const Schema = {
496
497
  z.object({
497
498
  id: z.number(),
498
499
  awarded_sp: z.number().nullable(),
499
- created_at: z.string(), // Assuming Supabase returns timestamps as strings
500
+ created_at: z.string(),
500
501
  misses: z.number().nullable(),
501
- mods: z.record(z.unknown()), // JSONB data, can be any object
502
+ mods: z.record(z.unknown()),
502
503
  passed: z.boolean().nullable(),
503
504
  songId: z.string().nullable(),
504
505
  speed: z.number().nullable(),
@@ -528,6 +529,7 @@ export const Schema = {
528
529
  ownerUsername: z.string().nullable().optional(),
529
530
  ownerAvatar: z.string().nullable().optional(),
530
531
  status: z.string().nullable().optional(),
532
+ videoUrl: z.string().nullable(),
531
533
  })
532
534
  .optional(),
533
535
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhythia-api",
3
- "version": "214.0.0",
3
+ "version": "215.0.0",
4
4
  "main": "index.ts",
5
5
  "author": "online-contributors-cunev",
6
6
  "scripts": {