mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-28 11:54:42 +00:00
feat(webui): add NLE comments export and migrate export API to POST (#401)
This commit is contained in:
@@ -348,7 +348,7 @@ export const commentExportFormatSchema = z.enum([
|
||||
])
|
||||
export type CommentExportFormat = z.infer<typeof commentExportFormatSchema>
|
||||
|
||||
export const exportCommentsQuerySchema = z.object({
|
||||
export const exportCommentsRequestSchema = z.object({
|
||||
format: commentExportFormatSchema,
|
||||
timeZone: z
|
||||
.string()
|
||||
@@ -365,4 +365,9 @@ export const exportCommentsQuerySchema = z.object({
|
||||
)
|
||||
.optional(),
|
||||
})
|
||||
export type ExportCommentsQuery = z.infer<typeof exportCommentsQuerySchema>
|
||||
export type ExportCommentsRequest = z.infer<typeof exportCommentsRequestSchema>
|
||||
|
||||
/** @deprecated Use exportCommentsRequestSchema */
|
||||
export const exportCommentsQuerySchema = exportCommentsRequestSchema
|
||||
/** @deprecated Use ExportCommentsRequest */
|
||||
export type ExportCommentsQuery = ExportCommentsRequest
|
||||
|
||||
Reference in New Issue
Block a user