Skip to content

ShiftDefinitionState ​

Type: Object

A reusable shift template — a start/end clock time and the weekdays it recurs on. Tenant-scoped; work centers reference it via their shift profiles rather than restating times.

Fields ​

NameTypeArgsDescriptionDeprecated
activeDays[Int!]!ISO-8601 weekdays the shift runs on (1 = Monday … 7 = Sunday). At least one day is required; each day refers to the day the shift starts on.
createdAtISO8601!ISO-8601 timestamp of when this shift definition was first persisted.
endTimeString!Local clock time the shift ends, as 24-hour "HH:mm" (e.g. "06:00"). May be earlier than startTime, which means the shift runs past midnight.
idShiftDefinitionID!TypeID of this shift definition (prefix "shd", e.g. "shd_01K…").
isOvernightBoolean!Derived: true when endTime is earlier than startTime, i.e. the shift spans midnight.
nameString!Human-readable label for the shift (e.g. "Early", "Night"). Must not be blank.
startTimeString!Local clock time the shift starts, as 24-hour "HH:mm" (e.g. "22:00"). Wall-clock only — it carries no date and no time zone.
updatedAtISO8601!ISO-8601 timestamp of the last successful write to this shift definition; equal to createdAt until it is first updated.

Connect machines, automate workflows, and build custom apps for print production.