-
Notifications
You must be signed in to change notification settings - Fork 48
/
wsdl-to-ts.d.ts
45 lines (45 loc) · 1.08 KB
/
wsdl-to-ts.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import * as soap from "soap";
export declare const nsEnums: {
[k: string]: boolean;
};
interface ITwoDown<T> {
[k: string]: {
[k: string]: T;
};
}
export interface IInterfaceOptions {
quoteProperties?: boolean;
}
export interface ITypedWsdl {
client: soap.Client | null;
files: ITwoDown<string>;
methods: ITwoDown<{
[k: string]: string;
}>;
types: ITwoDown<{
[k: string]: string;
}>;
namespaces: ITwoDown<{
[k: string]: {
[k: string]: string;
};
}>;
}
export declare class TypeCollector {
readonly ns: string;
readonly registered: {
[k: string]: string;
};
readonly collected: {
[k: string]: string;
};
constructor(ns: string);
registerCollected(): this;
}
export declare function wsdl2ts(wsdlUri: string, opts?: IInterfaceOptions): Promise<ITypedWsdl>;
export declare function mergeTypedWsdl(a: ITypedWsdl, ...bs: ITypedWsdl[]): ITypedWsdl;
export declare function outputTypedWsdl(a: ITypedWsdl): Array<{
file: string;
data: string[];
}>;
export {};