From 7d4869fbdce756c8467d398c80dfa6bb2aa77861 Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Thu, 8 Jan 2026 09:41:50 +0700 Subject: [PATCH] feat: create type for Phase --- src/types/api/daily-checklist/phase.d.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/types/api/daily-checklist/phase.d.ts diff --git a/src/types/api/daily-checklist/phase.d.ts b/src/types/api/daily-checklist/phase.d.ts new file mode 100644 index 00000000..b628a7c0 --- /dev/null +++ b/src/types/api/daily-checklist/phase.d.ts @@ -0,0 +1,19 @@ +import { BaseMetadata } from '@/types/api/api-general'; + +export type BasePhase = { + id: number; + name: string; + is_active: boolean; + category: string; +}; + +export type Phase = BaseMetadata & BasePhase; + +export type CreatePhasePayload = { + name: string; + category: string; +}; + +export type UpdatePhasePayload = { + name: string; +};