@sofit/view-locale 1.58.1 → 1.60.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 +6 -6
- package/dist/translations/index.d.ts +3 -1
- package/dist/translations/index.js +4 -0
- package/dist/translations/modules/city.d.ts +22 -0
- package/dist/translations/modules/city.js +11 -0
- package/dist/translations/modules/employee.d.ts +22 -2
- package/dist/translations/modules/employee.js +26 -6
- package/dist/translations/modules/state.d.ts +30 -0
- package/dist/translations/modules/state.js +17 -0
- package/lib/translations/index.ts +5 -1
- package/lib/translations/modules/city.ts +14 -0
- package/lib/translations/modules/employee.ts +26 -6
- package/lib/translations/modules/state.ts +22 -0
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.
|
|
2
|
-
<testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2019-08-
|
|
1
|
+
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.581">
|
|
2
|
+
<testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2019-08-28T14:50:16" time="1.806" tests="4">
|
|
3
3
|
<testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.003">
|
|
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">
|
|
5
|
+
<testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0.004">
|
|
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">
|
|
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
9
|
<testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0">
|
|
10
10
|
</testcase>
|
|
11
11
|
</testsuite>
|
|
12
|
-
<testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2019-08-
|
|
13
|
-
<testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.
|
|
12
|
+
<testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2019-08-28T14:50:16" time="1.808" tests="4">
|
|
13
|
+
<testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.005">
|
|
14
14
|
</testcase>
|
|
15
15
|
<testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0.001">
|
|
16
16
|
</testcase>
|
|
@@ -10,6 +10,7 @@ import * as checklist_group_item from './modules/checklist_group_item';
|
|
|
10
10
|
import * as checklist_group_option from './modules/checklist_group_option';
|
|
11
11
|
import * as checklist_model from './modules/checklist_model';
|
|
12
12
|
import * as checklist_reply from './modules/checklist_reply';
|
|
13
|
+
import * as city from './modules/city';
|
|
13
14
|
import * as company from './modules/company';
|
|
14
15
|
import * as cost_center from './modules/cost_center';
|
|
15
16
|
import * as cost_sharing from './modules/cost_sharing';
|
|
@@ -49,6 +50,7 @@ import * as solicitation from './modules/solicitation';
|
|
|
49
50
|
import * as solicitation_comment from './modules/solicitation_comment';
|
|
50
51
|
import * as solicitation_history from './modules/solicitation_history';
|
|
51
52
|
import * as solicitation_watcher from './modules/solicitation_watcher';
|
|
53
|
+
import * as state from './modules/state';
|
|
52
54
|
import * as stock_entry_item from './modules/stock_entry_item';
|
|
53
55
|
import * as stock_transfer from './modules/stock_transfer';
|
|
54
56
|
import * as stock_transfer_item from './modules/stock_transfer_item';
|
|
@@ -79,4 +81,4 @@ import * as warehouse from './modules/warehouse';
|
|
|
79
81
|
import * as warehouse_item from './modules/warehouse_item';
|
|
80
82
|
export { joi } from './common/joi';
|
|
81
83
|
export { databaseErrors } from './common/database-errors';
|
|
82
|
-
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, leasing_measurement, 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_maintenance_plan_service, vehicle_model, vehicle_model_version, vehicle_tag, warehouse, warehouse_item };
|
|
84
|
+
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, leasing_measurement, 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_maintenance_plan_service, vehicle_model, vehicle_model_version, vehicle_tag, warehouse, warehouse_item, city, state };
|
|
@@ -31,6 +31,8 @@ const checklist_model = __importStar(require("./modules/checklist_model"));
|
|
|
31
31
|
exports.checklist_model = checklist_model;
|
|
32
32
|
const checklist_reply = __importStar(require("./modules/checklist_reply"));
|
|
33
33
|
exports.checklist_reply = checklist_reply;
|
|
34
|
+
const city = __importStar(require("./modules/city"));
|
|
35
|
+
exports.city = city;
|
|
34
36
|
const company = __importStar(require("./modules/company"));
|
|
35
37
|
exports.company = company;
|
|
36
38
|
const cost_center = __importStar(require("./modules/cost_center"));
|
|
@@ -109,6 +111,8 @@ const solicitation_history = __importStar(require("./modules/solicitation_histor
|
|
|
109
111
|
exports.solicitation_history = solicitation_history;
|
|
110
112
|
const solicitation_watcher = __importStar(require("./modules/solicitation_watcher"));
|
|
111
113
|
exports.solicitation_watcher = solicitation_watcher;
|
|
114
|
+
const state = __importStar(require("./modules/state"));
|
|
115
|
+
exports.state = state;
|
|
112
116
|
const stock_entry_item = __importStar(require("./modules/stock_entry_item"));
|
|
113
117
|
exports.stock_entry_item = stock_entry_item;
|
|
114
118
|
const stock_transfer = __importStar(require("./modules/stock_transfer"));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const name: {
|
|
2
|
+
ptBR: string;
|
|
3
|
+
es: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const fields: {
|
|
6
|
+
state_id: {
|
|
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
|
+
id: {
|
|
19
|
+
ptBR: string;
|
|
20
|
+
es: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -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: 'Cidade',
|
|
6
|
+
es: 'Ciudad'
|
|
7
|
+
};
|
|
8
|
+
exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { state_id: {
|
|
9
|
+
ptBR: 'Estado',
|
|
10
|
+
es: 'state_id'
|
|
11
|
+
} });
|
|
@@ -185,11 +185,11 @@ export declare const messages: {
|
|
|
185
185
|
ptBR: string;
|
|
186
186
|
es: string;
|
|
187
187
|
};
|
|
188
|
-
|
|
188
|
+
can_not_deactivate_an_employee_manager: {
|
|
189
189
|
ptBR: string;
|
|
190
190
|
es: string;
|
|
191
191
|
};
|
|
192
|
-
|
|
192
|
+
can_not_delete_an_employee_manager: {
|
|
193
193
|
ptBR: string;
|
|
194
194
|
es: string;
|
|
195
195
|
};
|
|
@@ -197,6 +197,18 @@ export declare const messages: {
|
|
|
197
197
|
ptBR: string;
|
|
198
198
|
es: string;
|
|
199
199
|
};
|
|
200
|
+
manager_must_be_active: {
|
|
201
|
+
ptBR: string;
|
|
202
|
+
es: string;
|
|
203
|
+
};
|
|
204
|
+
manager_must_have_user: {
|
|
205
|
+
ptBR: string;
|
|
206
|
+
es: string;
|
|
207
|
+
};
|
|
208
|
+
immediate_manager_can_not_be_yourself: {
|
|
209
|
+
ptBR: string;
|
|
210
|
+
es: string;
|
|
211
|
+
};
|
|
200
212
|
must_has_registration_num_filled: {
|
|
201
213
|
ptBR: string;
|
|
202
214
|
es: string;
|
|
@@ -205,6 +217,14 @@ export declare const messages: {
|
|
|
205
217
|
ptBR: string;
|
|
206
218
|
es: string;
|
|
207
219
|
};
|
|
220
|
+
no_email: {
|
|
221
|
+
ptBR: string;
|
|
222
|
+
es: string;
|
|
223
|
+
};
|
|
224
|
+
required_demission_date: {
|
|
225
|
+
ptBR: string;
|
|
226
|
+
es: string;
|
|
227
|
+
};
|
|
208
228
|
};
|
|
209
229
|
export declare const enums: {
|
|
210
230
|
status: {
|
|
@@ -139,18 +139,30 @@ exports.messages = {
|
|
|
139
139
|
ptBR: 'Não é possível desativar o colaborador, pois está associado aos seguintes veículos ativos: {{vehicles}}.',
|
|
140
140
|
es: 'No se puede deshabilitar el colaborador, ya que está asociado a los siguientes vehículos activos: {{vehicles}}.'
|
|
141
141
|
},
|
|
142
|
-
|
|
143
|
-
ptBR: '
|
|
144
|
-
es: '
|
|
142
|
+
can_not_deactivate_an_employee_manager: {
|
|
143
|
+
ptBR: 'Não é possível inativar este colaborador, pois ele é o gestor imediato do colaborador {{employee}}',
|
|
144
|
+
es: 'Este colaborador no puede ser desactivado porque es el administrador inmediato del colaborador {{employee}}'
|
|
145
145
|
},
|
|
146
|
-
|
|
147
|
-
ptBR: '
|
|
148
|
-
es: '
|
|
146
|
+
can_not_delete_an_employee_manager: {
|
|
147
|
+
ptBR: 'Não é possível excluir este colaborador, pois ele é o gestor imediato do colaborador {{employee}}',
|
|
148
|
+
es: 'Este colaborador no puede ser excluido porque es el administrador inmediato del colaborador {{employee}}'
|
|
149
149
|
},
|
|
150
150
|
cpf_must_not_be_equal: {
|
|
151
151
|
ptBR: 'Já existe um colaborador cadastrado com o CPF informado: {{employee}}.',
|
|
152
152
|
es: 'Ya existe un colaborador registrado con el CPF informado: {{employee}}.'
|
|
153
153
|
},
|
|
154
|
+
manager_must_be_active: {
|
|
155
|
+
ptBR: 'O gestor imediato deve ser um colaborador ativo.',
|
|
156
|
+
es: 'El gerente inmediato debe ser un colaborador activo.'
|
|
157
|
+
},
|
|
158
|
+
manager_must_have_user: {
|
|
159
|
+
ptBR: 'O gestor imediato deve estar vinculado a um usuário.',
|
|
160
|
+
es: 'El gerente inmediato debe estar vinculado a un usuario.'
|
|
161
|
+
},
|
|
162
|
+
immediate_manager_can_not_be_yourself: {
|
|
163
|
+
ptBR: 'Não é possível informar o gestor imediato como sendo o próprio colaborador.',
|
|
164
|
+
es: 'No es posible informar al gerente inmediato como el colaborador mismo'
|
|
165
|
+
},
|
|
154
166
|
must_has_registration_num_filled: {
|
|
155
167
|
ptBR: 'A matrícula é obrigatória',
|
|
156
168
|
es: 'La matrícula es obligatorio.'
|
|
@@ -158,6 +170,14 @@ exports.messages = {
|
|
|
158
170
|
must_has_different_registration_num_and_subsidiary: {
|
|
159
171
|
ptBR: 'Já existe um colaborador cadastrado com a matrícula e filial informadas: {{employee}}',
|
|
160
172
|
es: 'Ya existe un colaborador registrado con la matrícula y filial informadas: {{employee}}'
|
|
173
|
+
},
|
|
174
|
+
no_email: {
|
|
175
|
+
ptBR: 'O colaborador não possui e-mail informado!',
|
|
176
|
+
es: '¡El colaborador no tiene e-mail informado!'
|
|
177
|
+
},
|
|
178
|
+
required_demission_date: {
|
|
179
|
+
ptBR: 'Preencha a data de demissão para o colaborador inativo.',
|
|
180
|
+
es: 'Rellene la fecha de dimisión para el colaborador inactivo'
|
|
161
181
|
}
|
|
162
182
|
};
|
|
163
183
|
exports.enums = {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const name: {
|
|
2
|
+
ptBR: string;
|
|
3
|
+
es: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const fields: {
|
|
6
|
+
state_id: {
|
|
7
|
+
ptBR: string;
|
|
8
|
+
es: string;
|
|
9
|
+
};
|
|
10
|
+
uf: {
|
|
11
|
+
ptBR: string;
|
|
12
|
+
es: string;
|
|
13
|
+
};
|
|
14
|
+
country_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
|
+
id: {
|
|
27
|
+
ptBR: string;
|
|
28
|
+
es: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -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: 'Estado',
|
|
6
|
+
es: 'Estado'
|
|
7
|
+
};
|
|
8
|
+
exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { state_id: {
|
|
9
|
+
ptBR: 'Estado',
|
|
10
|
+
es: 'state_id'
|
|
11
|
+
}, uf: {
|
|
12
|
+
ptBR: 'UF',
|
|
13
|
+
es: 'UF'
|
|
14
|
+
}, country_id: {
|
|
15
|
+
ptBR: 'País',
|
|
16
|
+
es: 'País'
|
|
17
|
+
} });
|
|
@@ -10,6 +10,7 @@ import * as checklist_group_item from './modules/checklist_group_item';
|
|
|
10
10
|
import * as checklist_group_option from './modules/checklist_group_option';
|
|
11
11
|
import * as checklist_model from './modules/checklist_model';
|
|
12
12
|
import * as checklist_reply from './modules/checklist_reply';
|
|
13
|
+
import * as city from './modules/city';
|
|
13
14
|
import * as company from './modules/company';
|
|
14
15
|
import * as cost_center from './modules/cost_center';
|
|
15
16
|
import * as cost_sharing from './modules/cost_sharing';
|
|
@@ -49,6 +50,7 @@ import * as solicitation from './modules/solicitation';
|
|
|
49
50
|
import * as solicitation_comment from './modules/solicitation_comment';
|
|
50
51
|
import * as solicitation_history from './modules/solicitation_history';
|
|
51
52
|
import * as solicitation_watcher from './modules/solicitation_watcher';
|
|
53
|
+
import * as state from './modules/state';
|
|
52
54
|
import * as stock_entry_item from './modules/stock_entry_item';
|
|
53
55
|
import * as stock_transfer from './modules/stock_transfer';
|
|
54
56
|
import * as stock_transfer_item from './modules/stock_transfer_item';
|
|
@@ -160,5 +162,7 @@ export {
|
|
|
160
162
|
vehicle_model_version,
|
|
161
163
|
vehicle_tag,
|
|
162
164
|
warehouse,
|
|
163
|
-
warehouse_item
|
|
165
|
+
warehouse_item,
|
|
166
|
+
city,
|
|
167
|
+
state
|
|
164
168
|
};
|
|
@@ -178,18 +178,30 @@ export const messages = {
|
|
|
178
178
|
ptBR: 'Não é possível desativar o colaborador, pois está associado aos seguintes veículos ativos: {{vehicles}}.',
|
|
179
179
|
es: 'No se puede deshabilitar el colaborador, ya que está asociado a los siguientes vehículos activos: {{vehicles}}.'
|
|
180
180
|
},
|
|
181
|
-
|
|
182
|
-
ptBR: '
|
|
183
|
-
es: '
|
|
181
|
+
can_not_deactivate_an_employee_manager: {
|
|
182
|
+
ptBR: 'Não é possível inativar este colaborador, pois ele é o gestor imediato do colaborador {{employee}}',
|
|
183
|
+
es: 'Este colaborador no puede ser desactivado porque es el administrador inmediato del colaborador {{employee}}'
|
|
184
184
|
},
|
|
185
|
-
|
|
186
|
-
ptBR: '
|
|
187
|
-
es: '
|
|
185
|
+
can_not_delete_an_employee_manager: {
|
|
186
|
+
ptBR: 'Não é possível excluir este colaborador, pois ele é o gestor imediato do colaborador {{employee}}',
|
|
187
|
+
es: 'Este colaborador no puede ser excluido porque es el administrador inmediato del colaborador {{employee}}'
|
|
188
188
|
},
|
|
189
189
|
cpf_must_not_be_equal: {
|
|
190
190
|
ptBR: 'Já existe um colaborador cadastrado com o CPF informado: {{employee}}.',
|
|
191
191
|
es: 'Ya existe un colaborador registrado con el CPF informado: {{employee}}.'
|
|
192
192
|
},
|
|
193
|
+
manager_must_be_active: {
|
|
194
|
+
ptBR: 'O gestor imediato deve ser um colaborador ativo.',
|
|
195
|
+
es: 'El gerente inmediato debe ser un colaborador activo.'
|
|
196
|
+
},
|
|
197
|
+
manager_must_have_user: {
|
|
198
|
+
ptBR: 'O gestor imediato deve estar vinculado a um usuário.',
|
|
199
|
+
es: 'El gerente inmediato debe estar vinculado a un usuario.'
|
|
200
|
+
},
|
|
201
|
+
immediate_manager_can_not_be_yourself: {
|
|
202
|
+
ptBR: 'Não é possível informar o gestor imediato como sendo o próprio colaborador.',
|
|
203
|
+
es: 'No es posible informar al gerente inmediato como el colaborador mismo'
|
|
204
|
+
},
|
|
193
205
|
must_has_registration_num_filled: {
|
|
194
206
|
ptBR: 'A matrícula é obrigatória',
|
|
195
207
|
es: 'La matrícula es obligatorio.'
|
|
@@ -197,6 +209,14 @@ export const messages = {
|
|
|
197
209
|
must_has_different_registration_num_and_subsidiary: {
|
|
198
210
|
ptBR: 'Já existe um colaborador cadastrado com a matrícula e filial informadas: {{employee}}',
|
|
199
211
|
es: 'Ya existe un colaborador registrado con la matrícula y filial informadas: {{employee}}'
|
|
212
|
+
},
|
|
213
|
+
no_email: {
|
|
214
|
+
ptBR: 'O colaborador não possui e-mail informado!',
|
|
215
|
+
es: '¡El colaborador no tiene e-mail informado!'
|
|
216
|
+
},
|
|
217
|
+
required_demission_date: {
|
|
218
|
+
ptBR: 'Preencha a data de demissão para o colaborador inativo.',
|
|
219
|
+
es: 'Rellene la fecha de dimisión para el colaborador inactivo'
|
|
200
220
|
}
|
|
201
221
|
};
|
|
202
222
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ENTITY_COMMON } from '../common/entity';
|
|
2
|
+
|
|
3
|
+
export const name = {
|
|
4
|
+
ptBR: 'Estado',
|
|
5
|
+
es: 'Estado'
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const fields = {
|
|
9
|
+
...ENTITY_COMMON,
|
|
10
|
+
state_id: {
|
|
11
|
+
ptBR: 'Estado',
|
|
12
|
+
es: 'state_id'
|
|
13
|
+
},
|
|
14
|
+
uf: {
|
|
15
|
+
ptBR: 'UF',
|
|
16
|
+
es: 'UF'
|
|
17
|
+
},
|
|
18
|
+
country_id: {
|
|
19
|
+
ptBR: 'País',
|
|
20
|
+
es: 'País'
|
|
21
|
+
}
|
|
22
|
+
};
|