@kubb/plugin-swr 5.9.0-canary.20261109T201601 → 5.9.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 +561 -533
- 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 +560 -532
- 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
|
/**
|
|
@@ -259,7 +262,7 @@ type Options = OutputOptions & {
|
|
|
259
262
|
/**
|
|
260
263
|
* Tags, operations, or paths to exclude from generation.
|
|
261
264
|
*/
|
|
262
|
-
exclude?: Array<Exclude
|
|
265
|
+
exclude?: Array<Exclude>;
|
|
263
266
|
/**
|
|
264
267
|
* Tags, operations, or paths to include in generation.
|
|
265
268
|
*/
|
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
|
/**
|
|
@@ -259,7 +262,7 @@ type Options = OutputOptions & {
|
|
|
259
262
|
/**
|
|
260
263
|
* Tags, operations, or paths to exclude from generation.
|
|
261
264
|
*/
|
|
262
|
-
exclude?: Array<Exclude
|
|
265
|
+
exclude?: Array<Exclude>;
|
|
263
266
|
/**
|
|
264
267
|
* Tags, operations, or paths to include in generation.
|
|
265
268
|
*/
|