a2n.Vista.Client.TypeScript
0.0.1
See the version list below for details.
dotnet tool install --global a2n.Vista.Client.TypeScript --version 0.0.1
dotnet new tool-manifest
dotnet tool install --local a2n.Vista.Client.TypeScript --version 0.0.1
#tool dotnet:?package=a2n.Vista.Client.TypeScript&version=0.0.1
nuke :add-package a2n.Vista.Client.TypeScript --version 0.0.1
<p align="center"> <img src="https://raw.githubusercontent.com/anwarminarso/a2n.Vista/main/assets/a2n-vista-wordmark.png" alt="a2n.Vista" width="420" /> </p>
a2n.Vista.Client.TypeScript
A standalone .NET CLI tool that generates a framework-agnostic, strongly-typed TypeScript client from a a2n.Vista OpenAPI document.
Reads an OpenAPI 3.x document (from a file or an HTTPS URL) and emits:
- Per-view
TRow/TCrudDTO types, the fixed Vista request/response envelopes, the presence-discriminatedFilterNodeunion, and the RFC 7807ProblemDetailstype. - A per-view typed client over an injectable HTTP transport and auth provider.
Secure-by-default — read facets by default, write facets gated behind an explicit opt-in; never embeds a credential; defaults transport to HTTPS. Deterministic, atomic, UTF-8 (no BOM) output. References no Vista package — a pure downstream consumer.
Install
Ships as a .NET tool:
dotnet tool install --global a2n.Vista.Client.TypeScript
Then generate from a document emitted by a2n.Vista.OpenApi:
vista-ts --source ./openapi.json --out ./src/api
Add --emit-write-facets to include create/update/delete (off by default), and --base-url <url> to bake in a default base URL.
Documentation
See the project README.
License
LGPL-3.0-or-later. See LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.4 | 135 | 8/11/2026 |
| 0.0.3 | 111 | 8/11/2026 |
| 0.0.2 | 126 | 8/9/2026 |
| 0.0.1 | 122 | 7/31/2026 |
| 0.0.1-beta.2 | 73 | 7/15/2026 |
| 0.0.1-beta.1 | 73 | 7/15/2026 |