@timesheet/sdk
Version:
Official TypeScript SDK for the Timesheet API
60 lines • 1.44 kB
TypeScript
import type { ListParams } from './common';
import type { Project } from './Project';
export interface Todo {
id: string;
name: string;
description?: string;
project?: Project;
status: number;
dueDate?: string;
assignedUsers?: string;
estimatedHours?: number;
estimatedMinutes?: number;
duration?: number;
durationBreak?: number;
salaryTotal?: string;
salaryBreak?: string;
expenses?: string;
expensesPaid?: string;
mileage?: string;
progress?: number;
user?: string;
deleted?: boolean;
created?: number;
lastUpdate?: number;
}
export interface TodoList {
items: Todo[];
params: TodoListParams;
todoStatistic?: {
open: number;
closed: number;
};
}
export interface TodoCreateRequest {
name: string;
description?: string;
projectId: string;
dueDate?: string;
assignedUsers?: string;
estimatedHours?: number;
estimatedMinutes?: number;
}
export interface TodoUpdateRequest {
name?: string;
description?: string;
status?: number;
dueDate?: string;
assignedUsers?: string;
estimatedHours?: number;
estimatedMinutes?: number;
deleted?: boolean;
}
export interface TodoListParams extends ListParams {
projectId?: string;
projectIds?: string[];
status?: 'open' | 'closed';
assignedUsers?: string;
userIds?: string[];
}
//# sourceMappingURL=Todo.d.ts.map