1
0
mirror of https://github.com/TandoorRecipes/recipes.git synced 2026-01-11 09:07:12 -05:00

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

@@ -114,10 +114,15 @@ export function ExportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean):
};
}
export function ExportLogToJSON(value?: Omit<ExportLog, 'created_by'|'created_at'> | null): any {
export function ExportLogToJSON(json: any): ExportLog {
return ExportLogToJSONTyped(json, false);
}
export function ExportLogToJSONTyped(value?: Omit<ExportLog, 'created_by'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
@@ -130,15 +135,4 @@ export function ExportLogToJSON(value?: Omit<ExportLog, 'created_by'|'created_at
'possibly_not_expired': value['possiblyNotExpired'],
};
}
// ----------------------------------------------------------------------
// Custom model functions added by custom openapi-generator template
// ----------------------------------------------------------------------
import {ApiApi, ApiExportLogListRequest, PaginatedExportLogList} from "@/openapi";
/**
* query list endpoint using the provided request parameters
*/
export function list(requestParameters: ApiExportLogListRequest = {}): Promise<PaginatedExportLogList> {
const api = new ApiApi()
return api.apiExportLogList(requestParameters)
}