@kubb/plugin-vue-query 5.10.0-canary.20261109T201601 → 5.10.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.
package/dist/index.d.cts CHANGED
@@ -1,8 +1,5 @@
1
- import { Exclude as Exclude$1, Group, Include, Output, OutputOptions, Override, PluginType, Resolver, ResolverPatch, ast } from "@kubb/kit";
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
- import "@kubb/renderer-jsx";
5
- import "@kubb/adapter-oas";
6
3
  /**
7
4
  * The client selector accepted by a consumer's `client` option. Each calls a registered contract
8
5
  * client plugin.
@@ -18,8 +15,8 @@ type ResolvedContractClient = {
18
15
  pluginName: string;
19
16
  };
20
17
  /**
21
- * The two per-operation type names a generated client references: the grouped input and the
22
- * per-status responses record its `RequestResult` is keyed on.
18
+ * The per-operation type names a generated client references: the grouped input, the per-status
19
+ * responses record its `RequestResult` is keyed on, and the headers each response declares.
23
20
  */
24
21
  type OperationTypeNames = {
25
22
  response: {
@@ -31,6 +28,10 @@ type OperationTypeNames = {
31
28
  * Resolves the name of the operation's per-status responses record type.
32
29
  */
33
30
  responses(node: ast.OperationNode): string;
31
+ /**
32
+ * Resolves the name of the type of the headers one response declares. Left out, results keep untyped headers.
33
+ */
34
+ headers?(node: ast.OperationNode, statusCode: ast.StatusCode): string;
34
35
  };
35
36
  };
36
37
  /**
@@ -333,7 +334,7 @@ type Options = OutputOptions & {
333
334
  /**
334
335
  * Skip operations matching at least one entry in the list.
335
336
  */
336
- exclude?: Array<Exclude$1>;
337
+ exclude?: Array<Exclude>;
337
338
  /**
338
339
  * Restrict generation to operations matching at least one entry in the list.
339
340
  */
@@ -466,5 +467,4 @@ export declare const pluginVueQuery: import("@kubb/kit").PluginFactory<PluginVue
466
467
  * ```
467
468
  */
468
469
  export declare const resolverVueQuery: ResolverVueQuery;
469
- export { type PageParamFn, type PluginVueQuery, type ResolverVueQuery, type Transformer, pluginVueQuery as default };
470
- //# sourceMappingURL=index.d.cts.map
470
+ export { type PageParamFn, type PluginVueQuery, type ResolverVueQuery, type Transformer, pluginVueQuery as default };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,5 @@
1
- import { Exclude as Exclude$1, Group, Include, Output, OutputOptions, Override, PluginType, Resolver, ResolverPatch, ast } from "@kubb/kit";
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
- import "@kubb/renderer-jsx";
5
- import "@kubb/adapter-oas";
6
3
  /**
7
4
  * The client selector accepted by a consumer's `client` option. Each calls a registered contract
8
5
  * client plugin.
@@ -18,8 +15,8 @@ type ResolvedContractClient = {
18
15
  pluginName: string;
19
16
  };
20
17
  /**
21
- * The two per-operation type names a generated client references: the grouped input and the
22
- * per-status responses record its `RequestResult` is keyed on.
18
+ * The per-operation type names a generated client references: the grouped input, the per-status
19
+ * responses record its `RequestResult` is keyed on, and the headers each response declares.
23
20
  */
24
21
  type OperationTypeNames = {
25
22
  response: {
@@ -31,6 +28,10 @@ type OperationTypeNames = {
31
28
  * Resolves the name of the operation's per-status responses record type.
32
29
  */
33
30
  responses(node: ast.OperationNode): string;
31
+ /**
32
+ * Resolves the name of the type of the headers one response declares. Left out, results keep untyped headers.
33
+ */
34
+ headers?(node: ast.OperationNode, statusCode: ast.StatusCode): string;
34
35
  };
35
36
  };
36
37
  /**
@@ -333,7 +334,7 @@ type Options = OutputOptions & {
333
334
  /**
334
335
  * Skip operations matching at least one entry in the list.
335
336
  */
336
- exclude?: Array<Exclude$1>;
337
+ exclude?: Array<Exclude>;
337
338
  /**
338
339
  * Restrict generation to operations matching at least one entry in the list.
339
340
  */
@@ -466,5 +467,4 @@ export declare const pluginVueQuery: import("@kubb/kit").PluginFactory<PluginVue
466
467
  * ```
467
468
  */
468
469
  export declare const resolverVueQuery: ResolverVueQuery;
469
- export { type PageParamFn, type PluginVueQuery, type ResolverVueQuery, type Transformer, pluginVueQuery as default };
470
- //# sourceMappingURL=index.d.ts.map
470
+ export { type PageParamFn, type PluginVueQuery, type ResolverVueQuery, type Transformer, pluginVueQuery as default };