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

DomainRelationship.ts — typescript-sdk Source File

Architecture documentation for DomainRelationship.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
  1a2cd39a_179c_b61a_238c_8da30a7b72f4["DomainRelationship.ts"]
  41b6b5c2_aa5b_90b9_c373_84e0a8cd9918["runtime.ts"]
  1a2cd39a_179c_b61a_238c_8da30a7b72f4 --> 41b6b5c2_aa5b_90b9_c373_84e0a8cd9918
  11568abc_c5bd_8b5d_1ce1_6d595e449b9c["mapValues"]
  1a2cd39a_179c_b61a_238c_8da30a7b72f4 --> 11568abc_c5bd_8b5d_1ce1_6d595e449b9c
  955dc16b_7f47_35af_4ddd_10aca9358cb7["DomainClassificationResponse.ts"]
  955dc16b_7f47_35af_4ddd_10aca9358cb7 --> 1a2cd39a_179c_b61a_238c_8da30a7b72f4
  style 1a2cd39a_179c_b61a_238c_8da30a7b72f4 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 DomainRelationship
 */
export interface DomainRelationship {
    /**
     * Source domain or subdomain name/id
     * @type {string}
     * @memberof DomainRelationship
     */
    from: string;
    /**
     * Target domain or subdomain name/id
     * @type {string}
     * @memberof DomainRelationship
     */
    to: string;
    /**
     * Relationship type (e.g., aggregates, dependsOn, relatesTo)
     * @type {string}
     * @memberof DomainRelationship
     */
    type: string;
    /**
     * Numeric strength/weight (0-1 or small integer)
     * @type {number}
     * @memberof DomainRelationship
     */
    strength: number;
    /**
     * Optional explanation for the relationship
     * @type {string}
     * @memberof DomainRelationship
     */
    reason?: string;
}

/**
 * Check if a given object implements the DomainRelationship interface.
 */
export function instanceOfDomainRelationship(value: object): value is DomainRelationship {
    if (!('from' in value) || value['from'] === undefined) return false;
    if (!('to' in value) || value['to'] === undefined) return false;
    if (!('type' in value) || value['type'] === undefined) return false;
    if (!('strength' in value) || value['strength'] === undefined) return false;
    return true;
}

export function DomainRelationshipFromJSON(json: any): DomainRelationship {
    return DomainRelationshipFromJSONTyped(json, false);
}

export function DomainRelationshipFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainRelationship {
    if (json == null) {
        return json;
    }
    return {
        
        'from': json['from'],
        'to': json['to'],
        'type': json['type'],
        'strength': json['strength'],
        'reason': json['reason'] == null ? undefined : json['reason'],
    };
}

export function DomainRelationshipToJSON(value?: DomainRelationship | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'from': value['from'],
        'to': value['to'],
        'type': value['type'],
        'strength': value['strength'],
        'reason': value['reason'],
    };
}

Domain

Subdomains

Dependencies

Frequently Asked Questions

What does DomainRelationship.ts do?
DomainRelationship.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 DomainRelationship.ts?
DomainRelationship.ts defines 4 function(s): DomainRelationshipFromJSON, DomainRelationshipFromJSONTyped, DomainRelationshipToJSON, instanceOfDomainRelationship.
What does DomainRelationship.ts depend on?
DomainRelationship.ts imports 2 module(s): mapValues, runtime.ts.
What files import DomainRelationship.ts?
DomainRelationship.ts is imported by 1 file(s): DomainClassificationResponse.ts.
Where is DomainRelationship.ts in the architecture?
DomainRelationship.ts is located at src/models/DomainRelationship.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