@kubb/plugin-svelte-query 4.12.8 → 4.12.9

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 PluginSvelteQuery, r as Transformer, s as Operation } from "./types-BcGami79.cjs";
1
+ import { a as OperationSchemas, n as PluginSvelteQuery, r as Transformer, s as Operation } from "./types-DzehoPVb.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 PluginSvelteQuery, r as Transformer, s as Operation } from "./types-r4VolRsP.js";
1
+ import { a as OperationSchemas, n as PluginSvelteQuery, r as Transformer, s as Operation } from "./types-C1FJgNVt.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 PluginSvelteQuery } from "./types-BcGami79.cjs";
1
+ import { i as ReactGenerator, n as PluginSvelteQuery } from "./types-DzehoPVb.cjs";
2
2
 
3
3
  //#region src/generators/mutationGenerator.d.ts
4
4
  declare const mutationGenerator: ReactGenerator<PluginSvelteQuery>;
@@ -1,4 +1,4 @@
1
- import { i as ReactGenerator, n as PluginSvelteQuery } from "./types-r4VolRsP.js";
1
+ import { i as ReactGenerator, n as PluginSvelteQuery } from "./types-C1FJgNVt.js";
2
2
 
3
3
  //#region src/generators/mutationGenerator.d.ts
4
4
  declare const mutationGenerator: ReactGenerator<PluginSvelteQuery>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as PluginSvelteQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-BcGami79.cjs";
1
+ import { n as PluginSvelteQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-DzehoPVb.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginSvelteQueryName = "plugin-svelte-query";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as PluginSvelteQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-r4VolRsP.js";
1
+ import { n as PluginSvelteQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-C1FJgNVt.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginSvelteQueryName = "plugin-svelte-query";
@@ -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 { KubbNode } from "@kubb/react-fabric/types";
10
10
 
11
11
  //#region ../oas/src/types.d.ts
@@ -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
@@ -1424,4 +1425,4 @@ type ResolvedOptions = {
1424
1425
  type PluginSvelteQuery = PluginFactoryOptions<'plugin-svelte-query', Options, ResolvedOptions, never, ResolvePathOptions>;
1425
1426
  //#endregion
1426
1427
  export { OperationSchemas as a, ReactGenerator as i, PluginSvelteQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
1427
- //# sourceMappingURL=types-BcGami79.d.cts.map
1428
+ //# sourceMappingURL=types-C1FJgNVt.d.ts.map
@@ -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 { KubbNode } from "@kubb/react-fabric/types";
10
10
 
11
11
  //#region ../oas/src/types.d.ts
@@ -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
@@ -1424,4 +1425,4 @@ type ResolvedOptions = {
1424
1425
  type PluginSvelteQuery = PluginFactoryOptions<'plugin-svelte-query', Options, ResolvedOptions, never, ResolvePathOptions>;
1425
1426
  //#endregion
1426
1427
  export { OperationSchemas as a, ReactGenerator as i, PluginSvelteQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
1427
- //# sourceMappingURL=types-r4VolRsP.d.ts.map
1428
+ //# sourceMappingURL=types-DzehoPVb.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-svelte-query",
3
- "version": "4.12.8",
3
+ "version": "4.12.9",
4
4
  "description": "Svelte Query hooks generator plugin for Kubb, creating type-safe API client hooks from OpenAPI specifications for Svelte applications.",
5
5
  "keywords": [
6
6
  "svelte-query",
@@ -69,12 +69,12 @@
69
69
  "dependencies": {
70
70
  "@kubb/react-fabric": "0.7.4",
71
71
  "remeda": "^2.32.0",
72
- "@kubb/core": "4.12.8",
73
- "@kubb/oas": "4.12.8",
74
- "@kubb/plugin-client": "4.12.8",
75
- "@kubb/plugin-oas": "4.12.8",
76
- "@kubb/plugin-ts": "4.12.8",
77
- "@kubb/plugin-zod": "4.12.8"
72
+ "@kubb/core": "4.12.9",
73
+ "@kubb/oas": "4.12.9",
74
+ "@kubb/plugin-client": "4.12.9",
75
+ "@kubb/plugin-oas": "4.12.9",
76
+ "@kubb/plugin-ts": "4.12.9",
77
+ "@kubb/plugin-zod": "4.12.9"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "@kubb/react-fabric": "0.7.4"