updated openapi generator

This commit is contained in:
vabene1111
2024-09-23 13:57:37 +02:00
parent 7e77e56e7f
commit 12e0c7fd7b
151 changed files with 1274 additions and 1142 deletions

View File

@@ -13,30 +13,6 @@
*/
import { mapValues } from '../runtime';
import type { FoodInheritField } from './FoodInheritField';
import {
FoodInheritFieldFromJSON,
FoodInheritFieldFromJSONTyped,
FoodInheritFieldToJSON,
} from './FoodInheritField';
import type { FoodSimple } from './FoodSimple';
import {
FoodSimpleFromJSON,
FoodSimpleFromJSONTyped,
FoodSimpleToJSON,
} from './FoodSimple';
import type { Property } from './Property';
import {
PropertyFromJSON,
PropertyFromJSONTyped,
PropertyToJSON,
} from './Property';
import type { RecipeSimple } from './RecipeSimple';
import {
RecipeSimpleFromJSON,
RecipeSimpleFromJSONTyped,
RecipeSimpleToJSON,
} from './RecipeSimple';
import type { SupermarketCategory } from './SupermarketCategory';
import {
SupermarketCategoryFromJSON,
@@ -49,6 +25,30 @@ import {
UnitFromJSONTyped,
UnitToJSON,
} from './Unit';
import type { Property } from './Property';
import {
PropertyFromJSON,
PropertyFromJSONTyped,
PropertyToJSON,
} from './Property';
import type { FoodInheritField } from './FoodInheritField';
import {
FoodInheritFieldFromJSON,
FoodInheritFieldFromJSONTyped,
FoodInheritFieldToJSON,
} from './FoodInheritField';
import type { FoodSimple } from './FoodSimple';
import {
FoodSimpleFromJSON,
FoodSimpleFromJSONTyped,
FoodSimpleToJSON,
} from './FoodSimple';
import type { RecipeSimple } from './RecipeSimple';
import {
RecipeSimpleFromJSON,
RecipeSimpleFromJSONTyped,
RecipeSimpleToJSON,
} from './RecipeSimple';
/**
* Moves `UniqueValidator`'s from the validation stage to the save stage.
@@ -107,7 +107,7 @@ export interface PatchedFood {
* @type {string}
* @memberof PatchedFood
*/
pluralName?: string;
pluralName?: string | null;
/**
*
* @type {string}
@@ -125,19 +125,19 @@ export interface PatchedFood {
* @type {RecipeSimple}
* @memberof PatchedFood
*/
recipe?: RecipeSimple;
recipe?: RecipeSimple | null;
/**
*
* @type {string}
* @memberof PatchedFood
*/
url?: string;
url?: string | null;
/**
*
* @type {Array<Property>}
* @memberof PatchedFood
*/
properties?: Array<Property>;
properties?: Array<Property> | null;
/**
*
* @type {number}
@@ -149,25 +149,25 @@ export interface PatchedFood {
* @type {Unit}
* @memberof PatchedFood
*/
propertiesFoodUnit?: Unit;
propertiesFoodUnit?: Unit | null;
/**
*
* @type {number}
* @memberof PatchedFood
*/
fdcId?: number;
fdcId?: number | null;
/**
*
* @type {boolean}
* @memberof PatchedFood
*/
foodOnhand?: boolean;
foodOnhand?: boolean | null;
/**
*
* @type {SupermarketCategory}
* @memberof PatchedFood
*/
supermarketCategory?: SupermarketCategory;
supermarketCategory?: SupermarketCategory | null;
/**
*
* @type {number}
@@ -185,7 +185,7 @@ export interface PatchedFood {
* @type {Array<FoodInheritField>}
* @memberof PatchedFood
*/
inheritFields?: Array<FoodInheritField>;
inheritFields?: Array<FoodInheritField> | null;
/**
* Returns a string representation of a tree node and it's ancestors,
* e.g. 'Cuisine > Asian > Chinese > Catonese'.
@@ -204,7 +204,7 @@ export interface PatchedFood {
* @type {Array<FoodSimple>}
* @memberof PatchedFood
*/
substitute?: Array<FoodSimple>;
substitute?: Array<FoodSimple> | null;
/**
*
* @type {boolean}
@@ -228,19 +228,19 @@ export interface PatchedFood {
* @type {Array<FoodInheritField>}
* @memberof PatchedFood
*/
childInheritFields?: Array<FoodInheritField>;
childInheritFields?: Array<FoodInheritField> | null;
/**
*
* @type {string}
* @memberof PatchedFood
*/
openDataSlug?: string;
openDataSlug?: string | null;
}
/**
* Check if a given object implements the PatchedFood interface.
*/
export function instanceOfPatchedFood(value: object): boolean {
export function instanceOfPatchedFood(value: object): value is PatchedFood {
return true;
}
@@ -281,7 +281,7 @@ export function PatchedFoodFromJSONTyped(json: any, ignoreDiscriminator: boolean
};
}
export function PatchedFoodToJSON(value?: PatchedFood | null): any {
export function PatchedFoodToJSON(value?: Omit<PatchedFood, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'> | null): any {
if (value == null) {
return value;
}