/** * 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 { PolicyFindingScheduleImpactedUserV2 } from './PolicyFindingScheduleImpactedUserV2.js'; /** * Set when policy_type is schedule. Describes a gap in on-call cover. * @export * @interface PolicyFindingScheduleV2 */ export interface PolicyFindingScheduleV2 { /** * Why the gap exists */ cause?: PolicyFindingScheduleV2CauseEnum; /** * When the gap ends */ end_at: Date; /** * Whether part of the gap has nobody scheduled at all, so impacted_users doesn't fully explain it */ has_unscheduled_time?: boolean; /** * Users scheduled across the gap whose entries don't count as cover */ impacted_users?: Array; /** * The rotation with the gap, when the policy evaluates per rotation */ rotation_id?: string; /** * The schedule with the gap */ schedule_id: string; /** * When the gap starts */ start_at: Date; } /** * @export */ export declare const PolicyFindingScheduleV2CauseEnum: { readonly NobodyScheduled: "nobody_scheduled"; readonly NoOnCallSeat: "no_on_call_seat"; readonly UserDeactivated: "user_deactivated"; readonly NotificationsPaused: "notifications_paused"; }; export type PolicyFindingScheduleV2CauseEnum = typeof PolicyFindingScheduleV2CauseEnum[keyof typeof PolicyFindingScheduleV2CauseEnum]; /** * Check if a given object implements the PolicyFindingScheduleV2 interface. */ export declare function instanceOfPolicyFindingScheduleV2(value: object): value is PolicyFindingScheduleV2; export declare function PolicyFindingScheduleV2FromJSON(json: any): PolicyFindingScheduleV2; export declare function PolicyFindingScheduleV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyFindingScheduleV2; export declare function PolicyFindingScheduleV2ToJSON(json: any): PolicyFindingScheduleV2; export declare function PolicyFindingScheduleV2ToJSONTyped(value?: PolicyFindingScheduleV2 | null, ignoreDiscriminator?: boolean): any;