@kubb/plugin-react-query 5.10.0-canary.20261109T201601 → 5.10.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/index.cjs +598 -569
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -5
- package/dist/index.d.ts +8 -5
- package/dist/index.js +597 -568
- package/dist/index.js.map +1 -1
- package/docs/options.md +1 -1
- package/kubb-extension.json +1 -1
- package/package.json +9 -8
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Exclude
|
|
2
|
-
import "@kubb/plugin-zod";
|
|
1
|
+
import { Exclude, Group, Include, Output, OutputOptions, Override, PluginType, Resolver, ResolverPatch, ast } from "@kubb/kit";
|
|
3
2
|
import { ResolverTs } from "@kubb/plugin-ts";
|
|
4
3
|
import "@kubb/renderer-jsx";
|
|
5
4
|
import "@kubb/adapter-oas";
|
|
@@ -18,8 +17,8 @@ type ResolvedContractClient = {
|
|
|
18
17
|
pluginName: string;
|
|
19
18
|
};
|
|
20
19
|
/**
|
|
21
|
-
* The
|
|
22
|
-
*
|
|
20
|
+
* The per-operation type names a generated client references: the grouped input, the per-status
|
|
21
|
+
* responses record its `RequestResult` is keyed on, and the headers each response declares.
|
|
23
22
|
*/
|
|
24
23
|
type OperationTypeNames = {
|
|
25
24
|
response: {
|
|
@@ -31,6 +30,10 @@ type OperationTypeNames = {
|
|
|
31
30
|
* Resolves the name of the operation's per-status responses record type.
|
|
32
31
|
*/
|
|
33
32
|
responses(node: ast.OperationNode): string;
|
|
33
|
+
/**
|
|
34
|
+
* Resolves the name of the type of the headers one response declares. Left out, results keep untyped headers.
|
|
35
|
+
*/
|
|
36
|
+
headers?(node: ast.OperationNode, statusCode: ast.StatusCode): string;
|
|
34
37
|
};
|
|
35
38
|
};
|
|
36
39
|
/**
|
|
@@ -433,7 +436,7 @@ type Options = OutputOptions & {
|
|
|
433
436
|
/**
|
|
434
437
|
* Skip operations matching at least one entry in the list.
|
|
435
438
|
*/
|
|
436
|
-
exclude?: Array<Exclude
|
|
439
|
+
exclude?: Array<Exclude>;
|
|
437
440
|
/**
|
|
438
441
|
* Restrict generation to operations matching at least one entry in the list.
|
|
439
442
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Exclude
|
|
2
|
-
import "@kubb/plugin-zod";
|
|
1
|
+
import { Exclude, Group, Include, Output, OutputOptions, Override, PluginType, Resolver, ResolverPatch, ast } from "@kubb/kit";
|
|
3
2
|
import { ResolverTs } from "@kubb/plugin-ts";
|
|
4
3
|
import "@kubb/renderer-jsx";
|
|
5
4
|
import "@kubb/adapter-oas";
|
|
@@ -18,8 +17,8 @@ type ResolvedContractClient = {
|
|
|
18
17
|
pluginName: string;
|
|
19
18
|
};
|
|
20
19
|
/**
|
|
21
|
-
* The
|
|
22
|
-
*
|
|
20
|
+
* The per-operation type names a generated client references: the grouped input, the per-status
|
|
21
|
+
* responses record its `RequestResult` is keyed on, and the headers each response declares.
|
|
23
22
|
*/
|
|
24
23
|
type OperationTypeNames = {
|
|
25
24
|
response: {
|
|
@@ -31,6 +30,10 @@ type OperationTypeNames = {
|
|
|
31
30
|
* Resolves the name of the operation's per-status responses record type.
|
|
32
31
|
*/
|
|
33
32
|
responses(node: ast.OperationNode): string;
|
|
33
|
+
/**
|
|
34
|
+
* Resolves the name of the type of the headers one response declares. Left out, results keep untyped headers.
|
|
35
|
+
*/
|
|
36
|
+
headers?(node: ast.OperationNode, statusCode: ast.StatusCode): string;
|
|
34
37
|
};
|
|
35
38
|
};
|
|
36
39
|
/**
|
|
@@ -433,7 +436,7 @@ type Options = OutputOptions & {
|
|
|
433
436
|
/**
|
|
434
437
|
* Skip operations matching at least one entry in the list.
|
|
435
438
|
*/
|
|
436
|
-
exclude?: Array<Exclude
|
|
439
|
+
exclude?: Array<Exclude>;
|
|
437
440
|
/**
|
|
438
441
|
* Restrict generation to operations matching at least one entry in the list.
|
|
439
442
|
*/
|