mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
feat(API): Add fields to insight by time type and export types from index (#14172)
This commit is contained in:
committed by
GitHub
parent
7fb6eb1488
commit
3d332ab04f
@@ -32,4 +32,6 @@ export type {
|
|||||||
InsightsSummaryType,
|
InsightsSummaryType,
|
||||||
InsightsSummaryUnit,
|
InsightsSummaryUnit,
|
||||||
InsightsSummary,
|
InsightsSummary,
|
||||||
|
InsightsByWorkflow,
|
||||||
|
InsightsByTime,
|
||||||
} from './schemas/insights.schema';
|
} from './schemas/insights.schema';
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ describe('insightsByTimeSchema', () => {
|
|||||||
date: '2025-03-25T10:34:36.484Z',
|
date: '2025-03-25T10:34:36.484Z',
|
||||||
values: {
|
values: {
|
||||||
total: 200,
|
total: 200,
|
||||||
|
succeeded: 180,
|
||||||
|
failed: 20,
|
||||||
failureRate: 10,
|
failureRate: 10,
|
||||||
averageRunTime: 40,
|
averageRunTime: 40,
|
||||||
timeSaved: 100,
|
timeSaved: 100,
|
||||||
@@ -175,6 +177,8 @@ describe('insightsByTimeSchema', () => {
|
|||||||
date: '20240325', // Should be a string
|
date: '20240325', // Should be a string
|
||||||
values: {
|
values: {
|
||||||
total: 200,
|
total: 200,
|
||||||
|
succeeded: 180,
|
||||||
|
failed: 20,
|
||||||
failureRate: 10,
|
failureRate: 10,
|
||||||
averageRunTime: 40,
|
averageRunTime: 40,
|
||||||
timeSaved: 100,
|
timeSaved: 100,
|
||||||
@@ -188,6 +192,8 @@ describe('insightsByTimeSchema', () => {
|
|||||||
date: 20240325, // Should be a string
|
date: 20240325, // Should be a string
|
||||||
values: {
|
values: {
|
||||||
total: 200,
|
total: 200,
|
||||||
|
succeeded: 180,
|
||||||
|
failed: 20,
|
||||||
failureRate: 10,
|
failureRate: 10,
|
||||||
averageRunTime: 40,
|
averageRunTime: 40,
|
||||||
timeSaved: 100,
|
timeSaved: 100,
|
||||||
@@ -201,6 +207,8 @@ describe('insightsByTimeSchema', () => {
|
|||||||
date: '2025-03-25T10:34:36.484Z',
|
date: '2025-03-25T10:34:36.484Z',
|
||||||
values: {
|
values: {
|
||||||
total: 200,
|
total: 200,
|
||||||
|
succeeded: 180,
|
||||||
|
failed: 20,
|
||||||
failureRate: 10,
|
failureRate: 10,
|
||||||
averageRunTime: 40,
|
averageRunTime: 40,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -74,6 +74,8 @@ export const insightsByTimeDataSchemas = {
|
|||||||
values: z
|
values: z
|
||||||
.object({
|
.object({
|
||||||
total: z.number(),
|
total: z.number(),
|
||||||
|
succeeded: z.number(),
|
||||||
|
failed: z.number(),
|
||||||
failureRate: z.number(),
|
failureRate: z.number(),
|
||||||
averageRunTime: z.number(),
|
averageRunTime: z.number(),
|
||||||
timeSaved: z.number(),
|
timeSaved: z.number(),
|
||||||
|
|||||||
Reference in New Issue
Block a user