/** * 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 { UserV2 } from './UserV2.js'; /** * A single shift on a schedule, representing who is on-call between a start * and end time. When present, `rotation_id` tells you which rotation the * entry belongs to. A schedule may have multiple rotations (for example, a * primary and a secondary rotation) and each rotation can be made up of several * layers — entries are returned for every rotation and layer on the schedule. * * Entries come from two places: they are either generated from a schedule's * rotation configuration (the regular pattern of who is on-call) or created by * an override (a one-off change that replaces the normal rotation for a period * of time). When you call the List schedule entries endpoint we return both * kinds separately, along with the merged `final` schedule that reflects what * will actually happen. * * `entry_id` is only populated for entries that correspond to a stored * record. Scheduled entries are projections computed from the rotation rules * on the fly and don't have a persisted ID, so `entry_id` will be absent for * those. Use `fingerprint` if you need a stable identifier to deduplicate or * diff a shift across requests. * @export * @interface ScheduleEntryV2 */ export interface ScheduleEntryV2 { /** * */ end_at: Date; /** * Unique identifier of the schedule entry */ entry_id?: string; /** * A unique identifier for this entry, used to determine a unique shift */ fingerprint?: string; /** * If present, the rotation this entry applies to on the schedule */ rotation_id?: string; /** * */ start_at: Date; /** * */ user?: UserV2; } /** * Check if a given object implements the ScheduleEntryV2 interface. */ export declare function instanceOfScheduleEntryV2(value: object): value is ScheduleEntryV2; export declare function ScheduleEntryV2FromJSON(json: any): ScheduleEntryV2; export declare function ScheduleEntryV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleEntryV2; export declare function ScheduleEntryV2ToJSON(json: any): ScheduleEntryV2; export declare function ScheduleEntryV2ToJSONTyped(value?: ScheduleEntryV2 | null, ignoreDiscriminator?: boolean): any;