@hey-api/openapi-ts 0.67.4 → 0.67.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/chunk-7JZSF2LW.js +13 -0
- package/dist/chunk-7JZSF2LW.js.map +1 -0
- package/dist/index.cjs +183 -183
- 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 +1 -1
- package/dist/internal.cjs +11 -11
- 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-C5lgdIHG.d.cts → types.d-CdBjJneT.d.cts} +66 -23
- package/dist/{types.d-C5lgdIHG.d.ts → types.d-CdBjJneT.d.ts} +66 -23
- package/package.json +1 -1
- package/dist/chunk-R52Q6I2F.js +0 -13
- package/dist/chunk-R52Q6I2F.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 { c as Config, I as IR, W as WatchValues } from './types.d-
|
|
3
|
-
export { i as initConfigs } from './types.d-
|
|
2
|
+
import { c as Config, I as IR, W as WatchValues } from './types.d-CdBjJneT.cjs';
|
|
3
|
+
export { i as initConfigs } from './types.d-CdBjJneT.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 { c as Config, I as IR, W as WatchValues } from './types.d-
|
|
3
|
-
export { i as initConfigs } from './types.d-
|
|
2
|
+
import { c as Config, I as IR, W as WatchValues } from './types.d-CdBjJneT.js';
|
|
3
|
+
export { i as initConfigs } from './types.d-CdBjJneT.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-
|
|
1
|
+
import {createRequire}from'module';export{o as getSpec,x as initConfigs,r as parseOpenApiSpec}from'./chunk-7JZSF2LW.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
|
|
2
2
|
//# sourceMappingURL=internal.js.map
|
|
@@ -6396,7 +6396,7 @@ type PluginClientNames =
|
|
|
6396
6396
|
| 'legacy/node'
|
|
6397
6397
|
| 'legacy/xhr';
|
|
6398
6398
|
|
|
6399
|
-
type PluginValidatorNames = 'zod';
|
|
6399
|
+
type PluginValidatorNames = 'valibot' | 'zod';
|
|
6400
6400
|
|
|
6401
6401
|
type PluginNames =
|
|
6402
6402
|
| PluginClientNames
|
|
@@ -6512,7 +6512,7 @@ declare namespace Plugin {
|
|
|
6512
6512
|
export type UserConfig<Config extends BaseConfig> = Omit<Config, 'output'>;
|
|
6513
6513
|
}
|
|
6514
6514
|
|
|
6515
|
-
interface Config$
|
|
6515
|
+
interface Config$l
|
|
6516
6516
|
extends Plugin.Name<'@hey-api/client-fetch'>,
|
|
6517
6517
|
Client.Config {
|
|
6518
6518
|
/**
|
|
@@ -6523,7 +6523,7 @@ interface Config$k
|
|
|
6523
6523
|
throwOnError?: boolean;
|
|
6524
6524
|
}
|
|
6525
6525
|
|
|
6526
|
-
interface Config$
|
|
6526
|
+
interface Config$k
|
|
6527
6527
|
extends Plugin.Name<'@hey-api/client-next'>,
|
|
6528
6528
|
Client.Config {
|
|
6529
6529
|
/**
|
|
@@ -6534,13 +6534,13 @@ interface Config$j
|
|
|
6534
6534
|
throwOnError?: boolean;
|
|
6535
6535
|
}
|
|
6536
6536
|
|
|
6537
|
-
interface Config$
|
|
6537
|
+
interface Config$j
|
|
6538
6538
|
extends Plugin.Name<'@hey-api/client-nuxt'>,
|
|
6539
6539
|
Client.Config {}
|
|
6540
6540
|
|
|
6541
6541
|
type PluginHandler<ReturnType = void> = Plugin.Handler<
|
|
6542
6542
|
Omit<
|
|
6543
|
-
Config$
|
|
6543
|
+
Config$i | Config$l | Config$k | Config$j,
|
|
6544
6544
|
'name'
|
|
6545
6545
|
>,
|
|
6546
6546
|
ReturnType
|
|
@@ -6623,7 +6623,7 @@ declare namespace Client {
|
|
|
6623
6623
|
};
|
|
6624
6624
|
}
|
|
6625
6625
|
|
|
6626
|
-
interface Config$
|
|
6626
|
+
interface Config$i
|
|
6627
6627
|
extends Plugin.Name<'@hey-api/client-axios'>,
|
|
6628
6628
|
Client.Config {
|
|
6629
6629
|
/**
|
|
@@ -6634,27 +6634,27 @@ interface Config$h
|
|
|
6634
6634
|
throwOnError?: boolean;
|
|
6635
6635
|
}
|
|
6636
6636
|
|
|
6637
|
-
interface Config$
|
|
6637
|
+
interface Config$h
|
|
6638
6638
|
extends Plugin.Name<'legacy/angular'>,
|
|
6639
6639
|
Pick<Client.Config, 'output'> {}
|
|
6640
6640
|
|
|
6641
|
-
interface Config$
|
|
6641
|
+
interface Config$g
|
|
6642
6642
|
extends Plugin.Name<'legacy/axios'>,
|
|
6643
6643
|
Pick<Client.Config, 'output'> {}
|
|
6644
6644
|
|
|
6645
|
-
interface Config$
|
|
6645
|
+
interface Config$f
|
|
6646
6646
|
extends Plugin.Name<'legacy/fetch'>,
|
|
6647
6647
|
Pick<Client.Config, 'output'> {}
|
|
6648
6648
|
|
|
6649
|
-
interface Config$
|
|
6649
|
+
interface Config$e
|
|
6650
6650
|
extends Plugin.Name<'legacy/node'>,
|
|
6651
6651
|
Pick<Client.Config, 'output'> {}
|
|
6652
6652
|
|
|
6653
|
-
interface Config$
|
|
6653
|
+
interface Config$d
|
|
6654
6654
|
extends Plugin.Name<'legacy/xhr'>,
|
|
6655
6655
|
Pick<Client.Config, 'output'> {}
|
|
6656
6656
|
|
|
6657
|
-
interface Config$
|
|
6657
|
+
interface Config$c extends Plugin.Name<'@hey-api/schemas'> {
|
|
6658
6658
|
/**
|
|
6659
6659
|
* Should the exports from the generated files be re-exported in the index
|
|
6660
6660
|
* barrel file?
|
|
@@ -6693,7 +6693,7 @@ interface Config$b extends Plugin.Name<'@hey-api/schemas'> {
|
|
|
6693
6693
|
type?: 'form' | 'json';
|
|
6694
6694
|
}
|
|
6695
6695
|
|
|
6696
|
-
interface Config$
|
|
6696
|
+
interface Config$b extends Plugin.Name<'@hey-api/sdk'> {
|
|
6697
6697
|
/**
|
|
6698
6698
|
* Group operation methods into classes? When enabled, you can
|
|
6699
6699
|
* select which classes to export with `sdk.include` and/or
|
|
@@ -6817,7 +6817,7 @@ interface Config$a extends Plugin.Name<'@hey-api/sdk'> {
|
|
|
6817
6817
|
response?: 'body' | 'response';
|
|
6818
6818
|
}
|
|
6819
6819
|
|
|
6820
|
-
interface Config$
|
|
6820
|
+
interface Config$a extends Plugin.Name<'@hey-api/transformers'> {
|
|
6821
6821
|
/**
|
|
6822
6822
|
* Convert long integers into BigInt values?
|
|
6823
6823
|
*
|
|
@@ -6845,7 +6845,7 @@ interface Config$9 extends Plugin.Name<'@hey-api/transformers'> {
|
|
|
6845
6845
|
output?: string;
|
|
6846
6846
|
}
|
|
6847
6847
|
|
|
6848
|
-
interface Config$
|
|
6848
|
+
interface Config$9 extends Plugin.Name<'@hey-api/typescript'> {
|
|
6849
6849
|
/**
|
|
6850
6850
|
* By default, enums are generated as TypeScript types. In addition to that,
|
|
6851
6851
|
* you can choose to generate them as JavaScript objects, TypeScript enums,
|
|
@@ -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?
|
|
@@ -6946,7 +6955,7 @@ interface Config$8 extends Plugin.Name<'@hey-api/typescript'> {
|
|
|
6946
6955
|
tree?: boolean;
|
|
6947
6956
|
}
|
|
6948
6957
|
|
|
6949
|
-
interface Config$
|
|
6958
|
+
interface Config$8
|
|
6950
6959
|
extends Plugin.Name<'@tanstack/react-query'>,
|
|
6951
6960
|
TanStackQuery.Config {
|
|
6952
6961
|
/**
|
|
@@ -6976,7 +6985,7 @@ interface Config$7
|
|
|
6976
6985
|
queryOptions?: boolean;
|
|
6977
6986
|
}
|
|
6978
6987
|
|
|
6979
|
-
interface Config$
|
|
6988
|
+
interface Config$7
|
|
6980
6989
|
extends Plugin.Name<'@tanstack/solid-query'>,
|
|
6981
6990
|
TanStackQuery.Config {
|
|
6982
6991
|
/**
|
|
@@ -7006,7 +7015,7 @@ interface Config$6
|
|
|
7006
7015
|
queryOptions?: boolean;
|
|
7007
7016
|
}
|
|
7008
7017
|
|
|
7009
|
-
interface Config$
|
|
7018
|
+
interface Config$6
|
|
7010
7019
|
extends Plugin.Name<'@tanstack/svelte-query'>,
|
|
7011
7020
|
TanStackQuery.Config {
|
|
7012
7021
|
/**
|
|
@@ -7036,7 +7045,7 @@ interface Config$5
|
|
|
7036
7045
|
queryOptions?: boolean;
|
|
7037
7046
|
}
|
|
7038
7047
|
|
|
7039
|
-
interface Config$
|
|
7048
|
+
interface Config$5
|
|
7040
7049
|
extends Plugin.Name<'@tanstack/vue-query'>,
|
|
7041
7050
|
TanStackQuery.Config {
|
|
7042
7051
|
/**
|
|
@@ -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?
|
|
@@ -7081,7 +7100,7 @@ declare namespace TanStackQuery {
|
|
|
7081
7100
|
};
|
|
7082
7101
|
}
|
|
7083
7102
|
|
|
7084
|
-
interface Config$
|
|
7103
|
+
interface Config$4
|
|
7085
7104
|
extends Plugin.Name<'@tanstack/angular-query-experimental'>,
|
|
7086
7105
|
TanStackQuery.Config {
|
|
7087
7106
|
/**
|
|
@@ -7111,7 +7130,7 @@ interface Config$3
|
|
|
7111
7130
|
queryOptions?: boolean;
|
|
7112
7131
|
}
|
|
7113
7132
|
|
|
7114
|
-
interface Config$
|
|
7133
|
+
interface Config$3 extends Plugin.Name<'fastify'> {
|
|
7115
7134
|
/**
|
|
7116
7135
|
* Should the exports from the generated files be re-exported in the index
|
|
7117
7136
|
* barrel file?
|
|
@@ -7130,6 +7149,30 @@ interface Config$2 extends Plugin.Name<'fastify'> {
|
|
|
7130
7149
|
// import type { IR } from '../../ir/types';
|
|
7131
7150
|
|
|
7132
7151
|
|
|
7152
|
+
interface Config$2 extends Plugin.Name<'valibot'> {
|
|
7153
|
+
/**
|
|
7154
|
+
* Should the exports from the generated files be re-exported in the index
|
|
7155
|
+
* barrel file?
|
|
7156
|
+
*
|
|
7157
|
+
* @default false
|
|
7158
|
+
*/
|
|
7159
|
+
exportFromIndex?: boolean;
|
|
7160
|
+
/**
|
|
7161
|
+
* Customise the Valibot schema name. By default, `v{{name}}` is used,
|
|
7162
|
+
* where `name` is a definition name or an operation name.
|
|
7163
|
+
*/
|
|
7164
|
+
// nameBuilder?: (model: IR.OperationObject | IR.SchemaObject) => string;
|
|
7165
|
+
/**
|
|
7166
|
+
* Name of the generated file.
|
|
7167
|
+
*
|
|
7168
|
+
* @default 'valibot'
|
|
7169
|
+
*/
|
|
7170
|
+
output?: string;
|
|
7171
|
+
}
|
|
7172
|
+
|
|
7173
|
+
// import type { IR } from '../../ir/types';
|
|
7174
|
+
|
|
7175
|
+
|
|
7133
7176
|
interface Config$1 extends Plugin.Name<'zod'> {
|
|
7134
7177
|
/**
|
|
7135
7178
|
* Should the exports from the generated files be re-exported in the index
|
|
@@ -7154,11 +7197,11 @@ interface Config$1 extends Plugin.Name<'zod'> {
|
|
|
7154
7197
|
/**
|
|
7155
7198
|
* User-facing plugin types.
|
|
7156
7199
|
*/
|
|
7157
|
-
type UserPlugins = Plugin.UserConfig<Config$
|
|
7200
|
+
type UserPlugins = Plugin.UserConfig<Config$i> | Plugin.UserConfig<Config$l> | Plugin.UserConfig<Config$k> | Plugin.UserConfig<Config$j> | Plugin.UserConfig<Config$h> | Plugin.UserConfig<Config$g> | Plugin.UserConfig<Config$f> | Plugin.UserConfig<Config$e> | Plugin.UserConfig<Config$d> | Plugin.UserConfig<Config$c> | Plugin.UserConfig<Config$b> | Plugin.UserConfig<Config$a> | Plugin.UserConfig<Config$9> | Plugin.UserConfig<Config$4> | Plugin.UserConfig<Config$8> | Plugin.UserConfig<Config$7> | Plugin.UserConfig<Config$6> | Plugin.UserConfig<Config$5> | Plugin.UserConfig<Config$3> | Plugin.UserConfig<Config$2> | Plugin.UserConfig<Config$1>;
|
|
7158
7201
|
/**
|
|
7159
7202
|
* Internal plugin types.
|
|
7160
7203
|
*/
|
|
7161
|
-
type ClientPlugins = Plugin.Config<Config$
|
|
7204
|
+
type ClientPlugins = Plugin.Config<Config$i> | Plugin.Config<Config$l> | Plugin.Config<Config$k> | Plugin.Config<Config$j> | Plugin.Config<Config$h> | Plugin.Config<Config$g> | Plugin.Config<Config$f> | Plugin.Config<Config$e> | Plugin.Config<Config$d> | Plugin.Config<Config$c> | Plugin.Config<Config$b> | Plugin.Config<Config$a> | Plugin.Config<Config$9> | Plugin.Config<Config$4> | Plugin.Config<Config$8> | Plugin.Config<Config$7> | Plugin.Config<Config$6> | Plugin.Config<Config$5> | Plugin.Config<Config$3> | Plugin.Config<Config$2> | Plugin.Config<Config$1>;
|
|
7162
7205
|
|
|
7163
7206
|
type Formatters = 'biome' | 'prettier';
|
|
7164
7207
|
|
|
@@ -6396,7 +6396,7 @@ type PluginClientNames =
|
|
|
6396
6396
|
| 'legacy/node'
|
|
6397
6397
|
| 'legacy/xhr';
|
|
6398
6398
|
|
|
6399
|
-
type PluginValidatorNames = 'zod';
|
|
6399
|
+
type PluginValidatorNames = 'valibot' | 'zod';
|
|
6400
6400
|
|
|
6401
6401
|
type PluginNames =
|
|
6402
6402
|
| PluginClientNames
|
|
@@ -6512,7 +6512,7 @@ declare namespace Plugin {
|
|
|
6512
6512
|
export type UserConfig<Config extends BaseConfig> = Omit<Config, 'output'>;
|
|
6513
6513
|
}
|
|
6514
6514
|
|
|
6515
|
-
interface Config$
|
|
6515
|
+
interface Config$l
|
|
6516
6516
|
extends Plugin.Name<'@hey-api/client-fetch'>,
|
|
6517
6517
|
Client.Config {
|
|
6518
6518
|
/**
|
|
@@ -6523,7 +6523,7 @@ interface Config$k
|
|
|
6523
6523
|
throwOnError?: boolean;
|
|
6524
6524
|
}
|
|
6525
6525
|
|
|
6526
|
-
interface Config$
|
|
6526
|
+
interface Config$k
|
|
6527
6527
|
extends Plugin.Name<'@hey-api/client-next'>,
|
|
6528
6528
|
Client.Config {
|
|
6529
6529
|
/**
|
|
@@ -6534,13 +6534,13 @@ interface Config$j
|
|
|
6534
6534
|
throwOnError?: boolean;
|
|
6535
6535
|
}
|
|
6536
6536
|
|
|
6537
|
-
interface Config$
|
|
6537
|
+
interface Config$j
|
|
6538
6538
|
extends Plugin.Name<'@hey-api/client-nuxt'>,
|
|
6539
6539
|
Client.Config {}
|
|
6540
6540
|
|
|
6541
6541
|
type PluginHandler<ReturnType = void> = Plugin.Handler<
|
|
6542
6542
|
Omit<
|
|
6543
|
-
Config$
|
|
6543
|
+
Config$i | Config$l | Config$k | Config$j,
|
|
6544
6544
|
'name'
|
|
6545
6545
|
>,
|
|
6546
6546
|
ReturnType
|
|
@@ -6623,7 +6623,7 @@ declare namespace Client {
|
|
|
6623
6623
|
};
|
|
6624
6624
|
}
|
|
6625
6625
|
|
|
6626
|
-
interface Config$
|
|
6626
|
+
interface Config$i
|
|
6627
6627
|
extends Plugin.Name<'@hey-api/client-axios'>,
|
|
6628
6628
|
Client.Config {
|
|
6629
6629
|
/**
|
|
@@ -6634,27 +6634,27 @@ interface Config$h
|
|
|
6634
6634
|
throwOnError?: boolean;
|
|
6635
6635
|
}
|
|
6636
6636
|
|
|
6637
|
-
interface Config$
|
|
6637
|
+
interface Config$h
|
|
6638
6638
|
extends Plugin.Name<'legacy/angular'>,
|
|
6639
6639
|
Pick<Client.Config, 'output'> {}
|
|
6640
6640
|
|
|
6641
|
-
interface Config$
|
|
6641
|
+
interface Config$g
|
|
6642
6642
|
extends Plugin.Name<'legacy/axios'>,
|
|
6643
6643
|
Pick<Client.Config, 'output'> {}
|
|
6644
6644
|
|
|
6645
|
-
interface Config$
|
|
6645
|
+
interface Config$f
|
|
6646
6646
|
extends Plugin.Name<'legacy/fetch'>,
|
|
6647
6647
|
Pick<Client.Config, 'output'> {}
|
|
6648
6648
|
|
|
6649
|
-
interface Config$
|
|
6649
|
+
interface Config$e
|
|
6650
6650
|
extends Plugin.Name<'legacy/node'>,
|
|
6651
6651
|
Pick<Client.Config, 'output'> {}
|
|
6652
6652
|
|
|
6653
|
-
interface Config$
|
|
6653
|
+
interface Config$d
|
|
6654
6654
|
extends Plugin.Name<'legacy/xhr'>,
|
|
6655
6655
|
Pick<Client.Config, 'output'> {}
|
|
6656
6656
|
|
|
6657
|
-
interface Config$
|
|
6657
|
+
interface Config$c extends Plugin.Name<'@hey-api/schemas'> {
|
|
6658
6658
|
/**
|
|
6659
6659
|
* Should the exports from the generated files be re-exported in the index
|
|
6660
6660
|
* barrel file?
|
|
@@ -6693,7 +6693,7 @@ interface Config$b extends Plugin.Name<'@hey-api/schemas'> {
|
|
|
6693
6693
|
type?: 'form' | 'json';
|
|
6694
6694
|
}
|
|
6695
6695
|
|
|
6696
|
-
interface Config$
|
|
6696
|
+
interface Config$b extends Plugin.Name<'@hey-api/sdk'> {
|
|
6697
6697
|
/**
|
|
6698
6698
|
* Group operation methods into classes? When enabled, you can
|
|
6699
6699
|
* select which classes to export with `sdk.include` and/or
|
|
@@ -6817,7 +6817,7 @@ interface Config$a extends Plugin.Name<'@hey-api/sdk'> {
|
|
|
6817
6817
|
response?: 'body' | 'response';
|
|
6818
6818
|
}
|
|
6819
6819
|
|
|
6820
|
-
interface Config$
|
|
6820
|
+
interface Config$a extends Plugin.Name<'@hey-api/transformers'> {
|
|
6821
6821
|
/**
|
|
6822
6822
|
* Convert long integers into BigInt values?
|
|
6823
6823
|
*
|
|
@@ -6845,7 +6845,7 @@ interface Config$9 extends Plugin.Name<'@hey-api/transformers'> {
|
|
|
6845
6845
|
output?: string;
|
|
6846
6846
|
}
|
|
6847
6847
|
|
|
6848
|
-
interface Config$
|
|
6848
|
+
interface Config$9 extends Plugin.Name<'@hey-api/typescript'> {
|
|
6849
6849
|
/**
|
|
6850
6850
|
* By default, enums are generated as TypeScript types. In addition to that,
|
|
6851
6851
|
* you can choose to generate them as JavaScript objects, TypeScript enums,
|
|
@@ -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?
|
|
@@ -6946,7 +6955,7 @@ interface Config$8 extends Plugin.Name<'@hey-api/typescript'> {
|
|
|
6946
6955
|
tree?: boolean;
|
|
6947
6956
|
}
|
|
6948
6957
|
|
|
6949
|
-
interface Config$
|
|
6958
|
+
interface Config$8
|
|
6950
6959
|
extends Plugin.Name<'@tanstack/react-query'>,
|
|
6951
6960
|
TanStackQuery.Config {
|
|
6952
6961
|
/**
|
|
@@ -6976,7 +6985,7 @@ interface Config$7
|
|
|
6976
6985
|
queryOptions?: boolean;
|
|
6977
6986
|
}
|
|
6978
6987
|
|
|
6979
|
-
interface Config$
|
|
6988
|
+
interface Config$7
|
|
6980
6989
|
extends Plugin.Name<'@tanstack/solid-query'>,
|
|
6981
6990
|
TanStackQuery.Config {
|
|
6982
6991
|
/**
|
|
@@ -7006,7 +7015,7 @@ interface Config$6
|
|
|
7006
7015
|
queryOptions?: boolean;
|
|
7007
7016
|
}
|
|
7008
7017
|
|
|
7009
|
-
interface Config$
|
|
7018
|
+
interface Config$6
|
|
7010
7019
|
extends Plugin.Name<'@tanstack/svelte-query'>,
|
|
7011
7020
|
TanStackQuery.Config {
|
|
7012
7021
|
/**
|
|
@@ -7036,7 +7045,7 @@ interface Config$5
|
|
|
7036
7045
|
queryOptions?: boolean;
|
|
7037
7046
|
}
|
|
7038
7047
|
|
|
7039
|
-
interface Config$
|
|
7048
|
+
interface Config$5
|
|
7040
7049
|
extends Plugin.Name<'@tanstack/vue-query'>,
|
|
7041
7050
|
TanStackQuery.Config {
|
|
7042
7051
|
/**
|
|
@@ -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?
|
|
@@ -7081,7 +7100,7 @@ declare namespace TanStackQuery {
|
|
|
7081
7100
|
};
|
|
7082
7101
|
}
|
|
7083
7102
|
|
|
7084
|
-
interface Config$
|
|
7103
|
+
interface Config$4
|
|
7085
7104
|
extends Plugin.Name<'@tanstack/angular-query-experimental'>,
|
|
7086
7105
|
TanStackQuery.Config {
|
|
7087
7106
|
/**
|
|
@@ -7111,7 +7130,7 @@ interface Config$3
|
|
|
7111
7130
|
queryOptions?: boolean;
|
|
7112
7131
|
}
|
|
7113
7132
|
|
|
7114
|
-
interface Config$
|
|
7133
|
+
interface Config$3 extends Plugin.Name<'fastify'> {
|
|
7115
7134
|
/**
|
|
7116
7135
|
* Should the exports from the generated files be re-exported in the index
|
|
7117
7136
|
* barrel file?
|
|
@@ -7130,6 +7149,30 @@ interface Config$2 extends Plugin.Name<'fastify'> {
|
|
|
7130
7149
|
// import type { IR } from '../../ir/types';
|
|
7131
7150
|
|
|
7132
7151
|
|
|
7152
|
+
interface Config$2 extends Plugin.Name<'valibot'> {
|
|
7153
|
+
/**
|
|
7154
|
+
* Should the exports from the generated files be re-exported in the index
|
|
7155
|
+
* barrel file?
|
|
7156
|
+
*
|
|
7157
|
+
* @default false
|
|
7158
|
+
*/
|
|
7159
|
+
exportFromIndex?: boolean;
|
|
7160
|
+
/**
|
|
7161
|
+
* Customise the Valibot schema name. By default, `v{{name}}` is used,
|
|
7162
|
+
* where `name` is a definition name or an operation name.
|
|
7163
|
+
*/
|
|
7164
|
+
// nameBuilder?: (model: IR.OperationObject | IR.SchemaObject) => string;
|
|
7165
|
+
/**
|
|
7166
|
+
* Name of the generated file.
|
|
7167
|
+
*
|
|
7168
|
+
* @default 'valibot'
|
|
7169
|
+
*/
|
|
7170
|
+
output?: string;
|
|
7171
|
+
}
|
|
7172
|
+
|
|
7173
|
+
// import type { IR } from '../../ir/types';
|
|
7174
|
+
|
|
7175
|
+
|
|
7133
7176
|
interface Config$1 extends Plugin.Name<'zod'> {
|
|
7134
7177
|
/**
|
|
7135
7178
|
* Should the exports from the generated files be re-exported in the index
|
|
@@ -7154,11 +7197,11 @@ interface Config$1 extends Plugin.Name<'zod'> {
|
|
|
7154
7197
|
/**
|
|
7155
7198
|
* User-facing plugin types.
|
|
7156
7199
|
*/
|
|
7157
|
-
type UserPlugins = Plugin.UserConfig<Config$
|
|
7200
|
+
type UserPlugins = Plugin.UserConfig<Config$i> | Plugin.UserConfig<Config$l> | Plugin.UserConfig<Config$k> | Plugin.UserConfig<Config$j> | Plugin.UserConfig<Config$h> | Plugin.UserConfig<Config$g> | Plugin.UserConfig<Config$f> | Plugin.UserConfig<Config$e> | Plugin.UserConfig<Config$d> | Plugin.UserConfig<Config$c> | Plugin.UserConfig<Config$b> | Plugin.UserConfig<Config$a> | Plugin.UserConfig<Config$9> | Plugin.UserConfig<Config$4> | Plugin.UserConfig<Config$8> | Plugin.UserConfig<Config$7> | Plugin.UserConfig<Config$6> | Plugin.UserConfig<Config$5> | Plugin.UserConfig<Config$3> | Plugin.UserConfig<Config$2> | Plugin.UserConfig<Config$1>;
|
|
7158
7201
|
/**
|
|
7159
7202
|
* Internal plugin types.
|
|
7160
7203
|
*/
|
|
7161
|
-
type ClientPlugins = Plugin.Config<Config$
|
|
7204
|
+
type ClientPlugins = Plugin.Config<Config$i> | Plugin.Config<Config$l> | Plugin.Config<Config$k> | Plugin.Config<Config$j> | Plugin.Config<Config$h> | Plugin.Config<Config$g> | Plugin.Config<Config$f> | Plugin.Config<Config$e> | Plugin.Config<Config$d> | Plugin.Config<Config$c> | Plugin.Config<Config$b> | Plugin.Config<Config$a> | Plugin.Config<Config$9> | Plugin.Config<Config$4> | Plugin.Config<Config$8> | Plugin.Config<Config$7> | Plugin.Config<Config$6> | Plugin.Config<Config$5> | Plugin.Config<Config$3> | Plugin.Config<Config$2> | Plugin.Config<Config$1>;
|
|
7162
7205
|
|
|
7163
7206
|
type Formatters = 'biome' | 'prettier';
|
|
7164
7207
|
|