@columnus/api-cli 0.1.47 → 0.1.48

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.
Files changed (2) hide show
  1. package/dist/cli.js +19 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -7631,6 +7631,7 @@ function generateClientPullFiles(input) {
7631
7631
  );
7632
7632
  files.set("src/generated/editor-row-refs.ts", generateEditorRowRefsTs());
7633
7633
  files.set("src/generated/editor-storage-refs.ts", generateEditorStorageRefsTs());
7634
+ files.set("src/generated/editor-display-refs.ts", generateEditorDisplayRefsTs());
7634
7635
  files.set("src/generated/query.ts", emitQueryTs(READ_API_BANNER));
7635
7636
  files.set("src/generated/storage-helpers.ts", generateStorageHelpersTs());
7636
7637
  files.set(
@@ -7843,6 +7844,21 @@ export const getStorageMetadataRef = anyApi.columnus.storage.getStorageMetadata
7843
7844
  >;
7844
7845
  `;
7845
7846
  }
7847
+ function generateEditorDisplayRefsTs() {
7848
+ return `${READ_API_BANNER}// Editor-session display values: authenticate with the editor Convex
7849
+ // JWT (useCmsEditorAuth / getConvexToken). Used by CMS id-pickers for closed
7850
+ // labels + search hit text via getDisplayValues.
7851
+ import { anyApi } from "convex/server";
7852
+ import type { FunctionReference } from "convex/server";
7853
+
7854
+ export const getDisplayValuesRef = anyApi.columnus.display.getDisplayValues as FunctionReference<
7855
+ "query",
7856
+ "public",
7857
+ { table: string; documentIds: string[] },
7858
+ Record<string, { id?: string; preview?: string }>
7859
+ >;
7860
+ `;
7861
+ }
7846
7862
  function generateManifestTypesTs() {
7847
7863
  return `${READ_API_BANNER}/** Manifest field/index shapes for pulled consumer apps (no @columnus/shared). */
7848
7864
  export type ManifestIndex = { name: string; fields: string[] };
@@ -7852,6 +7868,9 @@ export type ManifestFieldType =
7852
7868
  | { kind: "number" }
7853
7869
  | { kind: "boolean" }
7854
7870
  | { kind: "file" }
7871
+ | { kind: "image" }
7872
+ | { kind: "markdown" }
7873
+ | { kind: "datetime" }
7855
7874
  | { kind: "id"; table: string }
7856
7875
  | { kind: "array"; element: ManifestFieldType }
7857
7876
  | { kind: "object"; fields: Record<string, ManifestFieldType> };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@columnus/api-cli",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "columnus-api pull and dev — live-sync read API codegen for Columnus consumer apps",