Files
recipes/vue3/models/PatchedExportLog.ts
2024-04-18 10:56:15 -05:00

130 lines
3.3 KiB
TypeScript

/* tslint:disable */
/* eslint-disable */
/**
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
*
* 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';
/**
*
* @export
* @interface PatchedExportLog
*/
export interface PatchedExportLog {
/**
*
* @type {number}
* @memberof PatchedExportLog
*/
readonly id?: number;
/**
*
* @type {string}
* @memberof PatchedExportLog
*/
type?: string;
/**
*
* @type {string}
* @memberof PatchedExportLog
*/
msg?: string;
/**
*
* @type {boolean}
* @memberof PatchedExportLog
*/
running?: boolean;
/**
*
* @type {number}
* @memberof PatchedExportLog
*/
totalRecipes?: number;
/**
*
* @type {number}
* @memberof PatchedExportLog
*/
exportedRecipes?: number;
/**
*
* @type {number}
* @memberof PatchedExportLog
*/
cacheDuration?: number;
/**
*
* @type {boolean}
* @memberof PatchedExportLog
*/
possiblyNotExpired?: boolean;
/**
*
* @type {number}
* @memberof PatchedExportLog
*/
readonly createdBy?: number;
/**
*
* @type {Date}
* @memberof PatchedExportLog
*/
readonly createdAt?: Date;
}
/**
* Check if a given object implements the PatchedExportLog interface.
*/
export function instanceOfPatchedExportLog(value: object): boolean {
return true;
}
export function PatchedExportLogFromJSON(json: any): PatchedExportLog {
return PatchedExportLogFromJSONTyped(json, false);
}
export function PatchedExportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedExportLog {
if (json == null) {
return json;
}
return {
'id': json['id'] == null ? undefined : json['id'],
'type': json['type'] == null ? undefined : json['type'],
'msg': json['msg'] == null ? undefined : json['msg'],
'running': json['running'] == null ? undefined : json['running'],
'totalRecipes': json['total_recipes'] == null ? undefined : json['total_recipes'],
'exportedRecipes': json['exported_recipes'] == null ? undefined : json['exported_recipes'],
'cacheDuration': json['cache_duration'] == null ? undefined : json['cache_duration'],
'possiblyNotExpired': json['possibly_not_expired'] == null ? undefined : json['possibly_not_expired'],
'createdBy': json['created_by'] == null ? undefined : json['created_by'],
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
};
}
export function PatchedExportLogToJSON(value?: Omit<PatchedExportLog, 'id'|'created_by'|'created_at'> | null): any {
if (value == null) {
return value;
}
return {
'type': value['type'],
'msg': value['msg'],
'running': value['running'],
'total_recipes': value['totalRecipes'],
'exported_recipes': value['exportedRecipes'],
'cache_duration': value['cacheDuration'],
'possibly_not_expired': value['possiblyNotExpired'],
};
}