mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 21:04:59 +00:00
feat(ui): add collection and share link pages and management actions
This commit is contained in:
@@ -16,6 +16,14 @@ export const collectionSchema = z.object({
|
||||
projectId: z.string(),
|
||||
createdAt: z.string(),
|
||||
updatedAt: z.string(),
|
||||
creator: z
|
||||
.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
image: z.string().optional().nullable(),
|
||||
})
|
||||
.optional()
|
||||
.nullable(),
|
||||
})
|
||||
|
||||
export type CollectionInfo = z.infer<typeof collectionSchema>
|
||||
|
||||
@@ -14,6 +14,7 @@ export interface ShareLinkInfo {
|
||||
isExpired: boolean
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
creator?: { id: string; name: string; image?: string | null } | null
|
||||
}
|
||||
|
||||
export const createShareLinkRequestSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user