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

@@ -31,7 +31,7 @@ export interface Automation {
* @type {number}
* @memberof Automation
*/
id?: number;
readonly id: number;
/**
*
* @type {AutomationTypeEnum}
@@ -92,6 +92,7 @@ export interface Automation {
* Check if a given object implements the Automation interface.
*/
export function instanceOfAutomation(value: object): boolean {
if (!('id' in value)) return false;
if (!('type' in value)) return false;
if (!('createdBy' in value)) return false;
return true;
@@ -107,7 +108,7 @@ export function AutomationFromJSONTyped(json: any, ignoreDiscriminator: boolean)
}
return {
'id': json['id'] == null ? undefined : json['id'],
'id': json['id'],
'type': AutomationTypeEnumFromJSON(json['type']),
'name': json['name'] == null ? undefined : json['name'],
'description': json['description'] == null ? undefined : json['description'],
@@ -126,7 +127,6 @@ export function AutomationToJSON(value?: Automation | null): any {
}
return {
'id': value['id'],
'type': AutomationTypeEnumToJSON(value['type']),
'name': value['name'],
'description': value['description'],