57 lines
1.7 KiB
TypeScript
57 lines
1.7 KiB
TypeScript
|
|
import {
|
|||
|
|
LeadSourceEnum,
|
|||
|
|
CrmOpportunity,
|
|||
|
|
OpportunityStageEnum,
|
|||
|
|
OpportunityStatusEnum,
|
|||
|
|
} from "../types/crm";
|
|||
|
|
import { mockBusinessParties } from "./mockBusinessParties";
|
|||
|
|
import { mockEmployees } from "./mockEmployees";
|
|||
|
|
import { mockLossReasons } from "./mockLossReasons";
|
|||
|
|
|
|||
|
|
export const mockOpportunities: CrmOpportunity[] = [
|
|||
|
|
{
|
|||
|
|
id: "opp1",
|
|||
|
|
opportunityNumber: "OPP-2024-001",
|
|||
|
|
title: "ABC Şirketi Yazılım Projesi",
|
|||
|
|
customerId: "5",
|
|||
|
|
customer: mockBusinessParties.find((c) => c.id === "5"),
|
|||
|
|
stage: OpportunityStageEnum.ClosedLost,
|
|||
|
|
probability: 0,
|
|||
|
|
estimatedValue: 150000,
|
|||
|
|
currency: "TRY",
|
|||
|
|
expectedCloseDate: new Date("2024-03-15"),
|
|||
|
|
assignedTo: "1",
|
|||
|
|
assigned: mockEmployees.find((e) => e.id === "1"),
|
|||
|
|
leadSource: LeadSourceEnum.Website,
|
|||
|
|
status: OpportunityStatusEnum.Lost,
|
|||
|
|
lostReason: mockLossReasons[0],
|
|||
|
|
activities: [],
|
|||
|
|
quotes: [],
|
|||
|
|
competitors: [],
|
|||
|
|
creationTime: new Date("2024-01-10"),
|
|||
|
|
lastModificationTime: new Date("2024-03-15"),
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "opp2",
|
|||
|
|
opportunityNumber: "OPP-2024-002",
|
|||
|
|
title: "XYZ Kurumu ERP Sistemi",
|
|||
|
|
customerId: "6",
|
|||
|
|
customer: mockBusinessParties.find((c) => c.id === "6"),
|
|||
|
|
stage: OpportunityStageEnum.ClosedLost,
|
|||
|
|
probability: 0,
|
|||
|
|
estimatedValue: 300000,
|
|||
|
|
currency: "TRY",
|
|||
|
|
expectedCloseDate: new Date("2024-04-20"),
|
|||
|
|
assignedTo: "2",
|
|||
|
|
assigned: mockEmployees.find((e) => e.id === "2"),
|
|||
|
|
leadSource: LeadSourceEnum.Referral,
|
|||
|
|
status: OpportunityStatusEnum.Lost,
|
|||
|
|
lostReason: mockLossReasons[1],
|
|||
|
|
activities: [],
|
|||
|
|
quotes: [],
|
|||
|
|
competitors: [],
|
|||
|
|
creationTime: new Date("2024-02-05"),
|
|||
|
|
lastModificationTime: new Date("2024-04-20"),
|
|||
|
|
},
|
|||
|
|
];
|