zinkee 0.1.31 → 0.1.32
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 +12 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/commands/schemas.ts +13 -2
- package/src/utils/examples.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -2444,7 +2444,7 @@ var specificExamples = {
|
|
|
2444
2444
|
}`
|
|
2445
2445
|
},
|
|
2446
2446
|
{
|
|
2447
|
-
description: "Set the highlighted (main) field
|
|
2447
|
+
description: "Set the schema's highlighted (main) field \u2014 the field whose value names each record in the UI (activity-panel title and detail-view record list).",
|
|
2448
2448
|
command: "zinkee --json schemas update contacts --highlighted-field contact-name",
|
|
2449
2449
|
raw: `{
|
|
2450
2450
|
"highlightedField": "c60b8526-5835-4c9f-aecd-9a16c7704a34"
|
|
@@ -11266,6 +11266,15 @@ function registerRecordsCommands(program, options = {}) {
|
|
|
11266
11266
|
// src/commands/schemas.ts
|
|
11267
11267
|
import { readFileSync as readFileSync9 } from "fs";
|
|
11268
11268
|
import { InvalidArgumentError as InvalidArgumentError9 } from "commander";
|
|
11269
|
+
var HIGHLIGHTED_FIELD_HELP = `
|
|
11270
|
+
Highlighted field:
|
|
11271
|
+
The schema's "main" field. The frontend uses its value as each record's
|
|
11272
|
+
display name, in two places:
|
|
11273
|
+
- Activity panel: the record's title in the activity side panel
|
|
11274
|
+
(the panel with the record's logs and comments).
|
|
11275
|
+
- Detail view: the record's name in the left-hand record list you
|
|
11276
|
+
browse to open each record's form.
|
|
11277
|
+
`;
|
|
11269
11278
|
function getCommandIo11(stdout) {
|
|
11270
11279
|
return stdout ?? process.stdout;
|
|
11271
11280
|
}
|
|
@@ -11603,7 +11612,7 @@ function registerSchemasCommands(program, options = {}) {
|
|
|
11603
11612
|
});
|
|
11604
11613
|
schemas.command("update").description("Update a schema").argument("<schema>", "schema uuid or slug", parseUuidOrSlugSelector9).option("--name <name>", "schema name").option("--slug <slug>", "schema slug").option("--auditable <bool>", "auditable flag", parseBooleanFlag).option("--commentable <bool>", "commentable flag", parseBooleanFlag).option(
|
|
11605
11614
|
"--highlighted-field <field>",
|
|
11606
|
-
"
|
|
11615
|
+
"its value is used as each record's display name in the UI (field uuid or slug)",
|
|
11607
11616
|
parseUuidOrSlugSelector9
|
|
11608
11617
|
).action(async function action(schema, commandOptions) {
|
|
11609
11618
|
const { api, json, readOnly } = createSchemasApi(this, filePath);
|
|
@@ -11630,7 +11639,7 @@ function registerSchemasCommands(program, options = {}) {
|
|
|
11630
11639
|
return;
|
|
11631
11640
|
}
|
|
11632
11641
|
writeLine11(stdout, `Updated schema "${data.slug ?? schema.value}".`);
|
|
11633
|
-
});
|
|
11642
|
+
}).addHelpText("after", HIGHLIGHTED_FIELD_HELP);
|
|
11634
11643
|
schemas.command("set-unique-fields").description("Set or clear the composite unique-field constraint on a schema").argument("<schema>", "schema uuid or slug", parseUuidOrSlugSelector9).option(
|
|
11635
11644
|
"--field <field>",
|
|
11636
11645
|
"field uuid or slug to include in the unique constraint (repeatable)",
|