/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2025.6.3 * Contact: hello@goauthentik.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { EventActions } from './EventActions'; import { EventActionsFromJSON, EventActionsFromJSONTyped, EventActionsToJSON, EventActionsToJSONTyped, } from './EventActions'; /** * Count of events of action created on day * @export * @interface EventVolume */ export interface EventVolume { /** * * @type {EventActions} * @memberof EventVolume */ action: EventActions; /** * * @type {Date} * @memberof EventVolume */ time: Date; /** * * @type {number} * @memberof EventVolume */ count: number; } /** * Check if a given object implements the EventVolume interface. */ export function instanceOfEventVolume(value: object): value is EventVolume { if (!('action' in value) || value['action'] === undefined) return false; if (!('time' in value) || value['time'] === undefined) return false; if (!('count' in value) || value['count'] === undefined) return false; return true; } export function EventVolumeFromJSON(json: any): EventVolume { return EventVolumeFromJSONTyped(json, false); } export function EventVolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventVolume { if (json == null) { return json; } return { 'action': EventActionsFromJSON(json['action']), 'time': (new Date(json['time'])), 'count': json['count'], }; } export function EventVolumeToJSON(json: any): EventVolume { return EventVolumeToJSONTyped(json, false); } export function EventVolumeToJSONTyped(value?: EventVolume | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'action': EventActionsToJSON(value['action']), 'time': ((value['time']).toISOString()), 'count': value['count'], }; }