1import { UnavailabilityError } from '@unimodules/core'; 2 3import NotificationChannelGroupManager, { 4 NotificationChannelGroup, 5 NotificationChannelGroupInput, 6} from './NotificationChannelGroupManager'; 7 8export default async function setNotificationChannelGroupAsync( 9 groupId: string, 10 group: NotificationChannelGroupInput 11): Promise<NotificationChannelGroup | null> { 12 if (!NotificationChannelGroupManager.setNotificationChannelGroupAsync) { 13 throw new UnavailabilityError('Notifications', 'setNotificationChannelGroupAsync'); 14 } 15 16 return await NotificationChannelGroupManager.setNotificationChannelGroupAsync(groupId, group); 17} 18