@kubb/plugin-solid-query 4.20.3 → 4.21.0

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.
@@ -2,6 +2,7 @@ import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
2
2
  import BaseOas from "oas";
3
3
  import { Operation } from "oas/operation";
4
4
  import { DiscriminatorObject, HttpMethods, OASDocument, SchemaObject } from "oas/types";
5
+ import { BaseGenerator, Config, FileMetaBase, Group, KubbEvents, Output, Plugin, PluginFactoryOptions, PluginManager, ResolveNameParams } from "@kubb/core";
5
6
  import { KubbFile } from "@kubb/fabric-core/types";
6
7
  import { Fabric } from "@kubb/react-fabric";
7
8
  import { FabricReactNode } from "@kubb/react-fabric/types";
@@ -59,241 +60,6 @@ declare class Oas extends BaseOas {
59
60
  };
60
61
  }
61
62
  //#endregion
62
- //#region ../core/src/BaseGenerator.d.ts
63
- /**
64
- * Abstract class that contains the building blocks for plugins to create their own Generator
65
- * @link idea based on https://github.com/colinhacks/zod/blob/master/src/types.ts#L137
66
- */
67
- declare abstract class BaseGenerator<TOptions = unknown, TContext = unknown> {
68
- #private;
69
- constructor(options?: TOptions, context?: TContext);
70
- get options(): TOptions;
71
- get context(): TContext;
72
- set options(options: TOptions);
73
- abstract build(...params: unknown[]): unknown;
74
- }
75
- //#endregion
76
- //#region ../core/src/Kubb.d.ts
77
- type DebugEvent = {
78
- date: Date;
79
- logs: string[];
80
- fileName?: string;
81
- };
82
- type ProgressStartMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
83
- hookName: H;
84
- plugins: Array<Plugin>;
85
- };
86
- type ProgressStopMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
87
- hookName: H;
88
- };
89
- type ExecutingMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
90
- strategy: Strategy;
91
- hookName: H;
92
- plugin: Plugin;
93
- parameters?: unknown[] | undefined;
94
- output?: unknown;
95
- };
96
- type ExecutedMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
97
- duration: number;
98
- strategy: Strategy;
99
- hookName: H;
100
- plugin: Plugin;
101
- parameters?: unknown[] | undefined;
102
- output?: unknown;
103
- };
104
- /**
105
- * Events emitted during the Kubb code generation lifecycle.
106
- * These events can be listened to for logging, progress tracking, and custom integrations.
107
- *
108
- * @example
109
- * ```typescript
110
- * import type { AsyncEventEmitter } from '@kubb/core'
111
- * import type { KubbEvents } from '@kubb/core'
112
- *
113
- * const events: AsyncEventEmitter<KubbEvents> = new AsyncEventEmitter()
114
- *
115
- * events.on('lifecycle:start', () => {
116
- * console.log('Starting Kubb generation')
117
- * })
118
- *
119
- * events.on('plugin:end', (plugin, { duration }) => {
120
- * console.log(`Plugin ${plugin.name} completed in ${duration}ms`)
121
- * })
122
- * ```
123
- */
124
- interface KubbEvents {
125
- /**
126
- * Emitted at the beginning of the Kubb lifecycle, before any code generation starts.
127
- */
128
- 'lifecycle:start': [version: string];
129
- /**
130
- * Emitted at the end of the Kubb lifecycle, after all code generation is complete.
131
- */
132
- 'lifecycle:end': [];
133
- /**
134
- * Emitted when configuration loading starts.
135
- */
136
- 'config:start': [];
137
- /**
138
- * Emitted when configuration loading is complete.
139
- */
140
- 'config:end': [configs: Array<Config>];
141
- /**
142
- * Emitted when code generation phase starts.
143
- */
144
- 'generation:start': [config: Config];
145
- /**
146
- * Emitted when code generation phase completes.
147
- */
148
- 'generation:end': [Config: Config];
149
- /**
150
- * Emitted with a summary of the generation results.
151
- * Contains summary lines, title, and success status.
152
- */
153
- 'generation:summary': [Config: Config, {
154
- failedPlugins: Set<{
155
- plugin: Plugin;
156
- error: Error;
157
- }>;
158
- status: 'success' | 'failed';
159
- hrStart: [number, number];
160
- filesCreated: number;
161
- pluginTimings?: Map<string, number>;
162
- }];
163
- /**
164
- * Emitted when code formatting starts (e.g., running Biome or Prettier).
165
- */
166
- 'format:start': [];
167
- /**
168
- * Emitted when code formatting completes.
169
- */
170
- 'format:end': [];
171
- /**
172
- * Emitted when linting starts.
173
- */
174
- 'lint:start': [];
175
- /**
176
- * Emitted when linting completes.
177
- */
178
- 'lint:end': [];
179
- /**
180
- * Emitted when plugin hooks execution starts.
181
- */
182
- 'hooks:start': [];
183
- /**
184
- * Emitted when plugin hooks execution completes.
185
- */
186
- 'hooks:end': [];
187
- /**
188
- * Emitted when a single hook execution starts. (e.g., format or lint).
189
- * The callback should be invoked when the command completes.
190
- */
191
- 'hook:start': [{
192
- id?: string;
193
- command: string;
194
- args?: readonly string[];
195
- }];
196
- /**
197
- * Emitted when a single hook execution completes.
198
- */
199
- 'hook:end': [{
200
- id?: string;
201
- command: string;
202
- args?: readonly string[];
203
- success: boolean;
204
- error: Error | null;
205
- }];
206
- /**
207
- * Emitted when a new version of Kubb is available.
208
- */
209
- 'version:new': [currentVersion: string, latestVersion: string];
210
- /**
211
- * Informational message event.
212
- */
213
- info: [message: string, info?: string];
214
- /**
215
- * Error event. Emitted when an error occurs during code generation.
216
- */
217
- error: [error: Error, meta?: Record<string, unknown>];
218
- /**
219
- * Success message event.
220
- */
221
- success: [message: string, info?: string];
222
- /**
223
- * Warning message event.
224
- */
225
- warn: [message: string, info?: string];
226
- /**
227
- * Debug event for detailed logging.
228
- * Contains timestamp, log messages, and optional filename.
229
- */
230
- debug: [meta: DebugEvent];
231
- /**
232
- * Emitted when file processing starts.
233
- * Contains the list of files to be processed.
234
- */
235
- 'files:processing:start': [files: Array<KubbFile.ResolvedFile>];
236
- /**
237
- * Emitted for each file being processed, providing progress updates.
238
- * Contains processed count, total count, percentage, and file details.
239
- */
240
- 'file:processing:update': [{
241
- /** Number of files processed so far */
242
- processed: number;
243
- /** Total number of files to process */
244
- total: number;
245
- /** Processing percentage (0-100) */
246
- percentage: number;
247
- /** Optional source identifier */
248
- source?: string;
249
- /** The file being processed */
250
- file: KubbFile.ResolvedFile;
251
- /**
252
- * Kubb configuration (not present in Fabric).
253
- * Provides access to the current config during file processing.
254
- */
255
- config: Config;
256
- }];
257
- /**
258
- * Emitted when file processing completes.
259
- * Contains the list of processed files.
260
- */
261
- 'files:processing:end': [files: KubbFile.ResolvedFile[]];
262
- /**
263
- * Emitted when a plugin starts executing.
264
- */
265
- 'plugin:start': [plugin: Plugin];
266
- /**
267
- * Emitted when a plugin completes execution.
268
- * Duration in ms
269
- */
270
- 'plugin:end': [plugin: Plugin, meta: {
271
- duration: number;
272
- success: boolean;
273
- error?: Error;
274
- }];
275
- /**
276
- * Emitted when plugin hook progress tracking starts.
277
- * Contains the hook name and list of plugins to execute.
278
- */
279
- 'plugins:hook:progress:start': [meta: ProgressStartMeta];
280
- /**
281
- * Emitted when plugin hook progress tracking ends.
282
- * Contains the hook name that completed.
283
- */
284
- 'plugins:hook:progress:end': [meta: ProgressStopMeta];
285
- /**
286
- * Emitted when a plugin hook starts processing.
287
- * Contains strategy, hook name, plugin, parameters, and output.
288
- */
289
- 'plugins:hook:processing:start': [meta: ExecutingMeta];
290
- /**
291
- * Emitted when a plugin hook completes processing.
292
- * Contains duration, strategy, hook name, plugin, parameters, and output.
293
- */
294
- 'plugins:hook:processing:end': [meta: ExecutedMeta];
295
- }
296
- //#endregion
297
63
  //#region ../core/src/utils/AsyncEventEmitter.d.ts
298
64
  declare class AsyncEventEmitter<TEvents extends Record<string, any>> {
299
65
  #private;
@@ -305,9 +71,6 @@ declare class AsyncEventEmitter<TEvents extends Record<string, any>> {
305
71
  removeAll(): void;
306
72
  }
307
73
  //#endregion
308
- //#region ../core/src/utils/types.d.ts
309
- type PossiblePromise<T> = Promise<T> | T;
310
- //#endregion
311
74
  //#region ../core/src/types.d.ts
312
75
  declare global {
313
76
  namespace Kubb {
@@ -323,428 +86,6 @@ declare global {
323
86
  * ...
324
87
  * })
325
88
  */
326
-
327
- type InputPath = {
328
- /**
329
- * Specify your Swagger/OpenAPI file, either as an absolute path or a path relative to the root.
330
- */
331
- path: string;
332
- };
333
- type InputData = {
334
- /**
335
- * A `string` or `object` that contains your Swagger/OpenAPI data.
336
- */
337
- data: string | unknown;
338
- };
339
- type Input = InputPath | InputData | Array<InputPath>;
340
- type BarrelType = 'all' | 'named' | 'propagate';
341
- /**
342
- * @private
343
- */
344
- type Config<TInput = Input> = {
345
- /**
346
- * The name to display in the CLI output.
347
- */
348
- name?: string;
349
- /**
350
- * The project root directory, which can be either an absolute path or a path relative to the location of your `kubb.config.ts` file.
351
- * @default process.cwd()
352
- */
353
- root: string;
354
- /**
355
- * You can use either `input.path` or `input.data`, depending on your specific needs.
356
- */
357
- input: TInput;
358
- output: {
359
- /**
360
- * The path where all generated files receives exported.
361
- * This can be an absolute path or a path relative to the specified root option.
362
- */
363
- path: string;
364
- /**
365
- * Clean the output directory before each build.
366
- */
367
- clean?: boolean;
368
- /**
369
- * Save files to the file system.
370
- * @default true
371
- */
372
- write?: boolean;
373
- /**
374
- * Specifies the formatting tool to be used.
375
- * - 'auto' automatically detects and uses biome or prettier (in that order of preference).
376
- * - 'prettier' uses Prettier for code formatting.
377
- * - 'biome' uses Biome for code formatting.
378
- * - 'oxfmt' uses Oxfmt for code formatting.
379
- * - false disables code formatting.
380
- * @default 'prettier'
381
- */
382
- format?: 'auto' | 'prettier' | 'biome' | 'oxfmt' | false;
383
- /**
384
- * Specifies the linter that should be used to analyze the code.
385
- * - 'auto' automatically detects and uses biome, oxlint, or eslint (in that order of preference).
386
- * - 'eslint' uses ESLint for linting.
387
- * - 'biome' uses Biome for linting.
388
- * - 'oxlint' uses Oxlint for linting.
389
- * - false disables linting.
390
- * @default 'auto'
391
- */
392
- lint?: 'auto' | 'eslint' | 'biome' | 'oxlint' | false;
393
- /**
394
- * Overrides the extension for generated imports and exports. By default, each plugin adds an extension.
395
- * @default { '.ts': '.ts'}
396
- */
397
- extension?: Record<KubbFile.Extname, KubbFile.Extname | ''>;
398
- /**
399
- * Configures how `index.ts` files are created, including disabling barrel file generation. Each plugin has its own `barrelType` option; this setting controls the root barrel file (e.g., `src/gen/index.ts`).
400
- * @default 'named'
401
- */
402
- barrelType?: Exclude<BarrelType, 'propagate'> | false;
403
- /**
404
- * Adds a default banner to the start of every generated file indicating it was generated by Kubb.
405
- * - 'simple' adds banner with link to Kubb.
406
- * - 'full' adds source, title, description, and OpenAPI version.
407
- * - false disables banner generation.
408
- * @default 'simple'
409
- */
410
- defaultBanner?: 'simple' | 'full' | false;
411
- /**
412
- * Whether to override existing external files if they already exist.
413
- * When setting the option in the global configuration, all plugins inherit the same behavior by default.
414
- * However, all plugins also have an `output.override` option, which can be used to override the behavior for a specific plugin.
415
- * @default false
416
- */
417
- override?: boolean;
418
- };
419
- /**
420
- * An array of Kubb plugins that used in the generation.
421
- * Each plugin may include additional configurable options(defined in the plugin itself).
422
- * If a plugin depends on another plugin, an error is returned if the required dependency is missing. See pre for more details.
423
- */
424
- plugins?: Array<Plugin>;
425
- /**
426
- * Hooks triggered when a specific action occurs in Kubb.
427
- */
428
- hooks?: {
429
- /**
430
- * Hook that triggers at the end of all executions.
431
- * Useful for running Prettier or ESLint to format/lint your code.
432
- */
433
- done?: string | Array<string>;
434
- };
435
- };
436
- type PluginFactoryOptions<
437
- /**
438
- * Name to be used for the plugin, this will also be used for they key.
439
- */
440
- TName extends string = string,
441
- /**
442
- * Options of the plugin.
443
- */
444
- TOptions extends object = object,
445
- /**
446
- * Options of the plugin that can be used later on, see `options` inside your plugin config.
447
- */
448
- TResolvedOptions extends object = TOptions,
449
- /**
450
- * Context that you want to expose to other plugins.
451
- */
452
- TContext = any,
453
- /**
454
- * When calling `resolvePath` you can specify better types.
455
- */
456
- TResolvePathOptions extends object = object> = {
457
- name: TName;
458
- /**
459
- * Same behavior like what has been done with `QueryKey` in `@tanstack/react-query`
460
- */
461
- key: PluginKey<TName | string>;
462
- options: TOptions;
463
- resolvedOptions: TResolvedOptions;
464
- context: TContext;
465
- resolvePathOptions: TResolvePathOptions;
466
- };
467
- type PluginKey<TName> = [name: TName, identifier?: string | number];
468
- type UserPlugin<TOptions extends PluginFactoryOptions = PluginFactoryOptions> = {
469
- /**
470
- * Unique name used for the plugin
471
- * The name of the plugin follows the format scope:foo-bar or foo-bar, adding scope: can avoid naming conflicts with other plugins.
472
- * @example @kubb/typescript
473
- */
474
- name: TOptions['name'];
475
- /**
476
- * Options set for a specific plugin(see kubb.config.js), passthrough of options.
477
- */
478
- options: TOptions['resolvedOptions'];
479
- /**
480
- * Specifies the preceding plugins for the current plugin. You can pass an array of preceding plugin names, and the current plugin is executed after these plugins.
481
- * Can be used to validate dependent plugins.
482
- */
483
- pre?: Array<string>;
484
- /**
485
- * Specifies the succeeding plugins for the current plugin. You can pass an array of succeeding plugin names, and the current plugin is executed before these plugins.
486
- */
487
- post?: Array<string>;
488
- inject?: (this: PluginContext<TOptions>, context: PluginContext<TOptions>) => TOptions['context'];
489
- };
490
- type UserPluginWithLifeCycle<TOptions extends PluginFactoryOptions = PluginFactoryOptions> = UserPlugin<TOptions> & PluginLifecycle<TOptions>;
491
- type Plugin<TOptions extends PluginFactoryOptions = PluginFactoryOptions> = {
492
- /**
493
- * Unique name used for the plugin
494
- * @example @kubb/typescript
495
- */
496
- name: TOptions['name'];
497
- /**
498
- * Internal key used when a developer uses more than one of the same plugin
499
- * @private
500
- */
501
- key: TOptions['key'];
502
- /**
503
- * Specifies the preceding plugins for the current plugin. You can pass an array of preceding plugin names, and the current plugin is executed after these plugins.
504
- * Can be used to validate dependent plugins.
505
- */
506
- pre?: Array<string>;
507
- /**
508
- * Specifies the succeeding plugins for the current plugin. You can pass an array of succeeding plugin names, and the current plugin is executed before these plugins.
509
- */
510
- post?: Array<string>;
511
- /**
512
- * Options set for a specific plugin(see kubb.config.js), passthrough of options.
513
- */
514
- options: TOptions['resolvedOptions'];
515
- install: (this: PluginContext<TOptions>, context: PluginContext<TOptions>) => PossiblePromise<void>;
516
- /**
517
- * Define a context that can be used by other plugins, see `PluginManager' where we convert from `UserPlugin` to `Plugin`(used when calling `definePlugin`).
518
- */
519
- inject: (this: PluginContext<TOptions>, context: PluginContext<TOptions>) => TOptions['context'];
520
- };
521
- type PluginWithLifeCycle<TOptions extends PluginFactoryOptions = PluginFactoryOptions> = Plugin<TOptions> & PluginLifecycle<TOptions>;
522
- type PluginLifecycle<TOptions extends PluginFactoryOptions = PluginFactoryOptions> = {
523
- /**
524
- * Start of the lifecycle of a plugin.
525
- * @type hookParallel
526
- */
527
- install?: (this: PluginContext<TOptions>, context: PluginContext<TOptions>) => PossiblePromise<void>;
528
- /**
529
- * Resolve to a Path based on a baseName(example: `./Pet.ts`) and directory(example: `./models`).
530
- * Options can als be included.
531
- * @type hookFirst
532
- * @example ('./Pet.ts', './src/gen/') => '/src/gen/Pet.ts'
533
- */
534
- resolvePath?: (this: PluginContext<TOptions>, baseName: KubbFile.BaseName, mode?: KubbFile.Mode, options?: TOptions['resolvePathOptions']) => KubbFile.Path;
535
- /**
536
- * Resolve to a name based on a string.
537
- * Useful when converting to PascalCase or camelCase.
538
- * @type hookFirst
539
- * @example ('pet') => 'Pet'
540
- */
541
- resolveName?: (this: PluginContext<TOptions>, name: ResolveNameParams['name'], type?: ResolveNameParams['type']) => string;
542
- };
543
- type PluginLifecycleHooks = keyof PluginLifecycle;
544
- type PluginParameter<H extends PluginLifecycleHooks> = Parameters<Required<PluginLifecycle>[H]>;
545
- type ResolvePathParams<TOptions = object> = {
546
- pluginKey?: Plugin['key'];
547
- baseName: KubbFile.BaseName;
548
- mode?: KubbFile.Mode;
549
- /**
550
- * Options to be passed to 'resolvePath' 3th parameter
551
- */
552
- options?: TOptions;
553
- };
554
- type ResolveNameParams = {
555
- name: string;
556
- pluginKey?: Plugin['key'];
557
- /**
558
- * Specifies the type of entity being named.
559
- * - 'file' customizes the name of the created file (uses camelCase).
560
- * - 'function' customizes the exported function names (uses camelCase).
561
- * - 'type' customizes TypeScript types (uses PascalCase).
562
- * - 'const' customizes variable names (uses camelCase).
563
- * @default undefined
564
- */
565
- type?: 'file' | 'function' | 'type' | 'const';
566
- };
567
- type PluginContext<TOptions extends PluginFactoryOptions = PluginFactoryOptions> = {
568
- fabric: Fabric;
569
- config: Config;
570
- pluginManager: PluginManager;
571
- /**
572
- * Only add when the file does not exist yet
573
- */
574
- addFile: (...file: Array<KubbFile.File>) => Promise<void>;
575
- /**
576
- * merging multiple sources into the same output file
577
- */
578
- upsertFile: (...file: Array<KubbFile.File>) => Promise<void>;
579
- events: AsyncEventEmitter<KubbEvents>;
580
- mode: KubbFile.Mode;
581
- /**
582
- * Current plugin
583
- */
584
- plugin: Plugin<TOptions>;
585
- } & Kubb.PluginContext;
586
- /**
587
- * Specify the export location for the files and define the behavior of the output
588
- */
589
- type Output<TOptions> = {
590
- /**
591
- * Path to the output folder or file that will contain the generated code
592
- */
593
- path: string;
594
- /**
595
- * Define what needs to be exported, here you can also disable the export of barrel files
596
- * @default 'named'
597
- */
598
- barrelType?: BarrelType | false;
599
- /**
600
- * Add a banner text in the beginning of every file
601
- */
602
- banner?: string | ((options: TOptions) => string);
603
- /**
604
- * Add a footer text in the beginning of every file
605
- */
606
- footer?: string | ((options: TOptions) => string);
607
- /**
608
- * Whether to override existing external files if they already exist.
609
- * @default false
610
- */
611
- override?: boolean;
612
- };
613
- type GroupContext = {
614
- group: string;
615
- };
616
- type Group = {
617
- /**
618
- * Defines the type where to group the files.
619
- * - 'tag' groups files by OpenAPI tags.
620
- * - 'path' groups files by OpenAPI paths.
621
- * @default undefined
622
- */
623
- type: 'tag' | 'path';
624
- /**
625
- * Return the name of a group based on the group name, this used for the file and name generation
626
- */
627
- name?: (context: GroupContext) => string;
628
- };
629
- //#endregion
630
- //#region ../core/src/PluginManager.d.ts
631
- type RequiredPluginLifecycle = Required<PluginLifecycle>;
632
- type Strategy = 'hookFirst' | 'hookForPlugin' | 'hookParallel' | 'hookSeq';
633
- type ParseResult<H extends PluginLifecycleHooks> = RequiredPluginLifecycle[H];
634
- type SafeParseResult<H extends PluginLifecycleHooks, Result = ReturnType<ParseResult<H>>> = {
635
- result: Result;
636
- plugin: Plugin;
637
- };
638
- type Options$2 = {
639
- fabric: Fabric;
640
- events: AsyncEventEmitter<KubbEvents>;
641
- /**
642
- * @default Number.POSITIVE_INFINITY
643
- */
644
- concurrency?: number;
645
- };
646
- type GetFileProps<TOptions = object> = {
647
- name: string;
648
- mode?: KubbFile.Mode;
649
- extname: KubbFile.Extname;
650
- pluginKey: Plugin['key'];
651
- options?: TOptions;
652
- };
653
- declare class PluginManager {
654
- #private;
655
- readonly config: Config;
656
- readonly options: Options$2;
657
- constructor(config: Config, options: Options$2);
658
- get events(): AsyncEventEmitter<KubbEvents>;
659
- getContext<TOptions extends PluginFactoryOptions>(plugin: Plugin<TOptions>): PluginContext<TOptions> & Record<string, any>;
660
- get plugins(): Array<Plugin>;
661
- getFile<TOptions = object>({
662
- name,
663
- mode,
664
- extname,
665
- pluginKey,
666
- options
667
- }: GetFileProps<TOptions>): KubbFile.File<{
668
- pluginKey: Plugin['key'];
669
- }>;
670
- resolvePath: <TOptions = object>(params: ResolvePathParams<TOptions>) => KubbFile.Path;
671
- resolveName: (params: ResolveNameParams) => string;
672
- /**
673
- * Run a specific hookName for plugin x.
674
- */
675
- hookForPlugin<H extends PluginLifecycleHooks>({
676
- pluginKey,
677
- hookName,
678
- parameters
679
- }: {
680
- pluginKey: Plugin['key'];
681
- hookName: H;
682
- parameters: PluginParameter<H>;
683
- }): Promise<Array<ReturnType<ParseResult<H>> | null>>;
684
- /**
685
- * Run a specific hookName for plugin x.
686
- */
687
- hookForPluginSync<H extends PluginLifecycleHooks>({
688
- pluginKey,
689
- hookName,
690
- parameters
691
- }: {
692
- pluginKey: Plugin['key'];
693
- hookName: H;
694
- parameters: PluginParameter<H>;
695
- }): Array<ReturnType<ParseResult<H>>> | null;
696
- /**
697
- * Returns the first non-null result.
698
- */
699
- hookFirst<H extends PluginLifecycleHooks>({
700
- hookName,
701
- parameters,
702
- skipped
703
- }: {
704
- hookName: H;
705
- parameters: PluginParameter<H>;
706
- skipped?: ReadonlySet<Plugin> | null;
707
- }): Promise<SafeParseResult<H>>;
708
- /**
709
- * Returns the first non-null result.
710
- */
711
- hookFirstSync<H extends PluginLifecycleHooks>({
712
- hookName,
713
- parameters,
714
- skipped
715
- }: {
716
- hookName: H;
717
- parameters: PluginParameter<H>;
718
- skipped?: ReadonlySet<Plugin> | null;
719
- }): SafeParseResult<H>;
720
- /**
721
- * Runs all plugins in parallel based on `this.plugin` order and `pre`/`post` settings.
722
- */
723
- hookParallel<H extends PluginLifecycleHooks, TOutput = void>({
724
- hookName,
725
- parameters
726
- }: {
727
- hookName: H;
728
- parameters?: Parameters<RequiredPluginLifecycle[H]> | undefined;
729
- }): Promise<Awaited<TOutput>[]>;
730
- /**
731
- * Chains plugins
732
- */
733
- hookSeq<H extends PluginLifecycleHooks>({
734
- hookName,
735
- parameters
736
- }: {
737
- hookName: H;
738
- parameters?: PluginParameter<H>;
739
- }): Promise<void>;
740
- getPluginByKey(pluginKey: Plugin['key']): Plugin | undefined;
741
- getPluginsByKey(hookName: keyof PluginWithLifeCycle, pluginKey: Plugin['key']): Plugin[];
742
- }
743
- //#endregion
744
- //#region ../core/src/utils/getBarrelFiles.d.ts
745
- type FileMetaBase = {
746
- pluginKey?: Plugin['key'];
747
- };
748
89
  //#endregion
749
90
  //#region ../plugin-oas/src/types.d.ts
750
91
  type GetOasOptions = {
@@ -1264,7 +605,8 @@ type Options$1 = {
1264
605
  dataReturnType?: 'data' | 'full';
1265
606
  /**
1266
607
  * How to style your params, by default no casing is applied
1267
- * - 'camelcase' uses camelcase for the params names
608
+ * - 'camelcase' uses camelCase for pathParams, queryParams and headerParams names
609
+ * @note response types (data/body) are not affected by this option
1268
610
  */
1269
611
  paramsCasing?: 'camelcase';
1270
612
  /**
@@ -1398,7 +740,7 @@ type Options = {
1398
740
  * Group the @tanstack/query hooks based on the provided name.
1399
741
  */
1400
742
  group?: Group;
1401
- client?: Pick<PluginClient['options'], 'client' | 'clientType' | 'dataReturnType' | 'importPath' | 'baseURL' | 'bundle'>;
743
+ client?: Pick<PluginClient['options'], 'client' | 'clientType' | 'dataReturnType' | 'importPath' | 'baseURL' | 'bundle' | 'paramsCasing'>;
1402
744
  /**
1403
745
  * Array containing exclude parameters to exclude/skip tags/operations/methods/paths.
1404
746
  */
@@ -1471,5 +813,5 @@ type ResolvedOptions = {
1471
813
  };
1472
814
  type PluginSolidQuery = PluginFactoryOptions<'plugin-solid-query', Options, ResolvedOptions, never, ResolvePathOptions>;
1473
815
  //#endregion
1474
- export { OperationSchemas as a, __name as c, ReactGenerator as i, PluginSolidQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
1475
- //# sourceMappingURL=types-_M0jERE3.d.cts.map
816
+ export { OperationSchemas as a, ReactGenerator as i, PluginSolidQuery as n, Operation$1 as o, Transformer as r, __name as s, Options as t };
817
+ //# sourceMappingURL=types-BVg-OgcE.d.cts.map