@kubb/plugin-react-query 4.13.1 → 4.14.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.
@@ -1,4 +1,4 @@
1
- import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginReactQuery, t as Infinite } from "./types-DsUAbtO2.cjs";
1
+ import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginReactQuery, t as Infinite } from "./types-B2aUnqdY.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 { c as Operation, i as Transformer, o as OperationSchemas, r as PluginReactQuery, t as Infinite } from "./types-B8O05Cdu.js";
1
+ import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginReactQuery, t as Infinite } from "./types-Cli5EJ4L.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 { a as ReactGenerator, r as PluginReactQuery } from "./types-DsUAbtO2.cjs";
1
+ import { a as ReactGenerator, r as PluginReactQuery } from "./types-B2aUnqdY.cjs";
2
2
 
3
3
  //#region src/generators/infiniteQueryGenerator.d.ts
4
4
  declare const infiniteQueryGenerator: ReactGenerator<PluginReactQuery>;
@@ -1,4 +1,4 @@
1
- import { a as ReactGenerator, r as PluginReactQuery } from "./types-B8O05Cdu.js";
1
+ import { a as ReactGenerator, r as PluginReactQuery } from "./types-Cli5EJ4L.js";
2
2
 
3
3
  //#region src/generators/infiniteQueryGenerator.d.ts
4
4
  declare const infiniteQueryGenerator: ReactGenerator<PluginReactQuery>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as Options, r as PluginReactQuery, s as UserPluginWithLifeCycle } from "./types-DsUAbtO2.cjs";
1
+ import { n as Options, r as PluginReactQuery, s as UserPluginWithLifeCycle } from "./types-B2aUnqdY.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginReactQueryName = "plugin-react-query";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as Options, r as PluginReactQuery, s as UserPluginWithLifeCycle } from "./types-B8O05Cdu.js";
1
+ import { n as Options, r as PluginReactQuery, s as UserPluginWithLifeCycle } from "./types-Cli5EJ4L.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginReactQueryName = "plugin-react-query";
@@ -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.
@@ -825,6 +827,7 @@ type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
825
827
  */
826
828
  plugin: Plugin<TPluginOptions>;
827
829
  mode: KubbFile.Mode;
830
+ UNSTABLE_NAMING?: true;
828
831
  };
829
832
  declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TPluginOptions['resolvedOptions'], Context$1<TPluginOptions['resolvedOptions'], TPluginOptions>> {
830
833
  #private;
@@ -1079,7 +1082,7 @@ type SchemaGeneratorOptions = {
1079
1082
  dateType: false | 'string' | 'stringOffset' | 'stringLocal' | 'date';
1080
1083
  unknownType: 'any' | 'unknown' | 'void';
1081
1084
  emptySchemaType: 'any' | 'unknown' | 'void';
1082
- enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal';
1085
+ enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
1083
1086
  enumSuffix?: string;
1084
1087
  usedEnumNames?: Record<string, number>;
1085
1088
  mapper?: Record<string, string>;
@@ -1466,4 +1469,4 @@ type ResolvedOptions = {
1466
1469
  type PluginReactQuery = PluginFactoryOptions<'plugin-react-query', Options, ResolvedOptions, never, ResolvePathOptions>;
1467
1470
  //#endregion
1468
1471
  export { ReactGenerator as a, Operation$1 as c, Transformer as i, Options as n, OperationSchemas as o, PluginReactQuery as r, UserPluginWithLifeCycle as s, Infinite as t };
1469
- //# sourceMappingURL=types-DsUAbtO2.d.cts.map
1472
+ //# sourceMappingURL=types-B2aUnqdY.d.cts.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.
@@ -825,6 +827,7 @@ type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
825
827
  */
826
828
  plugin: Plugin<TPluginOptions>;
827
829
  mode: KubbFile.Mode;
830
+ UNSTABLE_NAMING?: true;
828
831
  };
829
832
  declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TPluginOptions['resolvedOptions'], Context$1<TPluginOptions['resolvedOptions'], TPluginOptions>> {
830
833
  #private;
@@ -1079,7 +1082,7 @@ type SchemaGeneratorOptions = {
1079
1082
  dateType: false | 'string' | 'stringOffset' | 'stringLocal' | 'date';
1080
1083
  unknownType: 'any' | 'unknown' | 'void';
1081
1084
  emptySchemaType: 'any' | 'unknown' | 'void';
1082
- enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal';
1085
+ enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
1083
1086
  enumSuffix?: string;
1084
1087
  usedEnumNames?: Record<string, number>;
1085
1088
  mapper?: Record<string, string>;
@@ -1466,4 +1469,4 @@ type ResolvedOptions = {
1466
1469
  type PluginReactQuery = PluginFactoryOptions<'plugin-react-query', Options, ResolvedOptions, never, ResolvePathOptions>;
1467
1470
  //#endregion
1468
1471
  export { ReactGenerator as a, Operation$1 as c, Transformer as i, Options as n, OperationSchemas as o, PluginReactQuery as r, UserPluginWithLifeCycle as s, Infinite as t };
1469
- //# sourceMappingURL=types-B8O05Cdu.d.ts.map
1472
+ //# sourceMappingURL=types-Cli5EJ4L.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-react-query",
3
- "version": "4.13.1",
3
+ "version": "4.14.1",
4
4
  "description": "React Query hooks generator plugin for Kubb, creating type-safe API client hooks from OpenAPI specifications for React applications.",
5
5
  "keywords": [
6
6
  "react-query",
@@ -69,12 +69,12 @@
69
69
  "dependencies": {
70
70
  "@kubb/react-fabric": "0.9.2",
71
71
  "remeda": "^2.33.1",
72
- "@kubb/core": "4.13.1",
73
- "@kubb/oas": "4.13.1",
74
- "@kubb/plugin-client": "4.13.1",
75
- "@kubb/plugin-oas": "4.13.1",
76
- "@kubb/plugin-ts": "4.13.1",
77
- "@kubb/plugin-zod": "4.13.1"
72
+ "@kubb/core": "4.14.1",
73
+ "@kubb/oas": "4.14.1",
74
+ "@kubb/plugin-client": "4.14.1",
75
+ "@kubb/plugin-oas": "4.14.1",
76
+ "@kubb/plugin-ts": "4.14.1",
77
+ "@kubb/plugin-zod": "4.14.1"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "@kubb/react-fabric": "0.9.2"