@sofit/view-locale 1.199.0 → 1.200.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 -4
- package/coverage/lcov-report/index.html +18 -18
- package/coverage/lcov-report/lib/index.html +19 -19
- package/coverage/lcov-report/lib/index.ts.html +1 -1
- package/coverage/lcov-report/lib/runner.ts.html +51 -24
- package/coverage/lcov-report/lib/translations/common/auth.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/common/benchmarking.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/common/database-errors.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/common/entity.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/common/general.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/common/index.html +1 -1
- package/coverage/lcov-report/lib/translations/common/internal-server-errors.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/common/joi.ts.html +50 -2
- package/coverage/lcov-report/lib/translations/emails/dispatch-crlv.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/emails/finished-pre-invoice-conference.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/emails/index.html +1 -1
- package/coverage/lcov-report/lib/translations/emails/index.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/emails/send_pre_invoice_conference.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/index.html +1 -1
- package/coverage/lcov-report/lib/translations/index.ts.html +2 -2
- package/coverage/lcov-report/lib/translations/integrations/index.html +1 -1
- package/coverage/lcov-report/lib/translations/integrations/inout.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/integrations/pipefy.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/access_log.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/advance_payment.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/app_parameter.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/attachment.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/backup_vehicle.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/backup_vehicle_reason.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/backup_vehicle_to_delete.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/benchmark_pendency.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/budget.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/carsharing_type.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/cash_basis.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/change_history.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/checklist.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/checklist_group.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/checklist_group_item.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/checklist_group_option.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/checklist_model.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/checklist_reply.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/city.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/client.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/client_integration.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/company.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/cost_center.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/cost_center_request_vehicle_type.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/cost_sharing.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/cost_sharing_entity.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/country.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/custom_field.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/custom_migration_table.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/custom_table.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/customer.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/daily_quota.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/dashboard.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/dashboard_report.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/db_server.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/deduct.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/deduct_installment.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/default_item.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/destination.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/document.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/driver_control.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/driver_license_point.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/email_template.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/employee.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/employee_change_history.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/employee_hiring_regime.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/employee_role.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/expense.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/expense_item.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/expense_parcel.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/exportations.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/external_relation.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/favorite.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/fine.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/fine_infringement_resource.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/fine_qualification.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/fine_qualification_integration_key.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/fine_resource.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/foreseen_maintenance_plan_service_item.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/foreseen_service_order_item.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/gas_pump.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/gas_pump_control.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/gate.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/gate_appointment.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/gate_appointment_diary.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/import_map.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/import_map_process.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/index.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/inmetro_model.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/integration.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/item.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/leasing_contract.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/leasing_measurement.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/maintenance_plan.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/maintenance_plan_service.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/measurement_unit.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/night_transport.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/notification.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/occurrence_type.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/parameter.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/password_complexity.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/password_recover.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/pendency.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/plan.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/pre_invoice_compliance.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/pre_invoice_conference.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/profile.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/qualification_severity.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/quota.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/release_notification.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/rental_agreement.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/report.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/report_folder.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/request.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/request_destination.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/request_historic.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/request_occurrence.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/revenue.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/route.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/service_order.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/service_order_expenses.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/solicitation.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/solicitation_automation.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/solicitation_comment.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/solicitation_history.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/solicitation_type.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/solicitation_watcher.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/sso_provider.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/state.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/stock_entry.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/stock_entry_item.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/stock_exit.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/stock_exit_item.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/stock_transfer.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/stock_transfer_item.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/sub_system.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/subscription.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/subscription_transaction.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/subsidiary.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/supplier.ts.html +26 -2
- package/coverage/lcov-report/lib/translations/modules/system.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/tag.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/taggable.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/tire.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/tire_brand.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/tire_dimension.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/tire_drawing.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/tire_life.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/transaction.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/trip.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/upgrade_script.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/user.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/user_device.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/utilized_quota.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_axes.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_axis.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_axis_type.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_booking.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_brand.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_bulk.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_casualty.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_casualty_classification.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_casualty_type.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_change_history.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_class.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_deactivation_cause.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_due.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_event.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_event_type.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_fuel.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_group.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_hitch.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_layout.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_layout_axe.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_layout_position.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_leasing.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_maintenance_plan.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_maintenance_plan_item.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_maintenance_plan_service.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_model.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_model_class.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_model_record.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_model_version.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_request_type.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_stock.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_tag.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_type.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/vehicle_type_axis.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/visual_management.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/warehouse.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/warehouse_item.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/webhook.ts.html +1 -1
- package/coverage/lcov-report/lib/translations/modules/white_label.ts.html +1 -1
- package/coverage/lcov.info +86 -74
- package/dist/joi/{joi.interface.d.ts → joi.type.d.ts} +5 -4
- package/dist/runner.d.ts +2 -1
- package/dist/runner.js +6 -0
- package/dist/translations/common/joi.js +16 -0
- package/dist/translations/modules/supplier.d.ts +8 -0
- package/dist/translations/modules/supplier.js +6 -0
- package/lib/joi/{joi.interface.ts → joi.type.ts} +5 -4
- package/lib/runner.ts +10 -1
- package/lib/tests/joi.spec.ts +22 -0
- package/lib/translations/common/joi.ts +16 -0
- package/lib/translations/modules/supplier.ts +8 -0
- package/package.json +1 -1
- /package/dist/joi/{joi.interface.js → joi.type.js} +0 -0
|
@@ -139,7 +139,7 @@ export const fields = {
|
|
|
139
139
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
140
140
|
Code coverage generated by
|
|
141
141
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
142
|
-
at
|
|
142
|
+
at Thu Jul 08 2021 16:57:37 GMT-0300 (Brasilia Standard Time)
|
|
143
143
|
</div>
|
|
144
144
|
</div>
|
|
145
145
|
<script src="../../../prettify.js"></script>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
74
74
|
Code coverage generated by
|
|
75
75
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
76
|
-
at
|
|
76
|
+
at Thu Jul 08 2021 16:57:37 GMT-0300 (Brasilia Standard Time)
|
|
77
77
|
</div>
|
|
78
78
|
</div>
|
|
79
79
|
<script src="../../../prettify.js"></script>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
74
74
|
Code coverage generated by
|
|
75
75
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
76
|
-
at
|
|
76
|
+
at Thu Jul 08 2021 16:57:37 GMT-0300 (Brasilia Standard Time)
|
|
77
77
|
</div>
|
|
78
78
|
</div>
|
|
79
79
|
<script src="../../../prettify.js"></script>
|
|
@@ -91,7 +91,7 @@ export const fields = {
|
|
|
91
91
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
92
92
|
Code coverage generated by
|
|
93
93
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
94
|
-
at
|
|
94
|
+
at Thu Jul 08 2021 16:57:37 GMT-0300 (Brasilia Standard Time)
|
|
95
95
|
</div>
|
|
96
96
|
</div>
|
|
97
97
|
<script src="../../../prettify.js"></script>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
74
74
|
Code coverage generated by
|
|
75
75
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
76
|
-
at
|
|
76
|
+
at Thu Jul 08 2021 16:57:37 GMT-0300 (Brasilia Standard Time)
|
|
77
77
|
</div>
|
|
78
78
|
</div>
|
|
79
79
|
<script src="../../../prettify.js"></script>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
74
74
|
Code coverage generated by
|
|
75
75
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
76
|
-
at
|
|
76
|
+
at Thu Jul 08 2021 16:57:37 GMT-0300 (Brasilia Standard Time)
|
|
77
77
|
</div>
|
|
78
78
|
</div>
|
|
79
79
|
<script src="../../../prettify.js"></script>
|
|
@@ -106,7 +106,7 @@ export const messages = {
|
|
|
106
106
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
107
107
|
Code coverage generated by
|
|
108
108
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
109
|
-
at
|
|
109
|
+
at Thu Jul 08 2021 16:57:37 GMT-0300 (Brasilia Standard Time)
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
112
112
|
<script src="../../../prettify.js"></script>
|
|
@@ -172,7 +172,7 @@ export const messages = {
|
|
|
172
172
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
173
173
|
Code coverage generated by
|
|
174
174
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
175
|
-
at
|
|
175
|
+
at Thu Jul 08 2021 16:57:37 GMT-0300 (Brasilia Standard Time)
|
|
176
176
|
</div>
|
|
177
177
|
</div>
|
|
178
178
|
<script src="../../../prettify.js"></script>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
74
74
|
Code coverage generated by
|
|
75
75
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
76
|
-
at
|
|
76
|
+
at Thu Jul 08 2021 16:57:37 GMT-0300 (Brasilia Standard Time)
|
|
77
77
|
</div>
|
|
78
78
|
</div>
|
|
79
79
|
<script src="../../../prettify.js"></script>
|
|
@@ -286,7 +286,7 @@ export const enums = {
|
|
|
286
286
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
287
287
|
Code coverage generated by
|
|
288
288
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
289
|
-
at
|
|
289
|
+
at Thu Jul 08 2021 16:57:37 GMT-0300 (Brasilia Standard Time)
|
|
290
290
|
</div>
|
|
291
291
|
</div>
|
|
292
292
|
<script src="../../../prettify.js"></script>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
74
74
|
Code coverage generated by
|
|
75
75
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
76
|
-
at
|
|
76
|
+
at Thu Jul 08 2021 16:57:37 GMT-0300 (Brasilia Standard Time)
|
|
77
77
|
</div>
|
|
78
78
|
</div>
|
|
79
79
|
<script src="../../../prettify.js"></script>
|
package/coverage/lcov.info
CHANGED
|
@@ -18,18 +18,22 @@ FN:15,(anonymous_6)
|
|
|
18
18
|
FN:29,(anonymous_7)
|
|
19
19
|
FN:52,(anonymous_8)
|
|
20
20
|
FN:77,(anonymous_9)
|
|
21
|
-
FN:
|
|
22
|
-
FN:
|
|
23
|
-
FN:
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
FN:99,(anonymous_10)
|
|
22
|
+
FN:129,(anonymous_11)
|
|
23
|
+
FN:133,(anonymous_12)
|
|
24
|
+
FN:151,(anonymous_13)
|
|
25
|
+
FN:159,(anonymous_14)
|
|
26
|
+
FNF:9
|
|
27
|
+
FNH:8
|
|
26
28
|
FNDA:4,(anonymous_6)
|
|
27
|
-
FNDA:
|
|
29
|
+
FNDA:24,(anonymous_7)
|
|
28
30
|
FNDA:6,(anonymous_8)
|
|
29
|
-
FNDA:
|
|
30
|
-
FNDA:
|
|
31
|
-
FNDA:
|
|
32
|
-
FNDA:
|
|
31
|
+
FNDA:10,(anonymous_9)
|
|
32
|
+
FNDA:8,(anonymous_10)
|
|
33
|
+
FNDA:8,(anonymous_11)
|
|
34
|
+
FNDA:4,(anonymous_12)
|
|
35
|
+
FNDA:4,(anonymous_13)
|
|
36
|
+
FNDA:0,(anonymous_14)
|
|
33
37
|
DA:3,2
|
|
34
38
|
DA:5,2
|
|
35
39
|
DA:11,2
|
|
@@ -38,14 +42,14 @@ DA:20,2
|
|
|
38
42
|
DA:21,2
|
|
39
43
|
DA:24,2
|
|
40
44
|
DA:25,2
|
|
41
|
-
DA:31,
|
|
42
|
-
DA:33,
|
|
43
|
-
DA:35,
|
|
44
|
-
DA:37,
|
|
45
|
-
DA:39,
|
|
46
|
-
DA:40,
|
|
47
|
-
DA:42,
|
|
48
|
-
DA:46,
|
|
45
|
+
DA:31,24
|
|
46
|
+
DA:33,24
|
|
47
|
+
DA:35,24
|
|
48
|
+
DA:37,14
|
|
49
|
+
DA:39,34
|
|
50
|
+
DA:40,34
|
|
51
|
+
DA:42,34
|
|
52
|
+
DA:46,24
|
|
49
53
|
DA:49,0
|
|
50
54
|
DA:54,6
|
|
51
55
|
DA:55,6
|
|
@@ -57,67 +61,75 @@ DA:65,0
|
|
|
57
61
|
DA:69,6
|
|
58
62
|
DA:71,6
|
|
59
63
|
DA:74,0
|
|
60
|
-
DA:79,
|
|
61
|
-
DA:81,
|
|
62
|
-
DA:83,
|
|
63
|
-
DA:
|
|
64
|
-
DA:
|
|
65
|
-
DA:
|
|
66
|
-
DA:
|
|
67
|
-
DA:
|
|
68
|
-
DA:
|
|
69
|
-
DA:
|
|
70
|
-
DA:
|
|
71
|
-
DA:
|
|
72
|
-
DA:
|
|
73
|
-
DA:
|
|
74
|
-
DA:
|
|
75
|
-
DA:
|
|
76
|
-
DA:
|
|
77
|
-
DA:
|
|
78
|
-
DA:
|
|
79
|
-
DA:
|
|
80
|
-
|
|
81
|
-
|
|
64
|
+
DA:79,10
|
|
65
|
+
DA:81,10
|
|
66
|
+
DA:83,8
|
|
67
|
+
DA:84,8
|
|
68
|
+
DA:86,8
|
|
69
|
+
DA:89,2
|
|
70
|
+
DA:91,2
|
|
71
|
+
DA:93,0
|
|
72
|
+
DA:96,2
|
|
73
|
+
DA:101,8
|
|
74
|
+
DA:109,4
|
|
75
|
+
DA:111,2
|
|
76
|
+
DA:117,2
|
|
77
|
+
DA:120,4
|
|
78
|
+
DA:122,0
|
|
79
|
+
DA:125,4
|
|
80
|
+
DA:131,8
|
|
81
|
+
DA:133,4
|
|
82
|
+
DA:153,4
|
|
83
|
+
DA:155,0
|
|
84
|
+
DA:157,0
|
|
85
|
+
DA:159,0
|
|
86
|
+
DA:161,0
|
|
87
|
+
LF:50
|
|
88
|
+
LH:41
|
|
82
89
|
BRDA:19,0,0,2
|
|
83
90
|
BRDA:19,0,1,2
|
|
84
|
-
BRDA:33,1,0,
|
|
91
|
+
BRDA:33,1,0,24
|
|
85
92
|
BRDA:33,1,1,0
|
|
86
|
-
BRDA:35,2,0,
|
|
87
|
-
BRDA:35,2,1,
|
|
93
|
+
BRDA:35,2,0,14
|
|
94
|
+
BRDA:35,2,1,10
|
|
88
95
|
BRDA:63,3,0,0
|
|
89
96
|
BRDA:63,3,1,8
|
|
90
97
|
BRDA:69,4,0,6
|
|
91
98
|
BRDA:69,4,1,0
|
|
92
|
-
BRDA:81,5,0,
|
|
99
|
+
BRDA:81,5,0,8
|
|
93
100
|
BRDA:81,5,1,2
|
|
94
|
-
BRDA:
|
|
95
|
-
BRDA:
|
|
96
|
-
BRDA:
|
|
97
|
-
BRDA:
|
|
98
|
-
BRDA:
|
|
99
|
-
BRDA:
|
|
100
|
-
BRDA:
|
|
101
|
-
BRDA:
|
|
102
|
-
BRDA:
|
|
103
|
-
BRDA:
|
|
104
|
-
BRDA:
|
|
105
|
-
BRDA:
|
|
106
|
-
BRDA:
|
|
107
|
-
BRDA:
|
|
108
|
-
BRDA:
|
|
109
|
-
BRDA:
|
|
110
|
-
BRDA:
|
|
111
|
-
BRDA:
|
|
112
|
-
BRDA:
|
|
113
|
-
BRDA:
|
|
114
|
-
BRDA:
|
|
115
|
-
BRDA:
|
|
116
|
-
BRDA:
|
|
117
|
-
BRDA:
|
|
118
|
-
BRDA:
|
|
119
|
-
|
|
120
|
-
|
|
101
|
+
BRDA:91,6,0,0
|
|
102
|
+
BRDA:91,6,1,2
|
|
103
|
+
BRDA:91,7,0,2
|
|
104
|
+
BRDA:91,7,1,0
|
|
105
|
+
BRDA:101,8,0,4
|
|
106
|
+
BRDA:101,8,1,4
|
|
107
|
+
BRDA:102,9,0,8
|
|
108
|
+
BRDA:102,9,1,8
|
|
109
|
+
BRDA:102,9,2,6
|
|
110
|
+
BRDA:105,10,0,6
|
|
111
|
+
BRDA:105,10,1,0
|
|
112
|
+
BRDA:109,11,0,2
|
|
113
|
+
BRDA:109,11,1,2
|
|
114
|
+
BRDA:120,12,0,0
|
|
115
|
+
BRDA:120,12,1,4
|
|
116
|
+
BRDA:131,13,0,2
|
|
117
|
+
BRDA:131,13,1,6
|
|
118
|
+
BRDA:131,14,0,8
|
|
119
|
+
BRDA:131,14,1,8
|
|
120
|
+
BRDA:131,14,2,2
|
|
121
|
+
BRDA:153,15,0,0
|
|
122
|
+
BRDA:153,15,1,4
|
|
123
|
+
BRDA:153,16,0,4
|
|
124
|
+
BRDA:153,16,1,4
|
|
125
|
+
BRDA:153,16,2,0
|
|
126
|
+
BRDA:153,16,3,0
|
|
127
|
+
BRDA:157,17,0,0
|
|
128
|
+
BRDA:157,17,1,0
|
|
129
|
+
BRDA:157,18,0,0
|
|
130
|
+
BRDA:157,18,1,0
|
|
131
|
+
BRF:42
|
|
132
|
+
BRH:28
|
|
121
133
|
end_of_record
|
|
122
134
|
TN:
|
|
123
135
|
SF:lib/translations/index.ts
|
|
@@ -128,7 +140,7 @@ FNF:3
|
|
|
128
140
|
FNH:2
|
|
129
141
|
FNDA:8,(anonymous_6)
|
|
130
142
|
FNDA:0,(anonymous_7)
|
|
131
|
-
FNDA:
|
|
143
|
+
FNDA:24,(anonymous_8)
|
|
132
144
|
DA:1,2
|
|
133
145
|
DA:2,2
|
|
134
146
|
DA:3,2
|
|
@@ -310,7 +322,7 @@ DA:178,2
|
|
|
310
322
|
DA:179,2
|
|
311
323
|
DA:181,10
|
|
312
324
|
DA:182,2
|
|
313
|
-
DA:183,
|
|
325
|
+
DA:183,26
|
|
314
326
|
DA:185,2
|
|
315
327
|
DA:186,2
|
|
316
328
|
DA:187,2
|
|
@@ -1965,7 +1977,7 @@ FNH:0
|
|
|
1965
1977
|
DA:1,2
|
|
1966
1978
|
DA:3,2
|
|
1967
1979
|
DA:8,2
|
|
1968
|
-
DA:
|
|
1980
|
+
DA:112,2
|
|
1969
1981
|
LF:4
|
|
1970
1982
|
LH:4
|
|
1971
1983
|
BRF:0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare type IContext = {
|
|
2
2
|
key?: string;
|
|
3
3
|
label?: string;
|
|
4
4
|
limit?: number;
|
|
@@ -7,10 +7,11 @@ export interface IContext {
|
|
|
7
7
|
pos?: number;
|
|
8
8
|
dupePos?: number;
|
|
9
9
|
dupeValue?: object;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
types?: string[] | string;
|
|
11
|
+
};
|
|
12
|
+
export declare type IValidationErrorItem = {
|
|
12
13
|
message: string;
|
|
13
14
|
type: string;
|
|
14
15
|
path: (string | number)[];
|
|
15
16
|
context?: IContext;
|
|
16
|
-
}
|
|
17
|
+
};
|
package/dist/runner.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IValidationErrorItem } from './joi/joi.
|
|
1
|
+
import { IValidationErrorItem } from './joi/joi.type';
|
|
2
2
|
import { IAccessKey } from './languages';
|
|
3
3
|
export interface IReplaces {
|
|
4
4
|
[key: string]: string;
|
|
@@ -10,5 +10,6 @@ export declare class Locale {
|
|
|
10
10
|
raw(path: string, replaces?: IReplaces): string;
|
|
11
11
|
joi(detail: IValidationErrorItem): string;
|
|
12
12
|
private setJoiLabel;
|
|
13
|
+
private setValidTypes;
|
|
13
14
|
private fitEnumValidOptions;
|
|
14
15
|
}
|
package/dist/runner.js
CHANGED
|
@@ -66,6 +66,7 @@ class Locale {
|
|
|
66
66
|
const accessKey = TRANSLATIONS.joi[detail.type];
|
|
67
67
|
if (accessKey) {
|
|
68
68
|
this.setJoiLabel(detail);
|
|
69
|
+
this.setValidTypes(detail);
|
|
69
70
|
return this.reach(TRANSLATIONS.joi[detail.type], detail.context);
|
|
70
71
|
}
|
|
71
72
|
let errMsg = `There is no translation for joi type '${detail.type}'`;
|
|
@@ -93,6 +94,11 @@ class Locale {
|
|
|
93
94
|
this.fitEnumValidOptions(detail);
|
|
94
95
|
}
|
|
95
96
|
}
|
|
97
|
+
setValidTypes(detail) {
|
|
98
|
+
if (detail.context && detail.context.types && Array.isArray(detail.context.types)) {
|
|
99
|
+
detail.context.types = detail.context.types.map(type => this.reach(TRANSLATIONS.joi[type])).join(', ');
|
|
100
|
+
}
|
|
101
|
+
}
|
|
96
102
|
fitEnumValidOptions(detail) {
|
|
97
103
|
if (detail.context && detail.context.valids && detail.context.key && detail.type === 'any.allowOnly') {
|
|
98
104
|
const tableName = detail.message.split('.')[0].replace('"', '');
|
|
@@ -97,5 +97,21 @@ exports.joi = {
|
|
|
97
97
|
'array.unique': {
|
|
98
98
|
ptBR: 'Os valores do campo {{label}} devem ser únicos.',
|
|
99
99
|
es: 'Los valores del campo {{label}} deben ser únicos.'
|
|
100
|
+
},
|
|
101
|
+
'alternatives.types': {
|
|
102
|
+
ptBR: '{{label}} precisa ser de um dos tipos: {{types}}.',
|
|
103
|
+
es: '{{label}} necesita ser único en su clase: {{types}}.'
|
|
104
|
+
},
|
|
105
|
+
'string': {
|
|
106
|
+
ptBR: 'Texto',
|
|
107
|
+
es: 'Texto'
|
|
108
|
+
},
|
|
109
|
+
'number': {
|
|
110
|
+
ptBR: 'Numérico',
|
|
111
|
+
es: 'Numérico'
|
|
112
|
+
},
|
|
113
|
+
'date': {
|
|
114
|
+
ptBR: 'Data',
|
|
115
|
+
es: 'Fecha'
|
|
100
116
|
}
|
|
101
117
|
};
|
|
@@ -95,6 +95,14 @@ export declare const fields: {
|
|
|
95
95
|
ptBR: string;
|
|
96
96
|
es: string;
|
|
97
97
|
};
|
|
98
|
+
instruction_file_url: {
|
|
99
|
+
ptBR: string;
|
|
100
|
+
es: string;
|
|
101
|
+
};
|
|
102
|
+
procuration_file_url: {
|
|
103
|
+
ptBR: string;
|
|
104
|
+
es: string;
|
|
105
|
+
};
|
|
98
106
|
name: {
|
|
99
107
|
ptBR: string;
|
|
100
108
|
es: string;
|
|
@@ -77,6 +77,12 @@ exports.fields = Object.assign(Object.assign({}, entity_1.ENTITY_COMMON), { acti
|
|
|
77
77
|
}, pre_invoice_conference_template: {
|
|
78
78
|
ptBR: 'Modelo de Coferência de pré fatura',
|
|
79
79
|
es: 'Plantilla de Conferencia de la pre-factura'
|
|
80
|
+
}, instruction_file_url: {
|
|
81
|
+
ptBR: 'Arquivo da instrução',
|
|
82
|
+
es: 'Archivo de instrucción'
|
|
83
|
+
}, procuration_file_url: {
|
|
84
|
+
ptBR: 'Arquivo da procuração',
|
|
85
|
+
es: 'Archivo de procuración'
|
|
80
86
|
} });
|
|
81
87
|
exports.messages = {
|
|
82
88
|
has_fuel_supplies: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type IContext = {
|
|
2
2
|
key?: string;
|
|
3
3
|
label?: string;
|
|
4
4
|
limit?: number;
|
|
@@ -7,11 +7,12 @@ export interface IContext {
|
|
|
7
7
|
pos?: number;
|
|
8
8
|
dupePos?: number;
|
|
9
9
|
dupeValue?: object;
|
|
10
|
-
|
|
10
|
+
types?: string[] | string;
|
|
11
|
+
};
|
|
11
12
|
|
|
12
|
-
export
|
|
13
|
+
export type IValidationErrorItem = {
|
|
13
14
|
message: string;
|
|
14
15
|
type: string;
|
|
15
16
|
path: (string | number)[];
|
|
16
17
|
context?: IContext;
|
|
17
|
-
}
|
|
18
|
+
};
|
package/lib/runner.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IContext, IValidationErrorItem } from './joi/joi.
|
|
1
|
+
import { IContext, IValidationErrorItem } from './joi/joi.type';
|
|
2
2
|
import { IAccessKey, LANGUAGES } from './languages';
|
|
3
3
|
import * as TRANSLATIONS from './translations';
|
|
4
4
|
|
|
@@ -81,6 +81,7 @@ export class Locale {
|
|
|
81
81
|
if (accessKey) {
|
|
82
82
|
|
|
83
83
|
this.setJoiLabel(detail);
|
|
84
|
+
this.setValidTypes(detail);
|
|
84
85
|
|
|
85
86
|
return this.reach(TRANSLATIONS.joi[detail.type], detail.context as IReplaces);
|
|
86
87
|
}
|
|
@@ -125,6 +126,14 @@ export class Locale {
|
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
128
|
|
|
129
|
+
private setValidTypes(detail: IValidationErrorItem) {
|
|
130
|
+
|
|
131
|
+
if (detail.context && detail.context.types && Array.isArray(detail.context.types)) {
|
|
132
|
+
|
|
133
|
+
detail.context.types = detail.context.types.map(type => this.reach(TRANSLATIONS.joi[type])).join(', ');
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
128
137
|
/*
|
|
129
138
|
Criar teste para esta função abaixo recebendo este detail:
|
|
130
139
|
detail {
|
package/lib/tests/joi.spec.ts
CHANGED
|
@@ -72,4 +72,26 @@ describe('Joi tests', () => {
|
|
|
72
72
|
}
|
|
73
73
|
} as any)).toEqual('1er valor de path debe se del tipo texto.');
|
|
74
74
|
});
|
|
75
|
+
|
|
76
|
+
it('should return translated types', () => {
|
|
77
|
+
|
|
78
|
+
expect(localeptBR.joi({
|
|
79
|
+
type: 'alternatives.types',
|
|
80
|
+
path: ['path'],
|
|
81
|
+
context: {
|
|
82
|
+
key: 'cf_1',
|
|
83
|
+
label: 'Campo personalizado',
|
|
84
|
+
types: ['string', 'number']
|
|
85
|
+
}
|
|
86
|
+
} as any)).toEqual('Campo personalizado precisa ser de um dos tipos: Texto, Numérico.');
|
|
87
|
+
expect(localeptES.joi({
|
|
88
|
+
type: 'alternatives.types',
|
|
89
|
+
path: ['path'],
|
|
90
|
+
context: {
|
|
91
|
+
key: 'cf_1',
|
|
92
|
+
label: 'Campo personalizado',
|
|
93
|
+
types: ['string', 'number']
|
|
94
|
+
}
|
|
95
|
+
} as any)).toEqual('Campo personalizado necesita ser único en su clase: Texto, Numérico.');
|
|
96
|
+
});
|
|
75
97
|
});
|
|
@@ -96,5 +96,21 @@ export const joi: ITranslation = {
|
|
|
96
96
|
'array.unique': {
|
|
97
97
|
ptBR: 'Os valores do campo {{label}} devem ser únicos.',
|
|
98
98
|
es: 'Los valores del campo {{label}} deben ser únicos.'
|
|
99
|
+
},
|
|
100
|
+
'alternatives.types': {
|
|
101
|
+
ptBR: '{{label}} precisa ser de um dos tipos: {{types}}.',
|
|
102
|
+
es: '{{label}} necesita ser único en su clase: {{types}}.'
|
|
103
|
+
},
|
|
104
|
+
'string': {
|
|
105
|
+
ptBR: 'Texto',
|
|
106
|
+
es: 'Texto'
|
|
107
|
+
},
|
|
108
|
+
'number': {
|
|
109
|
+
ptBR: 'Numérico',
|
|
110
|
+
es: 'Numérico'
|
|
111
|
+
},
|
|
112
|
+
'date': {
|
|
113
|
+
ptBR: 'Data',
|
|
114
|
+
es: 'Fecha'
|
|
99
115
|
}
|
|
100
116
|
};
|
|
@@ -98,6 +98,14 @@ export const fields = {
|
|
|
98
98
|
pre_invoice_conference_template: {
|
|
99
99
|
ptBR: 'Modelo de Coferência de pré fatura',
|
|
100
100
|
es: 'Plantilla de Conferencia de la pre-factura'
|
|
101
|
+
},
|
|
102
|
+
instruction_file_url: {
|
|
103
|
+
ptBR: 'Arquivo da instrução',
|
|
104
|
+
es: 'Archivo de instrucción'
|
|
105
|
+
},
|
|
106
|
+
procuration_file_url: {
|
|
107
|
+
ptBR: 'Arquivo da procuração',
|
|
108
|
+
es: 'Archivo de procuración'
|
|
101
109
|
}
|
|
102
110
|
};
|
|
103
111
|
|
package/package.json
CHANGED
|
File without changes
|