forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery.soap.d.ts
83 lines (80 loc) · 2.56 KB
/
jquery.soap.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Type definitions for jQuery.SOAP 1.6.7
// Project: https://github.com/doedje/jquery.soap
// Definitions by: Roland Greim <https://github.com/tigerxy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/
/// <reference path="../jquery/jquery.d.ts"/>
declare namespace JQuerySOAP {
interface SOAPEnvelope {
attributes: Object
bodies: Array<SOAPObject>
headers: Array<SOAPObject>
prefix: string
soapConfig: any
typeOf: string
addAttribute(name: String, value: string): void
addAttribute(name: String, value: number): void
addBody(soapObject: SOAPObject): void
addHeader(soapObject: SOAPObject): void
addNamespace(name: String, uri: string): void
toString(): string
send(options: Options): void
}
interface SOAPResponse {
toJSON(): any
toString(): String
toXML(): XMLDocument
}
interface SOAPObject {
attributes: Object
children: Array<SOAPObject>
name: string
ns: Object
_parent: SOAPObject
value: any
typeOf: string
addNamespace(name: String, url: string): void
addParameter(name: String, value: string): void
addParameter(name: String, value: number): void
appendChild(soapObject: SOAPObject): SOAPObject
attr(name: string, value: string): Object
attr(name: string, value: number): Object
end(): SOAPObject
find(name: string): SOAPObject
hasChildren(): boolean
newChild(name: string): SOAPObject
parent(): SOAPObject
toString(): string
val(value: string): SOAPObject
val(value: number): SOAPObject
}
interface Options {
appendMethodToURL?: boolean;
async?: boolean;
beforeSend?: (SOAPEnvelope: SOAPEnvelope) => void;
context?: any;
data?: Object;
envAttributes?: any;
elementName?: string;
enableLogging?: boolean;
error?: (SOAPResponse: SOAPResponse) => void;
HTTPHeaders?: Object;
method?: string;
namespaceQualifier?: string;
namespaceURL?: string;
noPrefix?: boolean;
request?: (SOAPEnvelope: SOAPEnvelope) => void;
soap12?: boolean;
SOAPAction?: string;
SOAPHeader?: Object;
statusCode?: Object;
success?: (SOAPResponse: SOAPResponse) => void;
url?: string;
wss?: Object;
}
interface SOAP {
(options?: Options): JQueryXHR;
}
}
interface JQueryStatic {
soap: JQuerySOAP.SOAP;
}