UNPKG

@tapis/tapisui-api

Version:

Typescript library for making api calls with react query

19 lines (16 loc) 445 B
import { Systems } from '@tapis/tapis-typescript'; import { apiGenerator, errorDecoder } from '../utils'; const shareSystem = ( params: Systems.ShareSystemRequest, basePath: string, jwt: string ) => { const api: Systems.SharingApi = apiGenerator<Systems.SharingApi>( Systems, Systems.SharingApi, basePath, jwt ); return errorDecoder<Systems.RespBasic>(() => api.shareSystem(params)); }; export default shareSystem;