@kubb/plugin-client 4.13.0 → 4.14.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.
@@ -1,4 +1,4 @@
1
- import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-sOuV7Vw-.cjs";
1
+ import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-poqH3dHx.cjs";
2
2
  import { FunctionParams } from "@kubb/react-fabric";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-CeY3kW8u.js";
1
+ import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-DTBKBmWe.js";
2
2
  import { FunctionParams } from "@kubb/react-fabric";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { n as PluginClient, r as ReactGenerator } from "./types-sOuV7Vw-.cjs";
1
+ import { n as PluginClient, r as ReactGenerator } from "./types-poqH3dHx.cjs";
2
2
 
3
3
  //#region src/generators/classClientGenerator.d.ts
4
4
  declare const classClientGenerator: ReactGenerator<PluginClient>;
@@ -1,4 +1,4 @@
1
- import { n as PluginClient, r as ReactGenerator } from "./types-CeY3kW8u.js";
1
+ import { n as PluginClient, r as ReactGenerator } from "./types-DTBKBmWe.js";
2
2
 
3
3
  //#region src/generators/classClientGenerator.d.ts
4
4
  declare const classClientGenerator: ReactGenerator<PluginClient>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as UserPluginWithLifeCycle, n as PluginClient, t as Options } from "./types-sOuV7Vw-.cjs";
1
+ import { a as UserPluginWithLifeCycle, n as PluginClient, t as Options } from "./types-poqH3dHx.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginClientName = "plugin-client";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as UserPluginWithLifeCycle, n as PluginClient, t as Options } from "./types-CeY3kW8u.js";
1
+ import { a as UserPluginWithLifeCycle, n as PluginClient, t as Options } from "./types-DTBKBmWe.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginClientName = "plugin-client";
@@ -181,6 +181,8 @@ interface KubbEvents {
181
181
  id?: string;
182
182
  command: string;
183
183
  args?: readonly string[];
184
+ success: boolean;
185
+ error: Error | null;
184
186
  }];
185
187
  /**
186
188
  * Emitted when a new version of Kubb is available.
@@ -1079,7 +1081,7 @@ type SchemaGeneratorOptions = {
1079
1081
  dateType: false | 'string' | 'stringOffset' | 'stringLocal' | 'date';
1080
1082
  unknownType: 'any' | 'unknown' | 'void';
1081
1083
  emptySchemaType: 'any' | 'unknown' | 'void';
1082
- enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal';
1084
+ enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
1083
1085
  enumSuffix?: string;
1084
1086
  usedEnumNames?: Record<string, number>;
1085
1087
  mapper?: Record<string, string>;
@@ -1292,4 +1294,4 @@ type ResolvedOptions = {
1292
1294
  type PluginClient = PluginFactoryOptions<'plugin-client', Options, ResolvedOptions, never, ResolvePathOptions>;
1293
1295
  //#endregion
1294
1296
  export { UserPluginWithLifeCycle as a, OperationSchemas as i, PluginClient as n, Operation$1 as o, ReactGenerator as r, Options as t };
1295
- //# sourceMappingURL=types-CeY3kW8u.d.ts.map
1297
+ //# sourceMappingURL=types-DTBKBmWe.d.ts.map
@@ -181,6 +181,8 @@ interface KubbEvents {
181
181
  id?: string;
182
182
  command: string;
183
183
  args?: readonly string[];
184
+ success: boolean;
185
+ error: Error | null;
184
186
  }];
185
187
  /**
186
188
  * Emitted when a new version of Kubb is available.
@@ -1079,7 +1081,7 @@ type SchemaGeneratorOptions = {
1079
1081
  dateType: false | 'string' | 'stringOffset' | 'stringLocal' | 'date';
1080
1082
  unknownType: 'any' | 'unknown' | 'void';
1081
1083
  emptySchemaType: 'any' | 'unknown' | 'void';
1082
- enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal';
1084
+ enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
1083
1085
  enumSuffix?: string;
1084
1086
  usedEnumNames?: Record<string, number>;
1085
1087
  mapper?: Record<string, string>;
@@ -1292,4 +1294,4 @@ type ResolvedOptions = {
1292
1294
  type PluginClient = PluginFactoryOptions<'plugin-client', Options, ResolvedOptions, never, ResolvePathOptions>;
1293
1295
  //#endregion
1294
1296
  export { UserPluginWithLifeCycle as a, OperationSchemas as i, PluginClient as n, Operation$1 as o, ReactGenerator as r, Options as t };
1295
- //# sourceMappingURL=types-sOuV7Vw-.d.cts.map
1297
+ //# sourceMappingURL=types-poqH3dHx.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-client",
3
- "version": "4.13.0",
3
+ "version": "4.14.0",
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",
@@ -86,18 +86,18 @@
86
86
  }
87
87
  ],
88
88
  "dependencies": {
89
- "@kubb/react-fabric": "0.9.0",
90
- "@kubb/core": "4.13.0",
91
- "@kubb/oas": "4.13.0",
92
- "@kubb/plugin-oas": "4.13.0",
93
- "@kubb/plugin-ts": "4.13.0",
94
- "@kubb/plugin-zod": "4.13.0"
89
+ "@kubb/react-fabric": "0.9.2",
90
+ "@kubb/core": "4.14.0",
91
+ "@kubb/oas": "4.14.0",
92
+ "@kubb/plugin-oas": "4.14.0",
93
+ "@kubb/plugin-ts": "4.14.0",
94
+ "@kubb/plugin-zod": "4.14.0"
95
95
  },
96
96
  "devDependencies": {
97
97
  "axios": "^1.13.2"
98
98
  },
99
99
  "peerDependencies": {
100
- "@kubb/react-fabric": "0.9.0",
100
+ "@kubb/react-fabric": "0.9.2",
101
101
  "axios": "^1.7.2"
102
102
  },
103
103
  "peerDependenciesMeta": {