onEmployeeHired
Purpose
Triggered when an employee is added to a shop. Use this hook to log hiring activity or notify relevant parties.
When It Triggers
Owner or authorized employee hires someone
New employee is added to the shop's employee list
Parameters
Parameter
Type
Description
data.source
number
Server ID of who hired
data.shopId
string
Unique shop identifier
data.shopName
string
Display name of the shop
data.employeeIdentifier
string
New employee's identifier
data.employeeName
string
New employee's name
data.employeeSource
number
New employee's server ID (if online)
data.permissions
table
Array of permission strings granted
data.hiredBy
string
Name of person who hired
data.hiredByIdentifier
string
Identifier of person who hired
data.salary
number
Employee's salary (if configured)
data.timestamp
number
Server timestamp
Example
Last updated