UNPKG

@tapis/tapisui-api

Version:

Typescript library for making api calls with react query

19 lines (16 loc) 448 B
import { Pods } from '@tapis/tapis-typescript'; import { apiGenerator, errorDecoder } from '../utils'; const getPodLogs = ( params: Pods.GetPodLogsRequest, basePath: string, jwt: string ): Promise<Pods.PodLogsResponse> => { const api: Pods.LogsApi = apiGenerator<Pods.LogsApi>( Pods, Pods.LogsApi, basePath, jwt ); return errorDecoder<Pods.PodLogsResponse>(() => api.getPodLogs(params)); }; export default getPodLogs;