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 {
CustomFilterFromJSON,
CustomFilterFromJSONTyped,
CustomFilterToJSON,
CustomFilterToJSONTyped,
} from './CustomFilter';
import type { User } from './User';
import {
UserFromJSON,
UserFromJSONTyped,
UserToJSON,
UserToJSONTyped,
} from './User';
/**
@@ -103,10 +105,15 @@ export function PatchedRecipeBookFromJSONTyped(json: any, ignoreDiscriminator: b
};
}
export function PatchedRecipeBookToJSON(value?: Omit<PatchedRecipeBook, 'created_by'> | null): any {
export function PatchedRecipeBookToJSON(json: any): PatchedRecipeBook {
return PatchedRecipeBookToJSONTyped(json, false);
}
export function PatchedRecipeBookToJSONTyped(value?: Omit<PatchedRecipeBook, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
@@ -117,15 +124,4 @@ export function PatchedRecipeBookToJSON(value?: Omit<PatchedRecipeBook, 'created
'order': value['order'],
};
}
// ----------------------------------------------------------------------
// Custom model functions added by custom openapi-generator template
// ----------------------------------------------------------------------
import {ApiApi, ApiPatchedRecipeBookListRequest, PaginatedPatchedRecipeBookList} from "@/openapi";
/**
* query list endpoint using the provided request parameters
*/
export function list(requestParameters: ApiPatchedRecipeBookListRequest = {}): Promise<PaginatedPatchedRecipeBookList> {
const api = new ApiApi()
return api.apiPatchedRecipeBookList(requestParameters)
}