@kubb/plugin-client 4.19.0 → 4.19.1
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-CEoiGmcV.d.ts → types-D5mjjLwY.d.ts} +7 -1
- package/dist/{types-9E2xtAWa.d.cts → types-DU3QT8qo.d.cts} +7 -1
- package/package.json +6 -6
package/dist/components.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk-DlpkT3g-.cjs";
|
|
2
|
-
import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-
|
|
2
|
+
import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-DU3QT8qo.cjs";
|
|
3
3
|
import { FunctionParams } from "@kubb/react-fabric";
|
|
4
4
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
5
5
|
|
package/dist/components.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk-iVr_oF3V.js";
|
|
2
|
-
import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-
|
|
2
|
+
import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-D5mjjLwY.js";
|
|
3
3
|
import { FunctionParams } from "@kubb/react-fabric";
|
|
4
4
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
5
5
|
|
package/dist/generators.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk-DlpkT3g-.cjs";
|
|
2
|
-
import { n as PluginClient, r as ReactGenerator } from "./types-
|
|
2
|
+
import { n as PluginClient, r as ReactGenerator } from "./types-DU3QT8qo.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/generators/classClientGenerator.d.ts
|
|
5
5
|
declare const classClientGenerator: ReactGenerator<PluginClient>;
|
package/dist/generators.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk-iVr_oF3V.js";
|
|
2
|
-
import { n as PluginClient, r as ReactGenerator } from "./types-
|
|
2
|
+
import { n as PluginClient, r as ReactGenerator } from "./types-D5mjjLwY.js";
|
|
3
3
|
|
|
4
4
|
//#region src/generators/classClientGenerator.d.ts
|
|
5
5
|
declare const classClientGenerator: ReactGenerator<PluginClient>;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk-DlpkT3g-.cjs";
|
|
2
|
-
import { a as UserPluginWithLifeCycle, n as PluginClient, t as Options } from "./types-
|
|
2
|
+
import { a as UserPluginWithLifeCycle, n as PluginClient, t as Options } from "./types-DU3QT8qo.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin.d.ts
|
|
5
5
|
declare const pluginClientName = "plugin-client";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk-iVr_oF3V.js";
|
|
2
|
-
import { a as UserPluginWithLifeCycle, n as PluginClient, t as Options } from "./types-
|
|
2
|
+
import { a as UserPluginWithLifeCycle, n as PluginClient, t as Options } from "./types-D5mjjLwY.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin.d.ts
|
|
5
5
|
declare const pluginClientName = "plugin-client";
|
|
@@ -1118,6 +1118,11 @@ type SchemaGeneratorOptions = {
|
|
|
1118
1118
|
emptySchemaType: 'any' | 'unknown' | 'void';
|
|
1119
1119
|
enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
|
|
1120
1120
|
enumSuffix?: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* @deprecated Will be removed in v5. Use `collisionDetection: true` instead to prevent enum name collisions.
|
|
1123
|
+
* When `collisionDetection` is enabled, the rootName-based approach eliminates the need for numeric suffixes.
|
|
1124
|
+
* @internal
|
|
1125
|
+
*/
|
|
1121
1126
|
usedEnumNames?: Record<string, number>;
|
|
1122
1127
|
mapper?: Record<string, string>;
|
|
1123
1128
|
typed?: boolean;
|
|
@@ -1138,6 +1143,7 @@ type SchemaProps$1 = {
|
|
|
1138
1143
|
schema: SchemaObject$1 | null;
|
|
1139
1144
|
name: string | null;
|
|
1140
1145
|
parentName: string | null;
|
|
1146
|
+
rootName?: string | null;
|
|
1141
1147
|
};
|
|
1142
1148
|
declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
|
|
1143
1149
|
#private;
|
|
@@ -1332,4 +1338,4 @@ type ResolvedOptions = {
|
|
|
1332
1338
|
type PluginClient = PluginFactoryOptions<'plugin-client', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1333
1339
|
//#endregion
|
|
1334
1340
|
export { UserPluginWithLifeCycle as a, OperationSchemas as i, PluginClient as n, Operation$1 as o, ReactGenerator as r, Options as t };
|
|
1335
|
-
//# sourceMappingURL=types-
|
|
1341
|
+
//# sourceMappingURL=types-D5mjjLwY.d.ts.map
|
|
@@ -1118,6 +1118,11 @@ type SchemaGeneratorOptions = {
|
|
|
1118
1118
|
emptySchemaType: 'any' | 'unknown' | 'void';
|
|
1119
1119
|
enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
|
|
1120
1120
|
enumSuffix?: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* @deprecated Will be removed in v5. Use `collisionDetection: true` instead to prevent enum name collisions.
|
|
1123
|
+
* When `collisionDetection` is enabled, the rootName-based approach eliminates the need for numeric suffixes.
|
|
1124
|
+
* @internal
|
|
1125
|
+
*/
|
|
1121
1126
|
usedEnumNames?: Record<string, number>;
|
|
1122
1127
|
mapper?: Record<string, string>;
|
|
1123
1128
|
typed?: boolean;
|
|
@@ -1138,6 +1143,7 @@ type SchemaProps$1 = {
|
|
|
1138
1143
|
schema: SchemaObject$1 | null;
|
|
1139
1144
|
name: string | null;
|
|
1140
1145
|
parentName: string | null;
|
|
1146
|
+
rootName?: string | null;
|
|
1141
1147
|
};
|
|
1142
1148
|
declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
|
|
1143
1149
|
#private;
|
|
@@ -1332,4 +1338,4 @@ type ResolvedOptions = {
|
|
|
1332
1338
|
type PluginClient = PluginFactoryOptions<'plugin-client', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1333
1339
|
//#endregion
|
|
1334
1340
|
export { UserPluginWithLifeCycle as a, OperationSchemas as i, PluginClient as n, Operation$1 as o, ReactGenerator as r, Options as t };
|
|
1335
|
-
//# sourceMappingURL=types-
|
|
1341
|
+
//# sourceMappingURL=types-DU3QT8qo.d.cts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-client",
|
|
3
|
-
"version": "4.19.
|
|
3
|
+
"version": "4.19.1",
|
|
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",
|
|
@@ -87,11 +87,11 @@
|
|
|
87
87
|
],
|
|
88
88
|
"dependencies": {
|
|
89
89
|
"@kubb/react-fabric": "0.12.4",
|
|
90
|
-
"@kubb/core": "4.19.
|
|
91
|
-
"@kubb/oas": "4.19.
|
|
92
|
-
"@kubb/plugin-oas": "4.19.
|
|
93
|
-
"@kubb/plugin-ts": "4.19.
|
|
94
|
-
"@kubb/plugin-zod": "4.19.
|
|
90
|
+
"@kubb/core": "4.19.1",
|
|
91
|
+
"@kubb/oas": "4.19.1",
|
|
92
|
+
"@kubb/plugin-oas": "4.19.1",
|
|
93
|
+
"@kubb/plugin-ts": "4.19.1",
|
|
94
|
+
"@kubb/plugin-zod": "4.19.1"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"axios": "^1.13.3"
|