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
  720cd445_ea0b_fbbd_458f_1cd1b88fbc87["generateParseGraphRaw()"]
  cb2e2ccd_eaec_6f24_d9d6_4a68b8fd446c["DefaultApi"]
  720cd445_ea0b_fbbd_458f_1cd1b88fbc87 -->|defined in| cb2e2ccd_eaec_6f24_d9d6_4a68b8fd446c
  d57695a9_fcfe_6c1f_c8a3_2a574e912256["generateParseGraph()"]
  d57695a9_fcfe_6c1f_c8a3_2a574e912256 -->|calls| 720cd445_ea0b_fbbd_458f_1cd1b88fbc87
  a9dbfef7_3f36_3873_c1c7_ad33a0dd92ef["request()"]
  720cd445_ea0b_fbbd_458f_1cd1b88fbc87 -->|calls| a9dbfef7_3f36_3873_c1c7_ad33a0dd92ef
  d57695a9_fcfe_6c1f_c8a3_2a574e912256["generateParseGraph()"]
  720cd445_ea0b_fbbd_458f_1cd1b88fbc87 -->|calls| d57695a9_fcfe_6c1f_c8a3_2a574e912256
  b76a3e72_efd8_2111_6fdf_582aaea5ae2a["apiKey()"]
  720cd445_ea0b_fbbd_458f_1cd1b88fbc87 -->|calls| b76a3e72_efd8_2111_6fdf_582aaea5ae2a
  52ee5fb1_4035_1208_921a_9a53cbd2fdbd["canConsumeForm()"]
  720cd445_ea0b_fbbd_458f_1cd1b88fbc87 -->|calls| 52ee5fb1_4035_1208_921a_9a53cbd2fdbd
  style 720cd445_ea0b_fbbd_458f_1cd1b88fbc87 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/apis/DefaultApi.ts lines 357–413

    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, defined in src/apis/DefaultApi.ts.
Where is generateParseGraphRaw() defined?
generateParseGraphRaw() is defined in src/apis/DefaultApi.ts at line 357.
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