@autofleet/node-common 1.1.68 → 1.1.70

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/settings/map.js +36 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/node-common",
3
- "version": "1.1.68",
3
+ "version": "1.1.70",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "coverage": "jest --coverage --forceExit --runInBand",
package/settings/map.js CHANGED
@@ -55,6 +55,13 @@ module.exports = {
55
55
  defaultValue: 4,
56
56
  context: 'indefleet',
57
57
  },
58
+ INDEFLEET_STRATEGY_NAME: {
59
+ name: 'Indefleet Strategy Name',
60
+ description: 'The name of the strategy to compute the desired state',
61
+ type: 'string',
62
+ defaultValue: 'max',
63
+ context: 'indefleet',
64
+ },
58
65
  // FLEETING_DEMAND_CALCULATION_TIME_MARGIN_MINUTES ??
59
66
  // FLEETING_DEMAND_CALCULATION_INTERVAL, FLEETING_DEMAND_CALCULATION_INTERVALS ??
60
67
  ALLOW_STOP_POINT_OUTSIDE_TERRITORY: {
@@ -114,6 +121,13 @@ module.exports = {
114
121
  defaultValue: 300,
115
122
  context: 'route',
116
123
  },
124
+ LOOK_FOR_ADDRESS: {
125
+ name: 'Should fill missing addresses',
126
+ description: 'If true request from map provider geocode for the stop point',
127
+ type: 'boolean',
128
+ defaultValue: false,
129
+ context: 'route',
130
+ },
117
131
  METERS_FOR_CALC_NEW_ROUTE: {
118
132
  name: 'Meters for re-calculation route',
119
133
  description: 'The distance im meters to recalc the route',
@@ -164,6 +178,27 @@ module.exports = {
164
178
  defaultValue: 0.9,
165
179
  context: 'placement',
166
180
  },
181
+ ENABLE_PLACEMENT: { // TODO: per fleet
182
+ name: 'Enable Placement',
183
+ description: 'Should placement be enabled for the fleet',
184
+ type: 'boolean',
185
+ defaultValue: true,
186
+ context: 'placement',
187
+ },
188
+ PLACEMENT_STRATEGY_NAME: { // TODO: per fleet
189
+ name: 'Placement Strategy Name',
190
+ description: 'The name of the strategy to compute the placement of vehicles',
191
+ type: 'string',
192
+ defaultValue: 'min-fleet-dist-to-fill-close-max-demand-tiles',
193
+ context: 'placement',
194
+ },
195
+ CS_CRON_TIME: {
196
+ name: 'Car Sharing Cron',
197
+ description: 'Car sharing placement interval cron setting',
198
+ type: 'string',
199
+ defaultValue: '0 */12 * * *',
200
+ context: 'placement',
201
+ },
167
202
  DRIVER_MAX_MINUTES_TO_COME_BACK: {
168
203
  name: 'Parking threshold',
169
204
  description: 'Minuets before the end of the shift for vehicles to get parking',
@@ -273,7 +308,7 @@ module.exports = {
273
308
  name: 'Demand prediction time frames',
274
309
  description: 'Demand prediction time frames for fleet',
275
310
  type: 'json',
276
- 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'],
311
+ 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"]',
277
312
  context: 'demand prediction',
278
313
  },
279
314
  };