from typing import Mapping
from typing import Any


def update_analytics_params(stream_slice: Mapping[str, Any]) -> Mapping[str, Any]:
    """
    Produces the date range parameters from input stream_slice
    """
    return {
        # Start date range
        "dateRange.start.day": stream_slice["dateRange"]["start.day"],
        "dateRange.start.month": stream_slice["dateRange"]["start.month"],
        "dateRange.start.year": stream_slice["dateRange"]["start.year"],
        # End date range
        "dateRange.end.day": stream_slice["dateRange"]["end.day"],
        "dateRange.end.month": stream_slice["dateRange"]["end.month"],
        "dateRange.end.year": stream_slice["dateRange"]["end.year"],
        # Chunk of fields
        "fields": stream_slice["fields"],
    }