import { Events } from '../../common'; import { Event } from '../../processor'; export interface AProgramChanged { id: string; change: { expiration: number; __kind: 'ProgramSet' | 'Active' | 'Terminated' | 'Inactive'; }; } export type CProgramChanged = { args: AProgramChanged } & Omit; export const isProgramChanged = (obj: any): obj is CProgramChanged => obj.name === Events.ProgramChanged;