mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
139 lines
3.8 KiB
TypeScript
139 lines
3.8 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* Tandoor
|
|
* Tandoor API Docs
|
|
*
|
|
* The version of the OpenAPI document: 0.0.0
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
import { exists, mapValues } from '../runtime';
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface ConnectorConfigConfig
|
|
*/
|
|
export interface ConnectorConfigConfig {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof ConnectorConfigConfig
|
|
*/
|
|
readonly id: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ConnectorConfigConfig
|
|
*/
|
|
name: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ConnectorConfigConfig
|
|
*/
|
|
url?: string | null;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ConnectorConfigConfig
|
|
*/
|
|
token?: string | null;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ConnectorConfigConfig
|
|
*/
|
|
todoEntity?: string | null;
|
|
/**
|
|
* Is Connector Enabled
|
|
* @type {boolean}
|
|
* @memberof ConnectorConfigConfig
|
|
*/
|
|
enabled?: boolean;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ConnectorConfigConfig
|
|
*/
|
|
onShoppingListEntryCreatedEnabled?: boolean;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ConnectorConfigConfig
|
|
*/
|
|
onShoppingListEntryUpdatedEnabled?: boolean;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ConnectorConfigConfig
|
|
*/
|
|
onShoppingListEntryDeletedEnabled?: boolean;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof ConnectorConfigConfig
|
|
*/
|
|
readonly createdBy: number;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the ConnectorConfigConfig interface.
|
|
*/
|
|
export function instanceOfConnectorConfigConfig(value: object): boolean {
|
|
let isInstance = true;
|
|
isInstance = isInstance && "id" in value;
|
|
isInstance = isInstance && "name" in value;
|
|
isInstance = isInstance && "createdBy" in value;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function ConnectorConfigConfigFromJSON(json: any): ConnectorConfigConfig {
|
|
return ConnectorConfigConfigFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function ConnectorConfigConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConnectorConfigConfig {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'id': json['id'],
|
|
'name': json['name'],
|
|
'url': !exists(json, 'url') ? undefined : json['url'],
|
|
'token': !exists(json, 'token') ? undefined : json['token'],
|
|
'todoEntity': !exists(json, 'todo_entity') ? undefined : json['todo_entity'],
|
|
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
|
'onShoppingListEntryCreatedEnabled': !exists(json, 'on_shopping_list_entry_created_enabled') ? undefined : json['on_shopping_list_entry_created_enabled'],
|
|
'onShoppingListEntryUpdatedEnabled': !exists(json, 'on_shopping_list_entry_updated_enabled') ? undefined : json['on_shopping_list_entry_updated_enabled'],
|
|
'onShoppingListEntryDeletedEnabled': !exists(json, 'on_shopping_list_entry_deleted_enabled') ? undefined : json['on_shopping_list_entry_deleted_enabled'],
|
|
'createdBy': json['created_by'],
|
|
};
|
|
}
|
|
|
|
export function ConnectorConfigConfigToJSON(value?: ConnectorConfigConfig | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'name': value.name,
|
|
'url': value.url,
|
|
'token': value.token,
|
|
'todo_entity': value.todoEntity,
|
|
'enabled': value.enabled,
|
|
'on_shopping_list_entry_created_enabled': value.onShoppingListEntryCreatedEnabled,
|
|
'on_shopping_list_entry_updated_enabled': value.onShoppingListEntryUpdatedEnabled,
|
|
'on_shopping_list_entry_deleted_enabled': value.onShoppingListEntryDeletedEnabled,
|
|
};
|
|
}
|
|
|