Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

584 B
Raw Blame
import { responseTimestamp, z } from "../openapi";

export const labelSchema = z
  .object({
    id: z.string(),
    name: z.string(),
    color: z.string(),
    createdAt: responseTimestamp,
    updatedAt: responseTimestamp,
    deletionStartedAt: responseTimestamp.nullable().optional(),
    taskId: z.string().nullable(),
    workspaceId: z.string().nullable(),
  })
  .openapi("Label");

export const labelListSchema = z.array(labelSchema);

export const pendingLabelDeletionSchema = labelSchema
  .extend({ pendingDeletion: z.literal(true) })
  .openapi("PendingLabelDeletion");