@techspokes/typescript-wsdl-client 0.1.7 → 0.1.9
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/README.md +40 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
# TypeScript WSDL Client
|
|
2
2
|
|
|
3
|
-
[](https://github.com/techspokes/typescript-wsdl-client/actions/workflows/ci.yml)
|
|
4
|
-
[](https://www.npmjs.com/package/@techspokes/typescript-wsdl-client)
|
|
5
3
|
[](LICENSE)
|
|
4
|
+
[](https://github.com/techspokes/typescript-wsdl-client/actions/workflows/ci.yml)
|
|
5
|
+
[](https://www.npmjs.com/package/@techspokes/typescript-wsdl-client)
|
|
6
|
+
[](https://www.npmjs.com/package/@techspokes/typescript-wsdl-client)
|
|
7
|
+
[](https://github.com/techspokes/typescript-wsdl-client/stargazers)
|
|
8
|
+
[](https://github.com/techspokes/typescript-wsdl-client/network/members)
|
|
9
|
+
[](https://github.com/techspokes/typescript-wsdl-client/watchers)
|
|
10
|
+
|
|
11
|
+
[](https://github.com/techspokes)
|
|
12
|
+
[](https://github.com/sponsors/TechSpokes)
|
|
6
13
|
|
|
7
14
|
**TypeScript WSDL → SOAP client generator.**
|
|
8
15
|
Reads WSDL/XSD (with imports) and emits a small, typed client you can compile into your app.
|
|
@@ -74,32 +81,29 @@ wsdl-tsc --wsdl <path-or-url> --out <dir> [options]
|
|
|
74
81
|
* `--wsdl` — WSDL path or URL
|
|
75
82
|
* `--out` — output directory (created if missing)
|
|
76
83
|
|
|
77
|
-
**
|
|
84
|
+
**Options**
|
|
78
85
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
| Flag | Type | Choices | Default | Description |
|
|
87
|
+
|---------------------|-----------|--------------------------------|--------------|------------------------------------------------------------------|
|
|
88
|
+
| `--imports` | string | js, ts, bare | js | Intra-generated import specifiers: '.js', '.ts', or bare |
|
|
89
|
+
| `--ops-ts` | boolean | true, false | true | Emit `operations.ts` instead of JSON |
|
|
90
|
+
| `--attributes-key` | string | any | $attributes | Key used by runtime marshaller for XML attributes |
|
|
91
|
+
| `--int64-as` | string | string, number, bigint | string | How to map xs:long/xs:unsignedLong |
|
|
92
|
+
| `--bigint-as` | string | string, number | string | How to map xs:integer family (positive/nonNegative/etc.) |
|
|
93
|
+
| `--decimal-as` | string | string, number | string | How to map xs:decimal (money/precision) |
|
|
94
|
+
| `--date-as` | string | string, Date | string | How to map date/time/duration types |
|
|
87
95
|
|
|
88
96
|
**Primitive mapping (safe defaults)**
|
|
89
97
|
|
|
90
|
-
|
|
91
|
-
* `--bigint-as string|number` (default `string`) — `xs:integer` family
|
|
92
|
-
* `--decimal-as string|number` (default `string`) — `xs:decimal` (money/precision)
|
|
93
|
-
* `--date-as string|Date` (default `string`) — `xs:date`, `xs:dateTime`, `xs:time`, `g*`, durations
|
|
98
|
+
Defaults are **string-first** to avoid precision & timezone surprises:
|
|
94
99
|
|
|
95
|
-
|
|
100
|
+
* `xs:decimal` → `string` (money/precision safe)
|
|
101
|
+
* 64-bit integers → `string` (you can opt into `bigint` or `number`)
|
|
102
|
+
* dates/times → `string` (transport-friendly, no implicit tz conversion)
|
|
96
103
|
|
|
97
|
-
|
|
98
|
-
The key used by the runtime marshaller when serializing attributes.
|
|
104
|
+
Override these defaults using the CLI flags above as needed for your use case.
|
|
99
105
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
## What gets generated
|
|
106
|
+
# What gets generated
|
|
103
107
|
|
|
104
108
|
```
|
|
105
109
|
<out>/
|
|
@@ -243,3 +247,18 @@ Node 20+ supported.
|
|
|
243
247
|
|
|
244
248
|
MIT © TechSpokes.
|
|
245
249
|
*The tool is MIT-licensed. Generated artifacts are owned by you; the tool imposes no license on generated files.*
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## 💖 Sponsors
|
|
254
|
+
|
|
255
|
+
**Silver Sponsors**
|
|
256
|
+
- Your Name Here!
|
|
257
|
+
|
|
258
|
+
**Gold Sponsors**
|
|
259
|
+
- [Your Name or Company](https://your-link-here.com)
|
|
260
|
+
|
|
261
|
+
**Platinum Sponsors**
|
|
262
|
+
- [Your Name or Company](https://your-link-here.com) – 30-min one-to-one video meeting on AI, business automations, vacation rentals industry, development, tools, or a subject of your choice.
|
|
263
|
+
|
|
264
|
+
Want to see your name or company here? [Become a sponsor!](https://github.com/sponsors/TechSpokes)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@techspokes/typescript-wsdl-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "TypeScript WSDL → SOAP client generator with full xs:attribute support, complex types, sequences, inheritance, and namespace-collision merging.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wsdl",
|