@kubb/plugin-ts 4.12.7 → 4.12.9
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-CezLj1dh.d.cts → types-Cd_tEnfY.d.cts} +11 -10
- package/dist/{types-CV7V6J7A.d.ts → types-D6lr3k_H.d.ts} +11 -10
- package/package.json +7 -7
- package/src/generators/__snapshots__/enumAllOf.ts +3 -0
package/dist/components.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as Schema, n as PluginTs, o as OasTypes, s as SchemaObject } from "./types-
|
|
1
|
+
import { i as Schema, n as PluginTs, o as OasTypes, s as SchemaObject } from "./types-Cd_tEnfY.cjs";
|
|
2
2
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/OasType.d.ts
|
package/dist/components.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as Schema, n as PluginTs, o as OasTypes, s as SchemaObject } from "./types-
|
|
1
|
+
import { i as Schema, n as PluginTs, o as OasTypes, s as SchemaObject } from "./types-D6lr3k_H.js";
|
|
2
2
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/OasType.d.ts
|
package/dist/generators.d.cts
CHANGED
package/dist/generators.d.ts
CHANGED
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
|
|
|
42
42
|
getRequestSchema(operation: Operation): SchemaObject | undefined;
|
|
43
43
|
getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
|
|
44
44
|
valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
|
|
45
|
+
flattenSchema(schema?: SchemaObject): SchemaObject | undefined;
|
|
45
46
|
}
|
|
46
47
|
//#endregion
|
|
47
48
|
//#region ../core/src/BaseGenerator.d.ts
|
|
@@ -170,21 +171,21 @@ interface KubbEvents {
|
|
|
170
171
|
*/
|
|
171
172
|
'hooks:end': [];
|
|
172
173
|
/**
|
|
173
|
-
* Emitted when a single hook execution starts.
|
|
174
|
-
*/
|
|
175
|
-
'hook:start': [command: string];
|
|
176
|
-
/**
|
|
177
|
-
* Emitted to execute a hook command (e.g., format or lint).
|
|
174
|
+
* Emitted when a single hook execution starts. (e.g., format or lint).
|
|
178
175
|
* The callback should be invoked when the command completes.
|
|
179
176
|
*/
|
|
180
|
-
'hook:
|
|
181
|
-
|
|
177
|
+
'hook:start': [{
|
|
178
|
+
id?: string;
|
|
179
|
+
command: string;
|
|
182
180
|
args?: readonly string[];
|
|
183
|
-
}
|
|
181
|
+
}];
|
|
184
182
|
/**
|
|
185
183
|
* Emitted when a single hook execution completes.
|
|
186
184
|
*/
|
|
187
|
-
'hook:end': [
|
|
185
|
+
'hook:end': [{
|
|
186
|
+
id?: string;
|
|
187
|
+
command: string;
|
|
188
|
+
}];
|
|
188
189
|
/**
|
|
189
190
|
* Emitted when a new version of Kubb is available.
|
|
190
191
|
*/
|
|
@@ -1275,4 +1276,4 @@ type ResolvedOptions = {
|
|
|
1275
1276
|
type PluginTs = PluginFactoryOptions<'plugin-ts', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1276
1277
|
//#endregion
|
|
1277
1278
|
export { UserPluginWithLifeCycle as a, Schema as i, PluginTs as n, OasTypes as o, ReactGenerator as r, SchemaObject$1 as s, Options as t };
|
|
1278
|
-
//# sourceMappingURL=types-
|
|
1279
|
+
//# sourceMappingURL=types-Cd_tEnfY.d.cts.map
|
|
@@ -42,6 +42,7 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
|
|
|
42
42
|
getRequestSchema(operation: Operation): SchemaObject | undefined;
|
|
43
43
|
getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
|
|
44
44
|
valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
|
|
45
|
+
flattenSchema(schema?: SchemaObject): SchemaObject | undefined;
|
|
45
46
|
}
|
|
46
47
|
//#endregion
|
|
47
48
|
//#region ../core/src/BaseGenerator.d.ts
|
|
@@ -170,21 +171,21 @@ interface KubbEvents {
|
|
|
170
171
|
*/
|
|
171
172
|
'hooks:end': [];
|
|
172
173
|
/**
|
|
173
|
-
* Emitted when a single hook execution starts.
|
|
174
|
-
*/
|
|
175
|
-
'hook:start': [command: string];
|
|
176
|
-
/**
|
|
177
|
-
* Emitted to execute a hook command (e.g., format or lint).
|
|
174
|
+
* Emitted when a single hook execution starts. (e.g., format or lint).
|
|
178
175
|
* The callback should be invoked when the command completes.
|
|
179
176
|
*/
|
|
180
|
-
'hook:
|
|
181
|
-
|
|
177
|
+
'hook:start': [{
|
|
178
|
+
id?: string;
|
|
179
|
+
command: string;
|
|
182
180
|
args?: readonly string[];
|
|
183
|
-
}
|
|
181
|
+
}];
|
|
184
182
|
/**
|
|
185
183
|
* Emitted when a single hook execution completes.
|
|
186
184
|
*/
|
|
187
|
-
'hook:end': [
|
|
185
|
+
'hook:end': [{
|
|
186
|
+
id?: string;
|
|
187
|
+
command: string;
|
|
188
|
+
}];
|
|
188
189
|
/**
|
|
189
190
|
* Emitted when a new version of Kubb is available.
|
|
190
191
|
*/
|
|
@@ -1275,4 +1276,4 @@ type ResolvedOptions = {
|
|
|
1275
1276
|
type PluginTs = PluginFactoryOptions<'plugin-ts', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1276
1277
|
//#endregion
|
|
1277
1278
|
export { UserPluginWithLifeCycle as a, Schema as i, PluginTs as n, OasTypes as o, ReactGenerator as r, SchemaObject$1 as s, Options as t };
|
|
1278
|
-
//# sourceMappingURL=types-
|
|
1279
|
+
//# sourceMappingURL=types-D6lr3k_H.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-ts",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.9",
|
|
4
4
|
"description": "TypeScript code generation plugin for Kubb, transforming OpenAPI schemas into TypeScript interfaces, types, and utility functions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -64,17 +64,17 @@
|
|
|
64
64
|
}
|
|
65
65
|
],
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@kubb/fabric-core": "0.7.
|
|
68
|
-
"@kubb/react-fabric": "0.7.
|
|
67
|
+
"@kubb/fabric-core": "0.7.4",
|
|
68
|
+
"@kubb/react-fabric": "0.7.4",
|
|
69
69
|
"natural-orderby": "^5.0.0",
|
|
70
70
|
"remeda": "^2.32.0",
|
|
71
71
|
"typescript": "5.9.3",
|
|
72
|
-
"@kubb/
|
|
73
|
-
"@kubb/
|
|
74
|
-
"@kubb/
|
|
72
|
+
"@kubb/core": "4.12.9",
|
|
73
|
+
"@kubb/oas": "4.12.9",
|
|
74
|
+
"@kubb/plugin-oas": "4.12.9"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@kubb/react-fabric": "0.7.
|
|
77
|
+
"@kubb/react-fabric": "0.7.4",
|
|
78
78
|
"typescript": ">=5.9.0"
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|