@kubb/plugin-oas 3.9.0 → 3.9.2
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/{OperationGenerator-ppGaBdAB.d.cts → OperationGenerator-DiF6WJNP.d.cts} +4 -0
- package/dist/{OperationGenerator-ppGaBdAB.d.ts → OperationGenerator-DiF6WJNP.d.ts} +4 -0
- package/dist/{Schema-Dtv0ZJI2.d.ts → Schema-BbIxCfn7.d.ts} +1 -1
- package/dist/{Schema-LQ3hNUNm.d.cts → Schema-Ds5f4y7m.d.cts} +1 -1
- package/dist/{chunk-3BPYMOH5.cjs → chunk-DEDONPUL.cjs} +2 -3
- package/dist/{chunk-3BPYMOH5.cjs.map → chunk-DEDONPUL.cjs.map} +1 -1
- package/dist/{chunk-ZES2YNPN.js → chunk-DN373TFU.js} +3 -3
- package/dist/{chunk-ZES2YNPN.js.map → chunk-DN373TFU.js.map} +1 -1
- package/dist/{chunk-YBVFBM5P.cjs → chunk-DUZZHEQI.cjs} +5 -5
- package/dist/{chunk-YBVFBM5P.cjs.map → chunk-DUZZHEQI.cjs.map} +1 -1
- package/dist/{chunk-XEMPWUAA.cjs → chunk-I2LBG5AS.cjs} +25 -35
- package/dist/chunk-I2LBG5AS.cjs.map +1 -0
- package/dist/{chunk-H2YYMZPN.js → chunk-QPFZUPQA.js} +4 -4
- package/dist/{chunk-H2YYMZPN.js.map → chunk-QPFZUPQA.js.map} +1 -1
- package/dist/{chunk-CJECBBBT.js → chunk-VJ6RX6RF.js} +26 -36
- package/dist/chunk-VJ6RX6RF.js.map +1 -0
- package/dist/components.d.cts +2 -2
- package/dist/components.d.ts +2 -2
- package/dist/generators.cjs +3 -3
- package/dist/generators.d.cts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/generators.js +2 -2
- package/dist/hooks.cjs +2 -2
- package/dist/hooks.d.cts +2 -2
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +1 -1
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/utils.cjs +7 -11
- package/dist/utils.d.cts +2 -11
- package/dist/utils.d.ts +2 -11
- package/dist/utils.js +1 -1
- package/package.json +9 -9
- package/src/SchemaGenerator.ts +24 -44
- package/src/SchemaMapper.ts +4 -0
- package/src/utils/index.ts +1 -1
- package/dist/chunk-CJECBBBT.js.map +0 -1
- package/dist/chunk-XEMPWUAA.cjs.map +0 -1
|
@@ -2,7 +2,7 @@ import { getSchemaFactory, getSchemas } from './chunk-3Y4QGY6D.js';
|
|
|
2
2
|
import { BaseGenerator } from '@kubb/core';
|
|
3
3
|
import transformers, { pascalCase } from '@kubb/core/transformers';
|
|
4
4
|
import { getUniqueName } from '@kubb/core/utils';
|
|
5
|
-
import { isReference } from '@kubb/oas';
|
|
5
|
+
import { isNullable, isReference } from '@kubb/oas';
|
|
6
6
|
import { uniqueWith, isDeepEqual, isNumber } from 'remeda';
|
|
7
7
|
|
|
8
8
|
// src/SchemaMapper.ts
|
|
@@ -85,36 +85,31 @@ var SchemaGenerator = class _SchemaGenerator extends BaseGenerator {
|
|
|
85
85
|
if (schema.keyword === keyword) {
|
|
86
86
|
foundItems.push(schema);
|
|
87
87
|
}
|
|
88
|
-
if (schema
|
|
89
|
-
|
|
90
|
-
Object.values(subItem.args?.properties || {}).forEach((entrySchema) => {
|
|
88
|
+
if (isKeyword(schema, schemaKeywords.object)) {
|
|
89
|
+
Object.values(schema.args?.properties || {}).forEach((entrySchema) => {
|
|
91
90
|
foundItems.push(..._SchemaGenerator.deepSearch(entrySchema, keyword));
|
|
92
91
|
});
|
|
93
|
-
Object.values(
|
|
92
|
+
Object.values(schema.args?.additionalProperties || {}).forEach((entrySchema) => {
|
|
94
93
|
foundItems.push(..._SchemaGenerator.deepSearch([entrySchema], keyword));
|
|
95
94
|
});
|
|
96
95
|
}
|
|
97
|
-
if (schema
|
|
98
|
-
|
|
99
|
-
subItem.args.items.forEach((entrySchema) => {
|
|
96
|
+
if (isKeyword(schema, schemaKeywords.array)) {
|
|
97
|
+
schema.args.items.forEach((entrySchema) => {
|
|
100
98
|
foundItems.push(..._SchemaGenerator.deepSearch([entrySchema], keyword));
|
|
101
99
|
});
|
|
102
100
|
}
|
|
103
|
-
if (schema
|
|
104
|
-
|
|
105
|
-
subItem.args.forEach((entrySchema) => {
|
|
101
|
+
if (isKeyword(schema, schemaKeywords.and)) {
|
|
102
|
+
schema.args.forEach((entrySchema) => {
|
|
106
103
|
foundItems.push(..._SchemaGenerator.deepSearch([entrySchema], keyword));
|
|
107
104
|
});
|
|
108
105
|
}
|
|
109
|
-
if (schema
|
|
110
|
-
|
|
111
|
-
subItem.args.items.forEach((entrySchema) => {
|
|
106
|
+
if (isKeyword(schema, schemaKeywords.tuple)) {
|
|
107
|
+
schema.args.items.forEach((entrySchema) => {
|
|
112
108
|
foundItems.push(..._SchemaGenerator.deepSearch([entrySchema], keyword));
|
|
113
109
|
});
|
|
114
110
|
}
|
|
115
|
-
if (schema
|
|
116
|
-
|
|
117
|
-
subItem.args.forEach((entrySchema) => {
|
|
111
|
+
if (isKeyword(schema, schemaKeywords.union)) {
|
|
112
|
+
schema.args.forEach((entrySchema) => {
|
|
118
113
|
foundItems.push(..._SchemaGenerator.deepSearch([entrySchema], keyword));
|
|
119
114
|
});
|
|
120
115
|
}
|
|
@@ -127,14 +122,13 @@ var SchemaGenerator = class _SchemaGenerator extends BaseGenerator {
|
|
|
127
122
|
if (!foundItem && schema.keyword === keyword) {
|
|
128
123
|
foundItem = schema;
|
|
129
124
|
}
|
|
130
|
-
if (schema
|
|
131
|
-
|
|
132
|
-
Object.values(subItem.args?.properties || {}).forEach((entrySchema) => {
|
|
125
|
+
if (isKeyword(schema, schemaKeywords.object)) {
|
|
126
|
+
Object.values(schema.args?.properties || {}).forEach((entrySchema) => {
|
|
133
127
|
if (!foundItem) {
|
|
134
128
|
foundItem = _SchemaGenerator.find(entrySchema, keyword);
|
|
135
129
|
}
|
|
136
130
|
});
|
|
137
|
-
Object.values(
|
|
131
|
+
Object.values(schema.args?.additionalProperties || {}).forEach((entrySchema) => {
|
|
138
132
|
if (!foundItem) {
|
|
139
133
|
foundItem = _SchemaGenerator.find([entrySchema], keyword);
|
|
140
134
|
}
|
|
@@ -149,33 +143,29 @@ var SchemaGenerator = class _SchemaGenerator extends BaseGenerator {
|
|
|
149
143
|
if (!foundItem && schema.keyword === keyword) {
|
|
150
144
|
foundItem = schema;
|
|
151
145
|
}
|
|
152
|
-
if (schema
|
|
153
|
-
|
|
154
|
-
subItem.args.items.forEach((entrySchema) => {
|
|
146
|
+
if (isKeyword(schema, schemaKeywords.array)) {
|
|
147
|
+
schema.args.items.forEach((entrySchema) => {
|
|
155
148
|
if (!foundItem) {
|
|
156
149
|
foundItem = _SchemaGenerator.find([entrySchema], keyword);
|
|
157
150
|
}
|
|
158
151
|
});
|
|
159
152
|
}
|
|
160
|
-
if (schema
|
|
161
|
-
|
|
162
|
-
subItem.args.forEach((entrySchema) => {
|
|
153
|
+
if (isKeyword(schema, schemaKeywords.and)) {
|
|
154
|
+
schema.args.forEach((entrySchema) => {
|
|
163
155
|
if (!foundItem) {
|
|
164
156
|
foundItem = _SchemaGenerator.find([entrySchema], keyword);
|
|
165
157
|
}
|
|
166
158
|
});
|
|
167
159
|
}
|
|
168
|
-
if (schema
|
|
169
|
-
|
|
170
|
-
subItem.args.items.forEach((entrySchema) => {
|
|
160
|
+
if (isKeyword(schema, schemaKeywords.tuple)) {
|
|
161
|
+
schema.args.items.forEach((entrySchema) => {
|
|
171
162
|
if (!foundItem) {
|
|
172
163
|
foundItem = _SchemaGenerator.find([entrySchema], keyword);
|
|
173
164
|
}
|
|
174
165
|
});
|
|
175
166
|
}
|
|
176
|
-
if (schema
|
|
177
|
-
|
|
178
|
-
subItem.args.forEach((entrySchema) => {
|
|
167
|
+
if (isKeyword(schema, schemaKeywords.union)) {
|
|
168
|
+
schema.args.forEach((entrySchema) => {
|
|
179
169
|
if (!foundItem) {
|
|
180
170
|
foundItem = _SchemaGenerator.find([entrySchema], keyword);
|
|
181
171
|
}
|
|
@@ -318,7 +308,7 @@ var SchemaGenerator = class _SchemaGenerator extends BaseGenerator {
|
|
|
318
308
|
];
|
|
319
309
|
const min = schema.minimum ?? schema.minLength ?? schema.minItems ?? void 0;
|
|
320
310
|
const max = schema.maximum ?? schema.maxLength ?? schema.maxItems ?? void 0;
|
|
321
|
-
const nullable = schema
|
|
311
|
+
const nullable = isNullable(schema);
|
|
322
312
|
const defaultNullAndNullable = schema.default === null && nullable;
|
|
323
313
|
if (schema.default !== void 0 && !defaultNullAndNullable && !Array.isArray(schema.default)) {
|
|
324
314
|
if (typeof schema.default === "string") {
|
|
@@ -771,5 +761,5 @@ var SchemaGenerator = class _SchemaGenerator extends BaseGenerator {
|
|
|
771
761
|
};
|
|
772
762
|
|
|
773
763
|
export { SchemaGenerator, isKeyword, schemaKeywords };
|
|
774
|
-
//# sourceMappingURL=chunk-
|
|
775
|
-
//# sourceMappingURL=chunk-
|
|
764
|
+
//# sourceMappingURL=chunk-VJ6RX6RF.js.map
|
|
765
|
+
//# sourceMappingURL=chunk-VJ6RX6RF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/SchemaMapper.ts","../src/SchemaGenerator.ts"],"names":["_schema","nullable","schema","name","min","max"],"mappings":";;;;;;;;AA4FO,IAAM,cAAiB,GAAA;AAAA,EAC5B,GAAK,EAAA,KAAA;AAAA,EACL,OAAS,EAAA,SAAA;AAAA,EACT,MAAQ,EAAA,QAAA;AAAA,EACR,OAAS,EAAA,SAAA;AAAA,EACT,MAAQ,EAAA,QAAA;AAAA,EACR,OAAS,EAAA,SAAA;AAAA,EACT,SAAW,EAAA,WAAA;AAAA,EACX,QAAU,EAAA,UAAA;AAAA,EACV,IAAM,EAAA,MAAA;AAAA,EACN,OAAS,EAAA,SAAA;AAAA,EACT,KAAO,EAAA,OAAA;AAAA,EACP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AA;AAAA,QAC3D,GAAG,IAAK,CAAA,OAAA;AAAA,QACR,GAAG;AAAA,OACJ,CAAA;AAED,MAAA,IAAI,gBAAkB,EAAA;AACpB,QAAA,GAAA,CAAI,KAAK,gBAAgB,CAAA;AAAA;AAG3B,MAAY,UAAA,EAAA,OAAA,CAAQ,CAAC,SAAc,KAAA;AACjC,QAAA,MAAM,OAAO,IAAK,CAAA,KAAA,CAAM,EAAE,MAAQ,EAAA,KAAA,EAAO,MAAY,CAAA;AAErD,QAAM,MAAA,OAAA,GAAU,UAAU,MAAS,GAAA;AAAA,UACjC,QAAU,EAAA,IAAA;AAAA,UACV,MAAQ,EAAA;AAAA,YACN,IAAA;AAAA,YACA,KAAA;AAAA,YACA;AAAA,WACF;AAAA,UACA,OAAS,EAAA;AAAA,YACP,GAAG,IAAK,CAAA,OAAA;AAAA,YACR,GAAG;AAAA;AACL,SACM,CAAA;AAER,QAAA,IAAI,OAAS,EAAA;AACX,UAAA,GAAA,CAAI,KAAK,OAAO,CAAA;AAAA;AAClB,OACD,CAAA;AAED,MAAO,OAAA,GAAA;AAAA,KACT,EAAG,EAAqC,CAAA;AAExC,IAAA,MAAM,KAAQ,GAAA,MAAM,OAAQ,CAAA,GAAA,CAAI,QAAQ,CAAA;AAGxC,IAAA,OAAO,KAAM,CAAA,IAAA,EAAO,CAAA,MAAA,CAAO,OAAO,CAAA;AAAA;AACpC;AAAA;AAAA;AAAA,EAKA,MAAM,MAAA,CAAO,KAAe,EAAA,OAAA,EAAuB,QAAmD,EAAA;AACpG,IAAA,OAAO,EAAC;AAAA;AAEZ","file":"chunk-VJ6RX6RF.js","sourcesContent":["import type * as KubbFile from '@kubb/fs/types'\n\nexport type SchemaKeywordMapper = {\n object: {\n keyword: 'object'\n args: {\n properties: { [x: string]: Schema[] }\n additionalProperties: Schema[]\n strict?: boolean\n }\n }\n url: { keyword: 'url' }\n readOnly: { keyword: 'readOnly' }\n writeOnly: { keyword: 'writeOnly' }\n uuid: { keyword: 'uuid' }\n email: { keyword: 'email' }\n firstName: { keyword: 'firstName' }\n lastName: { keyword: 'lastName' }\n phone: { keyword: 'phone' }\n password: { keyword: 'password' }\n date: { keyword: 'date'; args: { type?: 'date' | 'string' } }\n time: { keyword: 'time'; args: { type?: 'date' | 'string' } }\n datetime: { keyword: 'datetime'; args: { offset?: boolean; local?: boolean } }\n tuple: { keyword: 'tuple'; args: { items: Schema[]; min?: number; max?: number } }\n array: {\n keyword: 'array'\n args: { items: Schema[]; min?: number; max?: number; unique?: boolean }\n }\n enum: {\n keyword: 'enum'\n args: {\n name: string\n typeName: string\n asConst: boolean\n items: Array<{\n name: string | number\n format: 'string' | 'number' | 'boolean'\n value?: string | number | boolean\n }>\n }\n }\n and: { keyword: 'and'; args: Schema[] }\n const: {\n keyword: 'const'\n args: {\n name: string | number\n format: 'string' | 'number' | 'boolean'\n value?: string | number | boolean\n }\n }\n union: { keyword: 'union'; args: Schema[] }\n ref: {\n keyword: 'ref'\n args: {\n name: string\n /**\n * Full qualified path.\n */\n path: KubbFile.OptionalPath\n /**\n * When true `File.Import` will be used.\n * When false a reference will be used inside the current file.\n */\n isImportable: boolean\n }\n }\n matches: { keyword: 'matches'; args?: string }\n boolean: { keyword: 'boolean' }\n default: { keyword: 'default'; args: string | number | boolean }\n string: { keyword: 'string' }\n integer: { keyword: 'integer' }\n number: { keyword: 'number' }\n max: { keyword: 'max'; args: number }\n min: { keyword: 'min'; args: number }\n describe: { keyword: 'describe'; args: string }\n example: { keyword: 'example'; args: string }\n deprecated: { keyword: 'deprecated' }\n optional: { keyword: 'optional' }\n undefined: { keyword: 'undefined' }\n nullish: { keyword: 'nullish' }\n nullable: { keyword: 'nullable' }\n null: { keyword: 'null' }\n any: { keyword: 'any' }\n unknown: { keyword: 'unknown' }\n void: { keyword: 'void' }\n blob: { keyword: 'blob' }\n schema: { keyword: 'schema'; args: { type: 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object'; format?: string } }\n name: { keyword: 'name'; args: string }\n catchall: { keyword: 'catchall' }\n interface: { keyword: 'interface' }\n}\n\nexport const schemaKeywords = {\n any: 'any',\n unknown: 'unknown',\n number: 'number',\n integer: 'integer',\n string: 'string',\n boolean: 'boolean',\n undefined: 'undefined',\n nullable: 'nullable',\n null: 'null',\n nullish: 'nullish',\n array: 'array',\n tuple: 'tuple',\n enum: 'enum',\n union: 'union',\n datetime: 'datetime',\n date: 'date',\n email: 'email',\n uuid: 'uuid',\n url: 'url',\n void: 'void',\n /* intersection */\n default: 'default',\n const: 'const',\n and: 'and',\n describe: 'describe',\n min: 'min',\n max: 'max',\n optional: 'optional',\n readOnly: 'readOnly',\n writeOnly: 'writeOnly',\n\n // custom ones\n object: 'object',\n ref: 'ref',\n matches: 'matches',\n firstName: 'firstName',\n lastName: 'lastName',\n password: 'password',\n phone: 'phone',\n blob: 'blob',\n deprecated: 'deprecated',\n example: 'example',\n schema: 'schema',\n catchall: 'catchall',\n time: 'time',\n name: 'name',\n interface: 'interface',\n} satisfies {\n [K in keyof SchemaKeywordMapper]: SchemaKeywordMapper[K]['keyword']\n}\n\nexport type SchemaKeyword = keyof SchemaKeywordMapper\n\nexport type SchemaMapper<T = string | null | undefined> = {\n [K in keyof SchemaKeywordMapper]: (() => T | undefined) | undefined\n}\n\nexport type SchemaKeywordBase<T> = {\n keyword: SchemaKeyword\n args: T\n}\n\nexport type Schema = { keyword: string } | SchemaKeywordMapper[keyof SchemaKeywordMapper]\n\nexport type SchemaTree = {\n parent: Schema | undefined\n current: Schema\n siblings: Schema[]\n /**\n * this will be equal to the key of a property(object)\n */\n name?: string\n}\n\nexport function isKeyword<T extends Schema, K extends keyof SchemaKeywordMapper>(meta: T, keyword: K): meta is Extract<T, SchemaKeywordMapper[K]> {\n return meta.keyword === keyword\n}\n","import { BaseGenerator, type FileMetaBase } from '@kubb/core'\nimport transformers, { pascalCase } from '@kubb/core/transformers'\nimport { getUniqueName } from '@kubb/core/utils'\n\nimport { isNullable, isReference } from '@kubb/oas'\nimport { isDeepEqual, isNumber, uniqueWith } from 'remeda'\nimport { isKeyword, schemaKeywords } from './SchemaMapper.ts'\nimport { getSchemaFactory } from './utils/getSchemaFactory.ts'\nimport { getSchemas } from './utils/getSchemas.ts'\n\nimport type { Plugin, PluginFactoryOptions, PluginManager, ResolveNameParams } from '@kubb/core'\nimport type * as KubbFile from '@kubb/fs/types'\n\nimport type { Oas, OpenAPIV3, SchemaObject, contentType } from '@kubb/oas'\nimport type { Schema, SchemaKeywordMapper } from './SchemaMapper.ts'\nimport type { Generator } from './generator.tsx'\nimport type { OperationSchema, Override, Refs } from './types.ts'\n\nexport type GetSchemaGeneratorOptions<T extends SchemaGenerator<any, any, any>> = T extends SchemaGenerator<infer Options, any, any> ? Options : never\n\nexport type SchemaMethodResult<TFileMeta extends FileMetaBase> = Promise<KubbFile.File<TFileMeta> | Array<KubbFile.File<TFileMeta>> | null>\n\ntype Context<TOptions, TPluginOptions extends PluginFactoryOptions> = {\n oas: Oas\n pluginManager: PluginManager\n /**\n * Current plugin\n */\n plugin: Plugin<TPluginOptions>\n mode: KubbFile.Mode\n include?: Array<'schemas' | 'responses' | 'requestBodies'>\n override: Array<Override<TOptions>> | undefined\n contentType?: contentType\n output?: string\n}\n\nexport type SchemaGeneratorOptions = {\n dateType: false | 'string' | 'stringOffset' | 'stringLocal' | 'date'\n unknownType: 'any' | 'unknown' | 'void'\n enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal'\n enumSuffix?: string\n usedEnumNames?: Record<string, number>\n mapper?: Record<string, string>\n typed?: boolean\n transformers: {\n /**\n * Customize the names based on the type that is provided by the plugin.\n */\n name?: (name: ResolveNameParams['name'], type?: ResolveNameParams['type']) => string\n /**\n * Receive schema and name(propertName) and return FakerMeta array\n * TODO TODO add docs\n * @beta\n */\n schema?: (schemaProps: SchemaProps, defaultSchemas: Schema[]) => Schema[] | undefined\n }\n}\n\nexport type SchemaGeneratorBuildOptions = Omit<OperationSchema, 'name' | 'schema'>\n\ntype SchemaProps = {\n schema?: SchemaObject\n name?: string\n parentName?: string\n}\n\nexport class SchemaGenerator<\n TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions,\n TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions,\n TFileMeta extends FileMetaBase = FileMetaBase,\n> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {\n // Collect the types of all referenced schemas, so we can export them later\n refs: Refs = {}\n\n // Keep track of already used type aliases\n #usedAliasNames: Record<string, number> = {}\n\n /**\n * Creates a type node from a given schema.\n * Delegates to getBaseTypeFromSchema internally and\n * optionally adds a union with null.\n */\n parse(props: SchemaProps): Schema[] {\n const options = this.#getOptions(props)\n\n const defaultSchemas = this.#parseSchemaObject(props)\n const schemas = options.transformers?.schema?.(props, defaultSchemas) || defaultSchemas || []\n\n return uniqueWith(schemas, isDeepEqual)\n }\n\n deepSearch<T extends keyof SchemaKeywordMapper>(tree: Schema[] | undefined, keyword: T): Array<SchemaKeywordMapper[T]> {\n return SchemaGenerator.deepSearch<T>(tree, keyword)\n }\n\n find<T extends keyof SchemaKeywordMapper>(tree: Schema[] | undefined, keyword: T): SchemaKeywordMapper[T] | undefined {\n return SchemaGenerator.find<T>(tree, keyword)\n }\n\n static deepSearch<T extends keyof SchemaKeywordMapper>(tree: Schema[] | undefined, keyword: T): Array<SchemaKeywordMapper[T]> {\n const foundItems: SchemaKeywordMapper[T][] = []\n\n tree?.forEach((schema) => {\n if (schema.keyword === keyword) {\n foundItems.push(schema as SchemaKeywordMapper[T])\n }\n\n if (isKeyword(schema, schemaKeywords.object)) {\n Object.values(schema.args?.properties || {}).forEach((entrySchema) => {\n foundItems.push(...SchemaGenerator.deepSearch<T>(entrySchema, keyword))\n })\n\n Object.values(schema.args?.additionalProperties || {}).forEach((entrySchema) => {\n foundItems.push(...SchemaGenerator.deepSearch<T>([entrySchema], keyword))\n })\n }\n\n if (isKeyword(schema, schemaKeywords.array)) {\n schema.args.items.forEach((entrySchema) => {\n foundItems.push(...SchemaGenerator.deepSearch<T>([entrySchema], keyword))\n })\n }\n\n if (isKeyword(schema, schemaKeywords.and)) {\n schema.args.forEach((entrySchema) => {\n foundItems.push(...SchemaGenerator.deepSearch<T>([entrySchema], keyword))\n })\n }\n\n if (isKeyword(schema, schemaKeywords.tuple)) {\n schema.args.items.forEach((entrySchema) => {\n foundItems.push(...SchemaGenerator.deepSearch<T>([entrySchema], keyword))\n })\n }\n\n if (isKeyword(schema, schemaKeywords.union)) {\n schema.args.forEach((entrySchema) => {\n foundItems.push(...SchemaGenerator.deepSearch<T>([entrySchema], keyword))\n })\n }\n })\n\n return foundItems\n }\n\n static findInObject<T extends keyof SchemaKeywordMapper>(tree: Schema[] | undefined, keyword: T): SchemaKeywordMapper[T] | undefined {\n let foundItem: SchemaKeywordMapper[T] | undefined = undefined\n\n tree?.forEach((schema) => {\n if (!foundItem && schema.keyword === keyword) {\n foundItem = schema as SchemaKeywordMapper[T]\n }\n\n if (isKeyword(schema, schemaKeywords.object)) {\n Object.values(schema.args?.properties || {}).forEach((entrySchema) => {\n if (!foundItem) {\n foundItem = SchemaGenerator.find<T>(entrySchema, keyword)\n }\n })\n\n Object.values(schema.args?.additionalProperties || {}).forEach((entrySchema) => {\n if (!foundItem) {\n foundItem = SchemaGenerator.find<T>([entrySchema], keyword)\n }\n })\n }\n })\n\n return foundItem\n }\n\n static find<T extends keyof SchemaKeywordMapper>(tree: Schema[] | undefined, keyword: T): SchemaKeywordMapper[T] | undefined {\n let foundItem: SchemaKeywordMapper[T] | undefined = undefined\n\n tree?.forEach((schema) => {\n if (!foundItem && schema.keyword === keyword) {\n foundItem = schema as SchemaKeywordMapper[T]\n }\n\n if (isKeyword(schema, schemaKeywords.array)) {\n schema.args.items.forEach((entrySchema) => {\n if (!foundItem) {\n foundItem = SchemaGenerator.find<T>([entrySchema], keyword)\n }\n })\n }\n\n if (isKeyword(schema, schemaKeywords.and)) {\n schema.args.forEach((entrySchema) => {\n if (!foundItem) {\n foundItem = SchemaGenerator.find<T>([entrySchema], keyword)\n }\n })\n }\n\n if (isKeyword(schema, schemaKeywords.tuple)) {\n schema.args.items.forEach((entrySchema) => {\n if (!foundItem) {\n foundItem = SchemaGenerator.find<T>([entrySchema], keyword)\n }\n })\n }\n\n if (isKeyword(schema, schemaKeywords.union)) {\n schema.args.forEach((entrySchema) => {\n if (!foundItem) {\n foundItem = SchemaGenerator.find<T>([entrySchema], keyword)\n }\n })\n }\n })\n\n return foundItem\n }\n\n #getUsedEnumNames(props: SchemaProps) {\n const options = this.#getOptions(props)\n\n return options.usedEnumNames || {}\n }\n\n #getOptions({ name }: SchemaProps): Partial<TOptions> {\n const { override = [] } = this.context\n\n return {\n ...this.options,\n ...(override.find(({ pattern, type }) => {\n if (name && type === 'schemaName') {\n return !!name.match(pattern)\n }\n\n return false\n })?.options || {}),\n }\n }\n\n #getUnknownReturn(props: SchemaProps) {\n const options = this.#getOptions(props)\n\n if (options.unknownType === 'any') {\n return schemaKeywords.any\n }\n if (options.unknownType === 'void') {\n return schemaKeywords.void\n }\n\n return schemaKeywords.unknown\n }\n\n /**\n * Recursively creates a type literal with the given props.\n */\n #parseProperties({ schema, name }: SchemaProps): Schema[] {\n const properties = schema?.properties || {}\n const additionalProperties = schema?.additionalProperties\n const required = schema?.required\n\n const propertiesSchemas = Object.keys(properties)\n .map((propertyName) => {\n const validationFunctions: Schema[] = []\n const propertySchema = properties[propertyName] as SchemaObject\n\n const isRequired = Array.isArray(required) ? required?.includes(propertyName) : !!required\n const nullable = propertySchema.nullable ?? propertySchema['x-nullable'] ?? false\n\n validationFunctions.push(...this.parse({ schema: propertySchema, name: propertyName, parentName: name }))\n\n validationFunctions.push({\n keyword: schemaKeywords.name,\n args: propertyName,\n })\n\n if (!isRequired && nullable) {\n validationFunctions.push({ keyword: schemaKeywords.nullish })\n } else if (!isRequired) {\n validationFunctions.push({ keyword: schemaKeywords.optional })\n }\n\n return {\n [propertyName]: validationFunctions,\n }\n })\n .reduce((acc, curr) => ({ ...acc, ...curr }), {})\n let additionalPropertiesSchemas: Schema[] = []\n\n if (additionalProperties) {\n additionalPropertiesSchemas =\n additionalProperties === true || !Object.keys(additionalProperties).length\n ? [{ keyword: this.#getUnknownReturn({ schema, name }) }]\n : this.parse({ schema: additionalProperties as SchemaObject, parentName: name })\n }\n\n return [\n {\n keyword: schemaKeywords.object,\n args: {\n properties: propertiesSchemas,\n additionalProperties: additionalPropertiesSchemas,\n },\n },\n ]\n }\n\n /**\n * Create a type alias for the schema referenced by the given ReferenceObject\n */\n #getRefAlias(obj: OpenAPIV3.ReferenceObject): Schema[] {\n const { $ref } = obj\n let ref = this.refs[$ref]\n\n const originalName = getUniqueName($ref.replace(/.+\\//, ''), this.#usedAliasNames)\n const propertyName = this.context.pluginManager.resolveName({\n name: originalName,\n pluginKey: this.context.plugin.key,\n type: 'function',\n })\n\n if (ref) {\n return [\n {\n keyword: schemaKeywords.ref,\n args: { name: ref.propertyName, path: ref.path, isImportable: !!this.context.oas.get($ref) },\n },\n ]\n }\n\n const fileName = this.context.pluginManager.resolveName({\n name: originalName,\n pluginKey: this.context.plugin.key,\n type: 'file',\n })\n const file = this.context.pluginManager.getFile({\n name: fileName,\n pluginKey: this.context.plugin.key,\n extname: '.ts',\n })\n\n ref = this.refs[$ref] = {\n propertyName,\n originalName,\n path: file.path,\n }\n\n return [\n {\n keyword: schemaKeywords.ref,\n args: { name: ref.propertyName, path: ref?.path, isImportable: !!this.context.oas.get($ref) },\n },\n ]\n }\n\n #getParsedSchemaObject(schema?: SchemaObject) {\n const parsedSchema = getSchemaFactory(this.context.oas)(schema)\n return parsedSchema\n }\n\n /**\n * This is the very core of the OpenAPI to TS conversion - it takes a\n * schema and returns the appropriate type.\n */\n #parseSchemaObject({ schema: _schema, name, parentName }: SchemaProps): Schema[] {\n const options = this.#getOptions({ schema: _schema, name })\n const unknownReturn = this.#getUnknownReturn({ schema: _schema, name })\n const { schema, version } = this.#getParsedSchemaObject(_schema)\n if (!schema) {\n return [{ keyword: unknownReturn }]\n }\n\n const baseItems: Schema[] = [\n {\n keyword: schemaKeywords.schema,\n args: {\n type: schema.type as any,\n format: schema.format,\n },\n },\n ]\n const min = schema.minimum ?? schema.minLength ?? schema.minItems ?? undefined\n const max = schema.maximum ?? schema.maxLength ?? schema.maxItems ?? undefined\n const nullable = isNullable(schema)\n const defaultNullAndNullable = schema.default === null && nullable\n\n if (schema.default !== undefined && !defaultNullAndNullable && !Array.isArray(schema.default)) {\n if (typeof schema.default === 'string') {\n baseItems.push({\n keyword: schemaKeywords.default,\n args: transformers.stringify(schema.default),\n })\n } else if (typeof schema.default === 'boolean') {\n baseItems.push({\n keyword: schemaKeywords.default,\n args: schema.default ?? false,\n })\n } else {\n baseItems.push({\n keyword: schemaKeywords.default,\n args: schema.default,\n })\n }\n }\n\n if (schema.deprecated) {\n baseItems.push({\n keyword: schemaKeywords.deprecated,\n })\n }\n\n if (schema.description) {\n baseItems.push({\n keyword: schemaKeywords.describe,\n args: schema.description,\n })\n }\n\n if (max !== undefined) {\n baseItems.unshift({ keyword: schemaKeywords.max, args: max })\n }\n\n if (min !== undefined) {\n baseItems.unshift({ keyword: schemaKeywords.min, args: min })\n }\n\n if (nullable) {\n baseItems.push({ keyword: schemaKeywords.nullable })\n }\n\n if (schema.type && Array.isArray(schema.type)) {\n const [_schema, nullable] = schema.type\n\n if (nullable === 'null') {\n baseItems.push({ keyword: schemaKeywords.nullable })\n }\n }\n\n if (schema.readOnly) {\n baseItems.push({ keyword: schemaKeywords.readOnly })\n }\n\n if (schema.writeOnly) {\n baseItems.push({ keyword: schemaKeywords.writeOnly })\n }\n\n if (isReference(schema)) {\n return [\n ...this.#getRefAlias(schema),\n nullable && { keyword: schemaKeywords.nullable },\n schema.readOnly && { keyword: schemaKeywords.readOnly },\n schema.writeOnly && { keyword: schemaKeywords.writeOnly },\n {\n keyword: schemaKeywords.schema,\n args: {\n type: schema.type as any,\n format: schema.format,\n },\n },\n ].filter(Boolean)\n }\n\n if (schema.oneOf) {\n // union\n const schemaWithoutOneOf = { ...schema, oneOf: undefined }\n\n const union: Schema = {\n keyword: schemaKeywords.union,\n args: schema.oneOf\n .map((item) => {\n return item && this.parse({ schema: item as SchemaObject, name, parentName })[0]\n })\n .filter(Boolean)\n .filter((item) => {\n return item && item.keyword !== unknownReturn\n }),\n }\n if (schemaWithoutOneOf.properties) {\n const propertySchemas = this.parse({ schema: schemaWithoutOneOf, name, parentName })\n\n union.args = [\n ...union.args.map((arg) => {\n return {\n keyword: schemaKeywords.and,\n args: [arg, ...propertySchemas],\n }\n }),\n ]\n }\n\n return [union, ...baseItems]\n }\n\n if (schema.anyOf) {\n // union\n const schemaWithoutAnyOf = { ...schema, anyOf: undefined }\n\n const union: Schema = {\n keyword: schemaKeywords.union,\n args: schema.anyOf\n .map((item) => {\n return item && this.parse({ schema: item as SchemaObject, name, parentName })[0]\n })\n .filter(Boolean)\n .filter((item) => {\n return item && item.keyword !== unknownReturn\n })\n .map((item) => {\n if (isKeyword(item, schemaKeywords.object)) {\n return {\n ...item,\n args: {\n ...item.args,\n strict: true,\n },\n }\n }\n return item\n }),\n }\n if (schemaWithoutAnyOf.properties) {\n return [...this.parse({ schema: schemaWithoutAnyOf, name, parentName }), union, ...baseItems]\n }\n\n return [union, ...baseItems]\n }\n if (schema.allOf) {\n // intersection/add\n const schemaWithoutAllOf = { ...schema, allOf: undefined }\n\n const and: Schema = {\n keyword: schemaKeywords.and,\n args: schema.allOf\n .map((item) => {\n return item && this.parse({ schema: item as SchemaObject, name, parentName })[0]\n })\n .filter(Boolean)\n .filter((item) => {\n return item && item.keyword !== unknownReturn\n }),\n }\n\n if (schemaWithoutAllOf.required) {\n // TODO use of Required ts helper instead\n const schemas = schema.allOf\n .map((item) => {\n if (isReference(item)) {\n return this.context.oas.get(item.$ref) as SchemaObject\n }\n })\n .filter(Boolean)\n\n const items = schemaWithoutAllOf.required\n .filter((key) => {\n // filter out keys that are already part of the properties(reduce duplicated keys(https://github.com/kubb-labs/kubb/issues/1492)\n if (schemaWithoutAllOf.properties) {\n return !Object.keys(schemaWithoutAllOf.properties).includes(key)\n }\n\n // schema should include required fields when necessary https://github.com/kubb-labs/kubb/issues/1522\n return true\n })\n .map((key) => {\n const schema = schemas.find((item) => item.properties && Object.keys(item.properties).find((propertyKey) => propertyKey === key))\n\n if (schema?.properties?.[key]) {\n return {\n ...schema,\n properties: {\n [key]: schema.properties[key],\n },\n required: [key],\n }\n }\n })\n .filter(Boolean)\n\n and.args = [...(and.args || []), ...items.flatMap((item) => this.parse({ schema: item as SchemaObject, name, parentName }))]\n }\n\n if (schemaWithoutAllOf.properties) {\n and.args = [...(and.args || []), ...this.parse({ schema: schemaWithoutAllOf, name, parentName })]\n }\n\n return [and, ...baseItems]\n }\n\n if (schema.enum) {\n if (options.enumSuffix === '') {\n throw new Error('EnumSuffix set to an empty string does not work')\n }\n\n const enumName = getUniqueName(pascalCase([parentName, name, options.enumSuffix].join(' ')), this.#getUsedEnumNames({ schema, name }))\n const typeName = this.context.pluginManager.resolveName({\n name: enumName,\n pluginKey: this.context.plugin.key,\n type: 'type',\n })\n\n const nullableEnum = schema.enum.includes(null)\n if (nullableEnum) {\n baseItems.push({ keyword: schemaKeywords.nullable })\n }\n const filteredValues = schema.enum.filter((value) => value !== null)\n\n // x-enumNames has priority\n const extensionEnums = ['x-enumNames', 'x-enum-varnames']\n .filter((extensionKey) => extensionKey in schema)\n .map((extensionKey) => {\n return [\n {\n keyword: schemaKeywords.enum,\n args: {\n name,\n typeName,\n asConst: false,\n items: [...new Set(schema[extensionKey as keyof typeof schema] as string[])].map((name: string | number, index) => ({\n name: transformers.stringify(name),\n value: schema.enum?.[index] as string | number,\n format: isNumber(schema.enum?.[index]) ? 'number' : 'string',\n })),\n },\n },\n ...baseItems.filter(\n (item) => item.keyword !== schemaKeywords.min && item.keyword !== schemaKeywords.max && item.keyword !== schemaKeywords.matches,\n ),\n ]\n })\n\n if (schema.type === 'number' || schema.type === 'integer') {\n // we cannot use z.enum when enum type is number/integer\n const enumNames = extensionEnums[0]?.find((item) => isKeyword(item, schemaKeywords.enum)) as unknown as SchemaKeywordMapper['enum']\n return [\n {\n keyword: schemaKeywords.enum,\n args: {\n name: enumName,\n typeName,\n asConst: true,\n items: enumNames?.args?.items\n ? [...new Set(enumNames.args.items)].map(({ name, value }) => ({\n name,\n value,\n format: 'number',\n }))\n : [...new Set(filteredValues)].map((value: string) => {\n return {\n name: value,\n value,\n format: 'number',\n }\n }),\n },\n },\n ...baseItems.filter((item) => item.keyword !== schemaKeywords.min && item.keyword !== schemaKeywords.max && item.keyword !== schemaKeywords.matches),\n ]\n }\n\n if (schema.type === 'boolean') {\n // we cannot use z.enum when enum type is boolean\n const enumNames = extensionEnums[0]?.find((item) => isKeyword(item, schemaKeywords.enum)) as unknown as SchemaKeywordMapper['enum']\n return [\n {\n keyword: schemaKeywords.enum,\n args: {\n name: enumName,\n typeName,\n asConst: true,\n items: enumNames?.args?.items\n ? [...new Set(enumNames.args.items)].map(({ name, value }) => ({\n name,\n value,\n format: 'boolean',\n }))\n : [...new Set(filteredValues)].map((value: string) => {\n return {\n name: value,\n value,\n format: 'boolean',\n }\n }),\n },\n },\n ...baseItems.filter((item) => item.keyword !== schemaKeywords.matches),\n ]\n }\n\n if (extensionEnums.length > 0 && extensionEnums[0]) {\n return extensionEnums[0]\n }\n\n return [\n {\n keyword: schemaKeywords.enum,\n args: {\n name: enumName,\n typeName,\n asConst: false,\n items: [...new Set(filteredValues)].map((value: string) => ({\n name: transformers.stringify(value),\n value,\n format: isNumber(value) ? 'number' : 'string',\n })),\n },\n },\n ...baseItems.filter((item) => item.keyword !== schemaKeywords.min && item.keyword !== schemaKeywords.max && item.keyword !== schemaKeywords.matches),\n ]\n }\n\n if ('prefixItems' in schema) {\n const prefixItems = schema.prefixItems as SchemaObject[]\n const min = schema.minimum ?? schema.minLength ?? schema.minItems ?? undefined\n const max = schema.maximum ?? schema.maxLength ?? schema.maxItems ?? undefined\n\n return [\n {\n keyword: schemaKeywords.tuple,\n args: {\n min,\n max,\n items: prefixItems\n .map((item) => {\n return this.parse({ schema: item, name, parentName })[0]\n })\n .filter(Boolean),\n },\n },\n ...baseItems.filter((item) => item.keyword !== schemaKeywords.min && item.keyword !== schemaKeywords.max),\n ]\n }\n\n if (version === '3.1' && 'const' in schema) {\n // const keyword takes precendence over the actual type.\n if (schema['const']) {\n return [\n {\n keyword: schemaKeywords.const,\n args: {\n name: schema['const'],\n format: typeof schema['const'] === 'number' ? 'number' : 'string',\n value: schema['const'],\n },\n },\n ...baseItems,\n ]\n }\n return [{ keyword: schemaKeywords.null }]\n }\n\n /**\n * > Structural validation alone may be insufficient to allow an application to correctly utilize certain values. The \"format\"\n * > annotation keyword is defined to allow schema authors to convey semantic information for a fixed subset of values which are\n * > accurately described by authoritative resources, be they RFCs or other external specifications.\n *\n * In other words: format is more specific than type alone, hence it should override the type value, if possible.\n *\n * see also https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-validation-00#rfc.section.7\n */\n if (schema.format) {\n switch (schema.format) {\n case 'binary':\n baseItems.push({ keyword: schemaKeywords.blob })\n return baseItems\n case 'date-time':\n if (options.dateType) {\n if (options.dateType === 'date') {\n baseItems.unshift({ keyword: schemaKeywords.date, args: { type: 'date' } })\n\n return baseItems\n }\n\n if (options.dateType === 'stringOffset') {\n baseItems.unshift({ keyword: schemaKeywords.datetime, args: { offset: true } })\n return baseItems\n }\n\n if (options.dateType === 'stringLocal') {\n baseItems.unshift({ keyword: schemaKeywords.datetime, args: { local: true } })\n return baseItems\n }\n\n baseItems.unshift({ keyword: schemaKeywords.datetime, args: { offset: false } })\n\n return baseItems\n }\n break\n case 'date':\n if (options.dateType) {\n if (options.dateType === 'date') {\n baseItems.unshift({ keyword: schemaKeywords.date, args: { type: 'date' } })\n\n return baseItems\n }\n\n baseItems.unshift({ keyword: schemaKeywords.date, args: { type: 'string' } })\n\n return baseItems\n }\n break\n case 'time':\n if (options.dateType) {\n if (options.dateType === 'date') {\n baseItems.unshift({ keyword: schemaKeywords.time, args: { type: 'date' } })\n\n return baseItems\n }\n\n baseItems.unshift({ keyword: schemaKeywords.time, args: { type: 'string' } })\n\n return baseItems\n }\n break\n case 'uuid':\n baseItems.unshift({ keyword: schemaKeywords.uuid })\n return baseItems\n case 'email':\n case 'idn-email':\n baseItems.unshift({ keyword: schemaKeywords.email })\n return baseItems\n case 'uri':\n case 'ipv4':\n case 'ipv6':\n case 'uri-reference':\n case 'hostname':\n case 'idn-hostname':\n baseItems.unshift({ keyword: schemaKeywords.url })\n return baseItems\n // case 'duration':\n // case 'json-pointer':\n // case 'relative-json-pointer':\n default:\n // formats not yet implemented: ignore.\n break\n }\n }\n\n if (schema.pattern) {\n baseItems.unshift({\n keyword: schemaKeywords.matches,\n args: schema.pattern,\n })\n\n return baseItems\n }\n\n // type based logic\n if ('items' in schema || schema.type === ('array' as 'string')) {\n const min = schema.minimum ?? schema.minLength ?? schema.minItems ?? undefined\n const max = schema.maximum ?? schema.maxLength ?? schema.maxItems ?? undefined\n const items = this.parse({ schema: 'items' in schema ? (schema.items as SchemaObject) : [], name, parentName })\n const unique = !!schema.uniqueItems\n\n return [\n {\n keyword: schemaKeywords.array,\n args: {\n items,\n min,\n max,\n unique,\n },\n },\n ...baseItems.filter((item) => item.keyword !== schemaKeywords.min && item.keyword !== schemaKeywords.max),\n ]\n }\n\n if (schema.properties || schema.additionalProperties) {\n return [...this.#parseProperties({ schema, name }), ...baseItems]\n }\n\n if (schema.type) {\n if (Array.isArray(schema.type)) {\n // OPENAPI v3.1.0: https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0\n const [type] = schema.type as Array<OpenAPIV3.NonArraySchemaObjectType>\n\n return [\n ...this.parse({\n schema: {\n ...schema,\n type,\n },\n name,\n parentName,\n }),\n ...baseItems,\n ].filter(Boolean)\n }\n\n if (!['boolean', 'object', 'number', 'string', 'integer', 'null'].includes(schema.type)) {\n this.context.pluginManager.logger.emit('warning', `Schema type '${schema.type}' is not valid for schema ${parentName}.${name}`)\n }\n\n // 'string' | 'number' | 'integer' | 'boolean'\n return [{ keyword: schema.type }, ...baseItems]\n }\n\n return [{ keyword: unknownReturn }]\n }\n\n async build(...generators: Array<Generator<TPluginOptions>>): Promise<Array<KubbFile.File<TFileMeta>>> {\n const { oas, contentType, include } = this.context\n\n oas.resolveDiscriminators()\n\n const schemas = getSchemas({ oas, contentType, includes: include })\n\n const promises = Object.entries(schemas).reduce((acc, [name, value]) => {\n if (!value) {\n return acc\n }\n\n const options = this.#getOptions({ name })\n const promiseOperation = this.schema.call(this, name, value, {\n ...this.options,\n ...options,\n })\n\n if (promiseOperation) {\n acc.push(promiseOperation)\n }\n\n generators?.forEach((generator) => {\n const tree = this.parse({ schema: value, name: name })\n\n const promise = generator.schema?.({\n instance: this,\n schema: {\n name,\n value,\n tree,\n },\n options: {\n ...this.options,\n ...options,\n },\n } as any) as Promise<Array<KubbFile.File<TFileMeta>>>\n\n if (promise) {\n acc.push(promise)\n }\n })\n\n return acc\n }, [] as SchemaMethodResult<TFileMeta>[])\n\n const files = await Promise.all(promises)\n\n // using .flat because schemaGenerator[method] can return an array of files or just one file\n return files.flat().filter(Boolean)\n }\n\n /**\n * Schema\n */\n async schema(_name: string, _object: SchemaObject, _options: TOptions): SchemaMethodResult<TFileMeta> {\n return []\n }\n}\n"]}
|
package/dist/components.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as Schema } from './Schema-
|
|
1
|
+
import { S as Schema } from './Schema-Ds5f4y7m.cjs';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { Operation as Operation$1, Oas as Oas$1 } from '@kubb/oas';
|
|
4
4
|
import { KubbNode } from '@kubb/react/types';
|
|
5
|
-
import { b as OperationGenerator } from './OperationGenerator-
|
|
5
|
+
import { b as OperationGenerator } from './OperationGenerator-DiF6WJNP.cjs';
|
|
6
6
|
import '@kubb/core';
|
|
7
7
|
import '@kubb/fs/types';
|
|
8
8
|
|
package/dist/components.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as Schema } from './Schema-
|
|
1
|
+
import { S as Schema } from './Schema-BbIxCfn7.js';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { Operation as Operation$1, Oas as Oas$1 } from '@kubb/oas';
|
|
4
4
|
import { KubbNode } from '@kubb/react/types';
|
|
5
|
-
import { b as OperationGenerator } from './OperationGenerator-
|
|
5
|
+
import { b as OperationGenerator } from './OperationGenerator-DiF6WJNP.js';
|
|
6
6
|
import '@kubb/core';
|
|
7
7
|
import '@kubb/fs/types';
|
|
8
8
|
|
package/dist/generators.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkDUZZHEQI_cjs = require('./chunk-DUZZHEQI.cjs');
|
|
4
|
+
require('./chunk-DEDONPUL.cjs');
|
|
5
5
|
require('./chunk-PADR76WZ.cjs');
|
|
6
6
|
require('./chunk-B7KP5ZFA.cjs');
|
|
7
7
|
require('./chunk-KXB5DUFD.cjs');
|
|
@@ -10,7 +10,7 @@ require('./chunk-KXB5DUFD.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "jsonGenerator", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkDUZZHEQI_cjs.jsonGenerator; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=generators.cjs.map
|
|
16
16
|
//# sourceMappingURL=generators.cjs.map
|
package/dist/generators.d.cts
CHANGED
package/dist/generators.d.ts
CHANGED
package/dist/generators.js
CHANGED
package/dist/hooks.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkI2LBG5AS_cjs = require('./chunk-I2LBG5AS.cjs');
|
|
4
4
|
require('./chunk-B7KP5ZFA.cjs');
|
|
5
5
|
var chunkKXB5DUFD_cjs = require('./chunk-KXB5DUFD.cjs');
|
|
6
6
|
var react = require('@kubb/react');
|
|
@@ -187,7 +187,7 @@ function useSchemaManager() {
|
|
|
187
187
|
};
|
|
188
188
|
};
|
|
189
189
|
const getImports = (tree) => {
|
|
190
|
-
const refs =
|
|
190
|
+
const refs = chunkI2LBG5AS_cjs.SchemaGenerator.deepSearch(tree, chunkI2LBG5AS_cjs.schemaKeywords.ref);
|
|
191
191
|
return refs?.map((item) => {
|
|
192
192
|
if (!item.args.path || !item.args.isImportable) {
|
|
193
193
|
return void 0;
|
package/dist/hooks.d.cts
CHANGED
|
@@ -2,8 +2,8 @@ import { Oas, Operation, HttpMethod } from '@kubb/oas';
|
|
|
2
2
|
import { Plugin, ResolveNameParams, FileMetaBase } from '@kubb/core';
|
|
3
3
|
import * as KubbFile from '@kubb/fs/types';
|
|
4
4
|
import { Mode } from '@kubb/fs/types';
|
|
5
|
-
import { w as OperationSchemas, f as Schema } from './OperationGenerator-
|
|
6
|
-
import { a as SchemaContextProps } from './Schema-
|
|
5
|
+
import { w as OperationSchemas, f as Schema } from './OperationGenerator-DiF6WJNP.cjs';
|
|
6
|
+
import { a as SchemaContextProps } from './Schema-Ds5f4y7m.cjs';
|
|
7
7
|
import '@kubb/react/types';
|
|
8
8
|
import 'react';
|
|
9
9
|
|
package/dist/hooks.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { Oas, Operation, HttpMethod } from '@kubb/oas';
|
|
|
2
2
|
import { Plugin, ResolveNameParams, FileMetaBase } from '@kubb/core';
|
|
3
3
|
import * as KubbFile from '@kubb/fs/types';
|
|
4
4
|
import { Mode } from '@kubb/fs/types';
|
|
5
|
-
import { w as OperationSchemas, f as Schema } from './OperationGenerator-
|
|
6
|
-
import { a as SchemaContextProps } from './Schema-
|
|
5
|
+
import { w as OperationSchemas, f as Schema } from './OperationGenerator-DiF6WJNP.js';
|
|
6
|
+
import { a as SchemaContextProps } from './Schema-BbIxCfn7.js';
|
|
7
7
|
import '@kubb/react/types';
|
|
8
8
|
import 'react';
|
|
9
9
|
|
package/dist/hooks.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SchemaGenerator, schemaKeywords } from './chunk-
|
|
1
|
+
import { SchemaGenerator, schemaKeywords } from './chunk-VJ6RX6RF.js';
|
|
2
2
|
import './chunk-3Y4QGY6D.js';
|
|
3
3
|
import { Oas, Operation, Schema } from './chunk-BAU7PO7T.js';
|
|
4
4
|
import { useContext, useApp } from '@kubb/react';
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkDUZZHEQI_cjs = require('./chunk-DUZZHEQI.cjs');
|
|
4
|
+
var chunkDEDONPUL_cjs = require('./chunk-DEDONPUL.cjs');
|
|
5
5
|
require('./chunk-PADR76WZ.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkI2LBG5AS_cjs = require('./chunk-I2LBG5AS.cjs');
|
|
7
7
|
require('./chunk-B7KP5ZFA.cjs');
|
|
8
8
|
require('./chunk-KXB5DUFD.cjs');
|
|
9
9
|
var core = require('@kubb/core');
|
|
@@ -273,14 +273,14 @@ var pluginOas = core.createPlugin((options) => {
|
|
|
273
273
|
},
|
|
274
274
|
group,
|
|
275
275
|
validate = true,
|
|
276
|
-
generators = [
|
|
276
|
+
generators = [chunkDUZZHEQI_cjs.jsonGenerator],
|
|
277
277
|
serverIndex,
|
|
278
278
|
contentType,
|
|
279
279
|
oasClass
|
|
280
280
|
} = options;
|
|
281
281
|
const getOas = async ({ config, logger }) => {
|
|
282
282
|
try {
|
|
283
|
-
const oas = await
|
|
283
|
+
const oas = await chunkDEDONPUL_cjs.parseFromConfig(config, oasClass);
|
|
284
284
|
if (validate) {
|
|
285
285
|
await oas.valdiate();
|
|
286
286
|
}
|
|
@@ -288,7 +288,7 @@ var pluginOas = core.createPlugin((options) => {
|
|
|
288
288
|
} catch (e) {
|
|
289
289
|
const error = e;
|
|
290
290
|
logger.emit("warning", error?.message);
|
|
291
|
-
return
|
|
291
|
+
return chunkDEDONPUL_cjs.parseFromConfig(config, oasClass);
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
return {
|
|
@@ -345,7 +345,7 @@ var pluginOas = core.createPlugin((options) => {
|
|
|
345
345
|
logger: this.logger
|
|
346
346
|
});
|
|
347
347
|
await oas.dereference();
|
|
348
|
-
const schemaGenerator = new
|
|
348
|
+
const schemaGenerator = new chunkI2LBG5AS_cjs.SchemaGenerator(
|
|
349
349
|
{
|
|
350
350
|
unknownType: "unknown",
|
|
351
351
|
dateType: "date",
|
|
@@ -383,23 +383,23 @@ var pluginOas = core.createPlugin((options) => {
|
|
|
383
383
|
|
|
384
384
|
Object.defineProperty(exports, "createGenerator", {
|
|
385
385
|
enumerable: true,
|
|
386
|
-
get: function () { return
|
|
386
|
+
get: function () { return chunkDUZZHEQI_cjs.createGenerator; }
|
|
387
387
|
});
|
|
388
388
|
Object.defineProperty(exports, "createReactGenerator", {
|
|
389
389
|
enumerable: true,
|
|
390
|
-
get: function () { return
|
|
390
|
+
get: function () { return chunkDUZZHEQI_cjs.createReactGenerator; }
|
|
391
391
|
});
|
|
392
392
|
Object.defineProperty(exports, "SchemaGenerator", {
|
|
393
393
|
enumerable: true,
|
|
394
|
-
get: function () { return
|
|
394
|
+
get: function () { return chunkI2LBG5AS_cjs.SchemaGenerator; }
|
|
395
395
|
});
|
|
396
396
|
Object.defineProperty(exports, "isKeyword", {
|
|
397
397
|
enumerable: true,
|
|
398
|
-
get: function () { return
|
|
398
|
+
get: function () { return chunkI2LBG5AS_cjs.isKeyword; }
|
|
399
399
|
});
|
|
400
400
|
Object.defineProperty(exports, "schemaKeywords", {
|
|
401
401
|
enumerable: true,
|
|
402
|
-
get: function () { return
|
|
402
|
+
get: function () { return chunkI2LBG5AS_cjs.schemaKeywords; }
|
|
403
403
|
});
|
|
404
404
|
exports.OperationGenerator = OperationGenerator;
|
|
405
405
|
exports.pluginOas = pluginOas;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as Options, P as PluginOas } from './OperationGenerator-
|
|
2
|
-
export { A as API, E as Exclude, o as Generator, p as GeneratorOptions, G as GetSchemaGeneratorOptions, I as Include, b as OperationGenerator, a as OperationMethodResult, v as OperationSchema, w as OperationSchemas, x as OperationsByMethod, y as Override, R as ReactGeneratorOptions, r as Ref, t as Refs, q as ResolvePathOptions, u as Resolver, f as Schema, e as SchemaGenerator, S as SchemaGeneratorBuildOptions, c as SchemaGeneratorOptions, h as SchemaKeyword, i as SchemaKeywordBase, j as SchemaKeywordMapper, k as SchemaMapper, d as SchemaMethodResult, g as SchemaTree, m as createGenerator, n as createReactGenerator, l as isKeyword, s as schemaKeywords } from './OperationGenerator-
|
|
1
|
+
import { O as Options, P as PluginOas } from './OperationGenerator-DiF6WJNP.cjs';
|
|
2
|
+
export { A as API, E as Exclude, o as Generator, p as GeneratorOptions, G as GetSchemaGeneratorOptions, I as Include, b as OperationGenerator, a as OperationMethodResult, v as OperationSchema, w as OperationSchemas, x as OperationsByMethod, y as Override, R as ReactGeneratorOptions, r as Ref, t as Refs, q as ResolvePathOptions, u as Resolver, f as Schema, e as SchemaGenerator, S as SchemaGeneratorBuildOptions, c as SchemaGeneratorOptions, h as SchemaKeyword, i as SchemaKeywordBase, j as SchemaKeywordMapper, k as SchemaMapper, d as SchemaMethodResult, g as SchemaTree, m as createGenerator, n as createReactGenerator, l as isKeyword, s as schemaKeywords } from './OperationGenerator-DiF6WJNP.cjs';
|
|
3
3
|
import * as _kubb_core from '@kubb/core';
|
|
4
4
|
import '@kubb/fs/types';
|
|
5
5
|
import '@kubb/oas';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as Options, P as PluginOas } from './OperationGenerator-
|
|
2
|
-
export { A as API, E as Exclude, o as Generator, p as GeneratorOptions, G as GetSchemaGeneratorOptions, I as Include, b as OperationGenerator, a as OperationMethodResult, v as OperationSchema, w as OperationSchemas, x as OperationsByMethod, y as Override, R as ReactGeneratorOptions, r as Ref, t as Refs, q as ResolvePathOptions, u as Resolver, f as Schema, e as SchemaGenerator, S as SchemaGeneratorBuildOptions, c as SchemaGeneratorOptions, h as SchemaKeyword, i as SchemaKeywordBase, j as SchemaKeywordMapper, k as SchemaMapper, d as SchemaMethodResult, g as SchemaTree, m as createGenerator, n as createReactGenerator, l as isKeyword, s as schemaKeywords } from './OperationGenerator-
|
|
1
|
+
import { O as Options, P as PluginOas } from './OperationGenerator-DiF6WJNP.js';
|
|
2
|
+
export { A as API, E as Exclude, o as Generator, p as GeneratorOptions, G as GetSchemaGeneratorOptions, I as Include, b as OperationGenerator, a as OperationMethodResult, v as OperationSchema, w as OperationSchemas, x as OperationsByMethod, y as Override, R as ReactGeneratorOptions, r as Ref, t as Refs, q as ResolvePathOptions, u as Resolver, f as Schema, e as SchemaGenerator, S as SchemaGeneratorBuildOptions, c as SchemaGeneratorOptions, h as SchemaKeyword, i as SchemaKeywordBase, j as SchemaKeywordMapper, k as SchemaMapper, d as SchemaMethodResult, g as SchemaTree, m as createGenerator, n as createReactGenerator, l as isKeyword, s as schemaKeywords } from './OperationGenerator-DiF6WJNP.js';
|
|
3
3
|
import * as _kubb_core from '@kubb/core';
|
|
4
4
|
import '@kubb/fs/types';
|
|
5
5
|
import '@kubb/oas';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsonGenerator } from './chunk-
|
|
2
|
-
export { createGenerator, createReactGenerator } from './chunk-
|
|
3
|
-
import { parseFromConfig } from './chunk-
|
|
1
|
+
import { jsonGenerator } from './chunk-DN373TFU.js';
|
|
2
|
+
export { createGenerator, createReactGenerator } from './chunk-DN373TFU.js';
|
|
3
|
+
import { parseFromConfig } from './chunk-QPFZUPQA.js';
|
|
4
4
|
import './chunk-R47XMJ32.js';
|
|
5
|
-
import { SchemaGenerator } from './chunk-
|
|
6
|
-
export { SchemaGenerator, isKeyword, schemaKeywords } from './chunk-
|
|
5
|
+
import { SchemaGenerator } from './chunk-VJ6RX6RF.js';
|
|
6
|
+
export { SchemaGenerator, isKeyword, schemaKeywords } from './chunk-VJ6RX6RF.js';
|
|
7
7
|
import './chunk-3Y4QGY6D.js';
|
|
8
8
|
import './chunk-BAU7PO7T.js';
|
|
9
9
|
import { createPlugin, FileManager, BaseGenerator } from '@kubb/core';
|
package/dist/utils.cjs
CHANGED
|
@@ -1,37 +1,33 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDEDONPUL_cjs = require('./chunk-DEDONPUL.cjs');
|
|
4
4
|
var chunkB7KP5ZFA_cjs = require('./chunk-B7KP5ZFA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
Object.defineProperty(exports, "getASTParams", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunk3BPYMOH5_cjs.getASTParams; }
|
|
11
|
-
});
|
|
12
8
|
Object.defineProperty(exports, "getBanner", {
|
|
13
9
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkDEDONPUL_cjs.getBanner; }
|
|
15
11
|
});
|
|
16
12
|
Object.defineProperty(exports, "getComments", {
|
|
17
13
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkDEDONPUL_cjs.getComments; }
|
|
19
15
|
});
|
|
20
16
|
Object.defineProperty(exports, "getFooter", {
|
|
21
17
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkDEDONPUL_cjs.getFooter; }
|
|
23
19
|
});
|
|
24
20
|
Object.defineProperty(exports, "getPathParams", {
|
|
25
21
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkDEDONPUL_cjs.getPathParams; }
|
|
27
23
|
});
|
|
28
24
|
Object.defineProperty(exports, "isOptional", {
|
|
29
25
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkDEDONPUL_cjs.isOptional; }
|
|
31
27
|
});
|
|
32
28
|
Object.defineProperty(exports, "parseFromConfig", {
|
|
33
29
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkDEDONPUL_cjs.parseFromConfig; }
|
|
35
31
|
});
|
|
36
32
|
Object.defineProperty(exports, "getSchemaFactory", {
|
|
37
33
|
enumerable: true,
|
package/dist/utils.d.cts
CHANGED
|
@@ -2,21 +2,12 @@ import { Operation, Oas, SchemaObject, OpenAPIV3, OpenAPIV3_1, contentType, OasT
|
|
|
2
2
|
export { isOptional } from '@kubb/oas';
|
|
3
3
|
import { FunctionParamsAST } from '@kubb/core/utils';
|
|
4
4
|
import { Params } from '@kubb/react/types';
|
|
5
|
-
import { v as OperationSchema } from './OperationGenerator-
|
|
5
|
+
import { v as OperationSchema } from './OperationGenerator-DiF6WJNP.cjs';
|
|
6
6
|
import { Config, Output } from '@kubb/core';
|
|
7
7
|
import '@kubb/fs/types';
|
|
8
8
|
|
|
9
9
|
declare function getComments(operation: Operation): string[];
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @deprecated
|
|
14
|
-
* TODO move to operationManager hook
|
|
15
|
-
*/
|
|
16
|
-
declare function getASTParams(operationSchema: OperationSchema | undefined, { typed, override, }?: {
|
|
17
|
-
typed?: boolean;
|
|
18
|
-
override?: (data: FunctionParamsAST) => FunctionParamsAST;
|
|
19
|
-
}): FunctionParamsAST[];
|
|
20
11
|
declare function getPathParams(operationSchema: OperationSchema | undefined, options?: {
|
|
21
12
|
typed?: boolean;
|
|
22
13
|
casing?: 'camelcase';
|
|
@@ -64,4 +55,4 @@ type Props = {
|
|
|
64
55
|
};
|
|
65
56
|
declare function getFooter({ output, oas }: Props): string | undefined;
|
|
66
57
|
|
|
67
|
-
export {
|
|
58
|
+
export { getBanner, getComments, getFooter, getPathParams, getSchemaFactory, getSchemas, parseFromConfig };
|
package/dist/utils.d.ts
CHANGED
|
@@ -2,21 +2,12 @@ import { Operation, Oas, SchemaObject, OpenAPIV3, OpenAPIV3_1, contentType, OasT
|
|
|
2
2
|
export { isOptional } from '@kubb/oas';
|
|
3
3
|
import { FunctionParamsAST } from '@kubb/core/utils';
|
|
4
4
|
import { Params } from '@kubb/react/types';
|
|
5
|
-
import { v as OperationSchema } from './OperationGenerator-
|
|
5
|
+
import { v as OperationSchema } from './OperationGenerator-DiF6WJNP.js';
|
|
6
6
|
import { Config, Output } from '@kubb/core';
|
|
7
7
|
import '@kubb/fs/types';
|
|
8
8
|
|
|
9
9
|
declare function getComments(operation: Operation): string[];
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @deprecated
|
|
14
|
-
* TODO move to operationManager hook
|
|
15
|
-
*/
|
|
16
|
-
declare function getASTParams(operationSchema: OperationSchema | undefined, { typed, override, }?: {
|
|
17
|
-
typed?: boolean;
|
|
18
|
-
override?: (data: FunctionParamsAST) => FunctionParamsAST;
|
|
19
|
-
}): FunctionParamsAST[];
|
|
20
11
|
declare function getPathParams(operationSchema: OperationSchema | undefined, options?: {
|
|
21
12
|
typed?: boolean;
|
|
22
13
|
casing?: 'camelcase';
|
|
@@ -64,4 +55,4 @@ type Props = {
|
|
|
64
55
|
};
|
|
65
56
|
declare function getFooter({ output, oas }: Props): string | undefined;
|
|
66
57
|
|
|
67
|
-
export {
|
|
58
|
+
export { getBanner, getComments, getFooter, getPathParams, getSchemaFactory, getSchemas, parseFromConfig };
|