All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.graphql-config.lib.extensions.endpoints.EndpointsExtension.d.ts Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
import { GraphQLClient } from 'graphql-request';
import { GraphQLSchema } from 'graphql';
import { IntrospectionResult } from '../../types';
export declare type GraphQLConfigEnpointsSubscription = {
    url: string;
    connectionParams?: {
        [name: string]: string | undefined;
    };
};
export declare type GraphQLConfigEnpointConfig = {
    url: string;
    headers?: {
        [name: string]: string;
    };
    subscription?: GraphQLConfigEnpointsSubscription;
};
export declare type GraphQLConfigEnpointsMapData = {
    [env: string]: GraphQLConfigEnpointConfig | string;
};
export declare type GraphQLConfigEnpointsMap = {
    [env: string]: GraphQLConfigEnpointConfig | GraphQLEndpoint;
};
export declare type GraphQLConfigEnpointsData = GraphQLConfigEnpointsMapData;
export declare class GraphQLEndpointsExtension {
    raw: GraphQLConfigEnpointsMapData;
    private configPath;
    constructor(endpointConfig: GraphQLConfigEnpointsMapData, configPath: string);
    getRawEndpointsMap(): GraphQLConfigEnpointsMap;
    getEnvVarsForEndpoint(endpointName: string): {
        [name: string]: string | null;
    };
    getEndpoint(endpointName: string, env?: {
        [name: string]: string | undefined;
    }): GraphQLEndpoint;
    private getRawEndpoint(endpointName?);
}
export declare class GraphQLEndpoint {
    url: string;
    headers: {
        [name: string]: string;
    };
    subscription: GraphQLConfigEnpointsSubscription;
    constructor(resolvedConfig: GraphQLConfigEnpointConfig);
    getClient(clientOptions?: any): GraphQLClient;
    resolveIntrospection(): Promise;
    resolveSchema(): Promise;
    resolveSchemaSDL(): Promise;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy