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.
- package/api/getCollections.ts +2 -0
- package/index.ts +1 -0
- package/package.json +1 -1
- package/types/database.ts +2 -0
package/api/getCollections.ts
CHANGED
|
@@ -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