mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-10 00:28:22 -05:00
regenerate fetch API
This commit is contained in:
125
vue3/models/ShoppingListRecipe.ts
Normal file
125
vue3/models/ShoppingListRecipe.ts
Normal file
@@ -0,0 +1,125 @@
|
||||
/* 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 ShoppingListRecipe
|
||||
*/
|
||||
export interface ShoppingListRecipe {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ShoppingListRecipe
|
||||
*/
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ShoppingListRecipe
|
||||
*/
|
||||
readonly recipeName: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ShoppingListRecipe
|
||||
*/
|
||||
readonly name: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ShoppingListRecipe
|
||||
*/
|
||||
recipe?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ShoppingListRecipe
|
||||
*/
|
||||
mealplan?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ShoppingListRecipe
|
||||
*/
|
||||
servings: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ShoppingListRecipe
|
||||
*/
|
||||
readonly mealplanNote: string;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof ShoppingListRecipe
|
||||
*/
|
||||
readonly mealplanFromDate: Date;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ShoppingListRecipe
|
||||
*/
|
||||
readonly mealplanType: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ShoppingListRecipe interface.
|
||||
*/
|
||||
export function instanceOfShoppingListRecipe(value: object): boolean {
|
||||
if (!('id' in value)) return false;
|
||||
if (!('recipeName' in value)) return false;
|
||||
if (!('name' in value)) return false;
|
||||
if (!('servings' in value)) return false;
|
||||
if (!('mealplanNote' in value)) return false;
|
||||
if (!('mealplanFromDate' in value)) return false;
|
||||
if (!('mealplanType' in value)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ShoppingListRecipeFromJSON(json: any): ShoppingListRecipe {
|
||||
return ShoppingListRecipeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ShoppingListRecipeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShoppingListRecipe {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'],
|
||||
'recipeName': json['recipe_name'],
|
||||
'name': json['name'],
|
||||
'recipe': json['recipe'] == null ? undefined : json['recipe'],
|
||||
'mealplan': json['mealplan'] == null ? undefined : json['mealplan'],
|
||||
'servings': json['servings'],
|
||||
'mealplanNote': json['mealplan_note'],
|
||||
'mealplanFromDate': (new Date(json['mealplan_from_date'])),
|
||||
'mealplanType': json['mealplan_type'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ShoppingListRecipeToJSON(value?: Omit<ShoppingListRecipe, 'id'|'recipe_name'|'name'|'mealplan_note'|'mealplan_from_date'|'mealplan_type'> | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'recipe': value['recipe'],
|
||||
'mealplan': value['mealplan'],
|
||||
'servings': value['servings'],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user