Skip to content

The platform for continuously improving AI agents.

3.0 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 WorkshopCellReference
 */
export interface WorkshopCellReference {
    /**
     *
     * @type {string}
     * @memberof WorkshopCellReference
     */
    id: string;
    /**
     *
     * @type {string}
     * @memberof WorkshopCellReference
     */
    dataset: string;
    /**
     *
     * @type {string}
     * @memberof WorkshopCellReference
     */
    name: string;
    /**
     *
     * @type {number}
     * @memberof WorkshopCellReference
     */
    rows: number;
    /**
     *
     * @type {Array<{ [key: string]: any; }>}
     * @memberof WorkshopCellReference
     */
    columns?: Array<{ [key: string]: any; }>;
    /**
     *
     * @type {{ [key: string]: any; }}
     * @memberof WorkshopCellReference
     */
    checks?: { [key: string]: any; };
    /**
     *
     * @type {string}
     * @memberof WorkshopCellReference
     */
    fingerprint?: string;
}

/**
 * Check if a given object implements the WorkshopCellReference interface.
 */
export function instanceOfWorkshopCellReference(value: object): value is WorkshopCellReference {
    if (!('id' in value) || value['id'] === undefined) return false;
    if (!('dataset' in value) || value['dataset'] === undefined) return false;
    if (!('name' in value) || value['name'] === undefined) return false;
    if (!('rows' in value) || value['rows'] === undefined) return false;
    return true;
}

export function WorkshopCellReferenceFromJSON(json: any): WorkshopCellReference {
    return WorkshopCellReferenceFromJSONTyped(json, false);
}

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

        'id': json['id'],
        'dataset': json['dataset'],
        'name': json['name'],
        'rows': json['rows'],
        'columns': json['columns'] == null ? undefined : json['columns'],
        'checks': json['checks'] == null ? undefined : json['checks'],
        'fingerprint': json['fingerprint'] == null ? undefined : json['fingerprint'],
    };
}

export function WorkshopCellReferenceToJSON(json: any): WorkshopCellReference {
    return WorkshopCellReferenceToJSONTyped(json, false);
}

export function WorkshopCellReferenceToJSONTyped(value?: WorkshopCellReference | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {

        'id': value['id'],
        'dataset': value['dataset'],
        'name': value['name'],
        'rows': value['rows'],
        'columns': value['columns'],
        'checks': value['checks'],
        'fingerprint': value['fingerprint'],
    };
}