lots of shopping tweaks

This commit is contained in:
vabene1111
2024-12-01 12:32:16 +01:00
parent 557954a259
commit 423dc7a6bf
150 changed files with 2918 additions and 2207 deletions

View File

@@ -18,12 +18,14 @@ import {
RecipeBookFromJSON,
RecipeBookFromJSONTyped,
RecipeBookToJSON,
RecipeBookToJSONTyped,
} from './RecipeBook';
import type { RecipeOverview } from './RecipeOverview';
import {
RecipeOverviewFromJSON,
RecipeOverviewFromJSONTyped,
RecipeOverviewToJSON,
RecipeOverviewToJSONTyped,
} from './RecipeOverview';
/**
@@ -89,10 +91,15 @@ export function PatchedRecipeBookEntryFromJSONTyped(json: any, ignoreDiscriminat
};
}
export function PatchedRecipeBookEntryToJSON(value?: Omit<PatchedRecipeBookEntry, 'book_content'|'recipe_content'> | null): any {
export function PatchedRecipeBookEntryToJSON(json: any): PatchedRecipeBookEntry {
return PatchedRecipeBookEntryToJSONTyped(json, false);
}
export function PatchedRecipeBookEntryToJSONTyped(value?: Omit<PatchedRecipeBookEntry, 'book_content'|'recipe_content'> | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
@@ -100,15 +107,4 @@ export function PatchedRecipeBookEntryToJSON(value?: Omit<PatchedRecipeBookEntry
'recipe': value['recipe'],
};
}
// ----------------------------------------------------------------------
// Custom model functions added by custom openapi-generator template
// ----------------------------------------------------------------------
import {ApiApi, ApiPatchedRecipeBookEntryListRequest, PaginatedPatchedRecipeBookEntryList} from "@/openapi";
/**
* query list endpoint using the provided request parameters
*/
export function list(requestParameters: ApiPatchedRecipeBookEntryListRequest = {}): Promise<PaginatedPatchedRecipeBookEntryList> {
const api = new ApiApi()
return api.apiPatchedRecipeBookEntryList(requestParameters)
}