/** * 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. */ /** * Someone a call route pages when a call comes in. * @export * @interface CallRouteTargetV2 */ export interface CallRouteTargetV2 { /** * Uniquely identifies an entity of this type */ id: string; /** * Only set for schedule targets, this specifies which users to fetch from the schedule. Use currently_on_call to notify whoever is on call right now across the schedule, all_users to notify every user attached to the schedule, or all_users_for_rota / currently_on_call_for_rota / next_on_call_for_rota to scope to a specific rota (in which case selected_rota_id is required). next_on_call notifies whoever is next on call across the schedule. */ schedule_mode?: CallRouteTargetV2ScheduleModeEnum; /** * For schedule targets, identifies which rota on the schedule the schedule_mode applies to. Required when schedule_mode is all_users_for_rota, currently_on_call_for_rota, or next_on_call_for_rota; must be omitted for other schedule_mode values. */ selected_rota_id?: string; /** * Whether a call route target is a user or a schedule */ type: CallRouteTargetV2TypeEnum; /** * The interruption level we notify this target at: high or low */ urgency: CallRouteTargetV2UrgencyEnum; } /** * @export */ export declare const CallRouteTargetV2ScheduleModeEnum: { readonly CurrentlyOnCall: "currently_on_call"; readonly AllUsersForRota: "all_users_for_rota"; readonly AllUsers: "all_users"; readonly CurrentlyOnCallForRota: "currently_on_call_for_rota"; readonly NextOnCallForRota: "next_on_call_for_rota"; readonly NextOnCall: "next_on_call"; readonly Empty: ""; }; export type CallRouteTargetV2ScheduleModeEnum = typeof CallRouteTargetV2ScheduleModeEnum[keyof typeof CallRouteTargetV2ScheduleModeEnum]; /** * @export */ export declare const CallRouteTargetV2TypeEnum: { readonly User: "user"; readonly Schedule: "schedule"; }; export type CallRouteTargetV2TypeEnum = typeof CallRouteTargetV2TypeEnum[keyof typeof CallRouteTargetV2TypeEnum]; /** * @export */ export declare const CallRouteTargetV2UrgencyEnum: { readonly High: "high"; readonly Low: "low"; }; export type CallRouteTargetV2UrgencyEnum = typeof CallRouteTargetV2UrgencyEnum[keyof typeof CallRouteTargetV2UrgencyEnum]; /** * Check if a given object implements the CallRouteTargetV2 interface. */ export declare function instanceOfCallRouteTargetV2(value: object): value is CallRouteTargetV2; export declare function CallRouteTargetV2FromJSON(json: any): CallRouteTargetV2; export declare function CallRouteTargetV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): CallRouteTargetV2; export declare function CallRouteTargetV2ToJSON(json: any): CallRouteTargetV2; export declare function CallRouteTargetV2ToJSONTyped(value?: CallRouteTargetV2 | null, ignoreDiscriminator?: boolean): any;