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

SupermodelIRGraph.ts — typescript-sdk Source File

Architecture documentation for SupermodelIRGraph.ts, a typescript file in the typescript-sdk codebase. 10 imports, 1 dependents.

File typescript CodeGraph IR 10 imports 1 dependents 4 functions

Entity Profile

Dependency Diagram

graph LR
  16665b9d_716b_53d2_ad0f_8f224211e5bc["SupermodelIRGraph.ts"]
  41b6b5c2_aa5b_90b9_c373_84e0a8cd9918["runtime.ts"]
  16665b9d_716b_53d2_ad0f_8f224211e5bc --> 41b6b5c2_aa5b_90b9_c373_84e0a8cd9918
  11568abc_c5bd_8b5d_1ce1_6d595e449b9c["mapValues"]
  16665b9d_716b_53d2_ad0f_8f224211e5bc --> 11568abc_c5bd_8b5d_1ce1_6d595e449b9c
  5ee535a3_4e10_908a_b4b1_41d305e8a135["CodeGraphNode.ts"]
  16665b9d_716b_53d2_ad0f_8f224211e5bc --> 5ee535a3_4e10_908a_b4b1_41d305e8a135
  ba2ac4ac_910b_2de9_fbf2_d95bbef3dd6a["CodeGraphNodeFromJSON"]
  16665b9d_716b_53d2_ad0f_8f224211e5bc --> ba2ac4ac_910b_2de9_fbf2_d95bbef3dd6a
  3238fcd6_2c78_66f0_0d3e_1684d56be65e["CodeGraphNodeFromJSONTyped"]
  16665b9d_716b_53d2_ad0f_8f224211e5bc --> 3238fcd6_2c78_66f0_0d3e_1684d56be65e
  b458e8b1_61c2_9c93_3918_291343d6e350["CodeGraphNodeToJSON"]
  16665b9d_716b_53d2_ad0f_8f224211e5bc --> b458e8b1_61c2_9c93_3918_291343d6e350
  109a46b6_2452_c13f_dc0b_2a268faf72b6["CodeGraphRelationship.ts"]
  16665b9d_716b_53d2_ad0f_8f224211e5bc --> 109a46b6_2452_c13f_dc0b_2a268faf72b6
  7a4a0602_4533_aa81_0abb_78e1b1d8f6ac["CodeGraphRelationshipFromJSON"]
  16665b9d_716b_53d2_ad0f_8f224211e5bc --> 7a4a0602_4533_aa81_0abb_78e1b1d8f6ac
  bbdc7fd6_86bd_6f7b_9ca5_ec8893cfb4fc["CodeGraphRelationshipFromJSONTyped"]
  16665b9d_716b_53d2_ad0f_8f224211e5bc --> bbdc7fd6_86bd_6f7b_9ca5_ec8893cfb4fc
  4fbc54b1_a31c_9266_80ea_4a2d1aef1380["CodeGraphRelationshipToJSON"]
  16665b9d_716b_53d2_ad0f_8f224211e5bc --> 4fbc54b1_a31c_9266_80ea_4a2d1aef1380
  8ffa46c4_6e6e_a02b_f3e7_7fe17cc2b8d3["SupermodelIR.ts"]
  8ffa46c4_6e6e_a02b_f3e7_7fe17cc2b8d3 --> 16665b9d_716b_53d2_ad0f_8f224211e5bc
  style 16665b9d_716b_53d2_ad0f_8f224211e5bc 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 { CodeGraphNode } from './CodeGraphNode';
import {
    CodeGraphNodeFromJSON,
    CodeGraphNodeFromJSONTyped,
    CodeGraphNodeToJSON,
} from './CodeGraphNode';
import type { CodeGraphRelationship } from './CodeGraphRelationship';
import {
    CodeGraphRelationshipFromJSON,
    CodeGraphRelationshipFromJSONTyped,
    CodeGraphRelationshipToJSON,
} from './CodeGraphRelationship';

/**
 * Unified code graph containing all nodes and relationships.
 * @export
 * @interface SupermodelIRGraph
 */
export interface SupermodelIRGraph {
    /**
     * All nodes from parse graph, call graph, and domain classification.
     * @type {Array<CodeGraphNode>}
     * @memberof SupermodelIRGraph
     */
    nodes: Array<CodeGraphNode>;
    /**
     * All relationships including contains, imports, calls, and belongsTo.
     * @type {Array<CodeGraphRelationship>}
     * @memberof SupermodelIRGraph
     */
    relationships: Array<CodeGraphRelationship>;
}

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

export function SupermodelIRGraphFromJSON(json: any): SupermodelIRGraph {
    return SupermodelIRGraphFromJSONTyped(json, false);
}

export function SupermodelIRGraphFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupermodelIRGraph {
    if (json == null) {
        return json;
    }
    return {
        
        'nodes': ((json['nodes'] as Array<any>).map(CodeGraphNodeFromJSON)),
        'relationships': ((json['relationships'] as Array<any>).map(CodeGraphRelationshipFromJSON)),
    };
}

export function SupermodelIRGraphToJSON(value?: SupermodelIRGraph | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'nodes': ((value['nodes'] as Array<any>).map(CodeGraphNodeToJSON)),
        'relationships': ((value['relationships'] as Array<any>).map(CodeGraphRelationshipToJSON)),
    };
}

Domain

Subdomains

Frequently Asked Questions

What does SupermodelIRGraph.ts do?
SupermodelIRGraph.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 SupermodelIRGraph.ts?
SupermodelIRGraph.ts defines 4 function(s): SupermodelIRGraphFromJSON, SupermodelIRGraphFromJSONTyped, SupermodelIRGraphToJSON, instanceOfSupermodelIRGraph.
What does SupermodelIRGraph.ts depend on?
SupermodelIRGraph.ts imports 10 module(s): CodeGraphNode.ts, CodeGraphNodeFromJSON, CodeGraphNodeFromJSONTyped, CodeGraphNodeToJSON, CodeGraphRelationship.ts, CodeGraphRelationshipFromJSON, CodeGraphRelationshipFromJSONTyped, CodeGraphRelationshipToJSON, and 2 more.
What files import SupermodelIRGraph.ts?
SupermodelIRGraph.ts is imported by 1 file(s): SupermodelIR.ts.
Where is SupermodelIRGraph.ts in the architecture?
SupermodelIRGraph.ts is located at src/models/SupermodelIRGraph.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