lml-main
Version:
This is now a mono repository published into many standalone packages.
92 lines • 2.96 kB
JavaScript
// import * as CouriersData from '@lml/cosmo-ts-data'
// import * as JobsData from '@lml/cosmo-ts-data'
// import * as moment from 'moment'
// export const mkTestCourier = (refId: string): CouriersData.CourierModel =>
// ({
// allocated: {},
// accepted: {},
// rejected: {},
// progress: {},
// completed: {},
// uiExt: mkUiExt(),
// ext: mkExt(),
// manualAllocationOnly: false,
// metadata: {
// contacts: {
// addresses: [],
// phone: '01273 000000',
// mobile: '07883039988',
// position: null,
// },
// vehicle: {
// colour: 'blue',
// code: 'TEST',
// description: 'Test vehicle',
// regoNumber: 'A123B123',
// // type: "VAN",
// // inspectionDueDate: "2017-03-01",
// make: 'Ford',
// // group: {
// // code: "TEST_01",
// // description: "Test Vehicle Group"
// // }
// },
// },
// showCourier: true,
// status: {
// Status: 'TEST_CSTATUS',
// SetAt: '2017-02-10',
// },
// lastName: 'Surname',
// label: {
// label: 'LABEL',
// },
// refId,
// createdAt: '2017-01-01',
// attributes: {
// GDP: 'GDP',
// PRO: 'PRO',
// },
// vehicleType: 'VAN',
// firstName: 'James',
// updatedAt: '2017-02-10',
// assignment: {
// assignedAt: null,
// callsign: null,
// courier: null,
// refId: null,
// serviceCentre: null,
// },
// })
// const mkExt = (): CouriersData.CourierExtModel =>
// ({
// watchRoute: false,
// watchJobs: false,
// })
// const mkUiExt = (): CouriersData.CourierUIExtModel =>
// ({
// visible: false,
// dragEnterCount: 0,
// showAllocated: false,
// showOnMap: false,
// })
// export const mkTestCouriers = (ids: string[]): CouriersData.CourierModel[] =>
// ids.map((c) => mkTestCourier(c))
// export const mkCourierRouteData = (refId: string): CouriersData.CourierRouteModel =>
// ({
// courierId: refId,
// courierLocation: null,
// courierStops: null,
// isCvr: false,
// })
// export const mkCourierLocation = (refId: string): CouriersData.CourierLocationModel =>
// ({
// objectId: refId,
// refId,
// position: null,
// timestamp: null,
// velocityKph: 0,
// })
// export const mkTestCourierLocations = (ids: string[]): CouriersData.CourierLocationModel[] =>
// ids.map((c) => mkCourierLocation(c))
//# sourceMappingURL=couriers-dummy-data.js.map