chore: test deploy snapshot
This commit is contained in:
@@ -91,6 +91,7 @@ export type ClientNotificationPayload = {
|
||||
body: string;
|
||||
data?: Record<string, string>;
|
||||
threadId?: string;
|
||||
targetDeviceIds?: string[];
|
||||
targetClientIds?: string[];
|
||||
targetAppOrigins?: string[];
|
||||
targetAppDomains?: string[];
|
||||
@@ -902,10 +903,12 @@ export async function showLocalClientNotification(payload: ClientNotificationPay
|
||||
|
||||
export async function sendClientNotification(payload: ClientNotificationPayload) {
|
||||
const notificationData = withCurrentAppOriginMetadata(payload.data);
|
||||
const targetDeviceIds = payload.targetDeviceIds ?? payload.targetClientIds;
|
||||
return request<ClientNotificationSendResult>('/notifications/send', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
...payload,
|
||||
targetDeviceIds,
|
||||
data: notificationData,
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user