@kubb/plugin-solid-query 4.14.0 → 4.15.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-COok_-3x.d.ts → types-B20oo9LS.d.cts} +16 -2
- package/dist/{types-B_ZUXCJi.d.cts → types-Bw6HOu_W.d.ts} +16 -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-B20oo9LS.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-Bw6HOu_W.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-B20oo9LS.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-Bw6HOu_W.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-B20oo9LS.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-Bw6HOu_W.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginSolidQueryName = "plugin-solid-query";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Fabric } from "@kubb/react-fabric";
|
|
2
1
|
import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
|
|
3
2
|
import BaseOas from "oas";
|
|
4
3
|
import { Operation } from "oas/operation";
|
|
5
4
|
import { DiscriminatorObject, HttpMethods, OASDocument, SchemaObject } from "oas/types";
|
|
6
5
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
6
|
+
import { Fabric } from "@kubb/react-fabric";
|
|
7
7
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
8
8
|
|
|
9
9
|
//#region ../oas/src/types.d.ts
|
|
@@ -391,6 +391,13 @@ type Config<TInput = Input> = {
|
|
|
391
391
|
* @default 'simple'
|
|
392
392
|
*/
|
|
393
393
|
defaultBanner?: 'simple' | 'full' | false;
|
|
394
|
+
/**
|
|
395
|
+
* Whether to override existing external files if they already exist.
|
|
396
|
+
* When setting the option in the global configuration, all plugins inherit the same behavior by default.
|
|
397
|
+
* However, all plugins also have an `output.override` option, which can be used to override the behavior for a specific plugin.
|
|
398
|
+
* @default false
|
|
399
|
+
*/
|
|
400
|
+
override?: boolean;
|
|
394
401
|
};
|
|
395
402
|
/**
|
|
396
403
|
* An array of Kubb plugins that will be used in the generation.
|
|
@@ -578,6 +585,11 @@ type Output<TOptions> = {
|
|
|
578
585
|
* Add a footer text in the beginning of every file
|
|
579
586
|
*/
|
|
580
587
|
footer?: string | ((options: TOptions) => string);
|
|
588
|
+
/**
|
|
589
|
+
* Whether to override existing external files if they already exist.
|
|
590
|
+
* @default false
|
|
591
|
+
*/
|
|
592
|
+
override?: boolean;
|
|
581
593
|
};
|
|
582
594
|
type GroupContext = {
|
|
583
595
|
group: string;
|
|
@@ -827,9 +839,11 @@ type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
|
|
|
827
839
|
*/
|
|
828
840
|
plugin: Plugin<TPluginOptions>;
|
|
829
841
|
mode: KubbFile.Mode;
|
|
842
|
+
UNSTABLE_NAMING?: true;
|
|
830
843
|
};
|
|
831
844
|
declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TPluginOptions['resolvedOptions'], Context$1<TPluginOptions['resolvedOptions'], TPluginOptions>> {
|
|
832
845
|
#private;
|
|
846
|
+
getOptions(operation: Operation$1, method: HttpMethod): Partial<TPluginOptions['resolvedOptions']>;
|
|
833
847
|
getSchemas(operation: Operation$1, {
|
|
834
848
|
resolveName
|
|
835
849
|
}?: {
|
|
@@ -1427,4 +1441,4 @@ type ResolvedOptions = {
|
|
|
1427
1441
|
type PluginSolidQuery = PluginFactoryOptions<'plugin-solid-query', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1428
1442
|
//#endregion
|
|
1429
1443
|
export { OperationSchemas as a, ReactGenerator as i, PluginSolidQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
|
|
1430
|
-
//# sourceMappingURL=types-
|
|
1444
|
+
//# sourceMappingURL=types-B20oo9LS.d.cts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { Fabric } from "@kubb/react-fabric";
|
|
1
2
|
import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
|
|
2
3
|
import BaseOas from "oas";
|
|
3
4
|
import { Operation } from "oas/operation";
|
|
4
5
|
import { DiscriminatorObject, HttpMethods, OASDocument, SchemaObject } from "oas/types";
|
|
5
6
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
6
|
-
import { Fabric } from "@kubb/react-fabric";
|
|
7
7
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
8
8
|
|
|
9
9
|
//#region ../oas/src/types.d.ts
|
|
@@ -391,6 +391,13 @@ type Config<TInput = Input> = {
|
|
|
391
391
|
* @default 'simple'
|
|
392
392
|
*/
|
|
393
393
|
defaultBanner?: 'simple' | 'full' | false;
|
|
394
|
+
/**
|
|
395
|
+
* Whether to override existing external files if they already exist.
|
|
396
|
+
* When setting the option in the global configuration, all plugins inherit the same behavior by default.
|
|
397
|
+
* However, all plugins also have an `output.override` option, which can be used to override the behavior for a specific plugin.
|
|
398
|
+
* @default false
|
|
399
|
+
*/
|
|
400
|
+
override?: boolean;
|
|
394
401
|
};
|
|
395
402
|
/**
|
|
396
403
|
* An array of Kubb plugins that will be used in the generation.
|
|
@@ -578,6 +585,11 @@ type Output<TOptions> = {
|
|
|
578
585
|
* Add a footer text in the beginning of every file
|
|
579
586
|
*/
|
|
580
587
|
footer?: string | ((options: TOptions) => string);
|
|
588
|
+
/**
|
|
589
|
+
* Whether to override existing external files if they already exist.
|
|
590
|
+
* @default false
|
|
591
|
+
*/
|
|
592
|
+
override?: boolean;
|
|
581
593
|
};
|
|
582
594
|
type GroupContext = {
|
|
583
595
|
group: string;
|
|
@@ -827,9 +839,11 @@ type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
|
|
|
827
839
|
*/
|
|
828
840
|
plugin: Plugin<TPluginOptions>;
|
|
829
841
|
mode: KubbFile.Mode;
|
|
842
|
+
UNSTABLE_NAMING?: true;
|
|
830
843
|
};
|
|
831
844
|
declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TPluginOptions['resolvedOptions'], Context$1<TPluginOptions['resolvedOptions'], TPluginOptions>> {
|
|
832
845
|
#private;
|
|
846
|
+
getOptions(operation: Operation$1, method: HttpMethod): Partial<TPluginOptions['resolvedOptions']>;
|
|
833
847
|
getSchemas(operation: Operation$1, {
|
|
834
848
|
resolveName
|
|
835
849
|
}?: {
|
|
@@ -1427,4 +1441,4 @@ type ResolvedOptions = {
|
|
|
1427
1441
|
type PluginSolidQuery = PluginFactoryOptions<'plugin-solid-query', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1428
1442
|
//#endregion
|
|
1429
1443
|
export { OperationSchemas as a, ReactGenerator as i, PluginSolidQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
|
|
1430
|
-
//# sourceMappingURL=types-
|
|
1444
|
+
//# sourceMappingURL=types-Bw6HOu_W.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.15.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.9.2",
|
|
72
72
|
"remeda": "^2.33.1",
|
|
73
|
-
"@kubb/core": "4.
|
|
74
|
-
"@kubb/
|
|
75
|
-
"@kubb/plugin-
|
|
76
|
-
"@kubb/oas": "4.
|
|
77
|
-
"@kubb/plugin-
|
|
78
|
-
"@kubb/plugin-
|
|
73
|
+
"@kubb/core": "4.15.0",
|
|
74
|
+
"@kubb/oas": "4.15.0",
|
|
75
|
+
"@kubb/plugin-client": "4.15.0",
|
|
76
|
+
"@kubb/plugin-oas": "4.15.0",
|
|
77
|
+
"@kubb/plugin-ts": "4.15.0",
|
|
78
|
+
"@kubb/plugin-zod": "4.15.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@kubb/react-fabric": "0.9.2"
|