Q3 Roadmap: Embedded Notifications, Embedded Commissions, Tips and more!
Policy
component allows platforms to create, edit, and manage individual time off policies.Policy
component receives the prop policyId
, which must be a valid ID of a time off policy. The goBack
callback is used for returning to the previous screen (e.g. TimeOffSettings
).Sick
, TimeOff
, and VacationPay
. These correspond to standard leave types used across payroll platforms.PolicyTypeDto
; the list of employees assigned to a policy is defined via the IPolicyAssignedEmployee
interface; balances and assignments are defined using the IWorkerPolicyMapper
interface.Event | Trigger | Payload |
---|---|---|
onTimeOffPolicyCreate | Admin creates a new time off policy | time_off_policy object |
onTimeOffPolicyEdit | Admin modifies an existing time off policy | time_off_policy object |
onTimeOffPolicyDelete | Admin deletes a time off policy | time_off_policy object |
onTimeOffPolicyAssign | Employee is added to a policy | time_off_policy object, employee_internal_id , employee_external_id , balance |
onTimeOffPolicyRemove | Employee is removed from a policy | time_off_policy object, employee_internal_id , employee_external_id , balance |
Property | Type | Required | Description |
---|---|---|---|
policyId | string | Yes | ID of the policy to display and manage |
goBack | () => void | Yes | Callback for navigating back to previous screen |
Policy
component is designed to be used inside the broader time off settings interface, but it can also be rendered independently with just a policyId
identifier.