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,6 +18,7 @@ import {
UserFromJSON,
UserFromJSONTyped,
UserToJSON,
UserToJSONTyped,
} from './User';
/**
@@ -103,10 +104,15 @@ export function AutoMealPlanFromJSONTyped(json: any, ignoreDiscriminator: boolea
};
}
export function AutoMealPlanToJSON(value?: AutoMealPlan | null): any {
export function AutoMealPlanToJSON(json: any): AutoMealPlan {
return AutoMealPlanToJSONTyped(json, false);
}
export function AutoMealPlanToJSONTyped(value?: AutoMealPlan | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'start_date': ((value['startDate']).toISOString().substring(0,10)),
@@ -118,15 +124,4 @@ export function AutoMealPlanToJSON(value?: AutoMealPlan | null): any {
'addshopping': value['addshopping'],
};
}
// ----------------------------------------------------------------------
// Custom model functions added by custom openapi-generator template
// ----------------------------------------------------------------------
import {ApiApi, ApiAutoMealPlanListRequest, PaginatedAutoMealPlanList} from "@/openapi";
/**
* query list endpoint using the provided request parameters
*/
export function list(requestParameters: ApiAutoMealPlanListRequest = {}): Promise<PaginatedAutoMealPlanList> {
const api = new ApiApi()
return api.apiAutoMealPlanList(requestParameters)
}