@kubb/plugin-vue-query 0.0.0-canary-20251222142412 → 0.0.0-canary-20251222160843
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.d.cts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{types-Dtc-zZlL.d.ts → types-BJVjgle5.d.ts} +22 -26
- package/dist/{types-DPCwuUx0.d.cts → types-CLlqMGkz.d.cts} +22 -26
- package/package.json +7 -7
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-CLlqMGkz.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-BJVjgle5.js";
|
|
2
2
|
import { FunctionParams } from "@kubb/react-fabric";
|
|
3
3
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
4
4
|
|
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-CLlqMGkz.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-BJVjgle5.js";
|
|
2
2
|
|
|
3
3
|
//#region src/generators/infiniteQueryGenerator.d.ts
|
|
4
4
|
declare const infiniteQueryGenerator: ReactGenerator<PluginVueQuery>;
|
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-CLlqMGkz.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-BJVjgle5.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginVueQueryName = "plugin-vue-query";
|
|
@@ -1,47 +1,43 @@
|
|
|
1
1
|
import { Fabric } from "@kubb/react-fabric";
|
|
2
|
-
import * as OasTypes from "oas/types";
|
|
3
|
-
import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
|
|
4
|
-
import { Operation, Operation as Operation$1 } from "oas/operation";
|
|
5
|
-
import { OpenAPIV3 } from "openapi-types";
|
|
6
2
|
import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
|
|
7
3
|
import BaseOas from "oas";
|
|
4
|
+
import { Operation } from "oas/operation";
|
|
5
|
+
import { DiscriminatorObject, HttpMethods, OASDocument, SchemaObject } from "oas/types";
|
|
8
6
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
9
7
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
10
8
|
|
|
11
9
|
//#region ../oas/src/types.d.ts
|
|
12
10
|
type contentType = 'application/json' | (string & {});
|
|
13
|
-
type SchemaObject$1 =
|
|
11
|
+
type SchemaObject$1 = SchemaObject & {
|
|
14
12
|
'x-nullable'?: boolean;
|
|
15
13
|
$ref?: string;
|
|
16
14
|
};
|
|
15
|
+
type HttpMethod = HttpMethods;
|
|
16
|
+
type Document = OASDocument;
|
|
17
|
+
type Operation$1 = Operation;
|
|
18
|
+
type DiscriminatorObject$1 = DiscriminatorObject;
|
|
17
19
|
//#endregion
|
|
18
20
|
//#region ../oas/src/Oas.d.ts
|
|
19
21
|
type Options$3 = {
|
|
20
22
|
contentType?: contentType;
|
|
21
23
|
discriminator?: 'strict' | 'inherit';
|
|
22
24
|
};
|
|
23
|
-
declare class Oas
|
|
25
|
+
declare class Oas extends BaseOas {
|
|
24
26
|
#private;
|
|
25
|
-
document:
|
|
26
|
-
constructor(
|
|
27
|
-
oas,
|
|
28
|
-
user
|
|
29
|
-
}: {
|
|
30
|
-
oas: TOAS | OASDocument | string;
|
|
31
|
-
user?: User;
|
|
32
|
-
});
|
|
27
|
+
document: Document;
|
|
28
|
+
constructor(document: Document);
|
|
33
29
|
setOptions(options: Options$3): void;
|
|
34
30
|
get options(): Options$3;
|
|
35
|
-
get($ref: string):
|
|
31
|
+
get<T = unknown>($ref: string): T | null;
|
|
36
32
|
getKey($ref: string): string | undefined;
|
|
37
33
|
set($ref: string, value: unknown): false | undefined;
|
|
38
|
-
getDiscriminator(schema:
|
|
39
|
-
dereferenceWithRef(schema?:
|
|
40
|
-
getResponseSchema(operation: Operation, statusCode: string | number): SchemaObject;
|
|
41
|
-
getRequestSchema(operation: Operation): SchemaObject | undefined;
|
|
42
|
-
getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
|
|
34
|
+
getDiscriminator(schema: SchemaObject$1 | null): DiscriminatorObject$1 | null;
|
|
35
|
+
dereferenceWithRef<T = unknown>(schema?: T): T;
|
|
36
|
+
getResponseSchema(operation: Operation$1, statusCode: string | number): SchemaObject$1;
|
|
37
|
+
getRequestSchema(operation: Operation$1): SchemaObject$1 | undefined;
|
|
38
|
+
getParametersSchema(operation: Operation$1, inKey: 'path' | 'query' | 'header'): SchemaObject$1 | null;
|
|
43
39
|
valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
|
|
44
|
-
flattenSchema(schema
|
|
40
|
+
flattenSchema(schema: SchemaObject$1 | null): SchemaObject$1 | null;
|
|
45
41
|
}
|
|
46
42
|
//#endregion
|
|
47
43
|
//#region ../core/src/BaseGenerator.d.ts
|
|
@@ -1095,13 +1091,13 @@ type SchemaGeneratorOptions = {
|
|
|
1095
1091
|
* TODO TODO add docs
|
|
1096
1092
|
* @beta
|
|
1097
1093
|
*/
|
|
1098
|
-
schema?: (schemaProps: SchemaProps$1, defaultSchemas: Schema[]) => Schema
|
|
1094
|
+
schema?: (schemaProps: SchemaProps$1, defaultSchemas: Schema[]) => Array<Schema> | undefined;
|
|
1099
1095
|
};
|
|
1100
1096
|
};
|
|
1101
1097
|
type SchemaProps$1 = {
|
|
1102
|
-
|
|
1103
|
-
name
|
|
1104
|
-
parentName
|
|
1098
|
+
schema: SchemaObject$1 | null;
|
|
1099
|
+
name: string | null;
|
|
1100
|
+
parentName: string | null;
|
|
1105
1101
|
};
|
|
1106
1102
|
declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
|
|
1107
1103
|
#private;
|
|
@@ -1461,4 +1457,4 @@ type ResolvedOptions = {
|
|
|
1461
1457
|
type PluginVueQuery = PluginFactoryOptions<'plugin-vue-query', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1462
1458
|
//#endregion
|
|
1463
1459
|
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 };
|
|
1464
|
-
//# sourceMappingURL=types-
|
|
1460
|
+
//# sourceMappingURL=types-BJVjgle5.d.ts.map
|
|
@@ -1,47 +1,43 @@
|
|
|
1
|
-
import * as OasTypes from "oas/types";
|
|
2
|
-
import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
|
|
3
|
-
import { Operation, Operation as Operation$1 } from "oas/operation";
|
|
4
|
-
import { OpenAPIV3 } from "openapi-types";
|
|
5
1
|
import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
|
|
6
2
|
import BaseOas from "oas";
|
|
3
|
+
import { Operation } from "oas/operation";
|
|
4
|
+
import { DiscriminatorObject, HttpMethods, OASDocument, SchemaObject } from "oas/types";
|
|
7
5
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
8
6
|
import { Fabric } from "@kubb/react-fabric";
|
|
9
7
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
10
8
|
|
|
11
9
|
//#region ../oas/src/types.d.ts
|
|
12
10
|
type contentType = 'application/json' | (string & {});
|
|
13
|
-
type SchemaObject$1 =
|
|
11
|
+
type SchemaObject$1 = SchemaObject & {
|
|
14
12
|
'x-nullable'?: boolean;
|
|
15
13
|
$ref?: string;
|
|
16
14
|
};
|
|
15
|
+
type HttpMethod = HttpMethods;
|
|
16
|
+
type Document = OASDocument;
|
|
17
|
+
type Operation$1 = Operation;
|
|
18
|
+
type DiscriminatorObject$1 = DiscriminatorObject;
|
|
17
19
|
//#endregion
|
|
18
20
|
//#region ../oas/src/Oas.d.ts
|
|
19
21
|
type Options$3 = {
|
|
20
22
|
contentType?: contentType;
|
|
21
23
|
discriminator?: 'strict' | 'inherit';
|
|
22
24
|
};
|
|
23
|
-
declare class Oas
|
|
25
|
+
declare class Oas extends BaseOas {
|
|
24
26
|
#private;
|
|
25
|
-
document:
|
|
26
|
-
constructor(
|
|
27
|
-
oas,
|
|
28
|
-
user
|
|
29
|
-
}: {
|
|
30
|
-
oas: TOAS | OASDocument | string;
|
|
31
|
-
user?: User;
|
|
32
|
-
});
|
|
27
|
+
document: Document;
|
|
28
|
+
constructor(document: Document);
|
|
33
29
|
setOptions(options: Options$3): void;
|
|
34
30
|
get options(): Options$3;
|
|
35
|
-
get($ref: string):
|
|
31
|
+
get<T = unknown>($ref: string): T | null;
|
|
36
32
|
getKey($ref: string): string | undefined;
|
|
37
33
|
set($ref: string, value: unknown): false | undefined;
|
|
38
|
-
getDiscriminator(schema:
|
|
39
|
-
dereferenceWithRef(schema?:
|
|
40
|
-
getResponseSchema(operation: Operation, statusCode: string | number): SchemaObject;
|
|
41
|
-
getRequestSchema(operation: Operation): SchemaObject | undefined;
|
|
42
|
-
getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
|
|
34
|
+
getDiscriminator(schema: SchemaObject$1 | null): DiscriminatorObject$1 | null;
|
|
35
|
+
dereferenceWithRef<T = unknown>(schema?: T): T;
|
|
36
|
+
getResponseSchema(operation: Operation$1, statusCode: string | number): SchemaObject$1;
|
|
37
|
+
getRequestSchema(operation: Operation$1): SchemaObject$1 | undefined;
|
|
38
|
+
getParametersSchema(operation: Operation$1, inKey: 'path' | 'query' | 'header'): SchemaObject$1 | null;
|
|
43
39
|
valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
|
|
44
|
-
flattenSchema(schema
|
|
40
|
+
flattenSchema(schema: SchemaObject$1 | null): SchemaObject$1 | null;
|
|
45
41
|
}
|
|
46
42
|
//#endregion
|
|
47
43
|
//#region ../core/src/BaseGenerator.d.ts
|
|
@@ -1095,13 +1091,13 @@ type SchemaGeneratorOptions = {
|
|
|
1095
1091
|
* TODO TODO add docs
|
|
1096
1092
|
* @beta
|
|
1097
1093
|
*/
|
|
1098
|
-
schema?: (schemaProps: SchemaProps$1, defaultSchemas: Schema[]) => Schema
|
|
1094
|
+
schema?: (schemaProps: SchemaProps$1, defaultSchemas: Schema[]) => Array<Schema> | undefined;
|
|
1099
1095
|
};
|
|
1100
1096
|
};
|
|
1101
1097
|
type SchemaProps$1 = {
|
|
1102
|
-
|
|
1103
|
-
name
|
|
1104
|
-
parentName
|
|
1098
|
+
schema: SchemaObject$1 | null;
|
|
1099
|
+
name: string | null;
|
|
1100
|
+
parentName: string | null;
|
|
1105
1101
|
};
|
|
1106
1102
|
declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
|
|
1107
1103
|
#private;
|
|
@@ -1461,4 +1457,4 @@ type ResolvedOptions = {
|
|
|
1461
1457
|
type PluginVueQuery = PluginFactoryOptions<'plugin-vue-query', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1462
1458
|
//#endregion
|
|
1463
1459
|
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 };
|
|
1464
|
-
//# sourceMappingURL=types-
|
|
1460
|
+
//# sourceMappingURL=types-CLlqMGkz.d.cts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-vue-query",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251222160843",
|
|
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",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@kubb/react-fabric": "0.7.4",
|
|
72
72
|
"remeda": "^2.32.0",
|
|
73
|
-
"@kubb/core": "0.0.0-canary-
|
|
74
|
-
"@kubb/oas": "0.0.0-canary-
|
|
75
|
-
"@kubb/plugin-client": "0.0.0-canary-
|
|
76
|
-
"@kubb/plugin-oas": "0.0.0-canary-
|
|
77
|
-
"@kubb/plugin-ts": "0.0.0-canary-
|
|
78
|
-
"@kubb/plugin-zod": "0.0.0-canary-
|
|
73
|
+
"@kubb/core": "0.0.0-canary-20251222160843",
|
|
74
|
+
"@kubb/oas": "0.0.0-canary-20251222160843",
|
|
75
|
+
"@kubb/plugin-client": "0.0.0-canary-20251222160843",
|
|
76
|
+
"@kubb/plugin-oas": "0.0.0-canary-20251222160843",
|
|
77
|
+
"@kubb/plugin-ts": "0.0.0-canary-20251222160843",
|
|
78
|
+
"@kubb/plugin-zod": "0.0.0-canary-20251222160843"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@kubb/react-fabric": "0.7.4"
|