diff --git a/web/src/routes/busterRoutes/busterAppRoutes.ts b/web/src/routes/busterRoutes/busterAppRoutes.ts index 1be43fa74..ed2917989 100644 --- a/web/src/routes/busterRoutes/busterAppRoutes.ts +++ b/web/src/routes/busterRoutes/busterAppRoutes.ts @@ -5,10 +5,12 @@ export enum BusterAppRoutes { APP_METRIC = '/app/metrics', APP_METRIC_ID = '/app/metrics/:metricId', APP_METRIC_ID_CHART = '/app/metrics/:metricId/chart', + APP_METRIC_ID_VERSION_NUMBER = '/app/metrics/:metricId/chart?metric_version_number=:versionNumber', APP_METRIC_ID_FILE = '/app/metrics/:metricId/file', APP_METRIC_ID_RESULTS = '/app/metrics/:metricId/results', APP_DASHBOARDS = '/app/dashboards', APP_DASHBOARD_ID = '/app/dashboards/:dashboardId', + APP_DASHBOARD_ID_VERSION_NUMBER = '/app/dashboards/:dashboardId?dashboard_version_number=:versionNumber', APP_DASHBOARD_ID_FILE = '/app/dashboards/:dashboardId/file', APP_LOGS = '/app/logs', APP_DATASETS = '/app/datasets', @@ -56,6 +58,11 @@ export type BusterAppRoutesWithArgs = { route: BusterAppRoutes.APP_METRIC_ID_CHART; metricId: string; }; + [BusterAppRoutes.APP_METRIC_ID_VERSION_NUMBER]: { + route: BusterAppRoutes.APP_METRIC_ID_VERSION_NUMBER; + metricId: string; + versionNumber: string; + }; [BusterAppRoutes.APP_METRIC_ID_FILE]: { route: BusterAppRoutes.APP_METRIC_ID_FILE; metricId: string; @@ -69,6 +76,11 @@ export type BusterAppRoutesWithArgs = { route: BusterAppRoutes.APP_DASHBOARD_ID; dashboardId: string; }; + [BusterAppRoutes.APP_DASHBOARD_ID_VERSION_NUMBER]: { + route: BusterAppRoutes.APP_DASHBOARD_ID_VERSION_NUMBER; + dashboardId: string; + versionNumber: string; + }; [BusterAppRoutes.APP_DASHBOARD_ID_FILE]: { route: BusterAppRoutes.APP_DASHBOARD_ID_FILE; dashboardId: string; @@ -146,6 +158,12 @@ export type BusterAppRoutesWithArgs = { chatId: string; dashboardId: string; }; + [BusterAppRoutes.APP_CHAT_ID_DASHBOARD_ID_VERSION_NUMBER]: { + route: BusterAppRoutes.APP_CHAT_ID_DASHBOARD_ID_VERSION_NUMBER; + chatId: string; + dashboardId: string; + versionNumber: string; + }; [BusterAppRoutes.APP_CHAT_ID_DASHBOARD_ID_FILE]: { route: BusterAppRoutes.APP_CHAT_ID_DASHBOARD_ID_FILE; chatId: string;