- api to fetch timeline event of a record
- use display name for event name
- associated_record will be person name or opportunity title for a OpportunityApplication.
- always send record_id and record_type (it's enum so you can get all eligible value there.).
query TimelineEvents {
timelineEvents(
filters: {sort: created_at, sort_direction: desc, record_id: "31", record_type: OpportunityApplication}
pagination: {page: 1, per_page: 20}
) {
data {
id
created_at
event
display_name
associated_record {
... on PublicPerson {
id
public_name
profile_photo
permissions {
can_view_applications
}
}
... on PublicOpportunity {
id
title
permissions {
view_applications
}
}
}
}
paging {
total_pages
current_page
total_items
}
}
}