From 1565ad95a31c2b5a6a1d8681ab94c26fe35776d8 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 23 Feb 2024 12:53:12 -0300 Subject: [PATCH] Add inactive_vertices and VertexDataTypeAPI to VertexBuildTypeAPI --- src/frontend/src/types/api/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/frontend/src/types/api/index.ts b/src/frontend/src/types/api/index.ts index 1286a90bc..ae34aa651 100644 --- a/src/frontend/src/types/api/index.ts +++ b/src/frontend/src/types/api/index.ts @@ -139,8 +139,18 @@ export type VerticesOrderTypeAPI = { export type VertexBuildTypeAPI = { id: string; + inactive_vertices: Array | null; valid: boolean; params: string; + data: VertexDataTypeAPI; + timestamp: string; +}; + +// data is the object received by the API +// it has results, artifacts, timedelta, duration +export type VertexDataTypeAPI = { results: { [key: string]: { [key: string]: string } }; artifacts: { [key: string]: string }; + timedelta?: number; + duration?: string; };