@kubb/plugin-swr 4.12.8 → 4.12.10

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 { a as OperationSchemas, n as PluginSwr, r as Transformer, s as Operation } from "./types-lwx0avOF.cjs";
1
+ import { a as OperationSchemas, n as PluginSwr, r as Transformer, s as Operation } from "./types-Cfd3QT3e.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 { a as OperationSchemas, n as PluginSwr, r as Transformer, s as Operation } from "./types-BzCyeXsG.js";
1
+ import { a as OperationSchemas, n as PluginSwr, r as Transformer, s as Operation } from "./types-Cp_GjESl.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 { i as ReactGenerator, n as PluginSwr } from "./types-lwx0avOF.cjs";
1
+ import { i as ReactGenerator, n as PluginSwr } from "./types-Cfd3QT3e.cjs";
2
2
 
3
3
  //#region src/generators/mutationGenerator.d.ts
4
4
  declare const mutationGenerator: ReactGenerator<PluginSwr>;
@@ -1,4 +1,4 @@
1
- import { i as ReactGenerator, n as PluginSwr } from "./types-BzCyeXsG.js";
1
+ import { i as ReactGenerator, n as PluginSwr } from "./types-Cp_GjESl.js";
2
2
 
3
3
  //#region src/generators/mutationGenerator.d.ts
4
4
  declare const mutationGenerator: ReactGenerator<PluginSwr>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as PluginSwr, o as UserPluginWithLifeCycle, t as Options } from "./types-lwx0avOF.cjs";
1
+ import { n as PluginSwr, o as UserPluginWithLifeCycle, t as Options } from "./types-Cfd3QT3e.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginSwrName = "plugin-swr";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as PluginSwr, o as UserPluginWithLifeCycle, t as Options } from "./types-BzCyeXsG.js";
1
+ import { n as PluginSwr, o as UserPluginWithLifeCycle, t as Options } from "./types-Cp_GjESl.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginSwrName = "plugin-swr";
@@ -41,6 +41,7 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
41
41
  getRequestSchema(operation: Operation): SchemaObject | undefined;
42
42
  getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
43
43
  valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
44
+ flattenSchema(schema?: SchemaObject): SchemaObject | undefined;
44
45
  }
45
46
  //#endregion
46
47
  //#region ../core/src/BaseGenerator.d.ts
@@ -850,6 +851,7 @@ type SchemaKeywordMapper = {
850
851
  [x: string]: Schema[];
851
852
  };
852
853
  additionalProperties: Schema[];
854
+ patternProperties?: Record<string, Schema[]>;
853
855
  strict?: boolean;
854
856
  };
855
857
  };
@@ -1425,4 +1427,4 @@ type ResolvedOptions = {
1425
1427
  type PluginSwr = PluginFactoryOptions<'plugin-swr', Options, ResolvedOptions, never, ResolvePathOptions>;
1426
1428
  //#endregion
1427
1429
  export { OperationSchemas as a, ReactGenerator as i, PluginSwr as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
1428
- //# sourceMappingURL=types-lwx0avOF.d.cts.map
1430
+ //# sourceMappingURL=types-Cfd3QT3e.d.cts.map
@@ -41,6 +41,7 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
41
41
  getRequestSchema(operation: Operation): SchemaObject | undefined;
42
42
  getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
43
43
  valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
44
+ flattenSchema(schema?: SchemaObject): SchemaObject | undefined;
44
45
  }
45
46
  //#endregion
46
47
  //#region ../core/src/BaseGenerator.d.ts
@@ -850,6 +851,7 @@ type SchemaKeywordMapper = {
850
851
  [x: string]: Schema[];
851
852
  };
852
853
  additionalProperties: Schema[];
854
+ patternProperties?: Record<string, Schema[]>;
853
855
  strict?: boolean;
854
856
  };
855
857
  };
@@ -1425,4 +1427,4 @@ type ResolvedOptions = {
1425
1427
  type PluginSwr = PluginFactoryOptions<'plugin-swr', Options, ResolvedOptions, never, ResolvePathOptions>;
1426
1428
  //#endregion
1427
1429
  export { OperationSchemas as a, ReactGenerator as i, PluginSwr as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
1428
- //# sourceMappingURL=types-BzCyeXsG.d.ts.map
1430
+ //# sourceMappingURL=types-Cp_GjESl.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-swr",
3
- "version": "4.12.8",
3
+ "version": "4.12.10",
4
4
  "description": "SWR hooks generator plugin for Kubb, creating type-safe data fetching hooks from OpenAPI specifications for React and Next.js applications.",
5
5
  "keywords": [
6
6
  "swr",
@@ -72,12 +72,12 @@
72
72
  "dependencies": {
73
73
  "@kubb/react-fabric": "0.7.4",
74
74
  "remeda": "^2.32.0",
75
- "@kubb/core": "4.12.8",
76
- "@kubb/oas": "4.12.8",
77
- "@kubb/plugin-client": "4.12.8",
78
- "@kubb/plugin-oas": "4.12.8",
79
- "@kubb/plugin-ts": "4.12.8",
80
- "@kubb/plugin-zod": "4.12.8"
75
+ "@kubb/core": "4.12.10",
76
+ "@kubb/oas": "4.12.10",
77
+ "@kubb/plugin-client": "4.12.10",
78
+ "@kubb/plugin-oas": "4.12.10",
79
+ "@kubb/plugin-ts": "4.12.10",
80
+ "@kubb/plugin-zod": "4.12.10"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "@kubb/react-fabric": "0.7.4"