@kubb/plugin-client 5.0.0-alpha.2 → 5.0.0-alpha.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.
@@ -1,6 +1,6 @@
1
1
  import { t as __name } from "./chunk--u3MIqq1.js";
2
2
  import { r as PluginClient } from "./types-CdM4DK1M.js";
3
- import { AsyncEventEmitter, Config, FileMetaBase, Group, KubbEvents, Output, Plugin, PluginFactoryOptions, PluginManager, ResolveNameParams } from "@kubb/core";
3
+ import { Adapter, AsyncEventEmitter, Config, FileMetaBase, Group, KubbEvents, Output, Plugin, PluginFactoryOptions, PluginManager, ResolveNameParams } from "@kubb/core";
4
4
  import { Fabric } from "@kubb/react-fabric";
5
5
  import { HttpMethod, Oas, Operation, SchemaObject, contentType } from "@kubb/oas";
6
6
  import { FabricReactNode } from "@kubb/react-fabric/types";
@@ -446,7 +446,8 @@ type OperationsV1Props<TOptions extends PluginFactoryOptions> = {
446
446
  };
447
447
  type OperationsV2Props<TOptions extends PluginFactoryOptions> = {
448
448
  config: Config;
449
- plugin: Plugin<TOptions>;
449
+ adapter: Adapter;
450
+ options: Plugin<TOptions>['options'];
450
451
  nodes: Array<OperationNode>;
451
452
  };
452
453
  type OperationV1Props<TOptions extends PluginFactoryOptions> = {
@@ -457,7 +458,8 @@ type OperationV1Props<TOptions extends PluginFactoryOptions> = {
457
458
  };
458
459
  type OperationV2Props<TOptions extends PluginFactoryOptions> = {
459
460
  config: Config;
460
- plugin: Plugin<TOptions>;
461
+ adapter: Adapter;
462
+ options: Plugin<TOptions>['options'];
461
463
  node: OperationNode;
462
464
  };
463
465
  type OperationsProps<TOptions extends PluginFactoryOptions, TVersion extends Version = '1'> = TVersion extends '2' ? OperationsV2Props<TOptions> : OperationsV1Props<TOptions>;
@@ -474,8 +476,9 @@ type SchemaV1Props<TOptions extends PluginFactoryOptions> = {
474
476
  };
475
477
  type SchemaV2Props<TOptions extends PluginFactoryOptions> = {
476
478
  config: Config;
477
- plugin: Plugin<TOptions>;
479
+ options: Plugin<TOptions>['options'];
478
480
  node: SchemaNode;
481
+ adapter: Adapter;
479
482
  };
480
483
  type SchemaProps<TOptions extends PluginFactoryOptions, TVersion extends Version = '1'> = TVersion extends '2' ? SchemaV2Props<TOptions> : SchemaV1Props<TOptions>;
481
484
  type Generator<TOptions extends PluginFactoryOptions, TVersion extends Version = Version> = CoreGenerator<TOptions, TVersion> | ReactGenerator<TOptions, TVersion>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-client",
3
- "version": "5.0.0-alpha.2",
3
+ "version": "5.0.0-alpha.3",
4
4
  "description": "API client generator plugin for Kubb, creating type-safe HTTP clients (Axios, Fetch) from OpenAPI specifications for making API requests.",
5
5
  "keywords": [
6
6
  "api-client",
@@ -110,11 +110,11 @@
110
110
  "dependencies": {
111
111
  "@kubb/fabric-core": "0.13.3",
112
112
  "@kubb/react-fabric": "0.13.3",
113
- "@kubb/core": "5.0.0-alpha.2",
114
- "@kubb/oas": "5.0.0-alpha.2",
115
- "@kubb/plugin-oas": "5.0.0-alpha.2",
116
- "@kubb/plugin-ts": "5.0.0-alpha.2",
117
- "@kubb/plugin-zod": "5.0.0-alpha.2"
113
+ "@kubb/core": "5.0.0-alpha.3",
114
+ "@kubb/oas": "5.0.0-alpha.3",
115
+ "@kubb/plugin-oas": "5.0.0-alpha.3",
116
+ "@kubb/plugin-ts": "5.0.0-alpha.3",
117
+ "@kubb/plugin-zod": "5.0.0-alpha.3"
118
118
  },
119
119
  "devDependencies": {
120
120
  "axios": "^1.13.6",