Skip to content

The platform for continuously improving AI agents.

2.5 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 RowsPage
 */
export interface RowsPage {
    /**
     *
     * @type {Array<any>}
     * @memberof RowsPage
     */
    rows: Array<any>;
    /**
     *
     * @type {number}
     * @memberof RowsPage
     */
    total: number;
    /**
     *
     * @type {Array<any>}
     * @memberof RowsPage
     */
    columns: Array<any>;
    /**
     *
     * @type {number}
     * @memberof RowsPage
     */
    offset: number;
    /**
     *
     * @type {number}
     * @memberof RowsPage
     */
    limit: number;
    /**
     *
     * @type {any}
     * @memberof RowsPage
     */
    marks?: any | null;
}

/**
 * Check if a given object implements the RowsPage interface.
 */
export function instanceOfRowsPage(value: object): value is RowsPage {
    if (!('rows' in value) || value['rows'] === undefined) return false;
    if (!('total' in value) || value['total'] === undefined) return false;
    if (!('columns' in value) || value['columns'] === undefined) return false;
    if (!('offset' in value) || value['offset'] === undefined) return false;
    if (!('limit' in value) || value['limit'] === undefined) return false;
    return true;
}

export function RowsPageFromJSON(json: any): RowsPage {
    return RowsPageFromJSONTyped(json, false);
}

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

        'rows': json['rows'],
        'total': json['total'],
        'columns': json['columns'],
        'offset': json['offset'],
        'limit': json['limit'],
        'marks': json['marks'] == null ? undefined : json['marks'],
    };
}

export function RowsPageToJSON(json: any): RowsPage {
    return RowsPageToJSONTyped(json, false);
}

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

    return {

        'rows': value['rows'],
        'total': value['total'],
        'columns': value['columns'],
        'offset': value['offset'],
        'limit': value['limit'],
        'marks': value['marks'],
    };
}