The platform for continuously improving AI agents.
/* 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 DeploymentProgress
*/
export interface DeploymentProgress {
/**
*
* @type {string}
* @memberof DeploymentProgress
*/
stage: string;
/**
*
* @type {string}
* @memberof DeploymentProgress
*/
label: string;
/**
*
* @type {number}
* @memberof DeploymentProgress
*/
attempt: number;
/**
*
* @type {Date}
* @memberof DeploymentProgress
*/
retryAt: Date | null;
/**
*
* @type {Date}
* @memberof DeploymentProgress
*/
deadline: Date | null;
/**
*
* @type {string}
* @memberof DeploymentProgress
*/
lastError: string | null;
}
/**
* Check if a given object implements the DeploymentProgress interface.
*/
export function instanceOfDeploymentProgress(value: object): value is DeploymentProgress {
if (!('stage' in value) || value['stage'] === undefined) return false;
if (!('label' in value) || value['label'] === undefined) return false;
if (!('attempt' in value) || value['attempt'] === undefined) return false;
if (!('retryAt' in value) || value['retryAt'] === undefined) return false;
if (!('deadline' in value) || value['deadline'] === undefined) return false;
if (!('lastError' in value) || value['lastError'] === undefined) return false;
return true;
}
export function DeploymentProgressFromJSON(json: any): DeploymentProgress {
return DeploymentProgressFromJSONTyped(json, false);
}
export function DeploymentProgressFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeploymentProgress {
if (json == null) {
return json;
}
return {
'stage': json['stage'],
'label': json['label'],
'attempt': json['attempt'],
'retryAt': (json['retry_at'] == null ? null : new Date(json['retry_at'])),
'deadline': (json['deadline'] == null ? null : new Date(json['deadline'])),
'lastError': json['last_error'],
};
}
export function DeploymentProgressToJSON(json: any): DeploymentProgress {
return DeploymentProgressToJSONTyped(json, false);
}
export function DeploymentProgressToJSONTyped(value?: DeploymentProgress | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'stage': value['stage'],
'label': value['label'],
'attempt': value['attempt'],
'retry_at': value['retryAt'] == null ? value['retryAt'] : value['retryAt'].toISOString(),
'deadline': value['deadline'] == null ? value['deadline'] : value['deadline'].toISOString(),
'last_error': value['lastError'],
};
}