This commit is contained in:
vabene1111
2024-03-05 17:16:07 +01:00
parent aa5a87a1fc
commit c0c71c3967
138 changed files with 4367 additions and 3934 deletions

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { TypeEnum } from './TypeEnum';
import {
TypeEnumFromJSON,
TypeEnumFromJSONTyped,
TypeEnumToJSON,
} from './TypeEnum';
AutomationTypeEnum,
AutomationTypeEnumFromJSON,
AutomationTypeEnumFromJSONTyped,
AutomationTypeEnumToJSON,
} from './';
/**
*
@@ -34,10 +34,10 @@ export interface Automation {
readonly id: number;
/**
*
* @type {TypeEnum}
* @type {AutomationTypeEnum}
* @memberof Automation
*/
type: TypeEnum;
type: AutomationTypeEnum;
/**
*
* @type {string}
@@ -88,18 +88,6 @@ export interface Automation {
readonly createdBy: number;
}
/**
* Check if a given object implements the Automation interface.
*/
export function instanceOfAutomation(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "type" in value;
isInstance = isInstance && "createdBy" in value;
return isInstance;
}
export function AutomationFromJSON(json: any): Automation {
return AutomationFromJSONTyped(json, false);
}
@@ -111,7 +99,7 @@ export function AutomationFromJSONTyped(json: any, ignoreDiscriminator: boolean)
return {
'id': json['id'],
'type': TypeEnumFromJSON(json['type']),
'type': AutomationTypeEnumFromJSON(json['type']),
'name': !exists(json, 'name') ? undefined : json['name'],
'description': !exists(json, 'description') ? undefined : json['description'],
'param1': !exists(json, 'param_1') ? undefined : json['param_1'],
@@ -132,7 +120,7 @@ export function AutomationToJSON(value?: Automation | null): any {
}
return {
'type': TypeEnumToJSON(value.type),
'type': AutomationTypeEnumToJSON(value.type),
'name': value.name,
'description': value.description,
'param_1': value.param1,
@@ -143,3 +131,4 @@ export function AutomationToJSON(value?: Automation | null): any {
};
}