@hey-api/openapi-ts 0.82.0 → 0.82.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/README.md +3 -1
- package/dist/chunk-NIADEONL.js +51 -0
- package/dist/chunk-NIADEONL.js.map +1 -0
- package/dist/index.cjs +77 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -6
- package/dist/index.d.ts +11 -6
- package/dist/index.js +48 -48
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +21 -13
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -1
- package/dist/internal.d.ts +2 -1
- package/dist/internal.js +1 -1
- package/dist/{types.d-kCNGz4sv.d.cts → types.d-44bOq98L.d.cts} +163 -30
- package/dist/{types.d-kCNGz4sv.d.ts → types.d-44bOq98L.d.ts} +163 -30
- package/package.json +3 -2
- package/dist/chunk-LKJWUBMN.js +0 -43
- package/dist/chunk-LKJWUBMN.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SemVer, RangeOptions } from 'semver';
|
|
2
|
+
import { CodegenProject } from '@hey-api/codegen-core';
|
|
2
3
|
import fs from 'node:fs';
|
|
3
4
|
import typescript__default from 'typescript';
|
|
4
5
|
|
|
@@ -2712,14 +2713,6 @@ declare class GeneratedFile {
|
|
|
2712
2713
|
* identifiers.
|
|
2713
2714
|
*/
|
|
2714
2715
|
addNodeReference<T>(id: string, node: Pick<NodeReference<T>, 'factory'>): T;
|
|
2715
|
-
/**
|
|
2716
|
-
* Prevents a specific identifier from being created. This is useful for
|
|
2717
|
-
* transformers where we know a certain transformer won't be needed, and
|
|
2718
|
-
* we want to avoid attempting to create since we know it won't happen.
|
|
2719
|
-
*/
|
|
2720
|
-
blockIdentifier({ $ref, namespace, }: Pick<EnsureUniqueIdentifierData, '$ref'> & {
|
|
2721
|
-
namespace: Namespace;
|
|
2722
|
-
}): Identifier;
|
|
2723
2716
|
get exportFromIndex(): boolean;
|
|
2724
2717
|
/**
|
|
2725
2718
|
* Returns an actual node name. If node doesn't exist throws an error.
|
|
@@ -7739,6 +7732,7 @@ declare class PluginInstance<T extends Plugin.Types = Plugin.Types> {
|
|
|
7739
7732
|
config: Omit<T['resolvedConfig'], 'name' | 'output'>;
|
|
7740
7733
|
context: IR$1.Context;
|
|
7741
7734
|
dependencies: Required<Plugin.Config<T>>['dependencies'];
|
|
7735
|
+
gen: CodegenProject;
|
|
7742
7736
|
private handler;
|
|
7743
7737
|
name: T['resolvedConfig']['name'];
|
|
7744
7738
|
output: Required<T['config']>['output'];
|
|
@@ -7752,6 +7746,7 @@ declare class PluginInstance<T extends Plugin.Types = Plugin.Types> {
|
|
|
7752
7746
|
constructor(props: Pick<Required<Plugin.Config<T>>, 'config' | 'dependencies' | 'handler'> & {
|
|
7753
7747
|
api?: T['api'];
|
|
7754
7748
|
context: IR$1.Context<OpenApi$3.V2_0_X | OpenApi$3.V3_0_X | OpenApi$3.V3_1_X>;
|
|
7749
|
+
gen: CodegenProject;
|
|
7755
7750
|
name: string;
|
|
7756
7751
|
output: string;
|
|
7757
7752
|
});
|
|
@@ -8705,7 +8700,7 @@ type UserConfig$a = Plugin.Name<'@hey-api/transformers'> & {
|
|
|
8705
8700
|
|
|
8706
8701
|
type HeyApiTransformersPlugin = DefinePlugin<UserConfig$a>;
|
|
8707
8702
|
|
|
8708
|
-
type EnumsType = 'javascript' | 'typescript';
|
|
8703
|
+
type EnumsType = 'javascript' | 'typescript' | 'typescript-const';
|
|
8709
8704
|
|
|
8710
8705
|
type UserConfig$9 = Plugin.Name<'@hey-api/typescript'> & {
|
|
8711
8706
|
/**
|
|
@@ -8784,6 +8779,7 @@ type UserConfig$9 = Plugin.Name<'@hey-api/typescript'> & {
|
|
|
8784
8779
|
* Can be:
|
|
8785
8780
|
* - `javascript`: Generates JavaScript objects
|
|
8786
8781
|
* - `typescript`: Generates TypeScript enums
|
|
8782
|
+
* - `typescript-const`: Generates TypeScript const enums
|
|
8787
8783
|
*
|
|
8788
8784
|
* @default 'javascript'
|
|
8789
8785
|
*/
|
|
@@ -9033,6 +9029,7 @@ type Config$8 = Plugin.Name<'@hey-api/typescript'> & {
|
|
|
9033
9029
|
* Can be:
|
|
9034
9030
|
* - `javascript`: Generates JavaScript objects
|
|
9035
9031
|
* - `typescript`: Generates TypeScript enums
|
|
9032
|
+
* - `typescript-const`: Generates TypeScript const enums
|
|
9036
9033
|
*
|
|
9037
9034
|
* @default 'javascript'
|
|
9038
9035
|
*/
|
|
@@ -9861,6 +9858,12 @@ type UserConfig$7 = Plugin.Name<'@tanstack/angular-query-experimental'> &
|
|
|
9861
9858
|
* @default true
|
|
9862
9859
|
*/
|
|
9863
9860
|
enabled?: boolean;
|
|
9861
|
+
/**
|
|
9862
|
+
* Whether to export generated symbols.
|
|
9863
|
+
*
|
|
9864
|
+
* @default true
|
|
9865
|
+
*/
|
|
9866
|
+
exported?: boolean;
|
|
9864
9867
|
/**
|
|
9865
9868
|
* Custom function to generate metadata for the operation.
|
|
9866
9869
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -10104,6 +10107,12 @@ type Config$6 = Plugin.Name<'@tanstack/angular-query-experimental'> &
|
|
|
10104
10107
|
* @default true
|
|
10105
10108
|
*/
|
|
10106
10109
|
enabled: boolean;
|
|
10110
|
+
/**
|
|
10111
|
+
* Whether to export generated symbols.
|
|
10112
|
+
*
|
|
10113
|
+
* @default true
|
|
10114
|
+
*/
|
|
10115
|
+
exported: boolean;
|
|
10107
10116
|
/**
|
|
10108
10117
|
* Custom function to generate metadata for the operation.
|
|
10109
10118
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -10168,7 +10177,7 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10168
10177
|
/**
|
|
10169
10178
|
* Configuration for generated infinite query key helpers.
|
|
10170
10179
|
*
|
|
10171
|
-
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions
|
|
10180
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
|
|
10172
10181
|
*
|
|
10173
10182
|
* Can be:
|
|
10174
10183
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -10197,8 +10206,9 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10197
10206
|
* Custom naming pattern for generated infinite query key names. The name variable is
|
|
10198
10207
|
* obtained from the SDK function name.
|
|
10199
10208
|
*
|
|
10209
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
|
|
10210
|
+
*
|
|
10200
10211
|
* @default '{{name}}InfiniteQueryKey'
|
|
10201
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions
|
|
10202
10212
|
*/
|
|
10203
10213
|
name?: StringName;
|
|
10204
10214
|
/**
|
|
@@ -10212,7 +10222,7 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10212
10222
|
/**
|
|
10213
10223
|
* Configuration for generated infinite query options helpers.
|
|
10214
10224
|
*
|
|
10215
|
-
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions
|
|
10225
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
|
|
10216
10226
|
*
|
|
10217
10227
|
* Can be:
|
|
10218
10228
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -10264,15 +10274,16 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10264
10274
|
* Custom naming pattern for generated infinite query options names. The name variable is
|
|
10265
10275
|
* obtained from the SDK function name.
|
|
10266
10276
|
*
|
|
10277
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
|
|
10278
|
+
*
|
|
10267
10279
|
* @default '{{name}}InfiniteOptions'
|
|
10268
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions
|
|
10269
10280
|
*/
|
|
10270
10281
|
name?: StringName;
|
|
10271
10282
|
};
|
|
10272
10283
|
/**
|
|
10273
10284
|
* Configuration for generated mutation options helpers.
|
|
10274
10285
|
*
|
|
10275
|
-
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation
|
|
10286
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
|
|
10276
10287
|
*
|
|
10277
10288
|
* Can be:
|
|
10278
10289
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -10324,8 +10335,9 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10324
10335
|
* Custom naming pattern for generated mutation options names. The name variable is
|
|
10325
10336
|
* obtained from the SDK function name.
|
|
10326
10337
|
*
|
|
10338
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
|
|
10339
|
+
*
|
|
10327
10340
|
* @default '{{name}}Mutation'
|
|
10328
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/useMutation
|
|
10329
10341
|
*/
|
|
10330
10342
|
name?: StringName;
|
|
10331
10343
|
};
|
|
@@ -10338,7 +10350,7 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10338
10350
|
/**
|
|
10339
10351
|
* Configuration for generated query keys.
|
|
10340
10352
|
*
|
|
10341
|
-
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryKey
|
|
10353
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryKey queryKey}
|
|
10342
10354
|
*
|
|
10343
10355
|
* Can be:
|
|
10344
10356
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -10367,8 +10379,9 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10367
10379
|
* Custom naming pattern for generated query key names. The name variable is
|
|
10368
10380
|
* obtained from the SDK function name.
|
|
10369
10381
|
*
|
|
10382
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys Query Keys}
|
|
10383
|
+
*
|
|
10370
10384
|
* @default '{{name}}QueryKey'
|
|
10371
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/queryKey
|
|
10372
10385
|
*/
|
|
10373
10386
|
name?: StringName;
|
|
10374
10387
|
/**
|
|
@@ -10382,7 +10395,7 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10382
10395
|
/**
|
|
10383
10396
|
* Configuration for generated query options helpers.
|
|
10384
10397
|
*
|
|
10385
|
-
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions
|
|
10398
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
|
|
10386
10399
|
*
|
|
10387
10400
|
* Can be:
|
|
10388
10401
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -10407,6 +10420,12 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10407
10420
|
* @default true
|
|
10408
10421
|
*/
|
|
10409
10422
|
enabled?: boolean;
|
|
10423
|
+
/**
|
|
10424
|
+
* Whether to export generated symbols.
|
|
10425
|
+
*
|
|
10426
|
+
* @default true
|
|
10427
|
+
*/
|
|
10428
|
+
exported?: boolean;
|
|
10410
10429
|
/**
|
|
10411
10430
|
* Custom function to generate metadata for the operation.
|
|
10412
10431
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -10430,13 +10449,51 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10430
10449
|
* @default undefined
|
|
10431
10450
|
*/
|
|
10432
10451
|
meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
10433
|
-
|
|
10434
10452
|
/**
|
|
10435
10453
|
* Custom naming pattern for generated query options names. The name variable is
|
|
10436
10454
|
* obtained from the SDK function name.
|
|
10437
10455
|
*
|
|
10456
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
|
|
10457
|
+
*
|
|
10438
10458
|
* @default '{{name}}Options'
|
|
10439
|
-
|
|
10459
|
+
*/
|
|
10460
|
+
name?: StringName;
|
|
10461
|
+
};
|
|
10462
|
+
/**
|
|
10463
|
+
* Configuration for generated `useQuery()` function helpers.
|
|
10464
|
+
*
|
|
10465
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useQuery useQuery}
|
|
10466
|
+
*
|
|
10467
|
+
* Can be:
|
|
10468
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10469
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10470
|
+
* - `object`: Full configuration object
|
|
10471
|
+
*
|
|
10472
|
+
* @default false
|
|
10473
|
+
*/
|
|
10474
|
+
useQuery?:
|
|
10475
|
+
| boolean
|
|
10476
|
+
| StringName
|
|
10477
|
+
| {
|
|
10478
|
+
/**
|
|
10479
|
+
* The casing convention to use for generated names.
|
|
10480
|
+
*
|
|
10481
|
+
* @default 'camelCase'
|
|
10482
|
+
*/
|
|
10483
|
+
case?: StringCase;
|
|
10484
|
+
/**
|
|
10485
|
+
* Whether to generate `useQuery()` function helpers.
|
|
10486
|
+
*
|
|
10487
|
+
* @default true
|
|
10488
|
+
*/
|
|
10489
|
+
enabled?: boolean;
|
|
10490
|
+
/**
|
|
10491
|
+
* Custom naming pattern for generated `useQuery()` function names. The name variable is
|
|
10492
|
+
* obtained from the SDK function name.
|
|
10493
|
+
*
|
|
10494
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useQuery useQuery}
|
|
10495
|
+
*
|
|
10496
|
+
* @default 'use{{name}}Query'
|
|
10440
10497
|
*/
|
|
10441
10498
|
name?: StringName;
|
|
10442
10499
|
};
|
|
@@ -10465,7 +10522,7 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10465
10522
|
/**
|
|
10466
10523
|
* Resolved configuration for generated infinite query key helpers.
|
|
10467
10524
|
*
|
|
10468
|
-
* @
|
|
10525
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
|
|
10469
10526
|
*/
|
|
10470
10527
|
infiniteQueryKeys: {
|
|
10471
10528
|
/**
|
|
@@ -10483,8 +10540,9 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10483
10540
|
/**
|
|
10484
10541
|
* Custom naming pattern for generated infinite query key names. The name variable is obtained from the SDK function name.
|
|
10485
10542
|
*
|
|
10543
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
|
|
10544
|
+
*
|
|
10486
10545
|
* @default '{{name}}InfiniteQueryKey'
|
|
10487
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions
|
|
10488
10546
|
*/
|
|
10489
10547
|
name: StringName;
|
|
10490
10548
|
/**
|
|
@@ -10498,7 +10556,7 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10498
10556
|
/**
|
|
10499
10557
|
* Resolved configuration for generated infinite query options helpers.
|
|
10500
10558
|
*
|
|
10501
|
-
* @
|
|
10559
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
|
|
10502
10560
|
*/
|
|
10503
10561
|
infiniteQueryOptions: {
|
|
10504
10562
|
/**
|
|
@@ -10539,15 +10597,16 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10539
10597
|
/**
|
|
10540
10598
|
* Custom naming pattern for generated infinite query options names. The name variable is obtained from the SDK function name.
|
|
10541
10599
|
*
|
|
10600
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
|
|
10601
|
+
*
|
|
10542
10602
|
* @default '{{name}}InfiniteOptions'
|
|
10543
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions
|
|
10544
10603
|
*/
|
|
10545
10604
|
name: StringName;
|
|
10546
10605
|
};
|
|
10547
10606
|
/**
|
|
10548
10607
|
* Resolved configuration for generated mutation options helpers.
|
|
10549
10608
|
*
|
|
10550
|
-
* @
|
|
10609
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
|
|
10551
10610
|
*/
|
|
10552
10611
|
mutationOptions: {
|
|
10553
10612
|
/**
|
|
@@ -10588,8 +10647,9 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10588
10647
|
/**
|
|
10589
10648
|
* Custom naming pattern for generated mutation options names. The name variable is obtained from the SDK function name.
|
|
10590
10649
|
*
|
|
10650
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
|
|
10651
|
+
*
|
|
10591
10652
|
* @default '{{name}}Mutation'
|
|
10592
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/useMutation
|
|
10593
10653
|
*/
|
|
10594
10654
|
name: StringName;
|
|
10595
10655
|
};
|
|
@@ -10602,7 +10662,7 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10602
10662
|
/**
|
|
10603
10663
|
* Resolved configuration for generated query keys.
|
|
10604
10664
|
*
|
|
10605
|
-
* @
|
|
10665
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys Query Keys}
|
|
10606
10666
|
*/
|
|
10607
10667
|
queryKeys: {
|
|
10608
10668
|
/**
|
|
@@ -10620,8 +10680,9 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10620
10680
|
/**
|
|
10621
10681
|
* Custom naming pattern for generated query key names. The name variable is obtained from the SDK function name.
|
|
10622
10682
|
*
|
|
10683
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys Query Keys}
|
|
10684
|
+
*
|
|
10623
10685
|
* @default '{{name}}QueryKey'
|
|
10624
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/queryKey
|
|
10625
10686
|
*/
|
|
10626
10687
|
name: StringName;
|
|
10627
10688
|
/**
|
|
@@ -10635,7 +10696,7 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10635
10696
|
/**
|
|
10636
10697
|
* Resolved configuration for generated query options helpers.
|
|
10637
10698
|
*
|
|
10638
|
-
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions
|
|
10699
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
|
|
10639
10700
|
*/
|
|
10640
10701
|
queryOptions: {
|
|
10641
10702
|
/**
|
|
@@ -10650,6 +10711,12 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10650
10711
|
* @default true
|
|
10651
10712
|
*/
|
|
10652
10713
|
enabled: boolean;
|
|
10714
|
+
/**
|
|
10715
|
+
* Whether to export generated symbols.
|
|
10716
|
+
*
|
|
10717
|
+
* @default true
|
|
10718
|
+
*/
|
|
10719
|
+
exported: boolean;
|
|
10653
10720
|
/**
|
|
10654
10721
|
* Custom function to generate metadata for the operation.
|
|
10655
10722
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -10676,8 +10743,37 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10676
10743
|
/**
|
|
10677
10744
|
* Custom naming pattern for generated query options names. The name variable is obtained from the SDK function name.
|
|
10678
10745
|
*
|
|
10746
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
|
|
10747
|
+
*
|
|
10679
10748
|
* @default '{{name}}Options'
|
|
10680
|
-
|
|
10749
|
+
*/
|
|
10750
|
+
name: StringName;
|
|
10751
|
+
};
|
|
10752
|
+
/**
|
|
10753
|
+
* Configuration for generated `useQuery()` function helpers.
|
|
10754
|
+
*
|
|
10755
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useQuery useQuery}
|
|
10756
|
+
*/
|
|
10757
|
+
useQuery: {
|
|
10758
|
+
/**
|
|
10759
|
+
* The casing convention to use for generated names.
|
|
10760
|
+
*
|
|
10761
|
+
* @default 'camelCase'
|
|
10762
|
+
*/
|
|
10763
|
+
case: StringCase;
|
|
10764
|
+
/**
|
|
10765
|
+
* Whether to generate `useQuery()` function helpers.
|
|
10766
|
+
*
|
|
10767
|
+
* @default true
|
|
10768
|
+
*/
|
|
10769
|
+
enabled: boolean;
|
|
10770
|
+
/**
|
|
10771
|
+
* Custom naming pattern for generated `useQuery()` function names. The name variable is
|
|
10772
|
+
* obtained from the SDK function name.
|
|
10773
|
+
*
|
|
10774
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useQuery useQuery}
|
|
10775
|
+
*
|
|
10776
|
+
* @default 'use{{name}}Query'
|
|
10681
10777
|
*/
|
|
10682
10778
|
name: StringName;
|
|
10683
10779
|
};
|
|
@@ -10951,6 +11047,12 @@ type UserConfig$5 = Plugin.Name<'@tanstack/solid-query'> &
|
|
|
10951
11047
|
* @default true
|
|
10952
11048
|
*/
|
|
10953
11049
|
enabled?: boolean;
|
|
11050
|
+
/**
|
|
11051
|
+
* Whether to export generated symbols.
|
|
11052
|
+
*
|
|
11053
|
+
* @default true
|
|
11054
|
+
*/
|
|
11055
|
+
exported?: boolean;
|
|
10954
11056
|
/**
|
|
10955
11057
|
* Custom function to generate metadata for the operation.
|
|
10956
11058
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -11194,6 +11296,12 @@ type Config$4 = Plugin.Name<'@tanstack/solid-query'> &
|
|
|
11194
11296
|
* @default true
|
|
11195
11297
|
*/
|
|
11196
11298
|
enabled: boolean;
|
|
11299
|
+
/**
|
|
11300
|
+
* Whether to export generated symbols.
|
|
11301
|
+
*
|
|
11302
|
+
* @default true
|
|
11303
|
+
*/
|
|
11304
|
+
exported: boolean;
|
|
11197
11305
|
/**
|
|
11198
11306
|
* Custom function to generate metadata for the operation.
|
|
11199
11307
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -11494,6 +11602,12 @@ type UserConfig$4 = Plugin.Name<'@tanstack/svelte-query'> &
|
|
|
11494
11602
|
* @default true
|
|
11495
11603
|
*/
|
|
11496
11604
|
enabled?: boolean;
|
|
11605
|
+
/**
|
|
11606
|
+
* Whether to export generated symbols.
|
|
11607
|
+
*
|
|
11608
|
+
* @default true
|
|
11609
|
+
*/
|
|
11610
|
+
exported?: boolean;
|
|
11497
11611
|
/**
|
|
11498
11612
|
* Custom function to generate metadata for the operation.
|
|
11499
11613
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -11737,6 +11851,12 @@ type Config$3 = Plugin.Name<'@tanstack/svelte-query'> &
|
|
|
11737
11851
|
* @default true
|
|
11738
11852
|
*/
|
|
11739
11853
|
enabled: boolean;
|
|
11854
|
+
/**
|
|
11855
|
+
* Whether to export generated symbols.
|
|
11856
|
+
*
|
|
11857
|
+
* @default true
|
|
11858
|
+
*/
|
|
11859
|
+
exported: boolean;
|
|
11740
11860
|
/**
|
|
11741
11861
|
* Custom function to generate metadata for the operation.
|
|
11742
11862
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -12039,6 +12159,12 @@ type UserConfig$3 = Plugin.Name<'@tanstack/vue-query'> &
|
|
|
12039
12159
|
* @default true
|
|
12040
12160
|
*/
|
|
12041
12161
|
enabled?: boolean;
|
|
12162
|
+
/**
|
|
12163
|
+
* Whether to export generated symbols.
|
|
12164
|
+
*
|
|
12165
|
+
* @default true
|
|
12166
|
+
*/
|
|
12167
|
+
exported?: boolean;
|
|
12042
12168
|
/**
|
|
12043
12169
|
* Custom function to generate metadata for the operation.
|
|
12044
12170
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -12285,6 +12411,12 @@ type Config$2 = Plugin.Name<'@tanstack/vue-query'> &
|
|
|
12285
12411
|
* @default true
|
|
12286
12412
|
*/
|
|
12287
12413
|
enabled: boolean;
|
|
12414
|
+
/**
|
|
12415
|
+
* Whether to export generated symbols.
|
|
12416
|
+
*
|
|
12417
|
+
* @default true
|
|
12418
|
+
*/
|
|
12419
|
+
exported: boolean;
|
|
12288
12420
|
/**
|
|
12289
12421
|
* Custom function to generate metadata for the operation.
|
|
12290
12422
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -13480,6 +13612,7 @@ declare class IRContext<Spec extends Record<string, any> = any> {
|
|
|
13480
13612
|
* A map of files that will be generated from `spec`.
|
|
13481
13613
|
*/
|
|
13482
13614
|
files: Files;
|
|
13615
|
+
gen: CodegenProject;
|
|
13483
13616
|
/**
|
|
13484
13617
|
* Intermediate representation model obtained from `spec`.
|
|
13485
13618
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hey-api/openapi-ts",
|
|
3
|
-
"version": "0.82.
|
|
3
|
+
"version": "0.82.2",
|
|
4
4
|
"description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
|
|
5
5
|
"homepage": "https://heyapi.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"node": "^18.18.0 || ^20.9.0 || >=22.10.0"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
+
"@hey-api/codegen-core": "^0.0.1",
|
|
79
80
|
"@hey-api/json-schema-ref-parser": "1.0.7",
|
|
80
81
|
"ansi-colors": "4.1.3",
|
|
81
82
|
"c12": "2.0.1",
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
"semver": "7.7.2"
|
|
88
89
|
},
|
|
89
90
|
"peerDependencies": {
|
|
90
|
-
"typescript": "
|
|
91
|
+
"typescript": ">=5.5.3"
|
|
91
92
|
},
|
|
92
93
|
"devDependencies": {
|
|
93
94
|
"@angular/common": "19.2.0",
|