fork of hey-api/openapi-ts because I need some additional things

fix: rename Hey API plugins

Lubos 4e623783 00417a7e

Changed files
+620 -596
.changeset
docs
examples
openapi-ts-axios
openapi-ts-fastify
openapi-ts-fetch
openapi-ts-tanstack-angular-query-experimental
openapi-ts-tanstack-react-query
openapi-ts-tanstack-svelte-query
openapi-ts-tanstack-vue-query
packages
client-axios
client-fetch
openapi-ts
src
generate
legacy
handlebars
compiled
templates
openApi
common
parser
shared
utils
v3
parser
__tests__
plugins
@hey-api
@tanstack
angular-query-experimental
query-core
react-query
solid-query
svelte-query
vue-query
fastify
utils
test
__snapshots__
2.0
form-data
3.0.x
parameter-explode-false
plugins
3.1.x
parameter-explode-false
plugins
test
generated
v2
v3
v3-hey-api-client-axios
v3-hey-api-client-axios-bundle
v3-hey-api-client-axios-bundle_transform
v3-hey-api-client-axios-class
v3-hey-api-client-axios-class_transform
v3-hey-api-client-axios_transform
v3-hey-api-client-fetch
v3-hey-api-client-fetch-bundle
v3-hey-api-client-fetch-bundle_transform
v3-hey-api-client-fetch-class
v3-hey-api-client-fetch-class_transform
v3-hey-api-client-fetch_transform
v3_angular
v3_angular_transform
v3_angular_tree_shakeable
v3_angular_tree_shakeable_transform
v3_axios
v3_axios_transform
v3_client
v3_client_transform
v3_enums_typescript
v3_enums_typescript_namespace
v3_legacy_positional_args
v3_node
v3_node_transform
v3_options
v3_services_filter
v3_services_name
v3_transform
v3_tree_shakeable
v3_xhr
v3_xhr_transform
e2e
+22
.changeset/fast-fishes-compare.md
··· 1 + --- 2 + '@hey-api/openapi-ts': minor 3 + --- 4 + 5 + feat: rename Hey API plugins 6 + 7 + ### Renamed `@hey-api/services` plugin 8 + 9 + This plugin has been renamed to `@hey-api/sdk`. 10 + 11 + ### Changed `sdk.output` value 12 + 13 + To align with the updated name, the `@hey-api/sdk` plugin will generate an `sdk.gen.ts` file. This will result in a breaking change if you're importing from `services.gen.ts`. Please update your imports to reflect this change. 14 + 15 + ```js 16 + import { client } from 'client/services.gen'; // [!code --] 17 + import { client } from 'client/sdk.gen'; // [!code ++] 18 + ``` 19 + 20 + ### Renamed `@hey-api/types` plugin 21 + 22 + This plugin has been renamed to `@hey-api/typescript`.
+2 -2
README.md
··· 4 4 <p align="center">🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.</p> 5 5 </div> 6 6 7 - [Live demo](https://stackblitz.com/edit/hey-api-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fservices.gen.ts,src%2Fclient%2Ftypes.gen.ts) 7 + [Live demo](https://stackblitz.com/edit/hey-api-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fsdk.gen.ts,src%2Fclient%2Ftypes.gen.ts) 8 8 9 9 ## Features 10 10 11 11 - works with CLI, Node.js 18+, or npx 12 12 - supports OpenAPI 2.0, 3.0, and 3.1 specifications 13 13 - supports both JSON and YAML input files 14 - - generates TypeScript interfaces, REST clients, and JSON Schemas 14 + - generates TypeScript interfaces, SDKs, and JSON Schemas 15 15 - Fetch API, Axios, Angular, Node.js, and XHR clients available 16 16 - plugin ecosystem to reduce third-party boilerplate 17 17
+3 -3
docs/embed.ts
··· 15 15 return await sdk.embedProjectId(container, projectId, { 16 16 height: 700, 17 17 openFile: 18 - 'openapi-ts.config.ts,src/client/schemas.gen.ts,src/client/services.gen.ts,src/client/types.gen.ts,src/App.tsx', 18 + 'openapi-ts.config.ts,src/client/schemas.gen.ts,src/client/sdk.gen.ts,src/client/types.gen.ts,src/App.tsx', 19 19 view: 'editor', 20 20 }); 21 21 case 'hey-api-client-fetch-example': 22 22 return await sdk.embedProjectId(container, projectId, { 23 23 height: 700, 24 24 openFile: 25 - 'openapi-ts.config.ts,src/client/schemas.gen.ts,src/client/services.gen.ts,src/client/types.gen.ts,src/App.tsx', 25 + 'openapi-ts.config.ts,src/client/schemas.gen.ts,src/client/sdk.gen.ts,src/client/types.gen.ts,src/App.tsx', 26 26 view: 'editor', 27 27 }); 28 28 case 'hey-api-client-fetch-plugin-fastify-example': ··· 49 49 return await sdk.embedProjectId(container, projectId, { 50 50 height: 700, 51 51 openFile: 52 - 'openapi-ts.config.ts,src/client/schemas.gen.ts,src/client/services.gen.ts,src/client/types.gen.ts', 52 + 'openapi-ts.config.ts,src/client/schemas.gen.ts,src/client/sdk.gen.ts,src/client/types.gen.ts', 53 53 view: 'editor', 54 54 }); 55 55 }
+1 -1
docs/index.md
··· 10 10 link: /openapi-ts/get-started 11 11 - theme: alt 12 12 text: View Demo 13 - link: https://stackblitz.com/edit/hey-api-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fservices.gen.ts,src%2Fclient%2Ftypes.gen.ts 13 + link: https://stackblitz.com/edit/hey-api-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fsdk.gen.ts,src%2Fclient%2Ftypes.gen.ts 14 14 image: 15 15 src: /logo.png 16 16 alt: logo
+10 -10
docs/openapi-ts/clients/axios.md
··· 57 57 58 58 ## Configuration 59 59 60 - If you're using services, you will want to configure the internal client instance. You can do that with the `setConfig()` method. Call it at the beginning of your application. 60 + If you're using SDKs, you will want to configure the internal client instance. You can do that with the `setConfig()` method. Call it at the beginning of your application. 61 61 62 62 ```js 63 - import { client } from 'client/services.gen'; 63 + import { client } from 'client/sdk.gen'; 64 64 65 65 client.setConfig({ 66 66 baseURL: 'https://example.com', 67 67 }); 68 68 ``` 69 69 70 - If you aren't using services, you can create your own client instance. 70 + If you aren't using SDKs, you can create your own client instance. 71 71 72 72 ```js 73 73 import { createClient } from '@hey-api/client-axios'; ··· 84 84 We expose the Axios instance through the `instance` field. 85 85 86 86 ```js 87 - import { client } from 'client/services.gen'; 87 + import { client } from 'client/sdk.gen'; 88 88 89 89 client.instance.interceptors.request.use((config) => { 90 90 config.headers.set('Authorization', 'Bearer <my_token>'); ··· 94 94 95 95 ## Customization 96 96 97 - Our Axios client is built as a thin wrapper on top of Axios, extending its functionality to work with Hey API. If you're already familiar with Axios, customizing your client will feel like working directly with Axios. You can customize requests in three ways – through services, per client, or per request. 97 + Our Axios client is built as a thin wrapper on top of Axios, extending its functionality to work with Hey API. If you're already familiar with Axios, customizing your client will feel like working directly with Axios. You can customize requests in three ways – through SDKs, per client, or per request. 98 98 99 - ### Services 99 + ### SDKs 100 100 101 - This is the most common requirement. Our generated services consume an internal Axios instance, so you will want to configure that. 101 + This is the most common requirement. Our generated SDKs consume an internal Axios instance, so you will want to configure that. 102 102 103 103 ```js 104 - import { client } from 'client/services.gen'; 104 + import { client } from 'client/sdk.gen'; 105 105 106 106 client.setConfig({ 107 107 baseURL: 'https://example.com', ··· 122 122 }); 123 123 ``` 124 124 125 - You can then pass this instance to any generated service through the `client` option. This will override the internal instance. 125 + You can then pass this instance to any SDK function through the `client` option. This will override the internal instance. 126 126 127 127 ```js 128 128 const response = await getFoo({ ··· 132 132 133 133 ### Request 134 134 135 - Alternatively, you can pass the Axios configuration options to each service call directly. This is useful if you don't want to create a separate client for one-off use cases. 135 + Alternatively, you can pass the Axios configuration options to each SDK function. This is useful if you don't want to create a client instance for one-off use cases. 136 136 137 137 ```js 138 138 const response = await getFoo({
+13 -13
docs/openapi-ts/clients/fetch.md
··· 57 57 58 58 ## Configuration 59 59 60 - If you're using services, you will want to configure the internal client instance. You can do that with the `setConfig()` method. Call it at the beginning of your application. 60 + If you're using SDKs, you will want to configure the internal client instance. You can do that with the `setConfig()` method. Call it at the beginning of your application. 61 61 62 62 ```js 63 - import { client } from 'client/services.gen'; 63 + import { client } from 'client/sdk.gen'; 64 64 65 65 client.setConfig({ 66 66 baseUrl: 'https://example.com', 67 67 }); 68 68 ``` 69 69 70 - If you aren't using services, you can create your own client instance. 70 + If you aren't using SDKs, you can create your own client instance. 71 71 72 72 ```js 73 73 import { createClient } from '@hey-api/client-fetch'; ··· 84 84 ::: code-group 85 85 86 86 ```js [use] 87 - import { client } from 'client/services.gen'; 87 + import { client } from 'client/sdk.gen'; 88 88 89 89 client.interceptors.request.use((request, options) => { 90 90 request.headers.set('Authorization', 'Bearer <my_token>'); ··· 93 93 ``` 94 94 95 95 ```js [eject] 96 - import { client } from 'client/services.gen'; 96 + import { client } from 'client/sdk.gen'; 97 97 98 98 client.interceptors.request.eject((request, options) => { 99 99 request.headers.set('Authorization', 'Bearer <my_token>'); ··· 108 108 ::: code-group 109 109 110 110 ```js [use] 111 - import { client } from 'client/services.gen'; 111 + import { client } from 'client/sdk.gen'; 112 112 113 113 client.interceptors.response.use((response, request, options) => { 114 114 trackAnalytics(response); ··· 117 117 ``` 118 118 119 119 ```js [eject] 120 - import { client } from 'client/services.gen'; 120 + import { client } from 'client/sdk.gen'; 121 121 122 122 client.interceptors.response.eject((response, request, options) => { 123 123 trackAnalytics(response); ··· 133 133 134 134 ## Customization 135 135 136 - Our Fetch client is built as a thin wrapper on top of Fetch API, extending its functionality to work with Hey API. If you're already familiar with Fetch, customizing your client will feel like working directly with Fetch API. You can customize requests in three ways – through services, per client, or per request. 136 + Our Fetch client is built as a thin wrapper on top of Fetch API, extending its functionality to work with Hey API. If you're already familiar with Fetch, customizing your client will feel like working directly with Fetch API. You can customize requests in three ways – through SDKs, per client, or per request. 137 137 138 - ### Services 138 + ### SDKs 139 139 140 - This is the most common requirement. Our generated services consume an internal Fetch instance, so you will want to configure that. 140 + This is the most common requirement. The generated SDKs consume an internal Fetch instance, so you will want to configure that. 141 141 142 142 ```js 143 - import { client } from 'client/services.gen'; 143 + import { client } from 'client/sdk.gen'; 144 144 145 145 client.setConfig({ 146 146 baseUrl: 'https://example.com', ··· 161 161 }); 162 162 ``` 163 163 164 - You can then pass this instance to any generated service through the `client` option. This will override the internal instance. 164 + You can then pass this instance to any SDK function through the `client` option. This will override the internal instance. 165 165 166 166 ```js 167 167 const response = await getFoo({ ··· 171 171 172 172 ### Request 173 173 174 - Alternatively, you can pass the Fetch API configuration options to each service call directly. This is useful if you don't want to create a separate client for one-off use cases. 174 + Alternatively, you can pass the Fetch API configuration options to each SDK function. This is useful if you don't want to create a client instance for one-off use cases. 175 175 176 176 ```js 177 177 const response = await getFoo({
+2 -2
docs/openapi-ts/configuration.md
··· 194 194 195 195 ## Clients 196 196 197 - Clients are responsible for sending the actual HTTP requests. The `client` value is not required, but you must define it if you're generating the service layer (enabled by default). 197 + Clients are responsible for sending the actual HTTP requests. The `client` value is not required, but you must define it if you're generating SDKs (enabled by default). 198 198 199 199 You can learn more on the [Clients](/openapi-ts/clients) page. 200 200 ··· 225 225 226 226 ## Plugins 227 227 228 - Plugins are responsible for generating artifacts from your input. By default, Hey API will generate TypeScript interfaces, JSON Schemas, and services from your OpenAPI specification. You can add, remove, or customize any of the plugins. In fact, we highly encourage you to do so! 228 + Plugins are responsible for generating artifacts from your input. By default, Hey API will generate TypeScript interfaces, an SDK, and JSON Schemas from your OpenAPI specification. You can add, remove, or customize any of the plugins. In fact, we highly encourage you to do so! 229 229 230 230 You can learn more on the [Output](/openapi-ts/output) page. 231 231
+1 -1
docs/openapi-ts/fastify.md
··· 50 50 51 51 ## Route Handlers 52 52 53 - Route handlers are generated from all endpoints. The generated interface follows the naming convention of services. 53 + Route handlers are generated from all endpoints. The generated interface follows the naming convention of SDK functions. 54 54 55 55 ```ts 56 56 const fastify = Fastify();
+1 -1
docs/openapi-ts/get-started.md
··· 24 24 - works with CLI, Node.js 18+, or npx 25 25 - supports OpenAPI 2.0, 3.0, and 3.1 specifications 26 26 - supports both JSON and YAML input files 27 - - generates TypeScript interfaces, REST clients, and JSON Schemas 27 + - generates TypeScript interfaces, SDKs, and JSON Schemas 28 28 - Fetch API, Axios, Angular, Node.js, and XHR clients available 29 29 - plugin ecosystem to reduce third-party boilerplate 30 30
+1 -1
docs/openapi-ts/integrations.md
··· 13 13 14 14 ## Upload OpenAPI Spec 15 15 16 - First, you need to configure your API services to send us OpenAPI specifications. This can be done by adding our [hey-api/upload-openapi-spec](https://github.com/marketplace/actions/upload-openapi-spec-by-hey-api) GitHub Action into your CI workflow. 16 + First, you need to configure your API build workflow to send us OpenAPI specifications. This can be done by adding our [hey-api/upload-openapi-spec](https://github.com/marketplace/actions/upload-openapi-spec-by-hey-api) GitHub Action into your CI workflow. 17 17 18 18 ```yaml 19 19 name: Upload OpenAPI Specification
+19 -23
docs/openapi-ts/migrating.md
··· 11 11 12 12 These changes haven't been released yet. However, you can migrate your code today to save time on migration once they're released. 13 13 14 - ### Deprecated exports from `index.ts` 15 - 16 - Currently, `index.ts` file exports all generated artifacts. We will be slowly moving away from this practice as it increases the chance of export conflicts. 17 - 18 - ```js 19 - export { ApiError } from './core/ApiError'; 20 - export { CancelablePromise, CancelError } from './core/CancelablePromise'; 21 - export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 22 - export * from './schemas.gen'; // [!code --] 23 - export * from './services.gen'; // [!code --] 24 - export * from './types.gen'; // [!code --] 25 - ``` 26 - 27 - Any non-core related imports should be imported as 28 - 29 - ```js 30 - import { $Schema } from 'client/schemas.gen'; 31 - import { DefaultService } from 'client/services.gen'; 32 - import type { Model } from 'client/types.gen'; 33 - ``` 34 - 35 - You don't have to update imports from `core` folder. These will be addressed in later releases. 36 - 37 14 ### Deprecated `base` 38 15 39 16 This config option is deprecated and will be removed in favor of [clients](./clients). ··· 49 26 ### Deprecated `useOptions` 50 27 51 28 This config option is deprecated and will be removed. 29 + 30 + ## v0.57.0 31 + 32 + ### Renamed `@hey-api/services` plugin 33 + 34 + This plugin has been renamed to `@hey-api/sdk`. 35 + 36 + ### Changed `sdk.output` value 37 + 38 + To align with the updated name, the `@hey-api/sdk` plugin will generate an `sdk.gen.ts` file. This will result in a breaking change if you're importing from `services.gen.ts`. Please update your imports to reflect this change. 39 + 40 + ```js 41 + import { client } from 'client/services.gen'; // [!code --] 42 + import { client } from 'client/sdk.gen'; // [!code ++] 43 + ``` 44 + 45 + ### Renamed `@hey-api/types` plugin 46 + 47 + This plugin has been renamed to `@hey-api/typescript`. 52 48 53 49 ## v0.56.0 54 50
+41 -42
docs/openapi-ts/output.md
··· 13 13 14 14 ## Overview 15 15 16 - If you use the default configuration, your [project](https://stackblitz.com/edit/hey-api-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fservices.gen.ts,src%2Fclient%2Ftypes.gen.ts) might look like this. 16 + If you use the default configuration, your [project](https://stackblitz.com/edit/hey-api-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fsdk.gen.ts,src%2Fclient%2Ftypes.gen.ts) might look like this. 17 17 18 18 ```md 19 19 my-app/ ··· 22 22 │ ├── client/ 23 23 │ │ ├── index.ts 24 24 │ │ ├── schemas.gen.ts 25 - │ │ ├── services.gen.ts 25 + │ │ ├── sdk.gen.ts 26 26 │ │ └── types.gen.ts 27 27 │ └── index.ts 28 28 └── package.json ··· 32 32 33 33 Let's go through each file in the `src/client` folder and explain what it looks like, what it does, and how to use it. 34 34 35 - ## TypeScript Interfaces 35 + ## TypeScript 36 36 37 37 TypeScript interfaces are located in the `types.gen.ts` file. This is the only file that does not impact your bundle size and runtime performance. It will get discarded during build time, unless you configured to emit runtime [enums](/openapi-ts/output#enums). 38 38 39 - This file contains three different categories of interfaces created from your OpenAPI specification: 39 + This file contains three different categories of interfaces created from your input: 40 40 41 41 - reusable components 42 42 - operation request, response, and error data ··· 65 65 66 66 ### Configuration 67 67 68 - You can modify the contents of `types.gen.ts` by configuring the `@hey-api/types` plugin. Note that you must specify the other default plugins to preserve the default output. 68 + You can modify the contents of `types.gen.ts` by configuring the `@hey-api/typescript` plugin. Note that you must specify the other default plugins to preserve the default output. 69 69 70 70 ```js 71 71 export default { ··· 73 73 input: 'path/to/openapi.json', 74 74 output: 'src/client', 75 75 plugins: [ 76 - '@hey-api/schemas', // preserves default output 77 - '@hey-api/services', // preserves default output 76 + '@hey-api/schemas', // preserve default output 77 + '@hey-api/sdk', // preserve default output 78 78 { 79 - name: '@hey-api/types', 79 + name: '@hey-api/typescript', 80 80 // ...custom options // [!code ++] 81 81 }, 82 82 ], ··· 98 98 // ...default plugins 99 99 { 100 100 enums: false, // default // [!code ++] 101 - name: '@hey-api/types', 101 + name: '@hey-api/typescript', 102 102 }, 103 103 ], 104 104 }; ··· 113 113 // ...default plugins 114 114 { 115 115 enums: 'javascript', // [!code ++] 116 - name: '@hey-api/types', 116 + name: '@hey-api/typescript', 117 117 }, 118 118 ], 119 119 }; ··· 128 128 // ...default plugins 129 129 { 130 130 enums: 'typescript', // [!code ++] 131 - name: '@hey-api/types', 131 + name: '@hey-api/typescript', 132 132 }, 133 133 ], 134 134 }; ··· 138 138 139 139 We recommend exporting enums as plain JavaScript objects. [TypeScript enums](https://www.typescriptlang.org/docs/handbook/enums.html) are not a type-level extension of JavaScript and pose [typing challenges](https://dev.to/ivanzm123/dont-use-enums-in-typescript-they-are-very-dangerous-57bh). 140 140 141 - ## API Services 141 + ## SDKs 142 142 143 - Services are located in the `services.gen.ts` file. Services are abstractions on top of clients and serve the same purpose. By default, `@hey-api/openapi-ts` will generate a flat service layer. Your choice to use services comes down to personal preferences and bundle size considerations. 143 + SDKs are located in the `sdk.gen.ts` file. SDKs are abstractions on top of clients and serve the same purpose. By default, `@hey-api/openapi-ts` will generate a flat SDK layer. Your choice to use SDKs depends on personal preferences and bundle size considerations. 144 144 145 - ### Flat Services 145 + ### Flat SDKs 146 146 147 - This is the default setting. Flat services support tree-shaking and can lead to reduced bundle size over duplicated client calls. The function names are generated from operation IDs or operation location. 147 + This is the default setting. Flat SDKs support tree-shaking and can lead to reduced bundle size over duplicated client calls. The function names are generated from operation IDs or operation location. 148 148 149 - ### Class Services 149 + ### Class SDKs 150 150 151 - Class services do not support tree-shaking which will lead to increased bundle sizes, but some people prefer this option for syntax reasons. The class names are generated from operation tags and method names are generated from operation IDs or operation location. 151 + Class SDKs do not support tree-shaking which will lead to increased bundle sizes, but some people prefer this option for syntax reasons. The class names are generated from operation tags and method names are generated from operation IDs or operation location. 152 152 153 - ### No Services 153 + ### No SDKs 154 154 155 - If you prefer to use clients directly or do not need the service layer, define `plugins` manually and omit the `@hey-api/services` plugin. Type support for clients is currently limited due to popularity of other options. If you'd like to use this option and need better types, [open an issue](https://github.com/hey-api/openapi-ts/issues). 155 + If you prefer to use clients directly or do not need the SDK layer, define `plugins` manually and omit the `@hey-api/sdk` plugin. Type support for clients is currently limited due to popularity of other options. If you'd like to use this option and need better types, [open an issue](https://github.com/hey-api/openapi-ts/issues). 156 156 157 157 ### Configuration 158 158 159 - You can modify the contents of `services.gen.ts` by configuring the `@hey-api/services` plugin. Note that you must specify the other default plugins to preserve the default output. 159 + You can modify the contents of `sdk.gen.ts` by configuring the `@hey-api/sdk` plugin. Note that you must specify the other default plugins to preserve the default output. 160 160 161 161 ::: code-group 162 162 ··· 166 166 input: 'path/to/openapi.json', 167 167 output: 'src/client', 168 168 plugins: [ 169 - '@hey-api/schemas', // preserves default output 170 - '@hey-api/types', // preserves default output 169 + '@hey-api/schemas', // preserve default output 170 + '@hey-api/typescript', // preserve default output 171 171 { 172 172 asClass: false, // default // [!code ++] 173 - name: '@hey-api/services', 173 + name: '@hey-api/sdk', 174 174 }, 175 175 ], 176 176 }; ··· 182 182 input: 'path/to/openapi.json', 183 183 output: 'src/client', 184 184 plugins: [ 185 - '@hey-api/schemas', // preserves default output 186 - '@hey-api/types', // preserves default output 185 + '@hey-api/schemas', // preserve default output 186 + '@hey-api/typescript', // preserve default output 187 187 { 188 188 asClass: true, // [!code ++] 189 - name: '@hey-api/services', 189 + name: '@hey-api/sdk', 190 190 }, 191 191 ], 192 192 }; ··· 198 198 input: 'path/to/openapi.json', 199 199 output: 'src/client', 200 200 plugins: [ 201 - '@hey-api/schemas', // preserves default output 202 - '@hey-api/types', // preserves default output 203 - '@hey-api/services', // [!code --] 201 + '@hey-api/schemas', // preserve default output 202 + '@hey-api/typescript', // preserve default output 203 + '@hey-api/sdk', // [!code --] 204 204 ], 205 205 }; 206 206 ``` ··· 209 209 210 210 ### Output 211 211 212 - Below are different outputs depending on your chosen style. No services approach will not generate the `services.gen.ts` file. 212 + Below are different outputs depending on your chosen style. No SDKs approach will not generate the `sdk.gen.ts` file. 213 213 214 214 ::: code-group 215 215 ··· 249 249 ::: code-group 250 250 251 251 ```ts [flat] 252 - import { addPet } from './client/services.gen'; 252 + import { addPet } from './client/sdk.gen'; 253 253 254 254 addPet({ 255 255 body: { ··· 259 259 ``` 260 260 261 261 ```ts [class] 262 - import { PetService } from './client/services.gen'; 262 + import { PetService } from './client/sdk.gen'; 263 263 264 264 PetService.addPet({ 265 265 body: { ··· 297 297 input: 'path/to/openapi.json', 298 298 output: 'src/client', 299 299 plugins: [ 300 - '@hey-api/services', // preserves default output 301 - '@hey-api/types', // preserves default output 300 + '@hey-api/sdk', // preserve default output 301 + '@hey-api/typescript', // preserve default output 302 302 { 303 303 name: '@hey-api/schemas', 304 304 type: 'json', // [!code ++] ··· 313 313 input: 'path/to/openapi.json', 314 314 output: 'src/client', 315 315 plugins: [ 316 - '@hey-api/services', // preserves default output 317 - '@hey-api/types', // preserves default output 316 + '@hey-api/sdk', // preserve default output 317 + '@hey-api/typescript', // preserve default output 318 318 { 319 319 name: '@hey-api/schemas', 320 320 type: 'form', // [!code ++] ··· 329 329 input: 'path/to/openapi.json', 330 330 output: 'src/client', 331 331 plugins: [ 332 - '@hey-api/services', // preserves default output 333 - '@hey-api/types', // preserves default output 332 + '@hey-api/sdk', // preserve default output 333 + '@hey-api/typescript', // preserve default output 334 334 '@hey-api/schemas', // [!code --] 335 335 ], 336 336 }; ··· 376 376 377 377 ## Index 378 378 379 - For convenience, every default generated artifact is re-exported from `index.ts`. This file is deprecated and will be removed in future releases. We recommend importing types, services, and schemas from their respective files to avoid ambiguity. 379 + For convenience, every artifact generated by Hey API plugins is re-exported from `index.ts`. However, we recommend importing artifacts from their files to avoid ambiguity. 380 380 381 381 ```ts 382 - import type { Pet } from './client/types.gen'; 383 - // or 384 - import type { Pet } from './client'; 382 + import type { Pet } from './client'; // [!code --] // 👎 383 + import type { Pet } from './client/types.gen'; // [!code ++] // 👍 385 384 ``` 386 385 387 386 ## Client
+5 -5
docs/openapi-ts/plugins.md
··· 12 12 Apart from being responsible for the default output, Hey API plugins are the foundation for other plugins. Instead of creating their own primitives, other plugins can reuse the artifacts from Hey API plugins. This results in smaller output and a better user experience. 13 13 14 14 - `@hey-api/schemas` - export OpenAPI definitions as JavaScript objects 15 - - `@hey-api/services` - robust and polished SDKs 15 + - `@hey-api/sdk` - robust and polished SDKs 16 16 - `@hey-api/transformers` - response data transformer functions 17 - - `@hey-api/types` - TypeScript interfaces and enums 17 + - `@hey-api/typescript` - TypeScript interfaces and enums 18 18 19 19 ## Third Party 20 20 21 21 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. 22 22 23 - - [`fastify`](/openapi-ts/fastify) - TypeScript interface for Fastify route handlers 24 23 - [`@tanstack/angular-query-experimental`](/openapi-ts/tanstack-query) - TanStack Query functions and query keys 25 24 - [`@tanstack/react-query`](/openapi-ts/tanstack-query) - TanStack Query functions and query keys 26 25 - [`@tanstack/solid-query`](/openapi-ts/tanstack-query) - TanStack Query functions and query keys 27 26 - [`@tanstack/svelte-query`](/openapi-ts/tanstack-query) - TanStack Query functions and query keys 28 27 - [`@tanstack/vue-query`](/openapi-ts/tanstack-query) - TanStack Query functions and query keys 28 + - [`fastify`](/openapi-ts/fastify) - TypeScript interface for Fastify route handlers 29 29 - [`zod`](/openapi-ts/zod) - Zod schemas to validate your data 30 30 31 31 ## Community ··· 90 90 import type { Config } from './types'; 91 91 92 92 export const defaultConfig: PluginConfig<Config> = { 93 - _dependencies: ['@hey-api/types'], 93 + _dependencies: ['@hey-api/typescript'], 94 94 _handler: handler, 95 95 _handlerLegacy: () => {}, 96 96 name: 'my-plugin', ··· 108 108 109 109 ::: 110 110 111 - In the `config.ts` above, we define a `my-plugin` plugin which will generate a `my-plugin.gen.ts` output file. We also demonstrate declaring `@hey-api/types` as a dependency for our plugin, so we can safely import artifacts from `types.gen.ts`. 111 + In the `config.ts` above, we define a `my-plugin` plugin which will generate a `my-plugin.gen.ts` output file. We also demonstrate declaring `@hey-api/typescript` as a dependency for our plugin, so we can safely import artifacts from `types.gen.ts`. 112 112 113 113 Lastly, we define the `_handler` method which will be responsible for generating our custom output. We just need to create the remaining `plugin.ts` file. 114 114
+3 -3
docs/openapi-ts/tanstack-query.md
··· 102 102 103 103 ## Queries 104 104 105 - Queries are generated from GET and POST endpoints. The generated functions follow the naming convention of services and append `Options`, e.g. `getPetByIdOptions()`. 105 + Queries are generated from GET and POST endpoints. The generated functions follow the naming convention of SDK functions and append `Options`, e.g. `getPetByIdOptions()`. 106 106 107 107 ```ts 108 108 const { data, error } = useQuery({ ··· 116 116 117 117 ## Infinite Queries 118 118 119 - Infinite queries are generated from GET and POST endpoints if we detect a pagination parameter. The generated functions follow the naming convention of services and append `InfiniteOptions`, e.g. `getFooInfiniteOptions()`. 119 + Infinite queries are generated from GET and POST endpoints if we detect a pagination parameter. The generated functions follow the naming convention of SDK functions and append `InfiniteOptions`, e.g. `getFooInfiniteOptions()`. 120 120 121 121 ```ts 122 122 const { data, error } = useInfiniteQuery({ ··· 132 132 133 133 ## Mutations 134 134 135 - Mutations are generated from DELETE, PATCH, POST, and PUT endpoints. The generated functions follow the naming convention of services and append `Mutation`, e.g. `addPetMutation()`. 135 + Mutations are generated from DELETE, PATCH, POST, and PUT endpoints. The generated functions follow the naming convention of SDK functions and append `Mutation`, e.g. `addPetMutation()`. 136 136 137 137 ```ts 138 138 const addPet = useMutation({
+2 -2
docs/openapi-ts/transformers.md
··· 15 15 16 16 ## Considerations 17 17 18 - Before deciding whether transformers are right for you, let's explain how they work. Transformers are generated on the [service layer](/openapi-ts/output#api-services), therefore they impact the bundle size. We generate a single transformer per operation response for the most efficient result, just like a human engineer would. 18 + Before deciding whether transformers are right for you, let's explain how they work. Transformers generate a runtime file, therefore they impact the bundle size. We generate a single transformer per operation response for the most efficient result, just like a human engineer would. 19 19 20 20 ### Limitations 21 21 22 - Transformers currently handle the most common scenarios. Some of the known limitations are: 22 + Transformers handle only the most common scenarios. Some of the known limitations are: 23 23 24 24 - union types are not transformed (e.g. if you have multiple possible response shapes) 25 25 - only types defined through `$ref` are transformed
+2 -2
examples/openapi-ts-axios/openapi-ts.config.ts
··· 11 11 }, 12 12 plugins: [ 13 13 '@hey-api/schemas', 14 - '@hey-api/services', 14 + '@hey-api/sdk', 15 15 { 16 16 enums: 'javascript', 17 - name: '@hey-api/types', 17 + name: '@hey-api/typescript', 18 18 }, 19 19 ], 20 20 });
+1 -1
examples/openapi-ts-axios/src/App.tsx
··· 18 18 import { useState } from 'react'; 19 19 20 20 import { PetSchema } from './client/schemas.gen'; 21 - import { addPet, getPetById, updatePet } from './client/services.gen'; 21 + import { addPet, getPetById, updatePet } from './client/sdk.gen'; 22 22 import type { Pet } from './client/types.gen'; 23 23 24 24 const localClient = createClient({
+1 -1
examples/openapi-ts-axios/src/client/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './schemas.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen'; 4 4 export * from './types.gen';
examples/openapi-ts-axios/src/client/services.gen.ts examples/openapi-ts-axios/src/client/sdk.gen.ts
+1 -1
examples/openapi-ts-axios/src/main.tsx
··· 5 5 import ReactDOM from 'react-dom/client'; 6 6 7 7 import App from './App.tsx'; 8 - import { client } from './client/services.gen'; 8 + import { client } from './client/sdk.gen'; 9 9 10 10 // configure internal service client 11 11 client.setConfig({
+1 -1
examples/openapi-ts-fastify/openapi-ts.config.ts
··· 10 10 lint: 'eslint', 11 11 path: './src/client', 12 12 }, 13 - plugins: ['fastify', '@hey-api/services'], 13 + plugins: ['fastify', '@hey-api/sdk'], 14 14 });
+1 -1
examples/openapi-ts-fastify/src/client/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
examples/openapi-ts-fastify/src/client/services.gen.ts examples/openapi-ts-fastify/src/client/sdk.gen.ts
+2 -2
examples/openapi-ts-fetch/openapi-ts.config.ts
··· 11 11 }, 12 12 plugins: [ 13 13 '@hey-api/schemas', 14 - '@hey-api/services', 14 + '@hey-api/sdk', 15 15 { 16 16 enums: 'javascript', 17 - name: '@hey-api/types', 17 + name: '@hey-api/typescript', 18 18 }, 19 19 ], 20 20 });
+1 -1
examples/openapi-ts-fetch/src/App.tsx
··· 18 18 import { useState } from 'react'; 19 19 20 20 import { PetSchema } from './client/schemas.gen'; 21 - import { addPet, getPetById, updatePet } from './client/services.gen'; 21 + import { addPet, getPetById, updatePet } from './client/sdk.gen'; 22 22 import type { Pet } from './client/types.gen'; 23 23 24 24 const localClient = createClient({
+1 -1
examples/openapi-ts-fetch/src/client/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './schemas.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen'; 4 4 export * from './types.gen';
examples/openapi-ts-fetch/src/client/services.gen.ts examples/openapi-ts-fetch/src/client/sdk.gen.ts
+1 -1
examples/openapi-ts-fetch/src/main.tsx
··· 5 5 import ReactDOM from 'react-dom/client'; 6 6 7 7 import App from './App.tsx'; 8 - import { client } from './client/services.gen'; 8 + import { client } from './client/sdk.gen'; 9 9 10 10 // configure internal service client 11 11 client.setConfig({
+2 -2
examples/openapi-ts-tanstack-angular-query-experimental/openapi-ts.config.ts
··· 11 11 }, 12 12 plugins: [ 13 13 '@hey-api/schemas', 14 - '@hey-api/services', 14 + '@hey-api/sdk', 15 15 { 16 16 enums: 'javascript', 17 - name: '@hey-api/types', 17 + name: '@hey-api/typescript', 18 18 }, 19 19 '@tanstack/angular-query-experimental', 20 20 ],
+1 -1
examples/openapi-ts-tanstack-angular-query-experimental/src/client/@tanstack/angular-query-experimental.gen.ts
··· 28 28 updatePetWithForm, 29 29 updateUser, 30 30 uploadFile, 31 - } from '../services.gen'; 31 + } from '../sdk.gen'; 32 32 import type { 33 33 AddPetData, 34 34 AddPetError,
+1 -1
examples/openapi-ts-tanstack-angular-query-experimental/src/client/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './schemas.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen'; 4 4 export * from './types.gen';
examples/openapi-ts-tanstack-angular-query-experimental/src/client/services.gen.ts examples/openapi-ts-tanstack-angular-query-experimental/src/client/sdk.gen.ts
+2 -2
examples/openapi-ts-tanstack-react-query/openapi-ts.config.ts
··· 11 11 }, 12 12 plugins: [ 13 13 '@hey-api/schemas', 14 - '@hey-api/services', 14 + '@hey-api/sdk', 15 15 { 16 16 enums: 'javascript', 17 - name: '@hey-api/types', 17 + name: '@hey-api/typescript', 18 18 }, 19 19 '@tanstack/react-query', 20 20 ],
+1 -1
examples/openapi-ts-tanstack-react-query/src/client/@tanstack/react-query.gen.ts
··· 28 28 updatePetWithForm, 29 29 updateUser, 30 30 uploadFile, 31 - } from '../services.gen'; 31 + } from '../sdk.gen'; 32 32 import type { 33 33 AddPetData, 34 34 AddPetError,
+1 -1
examples/openapi-ts-tanstack-react-query/src/client/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './schemas.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen'; 4 4 export * from './types.gen';
examples/openapi-ts-tanstack-react-query/src/client/services.gen.ts examples/openapi-ts-tanstack-react-query/src/client/sdk.gen.ts
+1 -1
examples/openapi-ts-tanstack-react-query/src/main.tsx
··· 7 7 import ReactDOM from 'react-dom/client'; 8 8 9 9 import App from './App.tsx'; 10 - import { client } from './client/services.gen'; 10 + import { client } from './client/sdk.gen'; 11 11 12 12 const queryClient = new QueryClient({ 13 13 defaultOptions: {
+2 -2
examples/openapi-ts-tanstack-svelte-query/openapi-ts.config.ts
··· 11 11 }, 12 12 plugins: [ 13 13 '@hey-api/schemas', 14 - '@hey-api/services', 14 + '@hey-api/sdk', 15 15 { 16 16 enums: 'javascript', 17 - name: '@hey-api/types', 17 + name: '@hey-api/typescript', 18 18 }, 19 19 '@tanstack/svelte-query', 20 20 ],
+1 -1
examples/openapi-ts-tanstack-svelte-query/src/client/@tanstack/svelte-query.gen.ts
··· 28 28 updatePetWithForm, 29 29 updateUser, 30 30 uploadFile, 31 - } from '../services.gen'; 31 + } from '../sdk.gen'; 32 32 import type { 33 33 AddPetData, 34 34 AddPetError,
+1 -1
examples/openapi-ts-tanstack-svelte-query/src/client/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './schemas.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen'; 4 4 export * from './types.gen';
examples/openapi-ts-tanstack-svelte-query/src/client/services.gen.ts examples/openapi-ts-tanstack-svelte-query/src/client/sdk.gen.ts
+1 -1
examples/openapi-ts-tanstack-svelte-query/src/routes/+layout.svelte
··· 2 2 import Header from './Header.svelte'; 3 3 import '../app.css'; 4 4 import { QueryClientProvider, QueryClient } from '@tanstack/svelte-query'; 5 - import { client } from '../client/services.gen'; 5 + import { client } from '../client/sdk.gen'; 6 6 import { browser } from '$app/environment'; 7 7 8 8 // configure internal service client
+2 -2
examples/openapi-ts-tanstack-vue-query/openapi-ts.config.ts
··· 11 11 }, 12 12 plugins: [ 13 13 '@hey-api/schemas', 14 - '@hey-api/services', 14 + '@hey-api/sdk', 15 15 { 16 16 enums: 'javascript', 17 - name: '@hey-api/types' 17 + name: '@hey-api/typescript' 18 18 }, 19 19 '@tanstack/vue-query' 20 20 ]
+1 -1
examples/openapi-ts-tanstack-vue-query/src/client/@tanstack/vue-query.gen.ts
··· 24 24 updatePetWithForm, 25 25 updateUser, 26 26 uploadFile 27 - } from '../services.gen' 27 + } from '../sdk.gen' 28 28 import type { 29 29 AddPetData, 30 30 AddPetError,
+1 -1
examples/openapi-ts-tanstack-vue-query/src/client/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './schemas.gen' 3 - export * from './services.gen' 3 + export * from './sdk.gen' 4 4 export * from './types.gen'
examples/openapi-ts-tanstack-vue-query/src/client/services.gen.ts examples/openapi-ts-tanstack-vue-query/src/client/sdk.gen.ts
+1 -1
examples/openapi-ts-tanstack-vue-query/src/main.ts
··· 5 5 import { createApp } from 'vue' 6 6 7 7 import App from './App.vue' 8 - import { client } from './client/services.gen' 8 + import { client } from './client/sdk.gen' 9 9 import router from './router' 10 10 11 11 // configure internal service client
+1 -1
packages/client-axios/README.md
··· 4 4 <p align="center">🚀 Axios client for `@hey-api/openapi-ts` codegen.</p> 5 5 </div> 6 6 7 - [Live demo](https://stackblitz.com/edit/hey-api-client-axios-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fservices.gen.ts,src%2Fclient%2Ftypes.gen.ts,src%2FApp.tsx) 7 + [Live demo](https://stackblitz.com/edit/hey-api-client-axios-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fsdk.gen.ts,src%2Fclient%2Ftypes.gen.ts,src%2FApp.tsx) 8 8 9 9 ## Features 10 10
+1 -1
packages/client-fetch/README.md
··· 4 4 <p align="center">🚀 Fetch API client for `@hey-api/openapi-ts` codegen.</p> 5 5 </div> 6 6 7 - [Live demo](https://stackblitz.com/edit/hey-api-client-fetch-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fservices.gen.ts,src%2Fclient%2Ftypes.gen.ts,src%2FApp.tsx) 7 + [Live demo](https://stackblitz.com/edit/hey-api-client-fetch-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fsdk.gen.ts,src%2Fclient%2Ftypes.gen.ts,src%2FApp.tsx) 8 8 9 9 ## Features 10 10
+2 -2
packages/openapi-ts/README.md
··· 4 4 <p align="center">🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.</p> 5 5 </div> 6 6 7 - [Live demo](https://stackblitz.com/edit/hey-api-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fservices.gen.ts,src%2Fclient%2Ftypes.gen.ts) 7 + [Live demo](https://stackblitz.com/edit/hey-api-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fsdk.gen.ts,src%2Fclient%2Ftypes.gen.ts) 8 8 9 9 ## Features 10 10 11 11 - works with CLI, Node.js 18+, or npx 12 12 - supports OpenAPI 2.0, 3.0, and 3.1 specifications 13 13 - supports both JSON and YAML input files 14 - - generates TypeScript interfaces, REST clients, and JSON Schemas 14 + - generates TypeScript interfaces, SDKs, and JSON Schemas 15 15 - Fetch API, Axios, Angular, Node.js, and XHR clients available 16 16 - plugin ecosystem to reduce third-party boilerplate 17 17
+4 -4
packages/openapi-ts/src/generate/__tests__/class.spec.ts
··· 33 33 _handlerLegacy: () => {}, 34 34 name: '@hey-api/schemas', 35 35 }, 36 - '@hey-api/services': { 36 + '@hey-api/sdk': { 37 37 _handler: () => {}, 38 38 _handlerLegacy: () => {}, 39 - name: '@hey-api/services', 39 + name: '@hey-api/sdk', 40 40 }, 41 - '@hey-api/types': { 41 + '@hey-api/typescript': { 42 42 _handler: () => {}, 43 43 _handlerLegacy: () => {}, 44 44 enums: 'javascript', 45 - name: '@hey-api/types', 45 + name: '@hey-api/typescript', 46 46 }, 47 47 }, 48 48 useOptions: true,
+15 -15
packages/openapi-ts/src/generate/__tests__/core.spec.ts
··· 40 40 output: { 41 41 path: '', 42 42 }, 43 - pluginOrder: ['@hey-api/types', '@hey-api/schemas', '@hey-api/services'], 43 + pluginOrder: ['@hey-api/typescript', '@hey-api/schemas', '@hey-api/sdk'], 44 44 plugins: { 45 45 '@hey-api/schemas': { 46 46 _handler: () => {}, 47 47 _handlerLegacy: () => {}, 48 48 name: '@hey-api/schemas', 49 49 }, 50 - '@hey-api/services': { 50 + '@hey-api/sdk': { 51 51 _handler: () => {}, 52 52 _handlerLegacy: () => {}, 53 - name: '@hey-api/services', 53 + name: '@hey-api/sdk', 54 54 }, 55 - '@hey-api/types': { 55 + '@hey-api/typescript': { 56 56 _handler: () => {}, 57 57 _handlerLegacy: () => {}, 58 58 enums: 'javascript', 59 - name: '@hey-api/types', 59 + name: '@hey-api/typescript', 60 60 }, 61 61 }, 62 62 useOptions: true, ··· 115 115 output: { 116 116 path: '', 117 117 }, 118 - pluginOrder: ['@hey-api/types', '@hey-api/schemas', '@hey-api/services'], 118 + pluginOrder: ['@hey-api/typescript', '@hey-api/schemas', '@hey-api/sdk'], 119 119 plugins: { 120 120 '@hey-api/schemas': { 121 121 _handler: () => {}, 122 122 _handlerLegacy: () => {}, 123 123 name: '@hey-api/schemas', 124 124 }, 125 - '@hey-api/services': { 125 + '@hey-api/sdk': { 126 126 _handler: () => {}, 127 127 _handlerLegacy: () => {}, 128 - name: '@hey-api/services', 128 + name: '@hey-api/sdk', 129 129 }, 130 - '@hey-api/types': { 130 + '@hey-api/typescript': { 131 131 _handler: () => {}, 132 132 _handlerLegacy: () => {}, 133 133 enums: 'javascript', 134 - name: '@hey-api/types', 134 + name: '@hey-api/typescript', 135 135 }, 136 136 }, 137 137 useOptions: true, ··· 173 173 output: { 174 174 path: '', 175 175 }, 176 - pluginOrder: ['@hey-api/types', '@hey-api/schemas', '@hey-api/services'], 176 + pluginOrder: ['@hey-api/typescript', '@hey-api/schemas', '@hey-api/sdk'], 177 177 plugins: { 178 178 '@hey-api/schemas': { 179 179 _handler: () => {}, 180 180 _handlerLegacy: () => {}, 181 181 name: '@hey-api/schemas', 182 182 }, 183 - '@hey-api/services': { 183 + '@hey-api/sdk': { 184 184 _handler: () => {}, 185 185 _handlerLegacy: () => {}, 186 - name: '@hey-api/services', 186 + name: '@hey-api/sdk', 187 187 }, 188 - '@hey-api/types': { 188 + '@hey-api/typescript': { 189 189 _handler: () => {}, 190 190 _handlerLegacy: () => {}, 191 191 enums: 'javascript', 192 - name: '@hey-api/types', 192 + name: '@hey-api/typescript', 193 193 }, 194 194 }, 195 195 useOptions: true,
+7 -7
packages/openapi-ts/src/generate/__tests__/index.spec.ts
··· 26 26 output: { 27 27 path: '', 28 28 }, 29 - pluginOrder: ['@hey-api/types', '@hey-api/schemas', '@hey-api/services'], 29 + pluginOrder: ['@hey-api/typescript', '@hey-api/schemas', '@hey-api/sdk'], 30 30 plugins: { 31 31 '@hey-api/schemas': { 32 32 _handler: () => {}, 33 33 _handlerLegacy: () => {}, 34 34 name: '@hey-api/schemas', 35 35 }, 36 - '@hey-api/services': { 36 + '@hey-api/sdk': { 37 37 _handler: () => {}, 38 38 _handlerLegacy: () => {}, 39 - name: '@hey-api/services', 39 + name: '@hey-api/sdk', 40 40 }, 41 - '@hey-api/types': { 41 + '@hey-api/typescript': { 42 42 _handler: () => {}, 43 43 _handlerLegacy: () => {}, 44 44 enums: 'javascript', 45 - name: '@hey-api/types', 45 + name: '@hey-api/typescript', 46 46 }, 47 47 }, 48 48 useOptions: true, ··· 53 53 dir: '/', 54 54 name: 'schemas.ts', 55 55 }), 56 - services: new TypeScriptFile({ 56 + sdk: new TypeScriptFile({ 57 57 dir: '/', 58 - name: 'services.ts', 58 + name: 'sdk.ts', 59 59 }), 60 60 types: new TypeScriptFile({ 61 61 dir: '/',
+5 -5
packages/openapi-ts/src/generate/__tests__/output.spec.ts
··· 27 27 format: 'prettier', 28 28 path: './dist', 29 29 }, 30 - pluginOrder: ['@hey-api/types', '@hey-api/schemas', '@hey-api/services'], 30 + pluginOrder: ['@hey-api/typescript', '@hey-api/schemas', '@hey-api/sdk'], 31 31 plugins: { 32 32 '@hey-api/schemas': { 33 33 _handler: () => {}, 34 34 _handlerLegacy: () => {}, 35 35 name: '@hey-api/schemas', 36 36 }, 37 - '@hey-api/services': { 37 + '@hey-api/sdk': { 38 38 _handler: () => {}, 39 39 _handlerLegacy: () => {}, 40 - name: '@hey-api/services', 40 + name: '@hey-api/sdk', 41 41 }, 42 - '@hey-api/types': { 42 + '@hey-api/typescript': { 43 43 _handler: () => {}, 44 44 _handlerLegacy: () => {}, 45 45 enums: 'javascript', 46 - name: '@hey-api/types', 46 + name: '@hey-api/typescript', 47 47 }, 48 48 }, 49 49 useOptions: false,
+2 -2
packages/openapi-ts/src/generate/indexFile.ts
··· 27 27 module: './core/ApiError', 28 28 }), 29 29 ); 30 - if (config.plugins['@hey-api/services']?.response === 'response') { 30 + if (config.plugins['@hey-api/sdk']?.response === 'response') { 31 31 files.index.add( 32 32 compiler.exportNamedDeclaration({ 33 33 exports: { asType: true, name: 'ApiResult' }, ··· 68 68 return; 69 69 } 70 70 71 - if (['schemas', 'services', 'transformers', 'types'].includes(name)) { 71 + if (['schemas', 'sdk', 'transformers', 'types'].includes(name)) { 72 72 files.index.add( 73 73 compiler.exportAllDeclaration({ 74 74 module: `./${file.nameWithoutExtension()}`,
+6 -6
packages/openapi-ts/src/generate/output.ts
··· 36 36 // TODO: parser - move to config.input 37 37 if (client) { 38 38 if ( 39 - config.plugins['@hey-api/services']?.include && 40 - config.plugins['@hey-api/services'].asClass 39 + config.plugins['@hey-api/sdk']?.include && 40 + config.plugins['@hey-api/sdk'].asClass 41 41 ) { 42 - const regexp = new RegExp(config.plugins['@hey-api/services'].include); 42 + const regexp = new RegExp(config.plugins['@hey-api/sdk'].include); 43 43 client.services = client.services.filter((service) => 44 44 regexp.test(service.name), 45 45 ); 46 46 } 47 47 48 - if (config.plugins['@hey-api/types']?.include) { 49 - const regexp = new RegExp(config.plugins['@hey-api/types'].include); 48 + if (config.plugins['@hey-api/typescript']?.include) { 49 + const regexp = new RegExp(config.plugins['@hey-api/typescript'].include); 50 50 client.models = client.models.filter((model) => regexp.test(model.name)); 51 51 } 52 52 } ··· 133 133 134 134 if ( 135 135 !file.isEmpty() && 136 - ['schemas', 'services', 'transformers', 'types'].includes(name) 136 + ['schemas', 'sdk', 'transformers', 'types'].includes(name) 137 137 ) { 138 138 indexFile.add( 139 139 compiler.exportAllDeclaration({
+1 -1
packages/openapi-ts/src/generate/utils.ts
··· 8 8 9 9 /** 10 10 * Construct a relative import path to modules. This is used for example 11 - * in plugins to import types or services module. 11 + * in plugins to import types or SDK module. 12 12 */ 13 13 export const relativeModulePath = ({ 14 14 moduleOutput,
+2 -2
packages/openapi-ts/src/index.spec.ts
··· 29 29 output: './generated/v3/', 30 30 plugins: [ 31 31 '@hey-api/schemas', 32 - '@hey-api/services', 33 - '@hey-api/types', 32 + '@hey-api/sdk', 33 + '@hey-api/typescript', 34 34 { 35 35 dates: true, 36 36 name: '@hey-api/transformers',
+2 -2
packages/openapi-ts/src/index.ts
··· 217 217 218 218 const userPlugins = ( 219 219 userConfig.plugins ?? [ 220 - '@hey-api/types', 220 + '@hey-api/typescript', 221 221 '@hey-api/schemas', 222 - '@hey-api/services', 222 + '@hey-api/sdk', 223 223 ] 224 224 ) 225 225 .map((plugin) => {
+1 -1
packages/openapi-ts/src/legacy/handlebars/compiled/client.js
··· 85 85 )) != null 86 86 ? stack1 87 87 : '') + 88 - " } from './services.gen';\n" 88 + " } from './sdk.gen';\n" 89 89 ); 90 90 }, 91 91 8: function (container, depth0, helpers, partials, data) {
+1 -1
packages/openapi-ts/src/legacy/handlebars/templates/client.hbs
··· 16 16 17 17 {{#if services}} 18 18 {{#each services}} 19 - import { {{{transformServiceName name}}} } from './services.gen'; 19 + import { {{{transformServiceName name}}} } from './sdk.gen'; 20 20 {{/each}} 21 21 {{/if}} 22 22
+2 -2
packages/openapi-ts/src/openApi/common/parser/__tests__/type.spec.ts
··· 6 6 vi.mock('../../../../utils/config', () => { 7 7 const config: Partial<Config> = { 8 8 plugins: { 9 - '@hey-api/types': { 9 + '@hey-api/typescript': { 10 10 _handler: () => {}, 11 11 _handlerLegacy: () => {}, 12 - name: '@hey-api/types', 12 + name: '@hey-api/typescript', 13 13 }, 14 14 }, 15 15 };
+3 -3
packages/openapi-ts/src/openApi/common/parser/operation.ts
··· 165 165 config: Config; 166 166 operationKey: string; 167 167 }): boolean => { 168 - const regexp = config.plugins['@hey-api/services']?.filter 169 - ? new RegExp(config.plugins['@hey-api/services']?.filter) 168 + const regexp = config.plugins['@hey-api/sdk']?.filter 169 + ? new RegExp(config.plugins['@hey-api/sdk']?.filter) 170 170 : undefined; 171 171 return !regexp || regexp.test(operationKey); 172 172 }; ··· 187 187 operationId: string | undefined; 188 188 path: string; 189 189 }): string => { 190 - if (config.plugins['@hey-api/services']?.operationId && operationId) { 190 + if (config.plugins['@hey-api/sdk']?.operationId && operationId) { 191 191 return camelCase({ 192 192 input: sanitizeNamespaceIdentifier(operationId), 193 193 });
+3 -3
packages/openapi-ts/src/openApi/shared/utils/operation.ts
··· 4 4 5 5 /** 6 6 * Returns an operation ID to use across the application. By default, we try 7 - * to use the provided ID. If it's not provided or the services are configured 7 + * to use the provided ID. If it's not provided or the SDK is configured 8 8 * to exclude it, we generate operation ID from its location. 9 9 */ 10 10 export const operationToId = ({ ··· 20 20 }): string => { 21 21 if ( 22 22 id && 23 - (!context.config.plugins['@hey-api/services'] || 24 - context.config.plugins['@hey-api/services'].operationId) 23 + (!context.config.plugins['@hey-api/sdk'] || 24 + context.config.plugins['@hey-api/sdk'].operationId) 25 25 ) { 26 26 return camelCase({ 27 27 input: sanitizeNamespaceIdentifier(id),
+2 -2
packages/openapi-ts/src/openApi/v3/parser/__tests__/getModel.spec.ts
··· 8 8 vi.mock('../../../../utils/config', () => { 9 9 const config: Partial<Config> = { 10 10 plugins: { 11 - '@hey-api/types': { 11 + '@hey-api/typescript': { 12 12 _handler: () => {}, 13 13 _handlerLegacy: () => {}, 14 - name: '@hey-api/types', 14 + name: '@hey-api/typescript', 15 15 }, 16 16 }, 17 17 };
+10 -10
packages/openapi-ts/src/plugins/@hey-api/schemas/__tests__/schemas.spec.ts
··· 28 28 output: { 29 29 path: '', 30 30 }, 31 - pluginOrder: ['@hey-api/types', '@hey-api/schemas', '@hey-api/services'], 31 + pluginOrder: ['@hey-api/typescript', '@hey-api/schemas', '@hey-api/sdk'], 32 32 plugins: { 33 33 '@hey-api/schemas': { 34 34 _handler: () => {}, 35 35 _handlerLegacy: () => {}, 36 36 name: '@hey-api/schemas', 37 37 }, 38 - '@hey-api/services': { 38 + '@hey-api/sdk': { 39 39 _handler: () => {}, 40 40 _handlerLegacy: () => {}, 41 - name: '@hey-api/services', 41 + name: '@hey-api/sdk', 42 42 }, 43 - '@hey-api/types': { 43 + '@hey-api/typescript': { 44 44 _handler: () => {}, 45 45 _handlerLegacy: () => {}, 46 46 enums: 'javascript', 47 - name: '@hey-api/types', 47 + name: '@hey-api/typescript', 48 48 }, 49 49 }, 50 50 useOptions: true, ··· 99 99 output: { 100 100 path: '', 101 101 }, 102 - pluginOrder: ['@hey-api/types', '@hey-api/schemas', '@hey-api/services'], 102 + pluginOrder: ['@hey-api/typescript', '@hey-api/schemas', '@hey-api/sdk'], 103 103 plugins: { 104 104 '@hey-api/schemas': { 105 105 _handler: () => {}, ··· 107 107 name: '@hey-api/schemas', 108 108 nameBuilder: nameFn, 109 109 }, 110 - '@hey-api/services': { 110 + '@hey-api/sdk': { 111 111 _handler: () => {}, 112 112 _handlerLegacy: () => {}, 113 - name: '@hey-api/services', 113 + name: '@hey-api/sdk', 114 114 }, 115 - '@hey-api/types': { 115 + '@hey-api/typescript': { 116 116 _handler: () => {}, 117 117 _handlerLegacy: () => {}, 118 118 enums: 'javascript', 119 - name: '@hey-api/types', 119 + name: '@hey-api/typescript', 120 120 }, 121 121 }, 122 122 useOptions: true,
+29 -29
packages/openapi-ts/src/plugins/@hey-api/services/__tests__/services.spec.ts packages/openapi-ts/src/plugins/@hey-api/sdk/__tests__/plugin.spec.ts
··· 12 12 13 13 vi.mock('node:fs'); 14 14 15 - describe('generateLegacyServices', () => { 15 + describe('handlerLegacy', () => { 16 16 it('writes to filesystem', async () => { 17 17 setConfig({ 18 18 client: { ··· 29 29 output: { 30 30 path: '', 31 31 }, 32 - pluginOrder: ['@hey-api/types', '@hey-api/schemas', '@hey-api/services'], 32 + pluginOrder: ['@hey-api/typescript', '@hey-api/schemas', '@hey-api/sdk'], 33 33 plugins: { 34 34 '@hey-api/schemas': { 35 35 _handler: () => {}, 36 36 _handlerLegacy: () => {}, 37 37 name: '@hey-api/schemas', 38 38 }, 39 - '@hey-api/services': { 39 + '@hey-api/sdk': { 40 40 _handler: () => {}, 41 41 _handlerLegacy: () => {}, 42 42 asClass: true, 43 - name: '@hey-api/services', 43 + name: '@hey-api/sdk', 44 44 }, 45 - '@hey-api/types': { 45 + '@hey-api/typescript': { 46 46 _handler: () => {}, 47 47 _handlerLegacy: () => {}, 48 - name: '@hey-api/types', 48 + name: '@hey-api/typescript', 49 49 }, 50 50 }, 51 51 useOptions: false, ··· 104 104 }, 105 105 }); 106 106 107 - files.services.write(); 107 + files.sdk.write(); 108 108 109 109 expect(writeFileSync).toHaveBeenCalledWith( 110 - expect.stringContaining(path.resolve('services.gen.ts')), 110 + expect.stringContaining(path.resolve('sdk.gen.ts')), 111 111 expect.anything(), 112 112 ); 113 113 }); ··· 169 169 output: { 170 170 path: '', 171 171 }, 172 - pluginOrder: ['@hey-api/types', '@hey-api/schemas', '@hey-api/services'], 172 + pluginOrder: ['@hey-api/typescript', '@hey-api/schemas', '@hey-api/sdk'], 173 173 plugins: { 174 174 '@hey-api/schemas': { 175 175 _handler: () => {}, 176 176 _handlerLegacy: () => {}, 177 177 name: '@hey-api/schemas', 178 178 }, 179 - '@hey-api/services': { 179 + '@hey-api/sdk': { 180 180 _handler: () => {}, 181 181 _handlerLegacy: () => {}, 182 182 asClass: true, 183 - name: '@hey-api/services', 183 + name: '@hey-api/sdk', 184 184 }, 185 - '@hey-api/types': { 185 + '@hey-api/typescript': { 186 186 _handler: () => {}, 187 187 _handlerLegacy: () => {}, 188 - name: '@hey-api/types', 188 + name: '@hey-api/typescript', 189 189 }, 190 190 }, 191 191 useOptions: false, ··· 207 207 }, 208 208 }); 209 209 210 - files.services.write(); 210 + files.sdk.write(); 211 211 212 212 expect(writeFileSync).toHaveBeenCalledWith( 213 - expect.stringContaining(path.resolve('services.gen.ts')), 213 + expect.stringContaining(path.resolve('sdk.gen.ts')), 214 214 expect.stringContaining('public static userGet()'), 215 215 ); 216 216 }); ··· 233 233 output: { 234 234 path: '', 235 235 }, 236 - pluginOrder: ['@hey-api/types', '@hey-api/schemas', '@hey-api/services'], 236 + pluginOrder: ['@hey-api/typescript', '@hey-api/schemas', '@hey-api/sdk'], 237 237 plugins: { 238 238 '@hey-api/schemas': { 239 239 _handler: () => {}, 240 240 _handlerLegacy: () => {}, 241 241 name: '@hey-api/schemas', 242 242 }, 243 - '@hey-api/services': { 243 + '@hey-api/sdk': { 244 244 _handler: () => {}, 245 245 _handlerLegacy: () => {}, 246 246 asClass: true, 247 247 methodNameBuilder, 248 - name: '@hey-api/services', 248 + name: '@hey-api/sdk', 249 249 }, 250 - '@hey-api/types': { 250 + '@hey-api/typescript': { 251 251 _handler: () => {}, 252 252 _handlerLegacy: () => {}, 253 - name: '@hey-api/types', 253 + name: '@hey-api/typescript', 254 254 }, 255 255 }, 256 256 useOptions: false, ··· 272 272 }, 273 273 }); 274 274 275 - files.services.write(); 275 + files.sdk.write(); 276 276 277 277 expect(writeFileSync).toHaveBeenCalledWith( 278 - expect.stringContaining(path.resolve('services.gen.ts')), 278 + expect.stringContaining(path.resolve('sdk.gen.ts')), 279 279 expect.stringContaining('public static customName()'), 280 280 ); 281 281 ··· 300 300 output: { 301 301 path: '', 302 302 }, 303 - pluginOrder: ['@hey-api/types', '@hey-api/schemas', '@hey-api/services'], 303 + pluginOrder: ['@hey-api/typescript', '@hey-api/schemas', '@hey-api/sdk'], 304 304 plugins: { 305 305 '@hey-api/schemas': { 306 306 _handler: () => {}, 307 307 _handlerLegacy: () => {}, 308 308 name: '@hey-api/schemas', 309 309 }, 310 - '@hey-api/services': { 310 + '@hey-api/sdk': { 311 311 _handler: () => {}, 312 312 _handlerLegacy: () => {}, 313 313 asClass: false, 314 314 methodNameBuilder, 315 - name: '@hey-api/services', 315 + name: '@hey-api/sdk', 316 316 }, 317 - '@hey-api/types': { 317 + '@hey-api/typescript': { 318 318 _handler: () => {}, 319 319 _handlerLegacy: () => {}, 320 - name: '@hey-api/types', 320 + name: '@hey-api/typescript', 321 321 }, 322 322 }, 323 323 useOptions: false, ··· 339 339 }, 340 340 }); 341 341 342 - files.services.write(); 342 + files.sdk.write(); 343 343 344 344 expect(writeFileSync).toHaveBeenCalledWith( 345 - expect.stringContaining(path.resolve('services.gen.ts')), 345 + expect.stringContaining(path.resolve('sdk.gen.ts')), 346 346 expect.stringContaining('public static customName()'), 347 347 ); 348 348
+4 -4
packages/openapi-ts/src/plugins/@hey-api/services/config.ts packages/openapi-ts/src/plugins/@hey-api/sdk/config.ts
··· 4 4 import type { Config } from './types'; 5 5 6 6 export const defaultConfig: PluginConfig<Config> = { 7 - _dependencies: ['@hey-api/types'], 7 + _dependencies: ['@hey-api/typescript'], 8 8 _handler: handler, 9 9 _handlerLegacy: handlerLegacy, 10 10 _optionalDependencies: ['@hey-api/transformers'], 11 11 asClass: false, 12 - name: '@hey-api/services', 12 + name: '@hey-api/sdk', 13 13 operationId: true, 14 - output: 'services', 14 + output: 'sdk', 15 15 response: 'body', 16 16 serviceNameBuilder: '{{name}}Service', 17 17 }; 18 18 19 19 /** 20 - * Type helper for `@hey-api/services` plugin, returns {@link PluginConfig} object 20 + * Type helper for `@hey-api/sdk` plugin, returns {@link PluginConfig} object 21 21 */ 22 22 export const defineConfig: DefineConfig<Config> = (config) => ({ 23 23 ...defaultConfig,
packages/openapi-ts/src/plugins/@hey-api/services/index.ts packages/openapi-ts/src/plugins/@hey-api/sdk/index.ts
+28 -28
packages/openapi-ts/src/plugins/@hey-api/services/plugin-legacy.ts packages/openapi-ts/src/plugins/@hey-api/sdk/plugin-legacy.ts
··· 210 210 211 211 if ( 212 212 config.useOptions && 213 - config.plugins['@hey-api/services']?.response === 'response' 213 + config.plugins['@hey-api/sdk']?.response === 'response' 214 214 ) { 215 215 returnType = compiler.typeNode('ApiResult', [returnType]); 216 216 } ··· 496 496 id: string; 497 497 operation: IROperationObject | Operation; 498 498 }) => { 499 - if (config.plugins['@hey-api/services']?.methodNameBuilder) { 500 - return config.plugins['@hey-api/services'].methodNameBuilder(operation); 499 + if (config.plugins['@hey-api/sdk']?.methodNameBuilder) { 500 + return config.plugins['@hey-api/sdk'].methodNameBuilder(operation); 501 501 } 502 502 503 503 if (handleIllegal && id.match(reservedWordsRegExp)) { ··· 656 656 }; 657 657 658 658 if ( 659 - !config.plugins['@hey-api/services']?.asClass && 659 + !config.plugins['@hey-api/sdk']?.asClass && 660 660 !legacyNameFromConfig(config) 661 661 ) { 662 662 for (const operation of service.operations) { ··· 776 776 777 777 if (!config.client.name) { 778 778 throw new Error( 779 - '🚫 client needs to be set to generate services - which HTTP client do you want to use?', 779 + '🚫 client needs to be set to generate SDKs - which HTTP client do you want to use?', 780 780 ); 781 781 } 782 782 783 783 const isLegacy = isLegacyClient(config); 784 784 785 - const servicesOutput = 'services'; 785 + const sdkOutput = 'sdk'; 786 786 787 - files.services = new TypeScriptFile({ 787 + files.sdk = new TypeScriptFile({ 788 788 dir: config.output.path, 789 - name: `${servicesOutput}.ts`, 789 + name: `${sdkOutput}.ts`, 790 790 }); 791 791 792 792 // Import required packages and core files. 793 793 if (!isLegacy) { 794 - files.services.import({ 795 - module: clientModulePath({ config, sourceOutput: servicesOutput }), 794 + files.sdk.import({ 795 + module: clientModulePath({ config, sourceOutput: sdkOutput }), 796 796 name: 'createClient', 797 797 }); 798 - files.services.import({ 799 - module: clientModulePath({ config, sourceOutput: servicesOutput }), 798 + files.sdk.import({ 799 + module: clientModulePath({ config, sourceOutput: sdkOutput }), 800 800 name: 'createConfig', 801 801 }); 802 - files.services.import({ 802 + files.sdk.import({ 803 803 asType: true, 804 - module: clientModulePath({ config, sourceOutput: servicesOutput }), 804 + module: clientModulePath({ config, sourceOutput: sdkOutput }), 805 805 name: clientOptionsTypeName(), 806 806 }); 807 807 } else { 808 808 if (config.client.name === 'legacy/angular') { 809 - files.services.import({ 809 + files.sdk.import({ 810 810 module: '@angular/core', 811 811 name: 'Injectable', 812 812 }); 813 813 814 814 if (!legacyNameFromConfig(config)) { 815 - files.services.import({ 815 + files.sdk.import({ 816 816 module: '@angular/common/http', 817 817 name: 'HttpClient', 818 818 }); 819 819 } 820 820 821 - files.services.import({ 821 + files.sdk.import({ 822 822 asType: true, 823 823 module: 'rxjs', 824 824 name: 'Observable', 825 825 }); 826 826 } else { 827 - files.services.import({ 827 + files.sdk.import({ 828 828 asType: true, 829 829 module: './core/CancelablePromise', 830 830 name: 'CancelablePromise', 831 831 }); 832 832 } 833 833 834 - if (config.plugins['@hey-api/services']?.response === 'response') { 835 - files.services.import({ 834 + if (config.plugins['@hey-api/sdk']?.response === 'response') { 835 + files.sdk.import({ 836 836 asType: true, 837 837 module: './core/ApiResult', 838 838 name: 'ApiResult', ··· 840 840 } 841 841 842 842 if (legacyNameFromConfig(config)) { 843 - files.services.import({ 843 + files.sdk.import({ 844 844 asType: config.client.name !== 'legacy/angular', 845 845 module: './core/BaseHttpRequest', 846 846 name: 'BaseHttpRequest', 847 847 }); 848 848 } else { 849 - files.services.import({ 849 + files.sdk.import({ 850 850 module: './core/OpenAPI', 851 851 name: 'OpenAPI', 852 852 }); 853 - files.services.import({ 853 + files.sdk.import({ 854 854 alias: '__request', 855 855 module: './core/request', 856 856 name: 'request', ··· 872 872 }), 873 873 name: 'client', 874 874 }); 875 - files.services.add(statement); 875 + files.sdk.add(statement); 876 876 } 877 877 878 878 for (const service of client.services) { 879 879 processService({ 880 880 client, 881 881 onClientImport: (imported) => { 882 - files.services.import({ 883 - module: clientModulePath({ config, sourceOutput: servicesOutput }), 882 + files.sdk.import({ 883 + module: clientModulePath({ config, sourceOutput: sdkOutput }), 884 884 name: imported, 885 885 }); 886 886 }, 887 887 onImport: (imported) => { 888 - files.services.import({ 888 + files.sdk.import({ 889 889 // this detection could be done safer, but it shouldn't cause any issues 890 890 asType: !imported.endsWith('Transformer'), 891 891 module: `./${files.types.nameWithoutExtension()}`, ··· 893 893 }); 894 894 }, 895 895 onNode: (node) => { 896 - files.services.add(node); 896 + files.sdk.add(node); 897 897 }, 898 898 service, 899 899 });
+24 -24
packages/openapi-ts/src/plugins/@hey-api/services/plugin.ts packages/openapi-ts/src/plugins/@hey-api/sdk/plugin.ts
··· 63 63 })}${affix}`; 64 64 }; 65 65 66 - const servicesId = 'services'; 66 + const sdkId = 'sdk'; 67 67 68 68 const requestOptions = ({ 69 69 context, ··· 74 74 operation: IROperationObject; 75 75 path: string; 76 76 }) => { 77 - const file = context.file({ id: servicesId })!; 78 - const servicesOutput = file.nameWithoutExtension(); 77 + const file = context.file({ id: sdkId })!; 78 + const sdkOutput = file.nameWithoutExtension(); 79 79 80 80 const obj: ObjectValue[] = [{ spread: 'options' }]; 81 81 ··· 86 86 file.import({ 87 87 module: clientModulePath({ 88 88 config: context.config, 89 - sourceOutput: servicesOutput, 89 + sourceOutput: sdkOutput, 90 90 }), 91 91 name: 'formDataBodySerializer', 92 92 }); ··· 98 98 file.import({ 99 99 module: clientModulePath({ 100 100 config: context.config, 101 - sourceOutput: servicesOutput, 101 + sourceOutput: sdkOutput, 102 102 }), 103 103 name: 'urlSearchParamsBodySerializer', 104 104 }); ··· 188 188 }); 189 189 }; 190 190 191 - const generateClassServices = ({ context }: { context: IRContext }) => { 192 - const file = context.file({ id: servicesId })!; 191 + const generateClassSdk = ({ context }: { context: IRContext }) => { 192 + const file = context.file({ id: sdkId })!; 193 193 const typesModule = file.relativePathToFile({ context, id: 'types' }); 194 194 195 - const services = new Map<string, Array<ts.MethodDeclaration>>(); 195 + const sdks = new Map<string, Array<ts.MethodDeclaration>>(); 196 196 197 197 context.subscribe('operation', ({ method, operation, path }) => { 198 198 const identifierData = context.file({ id: 'types' })!.identifier({ ··· 288 288 } 289 289 290 290 for (const tag of uniqueTags) { 291 - const serviceName = getServiceName(tag); 292 - const nodes = services.get(serviceName) ?? []; 291 + const name = getServiceName(tag); 292 + const nodes = sdks.get(name) ?? []; 293 293 nodes.push(node); 294 - services.set(serviceName, nodes); 294 + sdks.set(name, nodes); 295 295 } 296 296 }); 297 297 298 298 context.subscribe('after', () => { 299 - for (const [serviceName, nodes] of services) { 299 + for (const [name, nodes] of sdks) { 300 300 const node = compiler.classDeclaration({ 301 301 decorator: undefined, 302 302 members: nodes, 303 303 name: transformServiceName({ 304 304 config: context.config, 305 - name: serviceName, 305 + name, 306 306 }), 307 307 }); 308 308 file.add(node); ··· 310 310 }); 311 311 }; 312 312 313 - const generateFlatServices = ({ context }: { context: IRContext }) => { 314 - const file = context.file({ id: servicesId })!; 313 + const generateFlatSdk = ({ context }: { context: IRContext }) => { 314 + const file = context.file({ id: sdkId })!; 315 315 const typesModule = file.relativePathToFile({ context, id: 'types' }); 316 316 317 317 context.subscribe('operation', ({ method, operation, path }) => { ··· 409 409 export const handler: PluginHandler<Config> = ({ context, plugin }) => { 410 410 if (!context.config.client.name) { 411 411 throw new Error( 412 - '🚫 client needs to be set to generate services - which HTTP client do you want to use?', 412 + '🚫 client needs to be set to generate SDKs - which HTTP client do you want to use?', 413 413 ); 414 414 } 415 415 416 416 const file = context.createFile({ 417 - id: servicesId, 417 + id: sdkId, 418 418 path: plugin.output, 419 419 }); 420 - const servicesOutput = file.nameWithoutExtension(); 420 + const sdkOutput = file.nameWithoutExtension(); 421 421 422 422 // import required packages and core files 423 423 file.import({ 424 424 module: clientModulePath({ 425 425 config: context.config, 426 - sourceOutput: servicesOutput, 426 + sourceOutput: sdkOutput, 427 427 }), 428 428 name: 'createClient', 429 429 }); 430 430 file.import({ 431 431 module: clientModulePath({ 432 432 config: context.config, 433 - sourceOutput: servicesOutput, 433 + sourceOutput: sdkOutput, 434 434 }), 435 435 name: 'createConfig', 436 436 }); ··· 438 438 asType: true, 439 439 module: clientModulePath({ 440 440 config: context.config, 441 - sourceOutput: servicesOutput, 441 + sourceOutput: sdkOutput, 442 442 }), 443 443 name: clientOptionsTypeName(), 444 444 }); ··· 458 458 }); 459 459 file.add(statement); 460 460 461 - if (context.config.plugins['@hey-api/services']?.asClass) { 462 - generateClassServices({ context }); 461 + if (context.config.plugins['@hey-api/sdk']?.asClass) { 462 + generateClassSdk({ context }); 463 463 } else { 464 - generateFlatServices({ context }); 464 + generateFlatSdk({ context }); 465 465 } 466 466 };
+13 -13
packages/openapi-ts/src/plugins/@hey-api/services/types.d.ts packages/openapi-ts/src/plugins/@hey-api/sdk/types.d.ts
··· 2 2 import type { Operation } from '../../../types/client'; 3 3 import type { PluginName } from '../../types'; 4 4 5 - export interface Config extends PluginName<'@hey-api/services'> { 5 + export interface Config extends PluginName<'@hey-api/sdk'> { 6 6 /** 7 - * Group operation methods into service classes? When enabled, you can 8 - * select which classes to export with `services.include` and/or 9 - * transform their names with `services.name`. 7 + * Group operation methods into classes? When enabled, you can 8 + * select which classes to export with `sdk.include` and/or 9 + * transform their names with `sdk.serviceNameBuilder`. 10 10 * 11 - * Note that by enabling this option, your services will **NOT** 11 + * Note that by enabling this option, your SDKs will **NOT** 12 12 * support {@link https://developer.mozilla.org/docs/Glossary/Tree_shaking tree-shaking}. 13 13 * For this reason, it is disabled by default. 14 14 * @default false 15 15 */ 16 16 asClass?: boolean; 17 17 /** 18 - * Filter endpoints to be included in the generated services. 19 - * The provided string should be a regular expression where matched 20 - * results will be included in the output. The input pattern this 21 - * string will be tested against is `{method} {path}`. For example, 22 - * you can match `POST /api/v1/foo` with `^POST /api/v1/foo$`. 18 + * Filter endpoints to be included in the generated SDK. The provided 19 + * string should be a regular expression where matched results will be 20 + * included in the output. The input pattern this string will be tested 21 + * against is `{method} {path}`. For example, you can match 22 + * `POST /api/v1/foo` with `^POST /api/v1/foo$`. 23 23 * 24 24 * This option does not work with the experimental parser. 25 25 * ··· 29 29 /** 30 30 * Include only service classes with names matching regular expression 31 31 * 32 - * This option has no effect if `services.asClass` is `false`. 32 + * This option has no effect if `sdk.asClass` is `false`. 33 33 */ 34 34 include?: string; 35 35 /** ··· 44 44 operationId?: boolean; 45 45 /** 46 46 * Name of the generated file. 47 - * @default 'services' 47 + * @default 'sdk' 48 48 */ 49 49 output?: string; 50 50 /** ··· 57 57 * Customize the generated service class names. The name variable is 58 58 * obtained from your OpenAPI specification tags. 59 59 * 60 - * This option has no effect if `services.asClass` is `false`. 60 + * This option has no effect if `sdk.asClass` is `false`. 61 61 * @default '{{name}}Service' 62 62 */ 63 63 serviceNameBuilder?: string;
+1 -1
packages/openapi-ts/src/plugins/@hey-api/transformers/config.ts
··· 4 4 import type { Config } from './types'; 5 5 6 6 export const defaultConfig: PluginConfig<Config> = { 7 - _dependencies: ['@hey-api/types'], 7 + _dependencies: ['@hey-api/typescript'], 8 8 _handler: handler, 9 9 _handlerLegacy: handlerLegacy, 10 10 dates: false,
+2 -2
packages/openapi-ts/src/plugins/@hey-api/transformers/plugin-legacy.ts
··· 10 10 modelResponseTransformerTypeName, 11 11 operationResponseTransformerTypeName, 12 12 operationResponseTypeName, 13 - } from '../services/plugin-legacy'; 14 - import { generateType, type TypesProps } from '../types/plugin-legacy'; 13 + } from '../sdk/plugin-legacy'; 14 + import { generateType, type TypesProps } from '../typescript/plugin-legacy'; 15 15 import type { Config } from './types'; 16 16 17 17 interface ModelProps extends TypesProps {
+1 -1
packages/openapi-ts/src/plugins/@hey-api/transformers/plugin.ts
··· 7 7 import { camelCase } from '../../../utils/camelCase'; 8 8 import { irRef } from '../../../utils/ref'; 9 9 import type { PluginHandler } from '../../types'; 10 - import { operationIrRef } from '../services/plugin'; 10 + import { operationIrRef } from '../sdk/plugin'; 11 11 import type { Config } from './types'; 12 12 13 13 interface OperationIRRef {
+6 -6
packages/openapi-ts/src/plugins/@hey-api/types/__tests__/types.spec.ts packages/openapi-ts/src/plugins/@hey-api/typescript/__tests__/plugin.spec.ts
··· 27 27 output: { 28 28 path: '', 29 29 }, 30 - pluginOrder: ['@hey-api/types', '@hey-api/schemas', '@hey-api/services'], 30 + pluginOrder: ['@hey-api/typescript', '@hey-api/schemas', '@hey-api/sdk'], 31 31 plugins: { 32 32 '@hey-api/schemas': { 33 33 _handler: () => {}, 34 34 _handlerLegacy: () => {}, 35 35 name: '@hey-api/schemas', 36 36 }, 37 - '@hey-api/services': { 37 + '@hey-api/sdk': { 38 38 _handler: () => {}, 39 39 _handlerLegacy: () => {}, 40 - name: '@hey-api/services', 40 + name: '@hey-api/sdk', 41 41 }, 42 - '@hey-api/types': { 42 + '@hey-api/typescript': { 43 43 _handler: () => {}, 44 44 _handlerLegacy: () => {}, 45 45 enums: 'javascript', 46 - name: '@hey-api/types', 46 + name: '@hey-api/typescript', 47 47 }, 48 48 }, 49 49 useOptions: true, ··· 93 93 files, 94 94 openApi, 95 95 plugin: { 96 - name: '@hey-api/types', 96 + name: '@hey-api/typescript', 97 97 output: '', 98 98 }, 99 99 });
+2 -2
packages/openapi-ts/src/plugins/@hey-api/types/config.ts packages/openapi-ts/src/plugins/@hey-api/typescript/config.ts
··· 7 7 _handler: handler, 8 8 _handlerLegacy: handlerLegacy, 9 9 enums: false, 10 - name: '@hey-api/types', 10 + name: '@hey-api/typescript', 11 11 output: 'types', 12 12 style: 'preserve', 13 13 tree: false, 14 14 }; 15 15 16 16 /** 17 - * Type helper for `@hey-api/types` plugin, returns {@link PluginConfig} object 17 + * Type helper for `@hey-api/typescript` plugin, returns {@link PluginConfig} object 18 18 */ 19 19 export const defineConfig: DefineConfig<Config> = (config) => ({ 20 20 ...defaultConfig,
packages/openapi-ts/src/plugins/@hey-api/types/index.ts packages/openapi-ts/src/plugins/@hey-api/typescript/index.ts
+10 -8
packages/openapi-ts/src/plugins/@hey-api/types/plugin-legacy.ts packages/openapi-ts/src/plugins/@hey-api/typescript/plugin-legacy.ts
··· 23 23 operationDataTypeName, 24 24 operationErrorTypeName, 25 25 operationResponseTypeName, 26 - } from '../services/plugin-legacy'; 26 + } from '../sdk/plugin-legacy'; 27 27 import type { Config } from './types'; 28 28 29 29 export interface TypesProps { ··· 136 136 processType(props); 137 137 138 138 props.model.enums.forEach((enumerator) => { 139 - if (config.plugins['@hey-api/types']?.enums !== 'typescript+namespace') { 139 + if ( 140 + config.plugins['@hey-api/typescript']?.enums !== 'typescript+namespace' 141 + ) { 140 142 return processEnum({ 141 143 ...props, 142 144 model: enumerator, ··· 182 184 ]; 183 185 184 186 if ( 185 - config.plugins['@hey-api/types']?.enums === 'typescript' || 186 - config.plugins['@hey-api/types']?.enums === 'typescript+namespace' 187 + config.plugins['@hey-api/typescript']?.enums === 'typescript' || 188 + config.plugins['@hey-api/typescript']?.enums === 'typescript+namespace' 187 189 ) { 188 190 generateEnum({ 189 191 client, ··· 202 204 meta: model.meta, 203 205 onCreated: (name) => { 204 206 // create a separate JavaScript object export 205 - if (config.plugins['@hey-api/types']?.enums === 'javascript') { 207 + if (config.plugins['@hey-api/typescript']?.enums === 'javascript') { 206 208 const expression = compiler.objectExpression({ 207 209 multiLine: true, 208 210 obj: Object.entries(properties).map(([key, value]) => ({ ··· 299 301 const config = getConfig(); 300 302 301 303 if ( 302 - !config.plugins['@hey-api/services'] && 303 - !config.plugins['@hey-api/types']?.tree 304 + !config.plugins['@hey-api/sdk'] && 305 + !config.plugins['@hey-api/typescript']?.tree 304 306 ) { 305 307 return; 306 308 } ··· 588 590 return pathKey; 589 591 }); 590 592 591 - if (config.plugins['@hey-api/types']?.tree) { 593 + if (config.plugins['@hey-api/typescript']?.tree) { 592 594 generateType({ 593 595 client, 594 596 meta: {
+13 -7
packages/openapi-ts/src/plugins/@hey-api/types/plugin.ts packages/openapi-ts/src/plugins/@hey-api/typescript/plugin.ts
··· 14 14 import { escapeComment } from '../../../utils/escape'; 15 15 import { irRef, isRefOpenApiComponent } from '../../../utils/ref'; 16 16 import type { PluginHandler } from '../../types'; 17 - import { operationIrRef } from '../services/plugin'; 17 + import { operationIrRef } from '../sdk/plugin'; 18 18 import type { Config } from './types'; 19 19 20 20 interface SchemaWithType<T extends Required<IRSchemaObject>['type']> ··· 147 147 if ( 148 148 !identifier.created && 149 149 !isRefOpenApiComponent($ref) && 150 - context.config.plugins['@hey-api/types']?.enums !== 'typescript+namespace' 150 + context.config.plugins['@hey-api/typescript']?.enums !== 151 + 'typescript+namespace' 151 152 ) { 152 153 return; 153 154 } ··· 189 190 // they have a duplicate value. 190 191 if ( 191 192 !identifier.created && 192 - context.config.plugins['@hey-api/types']?.enums !== 'typescript+namespace' 193 + context.config.plugins['@hey-api/typescript']?.enums !== 194 + 'typescript+namespace' 193 195 ) { 194 196 return; 195 197 } ··· 294 296 295 297 // when enums are disabled (default), emit only reusable components 296 298 // as types, otherwise the output would be broken if we skipped all enums 297 - if (!context.config.plugins['@hey-api/types']?.enums && isRefComponent) { 299 + if ( 300 + !context.config.plugins['@hey-api/typescript']?.enums && 301 + isRefComponent 302 + ) { 298 303 const typeNode = addTypeEnum({ 299 304 $ref, 300 305 context, ··· 305 310 } 306 311 } 307 312 308 - if (context.config.plugins['@hey-api/types']?.enums === 'javascript') { 313 + if (context.config.plugins['@hey-api/typescript']?.enums === 'javascript') { 309 314 const typeNode = addTypeEnum({ 310 315 $ref, 311 316 context, ··· 325 330 } 326 331 } 327 332 328 - if (context.config.plugins['@hey-api/types']?.enums === 'typescript') { 333 + if (context.config.plugins['@hey-api/typescript']?.enums === 'typescript') { 329 334 const enumNode = addTypeScriptEnum({ 330 335 $ref, 331 336 context, ··· 337 342 } 338 343 339 344 if ( 340 - context.config.plugins['@hey-api/types']?.enums === 'typescript+namespace' 345 + context.config.plugins['@hey-api/typescript']?.enums === 346 + 'typescript+namespace' 341 347 ) { 342 348 const enumNode = addTypeScriptEnum({ 343 349 $ref,
+1 -1
packages/openapi-ts/src/plugins/@hey-api/types/types.d.ts packages/openapi-ts/src/plugins/@hey-api/typescript/types.d.ts
··· 1 1 import type { PluginName } from '../../types'; 2 2 3 - export interface Config extends PluginName<'@hey-api/types'> { 3 + export interface Config extends PluginName<'@hey-api/typescript'> { 4 4 /** 5 5 * Generate enum definitions? 6 6 * @default false
+1 -1
packages/openapi-ts/src/plugins/@tanstack/angular-query-experimental/config.ts
··· 4 4 import type { Config } from './types'; 5 5 6 6 export const defaultConfig: PluginConfig<Config> = { 7 - _dependencies: ['@hey-api/services', '@hey-api/types'], 7 + _dependencies: ['@hey-api/sdk', '@hey-api/typescript'], 8 8 _handler: handler, 9 9 _handlerLegacy: handlerLegacy, 10 10 infiniteQueryOptions: true,
+7 -7
packages/openapi-ts/src/plugins/@tanstack/query-core/plugin-legacy.ts
··· 30 30 operationOptionsType, 31 31 operationResponseTypeName, 32 32 serviceFunctionIdentifier, 33 - } from '../../@hey-api/services/plugin-legacy'; 33 + } from '../../@hey-api/sdk/plugin-legacy'; 34 34 import type { PluginLegacyHandler } from '../../types'; 35 35 import type { Config as AngularQueryConfig } from '../angular-query-experimental'; 36 36 import type { Config as ReactQueryConfig } from '../react-query'; ··· 719 719 processedOperations.set(operationKey, true); 720 720 721 721 const queryFn = [ 722 - config.plugins['@hey-api/services']?.asClass && 722 + config.plugins['@hey-api/sdk']?.asClass && 723 723 transformServiceName({ 724 724 config, 725 725 name: service.name, 726 726 }), 727 727 serviceFunctionIdentifier({ 728 728 config, 729 - handleIllegal: !config.plugins['@hey-api/services']?.asClass, 729 + handleIllegal: !config.plugins['@hey-api/sdk']?.asClass, 730 730 id: operation.name, 731 731 operation, 732 732 }), ··· 1294 1294 file.add(statement); 1295 1295 } 1296 1296 1297 - const servicesModulePath = relativeModulePath({ 1298 - moduleOutput: files.services.nameWithoutExtension(), 1297 + const sdkModulePath = relativeModulePath({ 1298 + moduleOutput: files.sdk.nameWithoutExtension(), 1299 1299 sourceOutput: plugin.output, 1300 1300 }); 1301 1301 1302 1302 if (hasQueries || hasInfiniteQueries) { 1303 1303 file.import({ 1304 - module: servicesModulePath, 1304 + module: sdkModulePath, 1305 1305 name: 'client', 1306 1306 }); 1307 1307 } 1308 1308 1309 1309 if (hasUsedQueryFn) { 1310 1310 file.import({ 1311 - module: servicesModulePath, 1311 + module: sdkModulePath, 1312 1312 name: queryFn.split('.')[0], 1313 1313 }); 1314 1314 }
+7 -7
packages/openapi-ts/src/plugins/@tanstack/query-core/plugin.ts
··· 20 20 import { getConfig } from '../../../utils/config'; 21 21 import { getServiceName } from '../../../utils/postprocess'; 22 22 import { transformServiceName } from '../../../utils/transform'; 23 - import { operationIrRef } from '../../@hey-api/services/plugin'; 23 + import { operationIrRef } from '../../@hey-api/sdk/plugin'; 24 24 import { 25 25 operationOptionsType, 26 26 serviceFunctionIdentifier, 27 - } from '../../@hey-api/services/plugin-legacy'; 28 - import { schemaToType } from '../../@hey-api/types/plugin'; 27 + } from '../../@hey-api/sdk/plugin-legacy'; 28 + import { schemaToType } from '../../@hey-api/typescript/plugin'; 29 29 import type { PluginHandler } from '../../types'; 30 30 import type { Config as AngularQueryConfig } from '../angular-query-experimental'; 31 31 import type { Config as ReactQueryConfig } from '../react-query'; ··· 676 676 677 677 context.subscribe('operation', ({ method, operation }) => { 678 678 const queryFn = [ 679 - context.config.plugins['@hey-api/services']?.asClass && 679 + context.config.plugins['@hey-api/sdk']?.asClass && 680 680 transformServiceName({ 681 681 config: context.config, 682 682 name: getServiceName(operation.tags?.[0] || 'default'), 683 683 }), 684 684 serviceFunctionIdentifier({ 685 685 config: context.config, 686 - handleIllegal: !context.config.plugins['@hey-api/services']?.asClass, 686 + handleIllegal: !context.config.plugins['@hey-api/sdk']?.asClass, 687 687 id: operation.id, 688 688 operation, 689 689 }), ··· 1177 1177 file.import({ 1178 1178 module: context 1179 1179 .file({ id: plugin.name })! 1180 - .relativePathToFile({ context, id: 'services' }), 1180 + .relativePathToFile({ context, id: 'sdk' }), 1181 1181 name: 'client', 1182 1182 }); 1183 1183 } ··· 1186 1186 file.import({ 1187 1187 module: context 1188 1188 .file({ id: plugin.name })! 1189 - .relativePathToFile({ context, id: 'services' }), 1189 + .relativePathToFile({ context, id: 'sdk' }), 1190 1190 name: queryFn.split('.')[0], 1191 1191 }); 1192 1192 }
+1 -1
packages/openapi-ts/src/plugins/@tanstack/react-query/config.ts
··· 4 4 import type { Config } from './types'; 5 5 6 6 export const defaultConfig: PluginConfig<Config> = { 7 - _dependencies: ['@hey-api/services', '@hey-api/types'], 7 + _dependencies: ['@hey-api/sdk', '@hey-api/typescript'], 8 8 _handler: handler, 9 9 _handlerLegacy: handlerLegacy, 10 10 infiniteQueryOptions: true,
+1 -1
packages/openapi-ts/src/plugins/@tanstack/solid-query/config.ts
··· 4 4 import type { Config } from './types'; 5 5 6 6 export const defaultConfig: PluginConfig<Config> = { 7 - _dependencies: ['@hey-api/services', '@hey-api/types'], 7 + _dependencies: ['@hey-api/sdk', '@hey-api/typescript'], 8 8 _handler: handler, 9 9 _handlerLegacy: handlerLegacy, 10 10 infiniteQueryOptions: true,
+1 -1
packages/openapi-ts/src/plugins/@tanstack/svelte-query/config.ts
··· 4 4 import type { Config } from './types'; 5 5 6 6 export const defaultConfig: PluginConfig<Config> = { 7 - _dependencies: ['@hey-api/services', '@hey-api/types'], 7 + _dependencies: ['@hey-api/sdk', '@hey-api/typescript'], 8 8 _handler: handler, 9 9 _handlerLegacy: handlerLegacy, 10 10 infiniteQueryOptions: true,
+1 -1
packages/openapi-ts/src/plugins/@tanstack/vue-query/config.ts
··· 4 4 import type { Config } from './types'; 5 5 6 6 export const defaultConfig: PluginConfig<Config> = { 7 - _dependencies: ['@hey-api/services', '@hey-api/types'], 7 + _dependencies: ['@hey-api/sdk', '@hey-api/typescript'], 8 8 _handler: handler, 9 9 _handlerLegacy: handlerLegacy, 10 10 infiniteQueryOptions: true,
+1 -1
packages/openapi-ts/src/plugins/fastify/config.ts
··· 3 3 import type { Config } from './types'; 4 4 5 5 export const defaultConfig: PluginConfig<Config> = { 6 - _dependencies: ['@hey-api/types'], 6 + _dependencies: ['@hey-api/typescript'], 7 7 _handler: handler, 8 8 _handlerLegacy: () => {}, 9 9 name: 'fastify',
+1 -1
packages/openapi-ts/src/plugins/fastify/plugin.ts
··· 5 5 import type { IROperationObject } from '../../ir/ir'; 6 6 import { operationResponsesMap } from '../../ir/operation'; 7 7 import { hasParameterGroupObjectRequired } from '../../ir/parameter'; 8 - import { operationIrRef } from '../@hey-api/services/plugin'; 8 + import { operationIrRef } from '../@hey-api/sdk/plugin'; 9 9 import type { PluginHandler } from '../types'; 10 10 import type { Config } from './types'; 11 11
+12 -12
packages/openapi-ts/src/plugins/index.ts
··· 3 3 defaultConfig as heyApiSchemas, 4 4 } from './@hey-api/schemas'; 5 5 import { 6 - type Config as HeyApiServices, 7 - defaultConfig as heyApiServices, 8 - } from './@hey-api/services'; 6 + type Config as HeyApiSdk, 7 + defaultConfig as heyApiSdk, 8 + } from './@hey-api/sdk'; 9 9 import { 10 10 type Config as HeyApiTransformers, 11 11 defaultConfig as heyApiTransformers, 12 12 } from './@hey-api/transformers'; 13 13 import { 14 - type Config as HeyApiTypes, 15 - defaultConfig as heyApiTypes, 16 - } from './@hey-api/types'; 14 + type Config as HeyApiTypeScript, 15 + defaultConfig as heyApiTypeScript, 16 + } from './@hey-api/typescript'; 17 17 import { 18 18 type Config as TanStackAngularQueryExperimental, 19 19 defaultConfig as tanStackAngularQueryExperimental, ··· 47 47 */ 48 48 export type UserPlugins = 49 49 | UserConfig<HeyApiSchemas> 50 - | UserConfig<HeyApiServices> 50 + | UserConfig<HeyApiSdk> 51 51 | UserConfig<HeyApiTransformers> 52 - | UserConfig<HeyApiTypes> 52 + | UserConfig<HeyApiTypeScript> 53 53 | UserConfig<TanStackAngularQueryExperimental> 54 54 | UserConfig<TanStackReactQuery> 55 55 | UserConfig<TanStackSolidQuery> ··· 60 60 61 61 export type ClientPlugins = 62 62 | PluginConfig<HeyApiSchemas> 63 - | PluginConfig<HeyApiServices> 63 + | PluginConfig<HeyApiSdk> 64 64 | PluginConfig<HeyApiTransformers> 65 - | PluginConfig<HeyApiTypes> 65 + | PluginConfig<HeyApiTypeScript> 66 66 | PluginConfig<TanStackAngularQueryExperimental> 67 67 | PluginConfig<TanStackReactQuery> 68 68 | PluginConfig<TanStackSolidQuery> ··· 73 73 74 74 export const defaultPluginConfigs: DefaultPluginConfigsMap<ClientPlugins> = { 75 75 '@hey-api/schemas': heyApiSchemas, 76 - '@hey-api/services': heyApiServices, 76 + '@hey-api/sdk': heyApiSdk, 77 77 '@hey-api/transformers': heyApiTransformers, 78 - '@hey-api/types': heyApiTypes, 78 + '@hey-api/typescript': heyApiTypeScript, 79 79 '@tanstack/angular-query-experimental': tanStackAngularQueryExperimental, 80 80 '@tanstack/react-query': tanStackReactQuery, 81 81 '@tanstack/solid-query': tanStackSolidQuery,
+2 -2
packages/openapi-ts/src/plugins/types.d.ts
··· 25 25 26 26 export type PluginNames = 27 27 | '@hey-api/schemas' 28 - | '@hey-api/services' 28 + | '@hey-api/sdk' 29 29 | '@hey-api/transformers' 30 - | '@hey-api/types' 30 + | '@hey-api/typescript' 31 31 | '@tanstack/angular-query-experimental' 32 32 | '@tanstack/react-query' 33 33 | '@tanstack/solid-query'
+10 -10
packages/openapi-ts/src/utils/__tests__/handlebars.spec.ts
··· 25 25 format: 'prettier', 26 26 path: '', 27 27 }, 28 - pluginOrder: ['@hey-api/types', '@hey-api/schemas', '@hey-api/services'], 28 + pluginOrder: ['@hey-api/typescript', '@hey-api/schemas', '@hey-api/sdk'], 29 29 plugins: { 30 30 '@hey-api/schemas': { 31 31 _handler: () => {}, 32 32 _handlerLegacy: () => {}, 33 33 name: '@hey-api/schemas', 34 34 }, 35 - '@hey-api/services': { 35 + '@hey-api/sdk': { 36 36 _handler: () => {}, 37 37 _handlerLegacy: () => {}, 38 - name: '@hey-api/services', 38 + name: '@hey-api/sdk', 39 39 }, 40 - '@hey-api/types': { 40 + '@hey-api/typescript': { 41 41 _handler: () => {}, 42 42 _handlerLegacy: () => {}, 43 43 enums: 'javascript', 44 - name: '@hey-api/types', 44 + name: '@hey-api/typescript', 45 45 }, 46 46 }, 47 47 useOptions: false, ··· 75 75 format: 'prettier', 76 76 path: '', 77 77 }, 78 - pluginOrder: ['@hey-api/types', '@hey-api/schemas', '@hey-api/services'], 78 + pluginOrder: ['@hey-api/typescript', '@hey-api/schemas', '@hey-api/sdk'], 79 79 plugins: { 80 80 '@hey-api/schemas': { 81 81 _handler: () => {}, 82 82 _handlerLegacy: () => {}, 83 83 name: '@hey-api/schemas', 84 84 }, 85 - '@hey-api/services': { 85 + '@hey-api/sdk': { 86 86 _handler: () => {}, 87 87 _handlerLegacy: () => {}, 88 - name: '@hey-api/services', 88 + name: '@hey-api/sdk', 89 89 }, 90 - '@hey-api/types': { 90 + '@hey-api/typescript': { 91 91 _handler: () => {}, 92 92 _handlerLegacy: () => {}, 93 93 enums: 'javascript', 94 - name: '@hey-api/types', 94 + name: '@hey-api/typescript', 95 95 }, 96 96 }, 97 97 useOptions: false,
+10 -10
packages/openapi-ts/src/utils/__tests__/parse.spec.ts
··· 21 21 }, 22 22 pluginOrder: [], 23 23 plugins: { 24 - '@hey-api/services': { 24 + '@hey-api/sdk': { 25 25 _handler: () => {}, 26 26 _handlerLegacy: () => {}, 27 - name: '@hey-api/services', 27 + name: '@hey-api/sdk', 28 28 operationId: true, 29 29 response: 'body', 30 30 }, ··· 35 35 const options1: Parameters<typeof setConfig>[0] = { 36 36 ...optionsCommon, 37 37 plugins: { 38 - '@hey-api/services': { 38 + '@hey-api/sdk': { 39 39 _handler: () => {}, 40 40 _handlerLegacy: () => {}, 41 - name: '@hey-api/services', 41 + name: '@hey-api/sdk', 42 42 operationId: true, 43 43 response: 'body', 44 44 }, ··· 48 48 const options2: Parameters<typeof setConfig>[0] = { 49 49 ...optionsCommon, 50 50 plugins: { 51 - '@hey-api/services': { 51 + '@hey-api/sdk': { 52 52 _handler: () => {}, 53 53 _handlerLegacy: () => {}, 54 - name: '@hey-api/services', 54 + name: '@hey-api/sdk', 55 55 operationId: false, 56 56 response: 'body', 57 57 }, ··· 64 64 name: '@hey-api/client-fetch', 65 65 }, 66 66 plugins: { 67 - '@hey-api/services': { 67 + '@hey-api/sdk': { 68 68 _handler: () => {}, 69 69 _handlerLegacy: () => {}, 70 - name: '@hey-api/services', 70 + name: '@hey-api/sdk', 71 71 operationId: true, 72 72 response: 'body', 73 73 }, ··· 80 80 name: '@hey-api/client-fetch', 81 81 }, 82 82 plugins: { 83 - '@hey-api/services': { 83 + '@hey-api/sdk': { 84 84 _handler: () => {}, 85 85 _handlerLegacy: () => {}, 86 - name: '@hey-api/services', 86 + name: '@hey-api/sdk', 87 87 operationId: false, 88 88 response: 'body', 89 89 },
+1 -1
packages/openapi-ts/src/utils/handlebars.ts
··· 117 117 Handlebars.registerHelper( 118 118 'ifServicesResponse', 119 119 function (this: unknown, value: string, options: Handlebars.HelperOptions) { 120 - return getConfig().plugins['@hey-api/services']?.response === value 120 + return getConfig().plugins['@hey-api/sdk']?.response === value 121 121 ? options.fn(this) 122 122 : options.inverse(this); 123 123 },
+1 -2
packages/openapi-ts/src/utils/postprocess.ts
··· 47 47 operations.forEach((parserOperation) => { 48 48 const tags = 49 49 parserOperation.tags?.length && 50 - (config.plugins['@hey-api/services']?.asClass || 51 - legacyNameFromConfig(config)) 50 + (config.plugins['@hey-api/sdk']?.asClass || legacyNameFromConfig(config)) 52 51 ? parserOperation.tags.filter(unique) 53 52 : ['Default']; 54 53 tags.forEach((tag) => {
+3 -3
packages/openapi-ts/src/utils/transform.ts
··· 11 11 config: Config; 12 12 name: string; 13 13 }) => { 14 - if (config.plugins['@hey-api/services']?.serviceNameBuilder) { 15 - return config.plugins['@hey-api/services'].serviceNameBuilder.replace( 14 + if (config.plugins['@hey-api/sdk']?.serviceNameBuilder) { 15 + return config.plugins['@hey-api/sdk'].serviceNameBuilder.replace( 16 16 '{{name}}', 17 17 name, 18 18 ); ··· 23 23 24 24 export const transformTypeName = (name: string) => { 25 25 const config = getConfig(); 26 - if (config.plugins['@hey-api/types']?.style === 'PascalCase') { 26 + if (config.plugins['@hey-api/typescript']?.style === 'PascalCase') { 27 27 return camelCase({ 28 28 input: name, 29 29 pascalCase: true,
+1 -1
packages/openapi-ts/test/2.0.spec.ts
··· 18 18 describe(`OpenAPI ${VERSION}`, () => { 19 19 const createConfig = (userConfig: UserConfig): UserConfig => ({ 20 20 client: '@hey-api/client-fetch', 21 - plugins: ['@hey-api/services', '@hey-api/types'], 21 + plugins: ['@hey-api/sdk', '@hey-api/typescript'], 22 22 ...userConfig, 23 23 input: path.join( 24 24 __dirname,
+2 -2
packages/openapi-ts/test/3.0.x.spec.ts
··· 19 19 const createConfig = (userConfig: UserConfig): UserConfig => ({ 20 20 client: '@hey-api/client-fetch', 21 21 experimentalParser: true, 22 - plugins: ['@hey-api/types'], 22 + plugins: ['@hey-api/typescript'], 23 23 ...userConfig, 24 24 input: path.join( 25 25 __dirname, ··· 109 109 config: createConfig({ 110 110 input: 'parameter-explode-false.json', 111 111 output: 'parameter-explode-false', 112 - plugins: ['@hey-api/services'], 112 + plugins: ['@hey-api/sdk'], 113 113 }), 114 114 description: 'handles non-exploded array query parameters', 115 115 },
+2 -2
packages/openapi-ts/test/3.1.x.spec.ts
··· 19 19 const createConfig = (userConfig: UserConfig): UserConfig => ({ 20 20 client: '@hey-api/client-fetch', 21 21 experimentalParser: true, 22 - plugins: ['@hey-api/types'], 22 + plugins: ['@hey-api/typescript'], 23 23 ...userConfig, 24 24 input: path.join( 25 25 __dirname, ··· 147 147 config: createConfig({ 148 148 input: 'parameter-explode-false.json', 149 149 output: 'parameter-explode-false', 150 - plugins: ['@hey-api/services'], 150 + plugins: ['@hey-api/sdk'], 151 151 }), 152 152 description: 'handles non-exploded array query parameters', 153 153 },
+1 -1
packages/openapi-ts/test/__snapshots__/2.0/form-data/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/2.0/form-data/services.gen.ts packages/openapi-ts/test/__snapshots__/2.0/form-data/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/parameter-explode-false/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/parameter-explode-false/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/parameter-explode-false/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@hey-api/services/default/index.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/default/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@hey-api/services/default/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/default/sdk.gen.ts
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@hey-api/services/default/types.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/default/types.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/asClass/@tanstack/angular-query-experimental.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/angular-query-experimental'; 5 - import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../services.gen'; 5 + import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/asClass/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/asClass/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/asClass/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/@tanstack/angular-query-experimental.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-axios'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/angular-query-experimental'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 import type { AxiosError } from 'axios'; 8 8
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/@tanstack/angular-query-experimental.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/angular-query-experimental'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/asClass/@tanstack/react-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type UseMutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/react-query'; 5 - import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../services.gen'; 5 + import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/asClass/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/asClass/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/asClass/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/@tanstack/react-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-axios'; 4 4 import { queryOptions, type UseMutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/react-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 import type { AxiosError } from 'axios'; 8 8
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/@tanstack/react-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type UseMutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/react-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/asClass/@tanstack/solid-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/solid-query'; 5 - import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../services.gen'; 5 + import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/asClass/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/asClass/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/asClass/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/@tanstack/solid-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-axios'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/solid-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 import type { AxiosError } from 'axios'; 8 8
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/fetch/@tanstack/solid-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/solid-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/fetch/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/fetch/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/fetch/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/asClass/@tanstack/svelte-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/svelte-query'; 5 - import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../services.gen'; 5 + import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/asClass/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/asClass/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/asClass/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/@tanstack/svelte-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-axios'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/svelte-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 import type { AxiosError } from 'axios'; 8 8
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/fetch/@tanstack/svelte-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/svelte-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/fetch/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/fetch/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/fetch/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/asClass/@tanstack/vue-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type UseMutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/vue-query'; 5 - import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../services.gen'; 5 + import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/asClass/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/asClass/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/asClass/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/@tanstack/vue-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-axios'; 4 4 import { queryOptions, type UseMutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/vue-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 import type { AxiosError } from 'axios'; 8 8
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/fetch/@tanstack/vue-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type UseMutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/vue-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/fetch/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/fetch/services.gen.ts packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/fetch/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/parameter-explode-false/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/parameter-explode-false/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/parameter-explode-false/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@hey-api/services/default/index.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/default/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@hey-api/services/default/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/default/sdk.gen.ts
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@hey-api/services/default/types.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/default/types.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/asClass/@tanstack/angular-query-experimental.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/angular-query-experimental'; 5 - import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../services.gen'; 5 + import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/asClass/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/asClass/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/asClass/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/@tanstack/angular-query-experimental.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-axios'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/angular-query-experimental'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 import type { AxiosError } from 'axios'; 8 8
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/fetch/@tanstack/angular-query-experimental.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/angular-query-experimental'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/fetch/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/fetch/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/fetch/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/asClass/@tanstack/react-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type UseMutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/react-query'; 5 - import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../services.gen'; 5 + import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/asClass/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/asClass/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/asClass/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/@tanstack/react-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-axios'; 4 4 import { queryOptions, type UseMutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/react-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 import type { AxiosError } from 'axios'; 8 8
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/fetch/@tanstack/react-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type UseMutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/react-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/fetch/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/fetch/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/fetch/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/asClass/@tanstack/solid-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/solid-query'; 5 - import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../services.gen'; 5 + import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/asClass/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/asClass/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/asClass/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/@tanstack/solid-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-axios'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/solid-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 import type { AxiosError } from 'axios'; 8 8
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/fetch/@tanstack/solid-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/solid-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/fetch/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/fetch/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/fetch/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/asClass/@tanstack/svelte-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/svelte-query'; 5 - import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../services.gen'; 5 + import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/asClass/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/asClass/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/asClass/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/@tanstack/svelte-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-axios'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/svelte-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 import type { AxiosError } from 'axios'; 8 8
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/fetch/@tanstack/svelte-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type MutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/svelte-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/fetch/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/fetch/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/fetch/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/asClass/@tanstack/vue-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type UseMutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/vue-query'; 5 - import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../services.gen'; 5 + import { client, DefaultService, SimpleService, ParametersService, DescriptionsService, DeprecatedService, RequestBodyService, FormDataService, DefaultsService, DuplicateService, NoContentService, ResponseService, MultipleTags1Service, CollectionFormatService, TypesService, UploadService, FileResponseService, ComplexService, MultipartService, HeaderService, ErrorService, NonAsciiÆøåÆøÅöôêÊService } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/asClass/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/asClass/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/asClass/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/@tanstack/vue-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-axios'; 4 4 import { queryOptions, type UseMutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/vue-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 import type { AxiosError } from 'axios'; 8 8
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/fetch/@tanstack/vue-query.gen.ts
··· 2 2 3 3 import type { Options } from '@hey-api/client-fetch'; 4 4 import { queryOptions, type UseMutationOptions, type DefaultError, infiniteQueryOptions, type InfiniteData } from '@tanstack/vue-query'; 5 - import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../services.gen'; 5 + import { client, export_, import_, apiVVersionOdataControllerCount, getApiVbyApiVersionSimpleOperation, deleteCallWithoutParametersAndResponse, getCallWithoutParametersAndResponse, patchCallWithoutParametersAndResponse, postCallWithoutParametersAndResponse, putCallWithoutParametersAndResponse, deleteFoo, callWithDescriptions, deprecatedCall, callWithParameters, callWithWeirdParameterNames, getCallWithOptionalParam, postCallWithOptionalParam, postApiVbyApiVersionRequestBody, postApiVbyApiVersionFormData, callWithDefaultParameters, callWithDefaultOptionalParameters, callToTestOrderOfParams, duplicateName, duplicateName2, duplicateName3, duplicateName4, callWithNoContentResponse, callWithResponseAndNoContentResponse, dummyA, dummyB, callWithResponse, callWithDuplicateResponses, callWithResponses, collectionFormat, types, uploadFile, fileResponse, complexTypes, multipartResponse, multipartRequest, complexParams, callWithResultFromHeader, testErrorCode, nonAsciiæøåÆøÅöôêÊ字符串, putWithFormUrlEncoded } from '../sdk.gen'; 6 6 import type { ImportData, ImportResponse, GetApiVbyApiVersionSimpleOperationData, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, UploadFileData, UploadFileResponse, FileResponseData, ComplexTypesData, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from '../types.gen'; 7 7 8 8 type QueryKey<TOptions extends Options> = [
+1 -1
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/fetch/index.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export * from './types.gen'; 3 - export * from './services.gen'; 3 + export * from './sdk.gen';
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/fetch/services.gen.ts packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/fetch/sdk.gen.ts
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v2/index.ts.snap
··· 3 3 export { CancelablePromise, CancelError } from './core/CancelablePromise'; 4 4 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 5 5 export * from './schemas.gen'; 6 - export * from './services.gen'; 6 + export * from './sdk.gen'; 7 7 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v2/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v2/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios-bundle/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios-bundle/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios-bundle/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios-bundle_transform/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios-bundle_transform/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios-bundle_transform/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios-class/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios-class/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios-class/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios-class_transform/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios-class_transform/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios-class_transform/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios_transform/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios_transform/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-axios_transform/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch-bundle/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch-bundle/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch-bundle/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch-bundle_transform/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch-bundle_transform/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch-bundle_transform/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch-class/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch-class/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch-class/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch-class_transform/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch-class_transform/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch-class_transform/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch_transform/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch_transform/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3-hey-api-client-fetch_transform/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3/index.ts.snap
··· 2 2 export { ApiError } from './core/ApiError'; 3 3 export { CancelablePromise, CancelError } from './core/CancelablePromise'; 4 4 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 5 - export * from './services.gen'; 5 + export * from './sdk.gen'; 6 6 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_angular/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export { ApiError } from './core/ApiError'; 3 3 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 4 - export * from './services.gen'; 4 + export * from './sdk.gen'; 5 5 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_angular/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_angular/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_angular_transform/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export { ApiError } from './core/ApiError'; 3 3 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 4 - export * from './services.gen'; 4 + export * from './sdk.gen'; 5 5 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_angular_transform/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_angular_transform/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_angular_tree_shakeable/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export { ApiError } from './core/ApiError'; 3 3 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 4 - export * from './services.gen'; 4 + export * from './sdk.gen'; 5 5 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_angular_tree_shakeable/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_angular_tree_shakeable/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_angular_tree_shakeable_transform/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 export { ApiError } from './core/ApiError'; 3 3 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 4 - export * from './services.gen'; 4 + export * from './sdk.gen'; 5 5 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_angular_tree_shakeable_transform/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_angular_tree_shakeable_transform/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_axios/index.ts.snap
··· 2 2 export { ApiError } from './core/ApiError'; 3 3 export { CancelablePromise, CancelError } from './core/CancelablePromise'; 4 4 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 5 - export * from './services.gen'; 5 + export * from './sdk.gen'; 6 6 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_axios/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_axios/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_axios_transform/index.ts.snap
··· 2 2 export { ApiError } from './core/ApiError'; 3 3 export { CancelablePromise, CancelError } from './core/CancelablePromise'; 4 4 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 5 - export * from './services.gen'; 5 + export * from './sdk.gen'; 6 6 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_axios_transform/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_axios_transform/sdk.gen.ts.snap
+23 -23
packages/openapi-ts/test/__snapshots__/test/generated/v3_client/ApiClient.ts.snap
··· 3 3 import { Interceptors } from './core/OpenAPI'; 4 4 import { FetchHttpRequest } from './core/FetchHttpRequest'; 5 5 6 - import { CollectionFormatService } from './services.gen'; 7 - import { ComplexService } from './services.gen'; 8 - import { DefaultService } from './services.gen'; 9 - import { DefaultsService } from './services.gen'; 10 - import { DeprecatedService } from './services.gen'; 11 - import { DescriptionsService } from './services.gen'; 12 - import { DuplicateService } from './services.gen'; 13 - import { ErrorService } from './services.gen'; 14 - import { FileResponseService } from './services.gen'; 15 - import { FormDataService } from './services.gen'; 16 - import { HeaderService } from './services.gen'; 17 - import { MultipartService } from './services.gen'; 18 - import { MultipleTags1Service } from './services.gen'; 19 - import { MultipleTags2Service } from './services.gen'; 20 - import { MultipleTags3Service } from './services.gen'; 21 - import { NoContentService } from './services.gen'; 22 - import { NonAsciiÆøåÆøÅöôêÊService } from './services.gen'; 23 - import { ParametersService } from './services.gen'; 24 - import { RequestBodyService } from './services.gen'; 25 - import { ResponseService } from './services.gen'; 26 - import { SimpleService } from './services.gen'; 27 - import { TypesService } from './services.gen'; 28 - import { UploadService } from './services.gen'; 6 + import { CollectionFormatService } from './sdk.gen'; 7 + import { ComplexService } from './sdk.gen'; 8 + import { DefaultService } from './sdk.gen'; 9 + import { DefaultsService } from './sdk.gen'; 10 + import { DeprecatedService } from './sdk.gen'; 11 + import { DescriptionsService } from './sdk.gen'; 12 + import { DuplicateService } from './sdk.gen'; 13 + import { ErrorService } from './sdk.gen'; 14 + import { FileResponseService } from './sdk.gen'; 15 + import { FormDataService } from './sdk.gen'; 16 + import { HeaderService } from './sdk.gen'; 17 + import { MultipartService } from './sdk.gen'; 18 + import { MultipleTags1Service } from './sdk.gen'; 19 + import { MultipleTags2Service } from './sdk.gen'; 20 + import { MultipleTags3Service } from './sdk.gen'; 21 + import { NoContentService } from './sdk.gen'; 22 + import { NonAsciiÆøåÆøÅöôêÊService } from './sdk.gen'; 23 + import { ParametersService } from './sdk.gen'; 24 + import { RequestBodyService } from './sdk.gen'; 25 + import { ResponseService } from './sdk.gen'; 26 + import { SimpleService } from './sdk.gen'; 27 + import { TypesService } from './sdk.gen'; 28 + import { UploadService } from './sdk.gen'; 29 29 30 30 type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest; 31 31
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_client/index.ts.snap
··· 4 4 export { BaseHttpRequest } from './core/BaseHttpRequest'; 5 5 export { CancelablePromise, CancelError } from './core/CancelablePromise'; 6 6 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 7 - export * from './services.gen'; 7 + export * from './sdk.gen'; 8 8 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_client/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_client/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_client_transform/ApiClient.ts.snap
··· 3 3 import { Interceptors } from './core/OpenAPI'; 4 4 import { FetchHttpRequest } from './core/FetchHttpRequest'; 5 5 6 - import { DefaultService } from './services.gen'; 6 + import { DefaultService } from './sdk.gen'; 7 7 8 8 type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest; 9 9
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_client_transform/index.ts.snap
··· 4 4 export { BaseHttpRequest } from './core/BaseHttpRequest'; 5 5 export { CancelablePromise, CancelError } from './core/CancelablePromise'; 6 6 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 7 - export * from './services.gen'; 7 + export * from './sdk.gen'; 8 8 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_client_transform/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_client_transform/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_enums_typescript/index.ts.snap
··· 2 2 export { ApiError } from './core/ApiError'; 3 3 export { CancelablePromise, CancelError } from './core/CancelablePromise'; 4 4 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 5 - export * from './services.gen'; 5 + export * from './sdk.gen'; 6 6 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_enums_typescript/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_enums_typescript/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_enums_typescript_namespace/index.ts.snap
··· 2 2 export { ApiError } from './core/ApiError'; 3 3 export { CancelablePromise, CancelError } from './core/CancelablePromise'; 4 4 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 5 - export * from './services.gen'; 5 + export * from './sdk.gen'; 6 6 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_enums_typescript_namespace/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_enums_typescript_namespace/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_legacy_positional_args/index.ts.snap
··· 2 2 export { ApiError } from './core/ApiError'; 3 3 export { CancelablePromise, CancelError } from './core/CancelablePromise'; 4 4 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 5 - export * from './services.gen'; 5 + export * from './sdk.gen'; 6 6 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_legacy_positional_args/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_legacy_positional_args/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_node/index.ts.snap
··· 2 2 export { ApiError } from './core/ApiError'; 3 3 export { CancelablePromise, CancelError } from './core/CancelablePromise'; 4 4 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 5 - export * from './services.gen'; 5 + export * from './sdk.gen'; 6 6 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_node/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_node/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_node_transform/index.ts.snap
··· 2 2 export { ApiError } from './core/ApiError'; 3 3 export { CancelablePromise, CancelError } from './core/CancelablePromise'; 4 4 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 5 - export * from './services.gen'; 5 + export * from './sdk.gen'; 6 6 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_node_transform/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_node_transform/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_options/index.ts.snap
··· 2 2 export { ApiError } from './core/ApiError'; 3 3 export { CancelablePromise, CancelError } from './core/CancelablePromise'; 4 4 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 5 - export * from './services.gen'; 5 + export * from './sdk.gen'; 6 6 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_options/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_options/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_services_filter/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_services_filter/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_services_filter/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_services_name/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_services_name/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_services_name/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_transform/index.ts.snap
··· 2 2 export { ApiError } from './core/ApiError'; 3 3 export { CancelablePromise, CancelError } from './core/CancelablePromise'; 4 4 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 5 - export * from './services.gen'; 5 + export * from './sdk.gen'; 6 6 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_transform/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_transform/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_tree_shakeable/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 - export * from './services.gen'; 2 + export * from './sdk.gen'; 3 3 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_tree_shakeable/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_tree_shakeable/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_xhr/index.ts.snap
··· 2 2 export { ApiError } from './core/ApiError'; 3 3 export { CancelablePromise, CancelError } from './core/CancelablePromise'; 4 4 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 5 - export * from './services.gen'; 5 + export * from './sdk.gen'; 6 6 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_xhr/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_xhr/sdk.gen.ts.snap
+1 -1
packages/openapi-ts/test/__snapshots__/test/generated/v3_xhr_transform/index.ts.snap
··· 2 2 export { ApiError } from './core/ApiError'; 3 3 export { CancelablePromise, CancelError } from './core/CancelablePromise'; 4 4 export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; 5 - export * from './services.gen'; 5 + export * from './sdk.gen'; 6 6 export * from './types.gen';
packages/openapi-ts/test/__snapshots__/test/generated/v3_xhr_transform/services.gen.ts.snap packages/openapi-ts/test/__snapshots__/test/generated/v3_xhr_transform/sdk.gen.ts.snap
+12 -12
packages/openapi-ts/test/bin.spec.ts
··· 112 112 'true', 113 113 '--plugins', 114 114 '@hey-api/schemas', 115 - '@hey-api/services', 116 - '@hey-api/types', 115 + '@hey-api/sdk', 116 + '@hey-api/typescript', 117 117 '--dry-run', 118 118 'true', 119 119 ]); ··· 209 209 expect(result.stderr.toString()).toContain('debug: true'); 210 210 expect(result.stderr.toString()).toContain('dryRun: true'); 211 211 expect(result.stderr.toString()).toContain('exportCore: false'); 212 - expect(result.stderr.toString()).not.toContain('@hey-api/types'); 213 - expect(result.stderr.toString()).not.toContain('@hey-api/services'); 212 + expect(result.stderr.toString()).not.toContain('@hey-api/typescript'); 213 + expect(result.stderr.toString()).not.toContain('@hey-api/sdk'); 214 214 expect(result.stderr.toString()).not.toContain('@hey-api/schemas'); 215 215 expect(result.stderr.toString()).toContain('useOptions: false'); 216 216 }); ··· 229 229 'true', 230 230 '--plugins', 231 231 '@hey-api/schemas', 232 - '@hey-api/services', 233 - '@hey-api/types', 232 + '@hey-api/sdk', 233 + '@hey-api/typescript', 234 234 '--useOptions', 235 235 'true', 236 236 '--dry-run', ··· 239 239 expect(result.stderr.toString()).toContain('debug: true'); 240 240 expect(result.stderr.toString()).toContain('dryRun: true'); 241 241 expect(result.stderr.toString()).toContain('exportCore: true'); 242 - expect(result.stderr.toString()).toContain('@hey-api/types'); 243 - expect(result.stderr.toString()).toContain('@hey-api/services'); 242 + expect(result.stderr.toString()).toContain('@hey-api/typescript'); 243 + expect(result.stderr.toString()).toContain('@hey-api/sdk'); 244 244 expect(result.stderr.toString()).toContain('@hey-api/schemas'); 245 245 expect(result.stderr.toString()).toContain('useOptions: true'); 246 246 }); ··· 258 258 '--exportCore', 259 259 '--plugins', 260 260 '@hey-api/schemas', 261 - '@hey-api/services', 262 - '@hey-api/types', 261 + '@hey-api/sdk', 262 + '@hey-api/typescript', 263 263 '--useOptions', 264 264 '--dry-run', 265 265 'true', ··· 268 268 expect(result.stderr.toString()).toContain('dryRun: true'); 269 269 expect(result.stderr.toString()).toContain('exportCore: true'); 270 270 expect(result.stderr.toString()).toContain('@hey-api/schemas'); 271 - expect(result.stderr.toString()).toContain('@hey-api/services'); 272 - expect(result.stderr.toString()).toContain('@hey-api/types'); 271 + expect(result.stderr.toString()).toContain('@hey-api/sdk'); 272 + expect(result.stderr.toString()).toContain('@hey-api/typescript'); 273 273 expect(result.stderr.toString()).toContain('useOptions: true'); 274 274 }); 275 275 });
+1 -1
packages/openapi-ts/test/e2e/assets/main-angular-module.ts
··· 21 21 ResponseService, 22 22 SimpleService, 23 23 TypesService 24 - } from './client/services.gen' 24 + } from './client/sdk.gen' 25 25 26 26 @Component({ 27 27 selector: 'app-root',
+1 -1
packages/openapi-ts/test/e2e/assets/main-angular.ts
··· 20 20 ResponseService, 21 21 SimpleService, 22 22 TypesService 23 - } from './client/services.gen' 23 + } from './client/sdk.gen' 24 24 25 25 @Component({ 26 26 selector: 'app-root',
+2 -2
packages/openapi-ts/test/e2e/scripts/generateClient.ts
··· 13 13 input: `./test/spec/${version}.json`, 14 14 name, 15 15 output: `./test/e2e/generated/${dir}/`, 16 - plugins: ['@hey-api/types', '@hey-api/schemas', { 16 + plugins: ['@hey-api/typescript', '@hey-api/schemas', { 17 17 asClass: true, 18 - name: '@hey-api/services', 18 + name: '@hey-api/sdk', 19 19 }], 20 20 useOptions 21 21 })
+39 -39
packages/openapi-ts/test/index.spec.ts
··· 28 28 '@hey-api/schemas', 29 29 { 30 30 asClass: true, 31 - name: '@hey-api/services', 31 + name: '@hey-api/sdk', 32 32 }, 33 33 { 34 34 enums: 'javascript', 35 - name: '@hey-api/types', 35 + name: '@hey-api/typescript', 36 36 }, 37 37 ], 38 38 useOptions: true, ··· 61 61 input: '', 62 62 output: '', 63 63 plugins: [ 64 - '@hey-api/services', 64 + '@hey-api/sdk', 65 65 { 66 66 enums: 'javascript', 67 - name: '@hey-api/types', 67 + name: '@hey-api/typescript', 68 68 }, 69 69 ], 70 70 useOptions: true, ··· 81 81 plugins: [ 82 82 { 83 83 enums: 'javascript', 84 - name: '@hey-api/types', 84 + name: '@hey-api/typescript', 85 85 }, 86 86 { 87 87 asClass: true, 88 - name: '@hey-api/services', 88 + name: '@hey-api/sdk', 89 89 }, 90 90 ], 91 91 }), ··· 96 96 config: createConfig({ 97 97 client: 'legacy/angular', 98 98 plugins: [ 99 - '@hey-api/types', 99 + '@hey-api/typescript', 100 100 { 101 101 asClass: true, 102 - name: '@hey-api/services', 102 + name: '@hey-api/sdk', 103 103 }, 104 104 ], 105 105 }), ··· 109 109 { 110 110 config: createConfig({ 111 111 client: 'legacy/angular', 112 - plugins: ['@hey-api/types', '@hey-api/services'], 112 + plugins: ['@hey-api/typescript', '@hey-api/sdk'], 113 113 }), 114 114 description: 'generate tree-shakeable angular client', 115 115 name: 'v3_angular_tree_shakeable', ··· 120 120 plugins: [ 121 121 { 122 122 enums: 'javascript', 123 - name: '@hey-api/types', 123 + name: '@hey-api/typescript', 124 124 }, 125 125 { 126 126 asClass: true, 127 - name: '@hey-api/services', 127 + name: '@hey-api/sdk', 128 128 }, 129 129 ], 130 130 }), ··· 137 137 plugins: [ 138 138 { 139 139 enums: 'javascript', 140 - name: '@hey-api/types', 140 + name: '@hey-api/typescript', 141 141 }, 142 142 { 143 143 asClass: true, 144 - name: '@hey-api/services', 144 + name: '@hey-api/sdk', 145 145 }, 146 146 ], 147 147 }), ··· 171 171 plugins: [ 172 172 { 173 173 enums: 'javascript', 174 - name: '@hey-api/types', 174 + name: '@hey-api/typescript', 175 175 }, 176 176 { 177 177 asClass: true, 178 - name: '@hey-api/services', 178 + name: '@hey-api/sdk', 179 179 }, 180 180 ], 181 181 }), ··· 205 205 plugins: [ 206 206 { 207 207 enums: 'javascript', 208 - name: '@hey-api/types', 208 + name: '@hey-api/typescript', 209 209 }, 210 210 { 211 211 asClass: true, 212 - name: '@hey-api/services', 212 + name: '@hey-api/sdk', 213 213 }, 214 214 ], 215 215 }), ··· 222 222 plugins: [ 223 223 { 224 224 enums: 'javascript', 225 - name: '@hey-api/types', 225 + name: '@hey-api/typescript', 226 226 }, 227 227 { 228 228 asClass: true, 229 - name: '@hey-api/services', 229 + name: '@hey-api/sdk', 230 230 }, 231 231 ], 232 232 }), ··· 237 237 config: createConfig({ 238 238 name: 'ApiClient', 239 239 plugins: [ 240 - '@hey-api/types', 241 - '@hey-api/services', 240 + '@hey-api/typescript', 241 + '@hey-api/sdk', 242 242 { 243 243 dates: true, 244 244 name: '@hey-api/transformers', ··· 259 259 dates: true, 260 260 name: '@hey-api/transformers', 261 261 }, 262 - '@hey-api/types', 262 + '@hey-api/typescript', 263 263 ], 264 264 }), 265 265 description: 'generate Date types', ··· 270 270 plugins: [ 271 271 { 272 272 include: '^ModelWithString', 273 - name: '@hey-api/types', 273 + name: '@hey-api/typescript', 274 274 }, 275 275 { 276 276 asClass: true, 277 277 include: '^Defaults', 278 - name: '@hey-api/services', 278 + name: '@hey-api/sdk', 279 279 }, 280 280 { 281 281 dates: true, ··· 292 292 plugins: [ 293 293 { 294 294 include: '^ModelWithString', 295 - name: '@hey-api/types', 295 + name: '@hey-api/typescript', 296 296 }, 297 297 { 298 298 asClass: true, 299 299 include: '^Defaults', 300 - name: '@hey-api/services', 300 + name: '@hey-api/sdk', 301 301 }, 302 302 { 303 303 dates: true, ··· 313 313 plugins: [ 314 314 { 315 315 enums: 'typescript', 316 - name: '@hey-api/types', 316 + name: '@hey-api/typescript', 317 317 }, 318 318 { 319 319 asClass: true, 320 - name: '@hey-api/services', 320 + name: '@hey-api/sdk', 321 321 }, 322 322 ], 323 323 }), ··· 329 329 plugins: [ 330 330 { 331 331 enums: 'typescript+namespace', 332 - name: '@hey-api/types', 332 + name: '@hey-api/typescript', 333 333 }, 334 334 { 335 335 asClass: true, 336 - name: '@hey-api/services', 336 + name: '@hey-api/sdk', 337 337 }, 338 338 ], 339 339 }), ··· 345 345 exportCore: false, 346 346 plugins: [ 347 347 { 348 - name: '@hey-api/types', 348 + name: '@hey-api/typescript', 349 349 style: 'PascalCase', 350 350 }, 351 351 ], ··· 399 399 plugins: [ 400 400 { 401 401 enums: 'javascript', 402 - name: '@hey-api/types', 402 + name: '@hey-api/typescript', 403 403 }, 404 404 { 405 405 asClass: true, 406 406 include: '^(Simple|Parameters)', 407 - name: '@hey-api/services', 407 + name: '@hey-api/sdk', 408 408 serviceNameBuilder: 'myAwesome{{name}}Api', 409 409 }, 410 410 ], ··· 418 418 plugins: [ 419 419 { 420 420 enums: 'javascript', 421 - name: '@hey-api/types', 421 + name: '@hey-api/typescript', 422 422 }, 423 423 { 424 424 filter: '^\\w+ /api/v{api-version}/simple$', 425 - name: '@hey-api/services', 425 + name: '@hey-api/sdk', 426 426 }, 427 427 ], 428 428 }), ··· 435 435 plugins: [ 436 436 { 437 437 enums: 'javascript', 438 - name: '@hey-api/types', 438 + name: '@hey-api/typescript', 439 439 }, 440 - '@hey-api/services', 440 + '@hey-api/sdk', 441 441 ], 442 442 }), 443 443 description: 'generate tree-shakeable services', ··· 446 446 { 447 447 config: createConfig({ 448 448 exportCore: false, 449 - plugins: ['@hey-api/types'], 449 + plugins: ['@hey-api/typescript'], 450 450 }), 451 451 description: 'generate only types with default settings', 452 452 name: 'v3_types', ··· 456 456 exportCore: false, 457 457 plugins: [ 458 458 { 459 - name: '@hey-api/types', 459 + name: '@hey-api/typescript', 460 460 tree: false, 461 461 }, 462 462 ],
+14 -14
packages/openapi-ts/test/plugins.spec.ts
··· 126 126 '@tanstack/angular-query-experimental', 127 127 { 128 128 asClass: true, 129 - name: '@hey-api/services', 129 + name: '@hey-api/sdk', 130 130 }, 131 131 ], 132 132 }), 133 133 description: 134 - 'generate Fetch API client with TanStack Angular Query Experimental plugin using class-based services', 134 + 'generate Fetch API client with TanStack Angular Query Experimental plugin using class-based SDKs', 135 135 }, 136 136 { 137 137 config: createConfig({ ··· 140 140 '@tanstack/react-query', 141 141 { 142 142 asClass: true, 143 - name: '@hey-api/services', 143 + name: '@hey-api/sdk', 144 144 }, 145 145 ], 146 146 }), 147 147 description: 148 - 'generate Fetch API client with TanStack React Query plugin using class-based services', 148 + 'generate Fetch API client with TanStack React Query plugin using class-based SDKs', 149 149 }, 150 150 { 151 151 config: createConfig({ ··· 154 154 '@tanstack/solid-query', 155 155 { 156 156 asClass: true, 157 - name: '@hey-api/services', 157 + name: '@hey-api/sdk', 158 158 }, 159 159 ], 160 160 }), 161 161 description: 162 - 'generate Fetch API client with TanStack Solid Query plugin using class-based services', 162 + 'generate Fetch API client with TanStack Solid Query plugin using class-based SDKs', 163 163 }, 164 164 { 165 165 config: createConfig({ ··· 168 168 '@tanstack/svelte-query', 169 169 { 170 170 asClass: true, 171 - name: '@hey-api/services', 171 + name: '@hey-api/sdk', 172 172 }, 173 173 ], 174 174 }), 175 175 description: 176 - 'generate Fetch API client with TanStack Svelte Query plugin using class-based services', 176 + 'generate Fetch API client with TanStack Svelte Query plugin using class-based SDKs', 177 177 }, 178 178 { 179 179 config: createConfig({ ··· 182 182 '@tanstack/vue-query', 183 183 { 184 184 asClass: true, 185 - name: '@hey-api/services', 185 + name: '@hey-api/sdk', 186 186 }, 187 187 ], 188 188 }), 189 189 description: 190 - 'generate Fetch API client with TanStack Vue Query plugin using class-based services', 190 + 'generate Fetch API client with TanStack Vue Query plugin using class-based SDKs', 191 191 }, 192 192 { 193 193 config: createConfig({ ··· 199 199 { 200 200 config: createConfig({ 201 201 output: 'default', 202 - plugins: ['@hey-api/services'], 202 + plugins: ['@hey-api/sdk'], 203 203 }), 204 - description: 'generate services', 204 + description: 'generate SDK', 205 205 }, 206 206 { 207 207 config: createConfig({ ··· 252 252 name: string; 253 253 output: string; 254 254 }> = { 255 - _dependencies: ['@hey-api/types'], 255 + _dependencies: ['@hey-api/typescript'], 256 256 _handler: vi.fn(), 257 257 _handlerLegacy: vi.fn(), 258 258 customOption: true, ··· 308 308 }> = { 309 309 _handler: vi.fn(), 310 310 _handlerLegacy: vi.fn(), 311 - name: '@hey-api/types', 311 + name: '@hey-api/typescript', 312 312 output: 'my-plugin', 313 313 }; 314 314
+2 -2
packages/openapi-ts/test/sample.cjs
··· 31 31 { 32 32 // asClass: true, 33 33 // include... 34 - name: '@hey-api/services', 34 + name: '@hey-api/sdk', 35 35 // operationId: false, 36 36 // serviceNameBuilder: '^Parameters', 37 37 }, ··· 43 43 // enums: 'typescript', 44 44 // enums: 'typescript+namespace', 45 45 // enums: 'javascript', 46 - name: '@hey-api/types', 46 + name: '@hey-api/typescript', 47 47 // style: 'PascalCase', 48 48 // tree: true, 49 49 },