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 PatchedProjectRequest
 */
export interface PatchedProjectRequest {
    /**
     *
     * @type {string}
     * @memberof PatchedProjectRequest
     */
    name?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedProjectRequest
     */
    slug?: string;
    /**
     *
     * @type {IntegrationTypeEnum}
     * @memberof PatchedProjectRequest
     */
    integrationType?: IntegrationTypeEnum;
}



/**
 * Check if a given object implements the PatchedProjectRequest interface.
 */
export function instanceOfPatchedProjectRequest(value: object): value is PatchedProjectRequest {
    return true;
}

export function PatchedProjectRequestFromJSON(json: any): PatchedProjectRequest {
    return PatchedProjectRequestFromJSONTyped(json, false);
}

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

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

export function PatchedProjectRequestToJSON(json: any): PatchedProjectRequest {
    return PatchedProjectRequestToJSONTyped(json, false);
}

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

    return {

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