Initialisation
Added the packages and files for the backend server
This commit is contained in:
96
node_modules/@apollo/server-gateway-interface/dist/cjs/index.d.ts
generated
vendored
Normal file
96
node_modules/@apollo/server-gateway-interface/dist/cjs/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
import type { KeyValueCache } from '@apollo/utils.keyvaluecache';
|
||||
import type { DocumentNode, ExecutionResult, GraphQLError, GraphQLFormattedError, GraphQLSchema, OperationDefinitionNode } from 'graphql';
|
||||
import type { Logger } from '@apollo/utils.logger';
|
||||
import type { Trace } from '@apollo/usage-reporting-protobuf';
|
||||
import type { FetcherHeaders } from '@apollo/utils.fetcher';
|
||||
export interface GatewayInterface {
|
||||
onSchemaLoadOrUpdate(callback: GatewaySchemaLoadOrUpdateCallback): GatewayUnsubscriber;
|
||||
load(options: {
|
||||
apollo: GatewayApolloConfig;
|
||||
}): Promise<GatewayLoadResult>;
|
||||
stop(): Promise<void>;
|
||||
}
|
||||
export type GatewaySchemaLoadOrUpdateCallback = (schemaContext: {
|
||||
apiSchema: GraphQLSchema;
|
||||
coreSupergraphSdl: string;
|
||||
}) => void;
|
||||
export type GatewayUnsubscriber = () => void;
|
||||
export interface GatewayApolloConfig {
|
||||
key?: string;
|
||||
keyHash?: string;
|
||||
graphRef?: string;
|
||||
}
|
||||
export interface GatewayLoadResult {
|
||||
executor: GatewayExecutor | null;
|
||||
}
|
||||
export type GatewayExecutor = (requestContext: GatewayGraphQLRequestContext) => Promise<GatewayExecutionResult>;
|
||||
export type GatewayExecutionResult = ExecutionResult<Record<string, any>, Record<string, any>>;
|
||||
export interface GatewayGraphQLRequestContext<TContext = Record<string, any>> {
|
||||
readonly request: GatewayGraphQLRequest;
|
||||
readonly response?: GatewayGraphQLResponse;
|
||||
logger: Logger;
|
||||
readonly schema: GraphQLSchema;
|
||||
readonly schemaHash: GatewaySchemaHash;
|
||||
readonly context: TContext;
|
||||
readonly cache: KeyValueCache;
|
||||
readonly queryHash: string;
|
||||
readonly document: DocumentNode;
|
||||
readonly source: string;
|
||||
readonly operationName: string | null;
|
||||
readonly operation: OperationDefinitionNode;
|
||||
readonly errors?: ReadonlyArray<GraphQLError>;
|
||||
readonly metrics: GatewayGraphQLRequestMetrics;
|
||||
debug?: boolean;
|
||||
readonly overallCachePolicy: any;
|
||||
readonly requestIsBatched?: boolean;
|
||||
}
|
||||
export interface GatewayGraphQLRequest {
|
||||
query?: string;
|
||||
operationName?: string;
|
||||
variables?: Record<string, any>;
|
||||
extensions?: Record<string, any>;
|
||||
http?: GatewayHTTPRequest;
|
||||
}
|
||||
export interface GatewayHTTPRequest {
|
||||
readonly method: string;
|
||||
readonly url: string;
|
||||
readonly headers: FetcherHeaders;
|
||||
}
|
||||
export interface GatewayGraphQLResponse {
|
||||
data?: Record<string, any> | null;
|
||||
errors?: ReadonlyArray<GraphQLFormattedError>;
|
||||
extensions?: Record<string, any>;
|
||||
http?: GatewayHTTPResponse;
|
||||
}
|
||||
export interface GatewayHTTPResponse {
|
||||
readonly headers: FetcherHeaders;
|
||||
status?: number;
|
||||
}
|
||||
export type GatewaySchemaHash = string & {
|
||||
__fauxpaque: 'SchemaHash';
|
||||
};
|
||||
export interface NonFtv1ErrorPath {
|
||||
subgraph: string;
|
||||
path: GraphQLError['path'];
|
||||
}
|
||||
export interface GatewayGraphQLRequestMetrics {
|
||||
captureTraces?: boolean;
|
||||
persistedQueryHit?: boolean;
|
||||
persistedQueryRegister?: boolean;
|
||||
responseCacheHit?: boolean;
|
||||
forbiddenOperation?: boolean;
|
||||
registeredOperation?: boolean;
|
||||
startHrTime?: [number, number];
|
||||
queryPlanTrace?: Trace.QueryPlanNode;
|
||||
nonFtv1ErrorPaths?: NonFtv1ErrorPath[];
|
||||
}
|
||||
export interface GatewayCachePolicy extends GatewayCacheHint {
|
||||
replace(hint: GatewayCacheHint): void;
|
||||
restrict(hint: GatewayCacheHint): void;
|
||||
policyIfCacheable(): Required<GatewayCacheHint> | null;
|
||||
}
|
||||
export interface GatewayCacheHint {
|
||||
maxAge?: number;
|
||||
scope?: any;
|
||||
}
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/@apollo/server-gateway-interface/dist/cjs/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@apollo/server-gateway-interface/dist/cjs/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,aAAa,EACb,uBAAuB,EACxB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAC/B,oBAAoB,CAClB,QAAQ,EAAE,iCAAiC,GAC1C,mBAAmB,CAAC;IACvB,IAAI,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,mBAAmB,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC3E,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACvB;AAED,MAAM,MAAM,iCAAiC,GAAG,CAAC,aAAa,EAAE;IAC9D,SAAS,EAAE,aAAa,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,KAAK,IAAI,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,MAAM,IAAI,CAAC;AAE7C,MAAM,WAAW,mBAAmB;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IACh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CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D,OAAO,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACvC,iBAAiB,IAAI,QAAQ,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;CACxD;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAOhB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb"}
|
||||
3
node_modules/@apollo/server-gateway-interface/dist/cjs/index.js
generated
vendored
Normal file
3
node_modules/@apollo/server-gateway-interface/dist/cjs/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/@apollo/server-gateway-interface/dist/cjs/index.js.map
generated
vendored
Normal file
1
node_modules/@apollo/server-gateway-interface/dist/cjs/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}
|
||||
1
node_modules/@apollo/server-gateway-interface/dist/cjs/package.json
generated
vendored
Normal file
1
node_modules/@apollo/server-gateway-interface/dist/cjs/package.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"type":"commonjs"}
|
||||
Reference in New Issue
Block a user