@autofleet/node-common 1.2.2 → 1.2.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/node-common",
3
- "version": "1.2.2",
3
+ "version": "1.2.5",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "coverage": "jest --coverage --forceExit --runInBand",
package/router/index.js CHANGED
@@ -12,6 +12,7 @@ const METHODS = [
12
12
  'head',
13
13
  ];
14
14
 
15
+ // eslint-disable-next-line consistent-return
15
16
  const AfEntryPoint = func => async (req, res, next) => {
16
17
  try {
17
18
  await func(req, res, next);
package/settings/map.js CHANGED
@@ -367,4 +367,25 @@ module.exports = {
367
367
  defaultValue: '["00:00","01:00","02:00","03:00","04:00","05:00","06:00","07:00","08:00","09:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00"]',
368
368
  context: 'demand prediction',
369
369
  },
370
+ UPDATE_STOP_POINTS_DISTANCE_THRESHOLD: {
371
+ name: 'Maximum distance between original and updated stop points of a ride',
372
+ description: 'Threshold in kilimeters for limiting the distance between the original ride stop points and the updated ones',
373
+ type: 'number',
374
+ defaultValue: 500,
375
+ context: 'matching',
376
+ },
377
+ LOGIN_VERIFICATION_SMS_TEXT: {
378
+ name: 'Verification SMS text',
379
+ description: 'Verification text for driver app login',
380
+ type: 'string',
381
+ defaultValue: 'Your Autofleet code is',
382
+ context: 'driver app',
383
+ },
384
+ VEHICLE_LOCK_TIME_FOR_OFFER: {
385
+ name: 'Offer lock time',
386
+ description: 'Time in seconds to lock vehicle for offer',
387
+ type: 'number',
388
+ defaultValue: 180,
389
+ context: 'ride',
390
+ },
370
391
  };