@techspokes/typescript-wsdl-client 0.1.8 → 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 +17 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -81,32 +81,29 @@ wsdl-tsc --wsdl <path-or-url> --out <dir> [options]
|
|
|
81
81
|
* `--wsdl` — WSDL path or URL
|
|
82
82
|
* `--out` — output directory (created if missing)
|
|
83
83
|
|
|
84
|
-
**
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
84
|
+
**Options**
|
|
85
|
+
|
|
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 |
|
|
94
95
|
|
|
95
96
|
**Primitive mapping (safe defaults)**
|
|
96
97
|
|
|
97
|
-
|
|
98
|
-
* `--bigint-as string|number` (default `string`) — `xs:integer` family
|
|
99
|
-
* `--decimal-as string|number` (default `string`) — `xs:decimal` (money/precision)
|
|
100
|
-
* `--date-as string|Date` (default `string`) — `xs:date`, `xs:dateTime`, `xs:time`, `g*`, durations
|
|
101
|
-
|
|
102
|
-
**Other**
|
|
98
|
+
Defaults are **string-first** to avoid precision & timezone surprises:
|
|
103
99
|
|
|
104
|
-
*
|
|
105
|
-
|
|
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)
|
|
106
103
|
|
|
107
|
-
|
|
104
|
+
Override these defaults using the CLI flags above as needed for your use case.
|
|
108
105
|
|
|
109
|
-
|
|
106
|
+
# What gets generated
|
|
110
107
|
|
|
111
108
|
```
|
|
112
109
|
<out>/
|
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",
|