@sofit/view-locale 1.2.0 → 1.4.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.
- package/coverage/jest/results.xml +11 -11
- package/dist/translations/index.d.ts +5 -1
- package/dist/translations/index.js +8 -0
- package/dist/translations/modules/customer.d.ts +74 -0
- package/dist/translations/modules/customer.js +53 -0
- package/dist/translations/modules/employee_role.d.ts +34 -0
- package/dist/translations/modules/employee_role.js +23 -0
- package/dist/translations/modules/route.d.ts +18 -0
- package/dist/translations/modules/route.js +11 -0
- package/dist/translations/modules/subsidiary.d.ts +26 -0
- package/dist/translations/modules/subsidiary.js +17 -0
- package/lib/translations/index.ts +8 -0
- package/lib/translations/modules/customer.ts +70 -0
- package/lib/translations/modules/employee_role.ts +30 -0
- package/lib/translations/modules/route.ts +14 -0
- package/lib/translations/modules/subsidiary.ts +22 -0
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="
|
|
2
|
-
<testsuite name="
|
|
3
|
-
<testcase classname="
|
|
1
|
+
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="3.139">
|
|
2
|
+
<testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2018-09-18T13:04:20" time="1.873" tests="4">
|
|
3
|
+
<testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.01">
|
|
4
4
|
</testcase>
|
|
5
|
-
<testcase classname="
|
|
5
|
+
<testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0.002">
|
|
6
6
|
</testcase>
|
|
7
|
-
<testcase classname="
|
|
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="
|
|
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="
|
|
13
|
-
<testcase classname="
|
|
12
|
+
<testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2018-09-18T13:04:20" time="1.879" tests="4">
|
|
13
|
+
<testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.006">
|
|
14
14
|
</testcase>
|
|
15
|
-
<testcase classname="
|
|
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="
|
|
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="
|
|
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>
|
|
@@ -1,9 +1,13 @@
|
|
|
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';
|
|
5
|
+
import * as employee_role from './modules/employee_role';
|
|
4
6
|
import * as gate from './modules/gate';
|
|
7
|
+
import * as route from './modules/route';
|
|
8
|
+
import * as subsidiary from './modules/subsidiary';
|
|
5
9
|
import * as system from './modules/system';
|
|
6
10
|
import * as warehouse from './modules/warehouse';
|
|
7
11
|
export { joi } from './common/joi';
|
|
8
12
|
export { databaseErrors } from './common/database-errors';
|
|
9
|
-
export { auth, benchmarking, company, gate, system, warehouse };
|
|
13
|
+
export { auth, benchmarking, company, customer, employee_role, gate, route, subsidiary, system, warehouse };
|
|
@@ -13,8 +13,16 @@ 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;
|
|
18
|
+
const employee_role = __importStar(require("./modules/employee_role"));
|
|
19
|
+
exports.employee_role = employee_role;
|
|
16
20
|
const gate = __importStar(require("./modules/gate"));
|
|
17
21
|
exports.gate = gate;
|
|
22
|
+
const route = __importStar(require("./modules/route"));
|
|
23
|
+
exports.route = route;
|
|
24
|
+
const subsidiary = __importStar(require("./modules/subsidiary"));
|
|
25
|
+
exports.subsidiary = subsidiary;
|
|
18
26
|
const system = __importStar(require("./modules/system"));
|
|
19
27
|
exports.system = system;
|
|
20
28
|
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,34 @@
|
|
|
1
|
+
export declare const name: {
|
|
2
|
+
ptBR: string;
|
|
3
|
+
es: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const fields: {
|
|
6
|
+
daytime_value: {
|
|
7
|
+
ptBR: string;
|
|
8
|
+
es: string;
|
|
9
|
+
};
|
|
10
|
+
has_scale: {
|
|
11
|
+
ptBR: string;
|
|
12
|
+
es: string;
|
|
13
|
+
};
|
|
14
|
+
in_revision: {
|
|
15
|
+
ptBR: string;
|
|
16
|
+
es: string;
|
|
17
|
+
};
|
|
18
|
+
night_time_value: {
|
|
19
|
+
ptBR: string;
|
|
20
|
+
es: string;
|
|
21
|
+
};
|
|
22
|
+
overtime_value: {
|
|
23
|
+
ptBR: string;
|
|
24
|
+
es: string;
|
|
25
|
+
};
|
|
26
|
+
name: {
|
|
27
|
+
ptBR: string;
|
|
28
|
+
es: string;
|
|
29
|
+
};
|
|
30
|
+
external_id: {
|
|
31
|
+
ptBR: string;
|
|
32
|
+
es: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const entity_1 = require("../common/entity");
|
|
4
|
+
exports.name = {
|
|
5
|
+
ptBR: 'Função de colaborador',
|
|
6
|
+
es: 'Función del colaborar'
|
|
7
|
+
};
|
|
8
|
+
exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { daytime_value: {
|
|
9
|
+
ptBR: 'Valor hora diurno',
|
|
10
|
+
es: 'Valor horario diurno'
|
|
11
|
+
}, has_scale: {
|
|
12
|
+
ptBR: 'Possui escala',
|
|
13
|
+
es: 'Posee escala'
|
|
14
|
+
}, in_revision: {
|
|
15
|
+
ptBR: 'Em revisão',
|
|
16
|
+
es: 'En revisión'
|
|
17
|
+
}, night_time_value: {
|
|
18
|
+
ptBR: 'Valor hora noturno',
|
|
19
|
+
es: 'Valor horario nocturno'
|
|
20
|
+
}, overtime_value: {
|
|
21
|
+
ptBR: 'Valor hora excedente',
|
|
22
|
+
es: 'Valor de hora excesivo'
|
|
23
|
+
} });
|
|
@@ -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,11 @@
|
|
|
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';
|
|
5
|
+
import * as employee_role from './modules/employee_role';
|
|
4
6
|
import * as gate from './modules/gate';
|
|
7
|
+
import * as route from './modules/route';
|
|
8
|
+
import * as subsidiary from './modules/subsidiary';
|
|
5
9
|
import * as system from './modules/system';
|
|
6
10
|
import * as warehouse from './modules/warehouse';
|
|
7
11
|
|
|
@@ -12,7 +16,11 @@ export {
|
|
|
12
16
|
auth,
|
|
13
17
|
benchmarking,
|
|
14
18
|
company,
|
|
19
|
+
customer,
|
|
20
|
+
employee_role,
|
|
15
21
|
gate,
|
|
22
|
+
route,
|
|
23
|
+
subsidiary,
|
|
16
24
|
system,
|
|
17
25
|
warehouse
|
|
18
26
|
};
|
|
@@ -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,30 @@
|
|
|
1
|
+
import { ENTITY_COMMON } from '../common/entity';
|
|
2
|
+
|
|
3
|
+
export const name = {
|
|
4
|
+
ptBR: 'Função de colaborador',
|
|
5
|
+
es: 'Función del colaborar'
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const fields = {
|
|
9
|
+
...ENTITY_COMMON,
|
|
10
|
+
daytime_value: {
|
|
11
|
+
ptBR: 'Valor hora diurno',
|
|
12
|
+
es: 'Valor horario diurno'
|
|
13
|
+
},
|
|
14
|
+
has_scale: {
|
|
15
|
+
ptBR: 'Possui escala',
|
|
16
|
+
es: 'Posee escala'
|
|
17
|
+
},
|
|
18
|
+
in_revision: {
|
|
19
|
+
ptBR: 'Em revisão',
|
|
20
|
+
es: 'En revisión'
|
|
21
|
+
},
|
|
22
|
+
night_time_value: {
|
|
23
|
+
ptBR: 'Valor hora noturno',
|
|
24
|
+
es: 'Valor horario nocturno'
|
|
25
|
+
},
|
|
26
|
+
overtime_value: {
|
|
27
|
+
ptBR: 'Valor hora excedente',
|
|
28
|
+
es: 'Valor de hora excesivo'
|
|
29
|
+
}
|
|
30
|
+
};
|
|
@@ -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
|
+
};
|