Skip to content

The platform for continuously improving AI agents.

2.3 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';
import type { IntegrationTypeEnum } from './IntegrationTypeEnum';
import {
    IntegrationTypeEnumFromJSON,
    IntegrationTypeEnumFromJSONTyped,
    IntegrationTypeEnumToJSON,
    IntegrationTypeEnumToJSONTyped,
} from './IntegrationTypeEnum';

/**
 *
 * @export
 * @interface ProjectRequest
 */
export interface ProjectRequest {
    /**
     *
     * @type {string}
     * @memberof ProjectRequest
     */
    name: string;
    /**
     *
     * @type {string}
     * @memberof ProjectRequest
     */
    slug: string;
    /**
     *
     * @type {IntegrationTypeEnum}
     * @memberof ProjectRequest
     */
    integrationType?: IntegrationTypeEnum;
}



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

export function ProjectRequestFromJSON(json: any): ProjectRequest {
    return ProjectRequestFromJSONTyped(json, false);
}

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

        'name': json['name'],
        'slug': json['slug'],
        'integrationType': json['integration_type'] == null ? undefined : IntegrationTypeEnumFromJSON(json['integration_type']),
    };
}

export function ProjectRequestToJSON(json: any): ProjectRequest {
    return ProjectRequestToJSONTyped(json, false);
}

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

    return {

        'name': value['name'],
        'slug': value['slug'],
        'integration_type': IntegrationTypeEnumToJSON(value['integrationType']),
    };
}