@hey-api/openapi-ts 0.82.1 → 0.82.3
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-EUHBZLGV.js +51 -0
- package/dist/chunk-EUHBZLGV.js.map +1 -0
- package/dist/index.cjs +77 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -4
- package/dist/index.d.ts +7 -4
- 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-C6wYENRD.d.cts → types.d-44bOq98L.d.cts} +160 -29
- package/dist/{types.d-C6wYENRD.d.ts → types.d-44bOq98L.d.ts} +160 -29
- package/package.json +3 -2
- package/dist/chunk-FBWTZXZ2.js +0 -43
- package/dist/chunk-FBWTZXZ2.js.map +0 -1
package/dist/internal.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-
|
|
1
|
+
import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-44bOq98L.cjs';
|
|
2
2
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
3
3
|
import 'semver';
|
|
4
|
+
import '@hey-api/codegen-core';
|
|
4
5
|
import 'node:fs';
|
|
5
6
|
import 'typescript';
|
|
6
7
|
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-
|
|
1
|
+
import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-44bOq98L.js';
|
|
2
2
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
3
3
|
import 'semver';
|
|
4
|
+
import '@hey-api/codegen-core';
|
|
4
5
|
import 'node:fs';
|
|
5
6
|
import 'typescript';
|
|
6
7
|
|
package/dist/internal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {createRequire}from'module';export{L as getSpec,K as initConfigs,F as parseOpenApiSpec}from'./chunk-
|
|
1
|
+
import {createRequire}from'module';export{L as getSpec,K as initConfigs,F as parseOpenApiSpec}from'./chunk-EUHBZLGV.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
|
|
2
2
|
//# sourceMappingURL=internal.js.map
|
|
@@ -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
|
});
|
|
@@ -9863,6 +9858,12 @@ type UserConfig$7 = Plugin.Name<'@tanstack/angular-query-experimental'> &
|
|
|
9863
9858
|
* @default true
|
|
9864
9859
|
*/
|
|
9865
9860
|
enabled?: boolean;
|
|
9861
|
+
/**
|
|
9862
|
+
* Whether to export generated symbols.
|
|
9863
|
+
*
|
|
9864
|
+
* @default true
|
|
9865
|
+
*/
|
|
9866
|
+
exported?: boolean;
|
|
9866
9867
|
/**
|
|
9867
9868
|
* Custom function to generate metadata for the operation.
|
|
9868
9869
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -10106,6 +10107,12 @@ type Config$6 = Plugin.Name<'@tanstack/angular-query-experimental'> &
|
|
|
10106
10107
|
* @default true
|
|
10107
10108
|
*/
|
|
10108
10109
|
enabled: boolean;
|
|
10110
|
+
/**
|
|
10111
|
+
* Whether to export generated symbols.
|
|
10112
|
+
*
|
|
10113
|
+
* @default true
|
|
10114
|
+
*/
|
|
10115
|
+
exported: boolean;
|
|
10109
10116
|
/**
|
|
10110
10117
|
* Custom function to generate metadata for the operation.
|
|
10111
10118
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -10170,7 +10177,7 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10170
10177
|
/**
|
|
10171
10178
|
* Configuration for generated infinite query key helpers.
|
|
10172
10179
|
*
|
|
10173
|
-
* 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}
|
|
10174
10181
|
*
|
|
10175
10182
|
* Can be:
|
|
10176
10183
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -10199,8 +10206,9 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10199
10206
|
* Custom naming pattern for generated infinite query key names. The name variable is
|
|
10200
10207
|
* obtained from the SDK function name.
|
|
10201
10208
|
*
|
|
10209
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
|
|
10210
|
+
*
|
|
10202
10211
|
* @default '{{name}}InfiniteQueryKey'
|
|
10203
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions
|
|
10204
10212
|
*/
|
|
10205
10213
|
name?: StringName;
|
|
10206
10214
|
/**
|
|
@@ -10214,7 +10222,7 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10214
10222
|
/**
|
|
10215
10223
|
* Configuration for generated infinite query options helpers.
|
|
10216
10224
|
*
|
|
10217
|
-
* 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}
|
|
10218
10226
|
*
|
|
10219
10227
|
* Can be:
|
|
10220
10228
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -10266,15 +10274,16 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10266
10274
|
* Custom naming pattern for generated infinite query options names. The name variable is
|
|
10267
10275
|
* obtained from the SDK function name.
|
|
10268
10276
|
*
|
|
10277
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
|
|
10278
|
+
*
|
|
10269
10279
|
* @default '{{name}}InfiniteOptions'
|
|
10270
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions
|
|
10271
10280
|
*/
|
|
10272
10281
|
name?: StringName;
|
|
10273
10282
|
};
|
|
10274
10283
|
/**
|
|
10275
10284
|
* Configuration for generated mutation options helpers.
|
|
10276
10285
|
*
|
|
10277
|
-
* 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}
|
|
10278
10287
|
*
|
|
10279
10288
|
* Can be:
|
|
10280
10289
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -10326,8 +10335,9 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10326
10335
|
* Custom naming pattern for generated mutation options names. The name variable is
|
|
10327
10336
|
* obtained from the SDK function name.
|
|
10328
10337
|
*
|
|
10338
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
|
|
10339
|
+
*
|
|
10329
10340
|
* @default '{{name}}Mutation'
|
|
10330
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/useMutation
|
|
10331
10341
|
*/
|
|
10332
10342
|
name?: StringName;
|
|
10333
10343
|
};
|
|
@@ -10340,7 +10350,7 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10340
10350
|
/**
|
|
10341
10351
|
* Configuration for generated query keys.
|
|
10342
10352
|
*
|
|
10343
|
-
* 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}
|
|
10344
10354
|
*
|
|
10345
10355
|
* Can be:
|
|
10346
10356
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -10369,8 +10379,9 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10369
10379
|
* Custom naming pattern for generated query key names. The name variable is
|
|
10370
10380
|
* obtained from the SDK function name.
|
|
10371
10381
|
*
|
|
10382
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys Query Keys}
|
|
10383
|
+
*
|
|
10372
10384
|
* @default '{{name}}QueryKey'
|
|
10373
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/queryKey
|
|
10374
10385
|
*/
|
|
10375
10386
|
name?: StringName;
|
|
10376
10387
|
/**
|
|
@@ -10384,7 +10395,7 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10384
10395
|
/**
|
|
10385
10396
|
* Configuration for generated query options helpers.
|
|
10386
10397
|
*
|
|
10387
|
-
* 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}
|
|
10388
10399
|
*
|
|
10389
10400
|
* Can be:
|
|
10390
10401
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -10409,6 +10420,12 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10409
10420
|
* @default true
|
|
10410
10421
|
*/
|
|
10411
10422
|
enabled?: boolean;
|
|
10423
|
+
/**
|
|
10424
|
+
* Whether to export generated symbols.
|
|
10425
|
+
*
|
|
10426
|
+
* @default true
|
|
10427
|
+
*/
|
|
10428
|
+
exported?: boolean;
|
|
10412
10429
|
/**
|
|
10413
10430
|
* Custom function to generate metadata for the operation.
|
|
10414
10431
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -10432,13 +10449,51 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10432
10449
|
* @default undefined
|
|
10433
10450
|
*/
|
|
10434
10451
|
meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
10435
|
-
|
|
10436
10452
|
/**
|
|
10437
10453
|
* Custom naming pattern for generated query options names. The name variable is
|
|
10438
10454
|
* obtained from the SDK function name.
|
|
10439
10455
|
*
|
|
10456
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
|
|
10457
|
+
*
|
|
10440
10458
|
* @default '{{name}}Options'
|
|
10441
|
-
|
|
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'
|
|
10442
10497
|
*/
|
|
10443
10498
|
name?: StringName;
|
|
10444
10499
|
};
|
|
@@ -10467,7 +10522,7 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10467
10522
|
/**
|
|
10468
10523
|
* Resolved configuration for generated infinite query key helpers.
|
|
10469
10524
|
*
|
|
10470
|
-
* @
|
|
10525
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
|
|
10471
10526
|
*/
|
|
10472
10527
|
infiniteQueryKeys: {
|
|
10473
10528
|
/**
|
|
@@ -10485,8 +10540,9 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10485
10540
|
/**
|
|
10486
10541
|
* Custom naming pattern for generated infinite query key names. The name variable is obtained from the SDK function name.
|
|
10487
10542
|
*
|
|
10543
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
|
|
10544
|
+
*
|
|
10488
10545
|
* @default '{{name}}InfiniteQueryKey'
|
|
10489
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions
|
|
10490
10546
|
*/
|
|
10491
10547
|
name: StringName;
|
|
10492
10548
|
/**
|
|
@@ -10500,7 +10556,7 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10500
10556
|
/**
|
|
10501
10557
|
* Resolved configuration for generated infinite query options helpers.
|
|
10502
10558
|
*
|
|
10503
|
-
* @
|
|
10559
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
|
|
10504
10560
|
*/
|
|
10505
10561
|
infiniteQueryOptions: {
|
|
10506
10562
|
/**
|
|
@@ -10541,15 +10597,16 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10541
10597
|
/**
|
|
10542
10598
|
* Custom naming pattern for generated infinite query options names. The name variable is obtained from the SDK function name.
|
|
10543
10599
|
*
|
|
10600
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
|
|
10601
|
+
*
|
|
10544
10602
|
* @default '{{name}}InfiniteOptions'
|
|
10545
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions
|
|
10546
10603
|
*/
|
|
10547
10604
|
name: StringName;
|
|
10548
10605
|
};
|
|
10549
10606
|
/**
|
|
10550
10607
|
* Resolved configuration for generated mutation options helpers.
|
|
10551
10608
|
*
|
|
10552
|
-
* @
|
|
10609
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
|
|
10553
10610
|
*/
|
|
10554
10611
|
mutationOptions: {
|
|
10555
10612
|
/**
|
|
@@ -10590,8 +10647,9 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10590
10647
|
/**
|
|
10591
10648
|
* Custom naming pattern for generated mutation options names. The name variable is obtained from the SDK function name.
|
|
10592
10649
|
*
|
|
10650
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
|
|
10651
|
+
*
|
|
10593
10652
|
* @default '{{name}}Mutation'
|
|
10594
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/useMutation
|
|
10595
10653
|
*/
|
|
10596
10654
|
name: StringName;
|
|
10597
10655
|
};
|
|
@@ -10604,7 +10662,7 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10604
10662
|
/**
|
|
10605
10663
|
* Resolved configuration for generated query keys.
|
|
10606
10664
|
*
|
|
10607
|
-
* @
|
|
10665
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys Query Keys}
|
|
10608
10666
|
*/
|
|
10609
10667
|
queryKeys: {
|
|
10610
10668
|
/**
|
|
@@ -10622,8 +10680,9 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10622
10680
|
/**
|
|
10623
10681
|
* Custom naming pattern for generated query key names. The name variable is obtained from the SDK function name.
|
|
10624
10682
|
*
|
|
10683
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys Query Keys}
|
|
10684
|
+
*
|
|
10625
10685
|
* @default '{{name}}QueryKey'
|
|
10626
|
-
* @see https://tanstack.com/query/v5/docs/framework/react/reference/queryKey
|
|
10627
10686
|
*/
|
|
10628
10687
|
name: StringName;
|
|
10629
10688
|
/**
|
|
@@ -10637,7 +10696,7 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10637
10696
|
/**
|
|
10638
10697
|
* Resolved configuration for generated query options helpers.
|
|
10639
10698
|
*
|
|
10640
|
-
* 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}
|
|
10641
10700
|
*/
|
|
10642
10701
|
queryOptions: {
|
|
10643
10702
|
/**
|
|
@@ -10652,6 +10711,12 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10652
10711
|
* @default true
|
|
10653
10712
|
*/
|
|
10654
10713
|
enabled: boolean;
|
|
10714
|
+
/**
|
|
10715
|
+
* Whether to export generated symbols.
|
|
10716
|
+
*
|
|
10717
|
+
* @default true
|
|
10718
|
+
*/
|
|
10719
|
+
exported: boolean;
|
|
10655
10720
|
/**
|
|
10656
10721
|
* Custom function to generate metadata for the operation.
|
|
10657
10722
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -10678,8 +10743,37 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> &
|
|
|
10678
10743
|
/**
|
|
10679
10744
|
* Custom naming pattern for generated query options names. The name variable is obtained from the SDK function name.
|
|
10680
10745
|
*
|
|
10746
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
|
|
10747
|
+
*
|
|
10681
10748
|
* @default '{{name}}Options'
|
|
10682
|
-
|
|
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'
|
|
10683
10777
|
*/
|
|
10684
10778
|
name: StringName;
|
|
10685
10779
|
};
|
|
@@ -10953,6 +11047,12 @@ type UserConfig$5 = Plugin.Name<'@tanstack/solid-query'> &
|
|
|
10953
11047
|
* @default true
|
|
10954
11048
|
*/
|
|
10955
11049
|
enabled?: boolean;
|
|
11050
|
+
/**
|
|
11051
|
+
* Whether to export generated symbols.
|
|
11052
|
+
*
|
|
11053
|
+
* @default true
|
|
11054
|
+
*/
|
|
11055
|
+
exported?: boolean;
|
|
10956
11056
|
/**
|
|
10957
11057
|
* Custom function to generate metadata for the operation.
|
|
10958
11058
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -11196,6 +11296,12 @@ type Config$4 = Plugin.Name<'@tanstack/solid-query'> &
|
|
|
11196
11296
|
* @default true
|
|
11197
11297
|
*/
|
|
11198
11298
|
enabled: boolean;
|
|
11299
|
+
/**
|
|
11300
|
+
* Whether to export generated symbols.
|
|
11301
|
+
*
|
|
11302
|
+
* @default true
|
|
11303
|
+
*/
|
|
11304
|
+
exported: boolean;
|
|
11199
11305
|
/**
|
|
11200
11306
|
* Custom function to generate metadata for the operation.
|
|
11201
11307
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -11496,6 +11602,12 @@ type UserConfig$4 = Plugin.Name<'@tanstack/svelte-query'> &
|
|
|
11496
11602
|
* @default true
|
|
11497
11603
|
*/
|
|
11498
11604
|
enabled?: boolean;
|
|
11605
|
+
/**
|
|
11606
|
+
* Whether to export generated symbols.
|
|
11607
|
+
*
|
|
11608
|
+
* @default true
|
|
11609
|
+
*/
|
|
11610
|
+
exported?: boolean;
|
|
11499
11611
|
/**
|
|
11500
11612
|
* Custom function to generate metadata for the operation.
|
|
11501
11613
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -11739,6 +11851,12 @@ type Config$3 = Plugin.Name<'@tanstack/svelte-query'> &
|
|
|
11739
11851
|
* @default true
|
|
11740
11852
|
*/
|
|
11741
11853
|
enabled: boolean;
|
|
11854
|
+
/**
|
|
11855
|
+
* Whether to export generated symbols.
|
|
11856
|
+
*
|
|
11857
|
+
* @default true
|
|
11858
|
+
*/
|
|
11859
|
+
exported: boolean;
|
|
11742
11860
|
/**
|
|
11743
11861
|
* Custom function to generate metadata for the operation.
|
|
11744
11862
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -12041,6 +12159,12 @@ type UserConfig$3 = Plugin.Name<'@tanstack/vue-query'> &
|
|
|
12041
12159
|
* @default true
|
|
12042
12160
|
*/
|
|
12043
12161
|
enabled?: boolean;
|
|
12162
|
+
/**
|
|
12163
|
+
* Whether to export generated symbols.
|
|
12164
|
+
*
|
|
12165
|
+
* @default true
|
|
12166
|
+
*/
|
|
12167
|
+
exported?: boolean;
|
|
12044
12168
|
/**
|
|
12045
12169
|
* Custom function to generate metadata for the operation.
|
|
12046
12170
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -12287,6 +12411,12 @@ type Config$2 = Plugin.Name<'@tanstack/vue-query'> &
|
|
|
12287
12411
|
* @default true
|
|
12288
12412
|
*/
|
|
12289
12413
|
enabled: boolean;
|
|
12414
|
+
/**
|
|
12415
|
+
* Whether to export generated symbols.
|
|
12416
|
+
*
|
|
12417
|
+
* @default true
|
|
12418
|
+
*/
|
|
12419
|
+
exported: boolean;
|
|
12290
12420
|
/**
|
|
12291
12421
|
* Custom function to generate metadata for the operation.
|
|
12292
12422
|
* Can return any valid meta object that will be included in the generated query options.
|
|
@@ -13482,6 +13612,7 @@ declare class IRContext<Spec extends Record<string, any> = any> {
|
|
|
13482
13612
|
* A map of files that will be generated from `spec`.
|
|
13483
13613
|
*/
|
|
13484
13614
|
files: Files;
|
|
13615
|
+
gen: CodegenProject;
|
|
13485
13616
|
/**
|
|
13486
13617
|
* Intermediate representation model obtained from `spec`.
|
|
13487
13618
|
*/
|