@kubb/plugin-solid-query 4.8.1 → 4.9.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.
- 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-vJudQfrF.d.ts → types-BWjSP_Tw.d.cts} +10 -2
- package/dist/{types-DHNnaDa6.d.cts → types-DJGpASKd.d.ts} +10 -2
- package/package.json +7 -7
package/dist/components.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as OperationSchemas, n as PluginSolidQuery, r as Transformer, s as Operation } from "./types-
|
|
1
|
+
import { a as OperationSchemas, n as PluginSolidQuery, r as Transformer, s as Operation } from "./types-BWjSP_Tw.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 { a as OperationSchemas, n as PluginSolidQuery, r as Transformer, s as Operation } from "./types-
|
|
1
|
+
import { a as OperationSchemas, n as PluginSolidQuery, r as Transformer, s as Operation } from "./types-DJGpASKd.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 { i as ReactGenerator, n as PluginSolidQuery } from "./types-
|
|
1
|
+
import { i as ReactGenerator, n as PluginSolidQuery } from "./types-BWjSP_Tw.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/generators/mutationGenerator.d.ts
|
|
4
4
|
declare const mutationGenerator: ReactGenerator<PluginSolidQuery>;
|
package/dist/generators.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ReactGenerator, n as PluginSolidQuery } from "./types-
|
|
1
|
+
import { i as ReactGenerator, n as PluginSolidQuery } from "./types-DJGpASKd.js";
|
|
2
2
|
|
|
3
3
|
//#region src/generators/mutationGenerator.d.ts
|
|
4
4
|
declare const mutationGenerator: ReactGenerator<PluginSolidQuery>;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PluginSolidQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-
|
|
1
|
+
import { n as PluginSolidQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-BWjSP_Tw.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginSolidQueryName = "plugin-solid-query";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PluginSolidQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-
|
|
1
|
+
import { n as PluginSolidQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-DJGpASKd.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginSolidQueryName = "plugin-solid-query";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Fabric } from "@kubb/react-fabric";
|
|
2
1
|
import * as OasTypes from "oas/types";
|
|
3
2
|
import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
|
|
4
3
|
import { Operation, Operation as Operation$1 } from "oas/operation";
|
|
@@ -6,6 +5,7 @@ import { OpenAPIV3 } from "openapi-types";
|
|
|
6
5
|
import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
|
|
7
6
|
import BaseOas from "oas";
|
|
8
7
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
8
|
+
import { Fabric } from "@kubb/react-fabric";
|
|
9
9
|
import { ConsolaInstance, LogLevel } from "consola";
|
|
10
10
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
11
11
|
|
|
@@ -1094,6 +1094,13 @@ type Options$2 = {
|
|
|
1094
1094
|
* @default 'axios'
|
|
1095
1095
|
*/
|
|
1096
1096
|
client?: 'axios' | 'fetch';
|
|
1097
|
+
/**
|
|
1098
|
+
* How to generate the client code
|
|
1099
|
+
* - 'function' will generate standalone functions for each operation.
|
|
1100
|
+
* - 'class' will generate a class with methods for each operation.
|
|
1101
|
+
* @default 'function'
|
|
1102
|
+
*/
|
|
1103
|
+
clientType?: 'function' | 'class';
|
|
1097
1104
|
/**
|
|
1098
1105
|
* Bundle the selected client into the generated `.kubb` directory.
|
|
1099
1106
|
* When disabled the generated clients will import the shared runtime from `@kubb/plugin-client/clients/*`.
|
|
@@ -1117,6 +1124,7 @@ type ResolvedOptions$1 = {
|
|
|
1117
1124
|
group?: Options$2['group'];
|
|
1118
1125
|
baseURL: string | undefined;
|
|
1119
1126
|
client: Options$2['client'];
|
|
1127
|
+
clientType: NonNullable<Options$2['clientType']>;
|
|
1120
1128
|
bundle: NonNullable<Options$2['bundle']>;
|
|
1121
1129
|
parser: NonNullable<Options$2['parser']>;
|
|
1122
1130
|
urlType: NonNullable<Options$2['urlType']>;
|
|
@@ -1262,4 +1270,4 @@ type ResolvedOptions = {
|
|
|
1262
1270
|
type PluginSolidQuery = PluginFactoryOptions<'plugin-solid-query', Options$1, ResolvedOptions, never, ResolvePathOptions>;
|
|
1263
1271
|
//#endregion
|
|
1264
1272
|
export { OperationSchemas as a, ReactGenerator as i, PluginSolidQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options$1 as t };
|
|
1265
|
-
//# sourceMappingURL=types-
|
|
1273
|
+
//# sourceMappingURL=types-BWjSP_Tw.d.cts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Fabric } from "@kubb/react-fabric";
|
|
1
2
|
import * as OasTypes from "oas/types";
|
|
2
3
|
import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
|
|
3
4
|
import { Operation, Operation as Operation$1 } from "oas/operation";
|
|
@@ -5,7 +6,6 @@ import { OpenAPIV3 } from "openapi-types";
|
|
|
5
6
|
import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
|
|
6
7
|
import BaseOas from "oas";
|
|
7
8
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
8
|
-
import { Fabric } from "@kubb/react-fabric";
|
|
9
9
|
import { ConsolaInstance, LogLevel } from "consola";
|
|
10
10
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
11
11
|
|
|
@@ -1094,6 +1094,13 @@ type Options$2 = {
|
|
|
1094
1094
|
* @default 'axios'
|
|
1095
1095
|
*/
|
|
1096
1096
|
client?: 'axios' | 'fetch';
|
|
1097
|
+
/**
|
|
1098
|
+
* How to generate the client code
|
|
1099
|
+
* - 'function' will generate standalone functions for each operation.
|
|
1100
|
+
* - 'class' will generate a class with methods for each operation.
|
|
1101
|
+
* @default 'function'
|
|
1102
|
+
*/
|
|
1103
|
+
clientType?: 'function' | 'class';
|
|
1097
1104
|
/**
|
|
1098
1105
|
* Bundle the selected client into the generated `.kubb` directory.
|
|
1099
1106
|
* When disabled the generated clients will import the shared runtime from `@kubb/plugin-client/clients/*`.
|
|
@@ -1117,6 +1124,7 @@ type ResolvedOptions$1 = {
|
|
|
1117
1124
|
group?: Options$2['group'];
|
|
1118
1125
|
baseURL: string | undefined;
|
|
1119
1126
|
client: Options$2['client'];
|
|
1127
|
+
clientType: NonNullable<Options$2['clientType']>;
|
|
1120
1128
|
bundle: NonNullable<Options$2['bundle']>;
|
|
1121
1129
|
parser: NonNullable<Options$2['parser']>;
|
|
1122
1130
|
urlType: NonNullable<Options$2['urlType']>;
|
|
@@ -1262,4 +1270,4 @@ type ResolvedOptions = {
|
|
|
1262
1270
|
type PluginSolidQuery = PluginFactoryOptions<'plugin-solid-query', Options$1, ResolvedOptions, never, ResolvePathOptions>;
|
|
1263
1271
|
//#endregion
|
|
1264
1272
|
export { OperationSchemas as a, ReactGenerator as i, PluginSolidQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options$1 as t };
|
|
1265
|
-
//# sourceMappingURL=types-
|
|
1273
|
+
//# sourceMappingURL=types-DJGpASKd.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-solid-query",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.0",
|
|
4
4
|
"description": "Solid Query hooks generator plugin for Kubb, creating type-safe API client hooks from OpenAPI specifications for Solid.js applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"solid-query",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@kubb/react-fabric": "0.5.4",
|
|
72
72
|
"remeda": "^2.32.0",
|
|
73
|
-
"@kubb/core": "4.
|
|
74
|
-
"@kubb/oas": "4.
|
|
75
|
-
"@kubb/plugin-client": "4.
|
|
76
|
-
"@kubb/plugin-oas": "4.
|
|
77
|
-
"@kubb/plugin-ts": "4.
|
|
78
|
-
"@kubb/plugin-zod": "4.
|
|
73
|
+
"@kubb/core": "4.9.0",
|
|
74
|
+
"@kubb/oas": "4.9.0",
|
|
75
|
+
"@kubb/plugin-client": "4.9.0",
|
|
76
|
+
"@kubb/plugin-oas": "4.9.0",
|
|
77
|
+
"@kubb/plugin-ts": "4.9.0",
|
|
78
|
+
"@kubb/plugin-zod": "4.9.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@kubb/react-fabric": "0.5.4"
|