soap-graphql
Version:
Create a GraphQL schema from a WSDL-defined SOAP endpoint.
22 lines (21 loc) • 671 B
TypeScript
import { Client, IOptions, WSDL } from 'soap';
/**
* Type for the soap-client from node-soap.
*/
export declare type NodeSoapClient = any | Client;
export declare type NodeSoapWsdl = any | WSDL;
/**
* Creation options for a node-soap client.
*/
export declare type NodeSoapOptions = {
options?: IOptions;
/**
* For convenience:
* If set, the security of the created node-soap client will be set to basic-auth with the given options.
*/
basicAuth?: {
username: string;
password: string;
};
};
export declare function createSoapClient(url: string, options?: NodeSoapOptions): Promise<NodeSoapClient>;