import client from '../client' ; import { splitRequestBy100 } from '../_helpers/splitRequestBy100' ; import { AxiosRequestConfig } from 'axios' ; export type FindByIdsOpts = { ids : ReadonlyArray < string > ; } ; export async function approvalFindByIds ( opts , context ) { const { ids } = opts || { } ; const params = { } ; return splitRequestBy100 ( ids , async ( preparedIds ) => { const res = await client . get ( `/approvals/${ preparedIds }` , { ... context , params } ) ; return res ?. data ?. data ; } ) ; }