[api] add creator filter to clothing search endpoint

This commit is contained in:
Devin Zuczek
2026-09-23 13:27:08 -04:00
parent 1b9984c72c
commit b172260cfd
3 changed files with 58 additions and 0 deletions
+10
View File
@@ -710,6 +710,8 @@ export const avatarRoutes = new Hono<App>({ strict: false })
'stock content (account 1), `false` only player-made items, and leaving it out serves',
'both. The client’s storefront tab sends `True` and its user-generated-content tab',
'`False`, so the two never overlap.',
'`creatorAccountId` narrows to one author’s items — what a player’s creations list',
'sends (`creatorAccountId=<id>&includeCoachItems=False`); still published items only.',
'`outfitTypes` values are `RecRoom.Avatars.OutfitType` ordinals; the user-generated-',
'content tab sends 105 (`CustomShirt`) alone, the storefront tab a dozen slots.',
'`itemTypes` (a separate enum: All -1, None 0, Shirt 1 — not the outfit type),',
@@ -773,6 +775,13 @@ export const avatarRoutes = new Hono<App>({ strict: false })
'true: only the Coach’s stock items; false: only player-made items; absent: both',
schema: { type: 'boolean' },
},
{
name: 'creatorAccountId',
in: 'query',
required: false,
description: 'Only items this account made',
schema: { type: 'integer' },
},
{
name: 'unityAssetTarget',
in: 'query',
@@ -811,6 +820,7 @@ export const avatarRoutes = new Hono<App>({ strict: false })
searchQuery: c.req.query('searchQuery'),
outfitTypes,
includeCoachItems,
creatorAccountId: int('creatorAccountId'),
minPrice: int('minPrice'),
maxPrice: int('maxPrice'),
skip: int('skip'),