import type * as Square from "../../../../index"; /** * @example * { * idempotencyKey: "HIDSNG5KS478L", * scheduledShift: { * draftShiftDetails: { * teamMemberId: "ormj0jJJZ5OZIzxrZYJI", * locationId: "PAA1RJZZKXBFG", * jobId: "FzbJAtt9qEWncK1BWgVCxQ6M", * startAt: "2019-01-25T03:11:00-05:00", * endAt: "2019-01-25T13:11:00-05:00", * notes: "Dont forget to prep the vegetables", * isDeleted: false * } * } * } */ export interface CreateScheduledShiftRequest { /** * A unique identifier for the `CreateScheduledShift` request, used to ensure the * [idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) * of the operation. */ idempotencyKey?: string; /** * The scheduled shift with `draft_shift_details`. * 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. * * The `start_at` and `end_at` timestamps must be provided 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 */ scheduledShift: Square.ScheduledShift; }