@kubb/plugin-vue-query 4.9.4 → 4.10.1
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.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/generators.cjs +0 -1
- package/dist/generators.d.cts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/generators.js +0 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{types-BnerPCg0.d.ts → types-BWI2KEBy.d.cts} +29 -29
- package/dist/{types-CWp_kGtI.d.cts → types-Ds-oDlyr.d.ts} +29 -29
- package/package.json +13 -13
package/dist/components.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginVueQuery, t as Infinite } from "./types-
|
|
1
|
+
import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginVueQuery, t as Infinite } from "./types-BWI2KEBy.cjs";
|
|
2
2
|
import { FunctionParams } from "@kubb/react-fabric";
|
|
3
3
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
4
4
|
|
package/dist/components.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginVueQuery, t as Infinite } from "./types-
|
|
1
|
+
import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginVueQuery, t as Infinite } from "./types-Ds-oDlyr.js";
|
|
2
2
|
import { FunctionParams } from "@kubb/react-fabric";
|
|
3
3
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
4
4
|
|
package/dist/generators.cjs
CHANGED
package/dist/generators.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ReactGenerator, r as PluginVueQuery } from "./types-
|
|
1
|
+
import { a as ReactGenerator, r as PluginVueQuery } from "./types-BWI2KEBy.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/generators/infiniteQueryGenerator.d.ts
|
|
4
4
|
declare const infiniteQueryGenerator: ReactGenerator<PluginVueQuery>;
|
package/dist/generators.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ReactGenerator, r as PluginVueQuery } from "./types-
|
|
1
|
+
import { a as ReactGenerator, r as PluginVueQuery } from "./types-Ds-oDlyr.js";
|
|
2
2
|
|
|
3
3
|
//#region src/generators/infiniteQueryGenerator.d.ts
|
|
4
4
|
declare const infiniteQueryGenerator: ReactGenerator<PluginVueQuery>;
|
package/dist/generators.js
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Options, r as PluginVueQuery, s as UserPluginWithLifeCycle } from "./types-
|
|
1
|
+
import { n as Options, r as PluginVueQuery, s as UserPluginWithLifeCycle } from "./types-BWI2KEBy.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginVueQueryName = "plugin-vue-query";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Options, r as PluginVueQuery, s as UserPluginWithLifeCycle } from "./types-
|
|
1
|
+
import { n as Options, r as PluginVueQuery, s as UserPluginWithLifeCycle } from "./types-Ds-oDlyr.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginVueQueryName = "plugin-vue-query";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Fabric } from "@kubb/react-fabric";
|
|
2
1
|
import * as OasTypes from "oas/types";
|
|
3
2
|
import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
|
|
4
3
|
import { Operation, Operation as Operation$1 } from "oas/operation";
|
|
@@ -6,6 +5,7 @@ import { OpenAPIV3 } from "openapi-types";
|
|
|
6
5
|
import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
|
|
7
6
|
import BaseOas from "oas";
|
|
8
7
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
8
|
+
import { Fabric } from "@kubb/react-fabric";
|
|
9
9
|
import { ConsolaInstance, LogLevel } from "consola";
|
|
10
10
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ type SchemaObject$1 = OasTypes.SchemaObject & {
|
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../oas/src/Oas.d.ts
|
|
20
|
-
type Options$
|
|
20
|
+
type Options$3 = {
|
|
21
21
|
contentType?: contentType;
|
|
22
22
|
discriminator?: 'strict' | 'inherit';
|
|
23
23
|
};
|
|
@@ -31,8 +31,8 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
|
|
|
31
31
|
oas: TOAS | OASDocument | string;
|
|
32
32
|
user?: User;
|
|
33
33
|
});
|
|
34
|
-
setOptions(options: Options$
|
|
35
|
-
get options(): Options$
|
|
34
|
+
setOptions(options: Options$3): void;
|
|
35
|
+
get options(): Options$3;
|
|
36
36
|
get($ref: string): any;
|
|
37
37
|
getKey($ref: string): string | undefined;
|
|
38
38
|
set($ref: string, value: unknown): false | undefined;
|
|
@@ -427,7 +427,7 @@ type SafeParseResult<H extends PluginLifecycleHooks, Result = ReturnType<ParseRe
|
|
|
427
427
|
result: Result;
|
|
428
428
|
plugin: Plugin;
|
|
429
429
|
};
|
|
430
|
-
type Options$
|
|
430
|
+
type Options$2 = {
|
|
431
431
|
fabric: Fabric;
|
|
432
432
|
logger: Logger;
|
|
433
433
|
/**
|
|
@@ -453,8 +453,8 @@ declare class PluginManager {
|
|
|
453
453
|
readonly config: Config;
|
|
454
454
|
readonly executed: Array<Executer>;
|
|
455
455
|
readonly logger: Logger;
|
|
456
|
-
readonly options: Options$
|
|
457
|
-
constructor(config: Config, options: Options$
|
|
456
|
+
readonly options: Options$2;
|
|
457
|
+
constructor(config: Config, options: Options$2);
|
|
458
458
|
getContext<TOptions extends PluginFactoryOptions>(plugin: Plugin<TOptions>): PluginContext<TOptions> & Record<string, any>;
|
|
459
459
|
get plugins(): Array<Plugin>;
|
|
460
460
|
getFile<TOptions = object>({
|
|
@@ -1006,7 +1006,7 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
|
|
|
1006
1006
|
};
|
|
1007
1007
|
//#endregion
|
|
1008
1008
|
//#region ../plugin-client/src/types.d.ts
|
|
1009
|
-
type Options$
|
|
1009
|
+
type Options$1 = {
|
|
1010
1010
|
/**
|
|
1011
1011
|
* Specify the export location for the files and define the behavior of the output
|
|
1012
1012
|
* @default { path: 'clients', barrelType: 'named' }
|
|
@@ -1121,20 +1121,20 @@ type Options$2 = {
|
|
|
1121
1121
|
};
|
|
1122
1122
|
type ResolvedOptions$1 = {
|
|
1123
1123
|
output: Output<Oas>;
|
|
1124
|
-
group?: Options$
|
|
1124
|
+
group?: Options$1['group'];
|
|
1125
1125
|
baseURL: string | undefined;
|
|
1126
|
-
client: Options$
|
|
1127
|
-
clientType: NonNullable<Options$
|
|
1128
|
-
bundle: NonNullable<Options$
|
|
1129
|
-
parser: NonNullable<Options$
|
|
1130
|
-
urlType: NonNullable<Options$
|
|
1131
|
-
importPath: Options$
|
|
1132
|
-
dataReturnType: NonNullable<Options$
|
|
1133
|
-
pathParamsType: NonNullable<Options$
|
|
1134
|
-
paramsType: NonNullable<Options$
|
|
1135
|
-
paramsCasing: Options$
|
|
1126
|
+
client: Options$1['client'];
|
|
1127
|
+
clientType: NonNullable<Options$1['clientType']>;
|
|
1128
|
+
bundle: NonNullable<Options$1['bundle']>;
|
|
1129
|
+
parser: NonNullable<Options$1['parser']>;
|
|
1130
|
+
urlType: NonNullable<Options$1['urlType']>;
|
|
1131
|
+
importPath: Options$1['importPath'];
|
|
1132
|
+
dataReturnType: NonNullable<Options$1['dataReturnType']>;
|
|
1133
|
+
pathParamsType: NonNullable<Options$1['pathParamsType']>;
|
|
1134
|
+
paramsType: NonNullable<Options$1['paramsType']>;
|
|
1135
|
+
paramsCasing: Options$1['paramsCasing'];
|
|
1136
1136
|
};
|
|
1137
|
-
type PluginClient = PluginFactoryOptions<'plugin-client', Options$
|
|
1137
|
+
type PluginClient = PluginFactoryOptions<'plugin-client', Options$1, ResolvedOptions$1, never, ResolvePathOptions>;
|
|
1138
1138
|
//#endregion
|
|
1139
1139
|
//#region src/types.d.ts
|
|
1140
1140
|
type TransformerProps = {
|
|
@@ -1208,7 +1208,7 @@ type Infinite = {
|
|
|
1208
1208
|
*/
|
|
1209
1209
|
initialPageParam: unknown;
|
|
1210
1210
|
};
|
|
1211
|
-
type Options
|
|
1211
|
+
type Options = {
|
|
1212
1212
|
/**
|
|
1213
1213
|
* Specify the export location for the files and define the behavior of the output
|
|
1214
1214
|
* @default { path: 'hooks', barrelType: 'named' }
|
|
@@ -1287,12 +1287,12 @@ type Options$1 = {
|
|
|
1287
1287
|
};
|
|
1288
1288
|
type ResolvedOptions = {
|
|
1289
1289
|
output: Output<Oas>;
|
|
1290
|
-
group: Options
|
|
1290
|
+
group: Options['group'];
|
|
1291
1291
|
client: NonNullable<PluginVueQuery['options']['client']>;
|
|
1292
|
-
parser: Required<NonNullable<Options
|
|
1293
|
-
paramsCasing: Options
|
|
1294
|
-
paramsType: NonNullable<Options
|
|
1295
|
-
pathParamsType: NonNullable<Options
|
|
1292
|
+
parser: Required<NonNullable<Options['parser']>>;
|
|
1293
|
+
paramsCasing: Options['paramsCasing'];
|
|
1294
|
+
paramsType: NonNullable<Options['paramsType']>;
|
|
1295
|
+
pathParamsType: NonNullable<Options['pathParamsType']>;
|
|
1296
1296
|
/**
|
|
1297
1297
|
* Only used of infinite
|
|
1298
1298
|
*/
|
|
@@ -1302,7 +1302,7 @@ type ResolvedOptions = {
|
|
|
1302
1302
|
mutationKey: MutationKey | undefined;
|
|
1303
1303
|
mutation: NonNullable<Required<Mutation>> | false;
|
|
1304
1304
|
};
|
|
1305
|
-
type PluginVueQuery = PluginFactoryOptions<'plugin-vue-query', Options
|
|
1305
|
+
type PluginVueQuery = PluginFactoryOptions<'plugin-vue-query', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1306
1306
|
//#endregion
|
|
1307
|
-
export { ReactGenerator as a, Operation$1 as c, Transformer as i, Options
|
|
1308
|
-
//# sourceMappingURL=types-
|
|
1307
|
+
export { ReactGenerator as a, Operation$1 as c, Transformer as i, Options as n, OperationSchemas as o, PluginVueQuery as r, UserPluginWithLifeCycle as s, Infinite as t };
|
|
1308
|
+
//# sourceMappingURL=types-BWI2KEBy.d.cts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Fabric } from "@kubb/react-fabric";
|
|
1
2
|
import * as OasTypes from "oas/types";
|
|
2
3
|
import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
|
|
3
4
|
import { Operation, Operation as Operation$1 } from "oas/operation";
|
|
@@ -5,7 +6,6 @@ import { OpenAPIV3 } from "openapi-types";
|
|
|
5
6
|
import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
|
|
6
7
|
import BaseOas from "oas";
|
|
7
8
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
8
|
-
import { Fabric } from "@kubb/react-fabric";
|
|
9
9
|
import { ConsolaInstance, LogLevel } from "consola";
|
|
10
10
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ type SchemaObject$1 = OasTypes.SchemaObject & {
|
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../oas/src/Oas.d.ts
|
|
20
|
-
type Options$
|
|
20
|
+
type Options$3 = {
|
|
21
21
|
contentType?: contentType;
|
|
22
22
|
discriminator?: 'strict' | 'inherit';
|
|
23
23
|
};
|
|
@@ -31,8 +31,8 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
|
|
|
31
31
|
oas: TOAS | OASDocument | string;
|
|
32
32
|
user?: User;
|
|
33
33
|
});
|
|
34
|
-
setOptions(options: Options$
|
|
35
|
-
get options(): Options$
|
|
34
|
+
setOptions(options: Options$3): void;
|
|
35
|
+
get options(): Options$3;
|
|
36
36
|
get($ref: string): any;
|
|
37
37
|
getKey($ref: string): string | undefined;
|
|
38
38
|
set($ref: string, value: unknown): false | undefined;
|
|
@@ -427,7 +427,7 @@ type SafeParseResult<H extends PluginLifecycleHooks, Result = ReturnType<ParseRe
|
|
|
427
427
|
result: Result;
|
|
428
428
|
plugin: Plugin;
|
|
429
429
|
};
|
|
430
|
-
type Options$
|
|
430
|
+
type Options$2 = {
|
|
431
431
|
fabric: Fabric;
|
|
432
432
|
logger: Logger;
|
|
433
433
|
/**
|
|
@@ -453,8 +453,8 @@ declare class PluginManager {
|
|
|
453
453
|
readonly config: Config;
|
|
454
454
|
readonly executed: Array<Executer>;
|
|
455
455
|
readonly logger: Logger;
|
|
456
|
-
readonly options: Options$
|
|
457
|
-
constructor(config: Config, options: Options$
|
|
456
|
+
readonly options: Options$2;
|
|
457
|
+
constructor(config: Config, options: Options$2);
|
|
458
458
|
getContext<TOptions extends PluginFactoryOptions>(plugin: Plugin<TOptions>): PluginContext<TOptions> & Record<string, any>;
|
|
459
459
|
get plugins(): Array<Plugin>;
|
|
460
460
|
getFile<TOptions = object>({
|
|
@@ -1006,7 +1006,7 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
|
|
|
1006
1006
|
};
|
|
1007
1007
|
//#endregion
|
|
1008
1008
|
//#region ../plugin-client/src/types.d.ts
|
|
1009
|
-
type Options$
|
|
1009
|
+
type Options$1 = {
|
|
1010
1010
|
/**
|
|
1011
1011
|
* Specify the export location for the files and define the behavior of the output
|
|
1012
1012
|
* @default { path: 'clients', barrelType: 'named' }
|
|
@@ -1121,20 +1121,20 @@ type Options$2 = {
|
|
|
1121
1121
|
};
|
|
1122
1122
|
type ResolvedOptions$1 = {
|
|
1123
1123
|
output: Output<Oas>;
|
|
1124
|
-
group?: Options$
|
|
1124
|
+
group?: Options$1['group'];
|
|
1125
1125
|
baseURL: string | undefined;
|
|
1126
|
-
client: Options$
|
|
1127
|
-
clientType: NonNullable<Options$
|
|
1128
|
-
bundle: NonNullable<Options$
|
|
1129
|
-
parser: NonNullable<Options$
|
|
1130
|
-
urlType: NonNullable<Options$
|
|
1131
|
-
importPath: Options$
|
|
1132
|
-
dataReturnType: NonNullable<Options$
|
|
1133
|
-
pathParamsType: NonNullable<Options$
|
|
1134
|
-
paramsType: NonNullable<Options$
|
|
1135
|
-
paramsCasing: Options$
|
|
1126
|
+
client: Options$1['client'];
|
|
1127
|
+
clientType: NonNullable<Options$1['clientType']>;
|
|
1128
|
+
bundle: NonNullable<Options$1['bundle']>;
|
|
1129
|
+
parser: NonNullable<Options$1['parser']>;
|
|
1130
|
+
urlType: NonNullable<Options$1['urlType']>;
|
|
1131
|
+
importPath: Options$1['importPath'];
|
|
1132
|
+
dataReturnType: NonNullable<Options$1['dataReturnType']>;
|
|
1133
|
+
pathParamsType: NonNullable<Options$1['pathParamsType']>;
|
|
1134
|
+
paramsType: NonNullable<Options$1['paramsType']>;
|
|
1135
|
+
paramsCasing: Options$1['paramsCasing'];
|
|
1136
1136
|
};
|
|
1137
|
-
type PluginClient = PluginFactoryOptions<'plugin-client', Options$
|
|
1137
|
+
type PluginClient = PluginFactoryOptions<'plugin-client', Options$1, ResolvedOptions$1, never, ResolvePathOptions>;
|
|
1138
1138
|
//#endregion
|
|
1139
1139
|
//#region src/types.d.ts
|
|
1140
1140
|
type TransformerProps = {
|
|
@@ -1208,7 +1208,7 @@ type Infinite = {
|
|
|
1208
1208
|
*/
|
|
1209
1209
|
initialPageParam: unknown;
|
|
1210
1210
|
};
|
|
1211
|
-
type Options
|
|
1211
|
+
type Options = {
|
|
1212
1212
|
/**
|
|
1213
1213
|
* Specify the export location for the files and define the behavior of the output
|
|
1214
1214
|
* @default { path: 'hooks', barrelType: 'named' }
|
|
@@ -1287,12 +1287,12 @@ type Options$1 = {
|
|
|
1287
1287
|
};
|
|
1288
1288
|
type ResolvedOptions = {
|
|
1289
1289
|
output: Output<Oas>;
|
|
1290
|
-
group: Options
|
|
1290
|
+
group: Options['group'];
|
|
1291
1291
|
client: NonNullable<PluginVueQuery['options']['client']>;
|
|
1292
|
-
parser: Required<NonNullable<Options
|
|
1293
|
-
paramsCasing: Options
|
|
1294
|
-
paramsType: NonNullable<Options
|
|
1295
|
-
pathParamsType: NonNullable<Options
|
|
1292
|
+
parser: Required<NonNullable<Options['parser']>>;
|
|
1293
|
+
paramsCasing: Options['paramsCasing'];
|
|
1294
|
+
paramsType: NonNullable<Options['paramsType']>;
|
|
1295
|
+
pathParamsType: NonNullable<Options['pathParamsType']>;
|
|
1296
1296
|
/**
|
|
1297
1297
|
* Only used of infinite
|
|
1298
1298
|
*/
|
|
@@ -1302,7 +1302,7 @@ type ResolvedOptions = {
|
|
|
1302
1302
|
mutationKey: MutationKey | undefined;
|
|
1303
1303
|
mutation: NonNullable<Required<Mutation>> | false;
|
|
1304
1304
|
};
|
|
1305
|
-
type PluginVueQuery = PluginFactoryOptions<'plugin-vue-query', Options
|
|
1305
|
+
type PluginVueQuery = PluginFactoryOptions<'plugin-vue-query', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1306
1306
|
//#endregion
|
|
1307
|
-
export { ReactGenerator as a, Operation$1 as c, Transformer as i, Options
|
|
1308
|
-
//# sourceMappingURL=types-
|
|
1307
|
+
export { ReactGenerator as a, Operation$1 as c, Transformer as i, Options as n, OperationSchemas as o, PluginVueQuery as r, UserPluginWithLifeCycle as s, Infinite as t };
|
|
1308
|
+
//# sourceMappingURL=types-Ds-oDlyr.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-vue-query",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.1",
|
|
4
4
|
"description": "Vue Query hooks generator plugin for Kubb, creating type-safe API client hooks from OpenAPI specifications for Vue.js applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue-query",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"type": "module",
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
31
|
-
"
|
|
32
|
-
"
|
|
31
|
+
"require": "./dist/index.cjs",
|
|
32
|
+
"import": "./dist/index.js"
|
|
33
33
|
},
|
|
34
34
|
"./components": {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
35
|
+
"require": "./dist/components.cjs",
|
|
36
|
+
"import": "./dist/components.js"
|
|
37
37
|
},
|
|
38
38
|
"./generators": {
|
|
39
|
-
"
|
|
40
|
-
"
|
|
39
|
+
"require": "./dist/generators.cjs",
|
|
40
|
+
"import": "./dist/generators.js"
|
|
41
41
|
},
|
|
42
42
|
"./package.json": "./package.json"
|
|
43
43
|
},
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@kubb/react-fabric": "0.5.4",
|
|
72
72
|
"remeda": "^2.32.0",
|
|
73
|
-
"@kubb/core": "4.
|
|
74
|
-
"@kubb/oas": "4.
|
|
75
|
-
"@kubb/plugin-client": "4.
|
|
76
|
-
"@kubb/plugin-oas": "4.
|
|
77
|
-
"@kubb/plugin-ts": "4.
|
|
78
|
-
"@kubb/plugin-zod": "4.
|
|
73
|
+
"@kubb/core": "4.10.1",
|
|
74
|
+
"@kubb/oas": "4.10.1",
|
|
75
|
+
"@kubb/plugin-client": "4.10.1",
|
|
76
|
+
"@kubb/plugin-oas": "4.10.1",
|
|
77
|
+
"@kubb/plugin-ts": "4.10.1",
|
|
78
|
+
"@kubb/plugin-zod": "4.10.1"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@kubb/react-fabric": "0.5.4"
|