AlmondTill/G3N API

NewReportInput

input type

ONE kind: either spec — validated through the report gate (validateReport — the plan gate, then the columns / groupBy / measures / sort arms against the terminal family’s roster) — or catalogKey + params. Both or neither answers VALIDATION in words.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the terminal family (e.g. Order report) for a built definition; the ready-made report’s title for a saved run; when supplied it must be non-blank.
specReportSpecInputnoA built definition — the reportRun grammar verbatim (a plan + columns, or a plan + groupBy/measures, an optional sort); validated now, run later as whoever runs it. Exactly one of spec or catalogKey.
catalogKeyStringnoA saved run — the ready-made report’s key (reportCatalog lists them); the caller must be able to run it. Exactly one of spec or catalogKey.
paramsReportParamsInputnoA saved run’s parameters as named (the reportRun catalogue grammar: period · lens · person · record · axis · status · option · facility) — rides with catalogKey alone; bound against the report now and at every run; absent parameters take the report’s own defaults. A page cursor (nextToken) never saves — the save refuses it, VALIDATION.
descriptionStringnoWhat the report is for (at most 512 characters).

Used by