@sofit/view-locale 1.0.1 → 1.2.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.783">
2
- <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2018-08-23T21:20:48" time="1.61" 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
+ <testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.93">
2
+ <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2018-09-06T20:07:31" time="1.694" tests="4">
3
+ <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.01">
4
4
  </testcase>
5
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
7
  <testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" 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="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0.001">
10
10
  </testcase>
11
11
  </testsuite>
12
- <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2018-08-23T21:20:48" time="1.593" tests="4">
13
- <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.006">
12
+ <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2018-09-06T20:07:31" time="1.678" tests="4">
13
+ <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.01">
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="Joi tests should return non label message" name="Joi tests should return non label message" time="0.002">
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="Joi tests should return translated label message" name="Joi tests should return translated label message" 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="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0">
20
20
  </testcase>
21
21
  </testsuite>
22
22
  </testsuites>
@@ -0,0 +1,14 @@
1
+ export declare const validations: {
2
+ equivalent_record_in_revision: {
3
+ ptBR: string;
4
+ es: string;
5
+ };
6
+ relation_in_revision: {
7
+ ptBR: string;
8
+ es: string;
9
+ };
10
+ cant_set_equivalent_record: {
11
+ ptBR: string;
12
+ es: string;
13
+ };
14
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validations = {
4
+ equivalent_record_in_revision: {
5
+ ptBR: 'O registro equivalente selecionado não pode estar em revisão!',
6
+ es: 'El registro equivalente seleccionado no puede estar en revisión!'
7
+ },
8
+ relation_in_revision: {
9
+ ptBR: 'Não é possível salvar o registro com a opção \"Em Revisão\" desmarcada, pois o registro de {{table}}: {{name}} associado a ele ainda está em revisão.',
10
+ es: 'No se puede guardar el registro con la opción \"En Revisión\" desactivada, ya que el registro de {{table}}: {{nombre}} asociado a él todavía está en revisión.'
11
+ },
12
+ cant_set_equivalent_record: {
13
+ ptBR: 'Não é possível atribuir um registro equivalente a esse registro, pois o mesmo está associado a um ou mais registros de {{table}}: {{names}}.',
14
+ es: 'No se puede asignar un registro equivalente a ese registro, ya que está asociado a uno o más registros de {{table}}: {{names}}.'
15
+ }
16
+ };
@@ -1,7 +1,9 @@
1
1
  import * as auth from './common/auth';
2
+ import * as benchmarking from './common/benchmarking';
2
3
  import * as company from './modules/company';
3
4
  import * as gate from './modules/gate';
5
+ import * as system from './modules/system';
4
6
  import * as warehouse from './modules/warehouse';
5
7
  export { joi } from './common/joi';
6
8
  export { databaseErrors } from './common/database-errors';
7
- export { auth, gate, company, warehouse };
9
+ export { auth, benchmarking, company, gate, system, warehouse };
@@ -9,10 +9,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  const auth = __importStar(require("./common/auth"));
11
11
  exports.auth = auth;
12
+ const benchmarking = __importStar(require("./common/benchmarking"));
13
+ exports.benchmarking = benchmarking;
12
14
  const company = __importStar(require("./modules/company"));
13
15
  exports.company = company;
14
16
  const gate = __importStar(require("./modules/gate"));
15
17
  exports.gate = gate;
18
+ const system = __importStar(require("./modules/system"));
19
+ exports.system = system;
16
20
  const warehouse = __importStar(require("./modules/warehouse"));
17
21
  exports.warehouse = warehouse;
18
22
  var joi_1 = require("./common/joi");
@@ -1,3 +1,7 @@
1
+ export declare const name: {
2
+ ptBR: string;
3
+ es: string;
4
+ };
1
5
  export declare const fields: {
2
6
  cnpj: {
3
7
  ptBR: string;
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const entity_1 = require("../common/entity");
4
+ exports.name = {
5
+ ptBR: 'Empresa',
6
+ es: 'Empresa'
7
+ };
4
8
  exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { cnpj: {
5
9
  ptBR: 'CNPJ/CPF',
6
10
  es: 'CNPJ/CPF'
@@ -1,3 +1,7 @@
1
+ export declare const name: {
2
+ ptBR: string;
3
+ es: string;
4
+ };
1
5
  export declare const fields: {
2
6
  name: {
3
7
  ptBR: string;
@@ -1,4 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const entity_1 = require("../common/entity");
4
+ exports.name = {
5
+ ptBR: 'Portaria',
6
+ es: 'Portería'
7
+ };
4
8
  exports.fields = Object.assign({}, entity_1.ENTITY_COMMON);
@@ -0,0 +1,26 @@
1
+ export declare const name: {
2
+ ptBR: string;
3
+ es: string;
4
+ };
5
+ export declare const fields: {
6
+ app_id: {
7
+ ptBR: string;
8
+ es: string;
9
+ };
10
+ equivalent_record_id: {
11
+ ptBR: string;
12
+ es: string;
13
+ };
14
+ in_revision: {
15
+ ptBR: string;
16
+ es: string;
17
+ };
18
+ name: {
19
+ ptBR: string;
20
+ es: string;
21
+ };
22
+ external_id: {
23
+ ptBR: string;
24
+ es: string;
25
+ };
26
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const entity_1 = require("../common/entity");
4
+ exports.name = {
5
+ ptBR: 'Sistema',
6
+ es: 'Sistema'
7
+ };
8
+ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { app_id: {
9
+ ptBR: 'Chave do aplicativo',
10
+ es: 'Clave del aplicativo'
11
+ }, equivalent_record_id: {
12
+ ptBR: 'Registro equivalente',
13
+ es: 'Registro equivalente'
14
+ }, in_revision: {
15
+ ptBR: 'Em revisão',
16
+ es: 'En revisión'
17
+ } });
@@ -1,3 +1,7 @@
1
+ export declare const name: {
2
+ ptBR: string;
3
+ es: string;
4
+ };
1
5
  export declare const fields: {
2
6
  subsidiary_id: {
3
7
  ptBR: string;
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const entity_1 = require("../common/entity");
4
+ exports.name = {
5
+ ptBR: 'Depósito',
6
+ es: 'Depósito'
7
+ };
4
8
  exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { subsidiary_id: {
5
9
  ptBR: 'Filial',
6
10
  es: 'Filial'
@@ -0,0 +1,14 @@
1
+ export const validations = {
2
+ equivalent_record_in_revision: {
3
+ ptBR: 'O registro equivalente selecionado não pode estar em revisão!',
4
+ es: 'El registro equivalente seleccionado no puede estar en revisión!'
5
+ },
6
+ relation_in_revision: {
7
+ ptBR: 'Não é possível salvar o registro com a opção \"Em Revisão\" desmarcada, pois o registro de {{table}}: {{name}} associado a ele ainda está em revisão.',
8
+ es: 'No se puede guardar el registro con la opción \"En Revisión\" desactivada, ya que el registro de {{table}}: {{nombre}} asociado a él todavía está en revisión.'
9
+ },
10
+ cant_set_equivalent_record: {
11
+ ptBR: 'Não é possível atribuir um registro equivalente a esse registro, pois o mesmo está associado a um ou mais registros de {{table}}: {{names}}.',
12
+ es: 'No se puede asignar un registro equivalente a ese registro, ya que está asociado a uno o más registros de {{table}}: {{names}}.'
13
+ }
14
+ };
@@ -1,6 +1,8 @@
1
1
  import * as auth from './common/auth';
2
+ import * as benchmarking from './common/benchmarking';
2
3
  import * as company from './modules/company';
3
4
  import * as gate from './modules/gate';
5
+ import * as system from './modules/system';
4
6
  import * as warehouse from './modules/warehouse';
5
7
 
6
8
  export { joi } from './common/joi';
@@ -8,7 +10,9 @@ export { databaseErrors } from './common/database-errors';
8
10
 
9
11
  export {
10
12
  auth,
11
- gate,
13
+ benchmarking,
12
14
  company,
15
+ gate,
16
+ system,
13
17
  warehouse
14
18
  };
@@ -1,5 +1,10 @@
1
1
  import { ENTITY_COMMON } from '../common/entity';
2
2
 
3
+ export const name = {
4
+ ptBR: 'Empresa',
5
+ es: 'Empresa'
6
+ };
7
+
3
8
  export const fields = {
4
9
  ...ENTITY_COMMON,
5
10
  cnpj: {
@@ -1,5 +1,10 @@
1
1
  import { ENTITY_COMMON } from '../common/entity';
2
2
 
3
+ export const name = {
4
+ ptBR: 'Portaria',
5
+ es: 'Portería'
6
+ };
7
+
3
8
  export const fields = {
4
9
  ...ENTITY_COMMON
5
10
  };
@@ -0,0 +1,22 @@
1
+ import { ENTITY_COMMON } from '../common/entity';
2
+
3
+ export const name = {
4
+ ptBR: 'Sistema',
5
+ es: 'Sistema'
6
+ };
7
+
8
+ export const fields = {
9
+ ...ENTITY_COMMON,
10
+ app_id: {
11
+ ptBR: 'Chave do aplicativo',
12
+ es: 'Clave del aplicativo'
13
+ },
14
+ equivalent_record_id: {
15
+ ptBR: 'Registro equivalente',
16
+ es: 'Registro equivalente'
17
+ },
18
+ in_revision: {
19
+ ptBR: 'Em revisão',
20
+ es: 'En revisión'
21
+ }
22
+ };
@@ -1,5 +1,10 @@
1
1
  import { ENTITY_COMMON } from '../common/entity';
2
2
 
3
+ export const name = {
4
+ ptBR: 'Depósito',
5
+ es: 'Depósito'
6
+ };
7
+
3
8
  export const fields = {
4
9
  ...ENTITY_COMMON,
5
10
  subsidiary_id: {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sofit/view-locale",
3
- "version": "1.0.1",
3
+ "version": "1.2.0",
4
4
  "description": "Traduções do Sofit View",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
8
  "test": "jest --config ./jest.config.json",
9
- "dev": "nodemon",
9
+ "start": "tsc --p ./ --watch",
10
10
  "lint": "tslint --project ./",
11
11
  "build": "tsc --p ./",
12
12
  "postinstall": "[ -f .vscode/commit-msg.js ] && node .vscode/commit-msg.js"