import { SFDX , SFDXResponse } from "../SFDX" ; export interface GetLogFilesResult { Id : String ; Application : string ; DurationMilliseconds : number ; Location : string ; LogLength : number ; Operation : string ; Request : string ; StartTime : string ; Status : string ; } export class GetLogFiles { static async apply ( path ) { const result = await SFDX . apply ( path , [ "force:apex:log:list" , "--json" ] ) ; return JSON . parse ( result ) as SFDXResponse < GetLogFilesResult [ ] > ; } }