Automation administration dashboard
* Manual automations * Scheduled automations * Incoming webhook triggers * Domain-event trigger foundation * Ordered automation steps * Queued execution * Run status and execution history * Per-step execution logs * Continue-or-stop-on-failure control * Email actions * Outgoing webhook actions * Application log actions * Delay actions * Secure incoming webhook secrets * Automation trigger and action registries * Extensible action and trigger contracts * Scheduled automation Artisan command * Administration navigation * Automation permissions * Module registration and boot test
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace Modules\Automation\Services;
|
||||
use Modules\Automation\Contracts\TriggerRegistry;
|
||||
final class AutomationTriggerRegistry implements TriggerRegistry
|
||||
{
|
||||
public function all(): array
|
||||
{
|
||||
return [
|
||||
'manual'=>['label'=>'Manual','description'=>'Run from the administration area or API.'],
|
||||
'schedule'=>['label'=>'Schedule','description'=>'Run when next_run_at is due.'],
|
||||
'webhook'=>['label'=>'Incoming webhook','description'=>'Run from a signed API request.'],
|
||||
'domain_event'=>['label'=>'Domain event','description'=>'Run when an application event is dispatched.'],
|
||||
];
|
||||
}
|
||||
public function has(string $type): bool { return array_key_exists($type,$this->all()); }
|
||||
}
|
||||
Reference in New Issue
Block a user