UNPKG

@omnigraph/soap

Version:
43 lines (41 loc) 1.42 kB
import type { Logger, MeshFetch } from '@graphql-mesh/types'; import { type SOAPHeaders } from './SOAPLoader.cjs'; export * from './SOAPLoader.cjs'; export type * from './types.cjs'; export * from '@graphql-mesh/transport-soap'; export interface SOAPSubgraphLoaderOptions { /** * A url to your WSDL or generated SDL with annotations */ source?: string; /** * SOAP endpoint to use for the API calls */ endpoint?: string; /** * JSON object representing the Headers to add to the runtime of the API calls only for schema introspection * You can also provide `.js` or `.ts` file path that exports schemaHeaders as an object */ schemaHeaders?: Record<string, string>; /** * JSON object representing the Headers to add to the runtime of the API calls only for operation calls */ operationHeaders?: Record<string, string>; /** * SOAP Headers configuration */ soapHeaders?: SOAPHeaders; /** * The name of the alias to be used in the envelope for body components * @default body */ bodyAlias?: string; } export declare function loadSOAPSubgraph(subgraphName: string, options: SOAPSubgraphLoaderOptions): ({ cwd, fetch, logger }: { cwd: string; fetch: MeshFetch; logger: Logger; }) => { name: string; schema$: import("@graphql-tools/utils").MaybePromise<import("graphql").GraphQLSchema>; };