@kubb/plugin-swr 3.16.1 → 3.16.3

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.
Files changed (39) hide show
  1. package/dist/components-BQIcQmn3.js +435 -0
  2. package/dist/components-BQIcQmn3.js.map +1 -0
  3. package/dist/components-Zv6v8ZAm.cjs +493 -0
  4. package/dist/components-Zv6v8ZAm.cjs.map +1 -0
  5. package/dist/components.cjs +6 -27
  6. package/dist/components.d.cts +177 -78
  7. package/dist/components.d.ts +177 -78
  8. package/dist/components.js +3 -3
  9. package/dist/generators-B-fWjDXL.js +328 -0
  10. package/dist/generators-B-fWjDXL.js.map +1 -0
  11. package/dist/generators-ByyKDjyt.cjs +339 -0
  12. package/dist/generators-ByyKDjyt.cjs.map +1 -0
  13. package/dist/generators.cjs +4 -16
  14. package/dist/generators.d.cts +8 -9
  15. package/dist/generators.d.ts +8 -9
  16. package/dist/generators.js +4 -4
  17. package/dist/index.cjs +107 -136
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +6 -8
  20. package/dist/index.d.ts +6 -8
  21. package/dist/index.js +107 -130
  22. package/dist/index.js.map +1 -1
  23. package/dist/types-CSnGy9Uj.d.ts +1355 -0
  24. package/dist/types-CjDGkyWH.d.cts +1355 -0
  25. package/package.json +25 -30
  26. package/dist/chunk-2N4Q32XH.cjs +0 -285
  27. package/dist/chunk-2N4Q32XH.cjs.map +0 -1
  28. package/dist/chunk-GWLPXHRE.js +0 -282
  29. package/dist/chunk-GWLPXHRE.js.map +0 -1
  30. package/dist/chunk-MNOTKHSE.cjs +0 -367
  31. package/dist/chunk-MNOTKHSE.cjs.map +0 -1
  32. package/dist/chunk-RZTUH4QW.js +0 -361
  33. package/dist/chunk-RZTUH4QW.js.map +0 -1
  34. package/dist/components.cjs.map +0 -1
  35. package/dist/components.js.map +0 -1
  36. package/dist/generators.cjs.map +0 -1
  37. package/dist/generators.js.map +0 -1
  38. package/dist/types-DVQ2siUx.d.cts +0 -134
  39. package/dist/types-DVQ2siUx.d.ts +0 -134
@@ -1,102 +1,201 @@
1
- import { Operation } from '@kubb/oas';
2
- import { OperationSchemas } from '@kubb/plugin-oas';
3
- import { ReactNode } from 'react';
4
- import { P as PluginSwr, T as Transformer } from './types-DVQ2siUx.cjs';
5
- import { FunctionParams } from '@kubb/react';
6
- import '@kubb/core';
7
- import '@kubb/plugin-client';
1
+ import { Operation, OperationSchemas, PluginSwr, Transformer } from "./types-CjDGkyWH.cjs";
2
+ import { ReactNode } from "react";
8
3
 
4
+ //#region ../react/src/utils/getFunctionParams.d.ts
5
+ type Param = {
6
+ /**
7
+ * `object` will return the pathParams as an object.
8
+ *
9
+ * `inline` will return the pathParams as comma separated params.
10
+ * @default `'inline'`
11
+ * @private
12
+ */
13
+ mode?: 'object' | 'inline' | 'inlineSpread';
14
+ type?: 'string' | 'number' | (string & {});
15
+ optional?: boolean;
16
+ /**
17
+ * @example test = "default"
18
+ */
19
+ default?: string;
20
+ /**
21
+ * Used for no TypeScript(with mode object)
22
+ * @example test: "default"
23
+ */
24
+ value?: string;
25
+ children?: Params;
26
+ };
27
+ type Params = Record<string, Param | undefined>;
28
+ type Options = {
29
+ type: 'constructor' | 'call' | 'object' | 'objectValue';
30
+ transformName?: (name: string) => string;
31
+ transformType?: (type: string) => string;
32
+ };
33
+ declare class FunctionParams {
34
+ #private;
35
+ static factory(params: Params): FunctionParams;
36
+ constructor(params: Params);
37
+ get params(): Params;
38
+ get flatParams(): Params;
39
+ toCall({
40
+ transformName,
41
+ transformType
42
+ }?: Pick<Options, 'transformName' | 'transformType'>): string;
43
+ toObject(): string;
44
+ toObjectValue(): string;
45
+ toConstructor(): string;
46
+ }
47
+ //#endregion
48
+ //#region src/components/Mutation.d.ts
9
49
  type Props$4 = {
10
- /**
11
- * Name of the function
12
- */
13
- name: string;
14
- typeName: string;
15
- clientName: string;
16
- mutationKeyName: string;
17
- mutationKeyTypeName: string;
18
- typeSchemas: OperationSchemas;
19
- operation: Operation;
20
- paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
21
- paramsType: PluginSwr['resolvedOptions']['paramsType'];
22
- dataReturnType: PluginSwr['resolvedOptions']['client']['dataReturnType'];
23
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
50
+ /**
51
+ * Name of the function
52
+ */
53
+ name: string;
54
+ typeName: string;
55
+ clientName: string;
56
+ mutationKeyName: string;
57
+ mutationKeyTypeName: string;
58
+ typeSchemas: OperationSchemas;
59
+ operation: Operation;
60
+ paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
61
+ paramsType: PluginSwr['resolvedOptions']['paramsType'];
62
+ dataReturnType: PluginSwr['resolvedOptions']['client']['dataReturnType'];
63
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
24
64
  };
25
- declare function Mutation({ name, clientName, mutationKeyName, mutationKeyTypeName, paramsType, paramsCasing, pathParamsType, dataReturnType, typeSchemas, operation, }: Props$4): ReactNode;
26
-
65
+ declare function Mutation({
66
+ name,
67
+ clientName,
68
+ mutationKeyName,
69
+ mutationKeyTypeName,
70
+ paramsType,
71
+ paramsCasing,
72
+ pathParamsType,
73
+ dataReturnType,
74
+ typeSchemas,
75
+ operation
76
+ }: Props$4): ReactNode;
77
+ //#endregion
78
+ //#region src/components/Query.d.ts
27
79
  type Props$3 = {
28
- /**
29
- * Name of the function
30
- */
31
- name: string;
32
- queryOptionsName: string;
33
- queryKeyName: string;
34
- queryKeyTypeName: string;
35
- typeSchemas: OperationSchemas;
36
- paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
37
- paramsType: PluginSwr['resolvedOptions']['paramsType'];
38
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
39
- dataReturnType: PluginSwr['resolvedOptions']['client']['dataReturnType'];
40
- operation: Operation;
80
+ /**
81
+ * Name of the function
82
+ */
83
+ name: string;
84
+ queryOptionsName: string;
85
+ queryKeyName: string;
86
+ queryKeyTypeName: string;
87
+ typeSchemas: OperationSchemas;
88
+ paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
89
+ paramsType: PluginSwr['resolvedOptions']['paramsType'];
90
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
91
+ dataReturnType: PluginSwr['resolvedOptions']['client']['dataReturnType'];
92
+ operation: Operation;
41
93
  };
42
- declare function Query({ name, typeSchemas, queryKeyName, queryKeyTypeName, queryOptionsName, operation, dataReturnType, paramsType, paramsCasing, pathParamsType, }: Props$3): ReactNode;
43
-
94
+ declare function Query({
95
+ name,
96
+ typeSchemas,
97
+ queryKeyName,
98
+ queryKeyTypeName,
99
+ queryOptionsName,
100
+ operation,
101
+ dataReturnType,
102
+ paramsType,
103
+ paramsCasing,
104
+ pathParamsType
105
+ }: Props$3): ReactNode;
106
+ //#endregion
107
+ //#region src/components/QueryOptions.d.ts
44
108
  type Props$2 = {
45
- name: string;
46
- clientName: string;
47
- typeSchemas: OperationSchemas;
48
- paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
49
- paramsType: PluginSwr['resolvedOptions']['paramsType'];
50
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
109
+ name: string;
110
+ clientName: string;
111
+ typeSchemas: OperationSchemas;
112
+ paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
113
+ paramsType: PluginSwr['resolvedOptions']['paramsType'];
114
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
51
115
  };
52
116
  type GetParamsProps$2 = {
53
- paramsType: PluginSwr['resolvedOptions']['paramsType'];
54
- paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
55
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
56
- typeSchemas: OperationSchemas;
117
+ paramsType: PluginSwr['resolvedOptions']['paramsType'];
118
+ paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
119
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
120
+ typeSchemas: OperationSchemas;
57
121
  };
58
- declare function QueryOptions({ name, clientName, typeSchemas, paramsCasing, paramsType, pathParamsType }: Props$2): ReactNode;
122
+ declare function QueryOptions({
123
+ name,
124
+ clientName,
125
+ typeSchemas,
126
+ paramsCasing,
127
+ paramsType,
128
+ pathParamsType
129
+ }: Props$2): ReactNode;
59
130
  declare namespace QueryOptions {
60
- var getParams: ({ paramsType, paramsCasing, pathParamsType, typeSchemas }: GetParamsProps$2) => FunctionParams;
131
+ var getParams: ({
132
+ paramsType,
133
+ paramsCasing,
134
+ pathParamsType,
135
+ typeSchemas
136
+ }: GetParamsProps$2) => FunctionParams;
61
137
  }
62
-
138
+ //#endregion
139
+ //#region src/components/QueryKey.d.ts
63
140
  type Props$1 = {
64
- name: string;
65
- typeName: string;
66
- typeSchemas: OperationSchemas;
67
- operation: Operation;
68
- paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
69
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
70
- transformer: Transformer | undefined;
141
+ name: string;
142
+ typeName: string;
143
+ typeSchemas: OperationSchemas;
144
+ operation: Operation;
145
+ paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
146
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
147
+ transformer: Transformer | undefined;
71
148
  };
72
149
  type GetParamsProps$1 = {
73
- paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
74
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
75
- typeSchemas: OperationSchemas;
150
+ paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
151
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
152
+ typeSchemas: OperationSchemas;
76
153
  };
77
- declare function QueryKey({ name, typeSchemas, paramsCasing, pathParamsType, operation, typeName, transformer }: Props$1): ReactNode;
154
+ declare function QueryKey({
155
+ name,
156
+ typeSchemas,
157
+ paramsCasing,
158
+ pathParamsType,
159
+ operation,
160
+ typeName,
161
+ transformer
162
+ }: Props$1): ReactNode;
78
163
  declare namespace QueryKey {
79
- var getParams: ({ pathParamsType, paramsCasing, typeSchemas }: GetParamsProps$1) => FunctionParams;
80
- var getTransformer: Transformer;
164
+ var getParams: ({
165
+ pathParamsType,
166
+ paramsCasing,
167
+ typeSchemas
168
+ }: GetParamsProps$1) => FunctionParams;
169
+ var getTransformer: Transformer;
81
170
  }
82
-
171
+ //#endregion
172
+ //#region src/components/MutationKey.d.ts
83
173
  type Props = {
84
- name: string;
85
- typeName: string;
86
- typeSchemas: OperationSchemas;
87
- operation: Operation;
88
- paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
89
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
90
- transformer: Transformer | undefined;
174
+ name: string;
175
+ typeName: string;
176
+ typeSchemas: OperationSchemas;
177
+ operation: Operation;
178
+ paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
179
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
180
+ transformer: Transformer | undefined;
91
181
  };
92
182
  type GetParamsProps = {
93
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
94
- typeSchemas: OperationSchemas;
183
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
184
+ typeSchemas: OperationSchemas;
95
185
  };
96
- declare function MutationKey({ name, typeSchemas, paramsCasing, pathParamsType, operation, typeName, transformer }: Props): ReactNode;
186
+ declare function MutationKey({
187
+ name,
188
+ typeSchemas,
189
+ paramsCasing,
190
+ pathParamsType,
191
+ operation,
192
+ typeName,
193
+ transformer
194
+ }: Props): ReactNode;
97
195
  declare namespace MutationKey {
98
- var getParams: ({}: GetParamsProps) => FunctionParams;
99
- var getTransformer: Transformer;
196
+ var getParams: ({}: GetParamsProps) => FunctionParams;
197
+ var getTransformer: Transformer;
100
198
  }
101
-
199
+ //#endregion
102
200
  export { Mutation, MutationKey, Query, QueryKey, QueryOptions };
201
+ //# sourceMappingURL=components.d.cts.map
@@ -1,102 +1,201 @@
1
- import { Operation } from '@kubb/oas';
2
- import { OperationSchemas } from '@kubb/plugin-oas';
3
- import { ReactNode } from 'react';
4
- import { P as PluginSwr, T as Transformer } from './types-DVQ2siUx.js';
5
- import { FunctionParams } from '@kubb/react';
6
- import '@kubb/core';
7
- import '@kubb/plugin-client';
1
+ import { Operation, OperationSchemas, PluginSwr, Transformer } from "./types-CSnGy9Uj.js";
2
+ import { ReactNode } from "react";
8
3
 
4
+ //#region ../react/src/utils/getFunctionParams.d.ts
5
+ type Param = {
6
+ /**
7
+ * `object` will return the pathParams as an object.
8
+ *
9
+ * `inline` will return the pathParams as comma separated params.
10
+ * @default `'inline'`
11
+ * @private
12
+ */
13
+ mode?: 'object' | 'inline' | 'inlineSpread';
14
+ type?: 'string' | 'number' | (string & {});
15
+ optional?: boolean;
16
+ /**
17
+ * @example test = "default"
18
+ */
19
+ default?: string;
20
+ /**
21
+ * Used for no TypeScript(with mode object)
22
+ * @example test: "default"
23
+ */
24
+ value?: string;
25
+ children?: Params;
26
+ };
27
+ type Params = Record<string, Param | undefined>;
28
+ type Options = {
29
+ type: 'constructor' | 'call' | 'object' | 'objectValue';
30
+ transformName?: (name: string) => string;
31
+ transformType?: (type: string) => string;
32
+ };
33
+ declare class FunctionParams {
34
+ #private;
35
+ static factory(params: Params): FunctionParams;
36
+ constructor(params: Params);
37
+ get params(): Params;
38
+ get flatParams(): Params;
39
+ toCall({
40
+ transformName,
41
+ transformType
42
+ }?: Pick<Options, 'transformName' | 'transformType'>): string;
43
+ toObject(): string;
44
+ toObjectValue(): string;
45
+ toConstructor(): string;
46
+ }
47
+ //#endregion
48
+ //#region src/components/Mutation.d.ts
9
49
  type Props$4 = {
10
- /**
11
- * Name of the function
12
- */
13
- name: string;
14
- typeName: string;
15
- clientName: string;
16
- mutationKeyName: string;
17
- mutationKeyTypeName: string;
18
- typeSchemas: OperationSchemas;
19
- operation: Operation;
20
- paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
21
- paramsType: PluginSwr['resolvedOptions']['paramsType'];
22
- dataReturnType: PluginSwr['resolvedOptions']['client']['dataReturnType'];
23
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
50
+ /**
51
+ * Name of the function
52
+ */
53
+ name: string;
54
+ typeName: string;
55
+ clientName: string;
56
+ mutationKeyName: string;
57
+ mutationKeyTypeName: string;
58
+ typeSchemas: OperationSchemas;
59
+ operation: Operation;
60
+ paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
61
+ paramsType: PluginSwr['resolvedOptions']['paramsType'];
62
+ dataReturnType: PluginSwr['resolvedOptions']['client']['dataReturnType'];
63
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
24
64
  };
25
- declare function Mutation({ name, clientName, mutationKeyName, mutationKeyTypeName, paramsType, paramsCasing, pathParamsType, dataReturnType, typeSchemas, operation, }: Props$4): ReactNode;
26
-
65
+ declare function Mutation({
66
+ name,
67
+ clientName,
68
+ mutationKeyName,
69
+ mutationKeyTypeName,
70
+ paramsType,
71
+ paramsCasing,
72
+ pathParamsType,
73
+ dataReturnType,
74
+ typeSchemas,
75
+ operation
76
+ }: Props$4): ReactNode;
77
+ //#endregion
78
+ //#region src/components/Query.d.ts
27
79
  type Props$3 = {
28
- /**
29
- * Name of the function
30
- */
31
- name: string;
32
- queryOptionsName: string;
33
- queryKeyName: string;
34
- queryKeyTypeName: string;
35
- typeSchemas: OperationSchemas;
36
- paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
37
- paramsType: PluginSwr['resolvedOptions']['paramsType'];
38
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
39
- dataReturnType: PluginSwr['resolvedOptions']['client']['dataReturnType'];
40
- operation: Operation;
80
+ /**
81
+ * Name of the function
82
+ */
83
+ name: string;
84
+ queryOptionsName: string;
85
+ queryKeyName: string;
86
+ queryKeyTypeName: string;
87
+ typeSchemas: OperationSchemas;
88
+ paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
89
+ paramsType: PluginSwr['resolvedOptions']['paramsType'];
90
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
91
+ dataReturnType: PluginSwr['resolvedOptions']['client']['dataReturnType'];
92
+ operation: Operation;
41
93
  };
42
- declare function Query({ name, typeSchemas, queryKeyName, queryKeyTypeName, queryOptionsName, operation, dataReturnType, paramsType, paramsCasing, pathParamsType, }: Props$3): ReactNode;
43
-
94
+ declare function Query({
95
+ name,
96
+ typeSchemas,
97
+ queryKeyName,
98
+ queryKeyTypeName,
99
+ queryOptionsName,
100
+ operation,
101
+ dataReturnType,
102
+ paramsType,
103
+ paramsCasing,
104
+ pathParamsType
105
+ }: Props$3): ReactNode;
106
+ //#endregion
107
+ //#region src/components/QueryOptions.d.ts
44
108
  type Props$2 = {
45
- name: string;
46
- clientName: string;
47
- typeSchemas: OperationSchemas;
48
- paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
49
- paramsType: PluginSwr['resolvedOptions']['paramsType'];
50
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
109
+ name: string;
110
+ clientName: string;
111
+ typeSchemas: OperationSchemas;
112
+ paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
113
+ paramsType: PluginSwr['resolvedOptions']['paramsType'];
114
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
51
115
  };
52
116
  type GetParamsProps$2 = {
53
- paramsType: PluginSwr['resolvedOptions']['paramsType'];
54
- paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
55
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
56
- typeSchemas: OperationSchemas;
117
+ paramsType: PluginSwr['resolvedOptions']['paramsType'];
118
+ paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
119
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
120
+ typeSchemas: OperationSchemas;
57
121
  };
58
- declare function QueryOptions({ name, clientName, typeSchemas, paramsCasing, paramsType, pathParamsType }: Props$2): ReactNode;
122
+ declare function QueryOptions({
123
+ name,
124
+ clientName,
125
+ typeSchemas,
126
+ paramsCasing,
127
+ paramsType,
128
+ pathParamsType
129
+ }: Props$2): ReactNode;
59
130
  declare namespace QueryOptions {
60
- var getParams: ({ paramsType, paramsCasing, pathParamsType, typeSchemas }: GetParamsProps$2) => FunctionParams;
131
+ var getParams: ({
132
+ paramsType,
133
+ paramsCasing,
134
+ pathParamsType,
135
+ typeSchemas
136
+ }: GetParamsProps$2) => FunctionParams;
61
137
  }
62
-
138
+ //#endregion
139
+ //#region src/components/QueryKey.d.ts
63
140
  type Props$1 = {
64
- name: string;
65
- typeName: string;
66
- typeSchemas: OperationSchemas;
67
- operation: Operation;
68
- paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
69
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
70
- transformer: Transformer | undefined;
141
+ name: string;
142
+ typeName: string;
143
+ typeSchemas: OperationSchemas;
144
+ operation: Operation;
145
+ paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
146
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
147
+ transformer: Transformer | undefined;
71
148
  };
72
149
  type GetParamsProps$1 = {
73
- paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
74
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
75
- typeSchemas: OperationSchemas;
150
+ paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
151
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
152
+ typeSchemas: OperationSchemas;
76
153
  };
77
- declare function QueryKey({ name, typeSchemas, paramsCasing, pathParamsType, operation, typeName, transformer }: Props$1): ReactNode;
154
+ declare function QueryKey({
155
+ name,
156
+ typeSchemas,
157
+ paramsCasing,
158
+ pathParamsType,
159
+ operation,
160
+ typeName,
161
+ transformer
162
+ }: Props$1): ReactNode;
78
163
  declare namespace QueryKey {
79
- var getParams: ({ pathParamsType, paramsCasing, typeSchemas }: GetParamsProps$1) => FunctionParams;
80
- var getTransformer: Transformer;
164
+ var getParams: ({
165
+ pathParamsType,
166
+ paramsCasing,
167
+ typeSchemas
168
+ }: GetParamsProps$1) => FunctionParams;
169
+ var getTransformer: Transformer;
81
170
  }
82
-
171
+ //#endregion
172
+ //#region src/components/MutationKey.d.ts
83
173
  type Props = {
84
- name: string;
85
- typeName: string;
86
- typeSchemas: OperationSchemas;
87
- operation: Operation;
88
- paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
89
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
90
- transformer: Transformer | undefined;
174
+ name: string;
175
+ typeName: string;
176
+ typeSchemas: OperationSchemas;
177
+ operation: Operation;
178
+ paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
179
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
180
+ transformer: Transformer | undefined;
91
181
  };
92
182
  type GetParamsProps = {
93
- pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
94
- typeSchemas: OperationSchemas;
183
+ pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
184
+ typeSchemas: OperationSchemas;
95
185
  };
96
- declare function MutationKey({ name, typeSchemas, paramsCasing, pathParamsType, operation, typeName, transformer }: Props): ReactNode;
186
+ declare function MutationKey({
187
+ name,
188
+ typeSchemas,
189
+ paramsCasing,
190
+ pathParamsType,
191
+ operation,
192
+ typeName,
193
+ transformer
194
+ }: Props): ReactNode;
97
195
  declare namespace MutationKey {
98
- var getParams: ({}: GetParamsProps) => FunctionParams;
99
- var getTransformer: Transformer;
196
+ var getParams: ({}: GetParamsProps) => FunctionParams;
197
+ var getTransformer: Transformer;
100
198
  }
101
-
199
+ //#endregion
102
200
  export { Mutation, MutationKey, Query, QueryKey, QueryOptions };
201
+ //# sourceMappingURL=components.d.ts.map
@@ -1,3 +1,3 @@
1
- export { Mutation, MutationKey, Query, QueryKey, QueryOptions } from './chunk-RZTUH4QW.js';
2
- //# sourceMappingURL=components.js.map
3
- //# sourceMappingURL=components.js.map
1
+ import { Mutation, MutationKey, Query, QueryKey, QueryOptions } from "./components-BQIcQmn3.js";
2
+
3
+ export { Mutation, MutationKey, Query, QueryKey, QueryOptions };