175 lines
6.6 KiB
TypeScript
175 lines
6.6 KiB
TypeScript
|
|
import { PriorityEnum } from "../types/common";
|
|||
|
|
import {
|
|||
|
|
CrmActivity,
|
|||
|
|
CrmActivityTypeEnum,
|
|||
|
|
ActivityStatusEnum,
|
|||
|
|
} from "../types/crm";
|
|||
|
|
import { mockBusinessParties } from "./mockBusinessParties";
|
|||
|
|
import { mockEmployees } from "./mockEmployees";
|
|||
|
|
|
|||
|
|
export const mockActivities: CrmActivity[] = [
|
|||
|
|
{
|
|||
|
|
id: "act_001",
|
|||
|
|
activityType: CrmActivityTypeEnum.Call,
|
|||
|
|
subject: "Teklif Görüşmesi - ABC Şirketi",
|
|||
|
|
description: "Yeni proje için teklif sunumu ve fiyat görüşmesi yapılacak.",
|
|||
|
|
customerId: "6",
|
|||
|
|
customer: mockBusinessParties.find((cust) => cust.id === "6"),
|
|||
|
|
activityDate: new Date("2024-01-25T10:00:00"),
|
|||
|
|
startTime: new Date("2024-01-25T10:00:00"),
|
|||
|
|
endTime: new Date("2024-01-25T11:00:00"),
|
|||
|
|
duration: 60,
|
|||
|
|
assignedTo: "1",
|
|||
|
|
assigned: mockEmployees.find((emp) => emp.id === "1"),
|
|||
|
|
participants: ["3", "2"],
|
|||
|
|
status: ActivityStatusEnum.Planned,
|
|||
|
|
priority: PriorityEnum.High,
|
|||
|
|
followUpDate: new Date("2024-01-30"),
|
|||
|
|
followUpActivity: "Teklif cevabı takip edilecek",
|
|||
|
|
creationTime: new Date("2024-01-20T09:00:00"),
|
|||
|
|
lastModificationTime: new Date("2024-01-20T09:00:00"),
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "act_002",
|
|||
|
|
activityType: CrmActivityTypeEnum.Meeting,
|
|||
|
|
subject: "Proje Kickoff Toplantısı",
|
|||
|
|
description: "XYZ projesi için başlangıç toplantısı düzenlenecek.",
|
|||
|
|
customerId: "5",
|
|||
|
|
customer: mockBusinessParties.find((cust) => cust.id === "5"),
|
|||
|
|
activityDate: new Date("2024-01-24T14:00:00"),
|
|||
|
|
startTime: new Date("2024-01-24T14:00:00"),
|
|||
|
|
endTime: new Date("2024-01-24T16:00:00"),
|
|||
|
|
duration: 120,
|
|||
|
|
assignedTo: "2",
|
|||
|
|
assigned: mockEmployees.find((emp) => emp.id === "2"),
|
|||
|
|
participants: ["3", "2", "4"],
|
|||
|
|
status: ActivityStatusEnum.Completed,
|
|||
|
|
priority: PriorityEnum.Normal,
|
|||
|
|
outcome: "Proje kapsamı netleştirildi ve görev dağılımı yapıldı.",
|
|||
|
|
nextSteps: "Detaylı proje planı hazırlanacak.",
|
|||
|
|
creationTime: new Date("2024-01-18T11:30:00"),
|
|||
|
|
lastModificationTime: new Date("2024-01-24T16:15:00"),
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "act_003",
|
|||
|
|
activityType: CrmActivityTypeEnum.Email,
|
|||
|
|
subject: "Ürün Katalogu Gönderimi",
|
|||
|
|
description:
|
|||
|
|
"Müşteriye güncel ürün katalogu ve fiyat listesi e-posta ile gönderildi.",
|
|||
|
|
customerId: "5",
|
|||
|
|
customer: mockBusinessParties.find((cust) => cust.id === "5"),
|
|||
|
|
activityDate: new Date("2024-01-23T09:30:00"),
|
|||
|
|
duration: 15,
|
|||
|
|
assignedTo: "3",
|
|||
|
|
assigned: mockEmployees.find((emp) => emp.id === "3"),
|
|||
|
|
participants: [],
|
|||
|
|
status: ActivityStatusEnum.Completed,
|
|||
|
|
priority: PriorityEnum.Low,
|
|||
|
|
outcome: "Katalog başarıyla gönderildi, müşteri geri dönüş yaptı.",
|
|||
|
|
creationTime: new Date("2024-01-23T09:15:00"),
|
|||
|
|
lastModificationTime: new Date("2024-01-23T09:45:00"),
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "act_004",
|
|||
|
|
activityType: CrmActivityTypeEnum.Demo,
|
|||
|
|
subject: "Yazılım Demo Sunumu",
|
|||
|
|
description:
|
|||
|
|
"ERP sisteminin demo sunumu müşteri lokasyonunda gerçekleştirilecek.",
|
|||
|
|
customerId: "5",
|
|||
|
|
customer: mockBusinessParties.find((cust) => cust.id === "5"),
|
|||
|
|
activityDate: new Date("2024-01-26T13:00:00"),
|
|||
|
|
startTime: new Date("2024-01-26T13:00:00"),
|
|||
|
|
endTime: new Date("2024-01-26T15:00:00"),
|
|||
|
|
duration: 120,
|
|||
|
|
assignedTo: "4",
|
|||
|
|
assigned: mockEmployees.find((emp) => emp.id === "4"),
|
|||
|
|
participants: ["5", "10"],
|
|||
|
|
status: ActivityStatusEnum.InProgress,
|
|||
|
|
priority: PriorityEnum.High,
|
|||
|
|
followUpDate: new Date("2024-01-29"),
|
|||
|
|
followUpActivity: "Demo sonrası müşteri geri bildirimlerini al",
|
|||
|
|
creationTime: new Date("2024-01-19T16:00:00"),
|
|||
|
|
lastModificationTime: new Date("2024-01-22T10:30:00"),
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "act_005",
|
|||
|
|
activityType: CrmActivityTypeEnum.Task,
|
|||
|
|
subject: "Müşteri Memnuniyet Anketi",
|
|||
|
|
description:
|
|||
|
|
"Proje teslimi sonrası müşteri memnuniyet anketi düzenlenecek.",
|
|||
|
|
customerId: "6",
|
|||
|
|
customer: mockBusinessParties.find((cust) => cust.id === "6"),
|
|||
|
|
activityDate: new Date("2024-01-28T10:00:00"),
|
|||
|
|
duration: 30,
|
|||
|
|
assignedTo: "5",
|
|||
|
|
assigned: mockEmployees.find((emp) => emp.id === "5"),
|
|||
|
|
participants: [],
|
|||
|
|
status: ActivityStatusEnum.Planned,
|
|||
|
|
priority: PriorityEnum.Normal,
|
|||
|
|
followUpDate: new Date("2024-02-05"),
|
|||
|
|
followUpActivity: "Anket sonuçlarını değerlendir ve rapor hazırla",
|
|||
|
|
creationTime: new Date("2024-01-21T14:20:00"),
|
|||
|
|
lastModificationTime: new Date("2024-01-21T14:20:00"),
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "act_006",
|
|||
|
|
activityType: CrmActivityTypeEnum.Note,
|
|||
|
|
subject: "Müşteri Taleplerini Değerlendirme",
|
|||
|
|
description:
|
|||
|
|
"Müşterinin ek özellik talepleri not alındı ve teknik ekiple paylaşıldı.",
|
|||
|
|
customerId: "6",
|
|||
|
|
customer: mockBusinessParties.find((cust) => cust.id === "6"),
|
|||
|
|
activityDate: new Date("2024-01-22T15:45:00"),
|
|||
|
|
assignedTo: "6",
|
|||
|
|
assigned: mockEmployees.find((emp) => emp.id === "6"),
|
|||
|
|
participants: [],
|
|||
|
|
status: ActivityStatusEnum.Completed,
|
|||
|
|
priority: PriorityEnum.Normal,
|
|||
|
|
outcome:
|
|||
|
|
"Talepler teknik ekiple değerlendirildi, uygulama planı oluşturuldu.",
|
|||
|
|
nextSteps: "Müşteriye geri dönüş yapılacak ve timeline paylaşılacak.",
|
|||
|
|
creationTime: new Date("2024-01-22T15:30:00"),
|
|||
|
|
lastModificationTime: new Date("2024-01-22T16:00:00"),
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "act_007",
|
|||
|
|
activityType: CrmActivityTypeEnum.Proposal,
|
|||
|
|
subject: "Yıllık Bakım Sözleşmesi Teklifi",
|
|||
|
|
description:
|
|||
|
|
"Sistemin yıllık bakım ve destek hizmetleri için teklif hazırlandı.",
|
|||
|
|
customerId: "5",
|
|||
|
|
customer: mockBusinessParties.find((cust) => cust.id === "5"),
|
|||
|
|
activityDate: new Date("2024-01-27T11:00:00"),
|
|||
|
|
duration: 45,
|
|||
|
|
assignedTo: "7",
|
|||
|
|
assigned: mockEmployees.find((emp) => emp.id === "7"),
|
|||
|
|
participants: ["7"],
|
|||
|
|
status: ActivityStatusEnum.Planned,
|
|||
|
|
priority: PriorityEnum.Normal,
|
|||
|
|
followUpDate: new Date("2024-02-03"),
|
|||
|
|
followUpActivity: "Teklif sunumu yapılacak",
|
|||
|
|
creationTime: new Date("2024-01-24T09:30:00"),
|
|||
|
|
lastModificationTime: new Date("2024-01-24T09:30:00"),
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "act_008",
|
|||
|
|
activityType: CrmActivityTypeEnum.Call,
|
|||
|
|
subject: "Ödeme Planı Görüşmesi",
|
|||
|
|
description:
|
|||
|
|
"Projenin ödeme planı ve faturalandırma detayları görüşülecek.",
|
|||
|
|
customerId: "5",
|
|||
|
|
customer: mockBusinessParties.find((cust) => cust.id === "5"),
|
|||
|
|
activityDate: new Date("2024-01-29T09:00:00"),
|
|||
|
|
startTime: new Date("2024-01-29T09:00:00"),
|
|||
|
|
endTime: new Date("2024-01-29T09:30:00"),
|
|||
|
|
duration: 30,
|
|||
|
|
assignedTo: "8",
|
|||
|
|
assigned: mockEmployees.find((emp) => emp.id === "8"),
|
|||
|
|
participants: [],
|
|||
|
|
status: ActivityStatusEnum.Planned,
|
|||
|
|
priority: PriorityEnum.High,
|
|||
|
|
creationTime: new Date("2024-01-25T13:15:00"),
|
|||
|
|
lastModificationTime: new Date("2024-01-25T13:15:00"),
|
|||
|
|
},
|
|||
|
|
];
|