Skip to content

The platform for continuously improving AI agents.

2.8 KB
Raw Blame
/* 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 Research
 */
export interface Research {
    /**
     *
     * @type {string}
     * @memberof Research
     */
    readonly id: string;
    /**
     *
     * @type {string}
     * @memberof Research
     */
    readonly project: string;
    /**
     *
     * @type {string}
     * @memberof Research
     */
    readonly capability: string | null;
    /**
     *
     * @type {string}
     * @memberof Research
     */
    readonly state: string;
    /**
     *
     * @type {{ [key: string]: any; }}
     * @memberof Research
     */
    readonly record: { [key: string]: any; };
    /**
     *
     * @type {Date}
     * @memberof Research
     */
    readonly createdAt: Date;
    /**
     *
     * @type {Date}
     * @memberof Research
     */
    readonly completedAt: Date | null;
}

/**
 * Check if a given object implements the Research interface.
 */
export function instanceOfResearch(value: object): value is Research {
    if (!('id' in value) || value['id'] === undefined) return false;
    if (!('project' in value) || value['project'] === undefined) return false;
    if (!('capability' in value) || value['capability'] === 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;
    if (!('completedAt' in value) || value['completedAt'] === undefined) return false;
    return true;
}

export function ResearchFromJSON(json: any): Research {
    return ResearchFromJSONTyped(json, false);
}

export function ResearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): Research {
    if (json == null) {
        return json;
    }
    return {

        'id': json['id'],
        'project': json['project'],
        'capability': json['capability'],
        'state': json['state'],
        'record': json['record'],
        'createdAt': (new Date(json['created_at'])),
        'completedAt': (json['completed_at'] == null ? null : new Date(json['completed_at'])),
    };
}

export function ResearchToJSON(json: any): Research {
    return ResearchToJSONTyped(json, false);
}

export function ResearchToJSONTyped(value?: Omit<Research, 'id'|'project'|'capability'|'state'|'record'|'created_at'|'completed_at'> | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {

    };
}