@hey-api/openapi-ts 0.72.2 → 0.74.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 +5 -12
- package/dist/chunk-WELTPW5K.js +39 -0
- package/dist/chunk-WELTPW5K.js.map +1 -0
- package/dist/clients/axios/client.ts +111 -0
- package/dist/clients/axios/index.ts +21 -0
- package/dist/clients/axios/types.ts +178 -0
- package/dist/clients/axios/utils.ts +286 -0
- package/dist/clients/core/auth.ts +40 -0
- package/dist/clients/core/bodySerializer.ts +84 -0
- package/dist/clients/core/params.ts +141 -0
- package/dist/clients/core/pathSerializer.ts +179 -0
- package/dist/clients/core/types.ts +98 -0
- package/dist/clients/fetch/client.ts +181 -0
- package/dist/clients/fetch/index.ts +22 -0
- package/dist/clients/fetch/types.ts +215 -0
- package/dist/clients/fetch/utils.ts +415 -0
- package/dist/clients/next/client.ts +163 -0
- package/dist/clients/next/index.ts +21 -0
- package/dist/clients/next/types.ts +166 -0
- package/dist/clients/next/utils.ts +404 -0
- package/dist/clients/nuxt/client.ts +145 -0
- package/dist/clients/nuxt/index.ts +22 -0
- package/dist/clients/nuxt/types.ts +192 -0
- package/dist/clients/nuxt/utils.ts +358 -0
- package/dist/index.cjs +169 -169
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -6
- package/dist/index.d.ts +21 -6
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +10 -10
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +1 -1
- package/dist/{types.d-DtkupL5A.d.cts → types.d-jQzOw4mx.d.cts} +293 -103
- package/dist/{types.d-DtkupL5A.d.ts → types.d-jQzOw4mx.d.ts} +293 -103
- package/package.json +4 -3
- package/dist/chunk-LC3ZVK3Y.js +0 -39
- package/dist/chunk-LC3ZVK3Y.js.map +0 -1
package/README.md
CHANGED
|
@@ -120,38 +120,35 @@ The fastest way to use `@hey-api/openapi-ts` is via npx
|
|
|
120
120
|
```sh
|
|
121
121
|
npx @hey-api/openapi-ts \
|
|
122
122
|
-i https://get.heyapi.dev/hey-api/backend \
|
|
123
|
-
-o src/client
|
|
124
|
-
-c @hey-api/client-fetch
|
|
123
|
+
-o src/client
|
|
125
124
|
```
|
|
126
125
|
|
|
127
126
|
Congratulations on creating your first client! 🎉 You can learn more about the generated files on the [Output](https://heyapi.dev/openapi-ts/output) page.
|
|
128
127
|
|
|
129
|
-
Before you can make API requests with the client you've just created, you need to install `@hey-api/client-fetch` and configure it.
|
|
130
|
-
|
|
131
128
|
## Installation
|
|
132
129
|
|
|
133
130
|
#### npm
|
|
134
131
|
|
|
135
132
|
```sh
|
|
136
|
-
npm install @hey-api/
|
|
133
|
+
npm install @hey-api/openapi-ts -D
|
|
137
134
|
```
|
|
138
135
|
|
|
139
136
|
#### pnpm
|
|
140
137
|
|
|
141
138
|
```sh
|
|
142
|
-
pnpm add @hey-api/
|
|
139
|
+
pnpm add @hey-api/openapi-ts -D
|
|
143
140
|
```
|
|
144
141
|
|
|
145
142
|
#### yarn
|
|
146
143
|
|
|
147
144
|
```sh
|
|
148
|
-
yarn add @hey-api/
|
|
145
|
+
yarn add @hey-api/openapi-ts -D
|
|
149
146
|
```
|
|
150
147
|
|
|
151
148
|
#### bun
|
|
152
149
|
|
|
153
150
|
```sh
|
|
154
|
-
bun add @hey-api/
|
|
151
|
+
bun add @hey-api/openapi-ts -D
|
|
155
152
|
```
|
|
156
153
|
|
|
157
154
|
We recommend pinning an exact version so you can safely upgrade when you're ready. This package is in [initial development](https://semver.org/spec/v0.1.0.html#spec-item-5) and its API might change before v1.
|
|
@@ -178,7 +175,6 @@ import { createClient } from '@hey-api/openapi-ts';
|
|
|
178
175
|
createClient({
|
|
179
176
|
input: 'https://get.heyapi.dev/hey-api/backend',
|
|
180
177
|
output: 'src/client',
|
|
181
|
-
plugins: ['@hey-api/client-fetch'],
|
|
182
178
|
});
|
|
183
179
|
```
|
|
184
180
|
|
|
@@ -194,7 +190,6 @@ import { defineConfig } from '@hey-api/openapi-ts';
|
|
|
194
190
|
export default defineConfig({
|
|
195
191
|
input: 'https://get.heyapi.dev/hey-api/backend',
|
|
196
192
|
output: 'src/client',
|
|
197
|
-
plugins: ['@hey-api/client-fetch'],
|
|
198
193
|
});
|
|
199
194
|
```
|
|
200
195
|
|
|
@@ -205,7 +200,6 @@ export default defineConfig({
|
|
|
205
200
|
module.exports = {
|
|
206
201
|
input: 'https://get.heyapi.dev/hey-api/backend',
|
|
207
202
|
output: 'src/client',
|
|
208
|
-
plugins: ['@hey-api/client-fetch'],
|
|
209
203
|
};
|
|
210
204
|
```
|
|
211
205
|
|
|
@@ -216,7 +210,6 @@ module.exports = {
|
|
|
216
210
|
export default {
|
|
217
211
|
input: 'https://get.heyapi.dev/hey-api/backend',
|
|
218
212
|
output: 'src/client',
|
|
219
|
-
plugins: ['@hey-api/client-fetch'],
|
|
220
213
|
};
|
|
221
214
|
```
|
|
222
215
|
|