The platform for continuously improving AI agents.
/* tslint:disable */
/* eslint-disable */
/**
* Overbae API
* Backend API for the Overclaw / Overmind platform.
*
* The version of the OpenAPI document: 2.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 TrainingPlan
*/
export interface TrainingPlan {
/**
*
* @type {string}
* @memberof TrainingPlan
*/
readonly id: string;
/**
*
* @type {string}
* @memberof TrainingPlan
*/
readonly project: string;
/**
*
* @type {string}
* @memberof TrainingPlan
*/
readonly name: string;
/**
*
* @type {string}
* @memberof TrainingPlan
*/
readonly state: string;
/**
*
* @type {{ [key: string]: any; }}
* @memberof TrainingPlan
*/
readonly record: { [key: string]: any; };
/**
*
* @type {Date}
* @memberof TrainingPlan
*/
readonly createdAt: Date;
}
/**
* Check if a given object implements the TrainingPlan interface.
*/
export function instanceOfTrainingPlan(value: object): value is TrainingPlan {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('project' in value) || value['project'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('state' in value) || value['state'] === undefined) return false;
if (!('record' in value) || value['record'] === undefined) return false;
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
return true;
}
export function TrainingPlanFromJSON(json: any): TrainingPlan {
return TrainingPlanFromJSONTyped(json, false);
}
export function TrainingPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrainingPlan {
if (json == null) {
return json;
}
return {
'id': json['id'],
'project': json['project'],
'name': json['name'],
'state': json['state'],
'record': json['record'],
'createdAt': (new Date(json['created_at'])),
};
}
export function TrainingPlanToJSON(json: any): TrainingPlan {
return TrainingPlanToJSONTyped(json, false);
}
export function TrainingPlanToJSONTyped(value?: Omit<TrainingPlan, 'id'|'project'|'name'|'state'|'record'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
};
}