<?php

namespace App\Support;

enum OperationRunType: string
{
    case InventorySync = 'inventory.sync';
    case PolicySync = 'policy.sync';
    case PolicySyncOne = 'policy.sync_one';
    case DirectoryGroupsSync = 'directory_groups.sync';
    case DriftGenerate = 'drift.generate';
    case BackupSetAddPolicies = 'backup_set.add_policies';
    case BackupSetRemovePolicies = 'backup_set.remove_policies';
    case BackupScheduleRunNow = 'backup_schedule.run_now';
    case BackupScheduleRetry = 'backup_schedule.retry';
    case RestoreExecute = 'restore.execute';

    public static function values(): array
    {
        return array_map(static fn (self $case): string => $case->value, self::cases());
    }
}
