Home / File/ SupermodelIRAsync.ts — typescript-sdk Source File

SupermodelIRAsync.ts — typescript-sdk Source File

Architecture documentation for SupermodelIRAsync.ts, a typescript file in the typescript-sdk codebase. 6 imports, 0 dependents.

File typescript CodeGraph IR 6 imports 4 functions

Entity Profile

Dependency Diagram

graph LR
  a107f77a_d00d_2062_cad7_f47509e8e442["SupermodelIRAsync.ts"]
  41b6b5c2_aa5b_90b9_c373_84e0a8cd9918["runtime.ts"]
  a107f77a_d00d_2062_cad7_f47509e8e442 --> 41b6b5c2_aa5b_90b9_c373_84e0a8cd9918
  11568abc_c5bd_8b5d_1ce1_6d595e449b9c["mapValues"]
  a107f77a_d00d_2062_cad7_f47509e8e442 --> 11568abc_c5bd_8b5d_1ce1_6d595e449b9c
  8ffa46c4_6e6e_a02b_f3e7_7fe17cc2b8d3["SupermodelIR.ts"]
  a107f77a_d00d_2062_cad7_f47509e8e442 --> 8ffa46c4_6e6e_a02b_f3e7_7fe17cc2b8d3
  570102ba_50d4_f2e2_4f6d_4d05331e8bd5["SupermodelIRFromJSON"]
  a107f77a_d00d_2062_cad7_f47509e8e442 --> 570102ba_50d4_f2e2_4f6d_4d05331e8bd5
  914557b1_7084_93da_cf5f_82ead0e36098["SupermodelIRFromJSONTyped"]
  a107f77a_d00d_2062_cad7_f47509e8e442 --> 914557b1_7084_93da_cf5f_82ead0e36098
  5cb4729f_dd4c_43a0_ffb5_eac90b768885["SupermodelIRToJSON"]
  a107f77a_d00d_2062_cad7_f47509e8e442 --> 5cb4729f_dd4c_43a0_ffb5_eac90b768885
  style a107f77a_d00d_2062_cad7_f47509e8e442 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/* tslint:disable */
/* eslint-disable */
/**
 * Supermodel
 * Code Graphing & Analysis API
 *
 * The version of the OpenAPI document: 0.9.3
 * 
 *
 * 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 { SupermodelIR } from './SupermodelIR';
import {
    SupermodelIRFromJSON,
    SupermodelIRFromJSONTyped,
    SupermodelIRToJSON,
} from './SupermodelIR';

/**
 * 
 * @export
 * @interface SupermodelIRAsync
 */
export interface SupermodelIRAsync {
    /**
     * Current status of the job.
     * @type {string}
     * @memberof SupermodelIRAsync
     */
    status: SupermodelIRAsyncStatusEnum;
    /**
     * Unique identifier for the job.
     * @type {string}
     * @memberof SupermodelIRAsync
     */
    jobId: string;
    /**
     * Recommended seconds to wait before polling again.
     * @type {number}
     * @memberof SupermodelIRAsync
     */
    retryAfter?: number;
    /**
     * Error message (present when status is failed).
     * @type {string}
     * @memberof SupermodelIRAsync
     */
    error?: string;
    /**
     * 
     * @type {SupermodelIR}
     * @memberof SupermodelIRAsync
     */
    result?: SupermodelIR;
}


/**
 * @export
 */
export const SupermodelIRAsyncStatusEnum = {
    Pending: 'pending',
    Processing: 'processing',
    Completed: 'completed',
    Failed: 'failed'
} as const;
export type SupermodelIRAsyncStatusEnum = typeof SupermodelIRAsyncStatusEnum[keyof typeof SupermodelIRAsyncStatusEnum];


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

export function SupermodelIRAsyncFromJSON(json: any): SupermodelIRAsync {
    return SupermodelIRAsyncFromJSONTyped(json, false);
}

export function SupermodelIRAsyncFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupermodelIRAsync {
    if (json == null) {
        return json;
    }
    return {
        
        'status': json['status'],
        'jobId': json['jobId'],
        'retryAfter': json['retryAfter'] == null ? undefined : json['retryAfter'],
        'error': json['error'] == null ? undefined : json['error'],
        'result': json['result'] == null ? undefined : SupermodelIRFromJSON(json['result']),
    };
}

export function SupermodelIRAsyncToJSON(value?: SupermodelIRAsync | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'status': value['status'],
        'jobId': value['jobId'],
        'retryAfter': value['retryAfter'],
        'error': value['error'],
        'result': SupermodelIRToJSON(value['result']),
    };
}

Domain

Subdomains

Frequently Asked Questions

What does SupermodelIRAsync.ts do?
SupermodelIRAsync.ts is a source file in the typescript-sdk codebase, written in typescript. It belongs to the CodeGraph domain, IR subdomain.
What functions are defined in SupermodelIRAsync.ts?
SupermodelIRAsync.ts defines 4 function(s): SupermodelIRAsyncFromJSON, SupermodelIRAsyncFromJSONTyped, SupermodelIRAsyncToJSON, instanceOfSupermodelIRAsync.
What does SupermodelIRAsync.ts depend on?
SupermodelIRAsync.ts imports 6 module(s): SupermodelIR.ts, SupermodelIRFromJSON, SupermodelIRFromJSONTyped, SupermodelIRToJSON, mapValues, runtime.ts.
Where is SupermodelIRAsync.ts in the architecture?
SupermodelIRAsync.ts is located at src/models/SupermodelIRAsync.ts (domain: CodeGraph, subdomain: IR, directory: src/models).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free