@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.
Files changed (2) hide show
  1. package/README.md +40 -21
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,8 +1,15 @@
1
1
  # TypeScript WSDL Client
2
2
 
3
- [![CI](https://github.com/techspokes/typescript-wsdl-client/actions/workflows/ci.yml/badge.svg)](https://github.com/techspokes/typescript-wsdl-client/actions/workflows/ci.yml)
4
- [![npm version](https://img.shields.io/npm/v/@techspokes/typescript-wsdl-client.svg)](https://www.npmjs.com/package/@techspokes/typescript-wsdl-client)
5
3
  [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
4
+ [![CI](https://github.com/techspokes/typescript-wsdl-client/actions/workflows/ci.yml/badge.svg)](https://github.com/techspokes/typescript-wsdl-client/actions/workflows/ci.yml)
5
+ [![npm version](https://img.shields.io/npm/v/@techspokes%2Ftypescript-wsdl-client.svg)](https://www.npmjs.com/package/@techspokes/typescript-wsdl-client)
6
+ [![npm downloads](https://img.shields.io/npm/dm/@techspokes%2Ftypescript-wsdl-client.svg)](https://www.npmjs.com/package/@techspokes/typescript-wsdl-client)
7
+ [![GitHub Stars](https://img.shields.io/github/stars/techspokes/typescript-wsdl-client?style=social)](https://github.com/techspokes/typescript-wsdl-client/stargazers)
8
+ [![GitHub Forks](https://img.shields.io/github/forks/techspokes/typescript-wsdl-client?style=social)](https://github.com/techspokes/typescript-wsdl-client/network/members)
9
+ [![GitHub Watchers](https://img.shields.io/github/watchers/techspokes/typescript-wsdl-client?style=social)](https://github.com/techspokes/typescript-wsdl-client/watchers)
10
+
11
+ [![TechSpokes Org](https://img.shields.io/badge/org-techspokes-181717?logo=github)](https://github.com/techspokes)
12
+ [![Sponsor TechSpokes](https://img.shields.io/badge/sponsor-GitHub-blue?logo=github-sponsors)](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
- **Useful options**
84
+ **Options**
78
85
 
79
- * `--imports js|ts|bare` (default: `js`)
80
- How intra-generated imports are written:
81
-
82
- * `js` `./file.js` (best for ESM/NodeNext apps)
83
- * `ts` `./file.ts` (use with `allowImportingTsExtensions`)
84
- * `bare` `./file` (nice for CommonJS builds)
85
- * `--ops-ts` (default: `true`)
86
- Emit `operations.ts` instead of JSON.
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
- * `--int64-as string|number|bigint` (default `string`) `xs:long`, `xs:unsignedLong`
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
- **Other**
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
- * `--attributes-key <string>` (default: `$attributes`)
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.7",
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",