mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(editor): Add time range selector to Insights (#14877)
Co-authored-by: Guillaume Jacquart <jacquart.guillaume@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2d60e469f3
commit
bfd85dd3c9
@@ -5,13 +5,20 @@ import type {
|
||||
InsightsByTime,
|
||||
InsightsByWorkflow,
|
||||
ListInsightsWorkflowQueryDto,
|
||||
InsightsDateRange,
|
||||
} from '@n8n/api-types';
|
||||
|
||||
export const fetchInsightsSummary = async (context: IRestApiContext): Promise<InsightsSummary> =>
|
||||
await makeRestApiRequest(context, 'GET', '/insights/summary');
|
||||
export const fetchInsightsSummary = async (
|
||||
context: IRestApiContext,
|
||||
filter?: { dateRange: InsightsDateRange['key'] },
|
||||
): Promise<InsightsSummary> =>
|
||||
await makeRestApiRequest(context, 'GET', '/insights/summary', filter);
|
||||
|
||||
export const fetchInsightsByTime = async (context: IRestApiContext): Promise<InsightsByTime[]> =>
|
||||
await makeRestApiRequest(context, 'GET', '/insights/by-time');
|
||||
export const fetchInsightsByTime = async (
|
||||
context: IRestApiContext,
|
||||
filter?: { dateRange: InsightsDateRange['key'] },
|
||||
): Promise<InsightsByTime[]> =>
|
||||
await makeRestApiRequest(context, 'GET', '/insights/by-time', filter);
|
||||
|
||||
export const fetchInsightsByWorkflow = async (
|
||||
context: IRestApiContext,
|
||||
|
||||
Reference in New Issue
Block a user