@sofit/view-locale 1.96.1 → 1.98.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.
Files changed (112) hide show
  1. package/.circleci/config.yml +1 -1
  2. package/dist/index.js +16 -3
  3. package/dist/runner.js +15 -2
  4. package/dist/translations/common/auth.js +1 -0
  5. package/dist/translations/common/benchmarking.js +1 -0
  6. package/dist/translations/common/database-errors.js +1 -0
  7. package/dist/translations/common/entity.js +1 -0
  8. package/dist/translations/common/general.js +1 -0
  9. package/dist/translations/common/internal-server-errors.js +1 -0
  10. package/dist/translations/common/joi.js +1 -0
  11. package/dist/translations/index.js +18 -5
  12. package/dist/translations/integrations/inout.js +1 -0
  13. package/dist/translations/integrations/pipefy.js +1 -0
  14. package/dist/translations/modules/carsharing_type.js +2 -1
  15. package/dist/translations/modules/cash_basis.js +1 -0
  16. package/dist/translations/modules/change_history.js +1 -0
  17. package/dist/translations/modules/checklist.d.ts +4 -0
  18. package/dist/translations/modules/checklist.js +5 -1
  19. package/dist/translations/modules/checklist_group.js +2 -1
  20. package/dist/translations/modules/checklist_group_item.js +2 -1
  21. package/dist/translations/modules/checklist_group_option.js +2 -1
  22. package/dist/translations/modules/checklist_model.js +2 -1
  23. package/dist/translations/modules/checklist_reply.js +2 -1
  24. package/dist/translations/modules/city.js +2 -1
  25. package/dist/translations/modules/company.js +2 -1
  26. package/dist/translations/modules/cost_center.js +2 -1
  27. package/dist/translations/modules/cost_sharing.js +1 -0
  28. package/dist/translations/modules/cost_sharing_entity.js +1 -0
  29. package/dist/translations/modules/customer.js +2 -1
  30. package/dist/translations/modules/driver_control.js +1 -0
  31. package/dist/translations/modules/driver_license_point.js +1 -0
  32. package/dist/translations/modules/employee.d.ts +3 -3
  33. package/dist/translations/modules/employee.js +2 -1
  34. package/dist/translations/modules/employee_change_history.d.ts +2 -2
  35. package/dist/translations/modules/employee_change_history.js +2 -1
  36. package/dist/translations/modules/employee_hiring_regime.js +1 -0
  37. package/dist/translations/modules/employee_role.js +2 -1
  38. package/dist/translations/modules/expense.js +1 -0
  39. package/dist/translations/modules/fine.d.ts +5 -5
  40. package/dist/translations/modules/fine.js +1 -0
  41. package/dist/translations/modules/fine_qualification.js +2 -1
  42. package/dist/translations/modules/fine_qualification_integration_key.js +2 -1
  43. package/dist/translations/modules/fine_resource.js +2 -1
  44. package/dist/translations/modules/foreseen_maintenance_plan_service_item.js +2 -1
  45. package/dist/translations/modules/foreseen_service_order_item.js +1 -0
  46. package/dist/translations/modules/gas_pump_control.js +1 -0
  47. package/dist/translations/modules/gate.js +1 -0
  48. package/dist/translations/modules/gate_appointment.js +1 -0
  49. package/dist/translations/modules/gate_appointment_diary.js +1 -0
  50. package/dist/translations/modules/item.d.ts +8 -8
  51. package/dist/translations/modules/item.js +2 -1
  52. package/dist/translations/modules/leasing_contract.js +2 -1
  53. package/dist/translations/modules/leasing_measurement.d.ts +6 -6
  54. package/dist/translations/modules/leasing_measurement.js +2 -1
  55. package/dist/translations/modules/maintenance_plan.js +2 -1
  56. package/dist/translations/modules/maintenance_plan_service.js +2 -1
  57. package/dist/translations/modules/measurement_unit.js +2 -1
  58. package/dist/translations/modules/night_transport.js +1 -0
  59. package/dist/translations/modules/parameter.js +1 -0
  60. package/dist/translations/modules/pendency.js +1 -0
  61. package/dist/translations/modules/qualification_severity.js +2 -1
  62. package/dist/translations/modules/release_notification.js +2 -1
  63. package/dist/translations/modules/request_occurrence.js +1 -0
  64. package/dist/translations/modules/route.js +2 -1
  65. package/dist/translations/modules/service_order.d.ts +7 -7
  66. package/dist/translations/modules/service_order.js +1 -0
  67. package/dist/translations/modules/solicitation.js +1 -0
  68. package/dist/translations/modules/solicitation_comment.js +1 -0
  69. package/dist/translations/modules/solicitation_history.js +1 -0
  70. package/dist/translations/modules/solicitation_watcher.js +1 -0
  71. package/dist/translations/modules/state.js +2 -1
  72. package/dist/translations/modules/stock_entry_item.js +1 -0
  73. package/dist/translations/modules/stock_transfer.js +1 -0
  74. package/dist/translations/modules/stock_transfer_item.js +1 -0
  75. package/dist/translations/modules/sub_system.js +2 -1
  76. package/dist/translations/modules/subsidiary.js +2 -1
  77. package/dist/translations/modules/supplier.js +2 -1
  78. package/dist/translations/modules/system.js +2 -1
  79. package/dist/translations/modules/tire_brand.js +2 -1
  80. package/dist/translations/modules/tire_dimension.js +2 -1
  81. package/dist/translations/modules/tire_drawing.js +2 -1
  82. package/dist/translations/modules/transaction.js +1 -0
  83. package/dist/translations/modules/trip.d.ts +3 -3
  84. package/dist/translations/modules/trip.js +1 -0
  85. package/dist/translations/modules/vehicle.d.ts +5 -5
  86. package/dist/translations/modules/vehicle.js +2 -1
  87. package/dist/translations/modules/vehicle_axes.js +2 -1
  88. package/dist/translations/modules/vehicle_booking.js +1 -0
  89. package/dist/translations/modules/vehicle_brand.js +2 -1
  90. package/dist/translations/modules/vehicle_bulk.js +1 -0
  91. package/dist/translations/modules/vehicle_bulk_keys.js +1 -0
  92. package/dist/translations/modules/vehicle_change_history.d.ts +3 -3
  93. package/dist/translations/modules/vehicle_change_history.js +2 -1
  94. package/dist/translations/modules/vehicle_deactivation_cause.js +1 -0
  95. package/dist/translations/modules/vehicle_due.js +2 -1
  96. package/dist/translations/modules/vehicle_event.js +2 -1
  97. package/dist/translations/modules/vehicle_event_type.js +1 -0
  98. package/dist/translations/modules/vehicle_fuel.js +2 -1
  99. package/dist/translations/modules/vehicle_layout.js +2 -1
  100. package/dist/translations/modules/vehicle_leasing.js +2 -1
  101. package/dist/translations/modules/vehicle_maintenance_plan.d.ts +6 -6
  102. package/dist/translations/modules/vehicle_maintenance_plan.js +1 -0
  103. package/dist/translations/modules/vehicle_maintenance_plan_item.js +1 -0
  104. package/dist/translations/modules/vehicle_maintenance_plan_service.js +1 -0
  105. package/dist/translations/modules/vehicle_model.js +2 -1
  106. package/dist/translations/modules/vehicle_model_version.js +2 -1
  107. package/dist/translations/modules/vehicle_tag.js +1 -0
  108. package/dist/translations/modules/warehouse.js +2 -1
  109. package/dist/translations/modules/warehouse_item.js +1 -0
  110. package/{coverage/jest/results.xml → junit.xml} +10 -9
  111. package/lib/translations/modules/checklist.ts +4 -0
  112. package/package.json +14 -15
@@ -56,15 +56,15 @@ export declare const messages: {
56
56
  };
57
57
  export declare const enums: {
58
58
  type: {
59
- 'cost_center': {
59
+ cost_center: {
60
60
  ptBR: string;
61
61
  es: string;
62
62
  };
63
- 'employee': {
63
+ employee: {
64
64
  ptBR: string;
65
65
  es: string;
66
66
  };
67
- 'subsidiary': {
67
+ subsidiary: {
68
68
  ptBR: string;
69
69
  es: string;
70
70
  };
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.enums = exports.messages = exports.fields = exports.name = void 0;
3
4
  const entity_1 = require("../common/entity");
4
5
  exports.name = {
5
6
  ptBR: 'Histórico de Alterações do Veículo',
6
7
  es: 'Historial de Cambios del Vehículo'
7
8
  };
8
- exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { cost_center_id: {
9
+ exports.fields = Object.assign(Object.assign({}, entity_1.ENTITY_COMMON), { cost_center_id: {
9
10
  ptBR: 'Centro de custo',
10
11
  es: 'Centro de costo'
11
12
  }, employee_id: {
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fields = exports.name = void 0;
3
4
  const entity_1 = require("../common/entity");
4
5
  exports.name = {
5
6
  ptBR: 'Causa da desativação',
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fields = exports.name = void 0;
3
4
  const entity_1 = require("../common/entity");
4
5
  exports.name = {
5
6
  ptBR: 'Vencimento do veículo',
6
7
  es: 'Vencimiento del vehículo'
7
8
  };
8
- exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { item_id: {
9
+ exports.fields = Object.assign(Object.assign({}, entity_1.ENTITY_COMMON), { item_id: {
9
10
  ptBR: 'Item',
10
11
  es: 'Iten'
11
12
  }, due_date: {
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fields = exports.name = void 0;
3
4
  const entity_1 = require("../common/entity");
4
5
  exports.name = {
5
6
  ptBR: 'Evento do veículo',
6
7
  es: 'Evento de vehículo'
7
8
  };
8
- exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { employee_id: {
9
+ exports.fields = Object.assign(Object.assign({}, entity_1.ENTITY_COMMON), { employee_id: {
9
10
  ptBR: 'Colaborador',
10
11
  es: 'Colaborador'
11
12
  }, date: {
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fields = exports.name = void 0;
3
4
  const entity_1 = require("../common/entity");
4
5
  exports.name = {
5
6
  ptBR: 'Tipo de evento do veículo',
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fields = exports.name = void 0;
3
4
  const entity_1 = require("../common/entity");
4
5
  exports.name = {
5
6
  ptBR: 'Combustível do veículo',
6
7
  es: 'Combustible del vehículo'
7
8
  };
8
- exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { sub_system_id: {
9
+ exports.fields = Object.assign(Object.assign({}, entity_1.ENTITY_COMMON), { sub_system_id: {
9
10
  ptBR: 'Subsistema',
10
11
  es: 'Subsistema'
11
12
  }, tank_size: {
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fields = exports.name = void 0;
3
4
  const entity_1 = require("../common/entity");
4
5
  exports.name = {
5
6
  ptBR: 'Layout do veículo',
6
7
  es: 'Layout del vehículo'
7
8
  };
8
- exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { created_by_sofit: {
9
+ exports.fields = Object.assign(Object.assign({}, entity_1.ENTITY_COMMON), { created_by_sofit: {
9
10
  ptBR: 'Criado pela Sofit',
10
11
  es: 'Creado por Sofit'
11
12
  }, budini_code: {
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.messages = exports.fields = exports.name = void 0;
3
4
  const entity_1 = require("../common/entity");
4
5
  exports.name = {
5
6
  ptBR: 'Locação do Veículo',
6
7
  es: 'Arrendamiento de Vehículos'
7
8
  };
8
- exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { vehicle_id: {
9
+ exports.fields = Object.assign(Object.assign({}, entity_1.ENTITY_COMMON), { vehicle_id: {
9
10
  ptBR: 'Veículo',
10
11
  es: 'Vehículo'
11
12
  }, leasing_contract_id: {
@@ -4,27 +4,27 @@ export declare const name: {
4
4
  };
5
5
  export declare const enums: {
6
6
  status: {
7
- 'all': {
7
+ all: {
8
8
  ptBR: string;
9
9
  es: string;
10
10
  };
11
- 'calculated': {
11
+ calculated: {
12
12
  ptBR: string;
13
13
  es: string;
14
14
  };
15
- 'calculating': {
15
+ calculating: {
16
16
  ptBR: string;
17
17
  es: string;
18
18
  };
19
- 'error': {
19
+ error: {
20
20
  ptBR: string;
21
21
  es: string;
22
22
  };
23
- 'not_calculated': {
23
+ not_calculated: {
24
24
  ptBR: string;
25
25
  es: string;
26
26
  };
27
- 'updating': {
27
+ updating: {
28
28
  ptBR: string;
29
29
  es: string;
30
30
  };
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.enums = exports.name = void 0;
3
4
  exports.name = {
4
5
  ptBR: 'Plano de Manutenção do Veículo',
5
6
  es: 'Plan de Mantenimiento del Vehículo'
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.name = void 0;
3
4
  exports.name = {
4
5
  ptBR: 'Item do Plano de Manutenção do Veículo',
5
6
  es: 'Iten del Plan de Mantenimiento del Vehículo'
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.name = void 0;
3
4
  exports.name = {
4
5
  ptBR: 'Serviço do Plano de Manutenção do Veículo',
5
6
  es: 'Servicio del Plan de Mantenimiento del Vehículo'
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fields = exports.name = void 0;
3
4
  const entity_1 = require("../common/entity");
4
5
  exports.name = {
5
6
  ptBR: 'Modelo',
6
7
  es: 'Modelo'
7
8
  };
8
- exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { category: {
9
+ exports.fields = Object.assign(Object.assign({}, entity_1.ENTITY_COMMON), { category: {
9
10
  ptBR: 'Categoria',
10
11
  es: 'Categoría'
11
12
  }, image_url: {
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fields = exports.name = void 0;
3
4
  const entity_1 = require("../common/entity");
4
5
  exports.name = {
5
6
  ptBR: 'Versão do modelo do veículo',
6
7
  es: 'Versión del modelo del vehículo'
7
8
  };
8
- exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { app_id: {
9
+ exports.fields = Object.assign(Object.assign({}, entity_1.ENTITY_COMMON), { app_id: {
9
10
  ptBR: 'Chave do Aplicativo',
10
11
  es: 'Clave de aplicación'
11
12
  }, image_url: {
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fields = exports.name = void 0;
3
4
  const entity_1 = require("../common/entity");
4
5
  exports.name = {
5
6
  ptBR: 'Tag',
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.messages = exports.fields = exports.name = void 0;
3
4
  const entity_1 = require("../common/entity");
4
5
  exports.name = {
5
6
  ptBR: 'Depósito',
6
7
  es: 'Álmacen'
7
8
  };
8
- exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { subsidiary_id: {
9
+ exports.fields = Object.assign(Object.assign({}, entity_1.ENTITY_COMMON), { subsidiary_id: {
9
10
  ptBR: 'Filial',
10
11
  es: 'Filial'
11
12
  }, active: {
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.name = void 0;
3
4
  exports.name = {
4
5
  ptBR: 'Saldo de Estoque',
5
6
  es: 'Saldo de Stock'
@@ -1,22 +1,23 @@
1
- <testsuites name="Sofit view locale tests" tests="8" failures="0" time="4.637">
2
- <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2020-05-22T18:22:57" time="3.546" tests="4">
3
- <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.006">
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuites name="Sofit view locale tests" tests="8" failures="0" time="3.165">
3
+ <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2020-06-03T20:50:34" time="2.233" tests="4">
4
+ <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.003">
4
5
  </testcase>
5
- <testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0.002">
6
+ <testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0">
6
7
  </testcase>
7
- <testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0.001">
8
+ <testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0">
8
9
  </testcase>
9
10
  <testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0">
10
11
  </testcase>
11
12
  </testsuite>
12
- <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2020-05-22T18:22:57" time="3.487" tests="4">
13
- <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.006">
13
+ <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2020-06-03T20:50:34" time="2.194" tests="4">
14
+ <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.003">
14
15
  </testcase>
15
- <testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0.001">
16
+ <testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0">
16
17
  </testcase>
17
18
  <testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0.001">
18
19
  </testcase>
19
- <testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0.001">
20
+ <testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0">
20
21
  </testcase>
21
22
  </testsuite>
22
23
  </testsuites>
@@ -27,6 +27,10 @@ export const fields = {
27
27
  ptBR: 'Colaborador',
28
28
  es: 'Colaborador'
29
29
  },
30
+ executor_id: {
31
+ ptBR: 'Executor',
32
+ es: 'Ejecutor'
33
+ },
30
34
  checklist_model_id: {
31
35
  ptBR: 'Modelo do Checklist',
32
36
  es: 'Modelo del Checklist'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofit/view-locale",
3
- "version": "1.96.1",
3
+ "version": "1.98.0",
4
4
  "description": "Traduções do Sofit View",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,26 +13,25 @@
13
13
  },
14
14
  "author": "desenvolvimento@sofit4.com.br",
15
15
  "contributors": [
16
- "lucassedrez@hotmail.com",
17
- "rhogeranacleto@gmail.com"
16
+ "yuri.caldeira@sofit4.com.br"
18
17
  ],
19
18
  "license": "ISC",
20
19
  "engines": {
21
- "node": "8.11.1"
20
+ "node": "12.18.0"
22
21
  },
23
22
  "dependencies": {
24
- "typescript": "^2.8.3",
25
- "@types/node": "^9.6.6"
23
+ "typescript": "^3.9.3",
24
+ "@types/node": "^14.0.6"
26
25
  },
27
26
  "devDependencies": {
28
- "@sofit/tslint-rules": "0.1.11",
29
- "@types/jest": "^22.2.3",
30
- "jest-junit": "^5.1.0",
31
- "jest": "^22.4.3",
32
- "ts-jest": "^22.4.4",
33
- "tslint": "^5.9.1",
34
- "tslint-eslint-rules": "^5.1.0",
35
- "nodemon": "^1.17.3",
36
- "ts-node": "^6.0.0"
27
+ "@sofit/tslint-rules": "^2.2.0",
28
+ "@types/jest": "^25.2.3",
29
+ "jest-junit": "^10.0.0",
30
+ "jest": "^26.0.1",
31
+ "ts-jest": "^26.1.0",
32
+ "ts-node": "^8.10.2",
33
+ "tslint": "^6.1.2",
34
+ "tslint-eslint-rules": "^5.4.0",
35
+ "nodemon": "^2.0.4"
37
36
  }
38
37
  }