resourceObject
A resource performs work and can service stops based on skills, roster and location. Attribute names and types are links.
{
"id": <integer>,
"state": REST | WORK | BRK | STBY | CLLD,
"userId": <integer> | null,
"lock": <bool>,
}
-
idinteger - Unique identifier for this resource.
-
typeresourceParamsKey - References a previously defined resource type by key.
-
contractcontractParamsKey - References a previously defined contract by key.
-
stateREST | WORK | BRK | STBY | CLLD - Current operational state: REST (resting), WORK (working), BRK (on break), STBY (standby for callout), CLLD (called-out).
-
unprodstopObjectdefaultnull - Additional stops the resource must fulfil (usually directly; can be overridden).
-
atlocation - Current position in topography coordinates.
-
atTimetime - The time the current location (at) was last recorded.
-
baselocation - The resource’s normal home location.
-
roster[dutyKey: time] - Planned working roster — a duty key with a start time.
-
lastOfftime - Last end of active work; null if unknown.
-
lastOntime - Last start of active work; null if unknown.
-
lastBreaktime - Last completion of a break; null if unknown.
-
stopOntimeInterval - Maximum stop-on time that may be considered after the rostered finish; null is synonymous with 0.
-
userIdinteger - Helix-only — user id (sub) that can sign in as this resource in the Engineer view. Add to the resource `ignore` list in the domain so Spiral never sees it.
-
currentWorkingLimitdistance - The resource’s current working-area distance limit (overrides the params soft / hard limits for now).
-
lockbooldefaultfalse - Prevents Spiral from rescheduling this resource.
-
skills[string: skillObject] - The resource’s base skills — a map of skill name → skillObject (not an array).