import { ObjectId } from 'bson';
import { Fleet, FleetLog } from '../lib/spvtms';

export const fleets: Fleet[] = [
  {
    _id: new ObjectId('66d5a450b5d04426b0a00001'),
    fleetId: 'LD8921',
    deviceType: 'Car',
    status: ['CONNECTED'],
    occupation: [],
    OBUId: '1',
    remark: 'remark',
    createdAt: new Date(),
    updatedAt: new Date(),
  },
];

export const fleetsLog: FleetLog[] = [
  {
    _id: new ObjectId('66d5a450b5d04426b0a00001'),
    fleetId: 'LD8921',
    updatedTime: new Date(),
    status: 'CONNECTED',
    geometry: {
      type: 'Point',
      coordinates: [12702759.716221416, 2552701.960793532],
    },
    heading: 0,
    speed: 0,
    power: '100%',
    raw: {
      status: 'CONNECTED',
      heading: 0,
      speed: 0,
      power: '100%',
      id: '1',
      area_id: '1',
      update_time: new Date().toISOString(),
      device_type: 'Car',
      position: {
        latitude: 12702759.716221416,
        longitude: 2552701.960793532,
        ele: 0,
      },
      video_status: '1',
      network_delay: '100',
      pos_type: '1',
      pos_quality: '1',
    },
    createdAt: new Date(),
  },
];

// export const cars: Car[] = [
//   {
//     spvId: 'LD8921',
//     driver: drivers[0],
//     batteryLevel: 'High',
//     connectionStatus: '15/15',
//     status: CarStatus.Accepted,
//     brand: 'Volvo',
//     model: 'Model X',
//     fuelType: 'Electric',
//     lastInspected: '1/1/2022',
//     carType: 'Shadow Vehicle',
//     image: ShadowVehicle,
//     jobId: '0001',
//     location: [12702759.716221416, 2552701.960793532],
//   },
//   {
//     spvId: 'LD8922',
//     driver: drivers[1],
//     batteryLevel: 'High',
//     connectionStatus: '15/15',
//     status: CarStatus.Accepted,
//     brand: 'Toyota',
//     model: 'Corolla',
//     fuelType: 'Petrol',
//     lastInspected: '1/1/2022',
//     carType: 'Works Vehicle',
//     image: WorksVehicle,
//     jobId: '0001',
//     location: [12702739.061468052, 2552654.0347244726],
//   },
//   {
//     spvId: 'LD8923',
//     driver: drivers[2],
//     batteryLevel: 'Middle',
//     connectionStatus: '15/15',
//     status: CarStatus.Accepted,
//     brand: 'Honda',
//     model: 'Civic',
//     fuelType: 'Diesel',
//     lastInspected: '1/1/2022',
//     carType: 'Shadow Vehicle',
//     image: ShadowVehicle,
//     jobId: '0002',
//     location: [12718934.419335028, 2548273.2557346974],
//   },
// ];
