Skip to main content

CrewStatusUpdate

🏷️ Event topic: crew_status_update.

Triggered when a crew's status in the company changes, including bulk changes, suspension, applicant decisions and updates made through the API. Initial addition of crew to the company is not a status change and does not trigger this event.

Data​

interface EventCrewStatusUpdate {
// Information about the crew member
crewId: number;
crewOid: ObjectID;

// Previous and new status of the crew in the company
oldStatus: string;
newStatus: string;

// Whether the change was made via the updateCompanyCrew mutation of the API
isApiUpdate: boolean;
}