This commit is contained in:
vabene1111
2024-03-05 17:16:07 +01:00
committed by smilerz
parent 86652a8f1f
commit 40d460b458
138 changed files with 4367 additions and 3934 deletions

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,18 +13,16 @@
*/
import { exists, mapValues } from '../runtime';
import type { Food } from './Food';
import {
Food,
FoodFromJSON,
FoodFromJSONTyped,
FoodToJSON,
} from './Food';
import type { Unit } from './Unit';
import {
Unit,
UnitFromJSON,
UnitFromJSONTyped,
UnitToJSON,
} from './Unit';
} from './';
/**
* Adds nested create feature
@@ -82,21 +80,6 @@ export interface UnitConversion {
openDataSlug?: string | null;
}
/**
* Check if a given object implements the UnitConversion interface.
*/
export function instanceOfUnitConversion(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "baseAmount" in value;
isInstance = isInstance && "baseUnit" in value;
isInstance = isInstance && "convertedAmount" in value;
isInstance = isInstance && "convertedUnit" in value;
return isInstance;
}
export function UnitConversionFromJSON(json: any): UnitConversion {
return UnitConversionFromJSONTyped(json, false);
}
@@ -136,3 +119,4 @@ export function UnitConversionToJSON(value?: UnitConversion | null): any {
};
}