@sofit/view-locale 1.52.0 → 1.55.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 +4 -4
- package/dist/translations/index.d.ts +2 -1
- package/dist/translations/index.js +2 -0
- package/dist/translations/modules/cost_center.d.ts +9 -1
- package/dist/translations/modules/cost_center.js +11 -3
- package/dist/translations/modules/cost_sharing_entity.d.ts +4 -0
- package/dist/translations/modules/cost_sharing_entity.js +6 -0
- package/dist/translations/modules/subsidiary.d.ts +18 -0
- package/dist/translations/modules/subsidiary.js +19 -1
- package/lib/translations/index.ts +2 -0
- package/lib/translations/modules/cost_center.ts +11 -3
- package/lib/translations/modules/cost_sharing_entity.ts +4 -0
- package/lib/translations/modules/subsidiary.ts +20 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="
|
|
2
|
-
<testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2019-
|
|
3
|
-
<testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.
|
|
1
|
+
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.571">
|
|
2
|
+
<testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2019-08-01T20:28:41" time="1.888" tests="4">
|
|
3
|
+
<testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.003">
|
|
4
4
|
</testcase>
|
|
5
5
|
<testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0.001">
|
|
6
6
|
</testcase>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
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="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2019-
|
|
12
|
+
<testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2019-08-01T20:28:41" time="1.885" tests="4">
|
|
13
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
15
|
<testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0">
|
|
@@ -13,6 +13,7 @@ import * as checklist_reply from './modules/checklist_reply';
|
|
|
13
13
|
import * as company from './modules/company';
|
|
14
14
|
import * as cost_center from './modules/cost_center';
|
|
15
15
|
import * as cost_sharing from './modules/cost_sharing';
|
|
16
|
+
import * as cost_sharing_entity from './modules/cost_sharing_entity';
|
|
16
17
|
import * as customer from './modules/customer';
|
|
17
18
|
import * as driver_control from './modules/driver_control';
|
|
18
19
|
import * as driver_license_point from './modules/driver_license_point';
|
|
@@ -76,4 +77,4 @@ import * as warehouse from './modules/warehouse';
|
|
|
76
77
|
import * as warehouse_item from './modules/warehouse_item';
|
|
77
78
|
export { joi } from './common/joi';
|
|
78
79
|
export { databaseErrors } from './common/database-errors';
|
|
79
|
-
export { auth, benchmarking, general, inout, pipefy, cash_basis, checklist, checklist_group, checklist_group_item, checklist_group_option, checklist_model, checklist_reply, company, cost_center, cost_sharing, customer, driver_control, driver_license_point, employee, employee_hiring_regime, employee_role, expense, fine, fine_qualification_integration_key, fine_qualification, fine_resource, foreseen_maintenance_plan_service_item, foreseen_service_order_item, gas_pump_control, gate, gate_appointment, gate_appointment_diary, item, leasing_contract, maintenance_plan, maintenance_plan_service, measurement_unit, night_transport, parameter, pendency, qualification_severity, release_notification, request_occurrence, route, service_order, solicitation, solicitation_comment, solicitation_history, solicitation_watcher, stock_transfer, stock_transfer_item, stock_entry_item, sub_system, subsidiary, supplier, system, tire_brand, tire_dimension, tire_drawing, transaction, trip, vehicle, vehicle_axes, vehicle_brand, vehicle_change_history, vehicle_deactivation_cause, vehicle_due, vehicle_fuel, vehicle_layout, vehicle_leasing, vehicle_maintenance_plan, vehicle_model, vehicle_model_version, vehicle_tag, warehouse, warehouse_item };
|
|
80
|
+
export { auth, benchmarking, general, inout, pipefy, cash_basis, checklist, checklist_group, checklist_group_item, checklist_group_option, checklist_model, checklist_reply, company, cost_center, cost_sharing, cost_sharing_entity, customer, driver_control, driver_license_point, employee, employee_hiring_regime, employee_role, expense, fine, fine_qualification_integration_key, fine_qualification, fine_resource, foreseen_maintenance_plan_service_item, foreseen_service_order_item, gas_pump_control, gate, gate_appointment, gate_appointment_diary, item, leasing_contract, maintenance_plan, maintenance_plan_service, measurement_unit, night_transport, parameter, pendency, qualification_severity, release_notification, request_occurrence, route, service_order, solicitation, solicitation_comment, solicitation_history, solicitation_watcher, stock_transfer, stock_transfer_item, stock_entry_item, sub_system, subsidiary, supplier, system, tire_brand, tire_dimension, tire_drawing, transaction, trip, vehicle, vehicle_axes, vehicle_brand, vehicle_change_history, vehicle_deactivation_cause, vehicle_due, vehicle_fuel, vehicle_layout, vehicle_leasing, vehicle_maintenance_plan, vehicle_model, vehicle_model_version, vehicle_tag, warehouse, warehouse_item };
|
|
@@ -37,6 +37,8 @@ const cost_center = __importStar(require("./modules/cost_center"));
|
|
|
37
37
|
exports.cost_center = cost_center;
|
|
38
38
|
const cost_sharing = __importStar(require("./modules/cost_sharing"));
|
|
39
39
|
exports.cost_sharing = cost_sharing;
|
|
40
|
+
const cost_sharing_entity = __importStar(require("./modules/cost_sharing_entity"));
|
|
41
|
+
exports.cost_sharing_entity = cost_sharing_entity;
|
|
40
42
|
const customer = __importStar(require("./modules/customer"));
|
|
41
43
|
exports.customer = customer;
|
|
42
44
|
const driver_control = __importStar(require("./modules/driver_control"));
|
|
@@ -41,7 +41,7 @@ export declare const fields: {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
export declare const messages: {
|
|
44
|
-
|
|
44
|
+
can_not_deactivate_cost_center_accountable_employee: {
|
|
45
45
|
ptBR: string;
|
|
46
46
|
es: string;
|
|
47
47
|
};
|
|
@@ -49,8 +49,16 @@ export declare const messages: {
|
|
|
49
49
|
ptBR: string;
|
|
50
50
|
es: string;
|
|
51
51
|
};
|
|
52
|
+
employee_must_be_active: {
|
|
53
|
+
ptBR: string;
|
|
54
|
+
es: string;
|
|
55
|
+
};
|
|
52
56
|
must_not_exist_with_same_external_id: {
|
|
53
57
|
ptBR: string;
|
|
54
58
|
es: string;
|
|
55
59
|
};
|
|
60
|
+
not_allowed: {
|
|
61
|
+
ptBR: string;
|
|
62
|
+
es: string;
|
|
63
|
+
};
|
|
56
64
|
};
|
|
@@ -28,16 +28,24 @@ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { active: {
|
|
|
28
28
|
es: 'Aprobadores substitutos'
|
|
29
29
|
} });
|
|
30
30
|
exports.messages = {
|
|
31
|
-
|
|
32
|
-
ptBR: 'Não é possível
|
|
33
|
-
es: 'No se puede
|
|
31
|
+
can_not_deactivate_cost_center_accountable_employee: {
|
|
32
|
+
ptBR: 'Não é possível desativar um Colaborador quando esse é responsável por um Centro de custo',
|
|
33
|
+
es: 'No se puede deshabilitar un Colaborador cuando es responsable de un Centro de coste'
|
|
34
34
|
},
|
|
35
35
|
cost_center_must_be_active: {
|
|
36
36
|
ptBR: 'Centro de custo deve estar ativo',
|
|
37
37
|
es: 'Centro de coste deve estar ativo'
|
|
38
38
|
},
|
|
39
|
+
employee_must_be_active: {
|
|
40
|
+
ptBR: 'O colaborador precisa estar ativo',
|
|
41
|
+
es: 'El empleado debe estar activo.'
|
|
42
|
+
},
|
|
39
43
|
must_not_exist_with_same_external_id: {
|
|
40
44
|
ptBR: 'Já existe um centro de custo com a chave externa informada: {{costCenter}}.',
|
|
41
45
|
es: 'Ya existe un centro de coste con la clave externa informada: {{costCenter}}.'
|
|
46
|
+
},
|
|
47
|
+
not_allowed: {
|
|
48
|
+
ptBR: 'Não é possível utilizar um centro de custo que você não tem acesso.',
|
|
49
|
+
es: 'No se puede utilizar un centro de coste que no tiene acceso.'
|
|
42
50
|
}
|
|
43
51
|
};
|
|
@@ -36,3 +36,21 @@ export declare const fields: {
|
|
|
36
36
|
es: string;
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
+
export declare const messages: {
|
|
40
|
+
can_not_deactivate_subsidiary_accountable_employee: {
|
|
41
|
+
ptBR: string;
|
|
42
|
+
es: string;
|
|
43
|
+
};
|
|
44
|
+
employee_must_be_active: {
|
|
45
|
+
ptBR: string;
|
|
46
|
+
es: string;
|
|
47
|
+
};
|
|
48
|
+
must_not_exist_with_same_external_id: {
|
|
49
|
+
ptBR: string;
|
|
50
|
+
es: string;
|
|
51
|
+
};
|
|
52
|
+
not_allowed: {
|
|
53
|
+
ptBR: string;
|
|
54
|
+
es: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const entity_1 = require("../common/entity");
|
|
4
4
|
exports.name = {
|
|
5
5
|
ptBR: 'Filial',
|
|
6
|
-
es: '
|
|
6
|
+
es: 'Sucursal'
|
|
7
7
|
};
|
|
8
8
|
exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { alert_emails: {
|
|
9
9
|
ptBR: 'Emails para recebimento de alerta',
|
|
@@ -21,3 +21,21 @@ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { alert_emails: {
|
|
|
21
21
|
ptBR: 'Responsável',
|
|
22
22
|
es: 'Responsable'
|
|
23
23
|
} });
|
|
24
|
+
exports.messages = {
|
|
25
|
+
can_not_deactivate_subsidiary_accountable_employee: {
|
|
26
|
+
ptBR: 'Não é possível desativar um Colaborador quando esse é responsável por uma Filial',
|
|
27
|
+
es: 'No se puede deshabilitar un Colaborador cuando es responsable de una Sucursal'
|
|
28
|
+
},
|
|
29
|
+
employee_must_be_active: {
|
|
30
|
+
ptBR: 'O colaborador precisa estar ativo',
|
|
31
|
+
es: 'El empleado debe estar activo.'
|
|
32
|
+
},
|
|
33
|
+
must_not_exist_with_same_external_id: {
|
|
34
|
+
ptBR: 'Já existe uma filial com a chave externa informada: {{subsidiary}}.',
|
|
35
|
+
es: 'Ya existe una sucursal con la clave externa informada: {{subsidiary}}.'
|
|
36
|
+
},
|
|
37
|
+
not_allowed: {
|
|
38
|
+
ptBR: 'Não é possível utilizar uma filial que você não tem acesso.',
|
|
39
|
+
es: 'No se puede utilizar una sucursal que no tiene acceso.'
|
|
40
|
+
}
|
|
41
|
+
};
|
|
@@ -13,6 +13,7 @@ import * as checklist_reply from './modules/checklist_reply';
|
|
|
13
13
|
import * as company from './modules/company';
|
|
14
14
|
import * as cost_center from './modules/cost_center';
|
|
15
15
|
import * as cost_sharing from './modules/cost_sharing';
|
|
16
|
+
import * as cost_sharing_entity from './modules/cost_sharing_entity';
|
|
16
17
|
import * as customer from './modules/customer';
|
|
17
18
|
import * as driver_control from './modules/driver_control';
|
|
18
19
|
import * as driver_license_point from './modules/driver_license_point';
|
|
@@ -94,6 +95,7 @@ export {
|
|
|
94
95
|
company,
|
|
95
96
|
cost_center,
|
|
96
97
|
cost_sharing,
|
|
98
|
+
cost_sharing_entity,
|
|
97
99
|
customer,
|
|
98
100
|
driver_control,
|
|
99
101
|
driver_license_point,
|
|
@@ -38,16 +38,24 @@ export const fields = {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
export const messages = {
|
|
41
|
-
|
|
42
|
-
ptBR: 'Não é possível
|
|
43
|
-
es: 'No se puede
|
|
41
|
+
can_not_deactivate_cost_center_accountable_employee: {
|
|
42
|
+
ptBR: 'Não é possível desativar um Colaborador quando esse é responsável por um Centro de custo',
|
|
43
|
+
es: 'No se puede deshabilitar un Colaborador cuando es responsable de un Centro de coste'
|
|
44
44
|
},
|
|
45
45
|
cost_center_must_be_active: {
|
|
46
46
|
ptBR: 'Centro de custo deve estar ativo',
|
|
47
47
|
es: 'Centro de coste deve estar ativo'
|
|
48
48
|
},
|
|
49
|
+
employee_must_be_active: {
|
|
50
|
+
ptBR: 'O colaborador precisa estar ativo',
|
|
51
|
+
es: 'El empleado debe estar activo.'
|
|
52
|
+
},
|
|
49
53
|
must_not_exist_with_same_external_id: {
|
|
50
54
|
ptBR: 'Já existe um centro de custo com a chave externa informada: {{costCenter}}.',
|
|
51
55
|
es: 'Ya existe un centro de coste con la clave externa informada: {{costCenter}}.'
|
|
56
|
+
},
|
|
57
|
+
not_allowed: {
|
|
58
|
+
ptBR: 'Não é possível utilizar um centro de custo que você não tem acesso.',
|
|
59
|
+
es: 'No se puede utilizar un centro de coste que no tiene acceso.'
|
|
52
60
|
}
|
|
53
61
|
};
|
|
@@ -2,7 +2,7 @@ import { ENTITY_COMMON } from '../common/entity';
|
|
|
2
2
|
|
|
3
3
|
export const name = {
|
|
4
4
|
ptBR: 'Filial',
|
|
5
|
-
es: '
|
|
5
|
+
es: 'Sucursal'
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export const fields = {
|
|
@@ -27,4 +27,23 @@ export const fields = {
|
|
|
27
27
|
ptBR: 'Responsável',
|
|
28
28
|
es: 'Responsable'
|
|
29
29
|
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const messages = {
|
|
33
|
+
can_not_deactivate_subsidiary_accountable_employee: {
|
|
34
|
+
ptBR: 'Não é possível desativar um Colaborador quando esse é responsável por uma Filial',
|
|
35
|
+
es: 'No se puede deshabilitar un Colaborador cuando es responsable de una Sucursal'
|
|
36
|
+
},
|
|
37
|
+
employee_must_be_active: {
|
|
38
|
+
ptBR: 'O colaborador precisa estar ativo',
|
|
39
|
+
es: 'El empleado debe estar activo.'
|
|
40
|
+
},
|
|
41
|
+
must_not_exist_with_same_external_id: {
|
|
42
|
+
ptBR: 'Já existe uma filial com a chave externa informada: {{subsidiary}}.',
|
|
43
|
+
es: 'Ya existe una sucursal con la clave externa informada: {{subsidiary}}.'
|
|
44
|
+
},
|
|
45
|
+
not_allowed: {
|
|
46
|
+
ptBR: 'Não é possível utilizar uma filial que você não tem acesso.',
|
|
47
|
+
es: 'No se puede utilizar una sucursal que no tiene acceso.'
|
|
48
|
+
}
|
|
30
49
|
};
|