/* tslint:disable */ /* eslint-disable */ /** * Jellyfin API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 10.8.9 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { ActivityLogEntryQueryResult, } from '../models'; import { ActivityLogEntryQueryResultFromJSON, ActivityLogEntryQueryResultToJSON, } from '../models'; export interface GetLogEntriesRequest { startIndex?: number; limit?: number; minDate?: Date; hasUserId?: boolean; } /** * */ export class ActivityLogApi extends runtime.BaseAPI { /** * Gets activity log entries. */ async getLogEntriesRaw(requestParameters: GetLogEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; if (requestParameters.startIndex !== undefined) { queryParameters['startIndex'] = requestParameters.startIndex; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.minDate !== undefined) { queryParameters['minDate'] = (requestParameters.minDate as any).toISOString(); } if (requestParameters.hasUserId !== undefined) { queryParameters['hasUserId'] = requestParameters.hasUserId; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // CustomAuthentication authentication } const response = await this.request({ path: `/System/ActivityLog/Entries`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => ActivityLogEntryQueryResultFromJSON(jsonValue)); } /** * Gets activity log entries. */ async getLogEntries(requestParameters: GetLogEntriesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.getLogEntriesRaw(requestParameters, initOverrides); return await response.value(); } }