@tapis/tapisui-api
Version:
Typescript library for making api calls with react query
21 lines (18 loc) • 470 B
text/typescript
import { Systems } from '@tapis/tapis-typescript';
import { apiGenerator, errorDecoder } from '../utils';
const changeOwner = (
params: Systems.ChangeSystemOwnerRequest,
basePath: string,
jwt: string
) => {
const api: Systems.SystemsApi = apiGenerator<Systems.SystemsApi>(
Systems,
Systems.SystemsApi,
basePath,
jwt
);
return errorDecoder<Systems.RespChangeCount>(() =>
api.changeSystemOwner(params)
);
};
export default changeOwner;