@hey-api/openapi-ts 0.77.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 +18 -14
- package/dist/chunk-RASXZ2HF.js +39 -0
- package/dist/chunk-RASXZ2HF.js.map +1 -0
- package/dist/index.cjs +65 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- 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-CBVwu8Hi.d.cts → types.d-BsTxgeRq.d.cts} +682 -302
- package/dist/{types.d-CBVwu8Hi.d.ts → types.d-BsTxgeRq.d.ts} +682 -302
- package/package.json +1 -1
- package/dist/chunk-EH476QS3.js +0 -39
- package/dist/chunk-EH476QS3.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
|
|
|
@@ -112,7 +112,7 @@ Love Hey API? Become our [sponsor](https://github.com/sponsors/hey-api).
|
|
|
112
112
|
<td align="center">
|
|
113
113
|
<a href="https://kutt.it/KkqSaw" target="_blank">
|
|
114
114
|
<picture height="34px">
|
|
115
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/images/cella-logo-wordmark-
|
|
115
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/images/cella-logo-wordmark-480w.webp">
|
|
116
116
|
<img alt="Cella logo" height="34px" src="https://heyapi.dev/images/cella-logo-wordmark-480w.jpeg">
|
|
117
117
|
</picture>
|
|
118
118
|
</a>
|
|
@@ -171,7 +171,7 @@ Most people run `@hey-api/openapi-ts` via CLI. To do that, add a script to your
|
|
|
171
171
|
}
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
-
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.
|
|
175
175
|
|
|
176
176
|
### Node.js
|
|
177
177
|
|
|
@@ -225,19 +225,27 @@ Alternatively, you can use `openapi-ts.config.js` and configure the export state
|
|
|
225
225
|
|
|
226
226
|
### Input
|
|
227
227
|
|
|
228
|
-
|
|
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.
|
|
229
229
|
|
|
230
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.
|
|
231
231
|
|
|
232
232
|
### Output
|
|
233
233
|
|
|
234
|
-
|
|
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.
|
|
235
235
|
|
|
236
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.
|
|
237
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
|
+
|
|
238
246
|
### Client
|
|
239
247
|
|
|
240
|
-
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).
|
|
241
249
|
|
|
242
250
|
### Native Clients
|
|
243
251
|
|
|
@@ -248,10 +256,6 @@ Clients are responsible for sending the actual HTTP requests. Using clients is n
|
|
|
248
256
|
|
|
249
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).
|
|
250
258
|
|
|
251
|
-
## Plugins
|
|
252
|
-
|
|
253
|
-
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!
|
|
254
|
-
|
|
255
259
|
### Native Plugins
|
|
256
260
|
|
|
257
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.
|
|
@@ -293,9 +297,9 @@ The following plugins are planned but not in development yet. You can help us pr
|
|
|
293
297
|
|
|
294
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).
|
|
295
299
|
|
|
296
|
-
##
|
|
300
|
+
## Migrating
|
|
297
301
|
|
|
298
|
-
|
|
302
|
+
You can learn more on the [Migrating](https://heyapi.dev/openapi-ts/migrating) page.
|
|
299
303
|
|
|
300
304
|
## License
|
|
301
305
|
|