1 | import { GraphQLSchema, DocumentNode } from 'graphql';
|
2 | import type { ApolloServerPlugin, LandingPage } from 'apollo-server-plugin-base';
|
3 | import type { GraphQLServerOptions } from './graphqlOptions';
|
4 | import type { Config, DocumentStore } from './types';
|
5 | import { GraphQLRequest } from './requestPipeline';
|
6 | import type { SchemaHash } from 'apollo-server-types';
|
7 | export declare type SchemaDerivedData = {
|
8 | schema: GraphQLSchema;
|
9 | schemaHash: SchemaHash;
|
10 | documentStore: DocumentStore | null;
|
11 | };
|
12 | export declare class ApolloServerBase<ContextFunctionParams = any> {
|
13 | private logger;
|
14 | graphqlPath: string;
|
15 | requestOptions: Partial<GraphQLServerOptions<any>>;
|
16 | private context?;
|
17 | private apolloConfig;
|
18 | protected plugins: ApolloServerPlugin[];
|
19 | protected csrfPreventionRequestHeaders: string[] | null;
|
20 | private parseOptions;
|
21 | private config;
|
22 | private state;
|
23 | private toDispose;
|
24 | private toDisposeLast;
|
25 | private drainServers;
|
26 | private stopOnTerminationSignals;
|
27 | private landingPage;
|
28 | constructor(config: Config<ContextFunctionParams>);
|
29 | start(): Promise<void>;
|
30 | protected _start(): Promise<void>;
|
31 | private maybeRegisterTerminationSignalHandlers;
|
32 | private _ensureStarted;
|
33 | protected ensureStarted(): Promise<void>;
|
34 | protected assertStarted(methodName: string): void;
|
35 | private logStartupError;
|
36 | private constructSchema;
|
37 | private maybeAddMocksToConstructedSchema;
|
38 | private generateSchemaDerivedData;
|
39 | stop(): Promise<void>;
|
40 | protected serverlessFramework(): boolean;
|
41 | private ensurePluginInstantiation;
|
42 | protected graphQLServerOptions(integrationContextArgument?: any): Promise<GraphQLServerOptions>;
|
43 | executeOperation(request: Omit<GraphQLRequest, 'query'> & {
|
44 | query?: string | DocumentNode;
|
45 | }, integrationContextArgument?: ContextFunctionParams): Promise<import("apollo-server-types").GraphQLResponse>;
|
46 | protected getLandingPage(): LandingPage | null;
|
47 | }
|
48 | export declare type ImplicitlyInstallablePlugin = ApolloServerPlugin & {
|
49 | __internal_installed_implicitly__: boolean;
|
50 | };
|
51 | export declare function isImplicitlyInstallablePlugin(p: ApolloServerPlugin): p is ImplicitlyInstallablePlugin;
|
52 |
|
\ | No newline at end of file |