( inputData: WebNotifInputData, devices: $ReadOnlyArray<NotificationTargetDevice>, )
| 1102 | } |
| 1103 | |
| 1104 | async function prepareWebNotification( |
| 1105 | inputData: WebNotifInputData, |
| 1106 | devices: $ReadOnlyArray<NotificationTargetDevice>, |
| 1107 | ): Promise<$ReadOnlyArray<TargetedWebNotification>> { |
| 1108 | const convertedData = await validateOutput( |
| 1109 | inputData.platformDetails, |
| 1110 | webNotifInputDataValidator, |
| 1111 | inputData, |
| 1112 | ); |
| 1113 | |
| 1114 | const { targetedNotifications } = await createWebNotification( |
| 1115 | encryptedNotifUtilsAPI, |
| 1116 | convertedData, |
| 1117 | devices, |
| 1118 | ); |
| 1119 | |
| 1120 | return targetedNotifications; |
| 1121 | } |
| 1122 | |
| 1123 | async function prepareWNSNotification( |
| 1124 | devices: $ReadOnlyArray<NotificationTargetDevice>, |
no test coverage detected