From 4ae36ee3f063173c2bc9cd554ecb25ad6490eefb Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Thu, 8 Jan 2026 09:41:44 +0700 Subject: [PATCH] feat: create type for Phase Activity --- .../api/daily-checklist/phase-activity.d.ts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/types/api/daily-checklist/phase-activity.d.ts diff --git a/src/types/api/daily-checklist/phase-activity.d.ts b/src/types/api/daily-checklist/phase-activity.d.ts new file mode 100644 index 00000000..1b7dc8e3 --- /dev/null +++ b/src/types/api/daily-checklist/phase-activity.d.ts @@ -0,0 +1,24 @@ +import { BaseMetadata } from '@/types/api/api-general'; + +export type BasePhaseActivity = { + id: number; + phase_id: number; + name: string; + description: string; + time_type: string; +}; + +export type PhaseActivity = BaseMetadata & BasePhaseActivity; + +export type CreatePhaseActivityPayload = { + phase_id: number; + name: string; + description: string; + time_type: string; +}; + +export type UpdatePhaseActivityPayload = { + name: string; + description: string; + time_type: string; +};