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

@@ -79,10 +79,15 @@ export function SyncLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): S
};
}
export function SyncLogToJSON(value?: Omit<SyncLog, 'created_at'> | null): any {
export function SyncLogToJSON(json: any): SyncLog {
return SyncLogToJSONTyped(json, false);
}
export function SyncLogToJSONTyped(value?: Omit<SyncLog, 'created_at'> | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
@@ -91,15 +96,4 @@ export function SyncLogToJSON(value?: Omit<SyncLog, 'created_at'> | null): any {
'msg': value['msg'],
};
}
// ----------------------------------------------------------------------
// Custom model functions added by custom openapi-generator template
// ----------------------------------------------------------------------
import {ApiApi, ApiSyncLogListRequest, PaginatedSyncLogList} from "@/openapi";
/**
* query list endpoint using the provided request parameters
*/
export function list(requestParameters: ApiSyncLogListRequest = {}): Promise<PaginatedSyncLogList> {
const api = new ApiApi()
return api.apiSyncLogList(requestParameters)
}