20 lines
545 B
TypeScript
20 lines
545 B
TypeScript
import * as z from 'zod';
|
|
export const CronJobLogFindManyResultSchema = z.object({
|
|
data: z.array(z.object({
|
|
id: z.number().int(),
|
|
jobName: z.string(),
|
|
status: z.string(),
|
|
startedAt: z.date(),
|
|
completedAt: z.date().optional(),
|
|
durationMs: z.number().int().optional(),
|
|
errorMessage: z.string().optional()
|
|
})),
|
|
pagination: z.object({
|
|
page: z.number().int().min(1),
|
|
pageSize: z.number().int().min(1),
|
|
total: z.number().int().min(0),
|
|
totalPages: z.number().int().min(0),
|
|
hasNext: z.boolean(),
|
|
hasPrev: z.boolean()
|
|
})
|
|
}); |