fleetmap-reports 1.0.551 → 1.0.553

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lang/esCL.js CHANGED
@@ -171,7 +171,7 @@ module.exports = {
171
171
  titleLocationReport: 'Informe de Posiciones',
172
172
  titleSpeedingReport: 'Informe de Excesos de Velocidad',
173
173
  titleZoneReport: 'Informe de Zonas',
174
- titleRefuelingReport: 'Informe de Cargas',
174
+ titleRefuelingReport: 'Informe de Repostajes',
175
175
  titleFuelConsumptionReport: 'Informe de Consumos',
176
176
  titleFuelDropReport: 'Fuel Drop Report',
177
177
  titleEventsReport: 'Informe de Eventos',
@@ -220,7 +220,7 @@ module.exports = {
220
220
  engineHours: 'Utilización (HH:mm)',
221
221
  totalEngineHours: 'Utilización Total (H:m)',
222
222
  driverHours: 'Tiempo de Conducción (H:m)',
223
- refueling: 'Cargas',
223
+ refueling: 'Repostajes',
224
224
  fueldrop: 'Combustível Perdido (L)',
225
225
  totalRefueled: 'Total Cargado',
226
226
  totalFuelDrops: 'Total Fuel Drops',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "1.0.551",
3
+ "version": "1.0.553",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/index.test.js CHANGED
@@ -41,7 +41,7 @@ describe('Test_Reports', function () {
41
41
  const userData = await report.getUserData()
42
42
  userData.roadSpeedLimits = true
43
43
  const { device } = await getSpeedingReport(report, userData)
44
- assert.equal(device.alerts.length, 103) // Total Alerts
44
+ assert.equal(device.alerts.length, 104) // Total Alerts
45
45
  // assert.equal(totalDistance, 36.63687856826021) // Total Kms
46
46
  // assert.equal(totalEventTime, 1524000) // Total Duration
47
47
  }, 200000)
@@ -114,7 +114,7 @@ describe('Test_Reports', function () {
114
114
 
115
115
  assert.equal(data.length, 1)
116
116
  const device = data[0].devices.find(d => d.device.id === 25808)
117
- assert.equal(device.trips.length, 11) // Total Trips
117
+ assert.equal(device.trips.length, 12) // Total Trips
118
118
  console.log(device.trips[0])
119
119
  // assert.equal(device.trips[0].endAddress, 'RS-409, 184-314 - Centro, Vera Cruz - RS, 96880-000, Brazil')
120
120
  assert.equal(device.trips[1].endPOIName, undefined)
@@ -233,7 +233,7 @@ describe('Test_Reports', function () {
233
233
  assert.equal(data.length, 1)
234
234
  assert.equal(data.length, 1)
235
235
  const device = data[0].devices.find(d => d.device.id === 22326)
236
- assert.equal(device.summary.distance, 1183904.0299999565) // Total Kms
236
+ assert.equal(device.summary.distance, 1183950.9299999475) // Total Kms
237
237
  }, 30000)
238
238
  // eslint-disable-next-line no-undef
239
239
  it('KmsReport byDevice groupByDay', async () => {
@@ -292,7 +292,7 @@ describe('Test_Reports', function () {
292
292
  assert.equal(data.length, 1)
293
293
  const device = data[0].devices.find(d => d.device.id === 22326)
294
294
  assert.equal(device.summary[0].startOdometer, 122502742.59)
295
- assert.equal(device.summary[0].distance, 1427444.4699999243)
295
+ assert.equal(device.summary[0].distance, 1427562.359999925)
296
296
  assert.equal(device.summary[0].startTime, '2022-01-01T13:35:47.000+0000')
297
297
  assert.equal(device.summary[0].endTime, '2022-01-31T17:36:27.000+0000')
298
298
  }, 80000)
@@ -127,7 +127,7 @@ async function getAllInOne (
127
127
  }
128
128
  result.push(...(await Promise.all(requests)))
129
129
  }
130
- return result
130
+ return result.flat()
131
131
  }
132
132
 
133
133
  async function processDevices (from, to, devices, drivers, geofences, data) {