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 {
ViewLogFromJSON,
ViewLogFromJSONTyped,
ViewLogToJSON,
ViewLogToJSONTyped,
} from './ViewLog';
/**
@@ -85,10 +86,15 @@ export function PaginatedViewLogListFromJSONTyped(json: any, ignoreDiscriminator
};
}
export function PaginatedViewLogListToJSON(value?: PaginatedViewLogList | null): any {
export function PaginatedViewLogListToJSON(json: any): PaginatedViewLogList {
return PaginatedViewLogListToJSONTyped(json, false);
}
export function PaginatedViewLogListToJSONTyped(value?: PaginatedViewLogList | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'count': value['count'],
@@ -98,15 +104,4 @@ export function PaginatedViewLogListToJSON(value?: PaginatedViewLogList | null):
'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()),
};
}
// ----------------------------------------------------------------------
// Custom model functions added by custom openapi-generator template
// ----------------------------------------------------------------------
import {ApiApi, ApiPaginatedViewLogListListRequest, PaginatedPaginatedViewLogListList} from "@/openapi";
/**
* query list endpoint using the provided request parameters
*/
export function list(requestParameters: ApiPaginatedViewLogListListRequest = {}): Promise<PaginatedPaginatedViewLogListList> {
const api = new ApiApi()
return api.apiPaginatedViewLogListList(requestParameters)
}