@ghentcdh/create-crouton 0.0.1-alpha.37 → 0.0.1-alpha.38
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/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/lib/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -18940,6 +18940,8 @@ var FieldInputSchema = external_exports.object({
|
|
|
18940
18940
|
// auto-derived from the Zod model/sibling FK column if omitted
|
|
18941
18941
|
/** FK field on the child model pointing back to the parent, e.g. `"workId"`. Defaults to `${parentModel}Id`. */
|
|
18942
18942
|
foreignKey: external_exports.string().optional(),
|
|
18943
|
+
/** Override the Prisma relation field name when it differs from the column id. */
|
|
18944
|
+
relation: external_exports.string().optional(),
|
|
18943
18945
|
/** Override the display order in form views. Lower values come first. */
|
|
18944
18946
|
position: external_exports.number().optional(),
|
|
18945
18947
|
// default: source order
|
|
@@ -19321,6 +19323,21 @@ var CroutonConfigSchema = external_exports.object({
|
|
|
19321
19323
|
autoSave: external_exports.boolean().default(true)
|
|
19322
19324
|
});
|
|
19323
19325
|
|
|
19326
|
+
// ../crouton-core/src/lib/view/view.schema.ts
|
|
19327
|
+
var ViewColumnConfigSchema = external_exports.object({
|
|
19328
|
+
id: external_exports.string(),
|
|
19329
|
+
label: external_exports.string().optional(),
|
|
19330
|
+
sortable: external_exports.boolean().optional(),
|
|
19331
|
+
searchable: external_exports.boolean().optional(),
|
|
19332
|
+
fieldInput: FieldInputSchema.optional()
|
|
19333
|
+
});
|
|
19334
|
+
var ViewConfigSchema = external_exports.object({
|
|
19335
|
+
json_schema: external_exports.record(external_exports.string(), external_exports.unknown()),
|
|
19336
|
+
ui_schema: external_exports.record(external_exports.string(), external_exports.unknown()),
|
|
19337
|
+
columns: external_exports.array(ViewColumnConfigSchema),
|
|
19338
|
+
defaultSort: external_exports.string().optional()
|
|
19339
|
+
});
|
|
19340
|
+
|
|
19324
19341
|
// ../crouton-codegen/src/util.ts
|
|
19325
19342
|
import { access } from "fs/promises";
|
|
19326
19343
|
|
|
@@ -19582,7 +19599,7 @@ var runCreate = async (name, opts) => {
|
|
|
19582
19599
|
const tokens = {
|
|
19583
19600
|
name,
|
|
19584
19601
|
Name: toTitle(name),
|
|
19585
|
-
version: true ? "0.0.1-alpha.
|
|
19602
|
+
version: true ? "0.0.1-alpha.38" : "latest",
|
|
19586
19603
|
year: String((/* @__PURE__ */ new Date()).getFullYear()),
|
|
19587
19604
|
pmRun: pm === "npm" ? "npm run" : pm,
|
|
19588
19605
|
urlEnv: "DATABASE_URL",
|