@graphql-hive/cli
Version:
A CLI util to manage and control your GraphQL Hive
35 lines • 1.83 kB
TypeScript
import { LegacyLogger } from '@graphql-hive/core/typings/client/types';
import type { TypedDocumentNode } from '@graphql-typed-document-node/core';
import { FragmentType } from '../gql';
export declare const RenderErrors_SchemaErrorConnectionFragment: TypedDocumentNode<import("../gql/graphql").RenderErrors_SchemaErrorConnectionFragmentFragment, unknown>;
export declare const renderErrors: (errors: FragmentType<typeof RenderErrors_SchemaErrorConnectionFragment>) => string;
export declare const RenderChanges_SchemaChanges: TypedDocumentNode<import("../gql/graphql").RenderChanges_SchemaChangesFragment, unknown>;
export declare const renderChanges: (maskedChanges: FragmentType<typeof RenderChanges_SchemaChanges>) => string;
export declare const renderWarnings: (warnings: {
total: number;
nodes: {
message: string;
source: string | null;
}[];
}) => string;
export declare function loadSchema(
/**
* Behaviour for loading the schema from a HTTP endpoint.
*/
httpLoadingIntent: 'first-federation-then-graphql-introspection' | 'only-graphql-introspection' | 'only-federation-introspection' | null, file: string, options: {
logger: LegacyLogger;
headers?: Record<string, string>;
method?: 'GET' | 'POST';
}): Promise<string>;
/**
* Load the SDL of a schema file, glob or URL, and report failures with the matching CLI error:
* a missing file, an empty file and invalid SDL each have their own error code.
*/
export declare function loadSchemaSdl(pointer: string, options: {
logger: LegacyLogger;
headers?: Record<string, string>;
httpLoadingIntent?: Parameters<typeof loadSchema>[0];
}): Promise<string>;
export declare function isUrlPointer(pointer: string): boolean;
export declare function minifySchema(schema: string): string;
//# sourceMappingURL=schema.d.ts.map