/* tslint:disable */ /* eslint-disable */ /** * Mubicon v1 API * Api with Swagger, Swashbuckle, and Manual API versioning. * * The version of the OpenAPI document: 1 * Contact: support@mubicloud.com * * 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 { ApplicationUser } from './ApplicationUser'; import { ApplicationUserFromJSON, ApplicationUserFromJSONTyped, ApplicationUserToJSON, ApplicationUserToJSONTyped, } from './ApplicationUser'; /** * * @export * @interface AuditLog */ export interface AuditLog { /** * * @type {number} * @memberof AuditLog */ auditId?: number; /** * * @type {string} * @memberof AuditLog */ auditData: string; /** * * @type {string} * @memberof AuditLog */ entityType?: string | null; /** * * @type {string} * @memberof AuditLog */ tablePk?: string | null; /** * * @type {string} * @memberof AuditLog */ requestId?: string | null; /** * * @type {Date} * @memberof AuditLog */ auditDate?: Date; /** * * @type {string} * @memberof AuditLog */ auditAction?: string | null; /** * * @type {string} * @memberof AuditLog */ applicationUserId?: string | null; /** * * @type {ApplicationUser} * @memberof AuditLog */ applicationUser?: ApplicationUser; } /** * Check if a given object implements the AuditLog interface. */ export function instanceOfAuditLog(value: object): value is AuditLog { if (!('auditData' in value) || value['auditData'] === undefined) return false; return true; } export function AuditLogFromJSON(json: any): AuditLog { return AuditLogFromJSONTyped(json, false); } export function AuditLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLog { if (json == null) { return json; } return { 'auditId': json['AuditId'] == null ? undefined : json['AuditId'], 'auditData': json['AuditData'], 'entityType': json['EntityType'] == null ? undefined : json['EntityType'], 'tablePk': json['TablePk'] == null ? undefined : json['TablePk'], 'requestId': json['RequestId'] == null ? undefined : json['RequestId'], 'auditDate': json['AuditDate'] == null ? undefined : (new Date(json['AuditDate'])), 'auditAction': json['AuditAction'] == null ? undefined : json['AuditAction'], 'applicationUserId': json['ApplicationUserId'] == null ? undefined : json['ApplicationUserId'], 'applicationUser': json['ApplicationUser'] == null ? undefined : ApplicationUserFromJSON(json['ApplicationUser']), }; } export function AuditLogToJSON(json: any): AuditLog { return AuditLogToJSONTyped(json, false); } export function AuditLogToJSONTyped(value?: AuditLog | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'AuditId': value['auditId'], 'AuditData': value['auditData'], 'EntityType': value['entityType'], 'TablePk': value['tablePk'], 'RequestId': value['requestId'], 'AuditDate': value['auditDate'] == null ? undefined : ((value['auditDate']).toISOString()), 'AuditAction': value['auditAction'], 'ApplicationUserId': value['applicationUserId'], 'ApplicationUser': ApplicationUserToJSON(value['applicationUser']), }; }