@tapis/tapisui-api
Version:
Typescript library for making api calls with react query
19 lines (16 loc) • 448 B
text/typescript
import { Pods } from '@tapis/tapis-typescript';
import { apiGenerator, errorDecoder } from '../utils';
const deletePod = (
params: Pods.DeletePodRequest,
basePath: string,
jwt: string
): Promise<Pods.PodDeleteResponse> => {
const api: Pods.PodsApi = apiGenerator<Pods.PodsApi>(
Pods,
Pods.PodsApi,
basePath,
jwt
);
return errorDecoder<Pods.PodDeleteResponse>(() => api.deletePod(params));
};
export default deletePod;