@karibulab/wsdl2tsx 0.3.3

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.
@@ -0,0 +1,32 @@
1
+ import { soap, ns } from "@karibulab/wsdl2tsx-runtime";
2
+
3
+ {{#each namespaces}}
4
+ const {{@key}} = ns("{{@key}}", [{{tagNamesArray this}}] as const);
5
+ {{/each}}
6
+
7
+ {{#each simpleTypes}}
8
+ export type {{pascalCase name}} = {{tsType}}
9
+ {{/each}}
10
+
11
+ export interface {{pascalCase requestType}}Props {
12
+ {{#each propsInterface.properties}}
13
+ {{camelCase name}}: {{type}}{{#unless @last}},{{/unless}}
14
+ {{/each}}
15
+ }
16
+
17
+ {{#each interfaces}}
18
+ export interface {{pascalCase name}} {
19
+ {{#each properties}}
20
+ {{camelCase name}}: {{type}}{{#if modifier}}{{modifier}}{{/if}}{{#unless @last}},{{/unless}}
21
+ {{/each}}
22
+ }
23
+ {{/each}}
24
+ export function {{pascalCase requestType}}(props: {{pascalCase requestType}}Props) {
25
+ return <soap.Envelope xmlns:soap="{{soapNamespaceURI}}"
26
+ {{xmlnsAttributes xmlnsAttributes}}>
27
+ <soap.Header />
28
+ <soap.Body>
29
+ {{{xmlBody}}}
30
+ </soap.Body>
31
+ </soap.Envelope>
32
+ }
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@karibulab/wsdl2tsx",
3
+ "version": "0.3.3",
4
+ "description": "Generador de código TSX desde archivos WSDL",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "bin": {
8
+ "wsdl2tsx": "./dist/cli.js"
9
+ },
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "scripts": {
14
+ "build": "node build.mjs",
15
+ "dev": "node build.mjs --watch"
16
+ },
17
+ "dependencies": {
18
+ "@karibulab/wsdl2tsx-runtime": "0.3.3",
19
+ "axios": "^1.7.9",
20
+ "fast-xml-parser": "5.3.3",
21
+ "handlebars": "4.7.8"
22
+ },
23
+ "devDependencies": {
24
+ "@types/node": "25.0.9",
25
+ "esbuild": "^0.27.2",
26
+ "typescript": "5.9.3"
27
+ },
28
+ "keywords": [
29
+ "wsdl",
30
+ "soap",
31
+ "typescript",
32
+ "code-generator"
33
+ ],
34
+ "license": "ISC",
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "git+https://github.com/KaribuLab/wsdl2tsx.git"
41
+ },
42
+ "bugs": {
43
+ "url": "https://github.com/KaribuLab/wsdl2tsx/issues"
44
+ },
45
+ "homepage": "https://github.com/KaribuLab/wsdl2tsx#readme"
46
+ }