Skip to main content

TimelineEntry

No description

type TimelineEntry {
id: ID!
timestamp: DateTime!
kind: TimelineEntryKind!
action: TimelineEntryAction!
rawLabel: String!
summary: String!
actor: TimelineActor!
target: TimelineTarget
changes: [FieldChange!]!
rawSnapshot: JSONString!
rawDiff: JSONString
}

Fields

TimelineEntry.id ● ID! non-null scalar

Composite ID: '<kind>:<pgh_id>'. Stable per source event but not globally addressable via the Node interface.

TimelineEntry.timestamp ● DateTime! non-null scalar

TimelineEntry.kind ● TimelineEntryKind! non-null enum

TimelineEntry.action ● TimelineEntryAction! non-null enum

TimelineEntry.rawLabel ● String! non-null scalar

Original pghistory label (e.g. 'commission_added'). Preserved alongside action for domain-specific UX.

TimelineEntry.summary ● String! non-null scalar

Server-formatted human-readable message, e.g. 'Granular commission for Seller "Acme" updated'. Pre-rendered to keep the frontend generic.

TimelineEntry.actor ● TimelineActor! non-null object

TimelineEntry.target ● TimelineTarget object

Child object affected. Null when the event IS the primary entity.

TimelineEntry.changes ● [FieldChange!]! non-null object

Field-level diff. Empty for non-update events or when no fields changed.

TimelineEntry.rawSnapshot ● JSONString! non-null scalar

Full snapshot at event time. Escape hatch for power users / debugging.

TimelineEntry.rawDiff ● JSONString scalar

Full diff dict {field: [old, new]}. Null for create/delete events.

Member Of

Agreement object ● Order object

Was this page helpful?