85 lines
2.7 KiB
TypeScript
85 lines
2.7 KiB
TypeScript
import { PriorityEnum } from "../types/common";
|
||
import { PsProjectTask, TaskStatusEnum, TaskTypeEnum } from "../types/ps";
|
||
import { mockEmployees } from "./mockEmployees";
|
||
import { mockProjectPhases } from "./mockProjectPhases";
|
||
|
||
export const mockProjectTasks: PsProjectTask[] = [
|
||
{
|
||
id: "1",
|
||
projectId: "1",
|
||
phaseId: "1",
|
||
phase: mockProjectPhases.find((phase) => phase.id === "1"),
|
||
taskCode: "TSK-001",
|
||
name: "Veritabanı Tasarımı",
|
||
description: "ERP sistemi için veritabanı şemasının tasarlanması",
|
||
taskType: TaskTypeEnum.Development,
|
||
status: TaskStatusEnum.InProgress,
|
||
priority: PriorityEnum.High,
|
||
assignedTo: "1",
|
||
assignee: mockEmployees.find((emp) => emp.id === "1"),
|
||
startDate: new Date("2024-01-15"),
|
||
endDate: new Date("2024-02-15"),
|
||
actualStartDate: new Date("2024-01-16"),
|
||
actualEndDate: undefined,
|
||
estimatedHours: 80,
|
||
actualHours: 45,
|
||
progress: 60,
|
||
activities: [],
|
||
comments: [],
|
||
isActive: true,
|
||
creationTime: new Date("2024-01-10"),
|
||
lastModificationTime: new Date("2024-01-20"),
|
||
},
|
||
{
|
||
id: "2",
|
||
projectId: "1",
|
||
phaseId: "1",
|
||
phase: mockProjectPhases.find((phase) => phase.id === "1"),
|
||
taskCode: "TSK-002",
|
||
name: "API Dokümantasyonu",
|
||
description: "REST API endpoints dokümantasyonunun hazırlanması",
|
||
taskType: TaskTypeEnum.Documentation,
|
||
status: TaskStatusEnum.NotStarted,
|
||
priority: PriorityEnum.Normal,
|
||
assignedTo: "2",
|
||
assignee: mockEmployees.find((emp) => emp.id === "2"),
|
||
startDate: new Date("2024-02-01"),
|
||
endDate: new Date("2024-02-20"),
|
||
actualStartDate: undefined,
|
||
actualEndDate: undefined,
|
||
estimatedHours: 40,
|
||
actualHours: 0,
|
||
progress: 0,
|
||
activities: [],
|
||
comments: [],
|
||
isActive: true,
|
||
creationTime: new Date("2024-01-25"),
|
||
lastModificationTime: new Date("2024-01-25"),
|
||
},
|
||
{
|
||
id: "3",
|
||
projectId: "2",
|
||
phaseId: "2",
|
||
phase: mockProjectPhases.find((phase) => phase.id === "2"),
|
||
taskCode: "TSK-003",
|
||
name: "Unit Test Yazımı",
|
||
description: "Backend servisler için unit testlerin yazılması",
|
||
taskType: TaskTypeEnum.Testing,
|
||
status: TaskStatusEnum.Completed,
|
||
priority: PriorityEnum.High,
|
||
assignedTo: "3",
|
||
assignee: mockEmployees.find((emp) => emp.id === "3"),
|
||
startDate: new Date("2024-01-20"),
|
||
endDate: new Date("2024-02-10"),
|
||
actualStartDate: new Date("2024-01-20"),
|
||
actualEndDate: new Date("2024-02-08"),
|
||
estimatedHours: 60,
|
||
actualHours: 58,
|
||
progress: 100,
|
||
activities: [],
|
||
comments: [],
|
||
isActive: true,
|
||
creationTime: new Date("2024-01-15"),
|
||
lastModificationTime: new Date("2024-02-08"),
|
||
},
|
||
];
|