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