import type * as Square from "../index"; /** * Represents a specific time slot in a work schedule. This object is used to manage the * lifecycle of a scheduled shift from the draft to published state. A scheduled shift contains * the latest draft shift details and current published shift details. */ export interface ScheduledShift { /** **Read only** The Square-issued ID of the scheduled shift. */ id?: string; /** * The latest draft shift details for the scheduled shift. Draft shift details are used to * stage and manage shifts before publishing. This field is always present. */ draftShiftDetails?: Square.ScheduledShiftDetails; /** * The current published (public) shift details for the scheduled shift. This field is * present only if the shift was published. */ publishedShiftDetails?: Square.ScheduledShiftDetails; /** * **Read only** The current version of the scheduled shift, which is incremented with each update. * This field is used for [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) * control to ensure that requests don't overwrite data from another request. */ version?: number; /** The timestamp of when the scheduled shift was created, in RFC 3339 format presented as UTC. */ createdAt?: string; /** The timestamp of when the scheduled shift was last updated, in RFC 3339 format presented as UTC. */ updatedAt?: string; }