@kubb/plugin-solid-query 3.0.0-beta.3 → 3.0.0-beta.4

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.
@@ -2,7 +2,7 @@ import { FunctionParams } from '@kubb/react';
2
2
  import { Operation } from '@kubb/oas';
3
3
  import { OperationSchemas } from '@kubb/plugin-oas';
4
4
  import { ReactNode } from 'react';
5
- import { P as PluginSolidQuery } from './types-B6vCm2AO.cjs';
5
+ import { P as PluginSolidQuery } from './types-CqwqMOQI.cjs';
6
6
  import '@kubb/core';
7
7
 
8
8
  type Props$2 = {
@@ -2,7 +2,7 @@ import { FunctionParams } from '@kubb/react';
2
2
  import { Operation } from '@kubb/oas';
3
3
  import { OperationSchemas } from '@kubb/plugin-oas';
4
4
  import { ReactNode } from 'react';
5
- import { P as PluginSolidQuery } from './types-B6vCm2AO.js';
5
+ import { P as PluginSolidQuery } from './types-CqwqMOQI.js';
6
6
  import '@kubb/core';
7
7
 
8
8
  type Props$2 = {
@@ -1,5 +1,5 @@
1
1
  import * as _kubb_plugin_oas from '@kubb/plugin-oas';
2
- import { P as PluginSolidQuery } from './types-B6vCm2AO.cjs';
2
+ import { P as PluginSolidQuery } from './types-CqwqMOQI.cjs';
3
3
  import '@kubb/core';
4
4
  import '@kubb/oas';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as _kubb_plugin_oas from '@kubb/plugin-oas';
2
- import { P as PluginSolidQuery } from './types-B6vCm2AO.js';
2
+ import { P as PluginSolidQuery } from './types-CqwqMOQI.js';
3
3
  import '@kubb/core';
4
4
  import '@kubb/oas';
5
5
 
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _kubb_core from '@kubb/core';
2
- import { O as Options, P as PluginSolidQuery } from './types-B6vCm2AO.cjs';
2
+ import { O as Options, P as PluginSolidQuery } from './types-CqwqMOQI.cjs';
3
3
  import '@kubb/oas';
4
4
  import '@kubb/plugin-oas';
5
5
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _kubb_core from '@kubb/core';
2
- import { O as Options, P as PluginSolidQuery } from './types-B6vCm2AO.js';
2
+ import { O as Options, P as PluginSolidQuery } from './types-CqwqMOQI.js';
3
3
  import '@kubb/oas';
4
4
  import '@kubb/plugin-oas';
5
5
 
@@ -26,7 +26,7 @@ type Options$1 = {
26
26
  override?: Array<Override<ResolvedOptions$1>>;
27
27
  /**
28
28
  * Create `operations.ts` file with all operations grouped by methods.
29
- * @default `false`
29
+ * @default false
30
30
  */
31
31
  operations?: boolean;
32
32
  /**
@@ -38,27 +38,21 @@ type Options$1 = {
38
38
  importPath?: string;
39
39
  /**
40
40
  * ReturnType that will be used when calling the client.
41
- *
42
- * `Data` will return ResponseConfig[data].
43
- *
44
- * `Full` will return ResponseConfig.
45
- * @default `'data'`
46
- * @private
41
+ * - 'data' will return ResponseConfig[data].
42
+ * - 'full' will return ResponseConfig.
43
+ * @default 'data'
47
44
  */
48
45
  dataReturnType?: 'data' | 'full';
49
46
  /**
50
47
  * How to pass your pathParams.
51
- *
52
- * `object` will return the pathParams as an object.
53
- *
54
- * `inline` will return the pathParams as comma separated params.
55
- * @default `'inline'`
56
- * @private
48
+ * - 'object' will return the pathParams as an object.
49
+ * - 'inline' will return the pathParams as comma separated params.
50
+ * @default 'inline'
57
51
  */
58
52
  pathParamsType?: 'object' | 'inline';
59
53
  /**
60
54
  * Which parser can be used before returning the data
61
- * `'zod'` will use `@kubb/plugin-zod` to parse the data.
55
+ * - 'zod' will use `@kubb/plugin-zod` to parse the data.
62
56
  * @default 'client'
63
57
  */
64
58
  parser?: 'client' | 'zod';
@@ -105,7 +99,8 @@ type Query = {
105
99
  };
106
100
  type Options = {
107
101
  /**
108
- * @default 'hooks'
102
+ * Specify the export location for the files and define the behavior of the output
103
+ * @default { path: 'hooks', barrelType: 'named' }
109
104
  */
110
105
  output?: Output;
111
106
  /**
@@ -113,15 +108,6 @@ type Options = {
113
108
  */
114
109
  group?: Group;
115
110
  client?: Pick<PluginClient['options'], 'dataReturnType' | 'importPath'>;
116
- /**
117
- * ReturnType that needs to be used when calling client().
118
- *
119
- * `Data` will return ResponseConfig[data].
120
- *
121
- * `Full` will return ResponseConfig.
122
- * @default `'data'`
123
- * @private
124
- */
125
111
  /**
126
112
  * Array containing exclude parameters to exclude/skip tags/operations/methods/paths.
127
113
  */
@@ -136,12 +122,9 @@ type Options = {
136
122
  override?: Array<Override<ResolvedOptions>>;
137
123
  /**
138
124
  * How to pass your pathParams.
139
- *
140
- * `object` will return the pathParams as an object.
141
- *
142
- * `inline` will return the pathParams as comma separated params.
143
- * @default `'inline'`
144
- * @private
125
+ * - 'object' will return the pathParams as an object.
126
+ * - 'inline' will return the pathParams as comma separated params.
127
+ * @default 'inline'
145
128
  */
146
129
  pathParamsType?: PluginClient['options']['pathParamsType'];
147
130
  /**
@@ -26,7 +26,7 @@ type Options$1 = {
26
26
  override?: Array<Override<ResolvedOptions$1>>;
27
27
  /**
28
28
  * Create `operations.ts` file with all operations grouped by methods.
29
- * @default `false`
29
+ * @default false
30
30
  */
31
31
  operations?: boolean;
32
32
  /**
@@ -38,27 +38,21 @@ type Options$1 = {
38
38
  importPath?: string;
39
39
  /**
40
40
  * ReturnType that will be used when calling the client.
41
- *
42
- * `Data` will return ResponseConfig[data].
43
- *
44
- * `Full` will return ResponseConfig.
45
- * @default `'data'`
46
- * @private
41
+ * - 'data' will return ResponseConfig[data].
42
+ * - 'full' will return ResponseConfig.
43
+ * @default 'data'
47
44
  */
48
45
  dataReturnType?: 'data' | 'full';
49
46
  /**
50
47
  * How to pass your pathParams.
51
- *
52
- * `object` will return the pathParams as an object.
53
- *
54
- * `inline` will return the pathParams as comma separated params.
55
- * @default `'inline'`
56
- * @private
48
+ * - 'object' will return the pathParams as an object.
49
+ * - 'inline' will return the pathParams as comma separated params.
50
+ * @default 'inline'
57
51
  */
58
52
  pathParamsType?: 'object' | 'inline';
59
53
  /**
60
54
  * Which parser can be used before returning the data
61
- * `'zod'` will use `@kubb/plugin-zod` to parse the data.
55
+ * - 'zod' will use `@kubb/plugin-zod` to parse the data.
62
56
  * @default 'client'
63
57
  */
64
58
  parser?: 'client' | 'zod';
@@ -105,7 +99,8 @@ type Query = {
105
99
  };
106
100
  type Options = {
107
101
  /**
108
- * @default 'hooks'
102
+ * Specify the export location for the files and define the behavior of the output
103
+ * @default { path: 'hooks', barrelType: 'named' }
109
104
  */
110
105
  output?: Output;
111
106
  /**
@@ -113,15 +108,6 @@ type Options = {
113
108
  */
114
109
  group?: Group;
115
110
  client?: Pick<PluginClient['options'], 'dataReturnType' | 'importPath'>;
116
- /**
117
- * ReturnType that needs to be used when calling client().
118
- *
119
- * `Data` will return ResponseConfig[data].
120
- *
121
- * `Full` will return ResponseConfig.
122
- * @default `'data'`
123
- * @private
124
- */
125
111
  /**
126
112
  * Array containing exclude parameters to exclude/skip tags/operations/methods/paths.
127
113
  */
@@ -136,12 +122,9 @@ type Options = {
136
122
  override?: Array<Override<ResolvedOptions>>;
137
123
  /**
138
124
  * How to pass your pathParams.
139
- *
140
- * `object` will return the pathParams as an object.
141
- *
142
- * `inline` will return the pathParams as comma separated params.
143
- * @default `'inline'`
144
- * @private
125
+ * - 'object' will return the pathParams as an object.
126
+ * - 'inline' will return the pathParams as comma separated params.
127
+ * @default 'inline'
145
128
  */
146
129
  pathParamsType?: PluginClient['options']['pathParamsType'];
147
130
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-solid-query",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.4",
4
4
  "description": "Generator solid-query hooks",
5
5
  "keywords": [
6
6
  "faker",
@@ -62,24 +62,24 @@
62
62
  "!/**/__tests__/**"
63
63
  ],
64
64
  "dependencies": {
65
- "@kubb/core": "3.0.0-beta.3",
66
- "@kubb/fs": "3.0.0-beta.3",
67
- "@kubb/oas": "3.0.0-beta.3",
68
- "@kubb/plugin-oas": "3.0.0-beta.3",
69
- "@kubb/plugin-ts": "3.0.0-beta.3",
70
- "@kubb/plugin-zod": "3.0.0-beta.3",
71
- "@kubb/react": "3.0.0-beta.3"
65
+ "@kubb/core": "3.0.0-beta.4",
66
+ "@kubb/fs": "3.0.0-beta.4",
67
+ "@kubb/oas": "3.0.0-beta.4",
68
+ "@kubb/plugin-oas": "3.0.0-beta.4",
69
+ "@kubb/plugin-ts": "3.0.0-beta.4",
70
+ "@kubb/plugin-zod": "3.0.0-beta.4",
71
+ "@kubb/react": "3.0.0-beta.4"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@types/react": "^18.3.11",
75
75
  "react": "^18.3.1",
76
76
  "tsup": "^8.3.0",
77
77
  "typescript": "^5.6.2",
78
- "@kubb/config-ts": "3.0.0-beta.3",
79
- "@kubb/config-tsup": "3.0.0-beta.3"
78
+ "@kubb/config-ts": "3.0.0-beta.4",
79
+ "@kubb/config-tsup": "3.0.0-beta.4"
80
80
  },
81
81
  "peerDependencies": {
82
- "@kubb/react": "3.0.0-beta.3"
82
+ "@kubb/react": "3.0.0-beta.4"
83
83
  },
84
84
  "engines": {
85
85
  "node": ">=20"
package/src/types.ts CHANGED
@@ -26,7 +26,8 @@ type Query = {
26
26
 
27
27
  export type Options = {
28
28
  /**
29
- * @default 'hooks'
29
+ * Specify the export location for the files and define the behavior of the output
30
+ * @default { path: 'hooks', barrelType: 'named' }
30
31
  */
31
32
  output?: Output
32
33
  /**
@@ -35,17 +36,6 @@ export type Options = {
35
36
  group?: Group
36
37
 
37
38
  client?: Pick<PluginClient['options'], 'dataReturnType' | 'importPath'>
38
-
39
- /**
40
- * ReturnType that needs to be used when calling client().
41
- *
42
- * `Data` will return ResponseConfig[data].
43
- *
44
- * `Full` will return ResponseConfig.
45
- * @default `'data'`
46
- * @private
47
- */
48
-
49
39
  /**
50
40
  * Array containing exclude parameters to exclude/skip tags/operations/methods/paths.
51
41
  */
@@ -60,12 +50,9 @@ export type Options = {
60
50
  override?: Array<Override<ResolvedOptions>>
61
51
  /**
62
52
  * How to pass your pathParams.
63
- *
64
- * `object` will return the pathParams as an object.
65
- *
66
- * `inline` will return the pathParams as comma separated params.
67
- * @default `'inline'`
68
- * @private
53
+ * - 'object' will return the pathParams as an object.
54
+ * - 'inline' will return the pathParams as comma separated params.
55
+ * @default 'inline'
69
56
  */
70
57
  pathParamsType?: PluginClient['options']['pathParamsType']
71
58
  /**