/** * 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 { ScheduleSyncTargetResourceV2 } from './ScheduleSyncTargetResourceV2.js'; /** * A sync rule links a schedule to a sync target, telling us which of the * schedule's members should flow into the target's Slack user group. * * sync_type decides who is synced: on_call syncs only the people currently on * call, next_on_call syncs the people on the next upcoming shift, and all_users * syncs everyone on the schedule. By default every rotation on the schedule is * included; set rotation_id to scope the rule to a single rotation. As the * schedule's shifts change hands, we keep the target's Slack user group * membership in step with the rule. * * A user group's members are the union of every rule feeding it, so one schedule * can have several rules for the same target as long as they differ on * rotation_id or sync_type. Point an on_call and a next_on_call rule at one group * and it holds both the current and the next on-call. * * permanent_member_user_ids names users who stay in the group whichever way the * shifts fall, on top of whoever sync_type selects. * @export * @interface ScheduleSyncRuleV2 */ export interface ScheduleSyncRuleV2 { /** * */ created_at: Date; /** * Unique identifier of the sync rule */ id: string; /** * IDs of users always kept in the Slack user group, regardless of who is on call. Useful for keeping e.g. a manager in the group so they see mentions without being paged. Scoped to this rule: when several rules feed the same group, we sync the union of their permanent members. */ permanent_member_user_ids: Array; /** * If set, only members of this rotation sync to the user group. When unset, all rotations on the schedule are synced. */ rotation_id?: string; /** * The schedule this rule belongs to */ schedule_id: string; /** * */ schedule_sync_target: ScheduleSyncTargetResourceV2; /** * The sync target ID this rule links to */ schedule_sync_target_id: string; /** * Which schedule members sync to the user group */ sync_type: ScheduleSyncRuleV2SyncTypeEnum; /** * */ updated_at: Date; } /** * @export */ export declare const ScheduleSyncRuleV2SyncTypeEnum: { readonly OnCall: "on_call"; readonly AllUsers: "all_users"; readonly NextOnCall: "next_on_call"; }; export type ScheduleSyncRuleV2SyncTypeEnum = typeof ScheduleSyncRuleV2SyncTypeEnum[keyof typeof ScheduleSyncRuleV2SyncTypeEnum]; /** * Check if a given object implements the ScheduleSyncRuleV2 interface. */ export declare function instanceOfScheduleSyncRuleV2(value: object): value is ScheduleSyncRuleV2; export declare function ScheduleSyncRuleV2FromJSON(json: any): ScheduleSyncRuleV2; export declare function ScheduleSyncRuleV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleSyncRuleV2; export declare function ScheduleSyncRuleV2ToJSON(json: any): ScheduleSyncRuleV2; export declare function ScheduleSyncRuleV2ToJSONTyped(value?: ScheduleSyncRuleV2 | null, ignoreDiscriminator?: boolean): any;