Home / Function/ generateParseGraphRaw() — typescript-sdk Function Reference

generateParseGraphRaw() — typescript-sdk Function Reference

Architecture documentation for the generateParseGraphRaw() function in DefaultApi.ts from the typescript-sdk codebase.

Entity Profile

Dependency Diagram

graph TD
  f77bda7f_db0d_a373_b2fc_2e3d39d1ec95["generateParseGraphRaw()"]
  47a54d29_2693_e349_f9a3_40a149ebac03["generateParseGraph()"]
  47a54d29_2693_e349_f9a3_40a149ebac03 -->|calls| f77bda7f_db0d_a373_b2fc_2e3d39d1ec95
  74960889_775b_bd9a_fdec_2cb4ceaa6c56["request()"]
  f77bda7f_db0d_a373_b2fc_2e3d39d1ec95 -->|calls| 74960889_775b_bd9a_fdec_2cb4ceaa6c56
  47a54d29_2693_e349_f9a3_40a149ebac03["generateParseGraph()"]
  f77bda7f_db0d_a373_b2fc_2e3d39d1ec95 -->|calls| 47a54d29_2693_e349_f9a3_40a149ebac03
  127aee54_a736_b134_3830_b9d334cc2bf3["apiKey()"]
  f77bda7f_db0d_a373_b2fc_2e3d39d1ec95 -->|calls| 127aee54_a736_b134_3830_b9d334cc2bf3
  50f1658c_dac3_fca2_706e_547ab98e76be["canConsumeForm()"]
  f77bda7f_db0d_a373_b2fc_2e3d39d1ec95 -->|calls| 50f1658c_dac3_fca2_706e_547ab98e76be
  style f77bda7f_db0d_a373_b2fc_2e3d39d1ec95 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/apis/DefaultApi.ts lines 545–601

    async generateParseGraphRaw(requestParameters: GenerateParseGraphRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CodeGraphEnvelopeAsync>> {
        if (requestParameters['idempotencyKey'] == null) {
            throw new runtime.RequiredError(
                'idempotencyKey',
                'Required parameter "idempotencyKey" was null or undefined when calling generateParseGraph().'
            );
        }

        if (requestParameters['file'] == null) {
            throw new runtime.RequiredError(
                'file',
                'Required parameter "file" was null or undefined when calling generateParseGraph().'
            );
        }

        const queryParameters: any = {};

        const headerParameters: runtime.HTTPHeaders = {};

        if (requestParameters['idempotencyKey'] != null) {
            headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
        }

        if (this.configuration && this.configuration.apiKey) {
            headerParameters["X-Api-Key"] = await this.configuration.apiKey("X-Api-Key"); // ApiKeyAuth authentication
        }

        const consumes: runtime.Consume[] = [
            { contentType: 'multipart/form-data' },
        ];
        // @ts-ignore: canConsumeForm may be unused
        const canConsumeForm = runtime.canConsumeForm(consumes);

        let formParams: { append(param: string, value: any): any };
        let useForm = false;
        // use FormData to transmit files using content-type "multipart/form-data"
        useForm = canConsumeForm;
        if (useForm) {
            formParams = new FormData();
        } else {
            formParams = new URLSearchParams();
        }

        if (requestParameters['file'] != null) {
            formParams.append('file', requestParameters['file'] as any);
        }

        const response = await this.request({
            path: `/v1/graphs/parse`,
            method: 'POST',
            headers: headerParameters,
            query: queryParameters,
            body: formParams,
        }, initOverrides);

        return new runtime.JSONApiResponse(response, (jsonValue) => CodeGraphEnvelopeAsyncFromJSON(jsonValue));
    }

Domain

Subdomains

Frequently Asked Questions

What does generateParseGraphRaw() do?
generateParseGraphRaw() is a function in the typescript-sdk codebase.
What does generateParseGraphRaw() call?
generateParseGraphRaw() calls 4 function(s): apiKey, canConsumeForm, generateParseGraph, request.
What calls generateParseGraphRaw()?
generateParseGraphRaw() is called by 1 function(s): generateParseGraph.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free