(queryClient: QueryClient, workflowId: string)
| 55 | * Used by mutation onSuccess callbacks and manual invalidation after chat deployments. |
| 56 | */ |
| 57 | export function invalidateDeploymentQueries(queryClient: QueryClient, workflowId: string) { |
| 58 | return Promise.all([ |
| 59 | queryClient.invalidateQueries({ queryKey: deploymentKeys.info(workflowId) }), |
| 60 | queryClient.invalidateQueries({ queryKey: deploymentKeys.deployedState(workflowId) }), |
| 61 | queryClient.invalidateQueries({ queryKey: deploymentKeys.versions(workflowId) }), |
| 62 | queryClient.invalidateQueries({ queryKey: deploymentKeys.chatStatus(workflowId) }), |
| 63 | ]) |
| 64 | } |
| 65 | |
| 66 | export async function refetchDeploymentBoundary(queryClient: QueryClient, workflowId: string) { |
| 67 | await invalidateDeploymentQueries(queryClient, workflowId) |
no test coverage detected