@omnigraph/soap 0.105.18 → 0.106.0-alpha-20250222105654-6a9788f8d26ce4a03f3c21a78f3e580203cc0640
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/SOAPLoader.js +8 -0
- package/esm/SOAPLoader.js +8 -0
- package/package.json +2 -2
- package/typings/SOAPLoader.d.cts +2 -0
- package/typings/SOAPLoader.d.ts +2 -0
- package/typings/index.d.cts +7 -0
- package/typings/index.d.ts +7 -0
- package/typings/types.d.cts +1 -0
- package/typings/types.d.ts +1 -0
- package/typings/utils.d.cts +1 -0
- package/typings/utils.d.ts +1 -0
package/cjs/SOAPLoader.js
CHANGED
|
@@ -50,6 +50,9 @@ const soapDirective = new graphql_1.GraphQLDirective({
|
|
|
50
50
|
soapAction: {
|
|
51
51
|
type: graphql_1.GraphQLString,
|
|
52
52
|
},
|
|
53
|
+
soapNamespace: {
|
|
54
|
+
type: graphql_1.GraphQLString,
|
|
55
|
+
},
|
|
53
56
|
},
|
|
54
57
|
});
|
|
55
58
|
const QUERY_PREFIXES = [
|
|
@@ -94,6 +97,7 @@ class SOAPLoader {
|
|
|
94
97
|
this.cwd = options.cwd;
|
|
95
98
|
this.soapHeaders = options.soapHeaders;
|
|
96
99
|
this.bodyAlias = options.bodyAlias;
|
|
100
|
+
this.soapNamespace = 'http://schemas.xmlsoap.org/soap/envelope/';
|
|
97
101
|
}
|
|
98
102
|
loadXMLSchemaNamespace() {
|
|
99
103
|
const namespace = 'http://www.w3.org/2001/XMLSchema';
|
|
@@ -271,6 +275,9 @@ class SOAPLoader {
|
|
|
271
275
|
}
|
|
272
276
|
async loadDefinition(definition) {
|
|
273
277
|
this.getNamespaceDefinitions(definition.attributes.targetNamespace).push(definition);
|
|
278
|
+
if (definition.attributes.soap12) {
|
|
279
|
+
this.soapNamespace = 'http://www.w3.org/2003/05/soap-envelope';
|
|
280
|
+
}
|
|
274
281
|
const definitionAliasMap = this.getAliasMapFromAttributes(definition.attributes);
|
|
275
282
|
const definitionNamespace = definition.attributes.targetNamespace;
|
|
276
283
|
const typePrefix = definition.attributes.name ||
|
|
@@ -361,6 +368,7 @@ class SOAPLoader {
|
|
|
361
368
|
bindingNamespace,
|
|
362
369
|
endpoint: this.endpoint,
|
|
363
370
|
subgraph: this.subgraphName,
|
|
371
|
+
soapNamespace: this.soapNamespace,
|
|
364
372
|
};
|
|
365
373
|
if (!soapAnnotations.endpoint && portObj.address) {
|
|
366
374
|
for (const address of portObj.address) {
|
package/esm/SOAPLoader.js
CHANGED
|
@@ -47,6 +47,9 @@ const soapDirective = new GraphQLDirective({
|
|
|
47
47
|
soapAction: {
|
|
48
48
|
type: GraphQLString,
|
|
49
49
|
},
|
|
50
|
+
soapNamespace: {
|
|
51
|
+
type: GraphQLString,
|
|
52
|
+
},
|
|
50
53
|
},
|
|
51
54
|
});
|
|
52
55
|
const QUERY_PREFIXES = [
|
|
@@ -91,6 +94,7 @@ export class SOAPLoader {
|
|
|
91
94
|
this.cwd = options.cwd;
|
|
92
95
|
this.soapHeaders = options.soapHeaders;
|
|
93
96
|
this.bodyAlias = options.bodyAlias;
|
|
97
|
+
this.soapNamespace = 'http://schemas.xmlsoap.org/soap/envelope/';
|
|
94
98
|
}
|
|
95
99
|
loadXMLSchemaNamespace() {
|
|
96
100
|
const namespace = 'http://www.w3.org/2001/XMLSchema';
|
|
@@ -268,6 +272,9 @@ export class SOAPLoader {
|
|
|
268
272
|
}
|
|
269
273
|
async loadDefinition(definition) {
|
|
270
274
|
this.getNamespaceDefinitions(definition.attributes.targetNamespace).push(definition);
|
|
275
|
+
if (definition.attributes.soap12) {
|
|
276
|
+
this.soapNamespace = 'http://www.w3.org/2003/05/soap-envelope';
|
|
277
|
+
}
|
|
271
278
|
const definitionAliasMap = this.getAliasMapFromAttributes(definition.attributes);
|
|
272
279
|
const definitionNamespace = definition.attributes.targetNamespace;
|
|
273
280
|
const typePrefix = definition.attributes.name ||
|
|
@@ -358,6 +365,7 @@ export class SOAPLoader {
|
|
|
358
365
|
bindingNamespace,
|
|
359
366
|
endpoint: this.endpoint,
|
|
360
367
|
subgraph: this.subgraphName,
|
|
368
|
+
soapNamespace: this.soapNamespace,
|
|
361
369
|
};
|
|
362
370
|
if (!soapAnnotations.endpoint && portObj.address) {
|
|
363
371
|
for (const address of portObj.address) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnigraph/soap",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.106.0-alpha-20250222105654-6a9788f8d26ce4a03f3c21a78f3e580203cc0640",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "*"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@graphql-mesh/cross-helpers": "^0.4.10",
|
|
10
10
|
"@graphql-mesh/string-interpolation": "^0.5.8",
|
|
11
11
|
"@graphql-mesh/transport-common": "^0.7.25",
|
|
12
|
-
"@graphql-mesh/transport-soap": "
|
|
12
|
+
"@graphql-mesh/transport-soap": "0.9.0-alpha-20250222105654-6a9788f8d26ce4a03f3c21a78f3e580203cc0640",
|
|
13
13
|
"@graphql-mesh/types": "^0.103.18",
|
|
14
14
|
"@graphql-mesh/utils": "^0.103.18",
|
|
15
15
|
"@graphql-tools/utils": "^10.8.0",
|
package/typings/SOAPLoader.d.cts
CHANGED
|
@@ -11,6 +11,7 @@ export interface SOAPLoaderOptions {
|
|
|
11
11
|
endpoint?: string;
|
|
12
12
|
cwd?: string;
|
|
13
13
|
bodyAlias?: string;
|
|
14
|
+
soapNamespace?: string;
|
|
14
15
|
}
|
|
15
16
|
export interface SOAPHeaders {
|
|
16
17
|
/**
|
|
@@ -57,6 +58,7 @@ export declare class SOAPLoader {
|
|
|
57
58
|
private cwd;
|
|
58
59
|
private soapHeaders;
|
|
59
60
|
private bodyAlias?;
|
|
61
|
+
private soapNamespace;
|
|
60
62
|
constructor(options: SOAPLoaderOptions);
|
|
61
63
|
loadXMLSchemaNamespace(): void;
|
|
62
64
|
private getNamespaceDefinitions;
|
package/typings/SOAPLoader.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export interface SOAPLoaderOptions {
|
|
|
11
11
|
endpoint?: string;
|
|
12
12
|
cwd?: string;
|
|
13
13
|
bodyAlias?: string;
|
|
14
|
+
soapNamespace?: string;
|
|
14
15
|
}
|
|
15
16
|
export interface SOAPHeaders {
|
|
16
17
|
/**
|
|
@@ -57,6 +58,7 @@ export declare class SOAPLoader {
|
|
|
57
58
|
private cwd;
|
|
58
59
|
private soapHeaders;
|
|
59
60
|
private bodyAlias?;
|
|
61
|
+
private soapNamespace;
|
|
60
62
|
constructor(options: SOAPLoaderOptions);
|
|
61
63
|
loadXMLSchemaNamespace(): void;
|
|
62
64
|
private getNamespaceDefinitions;
|
package/typings/index.d.cts
CHANGED
|
@@ -31,6 +31,13 @@ export interface SOAPSubgraphLoaderOptions {
|
|
|
31
31
|
* @default body
|
|
32
32
|
*/
|
|
33
33
|
bodyAlias?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The namespace of the SOAP envelope
|
|
36
|
+
* By default, SOAP handler detects the SOAP version and if SOAP version is 1.1,
|
|
37
|
+
* it uses `http://schemas.xmlsoap.org/soap/envelope/` namespace
|
|
38
|
+
* If SOAP version is 1.2, it uses `http://www.w3.org/2003/05/soap-envelope` namespace
|
|
39
|
+
*/
|
|
40
|
+
soapNamespace?: string;
|
|
34
41
|
}
|
|
35
42
|
export declare function loadSOAPSubgraph(subgraphName: string, options: SOAPSubgraphLoaderOptions): ({ cwd, fetch, logger }: {
|
|
36
43
|
cwd: string;
|
package/typings/index.d.ts
CHANGED
|
@@ -31,6 +31,13 @@ export interface SOAPSubgraphLoaderOptions {
|
|
|
31
31
|
* @default body
|
|
32
32
|
*/
|
|
33
33
|
bodyAlias?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The namespace of the SOAP envelope
|
|
36
|
+
* By default, SOAP handler detects the SOAP version and if SOAP version is 1.1,
|
|
37
|
+
* it uses `http://schemas.xmlsoap.org/soap/envelope/` namespace
|
|
38
|
+
* If SOAP version is 1.2, it uses `http://www.w3.org/2003/05/soap-envelope` namespace
|
|
39
|
+
*/
|
|
40
|
+
soapNamespace?: string;
|
|
34
41
|
}
|
|
35
42
|
export declare function loadSOAPSubgraph(subgraphName: string, options: SOAPSubgraphLoaderOptions): ({ cwd, fetch, logger }: {
|
|
36
43
|
cwd: string;
|
package/typings/types.d.cts
CHANGED
package/typings/types.d.ts
CHANGED
package/typings/utils.d.cts
CHANGED