mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 12:18:45 -05:00
80 lines
2.0 KiB
TypeScript
80 lines
2.0 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 { mapValues } from '../runtime';
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface KeywordLabel
|
|
*/
|
|
export interface KeywordLabel {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof KeywordLabel
|
|
*/
|
|
id?: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof KeywordLabel
|
|
*/
|
|
readonly label: string;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the KeywordLabel interface.
|
|
*/
|
|
export function instanceOfKeywordLabel(value: object): value is KeywordLabel {
|
|
if (!('label' in value) || value['label'] === undefined) return false;
|
|
return true;
|
|
}
|
|
|
|
export function KeywordLabelFromJSON(json: any): KeywordLabel {
|
|
return KeywordLabelFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function KeywordLabelFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeywordLabel {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'id': json['id'] == null ? undefined : json['id'],
|
|
'label': json['label'],
|
|
};
|
|
}
|
|
|
|
export function KeywordLabelToJSON(value?: Omit<KeywordLabel, 'label'> | null): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
|
|
'id': value['id'],
|
|
};
|
|
}
|
|
// ----------------------------------------------------------------------
|
|
// Custom model functions added by custom openapi-generator template
|
|
// ----------------------------------------------------------------------
|
|
import {ApiApi, ApiKeywordLabelListRequest, PaginatedKeywordLabelList} from "@/openapi";
|
|
|
|
/**
|
|
* query list endpoint using the provided request parameters
|
|
*/
|
|
export function list(requestParameters: ApiKeywordLabelListRequest = {}): Promise<PaginatedKeywordLabelList> {
|
|
const api = new ApiApi()
|
|
return api.apiKeywordLabelList(requestParameters)
|
|
}
|