import type * as Square from "../../../../index"; /** * @example * { * id: "id", * idempotencyKey: "HIDSNG5KS478L", * version: 2, * scheduledShiftNotificationAudience: "ALL" * } */ export interface PublishScheduledShiftRequest { /** The ID of the scheduled shift to publish. */ id: string; /** * A unique identifier for the `PublishScheduledShift` request, used to ensure the * [idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) * of the operation. */ idempotencyKey: string; /** * The current version of the scheduled shift, used to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) * control. If the provided version doesn't match the server version, the request fails. * If omitted, Square executes a blind write, potentially overwriting data from another publish request. */ version?: number; /** * Indicates whether Square should send an email notification to team members and * which team members should receive the notification. The default value is `AFFECTED`. * See [ScheduledShiftNotificationAudience](#type-scheduledshiftnotificationaudience) for possible values */ scheduledShiftNotificationAudience?: Square.ScheduledShiftNotificationAudience; }