import type * as Square from "../../../../index"; /** * @example * { * id: "id", * scheduledShift: { * draftShiftDetails: { * teamMemberId: "ormj0jJJZ5OZIzxrZYJI", * locationId: "PAA1RJZZKXBFG", * jobId: "FzbJAtt9qEWncK1BWgVCxQ6M", * startAt: "2019-03-25T03:11:00-05:00", * endAt: "2019-03-25T13:18:00-05:00", * notes: "Dont forget to prep the vegetables", * isDeleted: false * }, * version: 1 * } * } */ export interface UpdateScheduledShiftRequest { /** The ID of the scheduled shift to update. */ id: string; /** * The scheduled shift with any updates in the `draft_shift_details` field. * If needed, call [ListLocations](api-endpoint:Locations-ListLocations) to get location IDs, * [ListJobs](api-endpoint:Team-ListJobs) to get job IDs, and [SearchTeamMembers](api-endpoint:Team-SearchTeamMembers) * to get team member IDs and current job assignments. Updates made to `published_shift_details` * are ignored. * * If provided, the `start_at` and `end_at` timestamps must be in the time zone + offset of the * shift location specified in `location_id`. Example for Pacific Standard Time: 2024-10-31T12:30:00-08:00 * * To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) * control for the request, provide the current version of the shift in the `version` field. * If the provided version doesn't match the server version, the request fails. If `version` is * omitted, Square executes a blind write, potentially overwriting data from another publish request. */ scheduledShift: Square.ScheduledShift; }