2023-01-27 03:22:44 -08:00
|
|
|
import type { ITimeIntervalDto } from './CommonDtos';
|
2020-10-04 07:28:05 -07:00
|
|
|
|
|
|
|
interface ITimeEntriesDurationRequest {
|
|
|
|
start: string;
|
|
|
|
end: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ITimeEntryRequest {
|
|
|
|
id: string;
|
|
|
|
start: string;
|
|
|
|
billable: boolean;
|
|
|
|
description: string;
|
|
|
|
projectId: string;
|
|
|
|
userId: string;
|
|
|
|
taskId?: string | null;
|
|
|
|
end: string;
|
|
|
|
tagIds?: string[] | undefined;
|
|
|
|
timeInterval: ITimeEntriesDurationRequest;
|
|
|
|
workspaceId: string;
|
|
|
|
isLocked: boolean;
|
2020-10-04 07:32:12 -07:00
|
|
|
}
|
2020-10-04 07:28:05 -07:00
|
|
|
|
|
|
|
export interface ITimeEntryDto {
|
|
|
|
billable: boolean;
|
|
|
|
description: string;
|
|
|
|
id: string;
|
|
|
|
isLocked: boolean;
|
|
|
|
projectId: string;
|
|
|
|
tagIds: string[];
|
|
|
|
taskId: string;
|
|
|
|
timeInterval: ITimeIntervalDto;
|
|
|
|
userId: string;
|
|
|
|
workspaceId: string;
|
|
|
|
}
|