<?php

namespace EasyLinkAutomations\HTTP\Controllers\Triggers;

if (!defined('ABSPATH')) {
    exit;
}

use EasyLinkAutomations\HTTP\Request\Request;
use EasyLinkAutomations\HTTP\Response;

/**
 * Controller for Thrive Leads trigger endpoints.
 */
final class ThriveLeadsController
{
    /**
     * Return form fields for a Thrive Leads form.
     *
     * Route: thrive-leads/form-fields
     */
    public function formFields(Request $request): Response
    {
        // Thrive Leads form fields are standardized.
        $fields = [
            'form_id'      => 'Form ID',
            'post_id'      => 'Form Type ID',
            'thrive_leads' => 'Thrive Leads Data',
        ];

        return Response::success(['fields' => $fields]);
    }
}
