mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 15:25:46 +00:00
feat: create Daily Checklist Configuration type
This commit is contained in:
@@ -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;
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user