import client from '../client' ; import { AxiosRequestConfig } from 'axios' ; interface Filter { operations ? : string [ ] ; eventDate ? : { start ? : Date ; end ? : Date ; } ; } export type FindManyOpts = { filter ? : Filter ; pageSize ? : number ; nextPageToken ? : string ; } ; export async function auditLogFindMany ( opts , context ) { const { filter , pageSize , nextPageToken } = opts || { } ; const params = filter || { } ; if ( pageSize ) { params . pageSize = pageSize ; } if ( nextPageToken ) { params . nextPageToken = nextPageToken ; } const res = await client . get ( '/audit_log' , { ... context , params } ) ; return res ?. data ?. data ; }