@sofit/view-locale 1.11.0 → 1.13.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.
@@ -66,12 +66,12 @@ jobs:
66
66
  - run:
67
67
  name: Publish new version of @sofit/view-locale
68
68
  command: npm publish
69
- - run:
70
- name: Add github host
71
- command: mkdir ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
72
- - run:
73
- name: Creating a new tag
74
- command: git config user.email "desenvolvimento@sofit4.com.br" && git config user.name "Desenvolvimento Sofit AUTO" && N=`cat package.json | grep version | egrep "[0-9].[0-9].[0-9]" -o` && git tag -a v$N -m "New version of @sofit/view-locale $N" && git push --tags
69
+ # - run:
70
+ # name: Add github host
71
+ # command: mkdir ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
72
+ # - run:
73
+ # name: Creating a new tag
74
+ # command: git config user.email "desenvolvimento@sofit4.com.br" && git config user.name "Desenvolvimento Sofit AUTO" && N=`cat package.json | grep version | egrep "[0-9].[0-9].[0-9]" -o` && git tag -a v$N -m "New version of @sofit/view-locale $N" && git push --tags
75
75
 
76
76
  workflows:
77
77
  version: 2
@@ -1,22 +1,22 @@
1
- <testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.095">
2
- <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2018-10-30T14:19:55" time="1.265" 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="1.91">
2
+ <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2018-11-12T11:32:37" time="1.173" tests="4">
3
+ <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.004">
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.001">
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.001">
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="2018-10-30T14:19:55" time="1.271" 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="2018-11-12T11:32:37" time="1.17" 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">
14
14
  </testcase>
15
- <testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0">
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.001">
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">
19
+ <testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0.001">
20
20
  </testcase>
21
21
  </testsuite>
22
22
  </testsuites>
@@ -1,2 +1,22 @@
1
- import { ITranslation } from '../translation.interface';
2
- export declare const databaseErrors: ITranslation;
1
+ export declare const databaseErrors: {
2
+ generic: {
3
+ ptBR: string;
4
+ es: string;
5
+ };
6
+ unique_constraint: {
7
+ ptBR: string;
8
+ es: string;
9
+ };
10
+ foreignkey_constraint: {
11
+ ptBR: string;
12
+ es: string;
13
+ };
14
+ cant_delete_related: {
15
+ ptBR: string;
16
+ es: string;
17
+ };
18
+ cant_update_related: {
19
+ ptBR: string;
20
+ es: string;
21
+ };
22
+ };
@@ -12,5 +12,13 @@ exports.databaseErrors = {
12
12
  foreignkey_constraint: {
13
13
  ptBR: 'Houve um erro ao salvar o registro. Um ou mais relacionamentos não foram encontrados.',
14
14
  es: ''
15
+ },
16
+ cant_delete_related: {
17
+ ptBR: 'Não foi possível remover o registro de {{table}}, pois se encontra relacionado a um ou mais registros não removidos.',
18
+ es: 'No se pudo eliminar el registro de {{table}}, ya que está relacionado con uno o más registros no eliminados.'
19
+ },
20
+ cant_update_related: {
21
+ ptBR: 'Não foi possível atualizar o registro, pois o {{field}} informado não existe.',
22
+ es: 'No se pudo actualizar el registro, ya que el {{field}} no existe.'
15
23
  }
16
24
  };
@@ -12,9 +12,10 @@ import * as sub_system from './modules/sub_system';
12
12
  import * as subsidiary from './modules/subsidiary';
13
13
  import * as supplier from './modules/supplier';
14
14
  import * as system from './modules/system';
15
+ import * as tire_drawing from './modules/tire_drawing';
15
16
  import * as vehicle_brand from './modules/vehicle_brand';
16
17
  import * as vehicle_layout from './modules/vehicle_layout';
17
18
  import * as warehouse from './modules/warehouse';
18
19
  export { joi } from './common/joi';
19
20
  export { databaseErrors } from './common/database-errors';
20
- export { auth, benchmarking, company, cost_center, customer, employee_role, fine_resource, gate, measurement_unit, route, subsidiary, system, warehouse, sub_system, supplier, vehicle_layout, vehicle_brand };
21
+ export { auth, benchmarking, company, cost_center, customer, employee_role, fine_resource, gate, measurement_unit, route, subsidiary, system, warehouse, sub_system, supplier, vehicle_layout, vehicle_brand, tire_drawing };
@@ -35,6 +35,8 @@ const supplier = __importStar(require("./modules/supplier"));
35
35
  exports.supplier = supplier;
36
36
  const system = __importStar(require("./modules/system"));
37
37
  exports.system = system;
38
+ const tire_drawing = __importStar(require("./modules/tire_drawing"));
39
+ exports.tire_drawing = tire_drawing;
38
40
  const vehicle_brand = __importStar(require("./modules/vehicle_brand"));
39
41
  exports.vehicle_brand = vehicle_brand;
40
42
  const vehicle_layout = __importStar(require("./modules/vehicle_layout"));
@@ -19,6 +19,10 @@ export declare const fields: {
19
19
  ptBR: string;
20
20
  es: string;
21
21
  };
22
+ system_id: {
23
+ ptBR: string;
24
+ es: string;
25
+ };
22
26
  name: {
23
27
  ptBR: string;
24
28
  es: string;
@@ -17,4 +17,7 @@ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { created_by_sofit: {
17
17
  }, app_id: {
18
18
  ptBR: 'Chave do Aplicativo',
19
19
  es: 'Clave del Aplicativo'
20
+ }, system_id: {
21
+ ptBR: 'Sistema',
22
+ es: 'Sistema'
20
23
  } });
@@ -0,0 +1,50 @@
1
+ export declare const name: {
2
+ ptBR: string;
3
+ es: string;
4
+ };
5
+ export declare const fields: {
6
+ created_by_sofit: {
7
+ ptBR: string;
8
+ es: string;
9
+ };
10
+ in_revision: {
11
+ ptBr: string;
12
+ es: string;
13
+ };
14
+ equivalent_record_id: {
15
+ ptBR: string;
16
+ es: string;
17
+ };
18
+ app_id: {
19
+ ptBR: string;
20
+ es: string;
21
+ };
22
+ foreseen_durability_1: {
23
+ ptBr: string;
24
+ es: string;
25
+ };
26
+ foreseen_durability_2: {
27
+ ptBr: string;
28
+ es: string;
29
+ };
30
+ foreseen_durability_3: {
31
+ ptBr: string;
32
+ es: string;
33
+ };
34
+ foreseen_durability_4: {
35
+ ptBr: string;
36
+ es: string;
37
+ };
38
+ foreseen_durability_5: {
39
+ ptBr: string;
40
+ es: string;
41
+ };
42
+ name: {
43
+ ptBR: string;
44
+ es: string;
45
+ };
46
+ external_id: {
47
+ ptBR: string;
48
+ es: string;
49
+ };
50
+ };
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const entity_1 = require("../common/entity");
4
+ exports.name = {
5
+ ptBR: 'Modelo do pneu',
6
+ es: 'Modelo de neumático'
7
+ };
8
+ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { created_by_sofit: {
9
+ ptBR: 'Criado pela Sofit',
10
+ es: 'Creado por Sofit'
11
+ }, in_revision: {
12
+ ptBr: 'Em revisão',
13
+ es: 'En revisión'
14
+ }, equivalent_record_id: {
15
+ ptBR: 'Registro equivalente',
16
+ es: 'Registro equivalente'
17
+ }, app_id: {
18
+ ptBR: 'Chave do Aplicativo',
19
+ es: 'Clave del Aplicativo'
20
+ }, foreseen_durability_1: {
21
+ ptBr: 'Distância rodada prevista 1ª vida',
22
+ es: 'Distancia recorrida prevista 1ª vida'
23
+ }, foreseen_durability_2: {
24
+ ptBr: 'Distância rodada prevista 2ª vida',
25
+ es: 'Distancia recorrida prevista 2ª vida'
26
+ }, foreseen_durability_3: {
27
+ ptBr: 'Distância rodada prevista 3ª vida',
28
+ es: 'Distancia recorrida prevista 3ª vida'
29
+ }, foreseen_durability_4: {
30
+ ptBr: 'Distância rodada prevista 4ª vida',
31
+ es: 'Distancia recorrida prevista 4ª vida'
32
+ }, foreseen_durability_5: {
33
+ ptBr: 'Distância rodada prevista 5ª vida',
34
+ es: 'Distancia recorrida prevista 5ª vida'
35
+ } });
@@ -1,6 +1,4 @@
1
- import { ITranslation } from '../translation.interface';
2
-
3
- export const databaseErrors: ITranslation = {
1
+ export const databaseErrors = {
4
2
  generic: {
5
3
  ptBR: 'Ocorreu um erro ao processar a requisição.',
6
4
  es: 'Se produjo un error al procesar la solicitud.'
@@ -12,5 +10,13 @@ export const databaseErrors: ITranslation = {
12
10
  foreignkey_constraint: {
13
11
  ptBR: 'Houve um erro ao salvar o registro. Um ou mais relacionamentos não foram encontrados.',
14
12
  es: ''
13
+ },
14
+ cant_delete_related: {
15
+ ptBR: 'Não foi possível remover o registro de {{table}}, pois se encontra relacionado a um ou mais registros não removidos.',
16
+ es: 'No se pudo eliminar el registro de {{table}}, ya que está relacionado con uno o más registros no eliminados.'
17
+ },
18
+ cant_update_related: {
19
+ ptBR: 'Não foi possível atualizar o registro, pois o {{field}} informado não existe.',
20
+ es: 'No se pudo actualizar el registro, ya que el {{field}} no existe.'
15
21
  }
16
22
  };
@@ -12,6 +12,7 @@ import * as sub_system from './modules/sub_system';
12
12
  import * as subsidiary from './modules/subsidiary';
13
13
  import * as supplier from './modules/supplier';
14
14
  import * as system from './modules/system';
15
+ import * as tire_drawing from './modules/tire_drawing';
15
16
  import * as vehicle_brand from './modules/vehicle_brand';
16
17
  import * as vehicle_layout from './modules/vehicle_layout';
17
18
  import * as warehouse from './modules/warehouse';
@@ -36,5 +37,6 @@ export {
36
37
  sub_system,
37
38
  supplier,
38
39
  vehicle_layout,
39
- vehicle_brand
40
+ vehicle_brand,
41
+ tire_drawing
40
42
  };
@@ -22,5 +22,9 @@ export const fields = {
22
22
  app_id: {
23
23
  ptBR: 'Chave do Aplicativo',
24
24
  es: 'Clave del Aplicativo'
25
+ },
26
+ system_id: {
27
+ ptBR: 'Sistema',
28
+ es: 'Sistema'
25
29
  }
26
30
  };
@@ -0,0 +1,46 @@
1
+ import { ENTITY_COMMON } from '../common/entity';
2
+
3
+ export const name = {
4
+ ptBR: 'Modelo do pneu',
5
+ es: 'Modelo de neumático'
6
+ };
7
+
8
+ export const fields = {
9
+ ...ENTITY_COMMON,
10
+ created_by_sofit: {
11
+ ptBR: 'Criado pela Sofit',
12
+ es: 'Creado por Sofit'
13
+ },
14
+ in_revision: {
15
+ ptBr: 'Em revisão',
16
+ es: 'En revisión'
17
+ },
18
+ equivalent_record_id: {
19
+ ptBR: 'Registro equivalente',
20
+ es: 'Registro equivalente'
21
+ },
22
+ app_id: {
23
+ ptBR: 'Chave do Aplicativo',
24
+ es: 'Clave del Aplicativo'
25
+ },
26
+ foreseen_durability_1: {
27
+ ptBr: 'Distância rodada prevista 1ª vida',
28
+ es: 'Distancia recorrida prevista 1ª vida'
29
+ },
30
+ foreseen_durability_2: {
31
+ ptBr: 'Distância rodada prevista 2ª vida',
32
+ es: 'Distancia recorrida prevista 2ª vida'
33
+ },
34
+ foreseen_durability_3: {
35
+ ptBr: 'Distância rodada prevista 3ª vida',
36
+ es: 'Distancia recorrida prevista 3ª vida'
37
+ },
38
+ foreseen_durability_4: {
39
+ ptBr: 'Distância rodada prevista 4ª vida',
40
+ es: 'Distancia recorrida prevista 4ª vida'
41
+ },
42
+ foreseen_durability_5: {
43
+ ptBr: 'Distância rodada prevista 5ª vida',
44
+ es: 'Distancia recorrida prevista 5ª vida'
45
+ }
46
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofit/view-locale",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "description": "Traduções do Sofit View",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",