@kubb/plugin-oas 4.11.1 → 4.11.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.
@@ -37,13 +37,35 @@ type DebugEvent = {
37
37
  date: Date;
38
38
  logs: string[];
39
39
  fileName?: string;
40
+ /**
41
+ * Category of the debug log, used for GitHub Actions grouping
42
+ * - 'setup': Initial configuration and environment setup
43
+ * - 'plugin': Plugin installation and execution
44
+ * - 'hook': Plugin hook execution details
45
+ * - 'schema': Schema parsing and generation
46
+ * - 'file': File operations (read/write/generate)
47
+ * - 'error': Error details and stack traces
48
+ * - undefined: Generic logs (always inline)
49
+ */
50
+ category?: 'setup' | 'plugin' | 'hook' | 'schema' | 'file' | 'error';
51
+ /**
52
+ * Plugin name for grouping plugin-specific logs together
53
+ */
54
+ pluginName?: string;
55
+ /**
56
+ * Indicates if this is the start or end of a plugin's execution
57
+ * - 'start': Start of plugin execution group
58
+ * - 'end': End of plugin execution group
59
+ */
60
+ pluginGroupMarker?: 'start' | 'end';
40
61
  };
41
62
  type Events$1 = {
42
63
  start: [message: string];
43
64
  success: [message: string];
44
- error: [message: string, cause: Error];
65
+ error: [message: string, error: Error];
45
66
  warning: [message: string];
46
67
  debug: [DebugEvent];
68
+ verbose: [DebugEvent];
47
69
  info: [message: string];
48
70
  progress_start: [{
49
71
  id: string;
@@ -67,7 +89,7 @@ type Logger = {
67
89
  consola?: ConsolaInstance;
68
90
  on: EventEmitter<Events$1>['on'];
69
91
  emit: EventEmitter<Events$1>['emit'];
70
- writeLogs: () => Promise<string[]>;
92
+ writeLogs: () => Promise<void>;
71
93
  };
72
94
  //#endregion
73
95
  //#region ../core/src/utils/types.d.ts
@@ -378,14 +400,35 @@ type Group = {
378
400
  //#region ../core/src/PluginManager.d.ts
379
401
  type RequiredPluginLifecycle = Required<PluginLifecycle>;
380
402
  type Strategy = 'hookFirst' | 'hookForPlugin' | 'hookParallel' | 'hookSeq';
381
- type Executer<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
382
- message: string;
403
+ type ExecutingMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
383
404
  strategy: Strategy;
384
405
  hookName: H;
385
406
  plugin: Plugin;
386
407
  parameters?: unknown[] | undefined;
387
408
  output?: unknown;
388
409
  };
410
+ type ExecutedMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
411
+ duration: number;
412
+ strategy: Strategy;
413
+ hookName: H;
414
+ plugin: Plugin;
415
+ parameters?: unknown[] | undefined;
416
+ output?: unknown;
417
+ };
418
+ type ErrorMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
419
+ hookName: H;
420
+ duration: number;
421
+ strategy: Strategy;
422
+ parameters?: unknown[] | undefined;
423
+ plugin: Plugin;
424
+ };
425
+ type ProgressStartMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
426
+ hookName: H;
427
+ plugins: Array<Plugin>;
428
+ };
429
+ type ProgressStopMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
430
+ hookName: H;
431
+ };
389
432
  type ParseResult<H extends PluginLifecycleHooks> = RequiredPluginLifecycle[H];
390
433
  type SafeParseResult<H extends PluginLifecycleHooks, Result = ReturnType<ParseResult<H>>> = {
391
434
  result: Result;
@@ -400,9 +443,11 @@ type Options$1 = {
400
443
  concurrency?: number;
401
444
  };
402
445
  type Events = {
403
- executing: [executer: Executer];
404
- executed: [executer: Executer];
405
- error: [error: Error];
446
+ progress_start: [meta: ProgressStartMeta];
447
+ progress_stop: [meta: ProgressStopMeta];
448
+ executing: [meta: ExecutingMeta];
449
+ executed: [meta: ExecutedMeta];
450
+ error: [error: Error, meta: ErrorMeta];
406
451
  };
407
452
  type GetFileProps<TOptions = object> = {
408
453
  name: string;
@@ -415,8 +460,6 @@ declare class PluginManager {
415
460
  #private;
416
461
  readonly events: EventEmitter<Events>;
417
462
  readonly config: Config;
418
- readonly executed: Array<Executer>;
419
- readonly logger: Logger;
420
463
  readonly options: Options$1;
421
464
  constructor(config: Config, options: Options$1);
422
465
  getContext<TOptions extends PluginFactoryOptions>(plugin: Plugin<TOptions>): PluginContext<TOptions> & Record<string, any>;
@@ -442,13 +485,11 @@ declare class PluginManager {
442
485
  hookForPlugin<H extends PluginLifecycleHooks>({
443
486
  pluginKey,
444
487
  hookName,
445
- parameters,
446
- message
488
+ parameters
447
489
  }: {
448
490
  pluginKey: Plugin['key'];
449
491
  hookName: H;
450
492
  parameters: PluginParameter<H>;
451
- message: string;
452
493
  }): Promise<Array<ReturnType<ParseResult<H>> | null>>;
453
494
  /**
454
495
  * Run a specific hookName for plugin x.
@@ -456,13 +497,11 @@ declare class PluginManager {
456
497
  hookForPluginSync<H extends PluginLifecycleHooks>({
457
498
  pluginKey,
458
499
  hookName,
459
- parameters,
460
- message
500
+ parameters
461
501
  }: {
462
502
  pluginKey: Plugin['key'];
463
503
  hookName: H;
464
504
  parameters: PluginParameter<H>;
465
- message: string;
466
505
  }): Array<ReturnType<ParseResult<H>>> | null;
467
506
  /**
468
507
  * First non-null result stops and will return it's value.
@@ -470,13 +509,11 @@ declare class PluginManager {
470
509
  hookFirst<H extends PluginLifecycleHooks>({
471
510
  hookName,
472
511
  parameters,
473
- skipped,
474
- message
512
+ skipped
475
513
  }: {
476
514
  hookName: H;
477
515
  parameters: PluginParameter<H>;
478
516
  skipped?: ReadonlySet<Plugin> | null;
479
- message: string;
480
517
  }): Promise<SafeParseResult<H>>;
481
518
  /**
482
519
  * First non-null result stops and will return it's value.
@@ -484,37 +521,31 @@ declare class PluginManager {
484
521
  hookFirstSync<H extends PluginLifecycleHooks>({
485
522
  hookName,
486
523
  parameters,
487
- skipped,
488
- message
524
+ skipped
489
525
  }: {
490
526
  hookName: H;
491
527
  parameters: PluginParameter<H>;
492
528
  skipped?: ReadonlySet<Plugin> | null;
493
- message: string;
494
529
  }): SafeParseResult<H>;
495
530
  /**
496
531
  * Run all plugins in parallel(order will be based on `this.plugin` and if `pre` or `post` is set).
497
532
  */
498
533
  hookParallel<H extends PluginLifecycleHooks, TOuput = void>({
499
534
  hookName,
500
- parameters,
501
- message
535
+ parameters
502
536
  }: {
503
537
  hookName: H;
504
538
  parameters?: Parameters<RequiredPluginLifecycle[H]> | undefined;
505
- message: string;
506
539
  }): Promise<Awaited<TOuput>[]>;
507
540
  /**
508
541
  * Chains plugins
509
542
  */
510
543
  hookSeq<H extends PluginLifecycleHooks>({
511
544
  hookName,
512
- parameters,
513
- message
545
+ parameters
514
546
  }: {
515
547
  hookName: H;
516
548
  parameters?: PluginParameter<H>;
517
- message: string;
518
549
  }): Promise<void>;
519
550
  getPluginByKey(pluginKey: Plugin['key']): Plugin | undefined;
520
551
  getPluginsByKey(hookName: keyof PluginWithLifeCycle, pluginKey: Plugin['key']): Plugin[];
@@ -845,5 +876,5 @@ type SchemaTree = {
845
876
  };
846
877
  declare function isKeyword<T extends Schema, K extends keyof SchemaKeywordMapper>(meta: T, keyword: K): meta is Extract<T, SchemaKeywordMapper[K]>;
847
878
  //#endregion
848
- export { Plugin as C, BaseGenerator as D, UserPluginWithLifeCycle as E, Output as S, ResolveNameParams as T, contentType as _, SchemaMapper as a, Config as b, schemaKeywords as c, HttpMethod as d, OasTypes as f, SchemaObject$1 as g, Operation$1 as h, SchemaKeywordMapper as i, isOptional as l, OpenAPIV3_1 as m, SchemaKeyword as n, SchemaTree as o, OpenAPIV3$1 as p, SchemaKeywordBase as r, isKeyword as s, Schema as t, Oas as u, FileMetaBase as v, PluginFactoryOptions as w, Group as x, PluginManager as y };
849
- //# sourceMappingURL=SchemaMapper-BSeOSE-y.d.ts.map
879
+ export { Plugin as C, Logger as D, UserPluginWithLifeCycle as E, BaseGenerator as O, Output as S, ResolveNameParams as T, contentType as _, SchemaMapper as a, Config as b, schemaKeywords as c, HttpMethod as d, OasTypes as f, SchemaObject$1 as g, Operation$1 as h, SchemaKeywordMapper as i, isOptional as l, OpenAPIV3_1 as m, SchemaKeyword as n, SchemaTree as o, OpenAPIV3$1 as p, SchemaKeywordBase as r, isKeyword as s, Schema as t, Oas as u, FileMetaBase as v, PluginFactoryOptions as w, Group as x, PluginManager as y };
880
+ //# sourceMappingURL=SchemaMapper-CIK5L5DN.d.ts.map
@@ -37,13 +37,35 @@ type DebugEvent = {
37
37
  date: Date;
38
38
  logs: string[];
39
39
  fileName?: string;
40
+ /**
41
+ * Category of the debug log, used for GitHub Actions grouping
42
+ * - 'setup': Initial configuration and environment setup
43
+ * - 'plugin': Plugin installation and execution
44
+ * - 'hook': Plugin hook execution details
45
+ * - 'schema': Schema parsing and generation
46
+ * - 'file': File operations (read/write/generate)
47
+ * - 'error': Error details and stack traces
48
+ * - undefined: Generic logs (always inline)
49
+ */
50
+ category?: 'setup' | 'plugin' | 'hook' | 'schema' | 'file' | 'error';
51
+ /**
52
+ * Plugin name for grouping plugin-specific logs together
53
+ */
54
+ pluginName?: string;
55
+ /**
56
+ * Indicates if this is the start or end of a plugin's execution
57
+ * - 'start': Start of plugin execution group
58
+ * - 'end': End of plugin execution group
59
+ */
60
+ pluginGroupMarker?: 'start' | 'end';
40
61
  };
41
62
  type Events$1 = {
42
63
  start: [message: string];
43
64
  success: [message: string];
44
- error: [message: string, cause: Error];
65
+ error: [message: string, error: Error];
45
66
  warning: [message: string];
46
67
  debug: [DebugEvent];
68
+ verbose: [DebugEvent];
47
69
  info: [message: string];
48
70
  progress_start: [{
49
71
  id: string;
@@ -67,7 +89,7 @@ type Logger = {
67
89
  consola?: ConsolaInstance;
68
90
  on: EventEmitter<Events$1>['on'];
69
91
  emit: EventEmitter<Events$1>['emit'];
70
- writeLogs: () => Promise<string[]>;
92
+ writeLogs: () => Promise<void>;
71
93
  };
72
94
  //#endregion
73
95
  //#region ../core/src/utils/types.d.ts
@@ -378,14 +400,35 @@ type Group = {
378
400
  //#region ../core/src/PluginManager.d.ts
379
401
  type RequiredPluginLifecycle = Required<PluginLifecycle>;
380
402
  type Strategy = 'hookFirst' | 'hookForPlugin' | 'hookParallel' | 'hookSeq';
381
- type Executer<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
382
- message: string;
403
+ type ExecutingMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
383
404
  strategy: Strategy;
384
405
  hookName: H;
385
406
  plugin: Plugin;
386
407
  parameters?: unknown[] | undefined;
387
408
  output?: unknown;
388
409
  };
410
+ type ExecutedMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
411
+ duration: number;
412
+ strategy: Strategy;
413
+ hookName: H;
414
+ plugin: Plugin;
415
+ parameters?: unknown[] | undefined;
416
+ output?: unknown;
417
+ };
418
+ type ErrorMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
419
+ hookName: H;
420
+ duration: number;
421
+ strategy: Strategy;
422
+ parameters?: unknown[] | undefined;
423
+ plugin: Plugin;
424
+ };
425
+ type ProgressStartMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
426
+ hookName: H;
427
+ plugins: Array<Plugin>;
428
+ };
429
+ type ProgressStopMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
430
+ hookName: H;
431
+ };
389
432
  type ParseResult<H extends PluginLifecycleHooks> = RequiredPluginLifecycle[H];
390
433
  type SafeParseResult<H extends PluginLifecycleHooks, Result = ReturnType<ParseResult<H>>> = {
391
434
  result: Result;
@@ -400,9 +443,11 @@ type Options$1 = {
400
443
  concurrency?: number;
401
444
  };
402
445
  type Events = {
403
- executing: [executer: Executer];
404
- executed: [executer: Executer];
405
- error: [error: Error];
446
+ progress_start: [meta: ProgressStartMeta];
447
+ progress_stop: [meta: ProgressStopMeta];
448
+ executing: [meta: ExecutingMeta];
449
+ executed: [meta: ExecutedMeta];
450
+ error: [error: Error, meta: ErrorMeta];
406
451
  };
407
452
  type GetFileProps<TOptions = object> = {
408
453
  name: string;
@@ -415,8 +460,6 @@ declare class PluginManager {
415
460
  #private;
416
461
  readonly events: EventEmitter<Events>;
417
462
  readonly config: Config;
418
- readonly executed: Array<Executer>;
419
- readonly logger: Logger;
420
463
  readonly options: Options$1;
421
464
  constructor(config: Config, options: Options$1);
422
465
  getContext<TOptions extends PluginFactoryOptions>(plugin: Plugin<TOptions>): PluginContext<TOptions> & Record<string, any>;
@@ -442,13 +485,11 @@ declare class PluginManager {
442
485
  hookForPlugin<H extends PluginLifecycleHooks>({
443
486
  pluginKey,
444
487
  hookName,
445
- parameters,
446
- message
488
+ parameters
447
489
  }: {
448
490
  pluginKey: Plugin['key'];
449
491
  hookName: H;
450
492
  parameters: PluginParameter<H>;
451
- message: string;
452
493
  }): Promise<Array<ReturnType<ParseResult<H>> | null>>;
453
494
  /**
454
495
  * Run a specific hookName for plugin x.
@@ -456,13 +497,11 @@ declare class PluginManager {
456
497
  hookForPluginSync<H extends PluginLifecycleHooks>({
457
498
  pluginKey,
458
499
  hookName,
459
- parameters,
460
- message
500
+ parameters
461
501
  }: {
462
502
  pluginKey: Plugin['key'];
463
503
  hookName: H;
464
504
  parameters: PluginParameter<H>;
465
- message: string;
466
505
  }): Array<ReturnType<ParseResult<H>>> | null;
467
506
  /**
468
507
  * First non-null result stops and will return it's value.
@@ -470,13 +509,11 @@ declare class PluginManager {
470
509
  hookFirst<H extends PluginLifecycleHooks>({
471
510
  hookName,
472
511
  parameters,
473
- skipped,
474
- message
512
+ skipped
475
513
  }: {
476
514
  hookName: H;
477
515
  parameters: PluginParameter<H>;
478
516
  skipped?: ReadonlySet<Plugin> | null;
479
- message: string;
480
517
  }): Promise<SafeParseResult<H>>;
481
518
  /**
482
519
  * First non-null result stops and will return it's value.
@@ -484,37 +521,31 @@ declare class PluginManager {
484
521
  hookFirstSync<H extends PluginLifecycleHooks>({
485
522
  hookName,
486
523
  parameters,
487
- skipped,
488
- message
524
+ skipped
489
525
  }: {
490
526
  hookName: H;
491
527
  parameters: PluginParameter<H>;
492
528
  skipped?: ReadonlySet<Plugin> | null;
493
- message: string;
494
529
  }): SafeParseResult<H>;
495
530
  /**
496
531
  * Run all plugins in parallel(order will be based on `this.plugin` and if `pre` or `post` is set).
497
532
  */
498
533
  hookParallel<H extends PluginLifecycleHooks, TOuput = void>({
499
534
  hookName,
500
- parameters,
501
- message
535
+ parameters
502
536
  }: {
503
537
  hookName: H;
504
538
  parameters?: Parameters<RequiredPluginLifecycle[H]> | undefined;
505
- message: string;
506
539
  }): Promise<Awaited<TOuput>[]>;
507
540
  /**
508
541
  * Chains plugins
509
542
  */
510
543
  hookSeq<H extends PluginLifecycleHooks>({
511
544
  hookName,
512
- parameters,
513
- message
545
+ parameters
514
546
  }: {
515
547
  hookName: H;
516
548
  parameters?: PluginParameter<H>;
517
- message: string;
518
549
  }): Promise<void>;
519
550
  getPluginByKey(pluginKey: Plugin['key']): Plugin | undefined;
520
551
  getPluginsByKey(hookName: keyof PluginWithLifeCycle, pluginKey: Plugin['key']): Plugin[];
@@ -845,5 +876,5 @@ type SchemaTree = {
845
876
  };
846
877
  declare function isKeyword<T extends Schema, K extends keyof SchemaKeywordMapper>(meta: T, keyword: K): meta is Extract<T, SchemaKeywordMapper[K]>;
847
878
  //#endregion
848
- export { Plugin as C, BaseGenerator as D, UserPluginWithLifeCycle as E, Output as S, ResolveNameParams as T, contentType as _, SchemaMapper as a, Config as b, schemaKeywords as c, HttpMethod as d, OasTypes as f, SchemaObject$1 as g, Operation$1 as h, SchemaKeywordMapper as i, isOptional as l, OpenAPIV3_1 as m, SchemaKeyword as n, SchemaTree as o, OpenAPIV3$1 as p, SchemaKeywordBase as r, isKeyword as s, Schema as t, Oas as u, FileMetaBase as v, PluginFactoryOptions as w, Group as x, PluginManager as y };
849
- //# sourceMappingURL=SchemaMapper-DOSP3wgJ.d.cts.map
879
+ export { Plugin as C, Logger as D, UserPluginWithLifeCycle as E, BaseGenerator as O, Output as S, ResolveNameParams as T, contentType as _, SchemaMapper as a, Config as b, schemaKeywords as c, HttpMethod as d, OasTypes as f, SchemaObject$1 as g, Operation$1 as h, SchemaKeywordMapper as i, isOptional as l, OpenAPIV3_1 as m, SchemaKeyword as n, SchemaTree as o, OpenAPIV3$1 as p, SchemaKeywordBase as r, isKeyword as s, Schema as t, Oas as u, FileMetaBase as v, PluginFactoryOptions as w, Group as x, PluginManager as y };
880
+ //# sourceMappingURL=SchemaMapper-Dfz9lGho.d.cts.map
@@ -1,4 +1,4 @@
1
- import { C as Plugin, D as BaseGenerator, S as Output, T as ResolveNameParams, _ as contentType, b as Config, d as HttpMethod, g as SchemaObject, h as Operation, i as SchemaKeywordMapper, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions, x as Group, y as PluginManager } from "./SchemaMapper-DOSP3wgJ.cjs";
1
+ import { C as Plugin, D as Logger, O as BaseGenerator, S as Output, T as ResolveNameParams, _ as contentType, b as Config, d as HttpMethod, g as SchemaObject, h as Operation, i as SchemaKeywordMapper, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions, x as Group, y as PluginManager } from "./SchemaMapper-Dfz9lGho.cjs";
2
2
  import { KubbFile } from "@kubb/fabric-core/types";
3
3
  import { Fabric } from "@kubb/react-fabric";
4
4
  import { KubbNode } from "@kubb/react-fabric/types";
@@ -170,6 +170,7 @@ type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
170
170
  override: Array<Override<TOptions>> | undefined;
171
171
  contentType: contentType | undefined;
172
172
  pluginManager: PluginManager;
173
+ logger?: Logger;
173
174
  /**
174
175
  * Current plugin
175
176
  */
@@ -198,6 +199,7 @@ type Context<TOptions, TPluginOptions extends PluginFactoryOptions> = {
198
199
  fabric: Fabric;
199
200
  oas: Oas;
200
201
  pluginManager: PluginManager;
202
+ logger?: Logger;
201
203
  /**
202
204
  * Current plugin
203
205
  */
@@ -316,4 +318,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
316
318
  declare function createGenerator<TOptions extends PluginFactoryOptions>(generator: UserGenerator<TOptions>): CoreGenerator<TOptions>;
317
319
  //#endregion
318
320
  export { Resolver as C, ResolvePathOptions as S, Options as _, createReactGenerator as a, Ref as b, SchemaGeneratorBuildOptions as c, OperationGenerator as d, OperationMethodResult as f, OperationSchemas as g, OperationSchema as h, ReactGenerator as i, SchemaGeneratorOptions as l, Include as m, createGenerator as n, GetSchemaGeneratorOptions as o, Exclude as p, Generator as r, SchemaGenerator as s, CoreGenerator as t, SchemaMethodResult as u, Override as v, Refs as x, PluginOas as y };
319
- //# sourceMappingURL=createGenerator-ChN9hQ6p.d.cts.map
321
+ //# sourceMappingURL=createGenerator-5Mu_DEco.d.cts.map
@@ -1,4 +1,4 @@
1
- import { C as Plugin, D as BaseGenerator, S as Output, T as ResolveNameParams, _ as contentType, b as Config, d as HttpMethod, g as SchemaObject, h as Operation, i as SchemaKeywordMapper, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions, x as Group, y as PluginManager } from "./SchemaMapper-BSeOSE-y.js";
1
+ import { C as Plugin, D as Logger, O as BaseGenerator, S as Output, T as ResolveNameParams, _ as contentType, b as Config, d as HttpMethod, g as SchemaObject, h as Operation, i as SchemaKeywordMapper, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions, x as Group, y as PluginManager } from "./SchemaMapper-CIK5L5DN.js";
2
2
  import { Fabric } from "@kubb/react-fabric";
3
3
  import { KubbFile } from "@kubb/fabric-core/types";
4
4
  import { KubbNode } from "@kubb/react-fabric/types";
@@ -170,6 +170,7 @@ type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
170
170
  override: Array<Override<TOptions>> | undefined;
171
171
  contentType: contentType | undefined;
172
172
  pluginManager: PluginManager;
173
+ logger?: Logger;
173
174
  /**
174
175
  * Current plugin
175
176
  */
@@ -198,6 +199,7 @@ type Context<TOptions, TPluginOptions extends PluginFactoryOptions> = {
198
199
  fabric: Fabric;
199
200
  oas: Oas;
200
201
  pluginManager: PluginManager;
202
+ logger?: Logger;
201
203
  /**
202
204
  * Current plugin
203
205
  */
@@ -316,4 +318,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
316
318
  declare function createGenerator<TOptions extends PluginFactoryOptions>(generator: UserGenerator<TOptions>): CoreGenerator<TOptions>;
317
319
  //#endregion
318
320
  export { Resolver as C, ResolvePathOptions as S, Options as _, createReactGenerator as a, Ref as b, SchemaGeneratorBuildOptions as c, OperationGenerator as d, OperationMethodResult as f, OperationSchemas as g, OperationSchema as h, ReactGenerator as i, SchemaGeneratorOptions as l, Include as m, createGenerator as n, GetSchemaGeneratorOptions as o, Exclude as p, Generator as r, SchemaGenerator as s, CoreGenerator as t, SchemaMethodResult as u, Override as v, Refs as x, PluginOas as y };
319
- //# sourceMappingURL=createGenerator-CD_IVg6x.d.ts.map
321
+ //# sourceMappingURL=createGenerator-CQWDp6sV.d.ts.map
@@ -1,5 +1,5 @@
1
- import "./SchemaMapper-DOSP3wgJ.cjs";
2
- import { a as createReactGenerator, n as createGenerator, r as Generator, t as CoreGenerator, y as PluginOas } from "./createGenerator-ChN9hQ6p.cjs";
1
+ import "./SchemaMapper-Dfz9lGho.cjs";
2
+ import { a as createReactGenerator, n as createGenerator, r as Generator, t as CoreGenerator, y as PluginOas } from "./createGenerator-5Mu_DEco.cjs";
3
3
 
4
4
  //#region src/generators/jsonGenerator.d.ts
5
5
  declare const jsonGenerator: CoreGenerator<PluginOas>;
@@ -1,5 +1,5 @@
1
- import "./SchemaMapper-BSeOSE-y.js";
2
- import { a as createReactGenerator, n as createGenerator, r as Generator, t as CoreGenerator, y as PluginOas } from "./createGenerator-CD_IVg6x.js";
1
+ import "./SchemaMapper-CIK5L5DN.js";
2
+ import { a as createReactGenerator, n as createGenerator, r as Generator, t as CoreGenerator, y as PluginOas } from "./createGenerator-CQWDp6sV.js";
3
3
 
4
4
  //#region src/generators/jsonGenerator.d.ts
5
5
  declare const jsonGenerator: CoreGenerator<PluginOas>;
package/dist/hooks.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
- const require_SchemaGenerator = require('./SchemaGenerator-BEyE5yFD.cjs');
2
+ const require_SchemaGenerator = require('./SchemaGenerator-BpPB5lqA.cjs');
3
3
  const require_SchemaMapper = require('./SchemaMapper-BN2pgCUs.cjs');
4
4
  let __kubb_react_fabric = require("@kubb/react-fabric");
5
5
  let __kubb_core_hooks = require("@kubb/core/hooks");
package/dist/hooks.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as Plugin, T as ResolveNameParams, h as Operation, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions } from "./SchemaMapper-DOSP3wgJ.cjs";
2
- import { d as OperationGenerator, g as OperationSchemas } from "./createGenerator-ChN9hQ6p.cjs";
1
+ import { C as Plugin, T as ResolveNameParams, h as Operation, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions } from "./SchemaMapper-Dfz9lGho.cjs";
2
+ import { d as OperationGenerator, g as OperationSchemas } from "./createGenerator-5Mu_DEco.cjs";
3
3
  import { KubbFile } from "@kubb/fabric-core/types";
4
4
 
5
5
  //#region src/hooks/useOas.d.ts
package/dist/hooks.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as Plugin, T as ResolveNameParams, h as Operation, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions } from "./SchemaMapper-BSeOSE-y.js";
2
- import { d as OperationGenerator, g as OperationSchemas } from "./createGenerator-CD_IVg6x.js";
1
+ import { C as Plugin, T as ResolveNameParams, h as Operation, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions } from "./SchemaMapper-CIK5L5DN.js";
2
+ import { d as OperationGenerator, g as OperationSchemas } from "./createGenerator-CQWDp6sV.js";
3
3
  import { KubbFile } from "@kubb/fabric-core/types";
4
4
 
5
5
  //#region src/hooks/useOas.d.ts
package/dist/hooks.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as SchemaGenerator } from "./SchemaGenerator-Bzj3I5Yv.js";
1
+ import { t as SchemaGenerator } from "./SchemaGenerator-HVn_098D.js";
2
2
  import { n as schemaKeywords } from "./SchemaMapper-eCHsqfmg.js";
3
3
  import { useApp } from "@kubb/react-fabric";
4
4
  import { usePlugin, usePluginManager } from "@kubb/core/hooks";
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_generators = require('./generators--YV0NNUJ.cjs');
3
- const require_SchemaGenerator = require('./SchemaGenerator-BEyE5yFD.cjs');
3
+ const require_SchemaGenerator = require('./SchemaGenerator-BpPB5lqA.cjs');
4
4
  const require_SchemaMapper = require('./SchemaMapper-BN2pgCUs.cjs');
5
5
  let __kubb_core = require("@kubb/core");
6
6
  let __kubb_core_transformers = require("@kubb/core/transformers");
@@ -213,6 +213,11 @@ var OperationGenerator = class extends __kubb_core.BaseGenerator {
213
213
  const operations = await this.getOperations();
214
214
  const generatorLimit = require_SchemaGenerator.pLimit(1);
215
215
  const operationLimit = require_SchemaGenerator.pLimit(10);
216
+ this.context.logger?.emit("debug", {
217
+ date: /* @__PURE__ */ new Date(),
218
+ pluginName: this.context.plugin.name,
219
+ logs: [`Building ${operations.length} operations`, ` • Generators: ${generators.length}`]
220
+ });
216
221
  const writeTasks = generators.map((generator) => generatorLimit(async () => {
217
222
  const operationTasks = operations.map(({ operation, method }) => operationLimit(async () => {
218
223
  const options = this.#getOptions(operation, method);
@@ -340,6 +345,7 @@ const pluginOas = (0, __kubb_core.definePlugin)((options) => {
340
345
  fabric: this.fabric,
341
346
  oas,
342
347
  pluginManager: this.pluginManager,
348
+ logger: this.logger,
343
349
  plugin: this.plugin,
344
350
  contentType,
345
351
  include: void 0,
@@ -352,6 +358,7 @@ const pluginOas = (0, __kubb_core.definePlugin)((options) => {
352
358
  fabric: this.fabric,
353
359
  oas,
354
360
  pluginManager: this.pluginManager,
361
+ logger: this.logger,
355
362
  plugin: this.plugin,
356
363
  contentType,
357
364
  exclude: void 0,