2025-01-07 02:29:29 +08:00
|
|
|
export enum BusterAppRoutes {
|
|
|
|
APP_ROOT = '/app',
|
|
|
|
APP_COLLECTIONS = '/app/collections',
|
|
|
|
APP_COLLECTIONS_ID = '/app/collections/:collectionId',
|
2025-02-01 06:21:50 +08:00
|
|
|
APP_COLLECTIONS_ID_METRICS_ID = '/app/collections/:collectionId/metrics/:metricId',
|
|
|
|
APP_METRIC = '/app/metrics',
|
|
|
|
APP_METRIC_ID = '/app/metrics/:metricId',
|
2025-01-07 02:29:29 +08:00
|
|
|
APP_DASHBOARDS = '/app/dashboards',
|
|
|
|
APP_DASHBOARD_ID = '/app/dashboards/:dashboardId',
|
2025-02-01 06:21:50 +08:00
|
|
|
APP_DASHBOARD_METRICS = '/app/dashboards/:dashboardId/metrics',
|
|
|
|
APP_DASHBOARD_METRICS_ID = '/app/dashboards/:dashboardId/metrics/:metricId',
|
2025-01-07 02:29:29 +08:00
|
|
|
APP_LOGS = '/app/logs',
|
|
|
|
APP_DATASETS = '/app/datasets',
|
|
|
|
APP_DATASETS_ID = '/app/datasets/:datasetId',
|
2025-01-28 06:48:29 +08:00
|
|
|
|
2025-01-07 02:29:29 +08:00
|
|
|
APP_DATASETS_ID_OVERVIEW = '/app/datasets/:datasetId/overview',
|
2025-01-18 11:20:47 +08:00
|
|
|
APP_DATASETS_ID_PERMISSIONS_OVERVIEW = '/app/datasets/:datasetId/permissions/overview',
|
|
|
|
APP_DATASETS_ID_PERMISSIONS_PERMISSION_GROUPS = '/app/datasets/:datasetId/permissions/permission-groups',
|
|
|
|
APP_DATASETS_ID_PERMISSIONS_USERS = '/app/datasets/:datasetId/permissions/users',
|
|
|
|
APP_DATASETS_ID_PERMISSIONS_DATASET_GROUPS = '/app/datasets/:datasetId/permissions/dataset-groups',
|
2025-01-10 03:04:57 +08:00
|
|
|
APP_DATASETS_ID_EDITOR = '/app/datasets/:datasetId/editor',
|
2025-01-07 02:29:29 +08:00
|
|
|
APP_TERMS = '/app/terms',
|
|
|
|
APP_TERMS_ID = '/app/terms/:termId',
|
2025-01-28 06:48:29 +08:00
|
|
|
|
|
|
|
//NEW CHAT
|
|
|
|
APP_CHAT_ID = '/app/chat/:chatId',
|
2025-02-09 06:40:41 +08:00
|
|
|
APP_CHAT_ID_REASONING_ID = '/app/chat/:chatId/reasoning/:messageId',
|
2025-01-28 06:48:29 +08:00
|
|
|
APP_CHAT_ID_METRIC_ID = '/app/chat/:chatId/metric/:metricId',
|
|
|
|
APP_CHAT_ID_COLLECTION_ID = '/app/chat/:chatId/collection/:collectionId',
|
|
|
|
APP_CHAT_ID_DASHBOARD_ID = '/app/chat/:chatId/dashboard/:dashboardId',
|
|
|
|
APP_CHAT_ID_DATASET_ID = '/app/chat/:chatId/dataset/:datasetId',
|
|
|
|
APP_CHAT_ID_TERM_ID = '/app/chat/:chatId/term/:termId',
|
|
|
|
APP_CHAT_ID_VALUE_ID = '/app/chat/:chatId/value/:valueId',
|
|
|
|
APP_VALUE_ID = '/app/value/:valueId',
|
|
|
|
|
2025-01-07 02:29:29 +08:00
|
|
|
SETTINGS = '/app/settings',
|
|
|
|
SETTINGS_GENERAL = '/app/settings/general',
|
|
|
|
SETTINGS_PERMISSIONS = '/app/settings/permissions',
|
|
|
|
SETTINGS_STORAGE = '/app/settings/storage',
|
|
|
|
SETTINGS_DATASOURCES = '/app/settings/datasources',
|
|
|
|
SETTINGS_DATASOURCES_ID = '/app/settings/datasources/:datasourceId',
|
|
|
|
SETTINGS_DATASOURCES_ADD = '/app/settings/datasources/add',
|
|
|
|
SETTINGS_INTEGRATIONS = '/app/settings/integrations',
|
|
|
|
SETTINGS_PERMISSION_GROUPS = '/app/settings/permission-groups',
|
2025-01-22 11:26:09 +08:00
|
|
|
SETTINGS_PERMISSION_GROUPS_ID_USERS = '/app/settings/permission-groups/:permissionGroupId/users',
|
|
|
|
SETTINGS_PERMISSION_GROUPS_ID_DATASET_GROUPS = '/app/settings/permission-groups/:permissionGroupId/dataset-groups',
|
|
|
|
SETTINGS_PERMISSION_GROUPS_ID_DATASETS = '/app/settings/permission-groups/:permissionGroupId/datasets',
|
2025-01-07 02:29:29 +08:00
|
|
|
SETTINGS_API_KEYS = '/app/settings/api-keys',
|
|
|
|
SETTINGS_EMBEDS = '/app/settings/embeds',
|
|
|
|
SETTINGS_BILLING = '/app/settings/billing',
|
|
|
|
SETTINGS_PROFILE = '/app/settings/profile',
|
|
|
|
SETTINGS_PREFERENCES = '/app/settings/preferences',
|
|
|
|
SETTINGS_NOTIFICATIONS = '/app/settings/notifications',
|
|
|
|
SETTINGS_TEAM_ID = '/app/settings/team/:teamId',
|
2025-01-16 03:20:45 +08:00
|
|
|
APP_SETTINGS_USERS = '/app/settings/users',
|
|
|
|
APP_SETTINGS_USERS_ID = '/app/settings/users/:userId',
|
2025-01-21 10:42:55 +08:00
|
|
|
APP_SETTINGS_USERS_ID_PERMISSION_GROUPS = '/app/settings/users/:userId/permission-groups',
|
|
|
|
APP_SETTINGS_USERS_ID_ATTRIBUTES = '/app/settings/users/:userId/attributes',
|
|
|
|
APP_SETTINGS_USERS_ID_DATASETS = '/app/settings/users/:userId/datasets',
|
|
|
|
APP_SETTINGS_USERS_ID_DATASET_GROUPS = '/app/settings/users/:userId/dataset-groups',
|
|
|
|
APP_SETTINGS_USERS_ID_TEAMS = '/app/settings/users/:userId/teams',
|
2025-01-16 03:20:45 +08:00
|
|
|
APP_SETTINGS_DATASETS_ID = '/app/settings/datasets/:datasetId',
|
|
|
|
APP_SETTINGS_DATASET_GROUPS = '/app/settings/dataset-groups',
|
2025-01-23 02:43:53 +08:00
|
|
|
APP_SETTINGS_DATASET_GROUPS_ID_PERMISSION_GROUPS = '/app/settings/dataset-groups/:datasetGroupId/permission-groups',
|
|
|
|
APP_SETTINGS_DATASET_GROUPS_ID_DATASETS = '/app/settings/dataset-groups/:datasetGroupId/datasets',
|
|
|
|
APP_SETTINGS_DATASET_GROUPS_ID_USERS = '/app/settings/dataset-groups/:datasetGroupId/users',
|
2025-01-16 03:20:45 +08:00
|
|
|
APP_SETTINGS_ATTRIBUTES = '/app/settings/attributes',
|
|
|
|
APP_SETTINGS_SECURITY = '/app/settings/security',
|
2025-01-07 02:29:29 +08:00
|
|
|
NEW_USER = '/app/new-user'
|
|
|
|
}
|
|
|
|
|
|
|
|
export type BusterAppRoutesWithArgs = {
|
|
|
|
[BusterAppRoutes.APP_ROOT]: { route: BusterAppRoutes.APP_ROOT };
|
|
|
|
[BusterAppRoutes.APP_COLLECTIONS]: { route: BusterAppRoutes.APP_COLLECTIONS };
|
|
|
|
[BusterAppRoutes.APP_COLLECTIONS_ID]: {
|
|
|
|
route: BusterAppRoutes.APP_COLLECTIONS_ID;
|
|
|
|
collectionId: string;
|
|
|
|
};
|
2025-02-01 06:21:50 +08:00
|
|
|
[BusterAppRoutes.APP_METRIC]: { route: BusterAppRoutes.APP_METRIC };
|
|
|
|
[BusterAppRoutes.APP_METRIC_ID]: { route: BusterAppRoutes.APP_METRIC_ID; metricId: string };
|
2025-01-07 02:29:29 +08:00
|
|
|
[BusterAppRoutes.APP_DASHBOARDS]: { route: BusterAppRoutes.APP_DASHBOARDS };
|
|
|
|
[BusterAppRoutes.APP_DASHBOARD_ID]: {
|
|
|
|
route: BusterAppRoutes.APP_DASHBOARD_ID;
|
|
|
|
dashboardId: string;
|
|
|
|
};
|
2025-02-01 06:21:50 +08:00
|
|
|
[BusterAppRoutes.APP_DASHBOARD_METRICS]: {
|
|
|
|
route: BusterAppRoutes.APP_DASHBOARD_METRICS;
|
2025-01-07 02:29:29 +08:00
|
|
|
dashboardId: string;
|
|
|
|
};
|
2025-02-01 06:21:50 +08:00
|
|
|
[BusterAppRoutes.APP_DASHBOARD_METRICS_ID]: {
|
|
|
|
route: BusterAppRoutes.APP_DASHBOARD_METRICS_ID;
|
2025-01-07 02:29:29 +08:00
|
|
|
dashboardId: string;
|
2025-02-01 06:21:50 +08:00
|
|
|
metricId: string;
|
2025-01-07 02:29:29 +08:00
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_DATASETS]: { route: BusterAppRoutes.APP_DATASETS };
|
|
|
|
[BusterAppRoutes.APP_TERMS]: { route: BusterAppRoutes.APP_TERMS };
|
|
|
|
[BusterAppRoutes.SETTINGS]: { route: BusterAppRoutes.SETTINGS };
|
|
|
|
[BusterAppRoutes.SETTINGS_GENERAL]: { route: BusterAppRoutes.SETTINGS_GENERAL };
|
|
|
|
[BusterAppRoutes.SETTINGS_PERMISSIONS]: { route: BusterAppRoutes.SETTINGS_PERMISSIONS };
|
|
|
|
[BusterAppRoutes.SETTINGS_STORAGE]: { route: BusterAppRoutes.SETTINGS_STORAGE };
|
|
|
|
[BusterAppRoutes.SETTINGS_DATASOURCES]: { route: BusterAppRoutes.SETTINGS_DATASOURCES };
|
|
|
|
[BusterAppRoutes.SETTINGS_INTEGRATIONS]: { route: BusterAppRoutes.SETTINGS_INTEGRATIONS };
|
|
|
|
[BusterAppRoutes.SETTINGS_PERMISSION_GROUPS]: {
|
|
|
|
route: BusterAppRoutes.SETTINGS_PERMISSION_GROUPS;
|
|
|
|
};
|
2025-01-22 11:26:09 +08:00
|
|
|
[BusterAppRoutes.SETTINGS_PERMISSION_GROUPS_ID_USERS]: {
|
|
|
|
route: BusterAppRoutes.SETTINGS_PERMISSION_GROUPS_ID_USERS;
|
|
|
|
permissionGroupId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.SETTINGS_PERMISSION_GROUPS_ID_DATASET_GROUPS]: {
|
|
|
|
route: BusterAppRoutes.SETTINGS_PERMISSION_GROUPS_ID_DATASET_GROUPS;
|
|
|
|
permissionGroupId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.SETTINGS_PERMISSION_GROUPS_ID_DATASETS]: {
|
|
|
|
route: BusterAppRoutes.SETTINGS_PERMISSION_GROUPS_ID_DATASETS;
|
2025-01-22 10:51:59 +08:00
|
|
|
permissionGroupId: string;
|
|
|
|
};
|
2025-01-07 02:29:29 +08:00
|
|
|
[BusterAppRoutes.SETTINGS_API_KEYS]: { route: BusterAppRoutes.SETTINGS_API_KEYS };
|
|
|
|
[BusterAppRoutes.SETTINGS_EMBEDS]: { route: BusterAppRoutes.SETTINGS_EMBEDS };
|
|
|
|
[BusterAppRoutes.SETTINGS_BILLING]: { route: BusterAppRoutes.SETTINGS_BILLING };
|
|
|
|
[BusterAppRoutes.SETTINGS_PROFILE]: { route: BusterAppRoutes.SETTINGS_PROFILE };
|
|
|
|
[BusterAppRoutes.SETTINGS_PREFERENCES]: { route: BusterAppRoutes.SETTINGS_PREFERENCES };
|
|
|
|
[BusterAppRoutes.SETTINGS_NOTIFICATIONS]: { route: BusterAppRoutes.SETTINGS_NOTIFICATIONS };
|
|
|
|
[BusterAppRoutes.SETTINGS_TEAM_ID]: { route: BusterAppRoutes.SETTINGS_TEAM_ID; teamId: string };
|
|
|
|
[BusterAppRoutes.SETTINGS_DATASOURCES_ID]: {
|
|
|
|
route: BusterAppRoutes.SETTINGS_DATASOURCES_ID;
|
|
|
|
datasourceId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.SETTINGS_DATASOURCES_ADD]: { route: BusterAppRoutes.SETTINGS_DATASOURCES_ADD };
|
|
|
|
[BusterAppRoutes.APP_DATASETS_ID]: { route: BusterAppRoutes.APP_DATASETS_ID; datasetId: string };
|
|
|
|
[BusterAppRoutes.APP_LOGS]: { route: BusterAppRoutes.APP_LOGS };
|
|
|
|
[BusterAppRoutes.APP_TERMS_ID]: { route: BusterAppRoutes.APP_TERMS_ID; termId: string };
|
|
|
|
[BusterAppRoutes.APP_DATASETS_ID_OVERVIEW]: {
|
|
|
|
route: BusterAppRoutes.APP_DATASETS_ID_OVERVIEW;
|
|
|
|
datasetId: string;
|
|
|
|
};
|
2025-01-18 11:20:47 +08:00
|
|
|
[BusterAppRoutes.APP_DATASETS_ID_PERMISSIONS_OVERVIEW]: {
|
|
|
|
route: BusterAppRoutes.APP_DATASETS_ID_PERMISSIONS_OVERVIEW;
|
|
|
|
datasetId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_DATASETS_ID_PERMISSIONS_PERMISSION_GROUPS]: {
|
|
|
|
route: BusterAppRoutes.APP_DATASETS_ID_PERMISSIONS_PERMISSION_GROUPS;
|
|
|
|
datasetId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_DATASETS_ID_PERMISSIONS_USERS]: {
|
|
|
|
route: BusterAppRoutes.APP_DATASETS_ID_PERMISSIONS_USERS;
|
|
|
|
datasetId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_DATASETS_ID_PERMISSIONS_DATASET_GROUPS]: {
|
|
|
|
route: BusterAppRoutes.APP_DATASETS_ID_PERMISSIONS_DATASET_GROUPS;
|
|
|
|
datasetId: string;
|
|
|
|
};
|
2025-01-10 03:04:57 +08:00
|
|
|
[BusterAppRoutes.APP_DATASETS_ID_EDITOR]: {
|
|
|
|
route: BusterAppRoutes.APP_DATASETS_ID_EDITOR;
|
2025-01-07 02:29:29 +08:00
|
|
|
datasetId: string;
|
|
|
|
};
|
2025-02-01 06:21:50 +08:00
|
|
|
[BusterAppRoutes.APP_COLLECTIONS_ID_METRICS_ID]: {
|
|
|
|
route: BusterAppRoutes.APP_COLLECTIONS_ID_METRICS_ID;
|
2025-01-07 02:29:29 +08:00
|
|
|
collectionId: string;
|
2025-02-01 06:21:50 +08:00
|
|
|
metricId: string;
|
2025-01-07 02:29:29 +08:00
|
|
|
};
|
|
|
|
[BusterAppRoutes.NEW_USER]: { route: BusterAppRoutes.NEW_USER };
|
2025-01-16 03:20:45 +08:00
|
|
|
[BusterAppRoutes.APP_SETTINGS_USERS]: { route: BusterAppRoutes.APP_SETTINGS_USERS };
|
|
|
|
[BusterAppRoutes.APP_SETTINGS_USERS_ID]: {
|
|
|
|
route: BusterAppRoutes.APP_SETTINGS_USERS_ID;
|
|
|
|
userId: string;
|
|
|
|
};
|
2025-01-21 10:42:55 +08:00
|
|
|
[BusterAppRoutes.APP_SETTINGS_USERS_ID_PERMISSION_GROUPS]: {
|
|
|
|
route: BusterAppRoutes.APP_SETTINGS_USERS_ID_PERMISSION_GROUPS;
|
|
|
|
userId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_SETTINGS_USERS_ID_ATTRIBUTES]: {
|
|
|
|
route: BusterAppRoutes.APP_SETTINGS_USERS_ID_ATTRIBUTES;
|
|
|
|
userId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_SETTINGS_USERS_ID_DATASETS]: {
|
|
|
|
route: BusterAppRoutes.APP_SETTINGS_USERS_ID_DATASETS;
|
|
|
|
userId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_SETTINGS_USERS_ID_DATASET_GROUPS]: {
|
|
|
|
route: BusterAppRoutes.APP_SETTINGS_USERS_ID_DATASET_GROUPS;
|
|
|
|
userId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_SETTINGS_USERS_ID_TEAMS]: {
|
|
|
|
route: BusterAppRoutes.APP_SETTINGS_USERS_ID_TEAMS;
|
|
|
|
userId: string;
|
|
|
|
};
|
2025-01-16 03:20:45 +08:00
|
|
|
[BusterAppRoutes.APP_SETTINGS_DATASETS_ID]: {
|
|
|
|
route: BusterAppRoutes.APP_SETTINGS_DATASETS_ID;
|
|
|
|
datasetId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_SETTINGS_DATASET_GROUPS]: {
|
|
|
|
route: BusterAppRoutes.APP_SETTINGS_DATASET_GROUPS;
|
|
|
|
};
|
2025-01-23 02:43:53 +08:00
|
|
|
[BusterAppRoutes.APP_SETTINGS_DATASET_GROUPS_ID_PERMISSION_GROUPS]: {
|
|
|
|
route: BusterAppRoutes.APP_SETTINGS_DATASET_GROUPS_ID_PERMISSION_GROUPS;
|
|
|
|
datasetGroupId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_SETTINGS_DATASET_GROUPS_ID_DATASETS]: {
|
|
|
|
route: BusterAppRoutes.APP_SETTINGS_DATASET_GROUPS_ID_DATASETS;
|
|
|
|
datasetGroupId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_SETTINGS_DATASET_GROUPS_ID_USERS]: {
|
|
|
|
route: BusterAppRoutes.APP_SETTINGS_DATASET_GROUPS_ID_USERS;
|
2025-01-16 03:20:45 +08:00
|
|
|
datasetGroupId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_SETTINGS_ATTRIBUTES]: { route: BusterAppRoutes.APP_SETTINGS_ATTRIBUTES };
|
|
|
|
[BusterAppRoutes.APP_SETTINGS_SECURITY]: { route: BusterAppRoutes.APP_SETTINGS_SECURITY };
|
2025-01-28 06:48:29 +08:00
|
|
|
[BusterAppRoutes.APP_CHAT_ID]: { route: BusterAppRoutes.APP_CHAT_ID; chatId: string };
|
2025-02-08 13:24:18 +08:00
|
|
|
[BusterAppRoutes.APP_CHAT_ID_REASONING_ID]: {
|
|
|
|
route: BusterAppRoutes.APP_CHAT_ID_REASONING_ID;
|
2025-02-08 10:45:48 +08:00
|
|
|
chatId: string;
|
2025-02-08 13:24:18 +08:00
|
|
|
messageId: string;
|
2025-02-08 10:45:48 +08:00
|
|
|
};
|
2025-01-28 06:48:29 +08:00
|
|
|
[BusterAppRoutes.APP_CHAT_ID_METRIC_ID]: {
|
|
|
|
route: BusterAppRoutes.APP_CHAT_ID_METRIC_ID;
|
|
|
|
chatId: string;
|
|
|
|
metricId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_CHAT_ID_COLLECTION_ID]: {
|
|
|
|
route: BusterAppRoutes.APP_CHAT_ID_COLLECTION_ID;
|
|
|
|
chatId: string;
|
|
|
|
collectionId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_CHAT_ID_DASHBOARD_ID]: {
|
|
|
|
route: BusterAppRoutes.APP_CHAT_ID_DASHBOARD_ID;
|
|
|
|
chatId: string;
|
|
|
|
dashboardId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_CHAT_ID_DATASET_ID]: {
|
|
|
|
route: BusterAppRoutes.APP_CHAT_ID_DATASET_ID;
|
|
|
|
chatId: string;
|
|
|
|
datasetId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_CHAT_ID_TERM_ID]: {
|
|
|
|
route: BusterAppRoutes.APP_CHAT_ID_TERM_ID;
|
|
|
|
chatId: string;
|
|
|
|
termId: string;
|
|
|
|
};
|
|
|
|
[BusterAppRoutes.APP_CHAT_ID_VALUE_ID]: {
|
|
|
|
route: BusterAppRoutes.APP_CHAT_ID_VALUE_ID;
|
|
|
|
chatId: string;
|
|
|
|
valueId: string;
|
|
|
|
};
|
2025-01-28 07:23:08 +08:00
|
|
|
[BusterAppRoutes.APP_METRIC_ID]: { route: BusterAppRoutes.APP_METRIC_ID; metricId: string };
|
|
|
|
[BusterAppRoutes.APP_VALUE_ID]: { route: BusterAppRoutes.APP_VALUE_ID; valueId: string };
|
2025-01-07 02:29:29 +08:00
|
|
|
};
|