( params: FetchParams[], )
| 295 | >; |
| 296 | |
| 297 | export const getNotificationPreferences = async ( |
| 298 | params: FetchParams[], |
| 299 | ): Promise<NotificationPreference[]> => { |
| 300 | const res = await gqlBatchRequest<{ |
| 301 | notificationPreferences: NotificationPreference[]; |
| 302 | }>(NOTIFICATION_PREFERENCES_QUERY, { data: params }); |
| 303 | |
| 304 | return res.notificationPreferences; |
| 305 | }; |
| 306 | |
| 307 | export const notificationPreferenceMap: Partial< |
| 308 | Record<NotificationType, NotificationPreferenceType> |
no outgoing calls
no test coverage detected