rhythia-api 185.0.0 → 186.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.
@@ -10,6 +10,7 @@ export const Schema = {
10
10
  itemsPerPage: z.number().optional().default(10),
11
11
  owner: z.number().optional(), // Added owner field
12
12
  search: z.string().optional(), // Added string field
13
+ minBeatmaps: z.number().optional(), // Added string field
13
14
  }),
14
15
  output: z.object({
15
16
  collections: z.array(
@@ -51,6 +52,7 @@ export async function handler(data: (typeof Schema)["input"]["_type"]) {
51
52
  items_per_page: data.itemsPerPage,
52
53
  owner_filter: typeof data.owner === "number" ? data.owner : undefined,
53
54
  search_query: data.search || undefined,
55
+ min_beatmaps: data.minBeatmaps || 0,
54
56
  })
55
57
  .returns<
56
58
  {
package/index.ts CHANGED
@@ -497,6 +497,7 @@ export const Schema = {
497
497
  itemsPerPage: z.number().optional().default(10),
498
498
  owner: z.number().optional(), // Added owner field
499
499
  search: z.string().optional(), // Added string field
500
+ minBeatmaps: z.number().optional(), // Added string field
500
501
  }),
501
502
  output: z.object({
502
503
  collections: z.array(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhythia-api",
3
- "version": "185.0.0",
3
+ "version": "186.0.0",
4
4
  "main": "index.ts",
5
5
  "author": "online-contributors",
6
6
  "scripts": {
package/types/database.ts CHANGED
@@ -658,6 +658,8 @@ export type Database = {
658
658
  items_per_page?: number
659
659
  owner_filter?: number
660
660
  search_query?: string
661
+ author_filter?: string
662
+ min_beatmaps?: number
661
663
  }
662
664
  Returns: {
663
665
  id: number