/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { ScheduleRotationHandoverV2 } from './ScheduleRotationHandoverV2.js'; import type { ScheduleLayerCreatePayloadV2 } from './ScheduleLayerCreatePayloadV2.js'; import type { ScheduleRotationWorkingIntervalCreatePayloadV2 } from './ScheduleRotationWorkingIntervalCreatePayloadV2.js'; import type { UserReferencePayloadV2 } from './UserReferencePayloadV2.js'; /** * * @export * @interface ScheduleRotationCreatePayloadV2 */ export interface ScheduleRotationCreatePayloadV2 { /** * When this version of the rotation takes effect. A rotation can appear multiple times in `rotations` with the same `id` to schedule changes ahead of time: each version applies from its `effective_from` until the next version's. Leave it unset on a rotation's first or only version. */ effective_from?: Date; /** * Determines when shifts change hands and who takes them: the first user in `users` comes on shift at this time, handing over to the next user after each `handovers` interval, cycling through the list — for example, weekly handovers from a Monday 09:00 give week-long shifts that change hands on Mondays at 09:00. */ handover_start_at?: Date; /** * The cadence shifts hand over on. With more than one entry, the intervals apply in turn — for example, one day then three days produces alternating one-day and three-day shifts. */ handovers?: Array; /** * Unique identifier of the rotation */ id?: string; /** * */ layers?: Array; /** * Name of the rotation */ name: string; /** * Scheduling algorithm to use for this rotation. 'fair' balances workload by considering handover duration, while 'sequential' uses simple round-robin rotation through users. Only applies when you have asymmetric handovers (e.g., 2 days then 5 days). */ scheduling_mode?: ScheduleRotationCreatePayloadV2SchedulingModeEnum; /** * The people in the rotation, in the order they take shifts. */ users?: Array; /** * DEPRECATED: Use working_intervals instead. */ working_interval?: Array; /** * */ working_intervals?: Array; } /** * @export */ export declare const ScheduleRotationCreatePayloadV2SchedulingModeEnum: { readonly Fair: "fair"; readonly Sequential: "sequential"; }; export type ScheduleRotationCreatePayloadV2SchedulingModeEnum = typeof ScheduleRotationCreatePayloadV2SchedulingModeEnum[keyof typeof ScheduleRotationCreatePayloadV2SchedulingModeEnum]; /** * Check if a given object implements the ScheduleRotationCreatePayloadV2 interface. */ export declare function instanceOfScheduleRotationCreatePayloadV2(value: object): value is ScheduleRotationCreatePayloadV2; export declare function ScheduleRotationCreatePayloadV2FromJSON(json: any): ScheduleRotationCreatePayloadV2; export declare function ScheduleRotationCreatePayloadV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleRotationCreatePayloadV2; export declare function ScheduleRotationCreatePayloadV2ToJSON(json: any): ScheduleRotationCreatePayloadV2; export declare function ScheduleRotationCreatePayloadV2ToJSONTyped(value?: ScheduleRotationCreatePayloadV2 | null, ignoreDiscriminator?: boolean): any;