resourceObject (output)
Output data sent when one or more stops attached to a resource are modified. Spiral identifies the
resource by its id and sends only the attributes that changed — a subset of the input
resourceObject. The most commonly updated attributes:
-
idinteger - The resource being updated.
-
unprodstopObject - Updated unproductive stops.
-
rosterStopstopObject - The duty stops Spiral derives from the resource’s roster (NOW / REST / STBY). Distinct from the `roster` attribute below, which is the shift pattern itself — this is the scheduled realisation of it.
-
atlocation - Updated current location.
-
stateREST | WORK | BRK | STBY - Updated operational state.
-
roster[dutyKey: time] - Updated planned roster — the shift pattern, not a stop. See `rosterStop` above for the derived duty stops.
-
stopOntimeInterval - Updated stop-on availability.
-
skillsskillObject - Updated skills.
Any other resourceObject attribute (e.g. base,
lastOn, lastBreak, currentWorkingLimit, lock, type) may also appear when it changes.