fixed api client generation

This commit is contained in:
vabene1111
2024-04-22 19:33:09 +02:00
parent c47e46263c
commit 12cf9da8fc
145 changed files with 914 additions and 175 deletions

View File

@@ -24,7 +24,7 @@ export interface BookmarkletImport {
* @type {number}
* @memberof BookmarkletImport
*/
id?: number;
readonly id: number;
/**
*
* @type {string}
@@ -55,6 +55,7 @@ export interface BookmarkletImport {
* Check if a given object implements the BookmarkletImport interface.
*/
export function instanceOfBookmarkletImport(value: object): boolean {
if (!('id' in value)) return false;
if (!('html' in value)) return false;
if (!('createdBy' in value)) return false;
if (!('createdAt' in value)) return false;
@@ -71,7 +72,7 @@ export function BookmarkletImportFromJSONTyped(json: any, ignoreDiscriminator: b
}
return {
'id': json['id'] == null ? undefined : json['id'],
'id': json['id'],
'url': json['url'] == null ? undefined : json['url'],
'html': json['html'],
'createdBy': json['created_by'],
@@ -85,7 +86,6 @@ export function BookmarkletImportToJSON(value?: BookmarkletImport | null): any {
}
return {
'id': value['id'],
'url': value['url'],
'html': value['html'],
};