@sofit/view-locale 1.2.0 → 1.3.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.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">
1
+ <testsuites name="Sofit view locale tests" tests="8" failures="0" time="5.922">
2
+ <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2018-09-10T17:42:50" time="4.279" tests="4">
3
+ <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.009">
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.001">
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.001">
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.001">
9
+ <testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0.002">
10
10
  </testcase>
11
11
  </testsuite>
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">
12
+ <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2018-09-10T17:42:50" time="4.662" tests="4">
13
+ <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" 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.002">
15
+ <testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0.001">
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,9 +1,12 @@
1
1
  import * as auth from './common/auth';
2
2
  import * as benchmarking from './common/benchmarking';
3
3
  import * as company from './modules/company';
4
+ import * as customer from './modules/customer';
4
5
  import * as gate from './modules/gate';
6
+ import * as route from './modules/route';
7
+ import * as subsidiary from './modules/subsidiary';
5
8
  import * as system from './modules/system';
6
9
  import * as warehouse from './modules/warehouse';
7
10
  export { joi } from './common/joi';
8
11
  export { databaseErrors } from './common/database-errors';
9
- export { auth, benchmarking, company, gate, system, warehouse };
12
+ export { auth, benchmarking, company, customer, gate, route, subsidiary, system, warehouse };
@@ -13,8 +13,14 @@ const benchmarking = __importStar(require("./common/benchmarking"));
13
13
  exports.benchmarking = benchmarking;
14
14
  const company = __importStar(require("./modules/company"));
15
15
  exports.company = company;
16
+ const customer = __importStar(require("./modules/customer"));
17
+ exports.customer = customer;
16
18
  const gate = __importStar(require("./modules/gate"));
17
19
  exports.gate = gate;
20
+ const route = __importStar(require("./modules/route"));
21
+ exports.route = route;
22
+ const subsidiary = __importStar(require("./modules/subsidiary"));
23
+ exports.subsidiary = subsidiary;
18
24
  const system = __importStar(require("./modules/system"));
19
25
  exports.system = system;
20
26
  const warehouse = __importStar(require("./modules/warehouse"));
@@ -0,0 +1,74 @@
1
+ export declare const name: {
2
+ ptBR: string;
3
+ es: string;
4
+ };
5
+ export declare const fields: {
6
+ active: {
7
+ ptBR: string;
8
+ es: string;
9
+ };
10
+ address: {
11
+ ptBR: string;
12
+ es: string;
13
+ };
14
+ address_city_id: {
15
+ ptBR: string;
16
+ es: string;
17
+ };
18
+ address_complementary: {
19
+ ptBR: string;
20
+ es: string;
21
+ };
22
+ address_country: {
23
+ ptBR: string;
24
+ es: string;
25
+ };
26
+ address_neighborhood: {
27
+ ptBR: string;
28
+ es: string;
29
+ };
30
+ address_num: {
31
+ ptBR: string;
32
+ es: string;
33
+ };
34
+ address_state_id: {
35
+ ptBR: string;
36
+ es: string;
37
+ };
38
+ cnae: {
39
+ ptBR: string;
40
+ es: string;
41
+ };
42
+ cnae_description: {
43
+ ptBR: string;
44
+ es: string;
45
+ };
46
+ cnpj: {
47
+ ptBR: string;
48
+ es: string;
49
+ };
50
+ fantasy_name: {
51
+ ptBR: string;
52
+ es: string;
53
+ };
54
+ observation: {
55
+ ptBR: string;
56
+ es: string;
57
+ };
58
+ postal_code: {
59
+ ptBR: string;
60
+ es: string;
61
+ };
62
+ secondary_cnae: {
63
+ ptBR: string;
64
+ es: string;
65
+ };
66
+ name: {
67
+ ptBR: string;
68
+ es: string;
69
+ };
70
+ external_id: {
71
+ ptBR: string;
72
+ es: string;
73
+ };
74
+ };
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const entity_1 = require("../common/entity");
4
+ exports.name = {
5
+ ptBR: 'Cliente',
6
+ es: 'Cliente'
7
+ };
8
+ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { active: {
9
+ ptBR: 'Ativo',
10
+ es: 'Activo'
11
+ }, address: {
12
+ ptBR: 'Endereço',
13
+ es: 'Dirección'
14
+ }, address_city_id: {
15
+ ptBR: 'Cidade',
16
+ es: 'Ciudad'
17
+ }, address_complementary: {
18
+ ptBR: 'Complemento',
19
+ es: 'Complemento'
20
+ }, address_country: {
21
+ ptBR: 'País',
22
+ es: 'País'
23
+ }, address_neighborhood: {
24
+ ptBR: 'Bairro',
25
+ es: 'Bario'
26
+ }, address_num: {
27
+ ptBR: 'Nº',
28
+ es: 'Nº'
29
+ }, address_state_id: {
30
+ ptBR: 'UF',
31
+ es: 'Provincia'
32
+ }, cnae: {
33
+ ptBR: 'CNAE',
34
+ es: 'CNAE'
35
+ }, cnae_description: {
36
+ ptBR: 'Descrição do CNAE',
37
+ es: 'Descrición del CNAE'
38
+ }, cnpj: {
39
+ ptBR: 'CNPJ/CPF',
40
+ es: 'CNPJ/CPF'
41
+ }, fantasy_name: {
42
+ ptBR: 'Nome Fantasia',
43
+ es: 'Nombre de fantasía'
44
+ }, observation: {
45
+ ptBR: 'Observação',
46
+ es: 'Observación'
47
+ }, postal_code: {
48
+ ptBR: 'CEP',
49
+ es: 'Codico postal'
50
+ }, secondary_cnae: {
51
+ ptBR: 'CNAE Secundário',
52
+ es: 'CNAE Segundario'
53
+ } });
@@ -0,0 +1,18 @@
1
+ export declare const name: {
2
+ ptBR: string;
3
+ es: string;
4
+ };
5
+ export declare const fields: {
6
+ foreseen_distance: {
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
+ };
@@ -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: 'Rota',
6
+ es: 'Ruta'
7
+ };
8
+ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { foreseen_distance: {
9
+ ptBR: 'Distância prevista',
10
+ es: 'Distancia prevista'
11
+ } });
@@ -0,0 +1,26 @@
1
+ export declare const name: {
2
+ ptBR: string;
3
+ es: string;
4
+ };
5
+ export declare const fields: {
6
+ alert_emails: {
7
+ ptBR: string;
8
+ es: string;
9
+ };
10
+ alert_users: {
11
+ ptBR: string;
12
+ es: string;
13
+ };
14
+ company_id: {
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: 'Filial',
6
+ es: 'Filial'
7
+ };
8
+ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { alert_emails: {
9
+ ptBR: 'Emails para recebimento de alerta',
10
+ es: 'Emails para recebimiento de alerta'
11
+ }, alert_users: {
12
+ ptBR: 'Usuários para recebimento de alertas',
13
+ es: 'Usuarios para recebimento de alertas'
14
+ }, company_id: {
15
+ ptBR: 'Empresa',
16
+ es: 'Empresa'
17
+ } });
@@ -1,7 +1,10 @@
1
1
  import * as auth from './common/auth';
2
2
  import * as benchmarking from './common/benchmarking';
3
3
  import * as company from './modules/company';
4
+ import * as customer from './modules/customer';
4
5
  import * as gate from './modules/gate';
6
+ import * as route from './modules/route';
7
+ import * as subsidiary from './modules/subsidiary';
5
8
  import * as system from './modules/system';
6
9
  import * as warehouse from './modules/warehouse';
7
10
 
@@ -12,7 +15,10 @@ export {
12
15
  auth,
13
16
  benchmarking,
14
17
  company,
18
+ customer,
15
19
  gate,
20
+ route,
21
+ subsidiary,
16
22
  system,
17
23
  warehouse
18
24
  };
@@ -0,0 +1,70 @@
1
+ import { ENTITY_COMMON } from '../common/entity';
2
+
3
+ export const name = {
4
+ ptBR: 'Cliente',
5
+ es: 'Cliente'
6
+ };
7
+
8
+ export const fields = {
9
+ ...ENTITY_COMMON,
10
+ active: {
11
+ ptBR: 'Ativo',
12
+ es: 'Activo'
13
+ },
14
+ address: {
15
+ ptBR: 'Endereço',
16
+ es: 'Dirección'
17
+ },
18
+ address_city_id: {
19
+ ptBR: 'Cidade',
20
+ es: 'Ciudad'
21
+ },
22
+ address_complementary: {
23
+ ptBR: 'Complemento',
24
+ es: 'Complemento'
25
+ },
26
+ address_country: {
27
+ ptBR: 'País',
28
+ es: 'País'
29
+ },
30
+ address_neighborhood: {
31
+ ptBR: 'Bairro',
32
+ es: 'Bario'
33
+ },
34
+ address_num: {
35
+ ptBR: 'Nº',
36
+ es: 'Nº'
37
+ },
38
+ address_state_id: {
39
+ ptBR: 'UF',
40
+ es: 'Provincia'
41
+ },
42
+ cnae: {
43
+ ptBR: 'CNAE',
44
+ es: 'CNAE'
45
+ },
46
+ cnae_description: {
47
+ ptBR: 'Descrição do CNAE',
48
+ es: 'Descrición del CNAE'
49
+ },
50
+ cnpj: {
51
+ ptBR: 'CNPJ/CPF',
52
+ es: 'CNPJ/CPF'
53
+ },
54
+ fantasy_name: {
55
+ ptBR: 'Nome Fantasia',
56
+ es: 'Nombre de fantasía'
57
+ },
58
+ observation: {
59
+ ptBR: 'Observação',
60
+ es: 'Observación'
61
+ },
62
+ postal_code: {
63
+ ptBR: 'CEP',
64
+ es: 'Codico postal'
65
+ },
66
+ secondary_cnae: {
67
+ ptBR: 'CNAE Secundário',
68
+ es: 'CNAE Segundario'
69
+ }
70
+ };
@@ -0,0 +1,14 @@
1
+ import { ENTITY_COMMON } from '../common/entity';
2
+
3
+ export const name = {
4
+ ptBR: 'Rota',
5
+ es: 'Ruta'
6
+ };
7
+
8
+ export const fields = {
9
+ ...ENTITY_COMMON,
10
+ foreseen_distance: {
11
+ ptBR: 'Distância prevista',
12
+ es: 'Distancia prevista'
13
+ }
14
+ };
@@ -0,0 +1,22 @@
1
+ import { ENTITY_COMMON } from '../common/entity';
2
+
3
+ export const name = {
4
+ ptBR: 'Filial',
5
+ es: 'Filial'
6
+ };
7
+
8
+ export const fields = {
9
+ ...ENTITY_COMMON,
10
+ alert_emails: {
11
+ ptBR: 'Emails para recebimento de alerta',
12
+ es: 'Emails para recebimiento de alerta'
13
+ },
14
+ alert_users: {
15
+ ptBR: 'Usuários para recebimento de alertas',
16
+ es: 'Usuarios para recebimento de alertas'
17
+ },
18
+ company_id: {
19
+ ptBR: 'Empresa',
20
+ es: 'Empresa'
21
+ }
22
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofit/view-locale",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Traduções do Sofit View",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",