2021-09-03 10:03:15 -07:00
|
|
|
import {
|
|
|
|
IHourlyRateDto,
|
|
|
|
IMembershipDto,
|
|
|
|
} from './CommonDtos';
|
2020-10-04 07:28:05 -07:00
|
|
|
|
|
|
|
enum EstimateEnum {
|
2021-01-13 11:20:30 -08:00
|
|
|
AUTO = 'AUTO',
|
|
|
|
MANUAL = 'MANUAL',
|
2020-10-04 07:28:05 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
interface IEstimateDto {
|
|
|
|
estimate: string;
|
|
|
|
type: EstimateEnum;
|
|
|
|
}
|
|
|
|
|
2020-10-04 07:32:12 -07:00
|
|
|
export interface IProjectDto {
|
2020-10-04 07:28:05 -07:00
|
|
|
archived: boolean;
|
|
|
|
billable: boolean;
|
|
|
|
clientId: string;
|
|
|
|
clientName: string | undefined;
|
|
|
|
color: string;
|
|
|
|
duration: string | undefined;
|
|
|
|
estimate: IEstimateDto | undefined;
|
|
|
|
hourlyRate: IHourlyRateDto | undefined;
|
|
|
|
id: string;
|
|
|
|
memberships: IMembershipDto[] | undefined;
|
|
|
|
name: string;
|
|
|
|
isPublic: boolean;
|
|
|
|
workspaceId: string;
|
|
|
|
note: string | undefined;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IProjectRequest {
|
|
|
|
name: string;
|
|
|
|
clientId: string;
|
|
|
|
isPublic: boolean;
|
|
|
|
estimate: IEstimateDto;
|
|
|
|
color: string;
|
|
|
|
note: string;
|
|
|
|
billable: boolean;
|
|
|
|
hourlyRate: IHourlyRateDto;
|
|
|
|
memberships: IMembershipDto;
|
|
|
|
tasks: ITaskDto;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum TaskStatusEnum {
|
|
|
|
ACTIVE = 'ACTIVE',
|
2020-10-22 06:46:03 -07:00
|
|
|
DONE = 'DONE',
|
2020-10-04 07:28:05 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ITaskDto {
|
|
|
|
assigneeIds: object;
|
|
|
|
estimate: string;
|
|
|
|
id: string;
|
|
|
|
name: string;
|
|
|
|
projectId: string;
|
|
|
|
status: TaskStatusEnum;
|
2021-09-03 10:03:15 -07:00
|
|
|
'is-active': boolean;
|
2020-10-04 07:28:05 -07:00
|
|
|
}
|