import { Client } from ".."; import { AuditLog } from "../models/regional/audit_logs"; import { unpackData } from "../utils"; export default class AuditLogs { /** Scalingo API Client */ _client: Client; /** * Create a new "thematic" client * @param client Scalingo API Client */ constructor(client: Client) { this._client = client; } /** * Get audit logs * @see https://developers.scalingo.com/audit_logs * @param appId ID of the application * @param id ID of the audit log * @return Promise that when resolved returns the audit logs */ async show(appId: string, id: string): Promise { return unpackData( this._client.apiClient().get(`/apps/${appId}/audit_logs/${id}`), ); } }