import { Systems } from '@tapis/tapis-typescript'; import { apiGenerator, errorDecoder } from '../utils'; const createChildSystem = ( reqPostChildSystem: Systems.ReqPostChildSystem, parentId: string, basePath: string, jwt: string ) => { const api: Systems.ChildSystemsApi = apiGenerator( Systems, Systems.ChildSystemsApi, basePath, jwt ); return errorDecoder(() => api.createChildSystem({ reqPostChildSystem, parentId }) ); }; export default createChildSystem;