Skip to content

Type Alias: UIActionDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / UI / UIActionDto

Type Alias: UIActionDto

UIActionDto = { fieldTypes: Record<string, string>; osfqlTemplate: string; riskTier: RiskTier; sortName: string; statementId?: string | null; type: "submit_form"; } | { osfqlQuery: string; riskTier: RiskTier; statementId?: string | null; type: "load_data"; } | { fieldTypes: Record<string, string>; osfqlTemplate: string; riskTier: RiskTier; sortName: string; statementId?: string | null; type: "update_form"; } | { osfqlTemplate?: string | null; riskTier: RiskTier; sortName: string; statementId?: string | null; type: "delete_record"; } | { osfqlDerive: string; riskTier: RiskTier; statementId?: string | null; type: "trigger_inference"; } | { riskTier: RiskTier; sortId: string; statementId?: string | null; termId?: string | null; type: "navigate"; viewMode: string; } | { riskTier: RiskTier; statementId?: string | null; type: "refresh"; } | { fieldTypes: Record<string, string>; osfqlTemplate: string; riskTier: RiskTier; statementId: string; title: string; type: "run_osfql"; }

Defined in: src/types/ui.ts:75

UI action discriminated union.

Type Declaration

{ fieldTypes: Record<string, string>; osfqlTemplate: string; riskTier: RiskTier; sortName: string; statementId?: string | null; type: "submit_form"; }

fieldTypes

fieldTypes: Record<string, string>

osfqlTemplate

osfqlTemplate: string

riskTier

riskTier: RiskTier

sortName

sortName: string

statementId?

optional statementId: string | null

type

type: "submit_form"

{ osfqlQuery: string; riskTier: RiskTier; statementId?: string | null; type: "load_data"; }

osfqlQuery

osfqlQuery: string

riskTier

riskTier: RiskTier

statementId?

optional statementId: string | null

type

type: "load_data"

{ fieldTypes: Record<string, string>; osfqlTemplate: string; riskTier: RiskTier; sortName: string; statementId?: string | null; type: "update_form"; }

fieldTypes

fieldTypes: Record<string, string>

osfqlTemplate

osfqlTemplate: string

riskTier

riskTier: RiskTier

sortName

sortName: string

statementId?

optional statementId: string | null

type

type: "update_form"

{ osfqlTemplate?: string | null; riskTier: RiskTier; sortName: string; statementId?: string | null; type: "delete_record"; }

osfqlTemplate?

optional osfqlTemplate: string | null

OSFQL template with {field} placeholders — present for feature-based deletes.

riskTier

riskTier: RiskTier

sortName

sortName: string

statementId?

optional statementId: string | null

type

type: "delete_record"

{ osfqlDerive: string; riskTier: RiskTier; statementId?: string | null; type: "trigger_inference"; }

osfqlDerive

osfqlDerive: string

riskTier

riskTier: RiskTier

statementId?

optional statementId: string | null

type

type: "trigger_inference"

{ riskTier: RiskTier; sortId: string; statementId?: string | null; termId?: string | null; type: "navigate"; viewMode: string; }

riskTier

riskTier: RiskTier

sortId

sortId: string

statementId?

optional statementId: string | null

termId?

optional termId: string | null

type

type: "navigate"

viewMode

viewMode: string

{ riskTier: RiskTier; statementId?: string | null; type: "refresh"; }

riskTier

riskTier: RiskTier

statementId?

optional statementId: string | null

type

type: "refresh"

{ fieldTypes: Record<string, string>; osfqlTemplate: string; riskTier: RiskTier; statementId: string; title: string; type: "run_osfql"; }

fieldTypes

fieldTypes: Record<string, string>

osfqlTemplate

osfqlTemplate: string

riskTier

riskTier: RiskTier

statementId

statementId: string

Catalog statement id whose OSFQL template this action runs.

title

title: string

Human-readable label for the catalog statement.

type

type: "run_osfql"

Remarks

Every variant carries a RiskTier (riskTier) and an optional catalog statementId — the server derives both from the action kind and echoes them on the descriptor. run_osfql is the catalog-authored variant: its statementId is required because it names the catalog statement whose OSFQL template the action runs.