132 lines
4.1 KiB
TypeScript
132 lines
4.1 KiB
TypeScript
import { SecurityLevelEnum } from "../types/mrp";
|
||
import { WmWarehouse, WarehouseTypeEnum } from "../types/wm";
|
||
import { mockLocations } from "./mockLocations";
|
||
import { mockZones } from "./mockZones";
|
||
|
||
export const mockWarehouses: WmWarehouse[] = [
|
||
{
|
||
id: "1",
|
||
code: "WH001",
|
||
name: "Ana Hammadde Deposu",
|
||
description: "Üretim için gerekli hammaddelerin depolandığı ana depo",
|
||
address: {
|
||
street: "Organize Sanayi Bölgesi 1. Cadde No: 15",
|
||
city: "İstanbul",
|
||
state: "İstanbul",
|
||
postalCode: "34000",
|
||
country: "Türkiye",
|
||
},
|
||
warehouseType: WarehouseTypeEnum.RawMaterials,
|
||
zones: mockZones.filter((zone) => zone.warehouseId === "1"),
|
||
locations: mockLocations.filter((location) => location.warehouseId === "1"),
|
||
isMainWarehouse: true,
|
||
capacity: 5000,
|
||
currentUtilization: 0,
|
||
isActive: true,
|
||
temperatureControlled: false,
|
||
managerId: 1,
|
||
securityLevel: SecurityLevelEnum.Medium,
|
||
creationTime: new Date(),
|
||
lastModificationTime: new Date(),
|
||
},
|
||
{
|
||
id: "2",
|
||
code: "WH002",
|
||
name: "Mamul Deposu",
|
||
description: "Üretimi tamamlanmış mamullerin depolandığı alan",
|
||
address: {
|
||
street: "Organize Sanayi Bölgesi 1. Cadde No: 15",
|
||
city: "İstanbul",
|
||
state: "İstanbul",
|
||
postalCode: "34000",
|
||
country: "Türkiye",
|
||
},
|
||
warehouseType: WarehouseTypeEnum.FinishedGoods,
|
||
zones: mockZones.filter((zone) => zone.warehouseId === "2"),
|
||
locations: mockLocations.filter((location) => location.warehouseId === "2"),
|
||
isMainWarehouse: false,
|
||
capacity: 3000,
|
||
isActive: true,
|
||
currentUtilization: 0,
|
||
temperatureControlled: false,
|
||
managerId: 1,
|
||
securityLevel: SecurityLevelEnum.Medium,
|
||
creationTime: new Date(),
|
||
lastModificationTime: new Date(),
|
||
},
|
||
{
|
||
id: "3",
|
||
code: "WH003",
|
||
name: "Ara Ürün Deposu",
|
||
description: "İşlenmiş ara ürünlerin geçici depolandığı alan",
|
||
address: {
|
||
street: "Organize Sanayi Bölgesi 1. Cadde No: 15",
|
||
city: "İstanbul",
|
||
state: "İstanbul",
|
||
postalCode: "34000",
|
||
country: "Türkiye",
|
||
},
|
||
warehouseType: WarehouseTypeEnum.WorkInProgress,
|
||
zones: mockZones.filter((zone) => zone.warehouseId === "3"),
|
||
locations: mockLocations.filter((location) => location.warehouseId === "3"),
|
||
isMainWarehouse: false,
|
||
capacity: 1500,
|
||
isActive: true,
|
||
currentUtilization: 0,
|
||
managerId: 2,
|
||
securityLevel: SecurityLevelEnum.High,
|
||
temperatureControlled: false,
|
||
creationTime: new Date(),
|
||
lastModificationTime: new Date(),
|
||
},
|
||
{
|
||
id: "4",
|
||
code: "WH004",
|
||
name: "Karantina Deposu",
|
||
description: "Kalite kontrolü bekleyen ürünlerin depolandığı alan",
|
||
address: {
|
||
street: "Organize Sanayi Bölgesi 1. Cadde No: 15",
|
||
city: "İstanbul",
|
||
state: "İstanbul",
|
||
postalCode: "34000",
|
||
country: "Türkiye",
|
||
},
|
||
warehouseType: WarehouseTypeEnum.Quarantine,
|
||
zones: mockZones.filter((zone) => zone.warehouseId === "4"),
|
||
locations: mockLocations.filter((location) => location.warehouseId === "4"),
|
||
isMainWarehouse: true,
|
||
capacity: 500,
|
||
isActive: true,
|
||
temperatureControlled: false,
|
||
currentUtilization: 0,
|
||
managerId: 3,
|
||
securityLevel: SecurityLevelEnum.Low,
|
||
creationTime: new Date(),
|
||
lastModificationTime: new Date(),
|
||
},
|
||
{
|
||
id: "5",
|
||
code: "WH005",
|
||
name: "İade Deposu",
|
||
description: "Müşterilerden dönen ürünlerin depolandığı alan",
|
||
address: {
|
||
street: "Organize Sanayi Bölgesi 1. Cadde No: 15",
|
||
city: "İstanbul",
|
||
state: "İstanbul",
|
||
postalCode: "34000",
|
||
country: "Türkiye",
|
||
},
|
||
warehouseType: WarehouseTypeEnum.Returns,
|
||
zones: mockZones.filter((zone) => zone.warehouseId === "5"),
|
||
locations: mockLocations.filter((location) => location.warehouseId === "5"),
|
||
isMainWarehouse: true,
|
||
capacity: 800,
|
||
isActive: true,
|
||
temperatureControlled: false,
|
||
currentUtilization: 0,
|
||
managerId: 4,
|
||
securityLevel: SecurityLevelEnum.Restricted,
|
||
creationTime: new Date(),
|
||
lastModificationTime: new Date(),
|
||
},
|
||
];
|