mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-08 23:58:15 -05:00
lots of shopping tweaks
This commit is contained in:
@@ -78,10 +78,15 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User
|
||||
};
|
||||
}
|
||||
|
||||
export function UserToJSON(value?: Omit<User, 'username'|'display_name'> | null): any {
|
||||
export function UserToJSON(json: any): User {
|
||||
return UserToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UserToJSONTyped(value?: Omit<User, 'username'|'display_name'> | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
@@ -89,15 +94,4 @@ export function UserToJSON(value?: Omit<User, 'username'|'display_name'> | null)
|
||||
'last_name': value['lastName'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiUserListRequest, PaginatedUserList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiUserListRequest = {}): Promise<PaginatedUserList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiUserList(requestParameters)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user