mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 19:34:38 +00:00
feat(project): support adding existing team members and prioritize project-specific roles
This commit is contained in:
@@ -110,3 +110,17 @@ export interface ServiceUpdateProjectMemberRoleRequest {
|
||||
userId: string
|
||||
role: 'editor' | 'reviewer'
|
||||
}
|
||||
|
||||
export const addProjectMemberRequestSchema = z.object({
|
||||
userId: z.string(),
|
||||
role: z.enum(['owner', 'editor', 'reviewer']),
|
||||
})
|
||||
export type AddProjectMemberRequest = z.infer<typeof addProjectMemberRequestSchema>
|
||||
|
||||
export const projectMeResponseSchema = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
role: z.enum(['owner', 'editor', 'reviewer', 'bot', 'unknown']),
|
||||
image: z.string().optional(),
|
||||
})
|
||||
export type ProjectMeResponse = z.infer<typeof projectMeResponseSchema>
|
||||
|
||||
Reference in New Issue
Block a user