/** * 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 { ScheduleRotationWorkingIntervalV2 } from './ScheduleRotationWorkingIntervalV2.js'; import type { UserV2 } from './UserV2.js'; import type { ScheduleLayerV2 } from './ScheduleLayerV2.js'; /** * * @export * @interface ScheduleRotationV2 */ export interface ScheduleRotationV2 { /** * When this version of the rotation takes effect. A rotation can appear multiple times in `rotations` with the same `id`, scheduling changes ahead of time: each version applies from its `effective_from` until the next version's. A rotation's first version has no `effective_from`. */ 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 internal ID of the rotation */ id: string; /** * Controls how many people are on-call concurrently */ layers: Array; /** * Human readable name synced from external provider */ 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?: ScheduleRotationV2SchedulingModeEnum; /** * The people in the rotation, in the order they take shifts. */ users: Array; /** * DEPRECATED: Use working_intervals instead. */ working_interval?: Array; /** * Optional restrictions that define when to schedule people for this rota */ working_intervals: Array; } /** * @export */ export declare const ScheduleRotationV2SchedulingModeEnum: { readonly Fair: "fair"; readonly Sequential: "sequential"; }; export type ScheduleRotationV2SchedulingModeEnum = typeof ScheduleRotationV2SchedulingModeEnum[keyof typeof ScheduleRotationV2SchedulingModeEnum]; /** * Check if a given object implements the ScheduleRotationV2 interface. */ export declare function instanceOfScheduleRotationV2(value: object): value is ScheduleRotationV2; export declare function ScheduleRotationV2FromJSON(json: any): ScheduleRotationV2; export declare function ScheduleRotationV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleRotationV2; export declare function ScheduleRotationV2ToJSON(json: any): ScheduleRotationV2; export declare function ScheduleRotationV2ToJSONTyped(value?: ScheduleRotationV2 | null, ignoreDiscriminator?: boolean): any;