def METHOD_NAME(self, request: Request, team: Team) -> Response:
    """
    Returns cumulative counts of unresolved groups per day within the stats period time range.
    Response:
    {
        <project_id>: {
            <isoformat_date>: {"unresolved": <unresolved_count>},
            ...
        }
        ...
    }
    """
    if not features.has("organizations:team-insights", team.organization, actor=request.user):
        return Response({"detail": "You do not have the insights feature enabled"}, status=400)
    # Team has no projects
    project_list = Project.objects.get_for_team_ids(team_ids=[team.id])
    if len(project_list) == 0:
        return Response({})
    start, end = get_date_range_from_params(request.GET)
    end = end.replace(hour=0, minute=0, second=0, microsecond=0) + timedelta(days=1)
    start = start.replace(hour=0, minute=0, second=0, microsecond=0) + timedelta(days=1)
    environments = [e.id for e in get_environments(request, team.organization)]
    environment_id = environments[0] if environments else None
    return Response(calculate_unresolved_counts(team, project_list, start, end, environment_id))