<?php

declare(strict_types=1);

namespace ImovelZapAi\Automation\Domain\Enums;

enum ActionKey: string
{
    case SendWhatsapp = 'send_whatsapp';
    case SendEmail = 'send_email';
    case CreateTask = 'create_task';
    case CreateReminder = 'create_reminder';
    case MoveDealStage = 'move_deal_stage';
    case AssignBroker = 'assign_broker';
    case CreateNotification = 'create_notification';
    case GenerateDocument = 'generate_document';
    case RequestDocuments = 'request_documents';
    case StartSignature = 'start_signature';
    case CreateVisit = 'create_visit';
    case Wait = 'wait';

    public function label(): string
    {
        return match ($this) {
            self::SendWhatsapp => 'Enviar WhatsApp',
            self::SendEmail => 'Enviar e-mail',
            self::CreateTask => 'Criar tarefa',
            self::CreateReminder => 'Criar lembrete',
            self::MoveDealStage => 'Mover etapa da oportunidade',
            self::AssignBroker => 'Atribuir corretor',
            self::CreateNotification => 'Criar notificação',
            self::GenerateDocument => 'Gerar documento',
            self::RequestDocuments => 'Solicitar documentos',
            self::StartSignature => 'Iniciar assinatura',
            self::CreateVisit => 'Agendar visita',
            self::Wait => 'Aguardar',
        };
    }
}
