@sofit/view-locale 1.5.0 → 1.6.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="6.231">
2
- <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2018-10-01T14:11:09" time="4.763" tests="4">
3
- <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.012">
1
+ <testsuites name="Sofit view locale tests" tests="8" failures="0" time="3.218">
2
+ <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2018-10-01T14:52:33" time="1.927" tests="4">
3
+ <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.006">
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.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.001">
10
10
  </testcase>
11
11
  </testsuite>
12
- <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2018-10-01T14:11:09" time="4.72" tests="4">
13
- <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.007">
12
+ <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2018-10-01T14:52:33" time="1.933" tests="4">
13
+ <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.007">
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.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.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>
@@ -7,8 +7,9 @@ import * as employee_role from './modules/employee_role';
7
7
  import * as gate from './modules/gate';
8
8
  import * as route from './modules/route';
9
9
  import * as subsidiary from './modules/subsidiary';
10
+ import * as supplier from './modules/supplier';
10
11
  import * as system from './modules/system';
11
12
  import * as warehouse from './modules/warehouse';
12
13
  export { joi } from './common/joi';
13
14
  export { databaseErrors } from './common/database-errors';
14
- export { auth, benchmarking, company, cost_center, customer, employee_role, gate, route, subsidiary, system, warehouse };
15
+ export { auth, benchmarking, company, cost_center, customer, employee_role, gate, route, subsidiary, system, warehouse, supplier };
@@ -25,6 +25,8 @@ const route = __importStar(require("./modules/route"));
25
25
  exports.route = route;
26
26
  const subsidiary = __importStar(require("./modules/subsidiary"));
27
27
  exports.subsidiary = subsidiary;
28
+ const supplier = __importStar(require("./modules/supplier"));
29
+ exports.supplier = supplier;
28
30
  const system = __importStar(require("./modules/system"));
29
31
  exports.system = system;
30
32
  const warehouse = __importStar(require("./modules/warehouse"));
@@ -0,0 +1,94 @@
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
+ social_name: {
11
+ ptBR: string;
12
+ es: string;
13
+ };
14
+ type: {
15
+ ptBR: string;
16
+ es: string;
17
+ };
18
+ address: {
19
+ ptBR: string;
20
+ es: string;
21
+ };
22
+ address_city_id: {
23
+ ptBR: string;
24
+ es: string;
25
+ };
26
+ address_complementary: {
27
+ ptBR: string;
28
+ es: string;
29
+ };
30
+ address_neighborhood: {
31
+ ptBR: string;
32
+ es: string;
33
+ };
34
+ address_num: {
35
+ ptBR: string;
36
+ es: string;
37
+ };
38
+ address_state_id: {
39
+ ptBR: string;
40
+ es: string;
41
+ };
42
+ cnae: {
43
+ ptBR: string;
44
+ es: string;
45
+ };
46
+ cnae_description: {
47
+ ptBR: string;
48
+ es: string;
49
+ };
50
+ cnpj: {
51
+ ptBR: string;
52
+ es: string;
53
+ };
54
+ email: {
55
+ ptBR: string;
56
+ es: string;
57
+ };
58
+ fantasy_name: {
59
+ ptBR: string;
60
+ es: string;
61
+ };
62
+ inform_invoice_note: {
63
+ ptBR: string;
64
+ es: string;
65
+ };
66
+ observation: {
67
+ ptBR: string;
68
+ es: string;
69
+ };
70
+ phones: {
71
+ ptBR: string;
72
+ es: string;
73
+ };
74
+ postal_code: {
75
+ ptBR: string;
76
+ es: string;
77
+ };
78
+ responsible: {
79
+ ptBR: string;
80
+ es: string;
81
+ };
82
+ secondary_cnae: {
83
+ ptBR: string;
84
+ es: string;
85
+ };
86
+ name: {
87
+ ptBR: string;
88
+ es: string;
89
+ };
90
+ external_id: {
91
+ ptBR: string;
92
+ es: string;
93
+ };
94
+ };
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const entity_1 = require("../common/entity");
4
+ exports.name = {
5
+ ptBR: 'Fornecedor',
6
+ es: 'Proveedor'
7
+ };
8
+ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { active: {
9
+ ptBR: 'Ativo',
10
+ es: 'Activo'
11
+ }, social_name: {
12
+ ptBR: 'Razão Social',
13
+ es: 'Razón social'
14
+ }, type: {
15
+ ptBR: 'Tipo',
16
+ es: 'Tipo'
17
+ }, address: {
18
+ ptBR: 'Endereço',
19
+ es: 'Dirección'
20
+ }, address_city_id: {
21
+ ptBR: 'Cidade',
22
+ es: 'Ciudad'
23
+ }, address_complementary: {
24
+ ptBR: 'Complemento',
25
+ es: 'Complemento'
26
+ }, address_neighborhood: {
27
+ ptBR: 'Bairro',
28
+ es: 'Bario'
29
+ }, address_num: {
30
+ ptBR: 'Nº',
31
+ es: 'Nº'
32
+ }, address_state_id: {
33
+ ptBR: 'UF',
34
+ es: 'Provincia'
35
+ }, cnae: {
36
+ ptBR: 'CNAE',
37
+ es: 'CNAE'
38
+ }, cnae_description: {
39
+ ptBR: 'Descrição do CNAE',
40
+ es: 'Descrición del CNAE'
41
+ }, cnpj: {
42
+ ptBR: 'CNPJ/CPF',
43
+ es: 'CNPJ/CPF'
44
+ }, email: {
45
+ ptBR: 'E-mail',
46
+ es: 'E-mail'
47
+ }, fantasy_name: {
48
+ ptBR: 'Nome Fantasia',
49
+ es: 'Nombre de fantasía'
50
+ }, inform_invoice_note: {
51
+ ptBR: 'Informa nota de débito',
52
+ es: 'Informa la nota de débito'
53
+ }, observation: {
54
+ ptBR: 'Observação',
55
+ es: 'Observación'
56
+ }, phones: {
57
+ ptBR: 'Telefones',
58
+ es: 'Teléfonos'
59
+ }, postal_code: {
60
+ ptBR: 'CEP',
61
+ es: 'Codico postal'
62
+ }, responsible: {
63
+ ptBR: 'Responsável',
64
+ es: 'Responsable'
65
+ }, secondary_cnae: {
66
+ ptBR: 'CNAE Secundário',
67
+ es: 'CNAE Segundario'
68
+ } });
@@ -7,6 +7,7 @@ import * as employee_role from './modules/employee_role';
7
7
  import * as gate from './modules/gate';
8
8
  import * as route from './modules/route';
9
9
  import * as subsidiary from './modules/subsidiary';
10
+ import * as supplier from './modules/supplier';
10
11
  import * as system from './modules/system';
11
12
  import * as warehouse from './modules/warehouse';
12
13
 
@@ -24,5 +25,6 @@ export {
24
25
  route,
25
26
  subsidiary,
26
27
  system,
27
- warehouse
28
+ warehouse,
29
+ supplier
28
30
  };
@@ -0,0 +1,90 @@
1
+ import { ENTITY_COMMON } from '../common/entity';
2
+
3
+ export const name = {
4
+ ptBR: 'Fornecedor',
5
+ es: 'Proveedor'
6
+ };
7
+
8
+ export const fields = {
9
+ ...ENTITY_COMMON,
10
+ active: {
11
+ ptBR: 'Ativo',
12
+ es: 'Activo'
13
+ },
14
+ social_name: {
15
+ ptBR: 'Razão Social',
16
+ es: 'Razón social'
17
+ },
18
+ type: {
19
+ ptBR: 'Tipo',
20
+ es: 'Tipo'
21
+ },
22
+ address: {
23
+ ptBR: 'Endereço',
24
+ es: 'Dirección'
25
+ },
26
+ address_city_id: {
27
+ ptBR: 'Cidade',
28
+ es: 'Ciudad'
29
+ },
30
+ address_complementary: {
31
+ ptBR: 'Complemento',
32
+ es: 'Complemento'
33
+ },
34
+ address_neighborhood: {
35
+ ptBR: 'Bairro',
36
+ es: 'Bario'
37
+ },
38
+ address_num: {
39
+ ptBR: 'Nº',
40
+ es: 'Nº'
41
+ },
42
+ address_state_id: {
43
+ ptBR: 'UF',
44
+ es: 'Provincia'
45
+ },
46
+ cnae: {
47
+ ptBR: 'CNAE',
48
+ es: 'CNAE'
49
+ },
50
+ cnae_description: {
51
+ ptBR: 'Descrição do CNAE',
52
+ es: 'Descrición del CNAE'
53
+ },
54
+ cnpj: {
55
+ ptBR: 'CNPJ/CPF',
56
+ es: 'CNPJ/CPF'
57
+ },
58
+ email: {
59
+ ptBR: 'E-mail',
60
+ es: 'E-mail'
61
+ },
62
+ fantasy_name: {
63
+ ptBR: 'Nome Fantasia',
64
+ es: 'Nombre de fantasía'
65
+ },
66
+ inform_invoice_note: {
67
+ ptBR: 'Informa nota de débito',
68
+ es: 'Informa la nota de débito'
69
+ },
70
+ observation: {
71
+ ptBR: 'Observação',
72
+ es: 'Observación'
73
+ },
74
+ phones: {
75
+ ptBR: 'Telefones',
76
+ es: 'Teléfonos'
77
+ },
78
+ postal_code: {
79
+ ptBR: 'CEP',
80
+ es: 'Codico postal'
81
+ },
82
+ responsible: {
83
+ ptBR: 'Responsável',
84
+ es: 'Responsable'
85
+ },
86
+ secondary_cnae: {
87
+ ptBR: 'CNAE Secundário',
88
+ es: 'CNAE Segundario'
89
+ }
90
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofit/view-locale",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Traduções do Sofit View",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",