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

DomainClassificationResponseAsync.ts — typescript-sdk Source File

Architecture documentation for DomainClassificationResponseAsync.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
  421bbfea_8b9d_f0e8_7280_8c305c5d790c["DomainClassificationResponseAsync.ts"]
  41b6b5c2_aa5b_90b9_c373_84e0a8cd9918["runtime.ts"]
  421bbfea_8b9d_f0e8_7280_8c305c5d790c --> 41b6b5c2_aa5b_90b9_c373_84e0a8cd9918
  11568abc_c5bd_8b5d_1ce1_6d595e449b9c["mapValues"]
  421bbfea_8b9d_f0e8_7280_8c305c5d790c --> 11568abc_c5bd_8b5d_1ce1_6d595e449b9c
  955dc16b_7f47_35af_4ddd_10aca9358cb7["DomainClassificationResponse.ts"]
  421bbfea_8b9d_f0e8_7280_8c305c5d790c --> 955dc16b_7f47_35af_4ddd_10aca9358cb7
  e28d144b_1600_569f_920b_1dee488d0cc5["DomainClassificationResponseFromJSON"]
  421bbfea_8b9d_f0e8_7280_8c305c5d790c --> e28d144b_1600_569f_920b_1dee488d0cc5
  3bb5bad3_8f26_fe79_e025_267b88c3901f["DomainClassificationResponseFromJSONTyped"]
  421bbfea_8b9d_f0e8_7280_8c305c5d790c --> 3bb5bad3_8f26_fe79_e025_267b88c3901f
  c2955261_5b7d_ea71_941e_a1221323be2a["DomainClassificationResponseToJSON"]
  421bbfea_8b9d_f0e8_7280_8c305c5d790c --> c2955261_5b7d_ea71_941e_a1221323be2a
  style 421bbfea_8b9d_f0e8_7280_8c305c5d790c 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 { DomainClassificationResponse } from './DomainClassificationResponse';
import {
    DomainClassificationResponseFromJSON,
    DomainClassificationResponseFromJSONTyped,
    DomainClassificationResponseToJSON,
} from './DomainClassificationResponse';

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


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


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

export function DomainClassificationResponseAsyncFromJSON(json: any): DomainClassificationResponseAsync {
    return DomainClassificationResponseAsyncFromJSONTyped(json, false);
}

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

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

Domain

Subdomains

Frequently Asked Questions

What does DomainClassificationResponseAsync.ts do?
DomainClassificationResponseAsync.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 DomainClassificationResponseAsync.ts?
DomainClassificationResponseAsync.ts defines 4 function(s): DomainClassificationResponseAsyncFromJSON, DomainClassificationResponseAsyncFromJSONTyped, DomainClassificationResponseAsyncToJSON, instanceOfDomainClassificationResponseAsync.
What does DomainClassificationResponseAsync.ts depend on?
DomainClassificationResponseAsync.ts imports 6 module(s): DomainClassificationResponse.ts, DomainClassificationResponseFromJSON, DomainClassificationResponseFromJSONTyped, DomainClassificationResponseToJSON, mapValues, runtime.ts.
Where is DomainClassificationResponseAsync.ts in the architecture?
DomainClassificationResponseAsync.ts is located at src/models/DomainClassificationResponseAsync.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