UNPKG

@stratosphere-network/wallet

Version:

Wallet module for StratoSphere SDK

39 lines 1.52 kB
import { BaseService } from "../base-service"; import { ApiResponse, NotificationSubscriptionRequest, NotificationSubscription, NotificationTestRequest, NotificationSendRequest, NotificationSendResponse, UserNotificationSubscription } from "../types"; export declare class NotificationService extends BaseService { /** * Register or update a notification subscription for the current user */ registerSubscription(request: NotificationSubscriptionRequest): Promise<ApiResponse<{ subscription: NotificationSubscription; }>>; /** * Unsubscribe from notifications */ unsubscribe(subscriberId: string): Promise<ApiResponse<void>>; /** * Get all notification subscriptions for the current user */ getUserSubscriptions(): Promise<ApiResponse<{ subscriptions: UserNotificationSubscription[]; activeCount: number; totalCount: number; }>>; /** * Send a test notification to a specific subscriber */ sendTestNotification(request: NotificationTestRequest): Promise<ApiResponse<{ requestId: string; }>>; /** * Send notification to all subscribers of the current user */ sendToAllUserSubscribers(request: NotificationSendRequest): Promise<ApiResponse<NotificationSendResponse>>; /** * Delete all notification subscriptions for the current user */ deleteAllSubscriptions(): Promise<ApiResponse<{ deletedCount: number; }>>; } //# sourceMappingURL=notifications.d.ts.map