mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
106 lines
2.5 KiB
TypeScript
106 lines
2.5 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 SyncLog
|
|
*/
|
|
export interface SyncLog {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof SyncLog
|
|
*/
|
|
id?: number;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof SyncLog
|
|
*/
|
|
sync: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof SyncLog
|
|
*/
|
|
status: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof SyncLog
|
|
*/
|
|
msg?: string;
|
|
/**
|
|
*
|
|
* @type {Date}
|
|
* @memberof SyncLog
|
|
*/
|
|
readonly createdAt: Date;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the SyncLog interface.
|
|
*/
|
|
export function instanceOfSyncLog(value: object): value is SyncLog {
|
|
if (!('sync' in value) || value['sync'] === undefined) return false;
|
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
return true;
|
|
}
|
|
|
|
export function SyncLogFromJSON(json: any): SyncLog {
|
|
return SyncLogFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function SyncLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncLog {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'id': json['id'] == null ? undefined : json['id'],
|
|
'sync': json['sync'],
|
|
'status': json['status'],
|
|
'msg': json['msg'] == null ? undefined : json['msg'],
|
|
'createdAt': (new Date(json['created_at'])),
|
|
};
|
|
}
|
|
|
|
export function SyncLogToJSON(value?: Omit<SyncLog, 'created_at'> | null): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
|
|
'id': value['id'],
|
|
'sync': value['sync'],
|
|
'status': value['status'],
|
|
'msg': value['msg'],
|
|
};
|
|
}
|
|
// ----------------------------------------------------------------------
|
|
// Custom model functions added by custom openapi-generator template
|
|
// ----------------------------------------------------------------------
|
|
import {ApiApi, ApiSyncLogListRequest, PaginatedSyncLogList} from "@/openapi";
|
|
|
|
/**
|
|
* query list endpoint using the provided request parameters
|
|
*/
|
|
export function list(requestParameters: ApiSyncLogListRequest = {}): Promise<PaginatedSyncLogList> {
|
|
const api = new ApiApi()
|
|
return api.apiSyncLogList(requestParameters)
|
|
}
|