<?php
namespace Components\Data\Contracts;

interface AnalyticsProvider
{
    /**
     * Returns the data required by the dashboard_summary component.
     * Keys:
     * - emailsSent (int)
     * - monthsAgo (int)
     * - beginningIso (string)
     * - bouncedPercent (int)
     * - bouncedCount (int)
     * - openedPercent (int)
     * - openedCount (int)
     * - clickPercent (int)
     * - clickCount (int)
     * - orderPercent (int)
     * - orderCount (int)
     * - revenue (string)
     * - voucherSum (string)
     * - bot (string|null) beginning_of_time raw value
     */
    public function getDashboardSummary($refresh = false): array;
}
