Defines Zod schemas and enums for ticket entity validation and management in TypeScript.
// Source: https://github.com/evepupil/NextDevTpl | License: MIT | Copyright 2026 yeton
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from "zod";
/**
* 工单类别选项
*/
export const ticketCategories = [
{ value: "billing", label: "categories.billing" },
{ value: "technical", label: "categories.technical" },
{ value: "bug", label: "categories.bug" },
{ value: "feature", label: "categories.feature" },
{ value: "other", label: "categories.other" },
] as const;
/**
* 工单优先级选项
*/
export const ticketPriorities = [
{ value: "low", label: "priorities.low", color: "bg-success" },
{ value: "medium", label: "priorities.medium", color: "bg-warning" },
{ value: "high", label: "priorities.high", color: "bg-destructive" },
] as const;
/**
* 工单状态选项
*/
expor
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key