@kubb/plugin-vue-query 4.18.5 → 4.19.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.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-CSXUFPjp.d.cts → types-Brm2QBx9.d.cts} +27 -4
- package/dist/{types-BSHLitv4.d.ts → types-CnJuOppG.d.ts} +27 -4
- package/package.json +7 -7
package/dist/components.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Operation, i as Transformer, l as __name, o as OperationSchemas, r as PluginVueQuery, t as Infinite } from "./types-
|
|
1
|
+
import { c as Operation, i as Transformer, l as __name, o as OperationSchemas, r as PluginVueQuery, t as Infinite } from "./types-Brm2QBx9.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,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk-eQyhnF5A.js";
|
|
2
|
-
import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginVueQuery, t as Infinite } from "./types-
|
|
2
|
+
import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginVueQuery, t as Infinite } from "./types-CnJuOppG.js";
|
|
3
3
|
import { FunctionParams } from "@kubb/react-fabric";
|
|
4
4
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
5
5
|
|
package/dist/generators.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ReactGenerator, l as __name, r as PluginVueQuery } from "./types-
|
|
1
|
+
import { a as ReactGenerator, l as __name, r as PluginVueQuery } from "./types-Brm2QBx9.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,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk-eQyhnF5A.js";
|
|
2
|
-
import { a as ReactGenerator, r as PluginVueQuery } from "./types-
|
|
2
|
+
import { a as ReactGenerator, r as PluginVueQuery } from "./types-CnJuOppG.js";
|
|
3
3
|
|
|
4
4
|
//#region src/generators/infiniteQueryGenerator.d.ts
|
|
5
5
|
declare const infiniteQueryGenerator: ReactGenerator<PluginVueQuery>;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as __name, n as Options, r as PluginVueQuery, s as UserPluginWithLifeCycle } from "./types-
|
|
1
|
+
import { l as __name, n as Options, r as PluginVueQuery, s as UserPluginWithLifeCycle } from "./types-Brm2QBx9.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,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk-eQyhnF5A.js";
|
|
2
|
-
import { n as Options, r as PluginVueQuery, s as UserPluginWithLifeCycle } from "./types-
|
|
2
|
+
import { n as Options, r as PluginVueQuery, s as UserPluginWithLifeCycle } from "./types-CnJuOppG.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin.d.ts
|
|
5
5
|
declare const pluginVueQueryName = "plugin-vue-query";
|
|
@@ -20,16 +20,21 @@ type Operation$1 = Operation;
|
|
|
20
20
|
type DiscriminatorObject$1 = DiscriminatorObject;
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../oas/src/Oas.d.ts
|
|
23
|
-
type
|
|
23
|
+
type OasOptions = {
|
|
24
24
|
contentType?: contentType;
|
|
25
25
|
discriminator?: 'strict' | 'inherit';
|
|
26
|
+
/**
|
|
27
|
+
* Resolve name collisions when schemas from different components share the same name (case-insensitive).
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
collisionDetection?: boolean;
|
|
26
31
|
};
|
|
27
32
|
declare class Oas extends BaseOas {
|
|
28
33
|
#private;
|
|
29
34
|
document: Document;
|
|
30
35
|
constructor(document: Document);
|
|
31
|
-
setOptions(options:
|
|
32
|
-
get options():
|
|
36
|
+
setOptions(options: OasOptions): void;
|
|
37
|
+
get options(): OasOptions;
|
|
33
38
|
get<T = unknown>($ref: string): T | null;
|
|
34
39
|
getKey($ref: string): string | undefined;
|
|
35
40
|
set($ref: string, value: unknown): false | undefined;
|
|
@@ -40,6 +45,18 @@ declare class Oas extends BaseOas {
|
|
|
40
45
|
getParametersSchema(operation: Operation$1, inKey: 'path' | 'query' | 'header'): SchemaObject$1 | null;
|
|
41
46
|
validate(): Promise<oas_normalize_lib_types0.ValidationResult>;
|
|
42
47
|
flattenSchema(schema: SchemaObject$1 | null): SchemaObject$1 | null;
|
|
48
|
+
/**
|
|
49
|
+
* Get schemas from OpenAPI components (schemas, responses, requestBodies).
|
|
50
|
+
* Returns schemas in dependency order along with name mapping for collision resolution.
|
|
51
|
+
*/
|
|
52
|
+
getSchemas(options?: {
|
|
53
|
+
contentType?: contentType;
|
|
54
|
+
includes?: Array<'schemas' | 'responses' | 'requestBodies'>;
|
|
55
|
+
collisionDetection?: boolean;
|
|
56
|
+
}): {
|
|
57
|
+
schemas: Record<string, SchemaObject$1>;
|
|
58
|
+
nameMapping: Map<string, string>;
|
|
59
|
+
};
|
|
43
60
|
}
|
|
44
61
|
//#endregion
|
|
45
62
|
//#region ../core/src/BaseGenerator.d.ts
|
|
@@ -1102,6 +1119,11 @@ type SchemaGeneratorOptions = {
|
|
|
1102
1119
|
emptySchemaType: 'any' | 'unknown' | 'void';
|
|
1103
1120
|
enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
|
|
1104
1121
|
enumSuffix?: string;
|
|
1122
|
+
/**
|
|
1123
|
+
* @deprecated Will be removed in v5. Use `collisionDetection: true` instead to prevent enum name collisions.
|
|
1124
|
+
* When `collisionDetection` is enabled, the rootName-based approach eliminates the need for numeric suffixes.
|
|
1125
|
+
* @internal
|
|
1126
|
+
*/
|
|
1105
1127
|
usedEnumNames?: Record<string, number>;
|
|
1106
1128
|
mapper?: Record<string, string>;
|
|
1107
1129
|
typed?: boolean;
|
|
@@ -1122,6 +1144,7 @@ type SchemaProps$1 = {
|
|
|
1122
1144
|
schema: SchemaObject$1 | null;
|
|
1123
1145
|
name: string | null;
|
|
1124
1146
|
parentName: string | null;
|
|
1147
|
+
rootName?: string | null;
|
|
1125
1148
|
};
|
|
1126
1149
|
declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
|
|
1127
1150
|
#private;
|
|
@@ -1484,4 +1507,4 @@ type ResolvedOptions = {
|
|
|
1484
1507
|
type PluginVueQuery = PluginFactoryOptions<'plugin-vue-query', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1485
1508
|
//#endregion
|
|
1486
1509
|
export { ReactGenerator as a, Operation$1 as c, Transformer as i, __name as l, Options as n, OperationSchemas as o, PluginVueQuery as r, UserPluginWithLifeCycle as s, Infinite as t };
|
|
1487
|
-
//# sourceMappingURL=types-
|
|
1510
|
+
//# sourceMappingURL=types-Brm2QBx9.d.cts.map
|
|
@@ -19,16 +19,21 @@ type Operation$1 = Operation;
|
|
|
19
19
|
type DiscriminatorObject$1 = DiscriminatorObject;
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region ../oas/src/Oas.d.ts
|
|
22
|
-
type
|
|
22
|
+
type OasOptions = {
|
|
23
23
|
contentType?: contentType;
|
|
24
24
|
discriminator?: 'strict' | 'inherit';
|
|
25
|
+
/**
|
|
26
|
+
* Resolve name collisions when schemas from different components share the same name (case-insensitive).
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
collisionDetection?: boolean;
|
|
25
30
|
};
|
|
26
31
|
declare class Oas extends BaseOas {
|
|
27
32
|
#private;
|
|
28
33
|
document: Document;
|
|
29
34
|
constructor(document: Document);
|
|
30
|
-
setOptions(options:
|
|
31
|
-
get options():
|
|
35
|
+
setOptions(options: OasOptions): void;
|
|
36
|
+
get options(): OasOptions;
|
|
32
37
|
get<T = unknown>($ref: string): T | null;
|
|
33
38
|
getKey($ref: string): string | undefined;
|
|
34
39
|
set($ref: string, value: unknown): false | undefined;
|
|
@@ -39,6 +44,18 @@ declare class Oas extends BaseOas {
|
|
|
39
44
|
getParametersSchema(operation: Operation$1, inKey: 'path' | 'query' | 'header'): SchemaObject$1 | null;
|
|
40
45
|
validate(): Promise<oas_normalize_lib_types0.ValidationResult>;
|
|
41
46
|
flattenSchema(schema: SchemaObject$1 | null): SchemaObject$1 | null;
|
|
47
|
+
/**
|
|
48
|
+
* Get schemas from OpenAPI components (schemas, responses, requestBodies).
|
|
49
|
+
* Returns schemas in dependency order along with name mapping for collision resolution.
|
|
50
|
+
*/
|
|
51
|
+
getSchemas(options?: {
|
|
52
|
+
contentType?: contentType;
|
|
53
|
+
includes?: Array<'schemas' | 'responses' | 'requestBodies'>;
|
|
54
|
+
collisionDetection?: boolean;
|
|
55
|
+
}): {
|
|
56
|
+
schemas: Record<string, SchemaObject$1>;
|
|
57
|
+
nameMapping: Map<string, string>;
|
|
58
|
+
};
|
|
42
59
|
}
|
|
43
60
|
//#endregion
|
|
44
61
|
//#region ../core/src/BaseGenerator.d.ts
|
|
@@ -1101,6 +1118,11 @@ type SchemaGeneratorOptions = {
|
|
|
1101
1118
|
emptySchemaType: 'any' | 'unknown' | 'void';
|
|
1102
1119
|
enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
|
|
1103
1120
|
enumSuffix?: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* @deprecated Will be removed in v5. Use `collisionDetection: true` instead to prevent enum name collisions.
|
|
1123
|
+
* When `collisionDetection` is enabled, the rootName-based approach eliminates the need for numeric suffixes.
|
|
1124
|
+
* @internal
|
|
1125
|
+
*/
|
|
1104
1126
|
usedEnumNames?: Record<string, number>;
|
|
1105
1127
|
mapper?: Record<string, string>;
|
|
1106
1128
|
typed?: boolean;
|
|
@@ -1121,6 +1143,7 @@ type SchemaProps$1 = {
|
|
|
1121
1143
|
schema: SchemaObject$1 | null;
|
|
1122
1144
|
name: string | null;
|
|
1123
1145
|
parentName: string | null;
|
|
1146
|
+
rootName?: string | null;
|
|
1124
1147
|
};
|
|
1125
1148
|
declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
|
|
1126
1149
|
#private;
|
|
@@ -1483,4 +1506,4 @@ type ResolvedOptions = {
|
|
|
1483
1506
|
type PluginVueQuery = PluginFactoryOptions<'plugin-vue-query', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1484
1507
|
//#endregion
|
|
1485
1508
|
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 };
|
|
1486
|
-
//# sourceMappingURL=types-
|
|
1509
|
+
//# sourceMappingURL=types-CnJuOppG.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.19.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",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@kubb/react-fabric": "0.12.4",
|
|
72
72
|
"remeda": "^2.33.4",
|
|
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.19.1",
|
|
74
|
+
"@kubb/oas": "4.19.1",
|
|
75
|
+
"@kubb/plugin-client": "4.19.1",
|
|
76
|
+
"@kubb/plugin-oas": "4.19.1",
|
|
77
|
+
"@kubb/plugin-ts": "4.19.1",
|
|
78
|
+
"@kubb/plugin-zod": "4.19.1"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@kubb/react-fabric": "0.12.4"
|