@hey-api/openapi-ts 0.72.0 → 0.72.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-LC3ZVK3Y.js +39 -0
- package/dist/chunk-LC3ZVK3Y.js.map +1 -0
- package/dist/index.cjs +57 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +9 -9
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +1 -1
- package/dist/{types.d-DMy4lDbN.d.cts → types.d-DtkupL5A.d.cts} +45 -2
- package/dist/{types.d-DMy4lDbN.d.ts → types.d-DtkupL5A.d.ts} +45 -2
- package/package.json +2 -2
- package/dist/chunk-LVVLHTNY.js +0 -39
- package/dist/chunk-LVVLHTNY.js.map +0 -1
package/dist/internal.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
2
|
-
import { e as Config, I as IR, W as WatchValues } from './types.d-
|
|
3
|
-
export { i as initConfigs } from './types.d-
|
|
2
|
+
import { e as Config, I as IR, W as WatchValues } from './types.d-DtkupL5A.cjs';
|
|
3
|
+
export { i as initConfigs } from './types.d-DtkupL5A.cjs';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'typescript';
|
|
6
6
|
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
2
|
-
import { e as Config, I as IR, W as WatchValues } from './types.d-
|
|
3
|
-
export { i as initConfigs } from './types.d-
|
|
2
|
+
import { e as Config, I as IR, W as WatchValues } from './types.d-DtkupL5A.js';
|
|
3
|
+
export { i as initConfigs } from './types.d-DtkupL5A.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{r as getSpec,F as initConfigs,A as parseOpenApiSpec}from'./chunk-
|
|
1
|
+
import {createRequire}from'module';export{r as getSpec,F as initConfigs,A as parseOpenApiSpec}from'./chunk-LC3ZVK3Y.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
|
|
2
2
|
//# sourceMappingURL=internal.js.map
|
|
@@ -7179,6 +7179,41 @@ declare namespace TanStackQuery {
|
|
|
7179
7179
|
* @default false
|
|
7180
7180
|
*/
|
|
7181
7181
|
exportFromIndex?: boolean;
|
|
7182
|
+
/**
|
|
7183
|
+
* Customize the generated infinite query key names. The name variable is
|
|
7184
|
+
* obtained from the SDK function name.
|
|
7185
|
+
*
|
|
7186
|
+
* @default '{{name}}InfiniteQueryKey'
|
|
7187
|
+
*/
|
|
7188
|
+
infiniteQueryKeyNameBuilder?: string | ((name: string) => string);
|
|
7189
|
+
/**
|
|
7190
|
+
* Customize the generated infinite query options names. The name variable
|
|
7191
|
+
* is obtained from the SDK function name.
|
|
7192
|
+
*
|
|
7193
|
+
* @default '{{name}}InfiniteOptions'
|
|
7194
|
+
*/
|
|
7195
|
+
infiniteQueryOptionsNameBuilder?: string | ((name: string) => string);
|
|
7196
|
+
/**
|
|
7197
|
+
* Customize the generated mutation options names. The name variable is
|
|
7198
|
+
* obtained from the SDK function name.
|
|
7199
|
+
*
|
|
7200
|
+
* @default '{{name}}Mutation'
|
|
7201
|
+
*/
|
|
7202
|
+
mutationOptionsNameBuilder?: string | ((name: string) => string);
|
|
7203
|
+
/**
|
|
7204
|
+
* Customize the generated query key names. The name variable is obtained
|
|
7205
|
+
* from the SDK function name.
|
|
7206
|
+
*
|
|
7207
|
+
* @default '{{name}}QueryKey'
|
|
7208
|
+
*/
|
|
7209
|
+
queryKeyNameBuilder?: string | ((name: string) => string);
|
|
7210
|
+
/**
|
|
7211
|
+
* Customize the generated query options names. The name variable is
|
|
7212
|
+
* obtained from the SDK function name.
|
|
7213
|
+
*
|
|
7214
|
+
* @default '{{name}}Options'
|
|
7215
|
+
*/
|
|
7216
|
+
queryOptionsNameBuilder?: string | ((name: string) => string);
|
|
7182
7217
|
};
|
|
7183
7218
|
}
|
|
7184
7219
|
|
|
@@ -7275,6 +7310,14 @@ interface Config$1 extends Plugin.Name<'zod'> {
|
|
|
7275
7310
|
* @default false
|
|
7276
7311
|
*/
|
|
7277
7312
|
exportFromIndex?: boolean;
|
|
7313
|
+
/**
|
|
7314
|
+
* Enable Zod metadata support? It's often useful to associate a schema with
|
|
7315
|
+
* some additional metadata for documentation, code generation, AI
|
|
7316
|
+
* structured outputs, form validation, and other purposes.
|
|
7317
|
+
*
|
|
7318
|
+
* @default false
|
|
7319
|
+
*/
|
|
7320
|
+
metadata?: boolean;
|
|
7278
7321
|
/**
|
|
7279
7322
|
* Customise the Zod schema name. By default, `z{{name}}` is used,
|
|
7280
7323
|
* where `name` is a definition name or an operation name.
|
|
@@ -7432,8 +7475,8 @@ interface Filters {
|
|
|
7432
7475
|
include?: ReadonlyArray<string>;
|
|
7433
7476
|
};
|
|
7434
7477
|
/**
|
|
7435
|
-
* Keep reusable components without any references in the
|
|
7436
|
-
* default, we exclude orphaned resources.
|
|
7478
|
+
* Keep reusable components without any references from operations in the
|
|
7479
|
+
* output? By default, we exclude orphaned resources.
|
|
7437
7480
|
*
|
|
7438
7481
|
* @default false
|
|
7439
7482
|
*/
|
|
@@ -7179,6 +7179,41 @@ declare namespace TanStackQuery {
|
|
|
7179
7179
|
* @default false
|
|
7180
7180
|
*/
|
|
7181
7181
|
exportFromIndex?: boolean;
|
|
7182
|
+
/**
|
|
7183
|
+
* Customize the generated infinite query key names. The name variable is
|
|
7184
|
+
* obtained from the SDK function name.
|
|
7185
|
+
*
|
|
7186
|
+
* @default '{{name}}InfiniteQueryKey'
|
|
7187
|
+
*/
|
|
7188
|
+
infiniteQueryKeyNameBuilder?: string | ((name: string) => string);
|
|
7189
|
+
/**
|
|
7190
|
+
* Customize the generated infinite query options names. The name variable
|
|
7191
|
+
* is obtained from the SDK function name.
|
|
7192
|
+
*
|
|
7193
|
+
* @default '{{name}}InfiniteOptions'
|
|
7194
|
+
*/
|
|
7195
|
+
infiniteQueryOptionsNameBuilder?: string | ((name: string) => string);
|
|
7196
|
+
/**
|
|
7197
|
+
* Customize the generated mutation options names. The name variable is
|
|
7198
|
+
* obtained from the SDK function name.
|
|
7199
|
+
*
|
|
7200
|
+
* @default '{{name}}Mutation'
|
|
7201
|
+
*/
|
|
7202
|
+
mutationOptionsNameBuilder?: string | ((name: string) => string);
|
|
7203
|
+
/**
|
|
7204
|
+
* Customize the generated query key names. The name variable is obtained
|
|
7205
|
+
* from the SDK function name.
|
|
7206
|
+
*
|
|
7207
|
+
* @default '{{name}}QueryKey'
|
|
7208
|
+
*/
|
|
7209
|
+
queryKeyNameBuilder?: string | ((name: string) => string);
|
|
7210
|
+
/**
|
|
7211
|
+
* Customize the generated query options names. The name variable is
|
|
7212
|
+
* obtained from the SDK function name.
|
|
7213
|
+
*
|
|
7214
|
+
* @default '{{name}}Options'
|
|
7215
|
+
*/
|
|
7216
|
+
queryOptionsNameBuilder?: string | ((name: string) => string);
|
|
7182
7217
|
};
|
|
7183
7218
|
}
|
|
7184
7219
|
|
|
@@ -7275,6 +7310,14 @@ interface Config$1 extends Plugin.Name<'zod'> {
|
|
|
7275
7310
|
* @default false
|
|
7276
7311
|
*/
|
|
7277
7312
|
exportFromIndex?: boolean;
|
|
7313
|
+
/**
|
|
7314
|
+
* Enable Zod metadata support? It's often useful to associate a schema with
|
|
7315
|
+
* some additional metadata for documentation, code generation, AI
|
|
7316
|
+
* structured outputs, form validation, and other purposes.
|
|
7317
|
+
*
|
|
7318
|
+
* @default false
|
|
7319
|
+
*/
|
|
7320
|
+
metadata?: boolean;
|
|
7278
7321
|
/**
|
|
7279
7322
|
* Customise the Zod schema name. By default, `z{{name}}` is used,
|
|
7280
7323
|
* where `name` is a definition name or an operation name.
|
|
@@ -7432,8 +7475,8 @@ interface Filters {
|
|
|
7432
7475
|
include?: ReadonlyArray<string>;
|
|
7433
7476
|
};
|
|
7434
7477
|
/**
|
|
7435
|
-
* Keep reusable components without any references in the
|
|
7436
|
-
* default, we exclude orphaned resources.
|
|
7478
|
+
* Keep reusable components without any references from operations in the
|
|
7479
|
+
* output? By default, we exclude orphaned resources.
|
|
7437
7480
|
*
|
|
7438
7481
|
* @default false
|
|
7439
7482
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hey-api/openapi-ts",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.2",
|
|
4
4
|
"description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
|
|
5
5
|
"homepage": "https://heyapi.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"typescript": "5.8.3",
|
|
103
103
|
"yaml": "2.8.0",
|
|
104
104
|
"@config/vite-base": "0.0.1",
|
|
105
|
-
"@hey-api/client-core": "0.2.
|
|
105
|
+
"@hey-api/client-core": "0.2.1"
|
|
106
106
|
},
|
|
107
107
|
"scripts": {
|
|
108
108
|
"build": "tsup && pnpm check-exports",
|