MCPcopy Create free account
hub / github.com/CommE2E/comm / prepareWebNotification

Function prepareWebNotification

keyserver/src/push/send.js:1104–1121  ·  view source on GitHub ↗
(
  inputData: WebNotifInputData,
  devices: $ReadOnlyArray<NotificationTargetDevice>,
)

Source from the content-addressed store, hash-verified

1102}
1103
1104async 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
1123async function prepareWNSNotification(
1124 devices: $ReadOnlyArray<NotificationTargetDevice>,

Callers 1

preparePushNotifFunction · 0.85

Calls 2

validateOutputFunction · 0.90
createWebNotificationFunction · 0.90

Tested by

no test coverage detected