mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-09 16:18:00 -05:00
working search with flat endpoint
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Django Recipes
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document:
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
@@ -13,6 +13,13 @@
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
import type { FoodShoppingUpdateDelete } from './FoodShoppingUpdateDelete';
|
||||
import {
|
||||
FoodShoppingUpdateDeleteFromJSON,
|
||||
FoodShoppingUpdateDeleteFromJSONTyped,
|
||||
FoodShoppingUpdateDeleteToJSON,
|
||||
} from './FoodShoppingUpdateDelete';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
@@ -24,7 +31,7 @@ export interface FoodShoppingUpdate {
|
||||
* @type {number}
|
||||
* @memberof FoodShoppingUpdate
|
||||
*/
|
||||
readonly id?: number;
|
||||
readonly id: number;
|
||||
/**
|
||||
* Amount of food to add to the shopping list
|
||||
* @type {number}
|
||||
@@ -38,28 +45,19 @@ export interface FoodShoppingUpdate {
|
||||
*/
|
||||
unit?: number | null;
|
||||
/**
|
||||
* When set to true will delete all food from active shopping lists.
|
||||
* @type {string}
|
||||
*
|
||||
* @type {FoodShoppingUpdateDelete}
|
||||
* @memberof FoodShoppingUpdate
|
||||
*/
|
||||
_delete: FoodShoppingUpdateDeleteEnum | null;
|
||||
_delete: FoodShoppingUpdateDelete | null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const FoodShoppingUpdateDeleteEnum = {
|
||||
True: 'true'
|
||||
} as const;
|
||||
export type FoodShoppingUpdateDeleteEnum = typeof FoodShoppingUpdateDeleteEnum[keyof typeof FoodShoppingUpdateDeleteEnum];
|
||||
|
||||
|
||||
/**
|
||||
* Check if a given object implements the FoodShoppingUpdate interface.
|
||||
*/
|
||||
export function instanceOfFoodShoppingUpdate(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "id" in value;
|
||||
isInstance = isInstance && "_delete" in value;
|
||||
|
||||
return isInstance;
|
||||
@@ -75,10 +73,10 @@ export function FoodShoppingUpdateFromJSONTyped(json: any, ignoreDiscriminator:
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'id': json['id'],
|
||||
'amount': !exists(json, 'amount') ? undefined : json['amount'],
|
||||
'unit': !exists(json, 'unit') ? undefined : json['unit'],
|
||||
'_delete': json['delete'],
|
||||
'_delete': FoodShoppingUpdateDeleteFromJSON(json['delete']),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -93,7 +91,7 @@ export function FoodShoppingUpdateToJSON(value?: FoodShoppingUpdate | null): any
|
||||
|
||||
'amount': value.amount,
|
||||
'unit': value.unit,
|
||||
'delete': value._delete,
|
||||
'delete': FoodShoppingUpdateDeleteToJSON(value._delete),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user