mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
86 lines
1.7 KiB
TypeScript
86 lines
1.7 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 ViewLog
|
|
*/
|
|
export interface ViewLog {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof ViewLog
|
|
*/
|
|
readonly id: number;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof ViewLog
|
|
*/
|
|
recipe: number;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof ViewLog
|
|
*/
|
|
readonly createdBy: number;
|
|
/**
|
|
*
|
|
* @type {Date}
|
|
* @memberof ViewLog
|
|
*/
|
|
readonly createdAt: Date;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the ViewLog interface.
|
|
*/
|
|
export function instanceOfViewLog(value: object): boolean {
|
|
if (!('id' in value)) return false;
|
|
if (!('recipe' in value)) return false;
|
|
if (!('createdBy' in value)) return false;
|
|
if (!('createdAt' in value)) return false;
|
|
return true;
|
|
}
|
|
|
|
export function ViewLogFromJSON(json: any): ViewLog {
|
|
return ViewLogFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function ViewLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): ViewLog {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'id': json['id'],
|
|
'recipe': json['recipe'],
|
|
'createdBy': json['created_by'],
|
|
'createdAt': (new Date(json['created_at'])),
|
|
};
|
|
}
|
|
|
|
export function ViewLogToJSON(value?: Omit<ViewLog, 'id'|'created_by'|'created_at'> | null): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
|
|
'recipe': value['recipe'],
|
|
};
|
|
}
|
|
|