From 759e9ff9ab4a53a3f748dfebfe11b83cecd4cdaa Mon Sep 17 00:00:00 2001 From: Rocky Fischer Date: Tue, 10 Dec 2024 14:39:02 -0500 Subject: [PATCH] feat(analytics): fine-grained time for current / previous week [MA-2499] --- packages/analytics/analytics-utilities/src/timeframes.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/analytics/analytics-utilities/src/timeframes.ts b/packages/analytics/analytics-utilities/src/timeframes.ts index 8f7020c277..28210ce5de 100644 --- a/packages/analytics/analytics-utilities/src/timeframes.ts +++ b/packages/analytics/analytics-utilities/src/timeframes.ts @@ -377,6 +377,7 @@ export const TimePeriods = new Map([ dataGranularity: 'daily', isRelative: false, allowedTiers: ['plus', 'enterprise'], + allowedGranularitiesOverride: ['thirtyMinutely', 'hourly', 'twoHourly', 'twelveHourly', 'daily'], }), ], [ @@ -409,6 +410,7 @@ export const TimePeriods = new Map([ dataGranularity: 'daily', isRelative: false, allowedTiers: ['plus', 'enterprise'], + allowedGranularitiesOverride: ['thirtyMinutely', 'hourly', 'twoHourly', 'twelveHourly', 'daily'], }), ], [