feat: create Daily Checklist Configuration type

This commit is contained in:
ValdiANS
2026-01-12 14:42:41 +07:00
parent 25352659f3
commit 1002c6c437
+22
View File
@@ -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;
};