mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-07 15:18:20 -05:00
regenerate fetch API
This commit is contained in:
107
vue3/models/RecipeBookEntry.ts
Normal file
107
vue3/models/RecipeBookEntry.ts
Normal file
@@ -0,0 +1,107 @@
|
||||
/* 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';
|
||||
import type { RecipeBook } from './RecipeBook';
|
||||
import {
|
||||
RecipeBookFromJSON,
|
||||
RecipeBookFromJSONTyped,
|
||||
RecipeBookToJSON,
|
||||
} from './RecipeBook';
|
||||
import type { RecipeOverview } from './RecipeOverview';
|
||||
import {
|
||||
RecipeOverviewFromJSON,
|
||||
RecipeOverviewFromJSONTyped,
|
||||
RecipeOverviewToJSON,
|
||||
} from './RecipeOverview';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RecipeBookEntry
|
||||
*/
|
||||
export interface RecipeBookEntry {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof RecipeBookEntry
|
||||
*/
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof RecipeBookEntry
|
||||
*/
|
||||
book: number;
|
||||
/**
|
||||
*
|
||||
* @type {RecipeBook}
|
||||
* @memberof RecipeBookEntry
|
||||
*/
|
||||
readonly bookContent: RecipeBook;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof RecipeBookEntry
|
||||
*/
|
||||
recipe: number;
|
||||
/**
|
||||
*
|
||||
* @type {RecipeOverview}
|
||||
* @memberof RecipeBookEntry
|
||||
*/
|
||||
readonly recipeContent: RecipeOverview;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the RecipeBookEntry interface.
|
||||
*/
|
||||
export function instanceOfRecipeBookEntry(value: object): boolean {
|
||||
if (!('id' in value)) return false;
|
||||
if (!('book' in value)) return false;
|
||||
if (!('bookContent' in value)) return false;
|
||||
if (!('recipe' in value)) return false;
|
||||
if (!('recipeContent' in value)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function RecipeBookEntryFromJSON(json: any): RecipeBookEntry {
|
||||
return RecipeBookEntryFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RecipeBookEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeBookEntry {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'],
|
||||
'book': json['book'],
|
||||
'bookContent': RecipeBookFromJSON(json['book_content']),
|
||||
'recipe': json['recipe'],
|
||||
'recipeContent': RecipeOverviewFromJSON(json['recipe_content']),
|
||||
};
|
||||
}
|
||||
|
||||
export function RecipeBookEntryToJSON(value?: Omit<RecipeBookEntry, 'id'|'book_content'|'recipe_content'> | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'book': value['book'],
|
||||
'recipe': value['recipe'],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user