@kubb/plugin-faker 4.4.0 → 4.5.0
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-DdXRywj6.js → components-B6wjVu4Y.js} +32 -25
- package/dist/components-B6wjVu4Y.js.map +1 -0
- package/dist/{components-BtFAhtPK.cjs → components-Dq57kUQf.cjs} +32 -25
- package/dist/components-Dq57kUQf.cjs.map +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/components.js +1 -1
- package/dist/{fakerGenerator-6YTX8ENZ.cjs → fakerGenerator-CYRnwp6R.cjs} +40 -47
- package/dist/fakerGenerator-CYRnwp6R.cjs.map +1 -0
- package/dist/{fakerGenerator-D3zaPh1_.js → fakerGenerator-CfTiMdtr.js} +41 -48
- package/dist/fakerGenerator-CfTiMdtr.js.map +1 -0
- package/dist/generators.cjs +2 -2
- package/dist/generators.d.cts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/generators.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{types-C6bgZQkZ.d.cts → types-CEWRTyrN.d.ts} +182 -302
- package/dist/{types-Bh4LPXtV.d.ts → types-NHbH6Svj.d.cts} +182 -302
- package/package.json +16 -11
- package/src/components/Faker.tsx +1 -3
- package/src/generators/__snapshots__/enumNames.ts +1 -1
- package/src/generators/__snapshots__/enumVarNames.ts +1 -1
- package/src/generators/fakerGenerator.tsx +17 -18
- package/src/parser.ts +9 -13
- package/src/types.ts +2 -1
- package/dist/components-BtFAhtPK.cjs.map +0 -1
- package/dist/components-DdXRywj6.js.map +0 -1
- package/dist/fakerGenerator-6YTX8ENZ.cjs.map +0 -1
- package/dist/fakerGenerator-D3zaPh1_.js.map +0 -1
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { t as Faker } from "./components-
|
|
2
|
-
import { SchemaGenerator,
|
|
1
|
+
import { t as Faker } from "./components-B6wjVu4Y.js";
|
|
2
|
+
import { SchemaGenerator, schemaKeywords } from "@kubb/plugin-oas";
|
|
3
3
|
import { pluginTsName } from "@kubb/plugin-ts";
|
|
4
|
-
import { useMode,
|
|
5
|
-
import {
|
|
4
|
+
import { useMode, usePluginManager } from "@kubb/core/hooks";
|
|
5
|
+
import { createReactGenerator } from "@kubb/plugin-oas/generators";
|
|
6
6
|
import { useOas, useOperationManager, useSchemaManager } from "@kubb/plugin-oas/hooks";
|
|
7
7
|
import { getBanner, getFooter } from "@kubb/plugin-oas/utils";
|
|
8
|
-
import { File } from "@kubb/react-fabric";
|
|
8
|
+
import { File, Fragment } from "@kubb/react-fabric";
|
|
9
9
|
import { jsx, jsxs } from "@kubb/react-fabric/jsx-runtime";
|
|
10
10
|
|
|
11
11
|
//#region src/generators/fakerGenerator.tsx
|
|
12
12
|
const fakerGenerator = createReactGenerator({
|
|
13
13
|
name: "faker",
|
|
14
|
-
Operation({ operation,
|
|
15
|
-
const { dateParser, regexGenerator, seed, mapper } =
|
|
16
|
-
const plugin = usePlugin();
|
|
14
|
+
Operation({ operation, generator, plugin }) {
|
|
15
|
+
const { options, options: { dateParser, regexGenerator, seed, mapper } } = plugin;
|
|
17
16
|
const mode = useMode();
|
|
18
17
|
const pluginManager = usePluginManager();
|
|
19
18
|
const oas = useOas();
|
|
20
|
-
const { getSchemas, getFile, getGroup } = useOperationManager();
|
|
19
|
+
const { getSchemas, getFile, getGroup } = useOperationManager(generator);
|
|
21
20
|
const schemaManager = useSchemaManager();
|
|
22
21
|
const file = getFile(operation);
|
|
23
22
|
const schemas = getSchemas(operation);
|
|
24
23
|
const schemaGenerator = new SchemaGenerator(options, {
|
|
25
|
-
fabric:
|
|
24
|
+
fabric: generator.context.fabric,
|
|
26
25
|
oas,
|
|
27
26
|
plugin,
|
|
28
27
|
pluginManager,
|
|
@@ -37,7 +36,7 @@ const fakerGenerator = createReactGenerator({
|
|
|
37
36
|
schemas.request,
|
|
38
37
|
schemas.response
|
|
39
38
|
].flat().filter(Boolean);
|
|
40
|
-
const mapOperationSchema = ({ name, schema: schemaObject, description,...options$1 }
|
|
39
|
+
const mapOperationSchema = ({ name, schema: schemaObject, description,...options$1 }) => {
|
|
41
40
|
const tree = schemaGenerator.parse({
|
|
42
41
|
schemaObject,
|
|
43
42
|
name
|
|
@@ -59,39 +58,34 @@ const fakerGenerator = createReactGenerator({
|
|
|
59
58
|
})
|
|
60
59
|
};
|
|
61
60
|
const canOverride = tree.some(({ keyword }) => keyword === schemaKeywords.array || keyword === schemaKeywords.and || keyword === schemaKeywords.object || keyword === schemaKeywords.union || keyword === schemaKeywords.tuple);
|
|
62
|
-
return /* @__PURE__ */ jsxs(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
seed,
|
|
91
|
-
canOverride
|
|
92
|
-
})
|
|
93
|
-
]
|
|
94
|
-
}, i);
|
|
61
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
62
|
+
canOverride && /* @__PURE__ */ jsx(File.Import, {
|
|
63
|
+
isTypeOnly: true,
|
|
64
|
+
root: file.path,
|
|
65
|
+
path: type.file.path,
|
|
66
|
+
name: [type.name]
|
|
67
|
+
}),
|
|
68
|
+
imports.map((imp) => /* @__PURE__ */ jsx(File.Import, {
|
|
69
|
+
root: file.path,
|
|
70
|
+
path: imp.path,
|
|
71
|
+
name: imp.name
|
|
72
|
+
}, [
|
|
73
|
+
imp.path,
|
|
74
|
+
imp.name,
|
|
75
|
+
imp.isTypeOnly
|
|
76
|
+
].join("-"))),
|
|
77
|
+
/* @__PURE__ */ jsx(Faker, {
|
|
78
|
+
name: faker.name,
|
|
79
|
+
typeName: type.name,
|
|
80
|
+
description,
|
|
81
|
+
tree,
|
|
82
|
+
regexGenerator,
|
|
83
|
+
dateParser,
|
|
84
|
+
mapper,
|
|
85
|
+
seed,
|
|
86
|
+
canOverride
|
|
87
|
+
})
|
|
88
|
+
] });
|
|
95
89
|
};
|
|
96
90
|
return /* @__PURE__ */ jsxs(File, {
|
|
97
91
|
baseName: file.baseName,
|
|
@@ -123,10 +117,9 @@ const fakerGenerator = createReactGenerator({
|
|
|
123
117
|
]
|
|
124
118
|
});
|
|
125
119
|
},
|
|
126
|
-
Schema({ schema,
|
|
127
|
-
const { dateParser, regexGenerator, seed, mapper } = options;
|
|
120
|
+
Schema({ schema, plugin }) {
|
|
128
121
|
const { getName, getFile, getImports } = useSchemaManager();
|
|
129
|
-
const { options: { output } } =
|
|
122
|
+
const { options: { output, dateParser, regexGenerator, seed, mapper } } = plugin;
|
|
130
123
|
const pluginManager = usePluginManager();
|
|
131
124
|
const oas = useOas();
|
|
132
125
|
const imports = getImports(schema.tree);
|
|
@@ -201,4 +194,4 @@ const fakerGenerator = createReactGenerator({
|
|
|
201
194
|
|
|
202
195
|
//#endregion
|
|
203
196
|
export { fakerGenerator as t };
|
|
204
|
-
//# sourceMappingURL=fakerGenerator-
|
|
197
|
+
//# sourceMappingURL=fakerGenerator-CfTiMdtr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fakerGenerator-CfTiMdtr.js","names":["options"],"sources":["../src/generators/fakerGenerator.tsx"],"sourcesContent":["import { useMode, usePluginManager } from '@kubb/core/hooks'\nimport { type OperationSchema as OperationSchemaType, SchemaGenerator, schemaKeywords } from '@kubb/plugin-oas'\nimport { createReactGenerator } from '@kubb/plugin-oas/generators'\nimport { useOas, useOperationManager, useSchemaManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { File, Fragment } from '@kubb/react-fabric'\nimport { Faker } from '../components'\nimport type { PluginFaker } from '../types'\n\nexport const fakerGenerator = createReactGenerator<PluginFaker>({\n name: 'faker',\n Operation({ operation, generator, plugin }) {\n const {\n options,\n options: { dateParser, regexGenerator, seed, mapper },\n } = plugin\n const mode = useMode()\n const pluginManager = usePluginManager()\n\n const oas = useOas()\n const { getSchemas, getFile, getGroup } = useOperationManager(generator)\n const schemaManager = useSchemaManager()\n\n const file = getFile(operation)\n const schemas = getSchemas(operation)\n const schemaGenerator = new SchemaGenerator(options, {\n fabric: generator.context.fabric,\n oas,\n plugin,\n pluginManager,\n mode,\n override: options.override,\n })\n\n const operationSchemas = [schemas.pathParams, schemas.queryParams, schemas.headerParams, schemas.statusCodes, schemas.request, schemas.response]\n .flat()\n .filter(Boolean)\n\n const mapOperationSchema = ({ name, schema: schemaObject, description, ...options }: OperationSchemaType) => {\n const tree = schemaGenerator.parse({ schemaObject, name })\n const imports = schemaManager.getImports(tree)\n const group = options.operation ? getGroup(options.operation) : undefined\n\n const faker = {\n name: schemaManager.getName(name, { type: 'function' }),\n file: schemaManager.getFile(name),\n }\n\n const type = {\n name: schemaManager.getName(name, { type: 'type', pluginKey: [pluginTsName] }),\n file: schemaManager.getFile(options.operationName || name, { pluginKey: [pluginTsName], group }),\n }\n\n const canOverride = tree.some(\n ({ keyword }) =>\n keyword === schemaKeywords.array ||\n keyword === schemaKeywords.and ||\n keyword === schemaKeywords.object ||\n keyword === schemaKeywords.union ||\n keyword === schemaKeywords.tuple,\n )\n\n return (\n <Fragment>\n {canOverride && <File.Import isTypeOnly root={file.path} path={type.file.path} name={[type.name]} />}\n {imports.map((imp) => (\n <File.Import key={[imp.path, imp.name, imp.isTypeOnly].join('-')} root={file.path} path={imp.path} name={imp.name} />\n ))}\n <Faker\n name={faker.name}\n typeName={type.name}\n description={description}\n tree={tree}\n regexGenerator={regexGenerator}\n dateParser={dateParser}\n mapper={mapper}\n seed={seed}\n canOverride={canOverride}\n />\n </Fragment>\n )\n }\n\n return (\n <File\n baseName={file.baseName}\n path={file.path}\n meta={file.meta}\n banner={getBanner({ oas, output: plugin.options.output, config: pluginManager.config })}\n footer={getFooter({ oas, output: plugin.options.output })}\n >\n <File.Import name={['faker']} path=\"@faker-js/faker\" />\n {regexGenerator === 'randexp' && <File.Import name={'RandExp'} path={'randexp'} />}\n {dateParser !== 'faker' && <File.Import path={dateParser} name={dateParser} />}\n {operationSchemas.map(mapOperationSchema)}\n </File>\n )\n },\n Schema({ schema, plugin }) {\n const { getName, getFile, getImports } = useSchemaManager()\n const {\n options: { output, dateParser, regexGenerator, seed, mapper },\n } = plugin\n const pluginManager = usePluginManager()\n const oas = useOas()\n const imports = getImports(schema.tree)\n\n const faker = {\n name: getName(schema.name, { type: 'function' }),\n file: getFile(schema.name),\n }\n\n const type = {\n name: getName(schema.name, { type: 'type', pluginKey: [pluginTsName] }),\n file: getFile(schema.name, { pluginKey: [pluginTsName] }),\n }\n\n const canOverride = schema.tree.some(\n ({ keyword }) =>\n keyword === schemaKeywords.array ||\n keyword === schemaKeywords.and ||\n keyword === schemaKeywords.object ||\n keyword === schemaKeywords.union ||\n keyword === schemaKeywords.tuple ||\n keyword === schemaKeywords.string ||\n keyword === schemaKeywords.integer ||\n keyword === schemaKeywords.number,\n )\n\n return (\n <File\n baseName={faker.file.baseName}\n path={faker.file.path}\n meta={faker.file.meta}\n banner={getBanner({ oas, output, config: pluginManager.config })}\n footer={getFooter({ oas, output })}\n >\n <File.Import name={['faker']} path=\"@faker-js/faker\" />\n {regexGenerator === 'randexp' && <File.Import name={'RandExp'} path={'randexp'} />}\n {dateParser !== 'faker' && <File.Import path={dateParser} name={dateParser} />}\n <File.Import isTypeOnly root={faker.file.path} path={type.file.path} name={[type.name]} />\n {imports.map((imp) => (\n <File.Import key={[imp.path, imp.name, imp.isTypeOnly].join('-')} root={faker.file.path} path={imp.path} name={imp.name} />\n ))}\n\n <Faker\n name={faker.name}\n typeName={type.name}\n description={schema.value.description}\n tree={schema.tree}\n regexGenerator={regexGenerator}\n dateParser={dateParser}\n mapper={mapper}\n seed={seed}\n canOverride={canOverride}\n />\n </File>\n )\n },\n})\n"],"mappings":";;;;;;;;;;;AAUA,MAAa,iBAAiB,qBAAkC;CAC9D,MAAM;CACN,UAAU,EAAE,WAAW,WAAW,UAAU;EAC1C,MAAM,EACJ,SACA,SAAS,EAAE,YAAY,gBAAgB,MAAM,aAC3C;EACJ,MAAM,OAAO,SAAS;EACtB,MAAM,gBAAgB,kBAAkB;EAExC,MAAM,MAAM,QAAQ;EACpB,MAAM,EAAE,YAAY,SAAS,aAAa,oBAAoB,UAAU;EACxE,MAAM,gBAAgB,kBAAkB;EAExC,MAAM,OAAO,QAAQ,UAAU;EAC/B,MAAM,UAAU,WAAW,UAAU;EACrC,MAAM,kBAAkB,IAAI,gBAAgB,SAAS;GACnD,QAAQ,UAAU,QAAQ;GAC1B;GACA;GACA;GACA;GACA,UAAU,QAAQ;GACnB,CAAC;EAEF,MAAM,mBAAmB;GAAC,QAAQ;GAAY,QAAQ;GAAa,QAAQ;GAAc,QAAQ;GAAa,QAAQ;GAAS,QAAQ;GAAS,CAC7I,MAAM,CACN,OAAO,QAAQ;EAElB,MAAM,sBAAsB,EAAE,MAAM,QAAQ,cAAc,YAAa,GAAGA,gBAAmC;GAC3G,MAAM,OAAO,gBAAgB,MAAM;IAAE;IAAc;IAAM,CAAC;GAC1D,MAAM,UAAU,cAAc,WAAW,KAAK;GAC9C,MAAM,QAAQA,UAAQ,YAAY,SAASA,UAAQ,UAAU,GAAG;GAEhE,MAAM,QAAQ;IACZ,MAAM,cAAc,QAAQ,MAAM,EAAE,MAAM,YAAY,CAAC;IACvD,MAAM,cAAc,QAAQ,KAAK;IAClC;GAED,MAAM,OAAO;IACX,MAAM,cAAc,QAAQ,MAAM;KAAE,MA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M,IAAI;KAAW,CAAC,KAAK,IAAI,CAA2D,CAC3H;IAEF,oBAAC;KACC,MAAM,MAAM;KACZ,UAAU,KAAK;KACf,aAAa,OAAO,MAAM;KAC1B,MAAM,OAAO;KACG;KACJ;KACJ;KACF;KACO;MACb;;IACG;;CAGZ,CAAC"}
|
package/dist/generators.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('./components-
|
|
2
|
-
const require_fakerGenerator = require('./fakerGenerator-
|
|
1
|
+
require('./components-Dq57kUQf.cjs');
|
|
2
|
+
const require_fakerGenerator = require('./fakerGenerator-CYRnwp6R.cjs');
|
|
3
3
|
|
|
4
4
|
exports.fakerGenerator = require_fakerGenerator.fakerGenerator;
|
package/dist/generators.d.cts
CHANGED
package/dist/generators.d.ts
CHANGED
package/dist/generators.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_components = require('./components-
|
|
2
|
-
const require_fakerGenerator = require('./fakerGenerator-
|
|
1
|
+
const require_components = require('./components-Dq57kUQf.cjs');
|
|
2
|
+
const require_fakerGenerator = require('./fakerGenerator-CYRnwp6R.cjs');
|
|
3
3
|
let node_path = require("node:path");
|
|
4
4
|
node_path = require_components.__toESM(node_path);
|
|
5
5
|
let __kubb_core = require("@kubb/core");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as UserPluginWithLifeCycle, n as PluginFaker, t as Options } from "./types-
|
|
1
|
+
import { a as UserPluginWithLifeCycle, n as PluginFaker, t as Options } from "./types-NHbH6Svj.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginFakerName = "plugin-faker";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as UserPluginWithLifeCycle, n as PluginFaker, t as Options } from "./types-
|
|
1
|
+
import { a as UserPluginWithLifeCycle, n as PluginFaker, t as Options } from "./types-CEWRTyrN.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginFakerName = "plugin-faker";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./components-
|
|
2
|
-
import { t as fakerGenerator } from "./fakerGenerator-
|
|
1
|
+
import "./components-B6wjVu4Y.js";
|
|
2
|
+
import { t as fakerGenerator } from "./fakerGenerator-CfTiMdtr.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { PluginManager, createPlugin, getBarrelFiles, getMode } from "@kubb/core";
|
|
5
5
|
import { camelCase } from "@kubb/core/transformers";
|