@sofit/view-locale 1.90.1 → 1.92.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="2.773">
2
- <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2020-04-20T17:04:58" time="2.008" 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">
1
+ <testsuites name="Sofit view locale tests" tests="8" failures="0" time="3.115">
2
+ <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2020-04-30T13:43:08" time="2.332" tests="4">
3
+ <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.003">
4
4
  </testcase>
5
- <testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0">
5
+ <testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0">
6
6
  </testcase>
7
- <testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0">
7
+ <testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0">
8
8
  </testcase>
9
- <testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0">
9
+ <testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0">
10
10
  </testcase>
11
11
  </testsuite>
12
- <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2020-04-20T17:04:58" time="2.008" tests="4">
13
- <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.004">
12
+ <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2020-04-30T13:43:08" time="2.385" tests="4">
13
+ <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.003">
14
14
  </testcase>
15
- <testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0.001">
15
+ <testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0">
16
16
  </testcase>
17
- <testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0">
17
+ <testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0.001">
18
18
  </testcase>
19
- <testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0.001">
19
+ <testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0">
20
20
  </testcase>
21
21
  </testsuite>
22
22
  </testsuites>
@@ -8,6 +8,12 @@ export declare const boolean: {
8
8
  es: string;
9
9
  };
10
10
  };
11
+ export declare const conjunction: {
12
+ and: {
13
+ ptBR: string;
14
+ es: string;
15
+ };
16
+ };
11
17
  export declare const messages: {
12
18
  date_range: {
13
19
  ptBR: string;
@@ -10,6 +10,12 @@ exports.boolean = {
10
10
  es: 'No'
11
11
  }
12
12
  };
13
+ exports.conjunction = {
14
+ and: {
15
+ ptBR: 'e',
16
+ es: 'y'
17
+ }
18
+ };
13
19
  exports.messages = {
14
20
  date_range: {
15
21
  ptBR: 'De {{start_date}} até {{end_date}}',
@@ -3,6 +3,7 @@ import * as benchmarking from './common/benchmarking';
3
3
  import * as general from './common/general';
4
4
  import * as inout from './integrations/inout';
5
5
  import * as pipefy from './integrations/pipefy';
6
+ import * as carsharing_type from './modules/carsharing_type';
6
7
  import * as cash_basis from './modules/cash_basis';
7
8
  import * as change_history from './modules/change_history';
8
9
  import * as checklist from './modules/checklist';
@@ -89,4 +90,4 @@ import * as warehouse from './modules/warehouse';
89
90
  import * as warehouse_item from './modules/warehouse_item';
90
91
  export { joi } from './common/joi';
91
92
  export { databaseErrors } from './common/database-errors';
92
- export { auth, benchmarking, general, inout, pipefy, cash_basis, change_history, 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_change_history, 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_booking, vehicle_brand, vehicle_bulk, vehicle_bulk_keys, 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_item, vehicle_maintenance_plan_service, vehicle_model, vehicle_model_version, vehicle_tag, warehouse, warehouse_item, city, state };
93
+ export { auth, benchmarking, general, inout, pipefy, carsharing_type, cash_basis, change_history, 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_change_history, 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_booking, vehicle_brand, vehicle_bulk, vehicle_bulk_keys, 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_item, vehicle_maintenance_plan_service, vehicle_model, vehicle_model_version, vehicle_tag, warehouse, warehouse_item, city, state };
@@ -17,6 +17,8 @@ const inout = __importStar(require("./integrations/inout"));
17
17
  exports.inout = inout;
18
18
  const pipefy = __importStar(require("./integrations/pipefy"));
19
19
  exports.pipefy = pipefy;
20
+ const carsharing_type = __importStar(require("./modules/carsharing_type"));
21
+ exports.carsharing_type = carsharing_type;
20
22
  const cash_basis = __importStar(require("./modules/cash_basis"));
21
23
  exports.cash_basis = cash_basis;
22
24
  const change_history = __importStar(require("./modules/change_history"));
@@ -0,0 +1,22 @@
1
+ export declare const name: {
2
+ ptBR: string;
3
+ es: string;
4
+ };
5
+ export declare const fields: {
6
+ description: {
7
+ ptBR: string;
8
+ es: string;
9
+ };
10
+ name: {
11
+ ptBR: string;
12
+ es: string;
13
+ };
14
+ external_id: {
15
+ ptBR: string;
16
+ es: string;
17
+ };
18
+ id: {
19
+ ptBR: string;
20
+ es: string;
21
+ };
22
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const entity_1 = require("../common/entity");
4
+ exports.name = {
5
+ ptBR: 'Tipo de veículo do Carsharing',
6
+ es: 'Tipo de vehículo Carsharing'
7
+ };
8
+ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { description: {
9
+ ptBR: 'Descrição',
10
+ es: 'Descripción'
11
+ } });
@@ -16,3 +16,17 @@ export declare const fields: {
16
16
  es: string;
17
17
  };
18
18
  };
19
+ export declare const messages: {
20
+ must_not_be_actual_gate: {
21
+ ptBR: string;
22
+ es: string;
23
+ };
24
+ must_not_be_actual_gate_plural: {
25
+ ptBR: string;
26
+ es: string;
27
+ };
28
+ vehicle_with_link: {
29
+ ptBR: string;
30
+ es: string;
31
+ };
32
+ };
@@ -6,3 +6,17 @@ exports.name = {
6
6
  es: 'Portería'
7
7
  };
8
8
  exports.fields = Object.assign({}, entity_1.ENTITY_COMMON);
9
+ exports.messages = {
10
+ must_not_be_actual_gate: {
11
+ ptBR: 'Não é possível remover essa portaria do carsharing, pois ela é a portaria atual do veículo: {{vehicles}}.',
12
+ es: 'No es posible eliminar esta ordenanza del coche compartido, ya que es la ordenanza actual del vehículo: {{vehicles}}.'
13
+ },
14
+ must_not_be_actual_gate_plural: {
15
+ ptBR: 'Não é possível remover essa portaria do carsharing, pois ela é a portaria atual dos veículos: {{vehicles}}.',
16
+ es: 'No puede eliminar esta ordenanza de carsharing, ya que es la ordenanza actual para vehículos: {{vehicles}}.'
17
+ },
18
+ vehicle_with_link: {
19
+ ptBR: '<a href="#/client/vehicles/{{id}}" target="_blank">{{name}}</a>',
20
+ es: '<a href="#/client/vehicles/{{id}}" target="_blank">{{name}}</a>'
21
+ }
22
+ };
@@ -9,6 +9,13 @@ export const boolean = {
9
9
  }
10
10
  };
11
11
 
12
+ export const conjunction = {
13
+ and: {
14
+ ptBR: 'e',
15
+ es: 'y'
16
+ }
17
+ };
18
+
12
19
  export const messages = {
13
20
  date_range: {
14
21
  ptBR: 'De {{start_date}} até {{end_date}}',
@@ -3,6 +3,7 @@ import * as benchmarking from './common/benchmarking';
3
3
  import * as general from './common/general';
4
4
  import * as inout from './integrations/inout';
5
5
  import * as pipefy from './integrations/pipefy';
6
+ import * as carsharing_type from './modules/carsharing_type';
6
7
  import * as cash_basis from './modules/cash_basis';
7
8
  import * as change_history from './modules/change_history';
8
9
  import * as checklist from './modules/checklist';
@@ -97,6 +98,7 @@ export {
97
98
  general,
98
99
  inout,
99
100
  pipefy,
101
+ carsharing_type,
100
102
  cash_basis,
101
103
  change_history,
102
104
  checklist,
@@ -0,0 +1,14 @@
1
+ import { ENTITY_COMMON } from '../common/entity';
2
+
3
+ export const name = {
4
+ ptBR: 'Tipo de veículo do Carsharing',
5
+ es: 'Tipo de vehículo Carsharing'
6
+ };
7
+
8
+ export const fields = {
9
+ ...ENTITY_COMMON,
10
+ description: {
11
+ ptBR: 'Descrição',
12
+ es: 'Descripción'
13
+ }
14
+ };
@@ -7,4 +7,19 @@ export const name = {
7
7
 
8
8
  export const fields = {
9
9
  ...ENTITY_COMMON
10
+ };
11
+
12
+ export const messages = {
13
+ must_not_be_actual_gate: {
14
+ ptBR: 'Não é possível remover essa portaria do carsharing, pois ela é a portaria atual do veículo: {{vehicles}}.',
15
+ es: 'No es posible eliminar esta ordenanza del coche compartido, ya que es la ordenanza actual del vehículo: {{vehicles}}.'
16
+ },
17
+ must_not_be_actual_gate_plural: {
18
+ ptBR: 'Não é possível remover essa portaria do carsharing, pois ela é a portaria atual dos veículos: {{vehicles}}.',
19
+ es: 'No puede eliminar esta ordenanza de carsharing, ya que es la ordenanza actual para vehículos: {{vehicles}}.'
20
+ },
21
+ vehicle_with_link: {
22
+ ptBR: '<a href="#/client/vehicles/{{id}}" target="_blank">{{name}}</a>',
23
+ es: '<a href="#/client/vehicles/{{id}}" target="_blank">{{name}}</a>'
24
+ }
10
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofit/view-locale",
3
- "version": "1.90.1",
3
+ "version": "1.92.0",
4
4
  "description": "Traduções do Sofit View",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",