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

SupermodelIRStats.ts — typescript-sdk Source File

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

File typescript CodeGraph IR 2 imports 1 dependents 4 functions

Entity Profile

Dependency Diagram

graph LR
  42e1b60a_571c_1de9_a996_12197860039c["SupermodelIRStats.ts"]
  41b6b5c2_aa5b_90b9_c373_84e0a8cd9918["runtime.ts"]
  42e1b60a_571c_1de9_a996_12197860039c --> 41b6b5c2_aa5b_90b9_c373_84e0a8cd9918
  11568abc_c5bd_8b5d_1ce1_6d595e449b9c["mapValues"]
  42e1b60a_571c_1de9_a996_12197860039c --> 11568abc_c5bd_8b5d_1ce1_6d595e449b9c
  8ffa46c4_6e6e_a02b_f3e7_7fe17cc2b8d3["SupermodelIR.ts"]
  8ffa46c4_6e6e_a02b_f3e7_7fe17cc2b8d3 --> 42e1b60a_571c_1de9_a996_12197860039c
  style 42e1b60a_571c_1de9_a996_12197860039c 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';
/**
 * Graph statistics including node and relationship counts by type
 * @export
 * @interface SupermodelIRStats
 */
export interface SupermodelIRStats {
    /**
     * 
     * @type {number}
     * @memberof SupermodelIRStats
     */
    nodeCount?: number;
    /**
     * 
     * @type {number}
     * @memberof SupermodelIRStats
     */
    relationshipCount?: number;
    /**
     * 
     * @type {{ [key: string]: number; }}
     * @memberof SupermodelIRStats
     */
    nodeTypes?: { [key: string]: number; };
    /**
     * 
     * @type {{ [key: string]: number; }}
     * @memberof SupermodelIRStats
     */
    relationshipTypes?: { [key: string]: number; };
}

/**
 * Check if a given object implements the SupermodelIRStats interface.
 */
export function instanceOfSupermodelIRStats(value: object): value is SupermodelIRStats {
    return true;
}

export function SupermodelIRStatsFromJSON(json: any): SupermodelIRStats {
    return SupermodelIRStatsFromJSONTyped(json, false);
}

export function SupermodelIRStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupermodelIRStats {
    if (json == null) {
        return json;
    }
    return {
        
        'nodeCount': json['nodeCount'] == null ? undefined : json['nodeCount'],
        'relationshipCount': json['relationshipCount'] == null ? undefined : json['relationshipCount'],
        'nodeTypes': json['nodeTypes'] == null ? undefined : json['nodeTypes'],
        'relationshipTypes': json['relationshipTypes'] == null ? undefined : json['relationshipTypes'],
    };
}

export function SupermodelIRStatsToJSON(value?: SupermodelIRStats | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'nodeCount': value['nodeCount'],
        'relationshipCount': value['relationshipCount'],
        'nodeTypes': value['nodeTypes'],
        'relationshipTypes': value['relationshipTypes'],
    };
}

Domain

Subdomains

Dependencies

Frequently Asked Questions

What does SupermodelIRStats.ts do?
SupermodelIRStats.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 SupermodelIRStats.ts?
SupermodelIRStats.ts defines 4 function(s): SupermodelIRStatsFromJSON, SupermodelIRStatsFromJSONTyped, SupermodelIRStatsToJSON, instanceOfSupermodelIRStats.
What does SupermodelIRStats.ts depend on?
SupermodelIRStats.ts imports 2 module(s): mapValues, runtime.ts.
What files import SupermodelIRStats.ts?
SupermodelIRStats.ts is imported by 1 file(s): SupermodelIR.ts.
Where is SupermodelIRStats.ts in the architecture?
SupermodelIRStats.ts is located at src/models/SupermodelIRStats.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