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

@@ -65,10 +65,15 @@ export function ShareLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean):
};
}
export function ShareLinkToJSON(value?: ShareLink | null): any {
export function ShareLinkToJSON(json: any): ShareLink {
return ShareLinkToJSONTyped(json, false);
}
export function ShareLinkToJSONTyped(value?: ShareLink | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'pk': value['pk'],
@@ -76,15 +81,4 @@ export function ShareLinkToJSON(value?: ShareLink | null): any {
'link': value['link'],
};
}
// ----------------------------------------------------------------------
// Custom model functions added by custom openapi-generator template
// ----------------------------------------------------------------------
import {ApiApi, ApiShareLinkListRequest, PaginatedShareLinkList} from "@/openapi";
/**
* query list endpoint using the provided request parameters
*/
export function list(requestParameters: ApiShareLinkListRequest = {}): Promise<PaginatedShareLinkList> {
const api = new ApiApi()
return api.apiShareLinkList(requestParameters)
}