Skip to content

ObjectTrigger and ObjectRelationship are orphaned hand-written exports after the ObjectSchemaMetadata derivation (#5362) #5859

Description

@os-sam

Observation from #5362, filed unassigned. Not a defect — nothing is wrong at runtime — recording dead declaration surface.

Fact (at the #5362 branch, base da8db03a6)

packages/types/src/field-types.ts exports two hand-written interfaces whose only reason-for-being was the retired ObjectSchemaMetadata mirror's members:

  • ObjectTrigger — was referenced solely by the mirror's triggers?: ObjectTrigger[]
  • ObjectRelationship — solely by the mirror's relationships?: ObjectRelationship[]

With the mirror retired (derivation from @objectstack/spec/data's ServiceObject), both are exported from @object-ui/types (src/index.ts) with zero in-repo references outside their own declaration and the index re-export (repo-wide grep over packages/ apps/ examples/, *.ts/*.tsx, node_modules and dist excluded). The spec's object document declares neither a triggers nor a relationships member, so they do not correspond to any spec surface either.

#5362 deliberately did NOT remove them: they are published surface, and cutting exports is a separate decision from the ruled derivation. DataModelDesigner's relationships state is its own local model, not these types (checked).

Options

  • A — retire both exports in a follow-up (breaking-ish for external consumers; changeset minor with the semantics stated, per the version-alignment convention).
  • B — keep them with a comment stating they are client-side vocabulary awaiting a consumer, if one is expected.

No urgency either way; this exists so the dead surface is on the books rather than rediscovered.


Generated by Claude Code

Metadata

Metadata

Assignees

Labels

domain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seatpm:dispatched

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions