UNPKG

@tapis/tapisui-api

Version:

Typescript library for making api calls with react query

22 lines (19 loc) 522 B
import { Authenticator } from '@tapis/tapis-typescript'; import { apiGenerator, errorDecoder } from '../utils'; const listProfiles = ( params: Authenticator.ListProfilesRequest, basePath: string, jwt: string ) => { const api: Authenticator.ProfilesApi = apiGenerator<Authenticator.ProfilesApi>( Authenticator, Authenticator.ProfilesApi, basePath, jwt ); return errorDecoder<Authenticator.RespListProfiles>(() => api.listProfiles(params) ); }; export default listProfiles;