@drzl/cli 4.19.0 → 4.23.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/chunk-54E2IO7N.js +1030 -0
- package/dist/chunk-54E2IO7N.js.map +1 -0
- package/dist/{dist-TRJLPIWT.js → chunk-KKPDOZOD.js} +239 -48
- package/dist/chunk-KKPDOZOD.js.map +1 -0
- package/dist/cli.cjs +6850 -1434
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +2958 -679
- package/dist/cli.js.map +1 -1
- package/dist/config.cjs +632 -70
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.cts +314 -6
- package/dist/config.d.ts +314 -6
- package/dist/config.js +29 -1
- package/dist/dist-KQMPKOFK.js +350 -0
- package/dist/dist-KQMPKOFK.js.map +1 -0
- package/dist/{dist-CZDVFYFW.js → dist-KX62ETKK.js} +112 -37
- package/dist/dist-KX62ETKK.js.map +1 -0
- package/dist/dist-P24ILO5N.js +431 -0
- package/dist/dist-P24ILO5N.js.map +1 -0
- package/dist/dist-QYH7DRFY.js +27 -0
- package/dist/dist-QYH7DRFY.js.map +1 -0
- package/dist/dist-SGI2I53L.js +434 -0
- package/dist/dist-SGI2I53L.js.map +1 -0
- package/dist/dist-T5376MW7.js +489 -0
- package/dist/dist-T5376MW7.js.map +1 -0
- package/dist/dist-UVP6B4XJ.js +646 -0
- package/dist/dist-UVP6B4XJ.js.map +1 -0
- package/dist/{dist-XBGVORL3.js → dist-ZIHNXQ7U.js} +16 -6
- package/dist/dist-ZIHNXQ7U.js.map +1 -0
- package/dist/drzl.config.schema.json +717 -0
- package/package.json +19 -13
- package/dist/chunk-V2IXXAC2.js +0 -465
- package/dist/chunk-V2IXXAC2.js.map +0 -1
- package/dist/dist-CZDVFYFW.js.map +0 -1
- package/dist/dist-TRJLPIWT.js.map +0 -1
- package/dist/dist-XBGVORL3.js.map +0 -1
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
// ../generator-hono/dist/index.js
|
|
2
|
+
import { fileWriter } from "@drzl/validation-core";
|
|
3
|
+
import {
|
|
4
|
+
formatCode,
|
|
5
|
+
importSpecifier,
|
|
6
|
+
resolveAffix,
|
|
7
|
+
resolveConfiguredImport,
|
|
8
|
+
schemaName
|
|
9
|
+
} from "@drzl/validation-core";
|
|
10
|
+
var APP_MODULE = "index";
|
|
11
|
+
var q = (v) => JSON.stringify(v);
|
|
12
|
+
var lit = (v) => /['\\]/.test(v) ? JSON.stringify(v) : `'${v}'`;
|
|
13
|
+
var NUMERIC_SEGMENT = String.raw`/^-?\d+(\.\d+)?$/`;
|
|
14
|
+
var LIB_IMPORTS = {
|
|
15
|
+
zod: "import { z } from 'zod';",
|
|
16
|
+
valibot: "import * as v from 'valibot';",
|
|
17
|
+
arktype: "import { type } from 'arktype';"
|
|
18
|
+
};
|
|
19
|
+
var LIB_USAGE = {
|
|
20
|
+
zod: /\bz\./,
|
|
21
|
+
valibot: /\bv\./,
|
|
22
|
+
arktype: /\btype\(|\.infer\b/
|
|
23
|
+
};
|
|
24
|
+
var LIBS = {
|
|
25
|
+
zod: {
|
|
26
|
+
number: "z.number()",
|
|
27
|
+
string: "z.string()",
|
|
28
|
+
boolean: "z.boolean()",
|
|
29
|
+
date: "z.date()",
|
|
30
|
+
unknown: "z.unknown()",
|
|
31
|
+
enum: (vals) => `z.enum([${vals.map(q).join(", ")}] as const)`,
|
|
32
|
+
nullable: (b) => `${b}.nullable()`,
|
|
33
|
+
optional: (b) => `${b}.optional()`,
|
|
34
|
+
object: (body) => `z.object({
|
|
35
|
+
${body}
|
|
36
|
+
})`,
|
|
37
|
+
objectInline: (body) => `z.object({ ${body} })`,
|
|
38
|
+
partialUpdate: (s) => `${s}.partial()`,
|
|
39
|
+
// Not `z.coerce.number()`, and not `z.coerce.date()`: both accept far more than a path
|
|
40
|
+
// segment addressing a row should. See the measured grid on `LibDialect.coerce`.
|
|
41
|
+
coerce: (t) => t === "number" ? `z.string().regex(${NUMERIC_SEGMENT}).transform(Number)` : t === "Date" ? "z.iso.datetime().transform((s) => new Date(s))" : null,
|
|
42
|
+
infer: (s) => `z.output<typeof ${s}>`
|
|
43
|
+
},
|
|
44
|
+
valibot: {
|
|
45
|
+
number: "v.number()",
|
|
46
|
+
string: "v.string()",
|
|
47
|
+
boolean: "v.boolean()",
|
|
48
|
+
date: "v.date()",
|
|
49
|
+
unknown: "v.unknown()",
|
|
50
|
+
enum: (vals) => `v.picklist([${vals.map(q).join(", ")}] as const)`,
|
|
51
|
+
nullable: (b) => `v.nullable(${b})`,
|
|
52
|
+
optional: (b) => `v.optional(${b})`,
|
|
53
|
+
object: (body) => `v.object({
|
|
54
|
+
${body}
|
|
55
|
+
})`,
|
|
56
|
+
objectInline: (body) => `v.object({ ${body} })`,
|
|
57
|
+
// A valibot pipe step sees the previous step's *output*, so the check has to happen while the
|
|
58
|
+
// value is still the string: by the time a `v.transform(Number)` has run there is no string
|
|
59
|
+
// left to look at. See the measured grid on `LibDialect.coerce`.
|
|
60
|
+
coerce: (t) => t === "number" ? `v.pipe(v.string(), v.regex(${NUMERIC_SEGMENT}), v.transform(Number))` : t === "Date" ? "v.pipe(v.string(), v.isoTimestamp(), v.transform((s) => new Date(s)))" : null,
|
|
61
|
+
infer: (s) => `v.InferOutput<typeof ${s}>`
|
|
62
|
+
},
|
|
63
|
+
arktype: {
|
|
64
|
+
number: "number",
|
|
65
|
+
string: "string",
|
|
66
|
+
boolean: "boolean",
|
|
67
|
+
date: "Date",
|
|
68
|
+
unknown: "unknown",
|
|
69
|
+
// The surrounding encode adds the quotes, so the union is built with the inner quoting
|
|
70
|
+
// ArkType expects.
|
|
71
|
+
enum: (vals) => vals.map((x) => `'${x.replace(/'/g, "\\'")}'`).join(" | "),
|
|
72
|
+
nullable: (b) => `(${b} | null)`,
|
|
73
|
+
optional: (b) => `${b}?`,
|
|
74
|
+
object: (body) => `type({
|
|
75
|
+
${body}
|
|
76
|
+
})`,
|
|
77
|
+
objectInline: (body) => `type({ ${body} })`,
|
|
78
|
+
fieldIsString: true,
|
|
79
|
+
// ArkType ships these as keywords, and they are *morphs*: the declared output type is
|
|
80
|
+
// `number`, not `string`. Returned bare, because `fieldIsString` quotes every expression this
|
|
81
|
+
// dialect produces and a keyword returned pre-quoted arrives as `"'string.numeric.parse'"`,
|
|
82
|
+
// which ArkType reads as a string *literal* type matching nothing but that sentence.
|
|
83
|
+
//
|
|
84
|
+
// `string.date.parse` and not `string.date.iso.parse` was the first draft, and it accepts
|
|
85
|
+
// `"1"` as the year 2001, which is the same over-permissiveness the coercing spellings have.
|
|
86
|
+
coerce: (t) => t === "number" ? "string.numeric.parse" : t === "Date" ? "string.date.iso.parse" : null,
|
|
87
|
+
infer: (s) => `typeof ${s}.infer`
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
var cap = (s) => s.charAt(0).toUpperCase() + s.slice(1);
|
|
91
|
+
var isIdent = (s) => /^[A-Za-z_$][A-Za-z0-9_$]*$/.test(s);
|
|
92
|
+
function keyColumns(table) {
|
|
93
|
+
const names = table.primaryKey?.columns ?? [];
|
|
94
|
+
if (!names.length) return null;
|
|
95
|
+
const cols = names.map((n) => table.columns.find((c) => c.name === n));
|
|
96
|
+
if (cols.some((c) => !c)) return null;
|
|
97
|
+
return cols;
|
|
98
|
+
}
|
|
99
|
+
function isWide(column) {
|
|
100
|
+
if (column.enumValues && column.enumValues.length) return false;
|
|
101
|
+
if (column.shape?.kind === "tuple" || column.shape?.kind === "numberObject") return false;
|
|
102
|
+
return !["number", "string", "boolean", "Date"].includes(column.tsType);
|
|
103
|
+
}
|
|
104
|
+
function mapExpr(column, lib, mode) {
|
|
105
|
+
const d = LIBS[lib];
|
|
106
|
+
let base = (() => {
|
|
107
|
+
if (column.enumValues && column.enumValues.length) return d.enum(column.enumValues);
|
|
108
|
+
switch (column.tsType) {
|
|
109
|
+
case "number":
|
|
110
|
+
return d.number;
|
|
111
|
+
case "string":
|
|
112
|
+
return d.string;
|
|
113
|
+
case "boolean":
|
|
114
|
+
return d.boolean;
|
|
115
|
+
case "Date":
|
|
116
|
+
return d.date;
|
|
117
|
+
default:
|
|
118
|
+
return d.unknown;
|
|
119
|
+
}
|
|
120
|
+
})();
|
|
121
|
+
if (column.nullable) base = d.nullable(base);
|
|
122
|
+
if (mode !== "select") {
|
|
123
|
+
const optional = mode === "update" || column.nullable || column.hasDefault;
|
|
124
|
+
if (optional) base = d.optional(base);
|
|
125
|
+
}
|
|
126
|
+
return base;
|
|
127
|
+
}
|
|
128
|
+
function objectKey(name) {
|
|
129
|
+
return isIdent(name) ? name : JSON.stringify(name);
|
|
130
|
+
}
|
|
131
|
+
function field(column, lib, mode) {
|
|
132
|
+
const d = LIBS[lib];
|
|
133
|
+
const expr = mapExpr(column, lib, mode);
|
|
134
|
+
return `${objectKey(column.name)}: ${d.fieldIsString ? JSON.stringify(expr) : expr}`;
|
|
135
|
+
}
|
|
136
|
+
function paramField(column, lib) {
|
|
137
|
+
const d = LIBS[lib];
|
|
138
|
+
const expr = (() => {
|
|
139
|
+
if (column.enumValues && column.enumValues.length) return d.enum(column.enumValues);
|
|
140
|
+
return d.coerce(column.tsType) ?? d.string;
|
|
141
|
+
})();
|
|
142
|
+
return `${objectKey(column.name)}: ${d.fieldIsString ? JSON.stringify(expr) : expr}`;
|
|
143
|
+
}
|
|
144
|
+
function renderSchema(table, lib, mode) {
|
|
145
|
+
const d = LIBS[lib];
|
|
146
|
+
const cols = table.columns.filter((c) => mode === "select" ? true : !c.isGenerated);
|
|
147
|
+
const body = cols.map((c) => ` ${field(c, lib, mode)},`).join("\n");
|
|
148
|
+
const schema = d.object(body);
|
|
149
|
+
return mode === "update" && d.partialUpdate ? d.partialUpdate(schema) : schema;
|
|
150
|
+
}
|
|
151
|
+
function toCase(s, c) {
|
|
152
|
+
if (!c) return s;
|
|
153
|
+
const parts = s.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").split(/\s+/);
|
|
154
|
+
if (c === "camel") {
|
|
155
|
+
return parts.map(
|
|
156
|
+
(p, i) => i === 0 ? p.toLowerCase() : p.charAt(0).toUpperCase() + p.slice(1).toLowerCase()
|
|
157
|
+
).join("");
|
|
158
|
+
}
|
|
159
|
+
if (c === "kebab") return parts.map((p) => p.toLowerCase()).join("-");
|
|
160
|
+
if (c === "snake") return parts.map((p) => p.toLowerCase()).join("_");
|
|
161
|
+
return s;
|
|
162
|
+
}
|
|
163
|
+
function routesExportName(table, naming) {
|
|
164
|
+
const base = `${table.tsName}${naming?.routerSuffix ?? "Routes"}`;
|
|
165
|
+
const c = naming?.procedureCase;
|
|
166
|
+
return toCase(base, c === "kebab" ? "camel" : c);
|
|
167
|
+
}
|
|
168
|
+
function mountPath(table, naming) {
|
|
169
|
+
return `/${toCase(table.tsName, naming?.procedureCase)}`;
|
|
170
|
+
}
|
|
171
|
+
var HonoGenerator = class {
|
|
172
|
+
constructor(analysis) {
|
|
173
|
+
this.analysis = analysis;
|
|
174
|
+
}
|
|
175
|
+
async generate(opts) {
|
|
176
|
+
const fs = fileWriter(opts.fileSink);
|
|
177
|
+
const path = await import("path");
|
|
178
|
+
const out = path.resolve(process.cwd(), opts.outputDir);
|
|
179
|
+
const ctx = { out };
|
|
180
|
+
await fs.mkdir(out, { recursive: true });
|
|
181
|
+
const files = [];
|
|
182
|
+
const write = async (filePath, content) => {
|
|
183
|
+
const formatted = await formatCode(
|
|
184
|
+
buildHeader(opts.outputHeader) + content,
|
|
185
|
+
filePath,
|
|
186
|
+
opts.format
|
|
187
|
+
);
|
|
188
|
+
await fs.writeFile(filePath, formatted, "utf8");
|
|
189
|
+
files.push(filePath);
|
|
190
|
+
};
|
|
191
|
+
const barrelPath = path.join(out, `${APP_MODULE}.ts`);
|
|
192
|
+
const modules = [];
|
|
193
|
+
const total = this.analysis.tables.length;
|
|
194
|
+
let index = 0;
|
|
195
|
+
for (const table of this.analysis.tables) {
|
|
196
|
+
const base = `${table.tsName}${opts.naming?.routerSuffix ?? ""}`;
|
|
197
|
+
const filePath = path.join(out, `${toCase(base, opts.naming?.procedureCase)}.ts`);
|
|
198
|
+
if (filePath === barrelPath) {
|
|
199
|
+
throw new Error(
|
|
200
|
+
`@drzl/generator-hono: the routes for table "${table.name}" would be written to ${filePath}, which is the barrel this generator also writes. Set naming.routerSuffix to move it out of the way.`
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
await write(filePath, renderRoutes(table, opts, ctx));
|
|
204
|
+
modules.push({ table, filePath, exportName: routesExportName(table, opts.naming) });
|
|
205
|
+
index++;
|
|
206
|
+
opts.onProgress?.({ index, total, table: table.name, filePath });
|
|
207
|
+
}
|
|
208
|
+
await write(barrelPath, renderBarrel(modules, ctx, path, opts));
|
|
209
|
+
return { files };
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
var index_default = HonoGenerator;
|
|
213
|
+
function buildHeader(h) {
|
|
214
|
+
if (h && h.enabled === false) return "";
|
|
215
|
+
const text = h?.text?.trim();
|
|
216
|
+
const lines = text ? text.split(/\r?\n/).map((l) => `// ${l}`) : [
|
|
217
|
+
"// Generated by DRZL (@drzl/*)",
|
|
218
|
+
"// Generated output is granted to you under your project's license.",
|
|
219
|
+
"// You may use, copy, modify, and distribute without attribution."
|
|
220
|
+
];
|
|
221
|
+
return lines.join("\n") + "\n\n";
|
|
222
|
+
}
|
|
223
|
+
var VALIDATORS = {
|
|
224
|
+
standard: { fn: "sValidator", from: "@hono/standard-validator" },
|
|
225
|
+
zod: { fn: "zValidator", from: "@hono/zod-validator" }
|
|
226
|
+
};
|
|
227
|
+
var VALID_PARAM_HINT = "// The validated path parameters are at c.req.valid('param').";
|
|
228
|
+
function renderRoutes(table, opts, ctx) {
|
|
229
|
+
const lib = opts.validation?.library ?? "zod";
|
|
230
|
+
const d = LIBS[lib];
|
|
231
|
+
const validator = VALIDATORS[opts.validator ?? "standard"];
|
|
232
|
+
const insertName = `Insert${table.tsName}Schema`;
|
|
233
|
+
const updateName = `Update${table.tsName}Schema`;
|
|
234
|
+
const selectName = `Select${table.tsName}Schema`;
|
|
235
|
+
const paramsName = `${cap(table.tsName)}ParamsSchema`;
|
|
236
|
+
const rowType = `Select${table.tsName}Row`;
|
|
237
|
+
const writable = !table.readOnly;
|
|
238
|
+
const key = keyColumns(table);
|
|
239
|
+
const routes = [];
|
|
240
|
+
const notImplemented = (what) => `throw new Error('Not implemented: ${what} ${table.tsName}.');`;
|
|
241
|
+
routes.push({
|
|
242
|
+
name: "list",
|
|
243
|
+
method: "get",
|
|
244
|
+
path: "/",
|
|
245
|
+
middleware: [],
|
|
246
|
+
// The stub states its own contract. tRPC has `.output()` and Hono has nothing like it: what a
|
|
247
|
+
// Hono client infers is the *handler's return type*, so the only place an output schema can be
|
|
248
|
+
// honoured is the value handed to `c.json`. Annotating the local is what puts the select shape
|
|
249
|
+
// into `hc<AppType>()` rather than `never[]`.
|
|
250
|
+
body: [`const rows: ${rowType}[] = [];`, "return c.json(rows);"]
|
|
251
|
+
});
|
|
252
|
+
if (key) {
|
|
253
|
+
const keyPath = "/" + key.map((c) => `:${c.name}`).join("/");
|
|
254
|
+
routes.push({
|
|
255
|
+
name: "byId",
|
|
256
|
+
method: "get",
|
|
257
|
+
path: keyPath,
|
|
258
|
+
middleware: [`${validator.fn}('param', ${paramsName})`],
|
|
259
|
+
body: [VALID_PARAM_HINT, `const row: ${rowType} | null = null;`, "return c.json(row);"]
|
|
260
|
+
});
|
|
261
|
+
if (writable) {
|
|
262
|
+
routes.push({
|
|
263
|
+
name: "update",
|
|
264
|
+
method: "patch",
|
|
265
|
+
path: keyPath,
|
|
266
|
+
middleware: [
|
|
267
|
+
`${validator.fn}('param', ${paramsName})`,
|
|
268
|
+
`${validator.fn}('json', ${updateName})`
|
|
269
|
+
],
|
|
270
|
+
body: [notImplemented("update")]
|
|
271
|
+
});
|
|
272
|
+
routes.push({
|
|
273
|
+
name: "delete",
|
|
274
|
+
method: "delete",
|
|
275
|
+
path: keyPath,
|
|
276
|
+
middleware: [`${validator.fn}('param', ${paramsName})`],
|
|
277
|
+
body: [VALID_PARAM_HINT, "return c.json(true);"]
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
if (writable) {
|
|
282
|
+
routes.push({
|
|
283
|
+
name: "create",
|
|
284
|
+
method: "post",
|
|
285
|
+
path: "/",
|
|
286
|
+
middleware: [`${validator.fn}('json', ${insertName})`],
|
|
287
|
+
body: [notImplemented("create")]
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
if (opts.includeRelations) {
|
|
291
|
+
routes.push(...relationRoutes(table, lib, rowType, validator.fn, opts));
|
|
292
|
+
}
|
|
293
|
+
const order = ["list", "byId", "create", "update", "delete"];
|
|
294
|
+
const rank = (n) => order.indexOf(n) === -1 ? order.length : order.indexOf(n);
|
|
295
|
+
routes.sort((a, b) => rank(a.name) - rank(b.name));
|
|
296
|
+
const exportName = routesExportName(table, opts.naming);
|
|
297
|
+
const chain = routes.map((r) => {
|
|
298
|
+
const args = [lit(r.path), ...r.middleware].join(", ");
|
|
299
|
+
const ctxParam = r.body.some((line) => /\bc\./.test(line)) ? "c" : "_c";
|
|
300
|
+
return [
|
|
301
|
+
` .${r.method}(${args}, async (${ctxParam}) => {`,
|
|
302
|
+
...r.body.map((line) => ` ${line}`),
|
|
303
|
+
` })`
|
|
304
|
+
].join("\n");
|
|
305
|
+
}).join("\n");
|
|
306
|
+
const body = `export const ${exportName} = new Hono()
|
|
307
|
+
${chain};
|
|
308
|
+
`;
|
|
309
|
+
const useShared = !!opts.validation?.useShared && !!opts.validation?.importPath;
|
|
310
|
+
const declared = [];
|
|
311
|
+
if (!useShared) {
|
|
312
|
+
if (writable) {
|
|
313
|
+
declared.push(`export const ${insertName} = ${renderSchema(table, lib, "insert")};`);
|
|
314
|
+
declared.push(`export const ${updateName} = ${renderSchema(table, lib, "update")};`);
|
|
315
|
+
}
|
|
316
|
+
declared.push(`export const ${selectName} = ${renderSchema(table, lib, "select")};`);
|
|
317
|
+
}
|
|
318
|
+
if (key) {
|
|
319
|
+
declared.push(
|
|
320
|
+
`export const ${paramsName} = ${d.objectInline(
|
|
321
|
+
key.map((c) => paramField(c, lib)).join(", ")
|
|
322
|
+
)};`
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
declared.push(`export type ${rowType} = ${d.infer(selectName)};`);
|
|
326
|
+
const decided = [...declared, body].join("\n\n");
|
|
327
|
+
const imports = [];
|
|
328
|
+
if (useShared) {
|
|
329
|
+
const sharedAffix = resolveAffix({
|
|
330
|
+
affix: opts.validation?.affix,
|
|
331
|
+
schemaSuffix: opts.validation?.schemaSuffix
|
|
332
|
+
});
|
|
333
|
+
const wanted = [
|
|
334
|
+
["insert", insertName],
|
|
335
|
+
["update", updateName],
|
|
336
|
+
["select", selectName]
|
|
337
|
+
].filter(([, local]) => decided.includes(local));
|
|
338
|
+
if (wanted.length) {
|
|
339
|
+
const spec = resolveConfiguredImport(
|
|
340
|
+
opts.validation.importPath,
|
|
341
|
+
ctx.out,
|
|
342
|
+
process.cwd(),
|
|
343
|
+
opts.importExtension
|
|
344
|
+
);
|
|
345
|
+
const names = wanted.map(([mode, local]) => {
|
|
346
|
+
const exported = schemaName(mode, table.tsName, sharedAffix);
|
|
347
|
+
return exported === local ? local : `${exported} as ${local}`;
|
|
348
|
+
}).join(", ");
|
|
349
|
+
imports.push(`import { ${names} } from '${spec}';`);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
imports.push(`import { Hono } from 'hono';`);
|
|
353
|
+
if (decided.includes(`${validator.fn}(`)) {
|
|
354
|
+
imports.push(`import { ${validator.fn} } from '${validator.from}';`);
|
|
355
|
+
}
|
|
356
|
+
if (LIB_USAGE[lib].test(decided)) imports.unshift(LIB_IMPORTS[lib]);
|
|
357
|
+
const wide = table.columns.filter(isWide).map((c) => c.name);
|
|
358
|
+
const wideNote = wide.length ? `// No validated type for ${wide.length === 1 ? "this column" : "these columns"}: ${wide.join(", ")}.
|
|
359
|
+
// DRZL could not derive one from the schema, so these routes accept any value there.
|
|
360
|
+
` : "";
|
|
361
|
+
return `// Generated by @drzl/generator-hono
|
|
362
|
+
// Routes for table: ${table.name}
|
|
363
|
+
${wideNote}${imports.join("\n")}
|
|
364
|
+
|
|
365
|
+
${decided}`;
|
|
366
|
+
}
|
|
367
|
+
function relationRoutes(table, lib, rowType, validatorFn, opts) {
|
|
368
|
+
const d = LIBS[lib];
|
|
369
|
+
const out = [];
|
|
370
|
+
const taken = /* @__PURE__ */ new Set();
|
|
371
|
+
for (const fk of table.foreignKeys ?? []) {
|
|
372
|
+
if (fk.columns.length !== 1) continue;
|
|
373
|
+
const colName = fk.columns[0];
|
|
374
|
+
const column = table.columns.find((c) => c.name === colName);
|
|
375
|
+
if (!column) continue;
|
|
376
|
+
const segment = toCase(`by-${colName}`, opts.naming?.procedureCase ?? "kebab");
|
|
377
|
+
if (taken.has(segment)) continue;
|
|
378
|
+
taken.add(segment);
|
|
379
|
+
const inline = d.objectInline(paramField(column, lib));
|
|
380
|
+
out.push({
|
|
381
|
+
name: `listBy${cap(colName)}`,
|
|
382
|
+
method: "get",
|
|
383
|
+
path: `/${segment}/:${colName}`,
|
|
384
|
+
middleware: [`${validatorFn}('param', ${inline})`],
|
|
385
|
+
body: [VALID_PARAM_HINT, `const rows: ${rowType}[] = [];`, "return c.json(rows);"]
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
return out;
|
|
389
|
+
}
|
|
390
|
+
function renderBarrel(modules, ctx, path, opts) {
|
|
391
|
+
if (!modules.length) {
|
|
392
|
+
return `// Generated by @drzl/generator-hono
|
|
393
|
+
// No tables detected in analysis. Add tables to your schema and regenerate.
|
|
394
|
+
import { Hono } from 'hono';
|
|
395
|
+
|
|
396
|
+
export const app = new Hono();
|
|
397
|
+
|
|
398
|
+
/** The type a Hono client is parameterised by: \`hc<AppType>('/')\`. */
|
|
399
|
+
export type AppType = typeof app;
|
|
400
|
+
`;
|
|
401
|
+
}
|
|
402
|
+
const entries = modules.map(({ filePath, exportName, table }) => ({
|
|
403
|
+
rel: importSpecifier(
|
|
404
|
+
"./" + path.relative(ctx.out, filePath).replace(/\\/g, "/"),
|
|
405
|
+
opts.importExtension
|
|
406
|
+
),
|
|
407
|
+
exportName,
|
|
408
|
+
mount: mountPath(table, opts.naming)
|
|
409
|
+
}));
|
|
410
|
+
const imports = entries.map((e) => `import { ${e.exportName} } from '${e.rel}';`).join("\n");
|
|
411
|
+
const chain = entries.map((e) => ` .route(${lit(e.mount)}, ${e.exportName})`).join("\n");
|
|
412
|
+
const reExports = entries.map((e) => `export * from '${e.rel}';`).join("\n");
|
|
413
|
+
return `// Generated by @drzl/generator-hono
|
|
414
|
+
import { Hono } from 'hono';
|
|
415
|
+
${imports}
|
|
416
|
+
|
|
417
|
+
export const app = new Hono()
|
|
418
|
+
${chain};
|
|
419
|
+
|
|
420
|
+
/** The type a Hono client is parameterised by: \`hc<AppType>('/')\`. */
|
|
421
|
+
export type AppType = typeof app;
|
|
422
|
+
|
|
423
|
+
${reExports}
|
|
424
|
+
`;
|
|
425
|
+
}
|
|
426
|
+
export {
|
|
427
|
+
APP_MODULE,
|
|
428
|
+
HonoGenerator,
|
|
429
|
+
index_default as default
|
|
430
|
+
};
|
|
431
|
+
//# sourceMappingURL=dist-P24ILO5N.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../generator-hono/dist/index.js"],"sourcesContent":["// src/index.ts\nimport { fileWriter } from \"@drzl/validation-core\";\nimport {\n formatCode,\n importSpecifier,\n resolveAffix,\n resolveConfiguredImport,\n schemaName\n} from \"@drzl/validation-core\";\nvar APP_MODULE = \"index\";\nvar q = (v) => JSON.stringify(v);\nvar lit = (v) => /['\\\\]/.test(v) ? JSON.stringify(v) : `'${v}'`;\nvar NUMERIC_SEGMENT = String.raw`/^-?\\d+(\\.\\d+)?$/`;\nvar LIB_IMPORTS = {\n zod: \"import { z } from 'zod';\",\n valibot: \"import * as v from 'valibot';\",\n arktype: \"import { type } from 'arktype';\"\n};\nvar LIB_USAGE = {\n zod: /\\bz\\./,\n valibot: /\\bv\\./,\n arktype: /\\btype\\(|\\.infer\\b/\n};\nvar LIBS = {\n zod: {\n number: \"z.number()\",\n string: \"z.string()\",\n boolean: \"z.boolean()\",\n date: \"z.date()\",\n unknown: \"z.unknown()\",\n enum: (vals) => `z.enum([${vals.map(q).join(\", \")}] as const)`,\n nullable: (b) => `${b}.nullable()`,\n optional: (b) => `${b}.optional()`,\n object: (body) => `z.object({\n${body}\n})`,\n objectInline: (body) => `z.object({ ${body} })`,\n partialUpdate: (s) => `${s}.partial()`,\n // Not `z.coerce.number()`, and not `z.coerce.date()`: both accept far more than a path\n // segment addressing a row should. See the measured grid on `LibDialect.coerce`.\n coerce: (t) => t === \"number\" ? `z.string().regex(${NUMERIC_SEGMENT}).transform(Number)` : t === \"Date\" ? \"z.iso.datetime().transform((s) => new Date(s))\" : null,\n infer: (s) => `z.output<typeof ${s}>`\n },\n valibot: {\n number: \"v.number()\",\n string: \"v.string()\",\n boolean: \"v.boolean()\",\n date: \"v.date()\",\n unknown: \"v.unknown()\",\n enum: (vals) => `v.picklist([${vals.map(q).join(\", \")}] as const)`,\n nullable: (b) => `v.nullable(${b})`,\n optional: (b) => `v.optional(${b})`,\n object: (body) => `v.object({\n${body}\n})`,\n objectInline: (body) => `v.object({ ${body} })`,\n // A valibot pipe step sees the previous step's *output*, so the check has to happen while the\n // value is still the string: by the time a `v.transform(Number)` has run there is no string\n // left to look at. See the measured grid on `LibDialect.coerce`.\n coerce: (t) => t === \"number\" ? `v.pipe(v.string(), v.regex(${NUMERIC_SEGMENT}), v.transform(Number))` : t === \"Date\" ? \"v.pipe(v.string(), v.isoTimestamp(), v.transform((s) => new Date(s)))\" : null,\n infer: (s) => `v.InferOutput<typeof ${s}>`\n },\n arktype: {\n number: \"number\",\n string: \"string\",\n boolean: \"boolean\",\n date: \"Date\",\n unknown: \"unknown\",\n // The surrounding encode adds the quotes, so the union is built with the inner quoting\n // ArkType expects.\n enum: (vals) => vals.map((x) => `'${x.replace(/'/g, \"\\\\'\")}'`).join(\" | \"),\n nullable: (b) => `(${b} | null)`,\n optional: (b) => `${b}?`,\n object: (body) => `type({\n${body}\n})`,\n objectInline: (body) => `type({ ${body} })`,\n fieldIsString: true,\n // ArkType ships these as keywords, and they are *morphs*: the declared output type is\n // `number`, not `string`. Returned bare, because `fieldIsString` quotes every expression this\n // dialect produces and a keyword returned pre-quoted arrives as `\"'string.numeric.parse'\"`,\n // which ArkType reads as a string *literal* type matching nothing but that sentence.\n //\n // `string.date.parse` and not `string.date.iso.parse` was the first draft, and it accepts\n // `\"1\"` as the year 2001, which is the same over-permissiveness the coercing spellings have.\n coerce: (t) => t === \"number\" ? \"string.numeric.parse\" : t === \"Date\" ? \"string.date.iso.parse\" : null,\n infer: (s) => `typeof ${s}.infer`\n }\n};\nvar cap = (s) => s.charAt(0).toUpperCase() + s.slice(1);\nvar isIdent = (s) => /^[A-Za-z_$][A-Za-z0-9_$]*$/.test(s);\nfunction keyColumns(table) {\n const names = table.primaryKey?.columns ?? [];\n if (!names.length) return null;\n const cols = names.map((n) => table.columns.find((c) => c.name === n));\n if (cols.some((c) => !c)) return null;\n return cols;\n}\nfunction isWide(column) {\n if (column.enumValues && column.enumValues.length) return false;\n if (column.shape?.kind === \"tuple\" || column.shape?.kind === \"numberObject\") return false;\n return ![\"number\", \"string\", \"boolean\", \"Date\"].includes(column.tsType);\n}\nfunction mapExpr(column, lib, mode) {\n const d = LIBS[lib];\n let base = (() => {\n if (column.enumValues && column.enumValues.length) return d.enum(column.enumValues);\n switch (column.tsType) {\n case \"number\":\n return d.number;\n case \"string\":\n return d.string;\n case \"boolean\":\n return d.boolean;\n case \"Date\":\n return d.date;\n default:\n return d.unknown;\n }\n })();\n if (column.nullable) base = d.nullable(base);\n if (mode !== \"select\") {\n const optional = mode === \"update\" || column.nullable || column.hasDefault;\n if (optional) base = d.optional(base);\n }\n return base;\n}\nfunction objectKey(name) {\n return isIdent(name) ? name : JSON.stringify(name);\n}\nfunction field(column, lib, mode) {\n const d = LIBS[lib];\n const expr = mapExpr(column, lib, mode);\n return `${objectKey(column.name)}: ${d.fieldIsString ? JSON.stringify(expr) : expr}`;\n}\nfunction paramField(column, lib) {\n const d = LIBS[lib];\n const expr = (() => {\n if (column.enumValues && column.enumValues.length) return d.enum(column.enumValues);\n return d.coerce(column.tsType) ?? d.string;\n })();\n return `${objectKey(column.name)}: ${d.fieldIsString ? JSON.stringify(expr) : expr}`;\n}\nfunction renderSchema(table, lib, mode) {\n const d = LIBS[lib];\n const cols = table.columns.filter((c) => mode === \"select\" ? true : !c.isGenerated);\n const body = cols.map((c) => ` ${field(c, lib, mode)},`).join(\"\\n\");\n const schema = d.object(body);\n return mode === \"update\" && d.partialUpdate ? d.partialUpdate(schema) : schema;\n}\nfunction toCase(s, c) {\n if (!c) return s;\n const parts = s.replace(/([a-z0-9])([A-Z])/g, \"$1 $2\").replace(/[_-]/g, \" \").split(/\\s+/);\n if (c === \"camel\") {\n return parts.map(\n (p, i) => i === 0 ? p.toLowerCase() : p.charAt(0).toUpperCase() + p.slice(1).toLowerCase()\n ).join(\"\");\n }\n if (c === \"kebab\") return parts.map((p) => p.toLowerCase()).join(\"-\");\n if (c === \"snake\") return parts.map((p) => p.toLowerCase()).join(\"_\");\n return s;\n}\nfunction routesExportName(table, naming) {\n const base = `${table.tsName}${naming?.routerSuffix ?? \"Routes\"}`;\n const c = naming?.procedureCase;\n return toCase(base, c === \"kebab\" ? \"camel\" : c);\n}\nfunction mountPath(table, naming) {\n return `/${toCase(table.tsName, naming?.procedureCase)}`;\n}\nvar HonoGenerator = class {\n constructor(analysis) {\n this.analysis = analysis;\n }\n async generate(opts) {\n const fs = fileWriter(opts.fileSink);\n const path = await import(\"path\");\n const out = path.resolve(process.cwd(), opts.outputDir);\n const ctx = { out };\n await fs.mkdir(out, { recursive: true });\n const files = [];\n const write = async (filePath, content) => {\n const formatted = await formatCode(\n buildHeader(opts.outputHeader) + content,\n filePath,\n opts.format\n );\n await fs.writeFile(filePath, formatted, \"utf8\");\n files.push(filePath);\n };\n const barrelPath = path.join(out, `${APP_MODULE}.ts`);\n const modules = [];\n const total = this.analysis.tables.length;\n let index = 0;\n for (const table of this.analysis.tables) {\n const base = `${table.tsName}${opts.naming?.routerSuffix ?? \"\"}`;\n const filePath = path.join(out, `${toCase(base, opts.naming?.procedureCase)}.ts`);\n if (filePath === barrelPath) {\n throw new Error(\n `@drzl/generator-hono: the routes for table \"${table.name}\" would be written to ${filePath}, which is the barrel this generator also writes. Set naming.routerSuffix to move it out of the way.`\n );\n }\n await write(filePath, renderRoutes(table, opts, ctx));\n modules.push({ table, filePath, exportName: routesExportName(table, opts.naming) });\n index++;\n opts.onProgress?.({ index, total, table: table.name, filePath });\n }\n await write(barrelPath, renderBarrel(modules, ctx, path, opts));\n return { files };\n }\n};\nvar index_default = HonoGenerator;\nfunction buildHeader(h) {\n if (h && h.enabled === false) return \"\";\n const text = h?.text?.trim();\n const lines = text ? text.split(/\\r?\\n/).map((l) => `// ${l}`) : [\n \"// Generated by DRZL (@drzl/*)\",\n \"// Generated output is granted to you under your project's license.\",\n \"// You may use, copy, modify, and distribute without attribution.\"\n ];\n return lines.join(\"\\n\") + \"\\n\\n\";\n}\nvar VALIDATORS = {\n standard: { fn: \"sValidator\", from: \"@hono/standard-validator\" },\n zod: { fn: \"zValidator\", from: \"@hono/zod-validator\" }\n};\nvar VALID_PARAM_HINT = \"// The validated path parameters are at c.req.valid('param').\";\nfunction renderRoutes(table, opts, ctx) {\n const lib = opts.validation?.library ?? \"zod\";\n const d = LIBS[lib];\n const validator = VALIDATORS[opts.validator ?? \"standard\"];\n const insertName = `Insert${table.tsName}Schema`;\n const updateName = `Update${table.tsName}Schema`;\n const selectName = `Select${table.tsName}Schema`;\n const paramsName = `${cap(table.tsName)}ParamsSchema`;\n const rowType = `Select${table.tsName}Row`;\n const writable = !table.readOnly;\n const key = keyColumns(table);\n const routes = [];\n const notImplemented = (what) => `throw new Error('Not implemented: ${what} ${table.tsName}.');`;\n routes.push({\n name: \"list\",\n method: \"get\",\n path: \"/\",\n middleware: [],\n // The stub states its own contract. tRPC has `.output()` and Hono has nothing like it: what a\n // Hono client infers is the *handler's return type*, so the only place an output schema can be\n // honoured is the value handed to `c.json`. Annotating the local is what puts the select shape\n // into `hc<AppType>()` rather than `never[]`.\n body: [`const rows: ${rowType}[] = [];`, \"return c.json(rows);\"]\n });\n if (key) {\n const keyPath = \"/\" + key.map((c) => `:${c.name}`).join(\"/\");\n routes.push({\n name: \"byId\",\n method: \"get\",\n path: keyPath,\n middleware: [`${validator.fn}('param', ${paramsName})`],\n body: [VALID_PARAM_HINT, `const row: ${rowType} | null = null;`, \"return c.json(row);\"]\n });\n if (writable) {\n routes.push({\n name: \"update\",\n method: \"patch\",\n path: keyPath,\n middleware: [\n `${validator.fn}('param', ${paramsName})`,\n `${validator.fn}('json', ${updateName})`\n ],\n body: [notImplemented(\"update\")]\n });\n routes.push({\n name: \"delete\",\n method: \"delete\",\n path: keyPath,\n middleware: [`${validator.fn}('param', ${paramsName})`],\n body: [VALID_PARAM_HINT, \"return c.json(true);\"]\n });\n }\n }\n if (writable) {\n routes.push({\n name: \"create\",\n method: \"post\",\n path: \"/\",\n middleware: [`${validator.fn}('json', ${insertName})`],\n body: [notImplemented(\"create\")]\n });\n }\n if (opts.includeRelations) {\n routes.push(...relationRoutes(table, lib, rowType, validator.fn, opts));\n }\n const order = [\"list\", \"byId\", \"create\", \"update\", \"delete\"];\n const rank = (n) => order.indexOf(n) === -1 ? order.length : order.indexOf(n);\n routes.sort((a, b) => rank(a.name) - rank(b.name));\n const exportName = routesExportName(table, opts.naming);\n const chain = routes.map((r) => {\n const args = [lit(r.path), ...r.middleware].join(\", \");\n const ctxParam = r.body.some((line) => /\\bc\\./.test(line)) ? \"c\" : \"_c\";\n return [\n ` .${r.method}(${args}, async (${ctxParam}) => {`,\n ...r.body.map((line) => ` ${line}`),\n ` })`\n ].join(\"\\n\");\n }).join(\"\\n\");\n const body = `export const ${exportName} = new Hono()\n${chain};\n`;\n const useShared = !!opts.validation?.useShared && !!opts.validation?.importPath;\n const declared = [];\n if (!useShared) {\n if (writable) {\n declared.push(`export const ${insertName} = ${renderSchema(table, lib, \"insert\")};`);\n declared.push(`export const ${updateName} = ${renderSchema(table, lib, \"update\")};`);\n }\n declared.push(`export const ${selectName} = ${renderSchema(table, lib, \"select\")};`);\n }\n if (key) {\n declared.push(\n `export const ${paramsName} = ${d.objectInline(\n key.map((c) => paramField(c, lib)).join(\", \")\n )};`\n );\n }\n declared.push(`export type ${rowType} = ${d.infer(selectName)};`);\n const decided = [...declared, body].join(\"\\n\\n\");\n const imports = [];\n if (useShared) {\n const sharedAffix = resolveAffix({\n affix: opts.validation?.affix,\n schemaSuffix: opts.validation?.schemaSuffix\n });\n const wanted = [\n [\"insert\", insertName],\n [\"update\", updateName],\n [\"select\", selectName]\n ].filter(([, local]) => decided.includes(local));\n if (wanted.length) {\n const spec = resolveConfiguredImport(\n opts.validation.importPath,\n ctx.out,\n process.cwd(),\n opts.importExtension\n );\n const names = wanted.map(([mode, local]) => {\n const exported = schemaName(mode, table.tsName, sharedAffix);\n return exported === local ? local : `${exported} as ${local}`;\n }).join(\", \");\n imports.push(`import { ${names} } from '${spec}';`);\n }\n }\n imports.push(`import { Hono } from 'hono';`);\n if (decided.includes(`${validator.fn}(`)) {\n imports.push(`import { ${validator.fn} } from '${validator.from}';`);\n }\n if (LIB_USAGE[lib].test(decided)) imports.unshift(LIB_IMPORTS[lib]);\n const wide = table.columns.filter(isWide).map((c) => c.name);\n const wideNote = wide.length ? `// No validated type for ${wide.length === 1 ? \"this column\" : \"these columns\"}: ${wide.join(\", \")}.\n// DRZL could not derive one from the schema, so these routes accept any value there.\n` : \"\";\n return `// Generated by @drzl/generator-hono\n// Routes for table: ${table.name}\n${wideNote}${imports.join(\"\\n\")}\n\n${decided}`;\n}\nfunction relationRoutes(table, lib, rowType, validatorFn, opts) {\n const d = LIBS[lib];\n const out = [];\n const taken = /* @__PURE__ */ new Set();\n for (const fk of table.foreignKeys ?? []) {\n if (fk.columns.length !== 1) continue;\n const colName = fk.columns[0];\n const column = table.columns.find((c) => c.name === colName);\n if (!column) continue;\n const segment = toCase(`by-${colName}`, opts.naming?.procedureCase ?? \"kebab\");\n if (taken.has(segment)) continue;\n taken.add(segment);\n const inline = d.objectInline(paramField(column, lib));\n out.push({\n name: `listBy${cap(colName)}`,\n method: \"get\",\n path: `/${segment}/:${colName}`,\n middleware: [`${validatorFn}('param', ${inline})`],\n body: [VALID_PARAM_HINT, `const rows: ${rowType}[] = [];`, \"return c.json(rows);\"]\n });\n }\n return out;\n}\nfunction renderBarrel(modules, ctx, path, opts) {\n if (!modules.length) {\n return `// Generated by @drzl/generator-hono\n// No tables detected in analysis. Add tables to your schema and regenerate.\nimport { Hono } from 'hono';\n\nexport const app = new Hono();\n\n/** The type a Hono client is parameterised by: \\`hc<AppType>('/')\\`. */\nexport type AppType = typeof app;\n`;\n }\n const entries = modules.map(({ filePath, exportName, table }) => ({\n rel: importSpecifier(\n \"./\" + path.relative(ctx.out, filePath).replace(/\\\\/g, \"/\"),\n opts.importExtension\n ),\n exportName,\n mount: mountPath(table, opts.naming)\n }));\n const imports = entries.map((e) => `import { ${e.exportName} } from '${e.rel}';`).join(\"\\n\");\n const chain = entries.map((e) => ` .route(${lit(e.mount)}, ${e.exportName})`).join(\"\\n\");\n const reExports = entries.map((e) => `export * from '${e.rel}';`).join(\"\\n\");\n return `// Generated by @drzl/generator-hono\nimport { Hono } from 'hono';\n${imports}\n\nexport const app = new Hono()\n${chain};\n\n/** The type a Hono client is parameterised by: \\`hc<AppType>('/')\\`. */\nexport type AppType = typeof app;\n\n${reExports}\n`;\n}\nexport {\n APP_MODULE,\n HonoGenerator,\n index_default as default\n};\n"],"mappings":";AACA,SAAS,kBAAkB;AAC3B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,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A;AAAA,EAST;AACA,QAAM,UAAU,QAAQ,IAAI,CAAC,EAAE,UAAU,YAAY,MAAM,OAAO;AAAA,IAChE,KAAK;AAAA,MACH,OAAO,KAAK,SAAS,IAAI,KAAK,QAAQ,EAAE,QAAQ,OAAO,GAAG;AAAA,MAC1D,KAAK;AAAA,IACP;AAAA,IACA;AAAA,IACA,OAAO,UAAU,OAAO,KAAK,MAAM;AAAA,EACrC,EAAE;AACF,QAAM,UAAU,QAAQ,IAAI,CAAC,MAAM,YAAY,EAAE,UAAU,YAAY,EAAE,GAAG,IAAI,EAAE,KAAK,IAAI;AAC3F,QAAM,QAAQ,QAAQ,IAAI,CAAC,MAAM,YAAY,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,EAAE,KAAK,IAAI;AACxF,QAAM,YAAY,QAAQ,IAAI,CAAC,MAAM,kBAAkB,EAAE,GAAG,IAAI,EAAE,KAAK,IAAI;AAC3E,SAAO;AAAA;AAAA,EAEP,OAAO;AAAA;AAAA;AAAA,EAGP,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAKL,SAAS;AAAA;AAEX;","names":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DRAFT,
|
|
3
|
+
JsonSchemaGenerator,
|
|
4
|
+
allColumns,
|
|
5
|
+
componentSchemaName,
|
|
6
|
+
componentsDocument,
|
|
7
|
+
documentSchemas,
|
|
8
|
+
enumKey,
|
|
9
|
+
index_default,
|
|
10
|
+
openApiDocument,
|
|
11
|
+
planSharedEnums,
|
|
12
|
+
tableSchemas
|
|
13
|
+
} from "./chunk-KKPDOZOD.js";
|
|
14
|
+
export {
|
|
15
|
+
DRAFT,
|
|
16
|
+
JsonSchemaGenerator,
|
|
17
|
+
allColumns,
|
|
18
|
+
componentSchemaName,
|
|
19
|
+
componentsDocument,
|
|
20
|
+
index_default as default,
|
|
21
|
+
documentSchemas,
|
|
22
|
+
enumKey,
|
|
23
|
+
openApiDocument,
|
|
24
|
+
planSharedEnums,
|
|
25
|
+
tableSchemas
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=dist-QYH7DRFY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|