mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 12:49:02 -05:00
lots of shopping tweaks
This commit is contained in:
@@ -18,12 +18,14 @@ import {
|
||||
CustomFilterFromJSON,
|
||||
CustomFilterFromJSONTyped,
|
||||
CustomFilterToJSON,
|
||||
CustomFilterToJSONTyped,
|
||||
} from './CustomFilter';
|
||||
import type { User } from './User';
|
||||
import {
|
||||
UserFromJSON,
|
||||
UserFromJSONTyped,
|
||||
UserToJSON,
|
||||
UserToJSONTyped,
|
||||
} from './User';
|
||||
|
||||
/**
|
||||
@@ -106,10 +108,15 @@ export function RecipeBookFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
||||
};
|
||||
}
|
||||
|
||||
export function RecipeBookToJSON(value?: Omit<RecipeBook, 'created_by'> | null): any {
|
||||
export function RecipeBookToJSON(json: any): RecipeBook {
|
||||
return RecipeBookToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RecipeBookToJSONTyped(value?: Omit<RecipeBook, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
@@ -120,15 +127,4 @@ export function RecipeBookToJSON(value?: Omit<RecipeBook, 'created_by'> | null):
|
||||
'order': value['order'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiRecipeBookListRequest, PaginatedRecipeBookList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiRecipeBookListRequest = {}): Promise<PaginatedRecipeBookList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiRecipeBookList(requestParameters)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user