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

CodeGraphEnvelopeAsync.ts — typescript-sdk Source File

Architecture documentation for CodeGraphEnvelopeAsync.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
  7a352295_096b_bb53_0046_f6c5be0ce3b1["CodeGraphEnvelopeAsync.ts"]
  41b6b5c2_aa5b_90b9_c373_84e0a8cd9918["runtime.ts"]
  7a352295_096b_bb53_0046_f6c5be0ce3b1 --> 41b6b5c2_aa5b_90b9_c373_84e0a8cd9918
  11568abc_c5bd_8b5d_1ce1_6d595e449b9c["mapValues"]
  7a352295_096b_bb53_0046_f6c5be0ce3b1 --> 11568abc_c5bd_8b5d_1ce1_6d595e449b9c
  f036a4cc_da40_f015_3b8a_3f6d8e0198c7["CodeGraphEnvelope.ts"]
  7a352295_096b_bb53_0046_f6c5be0ce3b1 --> f036a4cc_da40_f015_3b8a_3f6d8e0198c7
  ef961c7d_5e7f_6ace_52a0_f79fc08db4ab["CodeGraphEnvelopeFromJSON"]
  7a352295_096b_bb53_0046_f6c5be0ce3b1 --> ef961c7d_5e7f_6ace_52a0_f79fc08db4ab
  0ff8adc6_75b0_a916_2825_cbef3ea2f135["CodeGraphEnvelopeFromJSONTyped"]
  7a352295_096b_bb53_0046_f6c5be0ce3b1 --> 0ff8adc6_75b0_a916_2825_cbef3ea2f135
  c60bd379_8e46_11ff_25d1_df966fc1785a["CodeGraphEnvelopeToJSON"]
  7a352295_096b_bb53_0046_f6c5be0ce3b1 --> c60bd379_8e46_11ff_25d1_df966fc1785a
  style 7a352295_096b_bb53_0046_f6c5be0ce3b1 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 { CodeGraphEnvelope } from './CodeGraphEnvelope';
import {
    CodeGraphEnvelopeFromJSON,
    CodeGraphEnvelopeFromJSONTyped,
    CodeGraphEnvelopeToJSON,
} from './CodeGraphEnvelope';

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


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


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

export function CodeGraphEnvelopeAsyncFromJSON(json: any): CodeGraphEnvelopeAsync {
    return CodeGraphEnvelopeAsyncFromJSONTyped(json, false);
}

export function CodeGraphEnvelopeAsyncFromJSONTyped(json: any, ignoreDiscriminator: boolean): CodeGraphEnvelopeAsync {
    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 : CodeGraphEnvelopeFromJSON(json['result']),
    };
}

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

Domain

Subdomains

Frequently Asked Questions

What does CodeGraphEnvelopeAsync.ts do?
CodeGraphEnvelopeAsync.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 CodeGraphEnvelopeAsync.ts?
CodeGraphEnvelopeAsync.ts defines 4 function(s): CodeGraphEnvelopeAsyncFromJSON, CodeGraphEnvelopeAsyncFromJSONTyped, CodeGraphEnvelopeAsyncToJSON, instanceOfCodeGraphEnvelopeAsync.
What does CodeGraphEnvelopeAsync.ts depend on?
CodeGraphEnvelopeAsync.ts imports 6 module(s): CodeGraphEnvelope.ts, CodeGraphEnvelopeFromJSON, CodeGraphEnvelopeFromJSONTyped, CodeGraphEnvelopeToJSON, mapValues, runtime.ts.
Where is CodeGraphEnvelopeAsync.ts in the architecture?
CodeGraphEnvelopeAsync.ts is located at src/models/CodeGraphEnvelopeAsync.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