import { IResponse } from "../../../../types/response.types";

export type TaskTimeEntryType = {
  id: string;
  taskId: string;
  startedAt: string;
  endedAt?: string | null;
  duration?: number | null;
  adminId?: string;
  createdAt?: string;
  updatedAt?: string;
};

export interface StartTaskTimeResponse extends IResponse<TaskTimeEntryType> {
  statusCode: number;
}

export interface EndTaskTimeResponse extends IResponse<TaskTimeEntryType> {
  statusCode: number;
}

export interface GetTaskTimesResponse extends IResponse<TaskTimeEntryType[]> {
  statusCode: number;
}
