@kubb/plugin-client 4.12.6 → 4.12.7
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/dist/components.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/generators.d.cts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{types-g75-RjQa.d.cts → types-BqsMSZBS.d.cts} +12 -4
- package/dist/{types-RDkxaTi2.d.ts → types-ms-ddFpz.d.ts} +12 -4
- package/package.json +8 -9
package/dist/components.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-
|
|
1
|
+
import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-BqsMSZBS.cjs";
|
|
2
2
|
import { FunctionParams } from "@kubb/react-fabric";
|
|
3
3
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
4
4
|
|
package/dist/components.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-
|
|
1
|
+
import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-ms-ddFpz.js";
|
|
2
2
|
import { FunctionParams } from "@kubb/react-fabric";
|
|
3
3
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
4
4
|
|
package/dist/generators.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PluginClient, r as ReactGenerator } from "./types-
|
|
1
|
+
import { n as PluginClient, r as ReactGenerator } from "./types-BqsMSZBS.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/generators/classClientGenerator.d.ts
|
|
4
4
|
declare const classClientGenerator: ReactGenerator<PluginClient>;
|
package/dist/generators.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PluginClient, r as ReactGenerator } from "./types-
|
|
1
|
+
import { n as PluginClient, r as ReactGenerator } from "./types-ms-ddFpz.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-
|
|
1
|
+
import { a as UserPluginWithLifeCycle, n as PluginClient, t as Options } from "./types-BqsMSZBS.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-
|
|
1
|
+
import { a as UserPluginWithLifeCycle, n as PluginClient, t as Options } from "./types-ms-ddFpz.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginClientName = "plugin-client";
|
|
@@ -100,7 +100,7 @@ type ExecutedMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
|
100
100
|
* console.log('Starting Kubb generation')
|
|
101
101
|
* })
|
|
102
102
|
*
|
|
103
|
-
* events.on('plugin:end', (plugin, duration) => {
|
|
103
|
+
* events.on('plugin:end', (plugin, { duration }) => {
|
|
104
104
|
* console.log(`Plugin ${plugin.name} completed in ${duration}ms`)
|
|
105
105
|
* })
|
|
106
106
|
* ```
|
|
@@ -246,8 +246,13 @@ interface KubbEvents {
|
|
|
246
246
|
'plugin:start': [plugin: Plugin];
|
|
247
247
|
/**
|
|
248
248
|
* Emitted when a plugin completes execution.
|
|
249
|
+
* Duration in ms
|
|
249
250
|
*/
|
|
250
|
-
'plugin:end': [plugin: Plugin,
|
|
251
|
+
'plugin:end': [plugin: Plugin, meta: {
|
|
252
|
+
duration: number;
|
|
253
|
+
success: boolean;
|
|
254
|
+
error?: Error;
|
|
255
|
+
}];
|
|
251
256
|
/**
|
|
252
257
|
* Emitted when plugin hook progress tracking starts.
|
|
253
258
|
* Contains the hook name and list of plugins to execute.
|
|
@@ -706,8 +711,11 @@ type FileMetaBase = {
|
|
|
706
711
|
};
|
|
707
712
|
//#endregion
|
|
708
713
|
//#region ../plugin-oas/src/types.d.ts
|
|
714
|
+
type GetOasOptions = {
|
|
715
|
+
validate?: boolean;
|
|
716
|
+
};
|
|
709
717
|
type Context$2 = {
|
|
710
|
-
getOas(): Promise<Oas>;
|
|
718
|
+
getOas(options?: GetOasOptions): Promise<Oas>;
|
|
711
719
|
getBaseURL(): Promise<string | undefined>;
|
|
712
720
|
};
|
|
713
721
|
declare global {
|
|
@@ -1283,4 +1291,4 @@ type ResolvedOptions = {
|
|
|
1283
1291
|
type PluginClient = PluginFactoryOptions<'plugin-client', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1284
1292
|
//#endregion
|
|
1285
1293
|
export { UserPluginWithLifeCycle as a, OperationSchemas as i, PluginClient as n, Operation$1 as o, ReactGenerator as r, Options as t };
|
|
1286
|
-
//# sourceMappingURL=types-
|
|
1294
|
+
//# sourceMappingURL=types-BqsMSZBS.d.cts.map
|
|
@@ -100,7 +100,7 @@ type ExecutedMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
|
100
100
|
* console.log('Starting Kubb generation')
|
|
101
101
|
* })
|
|
102
102
|
*
|
|
103
|
-
* events.on('plugin:end', (plugin, duration) => {
|
|
103
|
+
* events.on('plugin:end', (plugin, { duration }) => {
|
|
104
104
|
* console.log(`Plugin ${plugin.name} completed in ${duration}ms`)
|
|
105
105
|
* })
|
|
106
106
|
* ```
|
|
@@ -246,8 +246,13 @@ interface KubbEvents {
|
|
|
246
246
|
'plugin:start': [plugin: Plugin];
|
|
247
247
|
/**
|
|
248
248
|
* Emitted when a plugin completes execution.
|
|
249
|
+
* Duration in ms
|
|
249
250
|
*/
|
|
250
|
-
'plugin:end': [plugin: Plugin,
|
|
251
|
+
'plugin:end': [plugin: Plugin, meta: {
|
|
252
|
+
duration: number;
|
|
253
|
+
success: boolean;
|
|
254
|
+
error?: Error;
|
|
255
|
+
}];
|
|
251
256
|
/**
|
|
252
257
|
* Emitted when plugin hook progress tracking starts.
|
|
253
258
|
* Contains the hook name and list of plugins to execute.
|
|
@@ -706,8 +711,11 @@ type FileMetaBase = {
|
|
|
706
711
|
};
|
|
707
712
|
//#endregion
|
|
708
713
|
//#region ../plugin-oas/src/types.d.ts
|
|
714
|
+
type GetOasOptions = {
|
|
715
|
+
validate?: boolean;
|
|
716
|
+
};
|
|
709
717
|
type Context$2 = {
|
|
710
|
-
getOas(): Promise<Oas>;
|
|
718
|
+
getOas(options?: GetOasOptions): Promise<Oas>;
|
|
711
719
|
getBaseURL(): Promise<string | undefined>;
|
|
712
720
|
};
|
|
713
721
|
declare global {
|
|
@@ -1283,4 +1291,4 @@ type ResolvedOptions = {
|
|
|
1283
1291
|
type PluginClient = PluginFactoryOptions<'plugin-client', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1284
1292
|
//#endregion
|
|
1285
1293
|
export { UserPluginWithLifeCycle as a, OperationSchemas as i, PluginClient as n, Operation$1 as o, ReactGenerator as r, Options as t };
|
|
1286
|
-
//# sourceMappingURL=types-
|
|
1294
|
+
//# sourceMappingURL=types-ms-ddFpz.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-client",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.7",
|
|
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,19 +86,18 @@
|
|
|
86
86
|
}
|
|
87
87
|
],
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@kubb/react-fabric": "0.7.
|
|
90
|
-
"
|
|
91
|
-
"@kubb/
|
|
92
|
-
"@kubb/oas": "4.12.
|
|
93
|
-
"@kubb/plugin-
|
|
94
|
-
"@kubb/plugin-
|
|
95
|
-
"@kubb/plugin-zod": "4.12.6"
|
|
89
|
+
"@kubb/react-fabric": "0.7.2",
|
|
90
|
+
"@kubb/core": "4.12.7",
|
|
91
|
+
"@kubb/oas": "4.12.7",
|
|
92
|
+
"@kubb/plugin-oas": "4.12.7",
|
|
93
|
+
"@kubb/plugin-ts": "4.12.7",
|
|
94
|
+
"@kubb/plugin-zod": "4.12.7"
|
|
96
95
|
},
|
|
97
96
|
"devDependencies": {
|
|
98
97
|
"axios": "^1.13.2"
|
|
99
98
|
},
|
|
100
99
|
"peerDependencies": {
|
|
101
|
-
"@kubb/react-fabric": "0.7.
|
|
100
|
+
"@kubb/react-fabric": "0.7.2",
|
|
102
101
|
"axios": "^1.7.2"
|
|
103
102
|
},
|
|
104
103
|
"peerDependenciesMeta": {
|