@onesignal/node-onesignal
Version:
OpenAPI client for @onesignal/node-onesignal
17 lines (16 loc) • 986 B
TypeScript
import { Configuration } from './configuration';
import { Notification } from './models/Notification';
import { CreateNotificationSuccessResponse } from './models/CreateNotificationSuccessResponse';
export interface CreateNotificationWithRetryOptions {
maxRetries?: number;
baseDelayMs?: number;
}
export interface CreateNotificationWithRetryResult {
response: CreateNotificationSuccessResponse;
wasReplayed: boolean;
}
export declare function createNotificationWithRetry(configuration: Configuration, notification: Notification, options?: CreateNotificationWithRetryOptions): Promise<CreateNotificationWithRetryResult>;
export type MessageSent = CreateNotificationSuccessResponse;
export type MessageNotSent = CreateNotificationSuccessResponse;
export declare function isMessageSent(response: CreateNotificationSuccessResponse): response is MessageSent;
export declare function isMessageNotSent(response: CreateNotificationSuccessResponse): response is MessageNotSent;