Main notification adapter that manages both backtest and live notification storage.
Features:
constructor();
enable: (({ signal, info, partial_profit, partial_loss, breakeven, strategy_commit, signal_sync, risk, common_error, critical_error, validation_error, }?: INotificationTarget) => () => void) & ISingleshotClearable<({ signal, info, partial_profit, partial_loss, breakeven, strategy_commit, signal_sync, risk, common_error, cri...
Enables notification storage by subscribing to signal emitters. Uses singleshot to ensure one-time subscription.
disable: () => void
Disables notification storage by unsubscribing from all emitters. Safe to call multiple times.
getData: (isBacktest: boolean) => Promise<NotificationModel[]>
Gets all backtest/live notifications from storage.
dispose: (isBacktest: boolean) => Promise<void>
Clears all backtest/live notifications from storage.