vorteil/direktiv

View on GitHub
ui/src/api/schema.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { z } from "zod";

export const PageinfoSchema = z.object({
  order: z.array(
    z.object({
      field: z.string(), // f.e. "NAME"
      direction: z.string(),
    })
  ),
  filter: z.array(
    z.object({
      field: z.string(), // f.e. "NAME"
      type: z.string(), // f.e. CONTAINS
      val: z.string(), // f.e. "something"
    })
  ),
  limit: z.number(),
  offset: z.number(),
  total: z.number(),
});