fix(perfexcrm module): align version to 3.0.1, unify entrypoint, and harden routes/views

- Bump DESK_MOLONI version to 3.0.1 across module
- Normalize hooks to after_client_* and instantiate PerfexHooks safely
- Fix OAuthController view path and API client class name
- Add missing admin views for webhook config/logs; adjust view loading
- Harden client portal routes and admin routes mapping
- Make Dashboard/Logs/Queue tolerant to optional model methods
- Align log details query with existing schema; avoid broken joins

This makes the module operational in Perfex (admin + client), reduces 404s,
and avoids fatal errors due to inconsistent tables/methods.
This commit is contained in:
Emanuel Almeida
2025-09-11 17:38:45 +01:00
parent 5e5102db73
commit c19f6fd9ee
193 changed files with 59298 additions and 638 deletions

29
composer.json Normal file
View File

@@ -0,0 +1,29 @@
{
"name": "perfex/desk-moloni",
"description": "Desk-Moloni v3.0 - Bidirectional sync between Perfex CRM and Moloni ERP",
"version": "3.0.1",
"type": "perfex-module",
"require": {
"php": "^8.1"
},
"require-dev": {
"phpunit/phpunit": "^9.6"
},
"autoload": {
"psr-4": {
"DeskMoloni\\": "libraries/",
"DeskMoloni\\Models\\": "models/",
"DeskMoloni\\Controllers\\": "controllers/",
"DeskMoloni\\Tests\\": "tests/"
}
},
"scripts": {
"test": "phpunit --configuration phpunit.xml",
"test:unit": "phpunit --testsuite unit",
"test:contract": "phpunit --testsuite contract"
},
"config": {
"optimize-autoloader": true,
"sort-packages": true
}
}