@sofit/view-locale 1.62.0 → 1.64.0

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.
@@ -1,22 +1,22 @@
1
- <testsuites name="Sofit view locale tests" tests="8" failures="0" time="3.095">
2
- <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2019-08-30T17:22:34" time="2.137" tests="4">
3
- <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.004">
1
+ <testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.745">
2
+ <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2019-09-27T20:20:25" time="1.971" tests="4">
3
+ <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.003">
4
4
  </testcase>
5
- <testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0">
5
+ <testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0.001">
6
6
  </testcase>
7
- <testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0.001">
7
+ <testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0">
8
8
  </testcase>
9
- <testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0">
9
+ <testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0">
10
10
  </testcase>
11
11
  </testsuite>
12
- <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2019-08-30T17:22:34" time="2.291" tests="4">
13
- <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.004">
12
+ <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2019-09-27T20:20:25" time="1.988" tests="4">
13
+ <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.003">
14
14
  </testcase>
15
- <testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0.004">
15
+ <testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0.001">
16
16
  </testcase>
17
- <testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0">
17
+ <testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0">
18
18
  </testcase>
19
- <testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0.001">
19
+ <testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0.001">
20
20
  </testcase>
21
21
  </testsuite>
22
22
  </testsuites>
@@ -69,6 +69,8 @@ import * as vehicle_brand from './modules/vehicle_brand';
69
69
  import * as vehicle_change_history from './modules/vehicle_change_history';
70
70
  import * as vehicle_deactivation_cause from './modules/vehicle_deactivation_cause';
71
71
  import * as vehicle_due from './modules/vehicle_due';
72
+ import * as vehicle_event from './modules/vehicle_event';
73
+ import * as vehicle_event_type from './modules/vehicle_event_type';
72
74
  import * as vehicle_fuel from './modules/vehicle_fuel';
73
75
  import * as vehicle_layout from './modules/vehicle_layout';
74
76
  import * as vehicle_leasing from './modules/vehicle_leasing';
@@ -81,4 +83,4 @@ import * as warehouse from './modules/warehouse';
81
83
  import * as warehouse_item from './modules/warehouse_item';
82
84
  export { joi } from './common/joi';
83
85
  export { databaseErrors } from './common/database-errors';
84
- export { auth, benchmarking, general, inout, pipefy, cash_basis, checklist, checklist_group, checklist_group_item, checklist_group_option, checklist_model, checklist_reply, company, cost_center, cost_sharing, cost_sharing_entity, customer, driver_control, driver_license_point, employee, employee_hiring_regime, employee_role, expense, fine, fine_qualification_integration_key, fine_qualification, fine_resource, foreseen_maintenance_plan_service_item, foreseen_service_order_item, gas_pump_control, gate, gate_appointment, gate_appointment_diary, item, leasing_contract, leasing_measurement, maintenance_plan, maintenance_plan_service, measurement_unit, night_transport, parameter, pendency, qualification_severity, release_notification, request_occurrence, route, service_order, solicitation, solicitation_comment, solicitation_history, solicitation_watcher, stock_transfer, stock_transfer_item, stock_entry_item, sub_system, subsidiary, supplier, system, tire_brand, tire_dimension, tire_drawing, transaction, trip, vehicle, vehicle_axes, vehicle_brand, vehicle_change_history, vehicle_deactivation_cause, vehicle_due, vehicle_fuel, vehicle_layout, vehicle_leasing, vehicle_maintenance_plan, vehicle_maintenance_plan_service, vehicle_model, vehicle_model_version, vehicle_tag, warehouse, warehouse_item, city, state };
86
+ export { auth, benchmarking, general, inout, pipefy, cash_basis, checklist, checklist_group, checklist_group_item, checklist_group_option, checklist_model, checklist_reply, company, cost_center, cost_sharing, cost_sharing_entity, customer, driver_control, driver_license_point, employee, employee_hiring_regime, employee_role, expense, fine, fine_qualification_integration_key, fine_qualification, fine_resource, foreseen_maintenance_plan_service_item, foreseen_service_order_item, gas_pump_control, gate, gate_appointment, gate_appointment_diary, item, leasing_contract, leasing_measurement, maintenance_plan, maintenance_plan_service, measurement_unit, night_transport, parameter, pendency, qualification_severity, release_notification, request_occurrence, route, service_order, solicitation, solicitation_comment, solicitation_history, solicitation_watcher, stock_transfer, stock_transfer_item, stock_entry_item, sub_system, subsidiary, supplier, system, tire_brand, tire_dimension, tire_drawing, transaction, trip, vehicle, vehicle_axes, vehicle_brand, vehicle_change_history, vehicle_deactivation_cause, vehicle_due, vehicle_event, vehicle_event_type, vehicle_fuel, vehicle_layout, vehicle_leasing, vehicle_maintenance_plan, vehicle_maintenance_plan_service, vehicle_model, vehicle_model_version, vehicle_tag, warehouse, warehouse_item, city, state };
@@ -149,6 +149,10 @@ const vehicle_deactivation_cause = __importStar(require("./modules/vehicle_deact
149
149
  exports.vehicle_deactivation_cause = vehicle_deactivation_cause;
150
150
  const vehicle_due = __importStar(require("./modules/vehicle_due"));
151
151
  exports.vehicle_due = vehicle_due;
152
+ const vehicle_event = __importStar(require("./modules/vehicle_event"));
153
+ exports.vehicle_event = vehicle_event;
154
+ const vehicle_event_type = __importStar(require("./modules/vehicle_event_type"));
155
+ exports.vehicle_event_type = vehicle_event_type;
152
156
  const vehicle_fuel = __importStar(require("./modules/vehicle_fuel"));
153
157
  exports.vehicle_fuel = vehicle_fuel;
154
158
  const vehicle_layout = __importStar(require("./modules/vehicle_layout"));
@@ -429,11 +429,15 @@ export declare const fields: {
429
429
  };
430
430
  };
431
431
  export declare const messages: {
432
+ changing_deactivation_date_not_allowed: {
433
+ ptBR: string;
434
+ es: string;
435
+ };
432
436
  cost_center_active: {
433
437
  ptBR: string;
434
438
  es: string;
435
439
  };
436
- supplier_must_be_rental: {
440
+ must_have_at_least_one_fuel_active: {
437
441
  ptBR: string;
438
442
  es: string;
439
443
  };
@@ -441,6 +445,18 @@ export declare const messages: {
441
445
  ptBR: string;
442
446
  es: string;
443
447
  };
448
+ supplier_must_be_rental: {
449
+ ptBR: string;
450
+ es: string;
451
+ };
452
+ vehicle_can_not_be_inactive_or_in_maintenance: {
453
+ ptBR: string;
454
+ es: string;
455
+ };
456
+ wrong_format_plate: {
457
+ ptBR: string;
458
+ es: string;
459
+ };
444
460
  };
445
461
  export declare const enums: {
446
462
  disponibility: {
@@ -452,7 +468,7 @@ export declare const enums: {
452
468
  ptBR: string;
453
469
  es: string;
454
470
  };
455
- 'in_trip': {
471
+ 'in_use': {
456
472
  ptBR: string;
457
473
  es: string;
458
474
  };
@@ -319,17 +319,33 @@ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { license_plate: {
319
319
  es: 'Fecha de inicio del alquiler'
320
320
  } });
321
321
  exports.messages = {
322
+ changing_deactivation_date_not_allowed: {
323
+ ptBR: 'Não é permitido alterar a data de desativação',
324
+ es: 'No se permite cambiar la fecha de desactivación'
325
+ },
322
326
  cost_center_active: {
323
327
  ptBR: 'O centro de custo selecionado deve estar ativo.',
324
328
  es: 'El centro de costo seleccionado debe estar activo.'
325
329
  },
326
- supplier_must_be_rental: {
327
- ptBR: 'O fornecedor não é do tipo locadora',
328
- es: 'El proveedor no es del tipo alquiler'
330
+ must_have_at_least_one_fuel_active: {
331
+ ptBR: 'É necessário ter pelo menos um combustível ativo',
332
+ es: 'Debe tener al menos un combustible activo'
329
333
  },
330
334
  purchased_vehicles: {
331
335
  ptBR: 'O número de veículos contratados já foi atingido, só é possível cadastrar veículos não motorizados. Para adquirir mais veículos e controlar no Sofit View entre em contato com nosso suporte via e-mail <a href=\"mailto:{{email}}\">{{email}}</a>',
332
336
  es: 'El número de vehículos contratados ya ha sido alcanzado, sólo es posible registrar vehículos no motorizados. Para adquirir más vehículos y controlar en el Sofit View, póngase en contacto con nuestro soporte vía e-mail <a href=\"mailto:{{email}}\">{{email}}</a>'
337
+ },
338
+ supplier_must_be_rental: {
339
+ ptBR: 'O fornecedor não é do tipo locadora',
340
+ es: 'El proveedor no es del tipo alquiler'
341
+ },
342
+ vehicle_can_not_be_inactive_or_in_maintenance: {
343
+ ptBR: 'Para alterar a disponibilidade, o veículo não pode estar inativo ou em manutenção',
344
+ es: 'Para cambiar la disponibilidad, el vehículo no debe estar inactivo o en mantenimiento'
345
+ },
346
+ wrong_format_plate: {
347
+ ptBR: 'O número da placa está em um formato não permitido',
348
+ es: 'El número de la placa está en un formato no permitido'
333
349
  }
334
350
  };
335
351
  exports.enums = {
@@ -342,9 +358,9 @@ exports.enums = {
342
358
  ptBR: 'Disponível',
343
359
  es: 'Disponible'
344
360
  },
345
- 'in_trip': {
346
- ptBR: 'Em viagem',
347
- es: 'En viaje'
361
+ 'in_use': {
362
+ ptBR: 'Em uso',
363
+ es: 'En uso'
348
364
  },
349
365
  'in_maintenance': {
350
366
  ptBR: 'Em manutenção',
@@ -0,0 +1,38 @@
1
+ export declare const name: {
2
+ ptBR: string;
3
+ es: string;
4
+ };
5
+ export declare const fields: {
6
+ employees: {
7
+ ptBR: string;
8
+ es: string;
9
+ };
10
+ date: {
11
+ ptBR: string;
12
+ es: string;
13
+ };
14
+ description: {
15
+ ptBR: string;
16
+ es: string;
17
+ };
18
+ vehicle_event_type_id: {
19
+ ptBR: string;
20
+ es: string;
21
+ };
22
+ vehicle_id: {
23
+ ptBR: string;
24
+ es: string;
25
+ };
26
+ name: {
27
+ ptBR: string;
28
+ es: string;
29
+ };
30
+ external_id: {
31
+ ptBR: string;
32
+ es: string;
33
+ };
34
+ id: {
35
+ ptBR: string;
36
+ es: string;
37
+ };
38
+ };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const entity_1 = require("../common/entity");
4
+ exports.name = {
5
+ ptBR: 'Evento do veículo',
6
+ es: 'Evento de vehículo'
7
+ };
8
+ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { employees: {
9
+ ptBR: 'Colaboradores',
10
+ es: 'Colaboradores'
11
+ }, date: {
12
+ ptBR: 'Data',
13
+ es: 'Fecha'
14
+ }, description: {
15
+ ptBR: 'Descrição',
16
+ es: 'Descripción'
17
+ }, vehicle_event_type_id: {
18
+ ptBR: 'Tipo de evento do veículo',
19
+ es: 'Tipo de evento del vehículo'
20
+ }, vehicle_id: {
21
+ ptBR: 'Veículo',
22
+ es: 'Vehículo'
23
+ } });
@@ -0,0 +1,18 @@
1
+ export declare const name: {
2
+ ptBR: string;
3
+ es: string;
4
+ };
5
+ export declare const fields: {
6
+ name: {
7
+ ptBR: string;
8
+ es: string;
9
+ };
10
+ external_id: {
11
+ ptBR: string;
12
+ es: string;
13
+ };
14
+ id: {
15
+ ptBR: string;
16
+ es: string;
17
+ };
18
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const entity_1 = require("../common/entity");
4
+ exports.name = {
5
+ ptBR: 'Tipo de evento do veículo',
6
+ es: 'Tipo de evento del vehículo'
7
+ };
8
+ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON);
@@ -69,6 +69,8 @@ import * as vehicle_brand from './modules/vehicle_brand';
69
69
  import * as vehicle_change_history from './modules/vehicle_change_history';
70
70
  import * as vehicle_deactivation_cause from './modules/vehicle_deactivation_cause';
71
71
  import * as vehicle_due from './modules/vehicle_due';
72
+ import * as vehicle_event from './modules/vehicle_event';
73
+ import * as vehicle_event_type from './modules/vehicle_event_type';
72
74
  import * as vehicle_fuel from './modules/vehicle_fuel';
73
75
  import * as vehicle_layout from './modules/vehicle_layout';
74
76
  import * as vehicle_leasing from './modules/vehicle_leasing';
@@ -153,6 +155,8 @@ export {
153
155
  vehicle_change_history,
154
156
  vehicle_deactivation_cause,
155
157
  vehicle_due,
158
+ vehicle_event,
159
+ vehicle_event_type,
156
160
  vehicle_fuel,
157
161
  vehicle_layout,
158
162
  vehicle_leasing,
@@ -426,17 +426,33 @@ export const fields = {
426
426
  };
427
427
 
428
428
  export const messages = {
429
+ changing_deactivation_date_not_allowed: {
430
+ ptBR: 'Não é permitido alterar a data de desativação',
431
+ es: 'No se permite cambiar la fecha de desactivación'
432
+ },
429
433
  cost_center_active: {
430
434
  ptBR: 'O centro de custo selecionado deve estar ativo.',
431
435
  es: 'El centro de costo seleccionado debe estar activo.'
432
436
  },
433
- supplier_must_be_rental: {
434
- ptBR: 'O fornecedor não é do tipo locadora',
435
- es: 'El proveedor no es del tipo alquiler'
437
+ must_have_at_least_one_fuel_active: {
438
+ ptBR: 'É necessário ter pelo menos um combustível ativo',
439
+ es: 'Debe tener al menos un combustible activo'
436
440
  },
437
441
  purchased_vehicles: {
438
442
  ptBR: 'O número de veículos contratados já foi atingido, só é possível cadastrar veículos não motorizados. Para adquirir mais veículos e controlar no Sofit View entre em contato com nosso suporte via e-mail <a href=\"mailto:{{email}}\">{{email}}</a>',
439
443
  es: 'El número de vehículos contratados ya ha sido alcanzado, sólo es posible registrar vehículos no motorizados. Para adquirir más vehículos y controlar en el Sofit View, póngase en contacto con nuestro soporte vía e-mail <a href=\"mailto:{{email}}\">{{email}}</a>'
444
+ },
445
+ supplier_must_be_rental: {
446
+ ptBR: 'O fornecedor não é do tipo locadora',
447
+ es: 'El proveedor no es del tipo alquiler'
448
+ },
449
+ vehicle_can_not_be_inactive_or_in_maintenance: {
450
+ ptBR: 'Para alterar a disponibilidade, o veículo não pode estar inativo ou em manutenção',
451
+ es: 'Para cambiar la disponibilidad, el vehículo no debe estar inactivo o en mantenimiento'
452
+ },
453
+ wrong_format_plate: {
454
+ ptBR: 'O número da placa está em um formato não permitido',
455
+ es: 'El número de la placa está en un formato no permitido'
440
456
  }
441
457
  };
442
458
 
@@ -450,9 +466,9 @@ export const enums = {
450
466
  ptBR: 'Disponível',
451
467
  es: 'Disponible'
452
468
  },
453
- 'in_trip': {
454
- ptBR: 'Em viagem',
455
- es: 'En viaje'
469
+ 'in_use': {
470
+ ptBR: 'Em uso',
471
+ es: 'En uso'
456
472
  },
457
473
  'in_maintenance': {
458
474
  ptBR: 'Em manutenção',
@@ -0,0 +1,30 @@
1
+ import { ENTITY_COMMON } from '../common/entity';
2
+
3
+ export const name = {
4
+ ptBR: 'Evento do veículo',
5
+ es: 'Evento de vehículo'
6
+ };
7
+
8
+ export const fields = {
9
+ ...ENTITY_COMMON,
10
+ employees: {
11
+ ptBR: 'Colaboradores',
12
+ es: 'Colaboradores'
13
+ },
14
+ date: {
15
+ ptBR: 'Data',
16
+ es: 'Fecha'
17
+ },
18
+ description: {
19
+ ptBR: 'Descrição',
20
+ es: 'Descripción'
21
+ },
22
+ vehicle_event_type_id: {
23
+ ptBR: 'Tipo de evento do veículo',
24
+ es: 'Tipo de evento del vehículo'
25
+ },
26
+ vehicle_id: {
27
+ ptBR: 'Veículo',
28
+ es: 'Vehículo'
29
+ }
30
+ };
@@ -0,0 +1,10 @@
1
+ import { ENTITY_COMMON } from '../common/entity';
2
+
3
+ export const name = {
4
+ ptBR: 'Tipo de evento do veículo',
5
+ es: 'Tipo de evento del vehículo'
6
+ };
7
+
8
+ export const fields = {
9
+ ...ENTITY_COMMON
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofit/view-locale",
3
- "version": "1.62.0",
3
+ "version": "1.64.0",
4
4
  "description": "Traduções do Sofit View",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",