@hey-api/openapi-ts 0.76.0 → 0.78.0
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 +25 -13
- package/dist/chunk-RASXZ2HF.js +39 -0
- package/dist/chunk-RASXZ2HF.js.map +1 -0
- package/dist/clients/axios/client.ts +4 -0
- package/dist/clients/core/types.ts +6 -0
- package/dist/clients/fetch/client.ts +4 -0
- package/dist/clients/next/client.ts +4 -0
- package/dist/clients/nuxt/client.ts +19 -8
- package/dist/index.cjs +65 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -6
- package/dist/index.d.ts +10 -6
- package/dist/index.js +171 -171
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +11 -11
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +10 -3
- package/dist/internal.d.ts +10 -3
- package/dist/internal.js +1 -1
- package/dist/{types.d-CMe37_rr.d.cts → types.d-BsTxgeRq.d.cts} +5382 -4086
- package/dist/{types.d-CMe37_rr.d.ts → types.d-BsTxgeRq.d.ts} +5382 -4086
- package/package.json +1 -1
- package/dist/chunk-W3E6ZK5Y.js +0 -39
- package/dist/chunk-W3E6ZK5Y.js.map +0 -1
package/README.md
CHANGED
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
- clients for your runtime (Fetch API, Axios, Next.js, Nuxt, etc.)
|
|
37
37
|
- plugin ecosystem to reduce third-party boilerplate
|
|
38
38
|
- custom plugins and custom clients
|
|
39
|
-
- [integration](https://heyapi.dev/openapi-ts/integrations) with Hey API
|
|
39
|
+
- [integration](https://heyapi.dev/openapi-ts/integrations) with Hey API Platform
|
|
40
40
|
|
|
41
41
|
## Dashboard
|
|
42
42
|
|
|
43
|
-
Hey API is an ecosystem of products helping you build better APIs. Superpower your codegen and APIs with
|
|
43
|
+
Hey API is an ecosystem of products helping you build better APIs. Superpower your codegen and APIs with Hey API Platform.
|
|
44
44
|
|
|
45
|
-
[Sign In](https://app.heyapi.dev) to Hey API
|
|
45
|
+
[Sign In](https://app.heyapi.dev) to Hey API Platform.
|
|
46
46
|
|
|
47
47
|
## Sponsors
|
|
48
48
|
|
|
@@ -109,6 +109,14 @@ Love Hey API? Become our [sponsor](https://github.com/sponsors/hey-api).
|
|
|
109
109
|
</picture>
|
|
110
110
|
</a>
|
|
111
111
|
</td>
|
|
112
|
+
<td align="center">
|
|
113
|
+
<a href="https://kutt.it/KkqSaw" target="_blank">
|
|
114
|
+
<picture height="34px">
|
|
115
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/images/cella-logo-wordmark-480w.webp">
|
|
116
|
+
<img alt="Cella logo" height="34px" src="https://heyapi.dev/images/cella-logo-wordmark-480w.jpeg">
|
|
117
|
+
</picture>
|
|
118
|
+
</a>
|
|
119
|
+
</td>
|
|
112
120
|
</tr>
|
|
113
121
|
</tbody>
|
|
114
122
|
</table>
|
|
@@ -163,7 +171,7 @@ Most people run `@hey-api/openapi-ts` via CLI. To do that, add a script to your
|
|
|
163
171
|
}
|
|
164
172
|
```
|
|
165
173
|
|
|
166
|
-
The above script can be executed by running `npm run openapi-ts` or equivalent command in other package managers. Next, we
|
|
174
|
+
The above script can be executed by running `npm run openapi-ts` or equivalent command in other package managers. Next, we will create a [configuration](https://heyapi.dev/openapi-ts/configuration) file and move our options from Quick Start to it.
|
|
167
175
|
|
|
168
176
|
### Node.js
|
|
169
177
|
|
|
@@ -217,19 +225,27 @@ Alternatively, you can use `openapi-ts.config.js` and configure the export state
|
|
|
217
225
|
|
|
218
226
|
### Input
|
|
219
227
|
|
|
220
|
-
|
|
228
|
+
You must set the input so we can load your OpenAPI specification. It can be a path or URL, object containing a path or URL, or an object representing an OpenAPI specification. Hey API supports all valid OpenAPI versions and file formats.
|
|
221
229
|
|
|
222
230
|
> If you use an HTTPS URL with a self-signed certificate in development, you will need to set [`NODE_TLS_REJECT_UNAUTHORIZED=0`](https://github.com/hey-api/openapi-ts/issues/276#issuecomment-2043143501) in your environment.
|
|
223
231
|
|
|
224
232
|
### Output
|
|
225
233
|
|
|
226
|
-
|
|
234
|
+
You must set the output so we know where to generate your files. It can be a path to the destination folder or an object containing the destination folder path and optional settings.
|
|
227
235
|
|
|
228
236
|
> You should treat the output folder as a dependency. Do not directly modify its contents as your changes might be erased when you run `@hey-api/openapi-ts` again.
|
|
229
237
|
|
|
238
|
+
## Parser
|
|
239
|
+
|
|
240
|
+
We parse your input before making it available to plugins. While configuring the parser is optional, it's the perfect place to modify or validate your input if needed.
|
|
241
|
+
|
|
242
|
+
## Plugins
|
|
243
|
+
|
|
244
|
+
Plugins are responsible for generating artifacts from your input. By default, Hey API will generate TypeScript interfaces and SDK from your OpenAPI specification. You can add, remove, or customize any of the plugins. In fact, we highly encourage you to do so!
|
|
245
|
+
|
|
230
246
|
### Client
|
|
231
247
|
|
|
232
|
-
Clients are responsible for sending the actual HTTP requests. Using clients is not required, but you must add a client to `plugins` if you're generating SDKs (
|
|
248
|
+
Clients are responsible for sending the actual HTTP requests. Using clients is not required, but you must add a client to `plugins` if you're generating SDKs (we default to Fetch).
|
|
233
249
|
|
|
234
250
|
### Native Clients
|
|
235
251
|
|
|
@@ -240,10 +256,6 @@ Clients are responsible for sending the actual HTTP requests. Using clients is n
|
|
|
240
256
|
|
|
241
257
|
Don't see your client? [Build your own](https://heyapi.dev/openapi-ts/clients/custom) or let us know your interest by [opening an issue](https://github.com/hey-api/openapi-ts/issues).
|
|
242
258
|
|
|
243
|
-
## Plugins
|
|
244
|
-
|
|
245
|
-
Plugins are responsible for generating artifacts from your input. By default, Hey API will generate TypeScript interfaces and SDK from your OpenAPI specification. You can add, remove, or customize any of the plugins. In fact, we highly encourage you to do so!
|
|
246
|
-
|
|
247
259
|
### Native Plugins
|
|
248
260
|
|
|
249
261
|
These plugins help reduce boilerplate associated with third-party dependencies. Hey API natively supports the most popular packages. Please open an issue on [GitHub](https://github.com/hey-api/openapi-ts/issues) if you'd like us to support your favorite package.
|
|
@@ -285,9 +297,9 @@ The following plugins are planned but not in development yet. You can help us pr
|
|
|
285
297
|
|
|
286
298
|
Don't see your plugin? [Build your own](https://heyapi.dev/openapi-ts/plugins/custom) or let us know your interest by [opening an issue](https://github.com/hey-api/openapi-ts/issues).
|
|
287
299
|
|
|
288
|
-
##
|
|
300
|
+
## Migrating
|
|
289
301
|
|
|
290
|
-
|
|
302
|
+
You can learn more on the [Migrating](https://heyapi.dev/openapi-ts/migrating) page.
|
|
291
303
|
|
|
292
304
|
## License
|
|
293
305
|
|