node_modules.graphql-config.lib.extensions.endpoints.EndpointsExtension.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-client-maven-plugin Show documentation
Show all versions of apollo-client-maven-plugin Show documentation
Maven plugin for generating graphql clients
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