27 lines
765 B
TypeScript
27 lines
765 B
TypeScript
import { z } from "zod";
|
|
|
|
export const auditLogListInputSchema = z.object({
|
|
entityType: z.string().optional(),
|
|
entityId: z.string().optional(),
|
|
userId: z.string().optional(),
|
|
action: z.string().optional(),
|
|
source: z.string().optional(),
|
|
startDate: z.date().optional(),
|
|
endDate: z.date().optional(),
|
|
search: z.string().optional(),
|
|
limit: z.number().min(1).max(100).default(50),
|
|
cursor: z.string().optional(),
|
|
});
|
|
|
|
export const auditLogByEntityInputSchema = z.object({
|
|
entityType: z.string(),
|
|
entityId: z.string(),
|
|
limit: z.number().min(1).max(200).default(50),
|
|
});
|
|
|
|
export const auditLogTimelineInputSchema = z.object({
|
|
startDate: z.date().optional(),
|
|
endDate: z.date().optional(),
|
|
limit: z.number().min(1).max(500).default(200),
|
|
});
|