Refactor membership endpoints (#204)
refs #175 Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
1 parent
d93fd26a1e
commit
d1bbaef5c6
11 files changed
+388
-254
No files matched your search
@@ -17,6 +17,10 @@ export const schemaQuerySingleOrMultipleUserIds = z.object({
|
||||
userId: z.union([stringOrNumber, z.array(stringOrNumber)]),
|
||||
});
|
||||
|
||||
export const schemaQuerySingleOrMultipleTeamIds = z.object({
|
||||
teamId: z.union([stringOrNumber, z.array(stringOrNumber)]),
|
||||
});
|
||||
|
||||
export const withValidQueryUserId = withValidation({
|
||||
schema: schemaQueryUserId,
|
||||
type: "Zod",
|
||||
|
||||
Reference in new issue
Block a user