@kubb/plugin-svelte-query 3.16.2 → 3.16.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.
- package/dist/components-B3IxfIQc.js +487 -0
- package/dist/components-B3IxfIQc.js.map +1 -0
- package/dist/components-Bl5LenX1.cjs +545 -0
- package/dist/components-Bl5LenX1.cjs.map +1 -0
- package/dist/components.cjs +6 -27
- package/dist/components.d.cts +191 -85
- package/dist/components.d.ts +191 -85
- package/dist/components.js +3 -3
- package/dist/generators-B0aaCM9R.cjs +355 -0
- package/dist/generators-B0aaCM9R.cjs.map +1 -0
- package/dist/generators-CNk_QjGS.js +344 -0
- package/dist/generators-CNk_QjGS.js.map +1 -0
- package/dist/generators.cjs +4 -16
- package/dist/generators.d.cts +8 -9
- package/dist/generators.d.ts +8 -9
- package/dist/generators.js +4 -4
- package/dist/index.cjs +108 -136
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -8
- package/dist/index.d.ts +6 -8
- package/dist/index.js +108 -130
- package/dist/index.js.map +1 -1
- package/dist/types-BmYdmD4y.d.ts +1361 -0
- package/dist/types-DGLdNNAs.d.cts +1361 -0
- package/package.json +23 -28
- package/dist/chunk-IRUWABQ4.js +0 -398
- package/dist/chunk-IRUWABQ4.js.map +0 -1
- package/dist/chunk-NPZ54AT7.cjs +0 -289
- package/dist/chunk-NPZ54AT7.cjs.map +0 -1
- package/dist/chunk-OJL7OC3Y.cjs +0 -404
- package/dist/chunk-OJL7OC3Y.cjs.map +0 -1
- package/dist/chunk-Y534JBKZ.js +0 -286
- package/dist/chunk-Y534JBKZ.js.map +0 -1
- package/dist/components.cjs.map +0 -1
- package/dist/components.js.map +0 -1
- package/dist/generators.cjs.map +0 -1
- package/dist/generators.js.map +0 -1
- package/dist/types-BIWbWacf.d.cts +0 -140
- package/dist/types-BIWbWacf.d.ts +0 -140
package/dist/components.d.cts
CHANGED
|
@@ -1,113 +1,219 @@
|
|
|
1
|
-
import { Operation } from
|
|
2
|
-
import {
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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({
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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({
|
|
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
|
-
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
132
|
+
paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
|
|
133
|
+
pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
|
|
134
|
+
typeSchemas: OperationSchemas;
|
|
66
135
|
};
|
|
67
|
-
declare function QueryKey({
|
|
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
|
-
|
|
70
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
84
|
-
|
|
165
|
+
pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
|
|
166
|
+
typeSchemas: OperationSchemas;
|
|
85
167
|
};
|
|
86
|
-
declare function MutationKey({
|
|
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
|
-
|
|
89
|
-
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
194
|
+
paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
|
|
195
|
+
paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
|
|
196
|
+
pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
|
|
197
|
+
typeSchemas: OperationSchemas;
|
|
107
198
|
};
|
|
108
|
-
declare function QueryOptions({
|
|
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
|
-
|
|
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
|
package/dist/components.d.ts
CHANGED
|
@@ -1,113 +1,219 @@
|
|
|
1
|
-
import { Operation } from
|
|
2
|
-
import {
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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({
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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({
|
|
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
|
-
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
132
|
+
paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
|
|
133
|
+
pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
|
|
134
|
+
typeSchemas: OperationSchemas;
|
|
66
135
|
};
|
|
67
|
-
declare function QueryKey({
|
|
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
|
-
|
|
70
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
84
|
-
|
|
165
|
+
pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
|
|
166
|
+
typeSchemas: OperationSchemas;
|
|
85
167
|
};
|
|
86
|
-
declare function MutationKey({
|
|
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
|
-
|
|
89
|
-
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
194
|
+
paramsCasing: PluginSvelteQuery['resolvedOptions']['paramsCasing'];
|
|
195
|
+
paramsType: PluginSvelteQuery['resolvedOptions']['paramsType'];
|
|
196
|
+
pathParamsType: PluginSvelteQuery['resolvedOptions']['pathParamsType'];
|
|
197
|
+
typeSchemas: OperationSchemas;
|
|
107
198
|
};
|
|
108
|
-
declare function QueryOptions({
|
|
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
|
-
|
|
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
|
package/dist/components.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Mutation, MutationKey, Query, QueryKey, QueryOptions } from "./components-B3IxfIQc.js";
|
|
2
|
+
|
|
3
|
+
export { Mutation, MutationKey, Query, QueryKey, QueryOptions };
|