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

CodeGraphRelationship.ts — typescript-sdk Source File

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

File typescript CodeGraph IR 2 imports 3 dependents 4 functions

Entity Profile

Dependency Diagram

graph LR
  109a46b6_2452_c13f_dc0b_2a268faf72b6["CodeGraphRelationship.ts"]
  41b6b5c2_aa5b_90b9_c373_84e0a8cd9918["runtime.ts"]
  109a46b6_2452_c13f_dc0b_2a268faf72b6 --> 41b6b5c2_aa5b_90b9_c373_84e0a8cd9918
  11568abc_c5bd_8b5d_1ce1_6d595e449b9c["mapValues"]
  109a46b6_2452_c13f_dc0b_2a268faf72b6 --> 11568abc_c5bd_8b5d_1ce1_6d595e449b9c
  98e5e5a2_ec1f_ec59_7fda_2b7180d49cfb["CodeGraphEnvelopeGraph.ts"]
  98e5e5a2_ec1f_ec59_7fda_2b7180d49cfb --> 109a46b6_2452_c13f_dc0b_2a268faf72b6
  3374dfb1_1973_ce24_3f6a_0cfd3d063ae4["DomainClassificationResponseGraph.ts"]
  3374dfb1_1973_ce24_3f6a_0cfd3d063ae4 --> 109a46b6_2452_c13f_dc0b_2a268faf72b6
  16665b9d_716b_53d2_ad0f_8f224211e5bc["SupermodelIRGraph.ts"]
  16665b9d_716b_53d2_ad0f_8f224211e5bc --> 109a46b6_2452_c13f_dc0b_2a268faf72b6
  style 109a46b6_2452_c13f_dc0b_2a268faf72b6 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';
/**
 * 
 * @export
 * @interface CodeGraphRelationship
 */
export interface CodeGraphRelationship {
    /**
     * 
     * @type {string}
     * @memberof CodeGraphRelationship
     */
    id: string;
    /**
     * 
     * @type {string}
     * @memberof CodeGraphRelationship
     */
    type: string;
    /**
     * 
     * @type {string}
     * @memberof CodeGraphRelationship
     */
    startNode: string;
    /**
     * 
     * @type {string}
     * @memberof CodeGraphRelationship
     */
    endNode: string;
    /**
     * 
     * @type {{ [key: string]: any; }}
     * @memberof CodeGraphRelationship
     */
    properties?: { [key: string]: any; };
}

/**
 * Check if a given object implements the CodeGraphRelationship interface.
 */
export function instanceOfCodeGraphRelationship(value: object): value is CodeGraphRelationship {
    if (!('id' in value) || value['id'] === undefined) return false;
    if (!('type' in value) || value['type'] === undefined) return false;
    if (!('startNode' in value) || value['startNode'] === undefined) return false;
    if (!('endNode' in value) || value['endNode'] === undefined) return false;
    return true;
}

export function CodeGraphRelationshipFromJSON(json: any): CodeGraphRelationship {
    return CodeGraphRelationshipFromJSONTyped(json, false);
}

export function CodeGraphRelationshipFromJSONTyped(json: any, ignoreDiscriminator: boolean): CodeGraphRelationship {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'],
        'type': json['type'],
        'startNode': json['startNode'],
        'endNode': json['endNode'],
        'properties': json['properties'] == null ? undefined : json['properties'],
    };
}

export function CodeGraphRelationshipToJSON(value?: CodeGraphRelationship | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'id': value['id'],
        'type': value['type'],
        'startNode': value['startNode'],
        'endNode': value['endNode'],
        'properties': value['properties'],
    };
}

Domain

Subdomains

Dependencies

Frequently Asked Questions

What does CodeGraphRelationship.ts do?
CodeGraphRelationship.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 CodeGraphRelationship.ts?
CodeGraphRelationship.ts defines 4 function(s): CodeGraphRelationshipFromJSON, CodeGraphRelationshipFromJSONTyped, CodeGraphRelationshipToJSON, instanceOfCodeGraphRelationship.
What does CodeGraphRelationship.ts depend on?
CodeGraphRelationship.ts imports 2 module(s): mapValues, runtime.ts.
What files import CodeGraphRelationship.ts?
CodeGraphRelationship.ts is imported by 3 file(s): CodeGraphEnvelopeGraph.ts, DomainClassificationResponseGraph.ts, SupermodelIRGraph.ts.
Where is CodeGraphRelationship.ts in the architecture?
CodeGraphRelationship.ts is located at src/models/CodeGraphRelationship.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