@hey-api/openapi-ts 0.67.4 → 0.67.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
2
- import { c as Config, I as IR, W as WatchValues } from './types.d-C5lgdIHG.cjs';
3
- export { i as initConfigs } from './types.d-C5lgdIHG.cjs';
2
+ import { c as Config, I as IR, W as WatchValues } from './types.d-Bo4RQoDC.cjs';
3
+ export { i as initConfigs } from './types.d-Bo4RQoDC.cjs';
4
4
  import 'node:fs';
5
5
  import 'typescript';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
2
- import { c as Config, I as IR, W as WatchValues } from './types.d-C5lgdIHG.js';
3
- export { i as initConfigs } from './types.d-C5lgdIHG.js';
2
+ import { c as Config, I as IR, W as WatchValues } from './types.d-Bo4RQoDC.js';
3
+ export { i as initConfigs } from './types.d-Bo4RQoDC.js';
4
4
  import 'node:fs';
5
5
  import 'typescript';
6
6
 
package/dist/internal.js CHANGED
@@ -1,2 +1,2 @@
1
- import {createRequire}from'module';export{o as getSpec,x as initConfigs,r as parseOpenApiSpec}from'./chunk-R52Q6I2F.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
1
+ import {createRequire}from'module';export{o as getSpec,x as initConfigs,r as parseOpenApiSpec}from'./chunk-MVNXF7LB.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
2
2
  //# sourceMappingURL=internal.js.map
@@ -6861,6 +6861,15 @@ interface Config$8 extends Plugin.Name<'@hey-api/typescript'> {
6861
6861
  * @default 'SCREAMING_SNAKE_CASE'
6862
6862
  */
6863
6863
  enumsCase?: StringCase;
6864
+ /**
6865
+ * When generating enums as JavaScript objects, they'll contain a null value
6866
+ * if they're nullable. This might be undesirable if you want to do
6867
+ * `Object.values(Foo)` and have all values be of the same type. This setting
6868
+ * is disabled by default to preserve the source schemas.
6869
+ *
6870
+ * @default false
6871
+ */
6872
+ enumsConstantsIgnoreNull?: boolean;
6864
6873
  /**
6865
6874
  * Should the exports from the generated files be re-exported in the index
6866
6875
  * barrel file?
@@ -7071,6 +7080,16 @@ interface Config$4
7071
7080
  */
7072
7081
  declare namespace TanStackQuery {
7073
7082
  export type Config = {
7083
+ /**
7084
+ * Add comments from SDK functions to the generated TanStack Query code?
7085
+ * Duplicating comments this way is useful so you don't need to drill into
7086
+ * the underlying SDK function to learn what it does or whether it's
7087
+ * deprecated. You can set this option to `false` if you prefer less
7088
+ * comment duplication.
7089
+ *
7090
+ * @default true
7091
+ */
7092
+ comments?: boolean;
7074
7093
  /**
7075
7094
  * Should the exports from the generated files be re-exported in the index
7076
7095
  * barrel file?
@@ -6861,6 +6861,15 @@ interface Config$8 extends Plugin.Name<'@hey-api/typescript'> {
6861
6861
  * @default 'SCREAMING_SNAKE_CASE'
6862
6862
  */
6863
6863
  enumsCase?: StringCase;
6864
+ /**
6865
+ * When generating enums as JavaScript objects, they'll contain a null value
6866
+ * if they're nullable. This might be undesirable if you want to do
6867
+ * `Object.values(Foo)` and have all values be of the same type. This setting
6868
+ * is disabled by default to preserve the source schemas.
6869
+ *
6870
+ * @default false
6871
+ */
6872
+ enumsConstantsIgnoreNull?: boolean;
6864
6873
  /**
6865
6874
  * Should the exports from the generated files be re-exported in the index
6866
6875
  * barrel file?
@@ -7071,6 +7080,16 @@ interface Config$4
7071
7080
  */
7072
7081
  declare namespace TanStackQuery {
7073
7082
  export type Config = {
7083
+ /**
7084
+ * Add comments from SDK functions to the generated TanStack Query code?
7085
+ * Duplicating comments this way is useful so you don't need to drill into
7086
+ * the underlying SDK function to learn what it does or whether it's
7087
+ * deprecated. You can set this option to `false` if you prefer less
7088
+ * comment duplication.
7089
+ *
7090
+ * @default true
7091
+ */
7092
+ comments?: boolean;
7074
7093
  /**
7075
7094
  * Should the exports from the generated files be re-exported in the index
7076
7095
  * barrel file?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hey-api/openapi-ts",
3
- "version": "0.67.4",
3
+ "version": "0.67.5",
4
4
  "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
5
5
  "homepage": "https://heyapi.dev/",
6
6
  "repository": {