import type { Mission } from '@/types/mission'

const NOW = new Date().toISOString()

export const MISSIONS: Mission[] = [
  {
    id: 'M01', name: 'A 区送料 #1', typeName: 'SimpleLite.RCS.Missions.MoveMission',
    priority: 50, status: 'running', carId: 'C01', createdAt: NOW,
    steps: [
      { id: 'S1', action: 'pickup', targetSiteId: 'S001', status: 'completed' },
      { id: 'S2', action: 'transport', targetSiteId: 'S002', status: 'running' },
      { id: 'S3', action: 'dropoff', targetSiteId: 'S002', status: 'queued' }
    ]
  },
  {
    id: 'M02', name: 'A→B 缓存搬运', typeName: 'SimpleLite.RCS.Missions.MoveMission',
    priority: 60, status: 'running', carId: 'C02', createdAt: NOW,
    steps: [
      { id: 'S1', action: 'pickup', targetSiteId: 'S002', status: 'completed' },
      { id: 'S2', action: 'transport', targetSiteId: 'S003', status: 'running' }
    ]
  },
  {
    id: 'M03', name: 'B 区工位 W1 投料', typeName: 'SimpleLite.RCS.Missions.MoveMission',
    priority: 70, status: 'queued', createdAt: NOW,
    steps: [
      { id: 'S1', action: 'pickup', targetSiteId: 'S003', status: 'queued' },
      { id: 'S2', action: 'transport', targetSiteId: 'S008', status: 'queued' }
    ]
  },
  {
    id: 'M04', name: 'W2→维护检修', typeName: 'SimpleLite.RCS.Missions.MaintenanceMission',
    priority: 30, status: 'paused', carId: 'C05', createdAt: NOW,
    steps: [
      { id: 'S1', action: 'goto', targetSiteId: 'S010', status: 'paused' }
    ]
  }
]
