@kubb/plugin-oas 4.37.3 → 4.37.4
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.
|
@@ -396,7 +396,7 @@ type SchemaV2Props<TOptions extends PluginFactoryOptions> = {
|
|
|
396
396
|
node: SchemaNode;
|
|
397
397
|
};
|
|
398
398
|
type SchemaProps<TOptions extends PluginFactoryOptions, TVersion extends Version = '1'> = TVersion extends '2' ? SchemaV2Props<TOptions> : SchemaV1Props<TOptions>;
|
|
399
|
-
type Generator<TOptions extends PluginFactoryOptions, TVersion extends Version = Version> = CoreGenerator<TOptions, TVersion> | ReactGenerator<TOptions, TVersion
|
|
399
|
+
type Generator<TOptions extends PluginFactoryOptions, TVersion extends Version = Version> = TVersion extends Version ? CoreGenerator<TOptions, TVersion> | ReactGenerator<TOptions, TVersion> : never;
|
|
400
400
|
//#endregion
|
|
401
401
|
//#region src/generators/createGenerator.d.ts
|
|
402
402
|
type UserGenerator<TOptions extends PluginFactoryOptions, TVersion extends Version> = {
|
|
@@ -417,4 +417,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions, TVersion extends Versi
|
|
|
417
417
|
declare function createGenerator<TOptions extends PluginFactoryOptions, TVersion extends Version = '1'>(generator: UserGenerator<TOptions, TVersion>): CoreGenerator<TOptions, TVersion>;
|
|
418
418
|
//#endregion
|
|
419
419
|
export { ResolvePathOptions as C, Refs as S, OperationSchemas as _, ReactGenerator as a, PluginOas as b, SchemaGenerator as c, SchemaMethodResult as d, OperationGenerator as f, OperationSchema as g, Include as h, Version as i, SchemaGeneratorBuildOptions as l, Exclude as m, createGenerator as n, createReactGenerator as o, OperationMethodResult as p, Generator as r, GetSchemaGeneratorOptions as s, CoreGenerator as t, SchemaGeneratorOptions as u, Options as v, Resolver as w, Ref as x, Override as y };
|
|
420
|
-
//# sourceMappingURL=createGenerator-
|
|
420
|
+
//# sourceMappingURL=createGenerator-BZA5dzMY.d.ts.map
|
package/dist/generators.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
-
import { b as PluginOas, n as createGenerator, o as createReactGenerator, r as Generator, t as CoreGenerator } from "./createGenerator-
|
|
2
|
+
import { b as PluginOas, n as createGenerator, o as createReactGenerator, r as Generator, t as CoreGenerator } from "./createGenerator-BZA5dzMY.js";
|
|
3
3
|
//#region src/generators/jsonGenerator.d.ts
|
|
4
4
|
declare const jsonGenerator: CoreGenerator<PluginOas, "1">;
|
|
5
5
|
//#endregion
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
-
import { _ as OperationSchemas, f as OperationGenerator } from "./createGenerator-
|
|
2
|
+
import { _ as OperationSchemas, f as OperationGenerator } from "./createGenerator-BZA5dzMY.js";
|
|
3
3
|
import { Oas, Operation } from "@kubb/oas";
|
|
4
4
|
import { FileMetaBase, Plugin, PluginFactoryOptions, ResolveNameParams } from "@kubb/core";
|
|
5
5
|
import { KubbFile } from "@kubb/fabric-core/types";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
-
import { C as ResolvePathOptions, S as Refs, _ as OperationSchemas, a as ReactGenerator, b as PluginOas, c as SchemaGenerator, d as SchemaMethodResult, f as OperationGenerator, g as OperationSchema, h as Include, i as Version, l as SchemaGeneratorBuildOptions, m as Exclude, n as createGenerator$1, o as createReactGenerator$1, p as OperationMethodResult, r as Generator$1, s as GetSchemaGeneratorOptions, u as SchemaGeneratorOptions, v as Options, w as Resolver, x as Ref, y as Override } from "./createGenerator-
|
|
2
|
+
import { C as ResolvePathOptions, S as Refs, _ as OperationSchemas, a as ReactGenerator, b as PluginOas, c as SchemaGenerator, d as SchemaMethodResult, f as OperationGenerator, g as OperationSchema, h as Include, i as Version, l as SchemaGeneratorBuildOptions, m as Exclude, n as createGenerator$1, o as createReactGenerator$1, p as OperationMethodResult, r as Generator$1, s as GetSchemaGeneratorOptions, u as SchemaGeneratorOptions, v as Options, w as Resolver, x as Ref, y as Override } from "./createGenerator-BZA5dzMY.js";
|
|
3
3
|
import { a as SchemaMapper, c as schemaKeywords, i as SchemaKeywordMapper, n as SchemaKeyword, o as SchemaTree, r as SchemaKeywordBase, s as isKeyword, t as Schema } from "./SchemaMapper-SneuY1wg.js";
|
|
4
4
|
import { Operation, SchemaObject } from "@kubb/oas";
|
|
5
5
|
import * as _kubb_core0 from "@kubb/core";
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
-
import { g as OperationSchema } from "./createGenerator-
|
|
2
|
+
import { g as OperationSchema } from "./createGenerator-BZA5dzMY.js";
|
|
3
3
|
import { t as Schema } from "./SchemaMapper-SneuY1wg.js";
|
|
4
4
|
import { Oas, OasTypes, OpenAPIV3, OpenAPIV3_1, Operation, SchemaObject, contentType, isOptional } from "@kubb/oas";
|
|
5
5
|
import { Config, FunctionParamsAST, Output } from "@kubb/core";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-oas",
|
|
3
|
-
"version": "4.37.
|
|
3
|
+
"version": "4.37.4",
|
|
4
4
|
"description": "OpenAPI Specification (OAS) plugin for Kubb, providing core functionality for parsing and processing OpenAPI/Swagger schemas for code generation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openapi",
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"@kubb/fabric-core": "0.14.0",
|
|
85
85
|
"@kubb/react-fabric": "0.14.0",
|
|
86
86
|
"remeda": "^2.33.6",
|
|
87
|
-
"@kubb/core": "4.37.
|
|
88
|
-
"@kubb/oas": "4.37.
|
|
87
|
+
"@kubb/core": "4.37.4",
|
|
88
|
+
"@kubb/oas": "4.37.4"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"@kubb/fabric-core": "0.14.0",
|
package/src/generators/types.ts
CHANGED
|
@@ -64,6 +64,6 @@ export type SchemaProps<TOptions extends PluginFactoryOptions, TVersion extends
|
|
|
64
64
|
? SchemaV2Props<TOptions>
|
|
65
65
|
: SchemaV1Props<TOptions>
|
|
66
66
|
|
|
67
|
-
export type Generator<TOptions extends PluginFactoryOptions, TVersion extends Version = Version> =
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
export type Generator<TOptions extends PluginFactoryOptions, TVersion extends Version = Version> = TVersion extends Version
|
|
68
|
+
? CoreGenerator<TOptions, TVersion> | ReactGenerator<TOptions, TVersion>
|
|
69
|
+
: never
|