mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
lots of shopping tweaks
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
KeywordFromJSON,
|
||||
KeywordFromJSONTyped,
|
||||
KeywordToJSON,
|
||||
KeywordToJSONTyped,
|
||||
} from './Keyword';
|
||||
|
||||
/**
|
||||
@@ -115,10 +116,15 @@ export function ImportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
||||
};
|
||||
}
|
||||
|
||||
export function ImportLogToJSON(value?: Omit<ImportLog, 'keyword'|'created_by'|'created_at'> | null): any {
|
||||
export function ImportLogToJSON(json: any): ImportLog {
|
||||
return ImportLogToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ImportLogToJSONTyped(value?: Omit<ImportLog, 'keyword'|'created_by'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
@@ -129,15 +135,4 @@ export function ImportLogToJSON(value?: Omit<ImportLog, 'keyword'|'created_by'|'
|
||||
'imported_recipes': value['importedRecipes'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiImportLogListRequest, PaginatedImportLogList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiImportLogListRequest = {}): Promise<PaginatedImportLogList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiImportLogList(requestParameters)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user