From 1002c6c437f4a9f9c40b0fbfd74c7382aa8143e4 Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Mon, 12 Jan 2026 14:42:41 +0700 Subject: [PATCH] feat: create Daily Checklist Configuration type --- .../api/daily-checklist/configuration.d.ts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/types/api/daily-checklist/configuration.d.ts diff --git a/src/types/api/daily-checklist/configuration.d.ts b/src/types/api/daily-checklist/configuration.d.ts new file mode 100644 index 00000000..7e94c69b --- /dev/null +++ b/src/types/api/daily-checklist/configuration.d.ts @@ -0,0 +1,22 @@ +import { BaseMetadata } from '@/types/api/api-general'; + +export type BaseConfiguration = { + id: number; + date: string; + percentage_threshold_bad: number; + percentage_threshold_enough: number; +}; + +export type DailyChecklistConfiguration = BaseMetadata & BaseConfiguration; + +export type CreateDailyChecklistConfigurationPayload = { + date: string; + percentage_threshold_bad: number; + percentage_threshold_enough: number; +}; + +export type UpdateDailyChecklistConfigurationPayload = { + date: string; + percentage_threshold_bad: number; + percentage_threshold_enough: number; +};