@kubb/plugin-svelte-query 3.16.2 → 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-B3IxfIQc.js +487 -0
  2. package/dist/components-B3IxfIQc.js.map +1 -0
  3. package/dist/components-Bl5LenX1.cjs +545 -0
  4. package/dist/components-Bl5LenX1.cjs.map +1 -0
  5. package/dist/components.cjs +6 -27
  6. package/dist/components.d.cts +191 -85
  7. package/dist/components.d.ts +191 -85
  8. package/dist/components.js +3 -3
  9. package/dist/generators-B0aaCM9R.cjs +355 -0
  10. package/dist/generators-B0aaCM9R.cjs.map +1 -0
  11. package/dist/generators-CNk_QjGS.js +344 -0
  12. package/dist/generators-CNk_QjGS.js.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 +108 -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 +108 -130
  22. package/dist/index.js.map +1 -1
  23. package/dist/types-BmYdmD4y.d.ts +1361 -0
  24. package/dist/types-DGLdNNAs.d.cts +1361 -0
  25. package/package.json +23 -28
  26. package/dist/chunk-IRUWABQ4.js +0 -398
  27. package/dist/chunk-IRUWABQ4.js.map +0 -1
  28. package/dist/chunk-NPZ54AT7.cjs +0 -289
  29. package/dist/chunk-NPZ54AT7.cjs.map +0 -1
  30. package/dist/chunk-OJL7OC3Y.cjs +0 -404
  31. package/dist/chunk-OJL7OC3Y.cjs.map +0 -1
  32. package/dist/chunk-Y534JBKZ.js +0 -286
  33. package/dist/chunk-Y534JBKZ.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-BIWbWacf.d.cts +0 -140
  39. package/dist/types-BIWbWacf.d.ts +0 -140
@@ -1,113 +1,219 @@
1
- import { Operation } from '@kubb/oas';
2
- import { OperationSchemas } from '@kubb/plugin-oas';
3
- import { ReactNode } from 'react';
4
- import { P as PluginSvelteQuery, T as Transformer } from './types-BIWbWacf.cjs';
5
- import { FunctionParams } from '@kubb/react';
6
- import '@kubb/core';
7
- import '@kubb/plugin-client';
1
+ import { Operation, OperationSchemas, PluginSvelteQuery, Transformer } from "./types-DGLdNNAs.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
- typeSchemas: OperationSchemas;
18
- operation: Operation;
19
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
20
- paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
21
- dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
22
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
50
+ /**
51
+ * Name of the function
52
+ */
53
+ name: string;
54
+ typeName: string;
55
+ clientName: string;
56
+ mutationKeyName: string;
57
+ typeSchemas: OperationSchemas;
58
+ operation: Operation;
59
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
60
+ paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
61
+ dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
62
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
23
63
  };
24
- declare function Mutation({ name, clientName, paramsCasing, paramsType, pathParamsType, dataReturnType, typeSchemas, operation, mutationKeyName, }: Props$4): ReactNode;
25
-
64
+ declare function Mutation({
65
+ name,
66
+ clientName,
67
+ paramsCasing,
68
+ paramsType,
69
+ pathParamsType,
70
+ dataReturnType,
71
+ typeSchemas,
72
+ operation,
73
+ mutationKeyName
74
+ }: Props$4): ReactNode;
75
+ //#endregion
76
+ //#region src/components/Query.d.ts
26
77
  type Props$3 = {
27
- /**
28
- * Name of the function
29
- */
30
- name: string;
31
- queryOptionsName: string;
32
- queryKeyName: string;
33
- queryKeyTypeName: string;
34
- typeSchemas: OperationSchemas;
35
- operation: Operation;
36
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
37
- paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
38
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
39
- dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
78
+ /**
79
+ * Name of the function
80
+ */
81
+ name: string;
82
+ queryOptionsName: string;
83
+ queryKeyName: string;
84
+ queryKeyTypeName: string;
85
+ typeSchemas: OperationSchemas;
86
+ operation: Operation;
87
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
88
+ paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
89
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
90
+ dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
40
91
  };
41
92
  type GetParamsProps$3 = {
42
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
43
- paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
44
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
45
- dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
46
- typeSchemas: OperationSchemas;
93
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
94
+ paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
95
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
96
+ dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
97
+ typeSchemas: OperationSchemas;
47
98
  };
48
- declare function Query({ name, queryKeyTypeName, queryOptionsName, queryKeyName, paramsType, paramsCasing, pathParamsType, dataReturnType, typeSchemas, operation, }: Props$3): ReactNode;
99
+ declare function Query({
100
+ name,
101
+ queryKeyTypeName,
102
+ queryOptionsName,
103
+ queryKeyName,
104
+ paramsType,
105
+ paramsCasing,
106
+ pathParamsType,
107
+ dataReturnType,
108
+ typeSchemas,
109
+ operation
110
+ }: Props$3): ReactNode;
49
111
  declare namespace Query {
50
- var getParams: ({ paramsType, paramsCasing, pathParamsType, dataReturnType, typeSchemas }: GetParamsProps$3) => FunctionParams;
112
+ var getParams: ({
113
+ paramsType,
114
+ paramsCasing,
115
+ pathParamsType,
116
+ dataReturnType,
117
+ typeSchemas
118
+ }: GetParamsProps$3) => FunctionParams;
51
119
  }
52
-
120
+ //#endregion
121
+ //#region src/components/QueryKey.d.ts
53
122
  type Props$2 = {
54
- name: string;
55
- typeName: string;
56
- typeSchemas: OperationSchemas;
57
- operation: Operation;
58
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
59
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
60
- transformer: Transformer | undefined;
123
+ name: string;
124
+ typeName: string;
125
+ typeSchemas: OperationSchemas;
126
+ operation: Operation;
127
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
128
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
129
+ transformer: Transformer | undefined;
61
130
  };
62
131
  type GetParamsProps$2 = {
63
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
64
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
65
- typeSchemas: OperationSchemas;
132
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
133
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
134
+ typeSchemas: OperationSchemas;
66
135
  };
67
- declare function QueryKey({ name, typeSchemas, paramsCasing, pathParamsType, operation, typeName, transformer }: Props$2): ReactNode;
136
+ declare function QueryKey({
137
+ name,
138
+ typeSchemas,
139
+ paramsCasing,
140
+ pathParamsType,
141
+ operation,
142
+ typeName,
143
+ transformer
144
+ }: Props$2): ReactNode;
68
145
  declare namespace QueryKey {
69
- var getParams: ({ pathParamsType, paramsCasing, typeSchemas }: GetParamsProps$2) => FunctionParams;
70
- var getTransformer: Transformer;
146
+ var getParams: ({
147
+ pathParamsType,
148
+ paramsCasing,
149
+ typeSchemas
150
+ }: GetParamsProps$2) => FunctionParams;
151
+ var getTransformer: Transformer;
71
152
  }
72
-
153
+ //#endregion
154
+ //#region src/components/MutationKey.d.ts
73
155
  type Props$1 = {
74
- name: string;
75
- typeName: string;
76
- typeSchemas: OperationSchemas;
77
- operation: Operation;
78
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
79
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
80
- transformer: Transformer | undefined;
156
+ name: string;
157
+ typeName: string;
158
+ typeSchemas: OperationSchemas;
159
+ operation: Operation;
160
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
161
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
162
+ transformer: Transformer | undefined;
81
163
  };
82
164
  type GetParamsProps$1 = {
83
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
84
- typeSchemas: OperationSchemas;
165
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
166
+ typeSchemas: OperationSchemas;
85
167
  };
86
- declare function MutationKey({ name, typeSchemas, paramsCasing, pathParamsType, operation, typeName, transformer }: Props$1): ReactNode;
168
+ declare function MutationKey({
169
+ name,
170
+ typeSchemas,
171
+ paramsCasing,
172
+ pathParamsType,
173
+ operation,
174
+ typeName,
175
+ transformer
176
+ }: Props$1): ReactNode;
87
177
  declare namespace MutationKey {
88
- var getParams: ({}: GetParamsProps$1) => FunctionParams;
89
- var getTransformer: Transformer;
178
+ var getParams: ({}: GetParamsProps$1) => FunctionParams;
179
+ var getTransformer: Transformer;
90
180
  }
91
-
181
+ //#endregion
182
+ //#region src/components/QueryOptions.d.ts
92
183
  type Props = {
93
- name: string;
94
- clientName: string;
95
- queryKeyName: string;
96
- typeSchemas: OperationSchemas;
97
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
98
- paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
99
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
100
- dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
184
+ name: string;
185
+ clientName: string;
186
+ queryKeyName: string;
187
+ typeSchemas: OperationSchemas;
188
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
189
+ paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
190
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
191
+ dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
101
192
  };
102
193
  type GetParamsProps = {
103
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
104
- paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
105
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
106
- typeSchemas: OperationSchemas;
194
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
195
+ paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
196
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
197
+ typeSchemas: OperationSchemas;
107
198
  };
108
- declare function QueryOptions({ name, clientName, typeSchemas, paramsCasing, paramsType, dataReturnType, pathParamsType, queryKeyName }: Props): ReactNode;
199
+ declare function QueryOptions({
200
+ name,
201
+ clientName,
202
+ typeSchemas,
203
+ paramsCasing,
204
+ paramsType,
205
+ dataReturnType,
206
+ pathParamsType,
207
+ queryKeyName
208
+ }: Props): ReactNode;
109
209
  declare namespace QueryOptions {
110
- var getParams: ({ paramsType, paramsCasing, pathParamsType, typeSchemas }: GetParamsProps) => FunctionParams;
210
+ var getParams: ({
211
+ paramsType,
212
+ paramsCasing,
213
+ pathParamsType,
214
+ typeSchemas
215
+ }: GetParamsProps) => FunctionParams;
111
216
  }
112
-
217
+ //#endregion
113
218
  export { Mutation, MutationKey, Query, QueryKey, QueryOptions };
219
+ //# sourceMappingURL=components.d.cts.map
@@ -1,113 +1,219 @@
1
- import { Operation } from '@kubb/oas';
2
- import { OperationSchemas } from '@kubb/plugin-oas';
3
- import { ReactNode } from 'react';
4
- import { P as PluginSvelteQuery, T as Transformer } from './types-BIWbWacf.js';
5
- import { FunctionParams } from '@kubb/react';
6
- import '@kubb/core';
7
- import '@kubb/plugin-client';
1
+ import { Operation, OperationSchemas, PluginSvelteQuery, Transformer } from "./types-BmYdmD4y.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
- typeSchemas: OperationSchemas;
18
- operation: Operation;
19
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
20
- paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
21
- dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
22
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
50
+ /**
51
+ * Name of the function
52
+ */
53
+ name: string;
54
+ typeName: string;
55
+ clientName: string;
56
+ mutationKeyName: string;
57
+ typeSchemas: OperationSchemas;
58
+ operation: Operation;
59
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
60
+ paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
61
+ dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
62
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
23
63
  };
24
- declare function Mutation({ name, clientName, paramsCasing, paramsType, pathParamsType, dataReturnType, typeSchemas, operation, mutationKeyName, }: Props$4): ReactNode;
25
-
64
+ declare function Mutation({
65
+ name,
66
+ clientName,
67
+ paramsCasing,
68
+ paramsType,
69
+ pathParamsType,
70
+ dataReturnType,
71
+ typeSchemas,
72
+ operation,
73
+ mutationKeyName
74
+ }: Props$4): ReactNode;
75
+ //#endregion
76
+ //#region src/components/Query.d.ts
26
77
  type Props$3 = {
27
- /**
28
- * Name of the function
29
- */
30
- name: string;
31
- queryOptionsName: string;
32
- queryKeyName: string;
33
- queryKeyTypeName: string;
34
- typeSchemas: OperationSchemas;
35
- operation: Operation;
36
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
37
- paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
38
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
39
- dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
78
+ /**
79
+ * Name of the function
80
+ */
81
+ name: string;
82
+ queryOptionsName: string;
83
+ queryKeyName: string;
84
+ queryKeyTypeName: string;
85
+ typeSchemas: OperationSchemas;
86
+ operation: Operation;
87
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
88
+ paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
89
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
90
+ dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
40
91
  };
41
92
  type GetParamsProps$3 = {
42
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
43
- paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
44
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
45
- dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
46
- typeSchemas: OperationSchemas;
93
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
94
+ paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
95
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
96
+ dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
97
+ typeSchemas: OperationSchemas;
47
98
  };
48
- declare function Query({ name, queryKeyTypeName, queryOptionsName, queryKeyName, paramsType, paramsCasing, pathParamsType, dataReturnType, typeSchemas, operation, }: Props$3): ReactNode;
99
+ declare function Query({
100
+ name,
101
+ queryKeyTypeName,
102
+ queryOptionsName,
103
+ queryKeyName,
104
+ paramsType,
105
+ paramsCasing,
106
+ pathParamsType,
107
+ dataReturnType,
108
+ typeSchemas,
109
+ operation
110
+ }: Props$3): ReactNode;
49
111
  declare namespace Query {
50
- var getParams: ({ paramsType, paramsCasing, pathParamsType, dataReturnType, typeSchemas }: GetParamsProps$3) => FunctionParams;
112
+ var getParams: ({
113
+ paramsType,
114
+ paramsCasing,
115
+ pathParamsType,
116
+ dataReturnType,
117
+ typeSchemas
118
+ }: GetParamsProps$3) => FunctionParams;
51
119
  }
52
-
120
+ //#endregion
121
+ //#region src/components/QueryKey.d.ts
53
122
  type Props$2 = {
54
- name: string;
55
- typeName: string;
56
- typeSchemas: OperationSchemas;
57
- operation: Operation;
58
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
59
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
60
- transformer: Transformer | undefined;
123
+ name: string;
124
+ typeName: string;
125
+ typeSchemas: OperationSchemas;
126
+ operation: Operation;
127
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
128
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
129
+ transformer: Transformer | undefined;
61
130
  };
62
131
  type GetParamsProps$2 = {
63
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
64
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
65
- typeSchemas: OperationSchemas;
132
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
133
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
134
+ typeSchemas: OperationSchemas;
66
135
  };
67
- declare function QueryKey({ name, typeSchemas, paramsCasing, pathParamsType, operation, typeName, transformer }: Props$2): ReactNode;
136
+ declare function QueryKey({
137
+ name,
138
+ typeSchemas,
139
+ paramsCasing,
140
+ pathParamsType,
141
+ operation,
142
+ typeName,
143
+ transformer
144
+ }: Props$2): ReactNode;
68
145
  declare namespace QueryKey {
69
- var getParams: ({ pathParamsType, paramsCasing, typeSchemas }: GetParamsProps$2) => FunctionParams;
70
- var getTransformer: Transformer;
146
+ var getParams: ({
147
+ pathParamsType,
148
+ paramsCasing,
149
+ typeSchemas
150
+ }: GetParamsProps$2) => FunctionParams;
151
+ var getTransformer: Transformer;
71
152
  }
72
-
153
+ //#endregion
154
+ //#region src/components/MutationKey.d.ts
73
155
  type Props$1 = {
74
- name: string;
75
- typeName: string;
76
- typeSchemas: OperationSchemas;
77
- operation: Operation;
78
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
79
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
80
- transformer: Transformer | undefined;
156
+ name: string;
157
+ typeName: string;
158
+ typeSchemas: OperationSchemas;
159
+ operation: Operation;
160
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
161
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
162
+ transformer: Transformer | undefined;
81
163
  };
82
164
  type GetParamsProps$1 = {
83
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
84
- typeSchemas: OperationSchemas;
165
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
166
+ typeSchemas: OperationSchemas;
85
167
  };
86
- declare function MutationKey({ name, typeSchemas, paramsCasing, pathParamsType, operation, typeName, transformer }: Props$1): ReactNode;
168
+ declare function MutationKey({
169
+ name,
170
+ typeSchemas,
171
+ paramsCasing,
172
+ pathParamsType,
173
+ operation,
174
+ typeName,
175
+ transformer
176
+ }: Props$1): ReactNode;
87
177
  declare namespace MutationKey {
88
- var getParams: ({}: GetParamsProps$1) => FunctionParams;
89
- var getTransformer: Transformer;
178
+ var getParams: ({}: GetParamsProps$1) => FunctionParams;
179
+ var getTransformer: Transformer;
90
180
  }
91
-
181
+ //#endregion
182
+ //#region src/components/QueryOptions.d.ts
92
183
  type Props = {
93
- name: string;
94
- clientName: string;
95
- queryKeyName: string;
96
- typeSchemas: OperationSchemas;
97
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
98
- paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
99
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
100
- dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
184
+ name: string;
185
+ clientName: string;
186
+ queryKeyName: string;
187
+ typeSchemas: OperationSchemas;
188
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
189
+ paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
190
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
191
+ dataReturnType: PluginSvelteQuery['resolvedOptions']['client']['dataReturnType'];
101
192
  };
102
193
  type GetParamsProps = {
103
- paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
104
- paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
105
- pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
106
- typeSchemas: OperationSchemas;
194
+ paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
195
+ paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
196
+ pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
197
+ typeSchemas: OperationSchemas;
107
198
  };
108
- declare function QueryOptions({ name, clientName, typeSchemas, paramsCasing, paramsType, dataReturnType, pathParamsType, queryKeyName }: Props): ReactNode;
199
+ declare function QueryOptions({
200
+ name,
201
+ clientName,
202
+ typeSchemas,
203
+ paramsCasing,
204
+ paramsType,
205
+ dataReturnType,
206
+ pathParamsType,
207
+ queryKeyName
208
+ }: Props): ReactNode;
109
209
  declare namespace QueryOptions {
110
- var getParams: ({ paramsType, paramsCasing, pathParamsType, typeSchemas }: GetParamsProps) => FunctionParams;
210
+ var getParams: ({
211
+ paramsType,
212
+ paramsCasing,
213
+ pathParamsType,
214
+ typeSchemas
215
+ }: GetParamsProps) => FunctionParams;
111
216
  }
112
-
217
+ //#endregion
113
218
  export { Mutation, MutationKey, Query, QueryKey, QueryOptions };
219
+ //# sourceMappingURL=components.d.ts.map
@@ -1,3 +1,3 @@
1
- export { Mutation, MutationKey, Query, QueryKey, QueryOptions } from './chunk-IRUWABQ4.js';
2
- //# sourceMappingURL=components.js.map
3
- //# sourceMappingURL=components.js.map
1
+ import { Mutation, MutationKey, Query, QueryKey, QueryOptions } from "./components-B3IxfIQc.js";
2
+
3
+ export { Mutation, MutationKey, Query, QueryKey, QueryOptions };