@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.
- package/dist/components-BQIcQmn3.js +435 -0
- package/dist/components-BQIcQmn3.js.map +1 -0
- package/dist/components-Zv6v8ZAm.cjs +493 -0
- package/dist/components-Zv6v8ZAm.cjs.map +1 -0
- package/dist/components.cjs +6 -27
- package/dist/components.d.cts +177 -78
- package/dist/components.d.ts +177 -78
- package/dist/components.js +3 -3
- package/dist/generators-B-fWjDXL.js +328 -0
- package/dist/generators-B-fWjDXL.js.map +1 -0
- package/dist/generators-ByyKDjyt.cjs +339 -0
- package/dist/generators-ByyKDjyt.cjs.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 +107 -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 +107 -130
- package/dist/index.js.map +1 -1
- package/dist/types-CSnGy9Uj.d.ts +1355 -0
- package/dist/types-CjDGkyWH.d.cts +1355 -0
- package/package.json +25 -30
- package/dist/chunk-2N4Q32XH.cjs +0 -285
- package/dist/chunk-2N4Q32XH.cjs.map +0 -1
- package/dist/chunk-GWLPXHRE.js +0 -282
- package/dist/chunk-GWLPXHRE.js.map +0 -1
- package/dist/chunk-MNOTKHSE.cjs +0 -367
- package/dist/chunk-MNOTKHSE.cjs.map +0 -1
- package/dist/chunk-RZTUH4QW.js +0 -361
- package/dist/chunk-RZTUH4QW.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-DVQ2siUx.d.cts +0 -134
- package/dist/types-DVQ2siUx.d.ts +0 -134
package/dist/components.d.cts
CHANGED
|
@@ -1,102 +1,201 @@
|
|
|
1
|
-
import { Operation } from
|
|
2
|
-
import {
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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({
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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({
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
117
|
+
paramsType: PluginSwr['resolvedOptions']['paramsType'];
|
|
118
|
+
paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
|
|
119
|
+
pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
|
|
120
|
+
typeSchemas: OperationSchemas;
|
|
57
121
|
};
|
|
58
|
-
declare function QueryOptions({
|
|
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
|
-
|
|
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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
150
|
+
paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
|
|
151
|
+
pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
|
|
152
|
+
typeSchemas: OperationSchemas;
|
|
76
153
|
};
|
|
77
|
-
declare function QueryKey({
|
|
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
|
-
|
|
80
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
94
|
-
|
|
183
|
+
pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
|
|
184
|
+
typeSchemas: OperationSchemas;
|
|
95
185
|
};
|
|
96
|
-
declare function MutationKey({
|
|
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
|
-
|
|
99
|
-
|
|
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
|
package/dist/components.d.ts
CHANGED
|
@@ -1,102 +1,201 @@
|
|
|
1
|
-
import { Operation } from
|
|
2
|
-
import {
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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({
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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({
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
117
|
+
paramsType: PluginSwr['resolvedOptions']['paramsType'];
|
|
118
|
+
paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
|
|
119
|
+
pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
|
|
120
|
+
typeSchemas: OperationSchemas;
|
|
57
121
|
};
|
|
58
|
-
declare function QueryOptions({
|
|
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
|
-
|
|
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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
150
|
+
paramsCasing: PluginSwr['resolvedOptions']['paramsCasing'];
|
|
151
|
+
pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
|
|
152
|
+
typeSchemas: OperationSchemas;
|
|
76
153
|
};
|
|
77
|
-
declare function QueryKey({
|
|
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
|
-
|
|
80
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
94
|
-
|
|
183
|
+
pathParamsType: PluginSwr['resolvedOptions']['pathParamsType'];
|
|
184
|
+
typeSchemas: OperationSchemas;
|
|
95
185
|
};
|
|
96
|
-
declare function MutationKey({
|
|
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
|
-
|
|
99
|
-
|
|
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
|
package/dist/components.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Mutation, MutationKey, Query, QueryKey, QueryOptions } from "./components-BQIcQmn3.js";
|
|
2
|
+
|
|
3
|
+
export { Mutation, MutationKey, Query, QueryKey, QueryOptions };
|